/* Melagodo v2: waiter's screen, till upgrades, team, Z report, extras, surprise, loyalty card, motion.
   Uses the tokens defined in index.html (--ground, --ink, --grad, --display…). */

/* ================================================================ motion basics */
button, .btn, a.btn, .tc, .dish, .cardmini { transition: scale .14s cubic-bezier(.3,.7,.4,1.4), background-color .2s, color .2s, border-color .2s, box-shadow .25s, opacity .2s; }
button:not(:disabled):active, .btn:not(:disabled):active, .tc:active, .cardmini:active { scale: .965; }
.dish:active { scale: .985; }
.has-rip { position: relative; overflow: hidden; isolation: isolate; }
.rip { position: absolute; border-radius: 50%; background: currentColor; opacity: .16; pointer-events: none; transform: scale(0); animation: rip .62s cubic-bezier(.2,.7,.3,1) forwards; z-index: 0; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
.is-new { animation: newIn .5s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes newIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.pop { animation: popIn .5s cubic-bezier(.2,1.35,.4,1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.86) rotate(-1.5deg); } }
.flydot { position: fixed; z-index: 60; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); box-shadow: 0 6px 16px rgba(255,107,74,.45), inset 0 0 0 3px rgba(255,255,255,.55); pointer-events: none; }
.cartbar.bump { animation: bump .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06, .94); } 60% { transform: scale(.98, 1.03); } 100% { transform: scale(1); } }
.cartbar { animation: barIn .45s cubic-bezier(.2,1.3,.4,1); }
@keyframes barIn { from { transform: translateY(90px); } }
.burst { position: fixed; z-index: 70; width: 9px; height: 9px; border-radius: 2px; pointer-events: none; }
.toast.tin { animation: toastIn .42s cubic-bezier(.2,1.4,.4,1); }
.toast.tout { animation: toastOut .22s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 24px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 10px) scale(.96); } }
.scrim { animation: fadeIn .22s ease-out; }
.sheet { animation: sheetUp .44s cubic-bezier(.2,1.12,.35,1); }
@keyframes sheetUp { from { transform: translateY(70%); opacity: .4; } }
.counting { color: inherit; }
.stepper span, .pt-q, .tc .amt { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  button:active, .btn:active { scale: 1; }
}

/* ================================================================ staff header: round icons, who's signed in */
.kh-l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.khead .btn svg, .kround svg { flex: none; }
.kround { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,247,236,.1); color: #E9D9C4; border: 1px solid rgba(255,247,236,.16); }
.kround.on { color: var(--sun); }
.kround[aria-pressed="true"] { background: var(--grad); color: var(--ink); border-color: transparent; }
.kwho { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 4px; border-radius: 999px; background: rgba(255,247,236,.1); border: 1px solid rgba(255,247,236,.16); color: var(--ground); }
.kav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--grad); color: var(--ink); font: 800 16px var(--display); flex: none; }
.kav.big { width: 46px; height: 46px; font-size: 19px; }
.kname { font-weight: 700; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kswap { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,247,236,.12); color: var(--sun); }
.kwho:hover .kswap { background: var(--sun); color: var(--ink); }
@media (max-width: 600px) { .kname { display: none; } .kwho { padding-right: 4px; } }

