:root {
  --color-bg: #ffffff;
  --color-text: #0b0b0a;
  --color-text-muted: #4a4842;
  --color-text-faint: var(--color-text);
  --color-border: #ddd;
  --color-border-mid: #ccc;
  --color-border-light: #eee;
  --color-advice-ok-bg: #f6fff4;
  --color-advice-warning-bg: #fffaf4;
  --color-advice-critical-bg: #fff4f4;

  --paper:  #ffffff;
  --panel:  #f4f3ef;
  --footer: var(--panel);
  --ink:    #0b0b0a;
  --ink-2:  #4a4842;
  --line:   #0b0b0a;
  --idx-bg:  var(--ink);
  --idx-ink: var(--paper);
  --red:    #d8271c; --red-ink: #ffffff;
  --yellow: #f4c400; --yellow-ink: #0b0b0a;
  --green:  #2e8b40; --green-ink: #ffffff;
  --blue:   #1b49c4; --blue-ink: #ffffff;
  --solid:       #0b0b0a;
  --solid-hover: #4a4842;
  --solid-ink:   #ffffff;
  --hair: 2px;
  --heavy: 5px;
  --grotesk: 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #38332b;
    --color-text: #f2efe7;
    --color-text-muted: #c3c0b6;
    --color-text-faint: var(--color-text);
    --color-border: #3a3a3a;
    --color-border-mid: #4a4a4a;
    --color-border-light: #252525;
    --color-advice-ok-bg: #162116;
    --color-advice-warning-bg: #251d0a;
    --color-advice-critical-bg: #2a1010;

    --paper:  #38332b;
    --panel:  #464036;
    --footer: #2b2721;
    --ink:    #f2efe7;
    --ink-2:  #c3c0b6;
    --line:   #0b0b0a;
    --idx-bg:  var(--paper);
    --idx-ink: var(--ink);
    --red:    #f04437; --red-ink: #0b0b0a;
    --yellow: #f6ce24; --yellow-ink: #0b0b0a;
    --green:  #57b368; --green-ink: #0b0b0a;
    --blue:   #5a82f0; --blue-ink: #0b0b0a;
  }
}

body { display: flex; flex-direction: column; min-height: 100dvh;
       font-family: var(--grotesk); margin: 0;
       background: var(--color-bg); color: var(--color-text);
       -webkit-font-smoothing: antialiased; position: relative; }
#app { flex: 1; }

body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: 0.35; } }

a:link, a:visited { color: inherit; text-decoration: none; }
nav button { margin-right: .5rem }
.select-all { user-select: all; -webkit-user-select: all; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h2 { font-family: var(--grotesk); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.01em; font-size: 1.5rem; margin: 1.75rem 0 1rem; }
h3 { font-family: var(--grotesk); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 1.02rem; margin: 1.75rem 0 0.75rem; }

.crumb-nav { font-family: var(--mono); font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-2); }
.crumb-nav { margin: 30px 0 0; }
.crumb-nav + .band { margin-top: 18px; }
.crumb-nav a, .sign-in-footer a, .credit a { color: var(--ink-2); text-decoration: none; }
.crumb-nav a:hover, .sign-in-footer a:hover, .credit a:hover { color: var(--ink); text-decoration: underline; }
.crumb-nav .sep { margin: 0 0.5em; color: var(--ink-2); }
.crumb-nav .cur { color: var(--ink); font-weight: 700; }

.hours-controls { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 0.5rem; max-width: 760px; }
.hours-controls button { font-family: var(--mono); font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); background: var(--paper);
  border: var(--hair) solid var(--line); padding: 5px 10px; min-width: 2.6rem; cursor: pointer; }
.hours-controls button:hover { background: var(--panel); }
.hours-controls button.active { background: var(--solid); color: var(--solid-ink); }

.verdict-controls { display: flex; gap: 6px; }
.verdict-body:has(.verdict-actions) { display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: flex-start; }
.verdict-body:has(.verdict-actions) .verdict-main { flex: 1 1 26rem; min-width: 0; }
.verdict-body .verdict-actions { flex: 0 0 auto; margin-top: 3px; }
.verdict-body:has(.verdict-actions) > .verdict-stats { flex-basis: 100%; }
.verdict-body:has(.verdict-actions) > .verdict-stats .stat-strip { margin-top: 8px; }
.verdict-error { margin: 0.5rem 0 0; font-size: 0.8rem; font-weight: 600;
  color: var(--red); max-width: 24rem; text-align: right; }
.verdict-controls button, table.watch.sources td.c button, table.watch.sources td.add-cell button { font-family: var(--mono); font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); background: var(--paper);
  border: var(--hair) solid var(--line); padding: 5px 10px; cursor: pointer; }
