:root {
  color-scheme: light;
  --paper: #f3f4f5;
  --surface: #fff;
  --ink: #17181a;
  --muted: #60656b;
  --border: #dedfe2;
  --rule: #ebeced;
  --signal: #1d5fbf;
  --radius: 8px;
  --sans: "Geist", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --mono: "Geist Mono", "Cascadia Mono", Consolas, monospace;
  --reading-size: 1.125rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button:not(:disabled), a[href] { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 96px), 1328px);
  margin: 0 auto;
}

.brand {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #222428;
  font-weight: 650;
}

.archive-mark {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #34363a;
  border-radius: 50%;
}

.archive-mark i { height: 10px; width: 2px; border-radius: 3px; background: #2a2b2d; }
.archive-mark i:nth-child(2) { height: 15px; }
.brand-divider { display: inline-block; width: 1px; height: 12px; margin: 0 12px; vertical-align: -1px; background: #cccfd3; }
.brand-muted { color: #595e65; font-weight: 450; }
.local-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.local-status i { width: 6px; height: 6px; border-radius: 50%; background: #8b8d91; }
.local-status.available i { background: var(--signal); }

.page-header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 33px 0 20px; }
.page-header h1 { font-family: var(--serif); font-size: 31px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; margin: 0; }
.page-header p { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.archive-heading {display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.archive-heading h1 {margin-right:7px}
.archive-tool {display:inline-flex;gap:6px;align-items:center;padding:5px 9px;min-height:30px;color:#37485d;background:#fff;border:1px solid #d6dde6;border-radius:6px;font-size:12px;cursor:pointer}
.archive-tool:hover,.archive-tool[aria-expanded=true] {color:var(--signal);border-color:#99b5da;background:#f5f8fc}
.archive-tool svg {width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5}
.tool-chevron {width:6px;height:6px;margin:-3px 1px 0 2px;border:solid currentColor;border-width:0 1.4px 1.4px 0;transform:rotate(45deg)}
#clear-episode {color:var(--signal);background:#edf4ff;border-color:#bbd0ee;font-variant-numeric:tabular-nums}
.archive-popover {position:fixed;inset:auto;margin:0;padding:0;border:1px solid #ccd6e2;border-radius:12px;color:var(--ink);background:#fff;box-shadow:0 10px 45px #172b4a24,0 2px 7px #172b4a0c;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto}
#episode-calendar {width:288px;padding:13px}
.month-controls,.month-controls>div,.calendar-key,.glossary-top {display:flex;align-items:center}
.month-controls,.glossary-top {justify-content:space-between;gap:8px}
.month-controls button,.month-controls select {font:inherit;background:#fff;color:var(--ink);border:0;cursor:pointer;border-radius:4px}
.month-controls button {font-size:22px;line-height:28px;width:30px}
.month-controls button:disabled {opacity:.25;cursor:default}
.month-controls select {font-size:14px;font-weight:650;padding:3px 0}
.calendar-week,.calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.calendar-week {font-size:11px;color:var(--muted);margin:12px 0 5px}
.calendar-grid>span,.air-day {display:grid;place-items:center;min-height:29px;font:13px var(--mono);border-radius:5px}
.calendar-grid>span {color:#7d8490}
.air-day {background:#dceaff;border:1px solid #c3d8fb;color:#174e98;cursor:pointer;font-weight:650}
.air-day:hover,.air-day:focus-visible,.air-day[aria-pressed=true] {background:var(--signal);border-color:var(--signal);color:#fff}
.calendar-key {gap:6px;margin-top:11px;padding-top:8px;border-top:1px solid var(--rule);font-size:11px;color:var(--muted)}
.calendar-key i {width:9px;height:9px;border-radius:2px;background:#b6d2fa}
#month-count {margin-left:auto}
#archive-glossary {width:430px}
.glossary-top {padding:12px 16px;border-bottom:1px solid var(--rule)}
.glossary-top h2 {margin:0;font-size:15px}
.glossary-top input {width:min(52%,180px);padding:4px 8px;border:1px solid var(--border);border-radius:5px;font-size:13px}
.glossary-scroll {max-height:min(53dvh,440px);overflow:auto;overscroll-behavior:contain;padding:4px 16px 14px}
.glossary-scroll h3 {font-size:12px;color:var(--signal);margin:14px 0 3px}
.glossary-scroll dl,.glossary-scroll dd {margin:0}
.glossary-scroll dl>div {display:grid;grid-template-columns:minmax(96px,.9fr) 1.6fr;gap:12px;padding:7px 0;border-bottom:1px solid var(--rule);font-size:13px;line-height:1.6}
.glossary-scroll dt {font-weight:600}
.glossary-scroll dd {color:#445162}
@media (max-width:720px) {
  .page-header:has(.archive-heading) {flex-wrap:wrap;align-items:center;gap:5px 12px}
  .archive-heading {gap:5px}
  .archive-tool {padding:4px 7px}
}
/* A 320 px catalogue, 24 px gutter, and the detail pane share both shell edges. */
.workspace { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 138px; }
.catalog { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 7px; min-width: 0; }
.card-list { grid-column: 1 / -1; }
.catalog-control {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #d6d8db;
  border-radius: 7px;
  background: var(--surface);
  color: #495260;
  font-size: 12px;
}
.catalog-control:hover:not(:disabled) { border-color: #9ba6b3; background: #f7f8fa; }
.catalog-arrow {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}
.catalog-die {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
.catalog-die::after {
  content: "";
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -3px 3px currentColor, 3px -3px currentColor;
}
.nav-collapsed .catalog-arrow { transform: rotate(225deg); }
.catalog-random { border-color: #c8d7ea; background: #eef3fa; color: #245c9b; }
.catalog-random:hover:not(:disabled) { border-color: #92aed2; background: #e5effa; }
@media (min-width: 721px) {
  .catalog { position: sticky; top: 18px; }
  .nav-collapsed .workspace { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; }
  .nav-collapsed .catalog { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .nav-collapsed .catalog-control { min-height: 54px; flex-direction: column; padding: 6px; }
  .card-list {
    max-height: max(260px, calc(100dvh - 339px));
    padding: 3px 5px 4px 1px;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #d6d8db;
  border-radius: 7px;
  background: var(--surface);
}
.search-box:focus-within { outline: 2px solid var(--signal); outline-offset: 1px; }
.search-box input { min-width: 0; width: 100%; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-box input:focus { outline: 0; }
.search-box input::placeholder { color: #646a72; }
.search-mark { position: relative; width: 12px; height: 12px; flex: 0 0 12px; border: 1.5px solid #666c74; border-radius: 50%; }
.search-mark::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: #666c74; bottom: -3px; right: -4px; transform: rotate(45deg); }
kbd { flex: 0 0 auto; padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px; color: #62666c; font: 11px/1.5 var(--mono); }

.episode-group { display: grid; gap: 7px; }
.episode-group + .episode-group { margin-top: 12px; }
.episode-label {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin: 0 0 2px;
  padding: 15px 1px 7px;
  color: #42464e;
  font: 600 12px/1.4 var(--mono);
}
.episode-count { color: var(--muted); font: 12px/1.4 var(--sans); }
.profile-card {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  user-select: none;
  transition: border-color 140ms, background-color 140ms, transform 160ms, opacity 170ms;
}
.profile-card:hover { border-color: #a5aab0; }
.profile-card[aria-pressed="true"] { background: #e9eaec; border-color: #b0b3b8; }
.profile-card[aria-pressed="true"]::after {
  position: absolute;
  content: "";
  top: 18px;
  bottom: 18px;
  right: -1px;
  width: 3px;
  border-radius: 4px 0 0 4px;
  background: #33363b;
}
.card-meta { display: flex; align-items: center; justify-content: space-between; color: #575d66; font-size: 12px; font-family: var(--mono); }
.code { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.card-title { font-weight: 650; font-size: 16px; line-height: 1.45; }
.card-topic { color: var(--muted); font-size: 12px; line-height: 1.35; }
.list-empty { color: var(--muted); padding: 14px 2px; font-size: 13px; }

.detail {
  position: relative;
  min-width: 0;
  min-height: 490px;
  padding: 28px clamp(24px, 3.2vw, 46px) 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms, opacity 220ms ease;
}
.detail-empty { color: var(--muted); margin: 2rem 0; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.identity { display: flex; align-items: center; gap: 10px; font: 13px/1.5 var(--mono); color: var(--muted); }
.identity-separator { width: 11px; height: 1px; background: #a9acb1; }
.detail h2 {
  max-width: 26em;
  margin: 16px 0 15px;
  outline: none;
  font: 700 clamp(24px, 2.4vw, 34px)/1.36 var(--serif);
  letter-spacing: -.027em;
  text-wrap: balance;
}
.profile-copy { margin: 0; color: #33373d; font-size: var(--reading-size); line-height: 1.85; overflow-wrap: anywhere; }
@media (min-width: 721px) {
  .detail[data-card] { cursor: grab; }
  .detail[data-card] .detail-copy { cursor: text; user-select: text; }
  .detail[data-card].lifted-card { cursor: grabbing; }
}

.profile-modules {
  margin-top: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.profile-module + .profile-module { border-top: 1px solid var(--border); }
.profile-module > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 47px;
  padding: 9px 15px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
}
.profile-module:first-child > summary { border-radius: var(--radius) var(--radius) 0 0; }
.profile-module:last-child:not([open]) > summary { border-radius: 0 0 var(--radius) var(--radius); }
.profile-module > summary::-webkit-details-marker { display: none; }
.profile-module > summary:hover, .profile-module[open] > summary { background: #f5f7f9; }
.module-indicator {
  width: 7px;
  height: 7px;
  margin: -3px 3px 0 0;
  border: solid #576578;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  transition: transform .18s ease, margin .18s ease;
}
.profile-module[open] .module-indicator { margin-top: 3px; transform: rotate(225deg); }
.host-response, .inline-transcript { border-top: 1px solid var(--rule); }
.host-response { padding: 19px clamp(15px, 2vw, 27px) 22px; color: #33373d; font-size: var(--reading-size); }
.host-response p { margin: 0; max-width: 73ch; line-height: 1.85; overflow-wrap: anywhere; }
.host-response p + p { margin-top: 14px; }
.transcript-status { margin: 12px 15px; color: var(--muted); font-size: 13px; }
#transcript-retry { margin: 0 15px 12px; }
.transcript-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule);
  background: #fafbfc;
}
.transcript-selector { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--muted); font-size: 12px; }
.transcript-selector span { flex-shrink: 0; }
.transcript-selector select {
  width: min(100%, 530px);
  min-width: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 5px;
  padding: 5px 7px;
  font: 13px/1.4 var(--sans);
  text-overflow: ellipsis;
}
.transcript-toolbar .transcript-play { flex-shrink: 0; min-height: 34px; padding-block: 4px; }
.transcript-scroll {
  max-height: min(56dvh, 550px);
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  padding: 11px 14px;
}
.transcript-scroll .source-meta { margin-bottom: 9px; }
.transcript-scroll:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }

.source-panel { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 17px; }
.source-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-panel h3 { margin: 0; font-size: 14px; font-weight: 650; }
.duration, .time-scale { color: #5d646e; font: 12px/1.5 var(--mono); }
.wave-scrubber {
  --seek-position: 0;
  position: relative;
  height: 75px;
  margin-top: 11px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #f7f8fa;
}
.wave-display { height: 100%; display: grid; align-items: center; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(1px, .29vw, 4px); padding: 0 3px; }
.wave-bar { min-width: 1px; border-radius: 2px; background: #8d98a7; opacity: .82; }
.wave-bar.traversed { background: var(--signal); opacity: .84; }
.playhead { position: absolute; pointer-events: none; height: calc(100% + 6px); width: 2px; top: -3px; left: calc(var(--seek-position) * (100% - 2px)); border-radius: 2px; background: var(--signal); }
.playhead::before { position: absolute; left: -3px; top: -1px; width: 8px; height: 5px; border-radius: 2px; content: ""; background: var(--signal); }
.wave-scrubber input { all: unset; position: absolute; inset: 0; width: 100%; opacity: .01; cursor: ew-resize; }
.wave-scrubber:focus-within { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.time-scale { display: flex; justify-content: space-between; margin-top: 5px; }
.time-scale time:first-child { color: var(--signal); }
.source-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; }
.playback-speed {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  padding-left: 9px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: 13px/1.4 var(--sans);
}
.playback-speed select {
  min-height: 38px;
  padding: 0 3px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: 600 14px/1.4 var(--sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
@media (max-width: 480px) {
  .transcript-toolbar { flex-wrap: wrap; }
  .transcript-toolbar .transcript-selector { flex-basis: 100%; }
}
.primary-button, .secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 13px/1.45 var(--sans);
  transition: background-color 150ms;
}
.primary-button { color: white; background: #202226; }
.primary-button:not(:disabled):hover { background: #36393e; }
.primary-button time { font: 12px/1.5 var(--mono); color: #e2e5e9; }
.play-mark { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.primary-button[data-playing="true"] .play-mark { width: 8px; height: 10px; border-block: 0; border-inline: 3px solid currentColor; }
.secondary-button { border-color: #d2d5d9; background: white; }
.secondary-button:hover { background: #f0f1f2; }
.secondary-button span { font-size: 15px; font-weight: 400; color: #575e68; }
.play-feedback { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.profile-keywords {
  display: grid;
  gap: 7px;
  margin: 24px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.keyword-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}
.keyword-row dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.keyword-row dd {
  display: flex;
  gap: 6px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.keyword-chip {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid #e0e3e7;
  border-radius: 5px;
  color: #354352;
  background: #f5f6f8;
  font-size: 12px;
  white-space: nowrap;
}
.keyword-empty { color: var(--muted); font-size: 12px; }
.mobile-back { display: none; }

.drop-message {
  display: none;
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 5px;
  background: #2261b9;
  color: #fff;
  font-size: 12px;
}
.floating-card {
  position: fixed;
  pointer-events: none;
  z-index: 30;
  transform-origin: 50% 50%;
  border-color: #9ba2af;
  box-shadow: 0 1px 0 #cccfd5, 1px 3px 0 #d9dce2, 2px 5px 0 #e6e8ee, 0 24px 44px #27364b31;
  transition: none;
  will-change: transform;
}
.lifted-card { opacity: .28; }
body.dragging { cursor: grabbing; }
.detail.drop-ready { border-color: var(--signal); outline: 1px solid var(--signal); }
.detail.drop-ready .drop-message { display: block; }

.collections-dock {
  --dock-motion: 340ms cubic-bezier(.22,.66,.29,1);
  --dock-surface: 280ms ease;
  position: fixed;
  z-index: 15;
  left: 50%;
  bottom: max(17px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 96px), 1328px);
}
body:has(> .floating-card) .collections-dock { z-index: 40; }
body:has(> .floating-card.approaching-dock) .collections-dock { --dock-motion: 280ms cubic-bezier(.2,.78,.25,1); }
.drawer-bank {
  position: relative;
  isolation: isolate;
  padding: 8px 11px 5px;
  border: 1px solid #d1d3d7;
  border-radius: var(--radius);
  background: #e8e9eb;
  box-shadow: 0 2px 0 #d2d4d8, 0 10px 30px #1b253018;
  transition: padding var(--dock-motion), margin var(--dock-motion), background-color var(--dock-surface),
    border-color var(--dock-surface), box-shadow var(--dock-surface);
}
.drawer-bank::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -74px -1px -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, #f8fbff00 0%, #f5f9ff24 33%, #eaf2fd62 73%, #e3edfcb0 100%);
  opacity: 0;
  transition: opacity var(--dock-surface);
}
body:has(> .floating-card) .drawer-bank {
  background-color: transparent;
  border-color: transparent #aebed44a #9eb2cc74;
  box-shadow: 0 2px 0 #a3b8d143, 0 18px 38px -13px #233f6838;
}
body:has(> .floating-card) .drawer-bank::before { opacity: 1; }
.drawer-bank-head, .drawer-bank-tools, .collection-panel-head, .collection-heading, .collection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer-bank-head { margin: 0 4px 3px; }
.drawer-bank-tools { justify-content: flex-start; flex-shrink: 0; gap: 10px; }
.drawer-bank-tools .collection-action { min-height: 27px; }
.drawer-bank-head h2, .drawer-bank-head p { margin: 0; }
.drawer-bank-head h2 { font-size: 13px; font-weight: 680; }
.drawer-bank-head p {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drawer-scroll { overflow: auto hidden; padding: 5px 4px 12px; scrollbar-width: thin; transition: padding var(--dock-motion); }
.drawer-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(167px, 1fr); gap: 12px; }
.drawer {
  position: relative;
  isolation: isolate;
  height: 46px;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: #cfd1d5;
  perspective: 420px;
  text-align: left;
  transition: height var(--dock-motion), background-color var(--dock-surface);
}
.drawer-body {
  position: absolute;
  inset: 0 2px 2px;
  overflow: hidden;
  border: 1px solid #c3c6cb;
  border-radius: 6px;
  background: #c4c8ce;
  transform-origin: center top;
  transform: rotateX(-12deg) translateZ(-1px);
  transition: background-color var(--dock-surface), border-color var(--dock-surface);
}
.drawer-paper, .drawer-paper::before {
  position: absolute;
  height: 21px;
  border: 1px solid #a8adb5;
  border-radius: 3px;
  background: #fff;
  transition: background-color var(--dock-surface), border-color var(--dock-surface);
}
.drawer-paper {
  opacity: 0;
  inset: 2px 17%;
  transform: rotate(-2deg);
  transition: opacity 180ms, background-color var(--dock-surface), border-color var(--dock-surface);
}
.drawer-paper::before { content: ""; top: 2px; width: 100%; left: 2px; transform: rotate(4deg); }
.drawer.has-cards .drawer-paper { opacity: 1; }
.drawer-face {
  position: absolute;
  isolation: isolate;
  inset: 1px 0 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid #cbced3;
  border-bottom-color: #bac0c8;
  border-radius: 6px;
  background: #f9f9fa;
  box-shadow: 0 2px 0 #c3c6cc;
  transform-origin: center bottom;
  transition: transform 300ms cubic-bezier(.2,.78,.26,1),
    background-color var(--dock-surface), border-color var(--dock-surface), box-shadow var(--dock-surface);
}
.drawer-face::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, #fcfdff26, #eff5ff9c);
  opacity: 0;
  transition: opacity var(--dock-surface);
  pointer-events: none;
}
.drawer-label { font-weight: 620; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.drawer-count { color: #5a616b; font: 12px/1.4 var(--mono); white-space: nowrap; }
.drawer-handle {
  width: 19px;
  height: 6px;
  border: 1px solid #737981;
  border-radius: 2px;
  box-shadow: 0 1px 0 #c6c9ce;
  transition: border-color var(--dock-surface);
}
.drawer:hover .drawer-face { transform: translate3d(0,2px,7px); }
.drawer[aria-expanded="true"] .drawer-face {
  transform: translate3d(0,7px,17px) rotateX(-10deg);
  background: #fff;
  border-color: #aeb2ba;
  box-shadow: 0 5px 0 #c3c6cb, 0 8px 12px #28344516;
}
.drawer.drop-ready .drawer-face {
  transform: translate3d(0,9px,23px) rotateX(-13deg);
  border-color: var(--signal);
  background: #f6f8fb;
  box-shadow: 0 3px 0 #a5bad7;
}
.drawer.drop-ready .drawer-handle, .drawer.drop-ready .drawer-count { color: var(--signal); border-color: var(--signal); }

body:has(> .floating-card) .drawer { background-color: #8ba3c612; }
body:has(> .floating-card) .drawer-body {
  background-color: #a2b9d227;
  border-color: #98acd54f;
}
body:has(> .floating-card) .drawer-paper,
body:has(> .floating-card) .drawer-paper::before {
  background-color: #f9fcff80;
  border-color: #a7bbd772;
}
body:has(> .floating-card) .drawer-face {
  background-color: transparent;
  border-color: #9db4cf72;
  border-bottom-color: #90a7c792;
  box-shadow: 0 2px 0 #9aafd255;
}
body:has(> .floating-card) .drawer-face::before { opacity: 1; }
.collections-dock :is(.drawer-bank-head h2, .drawer-bank-head p, .drawer-label, .drawer-count) {
  width: fit-content;
  max-width: 100%;
  border-radius: 2px;
  background-color: transparent;
  transition: background-color var(--dock-surface), box-shadow var(--dock-surface), color var(--dock-surface);
}
body:has(> .floating-card) .collections-dock :is(.drawer-bank-head h2, .drawer-bank-head p, .drawer-label, .drawer-count) {
  background-color: #f6faffd9;
  box-shadow: 0 0 0 3px #f6faffd9;
}
body:has(> .floating-card.approaching-dock) .drawer-bank {
  margin-inline: -12px;
  padding: 18px 23px 11px;
}
body:has(> .floating-card.approaching-dock) .drawer-scroll { padding-block: 13px 18px; }
body:has(> .floating-card.approaching-dock) .drawer { height: 94px; }
body:has(> .floating-card.approaching-dock) .drawer.drop-ready { z-index: 1; }
body:has(> .floating-card.approaching-dock) .drawer.drop-ready .drawer-body {
  background-color: #638bc948;
  border-color: #7095c28f;
}
body:has(> .floating-card.approaching-dock) .drawer.drop-ready .drawer-face {
  transform: translate3d(0,11px,14px) rotateX(-5deg) scale(.99);
  border-color: #5a90d5a8;
  background-color: #8fbcfb38;
  box-shadow: 0 4px 0 #82a4cf7a, 0 12px 17px #23467e20;
}
body:has(> .floating-card.approaching-dock) .drawer:is(:has(+ .drawer.drop-ready), .drawer.drop-ready + .drawer):not([aria-expanded="true"]) .drawer-face {
  transform: translate3d(0,-2px,6px);
}
.drawer-intake {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 0;
  height: clamp(72px, 12dvh, 116px);
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 107%, #83beffe0, #91c7ff6b 38%, #a5d3ff20 61%, #b8ddff00 82%);
  mask-image: linear-gradient(to top, #000 18%, #0009 61%, #0000 100%);
  opacity: 0;
  transform: translateX(-50%) scaleY(.9);
  transform-origin: center bottom;
  transition: opacity 210ms ease-out, transform 240ms cubic-bezier(.16,.68,.25,1);
}
.drawer-intake::after {
  content: "";
  position: absolute;
  inset: auto 21% 0;
  height: 3px;
  border-radius: 5px;
  background: #93caffbd;
  box-shadow: 0 -1px 9px #79b8ffb5;
}
body:has(> .floating-card.approaching-dock) .collections-dock:has(.drawer.drop-ready) .drawer-intake {
  opacity: 1;
  transform: translateX(-50%) scaleY(1);
}
body:not(.dragging):has(> .floating-card.approaching-dock) :is(.drawer-face, .drawer-intake) {
  transition-delay: 90ms;
}

.collection-panel {
  --drawer-origin: 50%;
  --collection-columns: 1;
  position: absolute;
  inset: auto auto calc(100% + 13px) 0;
  border: 1px solid #d4d6da;
  border-radius: var(--radius);
  background-color: #fff;
  outline: 2px solid transparent;
  outline-offset: -2px;
  box-shadow: 0 16px 50px #15233426;
  transform-origin: var(--drawer-origin) calc(100% + 45px);
  transition: background-color var(--dock-surface), outline-color 200ms ease;
}
.collection-panel::after {
  content: "";
  width: 11px;
  height: 11px;
  position: absolute;
  left: calc(var(--drawer-origin) - 5.5px);
  bottom: -6px;
  border-right: 1px solid #d4d6da;
  border-bottom: 1px solid #d4d6da;
  background-color: #fff;
  transform: rotate(45deg);
  pointer-events: none;
  transition: background-color var(--dock-surface);
}
.collection-panel.drop-ready { outline-color: var(--signal); }
body:has(> .floating-card) .collection-panel,
body:has(> .floating-card) .collection-panel::after { background-color: #fbfdffb3; }
body:has(> .floating-card.approaching-dock) .collection-panel.drop-ready { background-color: #e6f1ffa6; }
.collection-drop-note {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--signal);
  color: white;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
.collection-panel.drop-ready .collection-drop-note { opacity: 1; }
.collection-panel-head { padding: 16px 19px 12px; border-bottom: 1px solid var(--rule); }
.collection-heading { justify-content: flex-start; min-width: 0; }
.collection-heading h2 { margin: 0; font: 700 23px/1.4 var(--serif); overflow-wrap: anywhere; }
.collection-heading span { color: var(--muted); white-space: nowrap; font-size: 12px; }
.collection-actions { flex-shrink: 0; }
.collection-action, .close-collection {
  min-height: 32px;
  border: 1px solid #d9dbe0;
  border-radius: 5px;
  background: #fff;
  padding: 2px 9px;
  color: #3f444c;
  font-size: 12px;
}
.collection-action:not(:disabled):hover, .close-collection:hover { background: #f0f1f3; }
.close-collection { padding: 0 9px; font-size: 20px; line-height: 1; }
.collection-editor {
  width: min(400px, calc(100% - 32px));
  max-width: none;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 18px 60px #15233435;
}
.collection-editor::backdrop { background: #17202b59; }
.collection-editor h2 { margin: 0 0 16px; font: 700 23px/1.3 var(--serif); }
.collection-editor label { display: block; font-size: 13px; color: var(--muted); }
.collection-editor input {
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  margin-top: 4px;
  border: 1px solid #cdd1d8;
  border-radius: 6px;
}
.editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.saved-cards {
  display: grid;
  grid-template-columns: repeat(var(--collection-columns), minmax(0, 1fr));
  gap: 10px;
  max-height: min(38vh, 305px);
  padding: 12px 19px 17px;
  overflow: hidden auto;
  scrollbar-gutter: stable;
  scroll-padding: 8px;
}
.saved-item { position: relative; min-width: 0; contain: paint; overflow: clip; }
.saved-item-motion { position: relative; height: 100%; transform-origin: center bottom; }
.saved-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  height: 100%;
  min-height: 97px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  background: #f8f8f9;
  padding: 9px 35px 10px 11px;
  text-align: left;
}
.saved-card:hover { border-color: #a9afb9; background: #f2f3f4; }
.saved-card:not(.floating-card) { transition: opacity 180ms ease; }
.saved-card:focus-visible { outline-offset: -3px; }
.saved-meta { color: var(--muted); font: 11px/1.4 var(--mono); }
.saved-title { font-weight: 650; font-size: 14px; line-height: 1.4; }
.saved-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.remove-card { position: absolute; top: 7px; right: 7px; padding: 0; width: 26px; height: 26px; border: 0; border-radius: 5px; background: transparent; color: #5a616b; font: 17px/1 var(--sans); }
.remove-card:hover { background: #e6e8eb; color: var(--ink); }
.empty-collection { grid-column: 1/-1; margin: 0; padding: 13px 0 9px; font-size: 13px; color: var(--muted); }

.reader-top { position: sticky; z-index: 5; top: 0; background: var(--paper); border-bottom: 1px solid var(--border); }
.reader-top-inner { width: min(calc(100% - 96px), 1328px); margin: auto; min-height: 70px; display: grid; grid-template-columns: 176px 1fr auto; align-items: center; gap: 18px; }
.reader-top h1 { display: inline-block; font: 700 21px/1.4 var(--serif); margin: 0 11px 0 0; }
.reader-top time { font: 12px var(--mono); color: var(--muted); }
.reader-top [role="status"] { margin: 0; color: var(--muted); font-size: 12px; }
.back-link { font-size: 13px; font-weight: 600; }
.back-link:hover { text-decoration: underline; }
.reader-layout { width: min(calc(100% - 96px), 1328px); display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; margin: 22px auto 40px; align-items: start; }
.toc { position: sticky; top: 93px; max-height: calc(100dvh - 112px); overflow: auto; padding: 9px 9px 8px 0; }
.toc h2 { margin: 0 0 9px; font-size: 14px; }
.toc a { display: grid; grid-template-columns: 61px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); line-height: 1.46; font-size: 12px; }
.toc a:hover span { text-decoration: underline; }
.toc time { color: var(--muted); font-family: var(--mono); }
.source-content { min-width: 0; }
.source-section { scroll-margin-top: 92px; border: 1px solid var(--border); border-radius: var(--radius); background: white; padding: 21px clamp(15px, 3vw, 37px); margin-bottom: 15px; }
.source-section:target { border-color: var(--signal); }
.source-section h2 { margin: 5px 0 15px; font: 700 24px/1.45 var(--serif); }
.source-meta { margin: 0; color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.source-meta span { font-family: var(--mono); }
.turn { display: grid; grid-template-columns: 77px minmax(0, 1fr); gap: 13px; padding: 8px 0; border-top: 1px solid var(--rule); align-items: start; }
.turn p, .transcript-scroll .source-note, .source-section .source-note { font-size: var(--reading-size); line-height: 1.85; }
.turn p { margin: 0; overflow-wrap: anywhere; }
.time-button { border: 0; background: transparent; padding: 3px 0; color: var(--signal); text-align: left; font: 14px/1.6 var(--mono); }
.time-button:hover { text-decoration: underline; }
.speaker { margin-right: 9px; font: 14px/1.5 var(--mono); color: #535b66; }
.source-note { color: var(--muted); white-space: pre-wrap; }
.reader.has-reader-player .reader-layout { padding-bottom: 74px; }
.reader-player {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 5px 22px #22283120;
}
.reader-player audio { display: block; width: 100%; height: 42px; min-width: 0; }

@media (min-width: 721px) and (max-height: 980px) {
  .episode-group { gap: 6px; }
  .episode-group + .episode-group { margin-top: 7px; }
  .profile-card { gap: 3px; padding-block: 8px; }
}

@media (max-width: 1100px) {
  .shell, .collections-dock, .reader-top-inner, .reader-layout { width: min(calc(100% - 64px), 1328px); }
  .workspace { grid-template-columns: 260px minmax(0, 1fr); gap: 16px; }
  .search-box kbd { display: none; }
  .reader-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 15px; }
}

@media (max-width: 720px) {
  .shell, .collections-dock, .reader-top-inner, .reader-layout { width: calc(100% - 32px); }
  .brand { min-height: 54px; }
  .brand-home { font-size: 13px; gap: 8px; }
  .archive-mark { width: 25px; height: 25px; }
  .brand-divider { margin: 0 8px; }
  .local-status { gap: 4px; font-size: 11px; }
  .page-header { padding: 22px 0 15px; }
  .page-header h1 { font-size: 24px; }
  .page-header p { font-size: 11px; text-align: right; }
  .workspace { display: block; padding-bottom: 116px; }
  .profile-card { padding: 11px 12px; }
  .library:not(.nav-collapsed)[data-mobile-view="list"] .detail,
  .library:not(.nav-collapsed)[data-mobile-view="detail"] .catalog { display: none; }
  .nav-collapsed .catalog { grid-template-columns: max-content max-content; margin-bottom: 12px; }
  .nav-collapsed .catalog-control { padding-inline: 13px; }
  .detail { min-height: 0; padding: 14px 16px 21px; }
  .mobile-back { display: inline-block; margin-bottom: 16px; padding: 0; border: 0; background: none; color: #4e555f; font-size: 13px; }
  .nav-collapsed .mobile-back { display: none; }
  #detail-content { display: flex; flex-direction: column; }
  .detail h2 { font-size: 25px; }
  .profile-modules, .source-panel { margin-top: 18px; }
  .host-response { padding: 14px; }
  .transcript-toolbar { gap: 6px; padding-inline: 9px; }
  .transcript-selector { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; overflow: hidden; }
  .transcript-selector:focus-within { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
  .transcript-selector select { display: block; width: 100%; }
  .transcript-scroll { max-height: none; overflow: visible; scrollbar-gutter: auto; padding-inline: 9px; }
  .keyword-row { align-items: baseline; }
  .keyword-row dd { flex-wrap: wrap; min-width: 0; overflow: visible; }
  .keyword-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
  .wave-scrubber { height: 61px; }
  .source-actions { gap: 7px; }
  .primary-button, .secondary-button { padding-inline: 9px; font-size: 12px; min-height: 42px; gap: 7px; }
  .collections-dock { bottom: max(12px, env(safe-area-inset-bottom)); }
  .drawer-bank { padding: 7px 5px 4px; }
  .drawer-bank-head { margin-bottom: 2px; gap: 4px; }
  .drawer-bank-tools { gap: 5px; }
  .drawer-bank-head p { font-size: 11px; }
  .drawer-grid { gap: 6px; grid-auto-columns: minmax(87px, 1fr); }
  .drawer { height: 40px; }
  .drawer-face { grid-template-columns: minmax(0, 1fr) auto; gap: 3px; padding: 0 6px; }
  .drawer-handle { display: none; }
  .drawer-label, .drawer-count { font-size: 11px; }
  .collection-panel-head { padding: 11px 10px 10px; gap: 6px; flex-wrap: wrap; }
  .collection-heading { gap: 5px; }
  .collection-heading h2 { font-size: 17px; }
  .collection-heading span { font-size: 11px; }
  .collection-actions { gap: 5px; }
  .collection-action { padding-inline: 6px; }
  .saved-cards { padding: 10px 10px 13px; gap: 7px; }
  .reader-top-inner { min-height: 66px; grid-template-columns: 68px 1fr; gap: 6px; padding: 5px 0; }
  .reader-top h1 { font-size: 17px; }
  .reader-top [role="status"] { grid-column: 2; margin-top: -7px; }
  .reader-layout { display: block; margin-top: 13px; }
  .toc { position: static; max-height: 150px; padding: 0 0 9px; margin-bottom: 15px; border-bottom: 1px solid var(--border); }
  .source-section { scroll-margin-top: 76px; }
  .source-section h2 { font-size: 20px; }
  .turn { grid-template-columns: 70px minmax(0, 1fr); gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

#profile-back {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  top: 56%;
  z-index: 45;
  width: 50px;
  height: 50px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  border: 1px solid #d3ddea;
  border-radius: 50%;
  color: #294565;
  background: rgba(252, 253, 255, .95);
  box-shadow: 0 3px 14px rgba(31, 52, 80, .18);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
#profile-back[hidden] { display: none; }
#profile-back:disabled {opacity:.55;cursor:default}
#profile-back svg { width: 18px; height: 18px; pointer-events: none; }
#profile-back span { font-size: 10px; line-height: 1.1; pointer-events: none; }
#profile-back:hover, #profile-back:focus-visible { border-color: #819ab8; }
#profile-back.moving { cursor: grabbing; box-shadow: 0 6px 22px rgba(31, 52, 80, .25); }
