:root {
  color-scheme: light;
  --ink: #17352c;
  --muted: #4a6157;
  --deep: #193c31;
  --paper: #f3f5ec;
  --line: #d3ded5;
  --accent: #e4f3a5;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
.frame { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
a { color: inherit; text-underline-offset: .24em; }
button, select, textarea { font: inherit; }
button, select { cursor: pointer; }
[hidden], .printed { display: none !important; }
:focus-visible { outline: 3px solid #47707f; outline-offset: 3px; }
.result :focus-visible { outline-color: #edf5b8; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; z-index: 1; background: #fff; padding: 10px; }
.site-header { border-bottom: 1px solid #dfe5da; }
.bar { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.bar > a { font-size: .88rem; font-weight: 650; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 760; }
.mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--deep); color: var(--accent); border-radius: 10px; font-size: 1.15rem; }
.intro { padding: clamp(42px, 7vw, 78px) 0 clamp(28px, 5vw, 44px); }
.intro h1 { margin: 0; font-size: clamp(2.35rem, 7.65vw, 5.2rem); line-height: .96; letter-spacing: -.075em; font-weight: 760; }
.intro p { margin: 21px 0 0; max-width: 39rem; color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.18rem); line-height: 1.62; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.sheet, .result { border-radius: 22px; padding: 26px; }
.sheet { background: #fff; border: 1px solid var(--line); }
h2 { font-size: 1.45rem; line-height: 1.2; margin: 0; letter-spacing: -.035em; }
.hint, .item-hint, .local-note { color: var(--muted); }
.hint { margin: 8px 0 21px; line-height: 1.5; }
fieldset { margin: 0 0 21px; border: 0; padding: 0; min-width: 0; }
legend { font-size: 1rem; font-weight: 740; padding: 0 0 5px; }
.check-row { border-top: 1px solid #e0e8e1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(148px, .47fr); gap: 6px 12px; align-items: start; padding: 9px 0; }
.check-row label, .notes > label { display: block; font-size: .89rem; font-weight: 690; line-height: 1.35; }
.item-hint { margin: 3px 0 0; font-size: .81rem; line-height: 1.45; }
select, textarea { width: 100%; color: var(--ink); border: 1px solid #b9c9bf; border-radius: 8px; background: #fafcf8; }
select { min-height: 42px; padding: 6px 3px 6px 7px; font-size: .82rem; }
select.needs-repair { background: #fff5e3; border-color: #be9454; }
textarea { min-height: 55px; resize: vertical; padding: 8px 10px; margin-top: 6px; font-size: .89rem; }
.repair-note { grid-column: 1 / -1; }
.repair-note label { margin-top: 3px; font-size: .8rem; }
.notes span { color: var(--muted); font-weight: 520; }
.sheet-actions { display: flex; justify-content: end; padding-top: 4px; }
.quiet { color: #38564d; min-height: 43px; border: 0; background: transparent; padding: 4px 0; text-decoration: underline; text-underline-offset: .23em; font-size: .85rem; }
.result { background: var(--deep); color: #f8fff2; position: sticky; top: 16px; }
.progress { color: var(--accent); font-size: 1.29rem; font-weight: 740; margin: 18px 0 4px; line-height: 1.35; }
.repair-count { margin: 0; font-size: .94rem; }
.repair-items { margin: 14px 0 0; padding: 13px 0 0 19px; border-top: 1px solid #53746a; overflow-wrap: anywhere; }
.repair-items li { margin-bottom: 6px; font-size: .86rem; line-height: 1.55; }
.repair-items strong { display: block; }
.result-actions { display: grid; gap: 5px; margin-top: 17px; justify-items: start; }
.primary { min-height: 46px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: var(--accent); color: var(--ink); font-weight: 720; }
.result .quiet { color: #f8fff2; }
.result button:disabled { opacity: .62; cursor: default; }
.copy-status { margin: 1px 0 0; font-size: .83rem; }
.copy-status:empty { display: none; }
.service { display: block; margin-top: 16px; font-size: .87rem; line-height: 1.55; }
.local-note { margin-top: 15px; font-size: .81rem; }
.site-footer { margin-top: 28px; border-top: 1px solid var(--line); padding-block: 18px 24px; color: var(--muted); font-size: .8rem; }
@media (max-width: 830px) {
  .workspace { grid-template-columns: 1fr; }
  .result { position: static; }
}
@media (max-width: 460px) {
  .frame { width: calc(100% - 28px); }
  .bar { min-height: 62px; }
  .bar > a { font-size: .76rem; text-align: right; }
  .brand { white-space: nowrap; font-size: .85rem; }
  .mark { width: 30px; height: 30px; }
  .sheet, .result { padding: 16px; border-radius: 16px; }
  .check-row { grid-template-columns: 1fr; }
  .check-row select { width: min(100%, 220px); }
}
@media print {
  :root { background: #fff; color: #000; }
  .frame { width: 100%; }
  .site-header, .site-footer, .sheet, .local-note, .result, .intro, .skip { display: none !important; }
  .workspace { display: block; }
  .printed { display: block !important; }
  .printed pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
}
