/* Essay Club - risograph editorial print. Self-hosted type, no inline styles (CSP style-src 'self', font-src 'self'). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FAF8F5;
  --surface: #FFFFFF;
  --ink: #1A1A2E;
  --ink-muted: #5C5869;
  --line: #E4DFD8;
  --cobalt: #2447D6;
  --on-cobalt: #FFFFFF;
  --tomato: #D93822;
  --on-tomato: #FFFFFF;
  --sunflower: #FFC233;
  --on-sunflower: #1A1A2E;
  --overprint-green: #1F6B4F;
  --on-green: #FFFFFF;
  --overprint-orange: #F07A1A;
  --night: #1A1A2E;
  --on-night: #F5F2EC;
  --butter: #FFEDB8;
  --sky: #DCE4FB;
  --blush: #FBDDD5;
  --focus-ring: #1A1A2E;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14142B;
    --surface: #1F1F3D;
    --ink: #F5F2EC;
    --ink-muted: #ABA8BF;
    --line: #34345A;
    --cobalt: #7B93FF;
    --on-cobalt: #14142B;
    --tomato: #FF6A52;
    --on-tomato: #14142B;
    --sunflower: #FFC233;
    --on-sunflower: #1A1A2E;
    --overprint-green: #2A8562;
    --on-green: #FFFFFF;
    --overprint-orange: #F58A33;
    --night: #0D0A1F;
    --on-night: #F5F2EC;
    --butter: #453A14;
    --sky: #1F2A63;
    --blush: #4A1F2B;
    --focus-ring: #FFC233;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/27px var(--body);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--cobalt);
}
::selection { background: var(--sunflower); color: var(--on-sunflower); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.visually-hidden, .vote-word {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 30; background: var(--sunflower); color: var(--on-sunflower); padding: 8px 14px; border: 2px solid var(--ink); }

/* SVG paint classes (CSP-safe fills) */
.f-ink { fill: var(--ink); } .f-paper { fill: var(--paper); } .f-sunflower { fill: var(--sunflower); }
.f-tomato { fill: var(--tomato); } .f-cobalt { fill: var(--cobalt); } .f-butter { fill: var(--butter); }
.f-overprint-green { fill: var(--overprint-green); } .f-overprint-orange { fill: var(--overprint-orange); }
.s-ink { stroke: var(--ink); }
.grain { opacity: 0.16; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .grain { mix-blend-mode: screen; opacity: 0.16; } }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 16px;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--surface); color: var(--ink);
  font: 700 15px/20px var(--display); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform 100ms ease-out, box-shadow 100ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.btn .icon { width: 15px; height: 15px; flex: none; }
