:root[data-theme="light"]{--surface:#FFFFFF;--surface-subtle:#FAFBFB;--sidebar:#F4F5F6;--surface-muted:#EEF0F2;--surface-hover:#F1F3F5;--border:#E3E5E8;--border-subtle:#EDEFF1;--border-strong:#CDD1D7;--text:#15171C;--text-body:#1E2127;--text-secondary:#2B2F36;--text-muted:#575D68;--icon-muted:#8A9099;--disabled:#B3B8BF;--accent:#0B6A6E;--accent-hover:#08575A;--accent-text:#0A4F52;--accent-soft:#E2EFEF;--accent-selected:#E8F2F2;--on-accent:#FFFFFF;--success-bg:#E5F2EA;--success-text:#1D6B40;--warning-bg:#FBF1E1;--warning-text:#7A4A00;--warning-border:#E2B866;--danger:#B3261E;--danger-bg:#FBEAE9;--danger-text:#A1221B;--info-bg:#E7EEF8;--info-text:#2A4F86;--star:#C27A00}
:root[data-theme="graphite"]{--surface:#1B1D21;--surface-subtle:#17191C;--sidebar:#141518;--surface-muted:#2A2D33;--surface-hover:#24272C;--border:#2C2F35;--border-subtle:#25282D;--border-strong:#3A3E45;--text:#ECEEF1;--text-body:#DADDE2;--text-secondary:#C9CDD3;--text-muted:#9AA0AA;--icon-muted:#7E848E;--disabled:#5A5F67;--accent:#5CD0C8;--accent-hover:#7FDCD5;--accent-text:#7FD9D2;--accent-soft:#173A3A;--accent-selected:#183031;--on-accent:#1B1D21;--success-bg:#18352A;--success-text:#7FD3A0;--warning-bg:#3A2E17;--warning-text:#F0C77A;--warning-border:#8A6A2B;--danger:#F2867E;--danger-bg:#3B1F1E;--danger-text:#F2958E;--info-bg:#1D2A3D;--info-text:#9DBBEA;--star:#E3A33B}
:root[data-theme="night"]{--surface:#121A2B;--surface-subtle:#0F1726;--sidebar:#0D1422;--surface-muted:#1E2A44;--surface-hover:#18233A;--border:#24304A;--border-subtle:#1C2740;--border-strong:#33415E;--text:#E8EDF7;--text-body:#D5DCEA;--text-secondary:#BCC6DA;--text-muted:#8E9BB6;--icon-muted:#74819C;--disabled:#4D5A75;--accent:#8AB4FF;--accent-hover:#A9C7FF;--accent-text:#A9C7FF;--accent-soft:#1C2B4A;--accent-selected:#1A2742;--on-accent:#121A2B;--success-bg:#18352A;--success-text:#7FD3A0;--warning-bg:#3A2E17;--warning-text:#F0C77A;--warning-border:#8A6A2B;--danger:#F2867E;--danger-bg:#3B1F1E;--danger-text:#F2958E;--info-bg:#1D2A3D;--info-text:#9DBBEA;--star:#E3A33B}
:root[data-theme="light"][data-accent="teal"]{--accent:#0B6A6E;--accent-hover:color-mix(in srgb,#0B6A6E 85%,black);--accent-text:#0B6A6E}
:root:not([data-theme="light"])[data-accent="teal"]{--accent:#5CD0C8;--accent-hover:color-mix(in srgb,#5CD0C8 85%,white);--accent-text:#5CD0C8}
:root[data-theme="light"][data-accent="blue"]{--accent:#2457C5;--accent-hover:color-mix(in srgb,#2457C5 85%,black);--accent-text:#2457C5}
:root:not([data-theme="light"])[data-accent="blue"]{--accent:#8AB4FF;--accent-hover:color-mix(in srgb,#8AB4FF 85%,white);--accent-text:#8AB4FF}
:root[data-theme="light"][data-accent="purple"]{--accent:#6B3FC4;--accent-hover:color-mix(in srgb,#6B3FC4 85%,black);--accent-text:#6B3FC4}
:root:not([data-theme="light"])[data-accent="purple"]{--accent:#B9A3F5;--accent-hover:color-mix(in srgb,#B9A3F5 85%,white);--accent-text:#B9A3F5}
:root[data-theme="light"][data-accent="green"]{--accent:#237A3E;--accent-hover:color-mix(in srgb,#237A3E 85%,black);--accent-text:#237A3E}
:root:not([data-theme="light"])[data-accent="green"]{--accent:#7FD3A0;--accent-hover:color-mix(in srgb,#7FD3A0 85%,white);--accent-text:#7FD3A0}
:root[data-theme="light"][data-accent="amber"]{--accent:#9A5400;--accent-hover:color-mix(in srgb,#9A5400 85%,black);--accent-text:#9A5400}
:root:not([data-theme="light"])[data-accent="amber"]{--accent:#F0B54A;--accent-hover:color-mix(in srgb,#F0B54A 85%,white);--accent-text:#F0B54A}
:root[data-theme="light"][data-accent="graphite"]{--accent:#3D4450;--accent-hover:color-mix(in srgb,#3D4450 85%,black);--accent-text:#3D4450}
:root:not([data-theme="light"])[data-accent="graphite"]{--accent:#C3C9D3;--accent-hover:color-mix(in srgb,#C3C9D3 85%,white);--accent-text:#C3C9D3}
:root{--accent-soft:color-mix(in srgb,var(--accent) 12%,var(--surface));--accent-selected:color-mix(in srgb,var(--accent) 10%,var(--surface));}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/golos-cyrillic.woff2') format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Golos Text';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/golos-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{font-family:'Golos Text',Arial,sans-serif;font-size:14px;line-height:1.45;font-synthesis:none;color:var(--text);background:var(--surface);--sidebar-width:248px;--letter-font:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}a{color:var(--accent-text)}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[contenteditable]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:24px;font-weight:600;line-height:1.25;letter-spacing:-.02em}h2{font-size:18px;font-weight:600;line-height:1.35}h3{font-size:14px;font-weight:600}.muted{color:var(--text-muted);font-size:13px;line-height:1.55}.form-hint{font-size:12px;line-height:1.6;color:var(--text-muted);margin-top:8px}.form-error,.field-error{font-size:13px;line-height:1.5;color:var(--danger-text);margin:12px 0}.form-error:empty,.field-error:empty{display:none}.icon{width:18px;height:18px;flex:none;vertical-align:middle}.icon-button{display:inline-flex;align-items:center;justify-content:center;padding:8px;width:36px;height:36px;color:var(--text-secondary);border-radius:8px;text-decoration:none;flex-shrink:0}.icon-button:hover,.text-button:hover{background:var(--surface-hover)}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 13px;border-radius:9px;font-weight:500;font-size:13.5px;line-height:1.3;white-space:nowrap;text-decoration:none;transition:background .12s}.primary{background:var(--accent);color:var(--on-accent);border:1px solid transparent}.primary:hover{background:var(--accent-hover)}.secondary{border:1px solid var(--border-strong);background:var(--surface);color:var(--text)}.secondary:hover{background:var(--surface-hover)}.danger{background:var(--danger);color:var(--surface);border:1px solid transparent}.danger-text{color:var(--danger-text)!important}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;padding:8px;font-size:13px}.wide{width:100%}.badge{display:inline-flex;align-items:center;gap:5px;background:var(--surface-muted);color:var(--text-muted);padding:4px 9px;border-radius:999px;font-size:12px;font-weight:500;line-height:1.5}.badge .icon{width:14px;height:14px}.badge.success,.status-icon.success{background:var(--success-bg);color:var(--success-text)}.badge.warning,.status-icon.warning{background:var(--warning-bg);color:var(--warning-text)}.badge.danger{background:var(--danger-bg);color:var(--danger-text)}.badge.info{background:var(--info-bg);color:var(--info-text)}.warning-text{color:var(--warning-text)}.status-success{color:var(--success-text);display:inline-flex;gap:6px;align-items:center;font-size:13px}.avatar{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:12px;font-weight:600;color:var(--accent-text);background:var(--accent-soft);flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;text-decoration:none;color:var(--text);white-space:nowrap}.brand-mark{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:var(--accent);color:var(--on-accent)}.brand-mark .icon{width:16px;height:16px}.boot{display:flex;align-items:center;justify-content:center;height:100vh;color:var(--text-muted)}.app{height:100vh;height:100dvh;display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);overflow:hidden}.sidebar{display:flex;flex-direction:column;gap:20px;min-height:0;overflow-y:auto;padding:20px 14px 16px;border-right:1px solid var(--border);background:var(--sidebar)}.sidebar-brand{padding:2px 8px 0;display:flex;align-items:center;justify-content:space-between}.sidebar-brand>.icon-button{display:none}.compose-main{min-height:42px;border-radius:10px;font-size:14px;font-weight:600;flex-shrink:0}.nav-link{display:flex;align-items:center;gap:12px;min-height:38px;width:100%;padding:8px 10px;border-radius:8px;color:var(--text-secondary);font-size:14px;text-align:left;font-weight:450}.nav-link:hover{background:var(--surface-hover)}.nav-link.active{background:var(--accent-soft);color:var(--accent-text);font-weight:600}.nav-link>span:not(.attention-dot){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.nav-link>small{font-size:12.5px;color:var(--text-muted);font-variant-numeric:tabular-nums}.nav-link.active>small{color:var(--accent-text)}#folders{display:flex;flex-direction:column;gap:2px}.sidebar-group{display:flex;flex-direction:column;gap:5px}.sidebar-caption{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;color:var(--text-muted);padding:0 10px}.sidebar-caption .icon-button{width:28px;height:28px;padding:5px}.sidebar-caption .icon{width:16px;height:16px}.company-nav{gap:8px}.company-nav>.sidebar-caption{padding-bottom:4px}.attention-dot{width:7px;height:7px;background:#c27a00;border-radius:50%;margin-left:auto;flex:none}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:14px}.storage{padding:10px 10px 0}.storage>div{display:flex;justify-content:space-between;gap:8px;color:var(--text-muted);font-size:11.5px;white-space:nowrap}.storage-warning{font-size:12px;color:var(--danger-text);padding:8px 0;text-align:left}progress{appearance:none;width:100%;height:6px;border:0;border-radius:3px;overflow:hidden;display:block;margin-top:8px;background:var(--border)}progress::-webkit-progress-bar{background:var(--border);border-radius:3px}progress::-webkit-progress-value{background:var(--accent);border-radius:3px}progress::-moz-progress-bar{background:var(--accent);border-radius:3px}.account{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:9px;min-width:0;text-align:left;min-height:56px}.account>span:nth-child(2){min-width:0;flex:1}.account strong,.account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account strong{font-size:12px;font-weight:600}.account small{font-size:11px;color:var(--text-muted);margin-top:2px}.account>.icon{width:16px;color:var(--text-muted)}.workspace{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative;background:var(--surface)}#mail-view{display:grid;grid-template-columns:400px minmax(0,1fr);flex:1;min-height:0}.message-list-panel{border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0;min-width:0}.list-heading{display:flex;align-items:center;gap:10px;padding:20px 16px 14px;min-height:62px;flex-shrink:0}.list-heading h1{font-size:20px;line-height:1.3}.list-heading>.icon-button,.mobile-account{display:none}.unread-caption{font-size:12px;color:var(--text-muted);white-space:nowrap}.search{margin:0 16px 10px;display:flex;gap:9px;align-items:center;border:1px solid var(--border-strong);border-radius:10px;padding:7px 11px;min-height:40px}.search:focus-within{outline:2px solid var(--accent);outline-offset:1px}.search>.icon{color:var(--text-muted);width:17px}.search input{width:100%;min-width:0;border:0;padding:1px;background:none;outline:none;font-size:13px}.search-scope{flex-shrink:0;max-width:51%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--accent-text);background:var(--accent-soft);padding:5px 7px;border-radius:6px}.list-toolbar{display:flex;align-items:center;gap:6px;padding:0 12px 7px;min-height:43px;border-bottom:1px solid var(--border)}.select-page{display:flex;align-items:center;justify-content:center;width:30px;flex-shrink:0}.select-page input,.message-checkbox input{margin:0;width:16px;height:16px;accent-color:var(--accent);cursor:pointer}.list-toolbar>.icon-button{width:30px;height:30px;padding:6px}.list-count{font-size:12px;color:var(--text-muted);margin-left:auto;font-variant-numeric:tabular-nums}.selected-count{font-size:12px;font-weight:600}.bulk-actions{display:flex;gap:0;margin-left:auto}.bulk-actions .icon-button{width:31px;height:31px;padding:7px}.bulk-actions .icon{width:17px}.new-messages{padding:10px;border-bottom:1px solid var(--border);background:var(--info-bg);color:var(--info-text);font-size:12px;text-align:center}#message-list{overflow:auto;flex:1;min-height:0}#list-error:empty{display:none}#list-error{padding:12px;background:var(--danger-bg);color:var(--danger-text);font-size:12px}.message-row{display:flex;position:relative;border-bottom:1px solid var(--border-subtle);min-height:90px;background:var(--surface)}.message-row:hover{background:var(--surface-hover)}.message-row.selected,.message-row.checked{background:var(--accent-selected)}.message-checkbox{display:flex;padding:16px 0 0 16px;width:43px;flex-shrink:0;align-items:flex-start}.msg-open{flex:1;min-width:0;padding:13px 4px 12px 14px;text-align:left;display:flex;flex-direction:column;gap:4px;overflow:hidden}.message-top{display:flex;align-items:center;gap:8px;width:100%;font-size:12.5px}.message-top>strong{flex:1;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:500;position:relative}.message-top>span{display:flex;align-items:center;gap:7px;color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}.message-top .icon{width:14px;height:14px}.unread-dot{position:absolute;left:-14px;top:6px;width:7px;height:7px;border-radius:50%;background:var(--accent)}.unread .message-top>strong,.unread .message-subject{font-weight:650}.unread .message-top time{font-weight:600;color:var(--accent-text)}.message-subject{font-size:13px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.message-preview{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.message-star{align-self:flex-start;display:flex;padding:15px 15px 8px 11px;color:var(--icon-muted)}.message-star .icon{width:17px;height:17px}.message-star.is-starred{color:var(--star)}.message-star.is-starred svg{fill:var(--star)}[data-density=compact] .message-preview{display:none}[data-density=compact] .message-row{min-height:65px}[data-density=compact] .msg-open{padding-top:12px;padding-bottom:11px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 25px;color:var(--text-muted);gap:14px}.empty-state>.icon{width:38px;height:38px;stroke-width:1.3;opacity:.65}.empty-state h2{font-size:17px;color:var(--text-secondary)}.empty-state p{font-size:13px;line-height:1.65;max-width:440px}.list-empty{padding-top:70px}.reader-empty{min-height:100%;padding-bottom:100px}.reader-empty>.icon{width:52px;height:52px}.reader-empty h2{font-size:20px}.reader-empty .secondary{margin-top:4px}#reader{overflow:auto;min-width:0;min-height:0;position:relative}.reader-toolbar{display:flex;align-items:center;gap:10px;padding:12px 24px;min-height:61px;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:3;background:var(--surface)}#reader-back{display:none}.reader-main-actions,.reader-icon-actions{display:flex;gap:8px}.reader-main-actions .secondary{height:36px;min-height:36px;padding:7px 12px;font-size:13px}.reader-icon-actions .icon-button{width:35px}.toolbar-separator{width:1px;height:24px;background:var(--border);display:inline-block;flex:none;margin:0 3px}.reader-menu{position:relative;margin-left:auto}.reader-menu summary{list-style:none}.reader-menu summary::-webkit-details-marker{display:none}.menu-popover{position:absolute;right:0;top:40px;min-width:230px;padding:6px;background:var(--surface);border:1px solid var(--border);box-shadow:0 12px 32px #15171c29;border-radius:12px;z-index:8}.menu-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:7px;font-size:13px;text-align:left;width:100%}.menu-item:hover{background:var(--surface-hover)}.message-content{padding:28px 40px 50px;max-width:1250px}.message-content>h2{font-size:22px;line-height:1.3;margin-bottom:24px;overflow-wrap:anywhere}.sender-details{display:flex;align-items:flex-start;gap:12px;margin-bottom:24px;min-width:0}.sender-details>.avatar{width:40px;height:40px}.sender-details>div{flex:1;min-width:0}.sender-name{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;font-size:13px}.sender-name strong{font-weight:600}.sender-name span{font-size:12px;color:var(--text-muted);overflow-wrap:anywhere}.recipients{font-size:12px;color:var(--text-muted);line-height:1.6;margin-top:5px;overflow-wrap:anywhere}.sender-details time{font-size:12px;line-height:1.5;color:var(--text-muted);flex-shrink:0;max-width:165px;text-align:right}.mail-html{font-size:var(--letter-font);line-height:1.65;color:var(--text-body);overflow-x:auto;overflow-wrap:anywhere;min-height:140px;padding:0 0 12px}.mail-html p{margin:0 0 14px}.mail-html h1,.tiptap h1{font-size:1.8em;line-height:1.3;margin:18px 0 12px}.mail-html h2,.tiptap h2{font-size:1.45em;line-height:1.35;margin:16px 0 10px}.mail-html h3,.tiptap h3{font-size:1.18em;line-height:1.4;margin:14px 0 8px}.mail-html li p,.tiptap li p{margin:0}.mail-html ul,.mail-html ol,.tiptap ul,.tiptap ol{padding-left:24px;margin:10px 0 16px}.mail-html li,.tiptap li{margin:5px 0}.mail-html blockquote,.tiptap blockquote{border-left:3px solid var(--border-strong);margin:16px 0;padding:1px 0 1px 16px;color:var(--text-muted)}.mail-html img{max-width:100%;height:auto}.mail-html table{border-collapse:collapse;max-width:100%;font-size:inherit}.mail-html td,.mail-html th{border:1px solid var(--border);padding:8px;min-width:80px}.external-paper{padding:20px;background:#fff;color:#1e2127;border-radius:10px}.external-paper a{color:#0B6A6E}.external-paper blockquote{color:#575d68}.trust-note{font-size:12px;line-height:1.5;color:var(--text-muted);background:var(--surface-muted);padding:8px 12px;border-radius:8px;margin:0 0 18px}.delivery-block{display:flex;flex-direction:column;gap:8px;border:1px solid var(--border);border-radius:10px;padding:12px;margin:0 0 22px}.delivery-block>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--text-muted);overflow-wrap:anywhere}.scheduled-notice{display:flex;flex-direction:column;gap:8px;background:var(--info-bg);color:var(--info-text);border-radius:10px;padding:16px;margin-bottom:24px}.scheduled-notice>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.scheduled-notice strong{font-size:13px;font-weight:550}.scheduled-notice small{font-size:11px}.scheduled-notice .text-button{font-size:12px;padding:7px}.attachments{border-top:1px solid var(--border);margin-top:22px;padding-top:22px;display:flex;flex-direction:column;gap:10px}.attachments h3{font-size:13px;margin-bottom:1px}.attachment{display:flex;align-items:center;gap:12px;min-width:0;border:1px solid var(--border);border-radius:12px;padding:12px;max-width:100%}.attachment>span:not(.file-type){min-width:0;flex:1}.attachment strong{font-size:12.5px;font-weight:450;display:block;overflow-wrap:anywhere}.attachment small{display:block;font-size:11px;color:var(--text-muted);margin-top:3px}.attachment .secondary{font-size:12px;min-height:32px;padding:6px 10px}.attachment .icon{width:16px;height:16px}.file-type{display:flex;align-items:center;justify-content:center;flex:none;background:var(--info-bg);color:var(--info-text);width:40px;height:40px;border-radius:8px;font-size:9px;font-weight:600}.reply-actions{border-top:1px solid var(--border);display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:24px;padding-top:20px}.trash-note{display:flex;flex-direction:column;gap:3px;padding:10px 14px;background:var(--surface-subtle);border-bottom:1px solid var(--border);font-size:12px;color:var(--text-muted)}.trash-note>.text-button{align-self:flex-start;padding:4px 0;font-size:12px}.nav-backdrop,.mobile-compose,.mobile-section-header{display:none}[data-text-size=small]{--letter-font:14px}[data-text-size=large]{--letter-font:17px}
#section-view{flex:1;min-height:0;overflow:auto;background:var(--surface-subtle);padding:32px;display:flex;flex-direction:column;gap:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-heading h1{font-size:24px}.section-heading p{font-size:13px;color:var(--text-muted);margin-top:8px;line-height:1.6}.section-heading .primary{min-height:40px;font-size:13px}.panel{border:1px solid var(--border);border-radius:14px;background:var(--surface);overflow:hidden;flex-shrink:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 22px;border-bottom:1px solid var(--border)}.panel-heading h2{display:flex;align-items:center;gap:8px;font-size:16px}.panel-heading>.muted{font-size:12px;max-width:460px;text-align:right}.team-table-heading,.team-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 100px;align-items:center;gap:20px;padding:18px 22px;border-bottom:1px solid var(--border-subtle)}.team-table-heading{font-size:12px;color:var(--text-muted);padding-top:12px;padding-bottom:12px;background:var(--surface-subtle)}.team-row:last-child{border-bottom:0}.team-row>.badge{width:fit-content}.person{display:flex;align-items:center;gap:12px;min-width:0}.person>div{min-width:0}.person strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.person small{font-size:12px;color:var(--text-muted);display:block;margin-top:4px;overflow-wrap:anywhere}.status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.status-card{padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:13px}.status-card h2{font-size:16px}.status-card p{font-size:12px;color:var(--text-muted);line-height:1.7}.status-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px}.domain-row{display:flex;align-items:center;gap:14px;padding:18px 22px;border-bottom:1px solid var(--border-subtle);min-width:0;flex-wrap:wrap}.domain-row>strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.domain-row .badge{margin-left:auto;font-size:11px}.domain-symbol{font-size:23px;color:var(--accent-text);background:var(--accent-soft);width:38px;height:38px;border-radius:10px;text-align:center}.panel-note{padding:16px 22px;font-size:12px;color:var(--text-muted);line-height:1.6}.queue-summary{display:flex;flex-wrap:wrap;gap:10px;padding:20px 22px}.settings-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-top:-7px;flex-shrink:0;overflow-x:auto}.settings-tabs button{font-size:13px;white-space:nowrap;padding:14px 13px;color:var(--text-muted);border-bottom:2px solid transparent}.settings-tabs button.active{border-bottom-color:var(--accent);color:var(--accent-text);font-weight:600}.settings-content{display:flex;flex-direction:column;gap:20px;max-width:1000px}.settings-card{padding:22px;display:flex;flex-direction:column;gap:20px}.settings-card>h2{font-size:16px}.profile-line{display:flex;gap:12px;align-items:center}.profile-line>div{flex:1;min-width:0}.profile-line strong{font-size:14px}.profile-line p{font-size:13px;color:var(--text-muted);margin-top:4px;overflow-wrap:anywhere}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:24px}.setting-row strong{font-size:13px;font-weight:500}.setting-row p{font-size:12px;color:var(--text-muted);margin-top:5px;line-height:1.6}.setting-row+.setting-row{border-top:1px solid var(--border-subtle);padding-top:20px}.setting-row .secondary{font-size:12px}.section-description{color:var(--text-muted);font-size:13px;margin-top:-10px}.appearance-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;max-width:1080px;align-items:start}.appearance-controls{display:flex;flex-direction:column;gap:16px;min-width:0}.theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.preference-choice{position:relative;display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;gap:7px;cursor:pointer;border:1px solid var(--border);border-radius:12px;padding:11px;min-width:0}.preference-choice:has(input:checked){border-color:var(--accent);outline:1px solid var(--accent);background:color-mix(in srgb,var(--accent) 4%,var(--surface))}.preference-choice input{width:17px;height:17px;margin:0;accent-color:var(--accent);flex-shrink:0}.preference-choice>span{font-size:13px;font-weight:500}.preference-choice>small{display:block;flex-basis:100%;font-size:11px;color:var(--text-muted);line-height:1.5}.theme-choices .preference-choice{display:block}.theme-choices .preference-choice>input{position:absolute;left:11px;bottom:42px}.theme-choices .preference-choice>span{display:flex;flex-direction:column;padding-bottom:4px}.theme-choices .preference-choice>span:last-of-type{font-size:12px}.theme-preview{display:block;width:100%;height:78px;border:1px solid #e3e5e8;border-radius:8px;position:relative;background:#fff;margin-bottom:12px;overflow:hidden;padding:10px 10px 10px 28px}.theme-preview:before{content:'';position:absolute;left:0;top:0;bottom:0;width:22px;background:#f0f2f4}.theme-preview i{display:block;height:5px;background:#dfe2e6;border-radius:3px;margin-bottom:5px;width:88%}.theme-preview i:nth-child(2){width:72%}.theme-preview i:nth-child(3){width:40%}.theme-preview b{display:block;background:#0b6a6e;width:40px;height:9px;border-radius:2px;margin-top:14px}.theme-preview.dark{background:#1b1d21;border-color:#2c2f35}.theme-preview.dark:before{background:#141518}.theme-preview.dark i{background:#3a3e45}.theme-preview.dark b{background:#5cd0c8}.theme-preview.system{background:linear-gradient(90deg,#fff 50%,#1b1d21 50%)}.dark-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.accent-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.accent-choices .preference-choice{display:flex;flex-direction:column;align-items:center;padding:10px 5px}.accent-choices input{position:absolute;opacity:0}.accent-choices .preference-choice>span{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:10px}.accent-swatch{display:block;width:31px;height:31px;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 3px color-mix(in srgb,var(--swatch) 60%,white)}.preference-choice:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}.accent-choices input:checked+span>.accent-swatch:after{content:'✓';display:block;text-align:center;color:white;font-size:17px;padding-top:3px}.settings-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.segmented{display:flex;border-radius:10px;background:var(--surface-muted);padding:4px;gap:3px}.segmented .preference-choice{padding:9px 8px;flex:1;justify-content:center;border:0;border-radius:8px}.segmented .preference-choice:has(input:checked){background:var(--surface);outline:none}.segmented input{position:absolute;opacity:0}.segmented .preference-choice>span{font-size:12px}.appearance-preview{padding:16px;position:sticky;top:0;display:flex;flex-direction:column;gap:14px}.appearance-preview h3{font-size:12px;color:var(--text-muted)}.preview-message{padding:12px;background:var(--accent-selected);border-radius:10px;font-size:12px;display:flex;flex-direction:column;gap:5px}.preview-message time{float:right;color:var(--accent-text);font-size:11px}.preview-message p{font-size:11px;color:var(--text-muted)}.preview-body{font-size:var(--letter-font);line-height:1.65;color:var(--text-body)}.appearance-preview>.primary{align-self:flex-start}.appearance-preview .form-hint{font-size:10px}.section-loading{padding:70px;text-align:center;color:var(--text-muted)}.import-list{display:flex;flex-direction:column;gap:24px}.import-card{padding:22px;display:flex;flex-direction:column;gap:14px}.import-card-header{display:flex;align-items:center;gap:12px}.provider-mark{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;font-weight:650;font-size:17px;background:var(--accent-soft);color:var(--accent-text);flex-shrink:0}.import-card-header>div{flex:1;min-width:0}.import-card h2{font-size:16px}.import-card-header p{font-size:13px;color:var(--text-muted);margin-top:3px;overflow-wrap:anywhere}.import-card progress{margin:0}.import-progress{font-size:13px}.import-details{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;margin-top:3px}.import-details>div{display:flex;flex-direction:column;gap:5px;font-size:12px;overflow-wrap:anywhere}.import-details small{color:var(--text-muted);font-size:12px}.import-actions{display:flex;flex-wrap:wrap;gap:10px}.import-actions .secondary{font-size:12px}.import-empty{min-height:400px;border:1px dashed var(--border-strong);border-radius:14px;background:var(--surface)}.import-empty p{max-width:480px}.import-empty small{font-size:11px}.import-dialog{width:620px}.wizard-steps{display:flex;align-items:center;gap:16px;padding:0 24px 18px;border-bottom:1px solid var(--border);font-size:12px;color:var(--text-muted)}.wizard-steps .active{color:var(--accent-text);font-weight:600}.provider-choices{display:flex;flex-direction:column;gap:10px;margin:20px 0 5px}.provider-choice{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:12px;text-align:left}.provider-choice>strong{flex:1;font-size:14px;font-weight:500}.provider-choice.active{border-color:var(--accent);background:var(--accent-soft)}.provider-choice>.icon{color:var(--text-muted)}.connected-account{display:flex;align-items:center;gap:8px;padding-bottom:10px;font-size:13px;color:var(--success-text);overflow-wrap:anywhere}.folder-choices{border:1px solid var(--border);border-radius:10px;max-height:200px;overflow:auto;margin:12px 0 18px}.folder-choices label{display:flex!important;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid var(--border-subtle);margin:0!important}.folder-choices label:last-child{border-bottom:0}.folder-choices input{width:16px!important;accent-color:var(--accent);margin:0!important;min-height:0!important}.folder-choices label>span{flex:1;overflow-wrap:anywhere}.folder-choices small{font-size:11px;color:var(--text-muted)}.checkbox-label{display:flex!important;align-items:center;gap:10px;font-size:12px!important}.checkbox-label input{width:17px!important;height:17px;accent-color:var(--accent);min-height:0!important;margin:0!important}.import-estimate{display:flex;flex-direction:column;gap:6px;background:var(--surface-subtle);border:1px solid var(--border);border-radius:10px;padding:12px;margin-top:20px;font-size:12px}.import-estimate strong{font-size:13px;font-weight:500}.import-estimate p{line-height:1.6;margin-top:4px}
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px;background:var(--surface-subtle)}.auth-card{border:1px solid var(--border);border-radius:18px;background:var(--surface);padding:32px;width:440px;max-width:100%}.auth-title{margin-bottom:26px}.auth-title .brand{margin-bottom:27px}.auth-title h1{font-size:24px;margin-bottom:12px}.auth-title>p{color:var(--text-muted);font-size:13px;line-height:1.6}.auth-form>label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:500;margin:18px 0}.auth-form .primary{min-height:40px;margin-top:14px}.auth-caption{text-align:center;color:var(--text-muted);font-size:11px;margin-top:20px}.reauth-dialog{padding:28px!important}.reauth-dialog .auth-title h1{font-size:20px}.setup-success{padding:32px;display:flex;flex-direction:column;gap:16px;align-items:center;text-align:center}.setup-success>p{font-size:13px;line-height:1.6}.success-mark{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;background:var(--success-bg);color:var(--success-text)}.success-mark .icon{width:27px;height:27px}input:not([type=checkbox]):not([type=radio]):not([type=file]),select{background:var(--surface);color:var(--text);border:1px solid var(--border-strong);border-radius:10px;padding:10px 12px;min-width:0;min-height:40px}input::placeholder{color:var(--icon-muted)}select{cursor:pointer}.auth-form input:focus,.form-content input:focus,.form-content select:focus{border-color:var(--accent)}dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;box-shadow:0 24px 64px #15171c47;padding:0;width:460px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto}dialog::backdrop{background:rgba(10,15,24,.4)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px 18px}.dialog-heading h2{font-size:18px;line-height:1.4}.dialog-heading .muted{font-size:12px;margin-top:5px}.dialog-body{padding:0 24px 12px;font-size:13px;line-height:1.7;color:var(--text-muted)}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:18px 24px 22px;border-top:1px solid var(--border)}.form-content{padding:2px 24px 22px}.form-content>label{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-size:13px}.form-content label>input,.form-content label>select{width:100%}.inline-notice{padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-subtle);font-size:12px;color:var(--text-muted);line-height:1.6}.inline-notice.warning{border-color:var(--warning-border);background:var(--warning-bg);color:var(--warning-text)}.schedule-presets{padding:0 12px 8px}.schedule-presets .menu-item{padding:13px 12px}.compose-dialog{width:1060px;height:min(900px,94dvh);max-height:94dvh;border-radius:14px;overflow:hidden}.composer{display:flex;flex-direction:column;height:100%;min-height:0}.composer-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 24px;border-bottom:1px solid var(--border);min-height:62px;flex-shrink:0}.composer-heading>div:first-child{display:flex;align-items:center;gap:12px;min-width:0}.composer-heading h2{font-size:16px}.composer-heading .muted{font-size:12px}.compose-scroll{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:0 28px}.compose-fields{flex-shrink:0}.compose-field{display:flex;align-items:center;gap:12px;padding:8px 0;min-height:55px;border-bottom:1px solid var(--border-subtle)}.compose-field>span:first-child{color:var(--text-muted);font-size:13px;width:52px;flex-shrink:0}.compose-field input{border:0!important;background:none!important;outline:none;min-height:36px!important;padding:6px 0!important;font-size:13.5px;flex:1;min-width:0;border-radius:0!important}.compose-field input:focus-visible{outline:0}.compose-field:focus-within{border-color:var(--accent)}.from-field{font-size:13px;line-height:1.6}.from-field small{color:var(--text-muted);font-size:12px;margin-left:4px}.from-field>span:last-child{min-width:0;overflow-wrap:anywhere}.editor-toolbar{display:flex;align-items:center;gap:3px;padding:6px 8px;min-height:42px;margin:12px 0;border:1px solid var(--border);border-radius:10px;background:var(--surface-subtle);position:sticky;top:0;z-index:6;flex-shrink:0;flex-wrap:wrap}.editor-toolbar select{font-size:12px!important;padding:4px 18px 4px 6px!important;min-height:28px!important;border:0!important;border-radius:7px!important;background:transparent!important;max-width:140px}.editor-toolbar select[data-font]{max-width:125px}.editor-toolbar .icon-button{width:30px;height:30px;padding:7px;border-radius:7px}.editor-toolbar .icon{width:16px;height:16px}.format-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:16px;border-radius:7px;color:var(--text-secondary)}.format-button.bold{font-weight:700}.format-button.italic{font-family:Georgia,serif;font-style:italic}.format-button.underlined{text-decoration:underline}.format-button:hover,.editor-toolbar .icon-button:hover{background:var(--surface-muted)}.format-button.active,.editor-toolbar .active{background:var(--accent-soft);color:var(--accent-text)}.editor-toolbar .toolbar-separator{height:20px;margin:0 3px}.format-palette{position:relative}.format-palette>summary{display:flex;align-items:center;justify-content:center;gap:2px;width:40px;height:30px;list-style:none;font-size:17px;border-radius:7px;cursor:pointer}.format-palette>summary::-webkit-details-marker{display:none}.format-palette>summary:hover{background:var(--surface-muted)}.format-palette summary .icon{width:11px;height:11px}.palette-popover{position:absolute;left:0;top:36px;width:260px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 32px #15171c29;z-index:10}.palette-popover>strong{font-size:13px;display:block;margin-bottom:12px}.palette-popover>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.color-choice{display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px 2px;border-radius:7px;font-size:9px}.color-choice:hover{background:var(--surface-hover)}.swatch{display:block;width:27px;height:27px;background:var(--swatch);border:1px solid var(--border-strong);border-radius:50%}.no-color{background:linear-gradient(135deg,transparent 47%,var(--danger) 48%,var(--danger) 52%,transparent 53%)}.editor-area{min-height:270px;flex:1}.tiptap{outline:none!important;min-height:260px;font-size:15px;line-height:1.65;padding:0 0 30px;overflow-wrap:anywhere}.tiptap p{margin:0 0 14px}.tiptap a{cursor:text}.tiptap h1,.tiptap h2,.tiptap h3{font-weight:600}.compose-attachments{flex-shrink:0;padding:15px 0 22px;border-top:1px solid var(--border)}.attachments-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.attachments-heading strong{font-size:12px;font-weight:500}.attachments-heading small{font-size:11px;color:var(--text-muted)}#compose-files{display:flex;flex-wrap:wrap;gap:9px}.file-card{flex:1 1 300px;padding:10px;border-radius:10px}.file-card strong{font-size:12px}.file-card>.icon{color:var(--text-muted)}.file-card>.icon-button{width:28px;height:28px}.composer-footer{display:flex;align-items:center;gap:9px;min-height:68px;padding:14px 28px;border-top:1px solid var(--border);flex-shrink:0}.composer-footer .primary,.composer-footer .secondary{font-size:12px;min-height:40px}.send-split{display:flex;align-items:stretch}.send-split .primary:first-child{border-radius:10px 0 0 10px}.send-split .primary:last-child{border-left:1px solid color-mix(in srgb,var(--on-accent) 30%,transparent);border-radius:0 10px 10px 0;padding:9px}.attach-label,.mobile-attach{position:relative;overflow:hidden;cursor:pointer}.file-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.composer-footer .danger-text{font-size:11px;white-space:nowrap}.shortcut{font-size:10px;margin-left:auto;white-space:nowrap}.composer-error{margin:0;padding:12px 28px;background:var(--danger-bg);flex-shrink:0}.mobile-compose-actions,.mobile-attach{display:none}#toast{display:flex;align-items:center;gap:20px;position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);opacity:0;pointer-events:none;border:1px solid var(--border);background:var(--text);color:var(--surface);border-radius:10px;padding:13px 18px;max-width:min(680px,94vw);box-shadow:0 12px 32px #15171c29;font-size:13px;line-height:1.5;z-index:30;transition:opacity .15s,transform .15s}#toast.visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}#toast.error{background:var(--danger-bg);color:var(--danger-text)}#toast button{font-size:12px;text-decoration:underline;color:inherit;white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:3px}
@media(max-width:1399px){#mail-view{grid-template-columns:360px minmax(0,1fr)}.reader-toolbar{gap:5px;padding:12px 16px}.reader-main-actions,.reader-icon-actions{gap:3px}.reader-main-actions .secondary{padding:7px 9px;font-size:12px}.reader-icon-actions .icon-button{width:30px}.reader-toolbar .toolbar-separator{margin:0 1px}.message-content{padding:28px 32px}.appearance-layout{grid-template-columns:minmax(0,1fr) 250px}.accent-choices{gap:6px}.accent-choices .preference-choice>span{font-size:9px}.shortcut{display:none}}
@media(max-width:1199px){#mail-view{grid-template-columns:320px minmax(0,1fr)}.reader-main-actions .secondary span{display:none}.reader-main-actions .secondary{width:34px;padding:8px}.reader-icon-actions .icon-button{width:30px}.message-content{padding:24px}.sender-details{flex-wrap:wrap;gap:10px}.sender-details time{max-width:130px;font-size:11px}.sender-name{display:block}.sender-name>span{display:block;margin-top:4px}.recipients{font-size:11px}.message-checkbox{width:36px;padding-left:12px}.msg-open{padding-left:10px}.message-star{padding-right:11px;padding-left:7px}.search-scope{font-size:9px}.message-top{font-size:12px}.message-top>span{font-size:11px;gap:4px}.message-subject{font-size:12.5px}.message-preview{font-size:11.5px}.appearance-layout{grid-template-columns:minmax(0,1fr)}.appearance-preview{display:none}.status-grid{gap:12px}.status-card{padding:18px}.status-card h2{font-size:14px}.status-card p{font-size:11px}.composer-footer{padding-left:20px;padding-right:20px;gap:7px}.composer-footer .danger-text>span{display:none}.theme-preview{height:75px}}
@media(max-width:959px){:root{--sidebar-width:72px}.sidebar{padding:20px 9px 14px;gap:22px}.sidebar-brand{padding:0;justify-content:center}.sidebar .brand>span:last-child{display:none}.sidebar .compose-main{font-size:0;padding:10px;min-height:44px;gap:0}.sidebar .compose-main .icon{width:21px;height:21px}.sidebar .compose-main>span{display:none}.sidebar .nav-link{justify-content:center;padding:10px;min-height:44px}.sidebar .nav-link>span,.sidebar .nav-link>small,.sidebar-caption,.sidebar .attention-dot,.sidebar .storage,.sidebar .account>span:nth-child(2),.sidebar .account>.icon{display:none}.sidebar .nav-link .icon{width:20px;height:20px}.sidebar .sidebar-group{border-top:1px solid var(--border);padding-top:16px}.sidebar .account{justify-content:center;border:0;background:none;padding:4px;min-height:44px}.sidebar .account .avatar{width:36px;height:36px}#mail-view{display:block;position:relative}.message-list-panel{height:100%;border-right:0}.message-list-panel .list-heading>.icon-button{display:inline-flex}.list-heading{padding:14px 20px;min-height:64px}.list-heading h1{font-size:22px}.list-heading>.unread-caption{font-size:13px}.search{margin-left:24px;margin-right:24px}.search-scope{font-size:12px}.message-row{min-height:92px}.message-checkbox{width:42px;padding-left:20px}.msg-open{padding:14px 8px 14px 14px}.message-top{font-size:14px}.message-top>span{font-size:12px;gap:8px}.message-subject{font-size:14px}.message-preview{font-size:13px}.message-star{padding:15px 23px 10px 10px}.message-star .icon{width:18px;height:18px}#reader{display:none}#reader.has-message{display:block;position:absolute;inset:0;background:var(--surface);z-index:4}#reader-back{display:inline-flex}.reader-toolbar{gap:8px;padding:12px 18px}.reader-main-actions{margin-left:2px;gap:8px}.reader-main-actions .secondary{width:auto;padding:8px 12px}.reader-main-actions .secondary>span{display:inline}.reader-icon-actions .icon-button{width:34px}.reader-toolbar>.toolbar-separator{display:none}.reader-menu{margin-left:auto}.message-content{padding:28px 32px}.sender-details{flex-wrap:nowrap}.sender-details time{font-size:12px;max-width:160px}.sender-name{display:flex}.sender-name span{margin:0}.recipients{font-size:12px}.message-content>h2{font-size:22px}.list-toolbar{padding-left:18px;padding-right:18px}.mobile-section-header{display:flex;align-items:center;gap:14px;min-height:64px;padding:12px 20px;border-bottom:1px solid var(--border);background:var(--surface)}.mobile-section-header>span{font-size:18px;font-weight:600;flex:1}.mobile-section-header>.avatar{display:none}.nav-open>.sidebar{position:absolute;left:0;top:0;bottom:0;width:248px;z-index:12;gap:20px;padding:20px 14px 16px;box-shadow:8px 0 32px #0002}.nav-open .sidebar .brand>span:last-child{display:block}.nav-open .sidebar-brand{justify-content:space-between;padding:0 8px}.nav-open .sidebar-brand>.icon-button{display:flex}.nav-open .sidebar .compose-main{font-size:14px;gap:8px}.nav-open .sidebar .compose-main>span{display:inline}.nav-open .sidebar .nav-link{justify-content:flex-start;min-height:38px}.nav-open .sidebar .nav-link>span{display:block}.nav-open .sidebar .nav-link>small{display:block;margin-left:auto}.nav-open .sidebar .sidebar-group{padding-top:0;border-top:0}.nav-open .sidebar-caption{display:flex}.nav-open .sidebar .storage{display:block}.nav-open .sidebar .account{border:1px solid var(--border);padding:9px;background:var(--surface)}.nav-open .sidebar .account>span:nth-child(2),.nav-open .sidebar .account>.icon{display:block}.nav-open>.nav-backdrop{display:block;position:absolute;inset:0;z-index:11;background:#0a0f1855;cursor:default}.status-grid{grid-template-columns:1fr}.status-card{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:9px 16px}.status-card .status-icon{grid-row:1/3}.status-card p{grid-column:2/4;font-size:12px}.status-card h2{font-size:16px}.team-table-heading,.team-row{grid-template-columns:minmax(0,1fr) 140px 90px;padding-left:20px;padding-right:20px}.theme-preview{height:85px}.settings-two{grid-template-columns:1fr 1fr}.compose-dialog{width:calc(100vw - 40px);height:94dvh;max-width:calc(100vw - 40px)}.composer-footer{gap:8px;flex-wrap:wrap;padding:12px 20px}.composer-footer .primary,.composer-footer .secondary{min-height:36px;font-size:11px}.compose-scroll{padding:0 22px}.editor-toolbar{gap:2px}.editor-toolbar select[data-font]{max-width:100px}.editor-toolbar select[data-style]{max-width:118px}.editor-toolbar .toolbar-separator{margin:0 1px}.import-details{gap:10px}}
@media(max-width:767px){:root{--sidebar-width:0px}.app>.sidebar{display:none}.app.nav-open>.sidebar{display:flex}.workspace{width:100%}.list-heading{padding:14px 16px;min-height:64px;gap:10px}.list-heading h1{font-size:22px}.list-heading .unread-caption{font-size:12px}.list-heading>.mobile-account{display:flex;width:34px;height:34px;margin-left:auto}.search{margin:2px 16px 12px;border:0;background:var(--surface-hover);padding:10px 12px;min-height:44px;border-radius:12px}.search input{font-size:14px}.search-scope{font-size:10px;max-width:50%;padding:6px}.list-toolbar{min-height:37px;padding:0 13px 7px}.list-toolbar .list-count{font-size:11px}.message-checkbox{display:none}.selection-mode .message-checkbox{display:flex;width:35px;padding:18px 0 0 15px}.message-row{min-height:92px}.msg-open{padding:13px 5px 14px 28px;gap:4px}.message-top{font-size:14px}.message-top>span{font-size:12px;gap:7px}.message-subject{font-size:14px}.message-preview{font-size:13px}.unread-dot{position:fixed;left:auto;top:auto;margin-left:-16px;margin-top:7px}.message-star{padding:14px 16px 10px 9px}.message-star .icon{width:19px;height:19px}#message-list{padding-bottom:80px}.mobile-compose{display:inline-flex;position:absolute;right:16px;bottom:20px;z-index:5;min-height:48px;padding:12px 19px;font-size:15px;border-radius:16px;box-shadow:0 6px 18px color-mix(in srgb,var(--accent) 28%,transparent)}.workspace:has(#reader.has-message)>.mobile-compose,.section-mode>.mobile-compose{display:none}.reader-toolbar{padding:9px 10px;min-height:60px;gap:4px}.reader-main-actions{gap:4px}.reader-main-actions .secondary{border:0;width:36px;height:36px;padding:8px}.reader-main-actions .secondary>span{display:none}.reader-icon-actions{gap:0;margin-left:auto}.reader-icon-actions .icon-button{width:32px;padding:7px}.reader-toolbar .icon{width:20px;height:20px}.reader-toolbar>.reader-menu{margin-left:0}.reader-menu>.icon-button{width:32px}.message-content{padding:22px 20px 35px}.message-content>h2{font-size:20px;line-height:1.4;margin-bottom:24px}.sender-details{gap:10px;flex-wrap:wrap;margin-bottom:25px}.sender-details>.avatar{width:36px;height:36px}.sender-details time{width:100%;max-width:none;font-size:11px;text-align:left;padding-left:46px;margin-top:-3px}.sender-name{display:block}.sender-name>strong{font-size:13px}.sender-name>span{font-size:11px;display:block;margin-top:2px}.recipients{font-size:11px;line-height:1.65}.mail-html{font-size:var(--letter-font);line-height:1.65}.attachments{gap:9px}.attachment{gap:10px;padding:11px}.attachment strong{font-size:12px}.attachment>.secondary{width:32px;height:32px;padding:7px}.attachment>.secondary>span{display:none}.file-type{width:34px;height:36px;font-size:8px}.reply-actions{gap:8px}.reply-actions .secondary,.reply-actions .text-button{font-size:12px;padding:9px}.scheduled-notice{padding:13px}.scheduled-notice>div{gap:5px}.scheduled-notice strong{font-size:12px}.scheduled-notice .text-button{font-size:11px}.delivery-block{padding:10px}.delivery-block .badge{font-size:10px}.delivery-block>div{gap:7px;font-size:11px}.mobile-section-header{padding:10px 16px;min-height:62px}.mobile-section-header>.avatar{display:flex}.mobile-section-header>span{font-size:20px}#section-view{padding:22px 16px 35px;gap:20px}.section-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.section-heading h1{font-size:23px}.section-heading p{font-size:12px;margin-top:7px}.section-heading .primary{font-size:12px;min-height:38px}.panel-heading{padding:16px;gap:10px;flex-wrap:wrap}.panel-heading h2{font-size:15px}.panel-heading>.muted{display:none}.team-table-heading{display:none}.team-row{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;padding:16px}.team-row>.person{width:100%;gap:10px}.team-row .person strong{font-size:14px}.team-row .person small{font-size:12px}.team-row>.badge{margin-left:46px;font-size:11px}.team-row .status-success{font-size:11px;align-self:center}.team-row .status-success .icon{width:14px;height:14px}.status-card{padding:16px;grid-template-columns:36px 1fr}.status-card>.badge{grid-column:2;justify-self:start;font-size:11px}.status-card p{grid-column:1/3;font-size:12px}.status-card>.status-icon{grid-row:auto}.status-card h2{font-size:15px}.domain-row{padding:16px;gap:11px}.domain-row .badge{font-size:10px}.domain-row>strong{font-size:13px}.domain-symbol{width:32px;height:32px;font-size:21px}.panel-note{padding:15px 16px;font-size:11px}.queue-summary{padding:18px 16px}.settings-tabs{margin:0 -2px}.settings-tabs button{font-size:12px;padding:12px 9px}.settings-card{padding:18px;gap:16px}.settings-card h2{font-size:15px}.setting-row{align-items:flex-start;flex-direction:column;gap:12px}.setting-row p{font-size:12px}.profile-line{flex-wrap:wrap}.profile-line>.badge{font-size:11px}.profile-line p{font-size:12px}.section-description{font-size:12px;line-height:1.65}.theme-choices{gap:8px}.theme-preview{height:62px;margin-bottom:9px;padding-left:24px;padding-right:6px;padding-top:9px}.theme-preview:before{width:18px}.theme-preview b{width:30px;height:7px;margin-top:10px}.theme-choices .preference-choice{padding:8px}.theme-choices .preference-choice>input{position:static;width:15px;height:15px;margin-top:2px;margin-bottom:5px}.theme-choices .preference-choice>span{font-size:11px}.theme-choices .preference-choice>small{font-size:9px}.theme-choices .preference-choice>span:last-of-type{font-size:11px}.dark-choices{gap:9px}.dark-choices .preference-choice{padding:11px 9px}.preference-choice>span{font-size:12px}.preference-choice>small{font-size:10px}.accent-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.accent-choices .preference-choice{padding:12px 6px}.accent-choices .preference-choice>span{font-size:11px}.settings-two{grid-template-columns:1fr;gap:16px}.settings-card .form-hint{font-size:11px}.import-card{padding:17px;gap:14px}.import-card-header{gap:9px;flex-wrap:wrap}.import-card-header>div{flex:1}.import-card-header h2{font-size:15px}.import-card-header p{font-size:11px}.import-card-header>.badge{margin-left:49px;font-size:11px}.import-details{grid-template-columns:1fr;gap:12px}.import-details>div{gap:3px}.import-actions{gap:8px}.import-actions .secondary{font-size:11px}.import-card>.muted{font-size:12px}.import-progress{font-size:12px}.import-empty{padding:40px 20px;min-height:380px}.import-empty h2{font-size:18px}.import-empty p{font-size:12px}.auth-page{padding:20px}.auth-card{padding:26px 22px;max-width:410px}.auth-title h1{font-size:23px}.auth-title p{font-size:12px}.auth-caption{font-size:10px}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px}.dialog-heading{padding:20px 20px 15px}.dialog-heading h2{font-size:18px}.dialog-body{padding:0 20px 16px}.dialog-footer{padding:16px 20px 20px;gap:8px}.dialog-footer .primary,.dialog-footer .secondary{font-size:12px}.form-content{padding:0 20px 18px}.wizard-steps{padding-left:20px;padding-right:20px;gap:10px;font-size:11px}.import-dialog .form-content>.inline-notice{font-size:11px}.compose-dialog{margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.composer-heading{padding:10px 14px;min-height:60px;gap:10px;flex-direction:row-reverse}.composer-heading>div:first-child{flex:1;gap:0;min-width:0}.composer-heading h2{font-size:18px;white-space:nowrap}.composer-heading #compose-status{display:none}.composer-heading>.icon-button{order:2;width:32px;height:36px}.mobile-compose-actions{display:flex!important;gap:8px;order:-1}.mobile-compose-actions .icon-button{width:40px;height:40px}.mobile-compose-actions .icon-button:last-child{background:var(--accent);color:var(--on-accent);border-radius:12px}.mobile-compose-actions .icon{width:23px;height:23px}.compose-scroll{padding:0 16px}.from-field{display:none}.compose-field{min-height:54px;padding:8px 0;gap:8px}.compose-field>span:first-child{width:44px;font-size:14px}.compose-field input{font-size:14px!important;padding:7px 0!important}.editor-area{order:2;min-height:260px;padding-top:18px}.tiptap{min-height:250px;font-size:16px;line-height:1.65;padding-bottom:24px}.editor-toolbar{order:4;position:sticky;top:auto;bottom:0;border-radius:0;background:var(--surface-subtle);border:0;border-top:1px solid var(--border);flex-wrap:nowrap;min-height:48px;margin:0 -16px;padding:6px 12px;overflow-x:auto;overflow-y:visible;gap:3px}.editor-toolbar>*{flex-shrink:0}.editor-toolbar select{max-width:120px;font-size:11px!important}.editor-toolbar select[data-font]{max-width:100px}.editor-toolbar .icon-button,.format-button{width:34px;height:34px}.editor-toolbar .icon{width:18px;height:18px}.format-button{font-size:18px}.format-palette>summary{height:34px;width:38px}.palette-popover{position:fixed;top:auto;bottom:110px;left:16px;width:270px}.compose-attachments{order:3;border-top:1px solid var(--border);padding:15px 0 20px}.attachments-heading strong{font-size:12px}.attachments-heading small{font-size:10px}.mobile-attach{display:inline-flex;margin-top:12px;font-size:12px;min-height:36px}.file-card{flex-basis:100%;padding:10px}.file-card strong{font-size:11px}.composer-footer{padding:9px 16px;min-height:48px;gap:8px;justify-content:flex-end}.composer-footer .send-split,.composer-footer .attach-label,.composer-footer .shortcut{display:none}.composer-footer .secondary{font-size:11px;min-height:33px}.composer-footer .text-button{min-height:33px}.composer-error{padding:10px 16px;font-size:12px}.setup-success{padding:26px 22px}.setup-success h2{font-size:20px}#toast{bottom:16px;font-size:12px;padding:12px 14px;gap:12px;max-width:calc(100vw - 24px)}.bulk-actions .icon-button{width:32px}.list-toolbar .selected-count{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.mobile-select{display:none}@media(max-width:767px){.mobile-select{display:inline-flex;font-size:11px;padding:5px}.editor-toolbar:has(details[open]){z-index:15}}
.search input{border:0!important;border-radius:0!important;min-height:0!important;padding:0!important;background:transparent!important;outline:none!important}:root[data-accent]{--accent-soft:color-mix(in srgb,var(--accent) 12%,var(--surface));--accent-selected:color-mix(in srgb,var(--accent) 10%,var(--surface))}
@media(min-width:960px) and (max-height:800px){.sidebar{gap:12px;padding-top:16px;padding-bottom:12px}.nav-link{min-height:34px;padding-top:7px;padding-bottom:7px}.sidebar-group{gap:3px}.sidebar-bottom{gap:10px}.sidebar-caption{font-size:11px}.company-nav{gap:4px}}

@media(max-width:767px){.unread-dot{display:none}.message-row.unread .msg-open:before{content:"";position:absolute;left:12px;top:21px;width:6px;height:6px;border-radius:50%;background:var(--accent)}.msg-open{position:relative}}

@media(max-width:767px){.app{grid-template-columns:minmax(0,1fr)}}

@media(max-width:959px){#mail-view:has(#reader.has-message) .message-list-panel{display:none}}
@media(max-width:767px){.message-list-panel:not(.selection-mode) .select-page{display:none}}

/* Only the editor display changes in dark themes; saved colours retain the email palette. */
:root:not([data-theme="light"]) .tiptap span[style*="color: #15171c"][style]:not([style*="background-color"]),:root:not([data-theme="light"]) .tiptap span[style*="color: rgb(21, 23, 28)"][style]:not([style*="background-color"]){color:#eceef1!important}
:root:not([data-theme="light"]) .tiptap span[style*="color: #454b55"][style]:not([style*="background-color"]),:root:not([data-theme="light"]) .tiptap span[style*="color: rgb(69, 75, 85)"][style]:not([style*="background-color"]){color:#c9cdd3!important}
:root:not([data-theme="light"]) .tiptap span[style*="color: #8b1e1a"][style]:not([style*="background-color"]),:root:not([data-theme="light"]) .tiptap span[style*="color: rgb(139, 30, 26)"][style]:not([style*="background-color"]){color:#f2958e!important}
:root:not([data-theme="light"]) .tiptap span[style*="color: #843600"][style]:not([style*="background-color"]),:root:not([data-theme="light"]) .tiptap span[style*="color: rgb(132, 54, 0)"][style]:not([style*="background-color"]){color:#f3b078!important}
:root:not([data-theme="light"]) .tiptap span[style*="color: #705000"][style]:not([style*="background-color"]),:root:not([data-theme="light"]) .tiptap span[style*="color: rgb(112, 80, 0)"][style]:not([style*="background-color"]){color:#f0c77a!important}
:root:not([data-theme="light"]) .tiptap span[style*="color: #175c32"][style]:not([style*="background-color"]),:root:not([data-theme="light"]) .tiptap span[style*="color: rgb(23, 92, 50)"][style]:not([style*="background-color"]){color:#7fd3a0!important}
:root:not([data-theme="light"]) .tiptap span[style*="color: #07585c"][style]:not([style*="background-color"]),:root:not([data-theme="light"]) .tiptap span[style*="color: rgb(7, 88, 92)"][style]:not([style*="background-color"]){color:#7fd9d2!important}
:root:not([data-theme="light"]) .tiptap span[style*="color: #174496"][style]:not([style*="background-color"]),:root:not([data-theme="light"]) .tiptap span[style*="color: rgb(23, 68, 150)"][style]:not([style*="background-color"]){color:#9dbbea!important}
:root:not([data-theme="light"]) .tiptap span[style*="color: #533093"][style]:not([style*="background-color"]),:root:not([data-theme="light"]) .tiptap span[style*="color: rgb(83, 48, 147)"][style]:not([style*="background-color"]){color:#b9a3f5!important}
:root:not([data-theme="light"]) .tiptap span[style*="color: #7d2051"][style]:not([style*="background-color"]),:root:not([data-theme="light"]) .tiptap span[style*="color: rgb(125, 32, 81)"][style]:not([style*="background-color"]){color:#e5a3cb!important}
:root:not([data-theme="light"]) .tiptap span[style*="background-color"]{color:#15171c}

/* Sending budgets reuse the settings panels and dialog controls. */
.outbound-card{padding:24px}.outbound-card h3{margin:20px 0 12px}.outbound-card h3:first-child{margin-top:0}.outbound-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin:16px 0}.outbound-summary div{min-width:0}.outbound-summary dt{font-size:13px;color:var(--text-muted)}.outbound-summary dd{margin:6px 0 0;font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}.outbound-employee{display:flex;gap:12px;align-items:end;margin-top:20px}.outbound-employee label{flex:1;min-width:0}.outbound-employee select{width:100%;margin-top:8px}.outbound-dialog{width:min(680px,calc(100% - 32px))}.outbound-form fieldset{display:grid;grid-template-columns:1fr 1fr;gap:16px;border:0;padding:0;margin:16px 0 24px;min-width:0}.outbound-form legend{font-weight:600;margin-bottom:12px}.outbound-form label{display:flex;flex-direction:column;gap:8px;font-size:14px;min-width:0}.outbound-form input[type=number]{width:100%;box-sizing:border-box}.outbound-form .outbound-inherit{flex-direction:row;align-items:center}.outbound-inherit input{width:auto}.outbound-card .form-hint{line-height:1.6}.outbound-section .panel-heading{gap:12px}
@media(max-width:600px){.outbound-card{padding:16px}.outbound-employee{flex-direction:column;align-items:stretch}.outbound-form fieldset{grid-template-columns:1fr}.outbound-summary{grid-template-columns:1fr 1fr}.outbound-section .panel-heading{align-items:start;flex-direction:column}.outbound-summary dd{font-size:18px}}
