/* TherapistTube: calm clinical-library look. One accent (deep teal). */
:root {
  --bg: #f6f4ef;
  --surface: #fffdf9;
  --surface-2: #efece4;
  --ink: #1e2a2d;
  --muted: #5a6669;
  --line: #d3cdc0;
  --accent: #2c6e6a;
  --accent-ink: #ffffff;
  --accent-soft: #e1ecea;
  --focus: #2c6e6a;
  --shadow: 0 1px 2px rgba(30, 42, 45, .06), 0 4px 14px rgba(30, 42, 45, .05);
  --radius: 10px;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121719;
    --surface: #192023;
    --surface-2: #20292c;
    --ink: #e4e8e6;
    --muted: #9aa6a7;
    --line: #2b3539;
    --accent: #7dbdb3;
    --accent-ink: #0f1a19;
    --accent-soft: #1f3331;
    --focus: #8fd1c7;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121719;
  --surface: #192023;
  --surface-2: #20292c;
  --ink: #e4e8e6;
  --muted: #9aa6a7;
  --line: #2b3539;
  --accent: #7dbdb3;
  --accent-ink: #0f1a19;
  --accent-soft: #1f3331;
  --focus: #8fd1c7;
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 16px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }

/* header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
}
.header-row { display: flex; align-items: center; gap: 20px; padding-block: 12px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); margin-right: 9px; vertical-align: 2px; }
.search { position: relative; flex: 1 1 260px; max-width: 460px; }
.search input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 40px 8px 16px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.search-hint {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 600 .75rem var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px;
}
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--accent); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { color: var(--accent); }
@media (max-width: 640px) {
  .header-row { gap: 10px 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search-hint { display: none; }
  .nav { gap: 14px; }
}

.banner { background: var(--accent-soft); color: var(--ink); border-bottom: 1px solid var(--line); font-size: .9rem; }
.banner .wrap { padding-block: 8px; }

main { flex: 1; padding-block: 24px 48px; outline: none; }
.loading { color: var(--muted); }
.page-title { font-size: 1.75rem; margin: 8px 0 12px; }
.lede { font-size: 1.075rem; max-width: 62ch; }

/* filters */
.filters { display: grid; gap: 10px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.filter-row { display: flex; gap: 12px; align-items: flex-start; }
.filter-row.split { flex-wrap: wrap; gap: 10px 32px; }
.filter-row .sub { display: flex; gap: 12px; align-items: flex-start; }
.filter-label { flex: 0 0 auto; width: 68px; padding-top: 5px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.filter-row.split .filter-label { width: auto; }
.filter-row:first-child .filter-label { width: 68px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: .9rem; line-height: 1.2; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips.collapsed .chip-extra { display: none; }
.chip-more { background: transparent; border-style: dashed; color: var(--accent); font-weight: 600; }
.chip-more:hover { background: var(--surface); }
@media (max-width: 560px) {
  .filter-row, .filter-row .sub { flex-direction: column; gap: 6px; }
  .filter-label, .filter-row:first-child .filter-label { width: auto; padding-top: 0; }
}

/* shelves */
.shelf { margin-top: 28px; }
.shelf-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.shelf-head h2 { font-size: 1.3rem; }
.shelf-head h3 { font-size: 1.1rem; }
.shelf-sub { color: var(--muted); font-size: .9rem; }
.group-head { margin-top: 40px; font-size: .8rem; font-family: var(--sans); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }
.group-head + .shelf { margin-top: 12px; }
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 18px;
  overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 14px; margin: 0 -2px;
  scrollbar-width: thin;
}
.row > .card { scroll-snap-align: start; }
@media (max-width: 560px) { .row { grid-auto-columns: 74%; gap: 14px; } }
.shelf-pending { opacity: .95; }
.surprise { margin-top: 32px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; margin-top: 12px; }

/* card */
.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card:focus-visible { outline-offset: 3px; border-radius: var(--radius); }
.thumb { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.card-title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-by { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: .85rem; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; }
.dot { color: var(--muted); padding-inline: 5px; }
.tag { color: var(--accent); font-weight: 700; }
.pending-badge {
  display: inline-block; align-self: flex-start; margin-top: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .03em;
  color: var(--muted); border: 1px dashed var(--muted); border-radius: 4px; padding: 1px 6px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; cursor: pointer; text-decoration: none; min-height: 40px;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); min-width: 72px; }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-quiet { background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-status { color: var(--accent); font-weight: 600; font-size: .9rem; }

.empty { padding: 48px 0; text-align: center; }
.empty p { margin: 6px 0; }

/* video page */
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 960px) { .video-layout { grid-template-columns: minmax(0, 1fr); } }
.player { position: relative; aspect-ratio: 16 / 9; background: #0d1112; border-radius: var(--radius); overflow: hidden; }
.player iframe, .player > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 16px; color: #e4e8e6; }
.player-msg p { margin: 4px 0; }
.player-msg .muted { color: #a9b4b5; }
/* error panel: flows in the box and lets the box grow, so buttons are never clipped on a narrow screen */
.player > .player-msg-err { position: relative; inset: auto; height: auto; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; box-sizing: border-box; padding: 20px 16px; }
.player:has(.player-msg-err) { aspect-ratio: auto; min-height: 220px; }
.player-err-head { font-size: 1.1rem; font-weight: 600; }
.player-err-actions { justify-content: center; margin-top: 12px; }
.player-msg-err .btn { color: var(--ink); }
.path-gone { margin: -6px 0 12px; }
.gone-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.gone-item { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.sample-frame { background: repeating-linear-gradient(135deg, #172022 0 14px, #1b2629 14px 28px); }
.video-title { font-size: 1.6rem; margin: 18px 0 6px; }
.video-by { color: var(--muted); margin: 0 0 10px; }
.video-summary { max-width: 70ch; margin: 0 0 20px; }

.why { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.why-head { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.why dl { margin: 0; }
.why-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.why-row:first-child { border-top: 0; }
.why-row dt { font-weight: 700; color: var(--muted); font-size: .9rem; padding-top: 1px; }
.why-row dd { margin: 0; }
.why-row q { font-family: var(--serif); font-style: italic; }
.why-aside { display: inline-block; color: var(--muted); font-size: .9rem; margin-left: 4px; }
.consent-quote { display: block; margin-top: 4px; }
@media (max-width: 560px) { .why { padding: 16px; } .why-row { grid-template-columns: 1fr; } }
.stamp {
  font: 600 .85rem var(--sans); font-variant-numeric: tabular-nums; color: var(--accent); background: var(--accent-soft);
  border: 1px solid transparent; border-radius: 6px; padding: 1px 8px; cursor: pointer; margin-left: 4px; white-space: nowrap;
}
.stamp:hover { border-color: var(--accent); }
.disclaimer { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.disclaimer p { margin: 0 0 8px; }
.correction summary { cursor: pointer; color: var(--accent); font-weight: 600; display: inline-block; }
.correction[open] summary { margin-bottom: 8px; }
.correction textarea, .results-json {
  width: 100%; font: .9rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical;
}
.addr { color: var(--ink); user-select: all; }

.up-next h2 { font-size: 1.15rem; margin-bottom: 12px; }
.next-list { display: grid; gap: 14px; }
.next-list .card { flex-direction: row; }
.next-list .thumb { flex: 0 0 132px; aspect-ratio: 16 / 9; height: auto; align-self: flex-start; }
.next-list .card-body { padding: 6px 10px; min-width: 0; }
.next-list .card-title { font-size: .92rem; }
.next-list .card-by, .next-list .card-meta { font-size: .8rem; }
@media (max-width: 960px) and (min-width: 561px) { .next-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* compare */
.cmp { margin-top: 12px; }
.cmp-q { font-size: 1.35rem; margin-bottom: 18px; }
.cmp-q em { color: var(--accent); }
.cmp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
@media (max-width: 560px) { .cmp-pair { grid-template-columns: 1fr; } }
.cmp-side { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cmp-side figcaption { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.cmp-letter { font: 700 .8rem var(--sans); letter-spacing: .08em; color: var(--accent); }
.cmp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cmp-progress { margin-top: 10px; }
.cmp-done { padding: 24px 0; }
.cmp-results { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.cmp-results h2 { font-size: 1.15rem; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
.tally { border-collapse: collapse; width: 100%; max-width: 900px; font-size: .92rem; }
.tally th, .tally td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tally th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tally td:not(:first-child), .tally th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

/* about */
.about { max-width: 720px; }
.about h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.about ol { padding-left: 1.3em; }
.about li { margin-bottom: 6px; }
.notice { background: var(--accent-soft); border-radius: 8px; padding: 10px 14px; }
.pending-list { margin-top: 28px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: var(--surface); }
.pending-list summary { cursor: pointer; font-weight: 600; }
.pending-list ul { margin: 10px 0 4px; padding-left: 1.2em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: .88rem; color: var(--muted); }
.site-footer .wrap { padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.site-footer p { margin: 0 0 6px; max-width: 90ch; }
.footer-legal { color: var(--muted); font-size: .88rem; }

/* TV mode */
body.tv-on { overflow: hidden; }
.tv {
  position: fixed; inset: 0; z-index: 100; background: #070a0b; color: #e4e8e6;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
}
.tv-stage { position: relative; }
.tv-stage iframe, .tv-stage > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-strip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px)); background: #111719; border-top: 1px solid #243034;
}
.tv-why { display: flex; flex-direction: column; min-width: 0; }
.tv-title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-line { color: #b4c0c1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-ctrls { display: flex; gap: 8px; align-items: center; }
.tv-pos { color: #9aa6a7; font-variant-numeric: tabular-nums; margin-right: 6px; }
.tv-btn { font: 600 .9rem var(--sans); color: #e4e8e6; background: #1c2629; border: 1px solid #324146; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.tv-btn:hover { border-color: #7dbdb3; }
.tv-keys { grid-column: 1 / -1; font-size: .78rem; color: #7f8b8c; }
.tv-empty { display: grid; place-content: center; gap: 12px; text-align: center; }
@media (max-width: 560px) {
  .tv-strip { grid-template-columns: 1fr; padding-inline: 16px; }
  .tv-keys { display: none; }
}

/* 2026-11-08: notes tick, key moments, transcript, transcript search, presets, About numbers */
mark { background: var(--mark, #f3e2a6); color: inherit; border-radius: 2px; padding: 0 1px; }
:root[data-theme="dark"] mark { background: #5b4b1c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) mark { background: #5b4b1c; } }
.notes-tick {
  display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; margin-top: 4px;
  font-size: .75rem; font-weight: 700; color: var(--accent); letter-spacing: .02em;
}
.thin-line { margin: 4px 0 0; }
.video-meta { color: var(--muted); margin: -4px 0 10px; font-size: .95rem; }
.moments { display: flex; gap: 10px; align-items: center; margin-top: 12px; min-width: 0; }
.moments-label { flex: 0 0 auto; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.moments-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; min-width: 0; }
.moment {
  flex: 0 0 auto; font: 600 .85rem var(--sans); font-variant-numeric: tabular-nums; color: var(--accent);
  background: var(--accent-soft); border: 1px solid transparent; border-radius: 999px; padding: 4px 12px; cursor: pointer; white-space: nowrap;
}
.moment:hover { border-color: var(--accent); }
@media (max-width: 560px) { .moments { flex-direction: column; align-items: flex-start; gap: 4px; } .moments-row { max-width: 100%; } }

.transcript { margin-top: 18px; }
.tr-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.tr-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 4px; }
.tr-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.tr-panel { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tr-note { margin: 0 0 8px; }
.tr-find input {
  width: 100%; max-width: 420px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px;
}
.tr-lines { list-style: none; margin: 8px 0 0; padding: 0; max-height: 420px; overflow-y: auto; border-top: 1px solid var(--line); }
.tline {
  display: flex; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none;
  border: 0; border-radius: 4px; padding: 4px 6px; cursor: pointer;
}
.tline:hover { background: var(--accent-soft); }
.tline-t { flex: 0 0 4.2em; color: var(--accent); font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.tline-x { min-width: 0; }

.tx-results { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.tx-results h2 { font-size: 1.25rem; margin-bottom: 6px; }
.tx-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 16px; }
.tx-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tx-title { font-weight: 600; text-decoration: none; color: var(--ink); }
.tx-title:hover { color: var(--accent); }
.tx-by { display: block; margin-top: 1px; }
.tx-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.tx-lines li { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.tx-lines .stamp { margin-left: 0; text-decoration: none; flex: 0 0 auto; }
.tx-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .tx-text { white-space: normal; } }

.tv-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-right: 8px; }
.tv-preset[aria-pressed="true"] { background: #7dbdb3; border-color: #7dbdb3; color: #0f1a19; }
.tv-empty .tv-presets { justify-content: center; margin: 0; }
@media (max-width: 560px) { .tv-ctrls { flex-wrap: wrap; } }

.numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0; }
.numbers > div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.numbers dt { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.numbers dd { margin: 4px 0 0; font: 600 1.4rem var(--serif); font-variant-numeric: tabular-nums; }
.checklist { padding-left: 1.2em; }
.checklist li { margin-bottom: 4px; }
.channels td:nth-child(2) { text-align: center; }

/* Filters toggle: one button at every width (2026-11-10; was phone-only since 2026-11-08). Styles further down. */

/* 2026-11-08: paths */
.path-kicker { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.path-card .card-title { margin-top: 1px; }
.path-page { max-width: 860px; }
.path-page > .path-kicker { margin: 8px 0 0; }
.path-page .page-title { margin-top: 2px; }
.path-meta { margin: 6px 0 14px; }
.path-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.path-step {
  display: grid; grid-template-columns: 28px 200px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.path-num { font: 600 1.15rem var(--serif); color: var(--accent); text-align: center; padding-top: 2px; font-variant-numeric: tabular-nums; }
.path-thumb { border-radius: 6px; }
.path-step-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.path-step-title { font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; }
.path-step-title:hover { color: var(--accent); }
.path-watch { margin: 6px 0 0; font-size: .95rem; }
.path-watch-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
@media (max-width: 600px) {
  .path-step { grid-template-columns: 24px minmax(0, 1fr); gap: 8px 10px; }
  .path-thumb { grid-column: 2; }
  .path-step-body { grid-column: 2; }
}
.path-nav {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  margin-top: 12px; padding: 8px 12px; background: var(--accent-soft); border-radius: 8px; font-size: .92rem;
}
.path-nav-pos { text-align: center; min-width: 0; }
.path-nav-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.path-nav-link.prev::before { content: "← "; }
.path-nav-link.next::after { content: " →"; }
.path-nav-gap { min-width: 1px; }

/* 2026-11-09 v2: therapist-first home, cards with a skill line and Save, video lead rows, Saved page */
.nav-count {
  display: inline-block; min-width: 1.4em; margin-left: 6px; padding: 0 6px; border-radius: 999px; text-align: center;
  font-size: .75rem; line-height: 1.5; background: var(--accent-soft); color: var(--accent); font-variant-numeric: tabular-nums;
}
.nav a[aria-current="page"] { color: var(--accent); }
.btn-link { font: inherit; font-size: .9rem; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.btn-small { min-height: 34px; padding: 5px 12px; font-size: .9rem; }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* controls */
.controls { display: grid; gap: 14px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.controls .filters { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.controls-q { font-size: 1.35rem; margin: 0 0 10px; }
.topic-chips .chip { font-size: .95rem; padding: 7px 14px; }
.view-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.count-line { margin: 0; font-weight: 600; flex: 1 1 280px; }
.view-ctrls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.lang-pick select {
  font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 30px 6px 10px; min-height: 36px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.lang-pick select:hover { border-color: var(--accent); }
.wide-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); cursor: pointer; }
.wide-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.wide-toggle:hover { color: var(--ink); }
@media (max-width: 600px) {
  .controls-q { font-size: 1.2rem; margin-bottom: 8px; }
  .filters-wrap .filters-toggle { margin-bottom: 0; }
  .count-line { flex-basis: 100%; }
}

/* shelves */
.shelf-count { color: var(--muted); font-size: .9rem; }
.see-all { margin-left: auto; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.shelf-closed { border-top: 1px solid var(--line); padding-top: 14px; }
.shelf-closed > summary { cursor: pointer; list-style: none; }
.shelf-closed > summary::-webkit-details-marker { display: none; }
.shelf-closed > summary::before {
  content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg); align-self: center; margin-right: 2px;
}
.shelf-closed[open] > summary::before { transform: rotate(45deg); }
.shelf-closed > summary h2 { font-size: 1.15rem; color: var(--ink); }
.shelf-closed:not([open]) > summary { margin-bottom: 0; }
.shelf-foot { margin: 4px 0 0; }
.crumb { margin: 0 0 4px; font-size: .92rem; }
.page-kicker { display: block; font: 700 .75rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.grid-sub { margin: -6px 0 12px; }
#shelf-grid { margin-top: 18px; }
.grid-more { margin-top: 22px; text-align: center; }

/* card v2: article, title link stretched over the card, Save as a sibling button */
.card { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }
.card:hover .card-title { color: var(--accent); }
.card-line { font-size: .88rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-line-skill { color: var(--ink); }
.card-line-summary { color: var(--muted); }
.card-line-unreviewed { color: var(--muted); font-style: italic; }
.card-outside { font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.card-body { flex: 1; }
.card-foot .card-meta { flex: 1 1 auto; min-width: 0; }
.save-btn {
  position: relative; z-index: 1; flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; margin: -4px -6px -6px 0;
  color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer;
}
.save-btn:hover { color: var(--accent); border-color: var(--line); background: var(--surface-2); }
.save-btn[data-saved] { color: var(--accent); }
.save-btn:focus-visible { outline-offset: 0; }
.next-list .card-line { -webkit-line-clamp: 1; font-size: .8rem; }
.next-list .card-foot { padding-top: 0; }
.next-list .card-meta { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* video page */
.video-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.video-sub .video-by { margin: 0; }
.video-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.lead { margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; box-shadow: var(--shadow); }
.lead-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 4px 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.lead-row:first-child { border-top: 0; }
.lead-row dt { font: 700 .75rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.lead-row dd { margin: 0; max-width: 68ch; }
.lead-skill { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; line-height: 1.4; }
.lead-unreviewed { margin: 0 0 16px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.lead-unreviewed p { margin: 0; }
.jump-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.jump {
  display: flex; gap: 12px; align-items: baseline; width: 100%; text-align: left; font: inherit; color: var(--ink);
  background: none; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; margin-left: -8px; cursor: pointer;
}
.jump:hover { background: var(--accent-soft); }
.jump-t { flex: 0 0 auto; min-width: 3.6em; font: 600 .88rem var(--sans); font-variant-numeric: tabular-nums; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 8px; text-align: center; }
.jump-x { min-width: 0; display: flex; flex-direction: column; }
.jump-label { font-weight: 600; }
.jump-q { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: .95rem; }
@media (max-width: 560px) {
  .lead { padding: 4px 16px; }
  .lead-row { grid-template-columns: 1fr; }
  .lead-row dt { padding-top: 0; }
}
.disclose { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.disclose > summary { cursor: pointer; padding: 12px 18px; font-weight: 600; border-radius: var(--radius); }
.disclose > summary:hover { color: var(--accent); }
.disclose[open] > summary { border-bottom: 1px solid var(--line); }
.disclose .why { border: 0; box-shadow: none; margin: 0; padding: 4px 18px 10px; background: transparent; border-radius: 0; }
.disclose .tr-panel { margin: 0; border: 0; border-radius: 0; background: transparent; }
.video-main > .disclaimer { border-top: 0; padding-top: 4px; }

/* saved */
.device-note { margin-top: -4px; }
.saved-sec { margin-top: 28px; }
.saved-sec h2 { font-size: 1.25rem; }
.empty-line { margin: 10px 0 0; }

/* about: maintainer block */
.maintainer { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 14px; }
.maintainer > summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.maintainer[open] > summary { margin-bottom: 8px; }
.outside-inline { font-weight: 700; }
.flash {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  max-width: calc(100% - 32px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: .92rem; box-shadow: var(--shadow);
}

/* 2026-11-10 phone polish: tap targets at least 44px tall on phone. Min-heights and padding only; desktop sizes unchanged. */
@media (max-width: 560px) {
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .chip { min-height: 44px; }
  .btn-small { min-height: 44px; }
  .player-msg-err .btn { min-height: 44px; }
  .save-btn { width: 44px; height: 44px; min-height: 44px; margin: -9px -11px -11px 0; }
}

/* 2026-11-10 design polish: one Filters button at every width, swipeable topic row on phone, duration badge,
   bigger shelf cards with a peek of the fifth, filled chips, darker light-theme lines. */
.chip { background: var(--surface-2); }
.chip:hover { background: var(--surface); }
.chip[aria-pressed="true"]:hover { background: var(--accent); }
.controls { gap: 8px; padding-bottom: 12px; grid-template-columns: minmax(0, 1fr); }
.controls > * { min-width: 0; } /* a nowrap chip row must scroll inside its box, never widen the page */
main { padding-top: 12px; }
.topics-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.topics-head .controls-q { margin: 0; }
.filters-toggle { flex: 0 0 auto; gap: 7px; min-height: 34px; padding: 5px 14px; white-space: nowrap; }
.filters-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 2px; }
.filters-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.filters-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.controls .filters-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.filter-row.panel-view { align-items: center; }
.filter-row.panel-view .filter-label { padding-top: 0; }
.view-line { gap: 6px 18px; }
.count-line { flex: 1 1 260px; font-size: .95rem; }
.controls + .shelf { margin-top: 16px; }
.shelf-head { margin-bottom: 10px; }

/* duration on the thumbnail */
.thumb { position: relative; }
.dur-badge {
  position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .8); color: #fff;
  font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; padding: 3px 5px; border-radius: 4px; pointer-events: none;
}
.next-list .dur-badge { right: 4px; bottom: 4px; font-size: 11px; padding: 2px 4px; }

/* cards: 15px titles; the skill line keeps two lines */
.card-title { font-size: 15px; line-height: 1.3; font-weight: 600; }
.card-line-skill { -webkit-line-clamp: 2; }

/* shelf rows: whole cards plus a deliberate peek of the next one (gap 18px) */
@media (min-width: 561px) { .row { grid-auto-columns: calc((100% - 36px) / 2.25); } }
@media (min-width: 820px) { .row { grid-auto-columns: calc((100% - 54px) / 3.25); } }
@media (min-width: 1080px) { .row { grid-auto-columns: calc((100% - 72px) / 4.25); } }

@media (max-width: 560px) {
  /* topic chips: one swipeable row that bleeds to the screen edges; every topic is in the row, so no "More" */
  .topic-chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; padding-block: 2px;
  }
  .topic-chips::-webkit-scrollbar { display: none; }
  .topic-chips .chip { flex: 0 0 auto; white-space: nowrap; }
  .topic-chips.collapsed .chip-extra { display: inline-block; }
  .topic-chips .chip-more { display: none; }
  .topics-head { margin-bottom: 8px; }
  /* 36px visible box, 44px tap area (::before); the small negative margin keeps the heading row at the heading's height */
  .filters-toggle { position: relative; min-height: 36px; margin-block: -3px; }
  .filters-toggle::before { content: ""; position: absolute; inset: -4px 0; }
  .controls { gap: 6px; padding-bottom: 10px; }
  .controls .filters-panel { padding: 12px; margin-top: 4px; }
  .filter-row.panel-view { align-items: flex-start; }
  main { padding-top: 8px; }
  .controls + .shelf { margin-top: 10px; }
  .shelf-head { margin-bottom: 8px; }
  .header-row { padding-block: 10px; }
  .count-line { font-size: .9rem; }
}
