:root {
    color-scheme: light;
    --bg: #edf3f8;
    --bg-deep: #dce7f2;
    --card: rgba(255, 255, 255, .88);
    --card-solid: #ffffff;
    --surface: #f6f9fc;
    --surface-strong: #eaf0f7;
    --text: #172033;
    --muted: #647187;
    --line: rgba(94, 112, 139, .22);
    --line-strong: rgba(62, 87, 126, .38);
    --accent: #3157d5;
    --accent-2: #07977d;
    --accent-soft: rgba(49, 87, 213, .1);
    --accent-contrast: #ffffff;
    --ring: rgba(49, 87, 213, .2);
    --shadow: 0 22px 55px rgba(49, 65, 92, .11);
    --shadow-soft: 0 10px 30px rgba(49, 65, 92, .08);
    --success: #e4f8ef;
    --success-text: #12623f;
    --error: #ffebed;
    --error-text: #982937;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #070b12;
    --bg-deep: #0d1420;
    --card: rgba(16, 23, 35, .88);
    --card-solid: #111824;
    --surface: #0c131e;
    --surface-strong: #182231;
    --text: #eef4fb;
    --muted: #9ba9bc;
    --line: rgba(151, 170, 197, .17);
    --line-strong: rgba(145, 172, 211, .32);
    --accent: #82a5ff;
    --accent-2: #4adbb9;
    --accent-soft: rgba(130, 165, 255, .12);
    --accent-contrast: #07111d;
    --ring: rgba(130, 165, 255, .2);
    --shadow: 0 24px 65px rgba(0, 0, 0, .32);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, .22);
    --success: #102c22;
    --success-text: #92e7bc;
    --error: #32191e;
    --error-text: #ffb6bf;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(145deg, var(--bg), var(--bg-deep));
    color: var(--text);
    line-height: 1.55;
    transition: background-color .3s ease, color .3s ease;
}
body::before {
    content: "";
    position: fixed;
    inset: -25%;
    z-index: 0;
    pointer-events: none;
    opacity: .62;
    background:
        radial-gradient(circle at 18% 24%, rgba(71, 118, 255, .2), transparent 26%),
        radial-gradient(circle at 82% 16%, rgba(42, 211, 175, .15), transparent 24%),
        radial-gradient(circle at 72% 82%, rgba(122, 88, 255, .14), transparent 28%);
    animation: ambient-shift 18s ease-in-out infinite alternate;
}

.page {
    position: relative;
    z-index: 1;
    width: min(1000px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 60px;
}
.page.wide { width: min(1320px, calc(100% - 32px)); }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    padding: 38px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #172442 0%, #273f87 52%, #08796f 135%);
    box-shadow: 0 28px 70px rgba(8, 20, 46, .28);
    animation: rise-in .65s cubic-bezier(.2, .7, .2, 1) both;
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}
.hero::before {
    width: 330px;
    height: 330px;
    top: -210px;
    right: -75px;
    background: rgba(104, 232, 207, .2);
    animation: hero-orbit 11s ease-in-out infinite alternate;
}
.hero::after {
    width: 240px;
    height: 240px;
    bottom: -175px;
    left: 26%;
    background: rgba(139, 163, 255, .2);
}
.hero.small { padding: 30px 34px; }
.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}
.brand-area { min-width: 0; }
.brand-logo-transparent {
    display: block;
    width: auto;
    height: auto;
    max-width: 190px;
    max-height: 58px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .2));
}
.server-error-logo { margin-bottom: 18px; }
.eyebrow {
    margin: 0;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, .72);
}
h1 {
    max-width: 780px;
    margin: 0 0 12px;
    font-size: clamp(25px, 3.8vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}
h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    font-size: clamp(19px, 2.5vw, 23px);
    line-height: 1.2;
    letter-spacing: -.018em;
}
h3 { letter-spacing: -.01em; }
.hero p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}
.language-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 43px;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .06em;
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.language-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .4);
}
.language-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .5);
    outline-offset: 3px;
}.theme-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.theme-toggle:hover {
    opacity: 1;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .4);
}
.theme-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .5);
    outline-offset: 3px;
}
.theme-toggle-icon { width: 18px; font-size: 17px; line-height: 1; }

