@font-face { font-family: "Inter"; src: url(/static/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "STIX Two Text"; src: url(/static/fonts/stix-two-text.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "STIX Two Text"; src: url(/static/fonts/stix-two-text-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/static/fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #f6f4ef; --bg-header: #fbfaf7; --card: #ffffff;
  --border: #e6e1d6; --divider: #f0ece4; --border-strong: #d6d0c4;
  --text: #1a1a1a; --text-strong: #17151f; --text-2: #3d3a35; --text-3: #5f5b53; --text-muted: #6b665c;
  --ink: #16161a; --on-ink: #ffffff; /* the only brand color */
  --error: #b42318; --success: #17663a;
  --code-bg: #1f1d2b; --code-head: #a9a6b8; --code-rule: #2e2b3e; --code-text: #e8e6f0;
  --code-fn: #7fd1e6; --code-str: #8fd6a8; --code-num: #ffb38a;
  --act-0: #ebedf0; --act-1: #9be9a8; --act-2: #40c463; --act-3: #30a14e; --act-4: #216e39;
  --r-card: 16px; --r-code: 12px; --r-btn: 9px; --r-chip: 8px; --r-input: 10px;
  --sans: "Inter", system-ui, sans-serif;
  --serif: "STIX Two Text", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); }
a { color: var(--text); text-underline-offset: 2px; }
:where(a:hover) { color: var(--text-3); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--card); padding: 8px 12px; border-radius: var(--r-btn); z-index: 10; }
.skip:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-input);
  border: 1px solid var(--border-strong); background: var(--card); color: var(--text); font: 600 14px var(--sans); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* top bar */
.topbar { background: var(--bg-header); border-bottom: 1px solid var(--border); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; min-height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-strong); }
.wordmark { font-size: 24px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--text-strong); }
.kj { overflow: visible; }
.kj-lid, .kj-cookie { transform-box: view-box; transition: transform 220ms cubic-bezier(.4,0,.2,1); }
.kj-lid { transform-origin: 24px 17px; }
.kj-cookie { transform-origin: 50px 60px; }
.brand:hover .kj-lid { transform: translateY(-4px) rotate(-10deg); transition: transform 320ms cubic-bezier(.34,1.56,.64,1); }
.brand:hover .kj-cookie { transform: translateY(-4px) rotate(-22deg); transition: transform 380ms cubic-bezier(.34,1.56,.64,1) 40ms; }
@media (prefers-reduced-motion: reduce) { .kj-lid, .kj-cookie { transition: none; transform: none !important; } }
.nav { display: flex; gap: 22px; align-self: stretch; }
.nav a { display: flex; align-items: center; text-decoration: none; color: var(--text-muted); font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--ink); }
.search { flex: 1 1 200px; min-width: 160px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: var(--r-input); background: var(--divider); color: var(--text-3); }
.search input { border: 0; background: transparent; font: 400 14px var(--sans); flex: 1; min-width: 0; color: var(--text); }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; text-decoration: none; flex: none; }

/* author colors: avatar bg/fg and solid dot */
.c-violet { --a-solid: #6d5bd0; --a-bg: #efecfb; --a-fg: #4b3bb0; }
.c-teal   { --a-solid: #0e8a7e; --a-bg: #e2f4f1; --a-fg: #0a5f57; }
.c-orange { --a-solid: #e0662d; --a-bg: #fcebe1; --a-fg: #9a3f14; }
.c-blue   { --a-solid: #3b6fd4; --a-bg: #e6eefb; --a-fg: #234ea0; }
.avatar[class*="c-"] { background: var(--a-bg); color: var(--a-fg); }

/* page */
main { max-width: 1120px; margin: 0 auto; padding: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px 20px; }
.section-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.muted { color: var(--text-muted); font-size: 14px; }

/* mobile */
.m-header, .tabbar { display: none; }
@media (max-width: 760px) {
  .topbar { display: none; }
  main { padding: 16px 16px 100px; }
  .m-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px;
    background: var(--bg-header); border-bottom: 1px solid var(--border); }
  .m-header .wordmark { font-size: 22px; }
  .icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); border-radius: var(--r-btn); }
  .tabbar { display: flex; position: fixed; inset: auto 0 0 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--bg-header); border-top: 1px solid var(--border); align-items: center; justify-content: space-around; z-index: 5; }
  .tabbar a { min-width: 60px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; color: var(--text-muted); font-size: 11px; font-weight: 600; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar .tab-write { min-width: 48px; width: 48px; height: 48px; border-radius: 16px; background: var(--ink); color: var(--on-ink); }
  .tabbar .avatar { width: 24px; height: 24px; font-size: 9px; }
}

/* forms */
h1 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
label, legend { font-size: 14px; font-weight: 600; }
.input { height: 48px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 12px; font: 400 16px var(--sans); color: var(--text-strong); background: var(--card); width: 100%; }
.input[aria-invalid="true"], .input-wrap:has([aria-invalid="true"]) { border-color: var(--error); }
.hint { margin: 0; font-size: 13px; color: var(--text-muted); }
.form-error { margin: 0; font-size: 13px; color: var(--error); font-weight: 500; }
.success { display: block; margin-top: 10px; font-size: 13px; color: #17663a; }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--text-3); font: 500 14px var(--sans); text-decoration: underline; cursor: pointer; }

/* auth pages (sign-in, check inbox, welcome, invite) */
.auth { min-height: 100vh; max-width: none; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 56px 24px; color: var(--text-strong); }
.auth .wordmark { font-size: 23px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.auth-card.wide { max-width: 520px; }
.auth-card.center { align-items: center; text-align: center; gap: 18px; }
.auth-card .full { width: 100%; }
.auth-head { display: flex; flex-direction: column; gap: 6px; }
.auth-head p, .auth-card.center > p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-3); }
.auth-card a:not(.btn-auth) { font-size: 14px; font-weight: 600; text-underline-offset: 2px; }
.btn-auth { height: 48px; width: 100%; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer; }
.btn-github { background: var(--text-strong); color: #fff; }
.btn-auth.btn-primary { background: var(--ink); color: var(--on-ink); margin-top: 4px; }
.btn-secondary { background: var(--card); color: var(--text-strong); border: 1px solid #c9c2b5; }
.btn-auth:disabled { background: var(--bg); color: var(--text-3); border: 1px solid var(--border); cursor: default; }
.or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }
.or span { flex: 1; height: 1px; background: var(--border); }
.note-box { width: 100%; max-width: 420px; padding: 16px 20px; border: 1px dashed var(--border-strong); border-radius: 14px; display: flex; gap: 12px; align-items: flex-start; }
.note-box span { font-size: 20px; line-height: 1.2; }
.note-box p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.icon-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--divider); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.auth-help { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.auth-help p { margin: 0; }
.auth-help strong { color: var(--text-2); font-weight: 600; }
@media (max-width: 760px) { .auth { padding: 32px 16px; } .auth-card { padding: 24px; } }
.c-pink   { --a-solid: #c2417a; --a-bg: #fae6ef; --a-fg: #8c2b59; }
.c-green  { --a-solid: #3f7d20; --a-bg: #e8f3e0; --a-fg: #2d5a17; }

/* welcome */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.auth-card.welcome { max-width: 460px; gap: 22px; }
.preview { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--bg); }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }
.preview-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; color: var(--text-3); }
.preview-who strong { font-size: 16px; font-weight: 600; color: var(--text-strong); }
.preview-tag { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.input-wrap { display: flex; align-items: center; }
.input-wrap span { color: var(--text-muted); }
.input-wrap input { flex: 1; min-width: 0; height: 44px; border: 0; padding: 0 0 0 1px; font: 400 16px var(--sans); color: var(--text-strong); background: transparent; }
.input-wrap input:focus { outline: none; }
.input-wrap:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.colors { border: 0; padding: 0; }
.colors legend { padding: 0; margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; padding: 3px; cursor: pointer; }
.swatch::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--a-solid); }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch:has(input:checked) { border-color: var(--text-strong); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.auth-foot { margin: 0; max-width: 460px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--text-3); }

/* invite */
.avatar-xl { width: 64px; height: 64px; font-size: 22px; }
.invite-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.invite-learning { margin: 0; font-size: 14px; color: var(--text-3); }
.invite-learning a { color: var(--text-strong); font-weight: 600; text-underline-offset: 2px; }
.invite-note { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--bg); }
.invite-note blockquote { margin: 0; font: italic 17px/1.55 var(--serif); color: var(--text-strong); }
.invite-note figcaption { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.auth-card h2 { margin: 0; font-size: 15px; font-weight: 700; }
.invite-perks { display: flex; flex-direction: column; gap: 12px; }
.invite-perks ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.invite-perks li { display: flex; gap: 12px; align-items: flex-start; }
.perk-icon { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--divider); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.perk-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.perk-text strong { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.invite-rules { border-top: 1px solid var(--divider); padding-top: 16px; }
.invite-rules summary { font-size: 15px; font-weight: 600; cursor: pointer; }
.invite-rules ol { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.invite-act { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--divider); padding-top: 20px; }
.signed-in-as { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-3); }
.signed-in-as strong { font-weight: 600; color: var(--text-strong); }
.center-text { text-align: center; }
.quiet-link { font-size: 14px; color: var(--text-3); text-underline-offset: 2px; }
.icon-circle.neutral { background: var(--divider); font-size: 28px; }
.auth-card.center .btn-auth + .btn-auth { margin-top: -8px; }
.oauth { display: flex; flex-direction: column; gap: 12px; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }

/* post content (rendered chunks) */
.prose { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .code, .prose .math.display { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose strong { font-weight: 650; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; position: relative; z-index: 1; }
.prose :not(pre) > code { font: 13.5px var(--mono); background: var(--divider); color: var(--text); border-radius: 5px; padding: 1px 6px; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.prose blockquote { border-left: 3px solid var(--border-strong); padding-left: 14px; font: italic 16px/1.6 var(--serif); color: var(--text-2); }
.prose blockquote .source { font: 400 13px var(--sans); color: var(--text-muted); }
.prose .math.display { display: block; padding: 14px 16px; border-radius: var(--r-code); background: var(--bg-header); border: 1px solid var(--divider);
  font: italic 20px var(--serif); text-align: center; overflow-x: auto; }
.prose .math.inline { font-family: var(--serif); }
.code { position: relative; border-radius: var(--r-code); background: var(--code-bg); overflow: hidden; }
.code::before { content: attr(data-lang); display: block; min-height: 33px; padding: 8px 14px; font: 500 12px var(--sans); color: var(--code-head); border-bottom: 1px solid var(--code-rule); }
.code pre { margin: 0; padding: 12px 14px 14px; font: 13px/1.65 var(--mono); color: var(--code-text); overflow-x: auto; background: none !important; }
.code .copy { position: absolute; top: 4px; right: 8px; z-index: 1; height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--code-head); font: 500 12px var(--sans); cursor: pointer; }
.code .copy:hover { color: var(--code-text); }
.chroma .k, .chroma .kd, .chroma .kn, .chroma .kr, .chroma .kt, .chroma .kc, .chroma .ow { color: #c9b8ff; }
.chroma .nf, .chroma .fm, .chroma .nb, .chroma .bp, .chroma .nc { color: var(--code-fn); }
.chroma .s, .chroma .s1, .chroma .s2, .chroma .sb, .chroma .sd, .chroma .se, .chroma .sh, .chroma .si, .chroma .sx, .chroma .sr, .chroma .sc { color: var(--code-str); }
.chroma .m, .chroma .mi, .chroma .mf, .chroma .mh, .chroma .mo, .chroma .il { color: var(--code-num); }
.chroma .c, .chroma .c1, .chroma .cm, .chroma .cs, .chroma .ch, .chroma .cp { color: var(--code-head); font-style: italic; }

/* post card */
.post-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); }
.card-link { position: absolute; inset: 0; border-radius: var(--r-card); z-index: 0; }
.post-card .above, .post-card button { position: relative; z-index: 1; }
.post-card-body { padding: 16px 20px 14px; display: flex; flex-direction: column; gap: 12px; }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar-sm { width: 34px; height: 34px; font-size: 12px; }
.who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; flex: 1; font-size: 14px; color: var(--text-muted); }
.who a { color: var(--text); font-weight: 600; text-decoration: none; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-chip); background: var(--divider); color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.status { padding: 2px 8px; border-radius: 6px; background: var(--card); border: 1px solid var(--border); color: var(--text-3); font-size: 12px; font-weight: 600; }
.stack-list { display: flex; flex-direction: column; gap: 16px; }
.empty { padding: 28px; text-align: center; color: var(--text-3); border: 1px dashed var(--border-strong); border-radius: var(--r-card); }

/* profile and track pages */
.profile-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin: 8px 0 28px; }
.avatar-profile { width: 96px; height: 96px; border-radius: 28px; font-size: 34px; font-weight: 700; }
.avatar-solid[class*="c-"], .avatar-profile[class*="c-"] { background: var(--a-solid); color: #fff; }
.profile-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.profile-info h1 { font-size: 34px; }
@media (max-width: 760px) {
  /* mobile design: avatar beside the name, full-width follow button */
  .profile-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2px 14px; }
  .profile-head .avatar-profile { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; grid-row: span 2; }
  .profile-info { display: contents; }
  .profile-info h1 { font-size: 26px; grid-column: 2; align-self: end; }
  .profile-info > .muted { grid-column: 2; align-self: start; }
  .profile-info .bio { margin-top: 12px; }
  .profile-facts { margin-bottom: 12px; }
  .profile-info .bio, .profile-facts, .profile-head > .follow-picker, .profile-head > .btn, .profile-head > .me-actions { grid-column: 1 / -1; }
  .profile-head > .follow-picker summary, .profile-head > .btn { width: 100%; justify-content: center; }
}
.bio { margin: 0; max-width: 560px; }

