@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --paper: #f4f1ea;
  --sheet: #fbfaf6;
  --ink: #1c1915;
  --soft: #4a453e;
  --muted: #6f695f;
  --faint: #8a8378;
  --line: #d8d2c6;
  --line-strong: #1c1915;
  --fill: #ebe6dc;
  --danger: #7a342c;
  --ok: #2f4a34;
  --serif: "Libre Baskerville", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --measure: 40rem;
  --wide: 52rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); }
img { max-width: 100%; }

.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
}
.nav a, .nav button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.25em; }

.page {
  width: min(var(--measure), 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.page.wide { width: min(var(--wide), 100%); }

.kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.25; }
h1 { margin: 0; font-size: 2rem; }
h2 { margin: 2rem 0 0.6rem; font-size: 1.35rem; }
h3 { margin: 1.25rem 0 0.4rem; font-size: 1.1rem; }
.lead, .lede { margin: 0.7rem 0 0; color: var(--soft); max-width: 38rem; }
p { margin: 0.6rem 0; }

.stack { display: grid; gap: 0.75rem; }
.cols { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .cols.two { grid-template-columns: 1fr 1fr; }
  .cols.three { grid-template-columns: 1fr 1fr 1fr; }
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.item {
  display: block;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.item:last-child { border-bottom: 1px solid var(--line); }
.item h3 { margin: 0; font-size: 1.15rem; }
.item p { margin: 0.25rem 0 0; color: var(--soft); font-size: 0.98rem; }
.item:hover h3 { text-decoration: underline; text-underline-offset: 0.18em; }
.tag { color: var(--faint); font-size: 0.8rem; font-family: var(--mono); }

table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.scroll { overflow-x: auto; }

pre, code { font-family: var(--mono); }
code { font-size: 0.88em; }
pre {
  margin: 0.8rem 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  background: var(--fill);
  border-left: 2px solid var(--ink);
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.agent { margin: 1.5rem 0; color: var(--muted); font-size: 0.82rem; }
.agent summary { cursor: pointer; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.agent pre { background: transparent; border-left-color: var(--line); color: var(--soft); }

blockquote {
  margin: 1rem 0;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 2px solid var(--ink);
  color: var(--soft);
}

.stat { padding: 0.2rem 0 0.8rem; border-bottom: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.stat span { color: var(--muted); font-size: 0.85rem; }

details.fold { border-top: 1px solid var(--line); }
details.fold:last-of-type { border-bottom: 1px solid var(--line); }
details.fold summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  cursor: pointer;
  list-style: none;
}
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary span { color: var(--faint); font-family: var(--mono); font-size: 0.8rem; }
details.fold .body { padding: 0 0 0.9rem; color: var(--soft); }

.field { display: block; margin: 0 0 0.9rem; }
.field span { display: block; margin-bottom: 0.25rem; color: var(--muted); font-size: 0.9rem; }
input[type="text"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--sheet);
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: 1px solid var(--ink); outline-offset: 1px; }
.btn {
  display: inline-block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: #2c2823; }
.err { color: var(--danger); font-size: 0.95rem; }
.hidden { display: none; }

footer.site-foot {
  margin-top: 2.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
}
footer.site-foot a { color: var(--muted); }

ul, ol { margin: 0.4rem 0; padding-left: 1.2rem; }
li { margin: 0.25rem 0; }

@media (max-width: 640px) {
  h1 { font-size: 1.65rem; }
  .site { padding-top: calc(0.75rem + env(safe-area-inset-top)); }
}
.mt { margin-top: 1.5rem; }
.quiet { color: var(--muted); text-decoration: none; }
.quiet:hover { color: var(--ink); }

body.gym {
  --gym-bg: #f3f1eb;
  --gym-card: #fffcf7;
  --gym-inset: #ebe6dc;
  --gym-text: #2a2723;
  --gym-muted: #6f695f;
  --gym-faint: #8a8378;
  --gym-line: #e4ddd2;
  --gym-accent: #5c6844;
  background: var(--gym-bg);
  color: var(--gym-text);
  font-family: var(--sans);
}
body.gym h1, body.gym h2, body.gym .clock, body.gym .pick, body.gym .kpi .v { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; }
body.gym .site { max-width: 44rem; background: var(--gym-bg); border-bottom-color: var(--gym-line); }
body.gym .brand { color: var(--gym-text); font-family: var(--sans); }
body.gym .nav a, body.gym .nav button { color: var(--gym-muted); }
body.gym .nav a:hover, body.gym .nav button:hover { color: var(--gym-text); }
.app { width: min(32rem, 100%); margin: 0 auto; padding-bottom: calc(7.5rem + env(safe-area-inset-bottom)); }
.app.wide { width: min(44rem, 100%); }
.app.page { padding: 8px 18px 48px; }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 16px 12px;
  background: rgba(243, 241, 235, 0.94);
  border-bottom: 0;
}
.row { display: flex; align-items: flex-end; gap: 12px; }
.weekpick { flex: 1; min-width: 0; }
.kicker, .eyebrow {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.gym .eyebrow { color: var(--gym-muted); }
select.pick, input.bare { width: auto; margin: 0; padding: 0; border: 0; background: transparent; font-size: 1.15rem; }
.pick {
  appearance: none;
  display: block;
  width: 100%;
  height: 2rem;
  padding-right: 1.2rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%236f695f' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  font-size: 1.55rem;
  line-height: 2rem;
  color: var(--gym-text);
}
input.bare {
  width: 4.2rem;
  height: 2rem;
  text-align: right;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 2rem;
  color: var(--gym-text);
}
input.bare:focus { outline: none; }
.bw { flex: none; text-align: right; }
.ghost { align-self: center; color: var(--gym-muted); text-decoration: none; font-size: 0.95rem; }
.ghost:hover { color: var(--gym-text); }
.dot { width: 8px; height: 8px; margin-bottom: 8px; border-radius: 50%; background: #c4b59a; flex: none; }
.dot.live { background: var(--gym-accent); }
.days { display: grid; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 16px; background: var(--gym-inset); }
.day { border: 0; border-radius: 12px; padding: 8px 2px; background: transparent; color: var(--gym-muted); }
.day.on { background: var(--gym-card); color: var(--gym-text); box-shadow: 0 1px 2px rgba(42, 39, 35, 0.06); }
.day b { display: block; font-weight: 600; font-size: 0.95rem; }
.day span { display: block; font-size: 0.72rem; }
.progress { margin-top: 12px; }
.progress-top { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: 0.85rem; color: var(--gym-muted); }
.num { font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 999px; background: var(--gym-inset); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--gym-accent); transform: scaleX(var(--x, 0)); transform-origin: left center; }
.summary { margin: 8px 0 0; color: var(--gym-faint); font-size: 0.8rem; }
.note { margin: 12px 16px 0; padding: 10px 12px; border-radius: 12px; background: #f8ecea; color: #7a342c; }
.session { padding: 8px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.lift { padding: 16px 14px 12px; border: 1px solid var(--gym-line); border-radius: 22px; background: var(--gym-card); }
.lift.done { opacity: 0.7; }
.lift-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lift h2 { margin: 0; font-size: 1.05rem; }
.lift h2 a { color: inherit; text-decoration: none; }
.mark { color: var(--gym-muted); font-size: 0.8rem; }
.lift.done .mark { color: var(--gym-accent); }
.sets {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 6px;
  align-items: center;
}
.axis { color: var(--gym-faint); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; }
.idx { color: var(--gym-muted); font-size: 0.8rem; text-align: center; }
body.gym input.log-input {
  width: 100%;
  height: 2.85rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--gym-inset);
  box-shadow: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--gym-text);
}
body.gym input.log-input:focus { outline: none; box-shadow: 0 0 0 1.5px var(--gym-text); }
body.gym input.log-input.filled { background: #e7eddc; box-shadow: inset 0 0 0 1px rgba(92, 104, 68, 0.35); }
body.gym input.log-input.saving { opacity: 0.55; }
.stats { margin: 10px 0 0; color: var(--gym-faint); font-size: 0.75rem; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 10px; }
.statgrid span { display: block; color: var(--gym-faint); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.statgrid b { color: var(--gym-text); font-weight: 600; font-size: 0.95rem; }
.kpis.compact { margin: 12px 16px 0; }
.kpis.compact .kpi { padding: 10px 12px; border-radius: 14px; }
.kpis.compact .kpi .v { font-size: 1.05rem; }
@media (max-width: 640px) {
  body.gym .site { padding: 0.55rem 0.85rem; }
  body.gym .brand, body.gym .nav a, body.gym .nav button { font-size: 0.9rem; }
  .top { padding: 8px 12px 10px; }
  .pick { font-size: 1.25rem; }
  .summary {
    margin: 8px 12px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .days { display: flex; overflow-x: auto; }
  .day { flex: 1 0 3.4rem; min-height: 2.6rem; }
  .session { padding: 8px 10px 0; }
  .lift { padding: 12px 10px; border-radius: 16px; }
  .lift h2 { font-size: 1rem; }
  .sets { grid-template-columns: 1.15rem minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px 4px; }
  .axis { font-size: 0.62rem; letter-spacing: 0; }
  body.gym input.log-input { height: 3rem; border-radius: 10px; }
  .app { padding-bottom: calc(5.6rem + env(safe-area-inset-bottom)); }
  .dock { width: calc(100% - 16px); padding: 6px 6px 6px 16px; }
  .go { width: 3.5rem; height: 3.5rem; }
  .clock { font-size: 1.45rem; }
}
.dock {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(32rem, calc(100% - 20px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: var(--gym-card);
  border: 1px solid var(--gym-line);
  box-shadow: 0 8px 24px rgba(42, 39, 35, 0.08);
}
.dock p { margin: 0; }
.clock { font-size: 1.7rem; font-weight: 600; line-height: 1; color: var(--gym-text); }
.go {
  margin-left: auto;
  width: 4.4rem;
  height: 4.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--gym-text);
  color: #f7f4ee;
  font-weight: 600;
}
.go.stop { background: var(--gym-accent); color: #f7f4ee; }
.back { color: var(--gym-muted); text-decoration: none; }
.back:hover { color: var(--gym-text); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1.25rem 0; }
.kpi { padding: 14px; border-radius: 18px; background: var(--gym-card); border: 1px solid var(--gym-line); }
.kpi p { margin: 0; }
.kpi .k { color: var(--gym-muted); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.kpi .v { margin-top: 4px; font-size: 1.45rem; }
.panel { margin: 0 0 12px; padding: 16px 14px; border-radius: 22px; background: var(--gym-card); border: 1px solid var(--gym-line); }
.panel h2 { margin: 0; font-size: 1rem; }
.sub { color: var(--faint); font-size: 0.8rem; }
body.gym .sub { color: var(--gym-faint); }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 9rem; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar { width: 100%; height: var(--h, 0); border-radius: 999px 999px 4px 4px; background: var(--gym-inset); }
.bar.hot { background: var(--gym-accent); }
.col span { margin-top: 6px; color: var(--gym-faint); font-size: 0.65rem; }
.bwchart { width: 100%; height: 7rem; display: block; }
.liftrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 0.75rem 0; border-top: 1px solid var(--gym-line); }
.liftrow em { display: block; margin-top: 2px; color: var(--gym-faint); font-style: normal; font-size: 0.8rem; }
.liftrow b { color: var(--gym-accent); }

.shell { display: flex; min-height: calc(100vh - 3.2rem); }
.side {
  width: 15rem;
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  padding: 1rem 0 2rem;
}
.side-h { padding: 0 1rem 0.8rem; border-bottom: 1px solid var(--line); margin-bottom: 0.6rem; }
.side-h a { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.side h1 { font-size: 1.05rem; margin: 0.4rem 0 0; }
.side p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.85rem; }
.group, .section-group-title {
  margin: 0.9rem 0 0.2rem;
  padding: 0 1rem;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.side a.link, .sidebar-link {
  display: block;
  padding: 0.28rem 1rem;
  color: var(--soft);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.sidebar-link.active, .sidebar-link.on, .link.on { color: var(--ink); border-left-color: var(--ink); }
.sheet { width: min(40rem, 100%); margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.prose h3 { font-family: var(--serif); font-weight: 400; }
.prose p, .prose li { color: var(--soft); }
.source { color: var(--faint); font-size: 0.85rem; }
.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.chapter-nav a { color: var(--soft); }
.mobile-nav { display: none; margin-bottom: 1rem; }
.chart { position: relative; height: 22rem; }
.chart canvas { width: 100%; height: 100%; }
.swatch { width: 4.5rem; height: 2.2rem; border: 1px solid var(--line); }
.swatch.paper { background: var(--paper); }
.swatch.ink { background: var(--ink); }
.swatch.fill { background: var(--fill); }
.swatch.line { background: var(--line); }
.swatch.muted { background: var(--muted); }
.row-sample { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: end; }

@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .side { display: none; }
  .mobile-nav { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* streets:start */
.rank { list-style: none; margin: 0.6rem 0; padding: 0; }
.rank li { margin: 0; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.rank li:last-child { border-bottom: 1px solid var(--line); }
.rank button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}
.rank-row {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) auto;
  gap: 0 0.6rem;
  align-items: baseline;
}
.rank-n { color: var(--faint); font-family: var(--mono); font-size: 0.8rem; }
.rank-t { min-width: 0; }
.rank-c { font-family: var(--mono); font-size: 0.9rem; }
.rank-sub { display: block; color: var(--muted); font-size: 0.82rem; }
.rank-bar { display: block; height: 3px; margin: 0.35rem 0 0 2.4rem; background: var(--fill); }
.rank-bar i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(var(--x, 0));
  transform-origin: left center;
}
.rank button:hover .rank-t { text-decoration: underline; text-underline-offset: 0.18em; }
.rank button[aria-pressed="true"] .rank-t { font-weight: 600; }
.rank button[aria-pressed="true"] .rank-bar i { background: var(--danger); }
.rank.long { max-height: 30rem; overflow-y: auto; }
.rank-flag { color: var(--faint); font-family: var(--mono); font-size: 0.75rem; }

.split { display: grid; gap: 1rem 1.5rem; margin-top: 0.8rem; }
.split .map { order: -1; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
  .split .map { order: 0; position: sticky; top: 1rem; }
}

.map { margin: 0; }
.map canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  border: 1px solid var(--line);
  background: var(--sheet);
}
.map-note { min-height: 2.6rem; margin: 0.4rem 0 0; color: var(--muted); font-size: 0.88rem; }
.map-note b { color: var(--ink); font-weight: 600; }
/* streets:end */

.toolbar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.linkish:hover { color: var(--ink); }
.quotes { margin: 0.2rem 0 0; }
.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 1rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.quotes .quote:last-child { border-bottom: 1px solid var(--line); }
.quote-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; }
.quote-open { padding: 0; border: 0; background: none; text-align: left; }
.quote-name b, .quote-open b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.quote:hover .quote-open b { text-decoration: underline; text-underline-offset: 0.18em; }
.quote-px { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-px b { display: block; font-weight: 500; font-size: 1rem; }
.chg.up { color: var(--ok); }
.chg.down { color: var(--danger); }
.quote-x {
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 0.82rem;
}
.quote-x:hover { color: var(--danger); }
.hits { list-style: none; margin: 0.2rem 0 0; padding: 0; }
.hits li { border-top: 1px solid var(--line); }
.hits li:last-child { border-bottom: 1px solid var(--line); }
.hits button {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1rem;
  width: 100%;
  padding: 0.65rem 0;
  border: 0;
  background: none;
  text-align: left;
}
.hits button:hover b { text-decoration: underline; text-underline-offset: 0.18em; }
.hits b { font-weight: 600; }
.hits span { color: var(--muted); font-size: 0.9rem; text-align: right; }
@media (max-width: 640px) {
  .hits button { flex-direction: column; gap: 0.1rem; }
  .hits span { text-align: left; }
}

.quote { cursor: pointer; border-left: 2px solid transparent; padding-left: 0.55rem; }
.quote.on { border-left-color: var(--ink); background: var(--fill); }
.terms {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  margin-top: 0.55rem;
}
.terms i {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.terms b { font-family: var(--mono); font-weight: 500; font-size: 0.92rem; }
.terms b.na { color: var(--muted); font-weight: 400; }
.facts { grid-column: 1 / -1; margin: 0.35rem 0 0; }
.chart-panel { margin: 1.25rem 0 0.4rem; }
.chart-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.chart-h h2 { margin: 0; font-size: 1.35rem; }
.tv-frame {
  display: block;
  width: 100%;
  height: 28rem;
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  background: var(--sheet);
}
@media (max-width: 640px) {
  .terms { grid-template-columns: 1fr 1fr; }
  .tv-frame { height: 22rem; }
}
