/* ==========================================================================
   CRONOSIGN: the look on screen (white and navy, 19 Oct 2026).

   One idea: a white page, one navy (#0B1F3A) for everything that acts or
   matters (the band, the main button, a choice that is on, totals), a pale
   navy tint for what the app calculated, hairline borders for structure.
   Rounded corners, sentence-case labels, no numbered headings: the screen
   should read like a calm form, not a printed report.

   Why some choices look the way they do:
   - Crew read this at arm's length in sunlight at 06:30, so the body is 18 px
     on crew screens and every tap target is at least 48 px; the one button
     that matters is 88 px tall.
   - Navy on white and white on navy both pass WCAG AAA; the mid grey-blue is
     only for secondary text and still passes AA on white.
   - The variable names are kept from the first look (--fc-grey is the page,
     --fc-black the navy) so the screens and their tests did not move.
   Production and office pages (dense, English only) add class "fc-dense" on
   <body>: smaller type, tighter rows, the same palette.
   ========================================================================== */

:root {
  --fc-navy: #0B1F3A;
  --fc-grey: #FFFFFF;        /* the page */
  --fc-black: #0B1F3A;       /* navy: band, primary, selected, totals */
  --fc-ink: #0B1F3A;         /* text */
  --fc-white: #FFFFFF;
  --fc-tint: #EEF2F8;        /* calculated */
  --fc-surface: #F6F8FB;     /* quiet panels */
  --fc-line: #D3DBE7;        /* hairlines and input borders */
  --fc-mid: #5B6B82;         /* secondary text */
  --fc-soft: #B8C4D6;        /* light text on navy, inactive steps */
  --fc-print-tint: #F2F5FA;

  --fc-font: -apple-system, "SF Pro Text", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --fc-body: 18px;
  --fc-small: 15px;
  --fc-label: 14px;
  --fc-tap: 48px;
  --fc-button: 88px;
  --fc-gutter: 16px;
  --fc-gap: 8px;
  --fc-radius: 12px;
  --fc-radius-lg: 18px;
  --fc-band-h: 64px;
  --fc-page-max: 640px;
  --fc-track: 0.02em;
  --fc-track-label: 0.01em;
  --fc-shadow: 0 1px 2px rgba(11, 31, 58, 0.06), 0 4px 16px rgba(11, 31, 58, 0.06);
}

/* ---- reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fc-grey);
  color: var(--fc-ink);
  font-family: var(--fc-font);
  font-size: var(--fc-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--fc-navy); outline-offset: 2px; }
.band :focus-visible, .btn-primary:focus-visible, .total:focus-visible { outline-color: var(--fc-white); }

/* ---- the band -------------------------------------------------------- */
.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fc-gutter);
  min-height: var(--fc-band-h);
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--fc-gutter) 10px;
  background: var(--fc-navy);
  color: var(--fc-white);
}
.band-text { min-width: 0; flex: 1 1 auto; }
.band-title {
  font-weight: 700;
  font-size: clamp(17px, 4.6vw, 20px);
  letter-spacing: var(--fc-track);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.band-sub {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fc-soft);
}
.band-logo { flex: 0 0 auto; display: flex; align-items: center; }
.band-logo img, .band-logo svg { height: 28px; width: auto; }
.wordmark {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--fc-white);
  white-space: nowrap;
}
.wordmark::before {   /* the CRONOSIGN mark: a stopwatch whose hands form a tick (img/brand) */
  content: "";
  display: inline-block;
  width: 18px; height: 18px;
  margin-right: 8px;
  vertical-align: -4px;
  background: url("/img/brand/mark-white.svg") center / contain no-repeat;
}
.band-actions { display: flex; gap: 8px; flex: 0 0 auto; align-items: center; }
.band-actions .btn-secondary { min-height: 40px; }

/* ---- the page -------------------------------------------------------- */
.page {
  max-width: var(--fc-page-max);
  margin: 0 auto;
  padding: 20px var(--fc-gutter) calc(32px + env(safe-area-inset-bottom, 0px));
}
.page-wide { max-width: none; }

