/* The 3-Day Kit Planner — screen styles */

@font-face { font-family: "Anton"; src: url("../fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --yellow: #FDEB13;
  --black: #111111;
  --red: #CD2026;
  --red-dark: #A3161B;
  --bg: #F7F6EF;
  --surface: #FFFFFF;
  --text: #111111;
  --muted: #3A3A3A;
  --border: #C9C7BA;
  --strong-bg: #111111;
  --strong-text: #FDEB13;
  --tile-bg: #FFFFFF;
  --done-bg: #EEF5E9;
  --done-border: #2F6B1F;
  --radius: 12px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  color-scheme: light;
}

html.ts-normal { font-size: 118.75%; } /* 19px */
html.ts-large  { font-size: 137.5%; }  /* 22px */
html.ts-xl     { font-size: 162.5%; }  /* 26px */

html.lowbattery {
  --bg: #000000;
  --surface: #000000;
  --text: #F2F2F2;
  --muted: #D0D0D0;
  --border: #5A5A5A;
  --strong-bg: #000000;
  --strong-text: #FDEB13;
  --tile-bg: #000000;
  --done-bg: #0B1A08;
  --done-border: #8CCB6E;
  color-scheme: dark;
}
html.lowbattery *, html.lowbattery *::before, html.lowbattery *::after { transition: none !important; animation: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
img, svg { max-width: 100%; }
p, ul, ol { margin: 0 0 0.8em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h2 { font-size: 1.3rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
cite { font-style: italic; }
strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: 50rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Focus: a double ring visible on yellow, white and black */
:focus { outline: none; }
:focus-visible { outline: 3px solid transparent; box-shadow: 0 0 0 3px var(--yellow), 0 0 0 6px var(--black); border-radius: 6px; }
html.lowbattery :focus-visible { box-shadow: 0 0 0 3px var(--black), 0 0 0 6px var(--yellow); }
main:focus-visible, h1:focus-visible, [tabindex="-1"]:focus-visible { box-shadow: none; outline: 2px dashed currentColor; outline-offset: 4px; }

.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--yellow); color: var(--black); padding: 12px 16px; font-weight: 600; border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* 999 bar — always visible */
.sos-bar { background: var(--red); color: #fff; position: sticky; top: 0; z-index: 50; font-size: 19px; }
html.ts-xl .sos-bar, html.ts-large .sos-bar { font-size: 21px; }
.sos-inner { display: flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 56px; font-weight: 600; flex-wrap: nowrap; white-space: nowrap; }
.sos-text { font-size: 1em; }
.sos-call { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 72px; padding: 0 0.8em; background: #fff; color: var(--red-dark); border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1.15em; letter-spacing: 0.05em; }
.sos-call:hover { background: var(--yellow); color: var(--black); }

/* Header */
.site-header { background: var(--strong-bg); color: #fff; border-bottom: 4px solid var(--yellow); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 0.6rem; padding-bottom: 0.4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; min-height: 48px; }
.brand-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--yellow); color: var(--black); font-family: var(--font-title); font-size: 1.4rem; line-height: 1; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-label); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--yellow); line-height: 1.15; }
.brand-sub { font-size: 0.8rem; color: #F2F2F2; }
.textsize { display: flex; align-items: center; gap: 0.25rem; }
.ts-label { font-family: var(--font-label); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: #F2F2F2; margin-right: 0.2rem; }
.ts-btn { min-width: 48px; min-height: 48px; border-radius: 10px; border: 2px solid #8A8A8A; background: transparent; color: #fff; font-weight: 600; cursor: pointer; line-height: 1; padding: 0; }
.ts-btn-1 { font-size: 16px; }
.ts-btn-2 { font-size: 21px; }
.ts-btn-3 { font-size: 26px; }
.ts-btn[aria-pressed="true"] { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

.nav-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.8rem; padding-bottom: 0.6rem; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 48px; padding: 0 1rem; border-radius: var(--radius); background: var(--yellow); color: var(--black); font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: ""; width: 1.1em; height: 0.85em; background: linear-gradient(currentColor 0 0) top / 100% 3px no-repeat, linear-gradient(currentColor 0 0) center / 100% 3px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 3px no-repeat; }
.menu[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.menu-list { list-style: none; margin: 0; padding: 0.3rem 0; position: absolute; left: 0; top: 100%; z-index: 40; min-width: min(16rem, calc(100vw - 32px)); max-width: calc(100vw - 32px); background: var(--surface); color: var(--text); border: 3px solid var(--black); border-radius: 0 var(--radius) var(--radius) var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
html.lowbattery .menu-list { border-color: var(--yellow); }
.menu-list a { display: flex; align-items: center; min-height: 48px; padding: 0.4rem 1rem; text-decoration: none; font-weight: 600; }
.menu-list a:hover, .menu-list a[aria-current="page"] { background: var(--yellow); color: var(--black); }
.nav-cards { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1rem; border-radius: var(--radius); border: 2px solid var(--yellow); color: var(--yellow); font-weight: 600; text-decoration: none; }
.nav-cards:hover, .nav-cards[aria-current="page"] { background: var(--yellow); color: var(--black); }
.offline-badge { display: inline-flex; align-items: center; min-height: 32px; padding: 0.1rem 0.7rem; border-radius: 999px; background: #1F4D14; color: #fff; font-family: var(--font-label); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; }

.sample-banner { background: var(--yellow); color: var(--black); text-align: center; font-weight: 600; padding: 0.4rem 16px; border-bottom: 2px solid var(--black); }

main { display: block; padding: 1.4rem 0 2.5rem; }
main:focus { outline: none; }
.loading { color: var(--muted); }

/* Footer */
.site-footer { background: var(--strong-bg); color: #F2F2F2; padding: 1.4rem 0 2rem; font-size: 0.9rem; border-top: 4px solid var(--yellow); }
.site-footer a { color: var(--yellow); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; }
.print-book-line, #print-root { display: none; }

/* Titles */
.page-title { font-family: var(--font-title); font-weight: 400; font-size: 2.1rem; letter-spacing: 0.01em; line-height: 1.1; margin: 0 0 0.6rem; display: flex; align-items: center; gap: 0.6rem; text-transform: uppercase; }
.title-icon { width: 1.4em; height: 1.4em; flex: none; padding: 0.2em; border-radius: 10px; background: var(--yellow); color: var(--black); stroke-width: 2.2; }
.hero { background: var(--yellow); color: var(--black); border-radius: var(--radius); padding: 1.3rem 1.2rem 1.1rem; margin-bottom: 1rem; border: 3px solid var(--black); }
.hero-title { font-size: 2.6rem; margin-bottom: 0.3rem; }
.hero-sub { font-size: 1.15rem; font-weight: 600; margin: 0; }
.lead { font-size: 1.1rem; }
.lead-small { font-size: 1rem; }
.muted { color: var(--muted); }
.sub-h { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem; margin: 1rem 0 0.5rem; }
.mini-h { font-weight: 600; margin: 0.6rem 0 0.2rem; }
.pre { white-space: pre-line; }
.plain-list { padding-left: 1.3rem; }
.plain-list li { margin-bottom: 0.3rem; }

/* Panels and notices */
.panel { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1rem; margin: 0 0 1.1rem; }
.panel > h2 { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.panel > h2 .icon { flex: none; }
.notice { border-radius: var(--radius); padding: 0.9rem 1rem; margin: 0 0 1rem; border: 2px solid var(--black); background: var(--surface); }
html.lowbattery .notice { border-color: var(--yellow); }
.notice.calm { border-left-width: 10px; border-left-color: var(--yellow); }
.notice p:last-child { margin-bottom: 0; }
.sos-notice { border-color: var(--red); border-left-width: 10px; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: space-between; }
.sos-notice p { margin: 0; }
.status { min-height: 1.5em; font-weight: 600; margin: 0.4rem 0; }
.status:empty { min-height: 0; margin: 0; }
.empty { color: var(--muted); font-style: italic; }
.step-no { display: inline-block; font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; background: var(--black); color: var(--yellow); padding: 0.15rem 0.6rem; border-radius: 6px; }
html.lowbattery .step-no { background: var(--yellow); color: var(--black); }

/* Buttons: big, rounded, icon + word */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; padding: 0.55rem 1.1rem; border-radius: var(--radius); border: 3px solid var(--black); font-weight: 600; font-size: 1rem; line-height: 1.25; text-decoration: none; cursor: pointer; text-align: left; max-width: 100%; }
.btn .icon { flex: none; width: 1.2em; height: 1.2em; }
.btn-primary { background: var(--black); color: var(--yellow); }
.btn-primary:hover { background: #2B2B2B; }
.btn-secondary { background: var(--yellow); color: var(--black); }
.btn-secondary:hover { background: #FFF27A; }
.btn-quiet { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn-quiet:hover { background: var(--yellow); color: var(--black); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red-dark); }
.btn-danger:hover { background: var(--red-dark); }
html.lowbattery .btn-primary { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
html.lowbattery .btn-secondary { background: #000; color: var(--yellow); border-color: var(--yellow); }
html.lowbattery .btn-quiet { border-color: #F2F2F2; }
.btn[aria-pressed="true"] { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.chip { min-height: 48px; padding: 0.3rem 1rem; border-radius: 999px; border: 2px solid var(--text); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--black); color: var(--yellow); border-color: var(--black); }
html.lowbattery .chip[aria-pressed="true"] { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.icon { width: 1.25em; height: 1.25em; vertical-align: middle; }

/* Forms */
.field { margin: 0 0 1rem; }
.field label, .stepper-label, .setting-label, .filter-label { display: block; font-family: var(--font-label); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; margin-bottom: 0.25rem; }
.hint { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.35rem; }
.field-error { color: var(--red-dark); font-weight: 600; margin: 0.3rem 0 0; }
.field-error:empty { display: none; }
html.lowbattery .field-error { color: #FF8A8E; }
input[type="text"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; min-height: 52px; padding: 0.5rem 0.75rem; border: 2px solid var(--text); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 1rem;
}
textarea { min-height: 6rem; resize: vertical; }
input[aria-invalid="true"] { border-color: var(--red); border-width: 3px; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.field-row .field { flex: 1 1 10rem; min-width: 0; }

/* Code card */
.code-card { border: 3px solid var(--black); }
html.lowbattery .code-card { border-color: var(--yellow); }
.code-card h2 { font-size: 1.2rem; }
.code-form { display: flex; flex-wrap: wrap; gap: 0 0.8rem; align-items: flex-start; }
.code-form .field { flex: 1 1 12rem; min-width: 0; }
.code-form .btn { margin-top: 1.7rem; }
#code-input { text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; }
.unlocked-note { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }

/* Home */
.start-here { display: flex; align-items: center; gap: 0.8rem; padding: 1rem; margin: 0 0 1.1rem; border-radius: var(--radius); background: var(--black); color: #fff; text-decoration: none; border: 3px solid var(--black); }
.start-here strong { color: var(--yellow); display: block; }
.start-here > .icon { width: 2.2rem; height: 2.2rem; flex: none; color: var(--yellow); }
.start-here > span { flex: 1 1 auto; min-width: 0; }
html.lowbattery .start-here { border-color: var(--yellow); background: #000; }
.tiles { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.8rem; }
.tile { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; padding: 1rem; border-radius: var(--radius); border: 3px solid var(--black); background: var(--tile-bg); text-decoration: none; color: var(--text); }
html.lowbattery .tile { border-color: #8A8A8A; }
.tile:hover { background: var(--yellow); color: var(--black); }
.tile-icon { width: 2.6rem; height: 2.6rem; padding: 0.4rem; border-radius: 10px; background: var(--yellow); color: var(--black); margin-bottom: 0.3rem; }
.tile-name { font-family: var(--font-label); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }
.tile-desc { font-size: 0.95rem; }
.tile-lock, .tile-open { margin-top: auto; padding-top: 0.4rem; display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-label); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tile-lock .icon { width: 1em; height: 1em; }
.a2hs h2 { font-size: 1.15rem; }
.home-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.home-links a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 48px; font-weight: 600; }

/* Steppers */
.stepper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.6rem 1rem; }
.stepper { margin-bottom: 0.4rem; }
.stepper-controls { display: flex; align-items: stretch; gap: 0.4rem; }
.step-btn { flex: none; width: 52px; min-height: 52px; border-radius: var(--radius); border: 3px solid var(--black); background: var(--yellow); color: var(--black); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.step-btn .icon { width: 1.4rem; height: 1.4rem; stroke-width: 3; }
.step-input { width: 5rem !important; flex: 0 1 5rem; text-align: center; font-weight: 600; font-size: 1.15rem !important; min-width: 0; -moz-appearance: textfield; appearance: textfield; }
.step-input::-webkit-outer-spin-button, .step-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bag-stepper { margin-bottom: 1rem; }

/* Lists of items */
.totals { background: var(--yellow); color: var(--black); border-radius: var(--radius); padding: 1rem; margin: 0 0 1rem; border: 3px solid var(--black); }
.total-big { font-size: 1.3rem; margin-bottom: 0.3rem; }
.total-big strong { font-size: 1.5rem; }
.water-note { font-size: 0.95rem; }
.progress { font-weight: 600; margin-bottom: 0; }
.cat { margin-top: 1.2rem; }
.cat-h { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.2rem; border-bottom: 3px solid var(--text); padding-bottom: 0.3rem; }
.cat-h .icon { flex: none; width: 1.6rem; height: 1.6rem; }
.cat-done { margin-left: auto; display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.9rem; color: var(--done-border); }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: flex-start; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.item-main { flex: 1 1 14rem; min-width: 0; }
.item-name { font-weight: 600; font-size: 1.05rem; margin: 0 0 0.15rem; }
.item-qty { font-weight: 600; margin: 0 0 0.3rem; }
.qty-none { color: var(--muted); font-weight: 500; font-style: italic; }
.qty-text { font-weight: 500; }
.item-note { font-size: 0.92rem; margin: 0 0 0.2rem; color: var(--muted); }
.item-ch { font-family: var(--font-label); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 0.4rem; }

/* Tick boxes with big tap targets */
.tick { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.2rem 0.8rem 0.2rem 0.5rem; border: 2px solid var(--text); border-radius: 10px; cursor: pointer; font-weight: 600; background: var(--surface); flex: none; }
.tick input { width: 1.6rem; height: 1.6rem; margin: 0; accent-color: #1F4D14; flex: none; cursor: pointer; }
.tick:has(input:checked) { background: var(--done-bg); border-color: var(--done-border); }
.tick-small { font-size: 0.9rem; }
.tick-wide { display: flex; width: 100%; }
.bag-items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.4rem 0.6rem; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; }
.tab { min-height: 48px; padding: 0.4rem 0.9rem; border-radius: var(--radius); border: 2px solid var(--text); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; text-align: left; max-width: 100%; }
.tab[aria-selected="true"] { background: var(--black); color: var(--yellow); border-color: var(--black); }
html.lowbattery .tab[aria-selected="true"] { background: var(--yellow); color: var(--black); }
.saved-indicator { font-weight: 600; min-height: 1.5em; color: var(--done-border); }
.fixed-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.2rem 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.fixed-label { font-weight: 600; flex: 1 1 12rem; }
.fixed-tel { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 48px; font-weight: 600; font-size: 1.1rem; }
.fixed-text { flex: 1 1 14rem; }
.bag { border: 2px solid var(--border); border-radius: var(--radius); padding: 0.8rem 1rem; margin: 0 0 1rem; min-width: 0; }
.bag legend { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; padding: 0 0.4rem; }

/* Quick Cards */
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0.8rem; }
.qcard-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; height: 100%; min-height: 8rem; padding: 1rem; border-radius: var(--radius); background: var(--black); color: #fff; text-decoration: none; border: 3px solid var(--black); }
.qcard-tile .tile-icon { width: 3.2rem; height: 3.2rem; }
.qcard-name { font-family: var(--font-label); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; color: var(--yellow); }
.qcard-tile:hover { background: #2B2B2B; }
html.lowbattery .qcard-tile { border-color: var(--yellow); }
.crumb a { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 48px; font-weight: 600; }
.sec-label { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.4rem; margin: 1.2rem 0 0.6rem; }
.steps { list-style: none; padding: 0; margin: 0; }
.step { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 0.8rem; padding: 0.8rem; border: 2px solid var(--border); border-radius: var(--radius); margin-bottom: 0.6rem; background: var(--surface); }
.step-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--yellow); color: var(--black); font-family: var(--font-title); font-size: 1.3rem; border: 2px solid var(--black); }
.step-text { flex: 1 1 12rem; margin: 0; min-width: 0; }
.steps-first .step-text { font-size: 1.15rem; font-weight: 600; }
.step.is-done { background: var(--done-bg); border-color: var(--done-border); }
.step.is-done .step-text { text-decoration: line-through; text-decoration-thickness: 2px; }
.never-box { border: 4px solid var(--red); border-radius: var(--radius); padding: 0.4rem 1rem 0.8rem; margin: 1.2rem 0; background: var(--surface); }
.never-label { color: var(--red-dark); }
html.lowbattery .never-label { color: #FF8A8E; }
.never-list { padding-left: 1.2rem; margin: 0; }
.never-list li { font-weight: 600; margin-bottom: 0.5rem; }
.call-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.call-btn { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i n" "i l"; align-items: center; column-gap: 0.8rem; padding: 0.7rem 1rem; min-height: 56px; border-radius: var(--radius); border: 3px solid var(--black); background: var(--yellow); color: var(--black); text-decoration: none; }
.call-btn .icon { grid-area: i; width: 1.6rem; height: 1.6rem; }
.call-num { grid-area: n; font-weight: 700; font-size: 1.3rem; letter-spacing: 0.03em; }
.call-label { grid-area: l; font-size: 0.95rem; }
.source-note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); font-style: italic; }

/* Reminders */
.date-list { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.date-list li { display: flex; flex-direction: column; padding: 0.5rem 0.8rem; border-left: 6px solid var(--yellow); margin-bottom: 0.5rem; background: var(--bg); }
details.how { border: 2px solid var(--border); border-radius: var(--radius); margin-bottom: 0.6rem; }
details.how summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; padding: 0.3rem 1rem; font-weight: 600; }
details.how ol { margin: 0 1rem 0.8rem; padding-left: 1.2rem; }

/* Help */
.filter { margin: 0 0 0.6rem; }
.filter-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.res-list { list-style: none; padding: 0; margin: 0; }
.res-item { padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.res-item:last-child { border-bottom: 0; }
.res-name { font-size: 1.1rem; margin-bottom: 0.3rem; }
.res-nations { font-family: var(--font-label); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.res-item .btn-row { margin: 0.4rem 0 0; }

/* Printables list and previews */
.sheet-list { list-style: none; padding: 0; margin: 0; }
.sheet-preview { margin-top: 0.6rem; border: 2px dashed var(--border); border-radius: var(--radius); padding: 0.8rem; background: #fff; color: #111; overflow-x: auto; font-size: 0.8rem; }
.sheet-preview .sheet-line { display: none; }

/* Sheets (shared by preview and print) */
.sheet h2 { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; font-size: 1.3em; margin: 0 0 0.3em; }
.sheet-intro { font-size: 0.95em; }
.sheet-table { width: 100%; border-collapse: collapse; margin: 0 0 0.8em; }
.sheet-table th, .sheet-table td { border: 1px solid #111; padding: 0.3em 0.45em; text-align: left; vertical-align: top; }
.sheet-table thead th { background: #EDEDED; font-family: var(--font-label); font-weight: 700; }
.sheet-table .group-row th { background: #F4F4F4; font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.sheet-table .tick-cell { width: 2.4em; text-align: center; }
.sheet-table.kv th { width: 42%; font-weight: 600; }
.print-note { display: block; font-size: 0.85em; font-weight: 500; }
.write-box { border: 1px solid #111; min-height: 2em; padding: 0.3em; }
.write-box.tall { min-height: 5em; }
.sheet-field-label { font-weight: 600; margin: 0.4em 0 0.2em; }
.owner-line { margin: 0.6em 0 0.3em; }
.write-line { display: inline-block; min-width: 50%; border-bottom: 1px solid #111; }
.print-ticks { list-style: none; padding: 0; columns: 2; }
.print-ticks .box { display: inline-block; width: 1.2em; height: 1.2em; border: 1px solid #111; margin-right: 0.4em; text-align: center; line-height: 1.1; vertical-align: middle; }

/* About */
.setting { margin-bottom: 1.2rem; }

/* Small screens */
@media (max-width: 480px) {
  .page-title { font-size: 1.7rem; }
  .hero-title { font-size: 2rem; }
  .ts-label { display: none; }
  .panel { padding: 0.9rem 0.8rem; }
  .btn { width: 100%; }
  .btn-row .chip { flex: 1 1 auto; }
  .code-form .btn { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .tick input, .btn, .tile { forced-color-adjust: auto; }
}
