/* VidLift Status. White, quiet, dense; VidLift red only for the main action
   and the active tab; status colour as small tinted tags. One family (Geist). */
:root {
  --bg: #ffffff;
  --panel: #f7f8fa;
  --ink: #1a1d23;
  --ink-2: #4b5260;
  --ink-3: #868d99;
  --line: #e6e8ec;
  --line-2: #d6d9df;
  --hover: #f9fafb;
  --red: #e5242b;
  --red-dk: #c71d23;
  --red-soft: #fdeeee;
  --blue: #2457d6;
  --blue-soft: #edf2fd;
  --green: #16794a;
  --green-soft: #e9f6ef;
  --amber: #a85b06;
  --amber-soft: #fdf3e3;
  --violet: #6236c9;
  --violet-soft: #f2edfc;
  --grey-soft: #f1f2f4;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --shadow: 0 1px 2px rgba(26, 29, 35, .05);
  --font: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --surface: #ffffff;
  --field: #ffffff;
  --hdr-bg: rgba(255, 255, 255, .92);
  --solid: #1a1d23;
  --solid-hover: #000000;
  --on-solid: #ffffff;
  --on-solid-2: #cfd3da;
  --tab-n-on: #e9ebef;
  --seg-on: #ffffff;
  --seg-shadow: 0 1px 2px rgba(26, 29, 35, .1);
  --img-edge: rgba(26, 29, 35, .06);
  --placeholder: #a3a9b3;
  --focus-ring: rgba(26, 29, 35, .08);
  --red-line: #f2c4c6;
  --amber-line: #ecd3ad;
  --green-line: #cdeadb;
  --drop-hover: #f2f3f6;
  --body-ink: #2a2e36;
  --code-bg: #fbfbfc;
  --target: #fffbeb;
  --live: #1fa463;
  --live-ring: rgba(31, 164, 99, .16);
  --live-ring-2: rgba(31, 164, 99, .06);
  color-scheme: light;
}

