:root {
    --ink: #241d1a;
    --paper: #f3e6cf;
    --accent: #241d1a;
    --accent-contrast: #f3e6cf;
    --line: rgba(36, 29, 26, 0.16);
    --soft-line: rgba(36, 29, 26, 0.08);
    --shadow: rgba(36, 29, 26, 0.18);
    --body-font: 'Syne', sans-serif;
    --heading-font: 'DM Serif Display', serif;
    --button-radius: 16px;
    --page-background-layer-a: linear-gradient(0deg, transparent 24px, var(--soft-line) 24px, var(--soft-line) 25px, transparent 25px);
    --page-background-layer-b: linear-gradient(90deg, transparent 24px, var(--soft-line) 24px, var(--soft-line) 25px, transparent 25px);
    --page-background-layer-c: none;
    --page-background-size: 25px 25px, 25px 25px, auto, auto;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        var(--page-background-layer-a),
        var(--page-background-layer-b),
        var(--page-background-layer-c),
        var(--paper);
    background-size: var(--page-background-size);
    color: var(--ink);
    font-family: var(--body-font);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.site-shell {
    flex: 1 0 auto;
    width: min(1120px, calc(100vw - 2rem));
    margin: 0 auto;
    padding: 1rem 0 4.75rem;
}

.site-credit {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    padding: 0.95rem 1rem 1.05rem;
    background: #040404;
    color: #f7f7f7;
}

.site-credit-copy {
    width: min(1120px, calc(100vw - 2rem));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.site-credit-link {
    text-decoration: none;
    background: linear-gradient(90deg, #7cff72 0%, #34f5c5 45%, #00b8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.flash {
    margin: 1rem auto 1.5rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 20px 8px 24px 10px;
    background: rgba(243, 230, 207, 0.92);
    box-shadow: 6px 6px 0 var(--shadow);
}

.form-feedback {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 20px 8px 24px 10px;
    background: rgba(243, 230, 207, 0.92);
    box-shadow: 5px 5px 0 var(--shadow);
}

.form-feedback-error {
    background: rgba(255, 232, 226, 0.96);
}

.page {
    display: grid;
    gap: 4rem;
}

.app-mark-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 0.8rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 22px 10px 24px 12px;
    background: color-mix(in srgb, var(--paper) 96%, white 4%);
    box-shadow: 6px 6px 0 var(--shadow);
}

.app-mark-banner-customer {
    width: fit-content;
}

.hero-banner,
.panel {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--ink);
    background: color-mix(in srgb, var(--paper) 94%, white 6%);
    box-shadow: 8px 8px 0 var(--shadow);
}

.hero-banner {
    padding: 1.35rem;
    border-radius: 36px 14px 40px 20px;
}

.panel {
    padding: 1.15rem;
    border-radius: 26px 10px 30px 14px;
}

.panel-angled::before,
.hero-banner::before,
.panel-hero::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px dashed var(--line);
    border-radius: inherit;
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

h1,
h2 {
    margin: 0;
    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 0.98;
}

h1 {
    font-size: clamp(2.3rem, 10vw, 4.6rem);
}

h2 {
    font-size: clamp(1.8rem, 6.5vw, 2.8rem);
}

.lede,
p,
label span,
.session-note,
.micro-copy {
    line-height: 1.45;
}

.lede {
    margin: 0.85rem 0 0;
    max-width: 34rem;
    font-size: 1rem;
}

.micro-copy,
.session-note {
    margin: 0;
    font-size: 0.94rem;
}

.board-grid,
.board-grid-admin,
.shop-grid,
.stat-strip,
.action-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.board-grid > *,
.board-grid-admin > *,
.shop-grid > * {
    flex: 1 1 280px;
}

.home-proof-grid,
.home-contact-grid {
    display: grid;
    gap: 1rem;
}

.hero-home-compact {
    background:
        radial-gradient(circle at top right, rgba(72, 201, 176, 0.24), transparent 34%),
        radial-gradient(circle at left bottom, rgba(38, 150, 255, 0.2), transparent 30%),
        color-mix(in srgb, var(--paper) 94%, white 6%);
}

.home-value-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.home-value-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(36, 29, 26, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.home-story-panel,
.contact-form-panel,
.home-contact-copy {
    display: grid;
    gap: 1rem;
}

.home-benefit-card {
    display: grid;
    gap: 0.7rem;
}

.home-benefit-card-gold {
    background: linear-gradient(135deg, rgba(255, 244, 204, 0.95), rgba(255, 255, 255, 0.82));
}

.home-benefit-card-mint {
    background: linear-gradient(135deg, rgba(224, 255, 244, 0.96), rgba(255, 255, 255, 0.82));
}

.home-benefit-card-sky {
    background: linear-gradient(135deg, rgba(228, 243, 255, 0.96), rgba(255, 255, 255, 0.82));
}

.home-proof-item {
    background: rgba(255, 255, 255, 0.58);
}

.action-ribbon {
    margin-top: 1rem;
    align-items: center;
}

.action-ribbon-center {
    justify-content: center;
}

[data-review-actions][hidden] {
    display: none;
}

.action-ribbon-tight {
    margin-top: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 52px;
    padding: 0.85rem 1.2rem;
    border: 2px solid var(--accent);
    border-radius: var(--button-radius);
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--shadow);
}

.button:active {
    transform: translate(2px, 2px) scale(0.985);
    box-shadow: 1px 1px 0 var(--shadow);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.button-paper {
    background: color-mix(in srgb, var(--paper) 88%, white 12%);
    color: var(--accent);
}

.button-ink {
    background: var(--accent);
    color: var(--accent-contrast);
}

.merchant-lockup {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.merchant-lockup-customer {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    justify-items: end;
    justify-self: end;
    width: min(100%, 22rem);
    text-align: right;
}

.merchant-brand-heading {
    display: grid;
    gap: 0.15rem;
    justify-items: end;
}

.customer-hero-copy {
    margin-left: auto;
    text-align: right;
}

.page-customer .merchant-lockup-customer {
    width: 100%;
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: start;
    justify-self: stretch;
    gap: 0.3rem;
    text-align: left;
}

.page-customer .merchant-lockup-customer .merchant-brand-heading {
    justify-items: start;
    align-self: start;
}

.merchant-app-signature {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--ink);
}

.page-customer .customer-hero-copy {
    margin-left: 0;
    text-align: left;
}

.merchant-logo-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: min(38vw, 210px);
    padding: 0.75rem;
    border: 2px solid var(--accent);
    border-radius: 26px 10px 28px 12px;
    background: color-mix(in srgb, var(--paper) 90%, white 10%);
}

.merchant-logo {
    width: auto;
    height: auto;
    max-width: min(34vw, 180px);
    max-height: 110px;
    object-fit: contain;
}

.wheel-stage {
    display: grid;
    gap: 3rem;
    justify-items: center;
}

.wheel-playground {
    width: 100%;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.wheel-playground[hidden] {
    display: none;
}

.wheel-frame {
    position: relative;
    width: min(88vw, 460px);
    min-width: 0;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.wheel-frame-admin {
    width: min(72vw, 300px);
    min-width: 250px;
}

.wheel-frame::before,
.wheel-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.wheel-frame::before {
    border: 2px solid var(--accent);
    box-shadow: 10px 10px 0 var(--shadow);
}

.wheel-frame::after {
    inset: 16px;
    border: 2px dashed var(--line);
    opacity: 0.35;
}

.wheel {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 0;
}

.wheel.is-spinning {
    filter: saturate(0.95) contrast(1.02);
}

@media (max-width: 360px) {
    .wheel-frame,
    .wheel-frame-admin {
        min-width: 0;
    }

    .wheel-frame {
        width: min(90vw, 460px);
    }

    .wheel-frame-admin {
        width: min(82vw, 300px);
    }
}

.wheel-core {
    position: absolute;
    display: grid;
    place-items: center;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--paper) 90%, white 10%);
    font-family: var(--heading-font);
    text-align: center;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

.wheel-frame:not(.wheel-frame-admin) .wheel-core {
    inset: 39.5%;
    font-size: clamp(0.92rem, 4.8vw, 1.25rem);
}

.wheel-frame-admin .wheel-core {
    inset: 36.5%;
    font-size: 1.05rem;
}

.wheel-core span {
    display: block;
}

.wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: clamp(14px, 4.2vw, 20px) solid transparent;
    border-right: clamp(14px, 4.2vw, 20px) solid transparent;
    border-top: clamp(28px, 8vw, 40px) solid var(--accent);
    z-index: 3;
}

.panel-ticket {
    width: min(88vw, 540px);
    text-align: center;
    border-radius: 34px 12px 40px 14px;
}

.panel-ticket[hidden] {
    display: none;
}

.admin-auth {
    max-width: 680px;
    margin: 0 auto;
}

.stack-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.stack-form label,
.inline-form {
    display: grid;
    gap: 0.35rem;
}

input,
textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 2px solid var(--ink);
    border-radius: 18px 6px 20px 8px;
    background: rgba(243, 230, 207, 0.94);
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.toggle-line {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.7rem;
}

.toggle-line input[type='checkbox'] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.toggle-line input[type='hidden'] {
    display: none;
}

.stat-strip {
    margin: 0;
}

.stat-pill {
    min-width: 120px;
    padding: 0.85rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 999px 999px 18px 18px;
    background: rgba(243, 230, 207, 0.94);
    box-shadow: 5px 5px 0 var(--shadow);
    text-align: center;
}

.stat-pill strong {
    display: block;
    font-size: 1.7rem;
    font-family: 'DM Serif Display', serif;
    line-height: 1;
}

.stat-pill-inline {
    min-width: unset;
    align-self: flex-start;
}

.merchant-wheel-builder,
.wheel-builder-grid,
.wheel-builder-layout,
.wheel-builder-preview,
.wheel-builder-stack,
.segment-list-stack {
    display: grid;
    gap: 1rem;
}

.wheel-builder-panel,
.panel-reward {
    display: grid;
    gap: 2rem;
}

.wheel-builder-panel:not([open]),
.panel-reward:not([open]) {
    gap: 0;
}

.wheel-builder-panel {
    overflow: visible;
}

.google-review-inline-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.85rem;
    align-items: end;
}

