/* Compact owner mail tools; content and preview have independent readable widths. */
body[data-owner="1"] .mail-template-catalog{background:#fff;border:1px solid var(--line,#dce1d7);border-radius:8px;padding:24px;min-width:0}
body[data-owner="1"] .mail-template-catalog-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-block-end:18px}
body[data-owner="1"] .mail-template-catalog-heading h2{font-size:20px;margin:0 0 5px}
body[data-owner="1"] .mail-template-catalog-heading .help{max-width:80ch;margin:0;line-height:1.8}
body[data-owner="1"] .mail-template-catalog-heading>button{flex:none}
body[data-owner="1"] .mail-template-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.55fr);gap:16px;padding-block:4px 12px;border-block-end:1px solid var(--line,#dce1d7)}
body[data-owner="1"] .mail-template-field{min-width:0;margin:0}
body[data-owner="1"] .mail-template-field label{display:block;margin-block-end:6px;color:#556e60;font-size:12px}
body[data-owner="1"] .mail-template-field :is(input,select,textarea){width:100%;max-width:100%;min-width:0;box-sizing:border-box;background:#fff;border:1px solid #d1dacb;border-radius:6px;padding:12px;font:inherit;line-height:1.7;color:#173b30}
body[data-owner="1"] .mail-template-field textarea{resize:vertical;min-height:235px;font-size:14px}
body[data-owner="1"] .mail-template-status{margin:12px 0;line-height:1.8;font-size:12px;color:#5e7367}
body[data-owner="1"] .mail-template-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;padding:18px 0;border-block-end:1px solid var(--line,#dce1d7)}
body[data-owner="1"] .mail-template-row:last-child{border:0;padding-block-end:0}
body[data-owner="1"] .mail-template-row h3{font-size:15px;margin:4px 0 0;line-height:1.6}
body[data-owner="1"] .mail-template-identity{min-width:0}
body[data-owner="1"] .mail-template-identity>.help{margin:5px 0 0;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
body[data-owner="1"] .mail-template-recipient{display:inline-block;font-size:11px;line-height:1.7;color:#746138;background:#f5f1e5;border:1px solid #e5decb;border-radius:5px;padding:3px 7px;margin-block-start:7px}
body[data-owner="1"] .mail-template-group{color:#647b6a;font-size:11px}
body[data-owner="1"] .mail-template-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body[data-owner="1"] .mail-template-row-actions button{min-height:44px}
body[data-owner="1"] :is(.mail-template-language-tools,.mail-template-preview-modes,.mail-template-output-modes){display:flex;gap:6px;flex-wrap:wrap;align-items:center}
body[data-owner="1"] .mail-template-language-tools{margin-block-end:8px}
body[data-owner="1"] :is(.mail-template-language-tools,.mail-template-preview-modes,.mail-template-output-modes) button[aria-pressed="true"]{background:#173b30;color:#fff;border-color:#173b30}
body[data-owner="1"] .mail-template-editor>.help{margin:0 0 20px}
body[data-owner="1"] .mail-template-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:24px;align-items:start}
body[data-owner="1"] :is(.mail-template-edit-panel,.mail-template-preview-panel){min-width:0}
body[data-owner="1"] .mail-template-edit-panel{display:grid;gap:16px}
body[data-owner="1"] .mail-template-edit-panel>h3{font-size:17px;margin:0}
body[data-owner="1"] .mail-template-edit-panel>.mail-template-status{margin:-8px 0 0}
body[data-owner="1"] .mail-template-protection:empty{display:none}
body[data-owner="1"] .mail-template-protection .help{background:#f4f6ef;border:1px solid #dee4d6;border-radius:6px;padding:12px;margin:0 0 8px;line-height:1.8}
body[data-owner="1"] .mail-template-variables{border-block:1px solid var(--line,#dce1d7);padding:6px 0}
body[data-owner="1"] .mail-template-variables>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px;font-weight:600}
body[data-owner="1"] .mail-template-variable{display:flex;gap:8px 12px;align-items:center;flex-wrap:wrap;padding-block:6px;font-size:12px}
body[data-owner="1"] .mail-template-variable button{font-family:Consolas,monospace;font-size:11px;overflow-wrap:anywhere;max-width:100%;min-height:40px;text-align:start}
body[data-owner="1"] .mail-template-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-block-end:12px}
body[data-owner="1"] .mail-template-preview-heading h3{font-size:17px;margin:0}
body[data-owner="1"] .mail-template-preview-modes button{min-height:38px;font-size:12px;padding:8px 10px}
body[data-owner="1"] .mail-template-output-modes button{min-height:38px;font-size:12px}
body[data-owner="1"] .mail-template-editor .mail-template-preview-meta{margin:0 0 14px;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:14px;background:#f5f6f0;border:1px solid var(--line,#dce1d7);border-radius:6px}
body[data-owner="1"] .mail-template-editor .mail-template-preview-meta>div{display:grid;grid-template-columns:minmax(95px,.36fr) minmax(0,1fr);gap:8px 16px;align-items:baseline;min-width:0}
body[data-owner="1"] .mail-template-preview-meta dt{font-size:11px;color:#617467;line-height:1.8;min-width:0}
body[data-owner="1"] .mail-template-preview-meta dd{margin:0;font-size:12px;line-height:1.8;min-width:0;white-space:normal;overflow-wrap:anywhere}
body[data-owner="1"] .mail-template-frame-host{min-width:0;background:#f1f3ed;border:1px solid var(--line,#dce1d7);border-radius:6px;padding:8px;display:flex;justify-content:center}
body[data-owner="1"] .mail-template-frame{width:100%;height:600px;min-width:0;border:0;background:#fff;border-radius:3px;display:block}
body[data-owner="1"] .mail-template-preview-content[data-device="mobile"] .mail-template-frame{max-width:375px}
body[data-owner="1"] .mail-template-plain{background:#fafbf8;border:1px solid var(--line,#dce1d7);border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:13px/1.9 EOArabic,Arial,sans-serif;max-height:600px;overflow:auto;padding:16px;margin:0}
body[data-owner="1"] .mail-template-preview-panel[data-state="loading"] .mail-template-preview-content{opacity:.65}
body[data-owner="1"] .mail-template-preview-panel[data-state="error"]>.mail-template-status{color:#a1343b}
body[data-owner="1"] .mail-template-editor [hidden]{display:none!important}
body[data-owner="1"] .mail-template-catalog :is(input,select,button):focus-visible,body[data-owner="1"] .mail-template-editor :is(input,textarea,button,summary,pre):focus-visible{outline:2px solid #ae8d4f;outline-offset:3px}
@media(max-width:1100px){body[data-owner="1"] .mail-template-layout{grid-template-columns:minmax(0,1fr);gap:24px}body[data-owner="1"] .mail-template-frame{height:650px}}
@media(max-width:760px){body[data-owner="1"] .mail-template-catalog{padding:18px}body[data-owner="1"] .mail-template-catalog-heading{flex-direction:column;gap:12px}body[data-owner="1"] .mail-template-tools{grid-template-columns:minmax(0,1fr);gap:12px}body[data-owner="1"] .mail-template-row{grid-template-columns:minmax(0,1fr);gap:10px}body[data-owner="1"] .mail-template-row-actions{justify-content:start}body[data-owner="1"] .mail-template-editor .mail-template-preview-meta>div{grid-template-columns:minmax(0,1fr);gap:4px}body[data-owner="1"] .mail-template-frame-host{padding:0}body[data-owner="1"] .mail-template-frame{height:560px}body[data-owner="1"] .mail-template-preview-heading{align-items:start}body[data-owner="1"] .mail-template-variables .help{font-size:12px}}