/* Dark: by the system setting unless the visitor picked light, or by their pick. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216; --panel: #171a20; --ink: #eceef2; --ink-2: #aab0bb; --ink-3: #7d8491;
    --line: #23272f; --line-2: #323742; --hover: #15181d;
    --red: #e5242b; --red-dk: #ff6b70; --red-soft: rgba(229, 36, 43, .16);
    --blue: #86a8ff; --blue-soft: rgba(110, 150, 255, .15);
    --green: #5fd09a; --green-soft: rgba(80, 200, 140, .13);
    --amber: #f2b766; --amber-soft: rgba(240, 175, 80, .14);
    --violet: #b9a3ff; --violet-soft: rgba(160, 130, 255, .15);
    --grey-soft: #1e2128;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --surface: #14171c; --field: #0f1115; --hdr-bg: rgba(16, 18, 22, .88);
    --solid: #eceef2; --solid-hover: #ffffff; --on-solid: #101216; --on-solid-2: #4b5260;
    --tab-n-on: #2a2f38; --seg-on: #2a2f38; --seg-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --img-edge: rgba(255, 255, 255, .07); --placeholder: #5d6470; --focus-ring: rgba(236, 238, 242, .12);
    --red-line: rgba(255, 107, 112, .3); --amber-line: rgba(242, 183, 102, .3); --green-line: rgba(95, 208, 154, .28);
    --drop-hover: #1c2027; --body-ink: #d4d8df; --code-bg: #0c0e11; --target: rgba(242, 183, 102, .08);
    --live: #3fcf86; --live-ring: rgba(63, 207, 134, .2); --live-ring-2: rgba(63, 207, 134, .07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #101216; --panel: #171a20; --ink: #eceef2; --ink-2: #aab0bb; --ink-3: #7d8491;
    --line: #23272f; --line-2: #323742; --hover: #15181d;
    --red: #e5242b; --red-dk: #ff6b70; --red-soft: rgba(229, 36, 43, .16);
    --blue: #86a8ff; --blue-soft: rgba(110, 150, 255, .15);
    --green: #5fd09a; --green-soft: rgba(80, 200, 140, .13);
    --amber: #f2b766; --amber-soft: rgba(240, 175, 80, .14);
    --violet: #b9a3ff; --violet-soft: rgba(160, 130, 255, .15);
    --grey-soft: #1e2128;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --surface: #14171c; --field: #0f1115; --hdr-bg: rgba(16, 18, 22, .88);
    --solid: #eceef2; --solid-hover: #ffffff; --on-solid: #101216; --on-solid-2: #4b5260;
    --tab-n-on: #2a2f38; --seg-on: #2a2f38; --seg-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --img-edge: rgba(255, 255, 255, .07); --placeholder: #5d6470; --focus-ring: rgba(236, 238, 242, .12);
    --red-line: rgba(255, 107, 112, .3); --amber-line: rgba(242, 183, 102, .3); --green-line: rgba(95, 208, 154, .28);
    --drop-hover: #1c2027; --body-ink: #d4d8df; --code-bg: #0c0e11; --target: rgba(242, 183, 102, .08);
    --live: #3fcf86; --live-ring: rgba(63, 207, 134, .2); --live-ring-2: rgba(63, 207, 134, .07);
    color-scheme: dark;
  }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.5 var(--font); font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
.ic { flex: none; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.shell { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---- header ---- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--hdr-bg); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { height: 56px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 28px; width: auto; }
.brand-sub { font-weight: 500; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line-2); line-height: 18px; }
.nav { display: flex; gap: 2px; }
.nav-a { font-weight: 500; color: var(--ink-2); padding: 6px 10px; border-radius: var(--r-sm); transition: color .12s, background .12s; }
.nav-a:hover { color: var(--ink); background: var(--grey-soft); }
.nav-a.on { color: var(--ink); background: var(--grey-soft); }
.hdr-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.adminbar { background: var(--solid); color: var(--on-solid); font-size: 12.5px; }
.adminbar-in { height: 34px; display: flex; align-items: center; justify-content: space-between; }
.adminbar-t, .adminbar-out { display: inline-flex; align-items: center; gap: 6px; }
.adminbar-out { background: none; border: 0; color: var(--on-solid-2); cursor: pointer; padding: 4px 0; }
.adminbar-out:hover { color: var(--on-solid); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--r); border: 1px solid transparent;
  font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover { background: var(--red-dk); }
.btn-dark { background: var(--solid); color: var(--on-solid); }
.btn-dark:hover { background: var(--solid-hover); }
.btn-quiet { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow); }
.btn-quiet:hover { border-color: var(--ink-3); }
.btn-warn { background: var(--surface); border-color: var(--amber-line); color: var(--amber); }
.btn-warn:hover { background: var(--amber-soft); }
.btn-danger { background: var(--surface); border-color: var(--red-line); color: var(--red-dk); }
.btn-danger:hover { background: var(--red-soft); }
.linkbtn { background: none; border: 0; padding: 0; font-weight: 500; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }

/* ---- page ---- */
.main { padding-top: 28px; padding-bottom: 56px; min-height: 70vh; }
.page-head { margin-bottom: 18px; }
.h1 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.sub { margin: 4px 0 0; color: var(--ink-2); }
.h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 500; font-size: 13px; margin-bottom: 14px; }
.back:hover { color: var(--ink); }

/* ---- board layout ---- */
.board-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 32px; align-items: start; }
.side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }

/* toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 0 11px; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--red); }
.tab-n { font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--grey-soft); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.tab.on .tab-n { color: var(--ink); background: var(--tab-n-on); }
.tools { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 10px; color: var(--ink-3); pointer-events: none; }
.search input { width: 190px; height: 32px; padding: 0 10px 0 32px; font-size: 13.5px; }
.seg { display: inline-flex; padding: 2px; background: var(--grey-soft); border-radius: var(--r); }
.seg a { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 5px 10px; border-radius: var(--r-sm); }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--seg-on); color: var(--ink); box-shadow: var(--seg-shadow); }

/* rows */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 10px 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background .1s; }
.row:hover { background: var(--hover); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row-title-t { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main:hover .row-title-t { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding-left: 31px; font-size: 12.5px; color: var(--ink-3); }
.who { color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.meta-i { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.meta-ver { font-variant-numeric: tabular-nums; }
.meta-hidden { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.row-side { display: flex; align-items: center; gap: 14px; flex: none; }
.row-status { width: 128px; display: flex; justify-content: flex-end; }
.is-done .row-title-t { color: var(--ink-2); }
.is-hidden { opacity: .55; }

.thumb { position: relative; display: block; width: 72px; height: 44px; border-radius: var(--r-sm); overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--img-edge); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-more { position: absolute; right: 3px; bottom: 3px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(26, 29, 35, .72); padding: 0 5px; border-radius: 4px; line-height: 16px; }

/* kind icon: a small tinted square */
.kind { width: 23px; height: 23px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.kind-bug { background: var(--red-soft); color: var(--red-dk); }
.kind-feature { background: var(--blue-soft); color: var(--blue); }
.kind-post { background: var(--grey-soft); color: var(--ink-2); }
.kind-update { background: var(--green-soft); color: var(--green); }
.ktag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; padding: 2px 8px 2px 6px; border-radius: var(--r-sm); }
.ktag-bug { background: var(--red-soft); color: var(--red-dk); }
.ktag-feature { background: var(--blue-soft); color: var(--blue); }
.ktag-post { background: var(--grey-soft); color: var(--ink-2); }
.ktag-update { background: var(--green-soft); color: var(--green); }

/* status tag */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; }
.st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.st-ver { font-variant-numeric: tabular-nums; opacity: .8; }
.st-open, .st-requested { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.st-open i { background: var(--red); }
.st-requested i { background: var(--ink-3); }
.st-investigating, .st-in_progress { background: var(--amber-soft); color: var(--amber); }
.st-planned { background: var(--blue-soft); color: var(--blue); }
.st-fixed, .st-shipped { background: var(--green-soft); color: var(--green); }
.st-wontfix, .st-declined, .st-duplicate { background: var(--grey-soft); color: var(--ink-3); }

.team { font-size: 11px; font-weight: 600; color: var(--red-dk); background: var(--red-soft); padding: 0 6px; border-radius: 4px; line-height: 17px; }

/* vote */
.vote {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  width: 42px; height: 46px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: border-color .12s, color .12s, background .12s;
}
.vote:hover { border-color: var(--ink-3); color: var(--ink); }
.vote.on { border-color: var(--red); color: var(--red-dk); background: var(--red-soft); }
.vote-lg { width: 48px; height: 54px; font-size: 15px; }

/* side panels */
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--surface); }
.panel-t { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 12px; }
.release-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.release-head .panel-t { margin: 0; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px var(--live-ring); }
@media (prefers-reduced-motion: no-preference) {
  .live { animation: live 2.4s ease-in-out infinite; }
  @keyframes live { 50% { box-shadow: 0 0 0 5px var(--live-ring-2); } }
}
.rel-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; }
.rel-line + .rel-line { border-top: 1px dashed var(--line); }
.rel-k { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--green); align-self: center; }
.rel-k-beta { color: var(--violet); }
.rel-v { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rel-v-sm { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.rel-note { margin: 10px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.rel-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.rel-foot a { color: var(--ink); font-weight: 500; }
.rel-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

.glance { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.glance div { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; }
.glance dt { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.glance dt .ic { color: var(--ink-3); }
.glance dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.recent li { display: flex; gap: 10px; }
.recent-ic { width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--grey-soft); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.recent-ic.is-ann { background: var(--green-soft); color: var(--green); }
.recent-b { display: flex; flex-direction: column; min-width: 0; }
.recent-t { font-weight: 500; font-size: 13px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.recent-m { font-size: 12px; color: var(--ink-3); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 56px 16px; color: var(--ink-2); }
.empty .ic { color: var(--ink-3); }
.empty p { margin: 0; }

/* ---- forms ---- */
/* :where() keeps these base styles easy to override (search box, admin tools). */
:where(input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea) {
  width: 100%; font: 14px/1.45 var(--font); color: var(--ink); background: var(--field);
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 9px 11px; box-shadow: var(--shadow);
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
:where(input, select, textarea):focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px var(--focus-ring); }
textarea { resize: vertical; min-height: 92px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b5260' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-weight: 500; font-size: 13.5px; }
.opt { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.hint { margin: 0; color: var(--ink-3); font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.alert { display: flex; gap: 8px; align-items: flex-start; background: var(--red-soft); color: var(--red-dk); border: 1px solid var(--red-line); padding: 10px 12px; border-radius: var(--r); font-weight: 500; }
.notice { display: flex; gap: 8px; align-items: center; background: var(--green-soft); color: var(--green); border: 1px solid var(--green-line); padding: 10px 12px; border-radius: var(--r); font-weight: 500; margin-bottom: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 13.5px; }

.narrow { max-width: 680px; }
.tiny { max-width: 360px; margin: 24px auto 0; }

.kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kinds legend { margin-bottom: 8px; padding: 0; }
.kind-opt input { position: absolute; opacity: 0; pointer-events: none; }
.kind-box { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-lg); cursor: pointer; background: var(--surface); box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s; }
.kind-box b { font-weight: 600; font-size: 14.5px; }
.kind-box small { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.kind-opt:hover .kind-box { border-color: var(--ink-3); }
.kind-opt input:checked + .kind-box { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.kind-opt input:focus-visible + .kind-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.kind-box .kind { width: 30px; height: 30px; border-radius: var(--r); }

.logbox summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.logbox summary::-webkit-details-marker { display: none; }
.logbox summary:hover { color: var(--ink); }
.logbox[open] summary { color: var(--ink); margin-bottom: 8px; }
.drop { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 18px; text-align: center; cursor: pointer; color: var(--ink-2); background: var(--panel); transition: border-color .12s, background .12s; }
.drop:hover, .drop.over { border-color: var(--ink-3); background: var(--drop-hover); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-t b { color: var(--ink); font-weight: 500; }
.drop-files { font-size: 12.5px; color: var(--ink-3); }

/* ---- thread page ---- */
.thread-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.thread-head { display: flex; gap: 14px; align-items: flex-start; }
.thread-titles { flex: 1; min-width: 0; }
.thread-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.thread-title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin: 0; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; color: var(--ink-3); font-size: 13px; }
.byline .who { font-size: 13px; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.65; color: var(--body-ink); margin: 20px 0 0; max-width: 68ch; }
.body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 20px; }
.gallery a { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel); box-shadow: inset 0 0 0 1px var(--img-edge); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.02); }
.gallery.one { grid-template-columns: minmax(0, 560px); }
.gallery.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: 10px; }
.log { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.log summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-weight: 500; font-size: 13px; background: var(--panel); color: var(--ink-2); list-style: none; }
.log summary::-webkit-details-marker { display: none; }
.log pre { margin: 0; padding: 12px 14px; max-height: 380px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.55; background: var(--code-bg); border-top: 1px solid var(--line); }

.comments { margin-top: 36px; }
.comments-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--grey-soft); text-transform: uppercase; }
.avatar.team-av { background: var(--red); color: #fff; }
.comment-b { flex: 1; min-width: 0; }
.comment-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.comment-h .who { color: var(--ink); font-weight: 600; }
.comment .body { margin-top: 4px; font-size: 14.5px; }
.comment:target { background: var(--target); }
.comment.is-team .body { color: var(--ink); }
.right { margin-left: auto; }
.reply { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); gap: 12px; }
.reply-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reply-name { flex: 1 1 200px; width: auto !important; }
.filebtn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 500; font-size: 13.5px; cursor: pointer; color: var(--ink-2); box-shadow: var(--shadow); }
.filebtn:hover { border-color: var(--ink-3); color: var(--ink); }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.reply .btn { align-self: flex-start; }

.facts { margin: 0; display: flex; flex-direction: column; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; }
.label-tag { font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--grey-soft); padding: 2px 8px; border-radius: var(--r-sm); }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.history li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.vote-box { display: flex; align-items: center; gap: 12px; }
.vote-box p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.admin-form { display: flex; flex-direction: column; gap: 8px; }
.admin-form + .admin-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.admin-form .btn { width: 100%; }
.admin-row { display: flex; gap: 8px; }
.admin-row form { flex: 1; }
.admin-row .btn { width: 100%; }

/* ---- updates page ---- */
.vtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vtable th, .vtable td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vtable th { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.vtable tr:last-child td { border-bottom: 0; }
.vtable td:first-child { font-weight: 500; }
.vtable td + td, .vtable th + th { text-align: right; font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.tl { position: relative; display: flex; gap: 16px; padding-bottom: 26px; }
.tl-ic { position: relative; z-index: 1; width: 27px; height: 27px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line-2); flex: none; }
.tl.update .tl-ic { color: var(--green); box-shadow: 0 0 0 1px var(--green-line); background: var(--green-soft); }
.tl-b { flex: 1; min-width: 0; padding-top: 3px; }
.tl-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.tl-t { font-size: 15px; font-weight: 600; margin: 0; }
.tl-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tl-v { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-m { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.tl .body { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.chan { font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 999px; }
.chan-stable { background: var(--green-soft); color: var(--green); }
.chan-beta { background: var(--violet-soft); color: var(--violet); }

/* ---- footer ---- */
.ftr { border-top: 1px solid var(--line); }
.ftr-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 28px; color: var(--ink-3); font-size: 12.5px; }
.ftr-nav { display: flex; gap: 18px; }
.ftr-nav a:hover { color: var(--ink); }

/* ---- small screens ---- */
@media (max-width: 960px) {
  .board-layout, .thread-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .side { position: static; order: -1; }
  .side .panel:not(.release) { display: none; }
  .thread-layout .side { order: 0; }
  .thread-layout .side .panel { display: block; }
}
@media (max-width: 640px) {
  .shell { padding: 0 16px; }
  .hdr-in { gap: 12px; }
  .brand img { height: 24px; }
  .brand-sub { display: none; }
  .nav-a { padding: 6px 8px; }
  .hide-sm { display: none; }
  .main { padding-top: 18px; }
  .h1 { font-size: 20px; }
  .sub { font-size: 13px; }
  .toolbar { border-bottom: 0; gap: 0; }
  .tabs { width: 100%; border-bottom: 1px solid var(--line); gap: 16px; }
  .tools { width: 100%; padding: 10px 0 6px; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .row { gap: 10px; padding: 12px 0; align-items: flex-start; }
  .row-title-t { white-space: normal; }
  .row-meta { padding-left: 0; }
  .row-title .kind { display: none; }
  .row-side { flex-direction: column; align-items: flex-end; gap: 6px; }
  .row-status { width: auto; }
  .thumb { width: 56px; height: 36px; }
  .vote { width: 38px; height: 42px; }
  .release .rel-note, .release .rel-foot { display: none; }
  .kinds { grid-template-columns: 1fr; }
  .kind-box { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 10px; }
  .kind-box small { flex-basis: 100%; }
  .grid2 { grid-template-columns: 1fr; }
  .thread-title { font-size: 20px; }
  .ftr-in { flex-direction: column; }
}

/* ---- theme toggle and the logo per theme ---- */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow); }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-btn .ic-sun, .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ic-sun, :root:not([data-theme="light"]) .logo-dark { display: block; }
  :root:not([data-theme="light"]) .theme-btn .ic-moon, :root:not([data-theme="light"]) .logo-light { display: none; }
}
:root[data-theme="dark"] .theme-btn .ic-sun, :root[data-theme="dark"] .logo-dark { display: block; }
:root[data-theme="dark"] .theme-btn .ic-moon, :root[data-theme="dark"] .logo-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aab0bb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
}
:root[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aab0bb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* Header actions: full labels on wide screens, icon squares on phones. */
.sub-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sub-link:hover { text-decoration-color: var(--ink); }
@media (max-width: 640px) {
  .btn-ico-sm { width: 34px; padding: 0; }
}
@media (max-width: 380px) {
  .shell { padding: 0 12px; }
  .hdr-in { gap: 6px; }
  .brand img { height: 22px; }
  .nav { gap: 0; }
  .nav-a { padding: 6px 6px; }
  .hdr-actions { gap: 5px; }
  .theme-btn, .btn-ico-sm { width: 32px; height: 32px; }
}

/* ---- bugs at a glance, in the header ---- */
.hstat { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.hstat a:hover { color: var(--ink); }
.hstat b { font-weight: 600; color: var(--ink); }
.hstat-total { display: inline-flex; align-items: center; gap: 5px; }
.hstat-total .ic { color: var(--ink-3); }
.hstat-bar { display: flex; width: 64px; height: 6px; border-radius: 999px; overflow: hidden; background: var(--line); }
.hstat-bar i { display: block; height: 100%; }
.hstat-i { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.hstat .f { background: var(--green); }
.hstat .w { background: var(--amber); }
.hstat .o { background: var(--red); }
.hstat-bar .f { background: var(--green); }
.hstat-bar .w { background: var(--amber); }
.hstat-bar .o { background: var(--red); }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 2px; font-size: 13px; color: var(--ink-2); }
.filter-chip a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* Not enough room beside the nav: the strip takes its own row under it. */
@media (max-width: 1040px) {
  .hdr-in { flex-wrap: wrap; height: auto; min-height: 56px; padding-top: 11px; padding-bottom: 11px; row-gap: 10px; }
  .hstat { order: 3; width: 100%; justify-content: space-between; height: 32px; }
  .hstat-bar { flex: 1; max-width: 160px; }
}
@media (max-width: 640px) {
  .hstat { gap: 8px; padding: 0 10px; font-size: 12px; }
  .hstat-total span { display: none; }
  .hstat-bar { display: none; }
}
.hstat { margin-left: auto; }
.hstat + .hdr-actions { margin-left: 0; }
@media (max-width: 1040px) {
  .hstat { margin-left: 0; }
  .hstat + .hdr-actions { margin-left: auto; }
}
/* Fit the strip and both buttons inside the 1072px column. */
.hdr-in { gap: 20px; }
.hstat { gap: 10px; padding: 0 11px; }
.hstat-bar { width: 46px; }
@media (max-width: 1040px) { .hstat-bar { width: auto; } }

/* ---- composer (new post) ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compose-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.kind-row { display: flex; gap: 8px; border: 0; padding: 0; margin: 0; }
.kind-pill input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pill-b { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 9px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s; }
.kind-pill-b b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.kind-pill-b small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.kind-pill:hover .kind-pill-b { border-color: var(--ink-3); }
.kind-pill input:checked + .kind-pill-b { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.kind-pill input:focus-visible + .kind-pill-b { outline: 2px solid var(--ink); outline-offset: 2px; }
.kind-pill .kind { width: 28px; height: 28px; border-radius: var(--r); }

.compose { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.compose-main { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.compose-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.compose-side .panel { display: flex; flex-direction: column; gap: 14px; }
.compose-side .panel-t { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.input-lg { font-size: 16px !important; padding: 11px 13px !important; font-weight: 500; }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qwide { grid-column: 1 / -1; }
.qn { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; margin-right: 7px; border-radius: 50%; background: var(--grey-soft); color: var(--ink-2); font-size: 11.5px; font-weight: 600; vertical-align: 1px; }
.tip { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r); background: var(--panel); color: var(--ink-2); font-size: 13px; }
.tip .ic { color: var(--amber); }
.pills { display: flex; gap: 8px; }
.pill { flex: 1; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--field); font-weight: 500; cursor: pointer; color: var(--ink-2); box-shadow: var(--shadow); }
.pill:hover span { border-color: var(--ink-3); color: var(--ink); }
.pill input:checked + span { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.drop-sm { padding: 14px; flex-wrap: wrap; }
.btn-block { width: 100%; }
.send .cancel { align-self: center; font-size: 13px; color: var(--ink-3); }
.send .cancel:hover { color: var(--ink); }

@media (max-width: 960px) {
  .compose { grid-template-columns: minmax(0, 1fr); }
  .compose-side { position: static; }
}
@media (max-width: 640px) {
  .compose-top { align-items: stretch; }
  .kind-row { width: 100%; }
  .kind-pill { flex: 1; }
  .kind-pill-b { flex-direction: column; text-align: center; padding: 10px 6px; gap: 6px; }
  .kind-pill-b small { display: none; }
  .qgrid { grid-template-columns: 1fr; }
  .compose-main { padding: 16px; }
}
/* Sending sits under the questions, so the whole form fits one screen. */
.compose-main .send { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.compose-main .send .field { margin: 0; }
.compose-main .send .cf-turnstile { grid-column: 1 / -1; }
.compose-main .send .btn-block { width: auto; min-width: 190px; }
.compose-main .send .cancel { grid-column: 2; justify-self: center; }
@media (max-width: 640px) {
  .compose-main .send { grid-template-columns: 1fr; }
  .compose-main .send .btn-block { width: 100%; }
  .compose-main .send .cancel { grid-column: 1; }
}
.compose-main .send { align-items: start; }
.compose-main .send .field { grid-row: 1; grid-column: 1; }
.compose-main .send .btn-block { grid-row: 1; grid-column: 2; margin-top: 25px; }
.compose-main .send .cf-turnstile { grid-row: 2; grid-column: 1; }
.compose-main .send .cancel { grid-row: 2; grid-column: 2; padding-top: 6px; }
@media (max-width: 640px) {
  .compose-main .send .field, .compose-main .send .btn-block, .compose-main .send .cf-turnstile, .compose-main .send .cancel { grid-column: 1; grid-row: auto; margin-top: 0; }
}

/* ---- composer, simplified (2026-10-17): a title, one description, the VidLift details beside ---- */
.compose-main { gap: 14px; padding: 18px; }
.title-in { font-size: 18px !important; font-weight: 600; padding: 12px 14px !important; }
.body-in { min-height: 300px; font-size: 15px !important; line-height: 1.6 !important; padding: 12px 14px !important; }
.compose-main .send { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 4px; border-top: 0; }
.compose-main .send .field { flex: 1 1 220px; }
.compose-main .send .cf-turnstile { flex-basis: 100%; order: 3; }
.compose-main .send .btn { flex: none; min-width: 180px; margin-top: 0; }
.compose-side .panel { gap: 0; padding: 0; }
.side-group { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.side-group + .side-group { border-top: 1px solid var(--line); }
.side-group[hidden] + .side-group { border-top: 0; }
.side-group .logbox textarea { margin-top: 8px; }
@media (max-width: 640px) {
  .compose-main .send .btn { width: 100%; }
  .body-in { min-height: 220px; }
}