/* ---- sections: a plain heading, no numbers, no rule ----------------- */
.section { margin: 28px 0 0; }
.section:first-child { margin-top: 0; }
.section-title, .section > h2 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fc-mid);
}
.lead { font-size: 22px; font-weight: 700; line-height: 1.3; }
.text { margin: 0 0 12px; }
.muted { color: var(--fc-mid); }
.small { font-size: var(--fc-small); }
.big { font-size: 52px; font-weight: 750; line-height: 1.05; letter-spacing: -0.02em; }
.status { margin-top: 10px; font-size: var(--fc-small); color: var(--fc-mid); }
.inline-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* ---- fields --------------------------------------------------------- */
.field { margin: 0 0 16px; }
.field-label, .label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fc-label);
  font-weight: 600;
  color: var(--fc-mid);
}
.field-hint { margin-top: 6px; font-size: var(--fc-small); color: var(--fc-mid); }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--fc-white);
  color: var(--fc-ink);
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius);
  font-size: var(--fc-body);
  -webkit-appearance: none;
  appearance: none;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fc-navy); outline: 2px solid var(--fc-navy); outline-offset: -1px; }
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B1F3A' stroke-width='2'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-size: 14px 9px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--fc-mid); opacity: 1; }
.input:disabled, .field input:disabled { background: var(--fc-tint); }
.input[readonly] { background: var(--fc-tint); }
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1 1 0; min-width: 0; }

/* A choice made with a tap: an outlined card, navy when chosen. */
.choice { display: flex; flex-direction: column; gap: var(--fc-gap); }
.choice-row { flex-direction: row; }
.choice-row > .choice-item { flex: 1 1 0; justify-content: center; text-align: center; padding: 12px 8px; }
.choice-row > .choice-item .mark { display: none; }   /* side by side, the navy fill alone shows the choice */
.choice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  background: var(--fc-white);
  color: var(--fc-ink);
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius);
  text-align: left;
  width: 100%;
  transition: background 0.12s, border-color 0.12s;
}
.choice-item[aria-pressed="true"], .choice-item.is-on { background: var(--fc-navy); border-color: var(--fc-navy); color: var(--fc-white); }
.choice-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-item .mark {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 2px solid var(--fc-line);
  border-radius: 50%;
}
.choice-item[aria-pressed="true"] .mark, .choice-item.is-on .mark { background: var(--fc-white); border-color: var(--fc-white); box-shadow: inset 0 0 0 5px var(--fc-navy); }

/* What the app calculated: the pale tint, never typed in. */
.calc {
  background: var(--fc-tint);
  color: var(--fc-ink);
  border-radius: var(--fc-radius);
}
.calc-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: var(--fc-tap);
  padding: 12px 16px;
}
.calc-bar + .calc-bar { margin-top: var(--fc-gap); }
.calc-bar .value { font-weight: 700; white-space: nowrap; }

/* A total: navy with white figures. */
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: var(--fc-tap);
  padding: 12px 16px;
  background: var(--fc-navy);
  color: var(--fc-white);
  font-weight: 700;
  border-radius: var(--fc-radius);
}
.total .value { font-size: 22px; white-space: nowrap; }

