:root {
  --brand: #db2777;
  --brand-700: #9d174d;
  --brand-50: #fdf2f8;
  --brand-100: #fce7f3;
  --ring: rgba(219, 39, 119, .45);
  --bg: #f4f4f5;
  --card: #ffffff;
  --text: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --soft: #f4f4f5;
  --ok: #16a34a;
  --ok-50: #f0fdf4;
  --warn: #b45309;
  --warn-50: #fffbeb;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 4px 16px rgba(24, 24, 27, .06);
  --shadow-lg: 0 12px 40px rgba(24, 24, 27, .14);
}
body.food, .c-food {
  --brand: #ea580c;
  --brand-700: #9a3412;
  --brand-50: #fff7ed;
  --brand-100: #ffedd5;
  --ring: rgba(234, 88, 12, .45);
}
body.barber, .c-barber {
  --brand: #1e3a8a;
  --brand-700: #172554;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --ring: rgba(30, 58, 138, .45);
}
.c-salon {
  --brand: #db2777;
  --brand-700: #9d174d;
  --brand-50: #fdf2f8;
  --brand-100: #fce7f3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.ic { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; }
.ic svg { width: 100%; height: 100%; }

.demo-bar {
  background: #18181b;
  color: #d4d4d8;
  font-size: 12px;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
}
.demo-note { display: flex; gap: 8px; align-items: center; min-width: 0; }
.demo-note b { background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 8px; font-weight: 600; white-space: nowrap; }
.views { display: flex; gap: 10px; align-items: center; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.views::-webkit-scrollbar { display: none; }
.views .home { color: #a1a1aa; text-decoration: none; white-space: nowrap; }
.seg { display: flex; background: #27272a; border-radius: 999px; padding: 3px; gap: 2px; }
.seg a { color: #d4d4d8; text-decoration: none; padding: 4px 12px; border-radius: 999px; white-space: nowrap; font-weight: 500; }
.seg a[aria-current="page"] { background: #fff; color: #18181b; }

.app { max-width: 440px; margin: 0 auto; background: var(--bg); min-height: 100vh; position: relative; }
@media (min-width: 600px) {
  body.phone { background: radial-gradient(circle at 15% 0%, var(--brand-100), transparent 45%), #e9e9ec; }
  body.phone .app { margin: 28px auto; min-height: 0; border-radius: 28px; box-shadow: var(--shadow-lg); overflow: clip; }
}

.cover { height: 170px; overflow: hidden; }
.cover svg { width: 100%; height: 100%; display: block; }
.shop { background: var(--card); margin: -32px 12px 0; position: relative; border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.shop-top { display: flex; gap: 12px; align-items: center; }
.logo { width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 22px; flex: 0 0 auto; }
.shop-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.star { color: #f59e0b; font-weight: 600; }
.open { color: var(--ok); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-50); color: var(--brand-700); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; }
.chip .ic { width: 14px; height: 14px; }

.sec { padding: 22px 16px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 36%; scroll-snap-align: start; }
.gallery svg { width: 100%; height: auto; display: block; border-radius: 14px; }
.gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

.stepper { display: flex; gap: 6px; margin-bottom: 16px; }
.stepper div { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.stepper div::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.stepper .done::before, .stepper .on::before { background: var(--brand); }
.stepper .on { color: var(--text); font-weight: 600; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 36px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; flex: 0 0 auto; padding: 0; }
.list { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 1.5px solid transparent; border-radius: var(--r);
  padding: 14px; box-shadow: var(--shadow); transition: border-color .15s, background .15s;
}
.choice[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-50); }
.choice:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; background: var(--soft); }
.choice-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.choice-icon .ic { width: 22px; height: 22px; }
.choice-main { flex: 1; min-width: 0; }
.choice-title { font-weight: 600; }
.choice-sub { font-size: 13px; color: var(--muted); line-height: 1.45; }
.choice-end { font-weight: 700; white-space: nowrap; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; }
.choice[aria-pressed="true"] .radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px #fff; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; flex: 0 0 auto; }
.avatar .ic { width: 22px; height: 22px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--soft); color: var(--muted); vertical-align: 2px; line-height: 1.5; }
.badge.brand { background: var(--brand); color: #fff; }
.badge.warn { background: #fef3c7; color: var(--warn); }
.label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 8px; }
.label:first-of-type { margin-top: 0; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date-chip { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); }
.date-chip .dow { font-size: 12px; color: var(--muted); }
.date-chip .dnum { font-size: 20px; font-weight: 700; line-height: 1.25; }
.date-chip .dmon { font-size: 11px; color: var(--muted); }
.date-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.date-chip[aria-pressed="true"] span { color: #fff; }
.time-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.time-chip { padding: 9px 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.time-chip small { font-size: 11px; font-weight: 500; color: var(--muted); }
.time-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.time-chip[aria-pressed="true"] small { color: #fff; }
.time-chip:disabled { background: var(--soft); color: #a1a1aa; border-color: transparent; cursor: not-allowed; }
.time-chip:disabled span { text-decoration: line-through; }

.cta-bar {
  position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); margin: 22px -16px 0;
}
.cta-info { flex: 1; min-width: 0; }
.cta-info .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-price { font-size: 18px; font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px;
  padding: 13px 20px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
  text-align: center; transition: transform .1s, background .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { background: #d4d4d8; color: #fff; cursor: not-allowed; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: var(--card); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.sm { padding: 9px 14px; border-radius: 12px; font-size: 14px; }
.btn .ic { width: 18px; height: 18px; }
.btn-stack { display: grid; gap: 10px; margin-top: 16px; }

.card { background: var(--card); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.card + .card, .notice + .card, .card + .notice { margin-top: 12px; }
.card-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.info-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row > .ic { color: var(--brand); width: 18px; height: 18px; }
.info-row .k { color: var(--muted); font-size: 13px; flex: 0 0 auto; }
.info-row .v { margin-left: auto; text-align: right; font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 2px; border-top: 1.5px dashed var(--line); font-weight: 600; }
.total b { font-size: 20px; color: var(--brand); }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-50); color: #78350f; border-radius: 14px; padding: 12px; font-size: 13px; margin-bottom: 12px; }
.notice .ic { color: var(--warn); width: 18px; height: 18px; margin-top: 1px; }
.notice.brand { background: var(--brand-50); color: var(--brand-700); }
.notice.brand .ic { color: var(--brand); }
.success-hero { text-align: center; padding: 8px 0 18px; }
.check-anim { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 0 0 10px var(--ok-50); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.check-anim .ic { width: 40px; height: 40px; }
.success-hero h2 { font-size: 22px; }
.code { display: inline-block; margin-top: 10px; font-family: ui-monospace, Menlo, monospace; background: var(--card); box-shadow: var(--shadow); border-radius: 8px; padding: 3px 12px; font-size: 13px; }
@keyframes pop { from { transform: scale(.85); } to { transform: none; } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 20px 16px 8px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .row { display: flex; gap: 10px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (min-width: 820px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .muted { display: block; }
.kpi b { font-size: 22px; display: block; margin-top: 2px; }
.kpi.hl { background: var(--brand); color: #fff; }
.kpi.hl .muted { color: rgba(255, 255, 255, .85); }
.owner-layout { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .owner-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .owner-layout aside { position: sticky; top: 16px; }
}
.sched { display: grid; grid-template-columns: 44px repeat(3, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: 64px; column-gap: 6px; }
.sched .head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 12px; font-size: 13px; font-weight: 600; text-align: center; }
.sched .head .avatar { width: 34px; height: 34px; font-size: 14px; }
.sched .h { font-size: 12px; color: var(--muted); transform: translateY(-9px); }
.sched .cell { border-top: 1px solid var(--line); }
.appt {
  margin: 3px 0; border: 0; border-left: 4px solid var(--c); border-radius: 10px; background: var(--t);
  padding: 5px 8px; text-align: left; font-size: 12px; line-height: 1.3; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; position: relative;
}
.appt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c); }
.appt.is-new { background: var(--c); color: #fff; animation: ring 1.6s ease-out 3; }
.appt.is-new span { color: rgba(255, 255, 255, .88); }
.appt.is-new .badge { background: #fff; color: var(--c); align-self: flex-start; font-size: 10px; padding: 0 6px; margin-bottom: 1px; }
.appt.is-new[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 var(--ring); } 100% { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); } }
.sched-card { overflow-x: auto; }
.detail-head .avatar { background: var(--brand-100); color: var(--brand); }
.note { background: var(--warn-50); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 12px; }
.note .muted { display: block; color: var(--warn); font-weight: 600; margin-bottom: 2px; }
.empty { text-align: center; padding: 24px 8px; color: var(--muted); font-size: 14px; }
.empty .ic { width: 40px; height: 40px; color: #d4d4d8; margin-bottom: 8px; }
.empty p + p { margin-top: 4px; }

.thanks { background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; padding: 28px 20px 64px; }
.thanks p { opacity: .85; }
.thanks h1 { font-size: 24px; margin: 2px 0 4px; }
.pull { margin-top: -44px; padding: 0 12px; position: relative; }
.stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0 10px; }
.stamp { height: 48px; width: 48px; max-width: 100%; justify-self: center; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; color: #a1a1aa; font-size: 12px; font-weight: 600; }
.stamp.on { border: 0; background: var(--brand); color: #fff; }
.stamp .ic { width: 22px; height: 22px; }
.stamp.just { animation: stamp .6s cubic-bezier(.2, 1.6, .4, 1); }
.stamp.gift { border-color: var(--brand); color: var(--brand); }
@keyframes stamp { 0% { transform: scale(2.2) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.visits-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.visits-line b { font-size: 20px; color: var(--brand); }
.tips { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; counter-reset: t; }
.tips li { display: flex; gap: 12px; counter-increment: t; font-size: 14px; }
.tips li::before { content: counter(t); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.tips b { display: block; font-size: 15px; }
.tips span { color: var(--muted); }
.next-slot { display: flex; gap: 12px; align-items: center; background: var(--brand-50); border-radius: 14px; padding: 12px; margin: 12px 0; }
.next-slot > .ic { color: var(--brand); width: 24px; height: 24px; }

.dish { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.dish-art { width: 76px; height: 76px; flex: 0 0 76px; }
.dish-art svg { width: 100%; height: 100%; display: block; border-radius: 14px; }
.dish-info { flex: 1; min-width: 0; }
.dish-info p { font-size: 12px; color: var(--muted); margin: 2px 0 4px; line-height: 1.45; }
.price { font-weight: 700; }
.pick-note { margin: -4px 0 10px; }
.add { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px var(--ring); flex: 0 0 auto; padding: 0; }
.qty { display: flex; align-items: center; gap: 2px; background: var(--brand-50); border-radius: 999px; padding: 3px; flex: 0 0 auto; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow); padding: 0; }
.qty output { min-width: 24px; text-align: center; font-weight: 700; }
.add .ic, .qty .ic { width: 18px; height: 18px; }
.cart-icon { position: relative; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.cart-icon i { position: absolute; top: -5px; right: -5px; background: var(--brand); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.track-head { text-align: center; padding: 4px 0 6px; }
.queue { font-size: 46px; font-weight: 700; color: var(--brand); letter-spacing: .02em; line-height: 1.15; }
.track-head h2 { margin: 6px 0 2px; }
.timeline { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: #a1a1aa; display: grid; place-items: center; flex: 0 0 auto; font-size: 12px; font-weight: 700; }
.timeline .dot .ic { width: 16px; height: 16px; }
.timeline .done .dot { background: var(--ok); color: #fff; }
.timeline .done::after { background: var(--ok); }
.timeline .now .dot { background: var(--brand); color: #fff; animation: pulse 1.6s infinite; }
.timeline .now b { color: var(--brand); }
.timeline b { display: block; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--brand-100); } 50% { box-shadow: 0 0 0 9px var(--brand-50); } }
.ready-banner { display: flex; gap: 10px; align-items: center; background: var(--ok); color: #fff; border-radius: 14px; padding: 12px 14px; font-weight: 600; margin-bottom: 12px; animation: pop .4s ease; }

body.kitchen { --bg: #0a0a0b; --card: #18181b; --text: #fafafa; --muted: #a1a1aa; --line: #3f3f46; --soft: #27272a; --shadow: none; }
body.kitchen .btn.ghost { background: transparent; }
.clock { font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 700; }
.k-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (min-width: 720px) { .k-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.k-tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.k-tile b { font-size: 28px; line-height: 1.2; }
.bar { height: 6px; border-radius: 3px; background: var(--soft); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.k-tile.full .bar i { background: #ef4444; }
.k-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; align-items: start; }
.k-col { background: #131316; border: 1px solid #27272a; border-radius: 16px; padding: 12px; }
.k-col h3 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.k-col.shelf { background: #052e16; border-color: #166534; }
.count { background: var(--soft); border-radius: 999px; padding: 0 10px; font-size: 13px; color: var(--muted); }
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.ticket:last-child { margin-bottom: 0; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #27272a; font-weight: 700; }
.ticket.is-new { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); animation: pop .5s ease; }
.ticket.is-new .ticket-head { background: var(--brand); color: #fff; }
.ticket.is-new .badge.brand { background: #fff; color: var(--brand); }
.ticket ul { list-style: none; margin: 0; padding: 8px 12px; }
.ticket li { display: flex; gap: 8px; padding: 3px 0; font-size: 15px; }
.ticket li b { color: var(--brand); min-width: 28px; }
.bump { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 24px); margin: 0 12px 12px; border: 0; border-radius: 10px; padding: 10px; background: var(--ok); color: #fff; font-weight: 700; }
.bump .ic { width: 18px; height: 18px; }
.shelf .ticket-head { background: #14532d; }
.k-col .empty { padding: 14px 0; }

.hero { background: radial-gradient(circle at 12% 20%, #fce7f3, transparent 45%), radial-gradient(circle at 88% 30%, #ffedd5, transparent 45%), #fff; padding: 48px 16px 56px; text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px; }
.hero h1 { font-size: 28px; max-width: 640px; margin: 0 auto 10px; }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.demo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 1120px; margin: -24px auto 0; padding: 0 16px 8px; }
@media (min-width: 720px) { .hero h1 { font-size: 34px; } }
.demo-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.demo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.demo-card > svg { display: block; width: 100%; height: auto; }
.demo-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.feat { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 6px; font-size: 14px; }
.feat li { padding-left: 24px; position: relative; }
.feat li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.demo-card .btn { margin-top: auto; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 16px 28px; }

.btn-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 0; }
.btn.danger { background: #dc2626; }
.btn.ghost.danger { background: var(--card); color: #dc2626; box-shadow: inset 0 0 0 1.5px #fca5a5; }
.btn.ok { background: var(--ok); }
.badge.ok { background: #dcfce7; color: #15803d; }
.small-gap { margin-top: 10px; }
.link-btn { border: 0; background: none; color: var(--brand); font-weight: 600; padding: 0; font-size: 14px; }
.confirm { border: 1.5px solid #fecaca; }
.confirm h3 { margin-bottom: 4px; }
.check-anim.gray { background: #a1a1aa; box-shadow: 0 0 0 10px var(--soft); }

.choice.is-full { background: var(--soft); box-shadow: none; cursor: default; }
.choice.is-full .avatar { opacity: .6; }
.wait-btn { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; border: 1.5px solid var(--brand); color: var(--brand); background: var(--card); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.wait-btn .ic { width: 14px; height: 14px; }
.wait-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }

.chat { background: #e6ecf2; border-radius: var(--r-lg); padding: 12px; margin-top: 12px; display: grid; gap: 8px; }
.chat-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.chat-head .ic { width: 16px; height: 16px; }
.bubble { background: #fff; border-radius: 4px 16px 16px 16px; padding: 10px 12px; font-size: 14px; white-space: pre-line; max-width: 92%; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.bubble small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; white-space: normal; }

.pay { text-align: center; }
.pay-amount { font-size: 34px; font-weight: 700; color: var(--brand); line-height: 1.2; margin-bottom: 12px; }
.qr { width: 180px; margin: 0 auto 8px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.qr svg { width: 100%; height: auto; display: block; }
.pay-rows { text-align: left; margin: 8px 0 12px; }
.pay .notice { text-align: left; }

.notif { margin-bottom: 16px; }
.notif-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.notif-item .grow > .muted { white-space: normal; }
.notif-item > .muted { white-space: nowrap; font-size: 12px; }
.notif-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--soft); color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; }
.notif-ic .ic { width: 18px; height: 18px; }
.notif-item.brand .notif-ic { background: var(--brand-50); color: var(--brand); }
.notif-item.warn .notif-ic { background: #fee2e2; color: #dc2626; }
.pill { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.pill.st-arrived { background: #dbeafe; color: #1d4ed8; }
.pill.st-done { background: #dcfce7; color: #15803d; }
.pill.st-noshow { background: #fee2e2; color: #b91c1c; }
.appt .badge { background: #fff; color: var(--c); align-self: flex-start; font-size: 10px; padding: 0 6px; margin-bottom: 1px; }
.appt.st-done { opacity: .7; }
.appt.st-noshow { opacity: .45; }
.appt.st-noshow b { text-decoration: line-through; }
.appt.st-arrived { box-shadow: inset 0 0 0 2px var(--c); }
.history { background: var(--soft); border-radius: 12px; padding: 4px 12px; margin-top: 12px; }
.history-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding-top: 8px; color: var(--muted); }
.history-head .ic { width: 16px; height: 16px; }
.history .info-row { padding: 6px 0; font-size: 13px; }
.status-note { margin-top: 12px; font-size: 13px; background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.field { display: grid; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field select { font: inherit; font-weight: 500; color: var(--text); padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); }

.stars { display: flex; gap: 6px; margin: 12px 0; }
.stars > button, .stars > span { border: 0; background: none; padding: 0; color: #d4d4d8; }
.stars .ic { width: 36px; height: 36px; }
.stars .on { color: #f59e0b; }
.stars .on svg { fill: currentColor; }
.stars.static .ic { width: 24px; height: 24px; }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tchip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.tchip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.next-empty { margin: 8px 0 12px; }

.report-grid { display: grid; gap: 12px; }
@media (min-width: 820px) { .report-grid { grid-template-columns: 1fr 1fr; } .report-grid .wide { grid-column: 1 / -1; } }
.report-grid .card + .card { margin-top: 0; }
.vbars { display: flex; gap: 8px; height: 180px; align-items: stretch; }
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.vb-val { font-size: 12px; font-weight: 700; height: 16px; white-space: nowrap; }
.vb-track { flex: 1; width: 100%; max-width: 32px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.vb-track i { display: block; width: 100%; background: var(--brand-100); border-radius: 4px 4px 0 0; }
.vbar.today .vb-track i { background: var(--brand); }
.vbar:hover .vb-track i { filter: brightness(.92); }
.vb-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 112px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; }
.hb-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-track { height: 12px; background: var(--soft); border-radius: 0 4px 4px 0; overflow: hidden; }
.hb-track i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.hb-track i.mute { background: #a1a1aa; }
.hb-val { text-align: right; font-weight: 600; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.rating .ic { width: 16px; height: 16px; color: #f59e0b; }
.rating .ic svg { fill: currentColor; }
.reviews { display: grid; gap: 10px; }
@media (min-width: 820px) { .reviews { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.review { background: var(--soft); border-radius: 14px; padding: 12px; font-size: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stars-mini { color: #f59e0b; letter-spacing: 1px; font-size: 13px; }

.dish.soldout { opacity: .55; }
.dish.soldout .dish-art { filter: grayscale(1); }
.pay-head { margin-top: 18px; }

.k-alert { display: flex; align-items: center; gap: 8px; background: #7f1d1d; color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-weight: 600; }
.k-tile.hl { background: var(--brand); border-color: var(--brand); }
.k-tile.hl .muted { color: rgba(255, 255, 255, .85); }
@media (min-width: 1000px) { .k-sum { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kstat { font-size: 12px; font-weight: 600; color: var(--muted); }
.ks-cooking .ticket-head { background: #78350f; }
.ks-cooking .kstat { color: #fde68a; }
.tnotes { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.tnotes span { background: #422006; color: #fde68a; border-radius: 6px; padding: 1px 8px; font-size: 13px; font-weight: 600; }
.tpay { padding: 0 12px 10px; font-size: 13px; font-weight: 600; }
.tpay.paid { color: #4ade80; }
.tpay.shop { color: #fbbf24; }
.bump.b-wait { background: #b45309; }
.bump.b-ready { background: #3f3f46; }
.k-menu { margin-top: 16px; }
.menu-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.switch { width: 46px; height: 28px; border-radius: 14px; border: 0; background: #52525b; padding: 3px; flex: 0 0 auto; display: flex; transition: background .2s; }
.switch i { width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--ok); }
.switch.on i { transform: translateX(18px); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.slip { text-align: left; }
.slip label.btn { cursor: pointer; }
.slip-samples { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 10px; font-size: 13px; }
.link-btn.danger { color: #dc2626; }
.slip-file { display: flex; gap: 12px; align-items: center; background: var(--soft); border-radius: 14px; padding: 10px; }
.slip-thumb { width: 44px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--card); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.slip-checks { display: grid; gap: 8px; margin: 12px 0; }
.slip-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.slip-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid var(--line); }
.slip-dot .ic { width: 14px; height: 14px; }
.slip-check.wait .slip-dot { border-top-color: var(--brand); animation: spin .8s linear infinite; }
.slip-check.pass { color: var(--text); }
.slip-check.pass .slip-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.slip-check.fail { color: #b91c1c; font-weight: 600; }
.slip-check.fail .slip-dot { background: #dc2626; border-color: #dc2626; color: #fff; }
.slip-result { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.slip-result.pass { background: var(--ok-50); color: #166534; }
.slip-result.fail { background: #fef2f2; color: #b91c1c; }
@keyframes spin { to { transform: rotate(360deg); } }
