@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }

:root {
  --page: #f3f2f0;
  --card: #ffffff;
  --field: #fbfaf8;
  --ink: #292524;
  --muted: #57534e;
  --faint: #78716c;
  --line: #e2dfdc;
  --line-2: #cfcac5;
  --brand: #f2cb13;
  --brand-tint: #fdf6cf;
  --brand-edge: #b89a00;
  --asphalt: #292524;
  --danger: #b42318;
  --danger-tint: #fdecea;
  --ok: #166534;
  --ok-tint: #e8f5ec;
  --link: #1d4ed8;
  --ring: 0 0 0 3px rgba(41, 37, 36, .9);
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(41, 37, 36, .06), 0 6px 20px rgba(41, 37, 36, .06);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-inline: 16px;
}
img, svg { max-width: 100%; }
a { color: var(--link); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: 780px; margin: 0 auto; padding-block: 20px 40px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-block: 4px 16px;
}
.top .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.top .brand img { width: 74px; height: auto; }
.top .brand span { font-weight: 700; font-size: 15px; letter-spacing: .01em; line-height: 1.2; }
.top .brand small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }

.lang { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.lang select { width: auto; min-height: 40px; padding: 6px 34px 6px 12px; font-size: 16px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: clamp(18px, 4vw, 32px);
}
.card + .card, .card + .section, .section + .section { margin-top: 16px; }
.hero-card { border-top: 6px solid var(--asphalt); }

h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; text-wrap: balance; }
p { margin: 0 0 12px; text-wrap: pretty; }
.lede { color: var(--muted); max-width: 64ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.logo-hero { display: block; width: min(220px, 60vw); height: auto; margin: 4px auto 18px; }

.contact {
  display: grid; gap: 4px; justify-items: center; text-align: center;
  margin: 18px 0 4px; padding: 16px; border-radius: var(--r-sm);
  background: var(--brand-tint); border: 1px solid #efe1a0;
}
.contact .eyebrow { margin: 0; }
.contact strong { font-size: 18px; }
.contact a { font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--brand); }
.contact .row { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
}
.eyebrow svg { width: 18px; height: 18px; flex: none; color: var(--ink); }

.choose { margin-top: 22px; }
.choose h2 { text-align: center; font-size: 17px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.choice {
  display: grid; gap: 4px; padding: 18px; border-radius: var(--r);
  border: 1px solid var(--line-2); border-bottom-width: 3px; background: var(--card);
  text-decoration: none; color: var(--ink); transition: transform .12s ease, border-color .12s ease;
}
.choice strong { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.choice strong svg { width: 26px; height: 26px; flex: none; }
.choice span { color: var(--muted); font-size: 14px; }
@media (hover: hover) { .choice:hover { border-color: var(--asphalt); transform: translateY(-2px); } }
.choice:active { transform: translateY(1px); }

.foot { text-align: center; color: var(--faint); font-size: 13px; margin-top: 26px; }

.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 4vw, 26px); box-shadow: var(--shadow); }
.section > .eyebrow { margin-bottom: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.grid > .wide { grid-column: 1 / -1; }

.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field > label, .field > .label { font-weight: 700; font-size: 15px; }
.req { color: var(--danger); margin-left: 2px; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }

input, select, textarea {
  width: 100%; min-height: 46px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23292524' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--asphalt); box-shadow: 0 0 0 3px rgba(242, 203, 19, .55); background: #fff; }
.field.bad input, .field.bad textarea, .field.bad select, .field.bad .pills, .field.bad .diagram, .field.bad .sig-box { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-tint); }
.err { color: var(--danger); font-size: 14px; font-weight: 600; margin: 0; }
.with-mic { position: relative; }
.with-mic textarea { padding-right: 56px; }
.mic {
  position: absolute; right: 8px; bottom: 8px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--ink);
}
.mic svg { width: 20px; height: 20px; }
.mic.on { background: var(--danger); border-color: var(--danger); color: #fff; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; border-radius: var(--r-sm); }
.pill {
  min-height: 44px; min-width: 76px; padding: 8px 16px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--line-2); border-bottom-width: 2px; background: #fff; font: inherit; font-weight: 600; color: var(--ink);
}
.pill[aria-pressed="true"] { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.dept .pill { flex: 1 1 150px; text-align: left; }
@media (hover: hover) { .pill:hover { border-color: var(--asphalt); } }

.reveal { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); border-bottom-width: 3px; background: #fff;
  color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--brand); border-color: var(--brand-edge); }