.verdict-controls button:hover, table.watch.sources td.c button:hover,
table.watch.sources td.add-cell button:hover { background: var(--panel); }

.modal { border: var(--heavy) solid var(--line); background: var(--paper); color: var(--ink);
  padding: 0; max-width: 30rem; width: calc(100% - 2rem);
  max-height: calc(100vh - 4rem); overflow: auto; }
.modal::backdrop { background: rgba(11, 11, 10, 0.45); }
.modal-form { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.modal-form.grouped { gap: 22px; }
.modal-form.grouped .modal-title { margin-bottom: -6px; }
.modal-group { display: flex; flex-direction: column; gap: 10px; }
.modal-footer { display: flex; flex-direction: column; gap: 6px; }
.modal-footer .modal-actions { margin-top: 0; }
.modal-title { font-family: var(--grotesk); font-weight: 800; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.03em; margin: -22px -24px 0; padding: 12px 24px;
  background: var(--solid); color: var(--solid-ink); }
.modal-field { display: flex; flex-direction: column; gap: 5px; }
.modal-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.modal-pair.narrow-last { grid-template-columns: 1fr 5rem; }
.modal-pair > .modal-field { min-width: 0; }
@media (max-width: 420px) {
  .modal-pair, .modal-pair.narrow-last { grid-template-columns: 1fr; }
}
.modal-label { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-2); }
.modal-inputs { display: flex; gap: 6px; }
.modal-inputs input, .modal-inputs textarea { font-family: var(--mono); font-size: 0.9rem;
  color: var(--ink); background: var(--paper); border: var(--hair) solid var(--line);
  padding: 6px 8px; }
.modal-inputs input, .modal-inputs textarea { flex: 1 1 auto; min-width: 0; }
.modal-inputs textarea { resize: vertical; line-height: 1.4; }
.modal-suffix { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2);
  align-self: center; }
.modal-hint { font-family: var(--grotesk); font-size: 0.82rem; line-height: 1.4;
  color: var(--ink-2); margin: 0; }
.modal-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.modal-actions button { font-family: var(--mono); font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); background: var(--paper);
  border: var(--hair) solid var(--line); padding: 6px 12px; cursor: pointer; }
.modal-actions button:hover { background: var(--panel); }
.modal-actions button.primary { background: var(--solid); color: var(--solid-ink); }
.modal-actions.checks button { flex: 1 1 0; }
.modal-actions button.primary:hover { background: var(--solid-hover); }
.working-dots { display: inline-block; animation: working-dots 1.6s step-end infinite; }
@keyframes working-dots {
  0% { clip-path: inset(0 100% 0 0); }
  25% { clip-path: inset(0 66.67% 0 0); }
  50% { clip-path: inset(0 33.33% 0 0); }
  75% { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .working-dots { animation: none; }
}

.stat-card { border: var(--hair) solid var(--line); padding: 12px 18px; min-width: 160px;
  display: inline-block; margin-bottom: 1.5rem; }
a:hover > .stat-card { background: var(--panel); }
.stat-label { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-2); margin-bottom: 6px; }
.stat-value { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }

.query-box { position: relative; margin: 0 -16px 0 0; }
.query-box pre { padding: 0 4.5rem 0 0; overflow: auto; max-height: 200px;
  white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--mono); font-size: 0.82rem; margin: 0; }

.band-box:not(.defn-box) .query-box pre { min-height: 1.5rem; }

.band-box:has(.query-box) { overflow: visible; }
.defn-box .query-box { margin-right: 0; }
.defn-box .query-box::before, .defn-box .query-box::after { display: none; }
.defn-box .query-box pre { max-height: none; overflow: visible; }
.defn-box .query-box-actions { right: 0; top: 50%; transform: translateY(-50%); }
.defn-box.top-actions .query-box-actions { top: 0; transform: none; }

@supports (-moz-appearance: none) {
  .query-box pre, .band-box, .tbl-wrap, .figure {
    scrollbar-width: thin; scrollbar-color: var(--line) var(--paper); }
}

.query-box::before, .query-box::after { content: ''; position: absolute;
  left: 0; right: 12px; height: 2.4rem; pointer-events: none;
  opacity: 0; transition: opacity 0.15s; }
.query-box::before { top: 0; background: linear-gradient(var(--paper), transparent); }
.query-box::after { bottom: 0; background: linear-gradient(transparent, var(--paper)); }
.query-box.scroll-top::before { opacity: 1; }
.query-box.scroll-bottom::after { opacity: 1; }

