/* BAT NAIL — identity v3 "Hồng pastel" #FDA6C4.
   Pastel pink for the brand and the main action, cocoa ink for text, a deep raspberry only for small pink text and focus,
   pearl shimmer only where AI is at work.
   Technicians are polish swatches; tickets are paper slips. */

@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-vi.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(fonts/manrope.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --phai: #FDA6C4; --phai-h: #FB95BA; --phai-1: #F9CADB; --phai-2: #FFDEEA; --porcelain: #FFF8FB;
  --pk-1: #FFB2CD; --pk-2: #F9BAD1;
  --tram: #B8336A; --tram-2: #9E2A5A; --tram-ink: #8A2450;
  --ink: #2E2226; --ink-2: #5A474E; --ink-3: #7D6870;
  --line: #F4D4E0; --line-soft: #FBE7EF; --paper: #FFFFFF;
  --sage: #2F6E54; --sage-bg: #E3EFE8; --champ: #6F4C14; --champ-bg: #F5E8D2; --champ-line: #E3C99A;
  --red: #A93B35; --red-bg: #F8E5E2; --blue: #3F5797; --blue-bg: #E8ECF7;
  --pearl: linear-gradient(118deg, #FFEDF4 0%, #EEEFFA 38%, #F3EAF8 66%, #FBF0EA 100%);
  --pearl-edge: linear-gradient(118deg, #FDA6C4, #B9C2EA, #D4BCE6, #EBCDB8);
  --ombre: linear-gradient(170deg, #FFDEEA 0%, #FFB2CD 52%, #FDA6C4 100%);
  --r-s: 10px; --r-m: 14px; --r-l: 18px; --r-xl: 26px;
  --lift: 0 1px 2px rgba(46, 34, 38, .05), 0 6px 20px rgba(253, 166, 196, .16);
  --float: 0 18px 50px rgba(46, 34, 38, .18), 0 3px 10px rgba(46, 34, 38, .08);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tap: 40px; --rail: 0px; --bar: 64px;
  color-scheme: light;
}
@media (pointer: coarse) { :root { --tap: 46px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px) + 12px); }
body { margin: 0; background: var(--porcelain); color: var(--ink); font: 500 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.022em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; letter-spacing: -.012em; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--tram); outline-offset: 2px; border-radius: 8px; }
.num { font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .tiny { font-size: 12px; } .strong { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px)); }
.rail { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 4px max(6px, env(safe-area-inset-left, 0px)) max(4px, env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-right, 0px)); }
.rail .brand, .rail .rail-foot { display: none; }
.rail nav { display: flex; flex: 1; justify-content: space-around; }
.rail a { flex: 1; max-width: 96px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 600; border-radius: var(--r-m); }
.rail a svg.ic { width: 22px; height: 22px; }
.rail a[aria-current="page"] { color: var(--ink); background: var(--phai-2); }
.rail a[aria-current="page"] svg.ic { color: var(--tram); }
.rail a.only-wide { display: none; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 10px; padding: max(8px, env(safe-area-inset-top, 0px)) 14px 8px; background: rgba(255, 248, 251, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.topbar .logo { height: 24px; width: auto; display: block; }
.topbar h1 { font-size: 19px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .tools { display: flex; align-items: center; gap: 6px; }
.net { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-size: 12px; font-weight: 700; color: var(--sage); }
.net::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.net.off { color: var(--champ); background: var(--champ-bg); border-color: var(--champ-line); }
.net span { display: none; }
.who { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 13px; }
.ai-btn, .who, .net { white-space: nowrap; flex: none; }
@media (max-width: 479px) {
  .topbar { gap: 6px; padding-inline: 10px; }
  .topbar .ai-btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .topbar .ai-btn span, .who .nm { display: none; }
  .who { padding: 0 4px; }
  .topbar .net { width: 32px; padding: 0; justify-content: center; }
}
.who .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--phai-1); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head .grow { flex: 1 1 280px; min-width: 0; }
.page-head p { color: var(--ink-3); font-size: 13px; }

@media (min-width: 900px) {
  :root { --rail: 96px; --bar: 0px; }
  .shell { flex-direction: row; padding-bottom: 0; }
  .rail { top: 0; right: auto; width: var(--rail); flex-direction: column; border-top: 0; border-right: 1px solid var(--line); padding: 16px 10px; gap: 12px; background: var(--paper); }
  .rail .brand { display: grid; place-items: center; padding: 2px 0 10px; justify-items: center; }
  .rail .brand svg { width: 30px; height: 56px; }
  .rail nav { flex-direction: column; justify-content: flex-start; gap: 4px; overflow-y: auto; }
  .rail a { flex: none; max-width: none; min-height: 60px; font-size: 12px; }
  .rail a.only-wide { display: flex; } .rail a.only-narrow { display: none; }
  .main { margin-left: var(--rail); }
  .topbar { padding: 12px 24px; }
  .topbar .logo { display: none; }
  .topbar h1 { font-size: 22px; }
  .net span { display: inline; }
  .page { padding: 20px 24px 24px; gap: 16px; }
}

/* ---------- buttons, chips, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: none; white-space: nowrap; transition: transform .06s, background .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--phai); border-color: var(--phai); color: var(--ink); box-shadow: 0 6px 18px rgba(253, 166, 196, .5); }
.btn.primary:hover { background: var(--phai-h); border-color: var(--phai-h); }
.btn.soft { background: var(--phai-2); border-color: var(--phai-1); color: var(--tram-ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--red); border-color: #EFC6C1; background: var(--red-bg); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.big { min-height: 56px; font-size: 17px; padding: 0 22px; border-radius: var(--r-l); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-s); }
.btn.full { width: 100%; white-space: normal; text-align: center; padding-block: 8px; line-height: 1.3; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn .num { font-size: 1.05em; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--r-m); border: 1px solid transparent; background: transparent; color: var(--ink-2); padding: 0; }
.iconbtn:hover { background: var(--phai-2); }
.iconbtn.line { border-color: var(--line); background: var(--paper); }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .grow { flex: 1; min-width: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -14px; padding-inline: 14px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; white-space: nowrap; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--phai-2); color: var(--tram-ink); white-space: nowrap; }
.pill.ok { background: var(--sage-bg); color: var(--sage); } .pill.warn { background: var(--champ-bg); color: var(--champ); } .pill.bad { background: var(--red-bg); color: var(--red); } .pill.info { background: var(--blue-bg); color: var(--blue); } .pill.gray { background: #F2ECEE; color: var(--ink-2); }
.pill.next { background: var(--champ-bg); color: var(--champ); box-shadow: inset 0 0 0 1px var(--champ-line); }
.seg { display: flex; background: #FCE6EE; border-radius: var(--r-m); padding: 3px; gap: 2px; }
.seg button { flex: 1; min-height: 36px; border: 0; background: transparent; border-radius: 11px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); padding: 0 10px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(46, 34, 38, .12); }
.seg.scroll { overflow-x: auto; scrollbar-width: none; } .seg.scroll button { flex: none; }
.field { display: grid; gap: 5px; }
.field > span, .label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12.5px; }
.input, select.input, textarea.input { width: 100%; min-height: var(--tap); padding: 8px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--paper); }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { outline: 2px solid var(--tram); outline-offset: 0; border-color: var(--tram); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch { display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { flex: none; width: 46px; height: 28px; border-radius: 99px; background: #EED5DE; position: relative; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + i { background: var(--phai); box-shadow: inset 0 0 0 1px rgba(184, 51, 106, .35); } .switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--tram); outline-offset: 2px; }
.searchbox { position: relative; flex: 1; min-width: 160px; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.searchbox .input { padding-left: 40px; border-radius: 99px; }

/* ---------- surfaces ---------- */
.card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-l); padding: 16px; box-shadow: var(--lift); }
.card.flat { box-shadow: none; border-color: var(--line); }
.card h3 { margin-bottom: 8px; }
.list { display: grid; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); min-height: 56px; width: 100%; text-align: left; background: none; border-inline: 0; border-top: 0; }
.item:last-child { border-bottom: 0; }
.item.wrap { flex-wrap: wrap; row-gap: 6px; }
button.item:hover { background: var(--phai-2); }
.item .t { font-weight: 700; } .item .s { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.item .end { margin-left: auto; text-align: right; flex: none; }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 14px; color: var(--ink-3); }
.empty svg.ic { width: 30px; height: 30px; color: var(--tram); }
.empty b { color: var(--ink); font-size: 16px; font-weight: 800; }
.note { background: var(--phai-2); border: 1px solid var(--phai-1); border-radius: var(--r-m); padding: 10px 12px; font-size: 13.5px; color: var(--tram-ink); }
.note.gold { background: var(--champ-bg); border-color: var(--champ-line); color: var(--champ); }
.note.gray { background: #F7F1F2; border-color: #EBE0E3; color: var(--ink-2); }
.demo-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--ink); color: var(--phai-1); font-weight: 800; font-size: 11px; letter-spacing: .06em; }

