/* Tornulio 8.5.2 mail-template editor – responsive, compatible with v851 + hybrid843 */
.tn-mail-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:18px;align-items:start}
.tn-mail-editor,.tn-mail-preview{min-width:0}
.tn-mail-editor label{display:block;margin:14px 0;font-weight:650;font-size:13px;color:var(--ink,#183b31)}
.tn-mail-editor input[type="text"],.tn-mail-editor input:not([type]),.tn-mail-editor select,.tn-mail-editor textarea{display:block;width:100%;margin-top:7px;padding:12px;border-radius:11px;border:1px solid #cfded7;background:#fff;color:#152b24;font:inherit;min-height:42px}
.tn-mail-editor textarea{min-height:270px;resize:vertical;line-height:1.56;font-size:14px}
.tn-mail-editor .tn-mail-enabled{display:flex;gap:10px;align-items:center;font-weight:550}
.tn-mail-editor .tn-mail-enabled input{width:17px;height:17px;accent-color:#198364}
.tn-mail-editor .hint code{display:inline-block;font:12px/1.4 ui-monospace,monospace;color:#154f3a;background:#eef8f1;padding:2px 5px;border-radius:5px;margin:2px}
.tn-mail-preview-card{background:#f4f8f6;border:1px solid #dce7e0;border-radius:15px;padding:19px;overflow:hidden}
.tn-mail-preview-card strong{display:block;margin-bottom:14px;line-height:1.45;overflow-wrap:anywhere}
.tn-mail-preview-card pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:14px/1.65 system-ui,sans-serif;color:#254c42}
.tn-mail-ok{color:#16754d;font-weight:700}.tn-mail-error{color:#b33b3b;font-weight:700}
.tn-mail-club-notice{font-size:12px;color:#426458;margin:12px 0 3px}
@media(max-width:920px){.tn-mail-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:540px){.tn-mail-editor .btnrow{display:grid;grid-template-columns:1fr 1fr;gap:9px}.tn-mail-editor .btnrow button{white-space:normal;min-height:44px}}
