/* Composer reference: a bounded workspace, native form, focused tools. */
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference{--sbc-width:100%;--sbc-sidebar:260px;background:var(--sb-bg)!important;padding-top:76px!important;font-size:16px!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference>.sbx-header{height:76px!important;max-width:var(--sbc-width)!important;left:0!important;right:0!important;width:100%!important;transform:none;grid-template-columns:var(--sbc-sidebar) minmax(180px,1fr) auto!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout{max-width:var(--sbc-width)!important;margin:0 auto!important;height:calc(100dvh - 76px)!important;grid-template-columns:var(--sbc-sidebar) minmax(0,1fr)!important;background:var(--sb-panel)!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #sbx-nav{width:auto!important;padding:18px 16px!important;gap:12px!important;overflow:auto!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #sbx-nav .sbx-task{font-size:16px!important;min-height:44px!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #sbx-nav .sbx-compose{height:48px!important;font-size:17px!important;margin:0 0 8px!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout #layout-content{padding:20px 28px 0!important;grid-template-rows:64px minmax(0,1fr) 76px!important;font-size:16px!important;overflow:visible!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbx-compose-heading{gap:18px!important;align-items:center!important;justify-content:flex-start!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbx-compose-heading h1{font-size:30px!important;line-height:1.2!important;font-weight:700!important;letter-spacing:-.025em!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #composestatusbar{position:static!important;font-size:14px!important;color:var(--sb-muted)!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout-content>#compose-content{overflow:auto!important;padding:0!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers{padding:0!important;margin:0!important;max-height:none!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers .form-group.row{display:flex;margin:0!important;min-height:52px!important;border-bottom:1px solid var(--sb-line)!important;align-items:center;flex-wrap:nowrap}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers .form-group.row.hidden{display:none}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers .form-group.row>label{flex:0 0 90px!important;max-width:90px!important;width:90px!important;padding:12px 0!important;font-size:16px!important;color:var(--sb-ink)!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers .form-group.row>div{flex:1 1 0!important;max-width:calc(100% - 90px)!important;padding:0!important;min-width:0!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers input,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers textarea,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers select,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .recipient-input{font-size:16px!important;line-height:1.4!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose_to .input-group{flex-wrap:nowrap;align-items:center}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose_to .input-group>.input-group-append{display:none!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-copies{display:flex;gap:0;margin-left:auto;flex:none}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-copies button{background:none;border:0;color:var(--sb-muted);padding:10px 12px;font-size:15px;min-height:44px}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-copies button+button{border-left:1px solid var(--sb-line)}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #composebodycontainer{display:flex!important;flex-direction:column!important;height:clamp(260px,calc(100dvh - 416px),460px)!important;min-height:220px!important;max-height:none!important;margin:18px 0 0!important;border:1px solid var(--sb-line);border-radius:8px;overflow:hidden!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #composebodycontainer .tox-tinymce,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #composebodycontainer>textarea#composebody{flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;border:0!important;border-radius:0!important;width:100%!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #composebodycontainer>textarea#composebody{padding:20px!important;font-size:17px!important;line-height:1.55!important;resize:none!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference:not(.sbc-advanced-open) .tox-editor-header{display:none!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-format{display:flex;align-items:center;gap:4px;flex:0 0 46px;min-height:46px;padding:3px 12px;border-bottom:1px solid var(--sb-line);background:var(--sb-panel);color:var(--sb-ink)}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-format button,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-format select{display:grid;place-items:center;color:var(--sb-ink);background:transparent;border:0;min-width:38px;height:38px;border-radius:4px;font-size:19px;padding:4px}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-format button:disabled{opacity:.4;cursor:not-allowed}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-format button[aria-pressed=true]{background:var(--sb-selected)}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-format .sbc-paragraph{font-size:15px;min-width:130px;margin-right:12px;border-right:1px solid var(--sb-line);border-radius:0}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference svg{width:21px;height:21px;flex:none}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-bold{font-weight:700}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-italic{font-style:italic}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-underline{text-decoration:underline}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-format .sbc-mobile-attach{display:none}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-advanced{margin-left:auto}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout-content>.sbc-footer{grid-row:3;display:flex;align-items:center;gap:14px;border-top:1px solid var(--sb-line);position:relative;min-width:0;background:var(--sb-panel)}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-primary{display:flex;align-items:center;gap:12px}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-primary button,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-discard{font-size:16px!important;min-height:44px!important;padding:10px 16px!important;display:inline-flex;align-items:center;gap:10px;border-radius:6px}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbx-attach-action{background:var(--sb-panel)!important;border:1px solid var(--sb-line)!important;color:var(--sb-ink)!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-discard{margin-left:auto;background:none;border:0;color:var(--sb-muted)}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-more>summary{cursor:pointer;font-size:15px;min-height:44px;padding:12px;color:var(--sb-muted)}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-more-panel{position:absolute;bottom:68px;left:0;z-index:1000;width:min(440px,100%);padding:18px;background:var(--sb-panel);border:1px solid var(--sb-line);border-radius:8px;max-height:65dvh;overflow:auto}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #toolbar-menu.sbc-native-actions{display:flex!important;position:static!important;inset:auto!important;height:auto!important;max-height:none!important;min-height:44px!important;width:100%!important;flex-wrap:wrap!important;overflow:visible!important;padding:0!important;gap:8px}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-more-panel .sbx-compose-options{display:block!important;margin:12px 0!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-more-panel .sbc-enable-format{border:1px solid var(--sb-line);background:var(--sb-bg);color:var(--sb-ink);min-height:44px;border-radius:4px}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-attachments .upload-form{display:none!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-attachments{margin:12px 0!important;padding:0!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #attachment-list{display:flex;flex-wrap:wrap;gap:8px}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #attachment-list li{border:1px solid var(--sb-line);background:var(--sb-bg);border-radius:6px;padding:8px 12px;max-width:100%}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-folders{flex:1;min-height:0;overflow:auto}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #sbx-compose-mailboxes{padding:0;list-style:none;margin:0}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #sbx-compose-mailboxes a{display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 12px;font-size:15px!important;color:var(--sb-ink);border-radius:5px;text-decoration:none}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference button:hover:not(:disabled),html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-folders a:hover{filter:brightness(.96)}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference button:focus-visible,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference summary:focus-visible{outline:2px solid var(--sb-ink);outline-offset:3px}
@media(min-width:1800px){html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference{--sbc-width:100%;--sbc-sidebar:280px}}
@media(max-width:1000px) and (min-width:761px){html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference{--sbc-sidebar:210px}html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout #layout-content{padding:12px 18px 0!important}}
@media(max-width:760px){
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference{padding:0!important;background:var(--sb-panel)!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference>.sbx-header{display:none!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout{height:100dvh!important;display:block!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout #layout-content{height:100dvh!important;width:100%!important;padding:0!important;grid-template-rows:68px minmax(0,1fr) 56px!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbx-compose-heading{padding:8px 12px!important;border-bottom:1px solid var(--sb-line);gap:8px!important;flex-wrap:nowrap!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbx-compose-heading h1{font-size:20px!important;white-space:normal!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbx-compose-heading .send{order:5;margin-left:auto!important;min-height:40px!important;font-size:15px!important;padding:8px 12px!important;flex:none!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #composestatusbar{font-size:12px!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-content>form{height:100%!important;display:flex!important;flex-direction:column!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers{flex:none!important;padding:0 16px!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers .form-group.row{min-height:48px!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers .form-group.row>label{flex-basis:64px!important;max-width:64px!important;width:64px!important;font-size:14px!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers .form-group.row>div{max-width:calc(100% - 64px)!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #composebodycontainer{flex:1 1 0!important;height:auto!important;min-height:180px!important;border:0!important;border-radius:0!important;margin:0!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-attachments{padding:0 16px!important;flex:none!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout-content>.sbc-footer{padding:0 8px!important;gap:0!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-footer>.sbc-format{flex:1;min-width:0;border:0;padding:0;gap:0;justify-content:space-between}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-format .sbc-paragraph,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-format .sbc-underline,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-format .sbc-advanced,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-primary,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-discard{display:none!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-format .sbc-mobile-attach{display:grid}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-more>summary{font-size:13px;padding:12px 5px}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-more-panel{left:8px;right:8px;bottom:56px;width:auto}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-copies button{font-size:13px;padding:8px}
}

html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout-content{background:var(--sb-bg)!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .send{background:#ffcc00!important;color:#151814!important;border:0!important;font-weight:600!important;min-width:110px}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .send:disabled{opacity:.5!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout-content>.sbc-footer{background:var(--sb-bg)!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #sbx-nav .sbx-compose{white-space:nowrap;font-size:16px!important;padding:10px!important}
@media(max-width:760px){html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .send{min-width:88px!important}}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #sbx-nav{flex:0 0 var(--sbc-sidebar)!important;min-width:var(--sbc-sidebar)!important;max-width:var(--sbc-sidebar)!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference>.sbx-header .sbx-brand{width:calc(var(--sbc-sidebar) - 48px)!important;flex:0 0 calc(var(--sbc-sidebar) - 48px)!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #compose-headers .form-group.row{padding:0!important}
html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #sbx-compose-quota{font-size:14px;color:var(--sb-muted);padding:16px 10px;border-top:1px solid var(--sb-line);margin-top:auto}

html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #sbx-compose-mailboxes li.selected>a{background:var(--sb-selected)!important;color:var(--sb-ink)!important}

@media(max-width:760px){html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-more-panel>.sbc-discard{display:flex!important;margin:12px 0 0!important}}

html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference .sbc-recipient-action{display:flex;align-items:center;min-height:44px;padding:8px 0;color:var(--sb-ink);font-size:15px}
/* Keep the approved SmartBiz brand header above the dedicated compose screen. */
@media(max-width:760px){
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference{padding:60px 0 0!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference>.sbx-header{display:flex!important;height:60px!important;padding:0 10px!important;gap:6px!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference>.sbx-header .sbx-brand{display:block!important;width:118px!important;flex:0 1 118px!important;height:44px!important}
 html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout,html[data-sbx-app] body.sbx-app.sbx-compose-view.sbx-compose-reference #layout #layout-content{height:calc(100dvh - 60px)!important}
}
