/* ---- buttons: one system ------------------------------------------------- */
/* Every action in the product is one of three: primary, secondary, quiet. Same
   height, padding, radius and type, so "Save", "Buy credits", "Search" and
   "Evaluate" cannot drift into four different objects. */
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 3px;
  border: 1px solid transparent;
  font: 600 13px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.ui-btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface-container-lowest);
}
.ui-btn-primary:hover { filter: brightness(1.06); }
.ui-btn-secondary {
  background: transparent;
  border-color: var(--surface-bright);
  color: var(--on-surface);
}
.ui-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.ui-btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--on-surface-variant);
  padding: 0 10px;
}
.ui-btn-quiet:hover { color: var(--on-surface); }
.ui-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* The inherited screens keep their own class names; point them at the same system so
   the product does not ship two kinds of button. */
.evaluate-submit-btn,
.credits-buy,
.gate-btn,
.gate-btn-primary,
.feed-search button,
.btn,
.btn-primary,
.btn-secondary,
.btn-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 3px;
  border: 1px solid transparent;
  font: 600 13px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.evaluate-submit-btn,
.feed-search button,
.credits-buy {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface-container-lowest);
}
.evaluate-submit-btn:hover,
.feed-search button:hover,
.credits-buy:hover { filter: brightness(1.06); }
.gate-btn,
.btn-secondary,
.btn-primary { background: transparent; border-color: var(--surface-bright); color: var(--on-surface); }
.btn-secondary:hover,
.btn-primary:hover { border-color: var(--primary); color: var(--primary); }
/* the inherited sign-out paints tailwind red on its own grey: 3.39:1. Ink on the ground instead. */
.btn.text-red-400 { background: transparent; border-color: var(--outline-variant); color: var(--error); }
.btn.text-red-400:hover { border-color: var(--error); }
.btn-full { width: 100%; }
.gate-btn:hover { border-color: var(--primary); color: var(--primary); }
.gate-btn-primary { background: var(--primary); border-color: var(--primary); color: var(--surface-container-lowest); }

/* ---- video page: tabs + share ------------------------------------------- */
.video-tabs { margin-top: 24px; }
.video-tabs .tabs-header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.video-tabs .tab-btn {
  background: var(--surface-container-low);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 13.5px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  cursor: pointer;
}
.video-tabs .tab-btn:hover { color: var(--on-surface); }
.video-tabs .tab-btn.active,
.video-tabs .tab-btn[aria-selected="true"] { color: var(--surface-container-lowest); background: var(--primary); }
.video-tabs-share { margin-left: auto; }
.video-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 8px 10px;
  font: 500 12px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  cursor: pointer;
}
.video-share svg { width: 15px; height: 15px; }
.video-share:hover { color: var(--on-surface); border-color: var(--surface-bright); }
.video-tabs .tab-panels { padding-top: 16px; }
.video-transcript {
  max-height: 420px;
  overflow-y: auto;
  max-width: 78ch;
  font: 400 13px/1.7 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  white-space: pre-wrap;
}

/* innuce — the parts of the interface this application owns.
 *
 * `application.css` beside it is the compiled bundle inherited from the Rails
 * app: the visual system (tokens, type, components) and stays untouched.
 * Everything here is new product surface: app navigation and the gate.
 * Loaded after the bundle, so it wins on equal specificity.
 */

/* ---- app navigation (signed-in) ------------------------------------------ */
.nav-app {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 28px;
  font: 500 13.5px/1 Inter, system-ui, sans-serif;
}
.nav-app .nav-link {
  color: var(--on-surface-variant);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-app .nav-link:hover { color: var(--on-surface); }
.nav-app .nav-link-active { color: var(--on-surface); border-bottom-color: var(--primary); }
@media (max-width: 860px) { .nav-app { display: none; } }

/* The avatar initials were white on periwinkle: 1.05:1. Ink on the accent. */
.user-initials-text, .user-avatar .user-initials-text { color: #070d1f; }

/* ---- shared page heading ------------------------------------------------ */
.page-h1 {
  margin: 0 0 18px;
  font: 800 clamp(26px, 3vw, 34px)/1.15 Manrope, system-ui, sans-serif;
  letter-spacing: -.03em;
  color: var(--on-surface);
}
.gate-flash { margin-bottom: 16px; }

/* ---- feed: a pasted link asks before it spends -------------------------- */
.feed-confirm { margin-top: 24px; }
.feed-confirm-title {
  margin: 10px 0 6px;
  font: 800 clamp(20px, 2.4vw, 26px)/1.2 Manrope, system-ui, sans-serif;
  letter-spacing: -.025em;
  color: var(--on-surface);
}
.feed-confirm .gate-frame { margin-top: 16px; }

/* ---- feed --------------------------------------------------------------- */
.feed-page { padding: 24px 0 56px; max-width: 980px; }
.feed-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-container);
  border: 1px solid var(--surface-bright);
  border-radius: 3px;
  padding: 11px 14px;
}
.feed-search-icon { width: 17px; height: 17px; color: var(--on-surface-variant); flex: 0 0 auto; }
.feed-search input[type="text"] {
  all: unset;
  flex: 1;
  min-width: 0;
  font: 500 15px/1.3 Inter, system-ui, sans-serif;
  color: var(--on-surface);
}
.feed-search input[type="text"]::placeholder { color: var(--on-surface-variant); }
.feed-search button {
  font: 600 13px/1 Inter, system-ui, sans-serif;
  padding: 10px 16px;
  border-radius: 3px;
  background: var(--primary);
  color: var(--surface-container-lowest);
  border: 1px solid var(--primary);
  cursor: pointer;
  white-space: nowrap;
}
.feed-kbd {
  font: 500 10.5px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  border: 1px solid var(--outline-variant);
  border-radius: 3px;
  padding: 3px 5px;
  flex: 0 0 auto;
}
@media (max-width: 720px) { .feed-kbd { display: none; } }
.feed-search-cost {
  font: 400 11.5px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  white-space: nowrap;
}
@media (max-width: 720px) { .feed-kbd {
  font: 500 10.5px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  border: 1px solid var(--outline-variant);
  border-radius: 3px;
  padding: 3px 5px;
  flex: 0 0 auto;
}
@media (max-width: 720px) { .feed-kbd { display: none; } }
.feed-search-cost { display: none; } }

.feed-alt {
  margin: 10px 0 0;
  font: 400 12.5px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.feed-alt a { color: var(--primary); text-decoration: none; border-bottom: 1px solid rgba(163, 166, 255, .35); }
.feed-alt a:hover { border-bottom-color: var(--primary); }

.verdict {
  display: block;
  padding: 24px;
  margin-top: 20px;
  border-radius: var(--r-card);
  background: var(--surface-container);
}
.verdict-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}
.verdict-mascot img, .verdict-mascot source { display: block; }
.verdict-mascot img { width: 72px; height: 72px; object-fit: contain; }
.verdict-title {
  margin: 0;
  font: 800 clamp(26px, 3.4vw, 40px)/1.1 Manrope, system-ui, sans-serif;
  letter-spacing: -.02em;
  color: var(--on-surface);
}
.verdict[data-outcome="none"] .verdict-title { color: var(--on-surface-variant); }
.verdict-meta {
  margin: 6px 0 0;
  font: 500 13px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  font-variant-numeric: tabular-nums;
}
.verdict-again {
  align-self: start;
  font: 600 13px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  text-decoration: none;
  white-space: nowrap;
}
.verdict-again:hover { color: var(--primary); }

