/* afksocials. one stylesheet, every page. light by default, dark under [data-theme="dark"].
   change a colour here and it changes everywhere. */

:root{
  --bg:#FFFFFF; --surface:#FFFFFF; --sunken:#F6F4F1; --line:#E6E2DC; --line-strong:#CFC9C1;
  --ink:#1C1A17; --muted:#5E584F; --dim:#8E877C;
  --accent:#E8912D; --accent-ink:#1C1A17; --accent-tint:#FFF4E5; --accent-line:#F2C889;
  --loss:#B5603A; --quiet:#8A6A4B; --human:#2E8C84; --ok:#2E8C84;
  --glow:rgba(232,145,45,.28);
  --shadow:0 1px 2px rgba(28,26,23,.06), 0 8px 24px rgba(28,26,23,.06);
  --radius:14px; --radius-sm:10px; --rail:232px; --col:960px; --col-narrow:720px;
}
:root[data-theme="dark"]{
  --bg:#14100D; --surface:#1E1813; --sunken:#0F0C09; --line:#3A2F26; --line-strong:#4D4036;
  --ink:#F3EDE4; --muted:#C9BFB2; --dim:#9B8F82;
  --accent:#E8912D; --accent-ink:#14100D; --accent-tint:#2A211B; --accent-line:#5A3F20;
  --loss:#B5603A; --quiet:#8A6A4B; --human:#5FA8A0; --ok:#5FA8A0;
  --glow:rgba(232,145,45,.22);
  --shadow:none;
}
/* light is the default. dark only when the person picks it (the rail link). */

*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:'IBM Plex Sans',system-ui,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;letter-spacing:-.02em;margin:0;line-height:1.1}
h1{font-size:30px} h2{font-size:22px} h3{font-size:17px}
p{margin:0}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion: reduce){ *{animation:none !important;transition:none !important} }

/* ---- shell: rail on the left on wide screens, a bar at the bottom on phones ---- */
.shell{min-height:100vh;display:flex}
.rail{width:var(--rail);flex:0 0 auto;border-right:1px solid var(--line);padding:22px 16px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh;background:var(--bg)}
.rail .brand{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:20px;letter-spacing:-.02em;color:var(--ink);padding:6px 10px 18px;display:flex;align-items:center;gap:10px}
.rail .brand .mark{display:none}
/* the away dot. green is online, amber is away. afk is the amber one. */
.dot-away{display:inline-block;width:.42em;height:.42em;border-radius:50%;background:var(--accent);margin-left:.18em;vertical-align:.08em}
.wordmark{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;letter-spacing:-.02em;color:var(--ink);white-space:nowrap}
.rail a.nav{display:flex;align-items:center;gap:10px;padding:10px 10px;border-radius:var(--radius-sm);color:var(--muted);font-weight:500}
.rail a.nav:hover{background:var(--sunken);text-decoration:none;color:var(--ink)}
.rail a.nav.on{background:var(--accent-tint);color:var(--ink)}
.rail a.nav svg{width:18px;height:18px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rail .spacer{flex:1}
.rail .foot{display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--dim);padding:10px}
.rail .foot a{color:var(--dim)}
.main{flex:1;min-width:0;display:flex;justify-content:center;padding:28px 24px 96px}
.col{width:100%;max-width:var(--col);display:flex;flex-direction:column;gap:16px}
.col.narrow{max-width:var(--col-narrow)}
.topbar{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-bottom:4px}
.topbar .eyebrow{font-size:13px;color:var(--dim)}
.tabbar{display:none}
@media (max-width: 860px){
  .rail{display:none}
  .main{padding:16px 16px 88px}
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom));justify-content:space-around;z-index:5}
  .tabbar a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:var(--dim);padding:4px 8px;min-width:56px}
  .tabbar a.on{color:var(--accent)}
  .tabbar a svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
}

/* ---- surfaces ---- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow)}
.card.quiet{background:var(--sunken);border-color:transparent;box-shadow:none}
.card.dim{background:var(--sunken);box-shadow:none}
.muted{color:var(--muted);font-size:14px;line-height:1.5;margin:0}
.dim{color:var(--dim)}
.note{font-size:13px;color:var(--dim);line-height:1.45}
.err{color:var(--loss);font-size:13px}
.hidden{display:none !important}
.eyebrow{font-size:12px;letter-spacing:.04em;color:var(--dim)}
.row{display:flex;gap:10px;flex-wrap:wrap}
.row .btn{flex:1}
.chip{font-size:13px;padding:6px 12px;border-radius:999px;background:var(--sunken);border:1px solid var(--line);color:var(--muted)}
.chip.priv{border-style:dashed;color:var(--dim)}
.chip.edit{display:inline-flex;align-items:center;gap:6px;color:var(--ink);background:var(--paper)}
.chip.edit span[contenteditable]{outline:none;min-width:2ch}
.chip.edit span[contenteditable]:focus{border-bottom:1px solid var(--accent)}
.chip .x{border:0;background:none;color:var(--dim);cursor:pointer;font-size:14px;line-height:1;padding:0 2px}
.chip .x:hover{color:var(--ink)}
.chip.add{cursor:pointer;color:var(--accent);border-style:dashed;background:none}
.editable:focus{outline:none;border-bottom:1px solid var(--accent)}
.msg.host.note{background:transparent;border:1px dashed var(--line);color:var(--muted);font-size:14px}
.msg.host.context{color:var(--muted)}
.msg.host.tappable{cursor:pointer}
.msg.host.tappable:hover{box-shadow:inset 0 0 0 1px var(--accent)}
.msg.host.answering-this{box-shadow:inset 0 0 0 2px var(--accent)}
.answering{display:flex;gap:6px;align-items:center;font-size:13px;color:var(--muted);margin:4px 0 -4px 6px}
.answering #answeringText{color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%}
.answering .x{border:0;background:none;color:var(--dim);cursor:pointer;font-size:15px;line-height:1}
.issue-box{display:flex;gap:6px;align-items:center;width:100%;margin-top:8px;flex-basis:100%}
.issue-box input{flex:1;font-size:14px;padding:8px 10px;border:1px solid var(--accent);border-radius:999px;background:var(--paper)}
.editable:hover{background:var(--sunken)}
.eyebrow.loud{color:var(--ink);font-weight:700;letter-spacing:0}
.chip.tappable{cursor:pointer;color:var(--ink);background:var(--paper);font:inherit;font-size:13px}
.chip.tappable:hover{border-color:var(--accent);border-style:solid}
.fu-box{display:flex;flex-direction:column;gap:8px;flex-basis:100%;width:100%;margin:2px 0 6px}
.fu-box textarea{width:100%;font:inherit;font-size:14px;padding:8px 10px;border:1px solid var(--accent);border-radius:12px;background:var(--paper);resize:vertical}
.fu-box .row{display:flex;align-items:center;gap:12px}
.fu-box .row .btn{flex:0 0 auto;padding:8px 18px;min-height:36px}
.chips{display:flex;flex-wrap:wrap;gap:6px}

/* ---- controls ---- */
label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);font-weight:500}
input,textarea{font:inherit;font-size:15px;color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-sm);padding:12px 14px;width:100%;resize:vertical}
input::placeholder,textarea::placeholder{color:var(--dim)}
textarea{min-height:88px}
input:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:0;border-color:transparent}
.btn{appearance:none;border:0;border-radius:999px;padding:13px 20px;font:inherit;font-size:15px;font-weight:500;cursor:pointer;min-height:44px;background:var(--accent);color:var(--accent-ink)}
.btn:hover{filter:brightness(.96)}
.btn.ghost{background:transparent;color:var(--muted);border:1px solid var(--line-strong)}
.btn.ghost:hover{background:var(--sunken);filter:none}
.btn.loss{background:var(--loss);color:#fff}
.btn:disabled{opacity:.5;cursor:default;filter:none}
.small{font-size:13px;color:var(--dim);text-decoration:underline;cursor:pointer;background:none;border:0;padding:0;font:inherit}
.fileline{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--dim);flex-wrap:wrap}
.fileline input[type=file]{font-size:12px;color:var(--dim);width:auto;border:0;padding:0;background:none}

