/* ---------------------------------------------------------------
   Perspectives — liquid glass
   An aurora layer behind, frosted panels in front, everything
   floating a few millimetres above the surface.
   --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* Panels set their own `display`, which would otherwise defeat the hidden attribute. */
[hidden] { display: none !important; }

:root {
  --ink:      #f3f5ff;
  --ink-2:    rgba(243, 245, 255, .74);
  --ink-3:    rgba(243, 245, 255, .46);
  --ink-4:    rgba(243, 245, 255, .28);

  --left:     #6aa4ff;
  --center:   #cdc9bd;
  --right:    #ff7d69;

  --glass-hi:   rgba(255, 255, 255, .145);
  --glass-lo:   rgba(255, 255, 255, .035);
  --glass-base: rgba(10, 12, 26, .48);

  --stroke:      rgba(255, 255, 255, .16);
  --stroke-hi:   rgba(255, 255, 255, .34);

  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  /* neutral interface accents — never the lane colours */
  --accent-1: #5b3df5;
  --accent-2: #00b7ff;

  --spring: cubic-bezier(.22, .9, .28, 1.2);
  --ease:   cubic-bezier(.22, .61, .36, 1);

  --rail-w: 322px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 16px 18px 0;
  min-height: 100vh;
  background: #05060d;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(255, 255, 255, .85); color: #0a0c18; }

/* ================= aurora ================= */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 50% -10%, #131c42 0%, #0a0d1f 45%, #05060d 100%);
}

/* vignette keeps the corners from competing with the panels */
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(85% 65% at 50% 42%, transparent 0%, rgba(4,5,12,.42) 72%, rgba(4,5,12,.72) 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: .48;
  will-change: transform;
}

.b1 { width: 78vw; height: 78vw; left: -22vw; top: -26vw;
  background: radial-gradient(circle at 50% 50%, #5b3df5 0%, rgba(91,61,245,.30) 36%, transparent 66%);
  animation: drift1 42s var(--ease) infinite; }
.b2 { width: 64vw; height: 64vw; right: -16vw; top: -10vw;
  background: radial-gradient(circle, #00b7ff 0%, rgba(0,183,255,.24) 38%, transparent 68%);
  animation: drift2 52s var(--ease) infinite; }
.b3 { width: 62vw; height: 62vw; left: 14vw; bottom: -26vw; opacity: .40;
  background: radial-gradient(circle, #ff3d8b 0%, rgba(255,61,139,.20) 38%, transparent 68%);
  animation: drift3 60s var(--ease) infinite; }
.b4 { width: 48vw; height: 48vw; right: 4vw; bottom: -18vw; opacity: .22;
  background: radial-gradient(circle, #00e0a4 0%, rgba(0,224,164,.16) 38%, transparent 68%);
  animation: drift4 48s var(--ease) infinite; }
.b5 { width: 42vw; height: 42vw; left: 44vw; top: 16vw; opacity: .26;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 68%);
  animation: drift2 68s var(--ease) infinite reverse; }

@keyframes drift1 { 0%,100% { transform: translate3d(0,0,0) } 50% { transform: translate3d(7vw, 5vh, 0) } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) } 50% { transform: translate3d(-8vw, 6vh, 0) } }
@keyframes drift3 { 0%,100% { transform: translate3d(0,0,0) } 50% { transform: translate3d(6vw, -7vh, 0) } }
@keyframes drift4 { 0%,100% { transform: translate3d(0,0,0) } 50% { transform: translate3d(-6vw, -5vh, 0) } }

.grain {
  position: absolute;
  inset: 0;
  opacity: .13;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================= glass ================= */

.masthead, .rail, .story-head, .lane, .lens, .navbtn, .colophon, .modal-card {
  position: relative;
  background:
    linear-gradient(158deg, var(--glass-hi) 0%, var(--glass-lo) 46%, rgba(255,255,255,.02) 100%),
    var(--glass-base);
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  border: 1px solid var(--stroke);
  box-shadow:
    0 26px 60px -30px rgba(0, 0, 0, .95),
    0 2px 10px -4px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .30),
    inset 0 -1px 0 rgba(255, 255, 255, .05);
}

/* soft specular sheen across the top third of every panel */
.masthead::before, .rail::before, .story-head::before, .lane::before,
.lens::before, .colophon::before, .modal-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 100%);
  pointer-events: none;
}

/* ================= masthead ================= */

