/* ═══════════════════════════════════════════════════════════════════════════════════════════
   THE LOOK PICKER AND THE TOP FRAME (5 November 2026)

   Shared, byte for byte, by the booking system (looks/shell.css) and the booth Event Manager
   (booth/admin/looks/shell.css). Everything is written in --lkp-* (the picker's own tokens, set
   below for Midnight Glass and taken from --lk-* for every other look), so it wears the look it
   sits in. The frame pieces show only under html[data-shell="top"] (Gallery, Spotlight).
   ═══════════════════════════════════════════════════════════════════════════════════════════ */

html {
  --lkp-bg: #12151d; --lkp-ink: #f4f3f0; --lkp-mute: rgba(244, 243, 240, .72); --lkp-line: rgba(255, 255, 255, .12);
  --lkp-hover: rgba(255, 255, 255, .06); --lkp-on: rgba(245, 197, 66, .12); --lkp-acc: #f5c542;
  --lkp-sel: #f4f3f0; --lkp-sel-ink: #07080b; --lkp-shadow: 0 18px 48px rgba(0, 0, 0, .55); --lkp-r: 18px;
  --lkp-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --lkp-font-d: 'Poppins', system-ui, sans-serif;
  --lkp-scrim: rgba(4, 5, 8, .55);
}
html[data-theme="light"] {
  --lkp-bg: #ffffff; --lkp-ink: #14171d; --lkp-mute: rgba(20, 23, 29, .7); --lkp-line: rgba(20, 28, 48, .12);
  --lkp-hover: rgba(20, 28, 48, .05); --lkp-on: rgba(148, 107, 0, .1); --lkp-acc: #7d5a00;
  --lkp-sel: #14171d; --lkp-sel-ink: #ffffff; --lkp-shadow: 0 18px 44px rgba(23, 32, 58, .2); --lkp-scrim: rgba(23, 32, 58, .3);
}
html[data-look] {
  --lkp-bg: var(--lk-pop); --lkp-ink: var(--lk-ink); --lkp-mute: var(--lk-mute); --lkp-line: var(--lk-line);
  --lkp-hover: var(--lk-card-2); --lkp-on: var(--lk-card-2); --lkp-acc: var(--lk-acc-text);
  --lkp-sel: var(--lk-sel); --lkp-sel-ink: var(--lk-sel-ink); --lkp-shadow: var(--lk-shadow-pop); --lkp-r: var(--lk-r-pop);
  --lkp-font: var(--font-b); --lkp-font-d: var(--font-d); --lkp-scrim: var(--lk-scrim);
}

/* ── the button in the top bar ── */
.lk-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; }
.lk-btn > svg { width: 17px; height: 17px; flex: none; }
.lk-btn-name { font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 899px) { .lk-btn-name { display: none; } }
.btn-icon.lk-btn { gap: 0; } .btn-icon.lk-btn .lk-btn-name { display: none; }

/* ── the picker: a pop-over under the button, a sheet from the foot on a phone ── */
.lk-pop { position: fixed; z-index: 120; width: 392px; max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; border-radius: var(--lkp-r); border: 1px solid var(--lkp-line); background: var(--lkp-bg); color: var(--lkp-ink);
  box-shadow: var(--lkp-shadow); font-family: var(--lkp-font); animation: lk-rise .16s cubic-bezier(.2, .8, .2, 1); }
@keyframes lk-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lk-pop.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-height: 86vh; border-radius: 22px 22px 0 0;
  padding: 8px 10px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .35); animation: lk-up .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes lk-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.lk-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 8px 10px; }
.lk-h b { font: 700 15px/1.2 var(--lkp-font-d); letter-spacing: -0.01em; }
.lk-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--lkp-hover); color: var(--lkp-ink); display: grid; place-items: center; cursor: pointer; }
.lk-x svg { width: 16px; height: 16px; }
.lk-list { display: flex; flex-direction: column; gap: 2px; }
.lk-item { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 10px; border: 0; border-radius: 12px; background: none;
  color: var(--lkp-ink); text-align: left; cursor: pointer; font: inherit; min-height: 44px; }
