﻿/* Two themes share every component; no third-party assets required. */
:root{color-scheme:light;--bg:#f2f5f7;--surface:#fff;--surface-alt:#f7f9fa;--surface-hover:#eef3f4;--text:#192c35;--muted:#617680;--line:#dce5e8;--accent:#087e78;--accent-hover:#06665f;--accent-soft:#e1f3ef;--accent-text:#08675f;--danger:#b2323b;--danger-soft:#fff0f0;--success:#176849;--success-soft:#e8f6ee;--shadow:0 16px 50px #243e4c0a;--focus:#15998d;--header-height:76px;--font:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#101a21;--surface:#17252e;--surface-alt:#1c2d36;--surface-hover:#223944;--text:#e5eef1;--muted:#a2b7c0;--line:#30434d;--accent:#5bceb8;--accent-hover:#80dfcd;--accent-soft:#1b3c3b;--accent-text:#82dfcb;--danger:#ffacb3;--danger-soft:#3c272f;--success:#8bd8ad;--success-soft:#203b31;--shadow:0 16px 50px #00000014;--focus:#7be4cd}
*{box-sizing:border-box}html{font-family:var(--font);font-size:14px;line-height:1.55;background:var(--bg);color:var(--text);scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;min-height:100dvh}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:var(--accent-text);text-decoration:none}button:disabled{cursor:not-allowed;opacity:.55}svg{width:20px;height:20px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.25;letter-spacing:-.035em}h1{font-size:30px;font-weight:650;margin-bottom:10px}h2{font-size:20px;font-weight:650;margin-bottom:8px}h3{font-size:16px;font-weight:650;margin-bottom:8px}p{margin-bottom:16px}small{font-size:12px}img{max-width:100%}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}::selection{background:var(--accent-soft);color:var(--text)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:16px;background:var(--surface);padding:12px 20px;z-index:30;border-radius:10px}.skip-link:focus{top:12px}.honeypot{position:absolute;left:-10000px;opacity:0;width:1px;height:1px;overflow:hidden}.muted,.help-text{color:var(--muted)}.help-text{font-size:12px;margin:7px 0 0;line-height:1.6}.mono,code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92em}.eyebrow{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;color:var(--accent-text);margin-bottom:12px}.spacer{flex:1}.section-stack{display:grid;gap:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.section-heading h2{margin:0}.inline-form{display:inline-flex;gap:8px;align-items:center;margin:0}.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}
.btn,.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border:1px solid transparent;border-radius:10px;font-weight:600;font-size:13px;line-height:1.4;text-align:center;transition:background .18s,border-color .18s,transform .18s,color .18s;text-decoration:none;white-space:normal}.btn:active,.icon-btn:active{transform:translateY(1px)}.btn-primary{background:var(--accent);color:var(--surface)}:root[data-theme=dark] .btn-primary{color:#102c2a}.btn-primary:hover{background:var(--accent-hover)}.btn-secondary,.icon-btn{background:var(--surface);color:var(--text);border-color:var(--line)}.btn-secondary:hover,.icon-btn:hover{background:var(--surface-hover);border-color:var(--muted)}.btn-ghost{background:transparent;color:var(--muted)}.btn-ghost:hover{background:var(--surface-hover);color:var(--text)}.btn-danger{color:var(--danger);background:var(--danger-soft)}.btn-danger:hover{border-color:var(--danger)}.btn-sm{min-height:34px;padding:7px 11px;font-size:12px;border-radius:8px}.icon-btn{width:40px;height:40px;padding:9px}.btn-block{width:100%}.theme-toggle{white-space:nowrap}.theme-toggle svg{width:17px;height:17px}.theme-icon-dark{display:none}:root[data-theme=dark] .theme-icon-light{display:none}:root[data-theme=dark] .theme-icon-dark{display:block}.badge{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:3px 8px;border-radius:6px;background:var(--surface-hover);color:var(--muted);font-size:11px;line-height:1.4;font-weight:600;white-space:nowrap}.badge-success,.badge-unread{background:var(--accent-soft);color:var(--accent-text)}.badge-muted{background:var(--surface-hover);color:var(--muted)}.alert{padding:13px 16px;border-radius:10px;margin-bottom:18px;font-size:13px;border:1px solid var(--line);overflow-wrap:anywhere}.alert-error{color:var(--danger);background:var(--danger-soft);border-color:transparent}.alert-success{color:var(--success);background:var(--success-soft);border-color:transparent}
.field{display:flex;flex-direction:column;gap:7px;min-width:0;margin-bottom:18px}.field label,.field-label{font-size:12px;font-weight:600;color:var(--text)}.field input,.field textarea,.field select,.search-field input,input.control,select.control{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:11px 13px;background:var(--surface);color:var(--text);outline:none;transition:border-color .18s,box-shadow .18s}.field input:hover,.field textarea:hover,.field select:hover{border-color:var(--muted)}.field input:focus,.field textarea:focus,.field select:focus,.search-field input:focus{border-color:var(--focus);box-shadow:0 0 0 3px var(--accent-soft)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.8}.field textarea{resize:vertical;min-height:100px;line-height:1.6}.field input[type=checkbox],.field input[type=radio]{width:16px;min-height:16px;padding:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.field-wide{grid-column:1/-1}.password-wrap,.input-password{position:relative}.password-wrap input,.input-password input{padding-right:70px}.password-wrap button,.input-password button{position:absolute;right:7px;top:7px;height:31px;min-height:31px;padding:5px 9px;font-size:11px}.check,.radio-group{display:flex;align-items:center;gap:8px;font-size:13px}.check{cursor:pointer}.radio-group{flex-wrap:wrap;gap:16px}input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:16px;height:16px;flex-shrink:0}.search-field{display:flex;align-items:center;position:relative;min-width:0}.search-field>svg{position:absolute;left:13px;color:var(--muted);width:18px;height:18px}.search-field input{padding-left:40px;background:var(--surface-alt);border-color:transparent}.search-field input[type=search]{appearance:none}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.toolbar .search-field{flex:1;min-width:180px}.toolbar .meta{font-size:12px;color:var(--muted)}
.app-header{min-height:var(--header-height);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 28px;background:var(--surface);border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;gap:11px;color:var(--text);flex-shrink:0}.brand-mark{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;background:var(--accent);color:var(--surface);border-radius:11px;font-weight:700}.brand-mark svg{width:22px;height:22px}:root[data-theme=dark] .brand-mark{color:#102c2a}.brand-name{font-size:19px;font-weight:700;letter-spacing:-.045em}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:.07em;font-weight:500}.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}.app-header>.search-field{width:min(480px,38vw)}.account-chip{display:flex;align-items:center;gap:9px;font-size:12px;min-width:0}.account-address{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-chip .sender-avatar{width:32px;height:32px;font-size:12px}.page-wrap{width:min(1400px,100%);margin:auto;padding:32px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:26px}.page-heading p{margin:0;color:var(--muted);max-width:66ch}.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;min-width:0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}.panel-header h2,.panel-header h3,.panel-header p{margin:0}.panel-body{padding:24px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:56px 28px;color:var(--muted)}.empty-state>svg{width:42px;height:42px;opacity:.65;margin-bottom:6px}.empty-state h2,.empty-state h3{color:var(--text);margin:0}.empty-state p{max-width:38ch;margin:0}.empty-state .btn{margin-top:8px}
/* Sign-in */
.auth-page{display:flex;flex-direction:column;min-height:100dvh;background:var(--bg)}.auth-header{display:flex;justify-content:space-between;align-items:center;padding:26px 40px;gap:16px}.auth-main{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,460px);align-items:center;gap:clamp(40px,8vw,132px);width:min(1120px,100%);margin:auto;padding:36px 32px 60px}.auth-story{max-width:510px}.auth-story h1{font-size:clamp(38px,4.2vw,58px);line-height:1.1;letter-spacing:-.055em;font-weight:650;max-width:12ch;margin:18px 0 24px}.auth-story>p{font-size:16px;color:var(--muted);line-height:1.8;max-width:38ch}.auth-story em{font-style:normal;color:var(--accent-text)}.auth-art{position:relative;margin:38px 0 28px;padding:24px;border-radius:18px;background:var(--surface);border:1px solid var(--line);max-width:410px;box-shadow:var(--shadow)}.art-top{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid var(--line);font-size:12px;font-weight:600}.art-dots{display:flex;gap:5px}.art-dots span{height:5px;width:5px;border-radius:50%;background:var(--line)}.art-row{display:flex;align-items:center;gap:12px;padding-top:18px}.art-avatar{width:34px;height:34px;border-radius:10px;background:var(--accent-soft);color:var(--accent-text);display:grid;place-items:center}.art-lines{display:flex;flex-direction:column;gap:7px;flex:1}.art-lines i{display:block;height:6px;background:var(--line);border-radius:4px;width:82%}.art-lines i:first-child{width:48%;background:var(--muted);opacity:.45}.art-check{background:var(--accent-soft);color:var(--accent-text);width:22px;height:22px;display:grid;place-items:center;border-radius:50%;font-size:11px}.auth-features{display:flex;flex-wrap:wrap;gap:18px;color:var(--muted);font-size:12px}.auth-features span{display:flex;gap:6px;align-items:center}.auth-features svg{width:15px;height:15px;color:var(--accent-text)}.auth-card{padding:36px;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.auth-card h2{font-size:25px;margin-bottom:8px}.auth-card>.muted{font-size:13px;line-height:1.7;margin-bottom:28px}.auth-card .btn-block{min-height:46px}.auth-note{font-size:12px;color:var(--muted);line-height:1.7;margin:18px 0 0}.auth-divider{height:1px;background:var(--line);margin:24px 0}.auth-switcher{display:flex;flex-wrap:wrap;gap:7px}.auth-switcher a{flex:1;min-width:64px;font-size:11px;border:1px solid var(--line);padding:8px 6px;border-radius:8px;color:var(--muted);text-align:center}.auth-switcher a:hover,.auth-switcher a[aria-current=page]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text)}.auth-footer{padding:16px 40px 24px;display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}.auth-footer a{color:var(--muted)}.advanced-options{border-top:1px solid var(--line);padding:16px 0 0;margin:6px 0 20px}.advanced-options summary{font-size:12px;cursor:pointer;color:var(--muted);margin-bottom:12px}.advanced-options .form-grid{grid-template-columns:minmax(0,1fr) 100px}.advanced-options .field:last-child{margin-bottom:0}
/* Inbox */
.mail-layout{display:grid;grid-template-columns:224px minmax(320px,400px) minmax(0,1fr);min-height:calc(100dvh - var(--header-height));align-items:stretch}.mail-sidebar{display:flex;flex-direction:column;gap:6px;padding:24px 16px;border-right:1px solid var(--line);background:var(--bg);min-width:0}.sidebar-label{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:600;padding:14px 12px 6px}.nav-link{display:flex;align-items:center;gap:11px;width:100%;border:0;border-radius:10px;background:transparent;color:var(--muted);padding:11px 12px;font-size:13px;font-weight:500;min-height:43px;text-align:left;transition:background .18s,color .18s}.nav-link svg{width:18px;height:18px}.nav-link .badge,.nav-link .count{margin-left:auto}.nav-link:hover{background:var(--surface-hover);color:var(--text)}.nav-link.active,.nav-link.on,.nav-link[aria-current=page]{color:var(--accent-text);background:var(--accent-soft);font-weight:650}.sidebar-footer{margin-top:auto;padding:24px 10px 8px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.sidebar-footer p{font-size:11px;line-height:1.7;margin-top:8px}.sidebar-footer form{margin:0}.sidebar-footer .nav-link{padding-left:0}.mail-workspace{min-width:0;display:flex;flex-direction:column;background:var(--surface)}.mail-workspace>.toolbar,.mail-list-panel>.toolbar{padding:14px 20px;border-bottom:1px solid var(--line)}.mail-list-panel{min-width:0;background:var(--surface);border-right:1px solid var(--line)}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 20px 18px}.list-heading h1,.list-heading h2{font-size:22px;margin:0}.list-heading p{font-size:12px;color:var(--muted);margin:5px 0 0}.mail-list-panel>.search-field{margin:0 20px 16px}.mail-list{min-width:0}.mail-row{position:relative;display:flex;gap:12px;padding:19px 20px;border-bottom:1px solid var(--line);border-left:3px solid transparent;color:var(--text);transition:background .18s}.mail-row:hover{background:var(--surface-alt)}.mail-row.unread{background:var(--accent-soft);border-left-color:var(--accent)}.mail-row.unread:hover{filter:brightness(.98)}.mail-row.unread .mail-sender,.mail-row.unread .mail-subject{font-weight:650}.sender-avatar{width:36px;height:36px;border-radius:11px;background:var(--surface-hover);display:grid;place-items:center;color:var(--accent-text);font-size:14px;font-weight:600;flex-shrink:0;text-transform:uppercase}.mail-summary{flex:1;min-width:0}.mail-row-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}.mail-sender{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-date{font-size:10px;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}.mail-subject{font-size:13px;line-height:1.5;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px}.mail-preview{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.mail-reader{min-width:0;padding:32px;background:var(--surface-alt)}.mail-reader-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:calc(100dvh - 160px);text-align:center;color:var(--muted);padding:40px}.mail-reader-placeholder>svg{width:64px;height:64px;color:var(--accent-text);background:var(--accent-soft);padding:16px;border-radius:20px;margin-bottom:24px}.mail-reader-placeholder h2{font-size:21px;color:var(--text);margin-bottom:10px}.mail-reader-placeholder p{max-width:32ch;font-size:13px;line-height:1.8}.reader-layout{grid-template-columns:224px minmax(0,1fr)}.reader-layout .mail-reader{padding:32px;max-width:1400px;width:100%;margin:0 auto}.reader-header{padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:16px 16px 0 0}.reader-header h1{font-size:26px;line-height:1.4;overflow-wrap:anywhere;margin:20px 0}.mail-meta{display:flex;gap:12px;align-items:center;font-size:12px;flex-wrap:wrap;color:var(--muted)}.mail-meta strong{color:var(--text);font-weight:600}.mail-meta p{margin:3px 0;overflow-wrap:anywhere}.reader-body{padding:28px;border:1px solid var(--line);border-top:0;background:var(--surface);border-radius:0 0 16px 16px;min-height:360px}.mail-content{font-family:var(--font);font-size:14px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.mail-frame{width:100%;min-height:60dvh;background:#fff;border:0;border-radius:8px;display:block}.reader-notice{font-size:11px;color:var(--muted);padding:14px 0 0;line-height:1.7}.filter-tabs{display:flex;gap:5px;flex-wrap:wrap;padding:0 20px 16px}.filter-tabs a{font-size:11px;padding:6px 10px;border-radius:7px;color:var(--muted);background:var(--surface-alt)}.filter-tabs a[aria-current=page],.filter-tabs a.active{color:var(--accent-text);background:var(--accent-soft)}.settings-workspace{width:min(900px,100%);padding:36px;margin:0 auto;min-width:0}.settings-panel{padding:28px}.settings-summary{display:flex;align-items:center;gap:14px;padding:20px;background:var(--surface-alt);border-radius:12px;margin-bottom:26px;overflow-wrap:anywhere}.settings-summary p{margin:2px 0}.settings-panel .form-grid{max-width:640px}
/* Administration */
.admin-layout{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:calc(100dvh - var(--header-height))}.admin-nav{padding:26px 16px;border-right:1px solid var(--line);background:var(--bg)}.admin-main{padding:32px;min-width:0;max-width:1540px;width:100%;margin:0 auto}.admin-summary,.stats-grid,.admin-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}.stat-card{padding:20px 24px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}.stat-card .stat-label,.stat-card>p{color:var(--muted);font-size:12px;margin:0 0 8px}.stat-card .stat-value,.stat-card>strong{font-size:28px;line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.04em}.stat-card small{display:block;color:var(--muted);font-size:11px;margin-top:7px}.admin-section-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:24px}.admin-section-nav a{padding:8px 12px;color:var(--muted);border-radius:8px}.admin-section-nav a:hover{background:var(--surface-hover);color:var(--text)}.details-panel>summary,.bulk-editor>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;cursor:pointer;list-style:none;font-weight:600}.details-panel>summary::-webkit-details-marker,.bulk-editor>summary::-webkit-details-marker{display:none}.details-panel>summary:after,.bulk-editor>summary:after{content:"+";font-size:20px;color:var(--muted);font-weight:400}.details-panel[open]>summary{border-bottom:1px solid var(--line)}.details-panel[open]>summary:after,.bulk-editor[open]>summary:after{content:"−"}.details-panel>summary small{display:block;color:var(--muted);font-weight:400;font-size:12px;margin-top:4px}.table-wrap{overflow-x:auto;max-width:100%;scrollbar-width:thin}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.data-table th{background:var(--surface-alt);color:var(--muted);font-weight:600;font-size:10px;letter-spacing:.035em;padding:13px 16px;white-space:nowrap;border-bottom:1px solid var(--line)}.data-table td{padding:15px 16px;border-bottom:1px solid var(--line);vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:var(--surface-alt)}.data-table td .inline-form{margin:2px}.data-table td small{display:block;color:var(--muted);margin-top:3px;font-size:10px}.account-cell{font-weight:600;min-width:170px;overflow-wrap:anywhere}.account-cell small{font-weight:400}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;flex-wrap:wrap}.pagination{display:flex;align-items:center;gap:8px}.bulk-actions{padding:18px 24px;background:var(--surface-alt);border-top:1px solid var(--line)}.bulk-fields{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.bulk-fields .field{margin-bottom:0;flex:1;min-width:160px}.selection-status{font-size:12px;color:var(--muted);margin-bottom:12px}.admin-main .toolbar{margin-bottom:20px}.admin-main .toolbar .search-field{max-width:460px}.admin-main .panel>.toolbar{padding:18px 24px;margin:0;border-bottom:1px solid var(--line)}.page-footer{padding:24px 0;font-size:12px;color:var(--muted)}.settings-wrap{max-width:860px}
.page-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;flex-shrink:0}.page-heading-actions .btn svg{width:16px;height:16px}.provider-details{display:grid;gap:0;margin:2px 0 4px;border:1px solid var(--line);border-left:3px solid var(--accent);background:var(--surface-alt);border-radius:10px;overflow:hidden}.provider-detail{padding:14px 16px}.provider-detail[hidden]{display:none}.provider-detail p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.provider-detail p:first-of-type{margin-top:10px}.provider-detail-title{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text);font-size:13px}.provider-detail-title strong{font-size:15px;letter-spacing:-.01em}.provider-detail code{padding:2px 5px;background:var(--surface-hover);border:1px solid var(--line);border-radius:4px;color:var(--text)}
@media(min-width:1100px){.mail-layout:not(.reader-layout){height:calc(100dvh - var(--header-height));min-height:550px}.mail-list-panel,.mail-reader{overflow-y:auto;scrollbar-width:thin}.mail-sidebar{overflow-y:auto}}
@media(max-width:1200px){.mail-layout{grid-template-columns:190px minmax(290px,360px) minmax(0,1fr)}.reader-layout{grid-template-columns:190px minmax(0,1fr)}.app-header{gap:16px;padding-inline:20px}.admin-main{padding:24px}.account-address{max-width:160px}.admin-layout{grid-template-columns:185px minmax(0,1fr)}}
@media(max-width:960px){.mail-layout:not(.reader-layout){grid-template-columns:190px minmax(0,1fr)}.mail-layout:not(.reader-layout)>.mail-reader{display:none}.auth-main{gap:40px;grid-template-columns:minmax(0,1fr) minmax(340px,420px);padding-inline:28px}.auth-story h1{font-size:40px}.auth-art{padding:20px}.auth-card{padding:28px}.app-header>.search-field{display:none}.admin-layout{grid-template-columns:1fr}.admin-nav{display:flex;gap:8px;flex-wrap:wrap;padding:12px 24px;border-right:0;border-bottom:1px solid var(--line)}.admin-nav .nav-link{width:auto}.admin-nav .sidebar-label,.admin-nav .sidebar-footer{display:none}.stats-grid,.admin-summary,.admin-summary-grid{gap:10px}.stat-card{padding:18px}.admin-main{padding:24px}.reader-layout .mail-reader{padding:24px}}
@media(max-width:720px){:root{--header-height:68px}.app-header{padding:13px 16px;gap:12px;flex-wrap:wrap}.brand-name{font-size:17px}.brand-mark{width:34px;height:34px;border-radius:10px}.header-actions{gap:6px}.header-actions>.badge,.header-actions .account-chip{display:none}.theme-toggle{min-height:36px;padding:8px 10px;font-size:11px}.auth-header{padding:22px}.auth-main{grid-template-columns:minmax(0,1fr);max-width:490px;padding:12px 22px 32px;gap:24px}.auth-story{display:none}.auth-card{padding:28px 24px}.auth-footer{padding:16px 22px 24px;font-size:10px;flex-wrap:wrap}.mail-layout,.mail-layout:not(.reader-layout),.reader-layout{display:flex;flex-direction:column;min-height:calc(100dvh - var(--header-height))}.mail-sidebar{flex-direction:row;flex-wrap:wrap;align-items:center;padding:10px 12px;gap:5px;border-right:0;border-bottom:1px solid var(--line)}.mail-sidebar .sidebar-label,.mail-sidebar .sidebar-footer p,.mail-sidebar .sidebar-footer>.account-chip,.mail-sidebar .sidebar-footer>.muted{display:none}.mail-sidebar>.nav-link,.mail-sidebar>form{width:auto}.mail-sidebar .nav-link{width:auto;font-size:12px;padding:9px 10px;min-height:38px;gap:7px}.mail-sidebar .sidebar-footer{margin:0 0 0 auto;padding:0}.mail-list-panel{border-right:0}.mail-row{padding:17px 20px}.mail-reader,.reader-layout .mail-reader{padding:18px;max-width:none}.reader-header{padding:22px}.reader-header h1{font-size:23px}.reader-body{padding:20px}.settings-workspace{padding:24px 18px}.settings-panel{padding:22px}.page-heading{flex-direction:column;gap:14px;margin-bottom:22px}.page-heading h1{font-size:26px}.page-wrap{padding:24px 18px}.admin-main{padding:24px 16px}.admin-nav{padding:10px 16px}.admin-summary,.stats-grid,.admin-summary-grid{grid-template-columns:1fr}.stat-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px}.stat-card .stat-value,.stat-card>strong{font-size:24px}.stat-card small{display:none}.stat-card p{margin:0}.form-grid{grid-template-columns:1fr;gap:0}.panel-header{padding:18px;align-items:flex-start;flex-wrap:wrap}.panel-body,.bulk-actions{padding:18px}.details-panel>summary{padding:18px}.table-footer{padding:16px 18px}.section-heading{align-items:flex-start;flex-wrap:wrap}.toolbar .search-field{min-width:100%;max-width:none}.admin-main .panel>.toolbar{padding:16px 18px}.bulk-fields .field{min-width:100%}.mail-date{max-width:110px;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:720px){.page-heading-actions{width:100%;justify-content:stretch}.page-heading-actions .btn{flex:1}}
.auth-story .auth-headline{font-size:clamp(38px,4.2vw,58px);line-height:1.1;letter-spacing:-.055em;font-weight:650;max-width:12ch;margin:18px 0 24px}.auth-card h1{font-size:25px;margin-bottom:8px}.auth-switcher{margin-top:10px}.brand>span:last-child{font-size:18px;letter-spacing:-.035em}.brand .brand-name{font-size:19px}.stat-card>span,.stat-card>strong{display:block}.stat-card>strong{margin:10px 0}.account-cell>span{display:block}.admin-section-nav .nav-link{width:auto}.panel>.toolbar{padding:18px 24px;border-bottom:1px solid var(--line)}.toolbar input[type=search],.toolbar select{min-height:42px;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:var(--surface-alt);color:var(--text)}.toolbar input.search-field{flex:1;min-width:180px}.mail-layout{grid-template-columns:224px minmax(0,1fr)}.mail-workspace{display:grid;grid-template-columns:minmax(320px,400px) minmax(0,1fr);min-height:0}.mail-reader-placeholder{min-height:0}.reader-illustration{display:grid;place-items:center;width:96px;height:96px;background:var(--accent-soft);color:var(--accent-text);border-radius:28px;margin-bottom:20px}.reader-illustration svg{width:64px;height:64px}.badge-unread{display:inline-block;padding:2px 6px;border-radius:4px;font-size:9px;margin-top:7px}.mail-reader>.toolbar{margin-bottom:18px}.settings-panel>.panel-header{padding:0 0 22px;margin-bottom:22px}.settings-panel>.panel-header p{margin-top:7px;font-size:13px}.mail-sidebar nav{display:grid;gap:4px}.mail-frame{min-height:65dvh}.reader-notice{padding:0;margin:0 0 18px}.mail-list-panel>.alert{margin:14px 20px}.mail-list .mail-row:focus-visible{outline-offset:-4px}.admin-shell .page-wrap{gap:24px}.admin-shell .page-heading,.admin-shell .stats-grid,.admin-shell .admin-section-nav{margin-bottom:0}
@media(max-width:1200px){.mail-layout{grid-template-columns:190px minmax(0,1fr)}.mail-workspace{grid-template-columns:minmax(290px,360px) minmax(0,1fr)}}
@media(max-width:960px){.mail-layout:not(.reader-layout){grid-template-columns:190px minmax(0,1fr)}.mail-workspace{grid-template-columns:minmax(0,1fr)}.mail-workspace>.mail-reader-placeholder{display:none}.mail-list-panel{border-right:0}.auth-story .auth-headline{font-size:40px}}
@media(max-width:720px){.mail-layout,.mail-layout:not(.reader-layout){display:flex}.mail-workspace{display:block}.mail-sidebar nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.mail-sidebar nav .sidebar-label{display:none}.mail-sidebar .sidebar-footer{margin-left:auto}.mail-reader .mail-meta{align-items:flex-start}.mail-meta>.mail-date{max-width:100%;width:100%;margin-top:6px}.mail-list-panel>.toolbar{padding:12px 20px}.toolbar input.search-field{min-width:100%}.panel>.toolbar{padding:16px 18px}.stat-card{display:grid;grid-template-columns:1fr auto;gap:2px 12px}.stat-card>strong{grid-column:2;grid-row:1/3;margin:0}.stat-card>.help-text{grid-column:1}.admin-shell .app-header>.badge{display:none}.admin-shell .header-actions{flex-wrap:wrap}.admin-shell .header-actions .btn{font-size:11px;padding:8px 10px;min-height:36px}.admin-shell .app-header{align-items:center}.settings-summary{align-items:flex-start}.settings-summary>div{min-width:0}.settings-panel .form-grid{grid-template-columns:1fr}}
.toolbar .search-field input{padding-left:40px}.radio-group{margin:0;border:1px solid var(--line);border-radius:10px;padding:16px}.radio-group legend{padding:0 7px;font-size:12px;font-weight:600;color:var(--muted)}button.badge{border:1px solid transparent;transition:border-color .18s}button.badge:hover{border-color:var(--accent)}.toolbar select{max-width:100%}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* Ten selectable webmail palettes. The layout and controls stay identical; only the atmosphere changes. */
:root[data-theme="cinnabar"]{--bg:#f6f2ef;--surface:#fffdfb;--surface-alt:#faf6f3;--surface-hover:#fff0ed;--text:#2d2523;--muted:#756a66;--line:#e8ded9;--accent:#b5303c;--accent-hover:#962633;--accent-soft:#fbe8e5;--accent-text:#8f2732;--focus:#c3414b;--shadow:0 8px 28px #6e2b3014}
:root[data-theme="jade"]{--bg:#edf6f1;--surface:#fbfffc;--surface-alt:#f2faf6;--surface-hover:#e5f4ec;--text:#1d3029;--muted:#64786e;--line:#d6e7de;--accent:#16745e;--accent-hover:#0f5d4b;--accent-soft:#dff2e9;--accent-text:#145d4d;--focus:#2b9977;--shadow:0 8px 28px #175d4514}
:root[data-theme="ink"]{--bg:#111827;--surface:#1b2435;--surface-alt:#212c40;--surface-hover:#2a3850;--text:#edf2ff;--muted:#a7b3c8;--line:#34425a;--accent:#91a9ff;--accent-hover:#b6c5ff;--accent-soft:#2b385d;--accent-text:#c5d0ff;--focus:#9eb4ff;--shadow:0 12px 34px #05091470}
:root[data-theme="porcelain"]{--bg:#f5f8fc;--surface:#ffffff;--surface-alt:#f5f8fd;--surface-hover:#eaf1fb;--text:#243247;--muted:#6b7b91;--line:#dce5f0;--accent:#4169a1;--accent-hover:#315484;--accent-soft:#e4ecf8;--accent-text:#335787;--focus:#5f88c3;--shadow:0 8px 28px #38567a14}
:root[data-theme="midnight"]{--bg:#0f1524;--surface:#171f33;--surface-alt:#1d2941;--surface-hover:#263653;--text:#f3f6ff;--muted:#aab6cf;--line:#30415f;--accent:#79a4ff;--accent-hover:#a5c0ff;--accent-soft:#23385f;--accent-text:#bdd0ff;--focus:#8bb0ff;--shadow:0 12px 36px #05091580}
:root[data-theme="ocean"]{--bg:#eaf4f8;--surface:#fbfeff;--surface-alt:#f0f8fb;--surface-hover:#dff0f5;--text:#19323d;--muted:#607b86;--line:#d2e5eb;--accent:#126a8a;--accent-hover:#0d536d;--accent-soft:#d9eef4;--accent-text:#125c77;--focus:#2d8ba6;--shadow:0 8px 28px #1b637a16}
:root[data-theme="sakura"]{--bg:#fff3f7;--surface:#fffdfd;--surface-alt:#fff7fa;--surface-hover:#ffe9f0;--text:#3b2630;--muted:#896d79;--line:#f0d9e1;--accent:#c05279;--accent-hover:#a63e62;--accent-soft:#fbe1ea;--accent-text:#9e3f61;--focus:#d76a8e;--shadow:0 8px 28px #9d3e6416}
:root[data-theme="plum"]{--bg:#271d2c;--surface:#34243a;--surface-alt:#3d2b44;--surface-hover:#4a3452;--text:#f8effb;--muted:#cbb8d0;--line:#584260;--accent:#d28ad6;--accent-hover:#e5aae6;--accent-soft:#50375b;--accent-text:#e8b9e8;--focus:#dc9be0;--shadow:0 12px 34px #120b1670}
:root[data-theme="bamboo"]{--bg:#f1f6ed;--surface:#fcfff9;--surface-alt:#f5faef;--surface-hover:#e8f1df;--text:#263327;--muted:#71806d;--line:#dce7d5;--accent:#4d7d4f;--accent-hover:#3b643d;--accent-soft:#e0eedb;--accent-text:#416a43;--focus:#6b9a67;--shadow:0 8px 28px #43683b14}
:root[data-theme="sunset"]{--bg:#fff1e5;--surface:#fffdfa;--surface-alt:#fff6ed;--surface-hover:#ffe9d5;--text:#3c2a22;--muted:#876f61;--line:#f0ded0;--accent:#d56a3a;--accent-hover:#b8542c;--accent-soft:#fbe2d2;--accent-text:#a94e2d;--focus:#e88759;--shadow:0 8px 28px #a64f2816}

/* Login palette picker */
.auth-theme-picker{margin-bottom:14px;padding:12px 14px;background:color-mix(in srgb,var(--surface) 88%,transparent);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.auth-theme-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;color:var(--text);font-size:12px;font-weight:650}.auth-theme-picker-heading small{color:var(--muted);font-size:10px;font-weight:500}
.auth-theme-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.theme-option{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-width:0;padding:7px 6px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-size:10px;line-height:1.2;text-align:left;transition:background .22s cubic-bezier(.32,.72,0,1),border-color .22s cubic-bezier(.32,.72,0,1),color .22s cubic-bezier(.32,.72,0,1),transform .22s cubic-bezier(.32,.72,0,1)}.theme-option:hover{background:var(--surface-hover);border-color:var(--line);color:var(--text);transform:translateY(-1px)}.theme-option[data-theme-active]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-text);font-weight:650}.theme-option:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.theme-option-swatch{width:16px;height:16px;flex:0 0 16px;border-radius:50%;border:2px solid color-mix(in srgb,var(--surface) 70%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--text) 15%,transparent)}.theme-swatch-cinnabar{background:#b5303c}.theme-swatch-jade{background:#16745e}.theme-swatch-ink{background:#91a9ff}.theme-swatch-porcelain{background:#4169a1}.theme-swatch-midnight{background:#79a4ff}.theme-swatch-ocean{background:#126a8a}.theme-swatch-sakura{background:#c05279}.theme-swatch-plum{background:#d28ad6}.theme-swatch-bamboo{background:#4d7d4f}.theme-swatch-sunset{background:#d56a3a}
@media(max-width:480px){.auth-theme-picker{padding:10px}.auth-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.theme-option{padding:8px}.auth-theme-picker-heading{margin-bottom:7px}}
/* Outlook-inspired command surface: BZDS branding, no Microsoft assets or endpoints. */
:root{--bg:#f5f6f7;--surface:#fff;--surface-alt:#f8f9fa;--surface-hover:#edf4fb;--text:#1b1a19;--muted:#605e5c;--line:#e1dfdd;--accent:#0f6cbd;--accent-hover:#115ea3;--accent-soft:#e5f1fb;--accent-text:#0f548c;--focus:#0f6cbd;--shadow:0 8px 28px #32313018}
:root[data-theme=dark]{--bg:#1f1f1f;--surface:#292929;--surface-alt:#333;--surface-hover:#383838;--text:#f3f2f1;--muted:#c8c6c4;--line:#484644;--accent:#62abdc;--accent-hover:#8bc6ed;--accent-soft:#153b5c;--accent-text:#b7dcf5;--focus:#62abdc;--shadow:0 8px 28px #0006}
body{background:var(--bg)}.app-shell{background:var(--bg)}
.app-header{min-height:64px;height:64px;padding:10px 18px;background:var(--accent);border:0;color:#fff;box-shadow:0 1px 4px #0002;position:relative;z-index:5}.app-header .brand,.app-header .brand-name,.app-header .brand strong{color:#fff}.app-header .brand-mark{width:34px;height:34px;border-radius:4px;background:#fff;color:var(--accent)}.app-header .brand-mark svg{width:20px;height:20px}.app-header .header-actions{color:#fff}.app-header .account-address{color:#fff}.app-header .account-chip .sender-avatar{background:#fff;color:var(--accent);border-radius:50%}.app-header .btn-secondary,.app-header .btn-ghost,.app-header .theme-toggle{color:#fff;background:transparent;border-color:#ffffff80}.app-header .btn-secondary:hover,.app-header .btn-ghost:hover,.app-header .theme-toggle:hover{background:#ffffff1f;border-color:#fff}.app-header>.search-field,.app-header .mail-header-search{width:min(540px,48vw);max-width:540px;margin:0 auto}.app-header .mail-header-search input,.app-header>.search-field input{min-height:38px;background:#fff;color:#323130;border-color:transparent;border-radius:2px;padding-left:40px}.app-header .mail-header-search input::placeholder,.app-header>.search-field input::placeholder{color:#605e5c}.app-header .mail-header-search>svg,.app-header>.search-field>svg{color:#605e5c}
.btn,.icon-btn{border-radius:4px}.btn-primary{background:var(--accent);border-radius:4px}.btn-primary:hover{background:var(--accent-hover)}.btn-secondary,.icon-btn{border-radius:4px}.field input,.field textarea,.field select{border-radius:2px}.search-field input{border-radius:2px}
 .mail-layout{grid-template-columns:244px minmax(0,1fr);background:var(--surface)}.mail-sidebar{background:var(--surface);padding:14px 10px;border-right:1px solid var(--line)}.sidebar-label{padding:12px 12px 6px;font-size:10px;color:var(--muted)}.nav-link{border-radius:3px;min-height:38px;padding:9px 12px}.nav-link:hover{background:var(--surface-hover);color:var(--text)}.nav-link.active,.nav-link.on,.nav-link[aria-current=page]{background:var(--accent-soft);color:var(--accent-text);border-left:3px solid var(--accent);padding-left:9px}.sidebar-footer{padding:20px 12px 8px}
.mail-workspace{background:var(--surface)}.mail-list-panel{border-right:1px solid var(--line)}.list-heading{padding:20px 18px 14px}.list-heading h1,.list-heading h2{font-size:20px;font-weight:600}.list-heading .eyebrow{letter-spacing:.08em}.mail-list-panel>.toolbar{padding:10px 18px;border-bottom:1px solid var(--line)}.mail-row{padding:14px 18px;border-left:3px solid transparent}.mail-row.unread{background:#f1f7fd;border-left-color:var(--accent)}:root[data-theme=dark] .mail-row.unread{background:#213b50}.mail-row:hover{background:var(--surface-hover)}.sender-avatar{border-radius:50%;width:34px;height:34px}.mail-sender,.mail-subject{font-size:12px}.mail-preview{font-size:11px}.mail-reader{background:var(--bg);padding:24px}.mail-reader-placeholder{background:var(--bg)}.reader-header{border-radius:4px 4px 0 0;padding:24px}.reader-body{border-radius:0 0 4px 4px;padding:24px}.reader-header h1{font-size:24px;font-weight:600}.filter-tabs{padding:0 18px 12px}.filter-tabs a{border-radius:3px}.settings-panel,.panel{border-radius:4px}.settings-workspace{padding:28px}.page-wrap{padding:28px}
.admin-shell .app-header{background:var(--accent)}.admin-layout{grid-template-columns:216px minmax(0,1fr)}.admin-nav{background:var(--surface);border-right:1px solid var(--line);padding:18px 10px}.admin-nav nav{display:grid;gap:3px}.admin-nav .nav-link{border-radius:3px}.admin-main{background:var(--bg);padding:28px}.admin-main .panel,.admin-main .stat-card{border-radius:4px}.admin-main .panel>.toolbar{padding:14px 18px}.data-table th{padding:10px 12px;font-size:10px}.data-table td{padding:11px 12px}.data-table tbody tr:hover{background:var(--surface-hover)}
.auth-office{background:#f3f2f1}.auth-header-minimal{padding:22px 32px;background:transparent}.auth-header-minimal .brand{color:#323130}.auth-header-minimal .brand-name,.auth-header-minimal .brand strong{color:#323130}.auth-header-minimal .brand-mark{border-radius:3px}.auth-main-centered{display:grid;place-items:start center;min-height:0;flex:1;padding:28px 20px 60px}.auth-stack{width:min(440px,100%)}.auth-card-office{padding:32px 36px 30px;border-radius:2px;box-shadow:0 2px 6px #0002;border:1px solid #edebe9}.auth-card-brand{display:flex;align-items:center;gap:9px;color:#323130;font-size:18px;font-weight:600;margin-bottom:26px}.auth-card-brand .brand-mark{width:28px;height:28px;border-radius:2px}.auth-card-office h1{font-size:24px;font-weight:600;letter-spacing:-.02em;margin-bottom:10px}.auth-card-office>.eyebrow{display:none}.auth-card-office>.muted{font-size:13px;line-height:1.5;margin-bottom:24px}.auth-card-office .field{margin-bottom:18px}.auth-card-office .field label{font-weight:400;color:#323130}.auth-card-office .field input{min-height:42px;border-color:#8a8886;border-radius:0}.auth-card-office .field input:focus{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.auth-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.auth-form-actions .btn{min-height:38px;padding:9px 21px;border-radius:2px}.auth-note{font-size:11px}.auth-options{margin-top:16px;padding:22px 24px;background:transparent;border:0;text-align:left}.auth-options .help-text{margin:0 0 10px}.auth-options .auth-switcher{margin:0}.auth-options .auth-switcher a{background:var(--surface);border-radius:2px}.auth-footer{padding:14px 32px 22px}.auth-story{display:none}.auth-card-office .alert{border-radius:2px}
.auth-options-heading{font-size:12px;font-weight:600;color:var(--muted);margin:0 0 10px}.auth-back-link{display:inline-flex;align-items:center;gap:6px;font-size:13px}.auth-back-link:hover{text-decoration:underline}
:root[data-theme=dark] .auth-office{background:var(--bg)}:root[data-theme=dark] .auth-card-office{background:var(--surface);border-color:var(--line);box-shadow:0 2px 8px #0006}:root[data-theme=dark] .auth-card-brand,:root[data-theme=dark] .auth-header-minimal .brand,:root[data-theme=dark] .auth-header-minimal .brand-name,:root[data-theme=dark] .auth-header-minimal .brand strong{color:var(--text)}:root[data-theme=dark] .auth-card-office .field label{color:var(--text)}:root[data-theme=dark] .auth-card-office .field input{background:var(--surface);border-color:var(--muted);color:var(--text)}:root[data-theme=dark] .auth-card-office .field input::placeholder{color:var(--muted)}:root[data-theme=dark] .auth-options .auth-switcher a{background:var(--surface);border-color:var(--line)}
@media(max-width:960px){.app-header>.search-field,.app-header .mail-header-search{display:flex;width:min(100%,380px);order:3;flex-basis:100%;margin:2px 0 0}.app-header:has(.mail-header-search){height:auto;min-height:64px;flex-wrap:wrap}.app-header:has(.mail-header-search) .header-actions{margin-left:auto}.mail-layout{grid-template-columns:190px minmax(0,1fr)}.mail-workspace{grid-template-columns:minmax(0,1fr)}.mail-workspace>.mail-reader-placeholder{display:none}.admin-layout{grid-template-columns:1fr}.admin-nav{padding:10px 16px;border-right:0;border-bottom:1px solid var(--line)}.admin-nav nav{display:flex;flex-wrap:wrap}.admin-main{padding:22px}}
@media(max-width:720px){.auth-header-minimal{padding:18px 20px}.auth-main-centered{padding:14px 16px 28px}.auth-card-office{padding:28px 24px}.auth-footer{padding-inline:20px}.app-header:has(.mail-header-search){padding-bottom:10px}.app-header .mail-header-search{max-width:none}.mail-header-search input{min-height:38px}.mail-sidebar{padding:8px}.mail-sidebar nav{display:flex;flex-wrap:wrap}.mail-layout{display:flex;flex-direction:column}.mail-sidebar{border-right:0;border-bottom:1px solid var(--line)}.mail-workspace{display:block}.mail-list-panel{border-right:0}.mail-reader{padding:16px}.admin-main{padding:16px}.admin-nav{padding:8px}.admin-nav nav{display:flex}.admin-nav .nav-link{width:auto}.account-address{max-width:150px}}
  
.auth-card-brand{display:none}
.auth-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:26px}.auth-card-top .auth-card-brand{display:flex;align-items:center;gap:9px;color:var(--text);font-size:18px;font-weight:600;margin:0}.auth-card-top .auth-card-brand .brand-mark{width:28px;height:28px;border-radius:2px}.auth-card-top .theme-toggle{min-height:32px;padding:6px 9px;font-size:11px}.auth-card-top .theme-toggle svg{width:15px;height:15px}@media(max-width:480px){.auth-card-top .theme-toggle span[data-theme-label]{display:none}.auth-card-top .theme-toggle{width:34px;padding:7px}}
/* Chinese webmail direction: cinnabar accent, warm paper surfaces, restrained red hierarchy. */
:root{--bg:#f6f2ef;--surface:#fffdfb;--surface-alt:#faf6f3;--surface-hover:#fff0ed;--text:#2d2523;--muted:#756a66;--line:#e8ded9;--accent:#b5303c;--accent-hover:#962633;--accent-soft:#fbe8e5;--accent-text:#8f2732;--focus:#c3414b;--shadow:0 8px 28px #6e2b3014}
:root[data-theme=dark]{--bg:#20191a;--surface:#2c2223;--surface-alt:#36292a;--surface-hover:#473032;--text:#f9efeb;--muted:#cdbdb8;--line:#513e3e;--accent:#e06b72;--accent-hover:#ef8b90;--accent-soft:#512c31;--accent-text:#ffc3c3;--focus:#ed858c;--shadow:0 8px 28px #0008}
body{background:var(--bg)}.app-header{background:var(--accent)}.app-header .brand-mark{color:var(--accent)}.app-header .account-chip .sender-avatar{color:var(--accent)}.mail-row.unread{background:#fff2ef;border-left-color:var(--accent)}:root[data-theme=dark] .mail-row.unread{background:#4a292d}.nav-link.active,.nav-link.on,.nav-link[aria-current=page]{background:var(--accent-soft);color:var(--accent-text);border-left-color:var(--accent)}.auth-card-office .field input:focus{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.auth-card-office .brand-mark{background:var(--accent);color:#fff}.auth-header-brand .brand-mark{background:var(--accent);color:#fff}.auth-header-minimal .auth-header-brand{color:var(--text)}.auth-header-minimal .auth-header-brand .brand-name{color:var(--text)}
.eyebrow{color:var(--accent-text)}.auth-options .auth-switcher a:hover,.auth-options .auth-switcher a[aria-current=page]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text)}.data-table tbody tr:hover{background:var(--surface-hover)}.badge-success,.badge-unread{background:var(--accent-soft);color:var(--accent-text)}

/* Layout variants: each preset changes composition as well as palette. */
:root[data-theme="cinnabar"] body.auth-office{background:radial-gradient(circle at 12% 18%,#fbe3dc 0 12%,transparent 33%),var(--bg)}
:root[data-theme="cinnabar"] .auth-main-centered{grid-template-columns:minmax(0,1fr) minmax(360px,460px);place-items:center;gap:clamp(48px,8vw,120px);width:min(1120px,100%);padding:52px 34px 72px}
:root[data-theme="cinnabar"] .auth-main-centered:before{content:"朱砂 · 邮笺";display:block;color:var(--accent);font-family:Georgia,serif;font-size:clamp(38px,5vw,70px);font-weight:700;letter-spacing:.08em;writing-mode:vertical-rl;justify-self:end;opacity:.88}
:root[data-theme="cinnabar"] .auth-stack{width:min(460px,100%)}
:root[data-theme="cinnabar"] .auth-theme-picker{background:#fffaf6e8;border-radius:18px;padding:14px 16px}
:root[data-theme="cinnabar"] .auth-card-office{border-radius:18px;border-color:#e9c9bd;box-shadow:18px 22px 0 #c34a3210,0 18px 45px #7e2d201c}

:root[data-theme="jade"] body.auth-office{background:radial-gradient(circle at 18% 12%,#bdebd733 0 12%,transparent 34%),radial-gradient(circle at 90% 84%,#77c6b044 0 10%,transparent 34%),var(--bg)}
:root[data-theme="jade"] .auth-main-centered{display:grid;place-items:center;padding:42px 24px 68px}
:root[data-theme="jade"] .auth-stack{width:min(500px,100%)}
:root[data-theme="jade"] .auth-theme-picker{border-radius:24px;background:#ffffff66;border-color:#fff9;backdrop-filter:blur(18px);padding:15px 18px}
:root[data-theme="jade"] .auth-card-office{border-radius:28px;border-color:#ffffff99;background:#ffffffc9;backdrop-filter:blur(22px);box-shadow:0 26px 70px #155a4524;padding:42px 44px 38px}
:root[data-theme="jade"] .auth-card-office .field input{border-radius:14px;background:#ffffffaa}
:root[data-theme="jade"] .auth-card-office .btn-primary{border-radius:14px;box-shadow:0 10px 20px #16745e33}

:root[data-theme="ink"] body.auth-office{background:linear-gradient(135deg,#080c15 0%,#111827 52%,#1d2941 100%)}
:root[data-theme="ink"] .auth-main-centered{display:grid;grid-template-columns:230px minmax(360px,460px);align-items:center;justify-content:center;gap:34px;padding:48px 28px 70px}
:root[data-theme="ink"] .auth-main-centered:before{content:"墨";display:grid;place-items:center;width:160px;height:160px;border:1px solid #91a9ff55;color:#91a9ff;font-family:Georgia,serif;font-size:112px;line-height:1;border-radius:50%;transform:rotate(-8deg);opacity:.7}
:root[data-theme="ink"] .auth-stack{width:min(460px,100%)}
:root[data-theme="ink"] .auth-theme-picker{background:#131d30e8;border-color:#34425a;border-radius:14px}
:root[data-theme="ink"] .auth-card-office{background:#151f32;border-color:#3d4d69;border-radius:12px;box-shadow:0 22px 60px #05091499;padding:34px 38px}
:root[data-theme="ink"] .auth-card-office .field input{background:#101827;border-color:#415273;border-radius:6px}

:root[data-theme="porcelain"] body.auth-office{background:linear-gradient(180deg,#edf3fa 0%,#f8fbff 50%,#eef3f9 100%)}
:root[data-theme="porcelain"] .auth-main-centered{display:grid;place-items:center;padding:34px 20px 58px}
:root[data-theme="porcelain"] .auth-stack{width:min(390px,100%)}
:root[data-theme="porcelain"] .auth-theme-picker{order:2;margin-top:14px;margin-bottom:0;background:#ffffffd9;border-radius:8px;padding:10px 12px;box-shadow:0 5px 18px #38567a12}
:root[data-theme="porcelain"] .auth-card-office{padding:34px 32px 28px;background:#ffffff;border:1px solid #cbd9eb;border-radius:8px;box-shadow:0 12px 28px #38567a1a}
:root[data-theme="porcelain"] .auth-options{padding:16px 10px}

:root[data-theme="midnight"] body.auth-office{background:radial-gradient(circle at 78% 8%,#31507e80 0 7%,transparent 25%),radial-gradient(circle at 18% 80%,#4a2f7770 0 8%,transparent 28%),var(--bg)}
:root[data-theme="midnight"] .auth-main-centered{display:grid;place-items:end center;padding:38px 20px 74px;position:relative}
:root[data-theme="midnight"] .auth-main-centered:before{content:"";position:absolute;top:28px;left:34px;color:#9bb9f6;font-size:11px;font-weight:700;letter-spacing:.22em}
:root[data-theme="midnight"] .auth-stack{width:min(480px,100%)}
:root[data-theme="midnight"] .auth-theme-picker{background:#141e34cc;border-color:#344a70;border-radius:10px}
:root[data-theme="midnight"] .auth-card-office{background:#161f34;border:0;border-left:4px solid var(--accent);border-radius:4px 18px 18px 4px;box-shadow:18px 18px 0 #79a4ff18,0 30px 70px #050914aa;padding:40px 42px 34px}

:root[data-theme="ocean"] body.auth-office{background:linear-gradient(120deg,#dff1f6 0%,#f6fbfd 44%,#d7edf2 100%)}
:root[data-theme="ocean"] .auth-main-centered{display:grid;grid-template-columns:minmax(270px,360px) minmax(360px,460px);align-items:center;justify-content:center;gap:clamp(34px,7vw,92px);padding:48px 28px 66px}
:root[data-theme="ocean"] .auth-main-centered:before{content:"HỘP THƯ\A TRÊN MÂY";white-space:pre;display:block;color:#126a8a;font-size:clamp(28px,3.4vw,48px);font-weight:750;line-height:1.05;letter-spacing:-.06em;max-width:7ch}
:root[data-theme="ocean"] .auth-stack{width:min(460px,100%)}
:root[data-theme="ocean"] .auth-theme-picker{background:#ffffffaa;border:1px solid #bcdce5;border-radius:16px}
:root[data-theme="ocean"] .auth-card-office{background:#fbfeff;border:1px solid #bbdbe5;border-radius:16px;box-shadow:0 20px 45px #1b637a1f;padding:36px 40px 32px}

:root[data-theme="sakura"] body.auth-office{background:radial-gradient(circle at 15% 16%,#ffd3e499 0 11%,transparent 35%),radial-gradient(circle at 90% 78%,#f5bbd855 0 9%,transparent 30%),var(--bg)}
:root[data-theme="sakura"] .auth-main-centered{display:grid;place-items:center;padding:42px 20px 64px}
:root[data-theme="sakura"] .auth-stack{width:min(480px,100%)}
:root[data-theme="sakura"] .auth-theme-picker{background:#fffdfdcc;border:0;border-radius:26px;padding:15px 20px;box-shadow:0 12px 40px #9d3e6414}
:root[data-theme="sakura"] .auth-card-office{background:#fffdfd;border:0;border-radius:32px;box-shadow:0 24px 60px #9d3e6424;padding:44px 46px 38px;position:relative;overflow:hidden}
:root[data-theme="sakura"] .auth-card-office:before{content:"";position:absolute;right:-36px;top:-36px;width:122px;height:122px;border-radius:50%;background:#f8c3d6aa}
:root[data-theme="sakura"] .auth-card-office .field input{border-radius:13px;background:#fff7fa}
:root[data-theme="sakura"] .auth-card-office .btn-primary{border-radius:14px}

:root[data-theme="plum"] body.auth-office{background:radial-gradient(circle at 50% 18%,#814b9866 0 8%,transparent 28%),linear-gradient(145deg,#1e1527,#34203e 58%,#1b1526)}
:root[data-theme="plum"] .auth-main-centered{display:grid;place-items:center;padding:42px 20px 66px}
:root[data-theme="plum"] .auth-stack{width:min(470px,100%)}
:root[data-theme="plum"] .auth-theme-picker{background:#2a1b35dd;border-color:#73537f;border-radius:6px}
:root[data-theme="plum"] .auth-card-office{background:#291a34;border:1px solid #8a5a91;border-radius:6px;box-shadow:0 0 0 1px #d28ad633,0 0 44px #bd71d044;padding:38px 42px 34px}
:root[data-theme="plum"] .auth-card-office .field input{background:#21152a;border-color:#79527f;border-radius:5px}
:root[data-theme="plum"] .auth-card-office .btn-primary{border-radius:5px;box-shadow:0 0 18px #d28ad655}

:root[data-theme="bamboo"] body.auth-office{background:linear-gradient(105deg,#e5efdf 0%,#f7fbf4 45%,#edf5e8 100%)}
:root[data-theme="bamboo"] .auth-main-centered{display:grid;grid-template-columns:minmax(300px,420px) minmax(360px,460px);align-items:center;justify-content:center;gap:clamp(34px,8vw,116px);padding:58px 28px 78px}
:root[data-theme="bamboo"] .auth-main-centered:before{content:"竹\A 简\A 邮";white-space:pre;display:block;color:#4d7d4f;font-family:Georgia,serif;font-size:clamp(42px,5vw,72px);font-weight:700;line-height:1.15;letter-spacing:.1em;opacity:.75}
:root[data-theme="bamboo"] .auth-stack{width:min(460px,100%)}
:root[data-theme="bamboo"] .auth-theme-picker{background:#fcfff9cc;border-color:#cbdcc3;border-radius:18px}
:root[data-theme="bamboo"] .auth-card-office{background:#fcfff9;border:1px solid #cbdcc3;border-radius:22px;box-shadow:14px 16px 0 #4d7d4f12,0 18px 40px #43683b18;padding:38px 42px 34px}
:root[data-theme="bamboo"] .auth-card-office .field input{background:#f5faef;border-radius:11px}

:root[data-theme="sunset"] body.auth-office{background:linear-gradient(160deg,#ffe0c6 0%,#fff4e9 48%,#f6c4a6 100%)}
:root[data-theme="sunset"] .auth-main-centered{display:grid;place-items:end center;padding:38px 20px 0;min-height:100dvh}
:root[data-theme="sunset"] .auth-stack{width:min(520px,100%)}
:root[data-theme="sunset"] .auth-theme-picker{background:#fffdfae8;border-color:#f0c8ad;border-radius:18px;margin-bottom:18px}
:root[data-theme="sunset"] .auth-card-office{background:#fffdfa;border:0;border-radius:30px 30px 0 0;box-shadow:0 -12px 40px #a64f2820;padding:44px 52px 40px}
:root[data-theme="sunset"] .auth-options{padding:18px 28px 30px;background:#fffdfacc;border-radius:0 0 30px 30px}
:root[data-theme="sunset"] .auth-card-office .field input{background:#fff6ed;border-radius:12px}

@media(max-width:720px){
  :root[data-theme] .auth-main-centered{display:grid;grid-template-columns:minmax(0,1fr);place-items:stretch;gap:12px;min-height:0;padding:18px 16px 34px}
  :root[data-theme] .auth-main-centered:before{display:none}
  :root[data-theme] .auth-stack{width:100%}
  :root[data-theme] .auth-theme-picker{order:0;margin-bottom:10px}
  :root[data-theme] .auth-card-office{order:1;border-radius:18px;padding:30px 24px 28px;box-shadow:var(--shadow)}
  :root[data-theme] .auth-options{order:2;padding:16px 10px}
  :root[data-theme="sunset"] .auth-main-centered{padding:16px 12px 0}
  :root[data-theme="sunset"] .auth-card-office{border-radius:24px 24px 0 0}
}

/* Twenty more visual identities (40 total). */
:root[data-theme="obsidian"]{--bg:#0b0d11;--surface:#15181e;--surface-alt:#1b2028;--surface-hover:#262d37;--text:#eef1f5;--muted:#9ba4b1;--line:#343d49;--accent:#aab4c4;--accent-hover:#d0d7e1;--accent-soft:#2b323c;--accent-text:#d9e0e8;--focus:#c4cfdb;--shadow:0 16px 48px #02030599}
:root[data-theme="ruby"]{--bg:#280d15;--surface:#39131e;--surface-alt:#461825;--surface-hover:#5a2030;--text:#fff0f2;--muted:#d4a4ae;--line:#713243;--accent:#ef5f78;--accent-hover:#ff8da0;--accent-soft:#5a2030;--accent-text:#ffb2bf;--focus:#f17a8d;--shadow:0 16px 46px #14030888}
:root[data-theme="cobalt"]{--bg:#0b1c41;--surface:#112b5c;--surface-alt:#17356d;--surface-hover:#22457f;--text:#edf4ff;--muted:#a8bde0;--line:#31558e;--accent:#5ca7ff;--accent-hover:#8ac2ff;--accent-soft:#214579;--accent-text:#b8d7ff;--focus:#73b6ff;--shadow:0 16px 48px #07132e88}
:root[data-theme="lime"]{--bg:#17210f;--surface:#213016;--surface-alt:#29391b;--surface-hover:#364c21;--text:#efffd2;--muted:#b6cc88;--line:#4a6430;--accent:#b8ed4e;--accent-hover:#d5ff7c;--accent-soft:#3c5420;--accent-text:#d4ff82;--focus:#c9f96c;--shadow:0 14px 42px #09100080}
:root[data-theme="vaporwave"]{--bg:#201331;--surface:#302044;--surface-alt:#39264f;--surface-hover:#4d3264;--text:#fff1ff;--muted:#cda9d7;--line:#714b82;--accent:#ff72d2;--accent-hover:#ff9be2;--accent-soft:#5b2e65;--accent-text:#ffb4e8;--focus:#ff8bdd;--shadow:0 18px 58px #0b061499}
:root[data-theme="synthwave"]{--bg:#100b26;--surface:#1a1239;--surface-alt:#24194a;--surface-hover:#342461;--text:#f4f0ff;--muted:#aaa0d1;--line:#51418c;--accent:#ff8b38;--accent-hover:#ffb064;--accent-soft:#5a2d46;--accent-text:#ffc07c;--focus:#ff9c50;--shadow:0 16px 54px #09051b99}
:root[data-theme="matrix"]{--bg:#020b05;--surface:#06160a;--surface-alt:#0b2110;--surface-hover:#10371a;--text:#b8ffbf;--muted:#65bd70;--line:#1e6330;--accent:#20e64d;--accent-hover:#54ff78;--accent-soft:#10451d;--accent-text:#78ff93;--focus:#3eff67;--shadow:0 16px 52px #000a02aa}
:root[data-theme="desert"]{--bg:#e6c79d;--surface:#f7e4bf;--surface-alt:#ecd2a9;--surface-hover:#dfbd8d;--text:#493224;--muted:#886b4e;--line:#c9a579;--accent:#b86b3e;--accent-hover:#934d2b;--accent-soft:#efd0b2;--accent-text:#874726;--focus:#cb8050;--shadow:0 14px 36px #68401e24}
:root[data-theme="cloud"]{--bg:#edf3f8;--surface:#ffffff;--surface-alt:#f7fafc;--surface-hover:#e4edf4;--text:#2d3e4f;--muted:#8192a2;--line:#d9e5ed;--accent:#8aa9c4;--accent-hover:#6c8da9;--accent-soft:#e1ecf4;--accent-text:#557890;--focus:#9dbbd2;--shadow:0 14px 40px #59748a14}
:root[data-theme="slate"]{--bg:#242b35;--surface:#303a47;--surface-alt:#394553;--surface-hover:#465465;--text:#f0f3f7;--muted:#b0bac6;--line:#536274;--accent:#93a5ba;--accent-hover:#b6c6d7;--accent-soft:#47586c;--accent-text:#d0dce7;--focus:#a9bacc;--shadow:0 16px 50px #11161c88}
:root[data-theme="copper"]{--bg:#2c1b15;--surface:#3a251b;--surface-alt:#463024;--surface-hover:#5b3a2a;--text:#ffe9d0;--muted:#cba98b;--line:#79513a;--accent:#d58a54;--accent-hover:#edac78;--accent-soft:#603d2a;--accent-text:#f1b987;--focus:#dd9962;--shadow:0 16px 48px #13080588}
:root[data-theme="jade-night"]{--bg:#061b18;--surface:#0d2924;--surface-alt:#12372f;--surface-hover:#1b493e;--text:#e2fff3;--muted:#92c6b4;--line:#2a6556;--accent:#4de0ad;--accent-hover:#7bf3c9;--accent-soft:#1d4d40;--accent-text:#9af6d2;--focus:#65eabd;--shadow:0 16px 52px #02110e99}
:root[data-theme="sakura-night"]{--bg:#211322;--surface:#301b30;--surface-alt:#3c2340;--surface-hover:#512c4f;--text:#ffeaf7;--muted:#cca6be;--line:#704364;--accent:#ff8ecb;--accent-hover:#ffb4dd;--accent-soft:#5a2e54;--accent-text:#ffbde2;--focus:#ff9bd2;--shadow:0 16px 52px #10060f99}
:root[data-theme="glacier"]{--bg:#d9eff5;--surface:#f8fdff;--surface-alt:#eaf7fb;--surface-hover:#d6edf4;--text:#183746;--muted:#62818d;--line:#b9dce6;--accent:#3ea2c0;--accent-hover:#26849e;--accent-soft:#d0edf4;--accent-text:#236d82;--focus:#55b5d0;--shadow:0 14px 40px #1a70851a}
:root[data-theme="volcanic"]{--bg:#1b0b08;--surface:#2d120e;--surface-alt:#3c1711;--surface-hover:#542219;--text:#fff0e5;--muted:#d0a28c;--line:#793b2d;--accent:#f15b32;--accent-hover:#ff845f;--accent-soft:#63281d;--accent-text:#ffad8f;--focus:#fb7049;--shadow:0 18px 54px #080201a0}
:root[data-theme="blueprint"]{--bg:#0e3b63;--surface:#154b78;--surface-alt:#1b5685;--surface-hover:#286795;--text:#eff8ff;--muted:#a9c8df;--line:#4780a8;--accent:#f2d66d;--accent-hover:#ffe79b;--accent-soft:#38658a;--accent-text:#ffe997;--focus:#f4dc7e;--shadow:0 14px 46px #08233b88}
:root[data-theme="newspaper"]{--bg:#dedbd1;--surface:#f8f5eb;--surface-alt:#ece9dd;--surface-hover:#e1ddcf;--text:#20201c;--muted:#6a675c;--line:#b7b2a5;--accent:#20201c;--accent-hover:#47463e;--accent-soft:#d9d5c8;--accent-text:#20201c;--focus:#393831;--shadow:0 12px 28px #24231e22}
:root[data-theme="arcade"]{--bg:#1a1029;--surface:#28173f;--surface-alt:#352050;--surface-hover:#472b65;--text:#fff4ff;--muted:#c5a9d5;--line:#704e8c;--accent:#ffde59;--accent-hover:#fff09a;--accent-soft:#5b3b61;--accent-text:#ffe983;--focus:#ffe26d;--shadow:0 14px 44px #0c061588}
:root[data-theme="stealth"]{--bg:#111315;--surface:#1a1d20;--surface-alt:#202427;--surface-hover:#2b3034;--text:#e5e7e8;--muted:#899094;--line:#3b4247;--accent:#8f9aa0;--accent-hover:#b6c0c5;--accent-soft:#343c40;--accent-text:#c4cdd1;--focus:#a7b2b7;--shadow:0 16px 46px #0008}
:root[data-theme="imperial"]{--bg:#1e1119;--surface:#2d1a27;--surface-alt:#392130;--surface-hover:#4e2c3e;--text:#fff2d7;--muted:#d0ae85;--line:#76513a;--accent:#d8ae55;--accent-hover:#f0ce7c;--accent-soft:#5b3b2a;--accent-text:#f4d48a;--focus:#e7c16c;--shadow:0 16px 52px #0c050988}
.theme-swatch-obsidian{background:#aab4c4}.theme-swatch-ruby{background:#ef5f78}.theme-swatch-cobalt{background:#5ca7ff}.theme-swatch-lime{background:#b8ed4e}.theme-swatch-vaporwave{background:#ff72d2}.theme-swatch-synthwave{background:#ff8b38}.theme-swatch-matrix{background:#20e64d}.theme-swatch-desert{background:#b86b3e}.theme-swatch-cloud{background:#8aa9c4}.theme-swatch-slate{background:#93a5ba}.theme-swatch-copper{background:#d58a54}.theme-swatch-jade-night{background:#4de0ad}.theme-swatch-sakura-night{background:#ff8ecb}.theme-swatch-glacier{background:#3ea2c0}.theme-swatch-volcanic{background:#f15b32}.theme-swatch-blueprint{background:#f2d66d}.theme-swatch-newspaper{background:#20201c}.theme-swatch-arcade{background:#ffde59}.theme-swatch-stealth{background:#8f9aa0}.theme-swatch-imperial{background:#d8ae55}

/* New layout families. */
:root[data-theme="obsidian"] body.auth-office{background:linear-gradient(145deg,#080a0e,#151b24)}:root[data-theme="obsidian"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,530px);place-items:center;padding:52px 20px 72px}:root[data-theme="obsidian"] .auth-stack{width:100%}:root[data-theme="obsidian"] .auth-theme-picker{background:#11151dcc;border:1px solid #566171;border-radius:8px}:root[data-theme="obsidian"] .auth-card-office{background:#15181e;border:1px solid #566171;border-radius:8px;box-shadow:20px 20px 0 #0005;padding:42px 46px}
:root[data-theme="ruby"] body.auth-office{background:linear-gradient(120deg,#280d15 0%,#571d30 55%,#190914 100%)}:root[data-theme="ruby"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,480px);place-items:center;padding:42px 20px 70px}:root[data-theme="ruby"] .auth-stack{width:100%}:root[data-theme="ruby"] .auth-theme-picker{background:#39131ecc;border:1px solid #a64861;border-radius:20px}:root[data-theme="ruby"] .auth-card-office{background:#39131e;border:1px solid #a64861;border-radius:24px;box-shadow:0 24px 58px #14030899;padding:42px 46px}
:root[data-theme="cobalt"] body.auth-office{background:#0b1c41}:root[data-theme="cobalt"] .auth-main-centered{display:grid;grid-template-columns:210px minmax(0,460px);align-items:center;justify-content:center;gap:32px;padding:44px 24px 68px}:root[data-theme="cobalt"] .auth-main-centered:before{content:"COBALT\A DESK";white-space:pre;color:#8fc5ff;font-size:26px;font-weight:800;letter-spacing:.1em;line-height:1.2}:root[data-theme="cobalt"] .auth-stack{width:100%}:root[data-theme="cobalt"] .auth-theme-picker{background:#112b5ccc;border-radius:8px;border-left:4px solid #5ca7ff}:root[data-theme="cobalt"] .auth-card-office{background:#112b5c;border:1px solid #4b78ad;border-radius:8px;box-shadow:0 24px 58px #07132eaa;padding:38px 42px}
:root[data-theme="lime"] body.auth-office{background:radial-gradient(circle at 12% 12%,#b8ed4e3d 0 8%,transparent 30%),#17210f}:root[data-theme="lime"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,500px);place-items:center;padding:42px 20px 68px}:root[data-theme="lime"] .auth-stack{width:100%}:root[data-theme="lime"] .auth-theme-picker{background:#213016cc;border:1px solid #5f813b;border-radius:26px}:root[data-theme="lime"] .auth-card-office{background:#213016;border:1px solid #5f813b;border-radius:30px;box-shadow:0 26px 60px #09100099;padding:44px 48px}
:root[data-theme="vaporwave"] body.auth-office{background:linear-gradient(135deg,#201331,#673d7f 52%,#1b5b75)}:root[data-theme="vaporwave"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,560px);place-items:center;padding:46px 18px 72px}:root[data-theme="vaporwave"] .auth-stack{width:100%}:root[data-theme="vaporwave"] .auth-theme-picker{background:#302044aa;border:1px solid #ff72d277;border-radius:28px;backdrop-filter:blur(18px)}:root[data-theme="vaporwave"] .auth-card-office{background:#302044cc;border:1px solid #ff72d299;border-radius:28px;backdrop-filter:blur(20px);box-shadow:0 24px 70px #0b061499;padding:44px 48px}
:root[data-theme="synthwave"] body.auth-office{background:linear-gradient(180deg,#100b26,#2d1353 60%,#100b26)}:root[data-theme="synthwave"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,500px);place-items:center;padding:48px 20px 72px}:root[data-theme="synthwave"] .auth-stack{width:100%}:root[data-theme="synthwave"] .auth-theme-picker{background:#1a1239;border:1px solid #ff8b3888;border-radius:4px}:root[data-theme="synthwave"] .auth-card-office{background:#1a1239;border:1px solid #ff8b38aa;border-radius:4px;box-shadow:0 0 32px #ff8b3833,0 18px 60px #09051b99;padding:40px 44px}
:root[data-theme="matrix"] body.auth-office{background:#020b05;background-image:linear-gradient(#20e64d10 1px,transparent 1px),linear-gradient(90deg,#20e64d0b 1px,transparent 1px);background-size:28px 28px}:root[data-theme="matrix"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,500px);place-items:center;padding:44px 20px 70px}:root[data-theme="matrix"] .auth-stack{width:100%}:root[data-theme="matrix"] .auth-theme-picker{background:#06160eee;border:1px solid #20e64d66;border-radius:0}:root[data-theme="matrix"] .auth-card-office{background:#06160e;border:1px solid #20e64d99;border-radius:0;box-shadow:0 0 0 1px #20e64d33,0 18px 54px #000a02aa;padding:40px 44px}
:root[data-theme="desert"] body.auth-office{background:linear-gradient(135deg,#e6c79d,#f4dfbd 58%,#d5aa76)}:root[data-theme="desert"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,430px) minmax(0,390px);align-items:center;justify-content:center;gap:46px;padding:50px 28px 70px}:root[data-theme="desert"] .auth-main-centered:before{content:"砂丘\A MAIL";white-space:pre;color:#b86b3e;font-size:38px;font-weight:800;line-height:1.05;letter-spacing:.08em}:root[data-theme="desert"] .auth-stack{width:100%}:root[data-theme="desert"] .auth-theme-picker{background:#f7e4bfd9;border:1px solid #c39b6e;border-radius:10px}:root[data-theme="desert"] .auth-card-office{background:#f7e4bf;border:1px solid #c39b6e;border-radius:10px;box-shadow:16px 16px 0 #68401e22;padding:34px 38px}
:root[data-theme="cloud"] body.auth-office{background:linear-gradient(180deg,#dfeef6,#f7fbfd)}:root[data-theme="cloud"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,460px);place-items:center;padding:42px 20px 70px}:root[data-theme="cloud"] .auth-stack{width:100%}:root[data-theme="cloud"] .auth-theme-picker{background:#ffffffcc;border:0;border-radius:28px;box-shadow:0 10px 30px #59748a18}:root[data-theme="cloud"] .auth-card-office{background:#ffffff;border:0;border-radius:34px;box-shadow:0 26px 70px #59748a26;padding:44px 48px 38px}
:root[data-theme="slate"] body.auth-office{background:#242b35}:root[data-theme="slate"] .auth-main-centered{display:grid;grid-template-columns:190px minmax(0,450px);align-items:center;justify-content:center;gap:30px;padding:42px 24px 68px}:root[data-theme="slate"] .auth-main-centered:before{content:"01";display:grid;place-items:center;width:110px;height:110px;border:1px solid #93a5ba88;color:#93a5ba;font-size:42px;font-weight:300;border-radius:50%}:root[data-theme="slate"] .auth-stack{width:100%}:root[data-theme="slate"] .auth-theme-picker{background:#303a47;border:1px solid #617285;border-radius:6px}:root[data-theme="slate"] .auth-card-office{background:#303a47;border:1px solid #617285;border-radius:6px;box-shadow:0 24px 60px #11161c99;padding:38px 42px}
:root[data-theme="copper"] body.auth-office{background:linear-gradient(145deg,#2c1b15,#593522 70%,#2c1b15)}:root[data-theme="copper"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,520px);place-items:center;padding:46px 20px 70px}:root[data-theme="copper"] .auth-stack{width:100%}:root[data-theme="copper"] .auth-theme-picker{background:#3a251bcc;border:1px solid #a06b46;border-radius:4px}:root[data-theme="copper"] .auth-card-office{background:#3a251b;border:1px solid #a06b46;border-radius:4px;box-shadow:10px 10px 0 #13080566,0 20px 45px #13080588;padding:40px 44px}
:root[data-theme="jade-night"] body.auth-office{background:radial-gradient(circle at 80% 15%,#4de0ad44 0 9%,transparent 30%),#061b18}:root[data-theme="jade-night"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,490px);place-items:center;padding:46px 20px 70px}:root[data-theme="jade-night"] .auth-stack{width:100%}:root[data-theme="jade-night"] .auth-theme-picker{background:#0d2924cc;border:1px solid #4de0ad66;border-radius:18px}:root[data-theme="jade-night"] .auth-card-office{background:#0d2924;border:1px solid #4de0ad88;border-radius:18px;box-shadow:0 24px 64px #02110eaa;padding:42px 46px}
:root[data-theme="sakura-night"] body.auth-office{background:radial-gradient(circle at 82% 12%,#ff8ecb55 0 8%,transparent 28%),#211322}:root[data-theme="sakura-night"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,500px);place-items:center;padding:44px 20px 70px}:root[data-theme="sakura-night"] .auth-stack{width:100%}:root[data-theme="sakura-night"] .auth-theme-picker{background:#301b30cc;border:1px solid #ff8ecb66;border-radius:22px}:root[data-theme="sakura-night"] .auth-card-office{background:#301b30;border:1px solid #ff8ecb88;border-radius:22px;box-shadow:0 24px 66px #10060faa;padding:42px 46px}
:root[data-theme="glacier"] body.auth-office{background:linear-gradient(145deg,#cde9f1,#f8fdff 60%,#b9dce6)}:root[data-theme="glacier"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,440px);place-items:center;padding:48px 20px 72px}:root[data-theme="glacier"] .auth-stack{width:100%}:root[data-theme="glacier"] .auth-theme-picker{background:#f8fdffcc;border:1px solid #abd3df;border-radius:18px;backdrop-filter:blur(16px)}:root[data-theme="glacier"] .auth-card-office{background:#f8fdffdd;border:1px solid #abd3df;border-radius:24px;box-shadow:0 24px 64px #1a708522;padding:42px 46px}
:root[data-theme="volcanic"] body.auth-office{background:radial-gradient(circle at 15% 20%,#f15b3244 0 8%,transparent 26%),#1b0b08}:root[data-theme="volcanic"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,540px);place-items:center;padding:44px 20px 70px}:root[data-theme="volcanic"] .auth-stack{width:100%}:root[data-theme="volcanic"] .auth-theme-picker{background:#2d120ecc;border:1px solid #f15b3266;border-radius:2px}:root[data-theme="volcanic"] .auth-card-office{background:#2d120e;border:1px solid #f15b3299;border-radius:2px;box-shadow:0 0 0 1px #f15b3233,0 24px 60px #080201aa;padding:40px 44px}
:root[data-theme="blueprint"] body.auth-office{background:#0e3b63;background-image:linear-gradient(#f2d66d12 1px,transparent 1px),linear-gradient(90deg,#f2d66d12 1px,transparent 1px);background-size:24px 24px}:root[data-theme="blueprint"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,540px);place-items:center;padding:46px 20px 70px}:root[data-theme="blueprint"] .auth-stack{width:100%}:root[data-theme="blueprint"] .auth-theme-picker{background:#154b78dd;border:1px solid #f2d66d77;border-radius:0}:root[data-theme="blueprint"] .auth-card-office{background:#154b78;border:1px solid #f2d66daa;border-radius:0;box-shadow:10px 10px 0 #08233b66;padding:40px 44px}
:root[data-theme="newspaper"] body.auth-office{background:#dedbd1;font-family:Georgia,"Times New Roman",serif}:root[data-theme="newspaper"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,420px);place-items:center;padding:34px 20px 60px}:root[data-theme="newspaper"] .auth-stack{width:100%}:root[data-theme="newspaper"] .auth-theme-picker{background:#f8f5eb;border-top:4px double #20201c;border-bottom:4px double #20201c;border-radius:0;box-shadow:none}:root[data-theme="newspaper"] .auth-card-office{background:#f8f5eb;border-top:6px double #20201c;border-bottom:6px double #20201c;border-left:0;border-right:0;border-radius:0;box-shadow:none;padding:34px 36px}
:root[data-theme="arcade"] body.auth-office{background:linear-gradient(135deg,#1a1029,#442064 55%,#1a1029)}:root[data-theme="arcade"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,520px);place-items:center;padding:44px 20px 72px}:root[data-theme="arcade"] .auth-stack{width:100%}:root[data-theme="arcade"] .auth-theme-picker{background:#28173f;border:3px solid #ffde59;border-radius:0;box-shadow:6px 6px 0 #0c0615}:root[data-theme="arcade"] .auth-card-office{background:#28173f;border:3px solid #ffde59;border-radius:0;box-shadow:10px 10px 0 #0c0615;padding:40px 44px}:root[data-theme="arcade"] .auth-card-office .field input{border:2px solid #ffde59;border-radius:0;background:#1a1029}
:root[data-theme="stealth"] body.auth-office{background:#111315}:root[data-theme="stealth"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,360px);place-items:center;padding:60px 20px 80px}:root[data-theme="stealth"] .auth-stack{width:100%}:root[data-theme="stealth"] .auth-theme-picker{background:#1a1d20;border:1px solid #3b4247;border-radius:2px;opacity:.88}:root[data-theme="stealth"] .auth-card-office{background:#1a1d20;border:1px solid #3b4247;border-radius:2px;box-shadow:0 18px 46px #0009;padding:32px 34px}:root[data-theme="stealth"] .auth-options{opacity:.82}
:root[data-theme="imperial"] body.auth-office{background:radial-gradient(circle at 50% 0,#d8ae553d 0 8%,transparent 30%),#1e1119;font-family:Georgia,"Times New Roman",serif}:root[data-theme="imperial"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,520px);place-items:center;padding:48px 20px 72px}:root[data-theme="imperial"] .auth-stack{width:100%}:root[data-theme="imperial"] .auth-theme-picker{background:#2d1a27;border:1px solid #d8ae5588;border-radius:0;box-shadow:inset 0 0 0 3px #2d1a27,inset 0 0 0 4px #76513a}:root[data-theme="imperial"] .auth-card-office{background:#2d1a27;border:1px solid #d8ae55aa;border-radius:0;box-shadow:inset 0 0 0 3px #2d1a27,inset 0 0 0 4px #76513a,0 20px 50px #0c050999;padding:42px 46px}

/* Hacker CRT treatment for the Terminal preset, preserving native form controls. */
:root[data-theme="terminal"] body.auth-office{background-color:#050d08;background-image:linear-gradient(#43e87912 1px,transparent 1px),linear-gradient(90deg,#43e8790e 1px,transparent 1px),radial-gradient(circle at 50% 10%,#43e87924,transparent 42%);background-size:24px 24px,24px 24px,100% 100%;position:relative}
:root[data-theme="terminal"] body.auth-office:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;background:repeating-linear-gradient(0deg,#0000 0 3px,#43e8790a 4px);mix-blend-mode:screen}
:root[data-theme="terminal"] .auth-main-centered{position:relative;z-index:1}
:root[data-theme="terminal"] .auth-theme-picker-heading{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase;letter-spacing:.12em}.auth-theme-picker-heading small{letter-spacing:0;text-transform:none}
:root[data-theme="terminal"] .auth-theme-picker-heading:after{content:"_";color:var(--accent);animation:terminal-caret 1.2s steps(2,end) infinite}
:root[data-theme="terminal"] .auth-card-office:before{content:"[ SECURE MAIL TERMINAL ]";display:block;color:var(--accent);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;letter-spacing:.12em;margin-bottom:24px;text-shadow:0 0 10px #43e87999}
:root[data-theme="terminal"] .auth-card-office .field label:before{content:"$ ";color:var(--accent)}
:root[data-theme="terminal"] .auth-card-office .btn-primary{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase;letter-spacing:.1em;text-shadow:0 0 8px #43e87988;box-shadow:0 0 18px #43e87955}
@keyframes terminal-caret{0%,45%{opacity:1}46%,100%{opacity:0}}

@media(max-width:720px){
  :root[data-theme="obsidian"] .auth-main-centered,:root[data-theme="ruby"] .auth-main-centered,:root[data-theme="cobalt"] .auth-main-centered,:root[data-theme="lime"] .auth-main-centered,:root[data-theme="vaporwave"] .auth-main-centered,:root[data-theme="synthwave"] .auth-main-centered,:root[data-theme="matrix"] .auth-main-centered,:root[data-theme="desert"] .auth-main-centered,:root[data-theme="cloud"] .auth-main-centered,:root[data-theme="slate"] .auth-main-centered,:root[data-theme="copper"] .auth-main-centered,:root[data-theme="jade-night"] .auth-main-centered,:root[data-theme="sakura-night"] .auth-main-centered,:root[data-theme="glacier"] .auth-main-centered,:root[data-theme="volcanic"] .auth-main-centered,:root[data-theme="blueprint"] .auth-main-centered,:root[data-theme="newspaper"] .auth-main-centered,:root[data-theme="arcade"] .auth-main-centered,:root[data-theme="stealth"] .auth-main-centered,:root[data-theme="imperial"] .auth-main-centered{grid-template-columns:minmax(0,1fr);padding:18px 14px 34px}
  :root[data-theme="cobalt"] .auth-main-centered:before,:root[data-theme="desert"] .auth-main-centered:before,:root[data-theme="slate"] .auth-main-centered:before{display:none}
  :root[data-theme="obsidian"] .auth-card-office,:root[data-theme="ruby"] .auth-card-office,:root[data-theme="cobalt"] .auth-card-office,:root[data-theme="lime"] .auth-card-office,:root[data-theme="vaporwave"] .auth-card-office,:root[data-theme="synthwave"] .auth-card-office,:root[data-theme="matrix"] .auth-card-office,:root[data-theme="desert"] .auth-card-office,:root[data-theme="cloud"] .auth-card-office,:root[data-theme="slate"] .auth-card-office,:root[data-theme="copper"] .auth-card-office,:root[data-theme="jade-night"] .auth-card-office,:root[data-theme="sakura-night"] .auth-card-office,:root[data-theme="glacier"] .auth-card-office,:root[data-theme="volcanic"] .auth-card-office,:root[data-theme="blueprint"] .auth-card-office,:root[data-theme="newspaper"] .auth-card-office,:root[data-theme="arcade"] .auth-card-office,:root[data-theme="stealth"] .auth-card-office,:root[data-theme="imperial"] .auth-card-office{border-radius:18px;padding:30px 24px 28px;box-shadow:var(--shadow)}
}

/* Ten additional palettes for the extended 20-style chooser. */
:root[data-theme="terminal"]{--bg:#07120c;--surface:#0d1f15;--surface-alt:#10291b;--surface-hover:#173a26;--text:#c8f7d5;--muted:#78b58c;--line:#245537;--accent:#43e879;--accent-hover:#6cf392;--accent-soft:#173d28;--accent-text:#8bf6a9;--focus:#63f28d;--shadow:0 14px 40px #020b0555}
:root[data-theme="paper"]{--bg:#e9e0cf;--surface:#f8f0df;--surface-alt:#efe5d2;--surface-hover:#e7dac3;--text:#3b3024;--muted:#806f59;--line:#d2c1a6;--accent:#8f5b38;--accent-hover:#704329;--accent-soft:#ead7bf;--accent-text:#754729;--focus:#b17b4e;--shadow:0 12px 28px #65472a1c}
:root[data-theme="brutalist"]{--bg:#f5ed2b;--surface:#ffffff;--surface-alt:#f1f1e9;--surface-hover:#fffa6a;--text:#111111;--muted:#4b4b3f;--line:#111111;--accent:#e83828;--accent-hover:#b82016;--accent-soft:#ffd2c9;--accent-text:#101010;--focus:#111111;--shadow:9px 9px 0 #111111}
:root[data-theme="aurora"]{--bg:#071b2a;--surface:#102d3b;--surface-alt:#143849;--surface-hover:#1b4958;--text:#e8fcf5;--muted:#9cc9c1;--line:#2b6370;--accent:#6ce5c1;--accent-hover:#9df7db;--accent-soft:#1b504f;--accent-text:#a9f4dd;--focus:#72eecb;--shadow:0 16px 52px #030f1d80}
:root[data-theme="monochrome"]{--bg:#e7e7e7;--surface:#ffffff;--surface-alt:#f4f4f4;--surface-hover:#dedede;--text:#101010;--muted:#5e5e5e;--line:#b8b8b8;--accent:#101010;--accent-hover:#333333;--accent-soft:#e1e1e1;--accent-text:#101010;--focus:#111111;--shadow:0 12px 24px #0000001a}
:root[data-theme="cyber"]{--bg:#090b1c;--surface:#12162b;--surface-alt:#181e3a;--surface-hover:#232b50;--text:#f4f5ff;--muted:#9aa6ca;--line:#394272;--accent:#00e5ff;--accent-hover:#5df0ff;--accent-soft:#103f55;--accent-text:#64f1ff;--focus:#00e5ff;--danger:#ff4b9b;--shadow:0 16px 54px #02031799}
:root[data-theme="art-deco"]{--bg:#161311;--surface:#211c17;--surface-alt:#2a221b;--surface-hover:#3a2d20;--text:#f5e6bf;--muted:#b9a77e;--line:#6e5732;--accent:#d4a64c;--accent-hover:#e8c476;--accent-soft:#4a3920;--accent-text:#f0cb77;--focus:#e7ba5d;--shadow:0 14px 42px #08060488}
:root[data-theme="magazine"]{--bg:#f4eee5;--surface:#fffdf7;--surface-alt:#f8f0e5;--surface-hover:#f2dfce;--text:#2b1d1a;--muted:#836c66;--line:#e2cfc4;--accent:#9f2936;--accent-hover:#7e1e2a;--accent-soft:#f2d5d3;--accent-text:#7c202c;--focus:#b84b54;--shadow:0 12px 36px #6f252016}
:root[data-theme="glass-orbit"]{--bg:#080c1d;--surface:#17213f;--surface-alt:#1d2b50;--surface-hover:#293b68;--text:#edf3ff;--muted:#a9badb;--line:#3b4d79;--accent:#9f8bff;--accent-hover:#c0b3ff;--accent-soft:#342e69;--accent-text:#c7bcff;--focus:#af9dff;--shadow:0 18px 70px #06071599}
:root[data-theme="minimal-zen"]{--bg:#f4f5ef;--surface:#fbfcf7;--surface-alt:#eef1e9;--surface-hover:#e4e9df;--text:#2c342e;--muted:#78847a;--line:#d9e0d7;--accent:#718b75;--accent-hover:#5a715e;--accent-soft:#dfe9de;--accent-text:#516c57;--focus:#8ba48f;--shadow:0 10px 34px #4d604a14}
.theme-swatch-terminal{background:#43e879}.theme-swatch-paper{background:#8f5b38}.theme-swatch-brutalist{background:#e83828}.theme-swatch-aurora{background:#6ce5c1}.theme-swatch-monochrome{background:#101010}.theme-swatch-cyber{background:#00e5ff}.theme-swatch-art-deco{background:#d4a64c}.theme-swatch-magazine{background:#9f2936}.theme-swatch-glass-orbit{background:#9f8bff}.theme-swatch-minimal-zen{background:#718b75}

/* Additional layout archetypes. */
:root[data-theme="terminal"] body.auth-office{background:radial-gradient(circle at 90% 12%,#1f8b4d44 0 10%,transparent 32%),#07120c;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
:root[data-theme="terminal"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,520px);place-items:center;padding:46px 22px 70px}
:root[data-theme="terminal"] .auth-stack{width:100%}.auth-main-centered:before{pointer-events:none}
:root[data-theme="terminal"] .auth-theme-picker{background:#0b1a11;border:1px solid #2a6540;border-radius:3px;box-shadow:0 0 0 1px #102f1d,0 12px 38px #0008}
:root[data-theme="terminal"] .auth-theme-picker-heading:before{content:"> ";color:var(--accent)}
:root[data-theme="terminal"] .auth-card-office{background:#0b1a11;border:1px solid #2a6540;border-radius:3px;box-shadow:0 0 0 1px #102f1d,0 18px 46px #0009;padding:34px 38px}
:root[data-theme="terminal"] .auth-card-office .field input{background:#07120c;border-color:#2a6540;border-radius:2px;color:var(--text)}

:root[data-theme="paper"] body.auth-office{background:radial-gradient(#8f5b3820 1px,transparent 1px),#e9e0cf;background-size:14px 14px;font-family:Georgia,"Times New Roman",serif}
:root[data-theme="paper"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,500px);place-items:center;padding:42px 20px 70px}
:root[data-theme="paper"] .auth-stack{width:100%}.auth-main-centered:before{content:"信";position:absolute;left:9%;top:14%;font-size:180px;color:#8f5b3818;font-family:serif}
:root[data-theme="paper"] .auth-theme-picker{background:#f8f0df;border:2px solid #c8b28f;border-radius:2px;box-shadow:5px 5px 0 #8f5b3825}
:root[data-theme="paper"] .auth-card-office{background:#f8f0df;border:2px solid #bda37b;border-radius:2px;box-shadow:10px 10px 0 #8f5b3825;padding:40px 44px 34px}
:root[data-theme="paper"] .auth-card-office .field input{background:#fbf5e8;border-color:#bda37b;border-radius:2px}

:root[data-theme="brutalist"] body.auth-office{background:#f5ed2b;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
:root[data-theme="brutalist"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,560px);place-items:center;padding:28px 18px 50px}
:root[data-theme="brutalist"] .auth-stack{width:100%}
:root[data-theme="brutalist"] .auth-theme-picker{background:#fff;border:4px solid #111;border-radius:0;box-shadow:8px 8px 0 #111;padding:12px}
:root[data-theme="brutalist"] .auth-card-office{background:#fff;border:4px solid #111;border-radius:0;box-shadow:12px 12px 0 #111;padding:38px 40px}
:root[data-theme="brutalist"] .auth-card-office .field input{border:3px solid #111;border-radius:0;background:#fff;min-height:48px}
:root[data-theme="brutalist"] .auth-card-office .btn-primary{border:3px solid #111;border-radius:0;box-shadow:5px 5px 0 #111;color:#fff}

:root[data-theme="aurora"] body.auth-office{background:radial-gradient(circle at 16% 18%,#55e8c855 0 9%,transparent 30%),radial-gradient(circle at 86% 78%,#9b68ff55 0 10%,transparent 34%),#071b2a}
:root[data-theme="aurora"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,540px);place-items:center;padding:46px 22px 70px}
:root[data-theme="aurora"] .auth-stack{width:100%}
:root[data-theme="aurora"] .auth-theme-picker{background:#153a45aa;border:1px solid #6ce5c166;border-radius:24px;backdrop-filter:blur(20px)}
:root[data-theme="aurora"] .auth-card-office{background:#102d3bcc;border:1px solid #6ce5c177;border-radius:30px;backdrop-filter:blur(24px);box-shadow:0 20px 70px #020f1d99;padding:42px 46px 38px}
:root[data-theme="aurora"] .auth-card-office .field input{background:#0c2534aa;border-color:#6ce5c155;border-radius:15px}

:root[data-theme="monochrome"] body.auth-office{background:#e7e7e7;filter:grayscale(1)}
:root[data-theme="monochrome"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,400px);place-items:center;padding:26px 20px 54px}
:root[data-theme="monochrome"] .auth-stack{width:100%}
:root[data-theme="monochrome"] .auth-theme-picker{background:#fff;border:1px solid #111;border-radius:0;padding:9px 12px;box-shadow:none}
:root[data-theme="monochrome"] .auth-card-office{background:#fff;border:1px solid #111;border-radius:0;box-shadow:8px 8px 0 #111;padding:30px 32px}
:root[data-theme="monochrome"] .auth-card-office .field input{border:1px solid #111;border-radius:0;background:#fff}

:root[data-theme="cyber"] body.auth-office{background:linear-gradient(125deg,#090b1c 0%,#11153a 52%,#2a123d 100%);font-family:"Segoe UI Variable Text",system-ui,sans-serif}
:root[data-theme="cyber"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,580px);place-items:center;padding:40px 18px 66px}
:root[data-theme="cyber"] .auth-stack{width:100%}
:root[data-theme="cyber"] .auth-theme-picker{background:#0b1026ee;border:1px solid #00e5ff77;border-radius:3px;box-shadow:0 0 24px #00e5ff22}
:root[data-theme="cyber"] .auth-card-office{background:#10152bee;border:1px solid #00e5ff99;border-radius:3px;box-shadow:0 0 0 1px #ff4b9b44,0 0 42px #00e5ff2e;padding:38px 44px}
:root[data-theme="cyber"] .auth-card-office .field input{background:#080b1d;border-color:#00e5ff66;border-radius:3px}

:root[data-theme="art-deco"] body.auth-office{background:radial-gradient(circle at 50% 0,#d4a64c22 0 8%,transparent 30%),#161311;font-family:Georgia,"Times New Roman",serif}
:root[data-theme="art-deco"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,500px);place-items:center;padding:48px 22px 70px}
:root[data-theme="art-deco"] .auth-stack{width:100%}
:root[data-theme="art-deco"] .auth-theme-picker{background:#211c17;border:1px solid #d4a64c66;border-radius:0;box-shadow:inset 0 0 0 3px #211c17, inset 0 0 0 4px #6e5732}
:root[data-theme="art-deco"] .auth-card-office{background:#211c17;border:1px solid #d4a64c99;border-radius:0;box-shadow:inset 0 0 0 3px #211c17,inset 0 0 0 4px #6e5732,0 18px 44px #0009;padding:42px 44px 38px}
:root[data-theme="art-deco"] .auth-card-office .field input{background:#161311;border-color:#6e5732;border-radius:0}

:root[data-theme="magazine"] body.auth-office{background:linear-gradient(110deg,#f4eee5 0 72%,#9f2936 72%);font-family:Georgia,"Times New Roman",serif}
:root[data-theme="magazine"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,580px);place-items:center;padding:42px 20px 68px}
:root[data-theme="magazine"] .auth-stack{width:100%}
:root[data-theme="magazine"] .auth-theme-picker{background:#fffdf7;border:0;border-top:5px solid #9f2936;border-radius:0;box-shadow:0 10px 26px #6f25201a}
:root[data-theme="magazine"] .auth-card-office{background:#fffdf7;border:0;border-left:8px solid #9f2936;border-radius:0;box-shadow:14px 14px 0 #9f293633;padding:42px 48px 38px}
:root[data-theme="magazine"] .auth-card-office .field input{background:#f8f0e5;border-color:#d7bdb1;border-radius:0}

:root[data-theme="glass-orbit"] body.auth-office{background:radial-gradient(circle at 18% 22%,#9f8bff44 0 7%,transparent 29%),radial-gradient(circle at 82% 76%,#4bc6ff3b 0 8%,transparent 31%),#080c1d}
:root[data-theme="glass-orbit"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,500px);place-items:center;padding:42px 20px 70px}
:root[data-theme="glass-orbit"] .auth-stack{width:100%}
:root[data-theme="glass-orbit"] .auth-theme-picker{background:#18244588;border:1px solid #9f8bff66;border-radius:30px;backdrop-filter:blur(24px);box-shadow:0 18px 60px #06071588}
:root[data-theme="glass-orbit"] .auth-card-office{background:#17213faa;border:1px solid #c0b3ff77;border-radius:38px;backdrop-filter:blur(28px);box-shadow:0 24px 80px #060715aa;padding:44px 48px 40px}
:root[data-theme="glass-orbit"] .auth-card-office .field input{background:#101a36aa;border-color:#9f8bff66;border-radius:18px}

:root[data-theme="minimal-zen"] body.auth-office{background:linear-gradient(180deg,#f4f5ef,#eef1e9);font-family:"Segoe UI Variable Text","Segoe UI",system-ui,sans-serif}
:root[data-theme="minimal-zen"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,380px);place-items:center;padding:52px 20px 72px}
:root[data-theme="minimal-zen"] .auth-stack{width:100%}
:root[data-theme="minimal-zen"] .auth-theme-picker{background:transparent;border:0;border-bottom:1px solid #d9e0d7;border-radius:0;box-shadow:none;padding:10px 0}
:root[data-theme="minimal-zen"] .auth-card-office{background:#fbfcf7;border:0;border-radius:4px;box-shadow:0 18px 50px #4d604a12;padding:40px 42px 34px}
:root[data-theme="minimal-zen"] .auth-card-office .field input{background:#eef1e9;border-color:#d9e0d7;border-radius:6px}

@media(max-width:720px){
  :root[data-theme="terminal"] .auth-main-centered,:root[data-theme="paper"] .auth-main-centered,:root[data-theme="brutalist"] .auth-main-centered,:root[data-theme="aurora"] .auth-main-centered,:root[data-theme="monochrome"] .auth-main-centered,:root[data-theme="cyber"] .auth-main-centered,:root[data-theme="art-deco"] .auth-main-centered,:root[data-theme="magazine"] .auth-main-centered,:root[data-theme="glass-orbit"] .auth-main-centered,:root[data-theme="minimal-zen"] .auth-main-centered{grid-template-columns:minmax(0,1fr);padding:18px 14px 34px}
  :root[data-theme="brutalist"] .auth-card-office{box-shadow:7px 7px 0 #111;padding:30px 24px}
  :root[data-theme="terminal"] .auth-card-office,:root[data-theme="paper"] .auth-card-office,:root[data-theme="aurora"] .auth-card-office,:root[data-theme="cyber"] .auth-card-office,:root[data-theme="art-deco"] .auth-card-office,:root[data-theme="magazine"] .auth-card-office,:root[data-theme="glass-orbit"] .auth-card-office,:root[data-theme="minimal-zen"] .auth-card-office{border-radius:18px;padding:30px 24px 28px;box-shadow:var(--shadow)}
}

/* Keep labels readable on the three dark palette variants. */
:root[data-theme="ink"] .auth-card-office .field label,
:root[data-theme="midnight"] .auth-card-office .field label,
:root[data-theme="plum"] .auth-card-office .field label,
:root[data-theme="terminal"] .auth-card-office .field label,
:root[data-theme="aurora"] .auth-card-office .field label,
:root[data-theme="cyber"] .auth-card-office .field label,
:root[data-theme="art-deco"] .auth-card-office .field label,
:root[data-theme="glass-orbit"] .auth-card-office .field label{color:var(--text)}

/* Twenty additional visual systems (40 total). */
:root[data-theme="obsidian"]{--bg:#08090b;--surface:#14171b;--surface-alt:#1b2026;--surface-hover:#252b32;--text:#f0f3f6;--muted:#9aa6b2;--line:#353e48;--accent:#e2e8f0;--accent-hover:#fff;--accent-soft:#303943;--accent-text:#e8edf2;--focus:#fff;--shadow:0 20px 60px #000b}
:root[data-theme="ruby"]{--bg:#25090f;--surface:#3a1019;--surface-alt:#481521;--surface-hover:#5a1b29;--text:#fff2f3;--muted:#d5a9b0;--line:#783444;--accent:#ff6477;--accent-hover:#ff8b99;--accent-soft:#652535;--accent-text:#ffb7c0;--focus:#ff8192;--shadow:0 18px 55px #130307aa}
:root[data-theme="cobalt"]{--bg:#071329;--surface:#102347;--surface-alt:#162e59;--surface-hover:#1e3b70;--text:#eef5ff;--muted:#a7bad9;--line:#315389;--accent:#4e91ff;--accent-hover:#80b2ff;--accent-soft:#1f4277;--accent-text:#bcd5ff;--focus:#69a4ff;--shadow:0 18px 52px #020b1c88}
:root[data-theme="lime"]{--bg:#eaf2d1;--surface:#f8fbdc;--surface-alt:#f0f6c9;--surface-hover:#e5efaf;--text:#263014;--muted:#687547;--line:#c8d58b;--accent:#719b17;--accent-hover:#587b0c;--accent-soft:#dceaa8;--accent-text:#4d7008;--focus:#8ebc28;--shadow:0 14px 36px #526b141c}
:root[data-theme="vaporwave"]{--bg:#170d2b;--surface:#251343;--surface-alt:#311752;--surface-hover:#432164;--text:#fff1ff;--muted:#d0a9df;--line:#70468a;--accent:#ff5ed7;--accent-hover:#ff8ce5;--accent-soft:#5c2c6e;--accent-text:#ff9de8;--focus:#63efff;--shadow:0 18px 60px #090311aa}
:root[data-theme="synthwave"]{--bg:#120c2a;--surface:#21144a;--surface-alt:#2b1d5b;--surface-hover:#3a2873;--text:#f5efff;--muted:#b9a8dc;--line:#634e9a;--accent:#ffca5b;--accent-hover:#ffdf8d;--accent-soft:#5a3a68;--accent-text:#ffe19a;--focus:#ff67bc;--shadow:0 18px 55px #080418aa}
:root[data-theme="matrix"]{--bg:#020704;--surface:#06140a;--surface-alt:#0a1d0e;--surface-hover:#103016;--text:#c7ffd1;--muted:#65b876;--line:#1d6330;--accent:#22e35b;--accent-hover:#62ff8d;--accent-soft:#164a25;--accent-text:#7dff9c;--focus:#36f66b;--shadow:0 18px 58px #000b03}
:root[data-theme="desert"]{--bg:#ead5b8;--surface:#fff5df;--surface-alt:#f5e3c7;--surface-hover:#ecd0a9;--text:#3e2b1d;--muted:#866b50;--line:#d7b991;--accent:#bb6b32;--accent-hover:#965022;--accent-soft:#efd0ab;--accent-text:#8b4e22;--focus:#d88c50;--shadow:0 14px 36px #78441f24}
:root[data-theme="cloud"]{--bg:#edf4fb;--surface:#fff;--surface-alt:#f7faff;--surface-hover:#e7f0fa;--text:#21344b;--muted:#71849a;--line:#d5e2ef;--accent:#6d9ecb;--accent-hover:#4e7eac;--accent-soft:#dbeaf7;--accent-text:#37688f;--focus:#83b2db;--shadow:0 12px 34px #426b9418}
:root[data-theme="slate"]{--bg:#1b2229;--surface:#252e37;--surface-alt:#2d3843;--surface-hover:#374550;--text:#edf2f5;--muted:#a1afb9;--line:#455460;--accent:#b7c4cc;--accent-hover:#e2e9ed;--accent-soft:#3c4b57;--accent-text:#d6e1e7;--focus:#d2e1e8;--shadow:0 16px 48px #080b0e99}
:root[data-theme="copper"]{--bg:#201914;--surface:#30231b;--surface-alt:#3b2b20;--surface-hover:#4b3626;--text:#fff0d8;--muted:#c7a681;--line:#765335;--accent:#d58a4c;--accent-hover:#efa96a;--accent-soft:#5a3b27;--accent-text:#f2b77d;--focus:#e5a15d;--shadow:0 18px 48px #11090699}
:root[data-theme="jade-night"]{--bg:#061a18;--surface:#0d2a27;--surface-alt:#123632;--surface-hover:#19453f;--text:#e3fff7;--muted:#91c9bc;--line:#28665d;--accent:#48d5b0;--accent-hover:#7aefd1;--accent-soft:#1b534a;--accent-text:#9af4dc;--focus:#6ce8c4;--shadow:0 18px 58px #020e0c99}
:root[data-theme="sakura-night"]{--bg:#210e1c;--surface:#351528;--surface-alt:#431c33;--surface-hover:#562543;--text:#fff0f7;--muted:#d1a5bb;--line:#713653;--accent:#ff80b8;--accent-hover:#ffa9d0;--accent-soft:#642b4b;--accent-text:#ffb3d5;--focus:#ff92c4;--shadow:0 18px 60px #10030baa}
:root[data-theme="glacier"]{--bg:#dcecf4;--surface:#f9fdff;--surface-alt:#eaf6fb;--surface-hover:#d9edf5;--text:#1f3a48;--muted:#698795;--line:#bedae5;--accent:#3a9bb8;--accent-hover:#287b96;--accent-soft:#d0eaf2;--accent-text:#256f88;--focus:#5ab6cd;--shadow:0 14px 38px #2a778a1c}
:root[data-theme="volcanic"]{--bg:#160907;--surface:#2a100c;--surface-alt:#39150f;--surface-hover:#4e1c13;--text:#fff0e9;--muted:#d19e8d;--line:#743529;--accent:#ff7043;--accent-hover:#ff9971;--accent-soft:#6a281c;--accent-text:#ffb196;--focus:#ff825f;--shadow:0 18px 60px #090201aa}
:root[data-theme="blueprint"]{--bg:#0b2b4d;--surface:#123d68;--surface-alt:#174878;--surface-hover:#205a8d;--text:#eaf7ff;--muted:#9cc4df;--line:#3b78a8;--accent:#f4d36b;--accent-hover:#ffe5a0;--accent-soft:#375a78;--accent-text:#ffe29a;--focus:#f4d36b;--shadow:0 18px 48px #06172b99}
:root[data-theme="newspaper"]{--bg:#d7d2c7;--surface:#f6f1e7;--surface-alt:#e9e2d5;--surface-hover:#ddd4c5;--text:#201f1c;--muted:#6e6a60;--line:#b7afa1;--accent:#1e1e1e;--accent-hover:#494949;--accent-soft:#ded8cc;--accent-text:#252525;--focus:#111;--shadow:5px 5px 0 #3c393324}
:root[data-theme="arcade"]{--bg:#170d2a;--surface:#27184a;--surface-alt:#33205d;--surface-hover:#452c76;--text:#fff7d1;--muted:#c7b7e3;--line:#7150a5;--accent:#ffe66d;--accent-hover:#fff2a9;--accent-soft:#674b70;--accent-text:#fff19a;--focus:#ff6fc8;--shadow:0 10px 0 #0c0618,0 18px 38px #0008}
:root[data-theme="stealth"]{--bg:#0d0f12;--surface:#171a1f;--surface-alt:#1e2329;--surface-hover:#293039;--text:#e6e9eb;--muted:#8f989f;--line:#353d44;--accent:#b9c4c9;--accent-hover:#e1e7e9;--accent-soft:#30383e;--accent-text:#d2dbdf;--focus:#d8e2e6;--shadow:0 20px 60px #000c}
:root[data-theme="imperial"]{--bg:#260d0b;--surface:#3b1510;--surface-alt:#4b1b12;--surface-hover:#642416;--text:#fff2c7;--muted:#d3ad70;--line:#81542c;--accent:#e3b44f;--accent-hover:#f4d477;--accent-soft:#61351c;--accent-text:#f5d27d;--focus:#edc15c;--shadow:0 18px 58px #110403aa}

/* Terminal / hacker treatment: readable CRT scanlines, command prompt, and phosphor glow. */
:root[data-theme="terminal"] body.auth-office{background-color:#050b08;background-image:repeating-linear-gradient(0deg,#0b2d1b22 0 1px,transparent 1px 4px),radial-gradient(circle at 50% 0,#1dd15a33,transparent 48%),linear-gradient(135deg,#020604,#07170d 55%,#020604);font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
:root[data-theme="terminal"] body.auth-office:before{content:"";position:fixed;inset:0;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0 7px,#49ff8a08 7px 8px);mix-blend-mode:screen;opacity:.6}
:root[data-theme="terminal"] .auth-main-centered{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,620px);place-items:center;padding:42px 18px 68px}
:root[data-theme="terminal"] .auth-theme-picker{background:#06170ce8;border:1px solid #39d76b99;border-radius:2px;box-shadow:0 0 0 1px #0c3b1b,0 0 32px #18d45b33}
:root[data-theme="terminal"] .auth-theme-picker-heading:before{content:"root@bzds:~$ themes --list  ";color:#62ff8e}
:root[data-theme="terminal"] .auth-card-office{position:relative;background:#06170cf2;border:1px solid #39d76b99;border-radius:2px;box-shadow:0 0 0 1px #0c3b1b,0 0 34px #18d45b44;padding:36px 40px}
:root[data-theme="terminal"] .auth-card-office:before{content:"root@bzds:~$ authenticate";display:block;margin-bottom:18px;color:#62ff8e;font:600 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em}
:root[data-theme="terminal"] .auth-card-office:after{content:"_";position:absolute;right:22px;top:21px;color:#62ff8e;animation:terminal-cursor 1s steps(2,end) infinite}
:root[data-theme="terminal"] .auth-card-office .field input{background:#020a05;border-color:#2a9c4e;border-radius:2px;color:#c8ffd5;box-shadow:inset 0 0 14px #0c3f1c66}
:root[data-theme="terminal"] .auth-card-office .btn-primary{border-radius:2px;text-transform:uppercase;letter-spacing:.08em;box-shadow:0 0 16px #28db6133}
@keyframes terminal-cursor{50%{opacity:0}}

/* New layout archetypes. */
:root[data-theme="obsidian"] body.auth-office{background:linear-gradient(135deg,#08090b 0 55%,#1b2229 55%)}
:root[data-theme="obsidian"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,440px);place-items:center;padding:58px 20px 80px}:root[data-theme="obsidian"] .auth-theme-picker{}
:root[data-theme="obsidian"] .auth-card-office{background:#14171b;border:1px solid #68727e;border-radius:18px;box-shadow:18px 18px 0 #0008;padding:42px}:root[data-theme="obsidian"] .auth-card-office{}
:root[data-theme="ruby"] body.auth-office{background:linear-gradient(120deg,#25090f 0 42%,#561b29 42%)}
:root[data-theme="ruby"] .auth-main-centered{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,460px);align-items:center;justify-content:center;gap:60px;padding:52px 24px 74px}:root[data-theme="ruby"] .auth-main-centered:before{content:"RUBY\A MAIL";white-space:pre;color:#ff8393;font-size:48px;font-weight:800;line-height:.9;letter-spacing:-.08em}:root[data-theme="ruby"] .auth-card-office{border-radius:26px}
:root[data-theme="cobalt"] body.auth-office{background:linear-gradient(160deg,#071329,#174a84)}
:root[data-theme="cobalt"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,520px);place-items:center;padding:36px 18px 64px}:root[data-theme="cobalt"] .auth-card-office{border-radius:4px}
:root[data-theme="lime"] body.auth-office{background:#eaf2d1}:root[data-theme="lime"] .auth-main-centered{place-items:center}:root[data-theme="lime"] .auth-card-office{border-radius:0;border-top:12px solid var(--accent);box-shadow:12px 12px 0 #526b1440}
:root[data-theme="vaporwave"] body.auth-office{background:linear-gradient(145deg,#170d2b,#4e1f77 48%,#0c3756)}:root[data-theme="vaporwave"] .auth-card-office{border-radius:30px;background:#251343dd;backdrop-filter:blur(20px);border:1px solid #ff5ed777;box-shadow:0 0 40px #ff5ed744}
:root[data-theme="synthwave"] body.auth-office{background:linear-gradient(180deg,#120c2a,#3d1f74);background-image:linear-gradient(#ffca5b18 1px,transparent 1px),linear-gradient(90deg,#ffca5b18 1px,transparent 1px),linear-gradient(180deg,#120c2a,#3d1f74);background-size:28px 28px,28px 28px,auto}:root[data-theme="synthwave"] .auth-card-office{border-radius:5px;border:2px solid #ffca5b99;box-shadow:0 0 0 4px #120c2a,0 0 34px #ff67bc55}
:root[data-theme="matrix"] body.auth-office{background:#020704;background-image:radial-gradient(#22e35b22 1px,transparent 1px);background-size:18px 18px}:root[data-theme="matrix"] .auth-card-office{border-radius:0;border-left:6px solid var(--accent);box-shadow:0 0 0 1px #22e35b44,0 0 34px #22e35b33}
:root[data-theme="desert"] body.auth-office{background:linear-gradient(120deg,#ead5b8,#fff1d8)}:root[data-theme="desert"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,520px);place-items:center}:root[data-theme="desert"] .auth-card-office{border-radius:3px;box-shadow:14px 14px 0 #78441f2e}
:root[data-theme="cloud"] body.auth-office{background:linear-gradient(180deg,#dbeaf5,#fff)}:root[data-theme="cloud"] .auth-card-office{border-radius:34px;box-shadow:0 26px 70px #426b9428;padding:46px}:root[data-theme="cloud"] .auth-theme-picker{border-radius:34px}
:root[data-theme="slate"] body.auth-office{background:#1b2229}:root[data-theme="slate"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,480px);place-items:center}:root[data-theme="slate"] .auth-card-office{border-radius:12px;border-left:3px solid var(--accent);box-shadow:0 18px 50px #080b0eaa}
:root[data-theme="copper"] body.auth-office{background:linear-gradient(135deg,#201914,#6a3c22)}:root[data-theme="copper"] .auth-card-office{border-radius:10px;border:2px solid #d58a4c99;background:#30231bee}:root[data-theme="copper"] .auth-theme-picker{border-radius:10px}
:root[data-theme="jade-night"] body.auth-office{background:radial-gradient(circle at 80% 10%,#48d5b033,transparent 35%),#061a18}:root[data-theme="jade-night"] .auth-card-office{border-radius:24px;border:1px solid #48d5b077;background:#0d2a27e8;box-shadow:0 0 34px #48d5b033}
:root[data-theme="sakura-night"] body.auth-office{background:radial-gradient(circle at 20% 10%,#ff80b844,transparent 35%),#210e1c}:root[data-theme="sakura-night"] .auth-card-office{border-radius:34px;background:#351528e8;border:1px solid #ff80b877;box-shadow:0 18px 54px #10030bbb}:root[data-theme="sakura-night"] .auth-theme-picker{border-radius:28px}
:root[data-theme="glacier"] body.auth-office{background:linear-gradient(140deg,#dcecf4,#ffffff)}:root[data-theme="glacier"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,420px);place-items:center}:root[data-theme="glacier"] .auth-card-office{border-radius:16px;border:1px solid #bedae5;box-shadow:0 24px 60px #2a778a22}
:root[data-theme="volcanic"] body.auth-office{background:linear-gradient(135deg,#160907,#7e2314)}:root[data-theme="volcanic"] .auth-card-office{border-radius:6px;border:1px solid #ff704388;border-top:5px solid #ff7043;box-shadow:0 0 34px #ff704344}
:root[data-theme="blueprint"] body.auth-office{background:#0b2b4d;background-image:linear-gradient(#f4d36b22 1px,transparent 1px),linear-gradient(90deg,#f4d36b22 1px,transparent 1px);background-size:26px 26px}:root[data-theme="blueprint"] .auth-card-office{border-radius:0;border:2px solid #f4d36b99;box-shadow:10px 10px 0 #06172b77}
:root[data-theme="newspaper"] body.auth-office{background:#d7d2c7}:root[data-theme="newspaper"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,520px);place-items:center}:root[data-theme="newspaper"] .auth-card-office{border-radius:0;border-top:6px double #1e1e1e;border-bottom:6px double #1e1e1e;box-shadow:none}:root[data-theme="newspaper"] .auth-theme-picker{border-radius:0}
:root[data-theme="arcade"] body.auth-office{background:linear-gradient(180deg,#170d2a,#4b2375)}:root[data-theme="arcade"] .auth-card-office{border-radius:4px;border:3px solid #ffe66d;box-shadow:0 8px 0 #0c0618,0 0 24px #ff6fc855}:root[data-theme="arcade"] .auth-card-office .btn-primary{border-radius:2px}
:root[data-theme="stealth"] body.auth-office{background:linear-gradient(150deg,#0d0f12,#293039)}:root[data-theme="stealth"] .auth-main-centered{display:grid;grid-template-columns:minmax(0,440px);place-items:center}:root[data-theme="stealth"] .auth-card-office{border-radius:2px;border:1px solid #b9c4c966;box-shadow:0 22px 70px #000c}
:root[data-theme="imperial"] body.auth-office{background:radial-gradient(circle at 50% 0,#e3b44f22,transparent 35%),linear-gradient(145deg,#260d0b,#5c1c10)}:root[data-theme="imperial"] .auth-card-office{border-radius:2px;border:1px solid #e3b44f99;box-shadow:inset 0 0 0 4px #3b1510,inset 0 0 0 5px #81542c,0 20px 50px #110403aa}:root[data-theme="imperial"] .auth-theme-picker{border-radius:2px}

@media(max-width:720px){
  :root[data-theme="ruby"] .auth-main-centered:before{display:none}
  :root[data-theme="ruby"] .auth-card-office,:root[data-theme="vaporwave"] .auth-card-office,:root[data-theme="sakura-night"] .auth-card-office{border-radius:24px}
  :root[data-theme="brutalist"] .auth-card-office,:root[data-theme="matrix"] .auth-card-office,:root[data-theme="blueprint"] .auth-card-office,:root[data-theme="newspaper"] .auth-card-office{border-radius:0}
  :root[data-theme="cloud"] .auth-card-office,:root[data-theme="glacier"] .auth-card-office{border-radius:24px;padding:30px 24px 28px}
  :root[data-theme="terminal"] .auth-card-office:before{font-size:10px}
}

/* Newspaper preset: carry the print layout across authenticated inbox and admin surfaces. */
:root[data-theme="newspaper"]{
  color-scheme:light;
  --font:Georgia,"Times New Roman",serif;
}
:root[data-theme="newspaper"] body:not(.auth-office){font-family:var(--font);background:var(--bg);color:var(--text)}
:root[data-theme="newspaper"] .app-header,
:root[data-theme="newspaper"] .admin-shell .app-header{
  background:var(--surface);
  color:var(--text);
  border-top:4px double var(--text);
  border-bottom:4px double var(--text);
  box-shadow:none;
}
:root[data-theme="newspaper"] .app-header .brand,
:root[data-theme="newspaper"] .app-header .brand-name,
:root[data-theme="newspaper"] .app-header .brand strong,
:root[data-theme="newspaper"] .app-header .header-actions,
:root[data-theme="newspaper"] .app-header .account-address{color:var(--text)}
:root[data-theme="newspaper"] .app-header .brand-mark,
:root[data-theme="newspaper"] .app-header .account-chip .sender-avatar{background:var(--text);color:var(--surface);border-radius:0}
:root[data-theme="newspaper"] .app-header .btn-secondary,
:root[data-theme="newspaper"] .app-header .btn-ghost,
:root[data-theme="newspaper"] .app-header .theme-toggle{color:var(--text);background:transparent;border-color:var(--line)}
:root[data-theme="newspaper"] .app-header .btn-secondary:hover,
:root[data-theme="newspaper"] .app-header .btn-ghost:hover,
:root[data-theme="newspaper"] .app-header .theme-toggle:hover{background:var(--surface-hover);border-color:var(--text);color:var(--text)}
:root[data-theme="newspaper"] .app-header .mail-header-search input,
:root[data-theme="newspaper"] .app-header>.search-field input{background:var(--surface-alt);color:var(--text);border:1px solid var(--line)}
:root[data-theme="newspaper"] .app-header .mail-header-search>svg,
:root[data-theme="newspaper"] .app-header>.search-field>svg{color:var(--muted)}
:root[data-theme="newspaper"] .mail-sidebar,
:root[data-theme="newspaper"] .admin-nav{background:var(--surface-alt);border-color:var(--line)}
:root[data-theme="newspaper"] .nav-link,
:root[data-theme="newspaper"] .admin-section-nav a{border-radius:0;color:var(--muted)}
:root[data-theme="newspaper"] .nav-link:hover,
:root[data-theme="newspaper"] .admin-section-nav a:hover{background:var(--surface-hover);color:var(--text)}
:root[data-theme="newspaper"] .nav-link.active,
:root[data-theme="newspaper"] .nav-link.on,
:root[data-theme="newspaper"] .nav-link[aria-current=page]{background:var(--accent-soft);color:var(--text);border-left:4px double var(--text);padding-left:8px}
:root[data-theme="newspaper"] .panel,
:root[data-theme="newspaper"] .settings-panel,
:root[data-theme="newspaper"] .stat-card{border-radius:0;box-shadow:var(--shadow)}
:root[data-theme="newspaper"] .panel-header,
:root[data-theme="newspaper"] .details-panel[open]>summary,
:root[data-theme="newspaper"] .data-table th{border-bottom:3px double var(--line)}
:root[data-theme="newspaper"] .data-table th{background:var(--surface-alt);color:var(--text);font-family:var(--font);letter-spacing:.08em;text-transform:uppercase}
:root[data-theme="newspaper"] .data-table td{border-bottom:1px solid var(--line)}
:root[data-theme="newspaper"] .data-table tbody tr:hover{background:var(--surface-hover)}
:root[data-theme="newspaper"] .mail-list-panel{border-right-color:var(--line)}
:root[data-theme="newspaper"] .mail-row{border-left-width:4px;border-radius:0}
:root[data-theme="newspaper"] .mail-row.unread{background:var(--accent-soft);border-left:4px double var(--text)}
:root[data-theme="newspaper"] .mail-row:hover{background:var(--surface-hover)}
:root[data-theme="newspaper"] .mail-reader,
:root[data-theme="newspaper"] .mail-reader-placeholder{background:var(--bg)}
:root[data-theme="newspaper"] .reader-header,
:root[data-theme="newspaper"] .reader-body{border-radius:0;box-shadow:var(--shadow)}
:root[data-theme="newspaper"] .reader-header{border-top:3px double var(--line)}
:root[data-theme="newspaper"] .reader-body{border-bottom:3px double var(--line)}
:root[data-theme="newspaper"] .field input,
:root[data-theme="newspaper"] .field textarea,
:root[data-theme="newspaper"] .field select,
:root[data-theme="newspaper"] .search-field input,
:root[data-theme="newspaper"] input.control,
:root[data-theme="newspaper"] select.control{border-radius:0;background:var(--surface);border-color:var(--line)}
:root[data-theme="newspaper"] .btn,
:root[data-theme="newspaper"] .icon-btn{border-radius:0}
:root[data-theme="newspaper"] .btn-primary{background:var(--text);color:var(--surface);border-color:var(--text)}
:root[data-theme="newspaper"] .btn-primary:hover{background:var(--accent-hover);color:#fff}
:root[data-theme="newspaper"] .badge{border-radius:0}
:root[data-theme="newspaper"] .settings-summary{border-radius:0;background:var(--surface-alt);border:1px solid var(--line)}

/* The selected newspaper preset is now the fixed sign-in presentation. */
body.auth-office .auth-main-centered{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;width:min(560px,100%);padding:clamp(24px,7vh,64px) 20px 40px;position:relative}
body.auth-office .auth-stack{position:relative;width:100%;z-index:2}
body.auth-office .auth-card-office{border-radius:0;border-top:6px double var(--text);border-bottom:6px double var(--text);box-shadow:none}
body.auth-office .auth-form-actions .btn-block{width:100%;min-height:42px}
body.auth-office .auth-options{padding:16px 0 0;margin:0}
body.auth-office .auth-options:empty{display:none}
body.auth-office .auth-options-heading{font-size:11px;line-height:1.6;font-weight:400;margin:0;color:var(--muted)}
body.auth-office .auth-divider{display:flex;align-items:center;justify-content:center;gap:12px;height:auto;background:none;margin:24px 0;color:var(--muted);font-size:11px}
body.auth-office .auth-divider:before,body.auth-office .auth-divider:after{content:"";height:1px;background:var(--line);flex:1}
.auth-language{position:relative;z-index:3;width:min(520px,100%);display:flex;align-items:center;justify-content:flex-end;gap:5px;margin:0 0 10px;color:var(--muted);font:600 11px/1.2 Georgia,"Times New Roman",serif}
.auth-language span{margin-right:3px;letter-spacing:.04em}
.auth-language button{min-width:34px;padding:5px 7px;border:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--muted);font:600 10px/1.2 ui-sans-serif,system-ui,sans-serif;cursor:pointer;transition:background .18s,color .18s,border-color .18s,transform .18s}
.auth-language button:hover,.auth-language button:focus-visible{background:var(--surface-hover);color:var(--text);border-color:var(--text)}
.auth-language button:active{transform:translateY(1px)}
.auth-language button[aria-pressed="true"]{background:var(--text);border-color:var(--text);color:var(--surface)}
.auth-language .theme-toggle{min-width:auto;margin-left:8px;padding-inline:9px}
.auth-unified .auth-options{display:none}
@media(max-width:720px){.auth-language{width:100%;margin-bottom:8px}}
/* Dark mode keeps the same newspaper geometry, with the paper palette inverted. */
:root[data-theme="dark"] body:not(.auth-office){font-family:Georgia,"Times New Roman",serif}
:root[data-theme="dark"] .app-header{border-top:4px double var(--text);border-bottom:4px double var(--text);box-shadow:none}
:root[data-theme="dark"] .panel,:root[data-theme="dark"] .settings-panel,:root[data-theme="dark"] .stat-card,:root[data-theme="dark"] .reader-header,:root[data-theme="dark"] .reader-body{border-radius:0;box-shadow:var(--shadow)}
:root[data-theme="dark"] .data-table th{border-bottom:3px double var(--line);font-family:Georgia,"Times New Roman",serif}
:root[data-theme="dark"] .data-table td{border-bottom:1px solid var(--line)}
:root[data-theme="dark"] .mail-row{border-radius:0;border-left-width:4px}
:root[data-theme="dark"] .mail-row.unread{border-left:4px double var(--text)}
:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field textarea,:root[data-theme="dark"] .field select,:root[data-theme="dark"] .search-field input,:root[data-theme="dark"] input.control,:root[data-theme="dark"] select.control,:root[data-theme="dark"] .btn,:root[data-theme="dark"] .icon-btn{border-radius:0}
:root[data-theme="dark"] .btn-primary{background:var(--text);color:var(--surface);border-color:var(--text)}

/* Admin actions are deliberately isolated in focused, scrollable dialogs. */
.dialog-shell{width:min(780px,calc(100% - 28px));max-width:none;max-height:min(90dvh,860px);padding:0;border:0;background:transparent;color:var(--text);overflow:visible}
.dialog-shell::backdrop{background:color-mix(in srgb,var(--bg) 72%,#000 28%);backdrop-filter:blur(4px)}
.dialog-panel{width:100%;max-height:min(90dvh,860px);margin:0;overflow:auto;border:1px solid var(--line);box-shadow:0 24px 80px #0007}
.dialog-panel .panel-header{position:sticky;top:0;z-index:2;align-items:flex-start;gap:18px;background:var(--surface)}
.dialog-panel .panel-header>div:first-child{min-width:0}
.dialog-heading-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.dialog-close{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:var(--radius-sm,6px);background:var(--surface-alt);color:var(--text);font:500 24px/1 system-ui,sans-serif;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.dialog-close:hover,.dialog-close:focus-visible{background:var(--surface-hover);border-color:var(--accent);outline:none}
.dialog-close:active{transform:translateY(1px)}
.dialog-shell:not([open]){display:none}
@keyframes dialog-enter{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
.dialog-shell[open] .dialog-panel{animation:dialog-enter .2s ease-out both}
@media(max-width:720px){
  .dialog-shell{width:calc(100% - 18px);max-height:94dvh}
  .dialog-panel{max-height:94dvh}
  .dialog-panel .panel-header{padding:18px 16px}
  .dialog-panel .panel-body{padding:18px 16px 20px}
  .dialog-heading-actions{gap:6px}
  .dialog-heading-actions .badge{display:none}
}
:root[data-theme="newspaper"] .dialog-shell::backdrop{background:#201f1c66}
:root[data-theme="newspaper"] .dialog-panel{border-radius:0;border-top:4px double var(--text);border-bottom:4px double var(--text);box-shadow:8px 12px 0 #3c393333}
:root[data-theme="newspaper"] .dialog-close{border-radius:0;background:var(--surface-alt);font-family:Georgia,"Times New Roman",serif}
