:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --ink: #1d2433;
  --ink-2: #4a5468;
  --muted: #7a8396;
  --line: #e4e2db;
  --navy: #032e65;
  --navy-2: #1d4f91;
  --gold: #b0842f;
  --good: #2f7a56;
  --good-bg: #e6f2eb;
  --warn: #a8641a;
  --warn-bg: #fbf0dd;
  --bad: #b33a3a;
  --bad-bg: #f9e5e3;
  --bar: #032e65;
  --bar-2: #b9c6dd;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(29, 36, 51, .06), 0 4px 14px rgba(29, 36, 51, .04);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161f; --surface: #1a2030; --ink: #e8eaf0; --ink-2: #b4bccc; --muted: #8590a6; --line: #2a3246;
    --navy: #0e1320; --navy-2: #8fa5e0; --gold: #d3a64e;
    --good: #5fc08d; --good-bg: #173226; --warn: #e0a257; --warn-bg: #3a2a14; --bad: #ee7b7b; --bad-bg: #3b1d1d;
    --bar: #7f97dd; --bar-2: #2f3b5e;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
a { color: var(--navy-2); }
code { background: var(--line); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- top bar (always light so the logo reads in both colour schemes) */
.topbar { background: #fff; border-bottom: 3px solid #032e65; --tb: #032e65; --tb-soft: #4a5a78; }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 22px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; padding: 8px 0; }
.brand img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--tb-soft); text-decoration: none; padding: 22px 12px 19px; border-bottom: 3px solid transparent; margin-bottom: -3px; font-size: .93rem; font-weight: 500; }
.nav a:hover { color: var(--tb); }
.nav a.on { color: var(--tb); border-bottom-color: #b0842f; }
.nav .sep { width: 1px; background: #d8dde8; margin: 18px 8px; }
.who { color: var(--tb-soft); font-size: .88rem; display: flex; gap: 14px; align-items: center; }
.who button { background: none; border: 1px solid #b9c3d6; color: var(--tb); border-radius: 6px; padding: 5px 10px; cursor: pointer; font: inherit; font-size: .85rem; }
.who button:hover { background: #eef2f9; }

main.page { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---- cards / layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card > h2, .card > .card-head h2 { margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-dash { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.stack > * + * { margin-top: 16px; }
@media (max-width: 860px) { .g2, .g3, .g-main, .g-dash { grid-template-columns: minmax(0, 1fr); } }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .l { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-family: var(--serif); font-size: 1.9rem; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { color: var(--muted); font-size: .82rem; }
.kpi.warn .v { color: var(--warn); } .kpi.bad .v { color: var(--bad); } .kpi.good .v { color: var(--good); }

/* ---- forms */
label { display: block; font-size: .85rem; color: var(--ink-2); font-weight: 500; }
label > input, label > select, label > textarea { margin-top: 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid #cfccc2; border-radius: 7px; padding: 8px 10px;
}
@media (prefers-color-scheme: dark) { input, select, textarea { border-color: #3a4560; } }
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); }
.check input { width: auto; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
@media (max-width: 760px) { .form-grid > * { grid-column: span 12; } .form-grid > .c2, .form-grid > .c3 { grid-column: span 6; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }

.btn { font: inherit; font-size: .92rem; font-weight: 500; padding: 8px 14px; border-radius: 7px; border: 1px solid #cfccc2; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--bg); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
@media (prefers-color-scheme: dark) { .btn.primary { background: var(--navy-2); border-color: var(--navy-2); color: #0e1320; } .btn { border-color: #3a4560; } }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 4px 9px; font-size: .82rem; }
.btn.link { border: 0; background: none; color: var(--navy-2); padding: 2px 4px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.alert { padding: 10px 14px; border-radius: 8px; font-size: .92rem; margin-bottom: 12px; }
.alert.error { background: var(--bad-bg); color: var(--bad); }
.alert.ok { background: var(--good-bg); color: var(--good); }
.alert.info { background: var(--warn-bg); color: var(--warn); }

.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: .75rem; font-weight: 600; background: var(--line); color: var(--ink-2); }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }

/* ---- tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--bg) 60%, transparent); }
td.desc { color: var(--ink-2); max-width: 420px; }
tr.inactive td { color: var(--muted); }
.empty { color: var(--muted); padding: 18px 4px; text-align: center; }

/* ---- timesheet */
.weeknav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.weeknav .range { font-family: var(--serif); font-size: 1.15rem; min-width: 190px; text-align: center; }
.day { margin-top: 18px; }
.day-head { display: flex; justify-content: space-between; padding: 6px 2px; border-bottom: 2px solid var(--navy); font-weight: 600; font-family: var(--serif); }
.day-head.today { border-bottom-color: var(--gold); }
.day-head .t { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.entry { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 16px; padding: 10px 2px; border-bottom: 1px solid var(--line); align-items: start; }
.entry .m { font-weight: 600; } .entry .m small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.entry .d { grid-column: 1; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.entry .h { font-variant-numeric: tabular-nums; font-weight: 600; grid-row: 1; grid-column: 2; }
.entry .a { grid-row: 1 / span 2; grid-column: 3; display: flex; gap: 2px; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--bar); border-radius: 99px; }
.progress.ok > i { background: var(--good); }
.locked-note { display: flex; gap: 10px; align-items: center; }

/* ---- dashboard bits */
.bars .br { display: grid; grid-template-columns: 150px 1fr 90px; gap: 12px; align-items: center; padding: 6px 0; font-size: .9rem; }
.bars .br .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .track { position: relative; height: 14px; background: var(--line); border-radius: 4px; }
.bars .fill { position: absolute; inset: 0 auto 0 0; background: var(--bar-2); border-radius: 4px; }
.bars .fill.b { background: var(--bar); }
.bars .tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--gold); }
.legend { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart text { fill: var(--muted); font: 11px var(--sans); }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .b1 { fill: var(--bar); } svg.chart .b2 { fill: var(--bar-2); }
.matrix td, .matrix th { text-align: center; padding: 6px 4px; }
.matrix td:first-child, .matrix th:first-child { text-align: left; padding-left: 10px; }
.cell { display: inline-block; min-width: 54px; padding: 3px 6px; border-radius: 6px; font-size: .8rem; font-variant-numeric: tabular-nums; border: 0; font-family: inherit; }
.cell.sub { background: var(--good-bg); color: var(--good); }
.cell.open { background: var(--warn-bg); color: var(--warn); }
.cell.none { background: var(--bad-bg); color: var(--bad); }
.cell.future { background: var(--line); color: var(--muted); }

/* ---- dialog / toast */
dialog { border: 0; border-radius: 12px; padding: 22px; width: min(520px, 94vw); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(15, 20, 35, .5); }
dialog h2 { margin-bottom: 14px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.25); z-index: 99; font-size: .92rem; }
.toast.err { background: var(--bad); }
.secret { font: 600 1.15rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; background: var(--bg); border: 1px dashed var(--muted); border-radius: 8px; padding: 12px; text-align: center; user-select: all; }

/* ---- auth */
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 32px; width: min(420px, 100%); }
.auth-card h1 { margin-bottom: 4px; }
.auth-logo { display: block; width: min(300px, 100%); height: auto; margin: 0 auto 22px; }
.auth-card .tag { text-align: center; }
.auth-card p.muted { margin: 0 0 18px; }
.auth-card form > * + * { margin-top: 14px; }
.auth-card .btn { width: 100%; padding: 10px; }

@media (max-width: 640px) {
  .topbar-in { gap: 0 12px; }
  .brand { flex: 1; }
  .brand img { height: 36px; }
  .who span { display: none; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -8px; }
  .nav a { padding: 10px 10px 8px; }
  .nav .sep { display: none; }
  main.page { padding: 18px 14px 50px; }
  .entry { grid-template-columns: 1fr auto; }
  .entry .a { grid-row: auto; grid-column: 1 / -1; }
}

/* ---- stopwatch */
.sw { text-align: center; }
.sw .time { font: 600 2.3rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.sw .time.run { color: var(--good); }
.sw .sub { color: var(--muted); font-size: .82rem; min-height: 1.3em; margin-bottom: 10px; }
.sw .row { justify-content: center; }
.sw .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 6px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .sw .dot { animation: none; } }

/* ---- timesheet extras */
.dur { color: var(--muted); font-size: .85rem; align-self: end; padding-bottom: 9px; font-variant-numeric: tabular-nums; }
.entry .tm { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; margin-left: 8px; }
.lockedday { color: var(--muted); font-size: .85rem; font-weight: 400; font-family: var(--sans); }
.day-head.locked { border-bottom-color: var(--line); color: var(--ink-2); }
.hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.cost { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.cell.today { background: var(--line); color: var(--muted); }
.cell.unl { background: #e3ecfa; color: #1d4f91; }
.cell.na { background: transparent; color: var(--muted); }
.cell.miss { background: var(--bad-bg); color: var(--bad); cursor: pointer; }
@media (prefers-color-scheme: dark) { .cell.unl { background: #1c2b4a; color: #9db8ee; } }
.stackbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--line); margin: 6px 0 10px; }
.stackbar > i { display: block; height: 100%; }
.sb-work { background: var(--bar); } .sb-nb { background: #7f97c9; } .sb-leave { background: #b0842f; } .sb-un { background: var(--bad); opacity: .8; }
.legend i.sq { width: 10px; height: 10px; }

/* ---- client worksheet (always a white paper page, in both colour schemes and when printed) */
.sheet { overflow-x: auto; background: #fff; color: #1a1f2b; max-width: 210mm; margin: 0 auto 40px; padding: 15mm 14mm 12mm; border-radius: 6px; box-shadow: 0 2px 22px rgba(0, 0, 0, .18); font: 13px/1.5 var(--sans); }
.sheet * { border-color: #d9dde6; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 12px; border-bottom: 3px solid #032e65; }
.sheet-logo { height: 62px; width: auto; display: block; }
.sheet-title { text-align: right; }
.sheet-title .t { font: 600 1.55rem var(--serif); color: #032e65; letter-spacing: .02em; text-transform: uppercase; }
.sheet-title .s { color: #b0842f; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.sheet-meta { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr; gap: 14px; margin: 14px 0 6px; padding: 10px 12px; background: #f3f5fa; border-left: 3px solid #b0842f; }
.sheet-meta span { display: block; color: #5b6579; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.sheet-meta strong { font-size: .98rem; color: #032e65; }
.sheet-h2 { font: 600 1.05rem var(--serif); color: #032e65; margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #d9dde6; text-transform: uppercase; letter-spacing: .04em; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.sheet-table th { background: #032e65; color: #fff; text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.25; padding: 6px 6px; border: 0; vertical-align: bottom; }
.sheet-table td { color: #1a1f2b; padding: 6px 6px; border-bottom: 1px solid #e3e6ee; vertical-align: top; }
.sheet-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-table .nw { white-space: nowrap; }
.sheet-table td.w { width: 46%; }
.sheet-table tr:nth-child(even) td { background: #f8f9fc; }
.sheet-table tr.tot td { background: #eaeef7; color: #032e65; font-weight: 700; border-top: 2px solid #032e65; border-bottom: 0; }
.sheet-table em { color: #7a6a3a; font-style: normal; font-size: .8em; }
.sheet-matter { margin-top: 16px; }
.sheet-matter h3 { display: flex; justify-content: space-between; gap: 12px; font: 600 .98rem var(--serif); color: #032e65; padding: 6px 8px; background: #eaeef7; border-left: 3px solid #b0842f; margin: 0 0 4px; }
.sheet-matter h3 span { font-variant-numeric: tabular-nums; }
.sheet-note { color: #5b6579; font-size: .82rem; margin: 8px 0 0; }
.sheet-empty { text-align: center; color: #5b6579; padding: 40px 0; }
.sheet-foot { margin-top: 26px; padding-top: 10px; border-top: 2px solid #032e65; color: #5b6579; font-size: .76rem; text-align: center; }
.sheet-foot div { margin-top: 2px; font-style: italic; }
@media (max-width: 700px) { .sheet { padding: 14px 12px; } .sheet-head { flex-direction: column; align-items: flex-start; } .sheet-title { text-align: left; } .sheet-meta { grid-template-columns: 1fr; } .sheet .table-wrap, .sheet { overflow-x: auto; } }
@media print {
  @page { size: A4; margin: 12mm 11mm 14mm; @bottom-center { content: "Page " counter(page) " of " counter(pages); font: 9pt sans-serif; color: #5b6579; } }
  html, body { background: #fff !important; }
  .topbar, .no-print, .toast, dialog { display: none !important; }
  main.page { max-width: none; margin: 0; padding: 0; }
  .sheet { box-shadow: none; border-radius: 0; padding: 0; max-width: none; margin: 0; }
  .sheet, .sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet-table thead { display: table-header-group; }
  .sheet-table tr { break-inside: avoid; }
  .sheet-matter h3, .sheet-h2 { break-after: avoid; }
  .sheet-foot { break-inside: avoid; }
}

/* ---- associate review sheet extras */
.sheet-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.sheet-tiles .tile { border: 1px solid #d9dde6; border-top: 3px solid #032e65; padding: 8px 10px; background: #fff; break-inside: avoid; }
.sheet-tiles .tile span { display: block; color: #5b6579; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.sheet-tiles .tile strong { display: block; font: 600 1.35rem var(--serif); color: #032e65; margin: 2px 0; font-variant-numeric: tabular-nums; }
.sheet-tiles .tile em { display: block; color: #5b6579; font-size: .76rem; font-style: normal; }
.sheet-table .sub { color: #5b6579; font-size: .84em; }
.sheet-table td strong { color: #1a1f2b; }
.sheet-log tr.dayfirst td { border-top: 1px solid #aeb6c7; }
.sheet-log td.cm { min-width: 38mm; }
.sheet-log td.w { width: 34%; }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-chips span { background: #f9e5e3; color: #8a2b2b; border: 1px solid #e8b9b4; border-radius: 99px; padding: 1px 10px; font-size: .78rem; }
.sheet-sign { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 26px; margin-top: 26px; color: #5b6579; font-size: .78rem; break-inside: avoid; }
.sheet-sign .line { border-bottom: 1px solid #1a1f2b; height: 34px; margin-bottom: 4px; }
@media (max-width: 700px) { .sheet-tiles { grid-template-columns: 1fr 1fr; } .sheet-sign { grid-template-columns: 1fr; } }

/* ---- review notes */
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.note.praise { border-left-color: var(--good); } .note.serious { border-left-color: var(--bad); }
.note-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.note p { margin: 8px 0 0; white-space: pre-wrap; color: var(--ink-2); }
.note p b { color: var(--ink); }
.note .row.between { margin-top: 10px; }
.sheet-area h3 { font: 600 .98rem var(--serif); color: #032e65; margin: 14px 0 6px; padding-bottom: 3px; border-bottom: 1px solid #d9dde6; break-after: avoid; }
.sheet-notei { border-left: 3px solid #b0842f; background: #fbf8f1; padding: 6px 10px; margin: 0 0 6px; break-inside: avoid; }
.sheet-notei.praise { border-left-color: #2f7a56; background: #f1f8f4; } .sheet-notei.serious { border-left-color: #b33a3a; background: #fbf1f0; }
.sheet-notei .nh { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.sheet-notei .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: #5b6579; }
.sheet-notei .d { color: #5b6579; font-size: .78rem; }
.sheet-notei .td { color: #8a2b2b; font-size: .72rem; font-weight: 600; margin-left: auto; }
.sheet-notei p { margin: 4px 0 0; white-space: pre-wrap; color: #1a1f2b; font-size: .84rem; }
.area-cap { font-size: .85rem; color: var(--ink-2); font-weight: 500; margin: 2px 0 6px; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
@media (max-width: 560px) { .area-grid { grid-template-columns: 1fr; } }
@media print { .sheet { overflow: visible; } }