/* nail swatch: the technician's polish */
.swatch { --c: var(--tram); --w: 34px; position: relative; flex: none; width: var(--w); height: calc(var(--w) * 1.36); background: linear-gradient(170deg, color-mix(in srgb, var(--c) 72%, #fff) 0%, var(--c) 58%, color-mix(in srgb, var(--c) 82%, #000) 100%); border-radius: 50% 50% 44% 44% / 62% 62% 30% 30%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: calc(var(--w) * .4); padding-top: calc(var(--w) * .28); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08); }
.swatch::after { content: ""; position: absolute; left: 22%; top: 16%; width: 8%; height: 34%; border-radius: 99px; background: rgba(255, 255, 255, .55); transform: rotate(8deg); }
.swatch.dark-text { color: var(--ink); }
.swatch.s { --w: 24px; } .swatch.l { --w: 44px; } .swatch.xl { --w: 64px; }
.swatch.off { filter: grayscale(1); opacity: .45; }

/* ---------- AI: pearl, used only where the model is at work ---------- */
.ai-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 99px; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--pearl); box-shadow: inset 0 0 0 1px rgba(185, 160, 210, .45); }
svg.spark { width: 18px; height: 18px; flex: none; }
.ai-bar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 6px 6px 16px; border-radius: var(--r-l); border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--pearl-edge) border-box; box-shadow: 0 8px 24px rgba(253, 166, 196, .22); text-align: left; }
.ai-bar .ph { flex: 1; min-width: 0; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-bar .ph b { color: var(--ink); font-weight: 800; }
.ai-bar .mic { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; border: 0; }
.ai-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 9px; border-radius: 99px; border: 1px solid transparent; background: var(--pearl) padding-box, var(--pearl-edge) border-box; font-weight: 800; font-size: 13px; color: var(--ink); }
.ai-btn.sm { height: 32px; font-size: 12.5px; }
.ai-panel { border-radius: var(--r-l); padding: 14px; background: var(--pearl); border: 1px solid #E8DDEB; display: grid; gap: 10px; }
.ai-panel .ai-text { white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.ai-text.busy::after { content: ""; display: inline-block; width: 8px; height: 16px; margin-left: 2px; background: var(--phai); vertical-align: -2px; border-radius: 2px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--pearl); border: 1px solid #E8DDEB; border-bottom-left-radius: 6px; }
.msg.ai.err { background: var(--champ-bg); border-color: var(--champ-line); color: var(--champ); }
.msg .who-ai { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; margin-bottom: 4px; color: var(--ink-2); }
.act { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); }
.act .t { font-weight: 800; } .act .s { font-size: 13.5px; color: var(--ink-2); }
.act.done { border-color: #BFDCCB; background: var(--sage-bg); }
.ai-input { display: flex; align-items: flex-end; gap: 8px; }
.ai-input textarea { flex: 1; min-height: 48px; max-height: 140px; resize: none; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.ai-input textarea:focus { outline: 2px solid var(--tram); outline-offset: 0; border-color: var(--tram); }
.ai-input .iconbtn { width: 48px; height: 48px; border-radius: 16px; }
.ai-input .send { background: var(--phai); color: var(--ink); }
.ai-input .mic.on { background: var(--red); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(169, 59, 53, .15); } }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { text-align: left; min-height: 40px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 13.5px; }

/* ---------- front desk ---------- */
.lanes { container: lanes / inline-size; display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.lane { display: none; flex-direction: column; gap: 10px; min-width: 0; }
.lane.show { display: flex; }
.lane-head { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.lane-head h2 { font-size: 17px; } .lane-head .count { font-weight: 800; font-size: 13px; background: var(--phai-1); color: var(--tram-ink); border-radius: 99px; padding: 1px 9px; }
.lane-head .grow { flex: 1; }
@container lanes (inline-size > 780px) {
  .lanes > .seg { display: none; }
  .lanes .lane-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .lane { display: flex; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: 14px; box-shadow: var(--lift); }
}
.wait { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--paper); }
.wait .top { display: flex; align-items: center; gap: 10px; }
.wait .name { font-weight: 800; font-size: 15.5px; }
.wait .mins { margin-left: auto; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.wait .mins.long { color: var(--red); }
.wait .eta { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tags span { font-size: 12.5px; padding: 2px 8px; border-radius: 6px; background: #FFEEF4; color: var(--ink-2); font-weight: 600; }
.techrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-l); border: 1px solid var(--line-soft); background: var(--paper); width: 100%; text-align: left; }
.techrow.next { border-color: var(--champ-line); background: linear-gradient(90deg, var(--champ-bg), #fff 72%); }
.techrow .rank { font-weight: 800; font-size: 13px; color: var(--ink-3); width: 16px; text-align: center; }
.techrow .name { font-weight: 800; font-size: 15.5px; }
.techrow .turns { margin-left: auto; text-align: right; }
.techrow .turns b { display: block; font-weight: 800; font-size: 20px; line-height: 1; }
.techrow .turns span { font-size: 11.5px; color: var(--ink-3); }
.slip { display: grid; gap: 6px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); width: 100%; text-align: left; position: relative; }
.slip .top { display: flex; align-items: center; gap: 8px; }
.slip .no { font-weight: 800; font-size: 16px; }
.slip .amt { margin-left: auto; font-weight: 800; font-size: 17px; }
.slip .who2 { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--champ-bg); border: 1px solid var(--champ-line); color: var(--champ); font-size: 13.5px; flex-wrap: wrap; }

/* ---------- ticket / checkout ---------- */
.pos { container: pos / inline-size; display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.pos-pane { display: none; flex-direction: column; gap: 12px; min-width: 0; }
.pos-pane.show { display: flex; }
.techstrip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.techstrip button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px 6px; min-width: 64px; border-radius: var(--r-m); border: 2px solid transparent; background: transparent; font-size: 12.5px; font-weight: 700; }
.techstrip button[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 8px; }
.svc { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 78px; padding: 10px 12px; text-align: left; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); }
.svc:active { background: var(--phai-2); border-color: var(--phai); }
.svc b { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.svc span { font-weight: 800; font-size: 15px; color: var(--tram); }
.svc small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.ticketbox { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--lift); }
.ticketbox .head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 2px dashed var(--line); }
.ticketbox .lines { padding: 4px 14px; }
.tline { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); width: 100%; background: none; border-inline: 0; border-top: 0; text-align: left; min-height: 52px; }
.tline:last-child { border-bottom: 0; }
.tline .nm { font-weight: 700; } .tline .sub { font-size: 12.5px; color: var(--ink-3); }
.tline .pr { margin-left: auto; text-align: right; font-weight: 700; font-size: 15px; }
.tline .pr s { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.totals { padding: 10px 14px; border-top: 2px dashed var(--line); display: grid; gap: 4px; }
.totals .r { display: flex; justify-content: space-between; font-size: 14px; }
.totals .r.big { font-weight: 800; font-size: 22px; padding-top: 4px; letter-spacing: -.02em; }
.totals .r.neg span:last-child { color: var(--sage); }
.ticketbox .acts { padding: 12px 14px; display: grid; gap: 8px; background: #FFFAFC; border-top: 1px solid var(--line-soft); }
.paybar { position: sticky; bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px) + 8px); z-index: 5; }
@container pos (inline-size > 780px) {
  .pos > .seg, .pos .paybar { display: none; }
  .pos .pos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
  .pos-pane { display: flex; }
  .pos-pane.ticket-pane { position: sticky; top: 80px; }
}

/* ---------- sheets (native dialog) ---------- */
dialog.sheet { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; max-height: 92dvh; position: fixed; inset: auto 0 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--paper); color: var(--ink); box-shadow: var(--float); }
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet:modal { overscroll-behavior: contain; }
dialog.sheet::backdrop { background: rgba(46, 34, 38, .42); backdrop-filter: blur(3px); overflow: hidden; overscroll-behavior: contain; }
dialog.sheet.full { max-height: 100dvh; height: 100dvh; border-radius: 0; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 14px 10px 18px; }
.sheet-head h2 { flex: 1; min-width: 0; font-size: 19px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet-head h2 p { flex-basis: 100%; }
.sheet-head p { color: var(--ink-3); font-size: 13px; margin-top: 2px; font-weight: 500; letter-spacing: 0; }
.sheet-body { padding: 4px 18px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.sheet-foot { padding: 10px 18px max(14px, env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line-soft); }
.sheet-foot .btn { flex: 1 1 128px; }
dialog.sheet.ai .sheet-head { background: var(--pearl); border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: 14px; }
@media (min-width: 700px) {
  dialog.sheet { inset: 0; margin: auto; width: min(540px, 92vw); max-height: 88dvh; border-radius: var(--r-xl); }
  dialog.sheet.wide { width: min(780px, 94vw); }
  dialog.sheet.full { width: min(980px, 96vw); height: min(760px, 94dvh); border-radius: var(--r-xl); }
  dialog.sheet.ai { width: min(640px, 94vw); height: min(720px, 90dvh); }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: rise .2s cubic-bezier(.2, .8, .2, 1); }
  @keyframes rise { from { transform: translateY(16px); opacity: .5; } }
  .toast { animation: rise .2s ease-out; }
}
.toasts { position: fixed; z-index: 100; left: 0; right: 0; bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px) + 14px); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; box-shadow: var(--float); max-width: 100%; }
.toast.bad { background: var(--red); }

