/* Whip Round identity: game-day poster energy.
   Match-night navy + grass green + hi-vis orange + sunshine yellow on warm cream.
   Barlow Condensed display (italic for speed), Public Sans body, Caveat for
   handwritten sideline notes. Components are chunky "stickers": 2px edges,
   hard offset shadows, a press on click. */

:root {
  --ground: #FAF6ED;
  --surface: #FFFFFF;
  --ink: #17223E;
  --ink-soft: #5C6478;
  --line: #E5DECB;
  --navy: #131F3D;
  --navy-deep: #0C1530;
  --pitch: #149A50;
  --pitch-deep: #0E7A3E;
  --pitch-soft: #E1F2E6;
  --hivis: #FF6B1A;
  --hivis-deep: #E0570C;
  --hivis-soft: #FFE9D9;
  --sun: #FFC933;
  --sun-soft: #FFF2CC;
  --btn-ink: #FFFFFF;
  --edge: #17223E;          /* sticker borders */
  --hard: #17223E;          /* hard offset shadows */
  --on-navy: #F6F1E3;       /* text on navy panels */
  --on-navy-soft: rgba(246, 241, 227, 0.65);
  --shadow: 0 1px 2px rgba(19, 31, 61, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0D1730;
    --surface: #16223F;
    --ink: #F2EFE3;
    --ink-soft: #9BA6C0;
    --line: #2B3857;
    --navy: #0F1A36;
    --navy-deep: #080F23;
    --pitch: #2FC272;
    --pitch-deep: #5CD693;
    --pitch-soft: #14351F;
    --hivis: #FF8A47;
    --hivis-deep: #FFA36B;
    --hivis-soft: #3D2413;
    --sun: #FFD34D;
    --sun-soft: #3A2F10;
    --btn-ink: #0D1730;
    --edge: #43507A;
    --hard: #05091A;
    --on-navy: #F2EFE3;
    --on-navy-soft: rgba(242, 239, 227, 0.6);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --ground: #0D1730;
  --surface: #16223F;
  --ink: #F2EFE3;
  --ink-soft: #9BA6C0;
  --line: #2B3857;
  --navy: #0F1A36;
  --navy-deep: #080F23;
  --pitch: #2FC272;
  --pitch-deep: #5CD693;
  --pitch-soft: #14351F;
  --hivis: #FF8A47;
  --hivis-deep: #FFA36B;
  --hivis-soft: #3D2413;
  --sun: #FFD34D;
  --sun-soft: #3A2F10;
  --btn-ink: #0D1730;
  --edge: #43507A;
  --hard: #05091A;
  --on-navy: #F2EFE3;
  --on-navy-soft: rgba(242, 239, 227, 0.6);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
#app { max-width: 900px; margin: 0 auto; padding: 0 18px 90px; }

.display { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; }
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; text-wrap: balance; }
h1 {
  font-weight: 700; font-style: italic;
  font-size: clamp(2.9rem, 8vw, 4.6rem);
  line-height: 0.94; letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 6px 0 16px;
}
h2 {
  font-weight: 700; font-style: italic; text-transform: uppercase;
  font-size: 2rem; line-height: 1.02; letter-spacing: 0.01em;
  margin: 0 0 12px;
}
/* Arc tick in the brand colours before every h2: the whip-round ring. */
h2::before {
  content: "";
  display: inline-block;
  width: 0.62em; height: 0.62em;
  margin-right: 0.32em;
  border-radius: 50%;
  border: 0.16em solid var(--pitch);
  border-top-color: var(--sun);
  border-right-color: var(--hivis);
  transform: rotate(-30deg) translateY(0.04em);
}
h3 { font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.02em; margin: 22px 0 8px; }
p { max-width: 46rem; }

.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--pitch);
}

/* ---------- topbar: full-bleed navy match banner ---------- */
.topbar {
  width: 100vw; margin-left: calc(50% - 50vw);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px max(18px, calc(50vw - 432px)) 13px;
  background:
    repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.028) 0 14px, transparent 14px 28px),
    var(--navy);
  border-bottom: 3px solid var(--sun);
  margin-bottom: 8px;
}
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer;
}
.topbar .brand .logo { display: block; flex-shrink: 0; }
.topbar .wordmark {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; font-style: italic; font-size: 1.7rem;
  letter-spacing: 0.03em; line-height: 1;
  color: var(--on-navy);
}
.topbar .wordmark em { font-style: italic; color: var(--sun); }
.topbar .beta {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-navy-soft);
  text-align: right;
}
@media (max-width: 540px) { .topbar .beta { display: none; } }