.google-review-inline-input {
    margin: 0;
}

.google-review-inline-button {
    align-self: end;
    white-space: nowrap;
}

.google-review-inline-button.is-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.wheel-builder-preview {
    justify-items: center;
    align-content: start;
}

.wheel-builder-stack {
    align-content: start;
}

.wheel-builder-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--soft-line);
}

.wheel-builder-menu-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: color-mix(in srgb, var(--paper) 90%, white 10%);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.wheel-builder-menu-button:hover {
    background: color-mix(in srgb, var(--paper) 76%, white 24%);
    border-color: var(--line);
}

.wheel-builder-menu-button.is-active {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
}

.wheel-builder-menu-button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.wheel-builder-pane {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.wheel-builder-pane[hidden] {
    display: none;
}

.wheel-builder-pane-shell {
    display: grid;
    gap: 1rem;
}

.segment-create-launcher {
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 0.35rem 0 0.6rem;
}

.segment-create-launcher .button {
    min-width: min(100%, 280px);
}

.segment-create-dialog {
    width: min(680px, calc(100vw - 2rem));
    max-height: min(84vh, 860px);
}

.segment-create-probability {
    border-style: solid;
    border-width: 2px;
    background: color-mix(in srgb, var(--paper) 78%, white 22%);
    font-size: 0.98rem;
    font-weight: 700;
}

.wheel-builder-pane-header {
    display: grid;
    gap: 0.35rem;
}

.wheel-builder-preview .session-note {
    max-width: 24rem;
    text-align: center;
}

.customer-preview-shell {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--ink);
    border-radius: 30px 12px 34px 16px;
    background:
        var(--page-background-layer-a),
        var(--page-background-layer-b),
        var(--page-background-layer-c),
        var(--paper);
    background-size: var(--page-background-size);
    box-shadow: 10px 10px 0 var(--shadow);
    color: var(--ink);
    font-family: var(--body-font);
}