/* ================================================================ service: surprises */
.surp { position: relative; display: flex; gap: 14px; border-radius: 22px; padding: 16px; background: var(--card); border: 2px solid transparent;
  background-image: linear-gradient(var(--card), var(--card)), linear-gradient(120deg, #FFD15C, #FF6B4A, #F2A2B1, #FFD15C); background-origin: border-box; background-clip: padding-box, border-box;
  background-size: auto, 300% 300%; animation: surBorder 4s linear infinite; }
.surp.is-new { animation: newIn .5s cubic-bezier(.2,.9,.3,1.15) both, surBorder 4s linear infinite; }
@keyframes surBorder { to { background-position: 0 0, 300% 0; } }
.surp-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--grad); flex: none; color: var(--ink); animation: wiggle 2.4s ease-in-out infinite; }
.surp-ic svg { width: 30px; height: 30px; }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-8deg); } 86% { transform: rotate(7deg); } 93% { transform: rotate(-3deg); } }
.surp-b { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.surp-occ { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.15; }
.surp-desc { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--soft); }
.surp-desc svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.surp-when { font-size: 13px; font-weight: 700; color: #8A4A12; background: var(--butter); border-radius: 8px; padding: 4px 8px; align-self: flex-start; }
.surp-seen { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ok-ink); }
.surp-mini { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; background: var(--butter); color: #8A4A12; border-radius: 10px; padding: 6px 10px; }
.surp-mini svg { width: 18px; height: 18px; flex: none; }
.surp-mini.crd { background: #EEF6F0; color: var(--ok-ink); }
.ksur { display: flex; flex-direction: column; gap: 10px; }
.kt-sur { display: flex; align-items: center; gap: 8px; background: var(--grad); border-radius: 10px; padding: 7px 10px; font-weight: 800; font-size: 14px; }
.kt-sur svg { width: 20px; height: 20px; flex: none; }
.kx, .xline { display: block; font-size: 13px; font-weight: 700; color: #8A4A12; padding-left: 22px; }
.xline { padding-left: 0; display: inline; margin-left: 4px; }
.kgone { color: var(--warn); text-decoration: line-through; text-decoration-thickness: 2px; }
.kgone span { text-decoration: none; display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #FBEDEA; border-radius: 5px; padding: 1px 6px; margin-left: 6px; }

/* ================================================================ tables: quick open */
.openbox { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ob-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ob-head h3 { font-family: var(--display); font-weight: 800; font-size: 22px; }
.ob-take { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 700; font-size: 14px; }
.ob-take svg { width: 18px; height: 18px; }
.ob-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
@media (max-width: 640px) { .ob-grid { grid-template-columns: 1fr; } }
.ob-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ob-num { border: 2px solid var(--orange); background: var(--butter-2); border-radius: 18px; padding: 12px 16px; display: flex; flex-direction: column; box-shadow: 0 0 0 4px rgba(255,159,67,.14); }
.ob-num small { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ob-num b { font-size: 52px; line-height: 1.05; letter-spacing: -.02em; }
.ob-num em { font-style: normal; font-weight: 700; font-size: 13px; color: #B85A12; }
.ob-num.bad { border-color: var(--warn); background: #FBEDEA; box-shadow: none; animation: shake .35s; }
.ob-num.bad em { color: var(--warn); }
.ob-cov { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ob-cov > button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ground); font: 700 16px var(--mono); }
.ob-cov > button[aria-pressed="true"] { background: var(--ink); color: var(--sun); border-color: var(--ink); }
.ob-more { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.ob-more button { width: 40px; height: 40px; font-size: 18px; font-weight: 600; }
.ob-more b { min-width: 22px; text-align: center; }
.ob-pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ob-pad button { height: 58px; border-radius: 14px; background: var(--ground); border: 1px solid var(--line-2); font: 700 24px var(--mono); box-shadow: 0 2px 0 var(--line-2); }
.ob-pad button:active { transform: translateY(2px); box-shadow: none; }
.ob-pad .op { font: 700 20px var(--body); color: var(--soft); }
.tc { cursor: pointer; }
.tc-badges { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; }
.tb { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; border-radius: 7px; padding: 2px 7px; background: var(--line); color: var(--soft); }
.tb svg { width: 14px; height: 14px; }
.tb.sur { background: var(--grad); color: var(--ink); animation: glow 1.8s infinite; }
.tb.crd { background: #EEF6F0; color: var(--ok-ink); }

/* ================================================================ POS: the waiter's ordering screen */
main.posmode { max-width: 1560px; }
.pos { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 3.2fr); gap: 16px; margin-top: 14px; align-items: start; }
.pos-menu { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pos-top { display: flex; align-items: center; gap: 12px; }
.pos-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pos-title b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; }
.pos-title span { font-size: 13px; color: var(--muted); }
.pos-cov .ctl span { min-width: 22px; text-align: center; font-weight: 700; }
.pos-search { margin-top: 0; }
.pos-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.pos-cats::-webkit-scrollbar { display: none; }
.pos-cats button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 15px; }
.pos-cats button .cico { width: 20px; height: 20px; }
.pos-cats button[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; align-content: start; max-height: calc(100vh - 290px); overflow-y: auto; padding: 2px 2px 20px; overscroll-behavior: contain; }
.ptile { position: relative; display: flex; flex-direction: column; text-align: left; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); overflow: hidden; min-height: 168px; }
.ptile .pt-ph { display: block; height: 92px; overflow: hidden; }
.ptile .pt-ph .photo { border-radius: 0 !important; }
.ptile .pt-n { font-weight: 700; font-size: 14px; line-height: 1.2; padding: 8px 10px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptile .pt-p { font-weight: 700; font-size: 14px; padding: 4px 10px 10px; margin-top: auto; }
.ptile.has { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,159,67,.22); }
.ptile.so { opacity: .45; }
.pt-q { position: absolute; top: 8px; right: 8px; min-width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--ink); color: var(--sun); font: 700 15px var(--mono); padding: 0 6px; box-shadow: 0 4px 10px rgba(43,27,20,.3); animation: popIn .35s cubic-bezier(.2,1.6,.4,1); }
.pt-so, .pt-low, .pt-x { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 6px; background: rgba(43,27,20,.78); color: var(--ground); }
.pt-low { background: #B85A12; }
.pt-x { top: auto; bottom: 64px; left: auto; right: 8px; background: var(--grad); color: var(--ink); }
.pos-ticket { position: sticky; top: 10px; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; max-height: calc(100vh - 24px); overflow-y: auto; }
.pt-head { display: flex; justify-content: space-between; align-items: center; }
.pt-head h3 { font-family: var(--display); font-weight: 800; font-size: 21px; }
.pt-close { display: none; }
.pt-lines { display: flex; flex-direction: column; gap: 6px; }
.pt-empty { margin: 0; padding: 18px 8px; text-align: center; color: var(--muted); font-size: 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; }
.pg { display: flex; flex-direction: column; gap: 4px; }
.pg-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.pg-h i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: var(--sun); font: 700 12px var(--mono); font-style: normal; }
.pl { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 4px; border-radius: 12px; }
.pl.flash { animation: lineFlash .9s ease-out; }
@keyframes lineFlash { 0% { background: rgba(255,159,67,.35); } 100% { background: transparent; } }
.pl-q { display: flex; align-items: center; background: var(--ground); border: 1px solid var(--line-2); border-radius: 999px; flex: none; }
.pl-q button { width: 34px; height: 34px; font-size: 18px; font-weight: 700; }
.pl-q b { min-width: 18px; text-align: center; }
.pl-n { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.2; }
.pl-n small { color: #8A4A12; font-weight: 700; font-size: 12px; }
.pl-c { width: 30px; height: 30px; border-radius: 999px; background: var(--butter); font: 800 13px var(--mono); flex: none; }
.pl-p { font-weight: 700; font-size: 14px; flex: none; }
.pt-note { height: 42px; font-size: 14px; }
.pt-send { height: 58px; font-size: 16px; }
.pt-send svg { width: 20px; height: 20px; }
.pt-hint { margin: -2px 0 0; font-size: 12.5px; color: var(--muted); }
.pt-sent { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.ps { border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.ps-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ps-st { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 2px 7px; background: var(--line); color: var(--soft); }
.ps-st.preparing { background: var(--butter); color: #8A4A12; }
.ps-st.ready { background: #DDF0E1; color: var(--ok-ink); animation: glow 1.6s infinite; }
.ps-st.waiting { background: #EAE3F7; color: #4B3A7A; }
.ps-fire { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--grad); font-weight: 800; font-size: 13px; }
.ps-fire svg { width: 16px; height: 16px; }
.ps-i { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ps-i > span:first-child { flex: 1; min-width: 0; }
.ps-i small { color: #8A4A12; font-weight: 700; }
.ps-i em { color: var(--muted); font-style: normal; font-size: 12px; }
.ps-i.gone { color: var(--warn); text-decoration: line-through; font-size: 12.5px; }
.ps-x { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 800; padding: 0 6px; }
.ps-x.armed { background: var(--warn); border-color: var(--warn); color: #fff; padding: 0 10px; }
.pt-foot { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 10px; }
.pt-tot { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 17px; }
.pt-tot b { font-size: 22px; }
.pt-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.pt-acts .btn { height: 50px; font-size: 14px; }
.pt-acts .btn svg { width: 18px; height: 18px; }
.pos-bar { display: none; }
@media (max-width: 900px) {
  .pos { grid-template-columns: 1fr; }
  .pos-grid { max-height: none; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); padding-bottom: 90px; }
  .pos-ticket { position: fixed; inset: auto 0 0 0; z-index: 25; max-height: 86vh; border-radius: 26px 26px 0 0; box-shadow: 0 -18px 40px rgba(43,27,20,.25); transform: translateY(105%); transition: transform .38s cubic-bezier(.2,1,.3,1); padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .pos-ticket.open { transform: none; }
  .pt-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); }
  .pos-bar { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 60px; padding: 0 16px; border-radius: 20px; background: var(--ink); color: var(--ground); font-weight: 700; box-shadow: 0 12px 28px rgba(43,27,20,.35); animation: barIn .4s cubic-bezier(.2,1.3,.4,1); }
  .pos-bar .n { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; background: var(--grad); color: var(--ink); font: 700 14px var(--mono); }
}

/* ================================================================ staff sheets (centred on tablets) */
.scrim.center { align-items: center; padding: 16px; }
.scrim.center .sheet { border-radius: 26px; max-width: 580px; max-height: 92vh; animation: modalIn .4s cubic-bezier(.2,1.2,.35,1); }
@keyframes modalIn { from { transform: translateY(30px) scale(.96); opacity: 0; } }
@media (max-width: 600px) { .scrim.center { align-items: flex-end; padding: 0; } .scrim.center .sheet { border-radius: 28px 28px 0 0; } }
.staff-sheet { padding-bottom: 22px; }
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.xgrid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xchip { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); text-align: left; font-weight: 700; font-size: 14px; }
.xchip .xc-ck { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--butter); flex: none; font-weight: 800; transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
.xchip .xc-n { flex: 1; min-width: 0; line-height: 1.15; }
.xchip .xc-n small { display: block; font-size: 11px; color: var(--warn); font-weight: 800; }
.xchip em { font-style: normal; font-size: 13px; color: var(--soft); white-space: nowrap; }
.xchip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--ground); }
.xchip[aria-pressed="true"] .xc-ck { background: var(--grad); color: var(--ink); transform: rotate(360deg); }
.xchip[aria-pressed="true"] em { color: var(--sun); }
.xchip.warn:not([aria-pressed="true"]) { border-style: dashed; }

/* ================================================================ till v2 */
.tl-methods button { font-size: 13.5px; }
@media (max-width: 480px) { .tl-methods button { padding: 10px 2px; font-size: 12px; } .tl-methods button svg { width: 26px; height: 26px; } }
.tl-quick button.on { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.tl-pl { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); padding: 4px 0; }
.tl-pl .tl-pn { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); font-weight: 600; }
.tl-pl .tl-pn small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.tl-pl.red .tl-pn, .tl-pl.red .mono { color: #8A4A12; }
.mi { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; }
.mi svg { width: 20px; height: 20px; }
.tl-void { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 800; padding: 0 6px; }
.tl-void.armed { background: var(--warn); color: #fff; border-color: var(--warn); padding: 0 10px; }
.tl-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tl-tools .btn { height: 48px; font-size: 14px; }
.tl-tools .btn svg { width: 18px; height: 18px; }
.tl-split { display: flex; flex-direction: column; gap: 10px; }
.tl-split .covers span:first-child, .tl-split .covers span:last-child { font-weight: 600; font-size: 14px; }
.tl-split .ctl .mono { min-width: 26px; text-align: center; font-weight: 700; font-size: 18px; }
.tl-info { margin: 0; font-size: 14px; color: var(--soft); }
.tl-items { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; padding: 0 10px; }
.tl-go { height: 62px; font-size: 18px; }
.tl-bill small { color: #8A4A12; font-weight: 700; }

/* remise */
.rm-amt { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; background: var(--butter-2); border-radius: 16px; padding: 12px 16px; }
.rm-amt span { font-weight: 700; font-size: 14px; color: var(--soft); }
.rm-amt b { font-size: 32px; }
.rm-amt em { font-style: normal; font-weight: 800; font-size: 18px; color: var(--ok-ink); }
.rm-in { display: flex; flex-direction: column; gap: 6px; }
.rm-in > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.rm-in small { font-size: 12px; color: var(--muted); }
.rm-reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.rm-reasons button { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 13.5px; text-align: left; line-height: 1.15; }
.rm-reasons button svg { width: 22px; height: 22px; flex: none; }
.rm-reasons button[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.rm-reasons button[aria-pressed="true"] svg { color: var(--sun); }
.rm-items { max-height: 240px; }

/* loyalty at the till */
.cam { position: relative; border-radius: 20px; background: #2A201B; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam .vf { position: relative; width: 56%; aspect-ratio: 1; }
.cam .vf::before { content: ""; position: absolute; inset: 0; border: 4px solid var(--sun); border-radius: 22px;
  clip-path: polygon(0 0,28% 0,28% 7%,7% 7%,7% 28%,0 28%,0 72%,7% 72%,7% 93%,28% 93%,28% 100%,72% 100%,72% 93%,93% 93%,93% 72%,100% 72%,100% 28%,93% 28%,93% 7%,72% 7%,72% 0,100% 0,100% 100%,0 100%); }
.cam .scanline { position: absolute; left: 22%; right: 22%; height: 2px; background: var(--orange); box-shadow: 0 0 14px var(--orange); top: 20%; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { to { top: 78%; } }
.cam.off .scanline, .cam.off .vf { display: none; }
.cam-lbl { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #F3E3CF; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.scan-in { display: flex; gap: 10px; align-items: flex-end; }
.scan-in label { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.scan-in .btn { width: auto; padding: 0 20px; height: 48px; }
.fcard { position: relative; border-radius: 22px; background: var(--grad-tall); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); overflow: hidden; box-shadow: 0 18px 30px rgba(255,107,74,.28); aspect-ratio: 1.586; justify-content: space-between; }
.fcard::before { content: ""; position: absolute; right: -30%; bottom: -55%; width: 240px; height: 240px; border-radius: 50%; border: 28px solid rgba(255,247,236,.24); }
.fcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%); transform: translateX(-100%); animation: sheen 5s ease-in-out 1s infinite; }
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.fcard > * { position: relative; z-index: 1; }
.fc-top, .fc-bot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fc-kind { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; background: var(--ink); color: var(--sun); padding: 3px 8px; border-radius: 6px; }
.fc-pts { display: flex; align-items: baseline; gap: 6px; }
.fc-pts b { font-size: 46px; line-height: 1; }
.fc-pts span { font-weight: 800; font-size: 14px; }
.fc-bot span:first-child { font-weight: 800; }
.fc-bot .mono { font-size: 14px; letter-spacing: .06em; }
.fcard.big { max-width: 420px; width: 100%; align-self: center; }
.fc-rw { display: flex; flex-direction: column; gap: 8px; }
.fc-r { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 14px; }
.fc-r > span { flex: 1; display: flex; flex-direction: column; }
.fc-r small { color: var(--muted); font-size: 12.5px; }
.fc-r .btn { width: auto; height: 44px; padding: 0 16px; font-size: 14px; }
.fc-r.ok { border-color: var(--orange); background: var(--butter-2); }

/* ================================================================ team & settings */
.addbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--grad); font-weight: 800; font-size: 13px; letter-spacing: 0; text-transform: none; }
.urow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.urow.off { opacity: .55; }
.urow.fixed .kav { background: var(--line); }
.ur-b { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.ur-b b { font-size: 16px; }
.ur-role { font-size: 13px; color: var(--muted); }
.ur-perms { display: flex; gap: 6px; flex-wrap: wrap; }
.ur-perms i { font-style: normal; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.ur-perms i.y { background: #DDF0E1; color: var(--ok-ink); }
.ur-perms i.n { background: var(--line); color: var(--muted); }
.ur-a { display: flex; gap: 6px; flex-wrap: wrap; }
.ur-a button { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; background: var(--card); }
.ur-a button.warn { border-color: var(--warn); color: var(--warn); }
.ufrm { border: 2px solid var(--orange); margin-bottom: 12px; }
.pinrow { display: flex; gap: 8px; }
.pinrow input { font: 700 24px var(--mono); letter-spacing: .4em; text-align: center; max-width: 180px; }
.pinrow .btn { width: auto; height: 48px; padding: 0 16px; font-size: 14px; }
.perms { display: flex; flex-direction: column; gap: 6px; }
.perm { display: flex; align-items: center; gap: 12px; padding: 8px 4px; text-align: left; font-weight: 600; font-size: 14px; }
.perm .sw { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); flex: none; transition: background .25s; }
.perm .sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(43,27,20,.3); transition: transform .3s cubic-bezier(.2,1.5,.4,1); }
.perm[aria-pressed="true"] .sw { background: var(--ok); }
.perm[aria-pressed="true"] .sw i { transform: translateX(18px); }
.perm.onDark { color: #F3E3CF; }
.perm.onDark .sw { background: rgba(255,247,236,.25); }
.two-btn { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.two-btn .btn { height: 52px; font-size: 15px; }
.okbtn { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }
.rwed { display: flex; flex-direction: column; gap: 6px; }
.rw-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto 70px auto; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.rw-row input { height: 40px; padding: 0 8px; font-size: 14px; border-radius: 10px; }
.zlist { display: flex; flex-direction: column; }
.zl { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 13.5px; }
.zl i { font-style: normal; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 6px; }
.zl i.ok { background: #DDF0E1; color: var(--ok-ink); }
.zl i.red { background: #FBEDEA; color: var(--warn); }

/* ================================================================ Z report */
.zwrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 18px; align-items: start; }
@media (max-width: 980px) { .zwrap { grid-template-columns: 1fr; } }
.zside { position: sticky; top: 10px; }
.zhead { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.zhead h2 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.zh-a { display: flex; gap: 8px; }
.zh-a .btn { width: auto; height: 44px; padding: 0 14px; font-size: 14px; }
.zh-a .btn svg { width: 18px; height: 18px; }
.zstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.zstats div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; }
.zstats b { font-size: 22px; }
.zstats div:first-child { background: var(--grad); border-color: transparent; }
.zstats span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.zstats div:first-child span { color: var(--ink); }
.zt { display: flex; flex-direction: column; }
.zr { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(80px, .8fr) minmax(100px, .9fr) minmax(90px, .8fr); gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.zr > span:first-child { display: flex; flex-direction: column; font-weight: 700; }
.zr small { font-weight: 500; font-size: 12px; color: var(--muted); }
.zhd { border-top: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.zin { height: 44px; font: 700 16px var(--mono); text-align: right; }
.zd { display: inline-flex; align-items: center; gap: 4px; font: 800 14px var(--mono); border-radius: 8px; padding: 4px 8px; justify-self: start; }
.zd svg { width: 16px; height: 16px; }
.zd.ok { background: #DDF0E1; color: var(--ok-ink); }
.zd.bad { background: #FBEDEA; color: var(--warn); animation: shake .3s; }
.zd.none { color: var(--muted); }
@media (max-width: 640px) { .zr { grid-template-columns: 1fr 1fr; } .zhd { display: none; } }
.zops { max-height: 380px; overflow-y: auto; }
.zo { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(120px, auto) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.zo > span:nth-child(2) { display: flex; flex-direction: column; font-weight: 600; }
.zo small { color: var(--muted); font-weight: 500; font-size: 12px; }
.zo select { height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ground); font: 600 13px var(--body); padding: 0 8px; color: var(--ink); }
.zo .zm { font-size: 13px; color: var(--soft); }
.zo .mono { text-align: right; display: flex; flex-direction: column; font-weight: 700; }
.zo.red .mono, .zo.red .zm { color: #8A4A12; }
.zgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.zl2 { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--line); }
.zl2 small { color: var(--muted); }
.zsum { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 14px; }
.zsum b { font-size: 18px; }
.zsum.ok { background: #DDF0E1; color: var(--ok-ink); }
.zsum.bad { background: #FBEDEA; color: var(--warn); }
.zdone { margin: 30px auto; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.zdone h2 { font-family: var(--display); font-weight: 800; font-size: 28px; }
.zdone p { margin: 0; color: var(--soft); }
.zdone .two-btn { align-self: stretch; }
.red { color: var(--warn); }

/* ================================================================ guest: pizza extras */
.xhint { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #8A4A12; background: var(--butter); border-radius: 6px; padding: 2px 6px; }
.gx { display: block; color: #8A4A12; font-weight: 700; font-size: 12.5px; }
.xsheet { gap: 12px; }
.xs-head { display: flex; align-items: center; gap: 12px; }
.xs-head .photo { border-radius: 16px; flex: none; animation: photoIn .6s cubic-bezier(.2,1.2,.4,1); }
.xs-t { flex: 1; min-width: 0; }
.xs-t h2 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; }
.xs-sub { margin: 0; font-size: 14px; color: var(--soft); }
.xsheet .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xsheet .xchip { animation: newIn .45s cubic-bezier(.2,.9,.3,1.15) both; }
.xsheet .xchip:nth-child(2) { animation-delay: .03s; } .xsheet .xchip:nth-child(3) { animation-delay: .06s; } .xsheet .xchip:nth-child(4) { animation-delay: .09s; }
.xsheet .xchip:nth-child(5) { animation-delay: .12s; } .xsheet .xchip:nth-child(6) { animation-delay: .15s; } .xsheet .xchip:nth-child(7) { animation-delay: .18s; } .xsheet .xchip:nth-child(n+8) { animation-delay: .21s; }
.xs-foot { padding: 4px 0 0; }

/* ================================================================ guest: the birthday banner (always alive) */
.bday { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin: 2px 0 14px; padding: 14px 14px 14px 12px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #2B1B14 0%, #4A2A1C 100%); color: var(--ground); box-shadow: 0 12px 26px rgba(43,27,20,.25); }
.bday::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(120deg, #FFD15C, #FF9F43, #FF6B4A, #F2A2B1, #FFD15C); background-size: 300% 100%; animation: bdBorder 3.5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; }
@keyframes bdBorder { to { background-position: 300% 0; } }
.bd-glow { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,209,92,.28) 50%, transparent 65%); transform: translateX(-100%); animation: bdSheen 3.2s ease-in-out infinite; z-index: -1; }
@keyframes bdSheen { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.bd-conf { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.bd-conf i { position: absolute; bottom: -8px; width: 6px; height: 9px; border-radius: 2px; opacity: 0; animation: bdConf 4.2s linear infinite; }
.bd-conf i:nth-child(1) { left: 12%; background: #FFD15C; animation-delay: 0s; }
.bd-conf i:nth-child(2) { left: 30%; background: #FF6B4A; animation-delay: .7s; width: 5px; height: 5px; border-radius: 50%; }
.bd-conf i:nth-child(3) { left: 48%; background: #F2A2B1; animation-delay: 1.5s; }
.bd-conf i:nth-child(4) { left: 64%; background: #9CCBA8; animation-delay: 2.2s; width: 5px; height: 5px; border-radius: 50%; }
.bd-conf i:nth-child(5) { left: 78%; background: #FF9F43; animation-delay: 2.9s; }
.bd-conf i:nth-child(6) { left: 90%; background: #FFD15C; animation-delay: 3.5s; width: 4px; height: 4px; border-radius: 50%; }
@keyframes bdConf { 0% { transform: translateY(0) rotate(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(-120px) rotate(400deg); opacity: 0; } }
.bd-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--ground); flex: none; box-shadow: 0 6px 14px rgba(0,0,0,.25); animation: bdBob 2.6s ease-in-out infinite; }
.bd-ic.big { width: 92px; height: 92px; border-radius: 28px; }
.bd-ic.big svg { width: 56px; height: 56px; }
@keyframes bdBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
.bd-ic .flame { transform-origin: 16px 9px; animation: flick .9s ease-in-out infinite alternate; }
.bd-ic .flame2 { transform-origin: 16px 8px; animation: flick .6s ease-in-out infinite alternate-reverse; }
@keyframes flick { from { transform: scale(1, 1) rotate(-4deg); } to { transform: scale(.86, 1.12) rotate(5deg); } }
.bd-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-t b { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.1; background: linear-gradient(90deg, #FFD15C, #FF9F43, #FFD15C); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bdText 3s linear infinite; }
@keyframes bdText { to { background-position: 200% 0; } }
.bd-t small { font-size: 13px; color: #E9D9C4; line-height: 1.3; }
.bd-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--grad); color: var(--ink); flex: none; animation: bdNudge 1.8s ease-in-out infinite; }
@keyframes bdNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.bday.sent { background: var(--butter-2); color: var(--ink); box-shadow: none; border: 1.5px dashed var(--orange); }
.bday.sent::before { display: none; }
.bday.sent .bd-t b { color: var(--ink); background: none; -webkit-background-clip: initial; background-clip: initial; animation: none; }
.bday.sent .bd-t small { color: var(--soft); }
.sur-sheet { gap: 12px; }
.sur-sub { margin: 0; font-size: 14px; color: var(--soft); }
.sur-occ { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sur-occ button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 13px; line-height: 1.15; text-align: center; }
.sur-occ .e { font-size: 26px; transition: transform .35s cubic-bezier(.2,1.6,.4,1); }
.sur-occ button[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.sur-occ button[aria-pressed="true"] .e { transform: scale(1.2) rotate(-8deg); }
.sur-candle { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.sur-done { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 24px 6px 6px; }
.sur-done h2 { font-family: var(--display); font-weight: 800; font-size: 34px; }
.sur-done p { margin: 0; color: var(--soft); font-size: 16px; }
.sur-done .btn { align-self: stretch; }

/* ================================================================ guest: loyalty */
.cask { display: flex; flex-direction: column; gap: 10px; border-radius: 18px; border: 2px solid var(--orange); background: var(--card); padding: 12px; }
.cask-row { display: flex; align-items: center; gap: 12px; }
.cask-row > div { display: flex; flex-direction: column; }
.cask-row b { font-family: var(--display); font-weight: 800; font-size: 18px; }
.cask-row small { font-size: 13px; color: var(--soft); }
.cask .two-btn .btn { height: 46px; font-size: 14px; }
.cask.ok { flex-direction: row; align-items: center; gap: 10px; border: 0; background: #EEF6F0; color: var(--ok-ink); font-size: 13px; font-weight: 700; padding: 10px 12px; }
.cask.ok > span:nth-child(2) { flex: 1; }
.cask.ok button { font-size: 12px; font-weight: 700; text-decoration: underline; color: var(--soft); }
.cask-mc { display: grid; place-items: center; width: 54px; height: 34px; border-radius: 8px; background: var(--grad-tall); font: 800 11px var(--mono); color: var(--ink); flex: none; box-shadow: 0 4px 10px rgba(255,107,74,.3); }
.cardmini { align-self: stretch; display: flex; align-items: center; gap: 12px; text-decoration: none; text-align: left; border-radius: 18px; background: var(--ground); border: 1px solid var(--line); padding: 12px 14px; color: var(--ink); box-shadow: 0 6px 16px rgba(43,27,20,.08); }
.cardmini > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.cardmini small { font-size: 12.5px; color: var(--soft); }
.cardmini.slim { box-shadow: none; padding: 8px 12px; }
.offer { position: relative; align-self: stretch; text-align: left; overflow: hidden; border-radius: 24px; background: var(--ink); color: var(--ground); padding: 20px; isolation: isolate; box-shadow: 0 16px 34px rgba(43,27,20,.28); animation: newIn .6s cubic-bezier(.2,.9,.3,1.15) .2s both; }
.offer::after { content: ""; position: absolute; right: -60px; top: -70px; width: 190px; height: 190px; border-radius: 50%; background: var(--grad); z-index: -1; animation: offerSpin 9s linear infinite; }
@keyframes offerSpin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.08); } 100% { transform: rotate(360deg) scale(1); } }
.offer-in { display: flex; flex-direction: column; gap: 8px; }
.offer h3 { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.02; letter-spacing: -.01em; max-width: 14ch; }
.offer p { margin: 0; font-size: 14px; color: #E9D9C6; max-width: 34ch; }
.offer .bonus { display: inline-flex; align-self: flex-start; align-items: baseline; gap: 6px; background: var(--ground); color: var(--ink); border-radius: 14px; padding: 6px 12px; margin: 4px 0; animation: popIn .6s cubic-bezier(.2,1.6,.4,1) .6s both; }
.offer .bonus b { font-size: 24px; }
.offer .bonus span { font-size: 13px; font-weight: 700; }
.offer .ladder { display: flex; gap: 6px; flex-wrap: wrap; }
.offer .ladder span { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 9px; background: rgba(255,247,236,.1); }
.offer label { font-size: 12.5px; font-weight: 600; color: #E9D9C6; margin-top: 6px; }
.offer input { height: 46px; background: rgba(255,247,236,.08); border-color: rgba(255,247,236,.25); color: var(--ground); }
.offer input::placeholder { color: #BFA894; }
.offer .btn { margin-top: 8px; }
.offer .small { font-size: 12px; color: #BFA894; }
.btn-wallet { background: #000; color: #fff; border-radius: 999px; }
.btn-wallet svg { flex: none; }
.linkbtn { align-self: center; font-size: 13px; font-weight: 700; color: #F3E3CF; text-decoration: underline; padding: 6px; }
.cardpage { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.cp-t { font-weight: 700; font-size: 14px; color: var(--muted); }
.qrcard { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; text-align: center; max-width: 300px; }
.qrcard small { color: var(--muted); font-size: 12.5px; }
.cp-next .row { display: flex; justify-content: space-between; gap: 10px; }
.cp-next p { margin: 0; font-size: 14px; }
.prog { height: 12px; border-radius: 999px; background: var(--butter); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--grad); border-radius: 999px; animation: progIn 1.1s cubic-bezier(.2,.9,.3,1) both; }
@keyframes progIn { from { width: 0 !important; } }
.cp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; }
.cp-steps div { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); border-radius: 12px; padding: 8px 4px; background: var(--butter-2); }
.cp-steps div b { display: block; font-size: 13px; }
.cp-steps div.on { background: var(--ink); color: var(--sun); }
.visit { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.visit em { font-style: normal; font: 700 14px var(--mono); color: var(--ok); }
.visit em.neg { color: #8A4A12; }
.private { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--soft); background: var(--butter-2); border-radius: 14px; padding: 12px; }
.rwbox { display: flex; flex-direction: column; gap: 8px; border-radius: 20px; padding: 14px; background: var(--ink); color: var(--ground); }
.rw-h { display: flex; align-items: center; gap: 12px; }
.rw-h > div { display: flex; flex-direction: column; }
.rw-h small { color: #E9D9C6; font-size: 13px; }
.rw-use { display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 14px; background: var(--grad); color: var(--ink); padding: 12px 14px; }
.rw-use > span { flex: 1; display: flex; flex-direction: column; }
.rw-use small { font-size: 12px; font-weight: 700; opacity: .8; }
.rw-use em { font-style: normal; font-weight: 800; font-size: 18px; }
.redline { color: #8A4A12; font-weight: 600; }
.bh-was { display: block; font-size: 16px; color: var(--muted); text-decoration: line-through; }
.tl-split .covers { justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
/* fixes after the first walk-through */
.sheet > * { flex-shrink: 0; }
.xchip em { display: block; font-size: 12.5px; margin-top: 2px; }
.xchip .xc-n { font-size: 14px; }
.cask-row small b { font: inherit; font-weight: 800; color: var(--ink); }
.offer::after { right: -95px; top: -105px; width: 170px; height: 170px; opacity: .9; }
.offer h3 { max-width: 12ch; }
.cardpage { padding-bottom: 130px; }
