:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #637083;
    --line: #dbe2ea;
    --surface: #ffffff;
    --background: #f4f7fb;
    --brand: #0b3e86;
    --brand-dark: #082e65;
    --accent: #ed7d31;
    --button: #ed7d31;
    --button-dark: #cf651f;
    --button-soft: #fff1e8;
    --ready: #137333;
    --ready-bg: #e8f5ec;
    --attention: #8a4b08;
    --attention-bg: #fff2df;
    --offline: #9b1c1c;
    --offline-bg: #fdebec;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(237, 125, 49, 0.12), transparent 24rem),
        var(--background);
}

a {
    color: var(--brand);
}

.site-header,
.site-footer,
.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.brand {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.brand-name {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.brand-mark {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--accent);
    box-shadow: 0 6px 16px rgba(237, 125, 49, 0.24);
}

.brand-mark img {
    display: block;
    width: 48px;
    height: auto;
}

.page-shell {
    min-height: calc(100vh - 148px);
    padding-block: 48px 72px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.hero {
    max-width: 760px;
    padding-top: clamp(24px, 7vw, 96px);
}

h1 {
    max-width: 820px;
    margin: 8px 0 18px;
    font-size: clamp(36px, 7vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead,
.location {
    color: var(--muted);
    font-size: clamp(17px, 2.3vw, 21px);
    line-height: 1.6;
}

.kiosk-location-details {
    margin: .25rem 0;
    color: var(--muted);
}

.kiosk-location-details summary {
    width: fit-content;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.kiosk-location-details address {
    max-width: 42rem;
    margin-top: .45rem;
    padding: .65rem .8rem;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: #fff8f1;
    color: var(--ink);
    font-style: normal;
    line-height: 1.45;
}

.lead.compact {
    font-size: 16px;
}

.notice,
.status-panel {
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    background: var(--surface);
    line-height: 1.5;
}

.kiosk-card,
.form-card,
.customer-shell,
.document-shell,
.settings-shell,
.preview-shell,
.legal-card {
    max-width: 760px;
    margin: 24px auto;
    padding: clamp(24px, 6vw, 54px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(23, 32, 51, 0.08);
}

.kiosk-card h1,
.form-card h1,
.customer-shell h1,
.document-shell h1,
.settings-shell h1,
.preview-shell h1,
.legal-card h1,
.section-heading h1 {
    font-size: clamp(32px, 5vw, 48px);
}

.kiosk-heading,
.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.status-pill,
.record-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.status-ready {
    color: var(--ready);
    background: var(--ready-bg);
}

.status-attention {
    color: var(--attention);
    background: var(--attention-bg);
}

.status-offline {
    color: var(--offline);
    background: var(--offline-bg);
}

.record-count {
    color: var(--brand);
    background: #e8f0fc;
}

.status-panel {
    display: grid;
    gap: 8px;
}

.status-panel span,
td span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.primary-button,
.secondary-button,
.text-button {
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    width: 100%;
    margin-top: 24px;
    padding: 12px 18px;
    color: #fff;
    background: var(--button);
}

.secondary-button {
    width: 100%;
    margin-top: 24px;
    padding: 12px 18px;
    border: 1px solid var(--button);
    color: var(--button-dark);
    background: #fff;
}

.secondary-button:hover {
    background: var(--button-soft);
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.button-row form,
.button-row form .primary-button {
    width: 100%;
}

.primary-button:hover {
    background: var(--button-dark);
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.google-sign-in-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 18px;
    border: 1px solid #c9ced8;
    border-radius: 10px;
    color: #172033;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.google-sign-in-button:hover {
    border-color: #9ca6b8;
    background: #f8fafc;
}

.google-sign-in-button svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.verified-google-email {
    display: grid;
    gap: 4px;
    margin: 22px 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    overflow-wrap: anywhere;
}

.verified-google-email span {
    color: var(--muted);
    font-size: 13px;
}

.google-password-help {
    margin-top: 22px;
}

.text-button {
    padding: 8px 14px;
    color: var(--button-dark);
    background: transparent;
}

.compact-button {
    min-height: 38px;
    white-space: nowrap;
}

.language-switcher {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.language-switcher button {
    min-height: 32px;
    padding: 5px 9px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.language-switcher button.is-active {
    color: #fff;
    background: var(--button);
}

.language-switcher a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.language-switcher a.is-active {
    color: #fff;
    background: var(--button);
}

.mobile-home-signin {
    display: none;
}

.help-text,
.confirmation {
    color: var(--muted);
    line-height: 1.5;
}

.confirmation {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

label {
    display: block;
    margin: 24px 0 8px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid #aeb8c5;
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

select {
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid #aeb8c5;
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(11, 62, 134, 0.16);
}

textarea {
    width: 100%;
    padding: 10px 12px;
    resize: vertical;
    border: 1px solid #aeb8c5;
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.checkbox-label input {
    flex: 0 0 auto;
    width: 20px;
    min-height: 20px;
    margin-top: 2px;
    accent-color: var(--button);
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.label-row label {
    margin: 0 0 8px;
}

.label-row a {
    font-size: 14px;
}

.field-error {
    margin: 8px 0 0;
    color: var(--offline);
    font-weight: 600;
}

.field-hint,
.form-footer,
.context-line {
    color: var(--muted);
    line-height: 1.5;
}

.field-hint {
    margin: 7px 0 0;
    font-size: 13px;
}

.form-footer {
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.context-line {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f3f6fb;
}

.alert {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    line-height: 1.5;
}

.alert-success {
    color: var(--ready);
    border-color: #b9dfc3;
    background: var(--ready-bg);
}

.alert-error {
    color: var(--offline);
    border-color: #edb9bc;
    background: var(--offline-bg);
}

.alert-error ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.account-panel {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.account-panel strong {
    font-size: 22px;
}

.account-panel span {
    overflow-wrap: anywhere;
    color: var(--muted);
}

.customer-heading-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.customer-qr-scan-card,
.qr-scanner-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.customer-qr-scan-card {
    width: 100%;
    justify-content: flex-start;
    gap: 0.9rem;
    margin: 1rem 0 0;
    padding: 0.9rem 1rem;
    border: 1px solid #f5b17f;
    border-radius: 15px;
    color: var(--text);
    background: var(--surface);
    text-align: left;
    box-shadow: 0 8px 24px rgb(36 49 70 / 7%);
}

.customer-qr-scan-card-login {
    margin: 1rem 0 1.25rem;
}

.customer-qr-scan-card:hover,
.customer-qr-scan-card:focus-visible {
    border-color: var(--accent);
    background: #fffaf6;
    box-shadow: 0 10px 28px rgb(238 106 22 / 14%);
}

.customer-qr-scan-icon {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    color: #fff;
    background: var(--accent);
}

.customer-qr-scan-icon svg {
    width: 31px;
    height: 31px;
}

.customer-qr-scan-icon .scanner-corners,
.customer-qr-scan-icon .scanner-line {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.customer-qr-scan-icon .scanner-corners {
    stroke-width: 2.5;
}

.customer-qr-scan-icon .scanner-line {
    stroke: #17253b;
    stroke-width: 1.75;
}

.customer-qr-scan-icon .scanner-blocks {
    fill: currentColor;
}

.customer-qr-scan-copy {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.customer-qr-scan-copy strong {
    color: #a64000;
    font-size: 1rem;
}

.customer-qr-scan-copy small {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.desktop-qr-scanner {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    background: rgb(16 18 23 / 78%);
    overflow: hidden;
    overscroll-behavior: contain;
}

.desktop-qr-scanner[hidden] {
    display: none;
}

.desktop-qr-scanner-dialog {
    width: min(100%, 480px);
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: 1.25rem;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgb(0 0 0 / 32%);
    overflow-y: auto;
}

.desktop-qr-scanner-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.desktop-qr-scanner-heading h2,
.desktop-qr-scanner-heading p,
.desktop-qr-scanner-dialog > p {
    margin-top: 0;
}

.qr-scanner-close-button {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: var(--text);
    background: #eef1f5;
    font-size: 28px;
    line-height: 1;
}

.desktop-qr-video-frame[hidden] {
    display: none;
}

.desktop-qr-scanner video {
    display: block;
    width: 100%;
    max-height: min(420px, 55vh);
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #101217;
    object-fit: cover;
}

.desktop-qr-scanner-status {
    margin: 0.85rem 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.desktop-qr-scanner-confirmation {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #f5b17f;
    border-radius: 14px;
    background: #fffaf6;
    line-height: 1.5;
}

.desktop-qr-scanner-confirmation[hidden] {
    display: none;
}

.desktop-qr-scanner-confirmation .button-row {
    margin: 0;
}

.desktop-current-order {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1.15rem;
    border: 1px solid #ffd3ad;
    border-radius: 16px;
    background: #fffaf6;
}

.desktop-current-order .section-heading h2,
.desktop-current-order .section-heading p {
    margin: 0;
}

.desktop-current-order .recent-order-card {
    margin: 0;
}

body.qr-scanner-open {
    overflow: hidden;
    overscroll-behavior: none;
}

@media (max-width: 640px) {
    .customer-qr-scan-card {
        align-items: center;
        padding: 0.8rem;
    }

    .customer-qr-scan-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .desktop-qr-scanner-dialog {
        padding: 1rem;
        border-radius: 16px;
    }

    .desktop-qr-scanner-confirmation .button-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .desktop-qr-scanner-confirmation button {
        width: 100%;
    }
}

.muted-panel {
    background: #f7f9fc;
}

.panel-label {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.verified-mark {
    color: var(--ready) !important;
    font-size: 13px;
    font-weight: 700;
}

.legal-card {
    line-height: 1.7;
}

.legal-card h2 {
    margin: 30px 0 8px;
    font-size: 21px;
}

.legal-card p {
    color: var(--muted);
}

.upload-card {
    margin-top: 30px;
    padding: clamp(20px, 5vw, 32px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfcfe;
}

.upload-brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.upload-brand h2,
.document-list-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 4vw, 32px);
}

.upload-brand p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.private-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--ready);
    background: var(--ready-bg);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.file-picker {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 0;
    padding: 22px;
    border: 2px dashed #f1b084;
    border-radius: 14px;
    background: var(--button-soft);
    cursor: pointer;
}

.file-picker:hover {
    border-color: var(--button);
}

.file-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.file-picker-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--button);
    font-size: 25px;
    font-weight: 700;
}

.file-picker span:last-of-type {
    display: grid;
    gap: 4px;
    overflow: hidden;
}

.file-picker strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-picker small,
.privacy-note {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.45;
}

.privacy-note {
    margin: 14px 0 0;
    font-size: 13px;
}

.document-list-heading {
    align-items: center;
    margin-top: 42px;
}

.document-list-tools,
.heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.global-settings-button {
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 8px 14px;
    font-size: 13px;
}

.document-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-top: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.document-icon {
    display: grid;
    width: 52px;
    height: 62px;
    place-items: center;
    border-radius: 8px;
    color: var(--button-dark);
    background: var(--button-soft);
    font-size: 11px;
    font-weight: 900;
}

.document-details {
    min-width: 0;
}

.document-details h3 {
    display: inline;
    margin: 2px 6px 7px 0;
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.override-badge {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    color: var(--button-dark);
    background: var(--button-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.document-details > p {
    clear: both;
    padding-top: 7px;
}

.document-details > p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.setting-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.setting-summary span,
.file-facts span {
    padding: 5px 8px;
    border-radius: 7px;
    color: #46536a;
    background: #eef2f7;
    font-size: 11px;
    font-weight: 750;
}

.document-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin-top: 14px;
}

.document-price span,
.document-price small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.document-price strong {
    color: var(--button-dark);
    font-size: 18px;
}

.price-summary-card {
    margin-top: 24px;
    padding: clamp(20px, 5vw, 28px);
    border: 1px solid #efc09d;
    border-radius: 16px;
    background: #fffaf6;
}

.price-summary-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.price-summary-heading h2 {
    margin: 3px 0 0;
}

.price-summary-heading > strong {
    color: var(--button-dark);
    font-size: clamp(28px, 5vw, 38px);
    white-space: nowrap;
}

.price-breakdown {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
}

.price-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1d7c4;
}

.price-breakdown dt,
.price-breakdown dd {
    margin: 0;
}

.price-breakdown dd {
    font-weight: 800;
}

.price-breakdown .price-total-row {
    color: var(--button-dark);
    font-size: 18px;
    font-weight: 850;
}

.price-summary-card > p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.document-actions {
    display: grid;
    gap: 8px;
    min-width: 130px;
}

.document-actions .secondary-button {
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
}

.danger-text-button {
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    color: var(--button-dark);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.danger-text-button:hover {
    background: var(--button-soft);
}

.empty-state {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 32px 20px;
    border: 1px dashed #bdc7d4;
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    color: var(--ink);
}

.checkout-notice {
    background: #fffaf6;
}

.file-name {
    overflow-wrap: anywhere;
}

.file-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 8px;
}

.settings-group {
    min-width: 0;
    margin: 30px 0 0;
    padding: 0;
    border: 0;
}

.settings-group legend {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
}

.option-grid {
    display: grid;
    gap: 10px;
}

.two-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.option-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    opacity: 0;
}

.option-card span {
    display: grid;
    min-height: 58px;
    gap: 3px;
    place-content: center;
    padding: 10px;
    border: 1px solid #aeb8c5;
    border-radius: 10px;
    text-align: center;
}

.option-card small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.option-card input:checked + span {
    border-color: var(--button);
    color: var(--button-dark);
    background: var(--button-soft);
    box-shadow: inset 0 0 0 1px var(--button);
}

.option-card input:focus-visible + span {
    outline: 3px solid rgba(237, 125, 49, 0.2);
}

.option-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.kiosk-option-fieldset {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
}

.kiosk-option-fieldset legend {
    padding: 0 .35rem;
    font-weight: 800;
}

.kiosk-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1rem;
}

.kiosk-selection-card,
.kiosk-option-summary {
    padding: 1rem;
    border: 1px solid #d8e0ea;
    border-radius: 16px;
    background: #fff;
}

.kiosk-selection-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.kiosk-selection-heading div,
.kiosk-option-summary {
    display: grid;
    gap: .25rem;
}

.kiosk-selection-heading strong {
    font-size: 1.1rem;
}

.kiosk-selection-heading span:not(.status-pill),
.kiosk-capability-list,
.kiosk-option-summary span {
    color: #5d6b7d;
}

.kiosk-capability-list {
    margin: .85rem 0;
    line-height: 1.5;
}

.compact-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: .35rem;
}

.warning-hint {
    color: var(--attention);
    font-weight: 700;
}

.compact-notice {
    margin-top: 20px;
    padding-block: 14px;
    font-size: 14px;
}

.heading-actions .secondary-button {
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 8px 14px;
}

.preview-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.preview-toolbar label {
    margin: 0;
}

.preview-stage {
    display: grid;
    min-height: min(62vh, 640px);
    place-items: center;
    margin-top: 18px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #b9c5d3;
    border-radius: 14px;
    background: #e8edf3;
}

.preview-stage canvas {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(58vh, 600px);
    background: #fff;
    box-shadow: 0 8px 30px rgba(23, 32, 51, 0.18);
}

.preview-loading {
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.preview-error {
    border-color: #edb9bc;
    background: var(--offline-bg);
}

.preview-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.preview-navigation .secondary-button {
    min-height: 42px;
    margin: 0;
}

.preview-settings {
    justify-content: center;
    margin-top: 16px;
}

.preview-note {
    margin-top: 18px;
    font-size: 13px;
}

.settings-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.settings-row label {
    margin-top: 0;
}

.table-wrap {
    margin-top: 24px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.admin-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
}

.admin-navigation-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-admin-navigation .admin-navigation-links {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
}

.main-admin-navigation .admin-navigation-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.admin-navigation-links a {
    padding: 9px 13px;
    border-radius: 9px;
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.admin-navigation-links a:hover,
.admin-navigation-links a.is-active {
    color: #fff;
    background: var(--button);
}

.admin-identity {
    min-width: 0;
    text-align: right;
}

.admin-identity strong,
.admin-identity span {
    display: block;
    overflow-wrap: anywhere;
}

.admin-identity span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.success-notice {
    margin: -18px 0 30px;
    border-left-color: var(--ready);
    background: var(--ready-bg);
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.admin-metric {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.05);
}

.admin-metric span,
.admin-metric strong {
    display: block;
}

.admin-metric span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-metric strong {
    margin-top: 10px;
    color: var(--ink);
    font-size: 32px;
}

.admin-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
}

.admin-section-heading h2 {
    margin: 5px 0 0;
}

.admin-section-heading .secondary-button {
    width: auto;
    margin: 0;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.admin-summary-card,
.admin-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.admin-summary-card h3 {
    margin: 14px 0 6px;
}

.admin-summary-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.admin-summary-card small {
    display: block;
    margin-top: 16px;
    color: var(--muted);
}

.admin-future-note {
    margin-top: 34px;
}

.admin-two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 22px;
    margin-top: 28px;
}

.admin-two-column.single-column {
    grid-template-columns: minmax(0, 1fr);
}

.admin-panel h2 {
    margin: 0 0 8px;
}

.admin-spaced-panel {
    margin-top: 24px;
}

.admin-list,
.admin-kiosk-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.admin-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
}

.admin-list-item:hover {
    border-color: var(--button);
    background: var(--button-soft);
}

.admin-list-item strong,
.admin-list-item span {
    display: block;
}

.admin-list-item div > span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.inline-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.inline-checkbox input {
    width: 20px;
    min-height: 20px;
    margin: 0;
    accent-color: var(--button);
}

.scope-lock {
    margin-top: 24px;
    padding: 14px;
    border-radius: 10px;
    color: var(--muted);
    background: #f3f6fb;
}

.controller-token-notice {
    margin-top: 24px;
    padding: 22px;
    overflow: hidden;
    border: 2px solid var(--attention);
    border-radius: 16px;
    background: var(--attention-bg);
}

.controller-token-notice h2 {
    margin: 6px 0 14px;
}

.controller-token-notice code {
    display: block;
    padding: 14px;
    overflow-wrap: anywhere;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
}

.admin-kiosk-layout {
    grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
}

.admin-kiosk-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.admin-kiosk-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px;
    cursor: pointer;
}

.admin-kiosk-card summary strong,
.admin-kiosk-card summary div > span {
    display: block;
    overflow-wrap: anywhere;
}

.admin-kiosk-card summary div > span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.admin-kiosk-card form {
    padding: 0 17px 20px;
    border-top: 1px solid var(--line);
}

.kiosk-system-details {
    display: grid;
    gap: 5px;
    margin-top: 22px;
    padding: 14px;
    border-radius: 10px;
    color: var(--muted);
    background: #f3f6fb;
    font-size: 13px;
}

.form-secondary-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--button);
    font-weight: 800;
}

.branding-panel,
.pricing-panel {
    max-width: 900px;
}

.branding-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 24px 0;
}

.branding-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    margin: 8px 0 14px;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--muted);
    background: #f7f9fc;
}

.branding-preview img {
    display: block;
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.favicon-preview img {
    width: 64px;
    height: 64px;
}

.pricing-rate-table {
    display: grid;
    gap: 8px;
    margin: 20px 0 24px;
}

.pricing-reset-form {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.pricing-reset-form .secondary-button {
    width: auto;
}

.pricing-rate-row {
    display: grid;
    grid-template-columns: 80px 100px repeat(2, minmax(150px, 1fr));
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.pricing-rate-heading {
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.price-input {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.price-input span {
    color: var(--muted);
    font-size: 13px;
}

.price-input input {
    margin: 0;
    min-width: 0;
}

.qr-admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.qr-sheet {
    width: min(100%, 560px);
    margin-inline: auto;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
    text-align: center;
}

.qr-sheet-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--ink);
    font-size: 20px;
}

.qr-sheet-brand img {
    width: min(300px, 82%);
    height: auto;
    max-height: 112px;
    border-radius: 0;
    object-fit: contain;
}

.qr-sheet-brand.uses-official-quiko-brand img {
    width: min(300px, 82%);
    height: auto;
    border-radius: 0;
}

.qr-sheet h2 {
    margin: 4px 0 6px;
    color: var(--button);
    font-size: clamp(34px, 7vw, 52px);
}

.qr-kiosk-name {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
}

.qr-kiosk-location {
    margin: 5px 0 22px;
    color: var(--muted);
}

.qr-code-frame {
    display: grid;
    width: min(100%, 352px);
    min-height: 352px;
    margin-inline: auto;
    place-items: center;
    padding: 16px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: #fff;
}

.qr-code-frame canvas,
.qr-code-frame img {
    display: block;
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
}

.qr-code-error {
    color: var(--attention);
    font-weight: 800;
}

.qr-instruction {
    margin: 24px auto 8px;
    max-width: 380px;
    font-weight: 700;
}

.qr-customer-url {
    margin: 0;
    color: var(--brand);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.qr-kiosk-code {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.qr-actions {
    justify-content: center;
    margin-top: 24px;
}

.qr-actions [aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.55;
}

@media (max-width: 640px) {
    .site-header,
    .site-footer,
    .page-shell {
        width: min(100% - 20px, 1120px);
    }

    .site-header {
        min-height: 64px;
    }

    .brand {
        gap: 8px;
        min-width: 0;
    }

    .brand > span:last-child {
        display: block;
        max-width: 112px;
        font-size: 12px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .customer-home-order {
        grid-template-columns: minmax(0, 1fr);
    }

    .customer-home-order > span:last-child {
        text-align: left;
    }

    .admin-portal .brand,
    .dealer-portal .brand {
        gap: 8px;
    }

    .admin-portal .brand-mark,
    .dealer-portal .brand-mark,
    .admin-portal .brand-mark img,
    .dealer-portal .brand-mark img {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .admin-portal .brand > span:last-child,
    .dealer-portal .brand > span:last-child {
        display: block;
        max-width: 94px;
        font-size: 12px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .page-shell {
        padding-block: 24px 48px;
    }

    .site-footer,
    .kiosk-heading,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .kiosk-card,
    .form-card,
    .customer-shell,
    .document-shell,
    .settings-shell,
    .preview-shell,
    .legal-card {
        border-radius: 18px;
    }

    .header-tools {
        align-items: flex-end;
        flex-direction: column;
        gap: 4px;
    }

    .language-switcher button {
        padding-inline: 7px;
        font-size: 11px;
    }

    .button-row,
    .account-grid,
    .two-options,
    .three-options,
    .settings-row,
    .admin-two-column,
    .branding-upload-grid {
        grid-template-columns: 1fr;
    }

    .admin-navigation,
    .admin-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-navigation-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .main-admin-navigation .admin-navigation-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pricing-rate-heading {
        display: none;
    }

    .pricing-rate-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-rate-row > strong,
    .pricing-rate-row > span {
        grid-column: auto;
    }

    .price-input {
        grid-template-columns: auto 1fr;
    }

    .price-input::before {
        content: attr(data-side);
        grid-column: 1 / -1;
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
    }


    .dealer-navigation .admin-navigation-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-navigation-links a {
        padding-inline: 7px;
        text-align: center;
    }

    .admin-identity {
        padding-top: 12px;
        border-top: 1px solid var(--line);
        text-align: left;
    }

    .admin-section-heading .secondary-button {
        width: 100%;
    }

    .admin-panel {
        padding: 18px;
    }

    .admin-list-item,
    .admin-kiosk-card summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .button-row .primary-button {
        margin-bottom: 0;
    }

    .upload-brand,
    .document-card {
        grid-template-columns: 1fr;
    }

    .upload-brand {
        flex-direction: column;
    }

    .document-list-tools,
    .heading-actions {
        width: 100%;
        justify-content: space-between;
    }

    .document-icon {
        width: 44px;
        height: 50px;
    }

    .file-picker span:last-of-type {
        min-width: 0;
        overflow: visible;
    }

    .file-picker strong,
    .document-details h3 {
        display: block;
        max-width: 100%;
        overflow: visible;
        overflow-wrap: anywhere;
        text-overflow: clip;
        white-space: normal;
        word-break: break-word;
    }

    .document-actions {
        grid-template-columns: 1fr 1fr;
    }

    .price-summary-heading {
        flex-direction: column;
    }

    .preview-toolbar {
        grid-template-columns: 1fr;
    }

    .preview-stage {
        min-height: 52vh;
        padding: 10px;
    }

    .preview-stage canvas {
        max-height: 49vh;
    }

    .preview-navigation {
        grid-template-columns: 1fr 1fr;
    }

    .preview-navigation strong {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    .qr-admin-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .qr-sheet {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .qr-code-frame {
        min-height: auto;
    }
}

.wallet-account-panel {
    color: var(--ink);
    text-decoration: none;
}

.wallet-account-panel:hover {
    border-color: var(--button);
    background: var(--button-soft);
}

.wallet-balance-card {
    display: grid;
    gap: 8px;
    margin-top: 26px;
    padding: 26px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--button-dark), var(--button));
    box-shadow: 0 16px 36px rgba(207, 101, 31, 0.22);
}

.wallet-balance-card span,
.wallet-balance-card small {
    font-weight: 700;
    opacity: 0.88;
}

.wallet-balance-card strong {
    font-size: clamp(38px, 8vw, 58px);
}

.wallet-notice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wallet-history-heading {
    margin-top: 38px;
}

.wallet-date-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: #fff;
}

.wallet-date-filter label,
.wallet-date-filter input,
.wallet-date-filter .primary-button {
    margin: 0;
}

.wallet-date-filter .primary-button {
    width: auto;
}

.wallet-reference {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.wallet-amount {
    font-weight: 850;
    white-space: nowrap;
}

.wallet-amount.credit {
    color: var(--ready);
}

.wallet-amount.debit {
    color: var(--offline);
}

.wallet-transaction-list {
    display: grid;
    gap: 0.75rem;
}

.wallet-transaction-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: #fff;
}

.wallet-transaction-card strong,
.wallet-transaction-card span,
.wallet-transaction-card small {
    display: block;
    overflow-wrap: anywhere;
}

.wallet-transaction-card span,
.wallet-transaction-values small {
    margin-top: 0.25rem;
    color: var(--muted);
}

.wallet-transaction-values {
    flex: 0 0 auto;
    text-align: right;
}

.wallet-transaction-values .wallet-amount {
    font-size: 1.15rem;
}

.admin-wallet-search {
    width: 100%;
    max-width: none;
    margin-top: 26px;
}

.admin-reload-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.6fr)
        minmax(150px, 0.75fr)
        minmax(150px, 0.75fr)
        minmax(150px, 0.7fr)
        auto;
    align-items: end;
    gap: 12px;
}

.admin-reload-filter-grid label {
    min-width: 0;
    margin: 0;
}

.admin-reload-filter-grid input,
.admin-reload-filter-grid select {
    margin-top: 7px;
}

.admin-reload-filter-action {
    display: flex;
    align-items: flex-end;
}

.admin-wallet-search .primary-button {
    width: auto;
    min-height: 50px;
    margin: 0;
}

.admin-wallet-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.admin-wallet-customer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-wallet-customer strong,
.admin-wallet-customer span,
.admin-wallet-customer small {
    display: block;
    overflow-wrap: anywhere;
}

.admin-wallet-customer span,
.admin-wallet-customer small {
    margin-top: 5px;
    color: var(--muted);
}

.admin-wallet-balance {
    text-align: right;
}

.admin-wallet-balance strong {
    margin-top: 5px;
    color: var(--button-dark);
    font-size: 26px;
}

.admin-wallet-balance .admin-test-credit-balance {
    margin-top: 8px;
    color: var(--button-dark);
}

.admin-wallet-balance small.admin-test-credit-balance {
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-weight: 800;
}

.admin-test-credit-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) minmax(240px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.admin-test-credit-form label,
.admin-test-credit-form input,
.admin-test-credit-form .primary-button {
    margin: 0;
}

.admin-test-credit-form .primary-button {
    width: auto;
}

.wallet-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.wallet-pagination .secondary-button {
    width: auto;
    margin: 0;
}

@media (max-width: 1100px) {
    .admin-reload-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-reload-search-field {
        grid-column: 1 / -1;
    }

    .admin-reload-filter-action .primary-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .wallet-notice-grid,
    .wallet-date-filter,
    .admin-test-credit-form,
    .admin-reload-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-reload-search-field {
        grid-column: auto;
    }

    .admin-wallet-customer {
        flex-direction: column;
    }

    .admin-wallet-balance {
        text-align: left;
    }

    .wallet-table-wrap table {
        min-width: 680px;
    }
}

.password-input-wrap {
    position: relative;
}

.awaiting-release-section {
    margin: 1.25rem 0;
    padding: 1rem;
    border: 2px solid #e66e1a;
    border-radius: 14px;
    background: #fff3e8;
    box-shadow: 0 8px 24px rgba(230, 110, 26, .12);
}

.awaiting-release-heading {
    margin-bottom: .75rem;
}

.awaiting-release-heading p:last-child {
    margin: .35rem 0 0;
}

.awaiting-release-order-card {
    border-color: #e66e1a;
    background: #fff;
}

.password-input-wrap input {
    padding-right: 8.25rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    min-height: 2rem;
    padding: 0.3rem 0.55rem;
    border: 0;
    border-radius: 0.45rem;
    color: #9a3f00;
    background: #fff3e8;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #fff;
    background: #e56717;
    outline: 2px solid #ffb36b;
    outline-offset: 1px;
}

.checkout-action-card,
.checkout-summary-grid,
.checkout-document-list,
.recent-order-list {
    display: grid;
    gap: 0.85rem;
}

.checkout-action-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 1.25rem;
    padding: 1.15rem;
    border: 1px solid #ffd3ad;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff8f1, #fff);
}

.checkout-action-card strong,
.checkout-action-card span {
    display: block;
}

.checkout-action-card span {
    margin-top: 0.3rem;
    color: #596575;
}

.checkout-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1rem 0;
}

.checkout-total-card {
    display: grid;
    align-content: center;
    gap: 0.35rem;
    padding: 1.2rem;
    border: 1px solid #ffd3ad;
    border-radius: 1rem;
    color: #6f2d00;
    background: #fff7ef;
}

.checkout-total-card span,
.checkout-total-card small {
    color: #7c5a43;
}

.checkout-total-card strong {
    color: #d85800;
    font-size: clamp(1.65rem, 5vw, 2.35rem);
}

.checkout-document-list {
    margin: 1rem 0;
}

.checkout-document-list article,
.recent-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e5e9ef;
    border-radius: 0.85rem;
    background: #fff;
}

.checkout-document-list article div,
.checkout-document-list article span,
.recent-order-card span,
.recent-order-card strong,
.recent-order-card small {
    display: block;
    min-width: 0;
}

.checkout-document-list article div {
    overflow-wrap: anywhere;
}

.checkout-document-list article span,
.recent-order-card small {
    margin-top: 0.25rem;
    color: #677383;
    font-size: 0.84rem;
}

.checkout-price-breakdown {
    margin: 1rem 0;
}

.checkout-confirm-form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.checkout-confirm-form .primary-button {
    width: 100%;
}

.recent-orders-heading {
    margin-top: 1.7rem;
}

.recent-order-card {
    color: inherit;
    text-decoration: none;
}

.recent-order-card:hover,
.recent-order-card:focus-visible {
    border-color: #f28a3a;
    box-shadow: 0 0.5rem 1.2rem rgb(127 65 16 / 10%);
}

.recent-order-card > span:last-child {
    text-align: right;
}

.order-status-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #e5e9ef;
    border-radius: 1rem;
    background: #fff;
}

.order-status-card span,
.order-status-card strong {
    display: block;
}

.order-status-card span {
    margin-bottom: 0.25rem;
    color: #677383;
    font-size: 0.82rem;
    font-weight: 700;
}

.order-full-reference {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.order-failure-summary {
    display: grid;
    gap: 0.35rem;
    margin: 1rem 0;
    padding: 1rem;
    border-left: 4px solid var(--offline);
    border-radius: 0.65rem;
    color: var(--offline);
    background: var(--offline-bg);
    overflow-wrap: anywhere;
}

.order-document-main,
.order-document-result {
    min-width: 0;
}

.order-document-main > strong {
    overflow-wrap: anywhere;
}

.order-document-result {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: 0.5rem;
}

.document-failure-message {
    display: block;
    margin-top: 0.45rem;
    color: var(--offline);
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .checkout-action-card,
    .checkout-summary-grid,
    .order-status-card {
        grid-template-columns: 1fr;
    }

    .checkout-action-card .primary-button {
        width: 100%;
    }

    .checkout-document-list article,
    .recent-order-card {
        align-items: flex-start;
    }

    .wallet-transaction-card {
        align-items: flex-start;
    }

    .order-document-list article {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .order-document-result {
        grid-template-columns: auto 1fr;
        justify-items: start;
        align-items: center;
    }
}

.recent-order-list {
    grid-template-columns: minmax(0, 1fr);
}

.recent-order-card.customer-home-order {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
}

@media (max-width: 640px) {
    .marketing-home .home-navigation {
        display: none;
    }

    body:not(.admin-portal):not(.dealer-portal) .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-block: 8px;
    }

    body:not(.admin-portal):not(.dealer-portal) .brand {
        width: 100%;
    }

    body:not(.admin-portal):not(.dealer-portal) .brand-name {
        display: block;
        max-width: none;
        font-size: 13px;
    }

    body:not(.admin-portal):not(.dealer-portal) .header-tools {
        width: 100%;
        align-items: center;
        justify-content: space-between;
        flex-flow: row wrap;
    }

    .marketing-home .header-tools {
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .marketing-home .mobile-home-signin {
        display: inline-flex;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        padding: 7px 15px;
        border: 1px solid var(--button);
        border-radius: 999px;
        color: #fff;
        background: var(--button);
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .marketing-home .language-switcher {
        min-height: 40px;
        margin-left: auto;
    }

    .marketing-home .language-switcher a,
    .marketing-home .language-switcher button {
        padding-inline: 7px;
        font-size: 11px;
    }

    .recent-order-card.customer-home-order {
        grid-template-columns: minmax(0, 1fr);
    }

    .recent-order-card.customer-home-order > span:last-child {
        text-align: left;
    }
}

.report-filter-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
    align-items: end;
    gap: 0.85rem;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #e5e9ef;
    border-radius: 1rem;
    background: #fff;
}

.report-filter-card label,
.report-filter-card input,
.report-filter-card select,
.report-filter-card .primary-button {
    margin: 0;
}

.report-filter-card .primary-button {
    width: auto;
    white-space: nowrap;
}

.report-period-note {
    margin: 0.75rem 0 1rem;
    color: #596575;
    font-size: 0.9rem;
}

.report-order-reference,
.report-failure-details,
.report-file-name {
    max-width: 18rem;
    overflow-wrap: anywhere;
}

.report-failure-details strong,
.report-failure-details span,
.report-failure-details small {
    display: block;
}

.report-failure-details span,
.report-failure-details small {
    margin-top: 0.3rem;
}

.report-order-row td {
    border-bottom: 0;
}

.report-order-detail-row > td {
    padding-top: 0;
    background: #f8fafc;
}

.report-order-details > summary {
    width: fit-content;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    color: var(--button-dark);
    background: var(--button-soft);
    font-weight: 800;
    cursor: pointer;
}

.report-order-details[open] > summary {
    margin-bottom: 0.75rem;
}

.report-file-table-wrap {
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
}

.report-file-table {
    min-width: 760px;
}

.dealer-failure-warning {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
    padding: 1rem;
    border: 2px solid #d33b2f;
    border-radius: 1rem;
    background: #fff3f1;
}

.dealer-failure-order {
    display: grid;
    gap: 0.3rem;
    padding: 0.85rem;
    border-radius: 0.75rem;
    background: #fff;
    overflow-wrap: anywhere;
}

.dealer-failure-order span,
.dealer-failure-order small {
    color: var(--muted);
}

.report-metric-grid .admin-metric {
    min-width: 0;
}

.report-metric-grid .admin-metric strong {
    overflow-wrap: anywhere;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.report-metric-grid .admin-metric small {
    display: block;
    margin-top: 0.35rem;
    color: #677383;
}

.completed-sales-breakdown {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.05);
}

.completed-sales-breakdown > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
}

.completed-sales-breakdown > summary::-webkit-details-marker {
    display: none;
}

.completed-sales-breakdown > summary strong,
.completed-sales-breakdown > summary small {
    display: block;
}

.completed-sales-breakdown > summary small {
    margin-top: 4px;
    color: var(--muted);
}

.completed-sales-breakdown > summary > span {
    color: var(--button-dark);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.completed-sales-breakdown[open] > summary {
    border-bottom: 1px solid var(--line);
    background: var(--button-soft);
}

.completed-sales-breakdown[open] > summary > span::before {
    content: "Hide ";
}

.completed-sales-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}

.completed-sales-group h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.completed-sales-list {
    display: grid;
    gap: 8px;
}

.completed-sales-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.completed-sales-row strong,
.completed-sales-row small {
    display: block;
}

.completed-sales-row small {
    margin-top: 3px;
    color: var(--muted);
}

.completed-sales-row > span {
    color: var(--button-dark);
    font-weight: 900;
}

.report-table-wrap table {
    min-width: 780px;
}

.report-table-wrap td small,
.report-table-wrap td strong {
    display: block;
}

.report-table-wrap td small {
    margin-top: 0.2rem;
    color: #677383;
}

.order-report-table table {
    min-width: 980px;
}

@media (max-width: 900px) {
    .report-filter-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .report-filter-card {
        grid-template-columns: 1fr;
    }

    .report-filter-card .primary-button {
        width: 100%;
    }

    .completed-sales-breakdown > summary,
    .completed-sales-groups {
        grid-template-columns: 1fr;
    }

    .completed-sales-breakdown > summary {
        align-items: flex-start;
    }

    .completed-sales-groups {
        display: grid;
    }
}

.settlement-metric-grid {
    margin-top: 1rem;
}

.customer-metrics-heading {
    margin-top: 2rem;
}

.dashboard-date-filter {
    display: flex;
    align-items: end;
    gap: 0.6rem;
}

.dashboard-date-filter label,
.dashboard-date-filter input,
.dashboard-date-filter .secondary-button {
    width: auto;
    margin: 0;
}

.dashboard-date-filter label {
    align-self: center;
}

.dashboard-date-filter .secondary-button {
    min-height: 42px;
}

.customer-wallet-metric-grid {
    margin-bottom: 0;
}

.consumables-editor {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #ffd3ad;
    border-radius: 14px;
    background: #fffaf5;
}

.consumables-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.consumables-heading h3 {
    margin: 5px 0 0;
}

.consumables-input-grid,
.consumables-threshold-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
}

.consumables-input-grid label:last-child {
    grid-column: 1 / -1;
}

.supply-alert-list {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 9px;
    color: var(--attention);
    background: var(--attention-bg);
    font-weight: 700;
}

.consumables-meta {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.consumables-card-summary {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: #f7f9fc;
}

.consumables-card-summary .status-pill {
    justify-self: start;
}

.kiosk-summary-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.consumables-level-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: var(--muted);
    font-size: 13px;
}

.consumables-level-row strong {
    color: var(--ink);
}

@media (max-width: 640px) {
    .dashboard-date-filter {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .dashboard-date-filter input,
    .dashboard-date-filter .secondary-button {
        width: 100%;
    }

    .consumables-heading {
        flex-direction: column;
    }

    .consumables-input-grid,
    .consumables-threshold-grid {
        grid-template-columns: 1fr;
    }

    .consumables-input-grid label:last-child {
        grid-column: auto;
    }

    .kiosk-summary-badges {
        justify-content: flex-start;
    }
}

/* Phase 2 public marketing home */
.home-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-inline: auto 18px;
}

.home-navigation a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-navigation a:hover {
    color: var(--brand);
}

.home-navigation .home-nav-login {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand);
    background: #fff;
}

.home-page {
    overflow: hidden;
}

.home-page h2 {
    margin: 8px 0 16px;
    font-size: clamp(32px, 4.7vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.home-page h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.015em;
}

.home-page p {
    line-height: 1.65;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    align-items: center;
    gap: clamp(48px, 7vw, 92px);
    min-height: 640px;
    padding: clamp(36px, 7vw, 84px) 0 72px;
}

.home-hero-copy h1 {
    max-width: 700px;
    margin-top: 14px;
    font-size: clamp(48px, 6.7vw, 78px);
}

.home-hero-lead,
.home-section-lead {
    max-width: 680px;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 21px);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-button {
    width: auto;
    min-width: 188px;
    margin: 0;
    padding: 13px 20px;
}

.home-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 28px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    list-style: none;
}

.home-trust-list li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.home-product-demo {
    position: relative;
    isolation: isolate;
    width: min(100%, 440px);
    min-height: 500px;
    justify-self: end;
    padding: 24px;
    overflow: hidden;
    border-radius: 34px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 34px 80px rgba(11, 62, 134, 0.24);
}

.home-product-demo::before,
.home-product-demo::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.home-product-demo::before {
    top: -70px;
    right: -54px;
    width: 210px;
    height: 210px;
    background: var(--accent);
}

.home-product-demo::after {
    bottom: -70px;
    left: -50px;
    width: 190px;
    height: 190px;
    border: 34px solid rgba(255, 255, 255, 0.08);
}

.home-demo-topbar,
.home-demo-order,
.home-demo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.home-demo-brand {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.home-demo-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    font-size: 12px;
    font-weight: 800;
}

.home-demo-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #61d482;
    box-shadow: 0 0 0 4px rgba(97, 212, 130, 0.15);
}

.home-demo-paper {
    position: relative;
    width: 200px;
    height: 245px;
    margin: 38px auto 28px;
    padding: 56px 28px;
    transform: rotate(-3deg);
    border-radius: 5px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 22px 42px rgba(4, 25, 54, 0.3);
}

.home-demo-fold {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 38px;
    background: linear-gradient(225deg, rgba(11, 62, 134, 0.12) 50%, #fff 50%);
}

.home-demo-line {
    display: block;
    height: 7px;
    margin-top: 15px;
    border-radius: 99px;
    background: #dce5ef;
}

.home-demo-line.is-title {
    width: 70%;
    height: 12px;
    margin-top: 0;
    background: var(--brand);
}

.home-demo-line.is-short {
    width: 74%;
}

.home-demo-page {
    position: absolute;
    right: 22px;
    bottom: 18px;
    padding: 5px 7px;
    border-radius: 5px;
    color: var(--button-dark);
    background: var(--button-soft);
    font-size: 10px;
    font-weight: 900;
}

.home-demo-order {
    position: relative;
    z-index: 1;
    padding: 15px 16px;
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
}

.home-demo-order div {
    min-width: 0;
}

.home-demo-order span,
.home-demo-order strong {
    display: block;
}

.home-demo-order span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-demo-order div strong {
    margin-top: 4px;
    font-size: 13px;
}

.home-demo-order > strong {
    color: var(--brand);
    white-space: nowrap;
}

.home-demo-progress {
    height: 5px;
    margin: 17px 4px 14px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
}

.home-demo-progress span {
    display: block;
    width: 82%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.home-demo-footer {
    font-size: 12px;
}

.home-demo-footer span {
    max-width: 58%;
    color: rgba(255, 255, 255, 0.72);
}

.home-product-showcase {
    position: relative;
    isolation: isolate;
    width: min(100%, 480px);
    min-height: 590px;
    justify-self: end;
}

.home-product-showcase::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 40px 0 20px 42px;
    border-radius: 44% 56% 52% 48% / 39% 42% 58% 61%;
    background: var(--brand);
    transform: rotate(-4deg);
}

.home-product-showcase::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 6px;
    right: 14px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--accent);
}

.home-real-screen-badge {
    position: absolute;
    z-index: 5;
    top: 24px;
    left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    color: #fff;
    background: rgba(8, 46, 101, 0.9);
    box-shadow: 0 12px 28px rgba(8, 46, 101, 0.25);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-real-screen-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #61d482;
    box-shadow: 0 0 0 4px rgba(97, 212, 130, 0.18);
}

.home-phone-frame {
    position: absolute;
    overflow: hidden;
    border: 7px solid #111a2d;
    border-radius: 30px;
    background: #111a2d;
    box-shadow: 0 28px 64px rgba(8, 26, 55, 0.32);
}

.home-phone-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 21px;
}

.home-phone-main {
    top: 30px;
    left: 46px;
    width: 318px;
    height: 530px;
    transform: rotate(-2deg);
}

.home-phone-float {
    z-index: 3;
    right: 0;
    bottom: 10px;
    width: 205px;
    height: 340px;
    border-width: 5px;
    border-radius: 24px;
    transform: rotate(3deg);
}

.home-phone-float img {
    border-radius: 16px;
}

.home-phone-speaker {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 50%;
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: #111a2d;
    transform: translateX(-50%);
}

.home-showcase-note {
    position: absolute;
    z-index: 4;
    right: 14px;
    bottom: 16px;
    display: grid;
    max-width: 190px;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 13px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 14px 32px rgba(8, 26, 55, 0.18);
}

.home-showcase-note strong {
    color: var(--brand);
    font-size: 13px;
}

.home-showcase-note span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.home-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 116px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
}

.home-proof div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px;
    text-align: left;
}

.home-proof div + div {
    border-left: 1px solid var(--line);
}

.home-proof strong {
    color: var(--accent);
    font-size: 32px;
    line-height: 1;
}

.home-proof span {
    max-width: 125px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.home-tour {
    padding-top: 40px;
}

.home-tour-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

.home-tour-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(23, 32, 51, 0.08);
}

.home-tour-card.is-raised {
    transform: translateY(-22px);
}

.home-tour-screen {
    height: 410px;
    padding: 16px 16px 0;
    overflow: hidden;
    background: linear-gradient(145deg, #eaf1fb, #fff1e8);
}

.home-tour-screen::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: 99px;
    background: #a8b4c4;
}

.home-tour-screen img {
    display: block;
    width: 100%;
    height: 385px;
    object-fit: cover;
    object-position: top;
    border: 5px solid #172033;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: #f4f7fb;
}

.home-tour-card figcaption {
    display: flex;
    gap: 13px;
    min-height: 150px;
    padding: 22px;
}

.home-tour-card figcaption > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.home-tour-card figcaption strong {
    display: block;
    font-size: 17px;
}

.home-tour-card figcaption p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.home-section {
    padding: 84px 0;
    scroll-margin-top: 20px;
}

.home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    align-items: end;
    gap: 48px;
    margin-bottom: 44px;
}

.home-section-heading > p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 17px;
}

.home-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-step-card {
    position: relative;
    min-height: 320px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.home-step-number {
    position: absolute;
    top: 20px;
    right: 22px;
    color: #dce4ee;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.home-step-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 66px;
    place-items: center;
    border-radius: 17px;
    color: var(--brand);
    background: #eaf1fb;
}

.home-step-icon svg {
    width: 30px;
    fill: currentColor;
}

.home-step-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.home-scan-note {
    margin: 22px 0 0;
    padding: 14px 18px;
    border-left: 4px solid var(--accent);
    color: var(--muted);
    background: #fff;
}

.home-feature-band {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(54px, 8vw, 110px);
    margin: 82px 0;
    padding: clamp(42px, 7vw, 76px);
    scroll-margin-top: 20px;
    border-radius: 32px;
    color: #fff;
    background: var(--brand-dark);
}

.home-feature-band h2 {
    color: #fff;
}

.home-feature-copy > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
}

.home-feature-copy > a {
    display: inline-flex;
    gap: 8px;
    margin-top: 18px;
    color: #fff;
    font-weight: 800;
    text-decoration-color: var(--accent);
    text-underline-offset: 6px;
}

.home-feature-list {
    display: grid;
}

.home-feature-list article {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.home-feature-list article:first-child {
    padding-top: 0;
}

.home-feature-list article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.home-feature-list article > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    color: var(--brand-dark);
    background: var(--accent);
    font-weight: 900;
}

.home-feature-list p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.67);
}