.masthead {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 68px;
  padding: 0 22px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.wordmark {
  margin: 0;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 20%, rgba(255,255,255,.62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 24px rgba(255,255,255,.20);
}

.plateline {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .01em;
}

.mast-right { display: flex; align-items: center; gap: 10px; }

.stat {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 6px;
  text-align: right;
  line-height: 1.8;
}

.ghost {
  appearance: none;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 15px;
  cursor: pointer;
  transition: transform .35s var(--spring), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.ghost:hover {
  background: rgba(255,255,255,.16);
  border-color: var(--stroke-hi);
  color: #fff;
  transform: translateY(-1px);
}
.ghost:active { transform: translateY(0) scale(.97); }

.ticker {
  position: relative;
  z-index: 20;
  margin-bottom: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #ffd9a8;
  background: rgba(255, 176, 61, .12);
  border: 1px solid rgba(255, 176, 61, .30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ================= shell ================= */

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* ================= rail ================= */

.rail {
  position: sticky;
  top: 98px;
  height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rail-head {
  flex: none;
  padding: 15px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
}

.filters { display: flex; gap: 6px; }

.pill {
  appearance: none;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 6px 11px;
  cursor: pointer;
  transition: all .3s var(--spring);
}
.pill:hover { color: var(--ink); border-color: var(--stroke-hi); }
.pill.is-on {
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.92);
  color: #0a0c18;
  box-shadow: 0 4px 18px -6px rgba(255,255,255,.5);
}

.rail-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}
.rail-list::-webkit-scrollbar { width: 6px; }
.rail-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; }

.story {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 12px 13px;
  margin-bottom: 3px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform .4s var(--spring), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.story:hover {
  background: rgba(255,255,255,.06);
  transform: translateX(2px);
}
.story.is-on {
  background: linear-gradient(160deg, rgba(255,255,255,.17), rgba(255,255,255,.06));
  border-color: rgba(255,255,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 24px -14px rgba(0,0,0,.9);
}

.st-head {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.34;
  letter-spacing: -.003em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story.is-on .st-head { color: #fff; }

.st-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.chip {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
  background: rgba(255,255,255,.05);
}
.chip.hot   { border-color: rgba(255,190,90,.42);  color: #ffd7a1; background: rgba(255,190,90,.10); }
.chip.cool  { border-color: rgba(255,255,255,.18); color: var(--ink-2); background: rgba(255,255,255,.05); }
.chip.blind { border-color: rgba(255,255,255,.14); color: var(--ink-3); background: transparent; }
.chip.doc   { border-color: rgba(64,220,150,.34); color: #a9f0c6; background: rgba(64,220,150,.10); }

.dots { display: inline-flex; gap: 3px; align-items: center; }
.dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.dot.l { background: var(--left);   box-shadow: 0 0 8px rgba(106,164,255,.9); }
.dot.c { background: var(--center); box-shadow: 0 0 8px rgba(205,201,189,.7); }
.dot.r { background: var(--right);  box-shadow: 0 0 8px rgba(255,125,105,.9); }

/* ================= story view ================= */

.view {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-head {
  padding: 30px 34px 28px;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 26px 44px;
}

.sh-copy { min-width: 0; }

.story-title {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.16;
  letter-spacing: -.017em;
  font-weight: 400;
  max-width: 24ch;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}

.meters {
  display: flex;
  align-items: flex-start;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.meter, .cover { min-width: 186px; flex: 0 1 230px; }

.meter-top { display: flex; align-items: baseline; gap: 9px; }

.meter-num {
  font-family: var(--serif);
  font-size: 40px;
  line-height: .95;
  letter-spacing: -.02em;
  color: #fff;
}

.meter-of { font-family: var(--mono); font-size: 9px; color: var(--ink-4); letter-spacing: .12em; }

.meter-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 8px 0 10px;
}

.meter-track {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg,
    rgba(106,164,255,.75) 0%,
    rgba(255,255,255,.18) 44%,
    rgba(255,255,255,.18) 56%,
    rgba(255,125,105,.75) 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.meter-mark {
  position: absolute;
  top: -5px;
  width: 3px;
  height: 16px;
  border-radius: 99px;
  background: #fff;
  transform: translateX(-1px);
  box-shadow: 0 0 14px rgba(255,255,255,.85), 0 0 4px rgba(255,255,255,.9);
}

.cover-bar {
  display: flex;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.cover-seg.l { background: linear-gradient(90deg, #4d86e8, #7fb0ff); box-shadow: 0 0 14px rgba(106,164,255,.6); }
.cover-seg.c { background: linear-gradient(90deg, #a8a49a, #ddd9cd); }
.cover-seg.r { background: linear-gradient(90deg, #e8644f, #ff9d8b); box-shadow: 0 0 14px rgba(255,125,105,.55); }

.cover-legend {
  display: flex;
  gap: 14px;
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cover-legend span { display: inline-flex; align-items: center; gap: 5px; }

/* ================= lanes ================= */

.lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lane {
  padding: 20px 20px 24px;
  border-radius: var(--radius-lg);
  min-width: 0;
  animation: bob 11s var(--ease) infinite;
}
.lane.l { animation-delay: -.5s; }
.lane.c { animation-delay: -4s; }
.lane.r { animation-delay: -7.5s; }

@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -5px, 0); }
}

.lane:hover { animation-play-state: paused; }

.lane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 11px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  position: relative;
}
.lane-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 2px;
  border-radius: 99px;
}
.lane.l .lane-head::after { background: var(--left);   box-shadow: 0 0 12px rgba(106,164,255,.9); }
.lane.c .lane-head::after { background: var(--center); box-shadow: 0 0 12px rgba(205,201,189,.8); }
.lane.r .lane-head::after { background: var(--right);  box-shadow: 0 0 12px rgba(255,125,105,.9); }

.lane-name {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.lane-count { font-family: var(--mono); font-size: 9.5px; color: var(--ink-4); }

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 12px 13px;
  margin: 3px -6px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform .45s var(--spring), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  animation: floaty 9s var(--ease) infinite;
}
.card:nth-of-type(1) { animation-delay: -1s; }
.card:nth-of-type(2) { animation-delay: -3.5s; }
.card:nth-of-type(3) { animation-delay: -6s; }

/* Animate the independent `translate` property, not `transform`, so the
   idle float and the hover lift can compose instead of overwriting. */
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -2.5px; }
}

.card:hover {
  animation-play-state: paused;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.22);
  transform: translate3d(0, -3px, 0) scale(1.012);
}

.src {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.src .go { opacity: 0; transform: translateX(-4px); transition: all .25s var(--ease); color: var(--ink-2); }
.card:hover .src .go { opacity: 1; transform: translateX(0); }

.hed {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.34;
  letter-spacing: -.004em;
  margin-top: 6px;
  color: rgba(255,255,255,.94);
  text-wrap: pretty;
}

.lead {
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: .1em;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 1px 5px;
  margin-left: 3px;
  color: var(--ink-3);
  vertical-align: 1px;
}

.lane-empty {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
  padding: 18px 2px 8px;
  line-height: 1.5;
}
.lane-empty em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  margin-top: 8px;
  color: rgba(255,190,120,.75);
}

/* ================= word lens ================= */

.lens {
  padding: 24px 34px 30px;
  border-radius: var(--radius-xl);
}

.lens-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 4px;
}
.lens-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 0 0 18px;
}

.lens-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.lens-col .whos {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 9px;
}

.word {
  display: inline-block;
  padding: 4px 11px;
  margin: 0 6px 6px 0;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.18);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 16px -10px rgba(0,0,0,.9);
  animation: floaty 8s var(--ease) infinite;
}
.word:nth-of-type(2) { animation-delay: -2.4s; }
.word:nth-of-type(3) { animation-delay: -4.8s; }

.lens-col.l .word b { color: var(--left);   font-weight: 700; text-shadow: 0 0 16px rgba(106,164,255,.6); }
.lens-col.c .word b { color: var(--center); font-weight: 700; }
.lens-col.r .word b { color: var(--right);  font-weight: 700; text-shadow: 0 0 16px rgba(255,125,105,.6); }

.lens-none { font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--ink-4); }

/* ================= today / home ================= */

.backbtn {
  align-self: flex-start;
  appearance: none;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.backbtn:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateX(-2px); }

.today { display: flex; flex-direction: column; gap: 15px; }

.today-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,.4);
}

.today-sub { margin: -4px 0 2px; font-size: 13px; color: var(--ink-3); max-width: 62ch; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Home drops the rail and reads as a single wide page. */
.shell.is-home { grid-template-columns: minmax(0, 1fr); }
.shell.is-home .rail { display: none; }
.shell.is-home .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.home-filters { margin: 2px 0 6px; }

.scard {
  appearance: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 22px 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(158deg, rgba(255,255,255,.13), rgba(255,255,255,.03)),
    rgba(10, 12, 26, .42);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.26);
  transition: transform .4s var(--spring), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.scard:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 28px 60px -30px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,.40);
}

.scard-top { display: flex; align-items: center; gap: 8px; }

.scard-time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.scard-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scard-sub { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

.scard-vid {
  margin-top: 2px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffb3a6;
  border: 1px solid rgba(255,125,105,.35);
  background: rgba(255,125,105,.10);
  border-radius: 999px;
  padding: 3px 8px;
}

/* ---------------- the briefing ---------------- */

body.is-briefing { overflow: hidden; }
body.is-briefing .fab,
body.is-briefing .chat { display: none !important; }

.briefbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
}

.briefstart {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: linear-gradient(180deg, #ffffff, #dfe6ff);
  color: #0a0c18;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 40px -16px rgba(255,255,255,.75);
  transition: transform .35s var(--spring), box-shadow .25s var(--ease);
}
.briefstart:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -18px rgba(255,255,255,.9); }

.briefbar-note { font-size: 12px; color: var(--ink-3); }

.briefing {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 24px 32px 18px;
  background: radial-gradient(120% 90% at 50% -10%, #16204a 0%, #0a0d1f 45%, #05060d 100%);
  animation: fadeIn .35s var(--ease);
}
.briefing[hidden] { display: none; }

.brief-top { display: flex; align-items: center; gap: 18px; }

.brief-progress {
  flex: 1;
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}
.brief-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  transition: width .4s var(--ease);
}

.brief-x {
  appearance: none;
  background: none;
  border: 0;
  color: var(--ink-3);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.brief-x:hover { color: #fff; }

.brief-body {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.brief-tag {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.brief-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -.022em;
  font-weight: 400;
  color: #fff;
  max-width: 24ch;
  text-wrap: balance;
}

.brief-sub {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 58ch;
}

.brief-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 34px 0 26px;
  max-width: 800px;
}

.brief-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  padding: 12px 0 12px 16px;
  border-left: 2px solid rgba(255,255,255,.16);
}
.brief-line.l { border-left-color: var(--left); }
.brief-line.c { border-left-color: var(--center); }
.brief-line.r { border-left-color: var(--right); }

.brief-desk {
  grid-row: 1;
  grid-column: 1;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 5px;
}

.brief-line a {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.38;
  color: rgba(255,255,255,.93);
  text-decoration: none;
  text-wrap: pretty;
}
.brief-line a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.brief-src {
  grid-row: 2;
  grid-column: 2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.brief-none {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-4);
  padding-top: 2px;
}

.brief-note {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 62ch;
}

.brief-open {
  appearance: none;
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.brief-open:hover { background: rgba(255,255,255,.14); color: #fff; }

.brief-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.brief-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 11px 18px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.brief-btn:hover { border-color: rgba(255,255,255,.45); color: #fff; }
.brief-btn:disabled { opacity: .28; cursor: default; }
.brief-btn.is-next { background: rgba(255,255,255,.94); border-color: rgba(255,255,255,.94); color: #0a0c18; }
.brief-btn.is-next:hover { opacity: .87; }

.brief-count {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

@media (max-width: 900px) {
  .briefing { padding: 18px 18px 14px; }
  .brief-line { grid-template-columns: 52px minmax(0, 1fr); padding-left: 12px; }
  .brief-line a { font-size: 16px; }
  .brief-title { font-size: 26px; }
  .briefstart { width: 100%; text-align: center; }
}

/* ---------------- blindspot hero ---------------- */

.hero {
  appearance: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 26px 30px 24px 32px;
  margin: 4px 0 20px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.18);
  border-left: 3px solid rgba(255, 125, 105, .85);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,125,105,.16), transparent 55%),
    linear-gradient(158deg, rgba(255,255,255,.13), rgba(255,255,255,.03)),
    rgba(10, 12, 26, .45);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 28px 70px -34px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform .4s var(--spring), border-color .25s var(--ease);
}
.hero:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); }

.hero-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #ffb3a6;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 33px);
  line-height: 1.18;
  letter-spacing: -.018em;
  color: #fff;
  max-width: 30ch;
  text-wrap: balance;
}

.hero-sub {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.hero-go {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero:hover .hero-go { color: #fff; }

/* ---------------- day dividers + sections ---------------- */

.day-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 10px 0 0;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.day-head span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.day-head em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-4);
}

.sections {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0 10px;
}
.sec {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 11px;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.sec:hover { color: #fff; background: rgba(255,255,255,.06); }
.sec.is-on { color: #fff; border-bottom-color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }

/* ---------------- artwork ---------------- */

.scard { padding: 0; overflow: hidden; gap: 0; align-items: stretch; }
.scard-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 8px; }

.art { position: relative; flex: 0 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0d18; }
.art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.82) contrast(1.06) brightness(.92);
  transition: transform .7s var(--ease), filter .35s var(--ease);
}
.scard:hover .art img { transform: scale(1.045); filter: saturate(1) contrast(1.05) brightness(1); }
.art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6,8,20,.04) 42%, rgba(6,8,20,.72) 100%);
}
.art-credit {
  position: absolute;
  left: 11px; bottom: 9px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

/* The coverage portrait: one orb per desk, sized by that desk's share. */
.art-portrait {
  background:
    radial-gradient(circle at 24% 76%,
      rgba(106,164,255,.92) 0 calc(var(--l) * 30%),
      rgba(106,164,255,.35) calc(var(--l) * 30% + 6%),
      transparent calc(var(--l) * 30% + 16%)),
    radial-gradient(circle at 50% 62%,
      rgba(214,210,198,.72) 0 calc(var(--m) * 30%),
      rgba(214,210,198,.28) calc(var(--m) * 30% + 6%),
      transparent calc(var(--m) * 30% + 16%)),
    radial-gradient(circle at 76% 78%,
      rgba(255,125,105,.90) 0 calc(var(--r) * 30%),
      rgba(255,125,105,.32) calc(var(--r) * 30% + 6%),
      transparent calc(var(--r) * 30% + 16%)),
    linear-gradient(158deg, hsl(var(--h) 42% 17%), hsl(calc(var(--h) + 48) 46% 7%));
}
.art-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(48deg, rgba(255,255,255,.045) 0 2px, transparent 2px 7px);
  opacity: .6;
}
.art-generated::after { background: linear-gradient(180deg, transparent 35%, rgba(6,8,20,.45) 100%); }
.art-generated::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(48deg, rgba(255,255,255,.045) 0 2px, transparent 2px 7px);
  opacity: .75;
}

.story-head.has-art {
  background-image:
    linear-gradient(95deg, rgba(6,8,20,.97) 0%, rgba(6,8,20,.88) 44%, rgba(6,8,20,.42) 100%),
    var(--art);
  background-size: cover, cover;
  background-position: center, center 30%;
  background-repeat: no-repeat, no-repeat;
  min-height: 248px;
}

.art-credit-lg {
  position: absolute;
  right: 16px;
  bottom: 14px;
  max-width: 62%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.64);
  text-decoration: none;
  background: rgba(6,8,20,.55);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 4px 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.art-credit-lg:hover { color: #fff; border-color: rgba(255,255,255,.32); }

/* ================= watch row ================= */

.watch { display: flex; flex-direction: column; gap: 11px; }

.vrow {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}
.vrow::-webkit-scrollbar { height: 6px; }
.vrow::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; }

.vcard {
  flex: 0 0 268px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(10, 12, 26, .5);
  transition: transform .4s var(--spring), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.vcard:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 22px 44px -22px rgba(0,0,0,.95);
}

.vthumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0d18; }
.vthumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .9;
  transition: opacity .25s var(--ease), transform .5s var(--ease);
}
.vcard:hover .vthumb img { opacity: 1; transform: scale(1.03); }