.query-box pre::-webkit-scrollbar, .band-box::-webkit-scrollbar,
.tbl-wrap::-webkit-scrollbar, .figure::-webkit-scrollbar { width: 10px; height: 10px; }
.query-box pre::-webkit-scrollbar-track, .band-box::-webkit-scrollbar-track,
.tbl-wrap::-webkit-scrollbar-track, .figure::-webkit-scrollbar-track { background: var(--paper); }
.query-box pre::-webkit-scrollbar-thumb, .band-box::-webkit-scrollbar-thumb,
.tbl-wrap::-webkit-scrollbar-thumb, .figure::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 0;
  border: 2px solid var(--paper); background-clip: padding-box; }
.query-box-actions { position: absolute; top: 0; right: 18px; display: flex; gap: 6px; }
.query-box-actions button { font-family: var(--mono);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--ink); background: var(--paper); border: var(--hair) solid var(--line);
  padding: 4px 10px; cursor: pointer; }
.query-box-actions button:hover { background: var(--panel); }
.query-box:has(.query-box-actions button + button) .copy-btn { min-width: 7em; }
.query-box:has(.query-box-actions button + button) pre { padding-right: 14rem; }

.figure { border: var(--hair) solid var(--line); background: var(--paper); padding: 16px 18px 10px;
  margin: 0 0 1.5rem; max-width: 760px; overflow-x: auto; }

.learn-links a:hover { text-decoration: underline; }
.banded-notes .fn-title { display: none; }
.banded-notes .fieldnotes { margin-top: 0; }

.masthead { display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0 0; gap: 20px; flex-wrap: wrap; }
.brandmark { font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.5rem); text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.9; margin: 0; display: flex; align-items: center; gap: 13px; }

.brandmark a { display: flex; align-items: center; gap: 13px;
  color: inherit; text-decoration: none; }

.brandmark .logo { width: 1.55em; height: 0.72em; flex-shrink: 0; box-sizing: border-box;
  display: grid; grid-template-columns: 0.65fr 1fr 1fr; grid-template-rows: 1fr 1fr;
  grid-template-areas: 'r y y' 'r g w';
  gap: 3px; background: var(--line); border: 3px solid var(--line); }
.brandmark .logo span { display: block; }
.brandmark .logo span:nth-child(1) { grid-area: r; background: var(--red); }
.brandmark .logo span:nth-child(2) { grid-area: y; background: var(--yellow); }
.brandmark .logo span:nth-child(3) { grid-area: g; background: var(--green); }
.brandmark .logo span:nth-child(4) { grid-area: w; background: var(--paper); }

.brandmark svg { color: var(--ink); }
.mast-right { display: flex; align-items: center; gap: 10px; }
.sign-out { display: flex; margin: 0; }
.sign-out-btn { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; white-space: nowrap; color: var(--ink); background: var(--paper);
  border: 3px solid var(--line); border-radius: 0; padding: 7px 12px; cursor: pointer; }
.sign-out-btn:hover { background: var(--panel); }

.live-switch { display: flex; align-items: center; gap: 10px; align-self: stretch; padding: 0 4px;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink); background: none; border: 0; cursor: pointer; }
.live-switch:hover .ls-track { background: var(--panel); }
.live-switch.on:hover .ls-track { background: var(--ink-2); }
.ls-track { position: relative; flex: none; box-sizing: border-box; width: 34px; height: 20px;
  border: 3px solid var(--line); background: var(--paper); transition: background 0.15s; }
.ls-knob { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; background: var(--ink);
  transition: transform 0.15s, background 0.15s; }
.live-switch.on .ls-track { background: var(--ink); }
.live-switch.on .ls-knob { transform: translateX(14px); background: var(--paper); }
@media (prefers-color-scheme: dark) {
  .ls-track { --paper: #ffffff; --ink: #0b0b0a; --ink-2: #1a1815; background: transparent; }
  .ls-knob { background: var(--paper); }
}
.meta { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); text-align: right;
  line-height: 1.7; text-transform: uppercase; letter-spacing: 0.03em; }
.meta b { color: var(--ink); font-weight: 500; }

.source-switch { position: relative; width: 240px; }
.source-select { display: flex; align-items: center; gap: 12px; width: 100%; font-family: var(--mono);
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink); background: var(--paper); border: 3px solid var(--line); border-radius: 0;
  padding: 7px 12px; cursor: pointer; }