.card {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.form {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    counter-reset: form-section;
    backdrop-filter: none;
}
.form section {
    position: relative;
    counter-increment: form-section;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    animation: rise-in .55s cubic-bezier(.2, .7, .2, 1) both;
}
.form section:nth-of-type(1) { animation-delay: .08s; }
.form section:nth-of-type(2) { animation-delay: .13s; }
.form section:nth-of-type(3) { animation-delay: .18s; }
.form section:nth-of-type(4) { animation-delay: .23s; }
.form section:nth-of-type(5) { animation-delay: .28s; }
.form section:focus-within {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-soft), 0 0 0 4px var(--ring);
}
.form section h2::before {
    content: counter(form-section, decimal-leading-zero);
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-contrast);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 8px 18px var(--ring);
}
.section-toggle {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    text-align: left;
    box-shadow: none;
}
.section-toggle:hover {
    transform: none;
    filter: none;
    box-shadow: none;
}
.section-toggle h2 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}
.section-status {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}
.section-chevron {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 20px;
    transition: transform .25s ease;
}
.form-step.is-open .section-chevron { transform: rotate(180deg); }
.form-step.is-incomplete .section-status {
    border-color: rgba(255, 178, 74, .42);
    background: rgba(255, 178, 74, .12);
    color: var(--text);
    animation: section-heartbeat 2.6s ease-in-out infinite;
}
.form-step.is-complete .section-status {
    border-color: rgba(35, 159, 103, .28);
    background: var(--success);
    color: var(--success-text);
}
.section-content {
    width: 100%;
    min-width: 0;
    padding-top: 22px;
    animation: section-reveal .25s ease both;
}
.section-content[hidden] { display: none; }
.section-content > label + label { margin-top: 18px; }
.section-content > .grid + label { margin-top: 18px; }
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
label, legend, .field-label {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
}
input, select, textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 46px;
    margin-top: 7px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    background: var(--card-solid);
    box-shadow: 0 0 0 4px var(--ring), 0 8px 20px rgba(20, 36, 64, .07);
    transform: translateY(-1px);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .78; }
textarea { min-height: 90px; resize: vertical; }
.form section > label + label { margin-top: 18px; }
.form section > .grid + label { margin-top: 18px; }
.grid > label,
.grid > .time-field,
.edit-grid > label {
    min-width: 0;
    height: 100%;
    margin-top: 0;
}
.grid > label,
.edit-grid > label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.grid > label > input,
.grid > label > select,
.grid > label > textarea,
.edit-grid > label > input,
.edit-grid > label > select,
.edit-grid > label > textarea {
    margin-top: auto;
}
.hint { margin: -6px 0 18px; color: var(--muted); }

.form-subsection {
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}
.subsection-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.subsection-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}
.subsection-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}
.billing-data-toggle {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.billing-data-toggle:hover {
    border-color: var(--line-strong);
    background: var(--accent-soft);
}
.billing-data-toggle:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--ring);
}
.billing-data-toggle input[type="checkbox"] {
    flex: 0 0 auto;
    width: 19px;
    min-height: 19px;
    margin: 0;
    padding: 0;
    accent-color: var(--accent);
    transform: none;
}
.billing-fields[hidden] { display: none; }
.grid-wide { grid-column: 1 / -1; }
.schedule-fields {
    display: grid;
    gap: 18px;
}
.schedule-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.schedule-row > label,
.schedule-row > .time-field,
.schedule-question {
    min-width: 0;
    margin: 0;
}
.schedule-row > label,
.schedule-question {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.schedule-row > label > input,
.schedule-question > select {
    margin-top: auto;
}
.schedule-question {
    width: calc(50% - 9px);
}
.time-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}
.time-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 7px;
}
.time-range label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}
.form .time-range label + label { margin-top: 0; }
.time-range input { margin-top: 0; }

