:root {
  --navy: #12285f;
  --navy-2: #1d3d8f;
  --yellow: #f0ad00;
  --yellow-soft: #ffc933;
  --green: #1f9d48;
  --red: #e5484d;
  --bg: #f2f3f6;
  --card: #ffffff;
  --tile: #e6e7ea;
  --text: #15171c;
  --muted: #6b7280;
  --radius: 14px;
  --tabbar-h: 64px;
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
}
a { color: var(--navy-2); }
code { background: var(--tile); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.good { color: var(--green); }
.bad { color: var(--red); }
.warn { color: #b45309; font-weight: 600; }

/* --- top bars --- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--navy); color: #fff;
}
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand span { display: block; font-weight: 600; font-size: .72rem; color: var(--yellow-soft); letter-spacing: .03em; }
.avatar-link {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  text-decoration: none; font-size: 1.3rem;
}
.subbar {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--navy-2); color: #fff;
}
.subbar-title { flex: 1; text-align: center; font-weight: 800; font-size: 1.1rem; }
.subbar-title .small { font-weight: 500; opacity: .85; }
.nav-arrow {
  width: 36px; height: 36px; display: grid; place-items: center; color: #fff;
  text-decoration: none; font-size: 1.8rem; line-height: 1;
}

.page { max-width: 640px; margin: 0 auto; padding: 16px; }

/* --- bottom tab bar --- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy); border-top: 3px solid var(--yellow);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; text-decoration: none; font-size: .78rem; text-align: center; line-height: 1.15;
}
.tabbar a.active { background: var(--yellow); color: var(--navy); font-weight: 700; }
.tabbar .ico { font-size: 1.3rem; line-height: 1; }

/* --- generic --- */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h2 { margin: 0 0 10px; font-size: 1.05rem; }
.flash {
  background: #fff7e0; border-left: 4px solid var(--yellow); padding: 10px 12px;
  border-radius: 8px; margin-bottom: 12px;
}
.section { font-size: 1.05rem; margin: 22px 4px 10px; color: var(--navy); }
details.group > summary { cursor: pointer; list-style: none; }
details.group > summary::before { content: "▸ "; }
details.group[open] > summary::before { content: "▾ "; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700;
  background: var(--tile); color: var(--text); cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn.small { padding: 6px 14px; font-size: .9rem; }
.btn.wide { width: 100%; }

input, select {
  font: inherit; width: 100%; padding: 11px 12px; border: 1px solid #cfd3da; border-radius: 10px;
  background: #fff; color: var(--text);
}
label { display: block; margin-bottom: 12px; font-weight: 600; }
label input, label select { margin-top: 4px; font-weight: 400; }
form.inline { display: flex; gap: 8px; }
form.inline input, form.inline select { flex: 1; }

.auth h1 { margin-top: 0; color: var(--navy); }
.auth .btn { width: 100%; margin-top: 4px; }

/* --- home --- */
.hero {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border-radius: var(--radius); padding: 16px;
}
.hero .big { font-size: 2rem; font-weight: 800; color: var(--navy); }
.hero .big small { font-size: 1rem; }

.event-card {
  display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px; text-decoration: none; color: var(--text);
}
.event-date {
  min-width: 64px; text-align: center; font-weight: 800; font-size: .85rem; color: var(--navy);
  background: #fff3cc; border-radius: 10px; padding: 8px 4px;
}
.event-main { flex: 1; min-width: 0; }
.event-place { font-weight: 800; }
.event-side .pts { font-weight: 800; color: var(--green); white-space: nowrap; }
.progress {
  font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: var(--tile);
  white-space: nowrap;
}
.progress.done { background: #dcf5e4; color: var(--green); }

/* --- event page --- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--tile); border-radius: 12px; padding: 4px; }
.tabs a { text-align: center; padding: 10px; border-radius: 9px; text-decoration: none; color: var(--muted); }
.tabs a.active { background: #fff; color: var(--text); font-weight: 700; }
.event-total { text-align: center; margin: 14px 0 0; }

.qcard {
  position: relative; background: var(--card); border-radius: var(--radius);
  padding: 26px 16px 18px; margin: 30px 0 10px; scroll-margin-top: 90px;
}
.tag {
  position: absolute; top: -15px; left: 16px; background: var(--yellow); color: var(--text);
  font-weight: 700; font-style: italic; padding: 5px 16px; border-radius: 999px; font-size: .95rem;
}
.admin-q .tag { position: static; display: inline-block; }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.deadline { color: var(--muted); font-style: italic; font-size: .92rem; }
.qpts { font-size: 1.5rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.qpts small { font-size: .8rem; }
.qpts.good { color: var(--green); }
.qpts.bad { color: var(--red); }
.qline { height: 2px; background: #b9c3d9; margin: 8px 0 10px; border-radius: 2px; }
.qline.good { background: var(--green); }
.qline.bad { background: var(--red); }

.double-row { display: flex; justify-content: flex-end; min-height: 8px; }
.double {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 7px 14px; font: inherit; font-weight: 700; cursor: pointer;
  background: #e8ebf3; color: var(--navy);
}
.double.on { background: var(--navy); color: #fff; }
.double:disabled { color: var(--muted); font-style: italic; cursor: not-allowed; }
.dicon {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid currentColor; font-size: .8rem;
}
.qtext { font-size: 1.3rem; line-height: 1.3; text-align: center; margin: 14px 4px 6px; }
.hint { text-align: center; color: #444; margin: 0 6px 12px; }
.neutralized { color: var(--muted); font-style: italic; margin: 6px 0; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; margin: 18px 4px 22px; }
.opt {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 96px; padding: 12px 8px 24px; margin: 0; border-radius: 12px; background: var(--tile);
  text-align: center; font-weight: 600; cursor: pointer; border: 2px solid transparent;
  transition: transform .08s ease;
}
.opt:active { transform: scale(.97); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .oflag { font-size: 1.7rem; line-height: 1.1; }
.opt .olabel { font-size: 1.02rem; }
.opt .onation { font-size: .75rem; color: var(--muted); font-weight: 700; }
.opt .badge {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); border: 3px solid #fff; font-weight: 800; font-size: .9rem;
}
.opt.picked { background: var(--navy); color: #fff; box-shadow: 0 6px 14px rgba(18, 40, 95, .3); }
.opt.picked .onation { color: #c9d3ee; }
.opt.correct { background: var(--green); color: #fff; box-shadow: 0 6px 14px rgba(31, 157, 72, .3); }
.opt.wrong { background: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(229, 72, 77, .3); }
.opt.wrong .badge { background: var(--red); color: #fff; }
.opt.answer { border-color: var(--green); }
.opt.answer .badge { background: var(--green); color: #fff; }
.is-closed .opt { cursor: default; }
.is-closed .opt:active { transform: none; }

.slider-box { background: #fafbfc; border: 1px solid #edf0f4; border-radius: 12px; padding: 18px 16px 8px; margin: 12px 0; text-align: center; }
.bubble {
  display: inline-block; background: var(--navy-2); color: #fff; padding: 6px 12px; border-radius: 6px;
  font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; font-variant-numeric: tabular-nums;
}
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; padding: 0; border: 0;
  background: #d9dde4; border-radius: 4px; margin: 14px 0;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
input[type=range]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%; background: var(--yellow);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
input[type=range]:disabled::-webkit-slider-thumb { background: #c9ccd2; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.stepper { display: flex; justify-content: center; gap: 10px; margin: 12px 0 4px; }
.stepper .js-step { width: 44px; font-size: 1.2rem; }
.penalty { font-style: italic; font-size: .9rem; color: #333; }
.response { text-align: center; font-size: 1.1rem; line-height: 1.8; }
.saved { color: var(--green); font-weight: 700; font-size: .95rem; }
.saved.bad { color: var(--red); }

/* --- rankings --- */
.filters { display: grid; gap: 8px; margin-bottom: 12px; }
.ranking { list-style: none; padding: 0; margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.ranking li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eef0f3; }
.ranking li:last-child { border-bottom: 0; }
.ranking .rk { width: 30px; font-weight: 800; color: var(--muted); }
.ranking .who { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking .pts { font-weight: 800; color: var(--navy); }
.ranking li.me { background: #fff7e0; }
.ranking li.p1 .rk { color: #c99700; }
.ranking li.p2 .rk { color: #8a95a5; }
.ranking li.p3 .rk { color: #b06a2c; }

/* --- more / leagues / admin --- */
.menu { display: grid; gap: 8px; margin-bottom: 14px; }
.menu a { background: var(--card); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); font-weight: 700; }
.rules ul { padding-left: 18px; line-height: 1.5; }
.league { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.league-actions { display: flex; gap: 8px; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
label.check input { width: auto; margin: 0; }
.admin-q h3 { margin: 10px 0; }
.admin-q input[name=note] { margin-bottom: 12px; }

@media (min-width: 560px) {
  .options:not(.two) { grid-template-columns: repeat(3, 1fr); }
}
.event-card.pending { opacity: .6; }
.tag.trivia { background: #c7b8f5; }

/* --- standings --- */
.gender-tabs { margin-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card); color: var(--text);
  text-decoration: none; font-weight: 600; font-size: .9rem; border: 1px solid #dde1e7;
}
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.standings .pts { white-space: nowrap; text-align: right; }
.standings .pts small { display: block; font-weight: 600; font-size: .75rem; }
.more-rows summary { padding: 10px; cursor: pointer; color: var(--navy-2); }
.more-rows .ranking { margin-top: 6px; }

/* --- admin --- */
.admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-actions form { margin: 0; }
.admin-actions .btn { width: 100%; }
.ev-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #eef0f3; }
.ev-row:last-child { border-bottom: 0; }
.ev-row .event-date { min-width: 58px; }
.ev-row .grow { flex: 1; min-width: 0; }
.ev-row .row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ev-row .row-actions form { margin: 0; }
.status { display: inline-block; font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.status.none { background: var(--tile); color: var(--muted); }
.status.draft { background: #fff3cc; color: #8a6200; }
.status.released { background: #dcf5e4; color: var(--green); }
.joblog {
  background: #10162a; color: #d7e0f5; padding: 12px; border-radius: 10px; font: .82rem/1.45 ui-monospace, monospace;
  white-space: pre-wrap; word-break: break-word; max-height: 60vh; overflow: auto;
}
.briefing { white-space: pre-wrap; font: .85rem/1.5 ui-monospace, monospace; background: #fafbfc; padding: 12px; border-radius: 10px; }
.mini-opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mini-opts span { background: var(--tile); border-radius: 8px; padding: 4px 8px; font-size: .88rem; }
.mini-opts b { color: var(--navy); margin-left: 4px; }
.mini-opts .right { background: #dcf5e4; }
.kv { font-size: .85rem; color: var(--muted); margin: 4px 0; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.cmp td, table.cmp th { padding: 6px 4px; border-bottom: 1px solid #eef0f3; text-align: left; }
table.cmp td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ok { color: var(--green); font-weight: 700; }
.admin-actions.stack { grid-template-columns: 1fr; }
.admin-actions form.inline select { flex: 1; }
.admin-actions form.inline .btn { width: auto; flex: none; }
.decision { margin: 8px 0; }
.decision .check { margin-bottom: 6px; }
.decision input.reason { width: auto; flex: 1; padding: 6px 8px; }

/* --- draft editor --- */
.opt-edit { width: 100%; border-collapse: collapse; margin: 8px 0; }
.opt-edit th { text-align: left; font-size: .8rem; color: var(--muted); }
.opt-edit td { padding: 3px 2px; vertical-align: middle; }
.opt-edit td:first-child input { padding: 7px 8px; }
.opt-edit input[type=checkbox] { width: auto; }
.pts-in { width: 80px; padding: 7px 8px; }
.add-answer { border: 1px dashed #cfd3da; border-radius: 10px; padding: 8px; display: grid; gap: 6px; margin: 8px 0; }
.add-answer[hidden], .js-new[hidden] { display: none; }
.inline-fields { display: flex; gap: 10px; }
.qcard.reserve { opacity: .9; border: 2px dashed #cfd3da; }

/* --- simulation --- */
.simbar { background: #6d28d9; color: #fff; text-align: center; font-size: .85rem; font-weight: 700; padding: 6px 12px; }
.simbar a { color: #fde68a; }
.sim-card { border: 2px solid #6d28d9; }

/* --- who picked what (closed questions) --- */
.pickcount {
  position: absolute; right: 6px; bottom: 4px; font-size: .72rem; font-weight: 700; color: inherit; opacity: .75;
  cursor: help; outline: none;
}
.pickcount.none { opacity: .4; }
.pickcount:hover::after, .pickcount:focus::after {
  content: attr(data-names); position: absolute; right: 0; bottom: 130%; z-index: 5; width: max-content; max-width: 220px;
  white-space: normal; text-align: left; background: #10162a; color: #fff; font-weight: 500; font-size: .8rem;
  padding: 6px 9px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.guesses { text-align: left; margin-top: 6px; }
.guesses ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: .9rem; }
.guesses li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #eef0f3; }

/* --- race results --- */
.results h2 { margin-bottom: 6px; }
table.res { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.res th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 700; padding: 4px; }
table.res td { padding: 6px 4px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
table.res td.pos { width: 30px; font-weight: 800; color: var(--muted); }
table.res td.who { font-weight: 600; }
table.res .runs { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); }
table.res .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.res td.gap { color: var(--muted); }
table.res tr.mine td { background: #fff7e0; }
.res-sub { font-size: .9rem; margin: 16px 0 4px; color: var(--navy); }
.event-total .btn { margin-top: 8px; }
.event-side .pts.zero { color: var(--muted); }

/* --- overview states --- */
.event-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.progress.nodouble { background: #ffe7c2; color: #b45309; }
.progress.waiting { background: #eef0f3; color: var(--muted); font-weight: 600; font-size: .78rem; }
.sofar { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.toast {
  background: #dcf5e4; color: #14532d; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
  overflow: hidden; max-height: 160px;
  animation: toast-out 3.6s ease-in forwards;   /* visible for 3 s, then slides away */
}
@keyframes toast-out {
  0%, 83% { transform: translateX(0); opacity: 1; max-height: 160px; }
  95% { transform: translateX(110%); opacity: 0; max-height: 160px; padding: 12px 14px; margin-bottom: 12px; }
  100% { transform: translateX(110%); opacity: 0; max-height: 0; padding: 0 14px; margin-bottom: 0; }
}
.done-bar { margin: 26px 0 8px; }
.tabs.three { grid-template-columns: 1fr 1fr 1fr; }

/* --- main page: countdown, season, news, bugs --- */
.countdown { display: block; text-decoration: none; color: var(--text); text-align: center; margin-top: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.countdown .muted { color: #c9d3ee; }
.cd-race { font-weight: 800; margin: 4px 0; }
.cd-time { font-size: 2rem; font-weight: 800; color: var(--yellow-soft); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.season-card { margin-top: 14px; border: 2px solid var(--yellow); }
.season-card .event-date { font-size: 1.6rem; min-width: 54px; }
.news-teaser { display: block; text-decoration: none; color: var(--text); padding: 12px 14px; margin-bottom: 8px; }
.section a.small { font-weight: 600; margin-left: 6px; }
.news-post h2 { margin: 4px 0 8px; font-size: 1.15rem; }
.news-post p { line-height: 1.5; white-space: pre-line; }
textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid #cfd3da; border-radius: 10px; margin-top: 4px; }
.bug-report { margin-top: 24px; }
.bug-report summary { cursor: pointer; font-weight: 700; }
.bug.resolved { opacity: .55; }

/* --- rankings: last 3 events --- */
.last3-toggle { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
.last3-toggle .check { margin: 0; font-size: .9rem; }
.ranking .last3 { display: none; gap: 4px; }
.ranking.with-last .last3 { display: flex; }
.ranking .last3 span { width: 42px; text-align: right; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ranking-head { display: none !important; font-size: .72rem; color: var(--muted); padding-top: 8px !important; padding-bottom: 4px !important; }
.ranking.with-last .ranking-head { display: flex !important; }
.ranking-head .last3 span { font-size: .7rem !important; white-space: nowrap; overflow: hidden; }

/* --- More page: dropdowns --- */
details.drop { background: var(--card); border-radius: var(--radius); margin-bottom: 10px; padding: 0 16px; }
details.drop > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 0; cursor: pointer;
  font-weight: 700; list-style: none;
}
details.drop > summary::-webkit-details-marker { display: none; }
details.drop > summary::after { content: "▾"; color: var(--muted); margin-left: 4px; transition: transform .15s; }
details.drop[open] > summary::after { transform: rotate(180deg); }
details.drop[open] { padding-bottom: 14px; }
details.drop form.inline { margin-bottom: 8px; }
.profile-name { font-size: 1.45rem; font-weight: 800; color: var(--navy); }
details.drop > summary .small { margin-left: auto; font-weight: 600; }
.upgrade { margin-top: 6px; }
.drop-link { display: flex; justify-content: space-between; background: var(--card); border-radius: var(--radius);
  padding: 15px 16px; margin-bottom: 10px; font-weight: 700; text-decoration: none; color: var(--navy); }
.drop .league { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid #eef0f3; margin-bottom: 8px; }
.drop .news-post { border-top: 1px solid #eef0f3; padding-top: 10px; margin-top: 10px; }
.drop .news-post h3 { margin: 4px 0; font-size: 1.05rem; }
.write-news { margin-bottom: 10px; }
.write-news summary { cursor: pointer; color: var(--navy-2); font-weight: 600; }
.logout { margin-top: 18px; }

/* --- language switch (login / sign-up) --- */
.lang-switch { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 10px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .85rem;
  color: var(--muted); background: var(--card); }
.lang-switch a.active { background: var(--navy); color: #fff; }

/* --- menus: Save / Close, confirmation at the changed item --- */
.menu-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.menu-actions form { margin: 0; }
.btn.danger { color: var(--red); }
.flash.ok { background: #dcf5e4; border-left-color: var(--green); color: #14532d; font-weight: 600; }
.just-saved { animation: just-saved 2.5s ease-out; }
@keyframes just-saved {
  0%, 40% { box-shadow: 0 0 0 3px var(--green); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* --- notifications / app --- */
.push-banner { border-left: 4px solid var(--yellow); }
.push-banner p { margin: 0; }
.device-push { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--tile); }

[hidden] { display: none !important; }  /* also for .btn etc. that set their own display */

/* --- admin: password requests on top of the users page --- */
.request-box { border-left: 4px solid var(--yellow); background: #fffaf0; }
.request-box h2 { margin-top: 0; }
.request-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--tile); }
.request-row { flex-wrap: wrap; }
.request-row .grow { flex: 1 1 100%; }
.request-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.request-actions .btn { padding-left: 12px; padding-right: 12px; }
.request-row form { margin: 0; }
.request-box .flash.ok { font-size: 1.05rem; overflow-wrap: anywhere; }  /* only the password may break */
[id] { scroll-margin-top: 96px; }  /* jumping to #anchors: not hidden under the sticky top bar */