/* ---- buttons --------------------------------------------------------- */
.btn, .btn-primary, .btn-secondary, .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: var(--fc-tap);
  padding: 10px 18px;
  border: 0;
  border-radius: var(--fc-radius);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.12s, transform 0.08s;
}
.btn-primary {
  min-height: var(--fc-button);
  background: var(--fc-navy);
  color: var(--fc-white);
  font-size: 22px;
  letter-spacing: 0.04em;
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow);
}
.btn-primary:active { transform: scale(0.985); background: #132B4F; }
.btn-primary:disabled, .btn-primary[aria-busy="true"] { background: var(--fc-soft); color: var(--fc-white); box-shadow: none; cursor: default; }
.btn-secondary {
  background: var(--fc-white);
  color: var(--fc-navy);
  border: 1.5px solid var(--fc-navy);
  font-size: 17px;
}
.btn-secondary:active { background: var(--fc-tint); }
.btn-secondary:disabled { color: var(--fc-soft); border-color: var(--fc-line); cursor: default; }
.btn-secondary.is-on { background: var(--fc-navy); color: var(--fc-white); }
.band .btn-secondary { background: transparent; color: var(--fc-white); border-color: var(--fc-soft); }
.btn-link {
  width: auto;
  min-height: 40px;
  padding: 6px 4px;
  background: transparent;
  color: var(--fc-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.btn-inline { width: auto; }
.btn-row { display: flex; gap: var(--fc-gap); }
.btn-row > * { flex: 1 1 0; }
.btn-stack { display: flex; flex-direction: column; gap: var(--fc-gap); }
.actions { margin-top: 20px; }
.actions > * + * { margin-top: var(--fc-gap); }

/* The EN / ES switch in the band */
.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.seg button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  background: transparent;
  color: var(--fc-white);
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.seg button[aria-pressed="true"] { background: var(--fc-white); color: var(--fc-navy); }

/* ---- chips: pills, the CHECK one is navy and opens the reason ------- */
.chip, .chip-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip { background: var(--fc-tint); color: var(--fc-ink); }
.chip-check { background: var(--fc-navy); color: var(--fc-white); }
button.chip-check::after, button.chip::after { content: ""; position: absolute; inset: -8px; }
.chip-check::before { content: "CHECK"; }
.chip-check[data-label]::before { content: attr(data-label); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- lists: one card, rows split by hairlines ----------------------- */
.list {
  display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none;
  border: 1px solid var(--fc-line); border-radius: var(--fc-radius); overflow: hidden; background: var(--fc-white);
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  background: var(--fc-white);
  color: var(--fc-ink);
  text-decoration: none;
}
.list > .list-row + .list-row, .list > * + .list-row { border-top: 1px solid var(--fc-line); }
.list-row.calc { background: var(--fc-tint); border-radius: 0; }
.list-row.total { font-weight: 700; }
.list-row > .grow { flex: 1 1 auto; min-width: 0; }
.list-row .meta { display: block; font-size: var(--fc-small); color: var(--fc-mid); }
/* A tick with a bold label and a line of explanation under it (Job setup: WhatsApp, documents). */
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
label.check > input { margin-top: 3px; flex: none; }
label.check strong { display: block; }
label.check .meta { display: block; font-size: var(--fc-small); color: var(--fc-mid); }
.list-row .time { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-row .right { margin-left: auto; text-align: right; white-space: nowrap; }
a.list-row:active, button.list-row:active { background: var(--fc-tint); }
button.list-row { width: 100%; border: 0; text-align: left; }
.list-head {
  display: flex; gap: 12px; padding: 10px 16px 6px; background: var(--fc-surface);
  font-size: var(--fc-label); font-weight: 700; color: var(--fc-mid);
}

/* ---- grids: the dense production tables ----------------------------- */
.grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--fc-gutter)); padding: 0 var(--fc-gutter); }
table.grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fc-small);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius);
  overflow: hidden;
}
.grid th {
  padding: 10px 8px 8px;
  text-align: left;
  vertical-align: bottom;
  font-size: 12px;
  font-weight: 700;
  color: var(--fc-mid);
  background: var(--fc-surface);
  border-bottom: 1px solid var(--fc-line);
}
.grid thead th { position: sticky; top: 0; z-index: 1; }
.grid td {
  padding: 9px 8px;
  background: var(--fc-white);
  color: var(--fc-ink);
  vertical-align: middle;
  min-height: 40px;
  border-bottom: 1px solid var(--fc-line);
}
.grid tr:last-child td { border-bottom: 0; }
.grid td.calc, .grid tr.calc td { background: var(--fc-tint); border-radius: 0; }
.grid tr.total td, .grid td.total { background: var(--fc-navy); color: var(--fc-white); font-weight: 700; }
.grid td.num, .grid th.num { text-align: right; white-space: nowrap; }
.grid td.input { padding: 3px; }
.grid td.input input, .grid td.input select {
  width: 100%; min-height: 36px; padding: 6px 8px; border: 1px solid var(--fc-line); border-radius: 8px; background: var(--fc-white); font-size: inherit;
}
.grid td.input input:focus { outline: 2px solid var(--fc-navy); outline-offset: -1px; }
.grid tr.is-selected td { background: var(--fc-tint); }
.grid td.empty { background: transparent; }
.grid caption { caption-side: top; text-align: left; padding: 0 0 8px; font-weight: 700; }
.grid-note { margin-top: 8px; font-size: var(--fc-small); color: var(--fc-mid); }

