/* Shared burnt sienna palette; darker accents keep light-mode text readable. */
:root{--accent:#e97451;--accent-strong:#a64732;--accent-hover:#873a29;--accent-soft:#f7e5df;--accent-ink:#783e30;--accent-highlight:#efb8a6;--focus:#a64732;--masthead:#a64732;--masthead-rule:#e97451;}
:root[data-theme=dark]{--accent:#e97451;--accent-strong:#f1a087;--accent-hover:#ffc2ad;--accent-soft:#493029;--accent-ink:#f5c8ba;--accent-highlight:#f1a087;--focus:#f1a087;--masthead:#48271f;--masthead-rule:#e97451;}
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#2b2725;background:#f7f5f4;font-synthesis:none;--muted:#8b8684;--border:#e9e4e2}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}input:focus-visible{outline:2px solid var(--focus)}button{color:inherit}[hidden]{display:none!important}.shell{display:flex;min-height:100vh}.sidebar{width:244px;background:#f2eeec;border-right:1px solid var(--border);padding:36px 22px 24px;display:flex;flex-direction:column;flex-shrink:0}.brand,.monogram{font-family:Georgia,serif;font-weight:bold;font-size:44px;letter-spacing:-4px;color:var(--accent-strong);text-decoration:none}.brand{margin:0 16px 61px}.brand span,.monogram span{color:var(--accent)}.workspace-label{font-size:9px;font-weight:600;color:#928b87;letter-spacing:1.7px;margin:0 15px 16px}.nav-item{border:0;display:flex;align-items:center;gap:12px;width:100%;padding:14px 15px;border-radius:9px;font-size:13px;background:var(--accent-soft);color:var(--accent-ink);font-weight:600}.nav-icon{font-size:20px;font-weight:400}.pill{margin-left:auto;font-size:10px;background:#f6f3f2;padding:3px 6px;border-radius:4px}.sidebar-bottom{margin-top:auto;display:flex;align-items:center;padding-top:30px;gap:10px}.avatar{background:#e2dbd7;width:35px;height:35px;border-radius:50%;display:grid;place-items:center;color:#756157;font-size:10px}.sidebar-bottom strong{font-size:11px;display:block}.sidebar-bottom small{font-size:10px;color:#928b88;display:block;margin-top:4px}.sidebar-bottom button{margin-left:auto;border:0;background:none;color:#867c77}main{padding:0 44px 22px;max-width:1800px;width:100%;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;height:91px;font-size:11px;border-bottom:1px solid var(--border)}.breadcrumb{margin:0 14px;color:#beb7b3}.topbar-right{display:flex;align-items:center;gap:22px;color:#8b8480}.private-badge{background:#efecea;border:1px solid #e6e0dd;border-radius:5px;padding:5px 9px;font-size:10px;color:#79665c}.page-heading{display:flex;align-items:center;justify-content:space-between;padding:37px 0 30px}.eyebrow{font-size:9px;letter-spacing:2.1px;color:#86766e;font-weight:650;margin:0 0 13px}h1{font-size:34px;letter-spacing:-1.2px;margin:0;font-weight:550}.heading-dot{color:var(--accent)}.muted{color:var(--muted)}.page-heading .muted{font-size:12px;margin:11px 0 0}.outline{background:#fff;border:1px solid #e2dbd7;border-radius:6px;padding:10px 14px;font-size:11px;display:inline-flex;align-items:center;gap:9px}.overview{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:16px;margin-bottom:28px}.overview article{background:#fff;border:1px solid var(--border);border-radius:9px;padding:21px 24px}.stat-label{font-size:9px;letter-spacing:1.2px;color:#908580;display:block}.overview strong{font-size:30px;font-weight:500;display:block;margin:14px 0 9px;line-height:1}.overview small{font-size:10px;color:#9b928e}.overview .device-name{font-size:16px;margin:17px 0 13px;display:flex;gap:8px;align-items:center}.phone-icon{font-size:24px;line-height:12px}.status-dot{display:inline-block;background:#c2b9b5;border-radius:50%;width:5px;height:5px;vertical-align:middle;margin-right:5px}.status-dot.green{background:#6a9265}.inbox{background:#fff;border:1px solid var(--border);border-radius:10px;overflow:hidden}.inbox-top{padding:19px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--border)}.tabs{display:flex;gap:5px;align-items:center}.tabs button{border:0;background:transparent;padding:9px 11px;font-size:11px;white-space:nowrap;color:#8b827e;border-radius:5px}.tabs .selected{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}.tabs button span{padding:2px 5px;border-radius:4px;background:#f2eeec;font-size:9px;margin-left:4px}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:5px;padding:7px 10px}.search>span{color:#ab968b;font-size:20px;line-height:15px}.search input{border:0;width:190px;background:transparent;font-size:10px;padding:2px;outline:none}.search input::placeholder{color:#a29792}.search kbd{font-size:10px;border:1px solid var(--border);border-radius:3px;color:#a99e98;padding:0 4px}.inbox-body{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(300px,1.35fr);min-height:430px;height:calc(100vh - 475px);max-height:850px}.message-list-pane{border-right:1px solid var(--border);overflow:auto}.list-label{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;color:#a49791;padding:17px 22px 13px}.list-label span:last-child{letter-spacing:0}.message-row{padding:17px 21px;width:100%;border:0;border-bottom:1px solid #f2eeec;text-align:left;background:#fff;display:flex;align-items:flex-start;gap:12px}.message-row:hover{background:#f7f6f5}.message-row.active{background:var(--accent-soft);border-left:3px solid var(--accent);padding-left:18px}.sender-avatar{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:11px;background:#f1eeec;font-size:12px;color:#948178}.message-row.active .sender-avatar{background:var(--accent-soft)}.row-copy{min-width:0;flex:1}.row-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.row-heading strong{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-heading time{font-size:9px;color:#a49993;white-space:nowrap}.row-preview{font-size:11px;color:#99908b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:8px 0 0;line-height:1.5}.unread-dot{width:5px;height:5px;background:var(--accent);display:inline-block;margin-left:7px;border-radius:50%}.message-detail{padding:28px 32px;overflow:auto;position:relative}.detail-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;text-align:center}.detail-placeholder h2,.empty h2{font-size:17px;font-weight:500;letter-spacing:-.3px;margin:24px 0 4px}.detail-placeholder p,.empty p{font-size:11px;color:#a89b95;line-height:1.9}.detail-caption{font-size:7px;letter-spacing:1.6px;color:#bcb3ae;margin-top:45px}.detail-art{position:relative;background:#f3f0ef;border-radius:50%;width:80px;height:80px;display:grid;place-items:center}.detail-art span{color:#ac978c;font-size:36px;transform:rotate(-8deg)}.detail-art i,.detail-art b{position:absolute;width:6px;height:6px;border-radius:50%;background:#d0c3bd;right:1px;top:3px}.detail-art b{left:-8px;top:60px;width:4px;height:4px}.detail-header{display:flex;align-items:center;gap:13px;padding-bottom:24px;border-bottom:1px solid var(--border)}.detail-header h2{font-size:17px;margin:0;overflow-wrap:anywhere}.detail-header small{font-size:10px;color:#9b8e87;display:block;margin-top:6px}.detail-time{margin:23px 0;font-size:10px;color:#a79992}.message-bubble{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:14px;border-radius:0 14px 14px 14px;background:#f3f0ef;padding:19px 22px;unicode-bidi:plaintext}.detail-actions{display:flex;gap:12px;margin-top:22px}.detail-actions button{border:0;background:none;color:#978880;font-size:10px;padding:0}.detail-device{margin-top:35px;padding-top:18px;border-top:1px solid var(--border);color:#b4a69f;font-size:9px}.inbox-footer{border-top:1px solid var(--border);padding:13px 20px;display:flex;justify-content:space-between;font-size:8px;color:#a5968e}.page-foot{text-align:center;font-size:9px;color:#baafaa;margin:22px 0 0}.empty{text-align:center;padding:55px 15px}.empty-icon{font-size:30px;color:#b29f95}.empty .outline{margin-top:18px}.load-more{display:block;background:transparent;border:0;color:var(--accent-strong);font-size:11px;margin:17px auto}.notice{background:#fff6dc;padding:13px 22px;color:#877340;font-size:12px}.login{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 80% 0,#e9e4e1,transparent 55%),#f7f5f4}.login-card{max-width:430px;width:100%;padding:40px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 20px 70px #392e2910}.login-card .monogram{margin-bottom:42px}.login-card h1{font-size:27px;line-height:1.2}.login-card .muted{font-size:12px;margin:15px 0 30px}.login-card label{display:block;font-size:11px;margin-bottom:9px;color:#897c76}.login-card input{width:100%;border:1px solid #e2dad6;border-radius:6px;padding:12px;background:#faf9f9}.primary{border:0;background:var(--accent-strong);color:#fff;border-radius:6px;padding:13px 16px;width:100%;text-align:left;margin-top:14px;font-size:12px}.primary span{float:right}.login-foot{margin-top:34px;color:#b6a8a1;font-size:8px;letter-spacing:1px}#login-error{color:#a45c43;font-size:12px}dialog{border:1px solid var(--border);border-radius:14px;max-width:470px;padding:35px;color:#433731}dialog::backdrop{background:#30272255;backdrop-filter:blur(3px)}dialog h2{font-size:24px;font-weight:500}dialog ol{padding-left:20px;font-size:13px;line-height:1.8}dialog li{padding:7px 0}dialog p.muted{font-size:12px;line-height:1.7}.dialog-close{float:right;border:0;background:none;font-size:24px;color:#97867e}.detail-back{display:none}
@media(min-width:1500px){main{padding-left:60px;padding-right:60px}.inbox-body{min-height:490px}}@media(max-width:1100px){.sidebar{width:190px;padding-left:12px;padding-right:12px}main{padding:0 26px 20px}.overview article{padding:20px 16px}.inbox-top{padding:14px}.search input{width:150px}.message-detail{padding:25px}.sidebar-bottom small{display:none}}
@media(max-width:800px){.sidebar{width:72px;align-items:center;padding:24px 8px}.brand{font-size:33px;margin:0 0 45px}.workspace-label,.nav-item .pill,.sidebar-bottom>div:not(.avatar){display:none}.nav-item{font-size:0;padding:10px;width:44px}.nav-icon{font-size:22px}.sidebar-bottom{flex-direction:column}.sidebar-bottom button{margin:auto}.overview{gap:10px}.overview article{padding:16px 13px}.stat-label{font-size:8px;letter-spacing:.8px}.overview small{font-size:9px}.overview .device-name{font-size:13px}.inbox-body{grid-template-columns:1fr 1fr}.inbox-top{flex-wrap:wrap}.search{flex:1;min-width:170px}.search input{width:100%}.search kbd{display:none}.message-row{padding:17px 13px}.message-row.active{padding-left:10px}.row-heading{flex-wrap:wrap}.message-detail{padding:23px 18px}}
@media(max-width:600px){.sidebar{display:none}main{padding:0 17px 20px}.topbar{height:64px;font-size:10px}.topbar-right{gap:10px}.page-heading{padding:28px 0 23px}h1{font-size:28px}.eyebrow{font-size:8px;letter-spacing:1.7px}.page-heading .muted{font-size:10px;max-width:235px;line-height:1.6}.page-heading .outline{padding:8px 10px}.page-heading .outline span{display:none}.overview{grid-template-columns:1fr 1fr;margin-bottom:20px}.overview article{padding:16px}.overview .device-stat{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:center}.overview .device-name{grid-row:1/3;grid-column:2;margin:0;font-size:15px;justify-content:end}.device-stat small{margin-top:9px}.overview strong{font-size:27px}.inbox-top{gap:12px;padding:13px}.tabs{width:100%}.search{width:100%}.search input{font-size:12px}.inbox-body{display:block;min-height:400px;height:calc(100dvh - 510px)}.message-list-pane{height:100%;border:0}.message-detail{display:none;height:100%}.inbox-body.reading .message-list-pane{display:none}.inbox-body.reading .message-detail{display:block}.detail-back{display:block;border:0;background:none;padding:0;margin:0 0 23px;color:var(--accent-strong);font-size:12px}.message-row{padding:18px}.message-row.active{padding-left:15px}.row-heading{flex-wrap:nowrap}.row-heading strong{font-size:12px}.row-heading time{font-size:10px}.row-preview{font-size:12px}.inbox-footer{font-size:8px;padding:13px 12px}.inbox-footer>span:last-child{display:none}.login-card{padding:30px}.topbar time{display:none}.page-foot{font-size:8px}}

.mobile-signout{display:none;border:0;background:transparent;color:#867c77;padding:4px;font-size:16px}@media(max-width:600px){.mobile-signout{display:block}}

.detail-actions .delete-message{color:#a14e43;padding:8px 10px;border:1px solid #ead4d0;border-radius:5px}.detail-actions{align-items:center}.search input{min-width:0}

.bulk-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--border);font-size:10px;background:#faf9f9}.bulk-toolbar label{display:flex;align-items:center;gap:6px;cursor:pointer}.bulk-toolbar input,.selectable-message>input{accent-color:var(--accent-strong);width:16px;height:16px;cursor:pointer}.bulk-toolbar button{font-size:10px;border:1px solid #e2dbd7;border-radius:5px;padding:7px 9px;background:#fff}.bulk-toolbar #delete-selected{color:#a14e43;margin-left:auto}.selectable-message{display:flex;align-items:center;border-bottom:1px solid #f2eeec;padding-left:12px}.selectable-message .message-row{border-bottom:0;min-width:0;flex:1}.selectable-message>input{flex-shrink:0;margin:0 0 0 2px}.selectable-message:has(>input:checked){background:var(--accent-soft)}.selectable-message:has(>input:checked) .message-row{background:var(--accent-soft)}

.workspace-switch{display:flex;gap:8px;margin-top:22px}.workspace-switch button,.edition-button{border:1px solid var(--border);background:white;padding:12px 16px;border-radius:7px;text-align:left}.workspace-switch [aria-pressed="true"]{background:var(--accent-soft);color:var(--accent-strong)}.nav-item{margin-bottom:8px;background:transparent}.nav-item.active{background:var(--accent-soft)}.newsletter-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;margin-top:26px}.edition-button{display:block;width:100%;margin-bottom:9px;font-size:12px;line-height:1.6}.newsletter-paper{background:#fff;border:1px solid var(--border);padding:32px;border-radius:10px;min-width:0}.newsletter-paper h2{font-family:Georgia,serif;font-size:30px;font-weight:normal}.newsletter-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px}.newsletter-sources{display:flex;flex-wrap:wrap;gap:15px;margin-top:25px;border-top:1px solid var(--border);padding-top:20px}.newsletter-sources a{color:var(--accent-strong);font-size:12px}@media(max-width:800px){.newsletter-layout{grid-template-columns:1fr}.newsletter-paper{padding:22px}.newsletter-paper h2{font-size:26px}}

/* Personal letter: burnt sienna accents and an editorial reading column. */
.newsletter-layout{grid-template-columns:260px minmax(0,720px);gap:32px;align-items:start;justify-content:center;margin-top:32px}.archive-panel{position:sticky;top:24px;background:#fff;border:1px solid #e9e4e1;padding:25px 20px;border-radius:5px;min-width:0;color:var(--accent-ink)}.archive-eyebrow{font-size:9px;letter-spacing:2px;color:#80716a;margin:0 0 12px}.archive-panel h2{font-family:Georgia,Times,serif;font-size:24px;line-height:1.25;font-weight:normal;margin:0 0 24px}.calendar-header{display:flex;justify-content:space-between;gap:8px;margin-bottom:16px}.calendar-header button{background:#fff;border:1px solid #e8e3e0;border-radius:3px;padding:7px 10px;font-size:11px;color:var(--accent-ink)}.calendar-header button:disabled{cursor:default;opacity:.3}.calendar-month-label{display:block;font-size:10px;color:#867268}.calendar-month-label input{display:block;width:100%;margin:7px 0 18px;padding:10px 8px;border:1px solid #e8e3e0;background:#fff;border-radius:3px;color:var(--accent-ink);font-size:14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}.calendar-weekday{font-size:9px;color:#95867f;padding:5px 0 9px}.calendar-day{position:relative;aspect-ratio:1;background:#f5f3f2;border:1px solid transparent;border-radius:3px;color:var(--accent-ink);font-size:11px;padding:0}.calendar-day:disabled{background:transparent;opacity:1;color:#bbb0aa;cursor:default}.calendar-day:not(:disabled):hover{background:var(--accent-soft)}.calendar-day[aria-pressed=true]{background:var(--accent-strong);color:#fff;border-color:var(--accent-strong)}.calendar-day[aria-current=date]{border-color:var(--accent)}.calendar-day:focus-visible{outline-color:var(--focus)}.archive-count{font-size:10px;color:#867268;margin:16px 0}.calendar-latest{width:100%;padding:12px;background:var(--accent-soft);border:0;color:var(--accent-ink);font-size:11px;font-weight:600;border-radius:3px}.archive-note{font-size:10px;line-height:1.7;color:#95857d;margin:16px 0 24px}.archive-delivery{font-size:11px;line-height:1.9;border-top:1px solid #ebe6e3;padding-top:20px;margin:0 0 18px;color:#867369}.archive-delivery strong{font-size:12px;color:var(--accent-ink)}.archive-settings{font-size:11px;border-top:1px solid #ebe6e3;padding:15px 0 0;margin-top:15px}.archive-settings summary{cursor:pointer;line-height:1.6}.archive-settings #incoming-reports{max-height:360px;overflow:auto;padding-top:10px}.archive-settings #incoming-reports details{margin:8px 0}.archive-settings .newsletter-body{font-size:11px}.letter-column{min-width:0}.edition-status{font-size:10px;color:#917d73;margin:0 0 13px;line-height:1.7}.newsletter-paper#newsletter-detail{padding:0;border:1px solid #e8e3e0;border-radius:0;overflow:hidden;box-shadow:0 8px 35px #382e2905}.letter{background:#fff;color:#45342f;font-family:Arial,Helvetica,sans-serif;font-size:14px;text-align:left}.letter-masthead{background:var(--masthead);color:#fff;text-align:center;padding:38px 24px 30px;border-bottom:10px solid var(--masthead-rule)}.letter-masthead>p:first-child{font-size:10px;letter-spacing:2px;margin:0 0 12px}.letter .letter-masthead h1{font-family:Georgia,Times,serif;font-size:38px;line-height:1.15;font-weight:600;margin:0 0 15px;color:#fff;letter-spacing:-1px}.letter-masthead h1+p{font-size:11px;letter-spacing:2px;margin:0 0 12px}.letter-masthead>p:last-child{font-size:12px;line-height:1.6;margin:0}.letter-content{padding:34px 42px}.letter-content>p:first-child{font-size:9px;letter-spacing:1.6px;color:#80716a;margin:0 0 28px}.letter-content>div{border-top:3px solid var(--accent-highlight);padding-top:15px;margin-bottom:38px}.letter .letter-content>div>h2{font-family:Arial,Helvetica,sans-serif;font-size:17px;color:#342b26;margin:0 0 14px}.letter ul{padding-left:20px;margin:0;line-height:1.8}.letter li{padding:3px 0}.letter-section{margin:0 0 38px}.letter .letter-section>h2{font-family:Georgia,Times,serif;font-size:27px;line-height:1.25;margin:0 0 23px;padding-bottom:11px;border-bottom:3px solid var(--accent-highlight)}.letter-story{margin:0 0 26px}.letter-story h3{font-size:16px;line-height:1.4;margin:0 0 9px}.letter-story h4{font-size:16px;margin:24px 0 10px}.letter-story p{margin:0 0 14px;line-height:1.75;overflow-wrap:anywhere;unicode-bidi:plaintext}.letter a{color:#45342f;text-decoration:underline}.letter a.letter-link{display:inline-block;background:var(--accent-soft);padding:10px 14px;margin:4px 8px 4px 0;color:var(--accent-ink);font-size:12px;font-weight:bold;text-decoration:none}.letter footer{border-top:1px solid #eae5e3;padding-top:20px;color:#867369;font-size:11px;line-height:1.7}.newsletter-sources{display:block;margin:0;padding:20px 42px;background:#fcfcfc;border-top:1px solid #eae5e3;font-size:11px;color:#867369}.newsletter-sources summary{cursor:pointer}.newsletter-sources a{display:block;margin-top:12px;color:var(--accent-ink);overflow-wrap:anywhere}.letter-column:empty{min-height:400px}@media(max-width:1100px){.newsletter-layout{grid-template-columns:230px minmax(0,1fr);gap:20px}.letter-content{padding:28px}.letter .letter-masthead h1{font-size:34px}}@media(max-width:900px){.newsletter-layout{grid-template-columns:1fr}.archive-panel{position:static}.archive-panel h2{margin-bottom:16px}.calendar-grid{max-width:360px;margin:auto;gap:5px}.calendar-day{aspect-ratio:auto;min-height:38px}.archive-note,.archive-delivery{margin-bottom:12px}.archive-settings{display:none}.letter-content{padding:30px}.newsletter-sources{padding:20px 30px}}@media(max-width:600px){.newsletter-layout{margin-top:12px;gap:22px}.archive-panel{padding:20px}.archive-panel h2{font-size:23px}.calendar-header{margin-bottom:10px}.calendar-month-label input{margin-bottom:12px}.calendar-grid{max-width:none}.archive-count{margin:12px 0}.archive-note{margin:12px 0}.archive-delivery{display:none}.letter .letter-masthead h1{font-size:34px}.letter-masthead{padding:32px 22px 26px}.letter-content{padding:28px 24px}.letter .letter-section>h2{font-size:25px}.letter-story h3{font-size:16px}.letter{font-size:13px}.newsletter-sources{padding:18px 24px}#newsletters-view .page-heading{align-items:flex-start}#newsletters-view .page-heading h1{font-size:27px}#newsletters-view .page-heading .muted{max-width:270px}}

@font-face{font-family:Vazir;src:url('/dashboard/fonts/Vazir-Regular.woff2') format('woff2');font-style:normal;font-weight:100 500;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:Vazir;src:url('/dashboard/fonts/Vazir-Bold.woff2') format('woff2');font-style:normal;font-weight:600 900;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF}
:root{font-family:Vazir,Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color-scheme:light}
.letter,.letter h1,.letter h2,.letter h3,.letter h4,.original-report-body,.newsletter-body,.message-bubble{font-family:Vazir,Arial,Helvetica,sans-serif}
.letter .letter-masthead h1,.letter .letter-section>h2,.letter-originals h2{font-family:Vazir,Georgia,Times,serif}
.theme-control{position:fixed;right:20px;bottom:14px;z-index:20;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--border);border-radius:7px;padding:7px 10px;font-size:10px;color:#655953;box-shadow:0 3px 15px #00000008}.theme-control select{border:0;background:transparent;color:inherit;font:inherit;padding:4px;cursor:pointer}.page-foot{padding-bottom:34px}.daily-reports{margin-bottom:22px;background:#fff;border:1px solid #e9e4e1;padding:18px;border-radius:5px}.daily-reports>.eyebrow{font-size:9px;margin:0 0 13px;color:#867369}.daily-reports>.muted{font-size:10px;line-height:1.6;margin:13px 0 0}.daily-document-buttons{display:flex;gap:8px;flex-wrap:wrap}.daily-document-buttons button{background:#faf9f9;color:var(--accent-ink);border:1px solid #e8e3e0;padding:10px 12px;text-align:left;font-size:11px;line-height:1.6;border-radius:4px;max-width:100%;overflow-wrap:anywhere}.daily-document-buttons button[aria-pressed=true]{background:var(--accent-ink);color:#fff;border-color:var(--accent-ink)}.newsletter-paper.original-report#newsletter-detail{padding:30px}.original-report>.eyebrow{font-size:10px;color:#867369}.original-report>a{display:inline-block;font-size:12px;color:var(--accent-ink);margin:5px 0 24px}.original-report-body{font-size:14px;line-height:1.85;overflow-wrap:anywhere;unicode-bidi:plaintext}.original-report-body p{margin:0 0 18px}.original-report-body a{color:var(--accent-strong)}.original-report-body h4{font-size:17px;margin:24px 0 12px}.letter-originals{margin:25px 0 30px;border-top:1px solid #eae5e3;padding-top:20px}.letter-originals h2{font-size:23px!important;margin:0 0 16px!important}.letter-originals p{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.letter-originals a{font-size:11px}
:root[data-theme=dark]{color-scheme:dark;--border:#483b34;--muted:#b6a9a3;background:#211b18;color:#eae5e2}
[data-theme=dark] .sidebar,[data-theme=dark] .inbox,[data-theme=dark] .newsletter-paper,[data-theme=dark] .archive-panel,[data-theme=dark] .daily-reports,[data-theme=dark] .login-card,[data-theme=dark] dialog{background:#2e2622;color:#eae5e2;border-color:#483b34}
[data-theme=dark] .sidebar{background:#29211d}[data-theme=dark] .login{background:#211b18}[data-theme=dark] .topbar{border-color:#483b34}[data-theme=dark] .muted,[data-theme=dark] .eyebrow,[data-theme=dark] .page-foot,[data-theme=dark] .workspace-label,[data-theme=dark] .sidebar-bottom small,[data-theme=dark] .edition-status,[data-theme=dark] .archive-note,[data-theme=dark] .archive-count,[data-theme=dark] .archive-delivery,[data-theme=dark] .calendar-month-label,[data-theme=dark] .daily-reports>.eyebrow{color:#bdaea6}
[data-theme=dark] .brand,[data-theme=dark] .monogram,[data-theme=dark] .heading-dot{color:var(--accent-ink)}[data-theme=dark] .outline,[data-theme=dark] .workspace-switch button,[data-theme=dark] .calendar-header button,[data-theme=dark] .calendar-month-label input,[data-theme=dark] input,[data-theme=dark] .theme-control{background:#372d28;color:#ebe6e4;border-color:#5a4941}[data-theme=dark] select{color:#ebe6e4;background:#372d28}[data-theme=dark] .nav-item{color:var(--accent-ink)}[data-theme=dark] .nav-item.active,[data-theme=dark] .workspace-switch [aria-pressed=true],[data-theme=dark] .tabs .selected{background:var(--accent-soft);color:var(--accent-ink)}[data-theme=dark] .pill,[data-theme=dark] .tabs button span,[data-theme=dark] .avatar,[data-theme=dark] .private-badge{background:var(--accent-soft);color:var(--accent-ink)}
[data-theme=dark] .overview article,[data-theme=dark] .message-row,[data-theme=dark] .bulk-toolbar,[data-theme=dark] .selectable-message{background:#2e2622;color:#ebe6e3;border-color:#483b34}[data-theme=dark] .overview strong,[data-theme=dark] .device-name{color:#ebe6e4}[data-theme=dark] .overview small,[data-theme=dark] .row-preview,[data-theme=dark] .row-heading time,[data-theme=dark] .stat-label,[data-theme=dark] .detail-placeholder p,[data-theme=dark] .detail-time{color:#baaba3}[data-theme=dark] .message-row:hover,[data-theme=dark] .message-row.active,[data-theme=dark] .selectable-message:has(>input:checked),[data-theme=dark] .selectable-message:has(>input:checked) .message-row{background:var(--accent-soft)}[data-theme=dark] .sender-avatar,[data-theme=dark] .detail-art,[data-theme=dark] .message-bubble{background:#3d3430;color:#e7e2df}[data-theme=dark] .bulk-toolbar button{background:#40342e;color:#ebe6e4;border-color:#615047}[data-theme=dark] .search,[data-theme=dark] .inbox-top,[data-theme=dark] .inbox-footer,[data-theme=dark] .message-list-pane,[data-theme=dark] .detail-header{border-color:#483b34}
[data-theme=dark] .calendar-day{background:#4b3d36;color:#eeeae8}[data-theme=dark] .calendar-day:disabled{background:transparent;color:#927f76}[data-theme=dark] .calendar-day[aria-pressed=true]{background:var(--accent-highlight);color:#302723;border-color:var(--accent-highlight)}[data-theme=dark] .calendar-day:not(:disabled):hover{background:#776257;color:#fff}[data-theme=dark] .calendar-weekday{color:#c7b8b1}[data-theme=dark] .archive-panel h2,[data-theme=dark] .archive-delivery strong{color:#ede8e6}[data-theme=dark] .archive-settings,[data-theme=dark] .archive-delivery{border-color:#55463e}
[data-theme=dark] .daily-document-buttons button{background:#40352f;color:#eae4e1;border-color:#5d4c43}[data-theme=dark] .daily-document-buttons button[aria-pressed=true]{background:var(--accent-highlight);color:#302723;border-color:var(--accent-highlight)}[data-theme=dark] .letter{background:#352b26;color:#eae5e2}[data-theme=dark] .letter-masthead{background:var(--masthead);border-color:var(--masthead-rule)}[data-theme=dark] .letter .letter-masthead h1{color:#f6f4f3}[data-theme=dark] .letter-content>p:first-child{color:#c2b2aa}[data-theme=dark] .letter .letter-content>div>h2{color:#f5f3f2}[data-theme=dark] .letter-section h2{border-color:var(--accent-highlight)!important;color:#f2efee}[data-theme=dark] .letter a,[data-theme=dark] .newsletter-sources a,[data-theme=dark] .original-report a{color:var(--accent-ink)}[data-theme=dark] .letter a.letter-link{color:#312823;background:var(--accent-highlight)}[data-theme=dark] .letter footer,[data-theme=dark] .letter-originals{border-color:#66534a;color:#c5b6af}[data-theme=dark] .newsletter-sources{background:#2d2420;border-color:#5f4d44;color:#cdc0ba}[data-theme=dark] .notice{background:#493f2b;color:#f3dfad}
@media(max-width:600px){.theme-control{right:12px;bottom:10px;font-size:10px}.daily-reports{padding:15px}.daily-document-buttons{display:grid;grid-template-columns:1fr}.daily-document-buttons button{font-size:12px}.newsletter-paper.original-report#newsletter-detail{padding:24px}.archive-settings{display:block}.original-report-body{font-size:14px}}

/* Readability: platform-native sans, with Vazir only for Persian glyphs. */
:root{--ui-font:Vazir,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-family:var(--ui-font);font-size:16px;line-height:1.5;--muted:#736660}
button,input,select,textarea{font-family:inherit;font-size:14px}
h1,h2,h3,h4,.brand,.monogram,.archive-panel h2,.newsletter-paper h2,.letter,.letter h1,.letter h2,.letter h3,.letter h4,.letter .letter-masthead h1,.letter .letter-section>h2,.letter-originals h2,.newsletter-body,.original-report-body,.message-bubble{font-family:var(--ui-font);font-synthesis:none;letter-spacing:normal}
h1{font-weight:650;letter-spacing:-.025em}.brand,.monogram{font-weight:700;letter-spacing:-2px}
.nav-item{font-size:15px}.workspace-label,.eyebrow,.archive-eyebrow,.stat-label{font-size:12px;line-height:1.5;letter-spacing:.06em;color:#675c57}.sidebar-bottom strong{font-size:14px}.sidebar-bottom small{font-size:12px}.pill{font-size:12px}.topbar{font-size:14px}.private-badge{font-size:12px}.page-heading .muted{font-size:15px;line-height:1.65}.outline,.workspace-switch button{font-size:14px;padding:11px 15px}.overview small{font-size:13px;line-height:1.6}.overview .device-name{font-size:17px}.tabs button{font-size:14px}.tabs button span{font-size:12px}.search input{font-size:14px}.search kbd{font-size:12px}.list-label{font-size:12px;letter-spacing:.04em}.bulk-toolbar,.bulk-toolbar button{font-size:13px}.row-heading strong{font-size:15px;line-height:1.5}.row-heading time{font-size:12px;color:#706762}.row-preview{font-size:14px;color:#6c6460;line-height:1.6}.message-row{padding-top:18px;padding-bottom:18px}.sender-avatar{font-size:14px}.detail-header h2{font-size:21px}.detail-header small,.detail-time{font-size:13px;color:#736660}.message-bubble{font-size:17px;line-height:1.85}.detail-actions button,.detail-device{font-size:13px}.detail-placeholder h2,.empty h2{font-size:21px}.detail-placeholder p,.empty p{font-size:14px;color:#706762}.detail-caption{font-size:11px;letter-spacing:.05em}.inbox-footer,.page-foot{font-size:12px}.page-foot{color:#726b68}.load-more{font-size:14px}.theme-control{font-size:13px}.login-card label{font-size:14px}.login-card .muted{font-size:15px}.login-foot{font-size:11px;letter-spacing:.04em}
.archive-panel h2{font-size:23px;font-weight:650}.calendar-header button,.calendar-month-label{font-size:13px}.calendar-month-label input{font-size:16px}.calendar-weekday{font-size:12px;color:#736660}.calendar-day{font-size:14px;min-height:34px}.calendar-day:disabled{color:#90827b}.archive-note,.archive-count,.archive-delivery,.archive-settings{font-size:13px;line-height:1.7}.archive-delivery strong{font-size:14px}.calendar-latest{font-size:14px}.edition-status{font-size:13px;line-height:1.7}.daily-reports>.eyebrow{font-size:12px}.daily-document-buttons button{font-size:14px;line-height:1.6}.daily-reports>.muted{font-size:13px}.newsletter-body,.archive-settings .newsletter-body{font-size:16px;line-height:1.85}.newsletter-sources,.newsletter-sources a{font-size:14px}.newsletter-paper h2{font-size:27px;font-weight:650}.original-report>.eyebrow,.original-report>a{font-size:13px}.original-report-body{font-size:17px;line-height:1.85}.original-report-body h4{font-size:20px;font-weight:650}
.letter{font-size:17px;line-height:1.75;color:#3f332d}.letter .letter-masthead h1{font-size:36px;line-height:1.2;font-weight:650;letter-spacing:-.025em}.letter-masthead>p:first-child,.letter-masthead h1+p{font-size:12px;letter-spacing:.08em}.letter-masthead>p:last-child{font-size:15px;line-height:1.65}.letter-content>p:first-child{font-size:12px;letter-spacing:.04em;color:#796a62}.letter .letter-content>div>h2{font-size:19px;font-weight:650}.letter .letter-section>h2{font-size:26px;line-height:1.35;font-weight:650}.letter-story h3,.letter-story h4{font-size:20px;line-height:1.5;font-weight:650}.letter-story p{line-height:1.85}.letter a.letter-link{font-size:14px;line-height:1.5}.letter footer{font-size:13px;line-height:1.75}.letter-originals h2{font-size:23px!important}.letter-originals p,.letter-originals a{font-size:14px;line-height:1.75}
[data-theme=dark]{--muted:#c8bab3}[data-theme=dark] .letter{color:#eae5e2}[data-theme=dark] .row-preview,[data-theme=dark] .detail-header small,[data-theme=dark] .detail-time,[data-theme=dark] .detail-placeholder p,[data-theme=dark] .empty p,[data-theme=dark] .row-heading time,[data-theme=dark] .page-foot{color:#c8bab3}
@media(max-width:800px){.nav-item{font-size:0}.overview .device-name{font-size:15px}.overview small{font-size:12px}.stat-label{font-size:11px}.sidebar-bottom small{display:none}}
@media(max-width:600px){.topbar{font-size:13px}.page-heading h1,#newsletters-view .page-heading h1{font-size:28px}.page-heading .muted{font-size:14px;max-width:270px}.page-heading .outline{font-size:13px}.overview small{font-size:12px}.row-heading strong{font-size:15px}.row-heading time{font-size:12px}.row-preview{font-size:14px}.search input,.tabs button{font-size:14px}.inbox-footer,.page-foot{font-size:11px}.theme-control{font-size:12px}.calendar-day{font-size:14px;min-height:40px}.archive-panel h2{font-size:23px}.daily-document-buttons button{font-size:14px}.letter{font-size:16px}.letter .letter-masthead h1{font-size:31px}.letter .letter-section>h2{font-size:24px}.letter-story h3,.letter-story h4{font-size:19px}.original-report-body{font-size:16px;line-height:1.85}.letter-content{padding-left:24px;padding-right:24px}.archive-note{font-size:13px}}

/* First strong Persian character controls direction and paragraph alignment. */
.letter-story p[dir=rtl],.original-report-body p[dir=rtl],.newsletter-body[dir=rtl],.message-bubble[dir=rtl]{direction:rtl;text-align:justify;text-align-last:right;unicode-bidi:isolate;line-height:1.95}
.letter h2[dir=rtl],.letter h3[dir=rtl],.letter h4[dir=rtl],.original-report h2[dir=rtl],.original-report-body h4[dir=rtl],.daily-document-buttons button[dir=rtl],.row-heading strong[dir=rtl]{direction:rtl;text-align:right;unicode-bidi:isolate}
.letter-story p[dir=ltr],.original-report-body p[dir=ltr]{direction:ltr;text-align:left;unicode-bidi:isolate}
.report-image{display:block;max-width:100%;height:auto;border-radius:6px;margin:20px auto;object-fit:contain}
#newsletters-view>.page-heading{padding-bottom:12px}#newsletters-view .newsletter-layout{margin-top:14px}#newsletters-view .calendar-header{margin-top:0}#newsletters-view .daily-reports{padding:12px}.letter-content>p:first-child,.letter-kicker,.letter-generic-intro,.letter footer{display:none}.letter-masthead h1+p{display:block!important}.newsletter-sources{margin-top:0}

.letter-masthead .letter-intro:not(.letter-generic-intro){display:block;font-size:15px;line-height:1.75}.letter-intro[dir=rtl]{text-align:justify;text-align-last:right;direction:rtl}.row-preview[dir=rtl],.detail-header h2[dir=rtl]{text-align:right;direction:rtl}

/* Chat-style research reading: clear hierarchy, quiet rules, dotted sources. */
.original-report-body a,.letter-story a,.letter-originals a,.newsletter-sources a,.letter a.letter-link{color:var(--accent-strong);text-decoration-line:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:4px}
.original-report-body a:hover,.letter a:hover{ text-decoration-style:solid }
.letter a.letter-link{background:transparent;padding:0;margin:12px 16px 4px 0;font-weight:500;font-size:15px;border-radius:0;line-height:1.7}
.report-divider{border:0;border-top:1px solid #dfd8d5;margin:28px 0}
.original-report-body h4.report-item-heading{font-size:19px;line-height:1.5;font-weight:650;margin:24px 0 10px}
.original-report-body p,.letter-story p{margin:0 0 18px}.original-report-body em{font-style:italic}.report-list{padding-inline-start:24px;line-height:1.85}.report-list li{margin:6px 0}.letter-story{padding-bottom:24px;border-bottom:1px solid #dfd8d5;margin-bottom:26px}.letter-story:last-child{margin-bottom:0}.letter .letter-section>h2{border-bottom:1px solid #dfd8d5;padding-bottom:14px}.letter-story h3{margin-bottom:12px}.report-image{max-height:480px;object-fit:contain;object-position:left center;border-radius:12px}.letter .letter-content>div>h2{font-size:19px}.letter-content>div{border-top:0;padding-top:0}
[data-theme=dark] .original-report-body a,[data-theme=dark] .letter-story a,[data-theme=dark] .letter-originals a,[data-theme=dark] .letter a.letter-link{color:var(--accent-ink);background:transparent}[data-theme=dark] .report-divider,[data-theme=dark] .letter-story{border-color:#534741}[data-theme=dark] .letter .letter-section>h2{border-bottom:1px solid #534741!important}

/* Edition controls share the reading page's typography and surfaces. */
.daily-document-buttons{gap:6px;align-items:center;padding-bottom:14px}
.daily-document-buttons button{padding:8px 12px;border-radius:7px;font-size:14px;line-height:1.4;white-space:nowrap;flex:none}
.edition-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--border)}
.edition-picker{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.edition-picker select{font:inherit;font-size:14px;color:#3f332d;background:#faf9f9;border:1px solid #e8e3e0;border-radius:7px;padding:9px 32px 9px 12px;min-height:40px;max-width:100%}
.edition-recovery{margin-left:auto;font-size:14px;max-width:100%}
.edition-recovery summary{cursor:pointer;list-style:none;color:var(--accent-strong);padding:9px 12px;border:1px solid #e8e3e0;border-radius:7px;min-height:40px;background:#faf9f9;font-weight:550}
.edition-recovery summary::-webkit-details-marker{display:none}
.edition-recovery summary::after{content:' +';margin-left:8px}
.edition-recovery[open]{width:100%;margin-left:0}
.edition-recovery[open] summary{display:inline-block}
.edition-recovery[open] summary::after{content:' −'}
.recovery-panel{margin-top:12px;min-width:0}
.recovery-prompt{display:block;width:100%;min-width:0;min-height:170px;max-height:340px;resize:vertical;box-sizing:border-box;font:inherit;font-size:14px;line-height:1.75;color:#4f4039;background:#faf9f9;border:1px solid #e8e3e0;border-radius:8px;padding:14px 16px;overflow-wrap:anywhere}
.recovery-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.recovery-copy{font:inherit;font-size:14px;font-weight:550;border:0;border-radius:7px;background:var(--accent-strong);color:#fff;padding:11px 15px;min-height:42px}
.recovery-note{font-size:12px;line-height:1.5;color:var(--muted)}
.missing-report-links{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.missing-report-links a{font-size:13px;color:var(--accent-strong);text-decoration:underline dotted;text-underline-offset:3px}
.edition-recovery summary:focus-visible,.edition-picker select:focus-visible,.recovery-prompt:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.letter .letter-masthead h1{font-size:clamp(25px,2.2vw,34px);line-height:1.3;overflow-wrap:break-word}
[data-theme=dark] .edition-picker select,[data-theme=dark] .edition-recovery summary,[data-theme=dark] .recovery-prompt{background:#372d28;color:#ebe6e4;border-color:#5a4941}
[data-theme=dark] .recovery-copy{background:var(--accent-highlight);color:#312823}
[data-theme=dark] .missing-report-links a{color:var(--accent-ink)}
@media(max-width:600px){.daily-document-buttons{gap:6px}.daily-document-buttons button{font-size:13px;padding:8px 10px;white-space:normal}.edition-toolbar{gap:10px}.edition-picker{width:100%;justify-content:space-between}.edition-picker select{flex:1;min-width:0}.edition-recovery{width:100%;margin:0}.edition-recovery summary{display:block!important;text-align:center}.recovery-prompt{font-size:14px;min-height:210px;padding:12px}.recovery-copy{width:100%}.recovery-actions{gap:8px}.recovery-note{width:100%;text-align:center}.letter .letter-masthead h1{font-size:26px}}
@media(max-width:600px){.daily-document-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-document-buttons button:first-child{grid-column:1/-1}.daily-document-buttons button{height:100%;text-align:center}.theme-control{position:static;display:flex;align-items:center;justify-content:flex-end;width:max-content;max-width:calc(100% - 32px);margin:12px 16px 0 auto;box-shadow:none}}

.bot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:24px}.bot-grid .newsletter-paper{margin:0}.bot-grid h2{font-size:1.6rem}#bot-platforms{overflow-x:auto}#bot-platforms table{width:100%;border-collapse:collapse;text-align:left}#bot-platforms th,#bot-platforms td{padding:14px 10px;border-bottom:1px solid var(--line,#ddd)}@media(max-width:760px){.bot-grid{grid-template-columns:1fr}}

#bot-platforms th,#bot-platforms td{border-color:var(--border);font-size:14px}.bot-grid .newsletter-paper{padding:24px}.bot-grid .newsletter-paper p{font-size:15px;line-height:1.7}[data-theme=dark] #bot-cards .newsletter-paper{background:#2e2622;color:#ebe6e4}

#device-status{display:block;line-height:1.8;overflow-wrap:anywhere}.overview .device-stat{min-width:0}@media(max-width:600px){.overview .device-stat{display:block}.overview .device-name{justify-content:start;margin:14px 0}}

/* Theme accents remain legible in both appearances. */
:root{accent-color:var(--accent-strong)}
a{color:var(--accent-strong)}
.primary,.recovery-copy{background:var(--accent-strong);color:#fff}
.primary:hover,.recovery-copy:hover{background:var(--accent-hover)}
[data-theme=dark] .primary,[data-theme=dark] .recovery-copy{color:#301b15}
[data-theme=dark] .calendar-day[aria-pressed=true],[data-theme=dark] .daily-document-buttons button[aria-pressed=true]{color:#301b15}

#download-bots-frame{display:block;width:100%;border:0;min-height:420px;background:transparent;margin-top:16px}#download-bots-frame[hidden]{display:none}#refresh-bots{font-size:12px}

.plotlines-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.plotlines-actions a{text-decoration:none;font-size:13px}.plotlines-overview{grid-template-columns:repeat(4,minmax(0,1fr))}.plotlines-list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.plotlines-list-heading .muted{font-size:12px}.plotlines-film{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid var(--border);text-decoration:none;color:inherit}.plotlines-film:last-child{border-bottom:0}.plotlines-film small{display:block;margin-top:6px;color:var(--muted)}.plotlines-film:hover strong{color:var(--accent-strong)}.plotlines-film>.muted{font-size:12px}.workspace-switch{flex-wrap:wrap}@media(max-width:1000px){.plotlines-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.plotlines-film{align-items:flex-start;flex-direction:column;gap:10px}.plotlines-list-heading{align-items:flex-start;flex-direction:column}.plotlines-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The games application owns its controls and authentication. */
.games-toolbar,.games-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.games-toolbar{justify-content:space-between;padding-top:24px}
.games-toolbar h1{font-size:26px}.games-actions a{text-decoration:none}
.games-help,#games-notice{font-size:13px;line-height:1.6}
#games-notice:empty{display:none}
#bored-games-frame{display:block;width:100%;height:calc(100dvh - 240px);min-height:360px;border:1px solid var(--border);border-radius:9px;background:#132f24}
@media(max-width:600px){.workspace-switch{flex-wrap:wrap}.games-toolbar{padding-top:12px;gap:10px}.games-toolbar h1{font-size:23px}.games-actions{gap:8px}.games-actions .outline{padding:9px 10px}#bored-games-frame{height:calc(100dvh - 280px)}}

/* Keep the host chrome and embedded dashboard inside the available viewport. */
.viewing-games .theme-control{position:static;display:flex;align-items:center;justify-content:flex-end;width:max-content;max-width:calc(100% - 32px);margin:12px 16px 12px auto;box-shadow:none}
.viewing-games .shell{height:calc(100dvh - 66px);min-height:0}
.viewing-games .shell>main{display:flex;flex-direction:column;min-height:0;padding-bottom:16px}
.viewing-games .topbar{height:64px;flex-shrink:0}
.viewing-games .workspace-switch{flex-shrink:0;margin-top:12px}
#games-view:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}
.games-toolbar,.games-help,#games-notice{flex-shrink:0}
#bored-games-frame{flex:1;min-height:0;height:100%;margin-top:12px}
@media(max-width:600px),(max-height:480px){.games-toolbar h1,.games-help{display:none}.games-toolbar{padding-top:12px}.games-actions{width:100%}.viewing-games .shell>main{padding-bottom:12px}.viewing-games .topbar{height:52px}}

.viewing-games .sidebar{min-height:0;overflow-y:auto}

@media(max-width:600px){.viewing-games .workspace-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.viewing-games .workspace-switch button{font-size:12px;padding:9px 6px;white-space:normal}}
