* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f5f7f9;
    color: #17212b;
    font-family: Arial, Helvetica, sans-serif;
}

.page-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.page-shell:has(.wide-panel) {
    align-items: flex-start;
}

.panel,
.wide-panel {
    width: 100%;
    padding: 32px;
    border: 1px solid #d9e0e7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(23, 33, 43, 0.08);
}

.panel {
    max-width: 560px;
}

.wide-panel {
    max-width: 980px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #506171;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 18px;
    font-size: 32px;
    line-height: 1.15;
}

.dealer-name {
    margin: 0 0 22px;
    color: #314255;
    font-size: 18px;
    font-weight: 700;
}

.message {
    margin: 0 0 18px;
    color: #405365;
    line-height: 1.5;
}

.error {
    color: #9a2f27;
}

.lookup-form label,
.base-form label {
    display: block;
    margin-bottom: 8px;
    color: #314255;
    font-weight: 700;
}

.lookup-row {
    display: flex;
    gap: 10px;
}

input {
    min-width: 0;
    flex: 1;
    border: 1px solid #b7c2cc;
    border-radius: 6px;
    padding: 12px 14px;
    font: inherit;
}

button,
.brand-button,
.store-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: #123f6d;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

button {
    padding: 0 18px;
}

.button-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.brand-button,
.store-button {
    padding: 14px 18px;
}

.store-button {
    background: #1f6f52;
}

.text-link {
    display: inline-block;
    margin-top: 20px;
    color: #123f6d;
    font-weight: 700;
}

.no-margin {
    margin-top: 0;
}

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

.base-form {
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d9e0e7;
}

.help-text {
    margin: 10px 0 0;
    color: #506171;
    font-size: 14px;
}

.print-note {
    margin: 8px 0 0;
    color: #506171;
    font-size: 14px;
}

.qr-list {
    display: grid;
    gap: 14px;
}

.qr-row {
    display: grid;
    grid-template-columns: 112px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid #d9e0e7;
    border-radius: 8px;
    background: #fbfcfd;
}

.qr-preview {
    width: 112px;
    height: 112px;
    border: 8px solid #ffffff;
    background: #ffffff;
}

.qr-details h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.qr-details p {
    margin: 0 0 6px;
    color: #506171;
}

.landing-url {
    color: #123f6d;
    overflow-wrap: anywhere;
}

.qr-actions {
    display: flex;
    gap: 8px;
}

.small-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #123f6d;
    color: #ffffff;
    font-weight: 700;
    padding: 0 14px;
    text-decoration: none;
}

.small-button.secondary {
    background: #1f6f52;
}

@media (max-width: 520px) {
    .page-shell {
        align-items: stretch;
        padding: 14px;
    }

    .panel {
        padding: 24px;
    }

    h1 {
        font-size: 26px;
    }

    .lookup-row {
        flex-direction: column;
    }

    .section-heading,
    .qr-row,
    .qr-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .qr-preview {
        width: 140px;
        height: 140px;
        align-self: center;
    }
}