/* ---- toast and dialog ------------------------------------------------ */
.toast {
  position: fixed;
  left: var(--fc-gutter);
  right: var(--fc-gutter);
  bottom: calc(var(--fc-gutter) + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  max-width: calc(var(--fc-page-max) - 2 * var(--fc-gutter));
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--fc-navy);
  color: var(--fc-white);
  font-size: var(--fc-small);
  font-weight: 600;
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow);
  pointer-events: none;
}
.toast[hidden] { display: none; }
dialog.dialog {
  width: min(100% - 2 * var(--fc-gutter), 480px);
  padding: 0;
  border: 0;
  border-radius: var(--fc-radius-lg);
  background: var(--fc-white);
  color: var(--fc-ink);
  font-size: var(--fc-body);
  box-shadow: 0 12px 40px rgba(11, 31, 58, 0.25);
  overflow: hidden;
}
dialog.dialog::backdrop { background: rgba(11, 31, 58, 0.45); }
.dialog-band { padding: 16px var(--fc-gutter); background: var(--fc-navy); color: var(--fc-white); font-weight: 700; font-size: 17px; }
.dialog-body { padding: var(--fc-gutter); }
.dialog-actions { display: flex; gap: var(--fc-gap); padding: 0 var(--fc-gutter) var(--fc-gutter); }
.dialog-actions > * { flex: 1 1 0; }

/* ---- stepper (S1), timeline (S3) ------------------------------------ */
.steps { display: flex; gap: 6px; margin-bottom: 20px; }
.steps > span { flex: 1 1 0; height: 5px; background: var(--fc-tint); border-radius: 999px; }
.steps > span.is-done, .steps > span.is-on { background: var(--fc-navy); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline .list-row .source { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fc-mid); }

/* ---- the clock card on S2 ------------------------------------------- */
.card-state { margin: 20px 0; padding: 20px; background: var(--fc-surface); border-radius: var(--fc-radius-lg); }
.card-state:empty { display: none; }
.card-state .big { font-variant-numeric: tabular-nums; }
.server-time { margin-top: 10px; font-size: var(--fc-small); color: var(--fc-mid); font-variant-numeric: tabular-nums; }

/* ---- the time wheel (every time a person picks) --------------------- */
.wheel-wrap { position: relative; isolation: isolate; }
.wheel { position: relative; display: flex; justify-content: center; gap: 6px; height: 220px; margin: 4px 0 8px; user-select: none; -webkit-user-select: none; }
.wheel-col {
  width: 92px; height: 100%;
  overflow-y: scroll; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 88px 0;   /* (220 - 44) / 2: the first and last values can reach the middle */
  overscroll-behavior: contain;
}
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-item {
  height: 44px; display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--fc-soft); transition: color 0.1s;
}
.wheel-item.is-on { color: var(--fc-navy); font-weight: 750; }
.wheel-sep { align-self: center; font-size: 30px; font-weight: 750; color: var(--fc-navy); }
.wheel::before {   /* the selection band */
  content: ""; position: absolute; left: 12px; right: 12px; top: 88px; height: 44px;
  background: var(--fc-tint); border-radius: var(--fc-radius); z-index: -1;
}
.wheel::after {    /* fade top and bottom */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--fc-white), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 68%, var(--fc-white));
}
.wheel-now { display: flex; justify-content: center; gap: 8px; margin-bottom: 4px; }
.time-button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px;
  padding: 10px 14px; background: var(--fc-white); color: var(--fc-ink);
  border: 1px solid var(--fc-line); border-radius: var(--fc-radius);
  font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: left;
}
.time-button::after {   /* a small clock face */
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; border: 2px solid var(--fc-navy); border-radius: 50%;
  background: linear-gradient(var(--fc-navy), var(--fc-navy)) 6px 2px / 2px 6px no-repeat, linear-gradient(var(--fc-navy), var(--fc-navy)) 6px 6px / 5px 2px no-repeat;
}
.time-button.is-empty { color: var(--fc-mid); font-weight: 500; font-size: 18px; }
.time-button:disabled { background: var(--fc-tint); cursor: default; }

