.panel, dialog { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; }
.panel { padding: clamp(21px, 2.6vw, 40px); }
.step-head { display: flex; align-items: center; justify-content: space-between; color: var(--accent); font-size: 10px; }
#step-name { color: var(--muted); }
.progress { display: flex; gap: 6px; margin: 12px 0 25px; }
.progress i { flex: 1; height: 3px; background: var(--accent); border-radius: 3px; }
.progress i:last-child { background: var(--line); }
.progress i.active:last-child { background: var(--accent); }
fieldset { padding: 0; margin: 0; border: none; min-width: 0; }
legend, #result h3 { font-size: 25px; line-height: 1.2; letter-spacing: -.04em; font-weight: 630; }
label { display: block; margin: 17px 0 7px; font-size: 14px; font-weight: 550; }
label small { color: var(--muted); font-weight: 400; }
input:not([type="checkbox"]), select { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #607060; border-radius: 3px; background: #192b21; color: white; font-size: 16px; }
input::placeholder, select:has(option:checked[value=""]) { color: #bcc7b8; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #fd8e93; }
.field-error { color: #ffa7a9; font-size: 13px; margin-top: 5px; }
.panel .button { margin-top: 22px; }
fieldset > .button { width: 100%; }
.check { display: flex; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 400; }
.check input { width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.text-link, .back { background: transparent; border: none; }
.text-link { color: var(--accent); text-decoration: underline; padding: 0; }
.actions { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; gap: 12px; align-items: center; margin-top: 22px; }
.actions .button { margin: 0; width: 100%; }
.back { border-radius: 5px; padding: 10px; font-size: 14px; }
#feedback:not(:empty) { margin-top: 15px; color: var(--muted); }
#result dl { margin: 20px 0; }
#result dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding-block: 8px; font-size: 14px; }
#result dt { color: var(--muted); }
#result dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
#result .back { display: block; margin-top: 8px; }
.map-link { display: block; width: fit-content; margin-top: 12px; padding-block: 10px; font-size: 14px; text-decoration: underline; }
dialog { color: white; max-width: min(90vw, 520px); padding: 28px; }
dialog::backdrop { background: #08140ed9; }
dialog h2 { font-size: 29px; }
dialog p { margin-top: 15px; }
dialog .button { margin-top: 20px; }
dialog p, #result-info { color: var(--muted); }
@media (min-width: 520px) {
  .actions { flex-wrap: nowrap; }
  .actions .button { width: auto; }
}
