.theme-studio { padding: 24px; }
.theme-studio .appearance-workspace { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); gap: 28px; }
.theme-studio .appearance-form, .theme-studio .appearance-preview { min-width: 0; }
.theme-studio .appearance-tabs { overflow-x: auto; flex-wrap: nowrap; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 0 0 10px; gap: 4px; scrollbar-width: thin; }
.theme-studio .appearance-tabs button { flex: 0 0 auto; padding: 10px 12px; white-space: nowrap; }
.theme-studio .appearance-tabs button[aria-selected="true"] { color: var(--mint-dark); background: #ece6fc; }
.studio-section-intro { margin: 4px 0 12px; }
.studio-section-intro h3 { margin: 0; font: 600 clamp(24px, 2.4vw, 34px)/1.2 "Outfit", sans-serif; letter-spacing: -.8px; }
.studio-section-intro p { max-width: 460px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.theme-studio .template-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.theme-studio .template-picker legend { font-size: 12px; margin-bottom: 14px; }
.theme-studio .theme-option { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: border-color .18s, box-shadow .18s; }
.theme-studio .theme-option:has(input:checked) { border-color: var(--mint); box-shadow: 0 0 0 2px #6d4fd81c; }
.theme-studio .theme-option:focus-within { outline: 3px solid #6d4fd859; outline-offset: 3px; }
.theme-studio .theme-option input { inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.theme-studio .theme-option strong { font: 600 16px "Outfit", sans-serif; }
.theme-studio .theme-option small { font-size: 11px; line-height: 1.6; font-weight: 400; }
.theme-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 3px; }
.theme-selected { visibility: hidden; font-size: 10px; color: var(--mint-dark); background: #eee8fc; border-radius: 5px; padding: 3px 7px; }
.theme-option:has(input:checked) .theme-selected { visibility: visible; }
.theme-category { color: var(--muted); font-size: 10px; font-weight: 500; margin-top: auto; }
.theme-mini { display: grid; gap: 12px; height: 164px; padding: 13px; border-radius: 6px; background: var(--theme-preview-bg); color: var(--theme-preview-ink); overflow: hidden; }
.theme-mini-nav { display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 800; }
.theme-mini-nav i { width: 29px; height: 9px; border-radius: 4px; background: var(--theme-preview-accent); }
.theme-mini-hero { display: grid; grid-template-columns: 1fr .9fr; gap: 8px; align-items: center; min-height: 78px; }
.theme-mini-hero>span { display: grid; gap: 9px; }
.theme-mini-hero b { font: 600 clamp(13px, 1.2vw, 19px)/1.15 "Outfit", sans-serif; letter-spacing: -.5px; }
.theme-mini-hero span>i { height: 4px; width: 65%; border-radius: 2px; background: currentColor; opacity: .25; }
.theme-mini img { height: 86px; width: 100%; object-fit: cover; border-radius: 4px; }
.theme-mini-slots { display: flex; gap: 5px; }
.theme-mini-slots i { flex: 1; height: 13px; border: 1px solid color-mix(in srgb, var(--theme-preview-ink) 20%, transparent); border-radius: 3px; }
.theme-mini-slots i:first-child { background: var(--theme-preview-accent); border-color: transparent; }
.theme-mini[data-composition="cover"] .theme-mini-hero { position: relative; display: block; height: 88px; }
.theme-mini[data-composition="cover"] .theme-mini-hero img { height: 88px; filter: brightness(.55); }
.theme-mini[data-composition="cover"] .theme-mini-hero>span { position: absolute; inset: 10px; z-index: 1; color: #fff; }
.theme-mini[data-composition="compact"] .theme-mini-hero { grid-template-columns: 1.5fr .7fr; }
.theme-studio .appearance-save { grid-template-columns: 1fr auto; margin-top: 24px; }
.theme-studio .appearance-save .checkbox-label { grid-column: 1 / -1; white-space: normal; }
.theme-studio .appearance-save button { white-space: nowrap; }
.theme-studio .appearance-preview { top: 20px; padding: 0; background: #f2f0f6; border-radius: 12px; overflow: hidden; }
.theme-studio .preview-heading { padding: 16px 18px 0; flex-wrap: wrap; margin-bottom: 12px; }
.theme-studio .appearance-preview>.form-note, .theme-studio .appearance-preview>.text-button { margin: 12px 18px; }
.theme-studio .customer-preview-link { margin: 0 18px; width: calc(100% - 36px); justify-content: center; }
.preview-device-switch { display: flex; align-items: center; padding: 0 18px 12px; gap: 4px; }
.preview-device-switch button { padding: 7px 11px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.preview-device-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: var(--line); }
.preview-device-switch>span { margin-left: auto; font-size: 10px; color: var(--muted); }
.studio-preview-viewport { padding: 0 14px; max-height: 590px; overflow: auto; scrollbar-width: thin; container-type: inline-size; }
.theme-studio .studio-preview-viewport .booking-page { min-height: 500px; padding: 18px; border: 1px solid color-mix(in srgb, var(--booking-text) 15%, transparent); border-radius: 8px; margin: 0 auto; transition: max-width .2s; }
.studio-preview-viewport[data-device="mobile"] .booking-page { max-width: 280px; }
.theme-studio .studio-preview-viewport .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-studio .studio-preview-viewport .hero-copy { padding: 14px 0; }
.theme-studio .studio-preview-viewport .hero-art { height: 180px; margin: 0; }
.theme-studio .studio-preview-viewport .hero-copy h1 { font-size: 28px; line-height: 1.14; letter-spacing: -.8px; }
.theme-studio .studio-preview-viewport .business-identity { margin-bottom: 12px; }
.theme-studio .studio-preview-viewport .business-logo-stack { width: 24px; height: 24px; }
.theme-studio .studio-preview-viewport .business-identity :is(img,.business-logo-fallback) { width: 24px; height: 24px; font-size: 9px; }
.theme-studio .studio-preview-viewport .business-information { padding: 13px 0; margin-top: 0; gap: 9px; }
.theme-studio .studio-preview-viewport .business-links { display: flex; font-size: 9px; }
.theme-studio .studio-preview-viewport .booking-announcement { padding: 9px; font-size: 10px; }
.theme-studio .studio-preview-viewport .facility-list { gap: 5px; }
.theme-studio .studio-preview-viewport .facility-list li { font-size: 8px; padding: 3px 5px; }
.theme-studio .studio-preview-viewport .facility-list svg { width: 10px; height: 10px; }
.theme-studio .studio-preview-viewport .preview-slot { display: none; }
.theme-studio .studio-preview-viewport .booking-business-footer { padding: 16px 0 0; margin-top: 18px; font-size: 10px; gap: 8px; }
.theme-studio .studio-preview-viewport .booking-business-footer p { font-size: 9px; }
.theme-studio .studio-preview-viewport .booking-business-footer nav { gap: 8px; font-size: 9px; }
.theme-studio .studio-preview-viewport .booking-floating-chat { position: static; display: inline-flex; margin-top: 12px; font-size: 10px; padding: 8px; }
.studio-booking-sample { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--booking-radius); background: var(--booking-surface); }
.studio-booking-sample small { font-size: 9px; color: var(--muted); }
.studio-booking-sample strong { font: 600 15px "Outfit", sans-serif; }
.sample-slots { display: flex; gap: 5px; }
.sample-slots span { flex: 1; padding: 7px 3px; border: 1px solid var(--line); border-radius: 4px; text-align: center; font-size: 9px; }
.sample-slots span:first-child, .sample-booking-button { background: var(--booking-accent); color: var(--booking-on-accent); }
.sample-booking-button { padding: 9px; border-radius: 5px; text-align: center; font-size: 10px; }
.studio-preview-viewport[data-device="mobile"] .hero-grid { grid-template-columns: 1fr !important; }
.studio-preview-viewport[data-device="mobile"] .hero-art { height: 135px !important; }
.search-preview { padding: 18px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 8px; overflow-wrap: anywhere; }
.search-preview>span { font-size: 11px; color: var(--muted); }
.search-preview>strong { font-size: 18px; font-weight: 500; color: #254b94; }
.search-preview>p { margin: 0; font-size: 12px; color: var(--muted); }
.theme-studio :is(input,select,textarea) { min-width: 0; max-width: 100%; }
.theme-studio input[type="color"] { width: 100%; height: 46px; padding: 6px; cursor: pointer; }
.theme-studio input[type="range"] { accent-color: var(--mint); padding: 0; }

.booking-page[data-template] {
  --paper: var(--booking-bg, #f3f6fa);
  --ink: var(--booking-text, #18283e);
  --card: var(--booking-surface, #fff);
  --muted: color-mix(in srgb, var(--ink) 76%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 17%, var(--card));
  --mint: var(--booking-accent);
  --mint-dark: var(--booking-accent);
  padding: 28px;
  margin: 24px 0;
  border-radius: var(--booking-radius, 14px);
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  overflow: clip;
  box-shadow: none;
}
.booking-page[data-template] .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; min-height: 350px; gap: 40px; padding: 0; background: none; border: 0; border-radius: 0; overflow: visible; transform: none; box-shadow: none; }
.booking-page[data-template] .hero-copy { padding: 28px 8px; background: none; border: 0; transform: none; }
.booking-page[data-template] .hero-copy h1 { color: inherit; font: 600 clamp(36px, 4.5vw, 66px)/1.09 var(--booking-font); letter-spacing: -1.8px; text-shadow: none; text-transform: none; transform: none; max-width: 600px; overflow-wrap: anywhere; }
.booking-page[data-template] .business-identity { margin-bottom: 22px; }
.booking-page[data-template] .business-identity .eyebrow { color: inherit; letter-spacing: .2px; font-size: 13px; text-transform: none; }
.booking-page[data-template] :is(.lede,.business-description) { color: var(--muted); line-height: 1.75; max-width: 540px; }
.booking-page[data-template] .lede { font-size: 16px; margin-top: 20px; }
.booking-page[data-template] .business-description { font-size: 13px; }
.booking-page[data-template] .hero-art { height: 350px; border: 0; border-radius: var(--booking-radius); background: var(--booking-accent); transform: none; box-shadow: none; overflow: hidden; }
.booking-page[data-template] .hero-art.has-cover:before, .booking-page[data-template] .hero-art.has-cover:after { display: none; }
.booking-page[data-template] .hero-art img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.booking-page[data-template] .hero-art.has-cover .hero-decoration { display: none; }
.booking-page[data-template] .court-lines { border-color: var(--booking-on-accent); opacity: .5; }
.booking-page[data-template] .hero-stamp { color: var(--booking-on-accent); }
.booking-page[data-template] :is(.panel,.resource-card,.slot,input,select,textarea,.duration-chip,.booking-announcement) { color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--booking-radius); box-shadow: none; transform: none; }
.booking-page[data-template] .panel { padding: 24px; }
.booking-page[data-template] :is(h2,h3,h4) { color: inherit; font-family: var(--booking-font); letter-spacing: -.6px; }
.booking-page[data-template] :is(label,.resource-card small,.resource-card em,.muted,.summary-line,.step-count,.summary-resource,.resource-number) { color: var(--muted); }
.booking-page[data-template] .resource-card { text-align: left; }
.booking-page[data-template] :is(.resource-card.selected,.resource-card:hover,.duration-chip[aria-pressed="true"]) { border-color: var(--booking-accent); background: color-mix(in srgb, var(--booking-accent) 9%, var(--card)); color: var(--ink); }
.booking-page[data-template] :is(.slot.selected,.slot:not(:disabled):hover,.primary-button) { background: var(--booking-accent); border-color: var(--booking-accent); color: var(--booking-on-accent); box-shadow: none; border-radius: var(--booking-radius); }
.booking-page[data-template] .slot.busy { background: color-mix(in srgb, var(--ink) 5%, var(--card)); color: var(--muted); text-decoration: line-through; opacity: .65; }
.booking-page[data-template] .summary-panel { background: var(--card); border-color: var(--line); color: var(--ink); }
.booking-page[data-template] .summary-panel :is(.eyebrow,.summary-line,.summary-line strong,.summary-total,.summary-total strong,label,small) { color: inherit; }
.booking-page[data-template] .summary-panel :is(input,select) { background: var(--paper); color: var(--ink); }
.booking-page[data-template] .booking-announcement { border: 0; border-left: 3px solid var(--booking-accent); background: color-mix(in srgb, var(--booking-accent) 8%, var(--card)); color: var(--ink); }
.booking-page[data-template] .business-links :is(a,span) { color: var(--muted); }
.booking-page[data-template] .business-links a { text-decoration: underline; text-underline-offset: 3px; }
.booking-page[data-template] .venue-meta { color: var(--muted); }
.booking-page[data-template] .pulse { box-shadow: none; background: var(--booking-accent); }
.booking-page[data-template] :is(.customer-section-tabs button,.menu-category,.facility-list li) { color: var(--ink); border-color: var(--line); background: var(--card); }
.booking-page[data-template] .customer-section-tabs button[aria-selected="true"] { background: var(--booking-accent); color: var(--booking-on-accent); border-color: var(--booking-accent); }
.booking-page[data-template] .booking-extra-cta { display: inline-flex; padding: 10px 16px; margin-top: 20px; border: 1px solid currentColor; border-radius: var(--booking-radius); color: inherit; text-decoration: none; font-size: 13px; font-weight: 600; }
.booking-page[data-template] .booking-business-footer { display: flex; justify-content: space-between; gap: 30px; margin-top: 36px; padding: 26px 0 0; border-top: 1px solid var(--line); color: var(--ink); }
.booking-business-footer p { max-width: 500px; margin: 8px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.booking-business-footer nav { display: flex; flex-wrap: wrap; align-content: start; gap: 16px; font-size: 12px; }
.booking-business-footer a { color: inherit; text-underline-offset: 4px; }
.booking-floating-chat { position: fixed; right: 24px; bottom: 86px; z-index: 45; padding: 13px 18px; border: 1px solid var(--booking-accent); border-radius: 99px; background: var(--booking-accent); color: var(--booking-on-accent); text-decoration: none; font-size: 13px; font-weight: 700; box-shadow: 0 4px 18px #0002; }
.booking-page[data-template] [hidden] { display: none !important; }
.booking-page[data-template] [data-hero-layout] { min-width: 0; }
.booking-page[data-template][data-hero-layout="cover"] .hero-grid { position: relative; min-height: 380px; display: grid; grid-template-columns: 1fr; align-items: end; isolation: isolate; overflow: hidden; border-radius: var(--booking-radius); background: #14251f; color: #fff; }
.booking-page[data-template][data-hero-layout="cover"] .hero-art { position: absolute; inset: 0; height: 100%; width: 100%; z-index: -2; border-radius: 0; }
.booking-page[data-template][data-hero-layout="cover"] .hero-grid:after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #071b20eb, #071b2088 55%, #071b2010); pointer-events: none; }
.booking-page[data-template][data-hero-layout="cover"] .hero-copy { max-width: 680px; padding: 36px; color: #fff; }
.booking-page[data-template][data-hero-layout="cover"] .hero-copy :is(.lede,.business-description,.venue-meta,.eyebrow) { color: #fff; }
.booking-page[data-template][data-hero-layout="compact"] .hero-grid { min-height: 240px; grid-template-columns: 1.4fr .6fr; }
.booking-page[data-template][data-hero-layout="compact"] .hero-art { height: 230px; }
.theme-studio .studio-preview-viewport .booking-page[data-hero-layout="cover"] .hero-grid { min-height: 245px; }
.theme-studio .studio-preview-viewport .booking-page[data-hero-layout="cover"] .hero-copy { padding: 20px; }
.theme-studio .studio-preview-viewport .booking-page[data-hero-layout="cover"] .hero-art { height: 100% !important; }
.booking-page[data-template] :focus-visible { outline: 3px solid var(--booking-accent); outline-offset: 3px; }
@media (max-width: 1200px) {
  .theme-studio .appearance-workspace { grid-template-columns: minmax(0, 1fr) minmax(270px, .8fr); gap: 18px; }
  .theme-mini { height: 145px; gap: 8px; padding: 10px; }
  .theme-mini-hero b { font-size: 15px; }
  .theme-studio .studio-preview-viewport .hero-grid { grid-template-columns: 1fr; }
  .theme-studio .studio-preview-viewport .hero-art { height: 150px; }
}
@media (max-width: 1000px) {
  .theme-studio .appearance-workspace { grid-template-columns: 1fr; }
  .theme-studio .appearance-preview { position: static; }
  .theme-studio .template-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-studio .studio-preview-viewport .hero-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .theme-studio { padding: 16px; }
  .theme-studio .template-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .theme-studio .theme-option { padding: 7px 7px 11px; }
  .theme-mini { height: 132px; padding: 8px; }
  .theme-mini-hero b { font-size: 13px; }
  .theme-mini-hero, .theme-mini img { height: 70px; min-height: 70px; }
  .theme-mini-nav { font-size: 8px; }
  .theme-category { font-size: 9px; }
  .theme-studio .theme-option small { font-size: 10px; }
  .theme-studio .appearance-save { grid-template-columns: 1fr; }
  .theme-studio .appearance-save button { width: 100%; }
  .theme-studio .appearance-fields { grid-template-columns: 1fr; }
  .preview-device-switch>span { display: none; }
  .booking-page[data-template] { padding: 16px; margin: 14px 0; }
  .booking-page[data-template] .hero-grid, .booking-page[data-template][data-hero-layout="compact"] .hero-grid { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .booking-page[data-template] .hero-copy { padding: 14px 0 4px; }
  .booking-page[data-template] .hero-copy h1 { font-size: clamp(34px, 9vw, 48px); letter-spacing: -1px; }
  .booking-page[data-template] .hero-art { height: 230px; }
  .booking-page[data-template] .lede { font-size: 14px; margin-top: 15px; }
  .booking-page[data-template] .panel { padding: 17px; }
  .booking-page[data-template][data-hero-layout="cover"] .hero-copy { padding: 25px 20px; }
  .booking-page[data-template][data-hero-layout="cover"] .hero-grid { min-height: 380px; }
  .booking-page[data-template] .booking-business-footer { flex-direction: column; gap: 18px; }
  .booking-floating-chat { right: 16px; bottom: 88px; font-size: 12px; }
  .theme-studio .studio-preview-viewport .hero-copy h1 { font-size: 25px; }
  .theme-studio .studio-preview-viewport .hero-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .theme-option, .studio-preview-viewport .booking-page { transition: none !important; } }
.theme-studio #booking-preview .hero-copy h1 { font: 600 27px/1.15 var(--booking-font); letter-spacing: -.7px; overflow-wrap: normal; }
.theme-studio #booking-preview .hero-copy { min-width: 0; }
.theme-studio #booking-preview .hero-grid { gap: 16px; min-height: 0; }
.theme-studio #booking-preview .hero-art { height: 210px; min-height: 0; }
.theme-studio #booking-preview .business-identity .eyebrow { font-size: 9px; }
.theme-studio #booking-preview .lede { font-size: 10px; margin: 12px 0; line-height: 1.6; }
.theme-studio #booking-preview .business-description { font-size: 9px; line-height: 1.6; }
.theme-studio #booking-preview .booking-extra-cta { padding: 7px 10px; margin-top: 10px; font-size: 9px; }
.theme-studio #booking-preview[data-hero-layout="cover"] .hero-grid { min-height: 240px; }
.theme-studio #booking-preview[data-hero-layout="cover"] .hero-art { height: 100%; }
.booking-business-footer img { max-width: 110px; max-height: 45px; object-fit: contain; display: block; margin-bottom: 12px; }
.theme-studio #booking-preview .booking-business-footer img { max-width: 60px; max-height: 24px; }
#customer-view.booking-page[data-template] .summary-panel { align-self: start; background: var(--card); border-color: var(--line); color: var(--ink); }
#customer-view.booking-page[data-template] .summary-panel :is(h2,.eyebrow,.booking-substep,.step-count,.form-note,#owner-payment-hint,.empty-summary,.empty-summary span,.empty-summary small,.summary-line,.summary-total,.total-line,.total-line strong,.addon-row,label) { color: var(--ink); }
#customer-view.booking-page[data-template] .summary-panel :is(input,select,.cart-item,.owner-payment-card) { color: var(--ink); background: var(--paper); border-color: var(--line); }
#customer-view.booking-page[data-template] .addon-open { color: var(--ink); background: var(--paper); border-color: var(--booking-accent); border-style: solid; border-radius: var(--booking-radius); }
#customer-view.booking-page[data-template] .addon-open:hover { color: var(--ink); background: color-mix(in srgb, var(--booking-accent) 10%, var(--card)); border-color: var(--booking-accent); }
#customer-view.booking-page[data-template] .addon-open:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
#customer-view.booking-page[data-template] .addon-chip { color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
#customer-view.booking-page[data-template] .addon-chip button:hover { background: color-mix(in srgb, var(--ink) 10%, var(--card)); }
#customer-view.booking-page[data-template] .total-line { border-color: var(--line); }
.studio-demo-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; font-size: 12px; }
.studio-demo-links strong { flex-basis: 100%; font-weight: 600; }
.studio-demo-links a { color: var(--mint-dark); text-underline-offset: 4px; }
.studio-demo-links p { flex-basis: 100%; margin: 0; font-size: 11px; color: var(--muted); }
@container (max-width: 380px) { .theme-studio #booking-preview .hero-grid { grid-template-columns: 1fr; }.theme-studio #booking-preview .hero-art { height: 150px; } }