/* the pick is part of the answer, not a card of its own */
.verdict-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 24px;
  margin-top: 22px;
  padding-top: 22px;
  border-radius: 0;
  background: none;
}
.verdict-pick + .verdict-pick { margin-top: 14px; padding-top: 14px; }
.verdict-refused {
  margin-top: 18px;
  background: none;
  padding: 0;
  border-radius: 0;
}
.verdict-refused summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 2px;
  font: 600 13.5px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.verdict-refused summary b { color: var(--error); font-weight: 700; margin-right: 6px; font-variant-numeric: tabular-nums; }
.verdict-refused summary::after {
  content: "";
  width: 8px; height: 8px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
  transition: transform .15s ease;
}
.verdict-refused[open] summary::after { transform: rotate(45deg) translateY(-2px); }

.feed-verdict {
  margin: 22px 0 0;
  font: 800 20px/1.3 Manrope, system-ui, sans-serif;
  letter-spacing: -.02em;
  color: var(--on-surface);
}
.feed-verdict span { font: 400 12.5px/1.5 Inter, system-ui, sans-serif; color: var(--on-surface-variant); letter-spacing: 0; }
.feed-quiet {
  margin-left: 6px;
  font: 400 12.5px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feed-refusals { margin-top: 14px; }
.feed-refusals[open] summary { margin-bottom: 4px; }
.feed-refusals summary::after {
  content: "";
  width: 8px; height: 8px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
  transition: transform .15s ease;
}
.feed-refusals[open] summary::after { transform: rotate(45deg) translateY(-2px); }
.feed-refusals summary {
  cursor: pointer;
  width: 100%;
  padding: 4px 2px;
  min-height: 34px;
  display: flex;
  align-items: center;
  font: 500 13px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.feed-refusals {
  background: var(--surface-container);
  border-radius: var(--r-card);
  padding: 14px 18px 18px;
  margin-top: 18px;
}
.feed-refusals summary {
  font-weight: 600;
  color: var(--on-surface);
}
.feed-refusals summary b { color: var(--error); font-weight: 700; margin-right: 6px; font-variant-numeric: tabular-nums; }
.feed-chips { margin: 8px 0 6px; display: flex; flex-wrap: wrap; gap: 7px; }
.feed-chip {
  gap: 6px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-container-high);
  font: 600 12px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.feed-chip:hover { background: var(--surface-container-low); color: var(--on-surface); }
.feed-chip[aria-current="true"] { background: var(--primary); color: #0a0f22; }
/* a discarded video is a row you can open: score, title, and the reason one tap in */
.refused-row { position: relative; }
.refused-toggle {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.refused-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 2px;
  cursor: pointer;
}
.refused-line:hover .t { color: var(--primary); }
.refused-toggle:checked + .refused-line .t { color: var(--primary); }
.refused-toggle:focus-visible + .refused-line {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 8px;
}
.refused-row .s {
  font: 700 12px/1.6 Manrope, system-ui, sans-serif;
  color: var(--on-surface-variant);
  font-variant-numeric: tabular-nums;
}
.refused-row .t {
  font: 500 13px/1.45 Inter, system-ui, sans-serif;
  color: var(--on-surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.refused-body { display: none; }
.refused-toggle:checked ~ .refused-body { display: block; }
.refused-body {
  margin: 0 0 8px 46px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface-container-high);
}
.refused-why {
  margin: 0;
  font: 400 13px/1.55 Inter, system-ui, sans-serif;
  color: var(--on-surface);
}
.refused-meta {
  margin: 6px 0 0;
  font: 500 12px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.refused-open {
  display: inline-block;
  margin-top: 10px;
  font: 600 12.5px/1 Inter, system-ui, sans-serif;
  color: var(--primary);
  text-decoration: none;
}
.refused-open:hover { text-decoration: underline; }

.feed-chip {
  gap: 6px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-container-high);
  font: 600 12px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.feed-chip:hover { background: var(--surface-container-low); color: var(--on-surface); }
.feed-chip[aria-current="true"] { background: var(--primary); color: #0a0f22; }
.feed-refused-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 7px 0;
}
.feed-refused-row .s { font: 700 12px/1.6 Manrope, system-ui, sans-serif; color: var(--on-surface-variant); font-variant-numeric: tabular-nums; }
.feed-refused-row .t { font: 500 13px/1.45 Inter, system-ui, sans-serif; color: var(--on-surface-variant); }
.feed-refused-row .t a { color: var(--on-surface); text-decoration: none; }
.feed-refused-row .t a:hover { color: var(--primary); }
.feed-refused-row .r {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font: 400 12px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  opacity: .85;
}

/* the list itself: one row per video that passed */
.feed-list { margin-top: 20px; }
/* No rule between rows: spacing does the separating, as the world asks. */
.feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 24px;
  padding: 20px 0;
  align-items: start;
}
.feed-item + .feed-item { padding-top: 4px; }
.feed-title {
  font: 600 16px/1.35 Inter, system-ui, sans-serif;
  color: var(--on-surface);
  text-decoration: none;
}
/* the title stretches over the whole row, so anywhere in the row opens the video */
.feed-title::after { content: ""; position: absolute; inset: 0; }
.feed-item { position: relative; }
.feed-title:hover { color: var(--primary); }
.feed-title:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.feed-watch, .feed-from { position: relative; z-index: 1; }
.feed-meta {
  margin-top: 5px;
  font: 400 12px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  font-variant-numeric: tabular-nums;
}
.feed-why {
  margin: 9px 0 0;
  max-width: 62ch;
  font: 400 13.5px/1.6 Inter, system-ui, sans-serif;
  color: var(--on-surface);
  opacity: .9;
}
.feed-from {
  display: inline-block;
  margin-top: 9px;
  font: 400 11.5px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  text-decoration: none;
}
.feed-from:hover { color: var(--on-surface); }
.feed-side { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
.feed-score {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 6px;
  font: 700 14px/1 Manrope, system-ui, sans-serif;
  color: var(--on-surface);
  font-variant-numeric: tabular-nums;
}
.feed-band {
  white-space: nowrap;
  font: 500 10px/1 Inter, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  font-weight: 500;
}
.feed-watch {
  font: 600 12.5px/1 Inter, system-ui, sans-serif;
  padding: 10px 0;
  text-align: center;
  color: var(--surface-container-lowest);
  background: var(--primary);
  border-radius: 2px;
  text-decoration: none;
}
.feed-empty {
  margin-top: 22px;
  max-width: 56ch;
  font: 400 13.5px/1.65 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.feed-earlier { margin-top: 34px; }
.feed-earlier ul { list-style: none; margin: 0; padding: 0; }
.feed-earlier li a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  align-items: center;
  padding: 8px 0;
  font: 400 12.5px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  text-decoration: none;
}
.feed-earlier li a:hover { color: var(--on-surface); }
.feed-earlier .n { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .feed-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feed-side { flex-direction: row; align-items: center; gap: 12px; }
  .feed-meter { flex: 1; }
  .feed-watch { padding: 10px 16px; }
}

/* ---- credits ------------------------------------------------------------ */
.credits-page { padding: 24px 0 56px; max-width: 900px; }
.credits-figures { display: flex; align-items: flex-end; gap: 44px; flex-wrap: wrap; }
.credits-figures .credits-figure:first-child .credit-value { font-size: 56px; }
.credits-figure .credit-label { margin-bottom: 6px; }
.credit-label {
  font: 600 10.5px/1 Inter, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.credit-value {
  margin-top: 7px;
  font: 800 44px/1 Manrope, system-ui, sans-serif;
  letter-spacing: -.03em;
  color: var(--on-surface);
  font-variant-numeric: tabular-nums;
}
.credit-label-inline { font: 400 12.5px/1 Inter, system-ui, sans-serif; color: var(--on-surface-variant); }
.credit-label-inline b { color: var(--on-surface); font-weight: 700; font-variant-numeric: tabular-nums; }
.credits-buy {
  margin-left: auto;
  font: 600 12.5px/1 Inter, system-ui, sans-serif;
  padding: 10px 14px;
  border-radius: 2px;
  border: 1px solid var(--surface-bright);
  color: var(--on-surface);
  text-decoration: none;
}
.credits-buy:hover { border-color: var(--primary); color: var(--primary); }
.credits-page h2.credit-label { margin: 34px 0 0; }
.credit-month { margin-top: 22px; }
.credit-month { margin-top: 4px; }
.credit-month-head { display: none; }
.credit-month-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  min-height: 34px;
  cursor: pointer;
  list-style: none;
  font: 600 13px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface);
}
.credit-month-summary::-webkit-details-marker { display: none; }
.credit-month-summary .n { color: var(--on-surface-variant); font-variant-numeric: tabular-nums; }
.credit-month-summary:hover { color: var(--primary); }
.credit-month[open] .credit-month { margin-top: 4px; }
.credit-month-head { display: none; }
.credit-month-summary { border-bottom-color: var(--on-surface-variant); }
.credit-month-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--on-surface-variant);
}
.credit-month-head h3 {
  margin: 0;
  font: 600 13px/1 Inter, system-ui, sans-serif;
  letter-spacing: .02em;
  color: var(--on-surface);
}

.credit-empty { margin-top: 14px; font: 400 13px/1.6 Inter, system-ui, sans-serif; color: var(--on-surface-variant); }
.credit-list { list-style: none; margin: 0; padding: 0; }
.credit-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 60px 96px;
  gap: 16px;
  align-items: baseline;
  padding: 9px 0;
  font: 400 13px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.credit-list .k { color: var(--on-surface); font-weight: 600; }
.credit-list .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit-list .s a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--outline-variant); }
.credit-list .c { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.credit-list .c.out { color: var(--error); }
.credit-list .c.in { color: var(--success); }
.credit-list .w { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .credit-list li { grid-template-columns: 90px minmax(0, 1fr) 52px; }
  .credit-list .w { grid-column: 2 / -1; text-align: left; }
}

/* The score while it is being computed: three pips that breathe, one after another, instead of a
   spinner and a screen that hides the video. A band that already exists is never animated. */
@keyframes pip-breathe {
  0%, 100% { opacity: .25; }
  50%      { opacity: 1; }
}
.video-score.is-pending .meter-pip {
  animation: pip-breathe 1.4s ease-in-out infinite;
}
.video-score.is-pending .meter-pip:nth-child(2) { animation-delay: .18s; }
.video-score.is-pending .meter-pip:nth-child(3) { animation-delay: .36s; }
.video-pending {
  margin: 6px 0 0;
  font: 400 12px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
@media (prefers-reduced-motion: reduce) {
  .video-score.is-pending .meter-pip { animation: none; opacity: .55; }
}

/* Hosts the live chapter bar the streaming controller builds, directly under the player. */
.video-rail-host { margin-top: 14px; }

/* ---- the video page (gate + evaluate share it) -------------------------- */
.video-page { padding: 24px 0 48px; max-width: 1040px; }
.video-banner {
  border-left: 2px solid var(--primary);
  padding: 2px 0 2px 14px;
  margin-bottom: 24px;
}
.video-banner-kicker {
  display: block;
  font: 600 10.5px/1 Inter, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}
.video-banner-reason {
  margin: 8px 0 6px;
  font: 500 14px/1.55 Inter, system-ui, sans-serif;
  color: var(--on-surface);
  max-width: 78ch;
}
.video-banner-link {
  font: 400 12.5px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.video-banner-link:hover { color: var(--on-surface); }
.video-body { max-width: 1040px; }
.video-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.video-title {
  margin: 10px 0 0;
  font: 800 clamp(22px, 2.6vw, 32px)/1.2 Manrope, system-ui, sans-serif;
  letter-spacing: -.025em;
  color: var(--on-surface);
}
.video-meter { flex: 0 0 190px; display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.video-meter .meter { flex: 1; }
.video-meter .gate-score { font-size: 14px; min-width: 3ch; text-align: right; font-weight: 700; color: var(--on-surface); font-variant-numeric: tabular-nums; }
.video-section { margin-top: 26px; }
.video-section-title {
  margin: 0 0 10px;
  font: 600 10.5px/1 Inter, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.video-text { margin: 0; max-width: 76ch; font: 400 14px/1.7 Inter, system-ui, sans-serif; color: var(--on-surface); }
/* The long summary is markdown: its headings must not compete with the page title. */
.video-text h1, .video-text h2 {
  margin: 22px 0 8px;
  font: 700 16px/1.35 Inter, system-ui, sans-serif;
  letter-spacing: -.01em;
  color: var(--on-surface);
}
.video-text h3, .video-text h4 {
  margin: 18px 0 6px;
  font: 600 13.5px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface);
}
.video-text p { margin: 0 0 12px; }
.video-text ul, .video-text ol { margin: 0 0 12px; padding-left: 20px; }
.video-text li { margin-bottom: 4px; }
.video-text strong { color: var(--on-surface); font-weight: 600; }
.video-text a { color: var(--primary); }
.video-text code {
  font: 400 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-container); padding: 1px 4px; border-radius: 2px;
}
.video-chapters { list-style: none; margin: 0; padding: 0; max-width: 76ch; }
.video-chapters li {
  display: flex;
  gap: 14px;
  padding: 6px 0;
  font: 400 13px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.video-chapters .at { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; flex: 0 0 52px; }
.video-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.video-remove { width: 100%; margin-top: 2px; }
.video-remove-buttons .ui-btn-quiet {
  background: var(--surface-container-high);
  border: 0;
  border-radius: var(--r-btn);
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--on-surface-variant);
  white-space: normal;
  text-align: left;
  max-width: 100%;
}
.video-remove-buttons .ui-btn-quiet:hover {
  background: var(--surface-container-low);
  color: var(--on-surface);
}
.video-remove-label {
  margin: 0 0 10px;
  font: 600 10.5px/1 Inter, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.video-remove-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.video-action-hint {
  margin: 10px 0 0;
  font: 400 12.5px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.video-action-hint a { color: var(--on-surface); }
.video-actions .video-action { display: inline; }
.video-actions a { text-decoration: none; }
@media (max-width: 640px) {
  .video-head { flex-direction: column; gap: 14px; }
  .video-meter { flex-basis: auto; width: 100%; }
}

/* ---- gate: watch page --------------------------------------------------- */
.gate-frame {
  margin-top: 18px;
  aspect-ratio: 16 / 9;
  background: var(--surface-container-lowest);
}
.gate-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.gate-why-detail {
  margin-top: 18px;
  border-left: 2px solid var(--tertiary);
  padding: 2px 0 2px 14px;
  font: 500 14px/1.55 Inter, system-ui, sans-serif;
  color: var(--on-surface);
}
.watch .watch-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.watch .watch-meter { flex: 0 0 180px; display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.watch .watch-meter .gate-track { height: 6px; }
.watch .watch-meter .gate-score { font-size: 14px; min-width: 4ch; }
.watch .gate-actions { margin-top: 18px; border-top: 1px solid var(--outline-variant); padding-top: 16px; }
.watch .gate-actions form { display: inline; }
.watch .gate-actions .gate-line { margin-left: auto; }
@media (max-width: 640px) {
  .watch .watch-top { flex-direction: column; gap: 14px; }
  .watch .watch-meter { flex-basis: auto; width: 100%; }
  .watch .gate-actions .gate-line { margin-left: 0; }
}

/* ---- audit: where the credits went -------------------------------------- */
.audit { padding: 26px 0 56px; max-width: 1000px; }
.audit-figures { display: flex; gap: 48px; margin: 24px 0 8px; }
.audit-figure { font: 800 30px/1 Manrope, system-ui, sans-serif; letter-spacing: -.03em; color: var(--on-surface); font-variant-numeric: tabular-nums; }
.audit-section { margin-top: 30px; }
.audit-section h2 span { color: var(--on-surface-variant); font-weight: 400; letter-spacing: .04em; text-transform: none; }
.audit-list { list-style: none; margin: 10px 0 0; padding: 0; }
.audit-list li { border-bottom: 1px solid var(--outline-variant); }
.audit-list a, .audit-list li { display: grid; grid-template-columns: minmax(0, 1fr) 190px 74px 100px;
  gap: 16px; align-items: baseline; padding: 11px 0; text-decoration: none;
  font: 400 13px/1.5 Inter, system-ui, sans-serif; color: var(--on-surface-variant); }
.audit-list a:hover .q { color: var(--primary); }
.audit-list .q {
  font-weight: 600;
  color: var(--on-surface);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.audit-list .meta { font-variant-numeric: tabular-nums; }
.audit-list .cost { text-align: right; font-variant-numeric: tabular-nums; color: var(--error); font-weight: 600; }
.audit-list .cost.in { color: var(--success); }
.audit-list .when { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .audit-figures { gap: 26px; }
  .audit-list a, .audit-list li { grid-template-columns: minmax(0, 1fr) 64px; row-gap: 2px; }
  .audit-list .meta, .audit-list .when { grid-column: 1 / -1; text-align: left; }
}

/* ---- header: the balance, once ------------------------------------------ */
.nav-credits {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font: 500 12.5px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  font-variant-numeric: tabular-nums;
}
.nav-credits b { color: var(--on-surface); font-weight: 700; font-size: 13.5px; }
.nav-credits a {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--outline-variant);
  border-radius: 3px;
  font: 600 10.5px/1 Inter, system-ui, sans-serif;
  letter-spacing: .08em;
  color: var(--primary);
  text-decoration: none;
}
.nav-credits a:hover { border-color: var(--primary); }
.nav-credits a:hover { text-decoration: underline; }
@media (max-width: 720px) { .nav-credits a { display: none; } }

/* ---- settings: sections with their own nav ------------------------------ */
.settings-page {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px;
  padding: 26px 0 56px;
  align-items: start;
}
.settings-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav a {
  padding: 8px 0;
  font: 500 13px/1.3 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  text-decoration: none;
}
.settings-nav a:hover { color: var(--on-surface); }
.settings-body { min-width: 0; }
.settings-section { margin-top: 16px; }
.settings-section[hidden] { display: none; }
.settings-check { color: var(--primary); }
.settings-chevron { color: var(--on-surface-variant); }
.settings-item { min-height: 44px; }
@media (max-width: 860px) {
  .settings-page { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .settings-nav { position: static; flex-direction: row; gap: 16px; flex-wrap: wrap; }
}

/* the gate card sits in the settings card language */
.settings-panel {
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: 8px;
  padding: 20px;
}
.settings-form { max-width: 640px; }
.settings-panel .gate-label:first-of-type { margin-top: 0; }

/* ---- energy: big type, chunky buttons, round shapes --------------------- */
:root {
  --r-card: 14px;
  --r-btn: 12px;
  --btn-h: 52px;
  --ink-press: #7f82e6;
}

.page-h1 {
  margin: 0 0 22px;
  font: 800 clamp(34px, 4.4vw, 54px)/1.02 Manrope, system-ui, sans-serif;
  letter-spacing: -.035em;
  color: var(--on-surface);
}

/* Buttons: a physical key with a bottom edge, not a rectangle with a border. */
.ui-btn {
  height: var(--btn-h);
  padding: 0 26px;
  border-radius: var(--r-btn);
  border: 0;
  font: 700 16px/1 Inter, system-ui, sans-serif;
  letter-spacing: -.01em;
  transition: transform .06s ease, box-shadow .06s ease, filter .15s ease;
}
.ui-btn-primary {
  background: var(--primary);
  color: #0a0f22;
  box-shadow: 0 4px 0 var(--ink-press);
}
.ui-btn-primary:hover { filter: brightness(1.05); }
.ui-btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink-press); }
.ui-btn-secondary {
  background: var(--surface-container-high);
  color: var(--on-surface);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .45);
}
.ui-btn-secondary:hover { background: var(--surface-bright); }
.ui-btn-secondary:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.ui-btn-quiet { font-weight: 600; font-size: 15px; }

/* the same treatment for the inherited names */
.evaluate-submit-btn, .feed-search button, .credits-buy, .btn, .btn-primary, .btn-secondary, .btn-full {
  height: var(--btn-h);
  padding: 0 26px;
  border-radius: var(--r-btn);
  border: 0;
  font: 700 16px/1 Inter, system-ui, sans-serif;
}
.evaluate-submit-btn, .feed-search button, .credits-buy, .btn-primary {
  background: var(--primary);
  color: #0a0f22;
  box-shadow: 0 4px 0 var(--ink-press);
}
.btn-secondary { background: var(--surface-container-high); color: var(--on-surface); box-shadow: 0 4px 0 rgba(0, 0, 0, .45); }

/* the search field is a big friendly target too */
.feed-search {
  gap: 12px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface-container);
  padding: 10px 10px 10px 18px;
  box-shadow: inset 0 0 0 2px var(--surface-bright);
}
.feed-search:focus-within { background: var(--surface-container-low); }
.feed-search:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--primary); }
.feed-search input[type="text"] { font: 600 18px/1.3 Inter, system-ui, sans-serif; }
.feed-search-icon { width: 22px; height: 22px; }

/* rows are cards now: no rules, generous padding, rounded */
.feed-item {
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 24px;
  padding: 22px 24px;
  border-radius: var(--r-card);
  background: var(--surface-container);
}
.feed-item + .feed-item { margin-top: 10px; padding-top: 20px; }
.feed-title { font: 700 20px/1.3 Inter, system-ui, sans-serif; letter-spacing: -.018em; }
.feed-meta { font-size: 13px; }
.feed-why { font-size: 15px; line-height: 1.6; }
.feed-from { font-size: 12.5px; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-bright); }
.meter-fill { border-radius: 999px; }
.feed-score { font: 800 20px/1 Manrope, system-ui, sans-serif; }
.feed-band { font-size: 10.5px; }
.feed-watch {
  border-radius: var(--r-btn);
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 14px/1 Inter, system-ui, sans-serif;
  box-shadow: 0 3px 0 var(--ink-press);
}
.feed-watch:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink-press); }