.checks-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.quote-options {
    margin-bottom: 18px;
}
.quote-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
}
fieldset {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
fieldset:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
legend {
    padding: 0 8px;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: .025em;
}
fieldset label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0;
    padding: 8px 9px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
fieldset label:hover {
    color: var(--accent);
    background: var(--accent-soft);
    transform: translateX(2px);
}
fieldset input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    min-height: 17px;
    margin: 2px 0 0;
    padding: 0;
    border-radius: 5px;
    accent-color: var(--accent);
    transform: none;
}
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}
.form-legal { flex: 1 1 auto; }
.form-footer p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}
.privacy-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: var(--accent);
    transform: none;
}
.privacy-consent a {
    color: var(--accent);
    font-weight: 800;
    text-underline-offset: 3px;
}
.privacy-consent a:hover { color: var(--accent-2); }

button, .button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-contrast);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px var(--ring);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
button:hover, .button:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: saturate(1.08) brightness(1.04);
    box-shadow: 0 14px 30px var(--ring);
}
button:active, .button:active { transform: translateY(0); }
button:focus-visible, .button:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}
.button.secondary {
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: none;
}
.notice {
    padding: 15px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    margin: 0 0 18px;
    font-weight: 750;
    box-shadow: var(--shadow-soft);
    animation: rise-in .4s ease both;
}
.notice.success { border-color: rgba(35, 159, 103, .25); background: var(--success); color: var(--success-text); }
.form-errors {
    position: sticky;
    top: 12px;
    z-index: 8;
    margin: 0;
    scroll-margin-top: 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}
.form-errors:focus { outline: 3px solid rgba(205, 67, 83, .22); }
.form-errors strong { display: block; margin-bottom: 7px; }
.form-errors ul { margin: 0; padding-left: 20px; font-size: 13px; }
.form-errors li + li { margin-top: 4px; }
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--error-text);
    box-shadow: 0 0 0 4px rgba(205, 67, 83, .15);
}
.field-error-message {
    display: block;
    margin-top: 6px;
    color: var(--error-text);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}
.notice.error { border-color: rgba(205, 67, 83, .25); background: var(--error); color: var(--error-text); }

.login { width: min(470px, 100%); }
.login button { margin-top: 20px; }
.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.toolbar-form { margin: 0; }
.toolbar-form button { min-height: 44px; }
.maintenance-status { margin-bottom: 14px; }
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 17px;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
    padding: 13px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}
th {
    background: var(--surface-strong);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: var(--accent-soft); }