/* keypad */
.pad-display { text-align: center; font-weight: 800; font-size: 44px; line-height: 1.1; padding: 10px 0 4px; letter-spacing: -.02em; }
.pad-display.pin { letter-spacing: .3em; min-height: 58px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pad button { min-height: 58px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 22px; }
.pad button:active { background: var(--phai-2); }
.pad button.fn { font-weight: 700; font-size: 14px; color: var(--ink-2); background: #FFF3F7; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* payment */
.due { text-align: center; padding: 6px 0 2px; }
.due small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.due b { font-weight: 800; font-size: 46px; line-height: 1.05; letter-spacing: -.03em; }
.tenders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tender { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; min-height: 78px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); text-align: left; font-weight: 700; }
.tender svg.ic { color: var(--tram); width: 24px; height: 24px; }
.tender small { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.tipgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.tipbtn { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; min-height: 60px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); font-weight: 800; }
.tipbtn small { font-weight: 700; font-size: 12.5px; color: var(--ink-3); }
.tipbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; } .tipbtn[aria-pressed="true"] small { color: var(--phai-1); }
.receipt { font-size: 13.5px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; display: grid; gap: 4px; }
.receipt .c { text-align: center; } .receipt hr { border: 0; border-top: 1px dashed #E9B9CB; margin: 6px 0; width: 100%; }
.receipt .r { display: flex; justify-content: space-between; gap: 12px; }
.receipt .demo { text-align: center; font-weight: 800; letter-spacing: .08em; color: var(--red); border: 1px dashed var(--red); border-radius: 6px; padding: 4px; margin-top: 6px; font-size: 12px; }

/* terminal simulator */
.term { display: grid; justify-items: center; gap: 12px; }
.term-body { width: 210px; border-radius: 26px; background: #1E1A1C; padding: 14px 12px 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25), inset 0 0 0 2px #322B2F; }
.term-screen { background: #fff; border-radius: 12px; min-height: 250px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.term-screen .amt { font-weight: 800; font-size: 30px; }
.term-screen .st { font-weight: 700; }
.term-screen.ok { background: var(--sage-bg); } .term-screen.no { background: var(--red-bg); }
.term-slot { height: 8px; width: 110px; border-radius: 4px; background: #0C0B0C; margin: 12px auto 0; }
.wave { width: 46px; height: 46px; color: var(--tram); }

/* ---------- reports ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { padding: 14px 16px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--lift); }
.kpi span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.kpi b { display: block; font-weight: 800; font-size: 24px; line-height: 1.25; letter-spacing: -.02em; }
.kpi small { font-size: 12px; color: var(--ink-3); } .kpi small.up { color: var(--sage); } .kpi small.down { color: var(--red); }
.kpi.hero { background: var(--ink); border-color: var(--ink); color: #fff; } .kpi.hero span, .kpi.hero small { color: var(--phai); }
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.tw:focus-visible { outline-offset: -3px; }
table.t { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.t th, table.t td { padding: 8px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
table.t th:first-child, table.t td:first-child { text-align: left; position: sticky; left: 0; background: inherit; }
table.t thead th { background: #FFEFF5; font-weight: 700; color: var(--ink-2); font-size: 12.5px; position: sticky; top: 0; }
table.t tbody tr { background: var(--paper); }
table.t tr.total td, table.t tr.total th { font-weight: 800; background: #FFF4F8; border-top: 2px solid var(--line); }
table.t tr.sec td { background: var(--ink); color: #fff; font-weight: 700; text-align: left; font-size: 12.5px; }
table.t tr.sub td { color: var(--ink-3); font-size: 12.5px; }
table.t td.pos { color: var(--sage); } table.t td.neg { color: var(--red); }
table.t tr.tap { cursor: pointer; } table.t tr.tap:hover td { background: var(--phai-2); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 112px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); height: 100%; font-weight: 600; }
.bars i { display: block; width: 100%; border-radius: 8px 8px 3px 3px; background: var(--phai-1); min-height: 3px; }
.bars div.today i { background: var(--ombre); }
.alert { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-l); border: 1px solid var(--line-soft); background: var(--paper); align-items: flex-start; width: 100%; text-align: left; box-shadow: var(--lift); }
.alert .mark { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--champ-bg); color: var(--champ); }
.alert.high .mark { background: var(--red-bg); color: var(--red); } .alert.ok .mark { background: var(--sage-bg); color: var(--sage); }
.alert b { display: block; font-size: 15.5px; font-weight: 800; }
.alert .grow > span { display: block; }

/* ---------- lock, kiosk ---------- */
.lock { min-height: 100dvh; display: grid; grid-template-columns: 1fr; background: var(--paper); }
.lock-hero { background: radial-gradient(120% 90% at 85% 0%, #FFF4F8 0%, transparent 60%), linear-gradient(165deg, #FFE9F1 0%, #FFDEEA 42%, #FDA6C4 100%); color: var(--ink); padding: max(26px, env(safe-area-inset-top, 0px)) 24px 30px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.lock-hero .logo { height: 32px; width: auto; align-self: flex-start; }
.lock-hero h1 { font-size: clamp(30px, 5.6vw, 54px); font-weight: 800; line-height: 1.03; letter-spacing: -.035em; max-width: 13ch; }
.lock-hero p.lede { max-width: 44ch; color: var(--ink-2); font-size: 16px; }
.lock-demo { display: grid; gap: 8px; max-width: 430px; }
.lock-demo .msg { max-width: 100%; box-shadow: 0 10px 30px rgba(46, 34, 38, .12); }
.lock-demo .msg.me { justify-self: end; }
.lock-panel { padding: 24px 24px 32px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; justify-content: center; max-width: 430px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .lock { grid-template-columns: 1.15fr 1fr; } .lock-hero { padding: 56px 60px; justify-content: center; gap: 22px; } .lock-hero .logo { height: 40px; margin-bottom: 18px; } }
.kiosk { min-height: 100dvh; background: linear-gradient(170deg, #FFF4F8, #FFDEEA); display: flex; flex-direction: column; }
.kiosk-top { display: flex; align-items: center; justify-content: space-between; padding: max(16px, env(safe-area-inset-top, 0px)) 20px 10px; }
.kiosk-top .logo { height: 26px; }
.kiosk-main { flex: 1; display: grid; place-items: center; padding: 10px 20px 30px; }
.kiosk-card { width: min(560px, 100%); background: var(--paper); border-radius: var(--r-xl); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(253, 166, 196, .3); }
.kiosk-card h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.kiosk-card .lead { font-size: 17px; color: var(--ink-2); }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pick { min-height: 58px; padding: 10px 12px; border-radius: var(--r-m); border: 2px solid var(--line); background: var(--paper); font-weight: 700; text-align: left; display: flex; align-items: center; gap: 10px; }
.pick[aria-pressed="true"] { border-color: var(--phai); background: var(--phai-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--tram); margin: 0; }

/* settings */
.setnav { display: grid; gap: 8px; }
.setnav button { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-l); border: 1px solid var(--line-soft); background: var(--paper); text-align: left; box-shadow: var(--lift); }
.setnav button svg.ic { color: var(--tram); }
.setnav button b { display: block; } .setnav button span { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.swatchpick { display: flex; gap: 10px; flex-wrap: wrap; }
.swatchpick button { border: 2px solid transparent; background: none; padding: 4px; border-radius: 12px; }
.swatchpick button[aria-pressed="true"] { border-color: var(--ink); }
.cols2 { display: grid; gap: 14px; }
@media (min-width: 1000px) { .cols2 { grid-template-columns: 1fr 1fr; align-items: start; } }

/* print */
#print-root { display: none; }
@media print {
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; padding: 0; color: #000; font-size: 12px; }
  body.printing .receipt { border: 0; max-width: 300px; margin: 0 auto; }
  body.printing table.t th, body.printing table.t td { padding: 4px 6px; }
}

/* ================= Premium ================= */
.prem { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #5B3D10; background: linear-gradient(120deg, #F7E7C6, #EBCB8E 55%, #F5E3BF); box-shadow: inset 0 0 0 1px rgba(160, 118, 50, .35); white-space: nowrap; }
.prem svg.ic { width: 14px; height: 14px; }
.rail .brand .prem { margin-top: 6px; height: 20px; font-size: 10.5px; padding: 0 7px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.tabs button svg.ic { width: 18px; height: 18px; color: var(--tram); }
.tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs button[aria-pressed="true"] svg.ic { color: var(--phai); }
.tabs .dotn { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; }
@media (min-width: 900px) { .tabs { margin: 0; padding: 2px 0; } }
.cards3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tcard { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--lift); text-align: left; width: 100%; }
.tcard .top { display: flex; align-items: center; gap: 12px; }
.tcard .nm { font-weight: 800; font-size: 16.5px; }
.ring { --v: 0; --c: var(--sage); position: relative; width: 58px; height: 58px; border-radius: 50%; flex: none; margin-left: auto; background: conic-gradient(var(--c) calc(var(--v) * 1%), #FCE4EC 0); display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--paper); }
.ring b { position: relative; font-size: 18px; font-weight: 800; }
.ring.mid { --c: #C9A15A; } .ring.low { --c: var(--red); } .ring.na { --c: #EED5DE; }
.mets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.met { padding: 7px 8px; border-radius: 10px; background: #FFF2F7; }
.met span { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.met b { font-size: 14.5px; font-weight: 800; }
.met.bad { background: var(--red-bg); } .met.bad b { color: var(--red); }
.met.good b { color: var(--sage); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.stars { color: #C9A15A; letter-spacing: 1px; font-size: 15px; white-space: nowrap; }
.stars .off { color: #F2DCE4; }
.hbar { display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; }
.hbar i { display: block; height: 10px; border-radius: 99px; background: var(--phai-1); }
.hbar i b { display: block; height: 100%; border-radius: 99px; background: var(--ombre); }
.basins { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.basin { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-l); border: 1px solid var(--line-soft); background: var(--paper); box-shadow: var(--lift); }
.basin.dirty { border-color: #EFC6C1; background: linear-gradient(180deg, var(--red-bg), #fff 70%); }
.basin .bh { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.basin .bh svg.ic { color: var(--tram); }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 14.5px; }
.checks input { width: 22px; height: 22px; accent-color: var(--tram); flex: none; margin: 1px 0 0; }
.checks label:has(input:checked) { background: var(--sage-bg); border-color: #BFDCCB; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.steps li { padding-left: 4px; }
.sched { border-collapse: separate; border-spacing: 4px; width: 100%; font-size: 13px; }
.sched th { font-weight: 700; color: var(--ink-3); font-size: 12px; text-align: center; }
.sched th:first-child { text-align: left; }
.sched td button { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 12.5px; line-height: 1.2; padding: 4px; }
.sched td button.off { background: #FDEFF4; color: var(--ink-3); border-style: dashed; }
.sched td button.today { box-shadow: inset 0 0 0 2px var(--tram); }
.sched td.who { white-space: nowrap; }
.looks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.look { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--lift); }
.look svg { width: 100%; height: auto; border-radius: 12px; background: linear-gradient(180deg, #FFF3F7, #FFE4EE); }
.look.on { border-color: var(--phai); box-shadow: 0 0 0 2px rgba(253, 166, 196, .45), var(--lift); }
.phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 34px; background: #1E1A1C; padding: 12px; box-shadow: 0 18px 40px rgba(46, 34, 38, .25); }
.phone .scr { background: #F4F1F2; border-radius: 24px; min-height: 420px; padding: 18px 12px; display: flex; flex-direction: column; gap: 8px; }
.phone .from { text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.phone .bub { align-self: flex-start; max-width: 88%; background: #E7E2E4; border-radius: 18px 18px 18px 6px; padding: 10px 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.phone .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 88%; }
.phone .imgs svg { width: 100%; height: auto; border-radius: 12px; background: #FFF3F7; }
.prog { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--lift); }
.prog.off { background: #FFFAFC; box-shadow: none; }
.prog .ph { display: flex; align-items: center; gap: 10px; }
.prog .ph svg.ic { color: var(--tram); width: 22px; height: 22px; }
.prog .ph h3 { margin: 0; flex: 1; min-width: 0; }
.cam { position: relative; border-radius: var(--r-l); overflow: hidden; background: #1E1A1C; aspect-ratio: 4 / 3; display: grid; place-items: center; color: #fff; }
.cam video, .cam canvas { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.cam.rear video { transform: none; }
.cam .ovl { position: absolute; inset: auto 10px 10px 10px; padding: 8px 12px; border-radius: 12px; background: rgba(30, 26, 28, .72); color: #fff; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(4px); }
.cam .frame { position: absolute; inset: 14% 24%; border: 3px solid rgba(255, 255, 255, .8); border-radius: 46% 46% 42% 42%; pointer-events: none; }
.welcome { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-l); background: linear-gradient(160deg, var(--phai-2), #fff); border: 1px solid var(--phai-1); }
.welcome h3 { font-size: 20px; }
.consent { font-size: 13.5px; color: var(--ink-2); background: #FFF7FA; border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 210px; overflow-y: auto; }
.thumb { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: #EEE; flex: none; }
.verdict { font-weight: 800; }
.verdict.ok { color: var(--sage); } .verdict.fix { color: var(--champ); } .verdict.unsafe { color: var(--red); } .verdict.unclear { color: var(--ink-3); }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; }
.cmp td.y { color: var(--sage); font-weight: 800; } .cmp td.n { color: #CDBFC3; }
.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-l); border: 2px solid var(--line); background: var(--paper); text-align: left; }
.plan[aria-pressed="true"] { border-color: var(--phai); box-shadow: 0 0 0 3px rgba(253, 166, 196, .3); }
.plan.gold[aria-pressed="true"] { border-color: #C9A15A; box-shadow: 0 0 0 3px rgba(201, 161, 90, .2); }
.plan b { font-size: 17px; } .plan span { font-size: 13.5px; color: var(--ink-2); }
.upsell { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-xl); background: linear-gradient(160deg, #FBF1E2, #fff 60%); border: 1px solid #EBD7B2; }
.upsell h2 { font-size: 24px; }
.allergy { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-m); background: var(--red-bg); border: 1px solid #EFC6C1; color: var(--red); font-weight: 700; font-size: 14px; }
.big-stars { display: flex; justify-content: center; gap: 6px; }
.big-stars button { width: 58px; height: 58px; border: 0; background: none; font-size: 44px; line-height: 1; color: #F2DCE4; padding: 0; }
.big-stars button.on { color: #C9A15A; }

/* opening screen */
.home { min-height: 100dvh; background: radial-gradient(90% 60% at 88% 0%, #FFF7FA 0%, transparent 60%), linear-gradient(165deg, #FFF0F6 0%, #FFDEEA 55%, #FDB4CB 100%); }
.home-in { max-width: 1180px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top, 0px)) 22px 32px; display: flex; flex-direction: column; gap: 20px; }
.home-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.home-top .logo { height: 30px; width: auto; }
.home-top .seg { margin-left: auto; background: rgba(255, 255, 255, .6); }
.home-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.04; letter-spacing: -.037em; max-width: 17ch; }
.home-hero p { margin-top: 12px; font-size: 17.5px; color: var(--ink-2); max-width: 52ch; }
.home-go { display: flex; flex-wrap: wrap; gap: 10px; }
.home-go .btn { flex: 1 1 200px; }
.home-go .btn.primary { flex: 2 1 280px; }
.offers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.offer { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 24px; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .88); box-shadow: var(--lift); text-align: left; color: var(--ink); }
.offer h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 23px; letter-spacing: -.02em; }
.offer .sub { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.offer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.offer li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.offer li svg.ic { width: 18px; height: 18px; margin-top: 1px; color: var(--tram); }
.offer .offer-pick { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 34px; padding: 0 14px; border-radius: 99px; background: var(--phai-2); font-weight: 800; font-size: 13.5px; color: var(--tram-ink); }
.offer .offer-pick svg.ic { width: 16px; height: 16px; }
button.offer[aria-pressed="true"] { border-color: var(--phai); box-shadow: 0 0 0 4px rgba(253, 166, 196, .35), var(--lift); }
button.offer[aria-pressed="true"] .offer-pick { background: var(--phai); color: var(--ink); }
button.offer.premium[aria-pressed="true"] { border-color: #D7B271; box-shadow: 0 0 0 4px rgba(215, 178, 113, .28), var(--lift); }
@media (max-width: 479px) {
  .home-in { padding-inline: 16px; gap: 16px; }
  .home-top { flex-wrap: nowrap; }
  .home-top .logo { height: 22px; }
  .home-top .seg button { min-height: 32px; padding: 0 9px; font-size: 12.5px; }
}

/* ---------- VIP ---------- */
.vipp { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #F3DDB0; background: linear-gradient(135deg, #3A2730, #5A3646 60%, #3A2730); box-shadow: inset 0 0 0 1px rgba(243, 221, 176, .45); white-space: nowrap; }
.vipp svg.ic { width: 14px; height: 14px; }
.rail .brand .vipp { height: 20px; padding: 0 7px; font-size: 10.5px; }
.offer.vip { background: linear-gradient(160deg, #3B2831 0%, #2E2226 55%, #45303A 100%); border-color: rgba(243, 221, 176, .28); color: #FFF4F7; }
.offer.vip .sub { color: #E9C9D5; }
.offer.vip li svg.ic { color: #EBCB8E; }
.offer.vip .offer-pick { background: rgba(243, 221, 176, .16); color: #F3DDB0; }
button.offer.vip[aria-pressed="true"] { border-color: #D7B271; box-shadow: 0 0 0 4px rgba(215, 178, 113, .32), 0 14px 34px rgba(46, 34, 38, .28); }
button.offer.vip[aria-pressed="true"] .offer-pick { background: linear-gradient(120deg, #F7E7C6, #EBCB8E 55%, #F5E3BF); color: #3A2730; }
.plan.vipc[aria-pressed="true"] { border-color: #5A3646; box-shadow: 0 0 0 3px rgba(90, 54, 70, .22); }
.tierb { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; border-radius: 99px; font-size: 11.5px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, #fff); vertical-align: middle; white-space: nowrap; }
.tierb svg.ic { width: 13px; height: 13px; }
.tiers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tier { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-l); border: 1px solid var(--line-soft); border-top: 4px solid var(--c); background: var(--paper); box-shadow: var(--lift); text-align: left; color: var(--ink); }
.tier .perks { display: flex; flex-wrap: wrap; gap: 6px; }
.tier .perks span { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #F7F0F2; color: var(--ink-2); }
.meter { flex: none; width: 72px; height: 6px; border-radius: 99px; background: #F3E6EB; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--phai), var(--tram)); }
.item .lang { flex: none; display: inline-grid; place-items: center; min-width: 32px; height: 26px; padding: 0 6px; border-radius: 8px; background: #F7F0F2; color: var(--ink-2); font-size: 11.5px; font-weight: 800; }
.item .lang svg.ic { width: 15px; height: 15px; }
.item.fresh { background: linear-gradient(90deg, var(--blue-bg), transparent 70%); border-radius: var(--r-m); }
.linkc .qr { flex: none; background: #fff; border-radius: 12px; padding: 4px; border: 1px solid var(--line-soft); display: grid; place-items: center; font-size: 11px; color: var(--ink-3); text-align: center; }
.linkc .qr svg { width: 100%; height: 100%; display: block; }
.linkc .url { font-weight: 700; color: var(--tram-ink); word-break: break-all; font-size: 14px; }
.hours { display: grid; gap: 6px; }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hrow .switch { min-width: 130px; }
.hrow input[type="time"] { width: 118px; }
.mapgrid { display: grid; gap: 8px 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.branches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.branch { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--lift); }
.bnum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; }
.bnum span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.bnum b { font-size: 18px; font-weight: 800; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.bars i { flex: 1; min-width: 0; border-radius: 5px 5px 2px 2px; background: var(--phai-1); }
.bars i.now { background: var(--tram); }
.bars.big { height: 120px; gap: 8px; }
.bars-lab { display: flex; gap: 8px; margin-top: 6px; } .bars-lab span { flex: 1; text-align: center; font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
/* call with the AI receptionist */
.call { display: grid; gap: 12px; }
.call-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-l); background: linear-gradient(135deg, #3B2831, #2E2226); color: #FFF4F7; }
.call-head b { display: block; font-size: 15px; } .call-head span { font-size: 12.5px; color: #E9C9D5; }
.call-head .call-time { font-size: 15px; font-weight: 800; color: #F3DDB0; }
.call-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 0 rgba(253, 166, 196, .6); }
.call-av svg { width: 24px; height: 24px; }
.call-av.on { animation: callpulse 1.2s ease-out infinite; }
@keyframes callpulse { 0% { box-shadow: 0 0 0 0 rgba(253, 166, 196, .55); } 100% { box-shadow: 0 0 0 14px rgba(253, 166, 196, 0); } }
.call-log { display: flex; flex-direction: column; gap: 8px; max-height: min(46vh, 380px); overflow-y: auto; padding: 4px 2px; overscroll-behavior: contain; }
.call-log.static { max-height: none; }
.bub { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.bub .bub-who { display: block; font-size: 11px; font-weight: 800; color: var(--ink-3); margin-bottom: 2px; }
.bub.ai { align-self: flex-start; background: var(--pearl, #F7F1F8); border: 1px solid #EADFEA; border-bottom-left-radius: 6px; }
.bub.me { align-self: flex-end; background: var(--phai-2); border: 1px solid var(--phai-1); border-bottom-right-radius: 6px; }
.bub.err { background: var(--champ-bg); border-color: var(--champ-line); color: var(--champ); }
.bub.typing { display: flex; gap: 4px; padding: 12px 14px; }
.bub.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: .4; animation: dots 1s infinite; }
.bub.typing i:nth-child(2) { animation-delay: .15s; } .bub.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { opacity: 1; transform: translateY(-2px); } }
.bk { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-m); background: var(--blue-bg); color: var(--blue); font-size: 13.5px; font-weight: 600; flex-wrap: wrap; }
.bk.done { background: var(--sage-bg); color: var(--sage); }
.call-in { display: flex; align-items: flex-start; gap: 12px; }
.mic { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--phai); color: var(--ink); box-shadow: 0 8px 20px rgba(253, 166, 196, .55); }
.mic svg.ic { width: 28px; height: 28px; }
.mic.on { background: var(--tram); color: #fff; animation: callpulse 1.2s ease-out infinite; }
.mic:disabled { opacity: .5; }
.interim { min-height: 22px; font-size: 14px; font-style: italic; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .call-av.on, .mic.on, .bub.typing i { animation: none; } }
/* printed QR card */
.qr-print { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; }
.qr-print .logo { height: 34px; width: auto; }
.qr-print h1 { font-size: 34px; margin: 10px 0 0; }
.qr-print p { margin: 0; font-size: 16px; }
.qr-print .qr { width: 260px; height: 260px; } .qr-print .qr svg { width: 100%; height: 100%; }
.qr-print .u { font-weight: 700; }
.pill.long { white-space: normal; height: auto; min-height: 24px; padding: 4px 10px; line-height: 1.35; }

/* ---------- card machines (any brand) ---------- */
.term.phone .term-body { width: 200px; border-radius: 34px; padding: 22px 10px 26px; background: #111; }
.term.phone .term-slot { width: 60px; height: 5px; background: #333; }
.dev-tips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dev-tips .chip { min-height: 34px; padding: 0 12px; }
.devic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--phai-2); color: var(--tram-ink); }
.devic svg.ic { width: 20px; height: 20px; }
.devic.phone { background: #E8ECF7; color: var(--blue); } .devic.manual { background: #F2ECEE; color: var(--ink-2); }
.devlist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.devcard { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--lift); }
.brandgrid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.brandbtn { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--paper); text-align: left; color: var(--ink); }
.brandbtn small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.brandbtn[aria-pressed="true"] { border-color: var(--tram); background: #FFF5F9; box-shadow: 0 0 0 3px rgba(253, 166, 196, .3); }

/* ---------- Super VIP ---------- */
.supp { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #F4E9FF; background: linear-gradient(135deg, #2A1B30, #4A2F57); box-shadow: inset 0 0 0 1px rgba(217, 184, 240, .45); white-space: nowrap; }
.supp svg.ic { width: 14px; height: 14px; color: #E9C98A; }
.rail .brand .supp { height: 20px; padding: 0 6px; font-size: 9.5px; letter-spacing: .04em; }
.offer.supervip { position: relative; overflow: hidden; background: linear-gradient(165deg, #2B1C31 0%, #20151F 55%, #3A2645 100%); border-color: rgba(217, 184, 240, .3); color: #FBF4FF; }
.offer.supervip::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #FDA6C4, #8B78C9, #E9C98A); }
.offer.supervip .sub { color: #DCC7EA; }
.offer.supervip li svg.ic { color: #D9B8F0; }
.offer.supervip .offer-pick { background: rgba(217, 184, 240, .16); color: #EBD7FA; }
button.offer.supervip[aria-pressed="true"] { border-color: #B99AD6; box-shadow: 0 0 0 4px rgba(185, 154, 214, .32), 0 14px 34px rgba(32, 21, 31, .3); }
.plan.superc[aria-pressed="true"] { border-color: #4A2F57; box-shadow: 0 0 0 3px rgba(74, 47, 87, .22); }

.ip-tools { gap: 18px; }
.interp { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.interp.flipped { grid-template-columns: 1fr; }
.interp.flipped .ip.guest { transform: rotate(180deg); }
.ip { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--lift); min-height: 400px; min-width: 0; }
.ip.guest { background: linear-gradient(180deg, #F5F0FF, var(--paper) 45%); border-color: #E2D8F3; }
.ip-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ip-head .seg { flex-wrap: wrap; }
.ip-log { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 150px; max-height: 330px; overflow: auto; }
.ibub { display: grid; gap: 3px; max-width: 94%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.ibub small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.ibub.theirs { align-self: flex-start; background: var(--ink); color: #fff; font-size: 21px; font-weight: 700; border-bottom-left-radius: 6px; }
.ibub.theirs small { color: #D8C6CE; }
.ibub.mine { align-self: flex-end; background: var(--phai-2); color: var(--ink-2); border-bottom-right-radius: 6px; }
.ibub.err { background: var(--champ-bg); color: var(--champ); font-size: 14px; }
.ip-empty { color: var(--ink-3); font-size: 14px; line-height: 1.5; padding: 6px 2px; }
.ip-quick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 140px; overflow: auto; }
.ip-quick .chip { min-height: 34px; font-size: 13px; }
.ip-label { width: 100%; font-size: 12px; font-weight: 700; color: var(--ink-3); margin-top: 4px; }
.ip-in { display: flex; gap: 8px; align-items: center; }
.ip-in .input { flex: 1; min-width: 0; }
.ip-mic { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 800; white-space: nowrap; }
.ip-mic.on { background: var(--tram); animation: hfpulse 1.3s ease-in-out infinite; }

.quote-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.qphoto { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--phai-2); display: grid; place-items: center; color: var(--ink-3); }
.qphoto img { width: 100%; height: 100%; object-fit: cover; }
.qphoto.none { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; font-size: 13px; }
.qphoto.none svg.ic { width: 34px; height: 34px; }
.qbusy { position: absolute; inset: auto 0 0 0; padding: 10px 12px; background: rgba(255, 255, 255, .92); }
.qcard { border-color: #E2D8F3; }
.qtotal { display: grid; gap: 4px; }
.qtotal small { color: var(--ink-3); font-weight: 700; font-size: 13px; }
.qtotal b { font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
.qtotal span { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; }

.guard-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.gcard { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line-soft); border-left: 4px solid var(--line); box-shadow: var(--lift); }
.gcard.high { border-left-color: var(--red); } .gcard.mid { border-left-color: #D7A64A; }
.gcard p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.gcard.done { box-shadow: none; opacity: .8; }
.watch { display: grid; gap: 5px; padding: 4px 0; }
.wbar { height: 8px; border-radius: 99px; background: #F3E6EB; overflow: hidden; }
.wbar i { display: block; height: 100%; border-radius: inherit; }

.hf-start { align-items: center; text-align: center; gap: 10px; padding: 28px 18px; }
.hf-orb { width: 112px; height: 112px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFDEEA, #FDA6C4 45%, #8B78C9 100%); color: var(--ink); box-shadow: 0 14px 34px rgba(139, 120, 201, .35); }
.hf-orb svg.ic { width: 40px; height: 40px; }
.hf-orb.live.listen { animation: hfpulse 1.4s ease-in-out infinite; }
.hf-orb.live.think { filter: saturate(.55); }
.hf-orb.live.off { opacity: .5; }
.hf { display: grid; justify-items: center; gap: 10px; }
.hf .chat { width: 100%; }
.hf-status { font-size: 16px; }
.hf-heard { min-height: 22px; color: var(--ink-2); font-size: 15px; text-align: center; }
@keyframes hfpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(253, 166, 196, .6); } 50% { box-shadow: 0 0 0 16px rgba(253, 166, 196, 0); } }
@media (prefers-reduced-motion: reduce) { .hf-orb.live.listen, .ip-mic.on { animation: none; } }
@media (max-width: 899px) { .interp, .quote-grid, .guard-grid { grid-template-columns: 1fr; } .ip { min-height: 0; } }
@media (max-width: 520px) { .ip-mic span { display: none; } .ip-mic { padding: 0 14px; } }
