/* The app's look (ui/theme): card-table felt green, playing-card red, warm paper neutrals. */

:root {
  --primary: #1f5c46;
  --on-primary: #fff;
  --primary-container: #b4efd3;
  --on-primary-container: #002116;
  --selection: #cfe9dc;
  --on-selection: #0b2a1e;
  --gold-container: #ffdf9e;
  --on-gold-container: #261a00;
  --error: #b3261e;
  --bg: #f8f5ee;
  --text: #1c1b17;
  --muted: #4a473d;
  --surface: #fff;
  --surface-low: #f3efe6;
  --surface-variant: #e6e1d3;
  --outline: #7b776b;
  --outline-soft: #d6cfbf;
  --re: #1f5c46;
  --on-re: #fff;
  --kontra: #b3261e;
  --on-kontra: #fff;
  --gain: #1e7d4f;
  --loss: #c0392b;
  --card-red: #c62828;
  --radius: 14px;
  --nav-height: 0px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8cd5b5;
    --on-primary: #003827;
    --primary-container: #075039;
    --on-primary-container: #b4efd3;
    --selection: #2d4b3e;
    --on-selection: #cfe9dc;
    --gold-container: #5c4300;
    --on-gold-container: #ffdf9e;
    --error: #f2b8b5;
    --bg: #131411;
    --text: #e5e2da;
    --muted: #cac6b9;
    --surface: #1b1c18;
    --surface-low: #1f201c;
    --surface-variant: #47463e;
    --outline: #948f83;
    --outline-soft: #47463e;
    --re: #8cd5b5;
    --on-re: #003827;
    --kontra: #ffb4ab;
    --on-kontra: #690003;
    --gain: #7fd9a6;
    --loss: #ff8a80;
    --card-red: #ff8a80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--primary); }
h2 { font-size: 1.35rem; margin: .5rem 0; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--primary); }
h4 { font-size: .95rem; margin: .75rem 0 .25rem; color: var(--primary); }
h5 { font-size: .8rem; margin: .75rem 0 .25rem; color: var(--primary); text-transform: uppercase; letter-spacing: .03em; }
[hidden] { display: none !important; }

/* --- frame ----------------------------------------------------------------------------------- */

header.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1rem;
  padding: .5rem max(1rem, calc((100vw - 900px) / 2));
  background: var(--primary); color: var(--on-primary);
}
.brand { color: inherit; text-decoration: none; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand-suits { letter-spacing: -.1em; }
nav.tabs { display: flex; gap: .25rem; flex: 1; }
.tab {
  display: flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 999px;
  color: inherit; text-decoration: none; opacity: .85;
}
.tab.active { background: color-mix(in srgb, var(--on-primary) 18%, transparent); opacity: 1; font-weight: 600; }
.tab-icon { font-size: .95rem; }
header .settings { color: inherit; text-decoration: none; font-size: 1.3rem; }
main { max-width: 900px; margin: 0 auto; padding: 1rem 1rem calc(6rem + var(--nav-height)); }

@media (max-width: 640px) {
  :root { --nav-height: 64px; }
  header.top { padding: .5rem 1rem; }
  nav.tabs {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; height: var(--nav-height);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface-low); border-top: 1px solid var(--outline-soft); gap: 0;
  }
  .tab { flex: 1; flex-direction: column; gap: 0; border-radius: 0; color: var(--muted); font-size: .75rem; justify-content: center; }
  .tab.active { background: none; color: var(--primary); }
  .tab-icon { font-size: 1.25rem; }
  header .settings { margin-left: auto; }
  main { padding: .75rem .75rem calc(6rem + var(--nav-height)); }
}

/* --- building blocks -------------------------------------------------------------------------- */

