/* KASTOM v7 · shared controls and catalog. Screen styles live in their own files. */
:root,[data-theme="dark"]{
  color-scheme:dark;
  --bg:#131518;--surface:#1d2025;--surface-soft:#272b32;--surface-raised:#30353d;
  --ink:#f5f6f8;--muted:#a5adb9;--line:#363d47;--line-soft:#2d333b;
  --lime:#d6ff45;--accent-ink:#192000;--danger:#ffada7;
  --focus-bg:#30353d;--selection:#30353d;--selection-ink:#f5f6f8;
  --card-surface:linear-gradient(120deg,#202429,#171b1f);--card-selected-price:var(--lime);--card-selected-border:var(--lime);
  --header-height:64px;--budget-height:0px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:14px;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;
}
[data-theme="light"]{
  color-scheme:light;
  --bg:#f7f8fa;--surface:#fff;--surface-soft:#eef0f3;--surface-raised:#e4e8ee;
  --ink:#171a20;--muted:#616873;--line:#d8dde5;--line-soft:#e4e8ee;
  --danger:#a3332b;--focus-bg:#e4e8ee;--selection:#e4e8ee;--selection-ink:#171a20;
  --card-surface:#fff;--card-selected-price:#526900;--card-selected-border:#9ab91f;
}
*{box-sizing:border-box}
html{min-width:300px;background:var(--bg);color:var(--ink);scroll-behavior:smooth;scroll-padding-top:calc(var(--header-height) + 20px)}
body{margin:0;min-width:300px;min-height:100vh;min-height:100dvh;background:var(--bg);color:var(--ink);line-height:1.45}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
button,a,summary{touch-action:manipulation}
button{margin:0;border:0;background:none;color:inherit;cursor:pointer;transition:background-color .15s ease,color .15s ease,transform .12s ease}
button:disabled{cursor:default;opacity:.48}
button:active:not(:disabled){transform:translateY(1px)}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,summary:focus-visible,label[role="button"]:focus-visible{outline:2px solid var(--muted);outline-offset:3px}
input:focus,select:focus,textarea:focus{outline:2px solid var(--muted);outline-offset:2px;border-color:var(--muted)}
svg{display:block;flex-shrink:0;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
img{display:block;max-width:100%;height:auto}
h1,h2,h3,p{margin:0}
h1{font-size:28px;line-height:1.15;letter-spacing:-.75px;font-weight:720}
h1[tabindex="-1"]:focus{outline:none}
h2{font-size:20px;line-height:1.25;letter-spacing:-.35px;font-weight:680}
h3{font-size:15px;line-height:1.35;font-weight:650}
small{font-weight:400}
[hidden]{display:none!important}
.skip{position:fixed;z-index:100;top:-80px;left:16px;padding:12px 16px;border-radius:10px;background:var(--lime);color:var(--accent-ink)}
.skip:focus{top:12px}
.app-header{position:sticky;z-index:30;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;height:var(--header-height);padding:8px max(16px,calc((100vw - 1280px)/2));border-bottom:1px solid var(--line-soft);background:var(--bg)}
.brand{display:inline-flex;align-items:center;gap:9px;min-width:0;border-radius:8px;font-size:20px;line-height:1;font-weight:800;letter-spacing:-.6px}
.brand-mark{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:var(--lime);color:var(--accent-ink);font-size:26px;font-weight:850;letter-spacing:-1.3px}
.brand small{display:block;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.2;font-weight:400;letter-spacing:0}
.header-actions{display:flex;align-items:center;gap:3px;flex:0 0 auto}
.icon-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;width:44px;height:44px;padding:11px;border-radius:12px;color:var(--ink)}
.icon-button:hover{background:var(--surface-soft)}
.cart-nav{position:relative}
.cart-nav b{position:absolute;top:0;right:0;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border:2px solid var(--bg);border-radius:12px;background:var(--lime);color:var(--accent-ink);font-size:10px;font-weight:750;line-height:1}
main{width:min(100%,1280px);margin-inline:auto;padding:20px 16px 36px}
.screen{min-width:0;animation:screen-in .16s ease-out}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-bottom:20px}
.page-heading>div{min-width:0}
.eyebrow{margin-bottom:6px;color:var(--muted);font-size:12px;line-height:1.35;font-weight:500}
.count-label{color:var(--muted);font-size:12px;white-space:nowrap}
label{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--ink);font-size:13px;line-height:1.35;font-weight:550}
label small{font-size:12px;color:var(--muted)}
input,select,textarea{display:block;width:100%;min-width:0;margin:0;padding:12px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--ink);font-size:16px;line-height:1.35;font-weight:400}
input,select{height:48px;min-height:48px}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
select{padding-right:10px}
select option{background:var(--surface);color:var(--ink)}
input[type="number"]{appearance:textfield;-moz-appearance:textfield}
input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}
textarea{min-height:82px;max-height:360px;resize:vertical}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 16px;border:1px solid transparent;border-radius:12px;font-size:14px;line-height:1.3;font-weight:650;text-align:center}
.primary{background:var(--lime);color:var(--accent-ink)}
.primary:hover{background:#e0ff70}
.primary svg,.secondary svg{width:19px;height:19px}
.secondary{border-color:var(--line);background:var(--surface-soft);color:var(--ink)}
.secondary:hover{background:var(--surface-raised)}
.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;border-radius:8px;color:var(--muted);font-size:13px;line-height:1.3}
.text-button:hover{color:var(--ink)}
.form-error{margin-top:10px;color:var(--danger);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.optional-label{color:var(--muted);font-size:12px;font-weight:400}
.catalog-workspace,.catalog-sidebar,.catalog-results{min-width:0}
.catalog-sidebar{display:grid;gap:12px;align-content:start;margin-bottom:20px}
.catalog-sidebar-heading{display:none}
.event-summary{display:flex;align-items:center;gap:11px;width:100%;min-height:60px;padding:10px 13px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);text-align:left}
.event-summary:hover{background:var(--surface-soft)}
.event-pin{flex:0 0 auto;color:var(--muted)}
.event-pin svg{width:21px;height:21px}
.event-copy{display:grid;gap:3px;min-width:0;flex:1}
.event-copy small{color:var(--muted);font-size:11px;line-height:1.2}
.event-copy #eventSummary{display:block;min-width:0;font-size:13px;line-height:1.4;font-weight:550;overflow-wrap:anywhere}
.event-summary>#eventSummary{min-width:0;font-size:13px;line-height:1.4;font-weight:550}
.event-pencil{display:grid;place-items:center;flex:0 0 24px;margin-left:auto;color:var(--muted)}
.event-pencil svg{width:18px;height:18px}
.payment-note{display:flex;align-items:center;gap:6px;margin-top:2px;color:var(--muted);font-size:11px;line-height:1.5}
.payment-note>span{color:var(--ink);font-size:12px}
.catalog-mode-row{display:flex;align-items:center;gap:10px;margin-bottom:12px;min-width:0}
.browse-switch{display:flex;flex:1;gap:4px;min-width:0;padding:4px;border-radius:12px;background:var(--surface-soft)}
.browse-switch button{flex:1;min-width:0;min-height:44px;padding:10px 12px;border-radius:9px;color:var(--muted);font-size:13px;line-height:1.2;font-weight:550;white-space:nowrap}
.browse-switch button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #0000000c;font-weight:650}
.search-toggle{flex-basis:48px;width:48px;min-width:48px;height:48px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.search-toggle[aria-expanded="true"]{background:var(--surface-soft)}
.catalog-controls{position:relative;margin:0 0 10px}
.search-field{position:relative;display:block}
.search-field>span{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.search-field svg{width:19px;height:19px}
.search-field input{padding-left:43px;padding-right:48px;background:var(--surface);border-radius:12px}
.search-field input::-webkit-search-cancel-button{display:none}
.search-field button{position:absolute;top:2px;right:2px;display:grid;place-items:center;width:44px;height:44px;border-radius:10px;font-size:24px;font-weight:350;line-height:1;color:var(--muted)}
.results-line{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px;margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.4}
.results-line .text-button{min-height:32px;padding-block:5px;font-size:12px}
.service-groups{display:grid;gap:8px}
.service-group{min-width:0;background:transparent;border-bottom:1px solid var(--line)}
.service-group>h2{margin:0;font:inherit}
.group-toggle{display:flex;align-items:center;gap:11px;width:100%;min-height:68px;padding:12px 0;text-align:left;border-radius:10px}
.group-symbol{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:var(--surface-soft);color:var(--ink)}
#group-interesting .group-symbol{border-radius:9px;background:var(--lime);color:var(--accent-ink)}
.group-symbol svg{width:22px;height:22px}
.group-label{display:grid;gap:4px;min-width:0;flex:1}
.group-label strong{font-size:16px;line-height:1.25;letter-spacing:-.2px;font-weight:650;overflow-wrap:anywhere}
.group-label small{display:none;color:var(--muted);font-size:12px;line-height:1.4}
.group-stats{display:grid;justify-items:end;gap:4px;flex:0 0 auto;color:var(--muted);font-size:11px;line-height:1.3}
.group-selected{color:var(--ink);font-size:11px;line-height:1.3}
.group-chevron{display:grid;place-items:center;flex:0 0 16px;width:16px;height:24px;color:var(--muted);font-size:20px;line-height:1;transition:transform .18s ease}
.group-toggle[aria-expanded="true"] .group-chevron{transform:rotate(180deg)}
.group-panel{padding:4px 0 20px}
.services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;margin-inline:-2px}
.service-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:var(--card-surface);content-visibility:auto;contain-intrinsic-size:auto 300px;transition:border-color .16s ease}
.group-cards .service-card{content-visibility:visible;contain-intrinsic-size:none}
@media(min-width:1200px){#group-cards-merch,#group-cards-gifts{grid-template-columns:repeat(4,minmax(0,1fr))}}
.service-card.is-selected{border-color:var(--card-selected-border)}
.service-card[data-id^="prisma-"] .card-open:hover .card-media img{transform:none}
.card-open:hover .card-media .photo-backdrop>img{transform:none}
.format-group-toggle.card-open{display:flex;flex-direction:column;align-items:stretch;flex:1;padding:0;color:var(--ink);cursor:pointer}
.format-group-toggle .card-media{grid-column:1/-1;display:block}
.format-group-copy{display:flex;flex:1;flex-direction:column;min-width:0;gap:6px;padding:8px 10px 12px}
.format-group-action{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px;line-height:1.35}
.format-group-action svg{flex:none;width:16px;height:16px}
.format-group-toggle:focus-visible{outline-offset:-3px}
.card-open{display:flex;flex:1;flex-direction:column;min-width:0;width:100%;text-align:left}
.card-media{position:relative;flex:0 0 auto;width:100%;aspect-ratio:4/3;overflow:hidden;background:var(--surface-soft)}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .22s ease}
.service-preview,.preview-visual{position:relative;display:block;width:100%;height:100%;min-width:0;overflow:hidden}
.service-preview{isolation:isolate;background:var(--surface-soft)}
.preview-visual>img,.preview-visual>video{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.preview-visual>video{position:absolute;inset:0;opacity:0;background:transparent}
.service-preview.is-ready video,.service-preview--detail video{opacity:1}
.service-preview.is-ready .preview-visual>img{opacity:0}
.service-preview.video-unavailable video{display:none}
.preview-badge{position:absolute;bottom:10px;left:8px;padding:4px 7px;border-radius:6px;background:rgb(0 0 0 / .7);color:#fff;font-size:10px;line-height:1.2;font-weight:600;pointer-events:none}
.card-media .preview-badge{display:none}
.card-media .preview-visualization-label{display:block;max-width:calc(100% - 55px);padding:3px 6px;font-size:9px;line-height:1.1}
.preview-toggle{position:absolute;right:2px;bottom:2px;display:grid;place-items:center;width:44px;height:44px;padding:0;color:#fff;border-radius:50%}
.preview-toggle::before{position:absolute;inset:5px;content:'';border-radius:50%;background:rgb(0 0 0 / .74);border:1px solid rgb(255 255 255 / .3)}
.preview-toggle svg{position:relative;width:19px;height:19px}
.preview-toggle:focus-visible{outline:2px solid var(--lime);outline-offset:-3px}
.service-preview--detail .preview-badge{top:12px;bottom:auto;left:12px}
.preview-video-actions{position:absolute;top:8px;right:8px;z-index:1;display:flex;gap:5px}
.preview-video-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:44px;height:44px;padding:0 9px;border:1px solid rgb(255 255 255 / .28);border-radius:22px;background:rgb(0 0 0 / .78);color:#fff;font-size:12px;font-weight:650;white-space:nowrap}
.preview-video-actions button:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
.preview-video-actions svg{flex:none;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.preview-fullscreen-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#000;color:#fff}
.service-preview--detail:fullscreen,.preview-fullscreen-dialog .preview-visual,.preview-fullscreen-dialog video,.service-preview--detail:fullscreen video{background:#000}
.preview-fullscreen-dialog .preview-video-actions,.service-preview--detail:fullscreen .preview-video-actions{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right))}
.service-preview--detail:fullscreen .preview-badge{display:none}
.card-preview-caption{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.35}
.card-selection{position:absolute;z-index:5;top:8px;left:8px;max-width:calc(100% - 58px);padding:4px 7px;border-radius:7px;background:var(--lime);color:var(--accent-ink);font-size:10px;line-height:1.2;font-weight:750}
.card-content{display:flex;flex:1;flex-direction:column;min-width:0;padding:8px 10px 0}
.card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:16px;line-height:1.2;letter-spacing:-.2px;font-weight:700;overflow-wrap:anywhere}
.card-facts{display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.25;font-weight:400}
.card-facts>span{display:inline-flex;align-items:center;gap:4px;min-width:0}
.card-facts>span+span::before{content:'·';margin-right:1px}
.card-bottom{display:flex;align-items:center;gap:3px;min-width:0;margin:0 5px 0 10px;padding:0}
.card-price{display:flex;flex:1;min-width:0;min-height:44px;align-items:center;font-size:16px;line-height:1.2;font-weight:750;letter-spacing:-.45px;font-variant-numeric:tabular-nums}
.card-price strong{min-width:0;max-width:100%;font-weight:inherit;white-space:normal}
.card-price[data-long="true"]{font-size:14px;letter-spacing:-.3px}
.service-card.is-selected .card-price{color:var(--ink)}
.card-add{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border-radius:11px;color:var(--ink)}
.card-add::before{content:'';position:absolute;inset:5px;border-radius:10px;background:var(--surface-raised);transition:background-color .16s ease}
.card-add svg{position:relative;width:24px;height:24px;stroke-width:1.8}
.card-add:hover::before{background:var(--line)}
.card-add:focus-visible{outline-offset:-3px}
.card-add.is-selected{color:var(--accent-ink)}
.card-add.is-selected::before{background:var(--lime)}
.collections-hint{margin:3px 0 18px;max-width:58ch;color:var(--muted);font-size:13px;line-height:1.5}
.collections-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.collection-card{min-width:0;overflow:hidden;border:1px solid var(--line-soft);border-radius:18px;background:var(--surface)}
.collection-media{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--surface-soft)}
.collection-media img{width:100%;height:100%;object-fit:cover}
.collection-media::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 15%,#000b)}
.collection-heading{position:absolute;z-index:1;left:18px;right:18px;bottom:18px;color:white}
.collection-heading h2{margin-top:8px;font-size:25px;line-height:1.2;letter-spacing:-.5px}
.collection-count{display:inline-block;padding:4px 8px;border-radius:6px;background:#121519bf;font-size:11px;line-height:1.3}
.collection-body{padding:18px}
.collection-caption{font-size:14px;line-height:1.45;font-weight:550}
.collection-items{display:grid;gap:0;list-style:none;margin:12px 0;padding:0}
.collection-items a{display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 0;color:var(--muted);font-size:13px;line-height:1.4}
.collection-items a:hover{color:var(--ink)}
.collection-items svg{width:18px;height:18px}
.collection-link-arrow{margin-left:auto;font-size:17px}
.collection-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid var(--line)}
.collection-bottom>span{min-width:0;font-size:16px;line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.collection-bottom .primary{flex:0 0 auto;gap:8px;padding-inline:13px;font-size:13px}
.collection-bottom .primary svg{width:17px;height:17px}
.production-plan{margin-top:18px;padding:14px;border-radius:12px;background:var(--surface-soft)}
.production-context,.production-note{color:var(--muted);font-size:12px;line-height:1.5}
.production-metrics{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;margin-top:12px}
.production-metrics>div{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:4px 7px;min-width:0}
.production-metrics svg{width:17px;height:17px;color:var(--muted)}
.production-metrics strong{font-size:17px;line-height:1.3;font-weight:650;overflow-wrap:anywhere}
.production-metrics small{grid-column:1/-1;color:var(--muted);font-size:11px;line-height:1.4}
.production-note{margin-top:11px}
.production-plan[data-state="individual"]>strong{display:block;margin-top:8px;font-size:14px}
.selection-note{margin-top:12px;color:var(--muted);font-size:12px;line-height:1.5}
.quote-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-block:7px;font-size:13px;line-height:1.45}
.quote-row>span{min-width:0;color:var(--muted);overflow-wrap:anywhere}
.quote-row>strong{min-width:0;font-weight:600;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.constructor-link{display:flex;align-items:center;justify-content:space-between;gap:12px}
.steps{list-style:none;counter-reset:step;margin:14px 0 0;padding:0}
.steps li{position:relative;counter-increment:step;color:var(--muted)}
.steps li::before{content:counter(step,decimal-leading-zero);position:absolute;left:0;top:0;display:grid;place-items:center;color:var(--ink);font-weight:600}
.requirements{display:grid;list-style:none;margin:14px 0 0;padding:0;color:var(--muted)}
.requirements li{display:flex;align-items:flex-start;gap:8px}
.requirements li::before{content:"";flex:0 0 4px;height:4px;margin-top:8px;border-radius:50%;background:var(--muted)}
.source-details{border-top:1px solid var(--line);color:var(--muted)}
.source-details summary{cursor:pointer;border-radius:5px}
.source-details p{overflow-wrap:anywhere}
.source-details a{text-decoration:underline;text-underline-offset:3px}
.source-note{display:block;margin-top:7px}
.empty-state{max-width:430px;margin:38px auto;padding:24px 12px;text-align:center}
.empty-state h2{font-size:23px;line-height:1.25;letter-spacing:-.45px}
.empty-state p{margin:12px 0 22px;color:var(--muted);font-size:14px;line-height:1.5}
.toast{position:fixed;z-index:70;left:50%;bottom:calc(106px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:12px;width:max-content;max-width:calc(100% - 28px);padding:12px 15px;border:1px solid var(--line);border-radius:13px;background:var(--surface-raised);color:var(--ink);font-size:13px;line-height:1.4;box-shadow:0 6px 30px #0002;animation:toast-in .14s ease-out}
.toast>span{min-width:0;overflow-wrap:anywhere}
.toast button{flex:0 0 auto;min-height:44px;margin:-8px -5px -8px 0;padding:8px;color:var(--ink);font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.site-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;width:min(100%,1280px);margin:0 auto;padding:22px 16px 30px;border-top:1px solid var(--line-soft);color:var(--muted);font-size:11px;line-height:1.5}
.site-footer a{display:inline-flex;align-items:center;min-height:44px}
.site-footer a:hover{color:var(--ink)}
body.event-open,body.admin-dialog-open{overscroll-behavior:none}
@keyframes screen-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,4px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes selection-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@media(hover:hover){.card-open:hover .card-media img{transform:scale(1.025)}.card-open:hover .card-title{color:var(--ink)}}
@media(max-width:759px){body.detail-route{padding-bottom:calc(92px + env(safe-area-inset-bottom))}}
@media(min-width:650px){
  main{padding:28px 24px 44px}
  .app-header{padding-inline:max(24px,calc((100vw - 1232px)/2))}
  .brand{font-size:22px}.brand-mark{width:37px;height:37px;flex-basis:37px}
  .catalog-sidebar{margin-bottom:24px}.event-summary{min-height:64px}
  .group-label small{display:block}.group-toggle{min-height:78px;padding-block:14px}
  .group-label strong{font-size:18px}.group-stats{font-size:12px}
  .services-grid{gap:20px 18px;margin-inline:0}.card-content,.format-group-copy{padding:12px 14px 0}
  .card-title{font-size:18px}.card-facts,.format-group-action{font-size:13px}.card-facts{gap:4px 7px}
  .card-bottom{margin:4px 9px 7px 14px;gap:9px}.card-price{font-size:19px}.card-price[data-long="true"]{font-size:17px}
  .collections-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .catalog-mode-row{gap:12px}.browse-switch{max-width:450px}
  .site-footer{padding-inline:24px}
}
@media(min-width:1050px){
  :root{--header-height:72px}
  main{padding-top:32px}
  .catalog-workspace{display:grid;grid-template-columns:248px minmax(0,1fr);align-items:start;gap:36px}
  .catalog-sidebar{position:sticky;top:96px;gap:16px;margin-bottom:0}
  .catalog-sidebar-heading{display:block;margin-bottom:8px}
  .catalog-sidebar-heading h1{font-size:31px;line-height:1.1;letter-spacing:-.9px}
  .catalog-sidebar-heading p{max-width:25ch;margin-top:10px;color:var(--muted);font-size:13px;line-height:1.5}
  .event-summary{align-items:flex-start;padding:14px 12px;gap:8px}
  .event-pin{margin-top:1px}.event-copy{gap:6px}.event-copy #eventSummary{font-size:13px;line-height:1.5}
  .event-pencil{flex-basis:18px;width:18px;margin-top:1px}.event-pencil svg{width:16px;height:16px}
  .catalog-mode-row{margin-bottom:14px}.browse-switch{max-width:390px}
  .search-toggle{margin-left:auto}
  .services-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 16px}
  .group-toggle{min-height:76px}.group-panel{padding-top:7px;padding-bottom:26px}
  .group-label strong{font-size:19px}.group-symbol{flex-basis:42px;width:42px;height:42px}
  .card-content,.format-group-copy{padding:11px 12px 0}.card-title{font-size:18px}
  .card-facts,.format-group-action{font-size:12px}.card-facts{gap:4px 7px}.card-bottom{margin:3px 7px 6px 12px}.card-price{font-size:18px}.card-price[data-long="true"]{font-size:15px}
  .payment-note{font-size:11px;line-height:1.6}
}
@media(max-width:359px){
  main{padding-inline:12px;padding-top:14px}.app-header{padding-inline:12px}
  .brand{gap:7px;font-size:18px}.brand small{font-size:9px}.brand-mark{flex-basis:31px;width:31px;height:31px;border-radius:9px;font-size:24px}
  .header-actions{gap:0}.header-actions .icon-button{width:44px;min-width:44px;flex-basis:44px}
  .catalog-sidebar{gap:10px;margin-bottom:16px}.event-summary{padding:10px;gap:8px}.event-copy #eventSummary{font-size:12px}
  .catalog-mode-row{gap:8px}.browse-switch button{padding-inline:8px;font-size:12px}
  .services-grid{gap:8px;margin-inline:0}.card-content,.format-group-copy{padding:8px 8px 0}
  .card-title{font-size:14px}.card-facts{margin-top:4px;gap:3px 5px}.card-facts,.format-group-action{font-size:11px}
  .format-group-copy{gap:4px;padding-bottom:10px}
  .card-bottom{gap:0;margin:0 3px 0 8px}.card-price{font-size:13px;letter-spacing:-.4px}.card-price[data-long="true"]{font-size:12px}
  .card-selection{left:7px;top:7px;padding-inline:8px;font-size:10px}
  .group-toggle{gap:8px}.group-symbol{flex-basis:34px;width:34px;height:34px;border-radius:10px}.group-symbol svg{width:20px;height:20px}
  .group-label strong{font-size:15px}.group-stats{font-size:10px}.group-selected{font-size:10px}.group-chevron{flex-basis:13px}
  .collection-body{padding:15px}.collection-bottom{gap:8px}.collection-bottom>span{font-size:14px}.collection-bottom .primary{font-size:12px;padding-inline:10px}
  .site-footer{padding-inline:12px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .card-open:hover .card-media img{transform:none}
}
@media(forced-colors:active){
  .primary,.secondary,.icon-button,.service-card,.event-summary,.browse-switch,.card-add,.selection-bar,.live-budget{border:1px solid CanvasText}
  .browse-switch button[aria-pressed="true"],.card-add.is-selected{outline:2px solid Highlight;outline-offset:-3px}
  .budget-track>span{background:CanvasText}
}
@media print{
  :root,[data-theme="dark"],[data-theme="light"]{color-scheme:light;--bg:#fff;--surface:#fff;--surface-soft:#eee;--ink:#111;--muted:#444;--line:#ccc;--line-soft:#ddd}
  html,body{min-width:0;background:#fff;color:#111}
  .app-header,.selection-bar,.toast,.site-footer,.event-dialog,.catalog-mode-row,.catalog-controls{display:none!important}
  main{width:100%;padding:0}.screen{animation:none}.catalog-workspace{display:block}.catalog-sidebar{position:static}
  .service-card,.collection-card{break-inside:avoid;content-visibility:visible}.card-add{display:none}
}
/* The brand stays a single quiet line on narrow screens. */
.brand small,.header-context{display:none}
@media(min-width:1050px){.header-context{display:block;margin-right:auto;margin-left:20px;color:var(--muted);font-size:13px}}
/* Catalog context stays compact; its financial assumptions live with details. */
.catalog-sidebar-heading{display:block;position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.results-line:not(.has-query):not(.is-loading){min-height:0;margin:0}.results-line:not(.has-query):not(.is-loading) #resultCount{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:1050px){.catalog-sidebar-heading{position:static;width:auto;height:auto;margin:0 0 8px;overflow:visible;clip-path:none;white-space:normal}}
@media(max-width:1049px){.catalog-sidebar .payment-note{display:none}.catalog-sidebar{gap:12px}.catalog-results{padding-top:0}.service-group .group-toggle{min-height:60px}}

@media(max-width:759px){body.detail-route{padding-bottom:calc(var(--detail-buy-height,92px) + 24px)}}
.catalog-error .secondary{margin-top:12px}
.catalog-sidebar .catalog-mode-row{margin-bottom:0}
@media(max-width:1049px){.catalog-sidebar{margin-bottom:12px}}