@media (hover: hover) { .lk-item:hover { background: var(--lkp-hover); } }
.lk-item.on { background: var(--lkp-on); }
.lk-item:focus-visible, .lk-mode button:focus-visible, .lk-x:focus-visible, .lk-reset:focus-visible { outline: 2px solid var(--lkp-ink); outline-offset: 2px; }
.lk-sw { display: inline-flex; flex: none; margin-top: 2px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--lkp-line); }
.lk-sw i { width: 10px; height: 34px; display: block; }
.lk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lk-t b { font: 600 14.5px/1.25 var(--lkp-font); display: flex; align-items: center; gap: 8px; }
.lk-t em { font-style: normal; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--lkp-line); color: var(--lkp-mute); }
.lk-t small { font-size: 12.5px; line-height: 1.4; color: var(--lkp-mute); }
.lk-tick { width: 18px; flex: none; color: var(--lkp-acc); margin-top: 2px; }
.lk-tick svg { width: 18px; height: 18px; }
.lk-mode { display: flex; gap: 4px; margin: 8px 6px 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--lkp-line); }
.lk-mode button { flex: 1; min-height: 38px; border: 0; background: none; border-radius: 999px; font: 600 13.5px/1 var(--lkp-font); color: var(--lkp-mute); cursor: pointer; }
.lk-mode button.on { background: var(--lkp-sel); color: var(--lkp-sel-ink); }
.lk-one { margin: 8px 10px 2px; font-size: 12.5px; color: var(--lkp-mute); }
.lk-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding: 10px 10px 4px;
  border-top: 1px solid var(--lkp-line); font-size: 12px; color: var(--lkp-mute); }
.lk-reset { border: 0; background: none; padding: 6px 0; font: 600 12.5px/1 var(--lkp-font); color: var(--lkp-ink); text-decoration: underline; cursor: pointer; min-height: 32px; }

/* ═══════════════ the frame for a look that draws its own: tabs across the top ═══════════════ */
.lk-brand, .lk-tabs, .lk-menu-btn, .lk-tabbar { display: none; }
html[data-shell="top"] .lk-brand { display: inline-flex; align-items: center; flex: none; order: 0; text-decoration: none; }
.lk-brand img { height: 26px; width: auto; display: block; filter: var(--lk-logo-filter, none); }
html[data-shell="top"] .lk-tabs { display: flex; align-items: center; justify-content: safe center; gap: 2px; flex: 1 1 auto; min-width: 0; order: 1; overflow: hidden; }
html[data-shell="top"] .lk-btn-name { display: none; }
@media (max-width: 1365px) { html[data-shell="top"] .lk-tab:nth-child(n+5) { display: none; } }
.lk-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 999px; color: var(--lk-mute);
  font: 500 14.5px/1 var(--font-b); text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
@media (hover: hover) { .lk-tab:hover { color: var(--lk-ink); background: var(--lk-card-2); } }
.lk-tab.on { color: var(--lk-ink); font-weight: 600; }
.lk-ti { display: none; align-items: center; }
.lk-ti svg { width: 16px; height: 16px; stroke-width: 1.8; }
.lk-tab.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: currentColor; }
.lk-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700;
  line-height: 1; color: var(--lk-acc-ink); background: var(--lk-acc-fill); }
html[data-shell="top"] .lk-menu-btn { display: inline-flex; align-items: center; gap: 10px; flex: none; order: 9; position: relative; min-height: 42px;
  padding: 5px 5px 5px 12px; border-radius: 999px; border: 1px solid var(--lk-line-2); background: var(--lk-card); color: var(--lk-ink); cursor: pointer; }
@media (hover: hover) { .lk-menu-btn:hover { box-shadow: var(--lk-shadow-menu); } }
.lk-menu-btn > svg { width: 16px; height: 16px; }
.lk-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-d); background: var(--lk-ink); color: var(--lk-page); }
.lk-menu-btn.has-dot::after { content: ''; position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--lk-acc); box-shadow: 0 0 0 2px var(--lk-card); }
/* the phone's tab bar (booking system; the Event Manager keeps its own bar) */
.lk-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; justify-content: space-around; align-items: stretch;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--lk-bar); border-top: 1px solid var(--lk-line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lk-tb { flex: 1 1 0; min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px;
  border: 0; background: none; color: var(--lk-mute); text-decoration: none; font: 600 10.5px/1.1 var(--font-b); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lk-tbi { position: relative; width: 26px; height: 26px; display: grid; place-items: center; }
.lk-tbi svg { width: 23px; height: 23px; stroke-width: 1.7; }
.lk-tbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-tb.on { color: var(--lk-ink); }
.lk-tb.on .lk-tbi::after { content: ''; position: absolute; left: 3px; right: 3px; bottom: -4px; height: 2px; border-radius: 2px; background: var(--lk-acc); }
.lk-dot { position: absolute; top: 0; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--lk-acc); box-shadow: 0 0 0 2px var(--lk-page); }
/* the Menu sheet: every screen, grouped as the rail groups them */
.lk-menu { position: fixed; inset: 0; z-index: 110; }
.lk-menu[hidden] { display: none !important; }
.lk-menu-scrim { position: absolute; inset: 0; background: var(--lk-scrim); opacity: 0; transition: opacity .2s; }
.lk-menu.on .lk-menu-scrim { opacity: 1; }
.lk-menu-panel { position: absolute; top: 72px; right: 24px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 96px); display: flex; flex-direction: column;
  overflow: hidden; outline: none; background: var(--lk-pop); color: var(--lk-ink); border: 1px solid var(--lk-line); border-radius: 20px; box-shadow: var(--lk-shadow-pop);
  transform: translateY(-6px); opacity: 0; transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .2s; font-family: var(--font-b); }
