:root {
    color-scheme: light;
    --ink: #17394b;
    --muted: #526b79;
    --line: #d1e2ea;
    --accent: #10758d;
    --accent-dark: #075a70;
    --surface: #f3f8fb;
    font: 16px/1.65 "Inter", "Noto Sans SC", system-ui, sans-serif;
    color: var(--ink);
    background: var(--surface);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 82% 2%, #dcedf4, transparent 40%); }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: var(--accent-dark); text-underline-offset: .24em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #1693ad; outline-offset: 3px; }
.shell { width: min(100% - 2.5rem, 1136px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; width: 84px; height: auto; }
.back-link { font-size: .9rem; font-weight: 650; text-decoration: none; }
.back-link:hover, .next-step a:hover { text-decoration: underline; }
.intro { padding: clamp(2rem, 6vw, 4rem) 0 1.9rem; }
.eyebrow { color: var(--accent-dark); font-size: .84rem; font-weight: 740; letter-spacing: .06em; }
h1 { margin: .38rem 0 .65rem; font-size: clamp(1.95rem, 4.5vw, 3.15rem); line-height: 1.16; letter-spacing: -.025em; }
h2 { font-size: 1.35rem; line-height: 1.35; }
.lede { max-width: 48rem; color: var(--muted); }
.privacy { display: flex; align-items: center; gap: .55rem; margin-top: .95rem; color: var(--accent-dark); font-size: .87rem; }
.privacy span { width: .48rem; height: .48rem; border-radius: 50%; background: #2d9aaa; }
.card { padding: clamp(1rem, 3vw, 1.75rem); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 36px rgb(30 76 112 / .06); margin-bottom: 1.1rem; }
.card-heading, .card-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; }
.card-heading p { margin-top: .25rem; color: var(--muted); font-size: .9rem; }
.inputs { margin-block: 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
fieldset { display: grid; gap: .38rem; min-width: 0; margin: 0; padding: .85rem 1rem 1rem; border: 1px solid var(--line); border-radius: 11px; background: #f7fafc; }
legend { padding-inline: .35rem; font-weight: 750; }
.step { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; margin-right: .25rem; border-radius: 6px; background: #dbedf4; color: var(--accent-dark); font-size: .83rem; }
label { font-size: .86rem; font-weight: 650; }
input[type="file"], select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #b9d1dd; border-radius: 8px; background: #fff; padding: .45rem .6rem; color: var(--ink); font-size: .9rem; }
input::file-selector-button { margin-right: .6rem; border: none; border-radius: 5px; background: #deedf3; color: var(--accent-dark); padding: .15rem .5rem; cursor: pointer; }
.file-note { margin: .1rem 0 .42rem; color: var(--muted); overflow-wrap: anywhere; font-size: .82rem; }
.button { min-height: 42px; padding: .47rem .92rem; border: 1px solid transparent; border-radius: 8px; font-weight: 675; font-size: .9rem; cursor: pointer; }
.primary { background: var(--accent); color: #fff; }
.primary:hover:not(:disabled) { background: var(--accent-dark); }
.secondary { border-color: #bed6e0; color: var(--accent-dark); background: #f3f9fb; }
.secondary:hover:not(:disabled) { background: #e7f4f8; }
:is(button, input, select):disabled { opacity: .6; cursor: not-allowed; }
.card-actions { justify-content: flex-start; }
#status { color: var(--muted); font-size: .89rem; flex: 1 1 14rem; }
#status.error, .noscript { color: #a53228; }
.noscript { margin-top: .75rem; }
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr)); gap: .6rem; margin: 1rem 0; }
.counts > div { padding: .65rem .85rem; background: #f5f9fb; border: 1px solid var(--line); border-radius: 9px; }
.counts dt { font-size: .8rem; color: var(--muted); }
.counts dd { font-size: 1.3rem; font-weight: 740; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.table-wrap { margin-top: 1rem; overflow: auto; max-height: 32rem; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; min-width: 670px; border-collapse: collapse; text-align: left; font-size: .85rem; }
caption { caption-side: top; padding: .45rem .7rem; color: var(--muted); text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: .6rem .7rem; vertical-align: top; }
th { position: sticky; top: 0; background: #e9f3f8; white-space: nowrap; }
td { overflow-wrap: anywhere; min-width: 4rem; max-width: 17rem; white-space: pre-wrap; }
.empty { margin-top: 1rem; padding: .9rem; background: #edf8f5; border-radius: 8px; }
.help { margin-top: 2rem; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: .8rem; }
.help h3 { font-size: 1rem; }
.help p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.next-step { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin: 1.6rem 0; border-block: 1px solid var(--line); padding: .85rem 0; font-size: .9rem; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 0 0 1.5rem; font-size: .84rem; }
@media (max-width: 660px) {
    .shell { width: calc(100% - 1.5rem); }
    .header-inner { min-height: 58px; }
    .brand img { width: 56px; }
    .back-link { font-size: .78rem; }
    .inputs, .help-grid { grid-template-columns: 1fr; }
}