.btn-primary { background: var(--cobalt); color: var(--on-cobalt); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-small { min-height: 34px; padding: 4px 12px; font-size: 14px; }

/* ------------------------------------------------------------------ Masthead */
.masthead::before {
  content: ""; display: block; height: 10px;
  background: linear-gradient(90deg,
    var(--cobalt) 0 44%, var(--tomato) 44% 61%, var(--sunflower) 61% 86%, var(--overprint-green) 86% 100%);
  border-bottom: 2px solid var(--ink);
}
.masthead-row {
  display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding-block: 18px 14px;
  border-bottom: 2px solid var(--ink);
}
.brand-block { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; overflow: visible; }
.brand { font: 800 30px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.dateline {
  margin: 0; font: 700 12px/16px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
}
.account { display: flex; align-items: center; gap: 12px; }
.who { font-size: 14px; color: var(--ink-muted); }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px;
  padding-block: 26px 28px;
}
.tagline {
  margin: 0; max-width: 23em;
  font: 800 clamp(30px, 3.5vw, 46px)/1.06 var(--display); letter-spacing: -0.025em;
}
.tagline mark {
  background: linear-gradient(transparent 60%, var(--sunflower) 60%, var(--sunflower) 94%, transparent 94%);
  color: inherit; padding-inline: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-art { width: 190px; height: auto; display: block; overflow: visible; }
@media (prefers-color-scheme: dark) {
  /* Light ink on a sunflower band fails contrast; dark mode uses a full block highlight with dark ink. */
  .tagline mark { background: var(--sunflower); color: var(--on-sunflower); padding-inline: 4px; }
}

/* ------------------------------------------------------------------ Toolbar */
.toolbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-block: 2px solid var(--ink);
}
.toolbar-row { display: flex; align-items: stretch; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.shelf-tabs { display: flex; align-items: stretch; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 15px/20px var(--display); color: var(--ink-muted);
  background: none; border: 0; border-bottom: 4px solid transparent; border-top: 4px solid transparent;
  padding: 12px 14px; cursor: pointer;
}
.tab:first-child { padding-left: 0; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--tomato); }
.count {
  display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px;
  font: 800 13px/1 var(--display); font-variant-numeric: tabular-nums;
  border: 2px solid currentColor; color: inherit;
}
.tab[aria-pressed="true"] .count { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.tools { display: flex; align-items: center; gap: 12px; padding-block: 9px; }
.topic-select { position: relative; display: inline-flex; align-items: center; }
.topic-select select {
  appearance: none; -webkit-appearance: none;
  min-height: 42px; padding: 8px 38px 8px 14px; max-width: 230px;
  font: 600 15px/20px var(--body); color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); border-radius: 0; cursor: pointer;
}
.topic-select select:hover { background: var(--butter); }
.topic-select.is-active select { background: var(--sunflower); color: var(--on-sunflower); }
.select-caret { position: absolute; right: 12px; width: 14px; height: 14px; pointer-events: none; }

.btn-tune { --tune-bg: var(--surface); background: var(--tune-bg); }
.btn-tune .knob { fill: var(--tune-bg); stroke: currentColor; }
.btn-tune[aria-expanded="true"] { --tune-bg: var(--ink); color: var(--paper); transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }

/* ------------------------------------------------------------------ Taste panel ("Steer the Daily Curator") */
.taste-panel { border-bottom: 2px solid var(--ink); background: var(--paper); }
.ballot {
  margin-block: 22px 26px;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--shadow);
}
.ballot-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap;
  padding: 16px 20px 16px; border-bottom: 2px solid var(--ink);
  background: var(--butter);
}
.ballot-head h2 { margin: 0 0 4px; font: 800 24px/28px var(--display); letter-spacing: -0.015em; }
.ballot-lede { margin: 0; max-width: 62ch; font-size: 15px; line-height: 23px; color: var(--ink); }
.ballot-legend { display: flex; align-items: center; gap: 16px; font: 700 13px/16px var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.legend-key { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); background: var(--surface); }
.key svg { width: 12px; height: 12px; }
.key-more { background: var(--cobalt); color: var(--on-cobalt); }
.key-less { background: var(--tomato); color: var(--on-tomato); }

.ballot-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ballot-row {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transition: background-color 140ms ease-out;
}
.ballot-row:nth-child(4n) { border-right: 0; }
.ballot-row.is-last-row { border-bottom: 0; }
.swatch { width: 14px; height: 14px; border: 2px solid var(--ink); }
.ballot-name { min-width: 0; }
.ballot-label { display: block; font: 700 15px/19px var(--display); }
.ballot-meta { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.ballot-toggle { display: inline-flex; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); }
.ballot-btn {
  display: grid; place-items: center; width: 34px; height: 32px;
  background: var(--surface); color: var(--ink); border: 0; cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}
.ballot-btn + .ballot-btn { border-left: 2px solid var(--ink); }
.ballot-btn svg { width: 14px; height: 14px; }
.ballot-btn:hover { background: var(--butter); }
.ballot-btn.less[aria-pressed="true"] { background: var(--tomato); color: var(--on-tomato); }
.ballot-btn.more[aria-pressed="true"] { background: var(--cobalt); color: var(--on-cobalt); }
.ballot-row.is-more { background: var(--sky); }
.ballot-row.is-less { background: var(--blush); }
.ballot-row.is-less .ballot-label { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--tomato); }

/* ------------------------------------------------------------------ Layout */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start;
  padding-top: 18px; padding-bottom: 72px;
}

