/* TOQ'TOC — one stylesheet for the client app, the partner app and the admin. Fonts served by the site itself
   (no outside service: it also opens behind the great firewall). */
@font-face { font-family: 'Inter'; src: url(/assets/fonts/inter-regular.woff) format('woff'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/assets/fonts/inter-semibold.woff) format('woff'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/assets/fonts/inter-extrabold.woff) format('woff'); font-weight: 800 900; font-display: swap; }
@font-face { font-family: 'Lora'; src: url(/assets/fonts/lora.woff) format('woff'); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #16130F; --muted: #6B645C; --soft: #F5F3F0; --soft2: #F7F5F2; --line: #E8E4DF; --paper: #FFFFFF; --cream: #FBF8F2;
  --accent: #D4451A; --accent-dark: #A8340F; --accent-soft: #FFF4EE; --gold: #B39B6E; --good: #2E7D4F;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --serif: 'Lora', Georgia, 'Songti SC', 'Noto Serif CJK SC', serif;
  --safe-left: 0px; --safe-bottom: 0px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); color: var(--ink); background: #1A1512; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid rgba(212, 69, 26, .55); outline-offset: 2px; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.hide { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; } }

/* ------------------------------------------------ background: the moving picture of the moment (Pexels when set) */
.stage { position: fixed; inset: 0; overflow: hidden; background: #1A1512; }
.backdrop { position: absolute; inset: -60px; background-size: 170% 170%; animation: kenburns 16s ease-in-out infinite alternate; transition: background 900ms; }
.backdrop video { position: absolute; inset: 60px; width: calc(100% - 120px); height: calc(100% - 120px); object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.backdrop video.on { opacity: 1; }
.veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 20% 55%, rgba(0,0,0,0) 0 30%, rgba(0,0,0,.28) 100%); }
.credit { position: fixed; left: calc(var(--safe-left) + 16px); bottom: calc(var(--safe-bottom) + 12px); z-index: 4; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; font-weight: 700; }
.credit a { color: #fff; }
@keyframes kenburns { 0% { background-position: 0% 40%; transform: scale(1); } 100% { background-position: 100% 60%; transform: scale(1.08); } }

/* ------------------------------------------------ the top bar */
.topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 16px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 10px; border-radius: 16px; background: rgba(255,255,255,.94); text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.pill-group { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.94); }
.pill-group button { height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; font-size: 14px; font-weight: 800; transition: background .3s, color .3s; white-space: nowrap; }
.pill-group button.on { background: var(--ink); color: #fff; }
.spacer { flex: 1; }
.chip-btn { height: 44px; padding: 0 14px; border-radius: 14px; border: 0; background: rgba(255,255,255,.94); font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.lang-select { height: 44px; border-radius: 14px; border: 0; background: rgba(255,255,255,.94); padding: 0 10px; font-weight: 800; }
span.short { display: none; }
.avatar.small { width: 28px; height: 28px; font-size: 13px; box-shadow: none; }
@media (max-width: 760px) {
  span.short { display: inline; }
  span.long { display: none; }
  .topbar { padding: 10px; gap: 6px; }
  .chip-btn { padding: 0 10px; }
  .brand span { display: none; }
  .brand { padding: 0 8px; }
  .pill-group button { padding: 0 10px; font-size: 13px; }
  .lang-select { width: 58px; }
}

/* ------------------------------------------------ the plate (navigation) */
.plate-layer { position: fixed; inset: 0; pointer-events: none; z-index: 12; }
.plate { position: absolute; border-radius: 50%; pointer-events: auto; box-shadow: 0 24px 60px rgba(40,25,15,.32), 0 2px 6px rgba(40,25,15,.14); transition: transform 900ms var(--ease), left 900ms var(--ease), top 900ms var(--ease), width 900ms var(--ease), height 900ms var(--ease); touch-action: none; }
.plate .well { position: absolute; border-radius: 50%; }
.plate .mark { position: absolute; left: 50%; top: 50%; border: 0; padding: 0; background: transparent; transition: transform 900ms var(--ease), opacity .5s; }
.plate .dot { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: background .5s, color .5s; background: rgba(255,255,255,.95); color: #B5ADA4; }
.plate .dot.ok { background: var(--ink); color: #fff; }
.plate .dot.on { background: var(--accent); color: #fff; }
.plate .tag { position: absolute; left: 46px; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 11px; border-radius: 12px; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.12); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.plate .tag.on { background: var(--ink); color: #fff; }
.emblem { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translate(-50%, -50%); pointer-events: none; transition: opacity 500ms var(--ease), left 900ms var(--ease), top 900ms var(--ease); text-align: center; }
.emblem .n { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: .14em; }
.emblem .l { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1; }
.plate-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; pointer-events: auto; background: rgba(255,255,255,.94); font-size: 19px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: left 900ms var(--ease), top 900ms var(--ease), opacity .4s; }
.plate-btn.dark { background: var(--ink); color: #fff; }
.plate-handle { position: absolute; transform: translateX(-50%); height: 36px; padding: 0 14px; border-radius: 18px; border: 0; pointer-events: auto; background: rgba(255,255,255,.95); display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; font-weight: 800; box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: top 900ms var(--ease), left 900ms var(--ease); }
.cutlery { position: absolute; pointer-events: none; transition: opacity .6s var(--ease), left 900ms var(--ease), top 900ms var(--ease); }

/* ------------------------------------------------ the content beside the plate: slides stacked like cards */
.content { position: fixed; z-index: 10; top: 76px; right: 16px; bottom: 16px; left: calc(var(--safe-left) + 16px); transition: left 900ms var(--ease), bottom 900ms var(--ease); }
.portrait .content { left: 10px; right: 10px; top: 68px; bottom: calc(var(--safe-bottom) + 8px); }
.stack { position: absolute; inset: 0; perspective: 1800px; perspective-origin: 30% 40%; }
.card { position: absolute; left: 0; right: 0; top: 64px; bottom: 0; border-radius: 26px; background: var(--paper); display: flex; flex-direction: column; overflow: hidden; transform-origin: 50% 0; transition: transform 850ms var(--ease), opacity 600ms var(--ease), box-shadow .6s; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.card.behind .card-body { visibility: hidden; }
.card.behind { cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.stack.has-ahead .card { right: 19%; transition: transform 850ms var(--ease), opacity 600ms var(--ease), box-shadow .6s, right 600ms var(--ease); }
@media (max-width: 759px) { .stack.has-ahead .card { right: 11%; } }
.card.ahead { cursor: pointer; transform-origin: 0 50%; box-shadow: -24px 24px 60px rgba(0,0,0,.35); }
.card.ahead .card-body { opacity: .45; pointer-events: none; }
.card.ahead:hover { filter: none !important; }
.card.ahead.locked { cursor: default; }
.card.ahead.locked .card-body { visibility: hidden; }
.card-head { height: 46px; flex-shrink: 0; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #EFEAE3; font-size: 13px; font-weight: 800; }
.card-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.portrait .card { top: 36px; border-radius: 22px; }
.portrait .card-body { padding: 14px 16px; gap: 10px; }
h1, h2, h3 { margin: 0; }
.title-xl { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.02; }
.title-l { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3vw, 32px); line-height: 1.05; }

/* ------------------------------------------------ controls */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chip { height: 36px; padding: 0 13px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 800; transition: background .25s, color .25s; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg { display: flex; padding: 4px; border-radius: 15px; background: var(--soft2); }
.seg button { flex: 1; height: 42px; border: 0; border-radius: 11px; background: transparent; font-size: 14px; font-weight: 800; transition: background .25s, box-shadow .25s; }
.seg button.on { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.btn { height: 52px; padding: 0 22px; border-radius: 16px; border: 0; background: var(--accent); color: #fff; font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .2s, opacity .2s; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.dark { background: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.small { height: 40px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn.block { width: 100%; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; }
.field { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 16px; background: var(--soft2); font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea { border: 0; background: transparent; font-size: 16px; font-weight: 600; color: var(--ink); padding: 0; outline: none; width: 100%; resize: vertical; }
.field textarea { min-height: 70px; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: #fff; font-size: 18px; font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stepper b { font-size: 20px; min-width: 28px; text-align: center; }
.box { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.box.soft { background: var(--soft2); border: 0; }
.box.dark { background: var(--ink); color: #fff; border: 0; }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.line .k { color: var(--muted); }
.total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; }
.empty { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 14px; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--soft); color: var(--ink); }
.badge.live { background: #E0301E; color: #fff; }
.badge.good { background: #E7F3EC; color: var(--good); }
.badge.warn { background: #FFF4E0; color: #9A5B00; }
.badge.bad { background: #FDECEA; color: #B3261E; }

/* recipe cards */
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.portrait .recipes { grid-template-columns: 1fr; }
.rcard { text-align: left; padding: 10px; border-radius: 18px; border: 1px solid #ECE6DC; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.portrait .rcard { flex-direction: row; align-items: center; }
.rcard .thumb { height: 96px; border-radius: 12px; background-size: cover; background-position: center; }
.portrait .rcard .thumb { width: 58px; height: 58px; flex-shrink: 0; }
.rcard .name { font-size: 16px; font-weight: 800; }
.rcard .meta { font-size: 12px; color: var(--muted); }
.rcard .hot { font-size: 12px; font-weight: 800; color: var(--accent); }
.unsure { margin-top: auto; padding: 16px 18px; border-radius: 20px; background: var(--cream); border: 1px solid #ECE6DC; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; }

/* chef cards: the photo leaves the frame on purpose; the frame = seniority, the spoon = quality */
.chefs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 40px 18px; padding-top: 36px; }
.portrait .chefs { grid-template-columns: 1fr 1fr; gap: 36px 12px; }
.ccard { border: 0; background: transparent; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.ccard .frame { position: relative; height: 200px; border-radius: 18px; padding: 9px; box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.portrait .ccard .frame { height: 150px; padding: 7px; }
.ccard .frame .in { width: 100%; height: 100%; border-radius: 11px; background-size: cover; background-position: center; opacity: .9; }
.ccard .pic { position: absolute; left: 50%; top: -36px; transform: translateX(-50%); width: 72%; height: calc(100% + 24px); object-fit: cover; object-position: top; border-radius: 0 0 12px 12px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
.ccard svg.pic { object-fit: unset; }
.ccard .spoon { position: absolute; right: -9px; bottom: 6px; transform: rotate(18deg); }
.ccard .nm { font-size: 16px; font-weight: 800; }
.ccard .or { font-size: 12px; color: var(--muted); line-height: 1.35; }
.lvl { color: var(--accent); letter-spacing: 2px; font-size: 12px; font-weight: 800; }
.frame-or { background: linear-gradient(135deg, #F6E27A, #C9A227 45%, #F3D978 60%, #A8841A); }
.frame-argent { background: linear-gradient(135deg, #F4F5F6, #B9BEC3 45%, #E9ECEE 60%, #9AA0A6); }
.frame-bronze { background: linear-gradient(135deg, #E8B07A, #A8642E 45%, #D9995C 60%, #7E4A1F); }
.frame-inox { background: repeating-linear-gradient(90deg, #C7CDD1 0 2px, #B4BBC0 2px 4px); }
.frame-bois { background: repeating-linear-gradient(100deg, #9A6A3F 0 6px, #86592F 6px 9px, #A87448 9px 14px); }
.frame-chiffon { background: #EFE7DA; outline: 2px dashed #CDBFA8; outline-offset: -2px; }
.legend { padding: 14px 16px; border-radius: 18px; background: var(--soft2); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 12px; line-height: 1.5; color: #4A443E; }
.portrait .legend { grid-template-columns: 1fr; }
.cover { height: 220px; flex-shrink: 0; position: relative; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .cover { height: 150px; }
.dish { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); }
.dish .th { width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0; background-size: cover; }
.dish .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ------------------------------------------------ the recipe book: one recipe at a time, over its moving picture */
.book { position: fixed; inset: 0; z-index: 9; opacity: 0; pointer-events: none; transition: opacity 800ms var(--ease); }
.book.on { opacity: 1; pointer-events: auto; }
.book .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.7)); pointer-events: none; }
.portrait .book .shade { background: linear-gradient(180deg, rgba(0,0,0,.1) 0, rgba(0,0,0,0) 25%, rgba(0,0,0,.65) 72%); }
.book-top { position: absolute; top: 84px; right: 40px; left: calc(var(--safe-left) + 40px); display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: left 900ms var(--ease); }
.portrait .book-top { top: 66px; left: 14px; right: 14px; }
.book-tabs { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.book-tabs button { flex-shrink: 0; border: 0; padding: 6px 0; background: transparent; font-size: 14px; font-weight: 800; color: rgba(255,255,255,.6); border-bottom: 2px solid transparent; transition: color .3s; }
.book-tabs button.on { color: #fff; border-color: #fff; }
.glass { height: 42px; padding: 0 16px; border-radius: 21px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.book-text { position: absolute; right: 48px; bottom: 60px; left: calc(var(--safe-left) + 48px); max-width: 820px; margin-left: auto; display: flex; flex-direction: column; gap: 14px; color: #fff; transition: left 900ms var(--ease), opacity .5s; }
.portrait .book-text { left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 64px); gap: 10px; }
.book-text h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6.2vw, 84px); line-height: .94; letter-spacing: -.015em; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.book-text p { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.9); }
.portrait .book-text p { font-size: 14px; }
.book-text .kick { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #F3E3C3; }
.book-text .acts { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 14px; font-weight: 800; }
.book-text .acts button { border: 0; padding: 0; background: transparent; color: #fff; font-weight: 800; font-size: 14px; }
.book-text .acts .liked { color: #FF8A6B; }
.book-text .acts .tip { color: #F3E3C3; text-decoration: underline; text-underline-offset: 4px; }
.author { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.avatar { width: 38px; height: 38px; border-radius: 19px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--accent); box-shadow: 0 0 0 2px rgba(255,255,255,.7); flex-shrink: 0; }
.book-hint { position: absolute; right: 48px; bottom: 26px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7); }
.portrait .book-hint { display: none; }

/* ------------------------------------------------ « set your table »: the table seen in 3/4, over someone's shoulder */
.setup { position: fixed; inset: 0; z-index: 30; background: #1A1512; display: grid; grid-template-columns: 1fr 440px; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.setup.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.scene { position: relative; overflow: hidden; }
.scene .back { position: absolute; inset: 0; transition: background .9s; }
.scene .persp { position: absolute; inset: 0; perspective: 1300px; perspective-origin: 50% 0%; }
.scene .plane { position: absolute; left: 50%; top: 55%; width: min(760px, 90%); aspect-ratio: 760 / 560; transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-16deg); border-radius: 18px; box-shadow: 0 60px 80px rgba(0,0,0,.35); transition: background .9s, border-radius .9s; }
.scene .plane > * { position: absolute; }
.scene .shoulder { position: absolute; left: -60px; bottom: -40px; width: 48%; max-width: 520px; filter: blur(3px); pointer-events: none; }
.scene .seq { position: absolute; left: 24px; top: 84px; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; animation: pulse 2.4s ease-in-out infinite; }
.scene.play { animation: seq 1.1s var(--ease) both; }
.scene.play2 { animation: seq2 1.1s var(--ease) both; }
@keyframes seq { 0% { transform: scale(1.12) translateX(-30px); filter: blur(6px); opacity: .4; } 100% { transform: none; filter: none; opacity: 1; } }
@keyframes seq2 { 0% { transform: scale(1.12) translateX(-30px); filter: blur(6px); opacity: .4; } 100% { transform: none; filter: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.setup-panel { margin: 86px 24px 24px 0; padding: 26px; border-radius: 30px; background: rgba(255,255,255,.97); box-shadow: 0 30px 80px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.setup-panel h1 { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1; }
.setup-panel .grp { display: flex; flex-direction: column; gap: 7px; }
.setup-panel .grp > span { font-size: 13px; font-weight: 800; }
@media (max-width: 900px), (orientation: portrait) {
  .setup { grid-template-columns: 1fr; grid-template-rows: 42vh 1fr; }
  .setup-panel { margin: -24px 0 0; border-radius: 26px 26px 0 0; padding: 20px 18px 28px; }
  .setup-panel h1 { font-size: 30px; }
  .scene .plane { top: 62%; width: 120%; }
  .scene .seq { top: 70px; left: 12px; font-size: 10px; }
}

/* ------------------------------------------------ sheets, toasts */
.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(10,8,6,.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .35s var(--ease); padding: 16px; }
.sheet-back.on { opacity: 1; }
.sheet { width: min(560px, 100%); max-height: min(86vh, 900px); background: #fff; border-radius: 26px; display: flex; flex-direction: column; overflow: hidden; transform: translateY(18px) scale(.98); transition: transform .5s var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.sheet-back.on .sheet { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px; }
.sheet-head h2 { font-size: 26px; }
.sheet-body { padding: 6px 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 640px) { .sheet-back { align-items: flex-end; padding: 0; } .sheet { border-radius: 24px 24px 0 0; max-height: 92vh; } }
.icon-btn { width: 40px; height: 40px; border-radius: 20px; border: 0; background: var(--soft); font-size: 15px; font-weight: 800; flex-shrink: 0; }
.toast { position: fixed; left: 50%; top: 18px; z-index: 90; transform: translate(-50%, -20px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: opacity .35s, transform .5s var(--ease); max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #B3261E; }
.toast.good { background: var(--good); }
.menu { position: fixed; z-index: 40; top: 66px; right: 16px; width: 250px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.3); display: flex; flex-direction: column; }
.menu button, .menu a { height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; display: flex; align-items: center; justify-content: space-between; }
.menu button:hover, .menu a:hover { background: var(--soft); color: var(--ink); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.qr { display: flex; justify-content: center; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.qr svg, .qr img { width: 220px; height: 220px; max-width: 100%; object-fit: contain; }
.bar { height: 12px; border-radius: 6px; background: #EFEBE6; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--accent); transition: width .8s var(--ease); }
.msgs { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 4px 0; }
.msg { max-width: 80%; padding: 10px 13px; border-radius: 18px 18px 18px 6px; background: var(--soft2); font-size: 14px; line-height: 1.4; align-self: flex-start; }
.msg.mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--ink); color: #fff; }
.msg small { display: block; opacity: .6; font-size: 11px; margin-top: 3px; }
.page-public { position: fixed; inset: 0; overflow-y: auto; z-index: 50; display: flex; justify-content: center; padding: 80px 16px 40px; }
.page-public .card-static { width: min(520px, 100%); background: #fff; border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 14px; height: max-content; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; }
table.simple td, table.simple th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
@media print {
  body { overflow: visible; background: #fff; }
  .stage, .topbar, .plate-layer, .credit, .book, .no-print { display: none !important; }
  .content, .card, .card-body { position: static !important; overflow: visible !important; box-shadow: none !important; transform: none !important; }
  .card:not(.active) { display: none !important; }
}

/* ------------------------------------------------ the partner app (dark) */
.pro { background: #121110; color: #F7F3EE; overflow: auto; }
.pro .wrap { max-width: 980px; margin: 0 auto; padding: 18px 16px 110px; display: flex; flex-direction: column; gap: 16px; }
.pro .panel { padding: 18px; border-radius: 22px; background: #1E1C1A; display: flex; flex-direction: column; gap: 12px; }
.pro .muted { color: #B5ADA4; }
.pro .field { background: #2A2724; color: #B5ADA4; }
.pro .field input, .pro .field select, .pro .field textarea { color: #F7F3EE; }
.pro .field select option { color: #16130F; }
.pro .chip { background: #2A2724; color: #F7F3EE; border-color: #34302C; }
.pro .chip.on { background: #F08A5D; color: #1A120D; border-color: #F08A5D; }
.pro .seg { background: #2A2724; }
.pro .stepper button { background: #2A2724; color: #F7F3EE; }
.pro .seg button { color: #F7F3EE; }
.pro .seg button.on { background: #F08A5D; color: #1A120D; }
.pro .btn { background: #F08A5D; color: #1A120D; }
.pro .btn:hover { background: #FFB38F; }
.pro .btn.light { background: #2A2724; color: #F7F3EE; border: 1px solid #34302C; }
.pro .box { border-color: #34302C; }
.pro .box.soft { background: #2A2724; }
.pro .dish { border-color: #34302C; }
.pro .line .k { color: #B5ADA4; }
.pro a { color: #F08A5D; }
.pro .msg { background: #2A2724; }
.pro .msg.mine { background: #F08A5D; color: #1A120D; }
.pro-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: 74px; padding: 6px 6px calc(env(safe-area-inset-bottom) + 10px); background: #121110; border-top: 1px solid #2A2724; display: grid; grid-template-columns: repeat(7, 1fr); }
.pro-tabs button { border: 0; background: transparent; color: #B5ADA4; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.pro-tabs button i { width: 26px; height: 26px; border-radius: 9px; background: #2A2724; transition: background .3s; }
.pro-tabs button.on { color: #F08A5D; }
.pro-tabs button.on i { background: #F08A5D; }
.pro-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats > div { padding: 14px 12px; border-radius: 18px; background: #1E1C1A; display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: 22px; }
.mission-new { padding: 18px; border-radius: 22px; background: #F08A5D; color: #1A120D; display: flex; flex-direction: column; gap: 8px; }
.mission-new .btn { background: #1A120D; color: #fff; }
.mission-new .btn.light { background: rgba(26,18,13,.12); color: #1A120D; border: 0; }
.upload { display: flex; align-items: center; justify-content: center; min-height: 120px; border-radius: 18px; border: 2px dashed #4A443E; background: transparent; color: #F7F3EE; font-weight: 800; text-align: center; padding: 10px; background-size: cover; background-position: center; }
.upload.done { border-style: solid; border-color: #2E7D4F; }

/* ------------------------------------------------ sprint 2: the expert care wings */
.wings { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.wing { min-height: 210px; padding: 18px; border-radius: 22px; color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: transform .4s var(--ease), box-shadow .4s; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.wing:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.25); }
.wing b { font-size: 26px; line-height: 1.05; }
.wing span { font-size: 13px; line-height: 1.45; opacity: .92; }
.wing .go { margin-top: auto; font-weight: 800; font-size: 14px; opacity: 1; }
.portrait .wing { min-height: 150px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days button { height: 44px; border-radius: 12px; border: 0; background: #fff; font-weight: 800; font-size: 14px; transition: background .25s, color .25s; }
.days button.on { background: var(--accent); color: #fff; }
.macro { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.macro i { display: block; }
.macro .protein { background: #2F6690; } .macro .carbs { background: #E8A33D; } .macro .fat { background: #8E9A6E; }
.pro .days button { background: #2A2724; color: #F7F3EE; }

/* ------------------------------------------------ sprint 5: the self-service kiosk */
.kiosk { position: fixed; inset: 0; z-index: 80; background: #16130F; color: #fff; overflow-y: auto; font-size: 20px; }
.kiosk h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; margin: 0; }
.k-exit { position: fixed; right: 16px; top: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255,255,255,.12); color: #fff; opacity: .5; }
.k-attract { position: absolute; inset: 0; cursor: pointer; }
.k-slides > div { position: absolute; inset: -60px; opacity: 0; background-size: 200% 200%; animation: kslide 18s infinite; }
@keyframes kslide { 0%, 40% { opacity: 1; background-position: 0% 50%; } 33%, 100% { opacity: 0; background-position: 100% 50%; } 0% { opacity: 0; } 5% { opacity: 1; } }
.k-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 24px; background: radial-gradient(circle, rgba(0,0,0,.2), rgba(0,0,0,.55)); }
.k-center p { margin: 0; font-size: 22px; opacity: .9; max-width: 720px; }
.k-go { min-height: 76px; padding: 0 44px; border-radius: 38px; border: 0; background: #D4451A; color: #fff; font-size: 24px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; animation: kpulse 2.4s ease-in-out infinite; }
.k-go.k-light { background: #fff; color: #16130F; animation: none; }
@keyframes kpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,69,26,.5); } 50% { box-shadow: 0 0 0 18px rgba(212,69,26,0); } }
.k-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 18px; padding: 18px 76px 18px 24px; background: rgba(22,19,15,.95); }
.k-steps { flex: 1; display: flex; gap: 8px; } .k-steps span { flex: 1; padding: 10px 14px; border-radius: 14px; background: #2A2724; font-size: 16px; font-weight: 800; color: #B5ADA4; } .k-steps span.on { background: #fff; color: #16130F; }
.k-back { min-height: 56px; padding: 0 22px; border-radius: 28px; border: 0; background: #2A2724; color: #fff; font-size: 18px; font-weight: 800; }
.k-body { max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.k-grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.k-choice { min-height: 96px; padding: 0 22px; border-radius: 24px; border: 2px solid #34302C; background: #1E1C1A; color: #fff; font-size: 22px; font-weight: 800; transition: background .25s, border-color .25s; }
.k-choice.on { background: #D4451A; border-color: #D4451A; }
.k-row { display: flex; gap: 14px; flex-wrap: wrap; } .k-row > * { flex: 1; }
.k-box { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 24px; background: #1E1C1A; font-size: 18px; color: #B5ADA4; font-weight: 700; }
.k-input { height: 72px; border-radius: 18px; border: 0; background: #2A2724; color: #fff; font-size: 26px; font-weight: 700; padding: 0 20px; }
.k-stepper { display: flex; align-items: center; justify-content: space-between; } .k-stepper button { width: 76px; height: 76px; border-radius: 22px; border: 0; background: #2A2724; color: #fff; font-size: 36px; font-weight: 800; } .k-stepper b { font-size: 44px; color: #fff; }
.k-dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.k-dish { border: 0; border-radius: 26px; overflow: hidden; background: #1E1C1A; color: #fff; text-align: left; display: flex; flex-direction: column; padding: 0 0 16px; transition: transform .3s var(--ease); }
.k-dish:active { transform: scale(.97); }
.k-dish > div { height: 170px; margin-bottom: 12px; }
.k-dish b { font-size: 24px; padding: 0 16px; } .k-dish span { font-size: 16px; color: #B5ADA4; padding: 0 16px; }
.k-frame { width: 170px; height: 200px; border-radius: 22px; padding: 10px; flex: 0 0 auto !important; } .k-frame > div { width: 100%; height: 100%; border-radius: 14px; }
.k-line { display: flex; justify-content: space-between; color: #fff; font-weight: 600; } .k-total { font-size: 30px; font-weight: 800; border-top: 1px solid #34302C; padding-top: 12px; }
.k-qr { flex: 0 0 auto !important; } .k-qr svg { width: 300px !important; height: 300px !important; }
@media print { .kiosk { position: static; background: #fff; color: #000; } .k-exit, .k-go, .k-head { display: none !important; } .k-ticket h1 { font-size: 28px; } }

/* ------------------------------------------------ sprint 7: badges, the table decor, « how it works » */
.dot-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #E0301E; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.dot-badge.tab { position: absolute; top: 2px; right: calc(50% - 22px); }
.stage .decor { position: absolute; inset: 0; opacity: .13; mix-blend-mode: soft-light; pointer-events: none; transition: background .9s; }
.how { position: fixed; inset: 0; z-index: 70; background: rgba(10,8,6,.72); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .5s var(--ease); }
.how.on { opacity: 1; }
.how-box { width: min(560px, 100%); background: #fff; border-radius: 30px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.how-bar { display: flex; gap: 6px; } .how-bar span { flex: 1; height: 4px; border-radius: 2px; background: #EFEBE6; } .how-bar span.done { background: var(--ink); } .how-bar span.on { background: var(--accent); }
.how-stage { height: 260px; border-radius: 22px; background: var(--cream); position: relative; overflow: hidden; }
.how-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.how-plate { width: 190px; height: 190px; border-radius: 50%; position: relative; box-shadow: 0 18px 40px rgba(40,25,15,.25); animation: howSpin 3.6s var(--ease) both; }
.how-plate > div { position: absolute; border-radius: 50%; }
@keyframes howSpin { from { transform: rotate(-120deg) scale(.7); opacity: 0; } 40% { opacity: 1; } to { transform: rotate(0) scale(1); } }
.how-dots { position: absolute; right: 70px; top: 60px; display: flex; flex-direction: column; gap: 14px; } .how-dots span { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); opacity: 0; animation: howIn .5s var(--ease) both; } .how-dots span:nth-child(2) { background: var(--accent); }
@keyframes howIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.how-card { position: absolute; width: 150px; height: 190px; border-radius: 22px; box-shadow: 0 14px 30px rgba(0,0,0,.25); animation: howCards 1s var(--ease) both; }
.how-card:nth-child(1) { transform: translate(-60px, 0) rotate(-8deg); } .how-card:nth-child(2) { transform: rotate(0); } .how-card:nth-child(3) { transform: translate(60px, 0) rotate(8deg); }
@keyframes howCards { from { opacity: 0; margin-top: 80px; } to { opacity: 1; margin-top: 0; } }
.how-frame { position: absolute; width: 150px; height: 190px; border-radius: 22px; outline: 8px solid #D4AF37; outline-offset: -8px; animation: howIn .6s 1.2s var(--ease) both; }
.how-door { animation: howKnock 1.2s .3s ease-in-out 2; }
@keyframes howKnock { 0%, 100% { transform: none; } 20% { transform: translateX(-6px) rotate(-3deg); } 40% { transform: translateX(6px) rotate(3deg); } }
.how-ring { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 3px solid var(--accent); animation: howRing 1.8s ease-out infinite; }
@keyframes howRing { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.how-toc { position: absolute; bottom: 26px; font-family: var(--serif); font-size: 34px; color: var(--accent); animation: howIn .5s 1s both; }
.how-qr { display: grid; grid-template-columns: repeat(7, 18px); gap: 3px; padding: 14px; background: #fff; border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.15); animation: howIn .6s both; } .how-qr i { width: 18px; height: 18px; background: var(--ink); border-radius: 2px; }
.how-coins { position: absolute; right: 90px; top: 70px; display: flex; flex-direction: column; gap: 10px; } .how-coins span { width: 40px; height: 40px; border-radius: 50%; background: #F2C14E; color: #1A120D; font-weight: 800; display: flex; align-items: center; justify-content: center; opacity: 0; animation: howIn .5s both; }
.how-text { display: flex; flex-direction: column; gap: 6px; } .how-text h2 { font-family: var(--serif); font-size: 28px; } .how-text p { margin: 0; color: var(--muted); line-height: 1.5; }
.how-n { font-family: var(--serif); color: var(--gold); font-weight: 700; letter-spacing: .14em; }
.how-actions { display: flex; gap: 8px; } .how-actions .btn:nth-child(2) { flex: 1; }

/* ------------------------------------------------ sprint 3: the live room, the replay, the courses */
.lv { position: fixed; inset: 0; z-index: 11; color: #fff; }
.lv-stage { position: absolute; inset: 0; background-size: 200% 200%; animation: kenburns 16s ease-in-out infinite alternate; }
.lv-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.lv-novideo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; font-weight: 700; }
.lv-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.45) 70%, rgba(0,0,0,.7)), linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); }
.lv-top { position: absolute; left: calc(var(--safe-left) + 24px); top: 84px; display: flex; gap: 10px; align-items: center; transition: left 900ms var(--ease); }
.lv-pill { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; font-weight: 800; }
.lv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: #fff; margin-right: 6px; animation: pulse 1.4s ease-in-out infinite; }
.lv-info { position: absolute; left: calc(var(--safe-left) + 24px); bottom: 48px; width: min(640px, calc(100% - var(--safe-left) - 460px)); display: flex; flex-direction: column; gap: 12px; transition: left 900ms var(--ease); }
.lv-info h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 72px); line-height: .95; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.lv-steps { display: flex; gap: 8px; } .lv-steps span { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); transition: background .5s; } .lv-steps .done { background: #F2C14E; } .lv-steps .on { background: #fff; }
.lv-kick { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #F3E3C3; }
.lv-chapters { display: flex; gap: 6px; flex-wrap: wrap; } .lv-chapters button { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; font-weight: 800; font-size: 13px; }
.glass-btn { background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.5) !important; border-radius: 28px !important; color: #fff !important; }
.glass-dark { background: rgba(20,16,12,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lv-side { position: absolute; right: 20px; top: 80px; bottom: 20px; width: 380px; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lv-tabs { display: flex; gap: 6px; flex-wrap: wrap; } .lv-tabs button { padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; } .lv-tabs button.on { background: #fff; color: var(--ink); }
.lv-pinned { padding: 10px 12px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.35; display: flex; flex-direction: column; gap: 2px; }
.lv-chat, .lv-ings { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.lv-msg { padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.14); font-size: 14px; line-height: 1.35; } .lv-msg b { color: #F3E3C3; } .lv-msg.q { border: 1px solid #F3E3C3; }
.lv-pinbtn { margin-left: 8px; border: 0; border-radius: 8px; padding: 3px 8px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; }
.lv-tip { padding: 10px 12px; border-radius: 14px; background: #F2C14E; color: #1A120D; font-weight: 800; font-size: 14px; animation: howIn .5s var(--ease) both; }
.lv-ing { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.1); font-weight: 700; }
.lv-ing input { width: 20px; height: 20px; accent-color: #F2C14E; }
.lv-input { display: flex; gap: 6px; align-items: center; } .lv-input input { flex: 1; height: 44px; border-radius: 22px; border: 0; padding: 0 16px; font-size: 14px; color: var(--ink); outline: none; }
.lv-input button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; border: 0; font-weight: 800; }
.lv-q { background: rgba(255,255,255,.14); color: #fff; } .lv-q.on { background: #fff; color: var(--ink); } .lv-send { background: var(--accent); color: #fff; } .lv-euro { background: #F2C14E; color: #1A120D; }
.lv-host { position: absolute; left: calc(var(--safe-left) + 24px); top: 130px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: min(640px, calc(100% - var(--safe-left) - 460px)); padding: 0; transition: left 900ms var(--ease); }
.lv-host:not(:empty) { padding: 10px 12px; border-radius: 16px; background: rgba(20,16,12,.6); backdrop-filter: blur(10px); }
.lv-host .field { background: rgba(255,255,255,.92); min-width: 240px; }
.lv-paywall { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 32px)); padding: 24px; border-radius: 26px; background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 12px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.portrait .lv-top { left: 14px; top: 66px; }
.portrait .lv-side { left: 12px; right: 12px; top: auto; bottom: calc(var(--safe-bottom) + 290px); width: auto; height: 230px; background: transparent; border: 0; backdrop-filter: none; padding: 0; }
.portrait .lv-side .lv-tabs, .portrait .lv-side .lv-pinned { display: none; }
.portrait .lv-info { left: 16px; right: 16px; width: auto; bottom: calc(var(--safe-bottom) + 70px); gap: 8px; }
.portrait .lv-info h1 { font-size: 34px; }
.portrait .lv-info .author { display: none; }
.portrait .lv-host { left: 12px; right: 12px; top: 104px; max-width: none; font-size: 13px; }
.course { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.portrait .course { grid-template-columns: 1fr; }
.course-main, .course-side { display: flex; flex-direction: column; gap: 12px; }
.course-side { padding: 16px; border-radius: 20px; background: var(--cream); border: 1px solid #ECE6DC; }
.course-player { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; color: #fff; }
.course-player .lv-video { object-fit: contain; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: #fff; text-align: left; color: var(--ink); }
.lesson.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lesson .th { width: 74px; height: 50px; border-radius: 10px; flex-shrink: 0; } .lesson .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; } .lesson small { opacity: .7; }
.lv-input input { min-width: 0; }
.rec-dot { width: 18px; height: 18px; border-radius: 9px; background: #E0301E; animation: pulse 1s ease-in-out infinite; }

/* sprint 9 — a text button (forgotten password) */
.linkish { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px 0; align-self: center; }

/* sprint 11 — the photo of the dish and its steps on the book page */
.book-photo { width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0; background-size: cover !important; box-shadow: 0 0 0 6px rgba(255,255,255,.9), 0 18px 40px rgba(0,0,0,.45); margin: 4px 0 2px; }
.book-steps { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 18px; padding: 10px 16px; backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
.book-steps summary { cursor: pointer; font-weight: 800; font-size: 14px; list-style: none; }
.book-steps summary::before { content: '▸ '; }
.book-steps[open] summary::before { content: '▾ '; }
.book-steps ol { margin: 8px 0 2px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }

/* sprint 11 — the partner portal on a computer (V1 web portal): the tab bar becomes a side menu, the page two columns */
.pro-tabs button i { display: flex; align-items: center; justify-content: center; color: #B5ADA4; }
.pro-tabs button.on i { color: #1A120D; }
.pro-side-brand, .pro-side-link { display: none; }
@media (min-width: 1024px) {
  .pro-tabs { top: 0; right: auto; bottom: 0; width: 252px; height: auto; padding: 20px 14px; border-top: 0; border-right: 1px solid #2A2724; display: flex; flex-direction: column; gap: 4px; }
  .pro-side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; color: #F7F3EE; text-decoration: none; }
  .pro-side-brand span { display: flex; flex-direction: column; line-height: 1.2; }
  .pro-side-brand b { font-size: 16px; }
  .pro-side-brand small { font-size: 12px; color: #B5ADA4; }
  .pro-side-link { display: flex; align-items: center; gap: 10px; margin-top: auto; height: 40px; padding: 0 12px; border-radius: 12px; color: #B5ADA4; text-decoration: none; font-size: 13px; font-weight: 600; }
  .pro-side-link:hover { background: #1E1C1A; color: #F7F3EE; }
  .pro-tabs button { flex-direction: row; justify-content: flex-start; gap: 12px; height: 46px; padding: 0 12px; border-radius: 12px; font-size: 14px; flex: 0 0 auto; }
  .pro-tabs button:hover { background: #1E1C1A; color: #F7F3EE; }
  .pro-tabs button.on { background: #1E1C1A; color: #F7F3EE; box-shadow: inset 3px 0 0 #F08A5D; }
  .pro-tabs button i { width: 30px; height: 30px; }
  .pro-tabs .dot-badge.tab { position: static; margin-left: auto; }
  .pro .wrap { max-width: none; margin: 0 0 0 252px; padding: 24px 36px 48px; }
  .pro #app:has(.pro-tabs.hide) .wrap { margin: 0 auto; max-width: 1080px; }
  .pro .wrap > .pro-head { position: sticky; top: 0; z-index: 4; margin: -24px -36px 0; padding: 16px 36px; background: rgba(18,17,16,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #2A2724; }
  .pro-main { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; align-items: start; max-width: 1280px; }
  .pro-main > h2, .pro-main > .stats, .pro-main > .mission-new, .pro-main > .empty { grid-column: 1 / -1; }
  .pro-main > h2 { margin: 8px 0 0; }
  .pro .stats { grid-template-columns: repeat(3, minmax(0, 220px)); }
}

/* sprint 11 — themes. « glass »: light liquid glass (clear, frosted, a bright edge that catches the light);
   « art »: tinted glass, smoked and coloured by the dish of the moment (--tint, set with the scene). */
.pro .pro-side-brand { color: #F7F3EE; }
.pro .pro-side-link { color: #B5ADA4; }
@media (min-width: 1024px) { .pro .wrap > .pro-head > .row:first-child svg { display: none; } }
:root { --tint: #8A5A2A; }
:root[data-theme="glass"] .card, :root[data-theme="glass"] .sheet, :root[data-theme="glass"] .menu, :root[data-theme="glass"] .page,
:root[data-theme="art"] .card, :root[data-theme="art"] .sheet, :root[data-theme="art"] .menu, :root[data-theme="art"] .page {
  isolation: isolate; backdrop-filter: blur(30px) saturate(190%) contrast(1.05); -webkit-backdrop-filter: blur(30px) saturate(190%) contrast(1.05);
}
:root[data-theme="glass"] .card, :root[data-theme="glass"] .sheet, :root[data-theme="glass"] .menu {
  background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,.5) 45%, rgba(255,255,255,.6));
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.35), inset 0 0 24px rgba(255,255,255,.35), 0 30px 70px rgba(0,0,0,.28);
}
:root[data-theme="glass"] .card::before, :root[data-theme="glass"] .sheet::before,
:root[data-theme="art"] .card::before, :root[data-theme="art"] .sheet::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 60% at 15% 0%, rgba(255,255,255,.55), transparent 55%), radial-gradient(80% 40% at 100% 100%, rgba(255,255,255,.18), transparent 60%);
}
:root[data-theme="glass"] .card-head { border-bottom-color: rgba(255,255,255,.55); }
:root[data-theme="glass"] .chip, :root[data-theme="glass"] .btn.light, :root[data-theme="glass"] .rcard, :root[data-theme="glass"] .dish, :root[data-theme="glass"] .box:not(.dark), :root[data-theme="glass"] .field, :root[data-theme="glass"] .seg, :root[data-theme="glass"] .chip-btn {
  background: rgba(255,255,255,.42); border-color: rgba(255,255,255,.65); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
:root[data-theme="glass"] .seg button.on, :root[data-theme="glass"] .stepper button { background: rgba(255,255,255,.85); }
:root[data-theme="glass"] .chip.on { background: var(--ink); color: #fff; }

:root[data-theme="glass"] .sheet, :root[data-theme="art"] .sheet { position: relative; }
:root[data-theme="art"] .card, :root[data-theme="art"] .sheet, :root[data-theme="art"] .menu, :root[data-theme="art"] .page { --ink: #FBF8F2; --muted: rgba(251,248,242,.72); --line: rgba(255,255,255,.16); --soft: rgba(255,255,255,.08); --soft2: rgba(255,255,255,.08); --paper: transparent; color-scheme: dark; }
:root[data-theme="art"] .card, :root[data-theme="art"] .sheet, :root[data-theme="art"] .menu {
  color: var(--ink);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 46%, rgba(14,10,8,.55)), color-mix(in srgb, var(--tint) 22%, rgba(10,8,6,.7)));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.3), inset 0 0 30px color-mix(in srgb, var(--tint) 35%, transparent), 0 30px 80px rgba(0,0,0,.45);
  transition: background 900ms;
}
:root[data-theme="art"] .card-head { border-bottom-color: rgba(255,255,255,.14); }
:root[data-theme="art"] .chip, :root[data-theme="art"] .btn.light, :root[data-theme="art"] .rcard, :root[data-theme="art"] .dish, :root[data-theme="art"] .box:not(.dark), :root[data-theme="art"] .field, :root[data-theme="art"] .seg, :root[data-theme="art"] .stepper button {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
:root[data-theme="art"] .seg button.on { background: rgba(255,255,255,.22); color: #fff; }
:root[data-theme="art"] .chip.on { background: #FBF8F2; color: #16130F; }
:root[data-theme="art"] .menu button, :root[data-theme="art"] .menu a { color: var(--ink); }
:root[data-theme="art"] .card h1, :root[data-theme="art"] .card h2, :root[data-theme="art"] .sheet h2 { color: var(--ink); }
:root[data-theme="art"] .field select option { color: #16130F; }

.theme-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; }
.theme-row button { height: 54px !important; border-radius: 12px !important; border: 1px solid var(--line) !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px !important; padding: 0 !important; text-align: center !important; }
.theme-row button.on { outline: 2px solid var(--accent); }
.theme-row i { width: 22px; height: 12px; border-radius: 6px; }
/* art theme: text inside the soft boxes stays readable on tinted glass */
:root[data-theme="art"] .card .box.soft, :root[data-theme="art"] .card .box.soft :is(span, b, p, small, div) { color: var(--ink); }
:root[data-theme="art"] .card .muted { color: var(--muted); }

/* the appearance button of the top bar (everyone, logged in or not) */
.theme-btn { width: 44px; padding: 0 !important; justify-content: center; }
.theme-dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); box-shadow: inset 0 1px 2px rgba(255,255,255,.7); }
.theme-dot[data-k="classic"] { background: linear-gradient(135deg, #fff 50%, #F5F3F0 50%); }
.theme-dot[data-k="glass"] { background: radial-gradient(circle at 30% 25%, #fff, rgba(255,255,255,.35) 60%), linear-gradient(135deg, #E8E0D6, #B9A996); }
.theme-dot[data-k="dark"] { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.45), transparent 50%), linear-gradient(135deg, #3A3A40, #121214); }
.theme-dot[data-k="art"] { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.45), transparent 50%), linear-gradient(135deg, #C2562F, #4A1A0A); }
.theme-menu { width: auto; }
.theme-menu .theme-row { grid-template-columns: repeat(4, 84px); }
.theme-menu .theme-row button { height: 74px !important; gap: 6px; }
.theme-menu .theme-row i.theme-dot { width: 28px; height: 28px; }
:root[data-tone="dark"] .chip-btn.theme-btn { background: rgba(30,30,34,.7); }

.theme-btn svg { display: block; }
:root[data-tone="dark"] .chip-btn.theme-btn { color: #FBF8F2; }
/* Liquid Glass on the navigation too: the top bar (logo, menus, language, account, light/dark) and the plate buttons */
:root[data-theme] .topbar :is(.brand, .pill-group, .lang-select, .chip-btn), :root[data-theme] .plate-btn:not(.dark), :root[data-theme] .plate-handle {
  backdrop-filter: blur(22px) saturate(185%); -webkit-backdrop-filter: blur(22px) saturate(185%);
}
:root[data-theme="glass"] .topbar :is(.brand, .pill-group, .lang-select, .chip-btn), :root[data-theme="glass"] .plate-btn:not(.dark), :root[data-theme="glass"] .plate-handle {
  background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,.46)); color: #16130F;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.55), 0 10px 28px rgba(0,0,0,.18);
}
:root[data-tone="dark"] .topbar :is(.brand, .pill-group, .lang-select, .chip-btn), :root[data-tone="dark"] .plate-btn:not(.dark), :root[data-tone="dark"] .plate-handle {
  background: linear-gradient(160deg, rgba(58,58,64,.72), rgba(18,18,20,.62)); color: #FBF8F2;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 28px rgba(0,0,0,.4);
}
:root[data-tone="dark"] .topbar .pill-group button { color: #FBF8F2; }
:root[data-tone="dark"] .topbar .pill-group button.on { background: rgba(251,248,242,.92); color: #16130F; }
:root[data-tone="dark"] .topbar .brand span, :root[data-tone="dark"] .topbar .lang-select { color: #FBF8F2; }
:root[data-tone="dark"] .topbar .lang-select option { color: #16130F; }
:root[data-tone="dark"] .plate-btn.dark { background: rgba(251,248,242,.92); color: #16130F; }
/* performance: the glass blur is costly — only the card in front blurs; the plate and the cards move on the GPU,
   so the rotation of the plate and its slide left / right stay smooth */
:root[data-theme] .card.behind, :root[data-theme] .card.ahead { backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-theme="glass"] .card.behind, :root[data-theme="glass"] .card.ahead { background: rgba(250,247,243,.9); }
:root[data-tone="dark"] .card.behind, :root[data-tone="dark"] .card.ahead { background: rgba(40,40,44,.92); }
.plate, .plate .mark, .card { will-change: transform; }

/* sprint 13 — the chef portrait editor and the portrait with the toque out of the frame */
.av-stage { position: relative; width: min(300px, 70vw); aspect-ratio: 600 / 1000; margin: 0 auto; }
.av-stage canvas { position: absolute; inset: 0; z-index: 2; }
.av-frame { position: absolute; left: -6%; right: -6%; top: 22%; bottom: 0; border-radius: 18px; padding: 9px; z-index: 1; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.av-frame .av-in { width: 100%; height: 100%; border-radius: 11px; background: linear-gradient(135deg, #2A1C10, #8A5A2A); }
.av-guide { position: absolute; z-index: 3; left: 27%; right: 27%; top: 30%; height: 26%; border: 2px dashed rgba(255,255,255,.8); border-radius: 50%; pointer-events: none; }
.ccard .pic.av { object-fit: contain; object-position: center bottom; top: -64px; height: calc(100% + 56px); width: 86%; border-radius: 0; }
/* partner app: its sheets are dark like the app (titles and labels stay readable) */
.pro .sheet { background: #1E1C1A; color: #F7F3EE; }
.pro .sheet .muted { color: #B5ADA4; }
.pro .sheet .icon-btn { background: #2A2724; color: #F7F3EE; }

/* v0.22 — the till (POS) of the partner app, the guests' screen, the install card */
.pos-top { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pos-top .grow { flex: 1; min-width: 220px; }
.pos-kpi { display: flex; flex-direction: column; background: #1E1C1A; border: 1px solid #2E2A27; border-radius: 16px; padding: 10px 14px; min-width: 150px; }
.pos-kpi span, .pos-kpi small { color: #B5ADA4; font-size: 12px; }
.pos-kpi b { font-size: 22px; color: #F08A5D; }
.pos-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.pos-body { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pos-item { min-height: 96px; border: 1px solid #2E2A27; border-radius: 18px; background: #1E1C1A; color: #F7F3EE; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 6px; text-align: left; cursor: pointer; font-size: 15px; font-weight: 700; touch-action: manipulation; transition: transform .1s, background .2s; }
.pos-item:active { transform: scale(.97); background: #2A2724; }
.pos-item b { color: #F08A5D; font-size: 18px; }
.pos-item small { color: #8BC5A0; font-size: 11px; font-weight: 800; }
.pos-item.cat { border-color: #2F4A3A; }
.pos-cart { position: sticky; top: 10px; background: #1E1C1A; border: 1px solid #2E2A27; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; color: #F7F3EE; }
.pos-lines { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow: auto; }
.pos-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pos-q { width: 30px; height: 30px; border-radius: 9px; border: 0; background: #2A2724; color: #F7F3EE; font-size: 18px; font-weight: 800; cursor: pointer; }
.pos-amt { min-width: 70px; text-align: right; font-weight: 700; }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #2E2A27; padding-top: 10px; }
.pos-total b { font-size: 26px; }
.pos-shield { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: #CFC6BB; background: #172019; border: 1px solid #2F4A3A; border-radius: 14px; padding: 10px 12px; }
.pos-sales { display: flex; flex-direction: column; gap: 6px; }
.pos-sale { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 8px 0; border-bottom: 1px solid rgba(127,127,127,.18); }
.pos-sale .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(127,127,127,.18); white-space: nowrap; }
.pos-pill.st-paid, .pos-pill.st-released { background: #1F3B2A; color: #8BE0A8; }
.pos-pill.st-held { background: #1E2E45; color: #9CC3FF; }
.pos-pill.st-disputed { background: #4A2A12; color: #FFB98A; }
.pos-pill.st-void, .pos-pill.st-refunded { background: #3A1E1E; color: #FF9C9C; text-decoration: line-through; }
.pos-ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pos-way { border: 1px solid rgba(127,127,127,.3); background: transparent; color: inherit; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; cursor: pointer; font-size: 14px; }
.pos-way span { font-size: 24px; }
.pos-way small { opacity: .7; font-size: 12px; line-height: 1.35; }
.pos-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid rgba(127,127,127,.18); font-size: 14px; }
.pos-z .line { font-size: 16px; }
.install-card { background: #fff; border: 1px solid #E8E1D8; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.install-card.dark { background: #1E1C1A; border-color: #2E2A27; color: #F7F3EE; }
.install-row { display: flex; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.5; flex-wrap: wrap; }
@media (max-width: 860px) { .pos-body { grid-template-columns: 1fr; } .pos-cart { position: static; } .pos-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
/* the guests' screen (a tablet turned to the guests) */
body.pos-screen-on { background: #121110; }
body.pos-screen-on .pro-head { display: none; }
.pos-screen { position: fixed; inset: 0; background: radial-gradient(900px 500px at 70% 0%, #3A2418, #121110 65%); color: #F7F3EE; display: flex; align-items: center; justify-content: center; padding: 30px; z-index: 40; }
.pos-scr-idle { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pos-scr-idle img { width: 180px; height: 220px; object-fit: contain; }
.pos-scr-idle h1 { font-family: Lora, Georgia, serif; font-size: clamp(34px, 6vw, 64px); margin: 0; }
.pos-scr-idle p { font-size: 20px; color: #D9D0C5; margin: 0; }
.pos-scr-idle small { color: #F08A5D; font-weight: 800; letter-spacing: .1em; }
.pos-scr-sale { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; width: min(1100px, 100%); align-items: center; }
.pos-scr-lines { display: flex; flex-direction: column; gap: 10px; }
.pos-scr-lines h2 { font-family: Lora, Georgia, serif; font-size: 30px; margin: 0 0 10px; }
.pos-scr-line { display: flex; justify-content: space-between; font-size: 22px; padding: 8px 0; border-bottom: 1px solid #2E2A27; }
.pos-scr-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 22px; }
.pos-scr-total b { font-size: 54px; color: #F08A5D; }
.pos-scr-pay { background: #fff; color: #16130F; border-radius: 28px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pos-scr-pay .qr svg { width: min(300px, 60vw); height: auto; }
.pos-scr-pay span { color: #1F7A45; font-weight: 800; font-size: 14px; }
@media (max-width: 760px) { .pos-scr-sale { grid-template-columns: 1fr; } }
.pro-main.pos-main { display: flex !important; flex-direction: column; align-items: stretch !important; max-width: 1400px; width: 100%; }
.pro-main.pos-main > * { min-width: 0; }

/* v0.22 — the finger turns the plate: no browser scroll on it, no lag while it follows */
.plate, .plate-handle { touch-action: none; user-select: none; -webkit-user-select: none; }
.plate-layer.dragging .plate, .plate-layer.dragging .plate .mark { transition: none !important; }
.plate-layer { transition: transform .35s var(--ease); }
.plate-layer.dragging { transition: none; }

/* the finger on the coverflow: vertical scroll stays native, the cards follow without lag while swiping */
.stack .card { touch-action: pan-y; }
.stack.swiping .card { transition: none !important; }
.stack.swiping { user-select: none; -webkit-user-select: none; }

/* the guest's till page: no plate under it */
body.no-plate .plate-layer { display: none; }

.pos-edit input[type=number] { height: 36px; border-radius: 10px; border: 1px solid rgba(127,127,127,.35); background: rgba(127,127,127,.12); color: inherit; padding: 0 10px; font: inherit; }