/* ---------- landing hero ---------- */
.hero { padding: 52px 0 8px; position: relative; }
.hero h1 .hl {
  background: linear-gradient(178deg, transparent 12%, var(--sun) 12% 88%, transparent 88%);
  padding: 0 0.12em;
  color: var(--navy);
}
:root[data-theme="dark"] .hero h1 .hl { color: #131F3D; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero h1 .hl { color: #131F3D; }
}
.standfirst { font-size: 1.18rem; color: var(--ink-soft); max-width: 42rem; }
.standfirst strong { color: var(--ink); }

.stickerrow { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 30px 0 6px; }
.sticker {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 15px; border: 2px solid var(--edge); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--hard);
  background: var(--surface); color: var(--ink);
  white-space: nowrap;
}
.sticker.s1 { background: var(--sun); color: #131F3D; transform: rotate(-3deg); }
.sticker.s2 { background: var(--hivis); color: #fff; transform: rotate(2deg); }
.sticker.s3 { background: var(--pitch); color: #fff; transform: rotate(-1.5deg); }
:root[data-theme="dark"] .sticker.s2, :root[data-theme="dark"] .sticker.s3 { color: #0D1730; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sticker.s2,
  :root:not([data-theme="light"]) .sticker.s3 { color: #0D1730; }
}

.scribble {
  font-family: "Caveat", "Segoe Print", cursive;
  font-weight: 600; font-size: 1.35rem; line-height: 1.1;
  color: var(--hivis);
  display: inline-block; transform: rotate(-2deg);
  margin-left: 14px; vertical-align: middle;
}

/* ---------- buttons: kit badges with a real press ---------- */
.btn {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; font-size: 1.08rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--pitch); color: var(--btn-ink);
  border: 2px solid var(--edge); border-radius: 10px;
  padding: 11px 24px; cursor: pointer;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--hard);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hard); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hard); }
.btn.secondary { background: var(--surface); color: var(--ink); }
.btn.secondary:hover { background: var(--sun-soft); }
.btn.small { font-size: 0.92rem; padding: 7px 15px; box-shadow: 2px 2px 0 var(--hard); border-radius: 8px; }
.btn.small:hover { box-shadow: 3px 3px 0 var(--hard); }
.btn.small:active { box-shadow: 1px 1px 0 var(--hard); }
.btn.orange { background: var(--hivis); color: #fff; }
:root[data-theme="dark"] .btn.orange { color: #0D1730; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.orange { color: #0D1730; }
}

/* ---------- cards ---------- */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 30px 0; }
.card {
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 4px 4px 0 var(--hard);
}
.card.top-pitch { border-top: 6px solid var(--pitch); }
.cards3 .card:nth-child(2).top-pitch { border-top-color: var(--hivis); }
.cards3 .card:nth-child(3).top-pitch { border-top-color: var(--sun); }
.card h3 { margin: 0 0 8px; }
.card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

.fbadge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.15rem; font-style: italic;
  background: var(--navy); color: var(--sun);
  border: 2px solid var(--edge);
  margin-bottom: 10px;
}

/* ---------- wizard ---------- */
.steps { display: flex; gap: 7px; margin: 28px 0 20px; }
.steps .s { flex: 1; height: 9px; border-radius: 999px; background: var(--line); border: 1px solid var(--line); }
.steps .s.done {
  background: repeating-linear-gradient(-55deg, var(--pitch) 0 10px, var(--pitch-deep) 10px 20px);
  border-color: var(--edge);
}
.wizhead { display: flex; justify-content: space-between; align-items: baseline; }
.wizhead .stepnum {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.88rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--hivis);
}

label.f { display: block; margin: 0 0 14px; }
label.f span.lbl { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
label.f span.hint { display: block; font-size: 0.83rem; color: var(--ink-soft); margin-top: 3px; }
input[type=text], input[type=number], input[type=date], input[type=email], select, textarea {
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pitch);
  box-shadow: 0 0 0 3px var(--pitch-soft);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }

.costrow { display: grid; grid-template-columns: 1fr 130px; gap: 10px; align-items: center; margin-bottom: 8px; }
.costtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 3px solid var(--edge); margin-top: 10px; padding-top: 10px;
  font-weight: 700;
}
.costtotal .amt { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--pitch-deep); }

.pickgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }
.pick {
  display: block; cursor: pointer; position: relative;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.pick:hover { border-color: var(--edge); }
.pick.on {
  border-color: var(--edge);
  background: var(--pitch-soft);
  box-shadow: 3px 3px 0 var(--hard);
}
.pick input { margin-right: 8px; accent-color: var(--pitch); }
.pick .nm { font-weight: 700; }
.pick .bl { display: block; font-size: 0.87rem; color: var(--ink-soft); margin-top: 4px; }
.pick .rec {
  display: inline-block; margin-left: 8px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--sun); color: #131F3D;
  border: 1px solid var(--edge);
  border-radius: 999px; padding: 1px 9px 2px;
  transform: rotate(-2deg);
}
.pickdel {
  position: absolute; top: 8px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font-size: 13px; line-height: 1; cursor: pointer;
}
.pickdel:hover { color: var(--hivis); border-color: var(--hivis); }
.addcustom { display: flex; gap: 10px; max-width: 30rem; margin: 6px 0 4px; }
.addcustom input { flex: 1; }

.wiznav { display: flex; justify-content: space-between; margin-top: 26px; }

.schedrow { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 6px; }
.schedrow label { display: flex; flex-direction: column; gap: 3px; }
.schedrow label span { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-family: "Barlow Condensed", sans-serif; }
.schedrow input { padding: 7px 10px; min-width: 140px; }

/* ---------- calendar ---------- */
.calwrap { margin-top: 18px; }
.calmonth { margin-bottom: 26px; }
.calmonth h3 { margin: 0 0 8px; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.caldow {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
  text-align: center; padding: 2px 0;
}
.calcell {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  min-height: 58px; padding: 4px 5px; font-size: 0.72rem;
}
.calcell.empty { background: transparent; border: none; }
.calcell.today { outline: 3px solid var(--sun); outline-offset: -2px; }
.calcell .dnum { display: block; font-weight: 700; font-size: 0.72rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.calchip {
  display: block; background: var(--pitch-soft); color: var(--pitch-deep);
  border-radius: 4px; padding: 2px 4px; margin-top: 3px;
  font-weight: 600; line-height: 1.25; overflow-wrap: break-word;
}
.calchip.deadline { background: var(--hivis-soft); color: var(--hivis-deep); }
@media (max-width: 560px) {
  .calcell { min-height: 44px; padding: 2px 3px; }
  .calchip { font-size: 0.6rem; padding: 1px 2px; }
}

/* ---------- photos ---------- */
.photorow { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.photorow .ph {
  position: relative; width: 116px; height: 86px;
  border-radius: 8px; overflow: hidden;
  border: 2px solid var(--edge); background: var(--surface);
  box-shadow: 3px 3px 0 var(--hard);
}
.photorow .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photorow .ph .del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 14px; line-height: 1;
}
.photoadd {
  display: flex; align-items: center; justify-content: center;
  width: 116px; height: 86px;
  border: 2px dashed var(--pitch); border-radius: 8px;
  color: var(--pitch); cursor: pointer;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.04em; text-align: center;
}
.photoadd:hover { background: var(--pitch-soft); }
.photostrip { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.photostrip .ph { width: 132px; height: 96px; border-radius: 8px; overflow: hidden; border: 2px solid var(--edge); box-shadow: 3px 3px 0 var(--hard); }
.photostrip .ph img, .photostrip img { width: 132px; height: 96px; object-fit: cover; display: block; border-radius: 6px; }
.photostrip.small img { width: 104px; height: 76px; }
.photostrip a { display: block; line-height: 0; }
.photostrip .ph:nth-child(odd) { transform: rotate(-1.2deg); }
.photostrip .ph:nth-child(even) { transform: rotate(1.2deg); }

/* ---------- results: tabs as sticker pills ---------- */
.tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 24px 0 26px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--line);
}
.tab {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--surface); color: var(--ink-soft);
  border: 2px solid var(--line); border-radius: 999px;
  cursor: pointer;
  padding: 7px 16px 8px;
  transition: transform 0.1s ease;
}
.tab:hover { border-color: var(--edge); color: var(--ink); }
.tab.on {
  background: var(--navy); color: var(--sun);
  border-color: var(--edge);
  box-shadow: 2px 2px 0 var(--hard);
  transform: rotate(-1deg);
}