/* ---- signing --------------------------------------------------------- */
.sig-pad {
  position: relative; width: 100%; height: 200px; background: var(--fc-white);
  border: 1.5px dashed var(--fc-soft); border-radius: var(--fc-radius); touch-action: none;
}
.sig-pad canvas { width: 100%; height: 100%; display: block; border-radius: var(--fc-radius); }
.sig-pad .sig-line { position: absolute; left: 20px; right: 20px; bottom: 44px; border-bottom: 1px solid var(--fc-line); pointer-events: none; }
.sig-pad .sig-hint { position: absolute; left: 20px; bottom: 16px; font-size: 13px; color: var(--fc-mid); pointer-events: none; }
.sig-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px;
  background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-radius);
}
.sig-card img { height: 56px; width: auto; max-width: 80%; }
.sign-block.is-signed .sig-card { background: var(--fc-tint); border-color: var(--fc-tint); }
.sign-block.is-signed .status { color: var(--fc-navy); font-weight: 700; }
.sig-card .who { font-size: var(--fc-small); color: var(--fc-mid); }
.signed-stamp { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--fc-tint); border-radius: var(--fc-radius); }
.signed-stamp img { height: 40px; width: auto; }

/* ---- utilities ------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.row > .grow { flex: 1 1 auto; min-width: 0; }
.visually-busy { opacity: 0.6; pointer-events: none; }
.offline-bar {
  padding: 8px var(--fc-gutter);
  background: var(--fc-tint);
  color: var(--fc-navy);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* ---- dense variant: production and office screens ------------------- */
body.fc-dense { --fc-body: 15px; --fc-small: 13px; --fc-label: 12px; --fc-page-max: none; --fc-radius: 10px; }
body.fc-dense .band { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
body.fc-dense .band-title { font-size: 16px; }
body.fc-dense .page { padding-top: 16px; }
body.fc-dense .section { margin-top: 22px; }
body.fc-dense .list-row { min-height: 44px; padding: 8px 12px; }
body.fc-dense .btn-primary { min-height: 52px; font-size: 16px; border-radius: var(--fc-radius); }
body.fc-dense .btn-secondary { min-height: 40px; font-size: 14px; }
body.fc-dense .field { margin-bottom: 10px; }
body.fc-dense .field input:not([type="checkbox"]):not([type="radio"]), body.fc-dense .field select { min-height: 42px; padding: 8px 12px; }
body.fc-dense .big { font-size: 32px; }
body.fc-dense .grid td { padding: 6px 8px; }
body.fc-dense .grid { font-size: 13px; }
body.fc-dense .time-button { min-height: 42px; font-size: 17px; }

/* ---- small phones (360 px) and large screens ------------------------ */
@media (max-width: 400px) {
  :root { --fc-gutter: 14px; --fc-body: 17px; }
  .big { font-size: 46px; }
  .btn-primary { font-size: 20px; }
  .wordmark { letter-spacing: 0.16em; font-size: 12px; }
}
@media (min-width: 900px) {
  .band { padding-left: 24px; padding-right: 24px; }
  body:not(.fc-dense) .band-text { max-width: var(--fc-page-max); margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- print ------------------------------------------------------------ */
@media print {
  body { background: #FFFFFF; }
  .band { background: var(--fc-navy) !important; color: var(--fc-white) !important; min-height: 0; padding: 10pt 14mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page { max-width: none; padding: 9mm 14mm; }
  .section-title, .section > h2 { break-after: avoid; }
  .calc, .calc-bar, .grid td.calc, .grid tr.calc td, .list-row.calc { background: var(--fc-print-tint) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .total, .grid tr.total td, .grid td.total, .chip-check { background: var(--fc-navy) !important; color: var(--fc-white) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .grid thead th { position: static; }
  .grid tr, .list-row { break-inside: avoid; }
  .btn-primary, .btn-secondary, .btn-link, .seg, .toast, .offline-bar, .band-actions, .no-print, dialog { display: none !important; }
}