.customer-preview-canvas {
    display: grid;
    gap: 4rem;
}

.customer-preview-shell .hero-banner,
.customer-preview-shell .panel {
    background: color-mix(in srgb, var(--paper) 93%, white 7%);
}

.customer-preview-shell h1,
.customer-preview-shell h2 {
    font-family: var(--heading-font);
}

.customer-preview-shell .merchant-lockup-customer {
    justify-items: start;
    justify-self: start;
    text-align: left;
}

.customer-preview-shell .merchant-brand-heading {
    justify-items: start;
}

.customer-preview-shell [data-preview-logo][hidden],
.customer-preview-shell [data-preview-name-wrap][hidden] {
    display: none !important;
}

.customer-preview-shell .customer-hero-copy {
    margin-left: 0;
    text-align: left;
}

.customer-preview-shell .button {
    cursor: default;
}

.customer-preview-shell .app-mark-banner {
    justify-self: start;
}

.customer-preview-hero {
    padding: 1.1rem;
}

.customer-preview-stage {
    width: 100%;
}

.customer-preview-wheel-frame {
    width: min(100%, 292px);
}

.customer-preview-ticket {
    width: 100%;
}

.preview-logo-badge {
    display: grid;
    place-items: center;
    width: 84px;
    aspect-ratio: 1;
    border: 2px solid var(--accent);
    border-radius: 22px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-family: var(--heading-font);
    font-size: 2rem;
    line-height: 1;
}