.card {
  background: var(--surface); border-radius: var(--radius); padding: 1rem;
  box-shadow: 0 1px 2px #0002; margin-bottom: .75rem;
}
.stack-lg > * + * { margin-top: .75rem; }
.stack { display: flex; flex-direction: column; gap: .6rem; }
.row { display: flex; align-items: center; gap: .5rem; }
.row.wrap { flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.row.indent { padding-left: 4.25rem; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.small { font-size: .82rem; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .85rem; margin: .4rem 0; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.error-text { color: var(--error); }
.primary-text { color: var(--primary); }
.error-banner {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: color-mix(in srgb, var(--error) 14%, var(--surface)); color: var(--error);
  border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0;
}
.progress { height: 3px; margin: 1rem 0; background: linear-gradient(90deg, transparent, var(--primary), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: progress 1.1s linear infinite; }
@keyframes progress { from { background-position: -50% 0; } to { background-position: 150% 0; } }

button, .button {
  font: inherit; cursor: pointer; border: 0; border-radius: 999px; padding: .5rem 1rem;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
}
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--primary); color: var(--on-primary); font-weight: 600; }
button.wide { width: 100%; }
button.outlined, .button.outlined { background: transparent; color: var(--primary); border: 1px solid var(--outline); }
button.danger, .button.danger, button.text.danger { color: var(--error); }
button.text { background: none; color: var(--primary); padding: .4rem .6rem; }
button.text.strong { font-weight: 700; }
.button.text { background: none; color: var(--primary); padding: .4rem .6rem; }
.button.text.strong { font-weight: 700; }
button.link, button.fact.link { background: none; padding: 0; border-radius: 0; color: inherit; text-align: left; }
.link { color: var(--primary); cursor: pointer; }
button.icon, .icon {
  background: none; color: inherit; font-size: 1.4rem; line-height: 1; padding: .3rem .6rem;
  text-decoration: none; border-radius: 999px;
}
.icon.disabled { opacity: .3; }

input, textarea, select {
  font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--outline);
  border-radius: 10px; padding: .55rem .7rem; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; color: var(--muted); }
label > input, label > textarea { color: var(--text); font-size: 1rem; }
label.check, label.radio { flex-direction: row; align-items: center; gap: .5rem; color: var(--text); font-size: 1rem; margin-top: .4rem; }
label.check input, label.radio input { width: auto; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .2rem; }
.chip {
  background: transparent; color: var(--text); border: 1px solid var(--outline);
  border-radius: 8px; padding: .35rem .7rem; font-size: .9rem; white-space: nowrap;
}
.chip.on { background: var(--selection); color: var(--on-selection); border-color: transparent; font-weight: 600; }
.chip.gold.on { background: var(--gold-container); color: var(--on-gold-container); }
.chip.re.on { background: color-mix(in srgb, var(--re) 20%, var(--surface)); color: var(--text); }
.chip.party-re.on { background: var(--re); color: var(--on-re); }
.chip.party-kontra.on { background: var(--kontra); color: var(--on-kontra); }
.chip.assist { background: var(--surface-low); border-color: var(--outline-soft); }
.chip.input { background: var(--surface-low); border-color: var(--outline-soft); }
.chip.static { cursor: default; background: var(--surface-low); border-color: var(--outline-soft); }

.party {
  display: inline-block; padding: .05rem .45rem; border-radius: 6px; font-size: .75rem; font-weight: 700;
  min-width: 3.4rem; text-align: center;
}
.party.re { background: var(--re); color: var(--on-re); }
.party.kontra { background: var(--kontra); color: var(--on-kontra); }
.party-slot { display: inline-grid; vertical-align: middle; }
.party-slot > * { grid-area: 1 / 1; }
.party.ghost { visibility: hidden; }
.party.large { font-size: .95rem; padding: .15rem .6rem; min-width: 0; }
.re-text { color: var(--re); }
.kontra-text { color: var(--kontra); }
.score.gain { color: var(--gain); }
.score.loss { color: var(--loss); }
.score.zero { color: var(--muted); }
.score.bold { font-weight: 700; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--outline); }
.dot.re { background: var(--re); }
.dot.kontra { background: var(--kontra); }
.dot.gain { background: var(--gain); }
.dot.loss { background: var(--loss); }
.form { display: flex; gap: 3px; margin-top: 2px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }

.fact { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; width: 100%; font-size: .95rem; }
.fact b { font-weight: 500; text-align: right; }
.fact.link b { color: var(--primary); }
.stats { display: flex; justify-content: space-around; text-align: center; margin: .5rem 0; }
.stat { display: flex; flex-direction: column; flex: 1; }
.stat b { font-size: 1.3rem; }
.stat span { font-size: .78rem; color: var(--muted); }

