:root {
    color-scheme: light;
    --ink: #102322;
    --muted: #49605c;
    --line: #cfdad4;
    --accent: #d3f59e;
    --canvas: #eef3ed;
    font: 16px/1.5 system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .62; cursor: wait; }
:focus-visible { outline: 3px solid #387668; outline-offset: 3px; }
.frame { width: min(100% - 32px, 1040px); margin: auto; }
.top { background: var(--ink); color: white; }
.top-inner { min-height: 70px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; line-height: 1.1; text-decoration: none; letter-spacing: .03em; }
.brand small { display: block; font-size: .66rem; margin-top: 4px; color: #cee0d7; letter-spacing: .09em; }
.brand-mark { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; background: var(--accent); color: var(--ink); border-radius: 10px; font-size: 1.25rem; }
.quiet { padding: 10px 0 10px 10px; background: none; color: inherit; border: 0; font-size: .86rem; }
main { padding-bottom: 40px; }
.tabs { display: flex; gap: 4px; margin: 16px 0 24px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 16px; font-weight: 650; text-decoration: none; }
.tabs a[aria-current] { border-bottom: 3px solid #387668; }
h1, h2, legend { line-height: 1.16; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 10px; }
h2, legend { font-size: 1.35rem; font-weight: 750; margin: 0 0 14px; }
.heading { margin-bottom: 20px; }
.heading p, .muted { color: var(--muted); }
.heading p { margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(17px, 4vw, 32px); box-shadow: 0 10px 28px #172c2310; }
.login { max-width: 450px; margin: min(12vh, 100px) auto 0; }
.login h1 { font-size: clamp(1.85rem, 7vw, 2.8rem); margin-bottom: 20px; }
.wizard { max-width: 720px; }
.wizard section + section:not([hidden]) { margin-top: 20px; }
.wizard:has(#wizard-step:not([hidden])) section { margin-top: 0; }
.step, .tag { color: #35594b; font-size: .8rem; font-weight: 750; }
.step { margin: 0 0 10px; }
.tag { display: inline-block; padding: 4px 9px; background: #e9f1e4; border-radius: 6px; }
.fields, .choices, .dimensions { display: grid; gap: 13px; }
.fields label, .wizard label:not(.choice) { display: flex; gap: 6px; flex-direction: column; font-weight: 650; }
input:not([type=radio]), select { width: 100%; min-width: 0; min-height: 47px; padding: 10px; color: var(--ink); background: #f8faf8; border: 1px solid #a9bcb3; border-radius: 9px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset + label, .wizard label + fieldset { margin-top: 16px; }
.dimensions { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.choice:has(:checked) { background: #edf8df; border-color: #557849; }
.choice small { display: block; color: var(--muted); }
.choice input { accent-color: #28624d; width: 19px; height: 19px; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.primary, .secondary { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 750; }
.primary { background: var(--ink); color: white; }
.primary:hover { background: #254840; }
.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.wizard-actions .primary { flex-grow: 1; }
.notice { padding: 11px 14px; background: #fff2d3; color: #523b09; border-radius: 8px; overflow-wrap: anywhere; }
.danger { background: #fce9e7; color: #842519; }
summary { cursor: pointer; font-weight: 650; }
.tariffs table { width: 100%; margin-top: 7px; border-collapse: collapse; font-size: .84rem; }
.tariffs td, .tariffs th { padding: 6px; border-bottom: 1px solid var(--line); text-align: left; }
.review-grid, .history { display: grid; gap: 14px; }
.review { display: grid; gap: 3px; margin: 0; }
.review dt { color: var(--muted); font-size: .88rem; }
.review dd { margin: 0 0 8px; font-weight: 650; overflow-wrap: anywhere; }
.total, .record-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.total { border-top: 1px solid var(--line); padding-top: 14px; }
.total strong { font-size: 1.8rem; }
.price .primary, .price .secondary { width: 100%; margin-bottom: 8px; }
.record { overflow-wrap: anywhere; }
.record h2 { margin: 6px 0 0; }
.record > p { color: var(--muted); margin: 9px 0; }
.result { max-width: 700px; }
.result .tag { margin-bottom: 10px; }
.tracking { font: 750 clamp(1.45rem, 7vw, 2.5rem) ui-monospace, monospace; margin: 12px 0; overflow-wrap: anywhere; }
.pagination { display: flex; gap: 15px; margin: 15px 0; }
@media (min-width: 640px) {
    .choices, .customer, .history { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .customer .wide { grid-column: 1 / -1; }
    .wizard-actions .primary { flex-grow: 0; }
    .review-grid { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-items: start; }
}