/* Taste pulse: the one-line summary when the panel is closed */
.pulse {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  min-height: 40px; padding-bottom: 14px; margin-bottom: 4px;
  font-size: 14px; line-height: 20px; color: var(--ink-muted);
  border-bottom: 2px solid var(--ink);
}
.pulse-label { font: 700 12px/16px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-right: 2px; }
.pulse-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px;
  font: 700 12px/16px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  border: 2px solid var(--ink);
}
.pulse-chip svg { width: 11px; height: 11px; }
.pulse-chip.up { background: var(--sky); }
.pulse-chip.down { background: var(--blush); }
.pulse-chip.filter { background: var(--sunflower); color: var(--on-sunflower); cursor: pointer; }
.pulse-chip.filter:hover { box-shadow: var(--shadow-sm); }
.pulse-link {
  font: 700 14px/20px var(--display); color: var(--cobalt); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.pulse-sep { width: 2px; height: 16px; background: var(--line); }

.status { color: var(--ink-muted); font-size: 16px; margin: 18px 0; }

/* ------------------------------------------------------------------ Feed */
.feed { list-style: none; margin: 0; padding: 0; }
.item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }

.item.is-lead {
  margin: 20px 0 8px; padding: 26px 26px 24px 22px;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--shadow);
}
.item.is-lead .title { font-size: clamp(26px, 2.5vw, 32px); line-height: 1.12; }
.item.is-lead .pitch { font-size: 18px; line-height: 29px; color: var(--ink); }
.item.is-read .title-link { color: var(--ink-muted); }

/* Ballot box: rank stamp + up / net / down */
.ballot-box {
  display: flex; flex-direction: column; align-items: stretch; align-self: start;
  border: 2px solid var(--ink); background: var(--surface); box-shadow: var(--shadow-sm);
}
.rank {
  display: block; padding: 3px 0 2px; text-align: center;
  font: 800 13px/16px var(--display); font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  background: var(--ink); color: var(--paper);
}
.is-lead .rank { background: var(--tomato); color: var(--on-tomato); border-bottom: 2px solid var(--ink); }
.vote {
  display: grid; place-items: center; height: 32px; width: 100%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}
.vote-glyph { width: 16px; height: 16px; }
.vote:hover { background: var(--butter); }
.vote:active .vote-glyph { transform: translateY(1px); }
.net {
  display: block; text-align: center; padding: 2px 0;
  font: 800 24px/30px var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  border-block: 2px solid var(--ink);
}
.vote-up[aria-pressed="true"] { background: var(--cobalt); color: var(--on-cobalt); }
.vote-down[aria-pressed="true"] { background: var(--tomato); color: var(--on-tomato); }
.ballot-box.is-up .net { background: var(--sunflower); color: var(--on-sunflower); }
.ballot-box.is-down .net { background: var(--blush); }

.body { min-width: 0; }
.tags { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; padding: 0; }
.tag {
  display: inline-block; padding: 3px 8px;
  font: 700 12px/16px var(--body); letter-spacing: 0.11em; text-transform: uppercase;
  background: var(--butter); color: var(--ink);
}
.tone-butter { background: var(--butter); }
.tone-sky { background: var(--sky); }
.tone-blush { background: var(--blush); }
.tone-sun { background: var(--sunflower); color: var(--on-sunflower); }