.vplay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(8,10,20,.55);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.vplay::after {
  content: '';
  width: 0; height: 0;
  border-left: 12px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.vcard:hover .vplay { background: rgba(255,255,255,.92); border-color: #fff; }
.vcard:hover .vplay::after { border-left-color: #0a0c18; }

.vmeta { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 5px; }

.vch {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.vt {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= original piece ================= */

.piece {
  position: relative;
  padding: 30px 38px 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(158deg, rgba(255,255,255,.11), rgba(255,255,255,.025)),
    rgba(10, 12, 26, .36);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px -32px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.24);
}

.piece-kicker {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.piece > p {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
  max-width: 66ch;
}

.piece > p:first-of-type {
  font-size: 18px;
  line-height: 1.62;
  color: rgba(255,255,255,.95);
}

.piece h3 {
  margin: 30px 0 12px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.piece blockquote {
  margin: 0 0 14px;
  padding: 2px 0 2px 18px;
  border-left: 2px solid rgba(255,255,255,.30);
  max-width: 62ch;
}

.piece blockquote a {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.42;
  color: #fff;
  text-decoration: none;
  text-wrap: pretty;
}
.piece blockquote a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.piece blockquote cite {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ================= press panel ================= */

.press { display: flex; flex-direction: column; gap: 11px; }

.section-label {
  margin: 0 0 0 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ================= perspectives brief ================= */

.brief {
  position: relative;
  padding: 24px 32px 26px 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(158deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
    rgba(10, 12, 26, .34);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--stroke);
  border-left: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 20px 50px -32px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.22);
}

.brief-kicker {
  margin: 0 0 11px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-style: normal;
}

.brief p {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.62;
  color: rgba(255,255,255,.88);
  max-width: 68ch;
}

.brief p:last-child {
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink-4);
}

/* ================= primary document ================= */

.doc {
  padding: 26px 32px 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(158deg, rgba(255,255,255,.13), rgba(255,255,255,.03)),
    rgba(12, 14, 30, .46);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--stroke);
  box-shadow: 0 26px 60px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.30);
}

.doc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }

.doc-badge {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: #a9f0c6;
  background: rgba(64, 220, 150, .12);
  border: 1px solid rgba(64, 220, 150, .34);
  box-shadow: 0 0 18px -6px rgba(64,220,150,.6);
}

.doc-src {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.doc-title {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.28;
  color: #fff;
  text-decoration: none;
  margin-bottom: 11px;
  max-width: 34ch;
}
.doc-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.doc-note {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 64ch;
}

.doc-body summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  list-style: none;
  transition: background .2s var(--ease);
}
.doc-body summary::-webkit-details-marker { display: none; }
.doc-body summary:hover { background: rgba(255,255,255,.12); }
.doc-body summary em { font-style: normal; color: var(--ink-4); letter-spacing: .08em; }
.doc-body[open] summary { margin-bottom: 20px; }

.doc-body p {
  margin: 0 0 15px;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(255,255,255,.86);
  max-width: 70ch;
}
.doc-body p:last-child { margin-bottom: 0; }

/* ================= story nav ================= */

.storynav { display: flex; gap: 16px; }

.navbtn {
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  border-radius: var(--radius-lg);
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 18px 24px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .4s var(--spring), background .25s var(--ease), box-shadow .25s var(--ease);
}
.navbtn:hover { transform: translateY(-2px); background: rgba(255,255,255,.10); }
.navbtn.next { text-align: right; align-items: flex-end; }
.navbtn.is-empty { display: none; }

.navdir {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.navtext { font-family: var(--serif); font-size: 14.5px; line-height: 1.3; color: var(--ink-2); }

/* ================= colophon ================= */

.colophon {
  position: relative;
  z-index: 1;
  margin: 16px 0 24px;
  padding: 22px 26px 24px;
  border-radius: var(--radius-lg);
  max-width: 780px;
}
.colophon p { margin: 0 0 10px; font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.colophon p:last-child { margin-bottom: 0; }
.colophon strong { color: var(--ink-2); }
.colophon .tiny { font-size: 11px; color: var(--ink-4); font-style: italic; }

/* ================= skeleton ================= */

.skeleton { padding: 34px; border-radius: var(--radius-xl); background: rgba(255,255,255,.05); border: 1px solid var(--stroke); }
.sk-line, .sk-title, .sk-card {
  background: linear-gradient(90deg, rgba(255,255,255,.06) 25%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 999px;
}
.sk-line { height: 9px; width: 40%; margin-bottom: 18px; }
.sk-title { height: 30px; width: 68%; margin-bottom: 30px; }
.sk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sk-card { height: 140px; border-radius: var(--radius-lg); }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ================= modal ================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 5, 12, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .3s var(--ease);
}
.modal[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal-card {
  width: min(660px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 34px 36px 38px;
  border-radius: var(--radius-xl);
  animation: pop .45s var(--spring);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-card h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -.015em;
  color: #fff;
}
.modal-card h3 {
  margin: 22px 0 7px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.modal-card p { margin: 0; font-size: 13px; line-height: 1.72; color: var(--ink-2); }
.modal-card code {
  font-family: var(--mono);
  font-size: 11.5px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  padding: 1px 5px;
  color: var(--ink);
}
.modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  appearance: none;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 8px;
  transition: color .2s var(--ease), transform .3s var(--spring);
}
.modal-x:hover { color: #fff; transform: rotate(90deg); }

/* ================= focus ================= */

:focus-visible { outline: 2px solid rgba(255,255,255,.85); outline-offset: 3px; border-radius: 6px; }
.story:focus-visible, .pill:focus-visible, .ghost:focus-visible, .card:focus-visible, .navbtn:focus-visible {
  outline-offset: -2px;
}

/* ================= deep read ================= */

.deepen {
  margin-top: 18px;
  appearance: none;
  border: 1px solid rgba(255,255,255,.26);
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .3s var(--spring), background .2s var(--ease);
}
.deepen:hover { transform: translateY(-2px); background: rgba(255,255,255,.2); }
.deepen::before { content: '\2726  '; color: #a9d8ff; }

.reader-card { width: min(780px, 100%); max-height: 88vh; padding: 32px 40px 40px; }

.reader-kicker {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.reader-card h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -.012em;
  color: #fff;
}

.reader-traces { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; }
.reader-traces .tool-line { margin: 0; }

.reader-body { color: rgba(255,255,255,.88); }
.reader-body p {
  margin: 0 0 15px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.72;
  max-width: 68ch;
}
.reader-body h3 {
  margin: 26px 0 10px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.reader-body ul { margin: 0 0 15px; padding-left: 20px; }
.reader-body li {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 7px;
  max-width: 66ch;
}
.reader-body a { color: #9ec8ff; text-decoration: underline; text-underline-offset: 2px; }
.reader-body a:hover { color: #fff; }
.reader-body strong { color: #fff; }

.reader-wait {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .reader-card { padding: 26px 20px 32px; }
  .reader-card h2 { font-size: 20px; }
  .reader-body p { font-size: 15px; }
}

/* ---------------- legal documents ---------------- */

.gate-intro { margin: 0 0 16px; font-size: 13px; line-height: 1.65; color: var(--ink-2); }

.gate-scope {
  margin: 0 0 16px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 176, 61, .38);
  background: rgba(255, 176, 61, .09);
  font-size: 12.5px;
  line-height: 1.6;
  color: #ffd9a8;
}
.gate-scope strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffc06b;
}

.gate-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.gtab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.gtab:hover { color: #fff; }
.gtab.is-on { color: #fff; border-bottom-color: rgba(255,255,255,.85); }

.legal-meta {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 11.5px;
}
.legal-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.legal-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--ink-2);
  line-height: 1.5;
  vertical-align: top;
}

.gate-foot {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-4);
}

/* ================= account screen ================= */

.auth {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow-y: auto;
  background: radial-gradient(120% 90% at 50% -10%, #131c42 0%, #0a0d1f 50%, #05060d 100%);
}
.auth[hidden] { display: none; }

.auth-card {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  width: min(940px, 100%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(8, 10, 24, .92);
  box-shadow: 0 44px 120px -44px #000, inset 0 1px 0 rgba(255,255,255,.26);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.auth-side {
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(91,61,245,.35), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, rgba(0,183,255,.22), transparent 60%),
    rgba(255,255,255,.03);
  border-right: 1px solid rgba(255,255,255,.08);
}

.auth-brand {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
}

.auth-tag {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,.72);
}

.auth-points {
  margin: 12px 0 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-points li {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
}

.auth-fine {
  margin: auto 0 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.auth-main { padding: 32px 34px 30px; }

.auth-tabs { display: flex; gap: 18px; margin-bottom: 20px; }
.atab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 0 0 8px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.atab.is-on { color: #fff; border-bottom-color: rgba(255,255,255,.85); }

.afield { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.afield > span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.afield input {
  appearance: none;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 13.5px;
  padding: 12px 13px;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.afield input:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1); }

.auth-turnstile { margin: 16px 0 8px; }
.ts-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  user-select: none;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.ts-box:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.07); }
.ts-box:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }
.ts-box.is-ok {
  border-color: rgba(120, 224, 160, .55);
  background: rgba(120, 224, 160, .08);
}
.ts-box.is-ok .ts-mark {
  border-color: #78e0a0;
  background: #78e0a0;
  color: #06210f;
}
.ts-box.is-ok .ts-note { color: rgba(120, 224, 160, .85); }
.ts-mark {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.35);
  flex: none;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.ts-label { font-size: 12.5px; color: var(--ink-2); }
.ts-note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: right;
}

.auth-err { margin: 6px 0 0; font-size: 12px; color: #ff9c8c; line-height: 1.5; }

.auth-submit {
  width: 100%;
  margin-top: 14px;
  appearance: none;
  border: 0;
  border-radius: 11px;
  padding: 13px 16px;
  background: rgba(255,255,255,.94);
  color: #0a0c18;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s var(--ease);
}
.auth-submit:hover { opacity: .87; }

.auth-legal {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-4);
}
.linkish {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-2);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.linkish:hover { color: #fff; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.12);
}

.apikey-title {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.apikey-sub { margin: 0 0 12px; font-size: 12px; line-height: 1.55; color: var(--ink-3); }

.apikey-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 40px 13px 15px;
  margin-bottom: 8px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .25s var(--spring);
}
a.apikey-opt:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.apikey-opt.is-soon { opacity: .55; }
.apikey-opt.is-muted { opacity: .62; border-style: dashed; }

.apikey-name { font-size: 13px; color: #fff; }
.apikey-name em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 6px;
}
.apikey-desc { font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.apikey-go {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
}
a.apikey-opt:hover .apikey-go { color: #fff; }

@media (max-width: 780px) {
  .auth-card { grid-template-columns: minmax(0, 1fr); }
  .auth-side { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); padding: 26px 22px; }
  .auth-points { display: none; }
  .auth-main { padding: 24px 22px 26px; }
}

/* ================= first run ================= */

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow-y: auto;
  background: radial-gradient(120% 90% at 50% -10%, #131c42 0%, #0a0d1f 50%, #05060d 100%);
}
.gate[hidden] { display: none; }

.gate-card {
  width: min(780px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 34px 38px 28px;
  border-radius: 28px;
  background: linear-gradient(158deg, rgba(255,255,255,.13), rgba(255,255,255,.03)), rgba(8, 10, 24, .92);
  border: 1px solid var(--stroke);
  box-shadow: 0 40px 110px -40px #000, inset 0 1px 0 rgba(255,255,255,.30);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.gate-kicker {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.gate-card h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 26px; font-weight: 400; color: #fff; letter-spacing: -.01em; }

.legal { flex: 1; overflow-y: auto; padding-right: 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.legal::-webkit-scrollbar { width: 6px; }
.legal::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 99px; }
.legal h3 {
  margin: 20px 0 9px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.legal p { margin: 0 0 11px; font-size: 12.5px; line-height: 1.72; color: var(--ink-2); }
.legal b { color: rgba(255,255,255,.92); }
.legal code {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255,255,255,.09);
  border-radius: 5px;
  padding: 1px 5px;
}

.gate-agree {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 18px 0 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
  cursor: pointer;
}
.gate-agree input { margin-top: 3px; width: 16px; height: 16px; accent-color: #8be0b0; cursor: pointer; }

.gate-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  background: rgba(255,255,255,.94);
  color: #0a0c18;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s var(--ease);
}
.gate-btn:hover { opacity: .88; }
.gate-btn:disabled { opacity: .35; cursor: default; }

.wizard-card { width: min(640px, 100%); max-height: none; }
.wiz-hint { margin: -8px 0 20px; font-size: 12.5px; color: var(--ink-3); }
.wiz-body { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.wiz-opt {
  appearance: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  padding: 11px 17px;
  cursor: pointer;
  transition: all .22s var(--ease);
}
.wiz-opt:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.wiz-opt.is-on { background: rgba(255,255,255,.94); border-color: rgba(255,255,255,.94); color: #0a0c18; }

.wiz-nav { display: flex; justify-content: space-between; gap: 10px; }
.wiz-nav .ghost { padding: 12px 18px; }
.wiz-nav .ghost:disabled { opacity: .3; cursor: default; }

/* ================= framing timeline ================= */

.timeline {
  position: relative;
  padding: 20px 26px 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(158deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
    rgba(10, 12, 26, .36);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.tl { display: flex; gap: 14px; margin-top: 10px; }

.tl-labels { display: flex; flex-direction: column; flex: none; }
.tl-labels span {
  height: 25px;
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  color: var(--ink-4);
}

.tl-track {
  position: relative;
  flex: 1;
  height: 78px;
  border-left: 1px solid rgba(255,255,255,.10);
}

.tl-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: transform .2s var(--ease);
  cursor: default;
}
.tl-dot:hover { transform: translateX(-50%) scale(1.6); }
.tl-dot.l { background: var(--left); box-shadow: 0 0 10px rgba(106,164,255,.9); }
.tl-dot.c { background: var(--center); }
.tl-dot.r { background: var(--right); box-shadow: 0 0 10px rgba(255,125,105,.9); }

.tl-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-left: 26px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .07em;
  color: var(--ink-4);
}

/* ================= reading mirror ================= */

.mirror { margin-bottom: 20px; }

.mirror-bar {
  display: flex;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  margin: 9px 0 9px;
}
.mirror-bar i { display: block; }
.mirror-bar .l { background: linear-gradient(90deg, #4d86e8, #7fb0ff); }
.mirror-bar .c { background: linear-gradient(90deg, #a8a49a, #ddd9cd); }
.mirror-bar .r { background: linear-gradient(90deg, #e8644f, #ff9d8b); }

.mirror-note { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }

/* ================= inbox ================= */

.ghost.reads { display: inline-flex; align-items: center; gap: 7px; }
#inbox-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: var(--ink-4);
  font-size: 8.5px;
}
#inbox-badge.is-on { background: #8be0b0; color: #06210f; box-shadow: 0 0 12px rgba(139,224,176,.7); }

.inbox-card { width: min(620px, 100%); }
.inbox-note { margin: -4px 0 18px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.inbox-list { display: flex; flex-direction: column; gap: 8px; }
.inbox-sub {
  margin: 14px 0 2px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.inbox-empty { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--ink-4); margin: 0; }
.inbox-empty em { font-style: normal; color: var(--ink-2); }

.inbox-row {
  appearance: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .3s var(--spring);
}
.inbox-row:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.26); transform: translateY(-1px); }
.inbox-row.is-busy { opacity: .6; }
.inbox-src { font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: var(--ink-4); }
.inbox-title { font-family: var(--serif); font-size: 15px; line-height: 1.35; color: #fff; }

/* ================= chat ================= */

.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.30);
  background:
    linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.07)),
    rgba(10, 12, 26, .55);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .4s var(--spring), background .25s var(--ease);
}
.fab::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #8be0b0;
  box-shadow: 0 0 10px #8be0b0;
}
.fab:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); }

.chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: min(420px, calc(100vw - 36px));
  height: min(620px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.22);
  background:
    linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.035)),
    rgba(8, 10, 24, .90);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,.30);
  overflow: hidden;
  animation: pop .4s var(--spring);
}
.chat[hidden] { display: none; }
.chat.setup { height: auto; max-height: calc(100vh - 36px); }
.chat.setup .chat-setup { flex: none; justify-content: flex-start; }

.chat-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.chat-title {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}
.chat-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-4);
}
.chat-modes { display: flex; gap: 5px; margin-top: 9px; }
.mode {
  appearance: none;
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.mode:hover { color: var(--ink-2); border-color: rgba(255,255,255,.28); }
.mode.is-on { background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.9); color: #0a0c18; }

.chat-forget {
  margin-left: auto;
  align-self: center;
  appearance: none;
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chat-forget:hover { color: #ff9c8c; border-color: rgba(255,120,100,.4); }

.chat-x {
  appearance: none;
  background: none;
  border: 0;
  color: var(--ink-3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color .2s var(--ease);
}
.chat-x:hover { color: #fff; }

.chat-setup {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 20px;
  overflow-y: auto;
}
.setup-lead {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
  color: #fff;
}
.setup-note { margin: 0 0 18px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }

.key-form { display: flex; flex-direction: column; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

#key-provider, #key-model-pick, #key-model, #key-input {
  appearance: none;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 12px;
  outline: none;
  width: 100%;
}
#key-provider option, #key-model-pick option { background: #0b0e1c; color: #fff; }
#key-provider:focus, #key-model-pick:focus, #key-model:focus, #key-input:focus {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.10);
}

#key-save {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  margin-top: 4px;
  background: rgba(255,255,255,.92);
  color: #0a0c18;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s var(--ease);
}
#key-save:hover { opacity: .85; }
#key-save:disabled { opacity: .45; cursor: default; }

.setup-err {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #ff9c8c;
}
.setup-hint { margin: 16px 0 0; font-size: 11px; line-height: 1.6; color: var(--ink-4); }
.setup-hint code {
  font-family: var(--mono);
  font-size: 10.5px;
  background: rgba(255,255,255,.08);
  border-radius: 5px;
  padding: 1px 5px;
}

.chat-thread {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.chat-thread::-webkit-scrollbar { width: 6px; }
.chat-thread::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 99px; }

.msg {
  max-width: 90%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.user {
  align-self: flex-end;
  background: rgba(255,255,255,.92);
  color: #0a0c18;
  border-bottom-right-radius: 5px;
}
.msg.bot {
  align-self: flex-start;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.90);
  border-bottom-left-radius: 5px;
}
.msg.err { color: #ff9c8c; border-color: rgba(255,120,100,.35); }

.tool-line {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(150, 220, 255, .8);
}
.tool-line::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: rgba(150, 220, 255, .9);
  box-shadow: 0 0 8px rgba(150, 220, 255, .9);
  animation: blink 1.1s steps(2) infinite;
}

.msg.thinking::after {
  content: '';
  display: inline-block;
  width: 7px; height: 14px;
  margin-left: 2px;
  background: rgba(255,255,255,.6);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.qchip {
  appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--ink-2);
  font-size: 11.5px;
  padding: 6px 11px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.qchip:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }

.chat-form {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}
#chat-input {
  flex: 1;
  min-width: 0;
  appearance: none;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 13px;
  padding: 11px 13px;
  outline: none;
}
#chat-input:focus { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.10); }
#chat-send {
  appearance: none;
  border: 0;
  border-radius: 12px;
  width: 42px;
  background: rgba(255,255,255,.92);
  color: #0a0c18;
  font-size: 15px;
  cursor: pointer;
  transition: opacity .2s var(--ease);
}
#chat-send:hover { opacity: .85; }
#chat-send:disabled { opacity: .4; cursor: default; }

@media (max-width: 900px) {
  .fab { right: 14px; bottom: 14px; padding: 12px 18px; }
  .chat { right: 10px; bottom: 10px; width: calc(100vw - 20px); height: calc(100vh - 20px); border-radius: 22px; }
}

/* ================= responsive ================= */

@media (max-width: 1180px) {
  :root { --rail-w: 286px; }
  .shell.is-home .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .story-head, .lens { padding-left: 26px; padding-right: 26px; }
  .lane { padding: 18px 16px 22px; }
  .hed { font-size: 15px; }
}

@media (max-width: 900px) {
  body { padding: 12px 12px 0; }

  .masthead {
    height: auto;
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: var(--radius-lg);
  }
  .mast-right { width: 100%; justify-content: flex-end; }
  .stat { display: none; }
  .wordmark { font-size: 14px; letter-spacing: .14em; }

  .shell { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .rail { position: static; height: auto; border-radius: var(--radius-lg); }
  .rail-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px;
  }
  .rail-list::-webkit-scrollbar { display: none; }
  .story {
    flex: 0 0 82%;
    scroll-snap-align: start;
    margin-bottom: 0;
    margin-right: 8px;
  }
  .st-head { -webkit-line-clamp: 2; }

  .story-head { padding: 22px 18px 20px; border-radius: var(--radius-lg); }
  .story-title { font-size: 21px; max-width: none; overflow-wrap: anywhere; }
  .meters { flex-direction: column; gap: 16px; margin-top: 18px; }
  .meter, .cover { flex: none; width: 100%; min-width: 0; }
  .meter-num { font-size: 33px; }

  .lanes { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lane { padding: 18px 18px 22px; }
  .hed { font-size: 16px; overflow-wrap: anywhere; }

  .lens { padding: 20px 18px 24px; border-radius: var(--radius-lg); }
  .lens-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }

  .brief { padding: 20px 18px 22px; border-radius: var(--radius-lg); }
  .brief p { font-size: 15px; }
  .doc { padding: 20px 18px 22px; border-radius: var(--radius-lg); }
  .doc-title { font-size: 18px; }
  .doc-body p { font-size: 15px; }

  .grid { grid-template-columns: minmax(0, 1fr); }
  .shell.is-home .grid { grid-template-columns: minmax(0, 1fr); }
  .today-title { font-size: 27px; }
  .scard { padding: 0; }
  .scard-body { padding: 13px 15px 15px; }
  .story-head.has-art { min-height: 200px; }
  .scard-title { font-size: 17.5px; }
  .vcard { flex: 0 0 230px; }
  .piece { padding: 22px 18px 26px; border-radius: var(--radius-lg); }
  .piece > p { font-size: 15.5px; }
  .piece > p:first-of-type { font-size: 16.5px; }
  .piece blockquote a { font-size: 16px; }

  .storynav { flex-direction: column; gap: 12px; }
  .navbtn { padding: 16px 18px; border-radius: var(--radius-lg); }
  .navbtn.next { text-align: left; align-items: flex-start; }

  .colophon { margin: 14px 0 18px; padding: 18px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .lane, .card, .word { animation: none !important; }
  * { transition-duration: .001ms !important; }
}

/* ---------------- opened without the server ---------------- */

.fileguard {
  max-width: 620px;
  margin: 14vh auto;
  padding: 0 28px;
  font-family: var(--sans);
  color: var(--ink-2);
}
.fileguard-tag {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #ffb06b;
}
.fileguard h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
}
.fileguard p { font-size: 14px; line-height: 1.7; margin: 0 0 14px; }
.fileguard pre {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  font-family: var(--mono);
  font-size: 13px;
  color: #fff;
}
.fileguard b { color: #fff; }

/* ---------------- plans ---------------- */

.planbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.plan-tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 3px 9px;
}
.plan-tag.is-pro { color: #0a0c18; background: #d8e2ff; border-color: transparent; }
.plan-note { font-size: 12px; color: var(--ink-2); }
.plan-cta {
  margin-left: auto;
  appearance: none;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.plan-cta:hover { background: rgba(255,255,255,.16); }

.scard.is-locked {
  appearance: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  opacity: .72;
  filter: saturate(.5);
}
.scard.is-locked:hover { opacity: 1; filter: none; }
.art-locked {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 10px, rgba(255,255,255,.02) 10px 20px);
  border-bottom: 1px solid var(--stroke);
  min-height: 150px;
}
.art-locked span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 4px 10px;
}

.plans {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 6, 14, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.plans[hidden] { display: none; }
.plans-card {
  position: relative;
  width: min(720px, 100%);
  padding: 34px 34px 26px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)), #0a0d1f;
  box-shadow: 0 40px 120px -40px #000;
}
.plans-x {
  position: absolute; top: 16px; right: 18px;
  background: none; border: 0; color: var(--ink-3);
  font-size: 22px; cursor: pointer;
}
.plans-tag {
  margin: 0 0 8px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-4);
}
.plans-title {
  margin: 0 0 22px;
  font-family: var(--serif); font-size: 30px; font-weight: 400; color: #fff;
}
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan-col {
  padding: 18px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.plan-col.is-pro {
  border-color: rgba(160, 190, 255, .45);
  background: linear-gradient(160deg, rgba(120,150,255,.14), rgba(255,255,255,.03));
}
.plan-name {
  margin: 0 0 4px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.plan-price { margin: 0 0 14px; font-family: var(--serif); font-size: 26px; color: #fff; }
.plan-price span { font-size: 13px; color: var(--ink-3); }
.plan-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.plan-list li { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.plan-list li::before { content: "\2013\00a0"; color: var(--ink-4); }
.plan-list li.is-off { color: var(--ink-4); text-decoration: line-through; }
.plans-buy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 22px 0 10px; padding: 14px;
  border-radius: 12px; background: #fff; color: #0a0c18;
  font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none;
}
.plans-buy:hover { opacity: .88; }
.plans-unlock {
  width: 100%; appearance: none; cursor: pointer;
  padding: 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2); background: transparent;
  color: var(--ink-2); font-family: var(--mono); font-size: 9px;
  letter-spacing: .1em; text-transform: uppercase;
}
.plans-unlock:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.plans-fine { margin: 14px 0 0; font-size: 11px; line-height: 1.6; color: var(--ink-4); }

@media (max-width: 640px) {
  .plans-grid { grid-template-columns: minmax(0, 1fr); }
  .plans-card { padding: 26px 20px 20px; }
}

/* ---------------- search ---------------- */

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.search:focus-within { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.09); }
.search-icon { color: var(--ink-4); font-size: 13px; line-height: 1; }
.search input {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 12.5px;
  width: 210px;
  outline: none;
}
.search input::placeholder { color: var(--ink-4); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  appearance: none;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.search-clear:hover { color: #fff; }

@media (max-width: 900px) {
  .search { margin-left: 0; order: 5; width: 100%; }
  .search input { width: 100%; }
}

/* ---------------- story actions ---------------- */

.story-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.savebtn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 15px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.savebtn:hover { border-color: rgba(255,255,255,.45); color: #fff; }
.savebtn.is-on {
  border-color: rgba(120, 224, 160, .5);
  background: rgba(120, 224, 160, .12);
  color: #a9f0c6;
}

/* ---------------- saved, out of window ---------------- */

.saved-old { margin: 26px 0 10px; }
.saved-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.saved-row a {
  flex: 1;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  color: rgba(255,255,255,.9);
  text-decoration: none;
}
.saved-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.saved-src {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.saved-drop {
  appearance: none;
  border: 1px solid rgba(255,255,255,.16);
  background: none;
  border-radius: 999px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  cursor: pointer;
}
.saved-drop:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------------- outlets on the card ---------------- */

.srcstrip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.srcstrip i { font-style: normal; opacity: .5; }
.srcstrip b { font-weight: 400; color: var(--ink-3); }

.src-time {
  font-style: normal;
  font-size: 8px;
  color: var(--ink-4);
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.lane-more { display: contents; }
.lane-all {
  appearance: none;
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,.2);
  background: transparent;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.lane-all:hover { color: #fff; border-color: rgba(255,255,255,.45); }

/* ---------------- publisher marks ---------------- */

.srcicon {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  object-fit: contain;
  background: rgba(255,255,255,.07);
  flex: none;
  vertical-align: -2px;
}
.srcicon.is-text {
  display: inline-grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: .02em;
  color: var(--ink-3);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}

.srcstrip .srcicon { width: 14px; height: 14px; }
.srcstrip b { margin-left: 2px; font-weight: 400; }

.src-id { display: inline-flex; align-items: center; gap: 6px; }
.lane .src-id .srcicon { width: 13px; height: 13px; }

/* ---------------- section colour system ----------------
   The left/centre/right dots stay fixed: those three colours carry political
   meaning. Everything else is keyed to the section, so a reader can tell
   business from science from sport before reading a word. */

:root {
  --sec-politics: #8b9dff;
  --sec-world:    #2fd6c3;
  --sec-business: #f2b544;
  --sec-tech:     #b083ff;
  --sec-science:  #55e08a;
  --sec-health:   #ff7b93;
  --sec-sport:    #ff9448;
  --sec-culture:  #ff7ac0;
  --sec-default:  #9aa7c7;
}

[data-sec="politics"], [data-section="politics"] { --sec: var(--sec-politics); }
[data-sec="world"],    [data-section="world"]    { --sec: var(--sec-world); }
[data-sec="business"], [data-section="business"] { --sec: var(--sec-business); }
[data-sec="tech"],     [data-section="tech"]     { --sec: var(--sec-tech); }
[data-sec="science"],  [data-section="science"]  { --sec: var(--sec-science); }
[data-sec="health"],   [data-section="health"]   { --sec: var(--sec-health); }
[data-sec="sport"],    [data-section="sport"]    { --sec: var(--sec-sport); }
[data-sec="culture"],  [data-section="culture"]  { --sec: var(--sec-culture); }
[data-sec], [data-section] { --sec: var(--sec-default); }

.sec-chip {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sec);
  background: color-mix(in srgb, var(--sec) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sec) 32%, transparent);
  border-radius: 999px;
  padding: 2px 7px;
  margin-right: 7px;
  flex: none;
}

.scard { position: relative; }
.scard::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sec), transparent 65%);
  opacity: .55;
  pointer-events: none;
  z-index: 2;
}
.scard:hover::before { opacity: .95; }

.sec.is-on {
  color: #fff;
  border-color: color-mix(in srgb, var(--sec) 55%, transparent);
  background: color-mix(in srgb, var(--sec) 16%, transparent);
}

.sec-name {
  font-style: normal;
  color: var(--sec);
  letter-spacing: .14em;
}
.story-head .kicker .sec-name { color: var(--sec); }

@media (prefers-reduced-motion: reduce) {
  .scard::before { transition: none; }
}

/* section dots in the nav, so the palette is legible before you read */
.sec::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sec);
  margin-right: 7px;
  vertical-align: 1px;
  opacity: .5;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.sec:hover::before { opacity: .9; }
.sec.is-on::before { opacity: 1; transform: scale(1.35); }
.sec[data-section="all"]::before { display: none; }

/* a touch more presence for the card accent */
.scard::before { height: 2px; opacity: .7; }

.auth-note {
  margin: 0 0 14px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 176, 61, .35);
  background: rgba(255, 176, 61, .08);
  color: #ffd9a8;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------------- icon plumbing ---------------- */

.ico {
  width: 14px;
  height: 14px;
  flex: none;
  vertical-align: -2px;
  display: inline-block;
}

.search-icon { width: 13px; height: 13px; color: var(--ink-4); }
.search:focus-within .search-icon { color: var(--ink-2); }

/* the section nav now carries a glyph instead of a plain dot */
.sec::before { display: none; }
.sec .ico {
  width: 12px;
  height: 12px;
  margin-right: 6px;
  color: var(--sec);
  opacity: .8;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.sec:hover .ico, .sec.is-on .ico { opacity: 1; }
.sec.is-on .ico { transform: scale(1.08); }

.sec-chip { display: inline-flex; align-items: center; }
.sec-chip .ico { width: 9px; height: 9px; margin-right: 4px; }

.savebtn { display: inline-flex; align-items: center; gap: 6px; }
.savebtn .ico { width: 12px; height: 12px; }
.savebtn.is-on .ico { color: #78e0a0; }

.briefstart { display: inline-flex; align-items: center; gap: 8px; }
.briefstart .ico { width: 10px; height: 10px; }

/* a quiet section watermark on generated artwork */
.art-portrait { position: relative; overflow: hidden; }
.art-glyph {
  position: absolute;
  right: 18px;
  bottom: 16px;
  pointer-events: none;
  z-index: 2;
}
.art-glyph .ico {
  width: 60px;
  height: 60px;
  stroke-width: .9;
  opacity: .22;
  color: var(--sec);
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .5));
}

.empty-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 0 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--ink-3);
}
.empty-mark .ico { width: 20px; height: 20px; }

/* brand mark */
.wordmark { display: inline-flex; align-items: center; gap: 9px; }
.wordmark .ico {
  width: 15px;
  height: 15px;
  color: #cbd6ff;
  opacity: .9;
  stroke-width: 1.4;
}
.wordmark .ico circle { opacity: .55; }

/* small delight marks */
.brief-tag .ico, .hero-tag .ico {
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: -1px;
  opacity: .85;
}

/* ---------------- also today: single-source headlines ---------------- */

.also { margin: 44px 0 10px; }

.also-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 14px 0 16px;
}

.also-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 46px;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
}

.also-src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.also-src .srcicon { width: 12px; height: 12px; }

.also-title {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.also-row:hover .also-title { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.also-time {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .06em;
  color: var(--ink-4);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .also-grid { grid-template-columns: minmax(0, 1fr); }
  .also-row { grid-template-columns: 92px minmax(0, 1fr) 40px; }
}

/* ---------------- live generation progress ---------------- */

.prog {
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,.10);
  overflow: hidden;
  margin: 0 0 10px;
}
.prog i {
  display: block;
  height: 100%;
  width: 30%;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), transparent);
  animation: progslide 1.5s ease-in-out infinite;
  transition: width .4s ease;
}
@keyframes progslide {
  0%   { transform: translateX(-110%); opacity: .5; }
  50%  { opacity: 1; }
  100% { transform: translateX(340%); opacity: .5; }
}

.prog-label {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.trace-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 190px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.trace-list .tool-line {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
  color: var(--ink-3);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  animation: fadeIn .3s ease;
}
.trace-list .tool-line em {
  font-style: normal;
  color: var(--ink-4);
  flex: none;
  min-width: 34px;
}

@media (prefers-reduced-motion: reduce) {
  .prog i { animation: none; width: 100%; opacity: .4; }
}

/* ---------------- wording diff ---------------- */

.cmp-pick {
  appearance: none;
  margin-top: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.cmp-pick:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.cmp-pick.is-on {
  color: #0a0c18;
  background: #dfe6ff;
  border-color: transparent;
}

.cmp {
  margin-top: 22px;
  padding: 20px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
}

.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cmp-head .section-label { margin: 0; }

.cmp-clear {
  appearance: none;
  border: 0;
  background: none;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.cmp-clear:hover { color: #fff; }

.cmp-sub { margin: 8px 0 16px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.cmp-sub b { color: #fff; }

.cmp-row {
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 2px solid var(--center);
  background: rgba(255,255,255,.03);
  margin-bottom: 10px;
}
.cmp-row.a { border-left-color: var(--left); }
.cmp-row.b { border-left-color: var(--right); }

.cmp-src {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cmp-src a { margin-left: auto; color: var(--ink-3); text-decoration: none; }
.cmp-src a:hover { color: #fff; }

.cmp-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255,255,255,.92);
}

.cmp-text mark { border-radius: 3px; padding: 1px 2px; }
.cmp-text .d-a { background: rgba(106,164,255,.26); color: #e6efff; }
.cmp-text .d-b { background: rgba(255,125,105,.26); color: #ffe9e4; }

.cmp-note { margin: 8px 0 0; font-size: 11px; color: var(--ink-4); }

@media (max-width: 700px) {
  .cmp-text { font-size: 15px; }
}

/* ---------------- framing score explainer ---------------- */

.chip.is-clickable { cursor: pointer; }
.chip.is-clickable:hover { filter: brightness(1.35); }

.gap {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 6, 14, .84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.gap[hidden] { display: none; }

.gap-card {
  position: relative;
  width: min(660px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 32px 34px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)), #0a0d1f;
  box-shadow: 0 40px 120px -40px #000;
}
.gap-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; color: var(--ink-3);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.gap-x:hover { color: #fff; }

.gap-kicker {
  margin: 0 0 8px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-4);
}
.gap-title {
  margin: 0 0 18px;
  font-family: var(--serif); font-weight: 400; font-size: 22px;
  line-height: 1.25; color: #fff; letter-spacing: -.01em;
}

.g-def { margin: 0 0 18px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.g-def b { color: #fff; font-size: 17px; }

.g-parts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.g-part {
  display: grid;
  grid-template-columns: 88px 1fr 42px;
  align-items: center;
  gap: 10px;
}
.g-name {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.g-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.g-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--left), var(--right));
}
.g-val { font-family: var(--mono); font-size: 9px; color: var(--ink-2); text-align: right; }
.g-note {
  grid-column: 2 / -1;
  font-size: 10.5px; color: var(--ink-4); margin-top: -4px;
}

.g-weighted { margin: 10px 0 14px; font-size: 11.5px; color: var(--ink-3); }
.g-sample { margin: 0 0 16px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.g-sample b { color: #fff; }

.g-label {
  margin: 0 0 8px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4);
}

.g-words { display: flex; flex-direction: column; gap: 0; }
.g-word {
  display: grid;
  grid-template-columns: 110px 78px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.g-w { font-family: var(--serif); font-size: 15px; }
.g-desk {
  font-family: var(--mono); font-size: 7.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-4);
}
.g-head {
  font-size: 11.5px; line-height: 1.45; color: var(--ink-3);
  text-decoration: none; display: block;
}
.g-head:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.g-warn {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,176,61,.3); background: rgba(255,176,61,.07);
  font-size: 11.5px; line-height: 1.55; color: #ffd9a8;
}

.g-thin-title { margin: 0 0 10px; font-family: var(--serif); font-size: 19px; color: #fff; }
.g-thin-sub { margin: 0 0 10px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.g-thin-sub b { color: #fff; }

.gap-foot {
  margin: 20px 0 0; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px; line-height: 1.6; color: var(--ink-4);
}

@media (max-width: 640px) {
  .gap-card { padding: 26px 20px 18px; }
  .g-part { grid-template-columns: 74px 1fr 38px; }
  .g-word { grid-template-columns: 92px 66px 1fr; }
}

.meter.is-clickable, .meter.is-thin { cursor: pointer; }
.meter.is-clickable:hover .meter-num { color: #fff; }
.meter.is-clickable:hover .meter-label, .meter.is-thin:hover .meter-label { color: var(--ink-2); }
.meter-none {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink-3);
}
.meter.is-thin { border-left: 2px solid rgba(255,176,61,.5); padding-left: 12px; }

/* ---------------- what changed ---------------- */

.chg {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  margin-bottom: 12px;
}
.chg .section-label { margin: 0 0 12px; }
.chg-none { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

.chg-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.chg-kind {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  min-width: 62px;
}
.chg-row.is-new .chg-kind { color: #78e0a0; }
.chg-row.is-gone .chg-kind { color: #ff9c8c; }
.chg-names { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

.chg-words { margin-top: 4px; }
.chg-pair {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.chg-src {
  grid-row: 1 / 3;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 3px;
}
.chg-before {
  grid-column: 2;
  font-size: 12.5px;
  color: var(--ink-4);
  text-decoration: line-through;
  text-decoration-color: rgba(255,156,140,.6);
}
.chg-after { grid-column: 2; font-size: 13px; color: var(--ink-2); }

.chg-note { margin: 12px 0 0; font-size: 10.5px; color: var(--ink-4); line-height: 1.5; }

/* timeline: outlets that joined */
.tl-dot.is-new { box-shadow: 0 0 0 2px rgba(120,224,160,.85), 0 0 12px rgba(120,224,160,.7); }
.tl-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 0;
  padding-left: 26px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.tl-legend i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(120,224,160,.9);
  box-shadow: 0 0 8px rgba(120,224,160,.8);
}

.meter-hint {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.meter.is-clickable:hover .meter-hint { color: var(--ink-2); }

/* ---------------- repeated wire copy ---------------- */

.rep {
  margin-top: 22px;
  padding: 20px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}

.rep-sum {
  margin: 10px 0 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.rep-sum b { color: #fff; }

.rep-row {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.rep-head { display: flex; align-items: baseline; gap: 12px; }

.rep-count {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: #0a0c18;
  background: #d8e2ff;
  border-radius: 999px;
  padding: 2px 9px;
}

.rep-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.35;
  color: rgba(255,255,255,.94);
}

.rep-srcs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 0 46px;
}
.rep-srcs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
}
.rep-srcs a:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.09); }
.rep-srcs .srcicon { width: 12px; height: 12px; }

.rep-note { margin: 14px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--ink-4); }

.rep-badge {
  display: inline-block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #cbb6ff;
  border: 1px solid rgba(176,131,255,.4);
  background: rgba(176,131,255,.12);
  border-radius: 999px;
  padding: 2px 8px;
}

@media (max-width: 700px) {
  .rep-srcs { margin-left: 0; }
  .rep-title { font-size: 15px; }
}

/* ---------------- feeds checked ---------------- */

.lane-empty-title { margin: 0 0 8px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.lane-why {
  appearance: none;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.lane-why:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.stat-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-bottom: 1px dotted rgba(255,255,255,.35);
}
.stat-btn:hover { color: #fff; border-bottom-color: #fff; }

.feeds {
  position: fixed;
  inset: 0;
  z-index: 235;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 6, 14, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.feeds[hidden] { display: none; }
.feeds-card {
  position: relative;
  width: min(760px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px 32px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)), #0a0d1f;
  box-shadow: 0 40px 120px -40px #000;
}
.feeds-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; color: var(--ink-3); font-size: 22px; line-height: 1; cursor: pointer;
}
.feeds-x:hover { color: #fff; }
.feeds-kicker {
  margin: 0 0 8px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-4);
}
.feeds-title {
  margin: 0 0 14px;
  font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.3; color: #fff;
}
.feeds-note { margin: 0 0 16px; font-size: 12.5px; line-height: 1.65; color: var(--ink-3); }

.f-group {
  margin: 16px 0 6px;
  font-family: var(--mono); font-size: 8px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4);
}

.f-row {
  display: grid;
  grid-template-columns: 10px minmax(120px, 1.2fr) 52px 92px 116px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.f-dot { width: 7px; height: 7px; border-radius: 50%; background: #78e0a0; box-shadow: 0 0 8px rgba(120,224,160,.6); }
.f-row.is-down .f-dot { background: #ff9c8c; box-shadow: 0 0 8px rgba(255,156,140,.6); }
.f-name { font-size: 12px; color: var(--ink-2); }
.f-lean { font-family: var(--mono); font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.f-count { font-family: var(--mono); font-size: 9px; color: var(--ink-3); }
.f-last { font-family: var(--mono); font-size: 8.5px; color: var(--ink-4); }
.f-err { grid-column: 2 / -1; font-size: 10.5px; color: #ff9c8c; margin-top: -2px; }
.f-row.is-down { grid-template-rows: auto auto; }

.feeds-foot { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 10.5px; color: var(--ink-4); }

@media (max-width: 680px) {
  .feeds-card { padding: 24px 18px 16px; }
  .f-row { grid-template-columns: 10px 1fr 44px; }
  .f-last, .f-count { display: none; }
}

/* ---------------- redesigned home ---------------- */

.home-only { display: none; }

.lead {
  padding: 22px 26px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(91,61,245,.20), transparent 58%),
    radial-gradient(90% 120% at 92% 10%, rgba(255,125,105,.14), transparent 55%),
    rgba(255,255,255,.03);
  margin-bottom: 12px;
}

.lead-kicker {
  margin: 0 0 9px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.lead-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -.012em;
  color: #fff;
  max-width: 22ch;
}
.lead-title a { color: inherit; text-decoration: none; }
.lead-title a:hover { color: #dfe6ff; }

.lead-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

.lead-gap {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lead-gap b { font-size: 12px; color: #fff; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.lead-gap:hover { border-color: rgba(255,255,255,.45); color: #fff; }

.lead-arrow {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.lc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lc-side {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  border-left: 2px solid var(--center);
}
.lc-side.is-left { border-left-color: var(--left); }
.lc-side.is-right { border-left-color: var(--right); }

.lc-desk {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.lc-head {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255,255,255,.93);
}
.lc-head mark { border-radius: 3px; padding: 0 2px; }
.lc-head .d-a { background: rgba(106,164,255,.3); color: #eaf1ff; }
.lc-head .d-b { background: rgba(255,125,105,.3); color: #ffece8; }

.lc-note { margin: 10px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--ink-4); }

.dev { margin-bottom: 12px; }
.dev-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.dev-head .section-label { margin: 0; }
.dev-all {
  appearance: none; border: 0; background: none; padding: 0;
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-4); cursor: pointer;
}
.dev-all:hover { color: #fff; }

.dev-row {
  appearance: none;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 2px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.06);
  background: none;
  text-align: left;
  cursor: pointer;
}
.dev-row:hover .dev-title { color: #fff; }
.dev-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.3);
}
.dev-dot.blind { background: #ffb03d; }
.dev-title {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.dev-meta {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}

.seclist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.seclist-item {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--ink-3);
  font-size: 10.5px;
  cursor: pointer;
}
.seclist-item em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--ink-4);
}
.seclist-item:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.seclist-item.is-on { background: rgba(255,255,255,.12); color: #fff; }
.seclist-item svg { width: 11px; height: 11px; opacity: .7; }

@media (max-width: 900px) {
  .lead-title { font-size: 24px; max-width: none; }
  .lc { grid-template-columns: 1fr; }
}

.all-label { margin: 26px 0 12px; }

/* the trail folds away once the piece exists */
.trace-toggle {
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
}
.trace-toggle:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.trace-list.is-collapsed { display: none; }
.trace-list.is-open { display: flex; max-height: 220px; }

/* ---------------- lanes: equal weight, aligned, unclipped ---------------- */

.lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.lanes > .lane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

/* publisher, timestamp and the read link sit on three fixed columns */
.lane .src {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  grid-template-areas: "ico name time" ". go go";
  align-items: center;
  column-gap: 7px;
  row-gap: 2px;
}
.lane .src-ico { grid-area: ico; display: inline-flex; }
.lane .src-name {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lane .src-name .lead {
  margin-left: 5px;
  font-style: normal;
  font-size: 7px;
  letter-spacing: .1em;
  color: var(--ink-3);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 0 5px;
}
.lane .src-time {
  grid-area: time;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-4);
}
.lane .go { grid-area: go; justify-self: start; }

/* headlines must never be cut: they wrap to as many lines as they need */
.lane .hed {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  -webkit-line-clamp: none;
  display: block;
}

/* --- narrow window: three tabs, each equally one tap away --- */
.lane-tabs { display: none; }

@media (max-width: 900px) {
  .lane-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
  }
  .lane-tab {
    appearance: none;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding: 9px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.03);
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .11em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .lane-tab em { font-style: normal; color: var(--ink-4); }
  .lane-tab.is-on { color: #0a0c18; background: #dfe6ff; border-color: transparent; }
  .lane-tab.is-on em { color: rgba(10,12,24,.6); }

  .lanes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lanes > .lane { display: none; }
  .lanes[data-tab="left"]   > .lane.l,
  .lanes[data-tab="center"] > .lane.c,
  .lanes[data-tab="right"]  > .lane.r { display: flex; }
}

/* narrow windows: nothing may push the page wider than the viewport */
@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .shell, .view, .today, .story, .lanes, .lane, .lc, .lead,
  .press, .lens, .brief, .doc, .rep, .chg { min-width: 0; max-width: 100%; }
  .lanes > .lane { width: 100%; }
  .story-head, .panel { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------- typography: serif headlines, short mono labels ---------------- */

.hed, .lead-title, .dev-title, .rep-title, .cmp-text, .scard-title, .lc-head,
.doc-title, .today-title, .feeds-title, .gap-title, .g-thin-title {
  font-family: var(--serif);
  letter-spacing: -.01em;
}

/* labels: mono, uppercase, but readable — and they must stay short */
.section-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* the publisher line is something people scan for: give it weight and air */
.lane .src {
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.lane .src-name { color: var(--ink-2); }
.lane .src-time {
  color: var(--ink-3);
  letter-spacing: .06em;
  text-transform: none;
  font-size: 9px;
}
.lane .src-time::before { content: ""; }
.lane .go { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }

/* scores and counts use tabular figures so columns line up */
.chip, .lane-count, .dev-meta, .meter-num, .rep-count { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  /* the tab bar already carries the count */
  .lane-head .lane-count { display: none; }
}

/* ---------------- new copy notice ---------------- */

.updates {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 180;
  appearance: none;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(12, 16, 34, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #eaf0ff;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.9);
  animation: fadeIn .25s var(--ease);
}
.updates[hidden] { display: none; }
.updates:hover { background: #eaf0ff; color: #0a0c18; border-color: transparent; }

/* ---------------- search screen ---------------- */

.sbar { margin: 4px 0 18px; }
.sbar-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.sfield { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sfield > span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.sfield select, .sfield input {
  appearance: none;
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: var(--ink-2);
  font-size: 12px;
  font-family: inherit;
}
.sfield select:focus, .sfield input:focus { outline: none; border-color: rgba(255,255,255,.5); }
.sfield input[type="date"] { color-scheme: dark; }

.sbar-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fchip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.fchip:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.fchip i { font-style: normal; color: var(--ink-4); }
.fchip:hover i { color: #fff; }

.sres-list { display: flex; flex-direction: column; }
.sres {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 14px 2px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.07);
  background: none;
  text-align: left;
  cursor: pointer;
}
.sres:hover .sres-story { color: #fff; }
.sres-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sres-story {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-2);
}
.sres-meta {
  flex: none;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.sres-hit {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}
.sres-hit mark {
  background: rgba(255,220,120,.24);
  color: #ffeec2;
  border-radius: 3px;
  padding: 0 2px;
}

.sempty {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
}
.sempty-label {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.sempty .briefstart { margin-top: 14px; }

@media (max-width: 900px) {
  .sbar-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- following an event ---------------- */

.fol { margin-bottom: 12px; }
.fol-row {
  appearance: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 11px 2px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.07);
  background: none;
  text-align: left;
  cursor: pointer;
}
.fol-row:hover .fol-title { color: #fff; }
.fol-title {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink-2);
}
.fol-count {
  flex: none;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9be8b8;
  font-variant-numeric: tabular-nums;
}
.fol-row.is-stale { cursor: default; }
.fol-row.is-stale .fol-title { color: var(--ink-4); }
.fol-note { font-size: 11px; color: var(--ink-4); }

.fol-fresh { padding: 2px 0 10px 14px; border-left: 1px solid rgba(255,255,255,.1); margin-left: 2px; }
.fol-fresh a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  text-decoration: none;
  color: inherit;
}
.fol-fresh a:hover .fol-head { color: #fff; }
.fol-src {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fol-head { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.fol-time {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   DESIGN SYSTEM v2 — colour, depth, liquid glass
   Appended last on purpose: these are the authoritative tokens.
   ============================================================ */

:root {
  /* --- semantic state colours (never political) --- */
  --ok:     #4fd68c;
  --warn:   #f5b544;
  --danger: #ff6f61;
  --info:   #4fa8ff;

  --ok-tint:     rgba(79, 214, 140, .13);
  --warn-tint:   rgba(245, 181, 68, .13);
  --danger-tint: rgba(255, 111, 97, .13);
  --info-tint:   rgba(79, 168, 255, .13);

  /* --- surface ladder: each step is a real material --- */
  --surf-0: #05070f;
  --surf-1: rgba(255,255,255,.028);
  --surf-2: rgba(255,255,255,.055);
  --surf-3: rgba(255,255,255,.085);

  --edge:        rgba(255,255,255,.10);
  --edge-strong: rgba(255,255,255,.22);
  --edge-top:    rgba(255,255,255,.42);   /* specular lip */

  /* --- glass --- */
  --glass-blur: 26px;
  --glass-sat: 175%;
  --glass-tint: rgba(11, 14, 30, .38);
  --glass-hairline: rgba(255,255,255,.14);

  /* --- elevation: light from above, soft contact shadow --- */
  --e1: 0 2px 8px -2px rgba(0,0,0,.45);
  --e2: 0 10px 30px -12px rgba(0,0,0,.65);
  --e3: 0 24px 60px -24px rgba(0,0,0,.8);
  --e4: 0 44px 120px -40px rgba(0,0,0,.92);

  /* --- motion --- */
  --dur-1: 140ms;
  --dur-2: 240ms;
  --dur-3: 420ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* --- type scale --- */
  --t-micro: 8px;
  --t-label: 9px;
  --t-small: 11.5px;
  --t-body: 13.5px;
  --t-lead: clamp(24px, 2.6vw, 32px);

  --focus: 0 0 0 2px var(--surf-0), 0 0 0 4px rgba(150, 180, 255, .85);
}

/* ------------------------------------------------------------------
   1. Liquid glass: a hairline lip, a body that refracts, a soft floor
   ------------------------------------------------------------------ */

.glass,
.card, .scard, .lane, .lead, .press, .lens, .brief, .doc, .rep, .chg,
.chat, .plans-card, .gap-card, .feeds-card, .sempty {
  position: relative;
  isolation: isolate;
  background:
    /* specular wash from the top-left, the way a real pane catches light */
    radial-gradient(135% 90% at 10% -18%, rgba(255,255,255,.16), rgba(255,255,255,.03) 46%, transparent 68%),
    /* the body of the pane */
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.014) 42%, rgba(255,255,255,.004)),
    var(--glass-tint);
  border: 1px solid var(--glass-hairline);
  box-shadow:
    var(--e2),
    inset 0 1px 0 -0.5px var(--edge-top),
    inset 0 -1px 0 0 rgba(0,0,0,.35),
    inset 0 0 60px -30px rgba(255,255,255,.18);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}

/* the specular lip along the top edge */
.glass::before,
.card::before, .scard::before, .lane::before, .lead::before,
.rep::before, .chg::before, .gap-card::before, .feeds-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(255,255,255,.55) 18%, rgba(255,255,255,.18) 52%, rgba(255,255,255,.5) 82%, transparent);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

/* pointer-reactive sheen — JS sets --mx/--my */
.scard, .card, .lane, .lead, .rep, .chg { --mx: 50%; --my: 0%; }
.scard::after, .card::after, .lane::after, .lead::after, .rep::after, .chg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
  background: radial-gradient(340px circle at var(--mx) var(--my),
    rgba(255,255,255,.13), rgba(255,255,255,.045) 34%, transparent 62%);
  z-index: 1;
}
.scard:hover::after, .card:hover::after, .lane:hover::after,
.lead:hover::after, .rep:hover::after, .chg:hover::after { opacity: 1; }

/* ------------------------------------------------------------------
   2. Colour: every section owns an accent, used with restraint
   ------------------------------------------------------------------ */

.seclist-item, .sec, .section-tag, .day-head span {
  --sec: var(--sec-default);
}
.seclist-item.is-on,
.seclist-item:hover {
  border-color: color-mix(in oklab, var(--sec) 55%, transparent);
  background: color-mix(in oklab, var(--sec) 14%, transparent);
  color: color-mix(in oklab, var(--sec) 70%, #fff);
}
.seclist-item.is-on em { color: color-mix(in oklab, var(--sec) 60%, #fff); }

.lead { overflow: hidden; }
.lead::marker { content: ""; }

/* section accent rail on the story page */
.press { --sec: var(--sec-default); }

/* ------------------------------------------------------------------
   3. Depth cues: elevation responds to interaction
   ------------------------------------------------------------------ */

.card, .scard, .lane, .lead, .rep, .chg {
  transition:
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    background-color var(--dur-2) var(--ease-out);
  will-change: transform;
}

.scard:hover, .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--e3), inset 0 1px 0 -0.5px var(--edge-top);
  border-color: var(--edge-strong);
}
.scard:active, .card:active { transform: translateY(0); box-shadow: var(--e1); }

/* ------------------------------------------------------------------
   4. Focus: always visible, never ugly
   ------------------------------------------------------------------ */

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

/* ------------------------------------------------------------------
   5. Header compresses on scroll
   ------------------------------------------------------------------ */

.masthead, header.mast {
  transition: padding var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
body.is-scrolled .masthead,
body.is-scrolled header.mast {
  box-shadow: var(--e2);
  background-color: rgba(8, 10, 22, .72);
}

/* ------------------------------------------------------------------
   6. Entrance: one calm stagger, not a circus
   ------------------------------------------------------------------ */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to   { opacity: 1; transform: none; }
}
.lead, .fol, .dev, .seclist, .press, .rep, .chg { animation: riseIn var(--dur-3) var(--ease-out) both; }
.dev { animation-delay: 40ms; }
.seclist { animation-delay: 80ms; }
.press { animation-delay: 60ms; }

/* ------------------------------------------------------------------
   7. Respect the reader: reduced motion and low-power fallbacks
   ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .scard:hover, .card:hover { transform: none; }
  .scard::after, .card::after, .lane::after, .lead::after, .rep::after, .chg::after { display: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .card, .scard, .lane, .lead, .press, .lens, .brief, .doc, .rep, .chg,
  .chat, .plans-card, .gap-card, .feeds-card {
    background: linear-gradient(180deg, rgba(24,27,48,.96), rgba(12,14,28,.98));
  }
}

/* ------------------------------------------------------------------
   8. 200% zoom / very narrow: nothing overlaps or clips
   ------------------------------------------------------------------ */

@media (max-width: 520px) {
  :root { --glass-blur: 18px; --rail-w: 0px; }
  .lead-title { font-size: clamp(22px, 7vw, 28px); }
}

/* ============================================================
   DESIGN SYSTEM v2b — the room the glass sits in
   ============================================================ */

/* --- aurora: three slow colours behind everything --- */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38vmax 34vmax at 18% 12%, rgba(91,61,245,.30), transparent 62%),
    radial-gradient(34vmax 30vmax at 84% 8%,  rgba(255,125,105,.20), transparent 60%),
    radial-gradient(42vmax 36vmax at 62% 88%, rgba(0,183,255,.16), transparent 64%),
    radial-gradient(30vmax 26vmax at 8% 78%,  rgba(176,131,255,.16), transparent 60%);
  filter: blur(18px) saturate(120%);
  animation: auroraDrift 42s var(--ease) infinite alternate;
  opacity: .85;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2.5%, 1.8%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.03); }
}

/* --- fine grain: kills banding, adds a printed feel --- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* content must sit above both. Fixed elements keep their own positioning —
   setting `position` here moved the floating action button to the wrong corner. */
.shell, .masthead, .rail, .view { position: relative; z-index: 2; }
.fab, .updates, .chat, .plans, .gap, .feeds { z-index: 60; }

/* --- subtle 3D tilt on the surfaces that deserve it --- */
.lead, .scard {
  transform:
    perspective(1200px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--lift, 0px));
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
  transform-style: preserve-3d;
}
.lead:hover { --lift: -1px; }
.scard:hover { --lift: -2px; }

/* --- section index: room to breathe, accent dot, real counts --- */
.seclist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 6px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 6px;
}
.seclist-item {
  gap: 8px;
  padding: 7px 13px 7px 10px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--surf-1);
}
.seclist-item svg { width: 12px; height: 12px; opacity: .85; color: var(--sec); }
.seclist-item em {
  font-size: 8.5px;
  padding-left: 2px;
  border-left: 1px solid rgba(255,255,255,.14);
  margin-left: 2px;
}

/* --- masthead becomes a floating glass bar once scrolled --- */
body.is-scrolled .masthead {
  border-color: var(--edge-strong);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

/* --- modals get the full treatment --- */
.plans-card, .gap-card, .feeds-card {
  box-shadow: var(--e4), inset 0 1px 0 -0.5px var(--edge-top);
}

/* --- buttons feel physical --- */
.briefstart, .savebtn, .cmp-pick, .lane-tab, .fchip, .stat-btn {
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out),
              background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.briefstart:hover, .savebtn:hover, .cmp-pick:hover { transform: translateY(-1px); box-shadow: var(--e2); }
.briefstart:active, .savebtn:active, .cmp-pick:active { transform: translateY(0); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .lead, .scard { transform: none !important; }
}

/* --- legibility scrim over any photographic hero --- */
.story-hero::before, .lead-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(6,8,18,.92) 0%, rgba(6,8,18,.72) 42%, rgba(6,8,18,.28) 72%, rgba(6,8,18,.55) 100%);
}
.story-hero > *, .lead-art > * { position: relative; z-index: 1; }

/* section accent on the story kicker */
.story-kicker, .lead-kicker {
  color: color-mix(in oklab, var(--sec, var(--sec-default)) 62%, #ffffff);
}

/* --- the masthead must survive a long search query --- */
.masthead { flex-wrap: nowrap; gap: 12px; }
.mast-left { flex: none; }
.mast-right { display: flex; align-items: center; gap: 8px; flex: none; }
.masthead .search { flex: 1 1 260px; min-width: 0; max-width: 520px; }
@media (max-width: 1180px) {
  .masthead { flex-wrap: wrap; }
  .masthead .search { order: 3; flex-basis: 100%; max-width: none; }
}

/* --- masthead: keep the controls on one line; the stat block yields first --- */
.masthead { align-items: center; }
.mast-right > * { white-space: nowrap; }
.masthead button, .masthead .ghost, .masthead .stat-btn { white-space: nowrap; }
.stat-line, #statline {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
@media (max-width: 1360px) {
  .stat-line, #statline { display: none; }
}
@media (max-width: 1180px) {
  .masthead { flex-wrap: wrap; }
}

/* ---------------- outlet source card ---------------- */

.src {
  position: fixed; inset: 0; z-index: 236;
  display: grid; place-items: center; padding: 22px;
  background: rgba(4, 6, 14, .84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.src[hidden] { display: none; }
.src-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px 30px 22px;
  border-radius: 20px;
  border: 1px solid var(--glass-hairline);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)), #0a0d1f;
  box-shadow: var(--e4), inset 0 1px 0 -0.5px var(--edge-top);
}
.src-x {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; color: var(--ink-3); font-size: 22px; line-height: 1; cursor: pointer;
}
.src-x:hover { color: #fff; }
.src-kicker {
  margin: 0 0 6px; font-family: var(--mono); font-size: 8px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4);
}
.src-title { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 24px; color: #fff; }
.src-card-head { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.src-live { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: #9be8b8; }
.src-down { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: #ff9c8c; }
.src-basis { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.src-feed {
  display: flex; gap: 10px; align-items: baseline;
  margin: 0 0 8px; font-size: 12px; color: var(--ink-3);
}
.src-feed span {
  flex: none; width: 92px; font-family: var(--mono); font-size: 8px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4);
}
.src-feed a { color: var(--ink-2); text-decoration: none; word-break: break-all; }
.src-feed a:hover { color: #fff; text-decoration: underline; }
.src-feed em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.src-missing {
  margin: 12px 0 0; padding: 9px 11px; border-radius: 9px;
  border: 1px solid rgba(255,176,61,.28); background: rgba(255,176,61,.07);
  font-size: 11.5px; line-height: 1.55; color: #ffd9a8;
}
.src-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 10.5px; line-height: 1.6; color: var(--ink-4); }

.lane .src-name.is-link {
  appearance: none; border: 0; background: none; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,.22);
  text-underline-offset: 3px;
}
.lane .src-name.is-link:hover { color: #fff; text-decoration-color: #fff; }

/* the outlet name is a headline, not a label */
.src-card .src-title {
  font-family: var(--serif) !important;
  text-transform: none;
  letter-spacing: -.01em;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}
.src-missing {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
}

/* sentences inside the outlet card are sentences, not labels */
.src-card .src-basis,
.src-card .src-feed a,
.src-card .src-feed em,
.src-card .src-note {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
}
.src-card .src-basis { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.src-card .src-feed a { font-size: 12px; color: var(--ink-2); }
.src-card .src-feed em { font-size: 12px; font-variant-numeric: tabular-nums; }
.src-card .src-note { font-size: 10.5px; line-height: 1.6; color: var(--ink-4); }

/* ---------------- read aloud ---------------- */

.player {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 190;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(720px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--glass-hairline);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02)), rgba(10,13,28,.9);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--e4), inset 0 1px 0 -0.5px var(--edge-top);
}
.player[hidden] { display: none; }
body.has-player .fab { bottom: 108px; }

.pl-btn {
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.pl-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.pl-play { width: 44px; height: 44px; background: #eaf0ff; color: #0a0c18; font-size: 14px; }
.pl-play:hover { background: #fff; }
.pl-close { border-color: transparent; background: none; color: var(--ink-3); font-size: 18px; }
.pl-close:hover { color: #fff; background: none; }

.pl-body { flex: 1 1 auto; min-width: 0; }
.pl-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pl-label {
  font-family: var(--mono); font-size: 8px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-time { font-family: var(--mono); font-size: 8.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.pl-track {
  height: 4px; border-radius: 99px; background: rgba(255,255,255,.13);
  overflow: hidden; cursor: pointer;
}
.pl-track i { display: block; height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); }
.pl-note { margin: 6px 0 0; font-size: 10px; line-height: 1.45; color: var(--ink-4); }
.pl-note:empty { display: none; }
.pl-state { margin: 4px 0 0; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pl-state:empty { display: none; }

.pl-voice {
  appearance: none;
  flex: none;
  max-width: 132px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: var(--ink-2);
  font-size: 11px;
}
#pl-speed { font-family: var(--mono); font-size: 9px; width: auto; padding: 0 10px; border-radius: 999px; }

.reader-listen {
  appearance: none;
  margin: 0 0 12px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.reader-listen:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.reader-listen[hidden] { display: none; }

.listenbtn { margin-right: 6px; }

@media (max-width: 700px) {
  .player { gap: 10px; padding: 10px; }
  .pl-voice { display: none; }
}

/* ---------------- briefing: five events ---------------- */

.brief-lead {
  display: block;
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-decoration: none;
  border-left: 2px solid rgba(255,255,255,.18);
  padding-left: 11px;
}
.brief-lead:hover { color: #fff; border-left-color: #fff; }

.brief-cmp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.brief-side {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  border-left: 2px solid var(--center);
}
.brief-side.is-left { border-left-color: var(--left); }
.brief-side.is-right { border-left-color: var(--right); }
.brief-side .brief-desk {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.brief-side a {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  color: rgba(255,255,255,.93);
  text-decoration: none;
}
.brief-side a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.brief-side mark { border-radius: 3px; padding: 0 2px; }
.brief-side .d-a { background: rgba(106,164,255,.3); color: #eaf1ff; }
.brief-side .d-b { background: rgba(255,125,105,.3); color: #ffece8; }

.brief-cmp-note { margin: 0 0 18px; font-size: 10.5px; line-height: 1.5; color: var(--ink-4); }
.brief-cmp-note.is-thin { color: #ffd9a8; }

@media (max-width: 700px) {
  .brief-cmp { grid-template-columns: 1fr; }
}

/* ---------------- offline ---------------- */

.offline {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,176,61,.32);
  background: rgba(255,176,61,.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.offline[hidden] { display: none; }
.offline-dot {
  flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: #ffb03d;
  box-shadow: 0 0 10px rgba(255,176,61,.8);
}
.offline-msg { margin: 0; flex: 1 1 auto; font-size: 12px; line-height: 1.5; color: #ffd9a8; }
.offline-msg b { color: #fff; }
.offline-btn {
  flex: none;
  appearance: none;
  border: 1px solid rgba(255,176,61,.45);
  background: rgba(255,176,61,.14);
  color: #ffd9a8;
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.offline-btn:hover { background: #ffb03d; color: #1a1206; }
.offline-btn:disabled { opacity: .6; cursor: default; }

.offline-empty {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
}
.offline-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  color: #fff;
}
.offline-sub { margin: 0 0 20px; font-size: 13.5px; line-height: 1.65; color: var(--ink-3); }
.offline-sub code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* cards are no longer anchors: keep the affordances */
.scard { cursor: pointer; }
.scard:focus-visible { box-shadow: var(--focus); }
.card .hed {
  display: block;
  color: rgba(255,255,255,.94);
  text-decoration: none;
}
.card .hed:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.card .hed:focus-visible { box-shadow: var(--focus); border-radius: 4px; }

/* a visible focus ring everywhere, including on the new divs */
.scard[role="link"]:focus-visible,
.scard[role="button"]:focus-visible,
.card .src-name:focus-visible,
.cmp-pick:focus-visible,
.fchip:focus-visible,
.offline-btn:focus-visible,
.pl-btn:focus-visible { box-shadow: var(--focus); outline: none; }

/* --- 200% zoom / very narrow: the header becomes two rows, nothing clips --- */
@media (max-width: 820px) {
  .masthead {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 12px 14px;
  }
  .mast-left { flex: 1 1 auto; }
  .mast-right { flex: 1 1 100%; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  .masthead .search { order: 9; flex: 1 1 100%; max-width: none; width: 100%; }
  .masthead .search input { min-width: 0; width: 100%; }
  .masthead .ghost, .masthead .reads { padding: 7px 12px; }
  .stat-line, #statline { display: none; }
}

@media (max-width: 820px) {
  .lead { padding: 18px 16px 16px; }
  .lead-title { font-size: clamp(22px, 6.4vw, 30px); }
  .press, .rep, .chg, .lens, .brief, .doc, .fol, .dev { padding-left: 16px; padding-right: 16px; }
  .rep-srcs { margin-left: 0; }
  .g-word { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------------- interrupted jobs ---------------- */

.inbox-row.is-stopped {
  display: block;
  width: 100%;
  border: 1px solid rgba(255,176,61,.30);
  background: rgba(255,176,61,.06);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 10px;
  cursor: default;
}
.inbox-row.is-stopped .inbox-title { display: block; margin: 6px 0 8px; }
.inbox-warn {
  margin: 0 0 10px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #ffd9a8;
}
.inbox-retry {
  appearance: none;
  border: 1px solid rgba(255,176,61,.45);
  background: rgba(255,176,61,.12);
  color: #ffd9a8;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.inbox-retry:hover { background: #ffb03d; color: #1a1206; }

/* standing AI label above the composer */
.chat-ai-note {
  margin: 0;
  padding: 8px 16px 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-4);
}
.chat-ai-note[hidden] { display: none; }
.piece-kicker, .brief-kicker { color: var(--ink-3); }

/* three-column plan comparison */
.plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-col { position: relative; }
.plan-badge {
  position: absolute; top: -9px; right: 12px;
  font-family: var(--mono); font-size: 7px; letter-spacing: .12em;
  text-transform: uppercase;
  background: #dfe6ff; color: #0a0c18;
  border-radius: 999px; padding: 3px 8px;
}
.plan-col.is-current { border-color: rgba(255,255,255,.34); }
.plan-note {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-4);
}
.plans-terms {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.plans-terms p {
  margin: 0 0 9px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-3);
}
.plans-terms b { color: var(--ink-2); }
@media (max-width: 760px) {
  .plans-grid { grid-template-columns: minmax(0, 1fr); }
}

.src-kind {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.src-basis-type {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-4);
}

/* paid second opinion on a lane label */
.src-review {
  appearance: none;
  margin-top: 12px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.src-review:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.src-review:disabled { opacity: .5; cursor: default; }
.src-review-wait { margin: 10px 0 0; font-size: 11.5px; color: var(--ink-3); }
.src-review-card {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid rgba(255,176,61,.32);
  background: rgba(255,176,61,.07);
}
.src-review-card.is-agree { border-color: rgba(79,214,140,.3); background: rgba(79,214,140,.06); }
.src-review-verdict { margin: 0 0 6px; font-size: 12.5px; color: #ffd9a8; }
.src-review-card.is-agree .src-review-verdict { color: #a9f0c6; }
.src-review-verdict b { color: #fff; }
.src-review-verdict span { font-size: 10.5px; color: var(--ink-3); }
.src-review-reason { margin: 0 0 6px; font-size: 11.5px; line-height: 1.55; color: var(--ink-2); }
.src-review-ev { margin: 0 0 6px; padding-left: 16px; font-size: 11px; line-height: 1.5; color: var(--ink-3); }
.src-review-note { margin: 0; font-size: 10px; color: var(--ink-4); }

/* ---------------- API panel ---------------- */
.apikeys { position: fixed; inset: 0; z-index: 238; display: grid; place-items: center; padding: 22px;
  background: rgba(4,6,14,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.apikeys[hidden] { display: none; }
.apikeys-card { position: relative; width: min(680px, 100%); max-height: 86vh; overflow-y: auto;
  padding: 30px 32px 24px; border-radius: 22px; border: 1px solid var(--glass-hairline);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)), #0a0d1f;
  box-shadow: var(--e4), inset 0 1px 0 -0.5px var(--edge-top); }
.apikeys-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--ink-3); font-size: 22px; cursor: pointer; }
.apikeys-x:hover { color: #fff; }
.apikeys-kicker { margin: 0 0 8px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); }
.apikeys-title { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 24px; color: #fff; }
.apikeys-sub { margin: 0 0 16px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.apikeys-sub code, .apikeys-doc code { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.apikeys-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.apikeys-actions input { flex: 1 1 auto; padding: 9px 11px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04); color: var(--ink-2); font-size: 12px; }
.apikeys-actions button { flex: none; padding: 9px 14px; border-radius: 9px; border: 0; background: #eaf0ff; color: #0a0c18;
  font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.apikeys-new { margin: 0 0 12px; padding: 10px 12px; border-radius: 9px; border: 1px solid rgba(255,176,61,.3);
  background: rgba(255,176,61,.08); font-size: 11.5px; color: #ffd9a8; }
.apikeys-new code { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 12px; color: #fff; word-break: break-all; }
.apikeys-new button { margin-right: 8px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,176,61,.5);
  background: transparent; color: #ffd9a8; font-size: 10px; cursor: pointer; }
.apikeys-list { margin-bottom: 14px; }
.apikeys-empty { margin: 0 0 12px; font-size: 12px; color: var(--ink-4); }
.apikeys-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 9px 0; border-top: 1px solid rgba(255,255,255,.07); }
.apikeys-lab { font-size: 12.5px; color: var(--ink-2); }
.apikeys-meta { font-family: var(--mono); font-size: 9px; color: var(--ink-4); }
.apikeys-revoke { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,111,97,.4);
  background: transparent; color: #ff9c8c; font-size: 9px; cursor: pointer; }
.apikeys-revoke:hover { background: rgba(255,111,97,.15); }
.apikeys-doc { margin: 0 0 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px; line-height: 1.75; color: var(--ink-3); }
.apikeys-doc b { color: var(--ink-2); font-weight: 400; font-family: var(--mono); font-size: 10.5px; }
.apikeys-note { margin: 0; font-size: 10.5px; color: var(--ink-4); }