/* ---------- scoreboard: the real thing ---------- */
.scoreboard {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0;
  margin: 12px 0 24px;
  background:
    repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.025) 0 12px, transparent 12px 24px),
    var(--navy);
  border: 2px solid var(--edge);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--hard);
  overflow: hidden;
}
.score { padding: 16px 18px 13px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.score:first-child { border-left: none; }
.score .v {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic;
  font-size: 2.1rem; line-height: 1.05; font-variant-numeric: tabular-nums;
  color: var(--sun);
}
.score .k {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--on-navy-soft);
}

/* ---------- copy fields ---------- */
.copyfield { margin: 0 0 16px; }
.copyfield .cfhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; gap: 10px; }
.copyfield .cflabel { font-weight: 700; font-size: 0.92rem; }
.copyfield pre {
  background: var(--surface);
  border: 2px solid var(--line);
  border-left: 5px solid var(--pitch);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
  font-size: 0.95rem;
  max-height: 320px;
  overflow-y: auto;
}
.copybtn {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--sun); color: #131F3D;
  border: 2px solid var(--edge);
  border-radius: 999px; padding: 3px 15px; cursor: pointer;
  box-shadow: 2px 2px 0 var(--hard);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.copybtn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--hard); }
.copybtn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--hard); }
.copybtn.copied { background: var(--pitch); color: var(--btn-ink); }

.stepslist { padding-left: 1.3rem; max-width: 44rem; }
.stepslist li { margin-bottom: 7px; }
.stepslist li::marker { color: var(--hivis); font-weight: 700; }

.compliance {
  background: var(--hivis-soft);
  border: 2px solid var(--hivis);
  border-radius: 10px;
  padding: 13px 16px;
  margin: 14px 0;
  font-size: 0.93rem;
  max-width: 46rem;
}
.compliance .eyebrow { color: var(--hivis-deep); display: block; margin-bottom: 4px; }

/* ---------- accordions ---------- */
.accordion { margin-bottom: 14px; }
.accordion > .acchead {
  width: 100%; text-align: left; cursor: pointer;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  font: inherit; color: inherit;
  box-shadow: 3px 3px 0 var(--hard);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.accordion > .acchead:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hard); }
.accordion > .acchead .nm { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.3rem; }
.accordion > .acchead .tg {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--hivis);
}
.accordion > .accbody {
  border: 2px solid var(--edge); border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 4px 18px 18px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--hard);
}
.accordion.open > .acchead {
  border-radius: 12px 12px 0 0;
  box-shadow: none; transform: none;
  background: var(--navy); color: var(--on-navy);
  border-bottom-color: var(--navy);
}
.accordion.open > .acchead .nm { color: var(--sun); }
.accordion.open > .acchead .tg { color: var(--on-navy-soft); }

.runsheet { max-width: 46rem; }
.runsheet .phase { margin-bottom: 12px; }
.runsheet .phase .when {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--pitch-deep);
}
.runsheet ul { margin: 4px 0 0; padding-left: 1.2rem; }
.runsheet li { margin-bottom: 5px; font-size: 0.95rem; }

.calc {
  background: var(--sun-soft);
  border: 2px solid var(--edge);
  border-radius: 12px; padding: 14px 16px; margin: 14px 0;
  box-shadow: 3px 3px 0 var(--hard);
}
.calc .row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: center; margin-bottom: 6px; }
.calc .row span { font-size: 0.92rem; }
.calc input { padding: 6px 10px; }
.calc .result { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--edge); margin-top: 10px; padding-top: 8px; font-weight: 700; }
.calc .result .amt { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic; font-size: 1.8rem; font-variant-numeric: tabular-nums; color: var(--pitch-deep); }

.timeline { max-width: 46rem; }
.timeline .trow { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline .trow .wk { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic; color: var(--hivis); text-transform: uppercase; font-size: 0.95rem; }

.printrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }

.note { font-size: 0.85rem; color: var(--ink-soft); max-width: 44rem; }

