/* DeltaClient workspace refresh. System fonts and local assets only. */
:root{--paper:#f6f8fc;--paper-bright:#fff;--paper-muted:#edf1f8;--ink:#17223b;--ink-soft:#657187;--navy:#235bd8;--navy-deep:#173e9a;--coral:#235bd8;--coral-dark:#1846b2;--line:#e3e8f1;--line-strong:#c7d2e3;--danger:#b33737;--ui:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--display:var(--ui);--shadow:0 16px 48px #17223b12}
body{background:var(--paper);font-size:14px}
html[data-theme="cyber"]{--paper:#141c2b;--paper-bright:#192336;--paper-muted:#243149;--ink:#edf2ff;--ink-soft:#b1bdd3;--navy:#73a1ff;--navy-deep:#446fd5;--coral:#73a1ff;--coral-dark:#a7c3ff;--line:#2d3c54;--line-strong:#415675;--danger:#ffabab}
.app,html[data-theme="cyber"] .app{width:100%;height:100dvh;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none;grid-template-columns:220px minmax(310px,370px) minmax(0,1fr);animation:none}
.rail,html[data-theme="cyber"] .rail{background:var(--paper);color:var(--ink);border-right:1px solid var(--line);padding:27px 16px 16px;gap:0}
.brand{gap:10px;margin:0 8px 28px}
.brand-mark,.login-brand-mark{background:#235bd8;color:white;border-radius:11px;width:36px;height:36px;box-shadow:none;font-family:var(--ui);font-size:25px}
.brand-name{font-family:var(--ui);font-size:17px;letter-spacing:-.6px;color:var(--ink)}
.brand-kicker{color:var(--ink-soft);font-size:10px;letter-spacing:.1px;margin-top:3px}
.compose-primary,html[data-theme="cyber"] .compose-primary{height:46px;border-radius:11px;background:#235bd8;border:1px solid #235bd8;color:#fff;box-shadow:0 5px 10px #235bd81a;font-size:13px;font-weight:650;margin:0 0 10px}
.signature-button,html[data-theme="cyber"] .signature-button{color:var(--ink-soft);border-color:transparent;background:transparent;font-size:12px;justify-content:flex-start;margin-bottom:25px;padding-left:12px}
.rail-heading{font-size:10px;letter-spacing:1.4px;color:var(--ink-soft);padding:0 12px;margin-bottom:12px}
.folder-nav{gap:5px}.folder-button,html[data-theme="cyber"] .folder-button{border-radius:9px;color:var(--ink-soft);min-height:42px;padding:10px 12px;font-size:13px}
.folder-button.active,html[data-theme="cyber"] .folder-button.active{background:#e7efff;color:#214fbb;box-shadow:none;font-weight:650}.folder-count{background:transparent;color:inherit;font-size:11px}
.folder-button:hover{background:var(--paper-muted)}
.connection-card{display:none}.rail-spacer{min-height:60px}.rail-footer,html[data-theme="cyber"] .rail-footer{border-top:1px solid var(--line);border-radius:0;padding:16px 2px 0;background:transparent;gap:8px;flex-wrap:wrap}
.rail-account{width:100%;margin-bottom:8px}.account-avatar{width:32px;height:32px;border-radius:50%;font:600 11px var(--ui);background:#dce7fd;color:#2e5397}.account-title{color:var(--ink);font-size:12px}.account-subtitle{color:var(--ink-soft);max-width:150px;font-size:10px}.icon-button.dark{color:var(--ink-soft);background:transparent;border:1px solid var(--line)}
.list-pane,html[data-theme="cyber"] .list-pane{background:var(--paper-bright);min-width:0;border-right:1px solid var(--line)}
.list-head{padding:28px 22px 16px;border:0}.list-head>.eyebrow{display:none}.list-title-row{display:block}.folder-title{font:700 24px/1.3 var(--ui);letter-spacing:-.7px;margin:0}.message-total{margin-top:7px;font-size:11px;color:var(--ink-soft)}
.search-wrap{margin-top:20px}.search-input{background:var(--paper);height:40px;border:1px solid var(--line);border-radius:9px;font-size:12px;padding-left:36px}.search-wrap>.icon{width:16px;height:16px;left:12px}
.list-controls{padding:0 22px 15px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line)}
.filter-tabs{display:flex;gap:5px}.filter-tabs button{background:transparent;border:0;color:var(--ink-soft);border-radius:6px;padding:7px 10px;font-size:12px;cursor:pointer}.filter-tabs [aria-pressed="true"]{background:var(--paper-muted);font-weight:650;color:var(--ink)}
#selectionCount{font-size:10px;color:var(--ink-soft)}
.selection-toolbar{display:flex;align-items:center;gap:8px;padding:9px 18px;min-height:50px;border-bottom:1px solid var(--line);flex-wrap:wrap}.select-all{display:flex;align-items:center;gap:8px;font-size:11px;margin-right:auto;color:var(--ink-soft)}
input[type="checkbox"]{accent-color:#235bd8;width:16px;height:16px;cursor:pointer}.selection-toolbar .text-button{font-size:11px;min-height:31px;padding:6px 9px}
.message-list{padding:0;scrollbar-gutter:stable}.message-row{display:flex;position:relative;border-bottom:1px solid var(--line);background:var(--paper-bright);min-width:0}.message-row.checked{background:var(--paper-muted)}
.selection-toggle{flex:0 0 34px;display:flex;align-items:flex-start;padding:21px 0 0 12px;cursor:pointer}
.message-card,html[data-theme="cyber"] .message-card{border:0;border-radius:0;padding:17px 16px 17px 5px;gap:11px;box-shadow:none;background:transparent;animation:none;margin:0;width:calc(100% - 34px);min-height:104px;display:flex;text-align:left}
.message-card.selected,html[data-theme="cyber"] .message-card.selected{background:#edf3ff;box-shadow:inset -3px 0 #235bd8;border:0}.message-card:hover{transform:none;background:var(--paper)}
html[data-theme="cyber"] .message-card.selected{background:#243c60}
.message-card.unread::before{width:5px;height:5px;background:#235bd8;left:auto;right:9px;top:22px;border-radius:50%}
.sender-avatar{width:32px;height:32px;border-radius:10px;background:#edf1fa;color:#667da7;flex:0 0 32px;font:600 10px var(--ui)}
.message-main{min-width:0;flex:1}.message-sender{font-size:12px;font-weight:500;line-height:18px;color:var(--ink)}.unread .message-sender,.unread .message-subject{font-weight:700}.message-time{font-size:10px;white-space:nowrap;color:var(--ink-soft)}
.message-subject{font-size:12px;line-height:18px;margin-top:4px}.message-preview{font-size:10px;line-height:16px;color:var(--ink-soft);margin-top:3px}.message-meta{font-size:9px;margin-top:7px}.message-meta .icon{width:12px;height:12px}
.reader,html[data-theme="cyber"] .reader{background:var(--paper-bright);min-width:0}.reader-head{padding:18px 30px 20px}.reader-toolbar{gap:10px;flex-wrap:wrap;margin-bottom:26px}.reader-actions,.reader-secondary-actions{gap:5px;flex-wrap:wrap}.text-button{border-radius:8px;min-height:36px;padding:8px 12px;font-size:12px;font-weight:550;gap:6px;box-shadow:none}.text-button.primary,html[data-theme="cyber"] .text-button.primary{background:#235bd8;border-color:#235bd8;color:white}.text-button.danger{color:var(--danger)}.text-button:disabled,button:disabled{opacity:.5;cursor:not-allowed;transform:none}.icon-button{width:35px;height:35px;border-radius:8px}.text-button .icon{width:16px;height:16px}.reader-subject{font:650 25px/1.3 var(--ui);letter-spacing:-.6px;margin:0 0 22px}.sender-name{font-size:13px}.sender-address,.reader-date{font-size:11px}.reader-avatar{width:40px;height:40px;border-radius:50%}.reader-scroll{padding:26px 30px 40px}.mail-frame{border-radius:0;border:0;box-shadow:none;background:#fff}.remote-banner{font-size:11px;border:1px solid var(--line);border-radius:9px;padding:12px;margin-bottom:20px;background:var(--paper);align-items:flex-start}.remote-actions{gap:8px;flex-wrap:wrap}.remote-load{font-size:11px}.remote-trust{font-weight:400}
.reader-empty,html[data-theme="cyber"] .reader-empty{background:var(--paper-bright);padding:30px;color:var(--ink-soft)}.reader-empty h2{font:600 23px var(--ui);color:var(--ink);letter-spacing:-.5px}.reader-empty p{font:13px/1.8 var(--ui);max-width:310px;margin:12px auto}.empty-art{transform:scale(.75);opacity:.55;margin-bottom:10px}
.state-title{font:600 18px var(--ui)}.state-copy{font-size:12px}.attachments{border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.attachment-chip{border-radius:9px}.read-warning{font-size:12px;line-height:1.6;color:var(--danger);margin:0 0 12px}.move-notice{padding:12px 18px;background:#edf6ee;border-bottom:1px solid #cfe4d2;color:#285a37;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
.move-form{padding:27px;max-width:480px}.move-form h2{font-size:22px;letter-spacing:-.4px;margin:0 0 14px}.move-form p,.move-form li{font-size:13px;line-height:1.7}.move-form ul{padding-left:19px;color:var(--ink-soft);max-height:180px;overflow:auto}.move-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.move-form select{width:100%;margin:8px 0 14px;padding:11px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--paper-bright);font:inherit}
dialog,html[data-theme="cyber"] dialog{border:1px solid var(--line);border-radius:16px;box-shadow:0 25px 90px #0a1b3b35;color:var(--ink);background:var(--paper-bright);max-width:calc(100vw - 24px)}dialog::backdrop{background:#17223b60;backdrop-filter:blur(3px)}.compose-title{font:650 19px var(--ui);letter-spacing:-.3px}.compose-head{padding:20px 24px}.compose-fields{padding:0 24px}.compose-body{font:14px/1.7 var(--ui);min-height:220px;padding:20px 24px;background:transparent}.compose-foot{padding:16px 24px;gap:12px}.compose-status{font-size:11px}.field-row label,.field-label{font-size:12px}.field-row input{font-size:13px}.signature-input{min-height:140px;padding:12px 0}.signature-preview{margin:0 24px 20px;padding:14px 16px;border-left:2px solid var(--line-strong);color:var(--ink-soft);font:12px/1.6 var(--ui);max-height:180px;overflow:auto}.signature-copy-text{white-space:pre-wrap;overflow-wrap:anywhere}.signature-preview img{display:block;width:173px;height:73px;max-width:100%;object-fit:contain;margin-top:12px;background:#fff;border-radius:5px;padding:5px}.signature-dialog .signature-preview{margin:14px 0}
.login-screen,html[data-theme="cyber"] .login-screen{background:var(--paper);padding:24px}.login-card,html[data-theme="cyber"] .login-card{max-width:880px;border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 70px #17223b0b;grid-template-columns:.95fr 1.05fr;background:var(--paper-bright)}.login-story,html[data-theme="cyber"] .login-story{background:#153d9b;color:#fff;padding:40px}.login-story::after{display:none}.login-promise h1{font:650 42px/1.15 var(--ui);letter-spacing:-1.8px}.login-brand strong{font:650 19px var(--ui);letter-spacing:-.6px}.login-brand span{font-size:10px}.login-promise p{font-size:13px;line-height:1.8}.login-form-wrap{padding:45px 40px}.login-form-wrap h2{font:650 27px var(--ui);letter-spacing:-.8px}.login-intro{font-size:13px;line-height:1.7}.login-field input{border-radius:9px;background:var(--paper);font-size:14px;min-height:46px}.login-submit,html[data-theme="cyber"] .login-submit{border-radius:9px;background:#235bd8;color:#fff;min-height:46px;box-shadow:none;font-size:13px}.login-security{font-size:10px;line-height:1.5}.eyebrow{font-family:var(--ui);font-size:9px;letter-spacing:1.5px}
body.authenticated .display-controls{left:20px;right:auto;bottom:145px;top:auto;z-index:45;gap:10px}.theme-switch{transform:scale(.85);transform-origin:left center}.language-switch{font-family:var(--ui)}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #6596ff;outline-offset:3px}
.hidden{display:none!important}
@media(max-width:1150px) and (min-width:901px){.app,html[data-theme="cyber"] .app{grid-template-columns:190px 310px minmax(0,1fr)}.reader-head{padding:18px 20px}.reader-scroll{padding:22px 20px}.reader-toolbar{margin-bottom:18px}.reader-secondary-actions{margin-left:0}.reader-subject{font-size:22px}}
@media(max-width:900px){.app,html[data-theme="cyber"] .app{display:block;height:calc(100dvh - 64px);width:100%;margin:0;min-height:0;border:0;border-radius:0}.rail,html[data-theme="cyber"] .rail{position:fixed;top:0;bottom:0;left:0;width:270px;z-index:41;border-right:1px solid var(--line);visibility:hidden;pointer-events:none;transform:translateX(-100%)}body.folders-open .rail{visibility:visible;pointer-events:auto;transform:translateX(0)}.rail-scrim{position:fixed;inset:0;z-index:40;background:#17223b55}.list-pane{height:100%;width:100%;border:0}.mobile-topbar{height:58px;border-bottom:1px solid var(--line);padding:10px 18px;background:var(--paper-bright);display:flex}.mobile-brand{font:650 15px var(--ui)}.mobile-brand .brand-mark{width:28px;height:28px;font-size:21px;border-radius:8px}.list-head{padding:19px 20px 14px}.folder-title{font-size:25px}.search-wrap{margin-top:16px}.list-controls{padding:0 20px 12px}.selection-toolbar{padding:8px 16px}.message-card,html[data-theme="cyber"] .message-card{min-height:100px;padding-right:20px}.message-sender,.message-subject{font-size:13px}.message-preview{font-size:11px}.message-time{font-size:11px}.reader,html[data-theme="cyber"] .reader{position:fixed;inset:0 0 64px;z-index:25;display:none;overflow:hidden}body.reading .reader{display:flex}body.reading .list-pane{display:none}.reader-head{padding:12px 18px 17px}.reader-toolbar{gap:7px;margin-bottom:20px}.reader-secondary-actions{margin-left:0;width:100%;justify-content:flex-end}.back-button{display:grid}.reader-subject{font-size:23px;margin-bottom:20px}.sender-row{gap:12px;align-items:flex-start;flex-wrap:wrap}.reader-date{padding-left:51px}.reader-scroll{padding:20px 16px 36px}.remote-banner{flex-direction:column;gap:10px}.remote-actions{width:100%;justify-content:flex-start}.mobile-bottom,html[data-theme="cyber"] .mobile-bottom{display:flex;position:fixed;bottom:0;left:0;right:0;height:64px;border-top:1px solid var(--line);border-radius:0;background:var(--paper-bright);z-index:30;box-shadow:none;padding-bottom:env(safe-area-inset-bottom)}.mobile-nav-button{font-size:10px;color:var(--ink-soft);gap:4px}.mobile-nav-button.accent{color:#235bd8;background:transparent}.mobile-nav-button .icon{width:21px;height:21px}body.authenticated:not(.folders-open) .display-controls{display:none}body.authenticated .display-controls{left:20px;bottom:148px}.reader-empty{display:none}#readerContent{width:100%}.login-card,html[data-theme="cyber"] .login-card{display:block;max-width:440px}.login-story{display:none}.login-form-wrap{padding:32px 25px}.login-screen{padding:22px}.login-form-wrap h2{font-size:29px}.compose-modal{width:100%}.compose-body{min-height:190px;padding:18px}.compose-head,.compose-foot{padding:16px 18px}.compose-fields{padding:0 18px}.compose-foot{flex-wrap:wrap}.compose-tools{min-width:0;flex:1}.compose-status{max-width:180px;font-size:10px}.compose-title{font-size:18px}#composeDialog{max-height:calc(100dvh - 24px);overflow:auto;width:calc(100vw - 24px);margin:12px auto}.signature-preview{margin:0 18px 16px}.move-form{padding:24px 20px}.optional-fields{grid-template-columns:1fr 1fr}.signature-dialog{width:calc(100vw - 24px)}.toast-region{bottom:76px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep mutation controls usable on small screens; supersedes legacy hidden toolbar. */
@media(max-width:900px){.reader-secondary-actions{display:flex}.reader-actions .button-label{display:inline}.reader-actions .text-button,.reader-secondary-actions .text-button,.selection-toolbar .text-button,.filter-tabs button{min-height:44px}.selection-toggle{flex-basis:44px;min-height:44px;padding-left:15px}.message-card,html[data-theme="cyber"] .message-card{width:calc(100% - 44px)}.select-all{min-height:44px}.reader-actions .icon-button{width:44px;height:44px}.reader-toolbar{margin-bottom:16px}.reader-secondary-actions{justify-content:flex-start}.reader-secondary-actions .icon-button{margin-left:auto}}
.remote-actions button{border:1px solid var(--line-strong);background:var(--paper-bright);color:var(--ink);border-radius:6px;padding:8px 10px;text-align:left;text-decoration:none}
@media(max-width:900px){.remote-actions button{min-height:44px}}

#moveDialog{height:fit-content;min-height:0;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 32px);margin:auto;overflow:auto}
.field-row{grid-template-columns:58px minmax(0,1fr);column-gap:10px}
.field-row label{min-width:0}

/* Focused visual pass: preserve the workspace layout and blue identity. */
:root { --mobile-safe-bottom: env(safe-area-inset-bottom, 0px); --ink-soft: #5d6980; }
.list-head, html[data-theme="cyber"] .list-head { background: var(--paper-bright); }
.reader-head, .reader-scroll,
html[data-theme="cyber"] .reader-head, html[data-theme="cyber"] .reader-scroll { background: var(--paper-bright); }
.search-input::placeholder, .field-row input::placeholder,
html[data-theme="cyber"] .field-row input::placeholder { color: var(--ink-soft); opacity: 1; }
.message-card, html[data-theme="cyber"] .message-card { min-height: 94px; padding-top: 17px; padding-bottom: 17px; }
.message-sender { font-size: 13px; line-height: 19px; }
.message-subject { display: block; font-size: 13px; line-height: 19px; margin-top: 3px; }
.message-card.unread .message-sender, .message-card.unread .message-subject { font-weight: 700; }
.message-time { font-size: 11px; font-weight: 500; }
.message-preview { display: block; font-size: 11px; line-height: 17px; }
.message-meta { color: var(--ink-soft); font-size: 10px; margin-top: 6px; }
.message-row .message-card .sender-avatar { background: #e9eefb; color: #42619b; }
.message-card.unread::after { width: 3px; height: 20px; top: 19px; background: #235bd8; }
.folder-button.active .folder-count { background: #d4e2ff; color: #214fbb; }
.brand-mark, .mobile-brand .brand-mark, html[data-theme="cyber"] .brand-mark { background: #235bd8; border-color: #235bd8; color: #fff; }
html[data-theme="cyber"] .folder-button.active { background: #253b60; color: #e3edff; }
html[data-theme="cyber"] .folder-button.active .folder-count { background: #365486; color: #fff; }
html[data-theme="cyber"] .message-row .sender-avatar,
html[data-theme="cyber"] .reader-avatar { background: #293c5c; color: #c6d9ff; }
.attachment-icon { background: #e9eefb; color: #42619b; }
html[data-theme="cyber"] .attachment-icon,
html[data-theme="cyber"] .account-avatar { background: #293c5c; color: #c6d9ff; }
html[data-theme="cyber"] .search-wrap { background: transparent; }
html[data-theme="cyber"] .remote-banner { background: var(--paper); border-color: var(--line); }
html[data-theme="cyber"] .compose-modal,
html[data-theme="cyber"] .compose-head,
html[data-theme="cyber"] .compose-form,
html[data-theme="cyber"] .compose-foot { background: var(--paper-bright); }

.reader-date { line-height: 1.5; }
.reader-recipients { margin: 8px 0 0 51px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.recipient-label { font-weight: 650; margin-right: 5px; }
.reader-more { display: flex; margin-left: auto; }
.reader-more-toggle { display: none; }
.reader-refresh { width: 36px; padding: 8px; }
.reader-refresh .button-label { display: none; }
.reader-loading { display: grid; gap: 15px; padding: 24px 0; }
.reader-loading .skeleton-block { height: 12px; border-radius: 6px; }
.reader-loading .skeleton-block:nth-child(2) { width: 88%; }
.reader-loading .skeleton-block:nth-child(3) { width: 64%; }
.reader-loading p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }
#readStateNotice { background: #fff7e9; color: #70470f; border: 1px solid #ead7b4; border-left: 3px solid #ad6a12; border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; }
html[data-theme="cyber"] #readStateNotice { background: #342c20; color: #ffe1aa; border-color: #725934; }
.state-copy { line-height: 1.7; }
.state-card .state-title { line-height: 1.4; }

.compose-modal { max-height: calc(100dvh - 36px); }
.compose-head { flex-shrink: 0; }
.compose-form { overflow-y: auto; overscroll-behavior: contain; }
.compose-fields, .signature-preview, .compose-files, .compose-foot { flex-shrink: 0; }
.compose-body { margin: 0; padding: 20px 24px; flex: 1 0 200px; min-height: 200px; }
.compose-foot { position: sticky; bottom: 0; z-index: 1; background: var(--paper-bright); }
.signature-preview { border: 1px solid var(--line); border-radius: 9px; background: var(--paper); max-height: none; padding: 14px 16px; }
.signature-preview-label { display: block; margin-bottom: 10px; color: var(--ink-soft); font-size: 10px; font-weight: 650; letter-spacing: .3px; }
.signature-preview img { margin-top: 10px; }
.field-row input { border-radius: 5px; padding: 0 6px; }
.field-row input:focus-visible { outline: 2px solid #5e88df; outline-offset: -2px; background: var(--paper); }
.compose-body:focus-visible { outline: 2px solid #5e88df; outline-offset: -4px; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
a:focus-visible, .file-label:focus-within { outline: 2px solid #5e88df; outline-offset: 3px; }
.message-card:focus-visible { outline-offset: -3px; }
.file-label:focus-within input { outline: 0; }
.move-form ul { margin: 16px 0 0; padding: 12px 16px 12px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.move-actions .text-button { min-height: 40px; }

@media (max-width: 900px) {
  .app, html[data-theme="cyber"] .app { height: calc(100dvh - 64px - var(--mobile-safe-bottom)); }
  .reader, html[data-theme="cyber"] .reader { bottom: calc(64px + var(--mobile-safe-bottom)); }
  .toast-region { bottom: calc(76px + var(--mobile-safe-bottom)); }
  .list-pane { padding-bottom: 0; }
  .mobile-bottom, html[data-theme="cyber"] .mobile-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: calc(64px + var(--mobile-safe-bottom)); padding: 6px 12px calc(6px + var(--mobile-safe-bottom)); }
  .search-input { height: 44px; }
  .mobile-nav-button { min-height: 44px; min-width: 0; font-size: 11px; font-weight: 600; border-radius: 8px; }
  .mobile-nav-button.accent { color: #235bd8; }
  html[data-theme="cyber"] .mobile-nav-button.accent { color: #a7c3ff; }
  .mobile-topbar .icon-button, .reader-secondary-actions .icon-button { width: 44px; height: 44px; }
  .mobile-topbar { height: 64px; }
  .reader-date { display: block; width: 100%; padding-left: 52px; margin-top: -4px; }
  .reader-recipients { margin-left: 52px; margin-top: 5px; }
  .reader-toolbar { flex-wrap: nowrap; margin-bottom: 15px; }
  .reader-more { position: relative; }
  .reader-more-toggle { display: grid; width: 44px; height: 44px; }
  .reader-more .reader-secondary-actions { display: none; position: absolute; top: 52px; right: 0; z-index: 35; width: 250px; max-width: calc(100vw - 36px); margin: 0; padding: 8px; flex-direction: column; gap: 3px; background: var(--paper-bright); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 35px #17223b26; }
  .reader-more[data-open] .reader-secondary-actions { display: flex; }
  .reader-more .reader-secondary-actions .text-button { width: 100%; min-height: 44px; justify-content: flex-start; border: 0; box-shadow: none; background: transparent; }
  .reader-more .reader-secondary-actions .text-button:hover { background: var(--paper); }
  .reader-more .reader-secondary-actions #trashMessage { border-top: 1px solid var(--line); border-radius: 0; margin-top: 3px; }
  .reader-refresh .button-label { display: inline; }
  .remote-banner { padding: 10px 12px; gap: 8px; margin-bottom: 16px; }
  .remote-copy { font-size: 12px; line-height: 1.5; }
  .remote-copy .icon { width: 16px; height: 16px; }
  .remote-actions { gap: 6px; }
  .remote-actions button { font-size: 11px; padding: 8px 10px; }
  .sender-row { row-gap: 8px; }
  .message-card, html[data-theme="cyber"] .message-card { min-height: 92px; }
  .message-subject { line-height: 20px; }
  .reader-subject { font-size: 22px; line-height: 1.35; margin-bottom: 17px; }
  #composeDialog { margin: auto; height: fit-content; min-height: 0; max-height: calc(100dvh - 24px); overflow: hidden; }
  .signature-dialog { height: auto; overflow: auto; }
  .compose-modal { height: auto; max-height: calc(100dvh - 24px); }
  .compose-body { padding: 18px; min-height: 170px; flex-basis: 170px; }
  .compose-foot { gap: 8px; }
  .compose-foot .icon-button, .compose-close, .send-button, .move-actions .text-button { min-width: 44px; min-height: 44px; }
  .compose-status { max-width: 155px; font-size: 11px; line-height: 1.5; }
  .signature-preview { margin-left: 18px; margin-right: 18px; }
  .optional-fields { grid-template-columns: 1fr; }
  .optional-fields .field-row:first-child { border-right: 0; padding-right: 0; }
  .optional-fields .field-row:last-child { padding-left: 0; }
}
