:root {
  --navy: #0f2a44;
  --navy-2: #1d4670;
  --sea: #2a7ab8;
  --bg: #f3f5f8;
  --card: #ffffff;
  --ink: #1a2230;
  --muted: #667085;
  --line: #dde3ea;
  --yes: #1f8a4c;   --yes-bg: #e3f4ea;
  --maybe: #a86500; --maybe-bg: #fdf0d9;
  --no: #b42318;    --no-bg: #fde7e5;
  --none: #667085;  --none-bg: #eef1f5;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d141c; --card: #16202b; --ink: #e6ebf1; --muted: #93a1b3; --line: #273444;
    --navy: #0a1e31; --sea: #5aa7e0;
    --yes-bg: #143524; --maybe-bg: #3a2a0d; --no-bg: #3d1915; --none-bg: #1f2a36;
    --yes: #5fd08d; --maybe: #f0b44c; --no: #f08a7e; --none: #a3b0c0;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--sea); }
h1 { font-size: 1.5rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 40px; }

.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand span { font-weight: 400; opacity: .7; }
nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav a { color: #cfe0f1; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
nav a.on, nav a:hover { background: rgba(255,255,255,.12); color: #fff; }

.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; color: inherit; text-decoration: none; }
.card.narrow { max-width: 520px; }
a.card:hover { border-color: var(--sea); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.head-row h1 { margin-bottom: .4rem; }
.head-row.tight h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.good { color: var(--yes); font-weight: 600; }
.foot-links { margin-top: 24px; text-align: center; }

.btn { display: inline-block; background: var(--sea); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 6px 12px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--sea); border: 1px solid var(--line); }
.danger { color: var(--no); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
form.inline { display: inline; }
form + form { margin-top: 10px; }

label { display: block; margin-bottom: 12px; font-weight: 600; font-size: .95rem; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; font-weight: 400;
  color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--sea); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; padding: 8px 12px; }
legend { font-weight: 600; font-size: .95rem; padding: 0 4px; }

.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.flash-ok { background: var(--yes-bg); color: var(--yes); }
.flash-err { background: var(--no-bg); color: var(--no); }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill-yes { background: var(--yes-bg); color: var(--yes); }
.pill-maybe { background: var(--maybe-bg); color: var(--maybe); }
.pill-no { background: var(--no-bg); color: var(--no); }
.pill-none { background: var(--none-bg); color: var(--none); }

.event-date { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.event-title { font-size: 1.15rem; font-weight: 700; margin: 2px 0 8px; }
.event-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.event-lineup { margin-top: 10px; font-size: .9rem; font-weight: 600; }
.event-lineup.warn { color: var(--maybe); }
.event-lineup.good { color: var(--yes); }

.list .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list .row:last-child { border-bottom: 0; }
.list .row a { text-decoration: none; color: var(--ink); }
.row.inactive { opacity: .55; }

.skills { width: 100%; border-collapse: collapse; }
.skills th { font-size: .8rem; color: var(--muted); font-weight: 600; text-align: center; }
.skills td { padding: 6px 0; border-top: 1px solid var(--line); font-weight: 400; }
.skills td + td { text-align: center; }

.cover { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cover-item { display: flex; justify-content: space-between; padding: 8px 10px; background: var(--bg); border-radius: 8px; }
.cover-item.thin { background: var(--maybe-bg); color: var(--maybe); }

.linkbox { background: var(--bg); border-radius: 10px; padding: 12px; margin-top: 18px; }
.linkbox code { display: block; word-break: break-all; font-size: .85rem; margin: 6px 0; }

.avail-line { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.avail-line:first-of-type { border-top: 0; }
.avail-line .pill { min-width: 72px; text-align: center; }

.warnings { margin: 0 0 12px; padding: 10px 14px 10px 30px; background: var(--maybe-bg); color: var(--ink); border-radius: 10px; font-size: .92rem; }
.warnings li { margin: 3px 0; }

.pos-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 10px; margin-bottom: 8px; }
.pos-row select { margin-top: 0; }
.pos-row.empty span { color: var(--maybe); }
.pos-edit { display: grid; grid-template-columns: 1fr 80px; gap: 8px; margin-bottom: 8px; }
.pos-edit input { margin-top: 0 !important; }

.msg { white-space: pre-wrap; background: var(--bg); padding: 12px; border-radius: 10px; font: .9rem/1.5 ui-monospace, Menlo, Consolas, monospace; margin: 0; }

.grid-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.grid { border-collapse: collapse; font-size: .9rem; }
.grid th, .grid td { padding: 4px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid thead th { font-size: .8rem; font-weight: 600; }
.grid thead a { text-decoration: none; }
.grid .sticky { position: sticky; left: 0; background: var(--card); text-align: left; font-weight: 600; z-index: 1; }
.grid .num { color: var(--muted); font-variant-numeric: tabular-nums; }
.grid .num.short { color: var(--no); font-weight: 700; }
.cell { width: 34px; height: 34px; border: 2px solid transparent; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.cell-yes { background: var(--yes-bg); color: var(--yes); }
.cell-maybe { background: var(--maybe-bg); color: var(--maybe); }
.cell-no { background: var(--no-bg); color: var(--no); }
.cell-none { background: var(--none-bg); color: var(--none); }
.cell.on { border-color: var(--navy-2); }

.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 6px; }
.choice button { padding: 12px 0; font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
.choice .choice-yes.picked { background: var(--yes-bg); color: var(--yes); border-color: var(--yes); }
.choice .choice-maybe.picked { background: var(--maybe-bg); color: var(--maybe); border-color: var(--maybe); }
.choice .choice-no.picked { background: var(--no-bg); color: var(--no); border-color: var(--no); }
details summary { cursor: pointer; color: var(--sea); margin-top: 8px; }
ul.plain { list-style: none; padding: 0; margin: 6px 0 0; }

@media (max-width: 480px) {
  .two { grid-template-columns: 1fr; gap: 0; }
  .pos-row { grid-template-columns: 1fr; gap: 2px; }
  nav { margin-left: 0; width: 100%; }
}

.pill-sail { background: #e2f1fb; color: #1d5f8f; }
.pill-race { background: var(--none-bg); color: var(--none); }
@media (prefers-color-scheme: dark) { .pill-sail { background: #12324a; color: #8cc8f0; } }
.kind-pick { display: flex; gap: 8px; margin-bottom: 14px; }
.kind-pick label { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; }
.kind-pick label:has(input:checked) { border-color: var(--sea); background: var(--bg); }
.limit-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.limit-pick label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.extra-head { font-size: 1rem; margin: 18px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.tidebox { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: -4px 0 14px; }
.tide-head { margin-bottom: 6px; }
.tides { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tide { padding: 4px 9px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; white-space: nowrap; }
.tide-high b { color: var(--sea); }
.tide-low b { color: var(--muted); }
.loc-row { display: grid; grid-template-columns: 44px 1fr 1.3fr 64px 56px; gap: 8px; align-items: center; margin-bottom: 8px; }
.loc-row input:not([type=radio]) { margin-top: 0 !important; }
.loc-row input[type=radio] { justify-self: center; }
.loc-head { margin-bottom: 4px; }
@media (max-width: 480px) { .loc-row { grid-template-columns: 30px 1fr 1.3fr 52px; gap: 6px; } .loc-row > input[type=number], .loc-head > :nth-child(5) { display: none !important; } }
.consent { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.consent ul { margin: 6px 0; padding-left: 20px; }
.consent .check { margin: 8px 0 0; font-size: .92rem; }
.danger-zone { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.danger-zone summary { color: var(--no); font-weight: 600; }
.danger-btn { background: var(--no); }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); padding: 2px 0; }
.cal-day { background: var(--card); border: 1px solid var(--line); border-radius: 8px; min-height: 86px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.other { opacity: .45; }
.cal-day.past .tile { opacity: .6; }
.cal-day.today { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); }
.cal-num { font-size: .75rem; font-weight: 600; color: var(--muted); }
.cal-day.today .cal-num { color: var(--sea); }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 4px 5px; border: 0; border-left: 4px solid transparent;
        border-radius: 6px; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.tile-race { background: var(--navy-2); color: #fff; }
.tile-sail { background: #e2f1fb; color: #1d5f8f; }
@media (prefers-color-scheme: dark) { .tile-sail { background: #12324a; color: #8cc8f0; } .tile-race { background: #23507c; } }
.tile-title { font-size: .72rem; font-weight: 600; line-height: 1.2; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-count { font-size: .8rem; font-weight: 700; }
.tile-of { font-weight: 400; opacity: .75; }
.tile.mine-yes { border-left-color: var(--yes); }
.tile.mine-maybe { border-left-color: var(--maybe); }
.tile.mine-no { border-left-color: var(--no); }
.tile.key { display: inline-block; width: auto; padding: 1px 8px; font-size: .75rem; cursor: default; }
.cal-key { margin-top: 10px; }
.ev-dialog { border: 0; border-radius: 14px; padding: 18px; width: min(460px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.ev-dialog::backdrop { background: rgba(10, 20, 35, .55); }
.ev-close { float: right; margin: -6px -6px 0 0; }
.ev-close button { border: 0; background: var(--bg); color: var(--ink); width: 32px; height: 32px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.ev-title { font-size: 1.25rem; margin: 2px 0 6px; }
.ev-count { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.ev-count > div { background: var(--bg); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; min-width: 72px; }
.ev-count strong { font-size: 1.4rem; line-height: 1.1; }
.ev-count span { font-size: .75rem; color: var(--muted); }
@media (max-width: 480px) {
  .cal { gap: 2px; }
  .cal-day { min-height: 64px; padding: 2px; border-radius: 6px; }
  .tile { padding: 3px; border-left-width: 3px; }
  .tile-title { font-size: .62rem; }
  .tile-count { font-size: .7rem; }
  .tile-of { display: none; }
}

/* Channel windows */
.chan { margin: 8px 0 10px; }
.chan-line { font-weight: 600; margin-bottom: 4px; }
.chan-bar { position: relative; height: 12px; border-radius: 6px; background: var(--no-bg); overflow: hidden; }
.chan-bar span { position: absolute; top: 0; bottom: 0; background: var(--yes); opacity: .8; }
.chan-ticks { display: flex; justify-content: space-between; font-size: .65rem; color: var(--muted); margin-top: 2px; }
.chan-warn { color: var(--no); font-weight: 600; }
.chan-inline { max-width: 420px; }
.feed-pick { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 10px; }
.feed-pick label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: .95rem; }
.feed-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-btns[hidden] { display: none; }
.row-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pill-cancel { background: var(--no-bg); color: var(--no); }
.imp-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 8px 0; border-top: 1px solid var(--line); margin: 0; }
.imp-row input[type=checkbox] { margin-top: 2px; flex: none; }
.imp-row.past { opacity: .55; }
.struck { text-decoration: line-through; opacity: .7; }
.cancel-banner { background: var(--no-bg); border-color: var(--no); }
.pub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .9rem; }
.pub-on { background: var(--yes-bg); }
.pub-off { background: var(--maybe-bg); }
.comment { padding: 8px 0; border-bottom: 1px solid var(--line); }
.comment-form { display: flex; gap: 8px; margin-top: 10px; }
.comment-form input { margin-top: 0 !important; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.is-cancelled { opacity: .8; border-color: var(--no); }
.cancel-note { margin: 0 0 6px; color: var(--no); font-size: .92rem; }
.homescreen { margin: -4px 0 14px; }
.homescreen ul { margin: 6px 0; padding-left: 20px; }
.comments { margin-top: 10px; }
.tile-cancelled { background: var(--none-bg) !important; color: var(--muted) !important; text-decoration: line-through; }
.tile-cancelled .tile-count { text-decoration: none; }
.draft { color: var(--maybe); }
.stats { border-collapse: collapse; font-size: .9rem; width: 100%; }
.stats th, .stats td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.stats thead th { font-size: .78rem; color: var(--muted); }
.stats .num { text-align: center; }
.stats .low { color: var(--no); font-weight: 600; }
.stats .pos-list { white-space: normal; min-width: 160px; }
.stats .sticky { position: sticky; left: 0; background: var(--card); }
.stats tr.inactive { opacity: .55; }
.stats a { color: var(--ink); text-decoration: none; }
.pos-name { min-width: 120px; font-weight: 600; }

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }
.hero-logo { display: block; width: 100%; max-width: 360px; margin: -4px auto 12px; border-radius: 10px; }
/* Import */
.src-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.src-url { word-break: break-all; }
.imp-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; position: sticky; top: 0; background: var(--bg); padding: 6px 0; z-index: 2; }
.imp-bar input[type=search] { flex: 1 1 180px; margin-top: 0 !important; }
.imp-bar .check { margin: 0; }
.imp-list { padding: 4px 12px; }
.imp-item { display: grid; grid-template-columns: 26px 92px 1fr; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.imp-item:last-of-type { border-bottom: 0; }
.imp-item.on { background: linear-gradient(90deg, var(--yes-bg), transparent 70%); }
.imp-item.past { opacity: .6; }
.imp-item input[type=checkbox] { margin-top: 8px; }
.imp-date { cursor: pointer; padding-top: 6px; font-size: .92rem; }
.imp-main input { margin-top: 0 !important; padding: 7px 10px; }
.imp-main .pill { margin: 4px 4px 0 0; }
.imp-submit { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; }
@media (max-width: 480px) { .imp-item { grid-template-columns: 26px 1fr; } .imp-main { grid-column: 2; } }
.imp-item[hidden] { display: none; }
.imp-main { min-width: 0; }
.imp-main input { width: 100%; }
.imp-main .pill { white-space: normal; display: inline-block; max-width: 100%; }

/* Language switch (crew pages) */
.boat-page { margin-left: auto; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.boat-page:hover { background: rgba(255,255,255,.12); }
.boat-page + .lang-switch { margin-left: 0; }
.lang-switch { margin-left: auto; display: flex; gap: 2px; font-size: .85rem; background: rgba(255,255,255,.12); border-radius: 999px; padding: 2px; }
.lang-switch a, .lang-switch strong { padding: 3px 10px; border-radius: 999px; color: #fff; text-decoration: none; }
.lang-switch strong { background: #fff; color: var(--navy); }

/* Emergency contact */
fieldset.ice p { margin: 0 0 6px; }

/* What's changed (Home) */
.changes h2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.changes ul { list-style: none; margin: 0; padding: 0; }
.changes li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.changes li:last-child { border-bottom: 0; }
.changes .when { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.changes li.drop { background: var(--no-bg); border-radius: 8px; padding: 8px 10px; border: 0; margin: 4px 0; }
.changes li.drop.draft { background: var(--maybe-bg); }
.changes .quote { color: var(--muted); }
.changes-empty { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; }

/* Jobs (skipper only) */
.offscreen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.job-row { display: grid; grid-template-columns: 24px 1fr minmax(0, 11rem) 28px; gap: 8px; align-items: center; padding: 4px 0; }
.job-row input[type=checkbox] { width: 20px; height: 20px; margin: 0; }
.job-row input:not([type=checkbox]), .job-row select, .job-add input, .job-add select { margin-top: 0 !important; min-width: 0; }
.job-done input[name^=dlabel] { text-decoration: line-through; color: var(--muted); }
.job-add { display: grid; grid-template-columns: 1fr minmax(0, 11rem) auto; gap: 8px; align-items: center; margin-top: 10px; }
.job-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font: inherit; font-size: .85rem; background: var(--none-bg); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.chip:hover { border-color: var(--sea); }
@media (max-width: 480px) {
  .job-row { grid-template-columns: 24px 1fr 28px; }
  .job-row select { grid-column: 2; grid-row: 2; }
  .job-add { grid-template-columns: 1fr auto; }
  .job-add input { grid-column: 1 / -1; }
}

/* Crew list for the race officer */
.crewlist-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.crewlist-opts label { margin: 0; }
.sheet { background: #fff; color: #000; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sheet h1 { margin: 0 0 4px; font-size: 1.35rem; }
.sheet .meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 16px; margin: 10px 0 14px; font-size: .92rem; }
.sheet .meta span { color: #555; display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.sheet table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sheet th, .sheet td { text-align: left; padding: 7px 6px; border-bottom: 1px solid #ccc; vertical-align: top; }
.sheet th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #444; border-bottom: 2px solid #000; }
.sheet .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; font-size: .85rem; }
.sheet .sign div { border-top: 1px solid #000; padding-top: 4px; }
.sheet .foot { font-size: .75rem; color: #666; margin-top: 14px; }
@media (max-width: 480px) { .sheet { padding: 14px; } .sheet table { font-size: .82rem; } }
@media print {
  header.top, .no-print, .flash { display: none !important; }
  body, main.wrap { background: #fff; padding: 0; max-width: none; }
  .sheet { border: 0; padding: 0; }
}

/* Confirmation box (replaces the browser's confirm(), which some tablets block) */
.cfm { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cfm-card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 18px; max-width: 380px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.cfm-msg { margin: 0 0 16px; font-size: 1.02rem; }
.cfm-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cfm-btns .btn { min-width: 96px; min-height: 44px; }