.source-select:hover { background: var(--panel); }
.ss-label { flex: 1; min-width: 0; text-align: left; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.ss-caret { width: 0; height: 0; margin-left: auto; border-left: 4px solid transparent;
  border-right: 4px solid transparent; border-top: 5px solid var(--ink); transition: transform 0.12s; }
.source-select.open .ss-caret { transform: rotate(180deg); }
.source-menu { position: absolute; top: 100%; left: 0; right: 0; z-index: 41;
  background: var(--paper); border: 3px solid var(--line); border-top: none; }
.source-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink); background: var(--paper); border: none;
  border-bottom: 2px solid var(--line); padding: 8px 14px; cursor: pointer; }
.so-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-num { color: var(--ink-2); opacity: 0.5; flex-shrink: 0; }
.source-opt.active .so-num { opacity: 1; color: var(--solid-ink); }
.source-opt:last-child { border-bottom: none; }
.source-opt:hover { background: var(--panel); }
.source-opt.active { background: var(--solid); color: var(--solid-ink); }
.source-backdrop { position: fixed; inset: 0; z-index: 40; }

.modal-inputs .menu-select { position: relative; flex: 1 1 auto; min-width: 0; }
.modal-inputs .menu-select.fit { flex: 0 0 auto; }
.menu-select-trigger { display: flex; align-items: center; gap: 12px; width: 100%;
  font-family: var(--mono); font-size: 0.9rem; color: var(--ink); background: var(--paper);
  border: var(--hair) solid var(--line); border-radius: 0; padding: 6px 8px; cursor: pointer; }
.menu-select-trigger:hover { background: var(--panel); }
.menu-select-trigger.open .ss-caret { transform: rotate(180deg); }
.menu-select .source-menu { border-width: var(--hair); }
.menu-select .source-menu.upward { top: auto; bottom: 100%; border-top: var(--hair) solid var(--line);
  border-bottom: none; }
.menu-select .source-opt { font-size: 0.85rem; text-transform: none; letter-spacing: 0; }

.tt { position: fixed; z-index: 200; transform: translate(-50%, calc(-100% - 8px));
  background: var(--paper); color: var(--ink);
  border: var(--hair) solid var(--line);

  box-shadow: 4px 4px 0 var(--line);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--line) 68%, transparent);
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.45;
  padding: 7px 10px; width: max-content; max-width: min(520px, calc(100vw - 32px));
  overflow-wrap: anywhere; pointer-events: none; }
.tt.below { transform: translate(-50%, 8px); }

@media (prefers-color-scheme: dark) {
  .tt { background: var(--panel); }
}

.band { display: flex; margin: 40px 0 0; border: var(--heavy) solid var(--line); }
.band:has(+ .tbl-wrap) { border-bottom: none; }
.band .idx { background: var(--idx-bg); color: var(--idx-ink); font-weight: 900; font-size: 0.95rem;
  padding: 10px 15px; display: flex; align-items: center; letter-spacing: 0.02em;
  border-right: var(--heavy) solid var(--line); }
.band .band-ttl { flex: 1; font-family: inherit; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.03em; font-size: 0.95rem; margin: 0; padding: 10px 16px;
  display: flex; align-items: center; }

.comp { display: grid; grid-template-columns: 1.7fr 1fr;
  border: var(--heavy) solid var(--line); border-top: none; }
.comp.solo { grid-template-columns: 1fr 240px; }
.comp .lead { border-right: var(--heavy) solid var(--line); position: relative;
  padding: 26px 28px; text-decoration: none; color: inherit; display: block; }
.comp .side-stack { display: flex; flex-direction: column; gap: var(--heavy); background: var(--line); }
.comp .side { padding: 22px 24px; text-decoration: none; color: inherit; display: block; flex: 1; background: var(--paper); position: relative; }

.comp a .go { position: absolute; height: 3px; background: var(--ink);
  opacity: 0; transform: translateX(-7px);
  transition: opacity 0.15s ease, transform 0.15s ease; }
.comp a .go::after { content: ''; position: absolute; right: -7px; top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 8px solid var(--ink); }
.comp a.lead .go { right: 26px; bottom: 26px; width: 28px; }
.comp a.side .go { right: 20px; bottom: 16px; width: 18px; }
.comp a:hover .go { opacity: 1; transform: translateX(0); }
.lead .lead-text { font-weight: 800; font-size: clamp(1.4rem, 2.7vw, 2.1rem); line-height: 1.04;
  letter-spacing: -0.015em; margin: 0; text-wrap: balance; text-transform: uppercase;
  overflow-wrap: anywhere; }
.side .side-text { font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin: 0;
  text-transform: uppercase; overflow-wrap: anywhere; }
.comp .calm .lead-text, .comp .calm .side-text { text-transform: none; letter-spacing: -0.01em; }

