/* Squared Away Boat Check (by Hartshorne Marine) - mobile first. Navy/gold palette shared with hartshornemarine.com */
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('../fonts/SourceSans3-VariableFont_wght.ttf') format('truetype'); font-weight: 200 900; font-display: swap; }

:root {
  --navy: #0b2340; --navy-2: #13345c; --gold: #c8912e; --gold-2: #e0b25a;
  --sand: #f5efe3; --sea: #0e6e8c; --ink: #1b2430; --muted: #5d6b7a; --line: #dcd3c2;
  --red: #c62828; --red-bg: #fdecec; --amber: #b26a00; --amber-bg: #fff4e0; --green: #2e7d32; --green-bg: #e8f5e9;
  --radius: 14px; --tap: 64px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--sand); color: var(--ink); font: 17px/1.4 'Source Sans 3', system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
h1, h2, h3, .serif { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--navy); font-weight: 700; margin: .2em 0 .4em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; }
a { color: var(--sea); }

#topbar { position: sticky; top: 0; z-index: 10; background: var(--navy); padding: calc(env(safe-area-inset-top) + 8px) 14px 8px; display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--gold); }
#topbar .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
#topbar .brand img { height: 34px; width: 34px; display: block; }
#topbar .wm { display: flex; flex-direction: column; line-height: 1; }
#topbar .wm b { font-family: 'Cormorant Garamond', Georgia, serif; color: #fff; font-size: 1.32rem; font-weight: 700; }
#topbar .wm small { color: var(--gold-2); font-size: .62rem; font-weight: 700; letter-spacing: .22em; margin-top: 2px; }
.rbrand { display: flex; align-items: center; gap: 10px; }
.rbrand img { width: 46px; height: 46px; }
.rbrand .wm b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; color: var(--navy); font-size: 1.5rem; line-height: 1; }
.rbrand .wm small { color: var(--gold); font-weight: 700; letter-spacing: .2em; font-size: .7rem; }
.credit { color: var(--muted); font-size: .8rem; }
.netstate { color: var(--gold-2); font-size: .8rem; }
main { padding: 14px 14px 140px; max-width: 640px; margin: 0 auto; }

