:root {
  --bg: #f6f7f9; --card: #fff; --text: #1c2430; --muted: #5b6676; --line: #e2e6ec;
  --accent: #0b6e4f; --red: #c62828; --orange: #b85f00; --yellow: #8a6d00; --green: #2e7d32;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--accent); color: #fff; padding: 12px 0; }
.top .wrap { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.brand { font-size: 18px; }
.tag { opacity: .8; font-size: 13px; }
.hero h1 { font-size: 26px; line-height: 1.25; margin: 28px 0 8px; }
.hero p { color: var(--muted); max-width: 760px; }
.privacy { color: var(--accent) !important; }
code { background: #eef1f4; padding: 1px 5px; border-radius: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 18px 0; }
.drop { display: block; border: 2px dashed var(--line); border-radius: 10px; padding: 28px; text-align: center; cursor: pointer; }
.drop.over { border-color: var(--accent); background: #eef7f3; }
.drop { position: relative; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.opts { display: grid; gap: 8px; margin-top: 14px; }
.opts input[type=number] { width: 80px; margin-left: 6px; }
.opts small, .meta { color: var(--muted); font-size: 13px; }
.summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 130px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.red b { color: var(--red); } .stat.orange b { color: var(--orange); } .stat.yellow b { color: var(--yellow); } .stat.green b { color: var(--green); }
.stat.wide { flex-basis: 100%; }
.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
button { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font-size: 14px; cursor: pointer; }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin: 12px 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0f2f5; position: sticky; top: 0; }
td small { color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: var(--red); } .dot.orange { background: var(--orange); } .dot.yellow { background: var(--yellow); } .dot.green { background: var(--green); }
.fine { color: var(--muted); font-size: 13px; padding-bottom: 32px; }
button.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.actions input[type=text] { margin-left: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; min-width: 220px; }
.print-only { display: none; }
.nav { margin-left: auto; display: flex; gap: 14px; }
.nav a { color: #fff; text-decoration: none; font-size: 14px; opacity: .9; }
.info { margin: 28px 0; }
.info h2 { font-size: 20px; margin-top: 28px; }
.steps li, .checks li { margin: 6px 0; }
.prices { border-collapse: collapse; background: #fff; width: 100%; font-size: 14px; }
.prices th, .prices td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prices th { background: #f0f2f5; }
details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
.signup .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0; }
.signup label { display: grid; gap: 4px; font-size: 14px; }
.signup input, .signup select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.signup .consent { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 12px; }
.signup .hp { position: absolute; left: -9999px; }
.signup.done { background: #eef7f3; }
.txnform { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.txnform label { flex-basis: 100%; font-size: 0.9em; }
.txnform input { flex: 1 1 220px; min-width: 0; padding: 6px 8px; font: inherit; }
.paywall .meta { flex-basis: 100%; margin: 0; }
.paywall { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; background: #fff8e6; border: 1px solid #f0d58a; border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
button:disabled { opacity: .6; cursor: wait; }
button.soon:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
@media print {
  body { background: #fff; }
  body > header, main > section:not(#print) { display: none !important; }
  .print-only { display: block; font-size: 11px; }
  .print-only h1 { font-size: 18px; margin: 0 0 6px; }
  .print-only table { border-collapse: collapse; width: 100%; }
  .print-only th, .print-only td { border: 1px solid #ccc; padding: 4px 6px; vertical-align: top; }
  .print-only tr { page-break-inside: avoid; }
  .print-only .small { color: #555; margin-top: 10px; }
}
@media (max-width: 600px) { .hero h1 { font-size: 21px; } .stat { min-width: calc(50% - 5px); } }
.filemsg { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #eef1f4; font-size: 14px; }
.filemsg.error { background: #fdecea; color: #8a1c1c; }
.link-button { display: inline-block; border: 1px solid var(--accent); color: var(--accent); padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: inherit; }
.status { font-size: 12px; color: var(--muted); }
.legend { margin: 0 0 12px; }
.legend ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
#reportTitle { font-size: 20px; margin: 24px 0 8px; }
#reportTitle:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* round 2: field borders 3:1 contrast, readable table on phones, print layout */
:root { --field: #7b8594; }
.opts input[type=number], .actions input[type=text], .signup input, .signup select, .lookup input { border: 1px solid var(--field); }
.drop { border-color: var(--field); }
a:visited, .linkish:visited { color: var(--accent); }
.warn { color: #8a1c1c; }
@media (max-width: 700px) {
  #table { min-width: 860px; }
  #table td:nth-child(6) { min-width: 240px; }
}
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  .print-only thead { display: table-header-group; }
}

.scroll-hint { display: none; }
@media (max-width: 700px) { .scroll-hint { display: block; } }
.tablewrap:focus-visible { outline: 3px solid var(--accent); }
