.staff-templates299{width:100%;max-width:none}.staff-header299{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.staff-header299 h2{margin-bottom:8px}.staff-header299 p{max-width:750px;line-height:1.7}.staff-bar299{display:flex;align-items:flex-end;gap:18px;justify-content:space-between;padding:18px 0;border-bottom:1px solid #e3eaf3;margin-bottom:14px}.staff-bar299>.field{min-width:240px;margin:0}.staff-bar299 .actions,.staff-editor299 .actions{display:flex;flex-wrap:wrap;gap:8px}.staff-danger299{color:#ac493b;border-color:#edccc6;background:#fff8f6}.staff-editor299{max-width:940px;min-width:0}.staff-editor299>p{line-height:1.7;overflow-wrap:anywhere}.staff-editor299 .field{margin-top:15px}.staff-editor299 input,.staff-editor299 textarea,.staff-editor299 select{max-width:100%;box-sizing:border-box}.staff-editor-grid299{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.staff-editor299 .rich-editor45{min-height:260px;overflow-wrap:anywhere}.staff-editor299 .rich-toolbar45{flex-wrap:wrap}.staff-editor299 .actions{justify-content:flex-end;margin-top:20px}.staff-variable-panel299,.staff-offers299{border:1px solid #dce5f0;padding:13px 15px;border-radius:10px;margin-top:18px}.staff-variable-panel299 summary,.staff-offers299 summary{cursor:pointer;color:#3c5c82}.staff-variable-actions299{display:flex;flex-wrap:wrap;gap:9px;align-items:flex-end}.staff-variable-actions299>.field{flex:1 1 280px}.staff-variable-actions299>button{margin-bottom:0}.staff-brand-row299{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,1fr) minmax(0,2fr);gap:12px;align-items:end;border-top:1px solid #e6edf4;padding:12px 0}.staff-brand-row299 strong{padding-bottom:12px;overflow-wrap:anywhere}.staff-brand-row299 .field{margin:0}.staff-editor299 [role=status]{min-height:24px;line-height:1.6;overflow-wrap:anywhere}.staff-editor299 pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto;padding:15px;border:1px solid #e0e7f0;border-radius:8px;background:#f7f9fc}#staff-template-manager299 select{width:100%}
@media(max-width:700px){.staff-header299{display:block}.staff-bar299{display:block}.staff-bar299>.field{min-width:0;width:100%}.staff-bar299>.actions{margin-top:14px}.staff-bar299 .actions>button{flex:1 1 130px}.staff-editor-grid299{grid-template-columns:1fr;gap:0}.staff-editor299 .actions>button{flex:1 1 130px}.staff-brand-row299{grid-template-columns:1fr}.staff-brand-row299 strong{padding-bottom:0}.staff-variable-actions299>button{flex:1 1 130px}.staff-editor299 .rich-editor45{min-height:240px}.staff-editor299 .rich-toolbar45{gap:5px}.staff-editor299 .rich-toolbar45 select{max-width:135px}.staff-editor299 .rich-insert45{max-width:100%;box-sizing:border-box}}

.staff-template-tabs300{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0}.staff-template-tag300{display:inline-flex;align-items:stretch;max-width:100%;border:1px solid #d6e1ef;border-radius:8px;overflow:hidden;background:#f6f9fd}.staff-template-tag300 [role=tab]{border:0;border-radius:0;background:transparent;color:#526b88;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:40px;padding:9px 14px}.staff-template-tag300.is-selected300{background:#e9f2ff;border-color:#8bb5ed}.staff-template-tag300.is-selected300 [role=tab]{color:#205b9f;font-weight:600}.staff-template-remove300{border:0;border-left:1px solid #dce6f2;border-radius:0;background:transparent;color:#7f8da0;min-width:30px;padding:4px 8px;font-size:18px}.staff-template-remove300:hover{color:#a64238;background:#fff2ee}.staff-template-preview300{margin-top:16px;border:1px solid #dfe7f1;border-radius:12px;padding:20px;overflow-wrap:anywhere}.staff-template-preview300 h3{margin:0;color:#243f60}.staff-template-preview300 h4{font-size:13px;color:#627994;margin:20px 0 8px}.staff-template-preview300 pre{margin:0;padding:14px 16px;background:#f7f9fc;border:1px solid #e3e9f1;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;font:inherit;line-height:1.7}
@media(max-width:700px){.staff-template-tabs300{gap:7px}.staff-template-tag300 [role=tab]{max-width:220px;padding:8px 11px}.staff-template-preview300{padding:15px}.staff-template-preview300 .statusline{align-items:flex-start;gap:12px}.staff-template-preview300 .statusline h3{min-width:0;flex:1}.staff-template-preview300 .statusline button{flex-shrink:0}.staff-template-preview300 pre{padding:12px}}

.staff-template-toolbar301{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px}.staff-template-toolbar301 .staff-template-tabs300{flex:1 1 380px;min-width:0}.staff-template-toolbar301>[data-new299]{flex-shrink:0;margin-top:8px}.staff-inline301{max-width:none;margin-top:18px;padding:20px;border:1px solid #dfe7f1;border-radius:12px}.staff-inline301>h3{margin:0;color:#243f60}.staff-inline301 .actions{justify-content:flex-start}.staff-inline301 [name=name],.staff-inline301 [name=subject]{width:100%}#staff-template-manager299>[data-manager-reread301]{margin:0 0 14px}.staff-inline301 form[aria-busy=true]{cursor:progress}
@media(max-width:700px){.staff-template-toolbar301{gap:6px}.staff-template-toolbar301 .staff-template-tabs300{flex:1 1 100%}.staff-template-toolbar301>[data-new299]{margin-top:0}.staff-inline301{padding:14px}.staff-inline301 .rich-toolbar45 button{min-height:32px}.staff-inline301 .rich-editor45{min-height:250px}}

.staff-variable-panel299>h3,.staff-offers299>h3{margin:0 0 8px;color:#304f75}.staff-variable-groups302{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:12px;align-items:start}.staff-variable-group302{min-width:0;padding:14px;border:1px solid #e0e8f3;border-radius:9px;background:#f8faff}.staff-variable-group302 h4{margin:0 0 10px;color:#617894;font-size:12px}.staff-variable-group302>div{display:flex;flex-wrap:wrap;gap:8px}.staff-variable-group302 button{display:flex;flex:1 1 170px;min-width:0;max-width:100%;flex-direction:column;align-items:flex-start;gap:4px;padding:9px 11px;text-align:left}.staff-variable-group302 code{font-size:11px;color:#7185a0;white-space:normal;overflow-wrap:anywhere}.staff-variable-group302 small:empty{display:none}.staff-variable-group302 small{color:#13745f}.staff-variable-group302 [data-copied302=true]{border-color:#84b5a8;background:#f2fbf7}.staff-inline301 [data-brand-list299]{width:100%}
@media(max-width:700px){.staff-variable-groups302{grid-template-columns:minmax(0,1fr);gap:10px}.staff-variable-group302{padding:12px}.staff-variable-group302 button{flex-basis:140px}.staff-variable-panel299,.staff-offers299{padding:12px}}
