/* Theme overrides are opt-in. Without data-theme-custom the approved layout and
   renderer remain untouched. Configuration dialogs deliberately stay neutral. */
#app[data-theme-custom]{--menu-ink:var(--theme-page-ink);--menu-muted:var(--theme-page-muted);--menu-heading:var(--theme-heading);--menu-surface:var(--theme-surface);--text:var(--theme-page-ink);--muted:var(--theme-page-muted);--accent:var(--theme-readable-accent);background-color:var(--theme-bg);color:var(--theme-page-ink)}
#app[data-theme-custom]:not([data-look=charcoal]):not([data-look=glass]){background-image:none}
#app[data-theme-custom] .menu-head{border-color:color-mix(in srgb,var(--theme-page-ink) 20%,transparent)}
#app[data-theme-custom] .tab{color:var(--theme-page-muted)}
#app[data-theme-custom] .tab[aria-selected=true]{color:var(--theme-page-ink);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--theme-page-ink) 30%,transparent);background:color-mix(in srgb,var(--theme-page-ink) 9%,transparent)}
#app[data-theme-custom] .venue-header .settings-button{border-color:color-mix(in srgb,var(--theme-page-ink) 32%,transparent);background:color-mix(in srgb,var(--theme-bg) 85%,transparent);color:var(--theme-page-ink)}
#app[data-theme-custom] .settings-button circle{fill:var(--theme-bg)}
#app[data-theme-custom] .menu-card .card-surface{background:var(--theme-surface);border-color:color-mix(in srgb,var(--theme-ink) 28%,transparent)}
#app[data-theme-custom] .menu-card h3{font-family:var(--theme-heading);color:var(--theme-ink)}
#app[data-theme-custom] .menu-card .card-copy p,#app[data-theme-custom] .menu-card .card-bottom small{font-family:var(--theme-body);color:var(--theme-muted)}
#app[data-theme-custom] .menu-card .card-bottom{color:var(--theme-ink)}
#app[data-theme-custom] .menu-card .quick-add{color:var(--theme-ink);background:color-mix(in srgb,var(--theme-surface) 85%,transparent);border-color:color-mix(in srgb,var(--theme-ink) 50%,transparent)}
#app[data-theme-custom] .menu-card .quick-add.selected,#app[data-theme-custom] .focus-add.selected{background:var(--theme-accent);border-color:var(--theme-accent);color:var(--theme-on-accent)}
#app[data-theme-custom][data-theme-density=compact] .flat-list .menu-card{height:136px}
#app[data-theme-custom] .focus-title,#app[data-theme-custom] .cinema-title{font-family:var(--theme-heading);color:var(--theme-ink)}
#app[data-theme-custom] :is(.focus-kicker,.focus-short,.focus-discover,.cinema-kicker,.cinema-short,.cinema-discover){font-family:var(--theme-body);color:var(--theme-muted)}
#app[data-theme-custom] :is(.focus-price,.cinema-price){font-family:var(--theme-body);color:var(--theme-ink)}
#app[data-theme-custom] .focus-add{color:var(--theme-ink);border-color:color-mix(in srgb,var(--theme-ink) 70%,transparent);background:color-mix(in srgb,var(--theme-surface) 85%,transparent)}
#app[data-theme-custom] .ambient::before{background:radial-gradient(ellipse,var(--theme-accent),transparent 66%);opacity:var(--theme-glow)}
#app[data-theme-custom] .stage-edge.top{background:linear-gradient(var(--theme-bg),transparent)}
#app[data-theme-custom] .stage-edge.bottom{background:linear-gradient(transparent,var(--theme-bg))}
#app[data-theme-custom] .scene-arrows button{background:var(--theme-surface);border-color:var(--theme-muted);color:var(--theme-ink)}
#app[data-theme-custom] .venue-footer{background:linear-gradient(transparent,var(--theme-bg))}
/* Sponsor artwork keeps its independent brand identity, not arbitrary inverted ink. */
#app[data-theme-custom] .tfb-banner{color:#fff8ed}
#app[data-theme-custom] .venue-footer .list-button{background:color-mix(in srgb,var(--theme-surface) 88%,transparent);color:var(--theme-ink);border-color:color-mix(in srgb,var(--theme-ink) 30%,transparent)}
#app[data-theme-custom] .venue-footer .list-button .count{background:var(--theme-ink);color:var(--theme-surface)}
#app[data-theme-custom][data-look=prism] .menu-card .card-surface{background:color-mix(in srgb,var(--theme-surface) 90%,transparent);box-shadow:inset 0 1px 1px color-mix(in srgb,var(--theme-accent) 75%,white),0 0 calc(12px * var(--theme-sheen)) color-mix(in srgb,var(--theme-accent) 18%,transparent)}
#app[data-theme-custom][data-look=prism] .ambient::before{opacity:.45;background:radial-gradient(ellipse,color-mix(in srgb,var(--theme-accent) 30%,transparent),transparent 66%)}
#app[data-theme-custom][data-look=charcoal]{--chalk-hand:var(--theme-heading);background-color:var(--theme-bg)}
#app[data-theme-custom][data-look=charcoal][data-theme-wear="0"]{background-image:url('./assets/board-grain.png')}
#app[data-theme-custom][data-look=charcoal] :is(.chalk-kicker,.chalk-short,.chalk-discover){color:var(--theme-muted)}
#app[data-theme-custom][data-look=charcoal] :is(.chalk-title,.chalk-price){color:var(--theme-ink)}
#app[data-theme-custom][data-look=charcoal] .tab[aria-selected=true]::after{background:var(--theme-accent);box-shadow:none}
#app[data-theme-custom][data-look=charcoal] .menu-card .card-surface{background:color-mix(in srgb,var(--theme-bg) 65%,transparent)}
#app[data-theme-custom][data-look=charcoal][data-theme-frame=light],#detail-overlay[data-theme-custom][data-theme-frame=light] #detail-shell{border-color:#b89159;border-image:linear-gradient(120deg,#d4b688,#947047,#cbb085) 12 stretch}
#app[data-theme-custom][data-look=charcoal][data-theme-frame=none],#detail-overlay[data-theme-custom][data-theme-frame=none] #detail-shell{border-color:var(--theme-bg);border-image:none}
#app[data-theme-custom][data-look=glass] .menu-card .card-surface{background:color-mix(in srgb,var(--theme-surface) calc(64% + var(--theme-alpha) * 30%),transparent);backdrop-filter:blur(var(--theme-blur));-webkit-backdrop-filter:blur(var(--theme-blur));border-color:var(--theme-edge);box-shadow:inset 0 1px 2px #ffffff55,0 3px 10px #00000012}
#app[data-theme-custom][data-look=glass] .stage-edge{background:none}
#app[data-theme-custom][data-look=glass][data-glass-optics=light] .mood-wash,#detail-overlay[data-theme-custom][data-glass-optics=light] .mood-wash{mix-blend-mode:multiply;opacity:.2}
#app[data-theme-custom][data-look=glass][data-glass-optics=light] .mood-motif,#detail-overlay[data-theme-custom][data-glass-optics=light] .mood-motif{opacity:.10}
#app[data-theme-custom][data-look=glass][data-glass-optics=mid] .mood-wash,#detail-overlay[data-theme-custom][data-glass-optics=mid] .mood-wash{opacity:.24}
#app[data-theme-custom][data-look=glass][data-glass-optics=light] .stage::after{opacity:.08}
#app[data-theme-custom][data-theme-motion=off] .food-mood-scene *,#detail-overlay[data-theme-custom][data-theme-motion=off] .food-mood-scene *{animation:none!important;transition:none!important}
#app[data-theme-custom][data-theme-motion=calm] .mood-drift,#detail-overlay[data-theme-custom][data-theme-motion=calm] .mood-drift{animation-duration:75s!important}
/* Shared detail, including its Canvas hero, inherits the exact same tokens. */
#app[data-theme-custom]~#detail-overlay[data-theme-custom] #detail-shell .unified-detail{background-color:var(--theme-surface);color:var(--theme-ink);border-color:color-mix(in srgb,var(--theme-ink) 40%,transparent)}
#app[data-theme-custom]~#detail-overlay[data-theme-custom] #detail-shell .unified-detail h2{font-family:var(--theme-heading);color:var(--theme-ink)}
#app[data-theme-custom]~#detail-overlay[data-theme-custom] #detail-shell .unified-detail :is(.detail-description,.ingredients){color:var(--theme-muted);font-family:var(--theme-body)}
#app[data-theme-custom]~#detail-overlay[data-theme-custom] #detail-shell .unified-detail :is(.detail-eyebrow,.detail-label){color:var(--theme-card-accent);font-family:var(--theme-body)}
#app[data-theme-custom]~#detail-overlay[data-theme-custom] #detail-shell .unified-detail :is(.detail-note,.image-note,.allergen){color:var(--theme-muted)}
#app[data-theme-custom]~#detail-overlay[data-theme-custom] #detail-shell .unified-detail .allergen{border-color:color-mix(in srgb,var(--theme-ink) 35%,transparent);background:transparent}
#app[data-theme-custom]~#detail-overlay[data-theme-custom] #detail-shell .unified-detail .detail-action-bar{background:var(--theme-surface);color:var(--theme-ink);border-color:color-mix(in srgb,var(--theme-ink) 25%,transparent)}
#app[data-theme-custom]~#detail-overlay[data-theme-custom] #detail-shell .unified-detail .detail-price{color:var(--theme-ink);font-family:var(--theme-heading)}
#app[data-theme-custom]~#detail-overlay[data-theme-custom] #detail-shell .unified-detail .detail-add{background:var(--theme-accent);border-color:var(--theme-accent);color:var(--theme-on-accent)}
#app[data-theme-custom]~#detail-overlay[data-theme-custom] #detail-shell .unified-detail .variant-select{background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-muted)}
#app[data-theme-custom][data-look=charcoal]~#detail-overlay[data-theme-custom] #detail-shell .unified-detail{background-color:var(--theme-bg)}
#app[data-look=charcoal]~#detail-overlay[data-theme-custom][data-theme-wear="0"] #detail-shell .unified-detail{background-image:url('./assets/board-grain.png')}
#panel-overlay[data-theme-custom] #panel[data-kind=list]{--muted:var(--theme-muted);--text:var(--theme-ink);background-color:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-muted)}
#panel-overlay[data-theme-custom] #panel[data-kind=list] :is(h2,.list-line-name,.list-totals,.list-empty){font-family:var(--theme-heading);color:var(--theme-ink)}
#panel-overlay[data-theme-custom] #panel[data-kind=list] .stepper button{color:var(--theme-ink);border-color:var(--theme-muted)}
#panel-overlay #panel[data-kind=settings]{color-scheme:dark}
#panel [data-customize-theme]{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;margin-top:12px;padding:12px 15px;border:1px solid #bbccbf60;border-radius:12px;background:#ffffff08;color:#eef2ef;font:500 13px/1.4 var(--sans);text-align:left}
#panel [data-customize-theme] span{color:#e6c79d;font-size:20px}
.theme-customize-overlay{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:20px;background:#06100de6;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#eef2ef;color-scheme:dark;font:13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.theme-customize-overlay[hidden]{display:none!important}
.theme-dialog{width:min(570px,100%);max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid #ffffff38;border-radius:24px;background:#17221f;padding:0 25px;box-shadow:0 25px 85px #0007;outline:none}
.theme-dialog-head{position:relative;padding:65px 0 10px}
.theme-dialog-head [data-theme-back],.theme-close{position:absolute;top:14px;min-height:44px;border:1px solid #ffffff2a;border-radius:24px;background:#ffffff06;color:#eef2ef}
.theme-dialog-head [data-theme-back]{left:0;padding:8px 14px;font-size:22px;line-height:1}
.theme-dialog-head [data-theme-back] span{font-size:12px;vertical-align:middle}
.theme-dialog-head .theme-close{right:0;width:44px;padding:0;font-size:25px}
.theme-eyebrow{font-size:9px;letter-spacing:.17em;color:#e6c79d;margin:0 0 6px}
.theme-dialog h2{font:34px/1.15 Georgia,serif;margin:0 0 8px;color:#eef2ef}
.theme-dialog-head>p:last-child{font-size:12px;line-height:1.5;color:#b9c4c1;margin:0}
.theme-presets{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.theme-presets button{padding:10px 12px;min-height:44px;border:1px solid #ffffff38;border-radius:10px;background:#ffffff05;color:#e6eae7;font-size:11px}
.theme-sample{display:grid;gap:5px;margin:16px 0;padding:18px;border:1px solid #ffffff30;border-radius:14px;background:var(--sample-background);color:var(--sample-ink);transition:background-color .15s}
.theme-sample .sample-eyebrow{font-size:8px;letter-spacing:.16em;opacity:.75}
.theme-sample strong{font:26px/1.2 var(--sample-heading)}
.theme-sample>span:not(.sample-price):not(.sample-eyebrow){font-size:12px;color:var(--sample-muted)}
.sample-price{display:flex;justify-content:space-between;align-items:center;margin-top:4px}
.sample-price i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--sample-accent);color:var(--sample-on-accent);font-style:normal;font-size:20px}
.theme-field{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px;border-top:1px solid #ffffff20;padding:12px 0}
.theme-field>label{flex:1;min-width:0;font-size:13px;color:#edf1ef}
.theme-field small{display:block;max-width:245px;font-size:10px;line-height:1.5;color:#b9c4c1;margin-top:4px}
.theme-field select,.theme-colour input[type=text]{min-height:44px;padding:9px;border:1px solid #ffffff45;border-radius:9px;background:#24352e;color:#eef2ef;font-size:13px}
.theme-field select{max-width:56%;min-width:140px}
.theme-colour{display:flex;gap:6px;align-items:center}
.theme-colour input[type=color]{padding:3px;width:44px;height:44px;border:1px solid #ffffff45;border-radius:9px;background:#24352e;cursor:pointer}
.theme-colour input[type=text]{width:96px;font-family:ui-monospace,monospace}
.theme-field input:disabled{opacity:.4;cursor:not-allowed}
.theme-field [aria-invalid=true]{outline:2px solid #ffad8e}
.theme-help{font-size:11px;line-height:1.6;color:#c5d0ca;margin:5px 0 15px}
.theme-dialog-foot{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:10px;justify-content:space-between;padding:14px 0 max(14px,env(safe-area-inset-bottom));border-top:1px solid #ffffff2a;background:#17221ff8}
.theme-dialog-foot button{min-height:44px;padding:10px 14px;border:1px solid #ffffff42;border-radius:10px;background:#ffffff05;font-size:12px;color:#e9eeeb}
.theme-dialog-foot .theme-primary{min-width:138px;background:#ece4d5;border-color:#ece4d5;color:#182a22;font-weight:600}
.theme-dialog-foot p{width:100%;margin:0;font-size:10px;line-height:1.5;color:#b9c4c1;text-align:center}
.theme-dialog button:focus-visible,.theme-dialog input:focus-visible,.theme-dialog select:focus-visible{outline:2px solid #e6c79d;outline-offset:2px}
@media(max-width:700px){#app[data-theme-custom][data-theme-density=compact] .flat-list .menu-card{height:132px}.theme-customize-overlay{padding:10px}.theme-dialog{max-height:calc(100dvh - 20px);padding:0 18px;border-radius:20px}.theme-field{gap:9px}.theme-field select,.theme-colour input[type=text]{font-size:16px}.theme-field select{min-width:120px;max-width:54%}.theme-dialog h2{font-size:30px}.theme-colour input[type=text]{width:90px}}
@media(max-width:360px){.theme-field{align-items:flex-start;flex-direction:column;gap:7px}.theme-field select{max-width:100%;width:100%}.theme-colour{width:100%}.theme-colour input[type=text]{flex:1}.theme-sample{padding:14px}.theme-dialog-foot{gap:6px}.theme-dialog-foot button{padding:9px 10px}.theme-dialog-foot .theme-primary{min-width:125px}}
@media(prefers-reduced-motion:reduce){.theme-sample{transition:none}#app[data-theme-custom] .food-mood-scene *,#detail-overlay[data-theme-custom] .food-mood-scene *{animation:none!important;transition:none!important}}
@media(forced-colors:active){.theme-dialog,.theme-field select,.theme-colour input,.theme-dialog button,.theme-sample{border:1px solid CanvasText;background:Canvas;color:CanvasText}.theme-sample strong,.theme-sample span{color:CanvasText}}

#app[data-theme-custom]:not([data-look=charcoal])~#detail-overlay #detail-shell .unified-detail{background-image:none}
