/* Sowing planner. One working column; the week is the home screen, the plan grid is for desk work.
   Colour carries meaning: green = sow, soil brown = pot up, straw = ready; category colours mark crops. */
:root {
  --bg: #eef2ea; --surface: #ffffff; --sunk: #e3e9de; --ink: #1c2a20; --muted: #586659; --line: #d3dbcf;
  --sow: #2c6e49; --sow-soft: #dcebdf; --pot: #85582f; --pot-soft: #f1e5d7; --ready: #9a7414; --ready-soft: #f5ecd2;
  --edited: #fff4d6; --edited-line: #d9a93a; --danger: #a8352a;
  --c-summer: #c4532b; --c-cool: #2a7a8c; --c-herb: #5f7d17; --c-fruit: #7b4d9c; --rupex: #9ba49d;
  --f-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px; --r-s: 7px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121814; --surface: #1a221c; --sunk: #232d25; --ink: #e4ebe4; --muted: #9aa99d; --line: #2f3b32;
  --sow: #6cc48c; --sow-soft: #1f3527; --pot: #d49b67; --pot-soft: #3a2c1f; --ready: #e0bb55; --ready-soft: #3a321a;
  --edited: #3a3218; --edited-line: #b8913a; --danger: #ef7a6e;
  --c-summer: #f07a50; --c-cool: #4fb3c6; --c-herb: #a8c64c; --c-fruit: #b98fdc; --rupex: #5d6a61;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #121814; --surface: #1a221c; --sunk: #232d25; --ink: #e4ebe4; --muted: #9aa99d; --line: #2f3b32;
  --sow: #6cc48c; --sow-soft: #1f3527; --pot: #d49b67; --pot-soft: #3a2c1f; --ready: #e0bb55; --ready-soft: #3a321a;
  --edited: #3a3218; --edited-line: #b8913a; --danger: #ef7a6e;
  --c-summer: #f07a50; --c-cool: #4fb3c6; --c-herb: #a8c64c; --c-fruit: #b98fdc; --rupex: #5d6a61;
  color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--sow); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
small { font-size: 0.8em; color: var(--muted); font-weight: 500; }
code { font-size: 0.92em; background: var(--sunk); padding: 1px 5px; border-radius: 4px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1240px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 760; font-stretch: 112%; font-size: 17px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { font-weight: 450; font-stretch: 100%; color: var(--muted); }
.brand-mark { width: 22px; height: 22px; border-radius: 5px; flex: none;
  background: radial-gradient(circle, var(--sow) 2.2px, transparent 2.6px) 0 0 / 7.33px 7.33px, var(--sow-soft); box-shadow: inset 0 0 0 1.5px var(--sow); }
.tabs { display: flex; gap: 2px; background: var(--sunk); border-radius: 10px; padding: 3px; overflow-x: auto; scrollbar-width: none; }
.tabs a { font-weight: 600; font-stretch: 104%; color: var(--muted); text-decoration: none; padding: 7px 13px; border-radius: 8px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.who { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.role { font-weight: 650; color: var(--ink); }
.sync::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sow); margin-right: 6px; vertical-align: 0.08em; }
.sync[data-status="saving"]::before { background: var(--ready); }
.sync[data-status="offline"] { color: var(--danger); font-weight: 600; }
.sync[data-status="offline"]::before { background: var(--danger); }
body.signed-out .tabs, body.signed-out .filter, body.signed-out .who { display: none; }
.filter { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }

select, input[type="number"], input[type="date"] { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px 8px; min-height: 36px; }
input[type="number"] { width: 4.4em; text-align: right; font-variant-numeric: tabular-nums; }
select:disabled, input:disabled { opacity: 0.5; }
input.is-edited { background: var(--edited); border-color: var(--edited-line); box-shadow: 0 0 0 1px var(--edited-line); }

.btn { font: inherit; font-weight: 650; font-size: 14px; border: 1px solid var(--sow); background: var(--sow); color: var(--surface); padding: 8px 14px; min-height: 38px; border-radius: var(--r-s); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--danger); border-color: currentColor; }
.btn:hover { filter: brightness(1.06); }
.link { font: inherit; font-size: 13px; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.round { font: inherit; font-size: 22px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; flex: none; }
.round:hover { border-color: var(--muted); }
.field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.field > span { white-space: nowrap; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--sow); }