.card { background: #fff; border-radius: var(--radius); padding: 14px; margin: 0 0 12px; box-shadow: 0 1px 3px rgba(11,35,64,.12); }
.muted { color: var(--muted); font-size: .9rem; }
.small { font-size: .82rem; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

label { display: block; font-weight: 600; margin: 10px 0 4px; color: var(--navy); }
input, select, textarea { width: 100%; font: inherit; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; min-height: 50px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea); }
textarea { min-height: 90px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: var(--tap); border: 0; border-radius: var(--radius); font: 700 1.1rem 'Source Sans 3', sans-serif; cursor: pointer; text-decoration: none; padding: 0 14px; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-ok { background: var(--green); color: #fff; }
.btn-defect { background: var(--red); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-sm { min-height: 48px; font-size: .95rem; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.btn-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 8px; }

/* Walkaround item screen */
.walk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.zone-name { font: 700 1rem 'Source Sans 3'; color: var(--sea); text-transform: uppercase; letter-spacing: .06em; }
.progress { height: 8px; background: #e6dfd1; border-radius: 4px; overflow: hidden; margin: 6px 0 12px; }
.progress > i { display: block; height: 100%; background: var(--gold); }
.item-name { font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; line-height: 1.05; color: var(--navy); margin: 4px 0 6px; font-weight: 700; }
.photo-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; border: 3px dashed var(--sea); border-radius: var(--radius); background: #eef6f9; color: var(--sea); font-weight: 700; font-size: 1.25rem; cursor: pointer; text-align: center; }
.photo-btn .ico { font-size: 2.6rem; line-height: 1; }
.photo-btn input { display: none; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 0; }
.thumbs img { height: 110px; border-radius: 10px; border: 2px solid var(--line); }
.ocr-state { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.from-photo { border-color: var(--sea) !important; background: #f0f8fb; }
details.ocr-raw summary { color: var(--muted); font-size: .85rem; cursor: pointer; margin-top: 6px; }
details.ocr-raw pre { white-space: pre-wrap; font-size: .8rem; background: #f7f4ee; padding: 8px; border-radius: 8px; }

.req { border-left: 6px solid var(--sea); background: #f2f8fa; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.req.verify { border-color: var(--amber); background: var(--amber-bg); }
.req.short { border-color: var(--red); background: var(--red-bg); }
.req.met { border-color: var(--green); background: var(--green-bg); }
.req .lbl { font-weight: 800; color: var(--navy); }
.req .src { font-size: .78rem; color: var(--muted); }
.stepper { display: grid; grid-template-columns: 64px 1fr 64px; gap: 8px; align-items: center; margin-top: 8px; }
.stepper button { min-height: 56px; font-size: 1.6rem; border-radius: 12px; border: 2px solid var(--navy); background: #fff; color: var(--navy); }
.stepper input { text-align: center; font-size: 1.5rem; font-weight: 700; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .02em; }
.b-expired, .b-defect, .b-short { background: var(--red); color: #fff; }
.b-amber { background: var(--amber); color: #fff; }
.b-green, .b-ok { background: var(--green); color: #fff; }
.b-skip, .b-nf { background: #8a94a0; color: #fff; }
.b-verify { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber); }

.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(245,239,227,.97); padding: 10px 14px calc(env(safe-area-inset-bottom) + 10px); border-top: 1px solid var(--line); z-index: 9; }
.bottom-bar .inner { max-width: 640px; margin: 0 auto; }
.bottom-bar .btn-row { margin-top: 0; }
.bottom-bar .btn-row3 .btn { min-height: 44px; font-size: .9rem; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: #fff; border-radius: 12px; padding: 10px; text-align: center; box-shadow: 0 1px 3px rgba(11,35,64,.1); }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; }
.stat.red b { color: var(--red); } .stat.amber b { color: var(--amber); } .stat.green b { color: var(--green); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #eee5d6; }
.list li:last-child { border-bottom: 0; }
.list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.disclaimer { font-size: .82rem; color: var(--amber); background: var(--amber-bg); border-radius: 10px; padding: 10px; }

/* Template editor */
.tpl-item { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 8px 0; border-bottom: 1px solid #eee5d6; }
.tpl-item .ctrl { display: flex; gap: 4px; }
.tpl-item .ctrl button { min-width: 40px; min-height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 1rem; }
.chk { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; font-weight: 400; }
.chk input { width: auto; min-height: 0; }

.sig { width: 100%; height: 160px; background: #fff; border: 1.5px dashed var(--navy); border-radius: 10px; touch-action: none; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 170px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 20; display: flex; gap: 14px; align-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.toast button { background: var(--gold); color: var(--navy); border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 800; }
table.rules { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.rules td, table.rules th { border-bottom: 1px solid #eee5d6; padding: 6px 4px; vertical-align: top; text-align: left; }

/* ---------- Printable report ---------- */
.report { background: #fff; padding: 18px; border-radius: var(--radius); }
.report .rhead { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--gold); padding-bottom: 8px; margin-bottom: 10px; }
.report .rhead img { height: 54px; }
.report table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-bottom: 10px; }
.report th { background: var(--navy); color: #fff; text-align: left; padding: 5px 6px; font-weight: 600; }
.report td { border-bottom: 1px solid #e5ddcc; padding: 5px 6px; vertical-align: top; }
.report td img { width: 92px; border-radius: 4px; }
.report .kv td:first-child { color: var(--muted); width: 38%; }
.report .sigimg { height: 70px; border-bottom: 1px solid #999; }
.no-print { }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 11pt; }
  #topbar, .bottom-bar, .no-print, .toast { display: none !important; }
  main { padding: 0; max-width: none; }
  .report { padding: 0; box-shadow: none; }
  .report tr { page-break-inside: avoid; }
  h2 { page-break-after: avoid; }
}

/* ---- master checklist response types ---- */
.answer { margin-top: 12px; }
.answer textarea, .answer input { font-size: 1.15rem; }
.numrow { display: flex; gap: 8px; align-items: center; }
.numrow input { font-size: 1.6rem; font-weight: 700; text-align: center; }
.numrow select { width: 90px; font-size: 1.2rem; }
.numrow .unit { font-size: 1.3rem; font-weight: 700; color: var(--sea); min-width: 48px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.quick button { flex: 1 0 48px; min-height: 52px; border-radius: 10px; border: 2px solid var(--sea); background: #fff; color: var(--sea); font-size: 1.2rem; font-weight: 700; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { min-height: 62px; border-radius: var(--radius); border: 2px solid var(--navy); background: #fff; color: var(--navy); font-size: 1.2rem; font-weight: 700; text-align: left; padding: 10px 16px; }
.choice.sel { background: var(--navy); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: inline-flex; margin: 0; }
.chip input { display: none; }
.chip span { display: inline-block; padding: 8px 12px; border-radius: 20px; border: 2px solid var(--sea); color: var(--sea); background: #fff; font-weight: 600; font-size: .95rem; }
.chip input:checked + span { background: var(--sea); color: #fff; }
.count-box { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #eef6f9; border-left: 5px solid var(--sea); }
.count-box b { font-size: 1.4rem; color: var(--navy); }
.photo-req { color: var(--red); }
.photo-btn.small-photo { min-height: 64px; font-size: 1rem; border-width: 2px; }
.photo-btn.small-photo .ico { font-size: 1.4rem; }
.btn.needs-photo { opacity: .55; }
.btn small { font-weight: 400; font-size: .8rem; opacity: .85; margin-left: 4px; }
.shake { animation: shake .5s; border-color: var(--red); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.req + .req { margin-top: 8px; }
.btn-row.one { grid-template-columns: 1fr; display: grid; }
.btn-row.one .btn { width: 100%; }
/* Australian Sailing category lines and audit report */
.req.as { border-left-color: var(--navy); background: #f3f4fa; }
.req.as.short { border-color: var(--red); background: var(--red-bg); }
.req.as.met { border-color: var(--green); background: var(--green-bg); }
.audit-t td.reg { white-space: nowrap; font-weight: 700; }
.audit-t tr.sec td { background: #eef1f6; }
.aud { white-space: nowrap; }
.aud-b { min-width: 34px; min-height: 30px; margin: 1px; border: 1px solid #c9d1dc; border-radius: 6px; background: #fff; font-weight: 700; font-size: .78rem; color: var(--muted); }
.aud-b.sel.C { background: var(--green); color: #fff; border-color: var(--green); }
.aud-b.sel.NC { background: var(--red); color: #fff; border-color: var(--red); }
.aud-b.sel.NA { background: #6b7685; color: #fff; border-color: #6b7685; }
.report.audit input { min-height: 36px; padding: 6px 8px; }
@media print {
  .aud-b:not(.sel) { display: none; }
  .aud-b.sel { border: 0; background: none !important; color: #000 !important; padding: 0; }
  .aud-b.sel.NC { color: #c00 !important; }
  .report.audit input { border: 0; padding: 0; }
}
@media screen { .report.audit .audit-t { display: block; overflow-x: auto; } }

/* equipment plan (setup) */
.plan .planrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #e6ebf0; }
.plan .pl { flex: 1; font-size: .95rem; }
.mini-step { display: inline-flex; align-items: center; gap: 6px; }
.mini-step button { width: 40px; height: 36px; border-radius: 8px; border: 1px solid #c9d3dd; background: #fff; font-size: 1.2rem; font-weight: 700; }
.mini-step b { min-width: 22px; text-align: center; }
.planlabels { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; }
.planlabels input { flex: 1 1 140px; min-height: 38px; padding: 6px 8px; }
/* certified / dated item screen */
.certform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.certform .cf label { font-size: .82rem; margin: 0 0 2px; }
.certform .cf input, .certform .cf select { min-height: 42px; }
.certform .cf-due { grid-column: 1 / -1; }
.certform .from-photo { background: #fff6d6; border-color: #e0b100; }
.req.cert { border-left-color: #6b7c8f; }
table.certs img { max-width: 70px; max-height: 70px; }
.scope-warn { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #fff3d6; border: 1px solid #e0a800; color: #5a4300; font-size: .92rem; }
ul.thresh { margin: 4px 0 0; padding-left: 18px; }
ul.thresh li { margin: 3px 0; }
.modepick { display: grid; gap: 8px; margin-bottom: 8px; }
.modeopt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 2px solid #c9d6df; background: #fff; margin: 0; font-weight: 400; cursor: pointer; }
.modeopt input { margin-top: 3px; width: 22px; height: 22px; flex: none; }
.modeopt:has(input:checked) { border-color: var(--sea); background: #eef6fa; }
.free-card { border: 2px solid var(--gold, #c8962e); }
.planbadge { margin-left: auto; margin-right: 8px; background: #c8962e; color: #0b2340; font-weight: 800; font-size: .75rem; padding: 3px 8px; border-radius: 10px; text-decoration: none; }
.teaser .stats { margin: 0; }
.ub { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.ub small { font-weight: 600; font-size: .78rem; opacity: .85; margin-top: 2px; }
.rbrand { flex: none; }
.rbrand .wm b, .rbrand .wm small { white-space: nowrap; }
.rbrand .wm b { font-size: 1.3rem; }
.rbrand .wm small { letter-spacing: .14em; font-size: .62rem; }
.paywall { position: fixed; inset: 0; z-index: 50; background: rgba(11,35,64,.55); display: flex; align-items: flex-end; justify-content: center; }
.pw-card { background: #fff; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; border-top: 4px solid var(--gold); }
.pw-plan { display: block; width: 100%; text-align: left; margin: 10px 0; padding: 14px; border-radius: 12px; border: 2px solid var(--navy); background: #fff; font: inherit; color: var(--navy); cursor: pointer; }
.pw-plan b { display: block; font-size: 1.08rem; }
.pw-plan span { display: block; font-size: .88rem; color: var(--muted); margin-top: 3px; }
#buyAnnual { border-color: var(--gold); background: #fff8ea; }
.pw-legal { margin-top: 12px; }

/* Benchmark, not law (e.g. AU-flagged yacht outside Australia: state of registration rules) */
.b-bench { background: #eef3fb; color: #1f3a68; border: 1px dashed #1f3a68; }
.benchtxt { color: #1f3a68; }
.req.benchmark { border-style: dashed; }
.req.below { border-color: #1f3a68; background: #eef3fb; }
.stat.bench b { color: #1f3a68; }
.card.bench { border: 1px dashed #1f3a68; }

/* Destination arrival checklist */
.b-dest { background: #e6f2ef; color: #1d5c50; border: 1px solid #1d5c50; }
.req.dest { border-color: #1d5c50; background: #f1f8f6; }
.arr-h { margin: 16px 0 6px; }
.arr-list { list-style: none; padding: 4px 12px; margin: 0 0 8px; }
.arr-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e3e7ec; }
.arr-line:last-child { border-bottom: 0; }
.arr-line.done .arr-text { color: #6b7785; }
.arr-line.done { opacity: .85; }
.arr-line.overdue { background: var(--red-bg); }
.arr-line.check, .arr-line.inconsistent { border-left: 4px solid var(--amber); padding-left: 8px; }
.arr-tick input { width: 28px; height: 28px; margin-top: 2px; }
.arr-body { flex: 1; }
.arr-body .src { margin-top: 4px; }
.arr-due { color: var(--navy, #0b2340); }
.arr-na { margin: 0 0 6px; }
.arr-table td, .arr-table th { vertical-align: top; }
.arr-table tr.overdue td { background: var(--red-bg); }
.arr-table { table-layout: fixed; width: 100%; }
.arr-table td { overflow-wrap: anywhere; }

/* New vessel: step-by-step setup */
.steps { list-style: none; display: flex; gap: 4px; padding: 0; margin: 4px 0 12px; }
.steps li { flex: 1; text-align: center; cursor: pointer; color: var(--muted, #6b7a89); }
.steps li span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 auto 2px; border-radius: 50%; border: 2px solid #c9d6df; background: #fff; font-weight: 700; }
.steps li small { display: block; font-size: .68rem; line-height: 1.1; }
.steps li.on span { background: var(--navy, #0b2340); border-color: var(--navy, #0b2340); color: #fff; }
.steps li.on { color: var(--navy, #0b2340); font-weight: 700; }
.steps li.done span { background: var(--gold, #c8912e); border-color: var(--gold, #c8912e); color: #fff; }
.step h2 { margin-top: 0; }
.subcard { border: 1px solid #c9d6df; border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: #fbfaf6; }
.subcard h3 { font-size: 1.05rem; }
.cfields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.stepnav { position: sticky; bottom: 0; background: #fff; padding: 10px 0 4px; margin-top: 14px; }
.setup-thumb { display: block; max-width: 160px; max-height: 120px; border-radius: 8px; margin: 6px 0; object-fit: cover; }
.photo-btn { display: inline-block; }
.domestic-note { margin-top: 8px; }
.report img.boatimg { max-width: 220px; max-height: 160px; }
.comms .row select { min-width: 9.5em; }
.comms .row > span { flex: 0 0 auto !important; }
.mini-step.derived b { padding: 0 14px; }

/* ---------- Work & Rest Hours ---------- */
.wr-card { display: block; text-decoration: none; color: inherit; }
.wr-chips { display: grid; gap: 8px; }
.wr-good { color: #1d7a3a; font-weight: 700; } .wr-bad { color: #b3261e; font-weight: 700; } .wr-sus { color: #8a5a00; }
.wr-breaches > div { padding: 6px 0; border-bottom: 1px solid #eee; } .wr-breaches > div:last-child { border: 0; }
.wr-week { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; text-align: center; margin: 8px 0; } .wr-week .btn { width: auto; }
.wr-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wr-grid { border-collapse: collapse; font-size: .72rem; touch-action: none; user-select: none; -webkit-user-select: none; background: #fff; }
.wr-grid th { font-weight: 600; padding: 2px; border: 1px solid #9aa7b6; color: var(--navy); }
.wr-grid td { border: 1px solid #c3ccd6; padding: 2px 3px; white-space: nowrap; }
.wr-grid td.wr-c { width: 13px; min-width: 13px; height: 30px; padding: 0; cursor: pointer; }
.wr-grid td.wr-half { border-left: 1px dotted #c3ccd6; } .wr-grid td.wr-c:not(.wr-half) { border-left: 1px solid #7d8b9b; }
.wr-grid .wr-q { border-left: 2px solid var(--navy) !important; }
.wr-grid td.w { background: var(--navy); } .wr-grid td.u { background: repeating-linear-gradient(45deg, #f4f6f8, #f4f6f8 3px, #e8ecf0 3px, #e8ecf0 6px); }
.wr-grid tr.wr-badrow td.wr-day, .wr-grid tr.wr-badrow td.wr-n { background: #fde3e1; color: #b3261e; font-weight: 700; }
.wr-grid tr.wr-susp td.wr-day { background: #fff1d6; }
.wr-grid .wr-n { text-align: right; font-variant-numeric: tabular-nums; }
.wr-note { font: inherit; border: 1px solid #9aa7b6; background: #fff; border-radius: 4px; padding: 3px 6px; }
.wr-pad { width: 100%; height: 90px; border: 1px dashed #9aa7b6; border-radius: 6px; touch-action: none; background: #fafbfc; margin-top: 6px; }
.wr-signed img { max-height: 60px; } .wr-typed { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.5rem; }
.wr-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; } .wr-check input { width: auto; margin-top: 4px; }
.wr-sum { border-collapse: collapse; width: 100%; } .wr-sum th, .wr-sum td { border-bottom: 1px solid #e3e7ec; padding: 6px; text-align: left; font-size: .9rem; }
.wr-qr { text-align: center; } .wr-qr svg { width: 100%; max-width: 360px; height: auto; }
.wr-page { background: #fff; padding: 10px; margin: 0 0 16px; font-size: 11px; }
.wr-ph { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--navy); margin-bottom: 6px; } .wr-ph b { font-size: 1.3rem; color: var(--navy); }
.wr-hdr { border-collapse: collapse; width: 100%; margin: 4px 0; } .wr-hdr th, .wr-hdr td { border: 1px solid #7d8b9b; padding: 4px 6px; text-align: left; } .wr-hdr th { width: 18%; background: #f0f3f6; }
.wr-hdr td { height: 22px; } .wr-sig td { height: 48px; } .wr-sig img { max-height: 44px; }
.wr-key { margin: 4px 0; }
.wr-pgrid { width: 100%; table-layout: fixed; font-size: 9px; } .wr-pgrid td.wr-c { height: 22px; width: auto; min-width: 0; cursor: default; }
.wr-pgrid td.w { background: #fff; } .wr-pgrid td.x { background: #c9d2dc; } .wr-pgrid td.x::after { content: 'X'; display: block; text-align: center; font-weight: 700; color: var(--navy); }
.wr-pgrid td.u { background: #fff; } .wr-pgrid .wr-pn { white-space: normal; width: 17%; font-size: 8.5px; }
.wr-pgrid th { white-space: normal; font-size: 8px; } .wr-pgrid td { padding: 1px 2px; } .wr-pgrid td.x::after { font-size: 7px; }
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body.wr-printing #topbar, body.wr-printing .wr-noprint, body.wr-printing #toast { display: none !important; }
  body.wr-printing { background: #fff; } body.wr-printing #app { padding: 0; max-width: none; }
  .wr-page { page-break-after: always; break-after: page; margin: 0; padding: 0; } .wr-page:last-child { page-break-after: auto; }
  .wr-pgrid td.x { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
body.wr-printing main { max-width: 1120px; }
/* Work & Rest v2: short breaks, clock changes, watch alarm */
.wr-grid td.wr-c.sb, .wr-key-sb { background: repeating-linear-gradient(90deg, #0b2340 0 2px, #e0b25a 2px 4px) !important; }
.wr-grid td.wr-c.sk, .wr-key-sk { background: repeating-linear-gradient(-45deg, #fff 0 2px, #9aa7b6 2px 3px) !important; }
.wr-key-sb, .wr-key-sk { display: inline-block; width: 14px; height: 10px; vertical-align: middle; border: 1px solid #9aa7b6; }
.wr-pgrid td.x.sb::after { content: 'b'; }
.wr-wev td { font-size: 9px; padding: 2px 6px; height: auto !important; }
.wr-sigsvg { height: 34px; width: 140px; vertical-align: middle; }
.wr-watch { text-align: center; } .wr-cd { font: 700 3.2rem 'Source Sans 3', sans-serif; color: var(--navy); margin: 8px 0; }
.wr-awake { background: var(--gold); color: var(--navy); min-height: 140px; font-size: 2rem; margin-top: 10px; }
body.wr-flash { animation: wrflash .5s steps(1) infinite; } @keyframes wrflash { 50% { background: #b3261e; } }
body.wr-flash .wr-cd { color: #b3261e; }
details summary { cursor: pointer; padding: 4px 0; }
.wr-promo { position: relative; border-left: 4px solid var(--gold); } .wr-promo ul { margin: 6px 0 4px 18px; padding: 0; } .wr-promo li { margin: 3px 0; }
.wr-promo .wr-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; font-size: 1.4rem; color: var(--navy); cursor: pointer; }
.wr-wev { page-break-inside: auto; } .wr-sig { page-break-inside: avoid; }
