:root {
  --paper: #f6f5f1;
  --card: #ffffff;
  --ink: #1b1f1c;
  --muted: #59615b;
  --line: #d8dbd4;
  --accent: #1d5a43;
  --accent-soft: #e3efe8;
  --on-accent: #ffffff;
  --warn: #9a5b00;
  --warn-bg: #fff3d9;
  --warn-line: #e3a73a;
  --radius: 12px;
  --measure: 44rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121513;
    --card: #1a1e1b;
    --ink: #e9ece7;
    --muted: #a3aba4;
    --line: #313832;
    --accent: #6cc39c;
    --accent-soft: #1d2d25;
    --on-accent: #0d1a13;
    --warn: #f0b95b;
    --warn-bg: #2b2415;
    --warn-line: #8a6420;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 0.18em; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }

.top {
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; }
.brand { color: var(--ink); font-weight: 700; text-decoration: none; }
.top a:not(.brand) { white-space: nowrap; }

.hero { padding: 36px 0 8px; }
.kicker { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; }
.lead { font-size: 19px; margin: 0 0 22px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1.5px solid var(--accent);
}
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn:focus-visible, a:focus-visible, input:focus-visible + .box { outline: 3px solid var(--warn-line); outline-offset: 2px; }

.urgent {
  background: var(--warn-bg);
  border: 1.5px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin: 28px 0;
}
.urgent h2 { margin-top: 0; font-size: 22px; }
.urgent .tag { color: var(--warn); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 6px; }

.toc { margin: 28px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.toc p { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 4px 0; }

section { margin: 44px 0; }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 16px; }
h2 .num { color: var(--accent); margin-right: 6px; }

.check { list-style: none; padding: 0; margin: 0; }
.check > li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  margin: 0 0 12px;
}
.check label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 700; font-size: 18px; line-height: 1.35; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box {
  flex: 0 0 24px; height: 24px; margin-top: 1px;
  border: 2px solid var(--accent); border-radius: 6px;
  display: grid; place-items: center;
}
.check input:checked + .box { background: var(--accent); }
.check input:checked + .box::after { content: ""; width: 7px; height: 12px; border: solid var(--on-accent); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.check .body { margin: 8px 0 0 36px; }
.check .body p { margin: 0 0 8px; }
.check .body p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 10px 0 12px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }
td.n, th.n { text-align: right; white-space: nowrap; }
.urgent table { background: var(--card); border-radius: 8px; overflow: hidden; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.sheet td { height: 44px; }
.sheet th[scope="row"] { font-weight: 600; width: 44%; }
.sheet col.fill { width: 28%; }
.sheet td { border-left: 1px solid var(--line); }

.note { color: var(--muted); font-size: 15px; }

.next { display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0 0 12px; }
.card.offer { border: 2px solid var(--accent); background: var(--accent-soft); }
@media (min-width: 640px) { .card.offer { grid-column: 1 / -1; } }

.sources { font-size: 15px; padding-left: 20px; }
.sources li { margin: 6px 0; overflow-wrap: anywhere; }

.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0 36px; color: var(--muted); font-size: 14px; }

.print-only { display: none; }

@media (min-width: 640px) {
  .next { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .check > li { padding: 14px 12px 12px; }
  .check .body { margin-left: 0; }
  table { font-size: 15px; }
  th, td { padding: 8px 6px; }
  th.n, td.n { white-space: normal; }
  .sheet th[scope="row"] { width: 40%; }
}

@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  :root { --paper: #fff; --card: #fff; --ink: #111; --muted: #444; --line: #bbb; --accent: #1d5a43; --warn-bg: #fff6e3; }
  body { font-size: 11pt; line-height: 1.45; background: #fff; }
  .wrap { max-width: none; padding: 0; }
  .no-print { display: none !important; }
  .print-only { display: block; }
  .hero { padding-top: 0; }
  h1 { font-size: 24pt; }
  .lead { font-size: 12.5pt; }
  h2 { font-size: 16pt; break-after: avoid; }
  section { margin: 22px 0; }
  .check > li, .urgent, .card, tr { break-inside: avoid; }
  .check > li { padding: 10px 12px; margin-bottom: 8px; border-radius: 8px; }
  .check label { font-size: 12.5pt; }
  .check .body { margin-left: 34px; }
  table { font-size: 10.5pt; }
  .sheet-section { break-before: page; }
  .sheet td { height: 30px; }
  a { color: var(--accent); }
  .foot { display: none; }
}