/* Your standing: own profile only */
.standing { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -8px 0 28px; padding: 8px 8px 8px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.standing-label { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.standing-chips { list-style: none; margin: 0; padding: 0; flex: 1 1 0; display: flex; flex-wrap: wrap; gap: 6px; }
.standing-chips li { display: flex; }
.st-chip { flex: 1; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px;
  background: var(--bg); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.st-full { background: #e3f4e8; color: var(--success); }
.st-locked { color: var(--text-muted); }
a.st-link { border: 1px solid var(--border); background: var(--card); color: var(--ink); }
a.st-link:hover { border-color: var(--border-strong); color: var(--ink); }
.st-dim { font-weight: 500; color: var(--text-3); }
.st-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.st-bars span { width: 3px; border-radius: 1px; background: var(--border-strong); }
.st-bars span.on { background: var(--ink); }
.st-steps { display: inline-flex; gap: 3px; margin-left: 2px; }
.st-steps span { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.st-steps span.on { background: var(--ink); }
.st-help { width: 32px; height: 32px; flex: none; margin-left: auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
@media (max-width: 760px) {
  /* mobile design: label and help on top, chips in a 2×2 grid below */
  .standing { margin: -16px 0 12px; }
  .standing-chips { order: 3; flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; }
}
.profile-facts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--text-3); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 22px; }
.small { font-size: 12px; }
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.track-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.track-card-body { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.track-card-body .track-actions { margin-top: auto; }
.track-card-meta { display: inline-flex; align-items: center; gap: 6px; }
.track-card .status { border: 0; }
.track-rss { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); }
.track-rss:hover { background: var(--divider); color: var(--text); }
.track-card-head { padding: 18px 18px 14px; background: var(--bg-header); border-bottom: 1px solid var(--divider); display: flex; flex-direction: column; gap: 8px; }
.track-card-top { display: flex; justify-content: flex-end; align-items: center; }
.track-title { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--text); text-decoration: none; }
.track-title:hover { text-decoration: underline; }
.track-latest { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.track-latest span { color: var(--text); }
.track-page { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.track-head { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 16px 24px; }
.track-head h1 { margin-top: 4px; font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); }
.track-desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-3); }
.track-top { display: flex; align-items: center; gap: 8px; min-height: 32px; flex-wrap: wrap; }
.track-top-gap { flex: 1; }
.track-owner { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); text-decoration: none; }
.track-owner .avatar { width: 22px; height: 22px; font-size: 10px; }
.saved-note { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); }
.status-now, .status-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 8px; font: 500 13px var(--sans); color: var(--text-2); }
.status-icon { color: var(--text-muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2da44e; box-shadow: 0 0 0 3px #dcf3e3; flex: none; }
.status-menu { position: relative; }
.status-btn { border-radius: 8px; cursor: pointer; list-style: none; }
.status-btn::-webkit-details-marker { display: none; }
.status-btn > svg:last-child { color: var(--text-muted); }
.status-btn:hover, .icon-ghost:hover, .new-post:hover { background: var(--divider); }
.status-options { position: absolute; top: 36px; right: 0; z-index: 5; width: 260px; padding: 6px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(22,22,26,.10); display: flex; flex-direction: column; gap: 2px; }
.sheet-backdrop, .sheet-grip, .sheet-title { display: none; }
.status-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; font-family: var(--sans); }
.status-opt:hover { background: var(--bg); }
.status-opt-icon { width: 16px; display: flex; justify-content: center; flex: none; }
.status-opt-text { flex: 1; display: flex; flex-direction: column; }
.status-opt-text strong { font-size: 14px; font-weight: 600; color: var(--text); }
.status-opt-text span { font-size: 12px; color: var(--text-muted); }
.status-check, .status-opt .status-icon[viewBox] { color: var(--ink); }
.status-opt[aria-pressed="false"] .status-icon { color: var(--text-muted); }
.icon-ghost { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.icon-ghost.rss { color: #e0662d; }
.new-post { align-self: flex-start; margin: 4px 0 0 -8px; height: 32px; padding: 0 10px 0 8px; border-radius: 8px; color: var(--text-2);
  font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.track-follow { margin-top: 4px; }
@media (max-width: 760px) {
  .track-head { padding: 14px 16px; }
  .track-head h1 { font-size: 26px; margin-top: 0; }
  .track-owner { font-size: 13px; min-width: 0; white-space: nowrap; }
  .saved-note { order: 9; flex-basis: 100%; justify-content: flex-end; }
  .status-btn, .icon-ghost { height: 44px; }
  .icon-ghost { width: 44px; }
  .new-post { height: 44px; }
  /* status picker becomes a bottom sheet */
  .status-menu[open] .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(26,26,26,.38); }
  .status-options { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 31; width: auto; border: 0; border-radius: 22px 22px 0 0;
    padding: 10px 12px calc(32px + env(safe-area-inset-bottom)); gap: 4px; box-shadow: none; }
  .sheet-grip { display: block; align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin-bottom: 8px; }
  .sheet-title { display: block; padding: 0 8px 6px; font-size: 19px; }
  .status-opt { min-height: 60px; padding: 8px; gap: 12px; border-radius: 10px; }
  .status-opt[aria-pressed="true"] { background: var(--bg); }
  .status-opt-text strong { font-size: 15px; }
  .status-opt-text span { font-size: 13px; }
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.form-card { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.form-card p { margin: 0; }

/* composer */
.composer { max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 8px 32px rgba(0,0,0,.06); }
.composer-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--divider); }
.icon-round { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text); }
.tabs { display: flex; gap: 4px; background: var(--divider); border-radius: 999px; padding: 3px; }
.tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 500 13px var(--sans); color: var(--text); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn-pill { height: 38px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 600 14px var(--sans); cursor: pointer; }
.btn-pill:disabled { background: var(--border); color: var(--text-3); cursor: default; }
.composer-track { padding: 16px 20px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.composer-track label { font-weight: 400; font-size: 13px; }
.composer-track select { height: 34px; border: 0; border-radius: var(--r-chip); padding: 0 32px 0 10px; font: 600 14px var(--sans); color: var(--text); background: var(--divider) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f5b53' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; max-width: 100%; cursor: pointer; }
.composer-error { padding: 12px 20px 0; }
.composer-chunks { padding: 18px 20px 8px; }
.composer-preview { padding: 0 20px 8px; }
.chunk { display: flex; gap: 12px; }
.composer.js .chunk:not(.active) { opacity: .55; }
.composer.js .chunk:not(.active) .toolbar { display: none; }
.composer:not(.js) .toolbar { display: none; }
.chunk-rail { display: flex; flex-direction: column; align-items: center; width: 20px; flex: none; padding-top: 12px; }
.chunk-rail::before { content: counter(chunk); font-size: 12px; font-weight: 600; line-height: 1; color: var(--text-muted); }
.composer-chunks:not(:has(.chunk + .chunk)) .chunk-rail { display: none; }
.thread-line { flex: 1; width: 2px; background: #e2ddd3; margin-top: 6px; min-height: 16px; }
.chunk-main { flex: 1; min-width: 0; padding-bottom: 16px; display: flex; flex-direction: column; }
.chunk textarea { field-sizing: content; min-height: 6lh; border: 0; resize: vertical; padding: 8px 0; font: 400 16px/1.5 var(--sans); color: var(--text); background: transparent; }
.chunk textarea:focus { outline: none; }
.chunk:focus-within textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.chunk-tools { display: flex; align-items: center; gap: 2px; padding-top: 8px; border-top: 1px solid var(--divider); margin-top: 4px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
/* toolbar tooltips from aria-label (desktop hover/keyboard focus; the toolbar scrolls on phones) */
.toolbar .tool { position: relative; }
.toolbar .tool::after { content: attr(aria-label); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 4px); padding: 4px 8px; border-radius: 6px;
  background: var(--text-strong); color: #fff; font: 500 12px/1.3 var(--sans); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s; z-index: 5; }
.toolbar .tool:hover::after, .toolbar .tool:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .25s; }
.tool { min-width: 32px; height: 32px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; font: 500 14px var(--sans); color: var(--text-3); }
.tool:hover { background: var(--divider); }
.tool:disabled { opacity: .35; cursor: default; }
.tb-bold { font-weight: 700; } .tb-italic { font: italic 500 15px Georgia, serif; } .tb-math { font: 500 17px var(--serif); }
.count { margin-left: auto; padding: 0 10px; font-size: 12px; color: var(--text-muted); }
.count::before { content: attr(data-n) " / 1,000"; }
.add-chunk { width: 34px; height: 34px; border: 1px solid var(--border-strong); background: var(--card); border-radius: 50%; cursor: pointer; color: var(--ink); font: 500 20px var(--sans); }
.composer-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--divider); font-size: 12px; color: var(--text-muted); }
.thread-chunk { display: flex; }
.thread-chunk .prose { flex: 1; min-width: 0; }
.composer-me { display: none; }
.composer-chunks { counter-reset: chunk; }
.chunk { counter-increment: chunk; }
/* phones: full-screen writer, avatar up top, one formatting bar pinned to the bottom (above the keyboard via --kb from editor.js) */
@media (max-width: 760px) {
  body:has(.composer) { background: var(--card); }
  body:has(.composer) :is(.m-header, .tabbar) { display: none; }
  main:has(> .composer) { padding: 0 0 calc(110px + env(safe-area-inset-bottom)); }
  .composer { border: 0; border-radius: 0; box-shadow: none; }
  .composer-top { position: sticky; top: 0; z-index: 3; background: var(--card); padding: 10px 12px; }
  .composer-track { padding: 12px 16px 0; }
  .composer-track > label[for="track"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .composer-me { display: inline-flex; width: 32px; height: 32px; font-size: 11px; flex: none; }
  .composer-error { padding: 12px 16px 0; }
  .composer-chunks { padding: 10px 16px 8px; }
  .composer-preview { padding: 0 16px 8px; }
  .chunk { gap: 10px; }
  .chunk textarea { resize: none; }
  .composer-chunks:not(:has(.chunk + .chunk)) textarea { min-height: max(12lh, calc(100dvh - 300px)); font-size: 18px; }
  .tool { min-width: 44px; height: 44px; }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; min-width: 0; }
  .toolbar .tool::after { display: none; }
  .composer.js .chunk:not(.active) .chunk-tools { display: none; }
  .composer.js .chunk.active .chunk-tools { position: fixed; left: 0; right: 0; z-index: 4; bottom: calc(var(--kb, 0px) + 28px + env(safe-area-inset-bottom));
    margin: 0; padding: 6px 8px 0; border-top: 1px solid var(--border); background: var(--bg-header); flex-wrap: nowrap; }
  .composer.js .add-chunk { width: 44px; height: 44px; flex: none; }
  .composer.js .composer-foot { position: fixed; left: 0; right: 0; z-index: 4; bottom: var(--kb, 0px); height: calc(28px + env(safe-area-inset-bottom));
    padding: 2px 16px env(safe-area-inset-bottom); border: 0; background: var(--bg-header); flex-wrap: nowrap; white-space: nowrap; }
  /* iOS Safari floats translucent URL/form bars between this bar and the keyboard; keep them on a solid strip */
  .composer.js .composer-foot::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--kb, 0px); background: var(--bg-header); }
  .composer.js .composer-foot span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .composer.js .composer-foot span + span { flex: none; }
}

/* post page */
.post-layout { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; }
.post-layout > .back { flex: 0 0 100%; }
.post-main { flex: 999 1 560px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.back { font-size: 14px; font-weight: 500; color: var(--text-3); text-decoration: none; }
.thread { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.thread-head { border-bottom: 1px solid var(--divider); padding: 22px 28px; display: flex; flex-direction: column; gap: 14px; }
.thread-track { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.thread-track a { font-size: 15px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.thread-author { display: flex; align-items: center; gap: 12px; }
.thread-author > div { display: flex; flex-direction: column; }
.thread-author a { font-size: 16px; font-weight: 600; color: var(--text); text-decoration: none; }
.thread-author .muted { font-size: 13px; }
.avatar-md { width: 44px; height: 44px; font-size: 15px; }
.thread-body { padding: 8px 28px; }
.thread-chunk { gap: 18px; padding: 20px 0; }
.thread-chunk + .thread-chunk { border-top: 1px solid var(--divider); }
.thread-chunk .prose { font-size: 17px; line-height: 1.65; }
.chunk-num { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--divider); color: var(--text-3);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
/* phones: a thin rail instead of the number box, per the mobile design */
@media (max-width: 760px) {
  .thread-chunk { gap: 12px; padding: 16px 0; }
  .thread-chunk .prose { font-size: 16px; line-height: 1.6; }
  .chunk-num { width: 3px; height: auto; border-radius: 2px; background: var(--border-strong); font-size: 0; }
}
.neighbors { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.neighbors a { flex: 1 1 240px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.neighbors a strong { font-size: 14px; font-weight: 600; }
.neighbors .next { text-align: right; margin-left: auto; }
.post-aside { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.track-side { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.track-side h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.track-side h2 a { color: var(--text); text-decoration: none; }
.track-side p { margin: 0; font-size: 14px; }
.share-preview { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.share-preview img { width: 100%; height: auto; border-radius: var(--r-card); display: block; }
.share-preview p { margin: 0; }
.others-side { margin: 0; font-size: 15px; line-height: 1.5; }
.others-side a { color: var(--text-strong); font-weight: 600; }
@media (max-width: 760px) { .thread-head, .thread-body { padding-left: 18px; padding-right: 18px; } .post-aside { max-width: none; } }
.thread-track .edit-link { font-size: 12px; font-weight: 600; color: var(--text); text-decoration: underline; }

/* following */
.btn-follow { min-width: 132px; justify-content: center; }
.btn-follow.following { background: var(--divider); }
.track-side .btn-follow:not(.following) { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.track-side .status { border: 0; background: var(--divider); color: var(--text-3); }
.track-side .status-active { background: #e3f4e8; color: #17663a; }
.track-actions { display: flex; gap: 10px; align-items: stretch; }
.track-actions form, .track-actions > .btn-follow { flex: 1; display: flex; }
.track-actions form .btn-follow { flex: 1; }
.btn-rss { flex: none; width: 40px; padding: 0; justify-content: center; color: #e0662d; }
.btn-dark { background: var(--text-strong); border-color: var(--text-strong); color: #fff; }
.follow-picker { position: relative; }
.follow-picker summary { list-style: none; }
.follow-picker summary::-webkit-details-marker { display: none; }
.picker { position: absolute; right: 0; top: 48px; z-index: 5; width: 340px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 16px 40px rgba(26,26,26,.14); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.choice > span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.choice strong { font-size: 14px; }
.choice input, .picker-tracks input { accent-color: var(--ink); }
.picker-tracks { border: 0; margin: 0; padding: 0 0 0 8px; display: flex; flex-direction: column; }
.picker-tracks label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; font-weight: 400; cursor: pointer; }
.picker-tracks label span:nth-of-type(1) { flex: 1; }
.picker:has(input[value="all"]:checked) .picker-tracks { opacity: .5; }
.picker-actions { display: flex; gap: 12px; align-items: center; }
.picker-actions .btn-dark { flex: 1; justify-content: center; }
@media (max-width: 760px) { .picker { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; border-radius: 18px 18px 0 0; padding-bottom: 32px; z-index: 20; } }

/* feed */
.feed-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.feed-side { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 6px; }
.feed-side h2 { margin: 0 0 6px; }
.side-track { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; color: var(--text); }
.side-track > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.side-track strong { font-size: 14px; font-weight: 600; }
.side-track:hover { background: var(--card); }
.side-track[aria-current="page"] { background: var(--card); border-color: var(--border); }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--a-solid); }
.dot-all { background: var(--text); }
.manage { margin-top: 4px; padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--text); text-underline-offset: 2px; }
.manage-rules { margin-top: 0; padding-top: 4px; padding-bottom: 4px; color: var(--text-3); }
.prompt { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.prompt p { margin: 0; font-size: 14px; line-height: 1.5; }
.prompt a { color: var(--text); }
.prompt-actions { display: flex; gap: 8px; align-items: center; }
.btn-sm { height: 34px; padding: 0 14px; border-radius: var(--r-btn); font-size: 13px; }
.prompt-compact { display: none; }
.feed-main { flex: 999 1 560px; min-width: 0; max-width: 700px; display: flex; flex-direction: column; gap: 16px; }
.feed-note { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--text-muted); }
.older { align-self: center; }
.suggest { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.suggest li { display: flex; gap: 10px; align-items: center; }
.suggest li > span:last-child { display: flex; flex-direction: column; }
.suggest a { font-weight: 600; color: var(--text); }
.chips-row { display: none; }
@media (max-width: 760px) {
  .feed-side { display: none; }
  .prompt-compact { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; margin: 0; padding: 12px 14px; }
  .prompt-compact p { flex: 1 1 180px; font-size: 13px; }
  .chips-row { display: flex; gap: 8px; padding: 4px 0 12px; margin: -8px -16px 12px; padding-left: 16px; padding-right: 16px; overflow-x: auto; border-bottom: 1px solid var(--border); background: var(--bg-header); }
  .feed-chip { flex: none; min-height: 44px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font: 600 13px var(--sans); border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; }
  .feed-chip[aria-current="page"] { border-color: var(--text); }
  .feed-chip .dot { width: 8px; height: 8px; }
}
.me-actions { display: flex; gap: 12px; align-items: center; }
.following-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.following-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.following-what { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.following-what a { color: var(--text); text-decoration: none; }
.home { margin: 0 auto; }
.intro { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 24px; }
.intro p { margin: 0; }

/* reactions and save */
.card-foot { border-top: 1px solid var(--divider); padding: 10px 16px; }
.thread-foot { border-top: 1px solid var(--divider); padding: 12px 20px; background: #fcfbf8; }
.post-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-actions .spacer { flex: 1; }
.react-bar { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.react { position: relative; }
.react summary { list-style: none; }
.react summary::-webkit-details-marker { display: none; }
.react-btn { height: 36px; min-width: 36px; padding: 0 10px; border: 1.5px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font: 500 13px var(--sans); color: var(--text-3); cursor: pointer; text-decoration: none; }
.react-btn:hover { background: var(--divider); }
.react-btn.picked { width: 38px; height: 38px; padding: 0; font-size: 20px; }
.r-insight { background: #fff3d6; border-color: #e8b93a; } .r-dope { background: #fde6dc; border-color: #e88a5c; }
.r-sweet { background: #f7ecdf; border-color: #c9965f; } .r-curious { background: #efecfb; border-color: #9d8fe6; }
.r-learned { background: #e6eefb; border-color: #7fa2e0; } .r-slop { background: #efede8; border-color: #8a8478; }
.tray { position: absolute; left: 0; bottom: 46px; z-index: 10; display: flex; flex-direction: column; gap: 8px; padding: 8px 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 12px 32px rgba(26,26,26,.16); }
.react[open] .tray { animation: tray-in .16s cubic-bezier(.2,.9,.3,1.2); transform-origin: 18px 100%; }
.react.closing .tray { animation: tray-out .12s ease-in forwards; }
@keyframes tray-in { from { opacity: 0; transform: translateY(6px) scale(.92); } }
@keyframes tray-out { to { opacity: 0; transform: translateY(4px) scale(.95); } }
.tray-opt span[aria-hidden] { transition: transform .12s ease-out; }
.tray-opt:hover span[aria-hidden] { transform: scale(1.18) translateY(-2px); }
.tray-options { display: flex; align-items: flex-end; gap: 2px; }
.tray-opt { width: 64px; padding: 6px 0 4px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 26px; line-height: 1; }
.tray-opt:hover, .tray-opt.on { background: var(--divider); }
.tray-label { font: 600 11px var(--sans); color: var(--text-3); white-space: nowrap; }
.tray-rule { width: 1px; height: 44px; background: #ece8df; margin: 0 4px 6px; }
.slop-reason { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.slop-reason[hidden] { display: none; }
.slop-reason label { font-size: 13px; font-weight: 400; color: var(--text-3); }
.slop-reason input { flex: 1; min-width: 200px; height: 34px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 10px; font: 400 13px var(--sans); }
.stack { display: flex; padding-left: 6px; }
.stack span { width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; background: #fff; border: 2px solid #fcfbf8; box-shadow: 0 0 0 1px var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 14px; }
.summary { font-size: 13px; color: var(--text-3); }
.tool-btn { height: 36px; padding: 0 12px; border: 0; background: transparent; border-radius: var(--r-btn); cursor: pointer; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--sans); text-decoration: none; }
.tool-btn:hover { background: var(--divider); }
/* folded kuki: one line in feeds until opened */
.fold-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); }
.fold-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; font-size: 14px; line-height: 1.45; color: var(--text-3); border-radius: var(--r-card); }
.fold-card > summary::-webkit-details-marker { display: none; }
.fold-card > summary strong { color: var(--text); font-weight: 600; }
.fold-line { flex: 1; min-width: 0; }
.fold-icon { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--divider); color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; }
.fold-toggle { flex: none; height: 34px; padding: 0 12px; border-radius: var(--r-btn); color: var(--text-2); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.fold-card > summary:hover .fold-toggle { background: var(--divider); color: var(--text); }
.fold-card .when-open, .fold-card[open] .when-closed { display: none; }
.fold-card[open] .when-open { display: inline; }
.fold-card[open] .fold-line.when-open { display: block; }
.fold-card[open] > summary { padding: 8px 12px 8px 16px; gap: 10px; font-size: 13px; border-bottom: 1px solid var(--divider); border-radius: var(--r-card) var(--r-card) 0 0; }
.fold-card[open] .fold-icon { width: auto; height: auto; background: none; }
.fold-card[open] .fold-toggle { height: 30px; padding: 0 10px; }
.fold-card[open] .fold-toggle svg { transform: rotate(180deg); }
.fold-card > .post-card, .fold-card > .post-card:hover { border: 0; border-radius: 0 0 var(--r-card) var(--r-card); box-shadow: none; }
.fold-card:hover { border-color: var(--border-strong); }
/* on your own folded kuki */
.folded-pill { margin-left: auto; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 12px; font-weight: 500; color: var(--text-3); }
.fold-box { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.fold-box p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.fold-box-head { display: flex; align-items: center; gap: 12px; }
.fold-box .fold-icon { width: 36px; height: 36px; }
.fold-box h2 { margin: 0; flex: 1; font-size: 18px; font-weight: 650; }
.fold-box h3 { margin: 0; font-size: 12px; }
.fold-private { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.fold-section { display: flex; flex-direction: column; gap: 10px; }
.fold-section > p.small, .fold-box .fold-foot { font-size: 13px; color: var(--text-muted); }
.fold-reasons { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fold-reasons li { padding: 12px 14px; border-radius: 12px; background: var(--bg-header); border: 1px solid var(--divider); display: flex; flex-direction: column; gap: 4px; }
.fold-reasons q { font: italic 16px/1.5 var(--serif); color: var(--text); }
.fold-foot { padding-top: 12px; border-top: 1px solid var(--divider); }
.reopened { padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.reopened p { margin: 0; flex: 1; font-size: 15px; line-height: 1.5; }
.reopened-icon { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #e3f4e8; color: var(--success); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .fold-card { border-radius: 14px; }
  .fold-card > summary { padding: 6px 4px 6px 14px; gap: 10px; font-size: 13px; line-height: 1.4; }
  .fold-card > summary strong { display: block; }
  .fold-card .fold-icon { width: 28px; height: 28px; }
  .fold-card .fold-icon svg { width: 14px; height: 14px; }
  .fold-toggle, .fold-card[open] .fold-toggle { height: 44px; }
  .fold-card[open] > summary { padding: 0 4px 0 14px; font-size: 12px; }
  .fold-card[open] .fold-icon { display: none; }
  .fold-box { padding: 16px; gap: 14px; }
  .fold-box h2 { font-size: 16px; }
  .fold-box p { font-size: 14px; }
  .fold-reasons li { padding: 10px 12px; }
  .fold-reasons q { font-size: 15px; }
  .fold-edit { width: 100%; height: 48px; justify-content: center; }
}
.folded-note { margin: 0; padding: 10px 28px; font-size: 13px; color: var(--text-muted); background: var(--bg-header); border-bottom: 1px solid var(--divider); }
@media (max-width: 760px) {
  .tray-opt { width: 46px; min-height: 44px; } .tray-label { display: none; }
  .tool-btn, .react-btn { min-height: 44px; }
}
.count.over { color: var(--error); font-weight: 600; }

/* hover feedback: show what is clickable */
.post-card, .neighbors a, .track-card, .btn, .btn-pill, .chip, .feed-chip, .side-track, .tool, .tool-btn, .react-btn, .tray-opt, .tabs button, .nav a, select {
  transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s; }
.post-card:hover, .neighbors a:hover, .track-card:hover { border-color: var(--border-strong); box-shadow: 0 4px 16px rgba(26,26,26,.07); }
/* over a chip, link or the footer the card itself is not the target */
.post-card:has(.above:hover) { border-color: var(--border); box-shadow: none; }
.chip:hover { background: var(--border); color: var(--text); }
.btn:hover { border-color: var(--text-3); background: var(--bg-header); }
.btn-primary:hover, .btn-pill:not(:disabled):hover { background: #2f2c3a; border-color: #2f2c3a; color: var(--on-ink); }
.btn-dark:hover { background: #2f2c3a; border-color: #2f2c3a; }
.btn-follow.following:hover { background: var(--border); }
.feed-chip:hover { border-color: var(--border-strong); background: var(--bg-header); }
.tabs button:not([aria-selected="true"]):hover { background: rgba(255,255,255,.6); }
.nav a:hover { color: var(--text); }
.who a:hover, .thread-author a:hover, .thread-track a:hover, .back:hover, .track-side h2 a:hover { text-decoration: underline; }
.composer-track select:hover { background-color: var(--border); }

/* explore, topic pages and search */
.explore { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.explore-head { display: flex; flex-direction: column; gap: 6px; }
.explore-head p { margin: 0; }
.page-search { display: none; flex: none; margin-top: 8px; }
.tabs { align-self: flex-start; flex-wrap: wrap; border-radius: 20px; }
.tabs a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font: 500 13px var(--sans); color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tabs a:not([aria-current="page"]):hover { background: rgba(255,255,255,.6); }
.explore-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.explore-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px 20px; }
.avatar-tile[class*="c-"] { width: 48px; height: 48px; border-radius: 14px; font-size: 15px; font-weight: 700; flex: none; background: var(--a-solid); color: #fff; }
.explore-main { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.explore-head-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.explore-title { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--text); text-decoration: none; }
.explore-title:hover { text-decoration: underline; }
.explore-by { font-size: 14px; color: var(--text-3); text-decoration: none; }
.explore-latest { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.explore-latest span { color: var(--text); }
.explore-social { font-size: 13px; font-weight: 500; color: var(--text-2); }
.explore-stats { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; flex: none; font-size: 12px; color: var(--text-muted); }
.explore section { display: flex; flex-direction: column; gap: 10px; }
.explore section .suggest { margin: 0; }
.strip { display: inline-flex; gap: 3px; }
.strip span { width: 12px; height: 12px; border-radius: 3px; background: var(--act-0); }
.strip span.on { background: var(--act-2); }
@media (max-width: 760px) {
  .page-search { display: flex; }
  /* phone rows from the mobile design: tile | title, by, strip | follow button; no Latest line */
  .explore-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; padding: 14px 16px; }
  .avatar-tile[class*="c-"] { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; grid-row: span 2; }
  .explore-main { gap: 2px; }
  .explore-head-line { flex-direction: column; gap: 0; }
  .explore-title { font-size: 16px; }
  .explore-by { font-size: 13px; }
  .explore-latest { display: none; }
  .explore-stats { grid-column: 2 / 4; grid-row: 2; flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; }
  .explore-row > form, .explore-row > .btn { grid-column: 3; grid-row: 1; }
  .explore-row .btn-follow { min-width: 0; height: 36px; padding: 0 12px; }
}

/* search results */
.explore.results { max-width: 880px; gap: 20px; }
.results-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.results .profile-tabs { margin-bottom: 0; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; }
.results-head a { font-size: 14px; font-weight: 500; }
.results mark { background: #f6e3b4; color: inherit; font-weight: 600; border-radius: 3px; padding: 0 1px; }
.results-card { gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.results-card .explore-row { border: 0; border-radius: 0; padding: 16px 20px; gap: 16px; }
.results-card .explore-row + .explore-row { border-top: 1px solid var(--divider); }
.results-card .explore-row:hover { background: var(--bg-header); }
.results-card .explore-title { font-size: 17px; }
.results-card .explore-head-line .muted { font-size: 13px; }
.topic-results { display: flex; gap: 10px; flex-wrap: wrap; }
.topic-result { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; line-height: 1.35; }
.topic-result > span:last-child { display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--text-muted); }
.topic-result strong { font-size: 15px; font-weight: 600; color: var(--text); }
.topic-hash { width: 32px; height: 32px; border-radius: 9px; background: var(--divider); color: var(--text-2); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.people-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.person-result { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); }
.person-result .avatar { width: 40px; height: 40px; flex: none; font-size: 14px; }
.person-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.45; }
.person-text strong { font-size: 15px; font-weight: 600; }
.person-text strong .muted { font-size: 15px; font-weight: 400; }
.person-text > .muted { font-size: 13px; }
.person-bio { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-result:hover, .person-result:hover { border-color: var(--border-strong); }
.results-empty { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 32px 28px; }
.results-empty h2 { margin: 0; font-size: 18px; font-weight: 700; }
.results-empty p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.results-empty .chips { padding-top: 6px; }
.results-empty > a:last-child { padding-top: 4px; font-size: 14px; font-weight: 500; }
.pill { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--card); font-size: 14px; font-weight: 500; text-decoration: none; }
.results-bar { display: contents; }
.kuki-result { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.kuki-result:hover { border-color: var(--border-strong); }
.kuki-result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.kuki-result-head .avatar { width: 28px; height: 28px; font-size: 11px; }
.kuki-result-head strong { font-weight: 600; }
.kuki-result-head .muted { font-size: 13px; }
.kuki-result-head .chip { margin-left: auto; font-size: 12px; }
.kuki-result p { margin: 0; font-size: 15px; line-height: 1.6; }
.kuki-chunk { font-size: 13px; color: var(--text-3); }
.kuki-result .card-link { position: absolute; inset: 0; border-radius: var(--r-card); }
/* phone, from the mobile design: search bar + Cancel and the tabs form the header; cards stack */
@media (max-width: 760px) {
  body:has(.results) .m-header { display: none; }
  .explore.results { gap: 18px; }
  .results-bar { display: flex; align-items: center; gap: 4px; margin: -16px -16px 0; padding: 10px 8px 0 12px; background: var(--bg-header); }
  .results-bar .page-search { flex: 1; margin: 0; height: 44px; }
  .results-bar .page-search input { font-size: 16px; }
  .results-bar > a { height: 44px; padding: 0 8px; display: flex; align-items: center; font-size: 15px; font-weight: 500; text-decoration: none; }
  .results-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .results .profile-tabs { margin: -18px -16px 0; padding: 4px 16px 0; background: var(--bg-header); }
  .results .profile-tabs-links { gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .results .profile-tabs-links a { flex: none; }
  .results .profile-tabs > .muted { display: none; }
  .results section { gap: 8px; }
  .results .results-head { margin: 0 4px; }
  .results .results-head .section-label { font-size: 12px; }
  .results .results-head a { display: none; }
  .topic-results { flex-direction: column; }
  .topic-result { min-height: 56px; box-sizing: border-box; padding: 8px 14px; }
  .topic-hash { width: 30px; height: 30px; }
  .results-card { gap: 8px; background: none; border: 0; border-radius: 0; overflow: visible; }
  .results-card .explore-row, .results-card .explore-row + .explore-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; position: relative; }
  .results-card .explore-row:hover { background: var(--card); }
  .results-card .avatar-tile[class*="c-"] { position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
  .results-card .explore-main { flex: none; padding-left: 42px; gap: 8px; }
  .results-card .explore-title { font-size: 16px; }
  .track-meta { font-size: 13px; color: var(--text-3); }
  .results-card .topics { margin-left: -42px; flex-wrap: wrap; }
  .results-card .explore-row > form, .results-card .explore-row > .btn { width: 100%; }
  .results-card .explore-row .btn-follow { width: 100%; height: 44px; justify-content: center; font-size: 14px; }
  .people-results { grid-template-columns: 1fr; gap: 8px; }
  .person-result { gap: 10px; padding: 12px 14px; }
  .person-result .avatar { width: 36px; height: 36px; font-size: 13px; }
  .kuki-result { padding: 12px 14px; gap: 6px; border-radius: 14px; }
  .kuki-result-meta { font-size: 13px; color: var(--text-muted); }
  .kuki-result-meta strong { color: var(--text); font-weight: 600; }
  .kuki-result p { line-height: 1.55; }
  .kuki-chunk { font-size: 12px; }
  .results-empty { padding: 22px 18px; }
  .results-empty h2 { font-size: 17px; }
  .results-empty p { font-size: 14px; }
  .results-empty .pill { min-height: 44px; border-radius: 22px; }
}

/* own profile: tracks and saved tabs */
.profile-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.profile-tabs-links { display: flex; gap: 24px; }
.profile-tabs-links a { height: 44px; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.profile-tabs-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--ink); }
.profile-tabs .btn-sm, .profile-tabs > .muted { margin-bottom: 8px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.saved-list { max-width: 720px; }
.empty strong { color: var(--text); }
.empty p { margin: 4px 0 0; font-size: 14px; }
.strip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar .avatar[aria-current="page"] { box-shadow: 0 0 0 2px var(--bg-header), 0 0 0 4px var(--ink); }

/* edit profile */
.settings { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.settings-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.settings-head p { margin: 6px 0 0; }
.settings-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); }
.settings-body { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input-wrap.locked { gap: 8px; background: var(--bg); border-color: var(--border); color: var(--text-muted); }
.input-wrap.locked input { color: var(--text-2); }
.settings-preview { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--r-card); }
.settings-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--divider); }
.settings-foot .success { margin: 0; font-size: 14px; }
.settings-signout { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.btn-outline { border-color: var(--text-strong); color: var(--text-strong); background: var(--card); text-decoration: none; }

/* profile photos */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.settings-photo { padding: 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--divider); }
.settings-photo-main { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.settings-photo h2 { margin: 0; font-size: 15px; font-weight: 600; }
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.upl { cursor: pointer; }
.upl:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn:disabled, .btn[disabled] { background: var(--border); border-color: var(--border); color: var(--text-3); cursor: default; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-2); }
.settings-actions { display: flex; gap: 8px; margin-left: auto; }
.remove-photo { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px; font-size: 14px; font-weight: 500; color: var(--text-3); cursor: pointer; }
.remove-photo input { accent-color: var(--ink); }
.swatches { align-items: center; }
.color-name { margin-left: 4px; font-size: 14px; color: var(--text-2); }
@media (max-width: 760px) { .settings-preview-field { display: none; } }
.saved-foot { display: flex; align-items: center; gap: 12px; padding: 10px 20px 14px; border-top: 1px solid var(--divider); }
.saved-foot form { margin-left: auto; }
.saved-btn { background: var(--divider); }
.removed-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border: 1px dashed var(--border-strong); border-radius: var(--r-card); background: var(--card); font-size: 14px; color: var(--text-3); }
.removed-row .link-btn { margin-left: auto; color: var(--text); font-weight: 600; }
.explore-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topic-title { display: flex; align-items: baseline; gap: 10px; font-size: 22px; }
.shuffle { margin-left: 8px; color: var(--text); font-weight: 600; }

/* share menu and toast */
.share { position: relative; }
.share > summary { list-style: none; cursor: pointer; }
.share > summary::-webkit-details-marker { display: none; }
.share-primary { background: var(--ink); color: var(--on-ink); font-weight: 600; padding: 0 14px; }
.share-primary:hover { background: #2f2c3a; color: var(--on-ink); }
.share-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 10; width: 220px; padding: 6px; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(26,26,26,.12); }
.share-opt { min-height: 40px; padding: 0 12px; display: flex; align-items: center; border: 0; border-radius: 8px; background: transparent;
  font: 500 14px var(--sans); color: var(--text); text-decoration: none; text-align: left; cursor: pointer; }
.share-opt:hover { background: var(--bg); color: var(--text); }
.share-opt[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 10px;
  background: var(--ink); color: var(--on-ink); font: 500 14px var(--sans); box-shadow: 0 8px 24px rgba(26,26,26,.2); }
@media (max-width: 760px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom)); } .share-opt { min-height: 44px; } }

/* Invite someone */
.inv-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.inv-head h1 { margin: 0; }
.inv-back { display: inline-flex; align-items: center; gap: 4px; }
.inv-left { margin: -12px 0 0; }
.inv-name { color: inherit; text-decoration: none; }
.inv-name:hover { text-decoration: underline; }
.inv-new { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.inv-new h2 { margin: 0; font-size: 17px; }
.inv-form, .inv-made { display: flex; flex-direction: column; gap: 18px; }
.inv-made { gap: 12px; }
.ok-text { font-size: 14px; color: #17663a; }
.inv-submit, .inv-links { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.inv-links a { color: var(--text-strong); }
.inv-link { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-link .input { flex: 1 1 280px; min-width: 0; background: var(--bg); font: 400 14px var(--mono, ui-monospace, monospace); }
.inv-link .btn { height: 48px; min-width: 120px; justify-content: center; }
.inv-none { text-align: left; }
.inv-list { list-style: none; margin: 10px 0 0; padding: 0; }
.inv-list li { display: flex; align-items: center; gap: 14px; padding: 14px 20px; flex-wrap: wrap; }
.inv-list li + li { border-top: 1px solid var(--divider); }
.inv-blank { background: var(--divider); color: var(--text-muted); font-weight: 700; }
.inv-who { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inv-who strong { font-size: 15px; }
.inv-pill { padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.inv-pill.wait { background: var(--divider); color: var(--text); }
.inv-pill.ok { background: #e3f4e8; color: #17663a; }
.inv-acts { display: flex; gap: 4px; align-items: center; }
.inv-btn { height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text-strong); font: 600 13px var(--sans); cursor: pointer; }
.inv-btn:hover { background: var(--divider); }
.inv-btn.quiet { color: var(--text-muted); font-weight: 500; }
.inv-acts form { margin: 0; }
.inv-view { padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.inv-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.inv-aside { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.inv-aside h2 { margin: 0; }

/* Desktop and phone variants of the same text or control. */
@media (min-width: 761px) { .m-only { display: none !important; } }
@media (max-width: 760px) {
  .d-only { display: none !important; }
  body:has(.inv-page) .m-header { display: none; }
  .inv-page { gap: 14px; }
  .inv-page .post-main { gap: 14px; }
  .inv-head { flex-direction: row; align-items: center; gap: 4px; margin: -16px -16px 2px; padding: 10px 8px;
    background: var(--bg-header); border-bottom: 1px solid var(--border); }
  .inv-head h1 { font-size: 18px; }
  .inv-back { width: 44px; height: 44px; justify-content: center; border-radius: 50%; color: var(--text-strong); }
  .inv-left { margin: 0 4px; }
  .inv-new { padding: 16px; gap: 14px; }
  .inv-form, .inv-made { gap: 14px; }
  .inv-submit { flex-direction: column; align-items: stretch; gap: 14px; }
  .inv-submit .hint { text-align: center; }
  .inv-new .btn { height: 48px; border-radius: 12px; justify-content: center; font-size: 15px; }
  .inv-new .inv-again { height: 44px; border-color: var(--ink); color: var(--ink); background: var(--card); }
  .inv-link { flex-direction: column; gap: 12px; }
  .inv-link .input { flex: none; font-size: 13px; padding: 0 12px; }
  #yours-h { margin: 6px 4px 0; font-size: 12px; }
  .inv-list li { padding: 12px 14px; gap: 12px; flex-wrap: nowrap; }
  .inv-list .avatar { width: 34px; height: 34px; flex: none; font-size: 12px; }
  .inv-who { flex: 1; }
  .inv-who .hint { font-size: 12px; }
  .inv-pill { padding: 3px 8px; }
  .inv-pill:not(.ok):not(.wait) { border: 1px solid var(--border); }
  .inv-more summary { color: var(--text-muted); border-radius: 50%; }
  .inv-more .share-menu { bottom: auto; top: calc(100% + 4px); }
  .inv-more form { margin: 0; }
  .inv-more form .share-opt { width: 100%; color: var(--error); }
  .inv-aside { padding: 14px 16px; gap: 8px; }
  .inv-aside h2 { font-size: 12px; }
  .inv-aside-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text); }
}

/* house rules */
.rules { max-width: 912px; margin: 0 auto; padding: 32px 0 32px; display: flex; flex-direction: column; gap: 28px; }
.rules-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.rules-emoji { font-size: 40px; line-height: 1; }
.rules-head h1 { font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.rules-head p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.rules-three { background: var(--ink); border-radius: 18px; padding: 22px 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.rules-three div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: #e9e6df; }
.rules-three div > span:first-child { font-size: 26px; line-height: 1; }
.rules-three strong { color: #fff; font-weight: 650; }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 14px; }
.rule { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.rule p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.rule strong { font-weight: 650; color: var(--text); }
.rule p.rule-note, .rule-note { font-size: 14px; color: var(--text-3); }
.rule-head { display: flex; align-items: center; gap: 12px; }
.rule-wide { grid-column: 1 / -1; }
@media (min-width: 761px) { .rule-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 22px; } }
.rule-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.rule-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.rule ul { list-style: none; margin: 0; padding: 0; }
.rule-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-pills li { padding: 6px 10px; border-radius: 999px; background: var(--divider); font-size: 13px; font-weight: 500; }
.rule-list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.rule-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 14px; }
.rule-bars { display: flex; flex-direction: column; gap: 8px; }
.rule-bars li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rule-bars li > span:first-child { width: 110px; flex: none; }
.rule-bars .bar { height: 10px; width: var(--w); border-radius: 5px; background: var(--c); }
.rule-member { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-3); }
.pill-ok { padding: 5px 10px; border-radius: 999px; background: #e6f4ea; color: #1e5e2f; font-weight: 600; }
.rule-folded { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px dashed #c9c2b4; border-radius: 12px; background: var(--bg-header); font-size: 14px; color: var(--text-3); }
.rule-show { font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.rules-never { border: 1px dashed #c9c2b4; border-radius: 18px; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; font-size: 15px; font-weight: 600; }

.privacy { max-width: 760px; gap: 24px; }
.privacy-head { display: flex; flex-direction: column; gap: 8px; }
.privacy-head h1 { font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.privacy-head p { margin: 0; font-size: 14px; color: var(--text-muted); }
.privacy-lead { margin: 0; background: var(--ink); color: #fff; border-radius: 18px; padding: 22px 26px; font-size: 18px; line-height: 1.5; font-weight: 500; }
.privacy .rule { padding: 22px 26px; gap: 10px; }
.privacy h2 { margin: 0; font-size: 19px; font-weight: 700; }
.privacy .rule p, .privacy-list { line-height: 1.55; }
.rule .privacy-list { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--text-2); }
.privacy-contact { border: 1px dashed #c9c2b4; border-radius: 18px; padding: 18px 26px; display: flex; flex-direction: column; gap: 6px; }
.privacy-contact h2 { font-size: 17px; }
.privacy-contact p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.site-foot { border-top: 1px solid var(--border); }
.site-foot-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 24px 40px; }
.site-foot-in .brand { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.site-foot-in .wordmark { font-size: 17px; }
.site-foot-in nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.site-foot-in nav a { color: var(--text-3); }
.site-foot-in nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-foot-tag { margin-left: auto; font-size: 13px; color: var(--text-muted); }
@media (max-width: 760px) {
  .rules { padding: 16px 0 12px; gap: 16px; margin: 0 -4px; }
  .rules-head h1 { font-size: 34px; }
  .rules-head p { font-size: 16px; }
  .rules-three { padding: 20px; gap: 14px; }
  .rules-grid { gap: 12px; }
  .rule { padding: 18px; }
  .privacy-head h1 { font-size: 34px; }
  .privacy-lead { padding: 20px; font-size: 16px; }
  .privacy .rule, .privacy-contact { padding: 18px; }
  .rule-bars li > span:first-child { width: 104px; }
  .rule-bars .bar { width: calc(var(--w) * 0.7); }
  body:has(.site-foot) main { padding-bottom: 12px; }
  .site-foot { border-top: 0; }
  .site-foot-in { flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 20px 32px; }
  body:has(.tabbar a) .site-foot-in { padding-bottom: 110px; }
  .site-foot-in .brand { display: none; }
  .site-foot-in nav { gap: 18px; }
  .site-foot-tag { margin-left: 0; }
  .site-foot-tag::before { content: "kukijar · "; }
}

/* signed-out home */
.side-topic { justify-content: space-between; }
.c-topic { --a-solid: var(--border-strong); }
.side-topic strong { font-size: 14px; }
.want-post { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px dashed #c9c2b4; display: flex; flex-direction: column; gap: 10px; }
.want-post strong { font-size: 14px; font-weight: 600; }
.want-post p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.welcome { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.welcome h1 { font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--ink); }
.welcome p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.welcome-actions .muted { font-size: 13px; }
@media (max-width: 760px) {
  body:not(:has(.tabbar)) main { padding-bottom: 32px; }
  .m-header .btn { height: 40px; padding: 0 16px; }
  .welcome { padding: 16px; border-radius: 14px; gap: 10px; }
  .welcome h1 { font-size: 20px; line-height: 1.25; }
  .welcome p { font-size: 14px; line-height: 1.5; }
  .welcome-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .welcome-actions .btn-primary { height: 44px; border-radius: 11px; justify-content: center; font-size: 15px; }
  .welcome-actions .muted { font-size: 12px; text-align: center; }
}

/* bell: a dot, never a number */
.bell { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.bell:hover { background: var(--divider); color: var(--text); }
.bell[aria-current="page"] { background: var(--divider); }
.bell-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--bg-header); }
.topbar-in .bell { margin-left: -16px; margin-right: -16px; }
.m-header-icons { display: flex; align-items: center; }
@media (max-width: 760px) {
  .m-header .bell { width: 44px; height: 44px; }
  .m-header .bell-dot { top: 9px; right: 10px; }
  .m-header .icon-btn { color: var(--text); }
}

/* notifications */
.notes-head { display: flex; flex-direction: column; gap: 4px; }
.notes-head h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.notes-sub { margin: 0; font-size: 15px; color: var(--text-3); }
.notes-main { gap: 20px; }
.notes-group { display: flex; flex-direction: column; gap: 10px; }
.notes-group h2 { margin: 0; }
.notes-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.note { position: relative; display: flex; gap: 14px; padding: 16px 20px; }
.note + .note { border-top: 1px solid var(--divider); }
.note-link { position: absolute; inset: 0; z-index: 0; }
.note-link:focus-visible { outline-offset: -2px; border-radius: var(--r-card); }
.note a:not(.note-link), .note button, .note form { position: relative; z-index: 1; }
.note-dot { position: absolute; left: 8px; top: 30px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.note-icon { flex: none; display: flex; }
.note-icon .avatar { width: 40px; height: 40px; font-size: 13px; }
.note-stack { position: relative; width: 40px; height: 40px; }
.note-stack .avatar { position: absolute; width: 28px; height: 28px; font-size: 10px; box-shadow: 0 0 0 2px var(--card); }
.note-stack .avatar:first-child { left: 0; top: 0; }
.note-stack .avatar:last-child { left: 12px; top: 12px; }
.note-sys { width: 40px; height: 40px; border-radius: 50%; background: var(--divider); color: var(--text-2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.note-slop { background: #efede8; }
.note-ok { background: #e3f4e8; color: var(--success); }
.note-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.note-body p { margin: 0; font-size: 15px; line-height: 1.5; }
.note-body strong { font-weight: 600; }
.note-name { font-weight: 600; text-decoration: none; }
.note-excerpt { display: block; padding: 8px 12px; border-radius: 10px; background: var(--bg-header); border: 1px solid var(--divider);
  font-size: 14px; line-height: 1.45; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-react { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.note-emojis { display: flex; }
.note-emojis span { width: 26px; height: 26px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 14px; }
.note-emojis span + span { margin-left: -6px; }
.note-muted, .note-when, .note-meta { font-size: 13px; color: var(--text-muted); }
.note-meta { color: var(--text-3); }
.note-when { flex: none; }
.note-quote { display: block; padding: 10px 12px; border-radius: 10px; background: var(--bg-header); border: 1px solid var(--divider);
  font: italic 16px/1.45 var(--serif); color: var(--text-2); }
.note-lock { display: inline-flex; align-items: center; gap: 6px; }
.note-actions { display: flex; gap: 8px; }
.note-actions .btn { height: 36px; padding: 0 14px; border-radius: var(--r-btn); font-size: 13px; }
.note-notnow { padding: 0 12px; height: 36px; text-decoration: none; font-size: 13px; }
.note-done { font-size: 13px; font-weight: 500; color: var(--text-3); }
.note-done.ok { color: var(--success); }
.notes-foot { margin: 0; font-size: 13px; color: var(--text-muted); text-align: center; }
.notes-aside-text { padding: 0 4px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.notes-aside-text p { margin: 0; }
.strong-link { font-weight: 600; }
.notes-prefs-card { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.notes-prefs-card h2 { margin: 0 0 8px; }
.notify-prefs { display: flex; flex-direction: column; }
.notify-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--divider); }
.notify-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notify-label { font-size: 14px; font-weight: 600; }
.notify-help { font-size: 13px; line-height: 1.4; color: var(--text-3); }
.notify-always { flex: none; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.switch { flex: none; margin-top: 2px; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(26,26,26,.25); transition: left 120ms; }
.switch[aria-checked="true"] span { left: 21px; }
.notes-sheet summary { list-style: none; cursor: pointer; }
.notes-sheet summary::-webkit-details-marker { display: none; }
.notes-sheet:not([open]) .notes-sheet-panel { display: none; }
@media (max-width: 760px) {
  body:has(.notes-page) .m-header { display: none; }
  .notes-page, .notes-main { gap: 10px; }
  .notes-head { flex-direction: row; align-items: center; gap: 4px; margin: -16px -16px 4px; padding: 10px 8px;
    background: var(--bg-header); border-bottom: 1px solid var(--border); }
  .notes-head h1 { flex: 1; font-size: 18px; letter-spacing: 0; }
  .notes-back, .notes-sliders { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text); }
  .notes-group h2 { margin: 4px 4px 0; font-size: 12px; }
  .notes-group + .notes-group h2 { margin-top: 8px; }
  .note { gap: 12px; padding: 14px; }
  .note:has(.note-dot) { padding-left: 18px; }
  .note-dot { left: 6px; top: 26px; }
  .note-icon .avatar, .note-stack, .note-sys { width: 36px; height: 36px; font-size: 12px; }
  .note-sys { font-size: 16px; }
  .note-sys svg { width: 18px; height: 18px; }
  .note-stack .avatar { width: 25px; height: 25px; font-size: 9px; }
  .note-stack .avatar:last-child { left: 11px; top: 11px; }
  .note-body { gap: 6px; }
  .note-body p { font-size: 14px; line-height: 1.45; }
  .note-quote { font-size: 15px; line-height: 1.4; padding: 0; background: none; border: 0; }
  .note-lock { font-size: 12px; }
  .note-actions .btn, .note-notnow { height: 44px; font-size: 14px; }
  .note-actions .btn { padding: 0 16px; border-radius: 10px; }
  /* settings become a bottom sheet */
  .notes-sheet[open] .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(26,26,26,.38); }
  .notes-sheet-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; background: var(--card); border-radius: 22px 22px 0 0;
    padding: 10px 18px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px; }
  .notes-sheet-title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
  .notify-prefs-sheet .notify-row { align-items: center; min-height: 56px; padding: 0; }
  .notify-prefs-sheet .notify-label { font-size: 15px; font-weight: 500; }
  .notify-prefs-sheet .notify-always { margin: 0; }
  .notify-prefs-sheet .switch { margin: 0; width: 48px; height: 28px; }
  .notify-prefs-sheet .switch span { width: 22px; height: 22px; }
  .notify-prefs-sheet .switch[aria-checked="true"] span { left: 23px; }
  .notes-sheet-note { margin: 6px 0 12px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
  .notes-done { height: 48px; border-radius: 12px; justify-content: center; font-size: 15px; }
}

/* New track: form and live preview; on phones a full-screen form with Create in the header. */
.nt-page { max-width: 1040px; margin: 8px auto 40px; display: flex; flex-direction: column; gap: 20px; }
.nt-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.nt-head h1 { font-size: 30px; font-weight: 700; }
.nt-back { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.nt-sub { margin: -14px 0 0; max-width: 620px; font-size: 15px; line-height: 1.5; color: var(--text-3); }
.nt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.nt-form, .nt-done { padding: 0; display: flex; flex-direction: column; }
.nt-fields { padding: 24px; display: flex; flex-direction: column; gap: 26px; }
.nt-fields label, .nt-fields legend { font-size: 15px; font-weight: 600; }
.nt-fields label .muted, .nt-fields legend .muted { font-size: inherit; font-weight: 400; }
.nt-fields .hint { line-height: 1.45; }
.nt-title { font-size: 17px; font-weight: 500; }
.nt-msg { display: inline-flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 13px; line-height: 1.45; }
.nt-msg svg { flex: none; margin-top: 1px; }
.nt-msg.form-error { font-weight: 400; }
.mono { font-family: var(--mono); }
.nt-slug { padding: 0 0 0 14px; overflow: hidden; }
.nt-slug > span { flex: none; font-size: 14px; white-space: nowrap; }
.nt-slug input { height: 44px; padding: 0 14px 0 0; font: 500 14px var(--mono); }
.field:has(#slug-msg.form-error) .nt-slug { border-color: var(--error); }
.nt-split { display: flex; justify-content: space-between; gap: 12px; }
.nt-split [data-count] { margin-left: auto; }
.nt-topics { border: 0; padding: 0; min-width: 0; }
.nt-topics legend { padding: 0; margin-bottom: 8px; }
.nt-topicbox { height: auto; min-height: 48px; padding: 6px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nt-topicbox:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.nt-topic-q { flex: 1 1 160px; min-width: 120px; height: 34px; border: 0; padding: 0 6px; background: transparent; font: 400 15px var(--sans); color: var(--text-strong); }
.nt-topic-q:focus { outline: none; }
.nt-chip { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 2px 0 10px; border-radius: var(--r-chip); background: var(--divider); color: var(--text-2); font-size: 14px; font-weight: 600; }
.nt-chip-x { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.nt-chip-x:hover { background: var(--border); }
.nt-sugg { border: 1px solid var(--border); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 2px; background: var(--card); }
.nt-sugg[hidden] { display: none; }
.nt-eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.nt-sugg .nt-eyebrow { padding: 6px 10px 4px; }
.nt-sugg-btn { min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; font: 500 14px var(--sans); color: var(--text); cursor: pointer; }
.nt-sugg-btn:hover { background: var(--bg); }
.nt-sugg-btn svg { flex: none; color: var(--text-muted); }
.nt-sugg-text { flex: 1; }
.nt-sugg-meta { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.nt-active { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.nt-active strong { font-weight: 600; color: var(--text-2); }
.nt-foot { padding: 16px 24px; border-top: 1px solid var(--divider); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nt-foot .form-error { font-size: 14px; font-weight: 400; }
.nt-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nt-actions .btn { height: 44px; padding: 0 20px; border-radius: 12px; font-size: 15px; }
.nt-actions .btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); padding: 0 16px; }
.nt-actions .btn-ghost:hover { background: var(--divider); }
.nt-done { padding: 28px 24px; gap: 16px; }
.nt-done-head { display: flex; align-items: center; gap: 10px; color: var(--success); }
.nt-done-head h2 { margin: 0; font-size: 18px; }
.nt-done-name { display: flex; flex-direction: column; gap: 4px; }
.nt-done-name strong { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.nt-done-name .mono { font-size: 13px; color: var(--text-3); word-break: break-all; }
.nt-done p { margin: 0; max-width: 560px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.nt-done-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.nt-done-acts .btn { height: 44px; padding: 0 20px; border-radius: 12px; font-size: 15px; }
.nt-done-acts .btn-outline { border-color: var(--ink); }
.nt-aside { display: flex; flex-direction: column; gap: 16px; }
.nt-preview-wrap { display: flex; flex-direction: column; gap: 10px; }
.nt-preview { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.nt-pv-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.nt-pv-who strong { font-weight: 600; color: var(--text); }
.nt-av { width: 22px; height: 22px; font-size: 10px; }
.nt-pv-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.nt-pv-title { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.nt-pv-title.is-empty { color: var(--text-muted); }
.nt-pv-desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.nt-pv-topics:empty { display: none; }
.nt-pv-foot { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--divider); }
.nt-pv-foot .strip span { width: 9px; height: 9px; border-radius: 2px; }
.nt-tips { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.nt-tips h2 { margin: 0; font-size: 15px; font-weight: 600; }
.nt-tips ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.nt-tips a { font-size: 14px; font-weight: 500; color: var(--text); text-underline-offset: 2px; }
@media (max-width: 760px) {
  body:has(.nt-page) :is(.m-header, .tabbar) { display: none; }
  .nt-page { margin: 0; gap: 16px; }
  .nt-head { position: sticky; top: 0; z-index: 5; flex-direction: row; align-items: center; gap: 4px; margin: -16px -16px 0; height: 56px; padding: 0 12px 0 8px; box-sizing: border-box;
    background: var(--bg-header); border-bottom: 1px solid var(--border); }
  .nt-head h1 { flex: 1; font-size: 17px; letter-spacing: 0; }
  .nt-back { width: 44px; height: 44px; justify-content: center; border-radius: 50%; color: var(--text-strong); }
  .nt-create { height: 36px; min-width: 72px; padding: 0 14px; justify-content: center; font-size: 15px; }
  .nt-sub { margin: 0; font-size: 14px; }
  .nt-grid { display: block; }
  .nt-fields { padding: 16px; gap: 20px; }
  .nt-title { font-size: 16px; }
  .nt-slug { padding-left: 12px; }
  .nt-slug > span, .nt-slug input { font-size: 13px; }
  .nt-slug input { padding-right: 12px; }
  .nt-chip { height: 36px; padding-right: 0; }
  .nt-chip-x { width: 36px; height: 36px; }
  .nt-topic-q { flex-basis: 120px; min-width: 100px; height: 36px; font-size: 16px; }
  .nt-sugg { flex-direction: row; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; background: none; }
  .nt-sugg-btn { min-height: 44px; padding: 0 14px; gap: 6px; border: 1px solid var(--border-strong); border-radius: 22px; background: var(--card); }
  .nt-sugg-text { flex: none; }
  .nt-active { align-items: flex-start; gap: 8px; }
  .nt-active .status-dot { margin-top: 5px; }
  .nt-foot { padding: 0; border: 0; justify-content: center; }
  .nt-foot:not(:has(.form-error)) { display: none; }
  .nt-form .nt-foot { padding: 0 16px 16px; }
  .nt-done { padding: 20px 16px; gap: 14px; }
  .nt-done-head h2 { font-size: 17px; }
  .nt-done-name strong { font-size: 20px; }
  .nt-done-name .mono { font-size: 12px; }
  .nt-done-acts { flex-direction: column; }
  .nt-done-acts .btn { height: 48px; justify-content: center; }
}

/* A track's topics: one line on cards (long names end in "…"), wrapping in the track page header. */
.topics { margin: 0; padding: 0; list-style: none; display: flex; gap: 6px; min-width: 0; }
.topics li { display: flex; min-width: 0; }
.topic-chip { display: block; max-width: 100%; box-sizing: border-box; height: 24px; line-height: 24px; padding: 0 8px; border-radius: 6px;
  background: var(--divider); color: var(--text-2); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.topic-chip:hover { background: var(--border); color: var(--text); }
.topics-line { flex-wrap: nowrap; overflow: hidden; }
.topics-line > * { flex: 0 1 auto; min-width: 36px; }
.topics-wrap { flex-wrap: wrap; margin-top: 2px; }
.topics-wrap li { max-width: 100%; }
.topics-wrap .topic-chip { height: 26px; line-height: 26px; padding: 0 10px; font-size: 13px; }
@media (max-width: 760px) {
  .topics-line { flex-wrap: wrap; }
  .topics-line > * { max-width: 100%; }
  .topics-wrap .topic-chip { height: 32px; line-height: 32px; border-radius: 8px; }
}

/* /write for someone who can't post yet */
.ni { max-width: 720px; margin: 0 auto; padding: 8px 0 40px; display: flex; flex-direction: column; gap: 20px; }
.ni-top { display: none; }
.ni-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; font-weight: 500; color: var(--text-3); text-decoration: none; }
.ni-head { display: flex; gap: 16px; align-items: flex-start; }
.ni-head h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.ni-head p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-3); max-width: 560px; }
.ni-icon { flex: none; width: 48px; height: 48px; box-sizing: border-box; border-radius: 14px; background: var(--card); border: 1px solid var(--border); color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.ni-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.ni-form label { font-size: 15px; font-weight: 600; }
.ni-row { display: flex; gap: 8px; }
.ni-row input { flex: 1; min-width: 0; height: 48px; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 14px; font: 400 16px var(--sans); color: var(--text); background: var(--card); }
.ni-row input[aria-invalid] { border-color: var(--error); }
.ni-row .btn { height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); font-size: 15px; flex: none; justify-content: center; }
#ni-msg .hint { line-height: 1.45; }
.ni-error { display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; font-weight: 400; }
.ni-error svg { flex: none; margin-top: 2px; }
.ni-found { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.ni-found .avatar { font-size: 13px; font-weight: 700; flex: none; }
.ni-found-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.ni-found-text strong { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--success); }
.ni-found .btn { justify-content: center; }
.ni-help h2 { margin: 0; font-size: 15px; font-weight: 600; }
.ni-help ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.ni-links { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; font-size: 14px; font-weight: 500; }
@media (max-width: 760px) {
  body:has(.ni) { background: var(--card); }
  body:has(.ni) :is(.m-header, .tabbar) { display: none; }
  main:has(> .ni) { padding: 0 0 40px; }
  .ni { gap: 22px; padding: 0; }
  .ni > :not(.ni-top) { margin: 0 20px; }
  .ni-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; z-index: 3; background: var(--card); padding: 10px 12px; border-bottom: 1px solid var(--divider); font-size: 16px; font-weight: 600; }
  .ni-top a { height: 44px; padding: 0 8px; display: flex; align-items: center; font-size: 15px; font-weight: 500; text-decoration: none; }
  .ni-spacer { width: 60px; }
  .ni-back { display: none; }
  .ni-head { flex-direction: column; gap: 12px; }
  .ni-head h1 { font-size: 24px; }
  .ni-head p { color: var(--text-2); }
  .ni-form { padding: 16px; border-radius: 14px; }
  .ni-help { border: 0; padding: 0; border-radius: 0; }
  .ni-row { flex-direction: column; }
  .ni-row input { flex: none; }
  .ni-found { padding: 14px; }
  .ni-found .btn { width: 100%; height: 44px; }
  .ni-links { flex-direction: column; align-items: stretch; gap: 0; }
  .ni-explore { height: 48px; border-radius: 12px; border: 1px solid var(--ink); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; }
  .ni-links a:not(.ni-explore) { align-self: center; min-height: 44px; display: inline-flex; align-items: center; }
}

/* Edit track: the link can't change. */
.nt-slug-locked { padding: 0 14px; gap: 10px; background: var(--bg-header); border-color: var(--border); color: var(--text-muted); }
.nt-slug-locked input { flex: 1; min-width: 0; padding: 0; background: transparent; color: var(--text-2); }
.nt-active .status-icon { flex: none; }

/* Track page, owner only: Post a kuki · Edit track · followers (only the owner sees the number). */
.owner-acts { margin: 4px 0 0 -8px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.owner-acts .new-post { margin: 0; }
.owner-acts .spacer { flex: 1; }
.fl-btn { cursor: pointer; list-style: none; padding: 0 8px; }
.fl-btn::-webkit-details-marker { display: none; }
.fl-btn strong { font-weight: 700; color: var(--ink); }
.fl-lock { display: inline-flex; color: var(--text-muted); }
.followers[open] .fl-backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(22,22,26,.38); }
.fl-dialog { display: none; }
.followers[open] .fl-dialog { position: fixed; z-index: 41; top: 88px; left: 50%; transform: translateX(-50%); width: 540px; max-width: calc(100% - 32px);
  max-height: calc(100vh - 120px); box-sizing: border-box; background: var(--card); border-radius: 16px; box-shadow: 0 16px 48px rgba(22,22,26,.18);
  display: flex; flex-direction: column; overflow: hidden; }
.fl-head { padding: 16px 12px 12px 20px; display: flex; align-items: flex-start; gap: 8px; border-bottom: 1px solid var(--divider); }
.fl-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fl-titles h2 { margin: 0; font-size: 18px; font-weight: 700; }
.fl-titles span { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-close, .fl-back { width: 40px; height: 40px; flex: none; border-radius: 50%; color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.fl-close:hover, .fl-back:hover { background: var(--divider); }
.fl-tools { padding: 14px 20px 10px; display: flex; flex-direction: column; gap: 12px; }
.fl-private { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.fl-search { position: relative; }
.fl-search svg { position: absolute; left: 12px; top: 12px; color: var(--text-muted); }
.fl-search .input { height: 40px; border-radius: 10px; padding: 0 12px 0 36px; font-size: 15px; }
.fl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fl-chip { height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--card); display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; }
.fl-chip span { color: var(--text-3); }
.fl-chip { font-family: var(--sans); cursor: pointer; }
.fl-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--bg); }
.fl-list { margin: 0; padding: 0 8px 4px; list-style: none; overflow-y: auto; flex: 1; display: flex; flex-direction: column; }
.fl-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.fl-row:hover { background: var(--bg-header); }
.fl-av { width: 44px; height: 44px; flex: none; font-size: 14px; text-decoration: none; }
.fl-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fl-who a { font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-who a span { font-weight: 400; color: var(--text-muted); }
.fl-who a:hover { text-decoration: underline; }
.fl-meta { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-empty { padding: 24px 12px; text-align: center; font-size: 14px; color: var(--text-3); }
.fl-foot { padding: 10px 20px 16px; border-top: 1px solid var(--divider); display: flex; align-items: center; gap: 12px; }
.fl-foot > span { flex: 1; font-size: 12px; color: var(--text-muted); }
.fl-foot .btn { margin-left: auto; font-size: 13px; border-radius: 10px; }
@media (max-width: 760px) {
  .owner-acts .new-post, .fl-btn { height: 44px; gap: 6px; }
  .fl-lock svg { width: 11px; height: 11px; }
  /* phones: the list is its own screen, with the tab bar still showing under it */
  .followers[open] .fl-backdrop { display: none; }
  .followers[open] .fl-dialog { inset: 0 0 calc(61px + env(safe-area-inset-bottom)); transform: none; width: auto; max-width: none; max-height: none;
    border-radius: 0; box-shadow: none; z-index: 4; }
  .fl-head { padding: 10px 8px; gap: 4px; align-items: center; background: var(--bg-header); border-bottom-color: var(--border); }
  .fl-back { width: 44px; height: 44px; color: var(--text); }
  .fl-titles h2 { font-size: 16px; }
  .fl-titles span { font-size: 12px; }
  .fl-tools { padding: 12px 16px 8px; gap: 10px; }
  .fl-search .input { height: 44px; border-radius: 12px; font-size: 16px; background: var(--bg); }
  .fl-search svg { top: 14px; }
  .fl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fl-chip { flex: none; height: 36px; border-radius: 18px; }
  .fl-row { padding: 8px; gap: 10px; }
  .fl-meta { font-size: 12px; }
  .fl-foot { padding: 10px 16px; }
  .fl-foot > span { display: none; }
  .fl-foot:not(:has(.btn:not([hidden]))) { display: none; }
}

/* Kuki page, author only: who reacted. Reuses the followers dialog (.fl-*); a bottom sheet on phones. */
.rx-btn { height: 38px; padding: 0 12px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; color: var(--text-3); }
.rx-btn::-webkit-details-marker { display: none; }
.rx-btn:hover { background: var(--divider); }
.rx-see { font-size: 13px; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.reactors[open] .rx-backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(22,22,26,.38); }
.reactors[open] .rx-dialog { position: fixed; z-index: 41; top: 96px; left: 50%; transform: translateX(-50%); width: 540px; max-width: calc(100% - 32px);
  max-height: min(760px, calc(100vh - 120px)); box-sizing: border-box; background: var(--card); border-radius: 16px; box-shadow: 0 16px 48px rgba(22,22,26,.18);
  display: flex; flex-direction: column; overflow: hidden; }
.rx-head { padding: 16px 12px 10px 20px; border-bottom: 0; }
.rx-tabs { flex: none; display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--divider); overflow-x: auto; scrollbar-width: none; }
.rx-tab { flex: none; height: 44px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; font: 500 14px var(--sans); color: var(--text); }
.rx-tab[aria-selected="true"] { border-bottom-color: var(--ink); font-weight: 600; }
.rx-emoji { font-size: 18px; }
.rx-n { font-size: 13px; color: var(--text-3); }
.rx-private { flex: none; padding: 10px 20px 4px; }
.rx-list { padding-top: 4px; }
.rx-av { position: relative; overflow: visible; }
.rx-av img { border-radius: 50%; }
.rx-badge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--card);
  display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; }
.rx-time { flex: none; font-size: 13px; color: var(--text-muted); }
.rx-slop { margin: 8px -8px 0; padding: 12px 20px 16px; border-top: 1px solid var(--divider); display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.45; color: var(--text-2); }
.rx-slop a { color: var(--text); font-weight: 600; text-underline-offset: 2px; }
.rx-slop-icon { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #efede8; display: flex; align-items: center; justify-content: center; font-size: 14px; }
@media (max-width: 760px) {
  .rx-btn { height: 44px; padding: 0 8px 0 4px; gap: 8px; }
  .reactors[open] .rx-dialog { inset: 96px 0 0; transform: none; width: auto; max-width: none; max-height: none; border-radius: 22px 22px 0 0; box-shadow: none;
    animation: rx-up .22s cubic-bezier(.2,.8,.3,1); }
  @keyframes rx-up { from { transform: translateY(100%); } }
  .rx-grip { align-self: center; flex: none; width: 40px; height: 4px; border-radius: 2px; background: #d6d0c4; margin: 10px 0 6px; }
  .rx-head { padding: 0 8px 0 16px; align-items: center; background: none; }
  .rx-head h2 { font-size: 19px; }
  .rx-head .fl-close { width: 44px; height: 44px; }
  .rx-tabs { padding: 0 8px; }
  .rx-tab { padding: 0 9px; gap: 5px; }
  .rx-private { padding: 10px 16px 2px; }
  .rx-list { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .rx-time { font-size: 12px; }
  .rx-slop { margin: 8px 0 0; padding: 12px 8px 0; }
}

/* slop reasons: the author's private list, one card per kuki */
.sr-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1; }
.sr-title h1 { flex: 1; }
.sr-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.sr-intro { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.sr-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sr-tab { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text);
  font: 600 13px var(--sans); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.sr-tab[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.sr-n { font-weight: 500; opacity: .75; }
.sr-group { padding: 0; overflow: hidden; scroll-margin-top: 80px; }
.sr-group:target { box-shadow: 0 0 0 2px var(--ink); }
.sr-top { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--divider); }
.sr-meta { display: flex; align-items: center; gap: 8px; }
.sr-track { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text-3); }
.sr-status { flex: none; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--divider); color: var(--text-3); font-size: 12px; font-weight: 600; }
.sr-status.open { border-color: #cfe6d6; background: #eef7f1; color: #1f6b3a; }
.sr-post { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; }
.sr-count { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.sr-reasons { margin: 0; padding: 14px 22px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sr-reasons li { padding: 12px 14px; border-radius: 12px; background: var(--bg-header); border: 1px solid var(--divider); display: flex; flex-direction: column; gap: 4px; }
.sr-reasons q { font: italic 16px/1.5 var(--serif); color: var(--text); }
.sr-reasons span { font-size: 12px; color: var(--text-muted); }
.sr-foot { margin: 0; padding-top: 4px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.sr-foot a { color: var(--text); text-underline-offset: 2px; }
@media (max-width: 760px) {
  .sr-head .sr-title { gap: 4px; }
  .sr-lock { padding-right: 10px; }
  .sr-intro, .sr-foot { margin: 0 4px; font-size: 14px; line-height: 1.55; }
  .sr-foot { font-size: 12px; }
  .sr-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .sr-tab { flex: none; height: 44px; }
  .sr-group { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; border-radius: 14px; }
  .sr-top { padding: 0; border: 0; }
  .sr-track { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sr-status { padding: 2px 8px; font-size: 11px; }
  .sr-post { font-size: 15px; }
  .sr-count { font-size: 12px; }
  .sr-reasons { padding: 0; }
  .sr-reasons li { padding: 10px 12px; border-radius: 10px; gap: 2px; }
  .sr-reasons q { font-size: 15px; }
  .sr-reasons span { font-size: 11px; }
}