tr:last-child td { border-bottom: 0; }
.details { margin-top: 24px; }
.details summary {
    padding: 12px 0;
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
}
.response-detail {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
}
dl {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 9px 20px;
    margin: 0;
}
dt { color: var(--muted); font-weight: 750; }
dd { margin: 0; }
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.equipment-details {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
    background: rgba(4, 13, 31, .2);
    backdrop-filter: blur(14px);
}
.equipment-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    transition: background .2s ease;
}
.equipment-details summary::-webkit-details-marker { display: none; }
.equipment-details summary:hover { background: rgba(255, 255, 255, .08); }
.equipment-details summary:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .5);
    outline-offset: -3px;
}
.equipment-details summary::after {
    content: "⌄";
    flex: 0 0 auto;
    font-size: 19px;
    line-height: 1;
    transition: transform .25s ease;
}
.equipment-details[open] summary::after { transform: rotate(180deg); }
.equipment-hide { display: none; }
.equipment-details[open] .equipment-show { display: none; }
.equipment-details[open] .equipment-hide { display: inline; }
.equipment-summary-action {
    margin-left: auto;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
}
.equipment-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: min(68vh, 720px);
    padding: 4px 14px 16px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(255, 255, 255, .3) transparent;
    animation: details-reveal .28s ease both;
}
.equipment-section {
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 15px;
    background: rgba(7, 15, 31, .28);
}
.equipment-section-wide { grid-column: 1 / -1; }
.equipment-section h3 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 15px;
    letter-spacing: -.01em;
}
.equipment-section h4 {
    margin: 15px 0 5px;
    color: rgba(115, 237, 211, .92);
    font-size: 11px;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.equipment-section h4:first-of-type { margin-top: 0; }
.equipment-section ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
}
.equipment-section li + li { margin-top: 4px; }
.equipment-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.edit-card { margin-bottom: 18px; }
.edit-header,
.response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.edit-header { margin-bottom: 24px; }
.edit-header h2,
.response-header h3 { margin: 0; }
.edit-eyebrow {
    margin: 0 0 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.edit-field-wide { grid-column: 1 / -1; }
.edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.table-action:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--surface-strong);
}
.response-header { margin-bottom: 16px; }
.server-error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
}
.server-error-card {
    width: min(660px, 100%);
}
.server-error-card h1 { margin-bottom: 12px; }
.server-error-card > p:not(.edit-eyebrow):not(.error-reference) { color: var(--muted); }
.server-error-card .notice { margin-top: 22px; }
.error-reference {
    color: var(--muted);
    font-size: 12px;
}
.error-reference strong {
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .08em;
}
.server-error-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}
@keyframes details-reveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}@keyframes ambient-shift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
@keyframes hero-orbit {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-35px, 28px, 0) scale(1.12); }
}
@keyframes rise-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes section-heartbeat {
    0%, 68%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 178, 74, 0); }
    76% { transform: scale(1.035); box-shadow: 0 0 0 5px rgba(255, 178, 74, .08); }
    82% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 178, 74, 0); }
    88% { transform: scale(1.02); }
}
@keyframes section-reveal {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    .page { width: min(100% - 22px, 1000px); padding: 18px 0 36px; }
    .grid, .checks-wrap, .edit-grid { grid-template-columns: 1fr; }
    .quote-options-grid { grid-template-columns: 1fr; }
    .schedule-row { grid-template-columns: 1fr; }
    .schedule-question { width: 100%; }
    .grid-wide { grid-column: auto; }
    .subsection-heading { display: block; }
    .subsection-heading p { margin-top: 6px; text-align: left; }
    .edit-field-wide { grid-column: auto; }
    .edit-header { align-items: flex-start; }
    .equipment-content { grid-template-columns: 1fr; max-height: 64vh; }
    .equipment-section-wide { grid-column: auto; }
    .equipment-columns { grid-template-columns: 1fr; gap: 0; }
    .hero { padding: 24px 21px; border-radius: 22px; }
    .hero.small { padding: 23px 21px; }
    .hero-top { align-items: center; gap: 12px; }
    .brand-logo-transparent { max-width: 150px; max-height: 46px; }
    .hero-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}
.language-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 43px;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .06em;
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.language-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .4);
}
.language-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .5);
    outline-offset: 3px;
}.theme-toggle { width: 43px; padding: 8px; }
    .theme-toggle [data-theme-label] { display: none; }
    .form { gap: 14px; }
    .form section, .card { padding: 21px; border-radius: 20px; }
    .section-toggle {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px 10px;
    }
    .section-toggle h2 {
        grid-column: 1;
        grid-row: 1;
        align-items: flex-start;
    }
    .section-status {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        margin-left: 48px;
    }
    .section-chevron {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
    }
    .form-footer { display: block; padding: 21px; }
    .form-footer button { width: 100%; }
    .form-footer p { margin-top: 13px; text-align: center; }
    dl { grid-template-columns: 1fr; }
    dd { margin-bottom: 10px; }
}

@media (max-width: 430px) {
    .hero-top { align-items: flex-start; flex-wrap: wrap; }
    .hero-actions { width: 100%; justify-content: flex-end; }
    .time-range { grid-template-columns: 1fr; }
    .form .time-range label + label { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}