.stat-strip { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%;
  gap: var(--hair); background: var(--line);
  border: var(--hair) solid var(--line); margin-top: 18px; }
.stat-strip .stat-cell { flex: 1 1 auto; background: var(--paper);
  padding: 8px 18px 14px 8px; min-width: 80px; }
.stat-strip .stat-cell-label { font-family: var(--grotesk); font-weight: 800; font-size: 0.64rem;
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; white-space: nowrap; }
.stat-strip .stat-cell-value { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.comp a.lead .stat-strip { margin-bottom: 0; }
.comp .side.side-solo .side-text { font-size: 1.4rem; line-height: 1.3; }

.finding-body { font-weight: 400; line-height: 1.4; margin: 10px 0 0; overflow-wrap: anywhere; }
.comp .lead .finding-body { font-size: 1.0rem; margin-top: 14px; max-width: 54ch; }
.comp .side .finding-body { font-size: 0.86rem; }
.comp a.lead .finding-body { margin-bottom: 22px; }
.comp a.side .finding-body { margin-bottom: 14px; }

@media (max-width: 820px) {
  .comp, .comp.solo { grid-template-columns: 1fr; }
  .comp .lead { border-right: none; }
  .comp .side-stack { padding-top: var(--heavy); }
  .comp .side .side-text, .comp .side.side-solo .side-text { font-size: 1.25rem; }
  .comp .side .finding-body { font-size: 0.94rem; }
}

.readings { border: var(--heavy) solid var(--line); border-top: none; }
.readings-row { display: flex; }
.readings-row + .readings-row { border-top: 4px solid var(--line); }
.reading { flex: 1 1 0; min-width: 0; border-right: 4px solid var(--line);
  padding: 14px 16px 16px; text-decoration: none; color: inherit; position: relative;
  min-height: 100px; display: flex; align-items: center; }
.reading:last-child { border-right: none; }
.reading:focus-visible { outline-offset: -2px; }
.reading .rl { position: absolute; top: 14px; left: 16px; right: 16px;
  font-family: var(--grotesk); font-weight: 800; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.03em; }

.reading .rl-text { background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat; background-position: left bottom; background-size: 0% 2px;
  padding-bottom: 2px; transition: background-size 0.2s ease; }
.reading:hover .rl-text { background-size: 100% 2px; }
.reading .rv { font-weight: 800; font-size: 2rem; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1; }
.reading .rv .u { font-family: var(--mono); font-size: 0.64rem; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.reading .blk { position: absolute; right: -1px; bottom: -1px; width: 25px; height: 25px; z-index: -1; }

.sq > svg, .blk > svg { display: block; width: 100%; height: 100%; color: var(--paper); }

.reading .spark { --spark-top: 34px; --spark-bottom: 25px;
  position: absolute; left: 0; top: var(--spark-top);
  width: 100%; height: calc(100% - var(--spark-top) - var(--spark-bottom));
  z-index: -1; overflow: visible; pointer-events: none; opacity: 0; }
.reading .spark path { fill: none; stroke: var(--blue); stroke-width: var(--hair);
  stroke-linecap: round; stroke-linejoin: round; }
.reading.spark-on .spark { opacity: 0.9; animation: spark-draw 550ms ease-out both; }
@keyframes spark-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .reading.spark-on .spark { animation: none; clip-path: none; }
}

.tbl-wrap { border: var(--heavy) solid var(--line); border-top: none; border-bottom: none; }
table.watch { width: 100%; border-collapse: separate; border-spacing: 0;
  font-family: var(--mono); font-size: 0.82rem; }
table.watch.narrow td { white-space: nowrap; }
table.watch.narrow th:not(:last-child), table.watch.narrow td:not(:last-child) { padding-right: 32px; }
table.watch.narrow th:last-child, table.watch.narrow td:last-child { width: 100%; }
table.watch th { font-family: var(--grotesk); font-weight: 800; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.03em; text-align: left; padding: 7px 14px 10px; white-space: nowrap;
  position: sticky; top: 0; z-index: 1; background: var(--paper);
  border-top: var(--heavy) solid var(--line);
  box-shadow: inset 0 -5px 0 var(--line); }
table.watch th.num, table.watch td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.watch th.c, table.watch td.c { text-align: center; box-sizing: border-box; width: 1%;
  min-width: 84px; padding-left: 8px; padding-right: 8px; }
table.watch td { padding: 10px 14px; font-weight: 500; }
table.watch th.num:has(+ th.c), table.watch td.num:has(+ td.c) { padding-right: 28px; }
table.watch tbody tr:last-child td { border-bottom: var(--heavy) solid var(--line); }
table.watch tbody tr:hover, table.watch tbody tr:has(a:focus-visible) { background: var(--panel); }

table.watch td.num a { display: block; margin: -10px -14px; padding: 10px 14px;
  text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

table.watch td a.qcell, table.watch td span.qcell, table.watch td.name a { display: block; margin: -10px -14px; padding: 10px 14px;
  text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: clip;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); }
table.watch td.name { max-width: 400px; }
table.watch td a.qcell:focus-visible, table.watch td.name a:focus-visible {
  -webkit-mask-image: none; mask-image: none; }
table.watch td.c a { display: block; margin: -10px -8px; padding: 10px 8px; text-align: center; }
table.watch td.num:has(+ td.c) a { margin-right: -28px; padding-right: 28px; }

@media (max-width: 1164px) {
  .tbl-wrap { overflow-x: auto; border-bottom: var(--heavy) solid var(--line); }
  table.watch tbody tr:last-child td { border-bottom: none; }
}

table.watch.issues { table-layout: fixed; min-width: 904px;
  font-family: var(--grotesk); font-size: 0.86rem; }
table.watch.issues th:first-child, table.watch.issues td:first-child { width: 300px; }
table.watch.issues th:nth-child(3), table.watch.issues td:nth-child(3) { width: 84px; }
table.watch.issues td.name { text-transform: uppercase; }
table.watch.issues th:nth-child(2), table.watch.issues td.advice { padding-left: 40px; }
table.watch.issues td.advice a.qcell { margin-left: -40px; padding-left: 40px; }

table.watch.cats td.name { font-family: var(--grotesk); font-size: 0.86rem;
  text-transform: uppercase; }


table.watch.ignores td.reason a.qcell { max-width: 360px; }

table.watch.blockers td.nw, table.watch.blockers th.nw { white-space: nowrap; }
table.watch.blockers td.c.tight, table.watch.blockers th.c.tight {
  width: 46px; min-width: 0; padding-left: 14px; padding-right: 0; }
table.watch.blockers td.wcell span.qcell { display: flex; justify-content: flex-end; max-width: 160px;
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 22px), transparent);
          mask-image: linear-gradient(to left, #000 calc(100% - 22px), transparent); }
table.watch.blockers td.qcol span.qcell { max-width: 280px; }
.tbl-wrap:has(table.watch.blockers) { overflow-x: auto;
  border-bottom: var(--heavy) solid var(--line); }
.tbl-wrap:has(table.watch.blockers) tbody tr:last-child td { border-bottom: none; }

table.watch.defns th:first-child, table.watch.defns td:first-child {
  width: 1%; white-space: nowrap; padding-right: 32px; }
table.watch.defns td.defn { font-family: var(--mono); font-size: 0.82rem;
  white-space: pre-wrap; overflow-wrap: anywhere; }
table.watch.defns td.defn a { display: block; margin: -10px -14px; padding: 10px 14px; }
table.watch.redundant { table-layout: fixed; min-width: 820px; }
table.watch.redundant th:first-child, table.watch.redundant td:first-child { width: 40%; }
table.watch.redundant th:nth-child(2), table.watch.redundant td:nth-child(2) { width: 52px; }
table.watch.redundant th:nth-child(3), table.watch.redundant td:nth-child(3) { width: 92px; }
table.watch.redundant th:nth-child(5), table.watch.redundant td:nth-child(5) { width: 48px; }

table.watch td.name a .sub-ident { font-family: var(--mono); font-size: 0.92em; }
table.watch td.name a:hover { text-decoration: underline; }
table.watch.rowlink tbody tr:hover td.name a { text-decoration: underline; }
table.watch.rowlink tbody tr:has(td.offrow:hover) td.name a { text-decoration: none; }
table.watch td.c a:hover .sq { transform: scale(1.35); }

.sq { display: inline-block; width: 16px; height: 16px; vertical-align: -3px;
  transition: transform 0.1s; }
.pill { font-family: var(--grotesk); font-weight: 800; font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.02em; padding: 2px 6px; }

.detail { border: var(--heavy) solid var(--line); border-top: none; }
.detail .crumb { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); text-transform: uppercase;
  letter-spacing: 0.03em; padding: 11px 22px; border-bottom: var(--hair) solid var(--line); }