.customer-theme-form,
.wheel-segment-form {
    display: grid;
    gap: 1rem;
}

.preset-picker-block,
.background-picker-block,
.theme-control-grid,
.font-picker-grid,
.corner-picker-grid {
    display: grid;
    gap: 0.85rem;
}

.preset-picker-grid,
.background-picker-grid {
    display: grid;
    gap: 0.85rem;
}

.field-label {
    display: block;
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.color-field {
    display: grid;
    gap: 0.4rem;
}

.color-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.55rem 0.7rem;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: color-mix(in srgb, var(--paper) 88%, white 12%);
}

.color-field input[type='color'] {
    width: 56px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.color-field strong {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.font-picker-block,
.corner-picker-block {
    display: grid;
    gap: 0.7rem;
}

.theme-preset-card,
.background-option-card,
.font-option-card,
.corner-option-card {
    position: relative;
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: color-mix(in srgb, var(--paper) 88%, white 12%);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.theme-preset-card {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--preset-background, var(--paper)) 92%, white 8%), rgba(255, 255, 255, 0.72)),
        linear-gradient(180deg, transparent 0 68%, color-mix(in srgb, var(--preset-primary, var(--accent)) 14%, transparent) 68% 100%);
}

.theme-preset-card:hover,
.background-option-card:hover,
.font-option-card:hover,
.corner-option-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--shadow);
}

.theme-preset-card:has(input:checked),
.background-option-card:has(input:checked),
.font-option-card:has(input:checked),
.corner-option-card:has(input:checked) {
    border-color: var(--accent);
    outline: 3px solid var(--accent);
    outline-offset: 1px;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--shadow);
}

.theme-preset-card input,
.background-option-card input,
.font-option-card input,
.corner-option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-preset-name-row {
    display: grid;
    gap: 0.25rem;
}

.theme-preset-name-row strong {
    font-size: 1rem;
}

.theme-preset-name-row span {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.82;
}

.theme-preset-swatches {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.theme-preset-swatches i {
    display: block;
    width: 30px;
    height: 30px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--shadow);
}

.theme-preset-card-custom {
    background: linear-gradient(135deg, color-mix(in srgb, var(--paper) 86%, white 14%), color-mix(in srgb, var(--paper) 78%, var(--accent) 22%));
}