.title { margin: 0; font: 700 23px/1.2 var(--display); letter-spacing: -0.012em; }
.title-link { text-decoration: none; background-image: linear-gradient(var(--sunflower), var(--sunflower)); background-size: 0 38%; background-position: 0 88%; background-repeat: no-repeat; transition: background-size 220ms var(--ease-out); }
.title-link:hover { background-size: 100% 38%; }
.meta { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.meta-pub { font-weight: 700; color: var(--ink); }
.pitch { margin: 10px 0 0; max-width: 66ch; font-size: 16.5px; line-height: 26px; color: var(--ink-muted); }

.shelf-actions { display: flex; gap: 18px; margin-top: 14px; }
.mark {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0;
  font: 700 14px/18px var(--display); color: var(--ink-muted);
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.mark .icon { width: 14px; height: 14px; }
.mark:hover { color: var(--ink); border-bottom-color: var(--ink); }
.mark-read[aria-pressed="true"] { color: var(--overprint-green); border-bottom-color: var(--overprint-green); }
.mark-skip[aria-pressed="true"] { color: var(--tomato); border-bottom-color: var(--tomato); }

/* ------------------------------------------------------------------ House rules aside */
.house-rules {
  position: sticky; top: 92px;
  margin-top: 20px; padding: 20px 20px 18px;
  border: 2px solid var(--ink); background: var(--surface);
}
.house-rules h2 { margin: 0 0 12px; font: 800 20px/24px var(--display); letter-spacing: -0.01em; }
.rules-list { list-style: none; margin: 0; padding: 0; }
.rules-list li {
  display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: start;
  padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 22px;
}
.rule-dot { width: 12px; height: 12px; margin-top: 5px; border: 2px solid var(--ink); }
.subscribe { display: flex; gap: 10px; margin: 12px 0 0; }

/* ------------------------------------------------------------------ Dialog */
.dialog {
  border: 2px solid var(--ink); border-radius: 0; padding: 0;
  background: var(--surface); color: var(--ink); box-shadow: 6px 6px 0 var(--ink);
  width: min(540px, calc(100vw - 32px));
}
.dialog::backdrop { background: rgba(26, 26, 46, 0.5); }
.dialog form { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.dialog h2 { margin: 0; font: 800 26px/30px var(--display); letter-spacing: -0.015em; }
.hint { margin: 0 0 6px; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.dialog label { font: 700 14px/18px var(--display); margin-top: 8px; }
.dialog input, .dialog textarea {
  font: inherit; font-size: 16px; padding: 10px 12px; width: 100%;
  border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
}
.dialog input::placeholder { color: var(--ink-muted); }
.dialog textarea { resize: vertical; }
.form-error { color: var(--tomato); margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 14px; }

/* ------------------------------------------------------------------ Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  max-width: calc(100vw - 32px); padding: 10px 16px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--sunflower);
  font: 600 15px/21px var(--body);
}

/* ------------------------------------------------------------------ Footer */
.footer { background: var(--night); color: var(--on-night); padding-block: 28px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; font-size: 14px; }
.footer-brand { font: 800 18px/1 var(--display); margin-right: auto; }

/* ------------------------------------------------------------------ Verify page */
.verify-main { padding-block: 28px 64px; max-width: 760px; }
.verify-steps { padding-left: 22px; color: var(--ink); }
.verify-steps li { padding: 4px 0; }
.check-list { list-style: none; padding: 0; margin: 16px 0; border-top: 2px solid var(--ink); }
.check-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.check-pass { color: var(--overprint-green); font-weight: 700; }
.check-fail { color: var(--tomato); font-weight: 700; }
.check-wait { color: var(--ink-muted); }
.verify-sub { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1100px) {
  .ballot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ballot-row:nth-child(4n) { border-right: 2px solid var(--ink); }
  .ballot-row:nth-child(3n) { border-right: 0; }
}
@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .house-rules { position: static; }
  .ballot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ballot-row:nth-child(3n), .ballot-row:nth-child(4n) { border-right: 2px solid var(--ink); }
  .ballot-row:nth-child(2n) { border-right: 0; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 18px 20px; }
  .hero-art { display: none; }
  .dateline { display: none; }
  .toolbar-row { flex-direction: column; gap: 0; }
  .shelf-tabs { overflow-x: auto; }
  .tools { padding-block: 0 10px; flex-wrap: wrap; }
  .topic-select { flex: 1 1 100%; }
  .topic-select select { max-width: none; width: 100%; }
  .tools .btn { flex: 1 1 0; }
  .ballot-grid { grid-template-columns: minmax(0, 1fr); }
  .ballot-row, .ballot-row:nth-child(3n), .ballot-row:nth-child(4n) { border-right: 0; }
  .item { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .item.is-lead { padding: 18px 16px; }
  .title { font-size: 20px; }
  .net { font-size: 20px; line-height: 26px; }
  .brand { font-size: 24px; }
  .brand-mark { width: 30px; height: 30px; }
  .masthead-row { flex-wrap: nowrap; }
  .account .btn { min-height: 36px; padding: 5px 10px; font-size: 14px; }
  .tools .btn { padding-inline: 10px; font-size: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .taste-panel:not([hidden]) .ballot { animation: ballot-in 320ms var(--ease-out) both; }
  @keyframes ballot-in {
    from { opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 100% 0); }
    to { opacity: 1; transform: none; clip-path: inset(0 -8px -8px 0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .title-link, .vote, .ballot-btn, .ballot-row { transition: none; }
}