.lk-menu.on .lk-menu-panel { transform: none; opacity: 1; }
.lk-mh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.lk-mu { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lk-mu b { display: block; font-size: 16px; }
.lk-mu small { display: block; color: var(--lk-mute); font-size: 13px; }
.lk-mav { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--font-d); background: var(--lk-ink); color: var(--lk-page); }
.lk-mx { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--lk-card-2); color: var(--lk-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.lk-mx svg { width: 16px; height: 16px; }
.lk-mq { display: flex; gap: 8px; padding: 0 20px 12px; flex-wrap: wrap; }
.lk-mqb { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--lk-line-2);
  background: var(--lk-card); color: var(--lk-ink); font: 600 13.5px/1 var(--font-b); cursor: pointer; }
.lk-mqb svg { width: 16px; height: 16px; }
.lk-mg { overflow-y: auto; padding: 4px 12px 8px; columns: 220px 3; column-gap: 8px; border-top: 1px solid var(--lk-line); }
.lk-mgrp { break-inside: avoid; padding: 12px 0 6px; }
.lk-mgrp h4 { margin: 0 0 4px; padding: 0 10px; font: 600 12.5px/1.3 var(--font-b); letter-spacing: 0; text-transform: none; color: var(--lk-mute); }
.lk-ml { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 10px; border-radius: 12px; color: var(--lk-ink); text-decoration: none; font-size: 14.5px; }
@media (hover: hover) { .lk-ml:hover { background: var(--lk-card-2); } }
.lk-ml.on { background: var(--lk-card-2); font-weight: 600; }
.lk-ml svg { width: 18px; height: 18px; flex: none; }
.lk-ml span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-mc { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; color: var(--lk-acc-ink); background: var(--lk-acc-fill); }
.lk-mf { padding: 10px 20px 16px; border-top: 1px solid var(--lk-line); }
.lk-mout { border: 0; background: none; color: var(--lk-ink); font: 600 14px/1 var(--font-b); text-decoration: underline; cursor: pointer; padding: 10px 0; }
html.lk-menu-open body { overflow: hidden; }
.lk-ml:focus-visible, .lk-mqb:focus-visible, .lk-mx:focus-visible, .lk-mout:focus-visible, .lk-tab:focus-visible, .lk-tb:focus-visible, .lk-menu-btn:focus-visible {
  outline: 2px solid var(--lk-focus); outline-offset: 2px; }

@media (max-width: 1099px) {
  html[data-shell="top"] .lk-tabs { display: none; }
  .lk-menu-panel { top: auto; bottom: 0; right: 0; left: 0; width: 100%; max-height: 88vh; border-radius: 24px 24px 0 0; transform: translateY(24px);
    padding-bottom: env(safe-area-inset-bottom); }
  .lk-mg { columns: 2 160px; }
}
@media (max-width: 560px) { .lk-mg { columns: 1; } .lk-brand img { height: 22px; } }
/* a finger needs 44px: every control in the picker, the Menu sheet and the look button itself, on a touch screen */
@media (pointer: coarse) {
  .lk-btn { min-height: 44px; min-width: 44px; justify-content: center; }
  .lk-x, .lk-mx { width: 44px; height: 44px; }
  .lk-mode button, .lk-reset, .lk-mqb, .lk-ml, .lk-mout { min-height: 44px; }
  html[data-shell="top"] .lk-menu-btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .lk-pop, .lk-menu-panel, .lk-menu-scrim { animation: none; transition: none; } }