.theme-preset-swatches-custom i:nth-child(1) {
    background: linear-gradient(135deg, #241d1a, #a45d39);
}

.theme-preset-swatches-custom i:nth-child(2) {
    background: linear-gradient(135deg, #f3e6cf, #ffffff);
}

.theme-preset-swatches-custom i:nth-child(3) {
    background: linear-gradient(135deg, #1b486f, #5c8652);
}

.font-option-name,
.font-option-preview {
    font-family: var(--font-option-family);
}

.font-modal-trigger {
    justify-content: space-between;
    padding: 0.9rem 1rem;
    text-align: left;
}

.font-modal-trigger-label {
    display: grid;
    gap: 0.2rem;
    justify-items: start;
}

.font-modal-trigger-preview {
    font-family: var(--font-option-family);
    font-size: 0.92rem;
    line-height: 1.35;
}

.app-dialog {
    padding: 0;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: 28px 12px 32px 14px;
    background: color-mix(in srgb, var(--paper) 96%, white 4%);
    color: var(--ink);
    box-shadow: 10px 10px 0 var(--shadow);
    overflow: hidden;
}

.app-dialog::backdrop {
    background: rgba(16, 12, 10, 0.52);
}

.app-dialog[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.app-dialog-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 4rem;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--soft-line);
    background: color-mix(in srgb, var(--paper) 97%, white 3%);
}

.app-dialog-close {
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.app-dialog-close:hover,
.app-dialog-close:focus-visible {
    border-color: var(--soft-line);
    background: rgba(255, 255, 255, 0.72);
    outline: none;
}

.app-dialog-content {
    min-height: 0;
    overflow: auto;
    padding: 1.1rem 1.2rem 1.2rem;
    display: grid;
    gap: 1rem;
}

.app-dialog-intro {
    display: grid;
    gap: 0.45rem;
}

.app-dialog-content > .stack-form {
    margin-top: 0;
}

.font-picker-dialog {
    width: min(900px, calc(100vw - 2rem));
    max-height: min(80vh, 760px);
}

.font-picker-grid-modal {
    padding: 0;
}

.font-option-name {
    font-size: 1rem;
    font-weight: 700;
}

.font-option-preview {
    font-size: 0.95rem;
    line-height: 1.4;
}

.corner-option-label {
    font-weight: 700;
}

.corner-option-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    border: 2px solid var(--accent);
    border-radius: var(--corner-preview-radius);
    background: var(--accent);
    color: var(--accent-contrast);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.corner-option-copy {
    font-size: 0.88rem;
    line-height: 1.4;
    opacity: 0.82;
}

.background-option-label {
    font-weight: 700;
}

.background-option-preview {
    display: block;
    min-height: 62px;
    border: 2px solid var(--ink);
    border-radius: 16px;
    background-color: #f4ebdc;
}

.background-option-preview-plain {
    background: #f4ebdc;
}

.background-option-preview-grid {
    background:
        linear-gradient(0deg, transparent 16px, rgba(36, 29, 26, 0.08) 16px, rgba(36, 29, 26, 0.08) 17px, transparent 17px),
        linear-gradient(90deg, transparent 16px, rgba(36, 29, 26, 0.08) 16px, rgba(36, 29, 26, 0.08) 17px, transparent 17px),
        #f4ebdc;
    background-size: 17px 17px, 17px 17px, auto;
}

.background-option-preview-dots {
    background:
        radial-gradient(circle at 2px 2px, rgba(36, 29, 26, 0.18) 0 1.2px, transparent 1.4px),
        radial-gradient(circle at 10px 10px, rgba(36, 29, 26, 0.1) 0 1px, transparent 1.2px),
        #f4ebdc;
    background-size: 20px 20px, 20px 20px, auto;
}

.background-option-preview-linen {
    background:
        repeating-linear-gradient(135deg, transparent 0 12px, rgba(36, 29, 26, 0.08) 12px 13px, transparent 13px 24px),
        repeating-linear-gradient(-135deg, transparent 0 14px, rgba(36, 29, 26, 0.12) 14px 15px, transparent 15px 28px),
        #f4ebdc;
    background-size: 24px 24px, 28px 28px, auto;
}

.background-option-copy {
    font-size: 0.88rem;
    line-height: 1.4;
    opacity: 0.82;
}

.toggle-line-block {
    padding: 0.8rem 0.95rem;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: color-mix(in srgb, var(--paper) 88%, white 12%);
}

.compact-admin-panel {
    padding: 1rem;
}

.admin-create-launcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.admin-create-dialog {
    width: min(760px, calc(100vw - 2rem));
    max-height: min(86vh, 920px);
}

.admin-dialog-actions {
    justify-content: flex-end;
}

.wheel-builder-stack .segment-list-stack {
    grid-template-columns: 1fr;
}

.reward-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.reward-card-title {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.reward-card-title h2 {
    font-size: clamp(1.35rem, 5vw, 2rem);
}

.reward-accordion {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.reward-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 0;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    list-style: none;
}

.reward-accordion-summary::-webkit-details-marker {
    display: none;
}

.reward-accordion-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    flex: 1 1 auto;
}

.reward-accordion-title-copy {
    min-width: 0;
}

.reward-accordion-name {
    display: block;
    font-family: var(--heading-font);
    font-size: clamp(1rem, 2.4vw, 1.32rem);
    line-height: 1.12;
    word-break: break-word;
}

.reward-accordion-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.reward-accordion-delete-button {
    display: inline-grid;
    place-items: center;
    width: 2.15rem;
    min-width: 2.15rem;
    height: 2.15rem;
    min-height: 2.15rem;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: none;
    line-height: 1;
}

.reward-accordion-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    font-size: 1.35rem;
    line-height: 1;
}

.reward-accordion-toggle::before {
    content: '+';
}

.reward-accordion[open] .reward-accordion-toggle::before {
    content: '−';
}

.reward-accordion-delete-icon {
    width: 1.3rem;
    height: 1.3rem;
}

.reward-accordion-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.reward-accordion-delete-form {
    display: none;
}

.reward-accordion-body {
    display: grid;
    gap: 1rem;
    padding: 0 1.15rem 1.15rem;
    border-top: 1px solid var(--soft-line);
}

.reward-card-stats,
.reward-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.reward-card-stats .stat-pill-inline {
    display: grid;
    min-width: 132px;
}

.reward-probability-pill {
    background: color-mix(in srgb, var(--accent) 14%, var(--paper) 86%);
}

.reward-color-dot {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--ink);
    box-shadow: 3px 3px 0 var(--shadow);
}

.reward-color-dot.is-muted {
    opacity: 0.45;
}

.segment-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--ink);
    border-radius: 14px;
    background: rgba(243, 230, 207, 0.9);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-split {
    display: grid;
    gap: 0.85rem;
}