.detail .crumb a { color: var(--blue); text-decoration: none; }

.verdict { border: var(--heavy) solid var(--line); margin: 1rem 0 1.5rem; }
.verdict-body { border-left: 14px solid var(--line); padding: 22px 24px; }
.verdict-body p { margin: 0; font-weight: 700; font-size: 1.0rem; line-height: 1.35; }
.verdict-body .verdict-headline { font-weight: 800; font-size: 1.35rem; line-height: 1.12;
  letter-spacing: -0.01em; text-wrap: balance; text-transform: uppercase; }
.verdict-body.calm .verdict-headline { text-transform: none; letter-spacing: -0.005em; }
.verdict-body .verdict-text { font-weight: 400; font-size: 1.0rem; line-height: 1.45;
  margin-top: 10px; max-width: 68ch; }
.verdict-body .verdict-note { font-weight: 700; font-size: 0.95rem; line-height: 1.4;
  margin-top: 12px; max-width: 68ch; }
.verdict-body .verdict-note + .verdict-note { margin-top: 4px; }
.summary .verdict { border-top: none; margin: 0; }

.band-box { border: var(--heavy) solid var(--line); border-top: none; padding: 20px 24px; overflow-x: auto; }
.band-box .figure { border: none; background: none; padding: 0; margin: 0; max-width: none; }
.band-box .figure + .figure { margin-top: 1.75rem; }
.band-box .hours-controls { max-width: none; margin: 0 0 0.75rem; }
.fn-title { font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-2); border-bottom: var(--hair) solid var(--line); padding-bottom: 8px; margin: 0 0 14px; max-width: 68ch; }
.fieldnotes { margin-top: 2rem; }
.fieldnotes p { font-size: 0.98rem; margin: 0 0 14px; max-width: 75ch; line-height: 1.6; }
.fieldnotes p a { text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: var(--ink-2); }
.fieldnotes p a:hover { text-decoration-color: var(--ink); }
code { font-family: var(--mono); background: var(--panel); padding: 1px 5px;
  border: var(--hair) solid var(--line); font-size: 0.85em; }

