*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Admin uses the GetBooking brand (brand.css); these names are what the templates already use. */
:root {
    --primary: var(--gb-accent, #D9366B);
    --primary-dark: var(--gb-accent-dark, #B8245A);
    --primary-soft: var(--gb-accent-soft, rgba(217, 54, 107, 0.12));
    --danger: #C2362F;
    --danger-soft: #FBE9E7;
    --success: #1F8A5B;
    --success-soft: #E4F3EA;
    --warning: #B7791F;
    --warning-soft: #FBF1DC;
    --info: #2F6690;
    --info-soft: #E6EFF6;
    --bg: #F7F4F1;
    /* Panels inside a page: a step darker than the page, warm like it. */
    --surface-sunken: #F3EEEA;
    --surface: #FFFFFF;
    --text: var(--gb-ink, #1D1426);
    --text-muted: var(--gb-muted, #6B6275);
    --border: var(--gb-line, #E9E1DC);
    --radius: 10px;
}

body { font-family: var(--gb-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
h1 { font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 1.75rem 0 0.75rem; }
h3 { font-size: 1rem; }
p { margin-bottom: 0.75rem; }
:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }

/* Top bar */
.admin-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem; height: 60px; padding: 0 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.admin-nav .gb-logo { font-size: 1.1rem; }
.nav-brand a { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; font-weight: 550; }
.nav-links a:hover { color: var(--text); }
.nav-user { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--text-muted); }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #fff; font-weight: 700; font-size: 0.8rem; }
.nav-user-name { color: var(--text); font-weight: 550; }
.nav-account { display: flex; align-items: center; gap: 0.6rem; padding: 0.25rem 0.6rem 0.25rem 0.25rem; border-radius: 999px; text-decoration: none; transition: background .15s; }
.nav-account:hover { background: var(--bg); }
.account-page { max-width: 720px; }
.account-this-device { background: var(--primary-soft); color: var(--primary); }
.account-sessions { margin: 0 0 1rem; padding-left: 1.2rem; }
.account-sessions li { margin: 0.25rem 0; }
.account-alerts { margin-bottom: 1.5rem; }
.account-alerts select { max-width: 100%; }
.account-alerts fieldset { border: 0; padding: 0; }
.badge-success { background: var(--success-soft, #E6F4EA); color: var(--success, #1E7B3A); }
.settings-section h2 .badge { vertical-align: middle; margin-left: 0.4rem; }
.two-step-methods { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.two-step-methods li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.5rem; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; }
.two-step-remove summary { list-style: none; cursor: pointer; }
.two-step-remove summary::-webkit-details-marker { display: none; }
.two-step-remove[open] form { display: grid; gap: 0.4rem; margin-top: 0.5rem; min-width: min(260px, 100%); }
.two-step-add-title { font-size: 0.95rem; margin: 1.25rem 0 0.5rem; }
.two-step-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.5rem; }
.two-step-option-form { display: contents; }
.two-step-option { display: grid; gap: 0.2rem; text-align: left; padding: 0.75rem; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.two-step-option:hover { border-color: var(--primary); }
.two-step-option span { font-size: 0.85rem; color: var(--text-muted); }
.two-step-steps { padding-left: 1.2rem; display: grid; gap: 0.75rem; }
.two-step-qr { width: 200px; max-width: 100%; margin: 0.75rem 0; }
.two-step-qr svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.two-step-key { word-break: break-all; }
.two-step-code { font-size: 1.3rem; letter-spacing: 0.2em; max-width: 12rem; }
.two-step-resend { margin-top: 0.75rem; }
.two-step-codes-list, [data-passkey-code-list] { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 3rem; padding-left: 1.5rem; font-size: 1.05rem; margin: 1rem 0; }
.two-step-codes-list li, [data-passkey-code-list] li { margin: 0.2rem 0; }
.nav-logout { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; border-left: 1px solid var(--border); padding-left: 0.6rem; }
.nav-logout:hover { color: var(--primary); }

.lang-select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%236B6275' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 0.5rem center; border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 1.6rem 0.3rem 0.7rem; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; font-family: inherit; }
.lang-select:hover { border-color: var(--text); color: var(--text); }
.lang-select:focus { outline: none; border-color: var(--primary); }

/* Sidebar */
.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar { width: 228px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); padding: 1rem 0.75rem 2rem; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.sidebar-toggle > summary { display: none; }
.sidebar-nav { display: flex; flex-direction: column; gap: 1px; }
.sidebar-group { margin: 1.1rem 0.6rem 0.35rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.sidebar-link { display: block; padding: 0.45rem 0.7rem; border-radius: 8px; color: var(--text); opacity: 0.82; text-decoration: none; font-size: 0.875rem; }
.sidebar-link:hover { opacity: 1; background: var(--bg); }
.sidebar-link.active { opacity: 1; color: var(--primary); font-weight: 650; background: var(--primary-soft); }

.admin-main { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; }
.admin-main-with-sidebar { flex: 1; min-width: 0; max-width: 1240px; margin: 0; padding: 2rem 2.25rem 3rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.55rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font: inherit; font-size: 0.875rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--text); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #A52C26; border-color: #A52C26; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.78rem; }
button:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Forms */
.form-container { max-width: 640px; }
.auth-container { max-width: 400px; margin: 4rem auto; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.85rem; }
.form-group input, .form-group textarea, .form-group select,
.admin-main input[type=text], .admin-main input[type=email], .admin-main input[type=number], .admin-main input[type=date],
.admin-main input[type=time], .admin-main input[type=password], .admin-main input[type=url], .admin-main input[type=datetime-local],
.admin-main select, .admin-main textarea {
    padding: 0.55rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 0.9rem; background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.form-group input, .form-group textarea, .form-group select { width: 100%; }
.admin-main input:focus, .admin-main select:focus, .admin-main textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-group input[type="checkbox"], .form-group input[type="radio"] { width: auto; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
.checkbox-group label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-group textarea { min-height: 80px; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 160px; }
.error { color: var(--danger); font-size: 0.78rem; }
small, .form-text { color: var(--text-muted); font-size: 0.8rem; }

/* Messages */
.alert { padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; border: 1px solid transparent; }
.alert-error { background: #FDF0EF; color: var(--danger); border-color: #F4C8C4; }
.alert-success { background: #E8F5EE; color: var(--success); border-color: #BFE3CF; }
.alert-info { background: #F3EEF7; color: var(--text); border-color: #E2D7EA; }

/* Page structure */
.content-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.content-header h1 { margin: 0; }

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 1rem; }
.data-table th, .data-table td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.875rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th { background: #FBF9F7; font-weight: 650; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.data-table tbody tr:hover td { background: #FCFAF8; }

.studio-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1rem; }
.studio-card h3 { margin-bottom: 0.25rem; }
.studio-slug { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.75rem; }
.studio-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 0.5rem; vertical-align: middle; }

.actions-dropdown { position: relative; display: inline-block; }
.actions-trigger { white-space: nowrap; }
.actions-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 180px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(29, 20, 38, 0.12); z-index: 10; padding: 0.3rem; }
.actions-dropdown:focus-within .actions-menu { display: block; }
.actions-item { display: block; width: 100%; padding: 0.5rem 0.7rem; border-radius: 6px; font: inherit; font-size: 0.875rem; color: var(--text); text-decoration: none; background: none; border: none; text-align: left; cursor: pointer; }
.actions-item:hover { background: var(--bg); }
.actions-item-danger { color: var(--danger); }
.actions-item-danger:hover { background: #FDF0EF; }

/* Calendar event cards (admin/calendar/_event_card.ftl) */
.event-card { background: var(--surface); padding: 0.45rem 0.55rem; margin: 0.3rem 0; border-radius: 8px; font-size: 0.8rem; line-height: 1.35; box-shadow: 0 1px 2px rgba(29, 20, 38, 0.08); border: 1px solid var(--border); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.event-card:hover { box-shadow: 0 4px 12px rgba(29, 20, 38, 0.12); transform: translateY(-1px); }
.event-header { display: flex; justify-content: space-between; align-items: center; gap: 0.3rem; }
.event-time { color: var(--text-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.event-name { font-weight: 650; margin: 0.1rem 0; }
.event-location, .event-spots { color: var(--text-muted); font-size: 0.75rem; }
.text-danger { color: var(--danger); font-weight: 600; }
.badge { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 999px; font-size: 0.7rem; font-weight: 650; }
.badge-danger { background: #FDF0EF; color: var(--danger); }

@media (max-width: 900px) {
    .admin-nav { padding: 0 1rem; gap: 0.75rem; }
    .nav-links, .nav-user-name { display: none; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 0.5rem 1rem; }
    .sidebar-toggle > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 650; padding: 0.4rem 0; list-style: none; }
    .sidebar-toggle > summary::-webkit-details-marker { display: none; }
    .sidebar-toggle > summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
    .sidebar-toggle[open] > summary::after { content: "–"; }
    .admin-main-with-sidebar, .admin-main { padding: 1.25rem 1rem 2.5rem; margin: 0; }
    .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Test-mode studios (TASK-057) */
.test-mode-banner { background: #FFF4D6; color: #5C4300; border: 1px solid #F2D27A; border-radius: var(--radius); padding: 0.7rem 1rem; margin-bottom: 1.25rem; font-size: 0.875rem; }
.test-mode-banner strong { margin-right: 0.35rem; }
.test-mode-badge { display: inline-block; vertical-align: middle; margin-left: 0.4rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #FFF4D6; color: #5C4300; border: 1px solid #F2D27A; font-size: 0.7rem; font-weight: 650; }

/* Business entities (admin/entities) */
.entity-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.entity-badge { background: var(--primary-soft); color: var(--primary); vertical-align: middle; }
.entity-stripe { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.875rem; }
.entity-stripe form { display: inline; }
.entity-ok { color: var(--success); font-weight: 600; }
.entity-warn { color: var(--warning); font-weight: 600; }
.entity-assign select { min-width: 220px; }
.test-mode-link { margin-left: 0.5rem; font-weight: 650; color: inherit; white-space: nowrap; }

/* Go live (admin/go_live.ftl) */
.go-live { max-width: 760px; }
.go-live-intro { color: var(--text-muted); }
.go-live-checks { list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.go-live-checks li { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.go-live-checks li:last-child { border-bottom: 0; }
.go-live-checks li a { margin-left: auto; font-size: 0.85rem; font-weight: 600; }
.go-live-mark { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; flex-shrink: 0; border: 1px solid var(--border); color: var(--text-muted); }
.go-live-checks li.done .go-live-mark { background: var(--success); border-color: var(--success); color: #fff; }
.go-live-checks + .form-text { display: block; margin-top: 0.5rem; }
.go-live-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.go-live-columns > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.go-live-columns h3 { margin-bottom: 0.35rem; }
.go-live-columns p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }
.go-live-form { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #F4C8C4; background: #FFFAF9; border-radius: var(--radius); }
.go-live-form input { max-width: 320px; }
@media (max-width: 640px) { .go-live-columns { grid-template-columns: 1fr; } }

/* Settlements between companies (TASK-058) */
.settle-form { display: flex; gap: 0.4rem; align-items: center; }
.settle-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.settle-form input { min-width: 180px; }
.cross-seller { margin-top: 1rem; }
.cross-seller input[type=number] { max-width: 180px; }

/* Instructor pay (TASK-058) */
.pay-rule-form { margin: 1.25rem 0 2rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pay-rule-form h3 { margin-bottom: 0.75rem; }
.pay-rule-ended td { color: var(--text-muted); }
.pay-month { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pay-month-nav { display: flex; gap: 0.4rem; }

/* Design page (admin/design.ftl) */
.design-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
.design-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 1rem; }
.design-section h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.theme-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.theme-option { position: relative; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.6rem; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.theme-option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.theme-option input { position: absolute; opacity: 0; }
.theme-option small { color: var(--text-muted); font-size: 0.75rem; line-height: 1.3; }
.theme-sample { display: block; position: relative; height: 70px; border-radius: 8px; overflow: hidden; margin-bottom: 0.4rem; }
.theme-sample i { position: absolute; left: 10px; top: 12px; width: 55%; height: 10px; border-radius: 3px; }
.theme-sample b { position: absolute; left: 10px; top: 30px; width: 35%; height: 8px; border-radius: 3px; opacity: 0.5; }
.theme-sample em { position: absolute; left: 10px; bottom: 10px; width: 40px; height: 14px; border-radius: 999px; }
.theme-swatch-studio .theme-sample { background: #FAF7F2; } .theme-swatch-studio i, .theme-swatch-studio b { background: #1F1A17; } .theme-swatch-studio em { background: #C2410C; }
.theme-swatch-night .theme-sample { background: #0F0D14; } .theme-swatch-night i, .theme-swatch-night b { background: #F4F1F7; } .theme-swatch-night em { background: #E0457B; }
.theme-swatch-bold .theme-sample { background: #2B4ACB; } .theme-swatch-bold i, .theme-swatch-bold b { background: #FFFFFF; } .theme-swatch-bold em { background: #FFFFFF; border-radius: 3px; }
.theme-swatch-minimal .theme-sample { background: #FFFFFF; border: 1px solid #E5E5E5; } .theme-swatch-minimal i, .theme-swatch-minimal b { background: #111; } .theme-swatch-minimal em { background: #111; border-radius: 2px; }
.colour-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.colour-row input[type=color] { width: 46px; height: 40px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.colour-row input[type=text] { max-width: 120px; }
.colour-presets { display: flex; gap: 0.4rem; margin-top: 0.75rem; flex-wrap: wrap; }
.colour-preset { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.design-save { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.design-advanced { font-size: 0.85rem; }
.design-side { position: sticky; top: 76px; }
.upload-form { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; flex-wrap: wrap; }
.upload-form input[type=file] { font-size: 0.8rem; max-width: 220px; }
.design-thumb { max-height: 56px; border: 1px solid var(--border); border-radius: 6px; padding: 4px; background: #fff; margin-bottom: 0.5rem; }
.design-thumb-wide { max-height: 110px; width: 100%; object-fit: cover; padding: 0; }
.design-uploads h2:not(:first-child) { margin-top: 1.25rem; }

/* The live preview: a miniature of the studio site, using the same theme names as client.css. */
.design-preview { --brand: #C2410C; --brand-ink: #fff; --p-bg: #FAF7F2; --p-surface: #fff; --p-ink: #1F1A17; --p-muted: #6E655D; --p-line: #E8E0D6; --p-radius: 14px; --p-display: "Iowan Old Style", Palatino, Georgia, serif; --p-weight: 600; --p-case: none;
    background: var(--p-bg); color: var(--p-ink); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; box-shadow: 0 10px 30px rgba(29, 20, 38, 0.12); }
.design-preview.theme-night { --brand: #E0457B; --p-bg: #0F0D14; --p-surface: #1A1722; --p-ink: #F4F1F7; --p-muted: #A69FB3; --p-line: #2F2939; --p-display: -apple-system, "Segoe UI", Roboto, sans-serif; --p-weight: 800; }
.design-preview.theme-bold { --brand: #2B4ACB; --p-bg: #fff; --p-ink: #0E1220; --p-muted: #5A6075; --p-line: #E3E6EE; --p-radius: 5px; --p-display: "Avenir Next Condensed", "Arial Narrow", sans-serif; --p-weight: 800; --p-case: uppercase; }
.design-preview.theme-minimal { --brand: #111; --p-bg: #fff; --p-ink: #111; --p-muted: #666; --p-line: #E5E5E5; --p-radius: 2px; --p-display: -apple-system, "Segoe UI", Roboto, sans-serif; }
.dp-nav { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--p-line); font-size: 0.8rem; }
.dp-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 0.75rem; }
.dp-name { font-family: var(--p-display); font-weight: var(--p-weight); text-transform: var(--p-case); font-size: 0.95rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-cta { background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 0.25rem 0.6rem; font-weight: 650; font-size: 0.7rem; }
.dp-hero { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.4rem 1rem 1.2rem; background: radial-gradient(20rem 10rem at 90% -10%, color-mix(in srgb, var(--brand) 25%, transparent), transparent 60%); }
.theme-bold .dp-hero { background: var(--brand); color: var(--brand-ink); }
.theme-minimal .dp-hero { background: none; }
.dp-eyebrow { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.theme-bold .dp-eyebrow { color: inherit; }
.dp-title { font-family: var(--p-display); font-weight: var(--p-weight); text-transform: var(--p-case); font-size: 1.6rem; line-height: 1.05; letter-spacing: -0.02em; }
.dp-lead { font-size: 0.78rem; color: var(--p-muted); }
.theme-bold .dp-lead { color: inherit; opacity: 0.85; }
.dp-btn { align-self: flex-start; background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 0.4rem 0.85rem; font-weight: 650; font-size: 0.75rem; margin-top: 0.3rem; }
.theme-bold .dp-btn { background: var(--brand-ink); color: var(--brand); border-radius: 4px; }
.theme-minimal .dp-btn, .theme-minimal .dp-cta { border-radius: 2px; }
.dp-card { position: relative; margin: 0 1rem 1rem; padding: 0.7rem 0.8rem 0.7rem 1rem; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: calc(var(--p-radius) - 4px); display: flex; flex-direction: column; font-size: 0.78rem; }
.dp-card i { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.dp-card span { color: var(--p-muted); }
@media (max-width: 1100px) { .design-layout { grid-template-columns: 1fr; } .design-side { position: static; } .theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Custom domain guide (admin/domains) */
.domain-guide { max-width: 860px; }
.domain-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1rem; }
.domain-card.is-ready { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
.domain-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.domain-head h2 { margin: 0; font-size: 1.25rem; word-break: break-all; }
.domain-progress { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; counter-reset: dstep; }
.domain-progress li { counter-increment: dstep; position: relative; padding: 0.65rem 0.75rem 0.65rem 2.4rem; border-radius: 8px; background: var(--bg); font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.domain-progress li::before { content: counter(dstep); position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; border: 1px solid var(--border); background: var(--surface); }
.domain-progress li.done { color: var(--success); background: color-mix(in srgb, var(--success) 9%, var(--surface)); }
.domain-progress li.done::before { content: "✓"; background: var(--success); color: #fff; border-color: var(--success); }
.domain-progress li.waiting::before { animation: dpulse 1.6s ease-in-out infinite; }
@keyframes dpulse { 50% { box-shadow: 0 0 0 4px var(--primary-soft); } }
.domain-card h3 { font-size: 1rem; margin: 1rem 0 0.3rem; }
.dns-records { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.75rem 0; }
.dns-record { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; display: grid; gap: 0.55rem; }
.dns-type { justify-self: start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; background: var(--text); color: var(--surface); border-radius: 4px; padding: 0.15rem 0.45rem; }
.dns-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.2rem 0.5rem; }
.dns-field small { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.75rem; }
.dns-field code { font-size: 0.85rem; background: var(--bg); padding: 0.4rem 0.55rem; border-radius: 6px; overflow-wrap: anywhere; }
.dns-field .copy { font: inherit; font-size: 0.75rem; font-weight: 650; padding: 0.35rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer; }
.dns-why { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.dns-tips { margin-top: 0.75rem; font-size: 0.88rem; }
.dns-tips summary { cursor: pointer; font-weight: 600; }
.dns-tips ul { margin: 0.6rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.domain-note { background: var(--bg); border-radius: 8px; padding: 0.6rem 0.8rem; font-size: 0.88rem; }
.domain-ready { font-weight: 600; color: var(--success); }
.domain-remove { margin-top: 0.75rem; text-align: right; }
.btn-link { border: 0; background: none; color: var(--text-muted); text-decoration: underline; }
.domain-add { display: flex; gap: 1rem; align-items: flex-start; }
.domain-step-no { display: none; }
.domain-add h2 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.domain-add-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.domain-add-form input { flex: 1; min-width: 240px; }
@media (max-width: 760px) { .domain-progress, .dns-records { grid-template-columns: 1fr; } }

/* Class page (front desk) */
.class-page-kicker { display: flex; align-items: center; gap: 0.45rem; color: var(--text-muted); font-size: 0.85rem; font-weight: 550; margin-bottom: 0.2rem; }
.class-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; display: inline-block; }
.class-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.class-page-layout h2 { margin-top: 0.5rem; }
.desk-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.desk-panel .form-group input { width: 100%; }
.desk-new { margin: 0.25rem 0 0.75rem; font-size: 0.85rem; }
.desk-new summary { cursor: pointer; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.desk-paid { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.4rem; font-size: 0.875rem; }
.desk-paid legend { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.3rem; }
.cancel-outcomes .outcome-ok { color: var(--success); }
.cancel-outcomes .outcome-bad { color: var(--danger); }
@media (max-width: 900px) { .class-page-layout { grid-template-columns: 1fr; } }
.bulk-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin: 1rem 0; }
.bulk-filters .form-group { margin: 0; }
.bulk-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.bulk-actions h2 { margin-top: 0; }

/* Design → Code (TASK-059) */
.code-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.code-status { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.6rem; }
.code-editor { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.5; padding: 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); tab-size: 2; white-space: pre; resize: vertical; }
.code-problems ul { margin: 0.4rem 0 0 1.1rem; }
.code-reference dl { display: grid; gap: 0.15rem; font-size: 0.8rem; margin-bottom: 1rem; }
.code-reference dt { margin-top: 0.4rem; }
.code-reference dd { margin: 0; color: var(--text-muted); }
.code-reference h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-top: 1rem; }
.code-syntax { list-style: none; padding: 0; font-size: 0.78rem; display: grid; gap: 0.35rem; }
.code-reference code, .code-syntax code { background: var(--surface-sunken); padding: 0.05rem 0.3rem; border-radius: 4px; }
@media (max-width: 900px) { .code-layout { grid-template-columns: 1fr; } }
.code-pages { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.9rem; }
.code-pages a { padding: 0.35rem 0.8rem; border: 1px solid var(--border); border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-decoration: none; background: var(--surface); }
.code-pages a[aria-current] { background: var(--primary); border-color: var(--primary); color: #fff; }
.row-muted td { color: var(--text-muted); }
.discount-new { margin-top: 1.5rem; }
.gift-code { font-family: ui-monospace, Menlo, monospace; font-size: 1.15rem; letter-spacing: 0.06em; margin: 0 0.35rem; }
.gift-history { list-style: none; padding: 0; margin: 0 0 0.75rem; font-size: 0.85rem; display: grid; gap: 0.2rem; }

/* Image fields (static/js/images.js) */
.image-drop.is-dragging { outline: 2px dashed var(--primary); outline-offset: 4px; border-radius: var(--radius); }
.image-preview { display: block; max-width: 100%; max-height: 160px; border-radius: 8px; margin-bottom: 0.5rem; object-fit: cover; }
.image-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.image-note.is-error { color: var(--danger); font-weight: 600; }
.editor-image-note:empty { display: none; }

/* GetBooking support session */
.support-banner { background: #1A3E8C; color: #fff; padding: 0.55rem 1rem; text-align: center; font-size: 0.9rem; }
.support-banner .btn { margin-left: 0.5rem; }

/* Admin assistant */
.assistant { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; }
.assistant-history { position: sticky; top: calc(60px + 2rem); display: flex; flex-direction: column; gap: 0.75rem; max-height: calc(100vh - 60px - 4rem); overflow-y: auto; }
.assistant-new { width: 100%; justify-content: flex-start; }
.assistant-history-list { display: flex; flex-direction: column; gap: 0.15rem; }
.assistant-history-list summary { display: flex; align-items: center; gap: 0.35rem; list-style: none; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding: 0 0.6rem 0.35rem; cursor: default; }
.assistant-history-list summary::-webkit-details-marker { display: none; }
.assistant-history-list a { display: block; padding: 0.45rem 0.6rem; border-radius: 8px; color: var(--text); opacity: 0.8; text-decoration: none; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assistant-history-list a:hover { opacity: 1; background: var(--surface); }
.assistant-history-list a.active { opacity: 1; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-weight: 600; }
.assistant-main { display: flex; flex-direction: column; min-height: calc(100vh - 60px - 5rem); max-width: 780px; width: 100%; margin: 0 auto; }
.assistant-thread { flex: 1; display: flex; flex-direction: column; gap: 1.75rem; padding-bottom: 1.5rem; }

.assistant-empty { margin: auto 0; padding: 3rem 0 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.assistant-empty h1 { margin: 0.5rem 0 0; font-size: 1.6rem; }
.assistant-empty .form-text { max-width: 520px; margin: 0; }
.assistant-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.assistant-example { font: inherit; font-size: 0.85rem; text-align: left; padding: 0.6rem 0.9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; max-width: 240px; transition: border-color .15s, transform .15s; }
.assistant-example:hover { border-color: var(--primary); transform: translateY(-1px); }

.assistant-turn { display: flex; flex-direction: column; gap: 1rem; }
.assistant-row { display: flex; gap: 0.75rem; }
.assistant-row-user { justify-content: flex-end; }
.assistant-user { margin: 0; max-width: 80%; padding: 0.65rem 1rem; border-radius: 18px 18px 4px 18px; background: var(--text); color: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-avatar { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.assistant-avatar-lg { width: 52px; height: 52px; }
.assistant-bot { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.2rem; }
.assistant-step { margin: 0; display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-muted); }
.assistant-step svg { color: var(--success, #2E7D57); flex-shrink: 0; }
.assistant-step a { font-size: 0.78rem; }
.assistant-note { margin: 0; font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

.assistant-answer { line-height: 1.6; overflow-wrap: anywhere; }
.assistant-answer:not(.is-rendered) { white-space: pre-wrap; }
.assistant-answer > :first-child { margin-top: 0; }
.assistant-answer > :last-child { margin-bottom: 0; }
.assistant-answer p, .assistant-answer ul, .assistant-answer ol, .assistant-answer pre { margin: 0 0 0.75rem; }
.assistant-answer ul, .assistant-answer ol { padding-left: 1.3rem; }
.assistant-answer li { margin: 0.15rem 0; }
.assistant-answer li > ul, .assistant-answer li > ol { margin: 0.2rem 0 0.35rem; }
.assistant-answer .assistant-heading { font-weight: 700; margin-top: 1rem; }
.assistant-answer code { font-size: 0.86em; padding: 0.1em 0.35em; border-radius: 5px; background: var(--surface-sunken); }
.assistant-answer pre { padding: 0.75rem; border-radius: var(--radius); background: var(--surface-sunken); overflow-x: auto; }
.assistant-answer pre code { padding: 0; background: none; }
.assistant-table { overflow-x: auto; margin: 0 0 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.assistant-table table { border-collapse: collapse; width: 100%; font-size: 0.86rem; }
.assistant-table th, .assistant-table td { padding: 0.45rem 0.7rem; text-align: left; border-bottom: 1px solid var(--border); }
.assistant-table th { background: var(--surface-sunken); font-weight: 600; }
.assistant-table tr:last-child td { border-bottom: 0; }
.assistant-caret { display: inline-block; width: 0.5em; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--primary); border-radius: 2px; animation: assistant-caret 1s steps(1) infinite; }
@keyframes assistant-caret { 50% { opacity: 0; } }

.assistant-thinking { margin: 0; display: flex; align-items: center; gap: 0.6rem; font-size: 0.86rem; color: var(--text-muted); min-height: 30px; }
.assistant-dots { display: inline-flex; gap: 4px; }
.assistant-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: 0.35; animation: assistant-dot 1.2s infinite ease-in-out; }
.assistant-dots i:nth-child(2) { animation-delay: 0.15s; }
.assistant-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes assistant-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .assistant-dots i, .assistant-caret { animation: none; opacity: 0.7; } }
.assistant-stop { margin: 0; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface); border-color: var(--border); color: var(--text); }

.assistant-card { margin: 0; padding: 0.75rem 0.9rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.assistant-card p { margin: 0 0 0.5rem; }
.assistant-card p:last-child { margin-bottom: 0; }
.assistant-card-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9A6B00; }
.assistant-proposal { background: #FFFBF0; border-color: #F2D9A0; }
.assistant-proposal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.assistant-proposal-actions form { margin: 0; }
.assistant-card-state { font-size: 0.85rem; color: var(--text-muted); }
.assistant-card-state-executed { color: var(--success, #2E7D57); font-weight: 600; }
.assistant-receipt { background: #EEF8F2; border-color: #CBE7D6; color: var(--success, #2E7D57); }
.assistant-error { background: #FDF0EF; border-color: #F3D0CC; color: var(--danger); }

.assistant-composer { position: sticky; bottom: 0; margin: 0; padding: 0.75rem 0 1rem; background: linear-gradient(to bottom, transparent, var(--bg) 1rem); }
.assistant-composer-box { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.5rem 0.5rem 0.5rem 1rem; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 4px 20px rgba(29, 20, 38, 0.06); transition: border-color .15s, box-shadow .15s; }
.assistant-composer-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft), 0 4px 20px rgba(29, 20, 38, 0.06); }
.admin-main .assistant-composer-box textarea { flex: 1; border: 0; padding: 0.45rem 0; background: transparent; resize: none; min-height: 1.5rem; max-height: 240px; line-height: 1.5; box-shadow: none; }
.admin-main .assistant-composer-box textarea:focus { box-shadow: none; }
.assistant-send { flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; cursor: pointer; transition: background .15s, opacity .15s; }
.assistant-send:hover { background: var(--primary-dark); }
.assistant-send:disabled { opacity: 0.35; cursor: default; }
.assistant-composer-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin: 0.45rem 0.75rem 0; font-size: 0.75rem; color: var(--text-muted); }
.assistant-composer-error { margin: 0 0 0.5rem; padding: 0.5rem 0.8rem; border-radius: var(--radius); background: #FDF0EF; color: var(--danger); font-size: 0.86rem; }

@media (max-width: 900px) {
    .assistant { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .assistant-history { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
    .assistant-new { width: auto; }
    .assistant-history-list { flex: 1 1 100%; }
    .assistant-history-list:not([open]) a, .assistant-history-list:not([open]) p { display: none; }
    .assistant-history-list summary { cursor: pointer; }
    .assistant-history-list summary::after { content: ""; width: 0.4rem; height: 0.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
    .assistant-history-list[open] summary::after { transform: rotate(225deg); }
    .assistant-main { min-height: 0; }
    .assistant-user { max-width: 90%; }
}

/* Inbox */
.inbox-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.inbox-filters a.active { font-weight: 600; text-decoration: underline; }
.inbox-list tr.unread a { font-weight: 600; }
.chat { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.chat-msg { max-width: 75%; padding: 0.6rem 0.8rem; border-radius: var(--radius); white-space: pre-wrap; }
.chat-msg p { margin: 0 0 0.25rem; }
.chat-in { align-self: flex-start; background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); }
.chat-out { align-self: flex-end; background: #EEF2FF; }
.chat-bot { background: #F3F4F6; }
.chat-draft { border: 1px dashed #F2D9A0; background: #FFF8E6; }
.chat-draft textarea { width: 100%; }

/* Add-on billing */
.addon-progress { width: 10rem; max-width: 100%; height: 0.6rem; vertical-align: middle; accent-color: var(--primary); }
.addon-summary { display: flex; flex-wrap: wrap; gap: 2rem; margin: 0.75rem 0; }
.addon-summary .stat-value { font-size: 1.4rem; font-weight: 700; }
.addon-summary .stat-label { color: var(--text-muted); font-size: 0.85rem; }
.table-scroll { overflow-x: auto; }
/* A phone number: country from a list, then the number as written locally. */
.phone-field { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.phone-field .phone-country { flex: 0 1 11rem; min-width: 0; max-width: 100%; }
.phone-field .phone-number { flex: 1 1 8rem; min-width: 0; }

/* Platform prices: one row per feature, a column per plan, each cell editable in place. */
.price-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.price-intro p { max-width: 46rem; margin: 0; }
.price-card { padding: 0; overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 14px; }
.price-grid { margin: 0; width: 100%; border-collapse: collapse; }
.price-grid th { text-align: left; border-bottom: 1px solid var(--border); background: var(--bg, transparent); }
.price-grid td { border-bottom: 1px solid var(--border); }
.price-grid tr:last-child td { border-bottom: 0; }
.price-grid th:first-child, .price-grid td:first-child { width: 34%; }
.price-grid th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.price-grid td, .price-grid th { padding: 0.85rem 1rem; vertical-align: top; }
.price-grid tr.price-base td { background: var(--primary-soft, #FFF4F7); }
.price-feature b { display: block; font-weight: 600; }
.price-feature small { color: var(--text-muted); font-size: 0.78rem; }
.price-cell { min-width: 15rem; }
.price-value { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.price-amount { font-weight: 650; font-variant-numeric: tabular-nums; }
.price-included { color: var(--success, #1E7B3A); font-weight: 650; }
.price-none { color: var(--text-muted); }
.price-allowance { color: var(--text-muted); font-size: 0.78rem; }
.price-inherited { background: var(--surface-2, #F1EEF4); color: var(--text-muted); cursor: help; }
.price-warning { color: var(--danger); font-size: 0.78rem; margin-top: 0.25rem; }
.price-edit { margin-top: 0.35rem; }
.price-edit summary { cursor: pointer; font-size: 0.78rem; color: var(--primary); list-style: none; display: inline-block; }
.price-edit summary::-webkit-details-marker { display: none; }
.price-edit[open] summary { margin-bottom: 0.5rem; }
.price-form { display: grid; gap: 0.45rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); max-width: 22rem; }
.price-form input[type=text], .price-form input:not([type]), .price-form input[type=date] { padding: 0.3rem 0.45rem; font-size: 0.85rem; }
.price-choice { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.price-inputs { display: flex; gap: 0.35rem; padding-left: 1.4rem; }
.price-small { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; color: var(--text-muted); }
.price-form .btn { justify-self: start; }
.price-defaults { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 14px; }
.price-defaults .price-grid td { padding-left: 0; }
.price-defaults > summary { cursor: pointer; list-style: none; }
.price-defaults > summary h2 { display: inline; font-size: 1rem; }
.price-defaults > summary::-webkit-details-marker { display: none; }