.home-dealer-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(440px, 1.16fr);
    align-items: start;
    gap: clamp(48px, 7vw, 90px);
    padding-top: 110px;
}

.home-dealer-copy {
    position: sticky;
    top: 30px;
}

.home-dealer-benefits {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.home-dealer-benefits article {
    display: grid;
    gap: 5px;
    padding-left: 18px;
    border-left: 3px solid var(--accent);
}

.home-dealer-benefits span,
.home-dealer-fit p {
    color: var(--muted);
    line-height: 1.55;
}

.home-dealer-fit {
    margin-top: 34px;
    padding: 18px;
    border-radius: 14px;
    background: #eaf1fb;
}

.home-dealer-fit p {
    margin: 7px 0 0;
}

.home-application-card {
    padding: clamp(26px, 5vw, 46px);
    scroll-margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(23, 32, 51, 0.1);
}

.home-application-card h2 {
    font-size: clamp(32px, 4vw, 44px);
}

.home-application-card > p:not(.eyebrow) {
    margin-bottom: 4px;
    color: var(--muted);
}

.home-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-form-location {
    grid-template-columns: minmax(0, 1.5fr) minmax(90px, 0.65fr) minmax(90px, 0.55fr);
}

.home-application-card label {
    margin-top: 18px;
    font-size: 14px;
}

.home-application-card input,
.home-application-card select,
.home-application-card textarea {
    min-height: 46px;
}

.home-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    opacity: 0;
}