@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 500;
  src: url('../fonts/noto-sans-500-digits.woff2') format('woff2'); unicode-range: U+30-39; }

.flapboard { display: flex; align-items: center; align-self: stretch; box-sizing: border-box;
  position: relative; isolation: isolate; gap: 2px; cursor: default;
  --casing: 3px; --tile-h: 1.8125rem; padding: 0 var(--casing); background: #0b0b0a; }
.flapboard::after { content: ''; position: absolute; z-index: 5; pointer-events: none;
  inset: calc(50% - var(--tile-h) / 2) var(--casing);
  box-shadow: inset 0 0 3px 1px rgba(0,0,0,0.7); }
.flap { position: relative; width: 18px; height: var(--tile-h);
  perspective: 200px; font-family: 'Noto Sans', var(--grotesk); font-size: 1.375rem;
  font-weight: 500; color: #f2eee2; }
.flap .half { position: absolute; left: 0; width: 100%; height: calc(50% - 0.5px);
  overflow: hidden; display: flex; justify-content: center; backface-visibility: hidden; }
.flap .half span { height: var(--tile-h); line-height: var(--tile-h); display: block;
  transform: translateY(0.033em); }
@supports (text-box: trim-both cap alphabetic) {
  .flap .half span { box-sizing: border-box; line-height: 1; transform: none;
    padding-top: calc((var(--tile-h) - 1cap) / 2); text-box: trim-both cap alphabetic; }
}
.flap.pair-end .half span { margin-right: 6px; }
.flap.colon .half::after { content: ''; position: absolute; right: 2px; width: 3px; height: 3px;
  border-radius: 50%; background: currentColor; }
.flap.colon .top::after, .flap.colon .leaf::after { bottom: 2px; }
.flap.colon .bottom::after, .flap.colon .leaf-back::after { top: 3px; }
.flap .top, .flap .leaf { top: 0; align-items: flex-start; border-radius: 2px 2px 0 0;
  background: #262624; }
.flap .bottom, .flap .leaf-back { bottom: 0; align-items: flex-end; border-radius: 0 0 2px 2px;
  background: #20201e; }
.flap .leaf { z-index: 2; transform-origin: bottom center; visibility: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.35); }
.flap .leaf.flipping { visibility: visible; animation: flapdown 220ms linear forwards; }
.flap .leaf-back { z-index: 3; transform-origin: top center; transform: rotateX(90deg);
  visibility: hidden; }
.flap .leaf-back.flipping { visibility: visible; animation: flapup 220ms linear forwards; }

@keyframes flapdown {
  0%        { transform: rotateX(0deg);   filter: brightness(1);   animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0.333); }
  48%, 100% { transform: rotateX(-90deg); filter: brightness(0.4); }
}
@keyframes flapup {
  0%, 48% { transform: rotateX(90deg); filter: brightness(1.4);  animation-timing-function: cubic-bezier(0.333, 0.276, 0.667, 0.609); }
  68%     { transform: rotateX(0deg);  filter: brightness(1);    animation-timing-function: ease-out; }
  84%     { transform: rotateX(6deg);  filter: brightness(1.06); animation-timing-function: ease-in-out; }
  100%    { transform: rotateX(0deg);  filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .flap .leaf.flipping, .flap .leaf-back.flipping { animation: none; }
  .ls-track, .ls-knob { transition: none; }
}

table.watch.sources td.host { width: 30%; }
table.watch.sources td.host .qcell { width: 0; min-width: 100%; }
table.watch.sources tbody tr.add-row:hover { background: none; }
table.watch.sources td.c, table.watch.sources td.add-cell { text-align: right; padding-right: 8px; }
table.watch.sources td.c button, table.watch.sources td.add-cell button { white-space: nowrap; }

table.watch.sources td.plain { white-space: nowrap; }

.form-notice { position: relative; border: var(--hair) solid var(--line);
  padding: 10px 34px 10px 12px; font-family: var(--grotesk); font-size: 0.82rem;
  line-height: 1.4; display: flex; flex-direction: column; gap: 5px; }
.form-notice p { margin: 0; }
.form-notice.ok { background: var(--color-advice-ok-bg); }
.form-notice.warn { background: var(--color-advice-warning-bg); }
.form-notice.error { background: var(--color-advice-critical-bg); }
.notice-close { position: absolute; top: 3px; right: 5px; background: none; border: 0;
  font-family: var(--mono); font-size: 1rem; line-height: 1; padding: 4px 6px;
  color: var(--ink-2); cursor: pointer; }
.notice-close:hover { color: var(--ink); }

.sign-in { flex: 1; width: 100%; max-width: 464px; box-sizing: border-box; margin: 0 auto 64px;
  padding: 0 22px; }
.sign-in-box { display: flex; flex-direction: column; gap: 10px; overflow: visible; }
.sign-in-box > p { margin: 0; font-family: var(--grotesk); font-size: 0.9rem; line-height: 1.45; }
.sign-in-form { display: flex; flex-direction: column; gap: 10px; }
.form-notice:target { display: none; }
.email-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 12px 18px; align-items: center;
  margin-bottom: 14px; }
.email-col { font-family: var(--grotesk); font-weight: 800; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--ink); }
.email-name { font-family: var(--mono); font-weight: 500; font-size: 0.82rem; color: var(--ink); }
.email-switch { position: relative; display: flex; justify-self: center; cursor: pointer; }
.email-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.email-switch:hover .ls-track { background: var(--panel); }
.email-switch-input:checked + .ls-track { background: var(--ink); }
.email-switch-input:checked + .ls-track .ls-knob { transform: translateX(14px); background: var(--paper); }
.email-switch-input:focus-visible + .ls-track { outline: 2px solid var(--ink); outline-offset: 2px; }
.email-tip { position: absolute; z-index: 2; right: -6px; bottom: calc(100% + 8px);
  visibility: hidden; opacity: 0; transition: opacity 0.1s, visibility 0s linear 0.1s;
  background: var(--paper); color: var(--ink); border: var(--hair) solid var(--line);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--line) 68%, transparent);
  font-family: var(--mono); font-size: 0.72rem; font-weight: 400; line-height: 1.45;
  text-transform: none; letter-spacing: 0;
  padding: 7px 10px; width: max-content; max-width: min(340px, calc(100vw - 64px)); pointer-events: none; }
.email-switch:hover .email-switch-input:checked ~ .on-tip,
.email-switch:hover .email-switch-input:not(:checked) ~ .off-tip,
.email-switch-input:focus-visible:checked ~ .on-tip,
.email-switch-input:focus-visible:not(:checked) ~ .off-tip { visibility: visible; opacity: 1; transition-delay: 0.4s; }
@media (prefers-color-scheme: dark) {
  .email-tip { background: var(--panel); }
}
.sign-in-btn { display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; box-sizing: border-box;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--ink); background: var(--paper); cursor: pointer;
  border: var(--hair) solid var(--line); padding: 10px 12px; }
a.sign-in-btn:link, a.sign-in-btn:visited { color: var(--ink); }
.sign-in-btn:hover { background: var(--panel); }
.sign-in-btn svg { flex: none; }
.sign-in-footer, .credit { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); }
.sign-in-footer { display: flex; justify-content: space-between; gap: 18px; margin: 14px 0 0; }
.credit { padding: 28px 22px; background: var(--footer); text-align: center; }

