.portal-copy-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.portal-copy-heading h4{margin:0 0 8px}.portal-copy-heading p{color:var(--muted,#66758b);max-width:760px;line-height:1.6;margin:0 0 16px}.portal-copy-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--line,#dce3ec);padding-bottom:12px}.portal-copy-rule{border-left:3px solid var(--primary,#5842da);background:#f7f6fd;padding:12px 16px;margin:16px 0;color:#526179;font-size:13px;line-height:1.6}.portal-copy-form{max-width:980px}.portal-copy-form label{display:block;margin:14px 0;font-size:13px}.portal-copy-form input,.portal-copy-form textarea{display:block;box-sizing:border-box;width:100%;margin-top:6px;font:inherit;line-height:1.6;padding:10px 12px;border:1px solid var(--line,#dce3ec);border-radius:6px;background:var(--surface,#fff);color:inherit}.portal-copy-form textarea{resize:vertical;min-height:100px}.portal-copy-form input:focus,.portal-copy-form textarea:focus{outline:2px solid #a99bf0;outline-offset:1px}.portal-copy-variables{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;margin-top:16px}.portal-copy-variable{border:1px solid #e1dcf5;background:#f8f6ff;color:#5440b9;border-radius:4px;padding:4px 7px;cursor:pointer;font:inherit}.portal-copy-hint,.portal-copy-status{font-size:12px;color:var(--muted,#66758b);line-height:1.6}.portal-copy-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.portal-copy-status.error{color:#b12d26}.portal-copy-preview{border-top:1px solid var(--line,#dce3ec);padding-top:18px;margin-top:18px}.portal-copy-preview iframe{display:block;width:100%;height:620px;border:1px solid var(--line,#dce3ec);background:#fff;margin-top:12px}.portal-copy-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 inherit}.portal-copy-history{border-top:1px solid var(--line,#dce3ec);padding-top:16px;margin-top:22px;font-size:12px}.portal-copy-history li{padding:4px 0}.portal-copy-history select{margin:10px}.portal-copy-history summary{cursor:pointer}@media(max-width:600px){.portal-copy-heading{display:block}.portal-copy-heading .badge{display:inline-block;margin-bottom:12px}.portal-copy-actions .btn{flex:1 1 45%}.portal-copy-preview iframe{height:540px}.portal-copy-tabs .btn{flex:1 1 auto}}

.portal-copy-workspace{min-width:0}.portal-copy-compose{min-width:0}.portal-copy-envelope{font-size:12px;line-height:1.6;color:var(--muted,#66758b);white-space:pre-line;overflow-wrap:anywhere}.portal-copy-preview[aria-busy="true"] iframe{opacity:.5}.portal-copy-preview h4{margin:0 0 6px}.portal-copy-preview>strong{display:block;overflow-wrap:anywhere}.portal-copy-workspace .portal-copy-form{max-width:none}
@media(min-width:1050px){.portal-copy-workspace.has-email-preview{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(360px,1.15fr);gap:28px;align-items:start}.has-email-preview .portal-copy-preview{border-top:0;margin-top:0;padding-top:8px}.has-email-preview .portal-copy-model{flex-wrap:wrap}.has-email-preview .portal-copy-preview iframe{height:720px}}

.portal-copy-structure{font-size:13px;line-height:1.6;border-bottom:1px solid var(--line,#dce3ec);padding:0 0 16px;margin:0 0 18px}.portal-copy-structure summary{cursor:pointer;font-weight:500}.portal-copy-structure dl>div{display:grid;grid-template-columns:150px 1fr;gap:16px;padding:8px 0}.portal-copy-structure dt{color:var(--muted,#64748b)}.portal-copy-structure dd{margin:0}.portal-copy-structure p{margin:14px 0 8px}@media(max-width:600px){.portal-copy-structure dl>div{grid-template-columns:1fr;gap:4px}}