.home-consent {
    margin-top: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.home-application-card .primary-button {
    margin-top: 18px;
}

.home-form-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.home-faq {
    max-width: 840px;
    margin-inline: auto;
}

.home-faq .home-section-heading {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
}

.home-faq-list {
    border-top: 1px solid var(--line);
}

.home-faq details {
    border-bottom: 1px solid var(--line);
}

.home-faq summary {
    padding: 22px 38px 22px 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.home-faq details p {
    max-width: 720px;
    margin: -6px 0 24px;
    color: var(--muted);
}

.home-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    margin-top: 54px;
    padding: clamp(32px, 6vw, 58px);
    border-radius: 28px;
    background: #fff1e8;
}

.home-final-cta h2 {
    max-width: 680px;
    margin-bottom: 0;
}

.dealer-application-panel {
    margin-top: 28px;
}

.dealer-application-panel .section-heading h2 {
    margin: 5px 0 0;
}

.dealer-application-panel table {
    min-width: 900px;
}

.dealer-application-panel td a,
.dealer-application-panel td span {
    display: block;
    margin-top: 4px;
}

@media (max-width: 980px) {
    .home-navigation {
        display: flex;
        gap: 0;
        margin-inline: auto 8px;
    }

    .home-navigation a:not(.home-nav-login) {
        display: none;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
        gap: 40px;
    }

    .home-dealer-intro {
        grid-template-columns: 1fr;
    }

    .home-dealer-copy {
        position: static;
    }
}

@media (max-width: 760px) {
    .home-navigation {
        width: 100%;
        margin: 0;
    }

    .home-navigation .home-nav-login {
        width: 100%;
        text-align: center;
    }

    .home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 30px;
    }

    .home-hero-copy h1 {
        font-size: clamp(44px, 13vw, 64px);
    }

    .home-product-demo {
        width: 100%;
        max-width: 500px;
        justify-self: center;
    }

    .home-product-showcase {
        width: min(100%, 500px);
        justify-self: center;
    }

    .home-proof {
        margin-bottom: 64px;
    }

    .home-proof div {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-section {
        padding: 60px 0;
    }

    .home-section-heading,
    .home-step-grid,
    .home-feature-band,
    .home-tour-grid {
        grid-template-columns: 1fr;
    }

    .home-tour-grid {
        gap: 20px;
    }

    .home-tour-card.is-raised {
        transform: none;
    }

    .home-tour-screen {
        height: 460px;
    }

    .home-tour-screen img {
        height: 435px;
    }

    .home-section-heading {
        gap: 10px;
        margin-bottom: 30px;
    }

    .home-step-card {
        min-height: 260px;
    }

    .home-step-icon {
        margin-bottom: 48px;
    }

    .home-feature-band {
        gap: 42px;
        margin: 52px 0;
    }

    .home-final-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .home-hero-actions,
    .home-final-cta .home-button {
        width: 100%;
    }

    .home-button {
        width: 100%;
    }

    .home-trust-list {
        display: grid;
    }

    .home-product-demo {
        min-height: 470px;
        padding: 20px;
        border-radius: 24px;
    }

    .home-product-showcase {
        min-height: 520px;
    }

    .home-product-showcase::before {
        inset: 36px 6px 16px 18px;
    }

    .home-phone-main {
        left: 18px;
        width: 70%;
        height: 470px;
    }

    .home-phone-float {
        width: 45%;
        height: 300px;
    }

    .home-showcase-note {
        right: 4px;
        bottom: 5px;
        max-width: 170px;
    }

    .home-real-screen-badge {
        left: 0;
    }

    .home-tour-screen {
        height: 400px;
    }

    .home-tour-screen img {
        height: 375px;
    }

    .home-demo-paper {
        width: 180px;
        height: 225px;
        margin-top: 34px;
    }

    .home-proof {
        grid-template-columns: 1fr;
    }

    .home-proof div {
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
        padding: 17px 20px;
    }

    .home-proof div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .home-proof span {
        max-width: none;
    }

    .home-feature-band {
        margin-inline: -8px;
        padding: 34px 26px;
        border-radius: 24px;
    }

    .home-dealer-intro {
        gap: 42px;
    }

    .home-form-row,
    .home-form-location {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-application-card {
        margin-inline: -8px;
        border-radius: 20px;
    }
}

.order-history-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.order-history-filter > div {
    min-width: 0;
}

.order-history-list {
    display: grid;
    gap: 0.85rem;
}

.order-history-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(7rem, auto);
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-history-card:hover,
.order-history-card:focus-visible {
    border-color: var(--orange);
    box-shadow: 0 8px 24px rgba(185, 84, 16, 0.12);
}

.order-history-card > span {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.order-history-card > span:last-child {
    text-align: right;
}

.order-history-card strong,
.order-history-card small {
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .order-history-filter,
    .order-history-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-history-filter .primary-button {
        width: 100%;
    }

    .order-history-card > span:last-child {
        text-align: left;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 14mm;
    }

    body {
        background: #fff;
    }

    .site-header,
    .site-footer,
    .qr-page-navigation,
    .qr-admin-heading,
    .qr-actions {
        display: none !important;
    }

    .page-shell {
        width: 100%;
        min-height: 0;
        padding: 0;
    }

    .qr-sheet {
        width: 100%;
        max-width: none;
        padding: 14mm;
        border: 2px solid #172033;
        box-shadow: none;
        break-inside: avoid;
    }

    .qr-sheet-brand img,
    .qr-sheet-brand.uses-official-quiko-brand img {
        width: 70mm;
        max-height: 24mm;
    }

    .qr-code-frame {
        width: 92mm;
        min-height: 92mm;
    }
}


.phone-prefix-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
.phone-prefix-field > span { display: grid; place-items: center; min-width: 3.25rem; padding: 0 0.85rem; border: 1px solid #cbd3df; border-right: 0; border-radius: 12px 0 0 12px; background: #f4f6f9; font-weight: 800; }
.phone-prefix-field > input { border-radius: 0 12px 12px 0; }
.admin-form-divider { margin: 2rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid #dfe4ec; }
.service-hours-fieldset { margin: 1.25rem 0; padding: 1rem; border: 1px solid #d7dde7; border-radius: 14px; }
.service-hours-fieldset legend { padding: 0 0.4rem; font-weight: 800; }
.service-hours-row { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(7rem, 0.8fr) auto minmax(7rem, 0.8fr); gap: 0.65rem; align-items: center; margin-top: 0.7rem; }
.customer-assistance-panel { display: grid; gap: 1.25rem; margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #f2c59f; border-left: 5px solid #e66e1a; border-radius: 16px; background: #fffaf6; }
.customer-assistance-panel h2, .customer-assistance-panel h3, .customer-assistance-panel p { margin-top: 0; }
.agent-assistance-block { padding-top: 1.25rem; border-top: 1px solid #edcfb8; }
.compact-service-hours { display: grid; gap: .3rem; margin: .75rem 0 .35rem; }
.compact-service-hours small { display: block; }
.compact-assistance-buttons { margin-top: 0.85rem; }
.service-hours-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1rem; margin: 1rem 0 0.5rem; }
.service-hours-summary > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.service-hours-summary dt { font-weight: 700; }
@media (max-width: 640px) {
    .service-hours-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .service-hours-row > span { display: none; }
    .service-hours-summary { grid-template-columns: minmax(0, 1fr); }
}