/* the video page follows: big score, card sections */
.video-title { font: 800 clamp(26px, 3.2vw, 40px)/1.1 Manrope, system-ui, sans-serif; letter-spacing: -.03em; }
.video-score-band { font-size: 11.5px; letter-spacing: .12em; }
.video-text { font-size: 15.5px; line-height: 1.7; }
.video-tabs { background: var(--surface-container); border-radius: var(--r-card); padding: 16px 18px 18px; }
.video-section-title { font-size: 11.5px; }

/* credits: months as cards, rows without rules */
.credit-month {
  background: var(--surface-container);
  border-radius: var(--r-card);
  padding: 6px 18px 10px;
  margin-top: 12px;
}
.credit-month-summary { min-height: 44px; font: 700 15px/1 Inter, system-ui, sans-serif; }
.credit-value { font: 800 clamp(40px, 5vw, 56px)/1 Manrope, system-ui, sans-serif; }
.credit-list li { padding: 11px 0; font-size: 13.5px; }

/* settings sections are cards, nav is a pill rail */
.settings-tab {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 12px 16px;
  border-radius: var(--r-btn);
  font: 600 15px/1.2 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  cursor: pointer;
}
.settings-tab:hover { background: var(--surface-container); color: var(--on-surface); }
/* the controller marks the live tab; make it loud enough to read as a location */
.settings-tab.active { background: var(--primary); color: #0a0f22; }
.settings-panel { border: 0; border-radius: var(--r-card); padding: 24px; }
.settings-label, .settings-list { border-radius: var(--r-card); }

/* chips get pill shapes and a press */
.gate-chip, .feed-chip, .gate-chip-link { border: 0; border-radius: 999px; background: var(--surface-container-high); min-height: 32px; }
.feed-chip[aria-current="true"] { background: var(--primary); color: #0a0f22; }

/* ---- the video page: score block + share action ------------------------- */
.video-score { flex: 0 0 168px; text-align: right; }
.video-score-number {
  font: 800 40px/1 Manrope, system-ui, sans-serif;
  letter-spacing: -.03em;
  color: var(--on-surface);
  font-variant-numeric: tabular-nums;
}
.video-score-band {
  margin-top: 4px;
  font: 500 10.5px/1 Inter, system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.video-score-band[data-band="3"] { color: var(--success); }
.video-score-band[data-band="2"] { color: var(--primary); }
.video-score-band[data-band="1"] { color: var(--error); }
.video-score-track {
  margin-top: 8px;
  height: 3px;
  background: var(--surface-bright);
  border-radius: 1px;
  overflow: hidden;
}
.video-score-track span { display: block; height: 100%; background: var(--primary); }
.video-score-band[data-band="3"] ~ .video-score-track span { background: var(--success); }
.video-score-band[data-band="1"] ~ .video-score-track span { background: var(--error); }

/* Copy Link is an action, not a fourth tab */
.video-share-row { display: flex; justify-content: flex-end; margin-top: 10px; }
.video-share { height: 32px; padding: 0 10px; font-size: 12px; color: var(--on-surface-variant); }
.video-share svg { width: 14px; height: 14px; }
.video-share:hover { color: var(--on-surface); border-color: var(--surface-bright); }
.video-transcript { max-height: 460px; overflow-y: auto; max-width: 78ch; }
.video-transcript {
  font: 400 12.5px/1.7 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  white-space: pre-wrap;
}

/* ---- omnibox extras, results pages, tap targets ------------------------- */
.feed-locale {
  appearance: none;
  background: var(--surface-container-low);
  color: var(--on-surface);
  border: 1px solid var(--surface-bright);
  border-radius: 3px;
  height: 34px;
  padding: 0 10px;
  font: 500 12.5px/1 Inter, system-ui, sans-serif;
}
.feed-locale:focus { outline: 1px solid var(--primary); border-color: var(--primary); }

.result-page { padding: 34px 0 64px; max-width: 640px; }
.result-page .page-h1 { margin: 10px 0 22px; font-size: clamp(22px, 2.6vw, 28px); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.feed-section { margin-top: 26px; }
.feed-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 2px 2px;
}
.feed-section-head h2 {
  margin: 0;
  font: 600 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-surface);
}
.feed-section-head span { font: 500 11.5px/1 Inter, system-ui, sans-serif; color: var(--on-surface-variant); }
.feed-watched {
  font: 600 10.5px/1 Inter, system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  background: var(--surface-container-high);
  border-radius: 999px;
  padding: 4px 8px;
  margin-left: 8px;
}
.feed-undo {
  margin: 12px 0 0;
  font: 400 11.5px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.feed-undo a { color: var(--on-surface-variant); text-decoration: underline; text-underline-offset: 3px; }

/* inherited chrome: same 24px floor as the new screens */
.footer-link,
.footer-link-active {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}
.video-banner-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* ---- primitives used across product screens ----------------------------- */
/* Kickers and small labels */
.gate-label-sm {
  margin: 0 0 8px;
  font: 600 10.5px/1 Inter, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.gate-label {
  display: block;
  margin: 22px 0 8px;
  font: 600 11.5px/1 Inter, system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.gate-hint {
  margin: 8px 0 0;
  font: 400 12.5px/1.6 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  max-width: 62ch;
}
.decide-label { font-weight: 500; }

/* Form controls: carved into the ground, never a white box */
.gate-textarea,
.gate-input {
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
  background: var(--surface-container);
  color: var(--on-surface);
  border: 1px solid var(--surface-bright);
  border-radius: 3px;
  padding: 12px 14px;
  font: 400 14px/1.6 Inter, system-ui, sans-serif;
  resize: vertical;
}
.gate-textarea::placeholder,
.gate-input::placeholder { color: var(--on-surface-variant); opacity: .55; font-style: italic; }
.gate-textarea:focus,
.gate-input:focus { outline: 1px solid var(--primary); border-color: var(--primary); }
.gate-inline { display: flex; gap: 10px; align-items: center; max-width: 640px; }
.gate-inline .gate-input { flex: 1; }

/* Chips: blocklist entries and reason filters */
.gate-blocked { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gate-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--outline-variant);
  border-radius: 2px;
  font: 500 12px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface);
  background: rgba(163, 166, 255, .06);
}
.gate-chip b { font-weight: 600; }
.gate-chip-x {
  background: none;
  border: 0;
  padding: 0;
  min-width: 24px;
  min-height: 24px;
  color: var(--on-surface-variant);
  font: 400 15px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.gate-chip-x:hover { color: var(--error); }
.gate-feedback { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.gate-feedback li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  font: 400 13px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface);
}
.gate-feedback li span { color: var(--on-surface-variant); }
.feed-main { display: block; min-width: 0; }

/* ---- deleting the account: the one irreversible action ------------------ */
/* One recessed, faintly red card: the account being deleted and the way to delete it are one
   answer. Red sits on the words, not the walls, so the card never reads as the next thing to do. */
.settings-account .settings-panel { max-width: 680px; }
.settings-danger-zone {
  background: linear-gradient(0deg, rgba(255, 110, 132, .05), rgba(255, 110, 132, .05)), var(--surface-container-low);
}
.settings-danger-head {
  margin: 0;
  font: 800 20px/1.2 Manrope, system-ui, sans-serif;
  letter-spacing: -.015em;
  color: var(--error);
}
.settings-danger-owner {
  margin: 6px 0 0;
  font: 600 15px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface);
  overflow-wrap: anywhere;
}
.settings-danger-copy {
  margin: 12px 0 0;
  max-width: 56ch;
  font: 400 13.5px/1.6 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.settings-danger-form { margin-top: 24px; }
.settings-danger-label {
  display: block;
  font: 500 13px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
/* the word is the instruction: it carries the weight and the colour, the sentence stays quiet */
.settings-danger-label b {
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: .08em;
}
.settings-danger-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.settings-danger-input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 240px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
/* Dead until the word matches, and visibly dead: it still reads as a button, it just cannot
   be pressed. "Are you sure" was answered by the person typing the word. */
.settings-danger {
  flex: 0 0 auto;
  background: transparent;
  color: var(--on-surface-variant);
  font-weight: 700;
}
.settings-danger:not(:disabled) {
  background: rgba(255, 110, 132, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 110, 132, .45);
  color: var(--error);
}
.settings-danger:not(:disabled):hover {
  background: rgba(255, 110, 132, .23);
  box-shadow: inset 0 0 0 1px var(--error);
}
/* Buttons in this world have no border (the press is a chunky bottom edge), so the inert state
   draws its own hairline instead of relying on a border that is not there. */
.settings-danger:disabled {
  box-shadow: inset 0 0 0 1px rgba(155, 163, 196, .22);
  color: rgba(155, 163, 196, .8);
  cursor: not-allowed;
}
.settings-danger:disabled:hover { box-shadow: inset 0 0 0 1px rgba(155, 163, 196, .22); }

@media (max-width: 560px) {
  .settings-danger-row { flex-wrap: wrap; }
  .settings-danger-input { max-width: none; flex-basis: 100%; }
  .settings-danger { width: 100%; }
}

/* ---- three movements: judgement, navigation, reading -------------------- */
/* The page used to be six equal blocks. Now it is a score with a contract, a map with its legend
   on demand, and prose that opens when asked. */
.video-contract {
  margin: 10px 0 0;
  max-width: 44ch;
  font: 400 12.5px/1.5 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.video-legend { margin-top: 22px; }
.video-legend > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--on-surface-variant);
}
.video-legend > summary::-webkit-details-marker { display: none; }
.video-legend > summary::after {
  content: "";
  width: 8px; height: 8px;
  margin-left: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.video-legend[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.video-legend[open] > summary { color: var(--on-surface); }

.video-reading { margin-top: 26px; }
.video-more { margin-top: 10px; }
.video-more-toggle { cursor: pointer; }
.video-more > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 600 13px/1.3 Inter, system-ui, sans-serif;
  color: var(--primary);
}
.video-more > summary::-webkit-details-marker { display: none; }
.video-more > summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.video-more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.video-long { margin-top: 8px; }

/* ---- the picks: a deck of cards, the middle one in focus ----------------- */
/* These are videos and the product had no image in it. The deck leans on that: the card nearest
   the middle is the one you are reading, the rest sit behind it as thumbnails, overlapping. Only
   the focused card shows its body — an overlapping deck that also overlaps its paragraphs is
   unreadable. Refused videos are in the same deck, muted, because the answer and its evidence are
   one object. */
.verdict-rail { margin-top: 22px; position: relative; overflow: hidden; }
/* The deck reads as a loop, not a queue: a sliver of the last card waits at the left edge. It is
   decoration, hidden from assistive tech, and it fades out once the first card is no longer the
   one in focus. */
.verdict-ghost {
  position: absolute;
  top: 16px;
  left: -250px;
  width: 300px;
  border-radius: var(--r-card);
  overflow: hidden;
  transform: rotate(-3deg) scale(.9);
  opacity: .5;
  filter: saturate(.4);
  pointer-events: none;
  transition: opacity .25s ease;
}
.verdict-ghost img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.verdict-rail[data-scrolled="true"] .verdict-ghost { opacity: 0; }
.verdict-rail-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  /* Room at both ends so the first and last card can reach the middle. */
  padding: 6px calc(50% - 150px) 16px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.verdict-rail-track:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 16px; }
.verdict-card {
  flex: 0 0 300px;
  scroll-snap-align: center;
  border-radius: var(--r-card);
  background: var(--surface-container);
  overflow: hidden;
  transform: scale(.86);
  transform-origin: center top;
  opacity: .55;
  filter: saturate(.5);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .28s ease, filter .28s ease;
  z-index: 1;
}
/* Overlap: neighbours tuck under the focused card. */
.verdict-card + .verdict-card { margin-left: -96px; }
/* Neighbours are thumbnails, not cards with their text hidden: leaving the body in the layout
   painted empty slabs behind the focused card and made the deck look broken. */
.verdict-card:not(.is-focus) .verdict-card-body { display: none; }
.verdict-card:not(.is-focus) .verdict-card-art { border-radius: var(--r-card); overflow: hidden; }
/* A slight lean either side of the focus: the deck reads as depth rather than as a row of
   thumbnails that happen to be small. */
.verdict-card.is-left:not(.is-focus) { transform: scale(.86) translateY(14px) rotate(-2deg); }
.verdict-card.is-right:not(.is-focus) { transform: scale(.86) translateY(14px) rotate(2deg); }
.verdict-card.is-focus {
  transform: scale(1);
  opacity: 1;
  filter: none;
  z-index: 5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.verdict-card[data-verdict="refuse"] { filter: saturate(.25) brightness(.9); }
.verdict-card[data-verdict="refuse"].is-focus { filter: saturate(.6) brightness(.95); }
.verdict-card-link { display: block; color: inherit; text-decoration: none; }
.verdict-card-art { position: relative; aspect-ratio: 16 / 9; background: var(--surface-container-high); }
.verdict-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.verdict-card-time {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(7, 13, 31, .82);
  color: var(--on-surface);
  font: 600 11.5px/1.4 Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.verdict-card-body { padding: 14px 16px 16px; }
.verdict-card-title {
  margin: 0;
  font: 700 16px/1.3 Manrope, system-ui, sans-serif;
  letter-spacing: -.01em;
  color: var(--on-surface);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.verdict-card-meta {
  margin: 6px 0 0;
  font: 400 12.5px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.verdict-card-band { display: flex; align-items: center; gap: 8px; margin-top: 12px; max-width: 150px; }
.verdict-card-band .meter { flex: 1 1 auto; }
.verdict-card-why {
  margin: 10px 0 0;
  font: 400 13px/1.55 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.verdict-card-link:hover .verdict-card-title { color: var(--primary); }
.verdict-card-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-card); }
.verdict-card-link--refused { cursor: default; }

@media (max-width: 560px) {
  .verdict-card { flex-basis: 74vw; }
  .verdict-card + .verdict-card { margin-left: -18vw; }
}

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

/* ---- the navigation map: a rail you can press, a page you can follow ---- */
.video-player { margin-top: 18px; }
/* The track is one step darker than the segments: without that, a map of three chapters reads as
   an empty pill and nothing tells the reader it can be pressed. */
.video-rail {
  position: relative;
  display: flex;
  gap: 3px;
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
}
.video-rail-seg {
  height: 100%;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--surface-bright);
  cursor: pointer;
  transition: background .15s ease;
}
.video-rail-seg:hover { background: var(--primary-30); }
.video-rail-seg:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* the played portion sits above the segments: it is a read-out, not a control */
.video-rail-played {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--primary);
  opacity: .85;
  pointer-events: none;
  transition: width .4s linear;
}
.video-rail-now {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font: 500 12.5px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.video-rail-chapter { color: var(--on-surface); font-weight: 600; }
.video-rail-clock { font-variant-numeric: tabular-nums; }

.video-moments { margin-top: 28px; }
.video-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.video-moment {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 44px;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--on-surface);
  text-align: left;
  cursor: pointer;
  font: 500 14.5px/1.35 Inter, system-ui, sans-serif;
}
.video-moment:hover { background: var(--surface-container-high); }
.video-moment:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.video-moment-at { font: 600 12.5px/1 Inter, system-ui, sans-serif; color: var(--on-surface-variant); font-variant-numeric: tabular-nums; }
.video-moment-label { overflow-wrap: anywhere; }
.video-moment-length { font: 400 12px/1 Inter, system-ui, sans-serif; color: var(--on-surface-variant); text-align: right; font-variant-numeric: tabular-nums; }

.video-transcript { display: grid; gap: 2px; }
.video-transcript-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--on-surface);
  text-align: left;
  cursor: pointer;
  font: 400 14px/1.65 Inter, system-ui, sans-serif;
}
.video-transcript-line:hover { background: var(--surface-container-high); }
.video-transcript-line:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.video-transcript-at { color: var(--on-surface-variant); font: 500 12px/1.6 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.video-transcript-text { overflow-wrap: anywhere; }

/* ---- the meter: a length that carries the band rule --------------------- */
.meter {
  position: relative;
  height: 6px;
  background: var(--surface-bright);
  border-radius: 1px;
  overflow: hidden;
}
.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 1px;
  background: var(--on-surface-variant);
  transition: width .3s ease;
}
/* refusal / worth it / watch now — the band is the colour, so no legend is needed */
.meter[data-band="3"] .meter-fill { background: var(--success); }
.meter[data-band="2"] .meter-fill { background: var(--primary); }
.meter[data-band="1"] .meter-fill { background: var(--error); opacity: .75; }
/* Keep the track plain: the band word names the threshold, ticks made it look broken. */

/* A judgement made from titles and a handful of transcripts answers in bands, not in two digits.
   Three pips carry the same information as the number did, without pretending to a precision the
   evidence does not have. */
.meter-bands {
  display: flex;
  gap: 4px;
  height: 8px;
  background: none;
  overflow: visible;
}
.meter-pip {
  flex: 1 1 0;
  border-radius: 999px;
  background: var(--surface-bright);
  transition: background .2s ease;
}
.meter-bands[data-band="1"] .meter-pip:nth-child(1) { background: var(--error); opacity: .8; }
.meter-bands[data-band="2"] .meter-pip:nth-child(-n+2) { background: var(--primary); }
.meter-bands[data-band="3"] .meter-pip { background: var(--success); }
.video-score-bands { max-width: 132px; margin-top: 4px; }
.feed-band { font: 700 13px/1.2 Inter, system-ui, sans-serif; letter-spacing: .01em; }
.feed-score { font-variant-numeric: tabular-nums; }

/* ---- the decision screen: what is happening, right now ------------------ */
.decide { max-width: 640px; padding: 30px 0 64px; }
.decide-head { margin-bottom: 26px; }
.decide-q {
  margin: 10px 0 0;
  font: 800 clamp(22px, 2.6vw, 30px)/1.2 Manrope, system-ui, sans-serif;
  letter-spacing: -.025em;
  color: var(--on-surface);
  overflow-wrap: anywhere;
}
.decide-head .gate-line { margin-top: 8px; }

/* one bar for the whole decision: four phases, so progress is legible at a glance */
.decide-progress {
  height: 3px;
  background: var(--surface-bright);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 4px;
}
.decide-progress i {
  display: block;
  height: 100%;
  width: 4%;
  background: var(--primary);
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}

.decide-steps { list-style: none; margin: 0; padding: 0; }
.decide-step {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  font: 500 13.5px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.decide-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--surface-bright);
  justify-self: center;
  transition: background-color .2s ease, border-color .2s ease;
}
.decide-step[data-state="active"] { color: var(--on-surface); }
.decide-step[data-state="active"] .decide-mark {
  border-color: var(--primary);
  background: var(--primary);
  animation: decide-pulse 1.3s ease-in-out infinite;
}
.decide-step[data-state="done"] { color: var(--on-surface); }
.decide-step[data-state="done"] .decide-mark { border-color: var(--success); background: var(--success); }
.decide-step[data-state="failed"] { color: var(--on-surface); }
.decide-step[data-state="failed"] .decide-mark { border-color: var(--error); background: var(--error); }
.decide-detail {
  font: 400 12px/1.4 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  font-variant-numeric: tabular-nums;
  text-align: right;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.decide-step[data-state="done"] .decide-detail { color: var(--on-surface-variant); }
.decide-elapsed {
  margin-top: 14px;
  font: 400 11.5px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
  font-variant-numeric: tabular-nums;
}
.decide-error {
  margin-top: 20px;
  border-left: 2px solid var(--error);
  padding: 10px 0 10px 14px;
  font: 400 13px/1.6 Inter, system-ui, sans-serif;
  color: var(--on-surface);
}
.decide-error a { color: var(--primary); }
@keyframes decide-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  .decide-step[data-state="active"] .decide-mark { animation: none; }
  .decide-progress i { transition: none; }
}

/* ---- one language: inherited chrome rebuilt in the product's tokens ------ */
/* The Rails bundle and this file were two design languages side by side: 12px radii and
   gradients there, pills and flat surfaces here. These overrides are the single source of
   shape for everything the user sees; the bundle keeps only its colours and type. */
.navbar {
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom: 0;
}
.nav-container { height: 68px; }
.nav-link, .nav-brand-text { font: 600 15px/1 Inter, system-ui, sans-serif; }
.nav-link { color: var(--on-surface-variant); }
.nav-link:hover { color: var(--on-surface); }
.nav-logo img { width: 34px; height: 34px; }
.nav-brand-text { font-size: 19px; letter-spacing: -.02em; }
.user-profile-btn { border-radius: 999px; background: var(--surface-container); padding: 4px 14px 4px 4px; }
.user-profile-btn:hover { background: var(--surface-container-high); }
.user-avatar { border-radius: 999px; }
.dropdown-menu {
  border-radius: var(--r-card);
  background: var(--surface-container-high);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  padding: 8px;
  width: 14rem;
}
.dropdown-item {
  border-radius: 10px;
  padding: 10px 12px;
  font: 600 14px/1 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.dropdown-item:hover { background: var(--surface-bright); color: var(--on-surface); }

/* the footer is a quiet end, not a second app */
.footer {
  box-shadow: none;
  background: var(--surface);
  padding: 40px 0 32px;
  margin-top: 48px;
}
.footer-link, .footer-link-active {
  font: 500 13.5px/1.6 Inter, system-ui, sans-serif;
  color: var(--on-surface-variant);
}
.footer-link:hover { color: var(--on-surface); }

/* alerts speak the same language as everything else */
.alert {
  border: 0;
  border-radius: var(--r-card);
  padding: 14px 16px;
  font: 600 14px/1.4 Inter, system-ui, sans-serif;
  background: var(--surface-container-high);
  color: var(--on-surface);
}
.alert-error { background: rgba(255, 110, 132, .14); color: #ffd2da; }
.alert-notice { background: rgba(163, 166, 255, .16); color: var(--on-surface); }
/* the one flash region, above the page's own content */
.flash-stack { padding-top: 16px; display: grid; gap: 8px; }
.flash-stack + .container > .page-h1, .flash-stack + * { margin-top: 0; }

/* the search field is a surface, never an outlined box */
.feed-search {
  border: 0;
  box-shadow: none;
  background: var(--surface-container-high);
  padding: 10px 10px 10px 20px;
}
.feed-search:focus-within { background: var(--surface-container-low); }
.feed-search:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--primary); }
.feed-search input:focus-visible { caret-color: var(--primary); }

/* sections read as sections: a heading, then a card, then air */
.settings-section + .settings-section { margin-top: 48px; }
.settings-section > .gate-label-sm { margin-bottom: 12px; font-size: 11.5px; }
.settings-section .settings-list {
  background: var(--surface-container);
  border-radius: var(--r-card);
  overflow: hidden;
}
.settings-item { padding: 18px 20px; font-weight: 600; font-size: 15px; }
.settings-item + .settings-item { box-shadow: inset 0 1px 0 rgba(0, 0, 0, .25); }
.settings-item:hover { background: var(--surface-container-high); }

/* ---- phones: one column, nothing squeezed (must stay last) --------------- */
@media (max-width: 700px) {
  .page-h1 { font-size: 34px; }
  .feed-page, .credits-page, .video-page, .gate-page, .result-page { padding: 18px 0 40px; }

  .feed-search { padding: 8px 8px 8px 14px; gap: 8px; }
  .feed-search input[type="text"] { font-size: 16px; }
  .feed-search button { height: 44px; padding: 0 16px; font-size: 15px; }

  /* one column, in reading order: what it is, why it passed, then score and action */
  .feed-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  .feed-main { order: 1; }
  .feed-title { font-size: 18px; }
  .feed-why { font-size: 14.5px; }
  .feed-side {
    order: 2;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .feed-score { margin-right: auto; }
  /* the meter folds under the title on a phone: it is context, not the action */
  .feed-side .meter { display: none; }
  .feed-score { flex-direction: row; align-items: baseline; gap: 4px; font-size: 16px; }
  .feed-watch { height: 40px; padding: 0 14px; font-size: 14px; }

  .verdict { padding: 18px; }
  .verdict-head {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }
  .verdict-pick {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .verdict-pick .feed-side { flex-direction: row; align-items: center; }
  .verdict-pick .feed-score { margin-right: auto; }
  .verdict-mascot img { width: 52px; height: 52px; }
  .verdict-again { grid-column: 2; justify-self: start; margin-top: 4px; }

  .video-head { flex-direction: column; }
  .video-score { flex: 0 0 auto; text-align: left; width: 100%; }
  .video-score-number { font-size: 44px; }
  .video-score-track { max-width: 220px; }
  .video-actions { gap: 8px; }
  .video-tabs { padding: 12px; }

  .credits-figures { gap: 24px; }
  .credits-figures .credits-figure:first-child .credit-value { font-size: 44px; }
  .credit-value { font-size: 28px; }
  .credit-list li { grid-template-columns: 86px minmax(0, 1fr) 46px; font-size: 13px; }
  .credit-list .w { grid-column: 2 / -1; }

  .settings-page { gap: 14px; }
  /* Four tabs wrap rather than scroll: a rail you have to swipe hides the one tab someone
     needs, and the hidden one is always the destructive one. */
  .settings-nav { flex-wrap: wrap; overflow-x: visible; row-gap: 6px; }
  .settings-tab { width: auto; white-space: nowrap; }
  .settings-item { padding: 16px; }
  .gate-textarea, .gate-input { max-width: 100%; }

  .decide-step { grid-template-columns: 14px minmax(0, 1fr); }
  .decide-detail { grid-column: 2; text-align: left; max-width: 100%; }
}

/* ---- support: one address, made pressable ------------------------------- */
/* The legal pages are styled by the inherited bundle; these two rules are ours, and they load
   after it, so the address reads as the one action the page has. */
.support-address { margin: 26px 0 10px; }
.support-link {
  display: inline-block;
  padding: 16px 24px;
  border-radius: var(--r-btn, 12px);
  background: var(--primary);
  color: var(--surface-container-lowest);
  font: 700 18px/1.2 Manrope, system-ui, sans-serif;
  text-decoration: none;
  letter-spacing: -.01em;
}
.support-address + .legal-section { margin-top: 32px; }
.support-link:hover { filter: brightness(1.06); }
.support-link:focus-visible { outline: 2px solid var(--on-surface); outline-offset: 3px; }
@media (max-width: 560px) {
  .support-link { font-size: 16px; padding: 14px 18px; }
}