/* ---------- page ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-right)) 72px max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 18px; }
.loading { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.card.flush { padding: 0; }
.card h2 { margin: 0; font-size: 18px; font-weight: 720; font-stretch: 108%; }
.lede { margin: -4px 0 0; color: var(--muted); max-width: 78ch; font-size: 14.5px; }
.empty { color: var(--muted); margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--sunk); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; color: var(--muted); }
.chip b { color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; margin-right: 8px; vertical-align: 0.06em; }
.c-summer { --cat: var(--c-summer); } .c-cool { --cat: var(--c-cool); } .c-herb { --cat: var(--c-herb); } .c-fruit { --cat: var(--c-fruit); }
.dot { background: var(--cat); }

/* heading bar shared by every view */
.weekbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.weeknav { display: flex; align-items: center; gap: 12px; min-width: 0; }
.weeknav h1 { margin: 0; font-size: clamp(28px, 4.6vw, 40px); font-weight: 780; font-stretch: 118%; line-height: 1; letter-spacing: -0.01em; display: flex; flex-direction: column; gap: 4px; }
.weeknav h1 span { font-size: 15px; font-weight: 500; font-stretch: 100%; color: var(--muted); letter-spacing: 0; }
.weektools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- week strip: the seven days at a glance ---------- */
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px 10px; min-height: 92px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.dname { font-size: 13px; color: var(--muted); font-weight: 600; }
.dnum { font-size: 30px; font-weight: 800; font-stretch: 125%; line-height: 0.95; margin-bottom: 2px; }
.day.is-today { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.day.is-today .dname::after { content: " today"; color: var(--ink); }
.day.is-closed { background: repeating-linear-gradient(135deg, var(--sunk) 0 6px, transparent 6px 12px), var(--surface); color: var(--muted); }
.tag { font-size: 12px; font-weight: 650; border-radius: 5px; padding: 2px 6px; line-height: 1.3; }
.t-sow.tag { background: var(--sow-soft); color: var(--sow); }
.t-pot.tag { background: var(--pot-soft); color: var(--pot); }
.t-ready.tag { background: var(--ready-soft); color: var(--ready); }

/* ---------- task cards ---------- */
.weekgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.task { border-top: 5px solid var(--accent); container-type: inline-size; }
.task.t-sow { --accent: var(--sow); } .task.t-pot { --accent: var(--pot); } .task.t-ready { --accent: var(--ready); }
.task-head { margin-bottom: 12px; }
.task-head h2 { color: var(--accent); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 22px; font-stretch: 115%; }
.task-head h2 span { color: var(--ink); font-size: 16px; font-weight: 600; font-stretch: 100%; }
.total { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.total b { color: var(--ink); }

.gblock { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.gblock:first-of-type { border-top: 0; padding-top: 2px; }
.gblock.all-rupex { opacity: 0.6; }
.ghead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.ghead h3 { margin: 0; font-size: 16px; font-weight: 720; font-stretch: 106%; }
.gdates { margin: 0; font-size: 13.5px; color: var(--muted); }
.gdates b { color: var(--ink); font-weight: 600; }
.gnote { margin: 3px 0 6px; font-size: 13px; color: var(--muted); max-width: 70ch; }
.rupex-line { margin: 4px 0 4px; font-size: 13px; color: var(--muted); }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto 7.2em 7.8em; align-items: center; gap: 4px 14px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 36px; min-width: 0; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border: 2px solid var(--muted); border-radius: 6px; margin: 0; flex: none; display: grid; place-content: center; cursor: pointer; background: var(--surface); }
.check input::after { content: ""; width: 11px; height: 6px; border: 2.5px solid var(--surface); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.vname { font-weight: 560; overflow-wrap: anywhere; }
.row.is-done .vname { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.row.is-skip .vname, .row.is-skip .pack { color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.qty.plain { font-weight: 600; }
.unit { color: var(--muted); font-size: 13px; font-weight: 450; }
.pack { font-size: 13.5px; color: var(--muted); }
.yield { text-align: right; font-weight: 650; white-space: nowrap; }

table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 600; }
thead th { font-size: 12.5px; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.num { text-align: right; }
table.ready td:first-child { line-height: 1.35; }
table.ready tr:last-child td { border-bottom: 0; }

/* ---------- plan grid ---------- */
.gridwrap { overflow: auto; max-height: calc(100vh - 150px); -webkit-overflow-scrolling: touch; }
.plan { font-size: 13.5px; }
.plan th, .plan td { padding: 0; border-bottom: 1px solid var(--line); }
.plan thead th { position: sticky; top: 0; background: var(--surface); z-index: 2; padding: 8px 4px; text-align: center; }
.plan .corner, .plan tbody th[scope="row"], .plan tfoot th { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; padding: 4px 12px 4px 14px; min-width: 12.5em; max-width: 15em; font-weight: 520; border-right: 1px solid var(--line); }
.plan .corner { z-index: 3; }
.plan th.wk a { color: inherit; text-decoration: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-weight: 500; }
.plan th.wk a span { font-size: 16px; font-weight: 750; color: var(--ink); }
.plan th.wk a:hover span { color: var(--sow); text-decoration: underline; }
.plan th.wk.is-today { background: var(--sow-soft); }
.plan td { text-align: center; min-width: 3.6em; height: 40px; }
.plan td.is-today { background: color-mix(in srgb, var(--sow-soft) 55%, transparent); }
.plan td.is-closed, .plan th.is-closed { background: repeating-linear-gradient(135deg, var(--sunk) 0 5px, transparent 5px 10px); }
.plan td input { width: 3.3em; min-height: 30px; padding: 3px 5px; text-align: center; border-color: var(--sow); font-weight: 650; color: var(--sow); background: var(--sow-soft); }
.plan td input.is-edited { color: var(--ink); }
.plan td.num, .plan tfoot td { padding: 0 12px; text-align: right; font-weight: 650; }
.plan tr.pgroup th { position: sticky; left: 0; background: var(--sunk); padding: 7px 14px; font-weight: 720; text-align: left; border-bottom: 0; }
.plan tr.pgroup th span, .vtable tr.pgroup th span { font-weight: 450; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.plan tfoot th, .plan tfoot td { position: sticky; bottom: 0; background: var(--surface); border-top: 2px solid var(--ink); height: 40px; font-weight: 700; }
.plan tfoot th { z-index: 3; }
.plan tfoot td.wkt { text-align: center; padding: 0; }
tr.is-rupex th, tr.is-rupex td { color: var(--rupex); }
tr.is-rupex th small { color: var(--rupex); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.mk { display: inline-grid; place-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 750; margin: 0 1px; }
.mk-pot { background: var(--pot-soft); color: var(--pot); }
.mk-ready { background: var(--ready-soft); color: var(--ready); }

/* ---------- varieties ---------- */
.vtable th, .vtable td { padding: 6px 10px; }
.vtable thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.vtable tr.pgroup th { background: var(--sunk); padding: 8px 12px; font-weight: 720; }
.vtable .vname { font-weight: 560; }
.vtable select { min-width: 8.5em; }
tr.is-edited-row td:first-child { box-shadow: inset 3px 0 0 var(--edited-line); }
.rbtn { font: inherit; font-weight: 700; font-size: 13px; width: 34px; height: 32px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.rbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- crop guide ---------- */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.guide { border-left: 5px solid var(--cat); }
.guide header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.guide h3 { margin: 0; font-size: 16.5px; font-weight: 720; }
.guide.is-edited-row { background: linear-gradient(var(--edited), var(--edited)) top / 100% 4px no-repeat, var(--surface); }
.badge { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.badge.solid { color: var(--sow); border-color: var(--sow); }
.guide-fields { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 6px; }
.guide-fields input[type="number"] { width: 4em; }
.windows { margin: 0 0 6px; font-size: 13.5px; }
.settings { max-width: 760px; }
.settings h2 { margin-bottom: 6px; }

/* rows stack into two lines whenever their card is narrow (side column, phones) */
@container (max-width: 560px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name qty" "pack yield"; row-gap: 0; padding: 7px 0; }
  .row .check { grid-area: name; }
  .row .qty { grid-area: qty; }
  .row .pack { grid-area: pack; padding-left: 32px; font-size: 13px; }
  .row .yield { grid-area: yield; font-size: 14px; }
}

/* ---------- sign in + notices ---------- */
.login { max-width: 400px; width: 100%; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.login h1 { margin: 0; font-size: 30px; font-weight: 780; font-stretch: 118%; line-height: 1.05; }
.login .gnote { margin: 0; }
.field.stack { flex-direction: column; align-items: stretch; gap: 6px; color: var(--ink); font-weight: 600; }
.login input[type="password"] { font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); min-height: 46px; }
.login .btn { justify-content: center; min-height: 46px; font-size: 16px; }
.login .error { margin: 0; min-height: 1.2em; color: var(--danger); font-size: 14px; font-weight: 600; }
.login .small { font-size: 12.5px; }
.brand-mark.big { width: 44px; height: 44px; border-radius: 10px; background-size: 14.66px 14.66px, auto; background-image: radial-gradient(circle, var(--sow) 4.4px, transparent 5px); }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgb(0 0 0 / 0.2); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
button:disabled, .rbtn:disabled { cursor: default; opacity: 0.55; }

/* ---------- print sheet (hidden on screen) ---------- */
#print-root { display: none; }

/* ---------- narrow screens ---------- */
@media (max-width: 980px) {
  .weekgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .top-inner { gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
  .brand span { display: none; }
  .tabs { order: 3; width: 100%; }
  .tabs a { flex: 1; text-align: center; padding: 8px 6px; font-size: 14px; }
  .filter > span, .who .role { display: none; }
  .brand { margin-right: auto; }
  .who { order: 1; margin-left: 0; gap: 8px; }
  .filter { order: 2; }
  .filter select { max-width: 9.5em; }
  .sync[data-status="saved"] { font-size: 0; }
  .sync[data-status="saved"]::before { margin-right: 0; }
  .wrap { padding-top: 16px; gap: 14px; }
  .weekbar { flex-direction: column; align-items: stretch; }
  .weeknav { justify-content: space-between; }
  .weeknav h1 { text-align: center; align-items: center; flex: 1; }
  .weektools { justify-content: space-between; }
  .weektools .field select { max-width: 11em; }
  .strip { gap: 3px; }
  .day { padding: 6px 4px; min-height: 76px; align-items: center; text-align: center; border-radius: 8px; }
  .dname { font-size: 11.5px; }
  .day.is-today .dname::after { content: ""; }
  .dnum { font-size: 22px; }
  .tag { font-size: 10px; padding: 1px 3px; }
  .card { padding: 14px; border-radius: 10px; }
  .gridwrap { max-height: calc(100vh - 210px); }
  .plan .corner, .plan tbody th[scope="row"], .plan tfoot th { min-width: 8.5em; max-width: 9.5em; padding-left: 10px; font-size: 13px; }
  .guides { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- PRINT ---------- */
@page { size: A4 portrait; margin: 12mm 12mm 14mm; }
@page plan { size: A4 landscape; margin: 8mm; }
@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #444; --line: #bbb; --sunk: #eee; color-scheme: light; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .no-print, .weektools, .round, .btnrow, .filebtn, main[data-view="plan"] .lede { display: none !important; }
  .wrap { padding: 0; max-width: none; gap: 10px; }
  .card { border-color: #999; break-inside: avoid-page; }
  .gridwrap { overflow: visible; max-height: none; }
  .card.flush { break-inside: auto; border: 0; }
  .plan td.is-closed, .plan th.is-closed, .day.is-closed { background: #eee !important; }
  .plan td.is-today, .plan th.wk.is-today { background: none; }
  .top, .gblock, .tag, .mk { backdrop-filter: none; }
  input[type="number"] { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0; min-height: 0; color: #000 !important; -moz-appearance: textfield; }
  input::-webkit-inner-spin-button { -webkit-appearance: none; }
  select { border: 0; appearance: none; padding: 0; background: none; }
  main[data-view="plan"] { page: plan; }
  .plan { font-size: 8pt; }
  .plan td { height: 22px; min-width: 0; }
  .plan thead th, .plan .corner, .plan tbody th[scope="row"], .plan tfoot th, .plan tfoot td, .plan tr.pgroup th { position: static; }
  .plan tr { break-inside: avoid; }
  .plan thead { display: table-header-group; }
  .plan tfoot { display: table-row-group; }

  /* the weekly sowing sheet replaces the screen entirely */
  body.printing-sheets #view, body.printing-sheets .top { display: none !important; }
  body.printing-sheets #print-root { display: block; }
  .sheet { break-after: page; font-size: 10.5pt; }
  .sheet:last-child { break-after: auto; }
  .sheet-head { border-bottom: 2.5pt solid #000; padding-bottom: 6pt; margin-bottom: 4pt; }
  .sheet-head h1 { margin: 0; font-size: 22pt; font-weight: 800; font-stretch: 115%; line-height: 1.05; }
  .sheet-head h1 span { font-weight: 500; font-stretch: 100%; font-size: 14pt; margin-left: 8pt; }
  .sheet-head p { margin: 3pt 0 0; font-size: 9pt; color: #333; }
  .sheet h2 { font-size: 13.5pt; font-weight: 750; margin: 12pt 0 4pt; display: flex; justify-content: space-between; align-items: baseline; gap: 12pt; break-after: avoid; }
  .sheet h2 span { font-size: 10pt; font-weight: 500; }
  .sheet table { font-size: 10pt; table-layout: fixed; }
  .sheet th:nth-child(1) { width: 26pt; } .sheet th:nth-child(2) { width: 33%; } .sheet th:nth-child(3) { width: 13%; }
  .sheet th:nth-child(4) { width: 14%; } .sheet th:nth-child(5) { width: 13%; }
  .sheet th, .sheet td { border-bottom: 0.6pt solid #999; padding: 3pt 6pt 3pt 0; text-align: left; vertical-align: middle; }
  .sheet thead th { font-size: 8.5pt; color: #333; border-bottom: 1pt solid #000; font-weight: 600; }
  .sheet thead { display: table-header-group; }
  .sheet tr, .sheet tbody { break-inside: avoid; }
  .sheet tr.pg { break-after: avoid; }
  .sheet .n { text-align: right; white-space: nowrap; }
  .sheet td.box { width: 16pt; }
  .sheet tbody td.box::before { content: ""; display: block; width: 10pt; height: 10pt; border: 1.2pt solid #000; border-radius: 2pt; }
  .sheet tr.pg td { border-bottom: 0; padding-top: 7pt; font-size: 10pt; }
  .sheet tr.pg td span { font-size: 8.5pt; color: #333; margin-left: 4pt; }
  .sheet .small { font-size: 8.5pt; color: #333; margin: 4pt 0 0; }
  .sheet .readylist { margin: 0; padding-left: 14pt; columns: 2; column-gap: 18pt; font-size: 9.5pt; }
  .sheet p { margin: 2pt 0; }
}