.fab {
  position: fixed; right: max(1rem, calc((100vw - 900px) / 2 + 1rem)); bottom: calc(1rem + var(--nav-height));
  z-index: 5; background: var(--primary-container); color: var(--on-primary-container);
  border-radius: 16px; padding: .9rem 1.2rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 3px 8px #0004;
}

.page-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.page-header h2 { flex: 1; margin: 0; font-size: 1.2rem; }
.page-header .actions { display: flex; gap: .4rem; align-items: center; }

.subtabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--outline-soft); margin: .25rem 0 .75rem; overflow-x: auto; }
.subtabs > * {
  background: none; border-radius: 0; padding: .6rem .9rem; color: var(--muted); text-decoration: none;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.subtabs > .on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.dialog {
  border: 0; border-radius: 20px; padding: 0; width: min(92vw, 460px); max-height: 85vh;
  background: var(--surface); color: var(--text); box-shadow: 0 10px 30px #0006;
}
.dialog::backdrop { background: #0007; }
.dialog-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .25rem; margin-top: .5rem; }

/* --- login ----------------------------------------------------------------------------------- */

main.login { max-width: 420px; padding-top: 2.5rem; }
.login-logo { text-align: center; font-size: 3rem; color: var(--primary); }
main.login h1 { text-align: center; margin: 0 0 1rem; }

/* --- today ----------------------------------------------------------------------------------- */

.day-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.day-title { position: relative; display: flex; flex-direction: column; align-items: center; }
.day-pick { background: none; color: inherit; padding: 0; border-radius: 0; }
/* The date input only supplies the browser's picker; the title opens it. */
.date-input { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.totals { background: var(--primary-container); color: var(--on-primary-container); }
.totals h3 { color: inherit; font-size: .9rem; }
.totals-row { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: .2rem; }
.total { display: flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; min-width: 3.5rem; }
/* Who won and who lost today, like the app — darker shades so they read on the green card. */
.totals { --gain: #0e5a35; --loss: #a8231b; }
@media (prefers-color-scheme: dark) { .totals { --gain: #7fd9a6; --loss: #ff8a80; } }
.table-title { margin: 1rem 0 .4rem; }
.game-card {
  display: block; background: var(--surface-low); border-radius: 12px; padding: .6rem .9rem;
  margin-bottom: .5rem; color: inherit; text-decoration: none;
}
.game-card:hover { background: var(--surface-variant); }
.game-card.deleted { opacity: .6; }
.game-card.deleted .game-type { text-decoration: line-through; }
.game-card-head { display: flex; align-items: center; gap: .6rem; }
.game-type { flex: 1; }
.game-card-head .label { font-size: .85rem; white-space: nowrap; }
.label.error { color: var(--error); }
.game-card-players { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .35rem 0 .2rem; }
.seat { display: inline-flex; align-items: center; gap: .3rem; }

/* --- game ------------------------------------------------------------------------------------ */

h3.big { font-size: 1.3rem; color: var(--text); margin: 0; }
.player-line { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; color: inherit; text-decoration: none; }
.player-line:hover { background: var(--surface-low); }
.breakdown-line { display: flex; align-items: center; gap: .6rem; padding: .15rem 0; }
.history-line { background: var(--surface-low); border-radius: 8px; padding: .4rem .6rem; margin-bottom: .4rem; }
.changes { margin: .25rem 0 0; padding-left: 1.2rem; font-size: .88rem; }

/* --- editor ---------------------------------------------------------------------------------- */

.editor main, .editor { padding-bottom: 1rem; }
.step h4 { margin-top: 0; }
.segmented { display: flex; border: 1px solid var(--outline); border-radius: 999px; overflow: hidden; }
.segmented button { flex: 1; border-radius: 0; background: none; color: var(--text); }
.segmented button + button { border-left: 1px solid var(--outline); }
.segmented button.on { background: var(--selection); color: var(--on-selection); font-weight: 600; }
.seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.seat-card { border: 1px solid var(--outline); border-radius: 12px; display: flex; flex-direction: column; align-items: center; padding: .25rem; min-height: 4rem; justify-content: center; }
.seat-name { background: none; color: var(--text); font-weight: 600; padding: .3rem; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.seat-name.empty { color: var(--primary); font-weight: 400; }
.dealer { background: none; color: var(--muted); font-size: .75rem; padding: .1rem .3rem; }
.dealer.on { color: #7a5900; font-weight: 600; }
.seat-card.optional { opacity: .6; }
.seat-card.out .seat-name { color: var(--muted); font-weight: 400; }
.bench { background: none; color: var(--primary); font-size: .75rem; padding: .1rem .3rem; }
.bench.on { color: var(--error); }
.eyes-row { display: flex; align-items: flex-end; gap: .5rem; }
.eyes-row .op { font-size: 1.1rem; padding-bottom: .6rem; }
.field.eyes { flex: 1; }
.field.narrow { width: 6.5rem; }
.big-number { font-size: 1.4rem; font-weight: 700; }
.big-number.re { color: var(--re); }
.big-number.kontra { color: var(--kontra); }
.announcement .party-col { width: 4rem; flex: none; }
.announcement .row { align-items: center; }
.pick-list { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; }
/* A fixed height, so filtering doesn't shrink the dialog and move the search field. */
.pick-list.fixed { height: 50vh; }
.pick-row {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  background: none; color: var(--text); border-radius: 0; border-bottom: 1px solid var(--outline-soft);
  padding: .65rem .25rem; text-align: left;
}
.pick-row:hover { background: var(--surface-low); }
.pick-row.new { color: var(--primary); }
.date-chip { width: auto; padding: .3rem .5rem; border-radius: 8px; }
.result-bar {
  position: sticky; bottom: var(--nav-height); z-index: 4;
  background: var(--surface); box-shadow: 0 -2px 8px #0003; border-radius: 16px 16px 0 0;
  margin: 0 -1rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
}
.result-inner { display: flex; flex-direction: column; gap: .4rem; }
.result-inner p { margin: 0; }
.result-head { background: none; color: inherit; padding: 0; width: 100%; justify-content: space-between; border-radius: 0; }
.result-scores { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin-top: .3rem; }
.result-scores > div { display: flex; flex-direction: column; overflow: hidden; }
.result-scores .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scored.stale { opacity: .5; }
.breakdown { margin-top: .4rem; }

/* --- season ---------------------------------------------------------------------------------- */

.scope-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: .25rem; }
select.scope { font-size: 1.15rem; font-weight: 600; border: 0; background: none; padding: .25rem 0; width: auto; max-width: 100%; }
table.standings { width: 100%; border-collapse: collapse; }
.standings th, .standings td { padding: .4rem .3rem; text-align: right; border-bottom: 1px solid var(--outline-soft); font-size: .92rem; }
.standings th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.standings .left { text-align: left; }
.standings th:first-child, .standings td:first-child { width: 2.2rem; text-align: left; }
.standings a { color: inherit; text-decoration: none; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--surface-low); }
.share-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: .3rem 0 .6rem; }
.share-bar .re { background: var(--re); }
.share-bar .kontra { background: var(--kontra); }
.award { display: flex; align-items: center; gap: 1rem; }
.award-emoji { font-size: 2rem; }
.award-value { font-size: 1.3rem; }
.award a { font-weight: 600; text-decoration: none; }
.award a.award-title { color: var(--text); }
a.chip.award-chip { text-decoration: none; display: inline-block; }
.award-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; }
.award-emoji.big { font-size: 3rem; }
.award-row { display: flex; align-items: center; gap: .75rem; padding: .35rem 0; color: var(--text); text-decoration: none; }
.award-rank { width: 2rem; text-align: center; color: var(--muted); }
.award-name { display: block; color: var(--primary); }
.award-row.holder .award-name, .award-row.holder .award-row-value { font-weight: 700; }
.award-bar { display: block; height: 6px; border-radius: 3px; margin-top: 2px; background: var(--outline-soft); overflow: hidden; }
.award-bar > span { display: block; height: 100%; background: var(--outline); }
.award-row.holder .award-bar > span { background: var(--primary); }

/* --- charts ---------------------------------------------------------------------------------- */

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart.bars { height: 120px; }
.chart .grid { stroke: var(--outline); stroke-opacity: .3; stroke-width: 1; }
.chart .zero { stroke: var(--outline); stroke-width: 1.2; }
.chart .cursor { stroke: var(--outline); stroke-dasharray: 3 3; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart rect.gain { fill: var(--gain); }
.chart rect.loss { fill: var(--loss); }
.chart.radar { max-width: 460px; margin: 0 auto; }
.chart-wrap { position: relative; touch-action: pan-y; }
.chart-tip {
  position: absolute; top: 0; background: var(--surface); border: 1px solid var(--outline-soft);
  border-radius: 8px; padding: .35rem .5rem; font-size: .8rem; box-shadow: 0 2px 6px #0003; pointer-events: none;
}
.legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .4rem; font-size: .85rem; }
.legend-item { background: none; color: var(--text); padding: 0; border-radius: 0; }
.heatmap-scroll { overflow-x: auto; }
table.heatmap { border-collapse: separate; border-spacing: 2px; font-size: .75rem; }
.heatmap td { width: 2.4rem; height: 2.4rem; text-align: center; color: #000; border-radius: 4px; }
.heatmap td.none { background: var(--surface-variant); }
.heatmap th.rowhead { text-align: right; padding-right: .3rem; }
.heatmap th.col { height: 5rem; vertical-align: bottom; white-space: nowrap; }
.heatmap th.col > span { display: inline-block; transform: rotate(-60deg); transform-origin: left bottom; width: 1.5rem; }
.heat-name { font-size: .75rem; color: var(--text); max-width: 5.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- players --------------------------------------------------------------------------------- */

.list-plain { margin-top: .5rem; }
.player-row {
  display: flex; flex-direction: column; padding: .6rem .25rem; border-bottom: 1px solid var(--outline-soft);
  color: inherit; text-decoration: none;
}
.player-row:hover { background: var(--surface-low); }
.player-row.archived { opacity: .6; }
img.qr { align-self: center; background: #fff; padding: 8px; border-radius: 8px; image-rendering: pixelated; }
.code-text { font-family: ui-monospace, monospace; font-size: .75rem; }

/* --- rules ----------------------------------------------------------------------------------- */

input.search { flex: 1; }
.rulebook { line-height: 1.55; }
.rulebook .md-heading { color: var(--primary); }
.rulebook mark { background: var(--gold-container); color: var(--on-gold-container); }
.callout {
  display: flex; gap: .6rem; background: var(--gold-container); color: var(--on-gold-container);
  border-radius: 12px; padding: .8rem 1rem; margin: .6rem 0;
}
.table-scroll { overflow-x: auto; }
table.md-table { border-collapse: collapse; width: 100%; margin: .5rem 0; font-size: .92rem; }
.md-table th, .md-table td { border: 1px solid var(--outline-soft); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.md-table th { background: var(--surface-variant); }
code { background: var(--surface-variant); padding: 0 .25rem; border-radius: 4px; }
.markdown-editor { min-height: 60vh; font-family: ui-monospace, monospace; font-size: .9rem; margin-top: .5rem; }
.preview { background: var(--surface); padding: 1rem; border-radius: var(--radius); }
.cards { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0; }
.card-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 2.8rem; }
.card-chip b {
  background: #fffdf7; color: #1d1b16; border: 1px solid #d6cfbf; border-radius: 6px; padding: .1rem .4rem; font-size: 1.05rem;
}
.card-chip b.red { color: #c62828; }
table.cheat { width: 100%; border-collapse: collapse; }
.cheat td { padding: .4rem 0; border-bottom: 1px solid var(--outline-soft); }
.cheat tr:last-child td { border-bottom: 0; }
.cheat td.value { text-align: right; font-weight: 600; padding-left: .75rem; }
.poll-option {
  display: block; width: 100%; text-align: left; border-radius: 10px; margin-top: .5rem;
  background: color-mix(in srgb, var(--surface-variant) 50%, transparent); color: var(--text); padding: .5rem .7rem;
}
.poll-option.on { background: var(--primary-container); color: var(--on-primary-container); }
.poll-option:disabled { opacity: 1; }
.poll-bar { height: 6px; border-radius: 4px; background: color-mix(in srgb, var(--outline) 20%, transparent); margin-top: .3rem; overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: var(--primary); }