.note-block {
    padding: 0.9rem 1rem;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: rgba(243, 230, 207, 0.82);
}

.list-stack {
    display: grid;
    gap: 1rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.panel-shop.is-focused {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

.shop-accordion {
    padding: 0;
}

.shop-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
    cursor: pointer;
    list-style: none;
}

.shop-accordion-summary::-webkit-details-marker {
    display: none;
}

.shop-accordion-summary::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 1.8rem;
    line-height: 1;
}

.shop-accordion[open] .shop-accordion-summary::after {
    content: '−';
}

.shop-accordion-title {
    font-family: var(--heading-font);
    font-size: clamp(1.45rem, 5vw, 2.2rem);
    line-height: 1;
}

.shop-accordion-body {
    display: grid;
    gap: 1rem;
    padding: 0 1.2rem 1.2rem;
    border-top: 1px solid var(--soft-line);
}

.shop-accordion-topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: center;
}

.shop-qr {
    display: grid;
    gap: 0.6rem;
    align-content: start;
}

.shop-qr img {
    width: min(260px, 100%);
    border: 2px solid var(--ink);
    border-radius: 24px 8px 28px 10px;
    background: var(--paper);
    padding: 0.65rem;
}

.shop-editor {
    display: grid;
    gap: 1rem;
}

@media (min-width: 720px) {
    .site-shell {
        width: 90%;
        max-width: none;
        padding-top: 1.2rem;
    }

    .site-credit {
        width: 100%;
        max-width: none;
    }

    .hero-banner,
    .panel {
        padding: 1.5rem;
    }

    .page-customer {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }

    .home-contact-grid {
        grid-template-columns: 0.92fr 1.08fr;
        align-items: start;
    }

    .page-customer > .app-mark-banner {
        grid-column: 1 / -1;
    }

    .page-customer .hero-customer {
        min-height: 100%;
    }

    .wheel-builder-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .wheel-builder-layout {
        grid-template-columns: 0.7fr 1fr;
        align-items: start;
        gap: 2rem;
    }

    .wheel-builder-preview {
        grid-column: 1;
        position: sticky;
        top: 1.5rem;
        height: max-content;
        justify-items: center;
        align-self: start;
    }

    .wheel-builder-stack {
        grid-column: 2;
    }

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

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

    .background-picker-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .wheel-builder-stack .segment-list-stack {
        grid-template-columns: 1fr;
    }

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

    .form-split-toggle {
        grid-template-columns: repeat(2, max-content);
        column-gap: 1.25rem;
        justify-content: start;
    }
}

@media (max-width: 719px) {
    .merchant-lockup {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .wheel-builder-menu {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.2rem;
        scrollbar-width: thin;
    }

    .wheel-builder-menu-button {
        flex: 0 0 auto;
    }

    .google-review-inline-row {
        grid-template-columns: 1fr;
    }

    .google-review-inline-button {
        width: 100%;
    }

    .reward-accordion-summary {
        padding-right: 0.8rem;
        padding-bottom: 0.45rem;
    }
}