:root[data-theme] body:has(.tea-main){--tea-canvas:#0e1113;--tea-surface:#161b1d;--tea-surface-hover:#1b2224;--tea-inset:#111618;--tea-border:#303a3e;--tea-ink:#f5f3ed;--tea-secondary:#d9dedd;--tea-muted:#b6c1c3;--tea-accent:#e7d1a8;--tea-accent-ink:#261e13;--tea-focus:#9cdae7;--tea-feature:#d7b97c;--tea-feature-bg:#241d16;--tea-feature-border:#675337;--tea-vote:#ffad94;--tea-shadow:0 4px 18px #00000012;background:var(--tea-canvas)}
:root[data-theme="light"] body:has(.tea-main){--tea-canvas:#f6f7f5;--tea-surface:#fff;--tea-surface-hover:#fbfcfa;--tea-inset:#f3f5f2;--tea-border:#dce2de;--tea-ink:#202c2b;--tea-secondary:#465b5b;--tea-muted:#5b6d6b;--tea-accent:#2c4540;--tea-accent-ink:#fff;--tea-focus:#267b77;--tea-feature:#785718;--tea-feature-bg:#faf5e9;--tea-feature-border:#d9c8a2;--tea-vote:#a83b21;--tea-shadow:0 3px 12px #283f3205}
:root[data-theme] body:has(.tea-main)::before{background:none}
:root[data-theme] .shell:has(.tea-main){background:var(--tea-canvas);grid-template-columns:248px minmax(0,1fr) 300px}
:root[data-theme] .shell>.main.tea-main{min-width:0;width:100%;max-width:900px;margin:0 auto;padding:48px 32px 40px;font-family:"Nunito","Segoe UI",system-ui,sans-serif;color:var(--tea-ink);background:var(--tea-canvas)}
:root[data-theme] .tea-main button,:root[data-theme] .tea-main input,:root[data-theme] .tea-main textarea,:root[data-theme] .tea-main select{font-family:inherit}
:root[data-theme] .tea-main button,:root[data-theme] .tea-main a,:root[data-theme] .tea-main input,:root[data-theme] .tea-main textarea,:root[data-theme] .tea-main select{outline-offset:4px}
:root[data-theme] .tea-main :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--tea-focus)}
:root[data-theme] .tea-main .tea-compact-header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"kicker kicker" "title action" "lede lede";align-items:center;column-gap:20px;row-gap:12px;padding:0 0 28px;border:0;text-align:left}
:root[data-theme] .tea-main .tea-heading-copy{display:contents}
:root[data-theme] .tea-main .tea-compact-header .whisper-kicker{grid-area:kicker;display:flex;align-items:center;gap:8px;font:600 11px/1.5 "Nunito","Segoe UI",system-ui,sans-serif;letter-spacing:1.8px;color:var(--tea-muted)}
:root[data-theme] .tea-brand-mark{display:flex;color:var(--tea-feature)}
:root[data-theme] .tea-brand-mark svg{width:19px;height:19px}
:root[data-theme] .tea-main .tea-compact-header h1{grid-area:title;font:400 clamp(42px,4.6vw,62px)/1.08 "Nunito","Segoe UI",system-ui,sans-serif;letter-spacing:-2.4px;color:var(--tea-ink);margin:0}
:root[data-theme] .tea-main .tea-heading-dot{color:var(--tea-feature)}
:root[data-theme] .tea-main .tea-compact-header p{grid-area:lede;font:400 16px/1.65 "Nunito","Segoe UI",system-ui,sans-serif;color:var(--tea-secondary);margin:0;max-width:40ch}
:root[data-theme] .tea-main .tea-compact-header p em{font-style:normal;color:var(--tea-secondary)}
:root[data-theme] .tea-main .tea-submit{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 17px;border:1px solid transparent;border-radius:10px;background:var(--tea-accent);color:var(--tea-accent-ink);font-size:13px;font-weight:650;white-space:nowrap;cursor:pointer;box-shadow:none}
:root[data-theme] .tea-submit svg{width:18px;height:18px}
:root[data-theme] .tea-main .tea-submit:hover{filter:brightness(1.06)}
:root[data-theme] .tea-main .tea-create{grid-area:action;align-self:center;margin:0}
:root[data-theme] .tea-main .tea-discovery{margin:0 0 18px}
:root[data-theme] .tea-main .tea-feed-toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid var(--tea-border);gap:12px}
:root[data-theme] .tea-sort-tabs{display:flex;gap:4px;padding:3px;border:1px solid var(--tea-border);border-radius:11px;background:var(--tea-inset)}
:root[data-theme] .tea-main .tea-sort-tabs button{position:relative;min-height:40px;min-width:70px;border:0;border-radius:8px;padding:8px 16px;color:var(--tea-muted);background:transparent;font-size:13px;font-weight:600}
:root[data-theme] .tea-main .tea-sort-tabs button:hover{background:var(--tea-surface-hover);color:var(--tea-ink)}
:root[data-theme] .tea-main .tea-sort-tabs button[aria-pressed=true]{background:var(--tea-accent);color:var(--tea-accent-ink);box-shadow:none}
:root[data-theme] .tea-feed-count{font-size:14px;font-weight:600;color:var(--tea-secondary);font-variant-numeric:tabular-nums;white-space:nowrap}
:root[data-theme] .tea-main .tea-search{margin:0;padding:0;background:none;border:0}
:root[data-theme] .tea-main .tea-search>div{position:relative;display:flex;align-items:center;width:100%}
:root[data-theme] .tea-search svg{position:absolute;left:14px;width:18px;height:18px;color:var(--tea-muted);pointer-events:none}
:root[data-theme] .tea-main .tea-search input{display:block;width:100%;height:46px;min-height:46px;margin:0;padding:10px 14px 10px 42px;border:1px solid var(--tea-border);border-radius:10px;background:var(--tea-surface);color:var(--tea-ink);font-size:15px;box-shadow:none}
:root[data-theme] .tea-main .tea-search input::placeholder{color:var(--tea-muted);opacity:1}
:root[data-theme] .tea-main .tea-search input:focus{border-color:var(--tea-focus)}
:root[data-theme] .tea-main>.typing-status:empty{display:none}
:root[data-theme] .tea-main>.typing-status{min-height:0;padding:0 0 10px;font-size:12px;color:var(--tea-muted)}
:root[data-theme] .tea-main #tea-status{margin:0 0 16px;padding:10px 14px;border:1px solid var(--tea-border);border-radius:9px;background:var(--tea-inset);color:var(--tea-secondary);font-size:13px}
:root[data-theme] .tea-main #tea-status:empty{display:none}
:root[data-theme] .tea-main .tea-post.tea-row,:root[data-theme] .tea-main .tea-post.tea-row.tea-weekly-winner,:root[data-theme] .tea-main .tea-post.tea-row:hover,:root[data-theme] .tea-main .tea-post.tea-row.tea-weekly-winner:hover{display:block;margin:0 0 14px;padding:22px;border:1px solid var(--tea-border);border-radius:14px;background:var(--tea-surface);box-shadow:var(--tea-shadow)}
:root[data-theme] .tea-main .tea-post.tea-row.tea-weekly-winner{border-color:var(--tea-feature-border);box-shadow:var(--tea-shadow)}
:root[data-theme] .tea-main .tea-post.tea-row.tea-highlight{outline:2px solid var(--tea-feature);outline-offset:2px}
:root[data-theme] .tea-post-top{display:flex;align-items:center;gap:10px;margin-bottom:13px;min-width:0}
:root[data-theme] .tea-main .tea-post-top .tea-face{flex:none;width:34px;height:34px}
:root[data-theme] .tea-main .tea-post-top .tea-face .user-avatar{width:34px;height:34px;font-size:13px;background:var(--tea-inset);color:var(--tea-secondary)}
:root[data-theme] .tea-main .tea-row .tea-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12px;line-height:1.5;min-width:0;color:var(--tea-muted)}
:root[data-theme] .tea-post-top>.tea-meta{flex:1}
:root[data-theme] .tea-main .tea-row .tea-meta .person-link b{font-weight:700;color:var(--tea-ink);overflow-wrap:anywhere}
:root[data-theme] .tea-main .tea-row .tea-meta time{color:var(--tea-muted);font-size:12px;white-space:nowrap}
:root[data-theme] .tea-main .tea-row .tea-meta time:before{content:'·';margin-right:8px}
:root[data-theme] .tea-feature-badge{display:inline-flex;align-items:center;gap:5px;flex:none;font-size:11px;font-weight:600;line-height:1.5;color:var(--tea-feature);background:var(--tea-feature-bg);border:1px solid var(--tea-feature-border);border-radius:6px;padding:4px 7px;white-space:nowrap}
:root[data-theme] .tea-main .tea-row .tea-post-title,:root[data-theme] .tea-main .tea-row.tea-weekly-winner .tea-post-title{margin:0 0 9px;font-size:22px;font-weight:700;line-height:1.35;letter-spacing:-.3px;color:var(--tea-ink);overflow-wrap:anywhere}
:root[data-theme] .tea-main .tea-row .tea-body,:root[data-theme] .tea-main .tea-row.tea-weekly-winner .tea-body{margin:0;font-size:16px;line-height:1.75;letter-spacing:0;color:var(--tea-secondary);white-space:pre-wrap;overflow-wrap:anywhere}
:root[data-theme] .tea-main .tea-row .tea-expand{display:inline-block;margin:10px 0 0;min-height:32px;padding:4px 0;background:none;border:0;border-radius:3px;color:var(--tea-focus);font-size:12px;font-weight:600;line-height:1.5}
:root[data-theme] .tea-main .tea-row .tea-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:17px 0 0;padding-top:13px;border-top:1px solid var(--tea-border)}
:root[data-theme] .tea-main .tea-row .tea-votes{display:inline-flex;align-items:center;gap:0;margin:0;padding:0;border:1px solid var(--tea-border);border-radius:22px;background:var(--tea-inset);color:var(--tea-secondary);font-size:12px;line-height:1;font-weight:650}
:root[data-theme] .tea-main .tea-row .tea-votes button{width:40px;height:40px;min-height:40px;padding:10px;color:var(--tea-muted);background:none;border:0;border-radius:50%}
:root[data-theme] .tea-main .tea-row .tea-votes>span{min-width:20px;text-align:center}
:root[data-theme] .tea-main .tea-row .tea-actions svg{width:17px;height:17px}
:root[data-theme] .tea-main .tea-row .tea-votes button:hover{background:var(--tea-surface-hover);color:var(--tea-ink)}
:root[data-theme] .tea-main .tea-row .tea-votes button[aria-pressed=true][data-direction='1']{color:var(--tea-vote);background:transparent}
:root[data-theme] .tea-main .tea-row .tea-votes button[aria-pressed=true][data-direction='-1']{color:var(--tea-focus);background:transparent}
:root[data-theme] .tea-main .tea-row .tea-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 10px;border:0;border-radius:20px;background:transparent;color:var(--tea-secondary);font-size:13px;font-weight:600}
:root[data-theme] .tea-main .tea-row .tea-actions>button:hover,:root[data-theme] .tea-main .tea-row .tea-actions>button[aria-expanded=true]{background:var(--tea-inset);color:var(--tea-ink)}
:root[data-theme] .tea-more{position:relative;align-self:center;color:var(--tea-secondary)}
:root[data-theme] .tea-more summary{display:grid;place-items:center;min-width:38px;min-height:38px;list-style:none;cursor:pointer;font-size:18px;letter-spacing:1px}
:root[data-theme] .tea-more summary::-webkit-details-marker{display:none}
:root[data-theme] .tea-more>div{position:absolute;right:0;top:100%;z-index:5;min-width:115px;padding:5px;border:1px solid var(--tea-border);border-radius:9px;background:var(--tea-surface-hover);box-shadow:0 8px 20px #0006}
:root[data-theme] .tea-more button{display:block;width:100%;padding:8px 10px;border:0;border-radius:6px;background:transparent;color:var(--tea-ink);text-align:left;cursor:pointer}
:root[data-theme] .tea-more button:hover{background:var(--tea-inset)}
:root[data-theme] .tea-more button.tea-delete-mobile{display:none;color:#e5a8a0}
:root[data-theme] .tea-more button.tea-delete-mobile:hover{background:#8d373322}
:root[data-theme] .tea-comment .tea-more{margin-left:auto}
:root[data-theme] .tea-main .tea-row .tea-actions>.tea-delete-desktop{margin-left:auto;padding:8px}
:root[data-theme] .tea-main .tea-row .tea-comments{margin:18px 0 0;padding:18px 0 0;border-top:1px solid var(--tea-border)}
:root[data-theme] .tea-replies-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
:root[data-theme] .tea-replies-heading h3{margin:0;font-size:13px;font-weight:650;color:var(--tea-ink)}
:root[data-theme] .tea-replies-heading>span{font-size:11px;color:var(--tea-muted)}
:root[data-theme] .tea-main .tea-reply{align-items:flex-end;gap:8px;margin:0 0 12px}
:root[data-theme] .tea-main .tea-reply textarea{min-height:44px;padding:11px 13px;border:1px solid var(--tea-border);border-radius:10px;background:var(--tea-inset);color:var(--tea-ink);font-size:13px;line-height:1.5}
:root[data-theme] .tea-main .tea-reply textarea::placeholder{color:var(--tea-muted)}
:root[data-theme] .tea-main .tea-reply-send{height:44px;padding:0 15px;border-radius:10px;background:var(--tea-accent);color:var(--tea-accent-ink);font-size:12px}
:root[data-theme] .tea-main .tea-reply-sort{font-size:11px;color:var(--tea-muted);margin-bottom:12px}
:root[data-theme] .tea-main .tea-reply-sort select{padding:6px 9px;min-height:34px;border:1px solid var(--tea-border);background:var(--tea-surface);color:var(--tea-secondary)}
:root[data-theme] .tea-main .tea-row .tea-comment{padding:12px 0;gap:10px;border-bottom:1px solid var(--tea-border)}
:root[data-theme] .tea-main .tea-row .tea-comment:last-child{border-bottom:0;padding-bottom:0}
:root[data-theme] .tea-main .tea-row .tea-comment p{margin:5px 0;color:var(--tea-secondary);font-size:15px;line-height:1.7}
:root[data-theme] .tea-main .tea-row .tea-comment-votes{border:0;background:none;margin:4px 0 0 -8px}
:root[data-theme] .tea-main .tea-row .tea-comment-votes button{width:34px;height:34px;min-height:34px;padding:8px}
:root[data-theme] .tea-main .tea-row .tea-comment-votes>span{font-size:11px;min-width:16px}
:root[data-theme] .tea-main .tea-composer{margin:0 0 20px;padding:24px;border:1px solid var(--tea-feature-border);border-radius:14px;background:var(--tea-surface);box-shadow:var(--tea-shadow)}
:root[data-theme] .tea-main .tea-composer .toolbar{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;gap:12px;margin:0 0 20px;padding:0;border:0}
:root[data-theme] .tea-composer-kicker{color:var(--tea-muted);font-size:11px;font-weight:600;letter-spacing:1.4px}
:root[data-theme] .tea-main .tea-composer h2{margin:6px 0 0;color:var(--tea-ink);font:400 27px/1.2 "Nunito","Segoe UI",system-ui,sans-serif;letter-spacing:-.5px}
:root[data-theme] .tea-main #tea-cancel{display:grid;place-items:center;min-width:36px;min-height:36px;padding:4px;border:0;border-radius:50%;background:var(--tea-inset);color:var(--tea-muted);font-size:23px}
:root[data-theme] .tea-main #tea-form{display:flex;flex-direction:column;gap:9px}
:root[data-theme] .tea-main #tea-form>label{margin:8px 0 0;color:var(--tea-secondary);font-size:12px;font-weight:600}
:root[data-theme] .tea-main #tea-form>input,:root[data-theme] .tea-main #tea-form>textarea{width:100%;margin:0;padding:12px 14px;border:1px solid var(--tea-border);border-radius:9px;background:var(--tea-inset);color:var(--tea-ink);font-size:14px;line-height:1.6;resize:vertical}
:root[data-theme] .tea-main #tea-form>input{min-height:46px}
:root[data-theme] .tea-main #tea-form>textarea{min-height:150px}
:root[data-theme] .tea-photo-picker{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:10px}
:root[data-theme] .tea-photo-picker>input{position:absolute;width:1px;height:1px;opacity:0}
:root[data-theme] .tea-photo-picker>.tea-photo-button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--tea-secondary);border-radius:9px;color:var(--tea-secondary);cursor:pointer}
:root[data-theme] .tea-photo-picker>.tea-photo-button svg{width:27px;height:27px}
:root[data-theme] .tea-photo-picker>input:focus-visible+.tea-photo-button{outline:2px solid currentColor;outline-offset:3px}
:root[data-theme] .tea-photo-picker>.tea-photo-count{color:var(--tea-secondary);font-size:12px}
:root[data-theme] .tea-photo-picker>.tea-photo-preview{width:100%}
:root[data-theme] .tea-photo-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px}
:root[data-theme] .tea-photo-preview>div{position:relative;aspect-ratio:1;border-radius:9px;overflow:hidden;background:var(--tea-inset)}
:root[data-theme] .tea-photo-preview img{width:100%;height:100%;object-fit:cover}
:root[data-theme] .tea-photo-preview button{position:absolute;top:4px;right:4px;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#111b;color:#fff;cursor:pointer}
:root[data-theme] .tea-photos{display:flex;gap:8px;max-width:100%;margin:14px 0;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:5px}
:root[data-theme] .tea-photos a{position:relative;display:block;flex:0 0 min(190px,65vw);aspect-ratio:4/3;overflow:hidden;border-radius:8px;background:var(--tea-inset);scroll-snap-align:start}
:root[data-theme] .tea-photos img{display:block;width:100%;height:100%;object-fit:cover}
:root[data-theme] .tea-photos .tea-photo-number{position:absolute;top:6px;left:6px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:5px;background:#0e1113cc;color:#fff;font-size:10px;font-weight:700;line-height:1}
:root[data-theme] .tea-main #tea-form :is(input,textarea)::placeholder{color:var(--tea-muted)}
:root[data-theme] .tea-main .tea-composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:7px 0 0}
:root[data-theme] .tea-main #tea-count{font-size:11px;color:var(--tea-muted)}
:root[data-theme] .tea-main #tea-count.danger{color:var(--tea-vote)}
:root[data-theme] .tea-main #tea-writing-note{color:var(--tea-muted);font-size:11px;line-height:1.7;margin:7px 0 0}
:root[data-theme] .tea-main .tea-empty{margin:0;padding:44px 22px;text-align:center;border:1px dashed var(--tea-border);border-radius:14px;background:var(--tea-surface);color:var(--tea-ink)}
:root[data-theme] .tea-main .tea-empty-icon{display:inline-grid;place-items:center;width:56px;height:56px;border:1px solid var(--tea-border);border-radius:16px;background:var(--tea-inset);color:var(--tea-feature)}
:root[data-theme] .tea-empty-icon svg{width:25px;height:25px}
:root[data-theme] .tea-main .tea-empty h2{margin:20px 0 8px;color:var(--tea-ink);font:400 26px/1.2 "Nunito","Segoe UI",system-ui,sans-serif;letter-spacing:-.5px}
:root[data-theme] .tea-main .tea-empty p{max-width:35ch;margin:0 auto 20px;color:var(--tea-muted);font-size:13px;line-height:1.7}
:root[data-theme] .tea-main #tea-clear-search{min-height:42px;padding:10px 16px;border:1px solid var(--tea-border);border-radius:9px;color:var(--tea-ink);background:var(--tea-inset);font-size:12px}
:root[data-theme] .tea-main .tea-load{display:block;margin:22px auto 0;min-height:44px;padding:10px 22px;border:1px solid var(--tea-border);border-radius:10px;color:var(--tea-secondary);background:var(--tea-surface);font-size:12px}
:root[data-theme] .tea-feed-end{margin:28px auto 0;max-width:40ch;text-align:center;color:var(--tea-muted);font-size:11px;line-height:1.7}
:root[data-theme] .shell:has(.tea-main)>.rail{padding:74px 20px 30px 0;background:var(--tea-canvas);border:0}
:root[data-theme] .shell:has(.tea-main)>.sidebar{border-color:var(--tea-border)}
:root[data-theme] .shell .weekly-envelope-panel{background:radial-gradient(ellipse at 50% 85%,#45101c55,transparent 65%),#0d0909;border-color:#b79559;box-shadow:inset 0 0 0 3px #130b0b,inset 0 0 0 4px #652437;color:#f2e5ce}
:root[data-theme] .shell .weekly-envelope-panel .whisper-kicker{color:#c5a56d}
:root[data-theme] .shell .weekly-envelope-panel h2{color:#f2e5ce}
:root[data-theme] .shell .weekly-envelope-panel>p,:root[data-theme] .shell .weekly-envelope-panel small{color:#d1bea0}
:root[data-theme] .shell .weekly-envelope-panel .weekly-envelope-caption{color:#95836d}
:root[data-theme] .shell .weekly-envelope-panel .weekly-envelope{background:none;text-decoration:none}
:root[data-theme] .shell .weekly-envelope-panel .envelope-back{background:#691c2b;border-color:#9d4850;box-shadow:0 15px 25px #0008}
:root[data-theme] .shell .weekly-envelope-panel .envelope-front{background:linear-gradient(145deg,#8e3041,#45121f)}
:root[data-theme] .shell .weekly-envelope-panel .envelope-flap{background:linear-gradient(160deg,#a44050,#641d2c)}
:root[data-theme] .shell .weekly-envelope-panel .envelope-seal{background:#551321;border-color:#9b4d48;box-shadow:0 2px 0 3px #3c101b,0 6px 9px #0007;color:#ccab72}
:root[data-theme] .shell .weekly-envelope-panel .envelope-note{background:#e5d5b6;color:#6a2430}
@media(min-width:1600px){.shell:has(.tea-main){grid-template-columns:250px minmax(0,1fr) 340px}
:root[data-theme] .shell:has(.tea-main)>.rail{padding-right:32px}
:root[data-theme] .shell>.main.tea-main{padding-top:54px;padding-inline:44px}}
@media(max-width:1150px) and (min-width:701px){.shell:has(.tea-main){grid-template-columns:200px minmax(0,1fr)}
:root[data-theme] .shell>.main.tea-main{max-width:850px;padding-inline:28px}
:root[data-theme] .tea-main .mobile-weekly-envelope{display:block;margin:0 0 22px}
:root[data-theme] .tea-main .mobile-weekly-envelope .weekly-envelope-panel{max-width:420px;margin:14px auto 0}}
:root[data-theme] .tea-main .mobile-weekly-envelope>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:13px 15px;border:1px solid var(--tea-feature-border);border-radius:10px;background:var(--tea-feature-bg);color:var(--tea-feature);font-size:11px;cursor:pointer}
:root[data-theme] .tea-main .mobile-weekly-envelope>summary::-webkit-details-marker{display:none}
:root[data-theme] .tea-main .mobile-weekly-envelope>summary>span:first-child{font-weight:650}
:root[data-theme] .tea-main .mobile-weekly-envelope>summary>span:last-child{font-size:11px;opacity:1;color:var(--tea-feature)}
@media(max-width:700px){.shell:has(.tea-main){display:block}
:root[data-theme] .shell>.main.tea-main{padding:26px 16px 30px;max-width:none}
:root[data-theme] .tea-main .tea-compact-header{column-gap:12px;row-gap:12px;padding-bottom:24px;align-items:center}
:root[data-theme] .tea-main .tea-compact-header .whisper-kicker{font-size:11px;letter-spacing:1px;gap:6px}
:root[data-theme] .tea-brand-mark svg{width:16px;height:16px}
:root[data-theme] .tea-main .tea-compact-header h1{font-size:43px;letter-spacing:-1.8px;margin:0}
:root[data-theme] .tea-main .tea-compact-header p{font-size:12px;line-height:1.6;max-width:26ch}
:root[data-theme] .tea-main .tea-compact-header p em{display:inline}
:root[data-theme] .tea-main .tea-create{margin:0;align-self:center;padding:10px 12px;min-height:44px;font-size:12px;gap:5px}
:root[data-theme] .tea-main .tea-create svg{width:15px;height:15px}
:root[data-theme] .tea-main .mobile-weekly-envelope{display:block;margin:0 0 22px}
:root[data-theme] .tea-main .mobile-weekly-envelope .weekly-envelope-panel{margin:12px 0 0}
:root[data-theme] .tea-main .tea-feed-toolbar{margin-bottom:13px;padding-bottom:11px}
:root[data-theme] .tea-main .tea-discovery{margin-bottom:16px}
:root[data-theme] .tea-main .tea-sort-tabs button{min-height:40px;min-width:65px;padding:8px 14px;font-size:12px}
:root[data-theme] .tea-feed-count{font-size:12px}
:root[data-theme] .tea-main .tea-search input{font-size:16px;height:44px;min-height:44px}
:root[data-theme] .tea-main .tea-post.tea-row,:root[data-theme] .tea-main .tea-post.tea-row.tea-weekly-winner,:root[data-theme] .tea-main .tea-post.tea-row:hover,:root[data-theme] .tea-main .tea-post.tea-row.tea-weekly-winner:hover{padding:17px 16px;margin-bottom:13px;border-radius:12px}
:root[data-theme] .tea-post-top{gap:8px;margin-bottom:12px;flex-wrap:wrap}
:root[data-theme] .tea-main .tea-post-top .tea-face,:root[data-theme] .tea-main .tea-post-top .tea-face .user-avatar{width:30px;height:30px;font-size:12px}
:root[data-theme] .tea-main .tea-row .tea-meta{font-size:11px;gap:2px 6px}
:root[data-theme] .tea-main .tea-row .tea-meta time{font-size:11px}
:root[data-theme] .tea-feature-badge{padding:3px 6px;font-size:11px;margin-left:auto}
:root[data-theme] .tea-main .tea-row .tea-post-title,:root[data-theme] .tea-main .tea-row.tea-weekly-winner .tea-post-title{font-size:18px;line-height:1.45;margin-bottom:8px}
:root[data-theme] .tea-main .tea-row .tea-body,:root[data-theme] .tea-main .tea-row.tea-weekly-winner .tea-body{font-size:13px;line-height:1.75}
:root[data-theme] .tea-main .tea-row .tea-actions{gap:4px;margin-top:15px;padding-top:11px}
:root[data-theme] .tea-main .tea-row .tea-actions>button{font-size:12px;gap:5px;padding:8px;min-height:44px}
:root[data-theme] .tea-main .tea-row .tea-votes button{width:38px;height:42px;min-height:42px;padding:10px}
:root[data-theme] .tea-main .tea-row .tea-votes>span{min-width:18px}
:root[data-theme] .tea-main .tea-row .tea-actions svg{width:16px;height:16px}
:root[data-theme] .tea-main .tea-composer{padding:20px 16px}
:root[data-theme] .tea-main .tea-composer h2{font-size:25px}
:root[data-theme] .tea-main #tea-form>input,:root[data-theme] .tea-main #tea-form>textarea{font-size:16px}
:root[data-theme] .tea-main .tea-reply textarea{font-size:16px;min-height:44px}
:root[data-theme] .tea-main .tea-composer .tea-submit{min-height:44px;font-size:12px}
:root[data-theme] .tea-feed-end{font-size:11px;margin-top:24px}}
@media(max-width:360px){.tea-feature-badge{margin-left:38px}
:root[data-theme] .tea-main .tea-create{padding:10px 12px;font-size:12px}
:root[data-theme] .tea-main .tea-create svg{display:block}
:root[data-theme] .tea-main .tea-row .tea-actions{gap:2px}
:root[data-theme] .tea-main .tea-share-label{display:none}}
:root[data-theme] .tea-main .tea-row .typing-status:empty{display:none}
:root[data-theme] .tea-main .tea-sort-tabs button[aria-pressed=true]:hover{filter:brightness(1.08)}
:root[data-theme] .tea-main .mobile-weekly-envelope>summary{min-height:50px;padding:12px 14px;background:#2a1218;border-color:#b79559;color:#e4cd9f;font-family:inherit}
:root[data-theme] .tea-main .mobile-weekly-envelope summary span{float:none}
:root[data-theme] .tea-main .mobile-weekly-envelope>summary .tea-envelope-title{display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:650;color:#e4cd9f}
:root[data-theme] .tea-main .mobile-weekly-envelope>summary .tea-envelope-disclosure{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#e4cd9f}
:root[data-theme] .tea-main .mobile-weekly-envelope summary svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}
:root[data-theme] .tea-main .mobile-weekly-envelope summary:focus-visible{outline-color:#e4cd9f}
:root[data-theme] .tea-main .mobile-weekly-envelope:not([open]) .when-open,:root[data-theme] .tea-main .mobile-weekly-envelope[open] .when-closed{display:none}
:root[data-theme] .tea-main .mobile-weekly-envelope[open] .tea-envelope-disclosure svg{transform:rotate(180deg)}
:root[data-theme] .shell:has(.tea-main) .weekly-envelope-panel>.whisper-kicker,:root[data-theme] .shell:has(.tea-main) .weekly-envelope-caption,:root[data-theme] .shell:has(.tea-main) .weekly-envelope-panel>small{font-size:11px}
:root[data-theme] .tea-rail-inner{position:sticky;top:64px;align-self:start;max-height:calc(100dvh - 88px);overflow:auto;scrollbar-width:thin;width:100%}
:root[data-theme] .tea-rail-note{padding:20px 4px 8px;color:var(--tea-muted);font-family:"Nunito","Segoe UI",system-ui,sans-serif}
:root[data-theme] .tea-rail-note h3{margin:0 0 9px;font-size:14px;line-height:1.5;color:var(--tea-secondary);font-weight:600}
:root[data-theme] .tea-rail-note p{margin:0 0 10px;font-size:12px;line-height:1.7}
:root[data-theme="light"] .tea-rail .weekly-envelope-panel{padding:24px 16px;box-shadow:inset 0 0 0 3px #130b0b,inset 0 0 0 4px #652437,0 10px 30px #3a141f1f}
:root[data-theme="light"] .tea-rail .weekly-envelope-panel h2{font-size:26px}
@media(max-width:700px){
:root[data-theme] .shell:has(.tea-main){padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
:root[data-theme]:has(.tea-main){scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
:root[data-theme] .tea-main .tea-compact-header p{font-size:14px;max-width:none}
:root[data-theme] .tea-main .tea-row .tea-body,:root[data-theme] .tea-main .tea-row.tea-weekly-winner .tea-body{font-size:15px}
:root[data-theme] .tea-main .tea-search input,:root[data-theme] .tea-main .tea-reply-sort select{font-size:16px}
:root[data-theme] .tea-main .tea-reply-send,:root[data-theme] .tea-main .tea-empty button,:root[data-theme] .tea-main .tea-load{font-size:12px;min-height:44px}
:root[data-theme] body:has(.tea-main) .mobile-dock a{font-size:11px;min-width:0;overflow:hidden}
:root[data-theme] body:has(.tea-main) .mobile-dock a>span:last-child{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-theme] body:has(.tea-main :is(input,textarea,select):focus) .mobile-dock{display:none}
}
@media(max-width:360px){
:root[data-theme] .tea-main .tea-compact-header{grid-template-columns:minmax(0,1fr);grid-template-areas:"kicker" "title" "lede" "action";row-gap:12px}
:root[data-theme] .tea-main .tea-create{justify-self:start}
:root[data-theme] .tea-main .mobile-weekly-envelope>summary{padding-inline:10px}
:root[data-theme] .tea-main .mobile-weekly-envelope>summary .tea-envelope-title{font-size:13px;gap:6px}
}
@media(prefers-reduced-motion:reduce){
:root[data-theme] .tea-main *,:root[data-theme] .tea-main *::before,:root[data-theme] .tea-main *::after,:root[data-theme] .tea-rail *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Tea of the Week stays dark in both themes: the envelope photo sits on black. */
:root[data-theme] .tea-week{border-color:#2e2e32;background:#070708;color:#efe3cf}
:root[data-theme] .tea-week-key{fill:#a9a49e}
:root[data-theme] .tea-week-of{color:#e8dccb}
:root[data-theme] .tea-week-title,:root[data-theme] .tea-week h2{color:#efe3cf}
:root[data-theme] .tea-week-tag,:root[data-theme] .tea-week-caption{color:#c45b6d}
:root[data-theme] .tea-week-open{color:#e6dfd6}
:root[data-theme] .tea-week-empty{color:#cfc6bb}
/* Pages without the side column spread into its space. */
:root[data-theme] .shell:not(:has(>.rail))>.main.tea-main{max-width:1240px}
:root[data-theme] .tea-main .tea-post p{max-width:95ch}
.shell:not(:has(>.rail))>.profile-main{max-width:900px}
@media(min-width:701px){:root[data-theme] .shell:has(.tea-main){grid-template-columns:248px minmax(0,1fr)}}
@media(min-width:1600px){:root[data-theme] .shell:has(.tea-main){grid-template-columns:250px minmax(0,1fr)}}
/* Rankings lineup on phones: keep the card rows and portrait photos over the general phone list style. */
@media(max-width:700px){:root[data-theme] .leaderboard-main .leaderboard-list li{min-height:0;padding:8px 14px 8px 10px;border:1px solid #262122;border-radius:12px}:root[data-theme] .leaderboard-main .leaderboard-list .leaderboard-avatar{width:42px;height:52px}}
/* Reply menu: small "•••" right after the downvote arrow. */
:root[data-theme] .tea-main .tea-comment-votes{display:flex;align-items:center}
:root[data-theme] .tea-main .tea-comment .tea-reply-more{margin-left:2px;align-self:center}
:root[data-theme] .tea-main .tea-comment .tea-reply-more summary{min-width:28px;min-height:28px;padding:0;font-size:12px;letter-spacing:.5px;border-radius:6px}
:root[data-theme] .tea-main .tea-comment .tea-reply-more summary:hover{background:var(--tea-inset)}
:root[data-theme] .tea-main .tea-comment .tea-reply-more>div{right:0;left:auto}
:root[data-theme] .tea-main .tea-row .tea-comment-votes .tea-reply-more>div{min-width:144px;padding:5px}
:root[data-theme] .tea-main .tea-row .tea-comment-votes .tea-reply-more>div>button{display:block;width:100%;height:auto;min-height:40px;padding:9px 12px;border-radius:6px;font-size:14px;font-weight:400;line-height:20px;text-align:left}

/* Top stories time filter */
:root[data-theme] .tea-main .tea-feed-toolbar{flex-wrap:wrap}
:root[data-theme] .tea-main .tea-feed-toolbar>.tea-sort-tabs{flex:none}
:root[data-theme] .tea-main .tea-period{position:relative;display:inline-flex;align-items:center;margin-left:10px;margin-right:auto}
:root[data-theme] .tea-main .tea-period select{height:38px;padding:0 34px 0 14px;border:1px solid var(--tea-border);border-radius:10px;background:var(--tea-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b2a7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/16px;color:var(--tea-ink);font:600 13.5px "Nunito","Segoe UI",system-ui,sans-serif;appearance:none;-webkit-appearance:none;cursor:pointer}
:root[data-theme] .tea-main .tea-period select:focus-visible{outline:2px solid var(--tea-feature,#e7cfa3);outline-offset:2px}
:root[data-theme] .tea-main .tea-period option{background:#14181b;color:#eee}

/* A story that is still saving shows instantly, slightly faded. */
.tea-post.tea-pending{opacity:.68}
.tea-post.tea-pending time{font-style:italic}

/* Dark theme polish: Nunito, warm amber accents, soft cards. */
:root[data-theme]:not([data-theme="light"]) body:has(.tea-main){--tea-canvas:#0c1013;--tea-surface:#151a1f;--tea-surface-hover:#1a2026;--tea-inset:#11161a;--tea-border:rgba(255,255,255,.06);--tea-ink:#f2efe9;--tea-secondary:#e6e1d8;--tea-muted:#a39d93;--tea-accent:#f5b450;--tea-accent-ink:#1d1309;--tea-focus:#f5b450;--tea-vote:#f5b450;--tea-grad:linear-gradient(135deg,#f5b450,#ff7a90);--tea-shadow:0 6px 24px #0000002e;background:#0c1013}
:root[data-theme]:not([data-theme="light"]) .shell:has(.tea-main),:root[data-theme]:not([data-theme="light"]) .shell>.main.tea-main,:root[data-theme]:not([data-theme="light"]) .shell:has(.tea-main)>.rail{background:#0c1013}
:root[data-theme]:not([data-theme="light"]) .tea-main :is(button,a,input,textarea,select):focus-visible{outline:2px solid #f5b450;box-shadow:0 0 0 5px #f5b45033}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-compact-header h1{font-weight:800;color:#f2efe9;letter-spacing:-.02em}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-compact-header p,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-body{font-weight:400;color:#e6e1d8}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-meta,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-meta time{color:#a39d93}
:root[data-theme]:not([data-theme="light"]) .tea-main :is(.tea-submit,.tea-reply-send){border:0;border-radius:999px;background:var(--tea-grad);color:#1d1309;font-weight:800;box-shadow:0 4px 16px #f5b45026;transition:transform .15s ease,filter .15s ease,box-shadow .15s ease}
:root[data-theme]:not([data-theme="light"]) .tea-main :is(.tea-submit,.tea-reply-send):hover{filter:brightness(1.05);box-shadow:0 6px 22px #ff7a9033}
:root[data-theme]:not([data-theme="light"]) .tea-main :is(.tea-submit,.tea-reply-send):active{transform:scale(.97)}
:root[data-theme]:not([data-theme="light"]) .tea-sort-tabs{border:0;background:none;padding:0;gap:8px}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-sort-tabs button{border:1px solid rgba(255,255,255,.08);border-radius:999px;background:#151a1f;color:#a39d93;font-weight:700;transition:background .15s,color .15s}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-sort-tabs button:hover{background:#1a2026;color:#f2efe9}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-sort-tabs button[aria-pressed=true]{background:var(--tea-grad);border-color:transparent;color:#1d1309}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-period select{border-radius:999px;border-color:rgba(255,255,255,.08)}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-search input{border-radius:999px;border-color:rgba(255,255,255,.08);background:#151a1f}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-search input:focus,:root[data-theme]:not([data-theme="light"]) .tea-main #tea-form>:is(input,textarea):focus,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-reply textarea:focus{border-color:#f5b450;box-shadow:0 0 0 4px #f5b45026;outline:none}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-post.tea-row{border-radius:16px;padding:24px;transition:transform .15s ease,border-color .15s ease}
@media(hover:hover){:root[data-theme]:not([data-theme="light"]) .tea-main .tea-post.tea-row:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.14)}}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-post.tea-row.tea-weekly-winner{border-color:#f5b45066}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-post-title{font-size:23px;font-weight:700;color:#f2efe9}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-expand{color:#f5b450}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-votes{border-radius:999px;border-color:rgba(255,255,255,.08)}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-comment-votes{border:0}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-votes button,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-actions>button{border-radius:999px;transition:transform .15s ease,background .15s,color .15s}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-votes button:active,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-actions>button:active{transform:scale(.88)}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-votes button[aria-pressed=true][data-direction='1']{color:#f5b450;background:#f5b4501f}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-votes button[aria-pressed=true][data-direction='-1']{color:#ff7a90;background:#ff7a901a}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-composer{border-radius:16px;border-color:#f5b45040;padding:26px}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-composer h2,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-empty h2{font-weight:800;letter-spacing:-.02em;color:#f2efe9}
:root[data-theme]:not([data-theme="light"]) .tea-main #tea-form>input,:root[data-theme]:not([data-theme="light"]) .tea-main #tea-form>textarea,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-reply textarea{border-radius:14px;border-color:rgba(255,255,255,.08);transition:border-color .15s,box-shadow .15s}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-empty{border-radius:16px;border-color:rgba(255,255,255,.1);padding:52px 24px;display:flex;flex-direction:column;align-items:center}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-empty-icon{border-radius:999px;color:#f5b450;background:#f5b45014;border-color:#f5b45033}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-empty p{color:#a39d93;font-size:14px}
:root[data-theme]:not([data-theme="light"]) .tea-main #tea-clear-search,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-load{border-radius:999px;font-weight:700}
:root[data-theme]:not([data-theme="light"]) .tea-feed-end{color:#a39d93;font-size:12px;padding:16px 0}
@media(max-width:700px){:root[data-theme]:not([data-theme="light"]) .tea-main .tea-post.tea-row{padding:18px 16px;border-radius:14px}:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-post-title{font-size:19px}:root[data-theme]:not([data-theme="light"]) .tea-main .tea-composer{padding:20px 16px}}
@media(prefers-reduced-motion:reduce){:root[data-theme] .tea-main *{transform:none!important;transition:none!important}}
/* Dark polish: reading column, hued avatars, fresh-post dot. */
:root[data-theme]:not([data-theme="light"]) .tea-main .user-avatar:is(.tea-hue-0,.tea-hue-1,.tea-hue-2,.tea-hue-3,.tea-hue-4,.tea-hue-5){color:#14100c;font-weight:800;border:0}
:root[data-theme]:not([data-theme="light"]) .tea-main .user-avatar.tea-hue-0.tea-hue-0{background:linear-gradient(135deg,#f5b450,#ff7a90)}
:root[data-theme]:not([data-theme="light"]) .tea-main .user-avatar.tea-hue-1.tea-hue-1{background:linear-gradient(135deg,#b69cff,#6f9dff)}
:root[data-theme]:not([data-theme="light"]) .tea-main .user-avatar.tea-hue-2.tea-hue-2{background:linear-gradient(135deg,#5fd4c4,#7fdc8c)}
:root[data-theme]:not([data-theme="light"]) .tea-main .user-avatar.tea-hue-3.tea-hue-3{background:linear-gradient(135deg,#ff8fc0,#ffa166)}
:root[data-theme]:not([data-theme="light"]) .tea-main .user-avatar.tea-hue-4.tea-hue-4{background:linear-gradient(135deg,#7cc8ff,#8f95ff)}
:root[data-theme]:not([data-theme="light"]) .tea-main .user-avatar.tea-hue-5.tea-hue-5{background:linear-gradient(135deg,#c4e66b,#4fd1b0)}
:root[data-theme]:not([data-theme="light"]) .tea-main .whisper-kicker{color:#f5b450e6;letter-spacing:.14em;font-weight:800}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-votes>span{font-size:14px;font-weight:800;color:#f2efe9;min-width:3ch;text-align:center;font-variant-numeric:tabular-nums}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-body{font-size:16px;line-height:1.6}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-meta :is(a,b){font-weight:700;color:#e6e1d8}
.tea-fresh{display:inline-block;width:6px;height:6px;border-radius:50%;background:#f5b450;margin-right:6px;vertical-align:middle;animation:tea-pulse 2s ease-in-out infinite}
@keyframes tea-pulse{50%{opacity:.4;box-shadow:0 0 0 3px #f5b45026}}
@media(prefers-reduced-motion:reduce){.tea-fresh{animation:none}}
/* Reply composer, sort menu, reply search, compact comment actions */
:root[data-theme] .tea-more>div{right:0;left:auto;max-width:calc(100vw - 16px)}
:root[data-theme] .tea-main .tea-reply{display:block}
:root[data-theme] .tea-main .tea-reply textarea{display:block;width:100%;box-sizing:border-box;resize:none;font-family:inherit}
:root[data-theme] .tea-main .tea-reply:not(.is-open) textarea{min-height:44px;height:44px;border-radius:999px;padding:11px 18px;overflow:hidden;cursor:text}
:root[data-theme] .tea-main .tea-reply.is-open textarea{min-height:92px;resize:vertical}
:root[data-theme] .tea-main .tea-reply-foot{display:none;justify-content:flex-end;gap:8px;margin-top:8px}
:root[data-theme] .tea-main .tea-reply.is-open .tea-reply-foot{display:flex}
:root[data-theme] .tea-main .tea-reply .tea-reply-send{display:inline-flex;align-items:center;gap:7px;height:38px;min-height:38px;padding:0 18px;border-radius:999px}
:root[data-theme] .tea-main .tea-reply-send:disabled{opacity:.45;cursor:not-allowed;filter:none;box-shadow:none;transform:none}
:root[data-theme] .tea-main .tea-pill-ghost{display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:0 14px;border:1px solid var(--tea-border);border-radius:999px;background:transparent;color:var(--tea-secondary);font-family:inherit;font-weight:600;font-size:12px;line-height:1;cursor:pointer;white-space:nowrap}
:root[data-theme] .tea-main .tea-pill-ghost:hover{background:var(--tea-inset);color:var(--tea-ink)}
:root[data-theme] .tea-main .tea-pill-ghost b{color:var(--tea-ink);font-weight:700}
:root[data-theme] .tea-spin{width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:tea-spin .7s linear infinite}
@keyframes tea-spin{to{transform:rotate(360deg)}}
:root[data-theme] .tea-main .tea-reply-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}
:root[data-theme] .tea-main .tea-sortmenu{position:relative}
:root[data-theme] .tea-main .tea-sortmenu>[role=menu]{position:absolute;right:auto;left:0;top:calc(100% + 4px);z-index:6;min-width:130px;padding:5px;border:1px solid var(--tea-border);border-radius:10px;background:var(--tea-surface-hover);box-shadow:0 8px 20px #0006}
:root[data-theme] .tea-main .tea-sortmenu [role=menuitemradio]{display:block;width:100%;min-height:38px;padding:8px 12px;border:0;border-radius:6px;background:transparent;color:var(--tea-ink);text-align:left;font:inherit;font-size:13px;cursor:pointer}
:root[data-theme] .tea-main .tea-sortmenu [role=menuitemradio]:is(:hover,:focus-visible){background:var(--tea-inset);outline:none}
:root[data-theme] .tea-main .tea-sortmenu [aria-checked=true]{color:#f5b450;font-weight:700}
:root[data-theme] .tea-main .tea-csearch{display:flex;align-items:center;gap:6px;position:relative;flex:0 1 170px;min-width:0;transition:flex-basis .2s ease}
:root[data-theme] .tea-main .tea-csearch>svg{position:absolute;left:12px;width:14px;height:14px;color:var(--tea-muted);pointer-events:none}
:root[data-theme] .tea-main .tea-csearch input{flex:1;min-width:0;min-height:38px;padding:0 12px 0 32px;border:1px solid var(--tea-border);border-radius:999px;background:var(--tea-inset);color:var(--tea-ink);font:inherit;font-size:13px}
:root[data-theme] .tea-main .tea-csearch input:focus{border-color:#f5b450;box-shadow:0 0 0 3px #f5b45026;outline:none}
:root[data-theme] .tea-main .tea-csearch [data-csearch-cancel]{display:none}
:root[data-theme] .tea-main .tea-csearch.is-open{flex:1 0 100%;order:2}
:root[data-theme] .tea-main .tea-csearch.is-open [data-csearch-cancel]{display:inline-flex}
:root[data-theme] .tea-main .tea-nomatch{margin:4px 0 12px;font-size:13px;color:var(--tea-muted)}
:root[data-theme] .tea-main .tea-comment[hidden]{display:none}
:root[data-theme] .tea-main .tea-row .tea-comment-votes{flex-wrap:wrap;gap:2px}
:root[data-theme] .tea-main .tea-row .tea-comment-votes .tea-comment-reply{display:inline-flex;align-items:center;gap:5px;width:auto;height:34px;min-height:34px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:var(--tea-muted);font-family:inherit;font-weight:600;font-size:12px;line-height:1;cursor:pointer}
:root[data-theme] .tea-main .tea-row .tea-comment-votes .tea-comment-reply svg{width:15px;height:15px}
:root[data-theme] .tea-main .tea-row .tea-comment-votes .tea-comment-reply:hover{background:var(--tea-inset);color:var(--tea-ink)}
:root[data-theme] .tea-main .tea-row .tea-comment-votes button[data-direction="1"][aria-pressed=true]{color:#f5b450;background:#f5b45024;border-radius:999px}
:root[data-theme] .tea-main .tea-row .tea-comment-votes button[data-direction="-1"][aria-pressed=true]{color:#ff7a90;background:#ff7a9024;border-radius:999px}
:root[data-theme] .tea-main .tea-row .tea-comment-votes button[aria-pressed=true] svg{stroke-width:2.4}
@media(max-width:700px){:root[data-theme] .tea-main .tea-row .tea-comment-votes button,:root[data-theme] .tea-main .tea-row .tea-comment-votes .tea-comment-reply,:root[data-theme] .tea-main .tea-comment .tea-reply-more summary{min-width:36px;min-height:36px;height:36px}
:root[data-theme] .tea-main .tea-csearch{flex:1 1 140px}
:root[data-theme] .tea-main .tea-csearch input{font-size:16px}}
@media(prefers-reduced-motion:reduce){:root[data-theme] .tea-spin{animation-duration:2s}:root[data-theme] .tea-main .tea-csearch{transition:none}}
@media(max-width:700px){:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-content>.tea-actions{flex-wrap:nowrap;gap:2px}:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-content>.tea-actions>button{padding-inline:6px;flex:none}:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-content>.tea-actions>.tea-more{margin-left:auto;flex:none}}
/* Smooth composing: auto-grow, counters, animated expand, optimistic states */
:root[data-theme] .tea-main :is(#tea-form>input,#tea-form>textarea,.tea-reply textarea){caret-color:#f5b450;scroll-margin-bottom:96px;scroll-margin-top:16px}
:root[data-theme] .tea-main #tea-form>textarea{min-height:96px;resize:none;overflow-y:hidden}
:root[data-theme] .tea-main .tea-reply.is-open textarea{min-height:44px;resize:none;padding:11px 14px}
:root[data-theme] .tea-main :is(#tea-form>textarea,.tea-reply.is-open textarea){transition:height .12s ease,border-color .15s,box-shadow .15s}
:root[data-theme] .tea-main .tea-reply-expand{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .16s ease,visibility 0s .16s}
:root[data-theme] .tea-main .tea-reply.is-open .tea-reply-expand{grid-template-rows:1fr;visibility:visible;transition:grid-template-rows .16s ease}
:root[data-theme] .tea-main .tea-reply-expand>.tea-reply-foot,:root[data-theme] .tea-main .tea-reply.is-open .tea-reply-expand>.tea-reply-foot{display:flex;align-items:center;min-height:0;overflow:hidden;margin:0;padding-top:8px}
:root[data-theme] .tea-main .tea-left{margin-right:auto;font-size:12px;font-weight:700;color:#f5b450;font-variant-numeric:tabular-nums}
:root[data-theme] .tea-main .tea-left.is-low{color:#ff7a90}
:root[data-theme] .tea-main #tea-title-left{display:block;text-align:right;min-height:0;margin-top:4px}
:root[data-theme] .tea-main #tea-title-left:empty{display:none}
:root[data-theme] .tea-main .tea-reply-error{margin:6px 2px 0;font-size:12px;color:#ff7a90}
:root[data-theme] .tea-main .tea-comment[aria-busy=true]{opacity:.6;transition:opacity .15s ease}
:root[data-theme] .tea-main :is(.tea-submit,.tea-reply-send,.tea-pill-ghost,.tea-sort-tabs button,.tea-row .tea-votes button,.tea-row .tea-actions>button,.tea-comment-reply){transition:background-color .14s ease,transform .14s ease,opacity .14s ease}
:root[data-theme] .tea-main .tea-composer{animation:tea-compose-in .16s ease-out}
@keyframes tea-compose-in{from{opacity:0;transform:translateY(-4px)}}
@media(max-width:700px){:root[data-theme] .tea-main :is(#tea-form>input,#tea-form>textarea,.tea-reply textarea){font-size:16px}}
@media(prefers-reduced-motion:reduce){:root[data-theme] .tea-main .tea-composer{animation:none}:root[data-theme] .tea-main .tea-reply-expand{transition:none}}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-reply textarea{font-size:15px;line-height:1.5}@media(max-width:700px){:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-reply textarea{font-size:16px}}

/* Layout v2: topbar + discovery + column/rail. */
:root[data-theme] .shell:has(.tea-main){grid-template-columns:248px minmax(0,1fr)}
@media(max-width:1150px){:root[data-theme] .shell:has(.tea-main){grid-template-columns:210px minmax(0,1fr)}}
:root[data-theme] .shell>.main.tea-main{max-width:none;padding:16px 24px 40px}
:root[data-theme] .tea-main .tea-topbar{display:contents}
:root[data-theme] .tea-main .tea-titlebar{display:flex;align-items:center;gap:12px;min-height:44px;max-width:1004px;margin:0 auto 6px;padding-right:56px;box-sizing:border-box}
:root[data-theme] body:has(.auth-top .auth-signup) .tea-main .tea-titlebar{padding-right:230px}
:root[data-theme] .tea-main .tea-title-cup{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#f5b450,#ff7a90);color:#14100c}
:root[data-theme] .tea-main .tea-title-cup svg{width:16px;height:16px}
:root[data-theme] .tea-main .tea-titlebar h1{margin:0;flex:1;font:800 22px/1.1 "Nunito","Segoe UI",system-ui,sans-serif;letter-spacing:-.02em;color:var(--tea-ink)}
:root[data-theme] .tea-main .tea-titlebar #share-tea{flex:none;min-height:36px;padding:0 14px;font-size:14px}
:root[data-theme] .tea-main .tea-discovery{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;max-width:1004px;margin:0 auto 16px;padding:4px 0 8px;box-sizing:border-box;background:var(--tea-canvas);border-bottom:1px solid var(--tea-border)}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-discovery{background:#0c1013f2;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom-color:#ffffff0f}
:root[data-theme] .tea-main .tea-discovery .tea-feed-toolbar{flex:1;min-width:0;display:flex;align-items:center;gap:8px}
:root[data-theme] .tea-main .tea-discovery .tea-search{margin-left:auto;display:flex;align-items:center;gap:8px;flex:0 1 320px}
:root[data-theme] .tea-main .tea-discovery .tea-search>div{flex:1}
:root[data-theme] .tea-main .tea-search-toggle,:root[data-theme] .tea-main .tea-search-cancel{display:none}
:root[data-theme] .tea-main .tea-layout{max-width:720px;margin-inline:auto}
:root[data-theme] .tea-main .tea-column{min-width:0}
:root[data-theme] .tea-main .tea-rail{display:none}
:root[data-theme] .tea-main .tea-week-banner{display:flex;align-items:center;gap:8px;max-width:720px;margin:0 auto 14px;padding:8px 14px;border-radius:999px;border:1px solid #f5b45040;background:#f5b45014;color:var(--tea-ink);font-size:13px;font-weight:700;text-decoration:none;box-sizing:border-box}
:root[data-theme] .tea-main .tea-week-banner span{color:#f5b450}
:root[data-theme] .tea-main .tea-week-banner b{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600;color:var(--tea-secondary)}
:root[data-theme] .tea-main .tea-fab{display:none}
@media(min-width:1100px){
:root[data-theme] .tea-main .tea-week-banner{display:none}
:root[data-theme] .tea-main .tea-layout{display:grid;grid-template-columns:minmax(0,680px) 300px;gap:24px;justify-content:center;align-items:start;max-width:1004px}
:root[data-theme] .tea-main .tea-rail{display:flex;flex-direction:column;gap:16px;padding-top:0;align-self:stretch}
}
@media(min-width:1440px){:root[data-theme] .tea-main .tea-layout{grid-template-columns:minmax(0,720px) 320px;gap:32px;max-width:1072px}:root[data-theme] .tea-main :is(.tea-titlebar,.tea-discovery){max-width:1072px}}
:root[data-theme] .tea-main .tea-rail-card{background:var(--tea-surface);border:1px solid var(--tea-border);border-radius:16px;padding:18px}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-rail-card{background:#151a1f;border-color:#ffffff0f}
:root[data-theme] .tea-main .tea-rail-card h2{margin:0 0 12px;font:800 16px/1.3 "Nunito","Segoe UI",system-ui,sans-serif;color:var(--tea-ink)}
:root[data-theme] .tea-main .tea-topweek ol{list-style:none;margin:0;padding:0;display:grid;gap:4px}
:root[data-theme] .tea-main .tea-topweek a{display:flex;gap:12px;padding:8px;margin:0 -8px;border-radius:10px;color:inherit;text-decoration:none}
:root[data-theme] .tea-main .tea-topweek a:hover{background:var(--tea-surface-hover)}
:root[data-theme] .tea-main .tea-topweek-rank{flex:none;width:18px;font:800 15px/1.35 "Nunito",system-ui,sans-serif;color:#f5b450;font-variant-numeric:tabular-nums}
:root[data-theme] .tea-main .tea-topweek-text{min-width:0;display:grid;gap:4px}
:root[data-theme] .tea-main .tea-topweek-text b{font-size:14px;font-weight:700;line-height:1.35;color:var(--tea-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
:root[data-theme] .tea-main .tea-topweek-text small{font-size:12px;color:var(--tea-muted)}
:root[data-theme] .tea-main .tea-about{position:sticky;top:72px}
:root[data-theme] .tea-main .tea-about .whisper-kicker{font-size:11px;font-weight:800;letter-spacing:.14em;color:#f5b450e6;margin-bottom:8px}
:root[data-theme] .tea-main .tea-about-lede{margin:0 0 10px;font-size:14px;line-height:1.55;color:var(--tea-secondary)}
:root[data-theme] .tea-main .tea-about-lede em{font-style:normal}
:root[data-theme] .tea-main .tea-about-count{margin:0 0 12px;font-size:13px;color:var(--tea-muted)}
:root[data-theme] .tea-main .tea-about-count b{color:var(--tea-ink)}
:root[data-theme] .tea-main .tea-about ul{margin:0 0 16px;padding-left:18px;display:grid;gap:4px;font-size:13px;line-height:1.45;color:var(--tea-secondary)}
:root[data-theme] .tea-main :is(.tea-about-share,.tea-fab){border:0;background:linear-gradient(135deg,#f5b450,#ff7a90);color:#14100c;font-weight:800;cursor:pointer}
:root[data-theme] .tea-main .tea-about-share{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;border-radius:999px}
:root[data-theme] .tea-main :is(.tea-about-share,.tea-fab) svg{width:18px;height:18px}
@media(max-width:700px){
:root[data-theme] .shell>.main.tea-main{padding:0 16px 40px}
:root[data-theme] .tea-main .tea-titlebar{position:sticky;top:0;z-index:21;height:calc(48px + env(safe-area-inset-top,0px));min-height:0;margin:0 -16px;padding:env(safe-area-inset-top,0px) 16px 0!important;background:var(--tea-canvas)}
:root[data-theme] .tea-main .tea-titlebar h1{font-size:20px}
:root[data-theme] .tea-main .tea-titlebar #share-tea{display:none}
:root[data-theme] .tea-main .tea-discovery{top:calc(48px + env(safe-area-inset-top,0px));margin:0 -16px 14px;padding:4px 16px 8px}
:root[data-theme] .tea-main .tea-discovery .tea-feed-toolbar{overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap}
:root[data-theme] .tea-main .tea-discovery .tea-feed-toolbar::-webkit-scrollbar{display:none}
:root[data-theme] .tea-main .tea-discovery .tea-feed-toolbar>*{flex:none}
:root[data-theme] .tea-main .tea-search-toggle{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border-radius:50%;border:1px solid var(--tea-border);background:transparent;color:var(--tea-ink)}
:root[data-theme] .tea-main .tea-search-toggle svg{width:18px;height:18px}
:root[data-theme] .tea-main .tea-discovery .tea-search{display:none;flex:1}
:root[data-theme] .tea-main .tea-discovery.is-search-open :is(.tea-feed-toolbar,.tea-search-toggle){display:none}
:root[data-theme] .tea-main .tea-discovery.is-search-open .tea-search{display:flex;margin-left:0}
:root[data-theme] .tea-main .tea-search-cancel{display:block;flex:none;border:0;background:none;padding:8px 2px;color:var(--tea-ink);font-size:15px;font-weight:600;cursor:pointer}
:root[data-theme] .tea-main .tea-fab{display:grid;place-items:center;position:fixed;z-index:40;right:16px;bottom:calc(88px + env(safe-area-inset-bottom,0px));width:52px;height:52px;padding:0;border-radius:50%;box-shadow:0 8px 24px #0006}
:root[data-theme] .tea-main .tea-fab svg{width:22px;height:22px}
:root[data-theme] body:has(:is(input,textarea,select):focus) .tea-main .tea-fab{display:none}
}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-titlebar h1{font:800 22px/1.1 "Nunito",system-ui,sans-serif;letter-spacing:-.02em;margin:0}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-sort-tabs button{min-height:32px;padding:0 14px;font-size:14px;font-weight:700}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-period select{height:32px;font-size:13px}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-discovery .tea-search input{height:36px;font-size:14px}
:root[data-theme]:not([data-theme="light"]) .tea-main #share-tea,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-create{min-height:36px;padding:0 16px;font-size:14px;font-weight:800}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-post-title{font-size:20px;line-height:1.35;font-weight:700}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-body{font-size:16px;line-height:1.6}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-meta,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-meta time{font-size:13px}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-actions button,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-actions button span{font-size:14px}
@media(max-width:700px){
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-titlebar h1{font-size:20px}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-sort-tabs button{font-size:13px}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-discovery .tea-search input{font-size:16px}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-post-title{font-size:17px}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-row .tea-body{font-size:15px}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-meta,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-meta time{font-size:12px}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-actions button,:root[data-theme]:not([data-theme="light"]) .tea-main .tea-actions button span{font-size:13px}
}
@media(min-width:701px){:root[data-theme] .tea-main .tea-discovery{align-items:center;padding:4px 0 8px;margin:0 auto 14px;gap:12px}}
@media(min-width:1100px){:root[data-theme] .tea-main .tea-discovery{display:grid;grid-template-columns:minmax(0,680px) 300px;gap:24px;justify-content:center}:root[data-theme] .tea-main .tea-discovery>.tea-feed-toolbar{grid-column:1}:root[data-theme] .tea-main .tea-discovery>.tea-search{grid-column:2;width:100%;max-width:none;flex:none}:root[data-theme] .tea-main .tea-discovery>.tea-search>div{width:100%}:root[data-theme] body:not(:has(.auth-top .auth-signup)) .tea-main .tea-titlebar{padding-right:56px}:root[data-theme] .tea-main .tea-titlebar>#share-tea{margin-left:auto}}
@media(min-width:1440px){:root[data-theme] .tea-main .tea-discovery{grid-template-columns:minmax(0,720px) 320px;gap:32px}}
:root[data-theme] .tea-main .tea-discovery>.tea-feed-toolbar{flex:1;margin:0;padding:0;border:0;min-height:0}
:root[data-theme] .tea-main .tea-discovery .tea-search{margin:0;padding:0;align-self:center}
:root[data-theme] .tea-main .tea-discovery .tea-search>div{margin:0;height:38px}
:root[data-theme] .tea-main .tea-column>.tea-typing:empty{padding:0;margin:0;min-height:0;height:0}
@media(min-width:1440px){:root[data-theme] body:not(:has(.auth-top .auth-signup)) .tea-main .tea-titlebar{padding-right:0}}
:root[data-theme] .tea-main .tea-discovery>.tea-feed-toolbar{display:flex;align-items:center;gap:8px}
:root[data-theme] .tea-main .tea-discovery>.tea-feed-toolbar>#share-tea{margin-left:auto;height:38px;min-height:38px;white-space:nowrap}
:root[data-theme] .tea-main .tea-titlebar{padding-right:0!important}
@media(max-width:700px){:root[data-theme] .tea-main #share-tea{display:none!important}}
:root[data-theme] .tea-main #share-tea{font:800 14px/1 "Nunito",system-ui,sans-serif;letter-spacing:-.01em;gap:6px;padding:0 16px 0 13px;display:inline-flex;align-items:center;justify-content:center}
:root[data-theme] .tea-main #share-tea svg{width:14px;height:14px;flex:none;stroke-width:2.75;margin:0}
:root[data-theme] .tea-main #share-tea span{font:inherit;line-height:1;transform:translateY(.5px)}
:root[data-theme] .tea-main #share-tea{border-radius:10px}
@media(min-width:1100px){:root[data-theme] .tea-main :is(.tea-layout,.tea-discovery,.tea-titlebar){max-width:none;margin-left:0;margin-right:0}:root[data-theme] .tea-main :is(.tea-layout,.tea-discovery){grid-template-columns:minmax(0,1fr) clamp(300px,24vw,360px);gap:28px;justify-content:stretch}}
/* Top this week: each story in its own soft tile, no rank numbers. */
:root[data-theme] .tea-main .tea-topweek ol{display:grid;gap:8px;margin:0;padding:0;list-style:none}
:root[data-theme] .tea-main .tea-topweek li{margin:0;padding:0}
:root[data-theme] .tea-main .tea-topweek li a{display:block;padding:12px 14px;border:1px solid #ffffff0b;border-radius:12px;background:#1a2025;text-decoration:none;transition:background-color 140ms,border-color 140ms}
:root[data-theme] .tea-main .tea-topweek li a:hover{background:#20272d;border-color:#ffffff17}
:root[data-theme] .tea-main .tea-topweek .tea-topweek-text{display:grid;gap:4px}
:root[data-theme="light"] .tea-main .tea-topweek li a{background:#f4f2ee;border-color:#0000000d}
:root[data-theme="light"] .tea-main .tea-topweek li a:hover{background:#eceae5}
/* Opening a shared story: no special highlight frame, just the normal card. */
:root[data-theme] .tea-main .tea-post.tea-row.tea-highlight,:root[data-theme] .tea-main .tea-highlight{border-color:var(--tea-border,#ffffff0f)!important;outline:0!important;box-shadow:none!important;animation:none!important}
:root[data-theme]:not([data-theme="light"]) .tea-main .tea-post.tea-row.tea-highlight{border-color:#ffffff0f!important}
:root[data-theme] .tea-main .tea-shared-label{justify-content:flex-end}
:root[data-theme] .tea-main .tea-post.tea-row.tea-highlight{background:var(--tea-surface)!important}