footer.appfoot {
  margin-top: 60px; padding-top: 18px;
  border-top: 3px solid var(--line);
  color: var(--ink-soft); font-size: 0.85rem;
}

/* ---------- print (unchanged: paper stays paper) ---------- */
#printRoot { display: none; }
@media print {
  #app { display: none; }
  #printRoot { display: block; font-family: Georgia, "Times New Roman", serif; color: #000; }
  body { background: #fff; }
  .pr-page { page-break-after: always; padding: 10mm 6mm; }
  .pr-page:last-child { page-break-after: auto; }
  .pr-head { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 26pt; margin: 0 0 4mm; }
  .pr-sub { font-size: 11pt; color: #333; margin: 0 0 6mm; }
  .pr-poster { text-align: center; padding-top: 20mm; }
  .pr-poster .big { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 54pt; line-height: 1; margin: 8mm 0; }
  .pr-poster .mid { font-size: 20pt; margin: 4mm 0; }
  .pr-poster .det { font-size: 16pt; margin: 3mm 0; }
  .pr-poster .fine { font-size: 11pt; color: #333; margin-top: 12mm; }
  .pr-photo { display: flex; justify-content: center; gap: 6mm; margin: 6mm 0; }
  .pr-photo img { max-width: 46%; max-height: 62mm; object-fit: cover; border: 1.5pt solid #000; }
  .pr-photo img:only-child { max-width: 72%; }
  .pr-q { font-size: 12pt; margin: 0 0 4mm; }
  .pr-q .n { font-weight: 700; }
  .pr-cardgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
  table.pr-housie { border-collapse: collapse; width: 100%; margin-bottom: 4mm; }
  table.pr-housie td {
    border: 1.5pt solid #000; width: 11%; height: 13mm;
    text-align: center; font-size: 16pt; font-weight: 700;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  }
  table.pr-housie td.blank { background: #E8E8E8; }
  .pr-cardfoot { font-size: 9pt; text-align: center; margin: 0 0 2mm; }
  table.pr-caller { border-collapse: collapse; width: 100%; }
  table.pr-caller td { border: 1pt solid #999; text-align: center; font-size: 13pt; padding: 2mm; font-variant-numeric: tabular-nums; }
  .pr-tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
  .pr-ticket { border: 1.5pt dashed #000; padding: 3mm 4mm; font-size: 10pt; }
  .pr-ticket .tnum { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 14pt; }
  .pr-ticket .fill { display: block; border-bottom: 1pt solid #666; margin: 3mm 0 0; padding-bottom: 1mm; }
  .pr-runsheet h3 { font-family: "Barlow Condensed", sans-serif; font-size: 14pt; margin: 5mm 0 2mm; text-transform: uppercase; }
  .pr-runsheet ul { margin: 0 0 3mm; padding-left: 6mm; font-size: 11pt; }
  .pr-runsheet li { margin-bottom: 1.5mm; }
}

/* ---------- dashboard ---------- */
.progresswrap { margin: 6px 0 14px; }
.progressbar {
  height: 28px; border-radius: 999px; overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--edge);
  box-shadow: 2px 2px 0 var(--hard);
}
.progressbar .pfill {
  height: 100%;
  background: repeating-linear-gradient(-55deg, var(--pitch) 0 14px, var(--pitch-deep) 14px 28px);
  border-radius: 999px; min-width: 8px;
  border-right: 2px solid var(--edge);
  transition: width 0.4s ease;
}
.progressmeta {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 8px; font-size: 0.95rem; color: var(--ink-soft);
}
.progressmeta strong {
  color: var(--pitch-deep);
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic;
  font-size: 1.35rem; font-variant-numeric: tabular-nums;
}

/* first-run "Start here" checklist, above the tabs */
.starthere {
  margin: 22px 0 6px; padding: 18px 20px 8px;
  background: var(--surface);
  border: 2px solid var(--edge); border-top: 8px solid var(--pitch);
  border-radius: 14px; box-shadow: 4px 4px 0 var(--hard);
}
.starthere h2 { margin: 0 0 2px; }
.startsteps { list-style: none; margin: 10px 0 0; padding: 0; }
.startsteps li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-top: 1px dashed var(--edge);
}
.startsteps li:first-child { border-top: 0; }
.startsteps .snum {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--edge); background: var(--surface);
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic; font-size: 1.15rem;
}
.startsteps li.next .snum { background: var(--sun); }
.startsteps li.done .snum { background: var(--pitch); color: #fff; }
.startsteps li.done .sbody { opacity: 0.55; }
.startsteps li.done .sbody strong { text-decoration: line-through; }
.startsteps .sbody { flex: 1; }
.startsteps .sbody p { margin: 3px 0 0; font-size: 0.92rem; color: var(--ink-soft); max-width: none; }
.startsteps .sact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.85rem; color: var(--ink-soft); text-decoration: underline;
}
@media (max-width: 560px) {
  .startsteps li { flex-wrap: wrap; align-items: flex-start; }
  .startsteps .sact { width: 100%; flex-direction: row; justify-content: flex-start; padding-left: 48px; align-items: center; }
}

.nudges { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 8px; }
.nudge {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-left: 8px solid var(--ink-soft);
  border-radius: 12px; padding: 13px 15px;
  box-shadow: 3px 3px 0 var(--hard);
}
.nudge.pri1 { border-left-color: var(--hivis); }
.nudge.pri2 { border-left-color: var(--pitch); }
.nudge.pri3 { border-left-color: var(--sun); }
.nudge .ntag {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  color: var(--hivis-deep); white-space: nowrap; padding-top: 3px; min-width: 84px;
}
.nudge.pri2 .ntag { color: var(--pitch-deep); }
.nudge.pri3 .ntag { color: var(--ink-soft); }
.nudge .nbody { flex: 1; }
.nudge .nbody p { margin: 3px 0 0; font-size: 0.92rem; color: var(--ink-soft); max-width: none; }
.nudge .btn { align-self: center; }

.chiprow { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 10px; }
.chip {
  display: inline-block; padding: 5px 14px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface);
  font-size: 0.88rem; color: var(--ink-soft);
}
.chip.ok {
  background: var(--pitch); border-color: var(--edge); color: var(--btn-ink);
  box-shadow: 2px 2px 0 var(--hard);
  transform: rotate(-1.5deg);
}

.logform {
  display: grid; grid-template-columns: 110px 1fr 150px; gap: 10px;
  align-items: end;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: 12px; padding: 16px;
  box-shadow: 3px 3px 0 var(--hard);
}
.logform label { display: flex; flex-direction: column; gap: 4px; }
.logform label.wide { grid-column: 1 / 3; }
.logform label span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.logform input, .logform select {
  padding: 8px 10px; border: 2px solid var(--line); border-radius: 8px;
  background: var(--ground); color: var(--ink); font: inherit; font-size: 0.95rem;
}
.logform .btn { justify-self: start; }
@media (max-width: 560px) {
  .logform { grid-template-columns: 1fr 1fr; }
  .logform label.wide { grid-column: 1 / -1; }
}

.loglist { margin-top: 14px; border-top: 2px solid var(--line); }
.logrow {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.logrow .wk { min-width: 92px; color: var(--ink-soft); font-size: 0.88rem; }
.logrow .src { flex: 1; }
.logrow .amt {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic;
  font-size: 1.15rem; font-variant-numeric: tabular-nums;
  color: var(--pitch-deep); white-space: nowrap;
}
.logdel {
  border: none; background: none; color: var(--ink-soft); font-size: 1.1rem;
  cursor: pointer; padding: 2px 6px; border-radius: 6px; line-height: 1;
}
.logdel:hover { color: var(--hivis); background: var(--hivis-soft); }

.synccard { margin-top: 28px; }
.synccard h3 { margin-top: 0; }

.checkcount {
  font-family: "Public Sans", sans-serif; font-weight: 600; font-size: 0.82rem;
  color: var(--ink-soft); margin-left: 8px; letter-spacing: 0; text-transform: none;
}
.checklist { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.checkstep {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 9px 12px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 0.95rem; line-height: 1.45;
  transition: border-color 0.1s ease;
}
.checkstep:hover { border-color: var(--edge); }
.checkstep input { margin-top: 3px; accent-color: var(--pitch); flex-shrink: 0; width: 17px; height: 17px; }
.checkstep.done { background: var(--pitch-soft); border-color: var(--pitch); }
.checkstep.done span { text-decoration: line-through; color: var(--ink-soft); }