/* ---- the persona ---- */
.persona{display:flex;gap:16px;align-items:center}
.glow{position:relative;width:96px;height:96px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.glow::before{content:"";position:absolute;inset:8px;border-radius:50%;background:var(--accent);opacity:.22;filter:blur(18px);transition:opacity .6s,background .6s}
.glow[data-state="curious"]::before{background:var(--accent)}
.glow[data-state="back"]::before{background:var(--accent);opacity:.34}
.glow[data-state="quiet"]::before{background:var(--quiet);opacity:.12}
.glow svg{position:relative;animation:breathe 4s ease-in-out infinite}
.glow[data-state="curious"] svg{animation:sigh 5s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.02)}}
@keyframes sigh{0%,70%,100%{transform:translateY(0)}80%{transform:translateY(-4px)}90%{transform:translateY(1px)}}
.pname{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:22px}
.pstate{font-size:12px;letter-spacing:.04em;color:var(--accent);font-weight:500}
.facts{display:flex;flex-wrap:wrap;gap:6px}

/* ---- landing: the one animation. online, then away. then the words. ---- */
.hero .wordmark{font-size:22px;color:var(--muted)}
.hero .wordmark .dot-away{background:#3BB273;animation:go-away 2.2s ease forwards;animation-delay:.6s}
@keyframes go-away{0%,55%{background:#3BB273;box-shadow:0 0 0 0 rgba(59,178,115,.35)}70%{box-shadow:0 0 0 10px rgba(232,145,45,0)}100%{background:var(--accent);box-shadow:0 0 0 0 rgba(232,145,45,0)}}
.hero .reveal{opacity:0;transform:translateY(6px);animation:reveal .6s ease forwards}
.hero .reveal.r1{animation-delay:2.4s} .hero .reveal.r2{animation-delay:2.7s} .hero .reveal.r3{animation-delay:3s}
@keyframes reveal{to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){ .hero .wordmark .dot-away{animation:none;background:var(--accent)} .hero .reveal{animation:none;opacity:1;transform:none} }

/* ---- hero (sign in, wake) ---- */
.hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px;padding:48px 0 8px}
.hero .glow{width:132px;height:132px}
.hero .glow::before{inset:10px;opacity:.3;filter:blur(26px)}
.hero h1{font-size:36px;max-width:22ch;margin-top:10px}
@media (max-width: 600px){ .hero h1{font-size:28px} }
.hero p{max-width:44ch}
.hero .form{width:100%;max-width:420px;display:flex;flex-direction:column;gap:12px;text-align:left;margin-top:8px}

/* ---- chat / thread ---- */
.venue{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-radius:var(--radius-sm);background:var(--sunken)}
.venue b{font-family:'Bricolage Grotesque',sans-serif;font-size:16px}
.live{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--loss);font-weight:500}
.live i{width:8px;height:8px;border-radius:50%;background:var(--loss);display:inline-block;animation:blink 1.2s infinite}
@keyframes blink{50%{opacity:.2}}
.chat{display:flex;flex-direction:column;gap:10px;min-height:120px}
.msg{max-width:82%;padding:10px 14px;border-radius:14px;font-size:15px;line-height:1.45;white-space:pre-wrap}
.msg .who{display:block;font-size:12px;margin-bottom:3px;color:var(--dim);font-weight:500}
.msg.host{align-self:flex-start;background:var(--sunken);border-bottom-left-radius:4px}
.msg.me{align-self:flex-end;background:var(--accent-tint);border:1px solid var(--accent-line);border-bottom-right-radius:4px}
.msg.me .who{color:var(--accent)}
.typing{align-self:flex-start;display:flex;gap:4px;padding:10px 14px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--dim);animation:dot 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes dot{0%,60%,100%{opacity:.25}30%{opacity:1}}
.verdict{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:var(--radius-sm);background:var(--sunken);font-size:14px;line-height:1.4}
.verdict .mark{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:22px;color:var(--accent);flex:0 0 auto}
.verdict.no .mark{color:var(--dim)}

/* ---- reports ---- */
.headline{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--line)}
.headline button.h{all:unset;cursor:pointer;display:block;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:18px;line-height:1.25;color:var(--ink)}
.headline .mood{font-size:12px;color:var(--accent);font-weight:500}
.headline.opened{opacity:.55}
.ask{padding:12px 14px;border-radius:var(--radius-sm);border:1px solid var(--loss);background:var(--surface);font-size:15px;line-height:1.5}
.react{display:flex;gap:8px}
.react .btn{flex:1;font-size:14px;padding:10px 14px}
.react .btn.picked{outline:2px solid var(--accent);outline-offset:1px}
.reply{display:flex;gap:8px}
.reply input{flex:1}
.meter{font-size:12px;color:var(--dim);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* ---- vibes ---- */
.vibes{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.vibe{appearance:none;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:10px 8px;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;color:var(--muted);font:inherit;min-height:44px}
.vibe svg{width:52px;height:52px}
.vibe b{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:13px;color:var(--ink)}
.vibe span{font-size:11px;line-height:1.3;text-align:center;color:var(--dim)}
.vibe.on{border-color:var(--accent);background:var(--accent-tint)}
.vibe:focus-visible{outline:2px solid var(--accent)}
.photo{display:flex;gap:12px;align-items:center;background:var(--sunken);border:1px dashed var(--line-strong);border-radius:12px;padding:12px}
.photo .thumb{width:56px;height:56px;border-radius:8px;background:linear-gradient(135deg,var(--line),var(--accent-line));flex:0 0 auto}
.photo input{flex:1}
.steps{display:flex;gap:6px}
.step{flex:1;height:4px;border-radius:2px;background:var(--line)}
.step.on{background:var(--accent)}

/* ---- landing: two faces of one page ---- */
.faces{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:var(--sunken);margin-bottom:4px}
.face{appearance:none;border:0;background:transparent;font:inherit;font-size:14px;font-weight:500;color:var(--muted);padding:8px 16px;border-radius:999px;cursor:pointer}
.face.on{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.hero .rotator{min-height:1.6em;width:auto;max-width:none;margin:0 auto;text-align:center;display:block;align-self:center}
.rotator.typing::after{content:"";display:inline-block;width:2px;height:1em;background:var(--accent);margin-left:3px;vertical-align:-2px;animation:caret 1s steps(1) infinite}
@keyframes caret{50%{opacity:0}}

/* ---- setup: who's going out ---- */
.who{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.whoTile{appearance:none;font:inherit;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:4px;cursor:pointer;color:var(--muted)}
.whoTile b{font-family:'Bricolage Grotesque',sans-serif;font-size:16px;color:var(--ink)}
.whoTile span{font-size:13px;color:var(--dim)}
.whoTile.on{border-color:var(--accent);background:var(--accent-tint)}
@media (max-width:480px){ .who{grid-template-columns:1fr} }

/* ---- feed: a conversation with your version, not a form ---- */
.status-dot{width:14px;height:14px;border-radius:50%;background:var(--accent);flex:0 0 auto;box-shadow:0 0 0 5px var(--accent-tint)}
.composer{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line-strong);border-radius:14px;padding:10px 10px 8px;background:var(--surface)}
.composer textarea{border:0;padding:6px 6px 0;min-height:52px;resize:none;background:transparent}
.composer textarea:focus{outline:none}
.composer:focus-within{outline:2px solid var(--accent);outline-offset:0;border-color:transparent}
.composer-bar{display:flex;justify-content:space-between;align-items:center;gap:8px}
.composer-bar .btn{padding:9px 18px;min-height:38px;white-space:nowrap}
.attach{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.attach-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;color:var(--dim);font-size:13px;cursor:pointer;font-weight:500;flex-direction:row}
.attach-btn:hover{background:var(--sunken);color:var(--ink)}
.attach-btn input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.attach-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.attach-btn.has{color:var(--accent);background:var(--accent-tint)}
.attach-count{font-size:12px;color:var(--accent)}
.feed-foot{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.account{justify-content:flex-start;gap:16px;padding-top:4px;border-top:1px solid var(--line);margin-top:4px}
@media (max-width:480px){ .attach-btn span{display:none} .attach-btn{padding:8px} }

/* ---- setup wizard: one question per step ---- */
.wizard{display:flex;flex-direction:column;gap:18px;padding:12px 0}
.wizard h2{font-size:26px}
.wiz-progress{display:flex;gap:6px}
.wiz-progress span{width:28px;height:4px;border-radius:2px;background:var(--line)}
.wiz-progress span.on{background:var(--accent)}
.wiz-step{display:flex;flex-direction:column;gap:14px}
.wiz-nav{display:flex;justify-content:space-between;gap:10px;padding-top:6px}
.wiz-nav .btn{flex:0 0 auto;min-width:120px}
.wiz-nav .btn.ghost:disabled{visibility:hidden}
.dropzone{display:flex;flex-direction:column;align-items:center;gap:10px;padding:32px 16px;border:1.5px dashed var(--line-strong);border-radius:14px;background:var(--sunken);cursor:pointer;color:var(--dim);text-align:center;font-weight:400;text-transform:none;letter-spacing:0;font-size:14px}
.dropzone:hover,.dropzone.over{border-color:var(--accent);background:var(--accent-tint);color:var(--ink)}
.dropzone.has{border-style:solid;border-color:var(--accent);color:var(--ink)}
.dropzone svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dropzone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tones .vibe{align-items:flex-start;text-align:left;padding:12px}
.tones .vibe span{text-align:left}
.tones{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.wizard #wizKind .small{margin-left:4px}

/* ---- home: everything is a feed. nav | timeline | your version ---- */
.main{align-items:flex-start;gap:28px}
.aside{width:300px;flex:0 0 auto;position:sticky;top:28px;display:flex;flex-direction:column;gap:14px}
@media (max-width:1180px){ .aside{display:none !important} }
.home{display:flex;flex-direction:column;gap:14px}
.avatar{width:40px;height:40px;border-radius:50%;flex:0 0 auto;display:flex;align-items:center;justify-content:center;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:14px;letter-spacing:0;color:var(--ink);background:var(--sunken);border:1px solid var(--line)}
.avatar.you{background:var(--accent-tint);border-color:var(--accent-line);color:var(--accent-ink)}
.avatar.house{border-style:dashed;color:var(--dim)}
.avatar.business{background:var(--human);color:#fff;border-color:transparent}
.avatar.big{width:48px;height:48px;font-size:17px}
/* Dots on cards are identity: still. only the live Dot moves. */
.post .avatar.is-dot .dot .g,.post .avatar.is-dot .dot .eye,.post .avatar.is-dot .dot .mark,.cmsg .avatar.is-dot .dot .g,.cmsg .avatar.is-dot .dot .eye,.bell-item .avatar.is-dot .dot .g,.bell-item .avatar.is-dot .dot .eye,.toast .avatar.is-dot .dot .g,.toast .avatar.is-dot .dot .eye{animation:none !important}
/* the pen: your Dots, like the face sheet. the live one big on top, the rest in cells. empty cells are Dots you could start. */
.pen{margin:8px 6px 10px;display:flex;flex-direction:column;gap:8px}
.pen-hero{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);cursor:pointer;text-align:left;font:inherit;color:var(--ink);position:relative}
.pen-hero:hover{border-color:var(--accent-line)}
.pen-hero .dot{--s:52px;flex:none}
.pen-hero b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pen-hero > div{min-width:0;flex:1}
.pen-hero span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.pen-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.pen-cell{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px 7px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;font:inherit;color:var(--muted);font-size:10px}
.pen-cell:hover{border-color:var(--accent-line);color:var(--ink)}
.pen-cell .dot{--s:28px}
.pen-cell .lbl{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pen-cell.live{border-color:var(--accent-line);background:var(--accent-tint);color:var(--ink)}
.pen-cell.ghost{border-style:dashed;background:transparent;opacity:.55}
.pen-cell.ghost:hover{opacity:1}
.pen-cell.ghost .lbl::before{content:"+ "}
.pen-cell.asleep .dot{opacity:.6}
.pen .badge{appearance:none;cursor:pointer;position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;border-radius:8px;background:var(--accent);color:#fff;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid var(--bg);animation:pop-dot 1.4s ease-in-out infinite}
.pen.flat{flex-direction:row;overflow-x:auto;margin:0 0 10px;align-items:stretch}
.pen.flat .pen-hero{flex:none;padding:8px 10px}
.pen.flat .pen-hero .dot{--s:36px}
.pen.flat .pen-grid{display:flex;gap:6px}
.pen.flat .pen-cell{flex:none;width:64px}
@media (prefers-reduced-motion: reduce){ .pen .badge{animation:none} }
/* focus: one Dot big */
.card.modal.focus{max-width:560px}
.focus-head{display:flex;gap:18px;align-items:center;margin-bottom:12px}
.focus-head h2{margin:0 0 2px;outline:none;border-bottom:1px dashed transparent;cursor:text}
.focus-head h2:hover,.focus-head h2:focus{border-bottom-color:var(--line)}
.focus-head h2{display:inline-block;max-width:calc(100% - 30px)}
.focus-rules{margin-top:12px}
.focus-rules textarea{width:100%;min-height:52px;font:inherit;font-size:13px;resize:vertical}
.banter{margin-top:10px;border-top:1px dashed var(--line);padding-top:8px}
.banter.in-card{margin:8px 0 0}
.banter-log{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow:auto}
.banter.compact .banter-log{max-height:140px}
.bline{display:flex;gap:8px;font-size:14px;align-items:baseline}
.banter-head{display:block;margin-bottom:8px;font-size:13px;font-weight:700;color:var(--ink);letter-spacing:0}
.bline .bwho{flex:none;display:block;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);width:46px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bline .bwho.bface{width:46px;display:flex;justify-content:center;align-items:center;line-height:0}
.bline .bwho.bface .dot{--s:18px}
.bline .bt{flex:1;min-width:0;display:block;white-space:normal;overflow-wrap:anywhere}
.bline.me .bt{color:var(--muted)}
.bline.them .bt{color:var(--ink)}
.banter-row{display:flex;gap:6px;margin-top:8px}
.banter-row input{flex:1;min-width:0;font-size:13px}
.post.asked{border-color:var(--accent)}
.post.asked .corpus-add{margin-top:8px}
.follow{margin:10px 0 0;padding:8px 0 0 12px;border-left:2px solid var(--line)}
.follow .eyebrow{display:block;margin-bottom:4px}
.follow .post-text{margin:0}
.ground{display:inline-block;font-size:7px;line-height:1;vertical-align:super;margin-left:3px;color:var(--accent);cursor:help;opacity:.75}
.ground:hover{opacity:1}
.sources{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin:6px 0 2px;font-size:14px}
.sources a.src{color:var(--accent);text-decoration:underline;text-underline-offset:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.sources a.src small{color:var(--muted);text-decoration:none}
.pencil{display:inline-flex;align-items:center;vertical-align:middle;margin-left:6px;padding:4px;border:0;background:none;color:var(--muted);cursor:pointer;border-radius:6px}
.pencil:hover{color:var(--ink);background:var(--line)}
.focus-head p{margin:0}
.focus-dot{appearance:none;border:0;background:none;padding:0;cursor:pointer;line-height:0;flex:none}
.focus-dot .dot{--s:96px}
.compose-role{display:block;margin:6px 0 10px;padding:10px 12px;border:1px dashed var(--line);border-radius:var(--radius-sm);background:var(--sunken)}
.compose-role textarea{width:100%;margin-top:4px;font-size:13px;resize:none;max-height:72px;background:transparent;border:0;padding:0;color:var(--ink)}
.compose-role textarea:focus{outline:none}
.swatches{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 2px}
.swatches.top{margin:2px 0 8px}
.swatches.top .swatch{width:18px;height:18px}
.swatch{width:22px;height:22px;border-radius:50%;border:2px solid transparent;cursor:pointer;padding:0;appearance:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.swatch.none{background:transparent;border:1.5px dashed var(--line)}
.swatch.on{border-color:var(--ink)}
.swatch:hover{transform:scale(1.1)}
.focus-role{display:block;margin:0 0 12px}
.focus-role textarea{width:100%;margin-top:4px;font-size:13px;resize:vertical}
.focus-role .note{display:block;min-height:1em;margin-top:2px}
.focus-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.focus-actions .danger{color:var(--muted);margin-left:auto}
.follows{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.follows-list{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 12px;font-size:13px}
.follow{display:flex;align-items:center;gap:8px;padding:4px 0;cursor:pointer}
.follow input{accent-color:var(--accent)}
.post.brought.unread{border-color:var(--accent-line)}
.post.brought.nah{opacity:.55}
.post.brought .pill.live{background:var(--accent-tint);color:var(--accent-ink);border-color:var(--accent-line)}
.corpus{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.corpus-bar{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.corpus-bar input{flex:1}
.pen-graph{display:block;text-align:center;font-size:11px;color:var(--muted);text-decoration:none;margin-top:2px}
.pen-graph:hover{color:var(--ink);text-decoration:underline}
.corpus-group{padding:8px 8px 2px}
.corpus-add{display:flex;gap:6px;margin-top:10px}
.corpus-add input{flex:1;min-width:0;font-size:13px}
.corpus-list{max-height:40vh;overflow:auto;display:flex;flex-direction:column;gap:4px}
.corpus-line{display:flex;gap:10px;align-items:flex-start;padding:7px 8px;border-radius:var(--radius-sm);font-size:13px}
.corpus-line:hover{background:var(--sunken)}
.corpus-line .k{flex:none;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-top:3px;width:46px}
.corpus-line .t{flex:1}
.corpus-line .f{appearance:none;border:0;background:none;color:var(--muted);font-size:12px;cursor:pointer;text-decoration:underline;flex:none;opacity:0}
.corpus-line:hover .f{opacity:1}
/* the chip in the compose box: which Dot the brief lands on */
.dot-chip-wrap{position:relative;display:inline-flex;margin-right:8px}
.dot-chip{appearance:none;white-space:nowrap;max-width:180px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--sunken);color:var(--muted);border-radius:999px;padding:4px 10px 4px 6px;font:inherit;font-size:12px;cursor:pointer}
.dot-chip:hover{color:var(--ink);border-color:var(--accent-line)}
.dot-chip-dot .dot{--s:18px}
.dot-chip #dotChipName{overflow:hidden;text-overflow:ellipsis;min-width:0}
.dot-chip.guess{border-style:dashed}
.dot-pick{position:absolute;bottom:calc(100% + 6px);right:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:0 10px 30px rgba(0,0,0,.14);padding:6px;min-width:200px;z-index:5;display:flex;flex-direction:column;gap:2px}
.dot-pick button{appearance:none;border:0;background:none;display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;font:inherit;font-size:13px;color:var(--ink);cursor:pointer;text-align:left}
.dot-pick button:hover{background:var(--sunken)}
.dot-pick button .dot{--s:18px}
.pick-new{display:flex;gap:6px;padding:6px;border-top:1px solid var(--line);margin-top:4px}
.pick-new input{flex:1;min-width:0;font-size:13px}
.dot-pick button.new{color:var(--muted);border-top:1px solid var(--line);border-radius:0;margin-top:4px;padding-top:8px}
.postbox{display:flex;gap:12px;padding:16px 16px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}
.postbox-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.postbox textarea{border:0;padding:8px 0 0;min-height:48px;resize:none;background:transparent;font-size:16px}
.postbox textarea:focus{outline:none}
.postbox:focus-within{border-color:var(--accent-line)}
.scopes{display:flex;align-items:center;gap:4px;padding:0 4px}
.scopes .spacer{flex:1}
.scope{appearance:none;white-space:nowrap;border:0;background:transparent;font:inherit;font-size:14px;font-weight:500;color:var(--dim);padding:8px 14px;border-radius:999px;cursor:pointer}
.scope:hover{color:var(--ink);background:var(--sunken)}
.scope.on{color:var(--ink);background:var(--accent-tint)}
.timeline{display:flex;flex-direction:column;gap:12px}
.post{display:flex;gap:12px;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}
.post.fed{background:var(--sunken);box-shadow:none;border-color:transparent}
.post.report{border-color:var(--accent-line)}
.post.wake{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-tint)}
.post-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.post-head{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;font-size:14px}
.post-head b{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:15px;color:var(--ink)}
.post-head .handle{color:var(--dim)}
.post-head .pill{font-size:11px;padding:2px 8px;border-radius:999px;background:var(--sunken);border:1px solid var(--line);color:var(--muted);letter-spacing:.02em}
.post-head .pill.live{color:var(--loss);border-color:var(--loss)}
.post-head .pill.you{background:var(--accent-tint);border-color:var(--accent-line)}
.post-text{font-size:15px;line-height:1.5;white-space:pre-wrap;color:var(--ink)}
.post-text.hook{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:18px;line-height:1.25}
.tags{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:14px}
.tags a{color:var(--accent)}
.post-actions{display:flex;align-items:center;gap:18px;font-size:13px;color:var(--dim);margin-top:2px}
.post-actions button{appearance:none;background:none;border:0;padding:0;font:inherit;color:var(--dim);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.post-actions button:hover{color:var(--ink)}
.post-actions button svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.post-actions .liked{color:var(--accent)}
.post-actions .spacer{flex:1}
.post-actions .btn{font-size:13px;padding:7px 14px;min-height:32px}
.thread-inline{display:flex;flex-direction:column;gap:8px;padding:10px 0 2px;border-top:1px solid var(--line);margin-top:4px}
.thread-inline .line{display:flex;gap:10px;font-size:14px;line-height:1.45}
.thread-inline .line b{flex:0 0 auto;font-weight:500;color:var(--muted);min-width:72px}
.thread-inline .line.me b{color:var(--accent)}
.thread-inline .likes{font-size:13px;color:var(--dim);padding-top:4px}
.thread-inline .likes b{color:var(--accent);font-weight:500}
.aside-stats{display:flex;gap:6px}
.aside-stats button{flex:1;display:flex;flex-direction:column;align-items:center;padding:10px 6px;border-radius:var(--radius-sm);background:var(--sunken);border:0;cursor:pointer;color:inherit;font:inherit;gap:4px}
.aside-stats button span{font-size:13px;color:var(--muted)}
.aside-stats button:hover{box-shadow:inset 0 0 0 1px var(--accent)}
.aside-stats b{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:20px;line-height:1}
.aside-stats span{font-size:11px;color:var(--dim);margin-top:4px}
.aside .account{gap:12px}
.board-list{display:flex;flex-direction:column;gap:2px}
.board-list a{display:flex;justify-content:space-between;gap:8px;padding:7px 8px;border-radius:8px;color:var(--ink);font-size:14px}
.board-list a:hover{background:var(--surface);text-decoration:none}
.board-list a span{color:var(--dim);font-size:12px}
.post-actions .btn{background:var(--accent);color:var(--accent-ink);padding:7px 14px;min-height:32px;font-weight:500}
.post-actions .btn:disabled{opacity:.5}
.scopes .btn.go{display:none;font-size:13px;padding:7px 14px;min-height:32px;margin-left:8px}
@media (max-width:1180px){ .scopes .btn.go{display:inline-flex} }
/* pictures on posts, the toggle, comment tags */
.post-pic{border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--sunken);max-width:560px}
.post-pic img{display:block;width:100%;height:auto}
.attach-btn.pic{appearance:none;background:none;border:0;font:inherit}
.attach-btn.pic.on{color:var(--accent);background:var(--accent-tint)}
.thread-inline .line i.tag{font-style:normal;font-size:11px;color:var(--dim);border:1px solid var(--line);border-radius:999px;padding:1px 7px;margin-right:6px;vertical-align:1px}
.post.mine{border-color:var(--accent-line)}
.post-head .handle a:hover{text-decoration:underline}
/* board page */
.boards-tabs{flex-wrap:wrap;gap:4px}
.boards-tabs a.scope{text-decoration:none}
.board-head{display:flex;gap:14px;align-items:flex-start;padding:4px 4px 8px}
.board-head h2{font-size:24px}
/* comments: each one its own bubble */
.thread-inline{gap:10px}
.comment{display:flex;gap:10px;align-items:flex-start}
.comment .avatar{width:30px;height:30px;font-size:11px}
.comment .bubble{flex:1;min-width:0;background:var(--sunken);border-radius:14px;border-top-left-radius:4px;padding:10px 12px;display:flex;flex-direction:column;gap:3px}
.comment.me .bubble{background:var(--accent-tint);border:1px solid var(--accent-line)}
.comment .c-head{display:flex;align-items:center;gap:8px;font-size:13px}
.comment .c-head b{font-weight:500;color:var(--ink)}
.comment.me .c-head b{color:var(--accent)}
.comment .tag{font-size:11px;color:var(--dim);border:1px solid var(--line);border-radius:999px;padding:1px 7px}
.comment .c-text{font-size:14px;line-height:1.45;white-space:pre-wrap}
.thread-inline .likes{padding:6px 0 0 40px}
/* drafts */
.post-head .pill.draft{background:var(--accent-tint);border-color:var(--accent);color:var(--ink)}
.draft-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-top:4px}
.draft-row .btn{padding:9px 22px;min-height:38px}
.draft-row .cap-note{color:var(--ink);font-weight:600}
/* For you with nothing back yet: big, not shy. the Dot looking out, two lines, a way across. */
#tlEmpty.big{display:flex;align-items:center;gap:28px;padding:48px 24px;margin:12px 0;border:1px dashed var(--line);border-radius:18px;background:var(--surface);font-size:inherit;color:var(--ink)}
#tlEmpty.big .t{display:flex;flex-direction:column;gap:8px}
#tlEmpty.big b{font-size:28px;line-height:1.15;font-weight:700}
#tlEmpty.big span{font-size:16px;color:var(--muted)}
#tlEmpty.big a{font-size:15px;color:var(--accent);margin-top:6px}
@media (max-width:640px){ #tlEmpty.big{flex-direction:column;text-align:center;padding:32px 16px} }
.draft-edit{display:flex;flex-direction:column;gap:8px}
.draft-edit .row{align-items:center;gap:12px}
.draft-edit .row .btn{flex:0 0 auto;padding:8px 18px;min-height:36px}
.post-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 2px}
.mcard{position:relative;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface);text-decoration:none;color:inherit}
.mcard.one{grid-column:1 / -1}
.mcard img{display:block;width:100%;height:150px;object-fit:cover}
.mcard.one img{height:220px}
.mcard .play{position:absolute;left:50%;top:40%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:rgba(0,0,0,.6)}
.mcard .play::after{content:"";position:absolute;left:18px;top:13px;border-style:solid;border-width:10px 0 10px 16px;border-color:transparent transparent transparent #fff}
.mplayer{position:relative;grid-column:1 / -1;border-radius:12px;overflow:hidden;background:#000;aspect-ratio:16/9}
.mplayer iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.mcap{display:flex;flex-direction:column;gap:2px;padding:8px 10px;font-size:12px;color:var(--dim);line-height:1.3}
.mcap b{font-size:13px;color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pic-note{display:block;font-size:12px;color:var(--dim);padding:6px 10px;border-top:1px solid var(--line);background:var(--surface)}
/* the spinner: three amber dots drifting round each other. used while something is being made. */
.spin{position:relative;width:26px;height:26px;flex:0 0 auto;display:inline-block;vertical-align:middle}
.spin i{position:absolute;left:50%;top:50%;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;background:var(--accent);animation:spin-orbit 1.6s cubic-bezier(.45,.05,.55,.95) infinite}
.spin i:nth-child(2){animation-delay:-.53s}
.spin i:nth-child(3){animation-delay:-1.06s}
@keyframes spin-orbit{0%{transform:rotate(0deg) translate(8px) scale(1)}50%{transform:rotate(180deg) translate(4px) scale(.7)}100%{transform:rotate(360deg) translate(8px) scale(1)}}
.spin.lg{width:40px;height:40px}
.spin.lg i{width:10px;height:10px;margin:-5px 0 0 -5px}
.spin.lg i{animation-name:spin-orbit-lg}
@keyframes spin-orbit-lg{0%{transform:rotate(0deg) translate(13px) scale(1)}50%{transform:rotate(180deg) translate(6px) scale(.7)}100%{transform:rotate(360deg) translate(13px) scale(1)}}
.spin-row{display:flex;align-items:center;gap:10px;color:var(--dim);font-size:14px}
/* an unopened report wants you. it pulses until you open it. */
.post.report.unread{animation:knock 2.4s ease-in-out infinite;border-color:var(--accent)}
@keyframes knock{0%,100%{box-shadow:0 0 0 0 rgba(232,145,45,0)}50%{box-shadow:0 0 0 6px rgba(232,145,45,.18)}}
.post.report.unread .avatar{position:relative}
.post.report.unread .avatar.is-dot::after{display:none}
.post.report.unread .avatar::after{content:"";position:absolute;right:-2px;top:-2px;width:11px;height:11px;border-radius:50%;background:var(--accent);border:2px solid var(--surface);animation:breathe-dot 1.6s ease-in-out infinite}
@keyframes breathe-dot{0%,100%{transform:scale(1)}50%{transform:scale(1.45)}}
.post-head .pill.new{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.post.report.unread .btn{animation:nudge 2.4s ease-in-out infinite}
@keyframes nudge{0%,80%,100%{transform:translateX(0)}86%{transform:translateX(3px)}92%{transform:translateX(-2px)}}
@media (prefers-reduced-motion: reduce){ .post.report.unread,.post.report.unread .avatar::after,.post.report.unread .btn{animation:none} }
/* needier. the unread report wobbles, the ring is wider, the dot pops, the button taps you on the shoulder. */
.post.report.unread{animation:knock 1.8s ease-in-out infinite, wobble 3.6s ease-in-out infinite;border-width:2px}
@keyframes knock{0%,100%{box-shadow:0 0 0 0 rgba(232,145,45,0)}50%{box-shadow:0 0 0 10px rgba(232,145,45,.28)}}
@keyframes wobble{0%,88%,100%{transform:rotate(0)}90%{transform:rotate(-.7deg) translateX(-3px)}93%{transform:rotate(.7deg) translateX(3px)}96%{transform:rotate(-.4deg) translateX(-2px)}}
.post.report.unread .avatar::after{width:14px;height:14px;right:-4px;top:-4px;animation:pop-dot 1.2s ease-in-out infinite}
@keyframes pop-dot{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(232,145,45,.6)}50%{transform:scale(1.5);box-shadow:0 0 0 8px rgba(232,145,45,0)}}
.post.report.unread .btn{animation:nudge 1.8s ease-in-out infinite}
@keyframes nudge{0%,70%,100%{transform:translateX(0) scale(1)}78%{transform:translateX(4px) scale(1.04)}86%{transform:translateX(-3px) scale(1.04)}93%{transform:translateX(2px) scale(1)}}
.post.report.unread .post-text.hook{animation:glow-text 1.8s ease-in-out infinite}
@keyframes glow-text{0%,100%{color:var(--ink)}50%{color:var(--accent)}}
@media (prefers-reduced-motion: reduce){ .post.report.unread,.post.report.unread .avatar::after,.post.report.unread .btn,.post.report.unread .post-text.hook{animation:none} }
/* the ios jiggle. continuous, small, a little uneven so it reads as nervous rather than mechanical. */
.post.report.unread{animation:knock 1.8s ease-in-out infinite, jiggle .32s ease-in-out infinite;transform-origin:50% 60%}
@keyframes jiggle{0%{transform:rotate(-1.2deg) translate(0,0)}25%{transform:rotate(1.1deg) translate(1px,-1px)}50%{transform:rotate(-1deg) translate(-1px,0)}75%{transform:rotate(1.3deg) translate(0,1px)}100%{transform:rotate(-1.2deg) translate(0,0)}}
@media (prefers-reduced-motion: reduce){ .post.report.unread{animation:none} }

/* snooze and the bell */
.post.report.unread.snoozed{animation:none;border-color:var(--line);border-width:1px}
.post.report.unread.snoozed .avatar::after,.post.report.unread.snoozed .btn,.post.report.unread.snoozed .post-text.hook{animation:none}
.bell-wrap{position:relative}
.bell{appearance:none;border:0;background:transparent;cursor:pointer;padding:6px;border-radius:999px;position:relative;color:var(--muted);display:inline-flex}
.bell:hover{background:var(--sunken);color:var(--ink)}
.bell svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bell .badge{position:absolute;top:0;right:0;min-width:17px;height:17px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center;border:2px solid var(--bg)}
.bell.wants{animation:bell-ring 2.4s ease-in-out infinite;transform-origin:50% 0}
@keyframes bell-ring{0%,80%,100%{transform:rotate(0)}84%{transform:rotate(14deg)}88%{transform:rotate(-12deg)}92%{transform:rotate(8deg)}96%{transform:rotate(-4deg)}}
.bell-panel{position:absolute;right:0;top:40px;width:340px;max-width:90vw;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 12px 36px rgba(28,26,23,.14);padding:8px;z-index:20;display:flex;flex-direction:column;gap:2px}
.bell-panel .eyebrow{padding:8px 10px 4px}
.bell-item{display:flex;gap:10px;align-items:flex-start;padding:10px;border-radius:10px;cursor:pointer;text-align:left;background:none;border:0;font:inherit;color:var(--ink);width:100%}
.bell-item:hover{background:var(--sunken)}
.bell-item .avatar{width:30px;height:30px;font-size:11px}
.bell-item b{display:block;font-weight:600;font-size:14px;line-height:1.3}
.bell-item span{display:block;font-size:12px;color:var(--dim);margin-top:2px}
.bell-item.snoozed{opacity:.6}
.bell-empty{padding:14px 10px;font-size:14px;color:var(--dim)}
.bell-head{display:flex;align-items:center;justify-content:space-between;padding-right:10px}
/* not a tilt. a shiver: a pixel each way, fast, no rotation, so a still frame still looks straight. */
.post.report.unread{animation:knock 1.8s ease-in-out infinite, shiver .18s linear infinite;transform-origin:50% 50%}
@keyframes shiver{0%{transform:translate(0,0)}25%{transform:translate(1px,0)}50%{transform:translate(0,1px)}75%{transform:translate(-1px,0)}100%{transform:translate(0,-1px)}}
.post.report.unread .post-text.hook{animation:none;color:var(--ink)}
@media (prefers-reduced-motion: reduce){ .post.report.unread{animation:none} }
/* sits a touch askew, like it's been knocked, and shivers around that. */
.post.report.unread{animation:knock 1.8s ease-in-out infinite, shiver-tilt .18s linear infinite;transform-origin:50% 50%}
@keyframes shiver-tilt{0%{transform:rotate(-1deg) translate(0,0)}25%{transform:rotate(-1deg) translate(1px,0)}50%{transform:rotate(-1.15deg) translate(0,1px)}75%{transform:rotate(-0.85deg) translate(-1px,0)}100%{transform:rotate(-1deg) translate(0,-1px)}}
.post.report.unread.snoozed{animation:none;transform:none}
@media (prefers-reduced-motion: reduce){ .post.report.unread{animation:none;transform:rotate(-1deg)} }
.post-head .pill.wait{background:var(--sunken);border-style:dashed;color:var(--muted)}

/* the report takes centre stage. frosted glass behind, the card in the middle. */
.modal-back{position:fixed;inset:0;z-index:30;background:rgba(28,26,23,.28);backdrop-filter:blur(10px) saturate(.9);-webkit-backdrop-filter:blur(10px) saturate(.9);display:flex;align-items:center;justify-content:center;padding:24px;animation:fade .18s ease}
:root[data-theme="dark"] .modal-back{background:rgba(0,0,0,.5)}
@keyframes fade{from{opacity:0}to{opacity:1}}
.card.modal{position:relative;width:min(760px,100%);max-height:calc(100vh - 48px);overflow:auto;padding:28px 28px 24px;animation:rise .22s ease;box-shadow:0 24px 80px rgba(28,26,23,.25)}
@keyframes rise{from{transform:translateY(12px) scale(.985);opacity:0}to{transform:none;opacity:1}}
.modal-x{position:absolute;top:12px;right:14px;appearance:none;border:0;background:transparent;font-size:26px;line-height:1;color:var(--dim);cursor:pointer;width:36px;height:36px;border-radius:999px}
.modal-x:hover{background:var(--sunken);color:var(--ink)}
.card.modal .chat{max-height:46vh;overflow:auto}
.card.modal .headline button.h{font-size:20px}
@media (max-width:600px){ .modal-back{padding:0;align-items:flex-end} .card.modal{max-height:92vh;border-radius:18px 18px 0 0;width:100%} }
body.modal-open{overflow:hidden}
.postbox textarea{overflow:hidden}
.rhead{display:flex;gap:12px;align-items:center}
.rname{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:18px;display:flex;align-items:center;gap:8px}
.rname .pill{font-family:'IBM Plex Sans',sans-serif;font-weight:400;font-size:11px;padding:2px 8px;border-radius:999px;background:var(--sunken);border:1px solid var(--line);color:var(--muted)}
.ractions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:13px}
.ractions .sep{width:1px;height:14px;background:var(--line)}
.ractions .small.picked{color:var(--accent);text-decoration:none;font-weight:500}
.ractions .small[aria-pressed="true"]{color:var(--accent)}
.card.modal .reply input{font-size:16px;padding:14px 16px}
/* the post box lifts to centre stage while you write */
.card.modal.compose{width:min(820px,100%)}
.card.modal.compose .postbox{border:0;box-shadow:none;padding:0}
.card.modal.compose .postbox textarea{min-height:220px;font-size:18px;line-height:1.5}
.card.modal.compose .avatar{width:44px;height:44px;font-size:15px}
.fade-out{animation:fadeout .6s ease forwards}
@keyframes fadeout{to{opacity:0;transform:translateY(-6px)}}
/* toasts: something you asked for is ready while you were elsewhere */
.toasts{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;z-index:40;width:min(460px,calc(100vw - 32px))}
.toast{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:var(--ink);color:var(--bg);box-shadow:0 12px 36px rgba(28,26,23,.3);animation:toast-in .25s ease;font-size:14px}
:root[data-theme="dark"] .toast{background:var(--surface);color:var(--ink);border:1px solid var(--line-strong)}
.toast .avatar{width:30px;height:30px;font-size:11px;flex:0 0 auto}
.toast .t{flex:1;min-width:0}
.toast .btn{padding:7px 14px;min-height:32px;font-size:13px}
.toast .x{appearance:none;border:0;background:transparent;color:inherit;opacity:.6;cursor:pointer;font-size:18px;padding:0 4px}
@keyframes toast-in{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
@media (max-width:860px){ .toasts{bottom:78px} }
.navcount{margin-left:auto;font-size:11px;font-weight:600;background:var(--accent);color:var(--accent-ink);border-radius:999px;min-width:18px;height:18px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center}
.rail a.nav{justify-content:flex-start}
.drafts-head{display:flex;align-items:baseline;justify-content:space-between;padding:0 4px}
.post.fed.compact{padding:10px 14px;gap:10px;cursor:pointer;align-items:center}
.post.fed.compact .avatar{width:30px;height:30px;font-size:11px}
.post.fed.compact .post-body{gap:6px}
.post.fed.compact .post-head b{font-size:14px}
.post.fed.compact.open{align-items:flex-start;padding:14px}
.fed-more{display:flex;flex-direction:column;gap:8px;padding-top:4px}

.warn,.small.warn,.f.warn{color:var(--accent) !important;font-weight:600;opacity:1 !important}

.attach-btn.mic.on{color:var(--accent);border-color:var(--accent-line);background:var(--accent-tint)}
.attach-btn.mic.on svg{animation:pop-dot 1s ease-in-out infinite}
.attach-btn.mic.off{opacity:.45}

/* phones: the compose bar wraps into two rows, attach icons first, then chip and Feed it; the scope row wraps cleanly */
@media (max-width: 860px){
  .composer-bar{flex-wrap:wrap;row-gap:8px}
  #cvoice{min-height:64px}
  .attach{flex:1 1 100%;flex-direction:row;justify-content:flex-start}
  .attach-btn span{display:none}
  .dot-chip-wrap{margin-left:auto}
  .dot-chip{max-width:150px}
  .scopes{flex-wrap:wrap;row-gap:6px}
  .pen.flat .pen-hero b{white-space:normal;max-height:2.4em}
  .bar{grid-template-columns:minmax(96px,44%) 1fr auto}
}