.btn.dark { background: var(--asphalt); border-color: #000; color: #fff; }
.btn:active { border-bottom-width: 1px; transform: translateY(2px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.small { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.status { font-size: 14px; color: var(--muted); margin: 0; }
.status.ok { color: var(--ok); font-weight: 600; }
.status.bad { color: var(--danger); font-weight: 600; }

.diagram { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; background: #fff; }
.diagram svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.diagram .zone { fill: transparent; stroke: rgba(41, 37, 36, .25); stroke-dasharray: 3 3; cursor: pointer; }
.diagram .zone:hover { fill: rgba(242, 203, 19, .35); }
.diagram .zone.on { fill: rgba(180, 35, 24, .55); stroke: #b42318; stroke-dasharray: none; }
.diagram .zone:focus { outline: none; stroke: #000; stroke-width: 2; stroke-dasharray: none; }
.diagram .body { fill: #e7e5e4; stroke: #57534e; stroke-width: 2; }
.diagram .glass { fill: #a8b3bf; }
.diagram .wheel { fill: #292524; }
.diagram .dir { fill: var(--muted); font: 600 11px var(--sans); }
.diagram-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 8px; }
.picked { font-size: 14px; color: var(--muted); }
.picked b { color: var(--ink); }

.drop {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px; border: 2px dashed var(--line-2);
  border-radius: var(--r); background: var(--field); cursor: pointer;
}
.drop svg { width: 30px; height: 30px; }
.drop strong { color: var(--ink); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; background: #fff; }
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.files li em { font-style: normal; color: var(--muted); flex: none; }
.files li.fail em { color: var(--danger); }
.files li.done em { color: var(--ok); }

.sig-box { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.sig-box canvas { display: block; width: 100%; aspect-ratio: 3 / 1; touch-action: none; cursor: crosshair; }
.sig-box .sig-line { position: absolute; left: 6%; right: 6%; bottom: 22%; border-bottom: 1px solid var(--line-2); pointer-events: none; }
.sig-box .sig-x { position: absolute; left: 3%; bottom: 22%; color: var(--faint); font-weight: 700; pointer-events: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; }
.actions .btn.primary { min-width: 200px; }

.review dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 14px; margin: 0; }
.review dt { color: var(--muted); font-size: 14px; }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }
.review h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.review h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
@media (max-width: 480px) { .review dl { grid-template-columns: 1fr; } .review dd { margin-bottom: 8px; } }
.confirm { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-weight: 600; }
.confirm input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--asphalt); }

.done { text-align: center; }
.done .mark { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-tint); color: var(--ok); }
.done .mark svg { width: 30px; height: 30px; }
.done .num { font-size: 22px; font-weight: 700; }

.banner { padding: 12px 14px; border-radius: var(--r-sm); background: var(--danger-tint); color: var(--danger); font-weight: 600; margin: 0 0 14px; }
.draft { padding: 10px 14px; border-radius: var(--r-sm); background: var(--brand-tint); border: 1px solid #efe1a0; font-size: 14px; margin: 0 0 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { .choice, .btn { transition: none; } }
@media print { body { background: #fff; } .lang, .actions, .mic, .btn { display: none !important; } .section, .card { box-shadow: none; break-inside: avoid; } }

.top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.acct-link svg { width: 18px; height: 18px; }
.linkish { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 600; color: var(--link); text-decoration: underline; cursor: pointer; }
.acct-card form { margin-top: 8px; }
.acct-card .btn-row { gap: 16px; }
.mine-report > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.mine-report > summary::-webkit-details-marker { display: none; }
.mine-report > summary .hint { flex-basis: 100%; }
.mine-report[open] > summary { margin-bottom: 14px; }
.mine-report .review h3 { margin-top: 16px; }
.pill-status { font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: var(--brand-tint); color: #594800; }
.pill-status.st-reviewed { background: #e0ecff; color: #1e3a8a; }
.pill-status.st-closed { background: #e7e5e4; color: #44403c; }
.start-modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--page); color: var(--ink); box-shadow: 0 24px 60px rgba(41, 37, 36, .28); overflow: auto; }
.start-modal::backdrop { background: rgba(41, 37, 36, .55); }
.start-body { padding: clamp(18px, 5vw, 28px); }
.start-body h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; text-wrap: balance; }
.start-body .lede { margin: 0 0 16px; }
.start-body form { margin-top: 4px; }
.start-body .btn-row { gap: 16px; margin-top: 4px; }
.start-choices { display: grid; gap: 10px; }
.start-choices .choice { text-align: left; font: inherit; cursor: pointer; width: 100%; }
.start-choices .choice:focus-visible, .start-modal .btn:focus-visible, .start-modal .linkish:focus-visible { outline: none; box-shadow: var(--ring); }
.start-choices .choice[data-nochoice] { background: transparent; border-bottom-width: 1px; }
@media (max-width: 480px) { .start-modal { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); } .start-choices .choice { padding: 14px 16px; } .start-choices .choice strong { font-size: 17px; } }
.settings { margin-top: 16px; }
.settings > summary { cursor: pointer; list-style: none; display: flex; align-items: center; min-height: 44px; font-size: 17px; }
.settings > summary::-webkit-details-marker { display: none; }
.settings > summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 700; color: var(--muted); }
.settings[open] > summary::after { content: "\2212"; }
.settings[open] > summary { margin-bottom: 8px; }
.settings .static { margin: 0; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.settings .pill-status { margin-right: 6px; }
