:root {
  --ink: #17202e; --muted: #5d6778; --line: #e2e6ec; --bg: #f6f7f9; --card: #fff;
  --brand: #1d3a5f; --accent: #e8a33d; --red: #c0392b; --amber: #b9770e; --ok: #1e8449;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1 { font-size: 1.9rem; line-height: 1.2; margin: .4em 0; }
h2 { font-size: 1.3rem; margin: 0 0 .6em; }
h3 { font-size: 1.05rem; margin: 1em 0 .4em; }
h4 { margin: 1em 0 .2em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; }
.top { background: var(--brand); color: #fff; }
.top .row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: .2px; }
.top nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top nav a, .top nav .link { color: #fff; text-decoration: none; }
main { padding: 18px 18px 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.narrow { max-width: 460px; margin: 30px auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr { position: absolute; left: -9999px; }
.btn { display: inline-block; background: var(--accent); color: #1b1300; border: 0; border-radius: 9px; padding: 11px 18px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(.95); }
.btn.small { padding: 7px 12px; font-size: .9rem; }
.btn.ghost { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); }
.btn.danger { background: var(--red); color: #fff; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.wide-btn { width: 100%; margin-top: 8px; }
.link { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; }
form.inline { display: inline; }
label { display: block; font-weight: 600; margin: 10px 0; font-size: .95rem; }
input, textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; background: #fff; }
input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.inline-form input { width: auto; min-width: 220px; }
.inline-form label { margin: 0; }
.search { display: flex; gap: 10px; margin: 18px 0 6px; }
.search input { margin: 0; flex: 1; font-size: 1.05rem; }
.hero { text-align: center; padding: 34px 0 12px; }
.hero h1 { font-size: 2.3rem; max-width: 760px; margin: .3em auto; }
.hero em { color: var(--red); font-style: normal; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; margin: 0 auto; }
.hero .search { max-width: 640px; margin-left: auto; margin-right: auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid3 .card { margin: 0; }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.pricing .price { font-size: 1.6rem; font-weight: 800; margin: 0; }
.flash { border-radius: 10px; padding: 12px 14px; margin: 14px 0; border: 1px solid; }
.flash.ok { background: #eafaf1; border-color: #a9dfbf; }
.flash.error { background: #fdedec; border-color: #f5b7b1; }
.flash.warn { background: #fef5e7; border-color: #f8c471; }
.flash.info { background: #ebf5fb; border-color: #aed6f1; }
.list { display: grid; gap: 10px; margin: 14px 0; }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; text-decoration: none; color: var(--ink); }
.choice .small { display: block; }
.bcard { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.mini { display: flex; gap: 6px; flex-wrap: wrap; }
.mini span { padding: 3px 9px; border-radius: 99px; font-size: .85rem; font-weight: 700; background: #eef0f3; }
.mini .red, .stat.red b { color: var(--red); }
.mini .amber, .stat.amber b { color: var(--amber); }
.mini .ok, .stat.ok b { color: var(--ok); }
.report-head { margin-top: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 14px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; line-height: 1.1; }
.stat span { font-size: .8rem; color: var(--muted); }
.stat.red { border-color: #f5b7b1; background: #fdf3f2; }
.items { display: grid; gap: 12px; }
.item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; break-inside: avoid; }
.item-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item .desc { margin: 6px 0; }
.item .next { margin: 6px 0 0; background: #f8f9fb; padding: 8px 10px; border-radius: 8px; font-size: .94rem; }
.pill { font-size: .75rem; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; color: #fff; background: #7f8c8d; }
.pill.red { background: var(--red); }
.pill.amber { background: var(--amber); }
.red-text { color: var(--red); font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; color: var(--muted); }
tr.overdue td { background: #fdf3f2; }
tr.dim td { opacity: .55; }
.cta { background: #fffaf0; border-color: #f3d19c; }
textarea { min-height: 150px; }
.foot { color: var(--muted); font-size: .84rem; padding-bottom: 30px; }
.letter { background: #fff; padding: 40px; margin: 20px 0; border: 1px solid var(--line); border-radius: 6px; font-size: 1.05rem; }
.letter .url { font-weight: 700; font-size: 1.1rem; word-break: break-all; }
@media (max-width: 760px) {
  .grid3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .search { flex-direction: column; }
  .hero h1 { font-size: 1.8rem; }
  .report-head { flex-direction: column; }
  .deadlines th:nth-child(3), .deadlines td:nth-child(3) { display: none; }
}
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .card, .stat { border-color: #ccc; }
  main { padding: 0; }
  .letter { border: 0; margin: 0; padding: 0; page-break-after: always; }
  a { color: inherit; text-decoration: none; }
}
input.check { display: inline-block; width: auto; margin: 0 6px 0 0; vertical-align: middle; }
.guide h2 { font-size: 1.15rem; margin-top: 1.2em; }
.lead-left { color: var(--muted); font-size: 1.05rem; }
.letter .mailto { margin: 18px 0 26px; line-height: 1.4; }
.inline-form input.check { min-width: 0; }
.inline-form input[type="number"] { min-width: 0; width: 90px; display: inline-block; margin: 0 4px; }
