:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e6e9f0;
  --brand: #ff5a3c;
  --brand-2: #7c3aed;
  --green: #12b76a;
  --amber: #f79009;
  --red: #f04438;
  --blue: #2e90fa;
  --sidebar: #14161f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; -webkit-font-smoothing: antialiased;
}
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

.layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: #c8ccda; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; font-weight: 800; }
.brand b { color: #fff; font-size: 15px; display: block; }
.brand span { font-size: 11px; color: #7d8398; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #6b7185; margin: 16px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; color: #c8ccda; font-size: 13px; margin-bottom: 2px; }
.nav-item:hover { background: #1f2230; color: #fff; }
.nav-item.active { background: linear-gradient(135deg, rgba(255,90,60,.9), rgba(124,58,237,.85)); color: #fff; font-weight: 600; }
.nav-item .pill { margin-left: auto; background: #2a2e3f; color: #c8ccda; border-radius: 99px; font-size: 10px; padding: 1px 7px; }
.nav-item.active .pill { background: rgba(255,255,255,.25); color: #fff; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 22px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 16px; margin: 0; }
.topbar .sub { color: var(--muted); font-size: 12px; }
.spacer { flex: 1; }
.conn { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 6px 11px; border-radius: 99px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(18,183,106,.18); }
.dot.off { background: var(--red); box-shadow: 0 0 0 3px rgba(240,68,56,.18); }
.kpi { text-align: right; }
.kpi b { font-size: 15px; }
.kpi span { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bell { position: relative; border: 1px solid var(--line); background: #fff; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.bell .count { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font-size: 10px; border-radius: 99px; padding: 1px 5px; font-weight: 700; }

.content { padding: 22px; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h2 { margin: 0; font-size: 19px; }
.page-head p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card h3 { margin: 0 0 12px; font-size: 14px; }
.card .hint { color: var(--muted); font-size: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat .label { color: var(--muted); font-size: 12px; }
.stat .delta { font-size: 11.5px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.badge.pending { background: #fff5e6; color: #b54708; }
.badge.preparing { background: #eaf3ff; color: #175cd3; }
.badge.ready { background: #ecfdf3; color: #027a48; }
.badge.served { background: #f4ebff; color: #6941c6; }
.badge.completed { background: #f2f4f7; color: #475467; }
.badge.cancelled { background: #fef3f2; color: #b42318; }
.badge.low { background: #fff5e6; color: #b54708; }
.badge.out { background: #fef3f2; color: #b42318; }
.badge.ok { background: #ecfdf3; color: #027a48; }
.badge.veg { background: #ecfdf3; color: #027a48; }
.badge.nonveg { background: #fef3f2; color: #b42318; }

.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 13px; border-radius: 10px; font-weight: 600; font-size: 12.5px; transition: .15s; }
.btn:hover { border-color: #cbd2e0; background: #fafbff; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #e94c2f; }
.btn.violet { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.ghost { background: transparent; }
.btn.tiny { padding: 5px 9px; font-size: 11.5px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 6px; }

.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; color: var(--ink); }
.input:focus { outline: 2px solid rgba(255,90,60,.25); border-color: var(--brand); }
label.field { display: block; font-size: 11.5px; color: var(--muted); margin: 8px 0 4px; font-weight: 600; }

.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.table-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; cursor: pointer; transition: .15s; text-align: left; }
.table-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.table-card.free { border-left: 4px solid var(--green); }
.table-card.occupied { border-left: 4px solid var(--amber); }
.table-card.sel { box-shadow: 0 0 0 2px var(--brand); }
.table-card .tname { font-weight: 800; font-size: 16px; }
.table-card .tmeta { color: var(--muted); font-size: 11.5px; margin-top: 4px; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.dish { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.dish .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.dish .name { font-weight: 700; font-size: 13.5px; }
.dish .desc { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.dish .price { font-weight: 800; color: var(--brand); white-space: nowrap; }
.dish.off { opacity: .55; }
.qtybox { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qtybox button { border: 0; background: #f7f8fc; width: 28px; height: 30px; font-weight: 800; }
.qtybox span { min-width: 28px; text-align: center; font-weight: 700; }

.cart-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.cart-item .nm { flex: 1; }
.totals { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.totals.grand { font-weight: 800; font-size: 16px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.column { background: #eef1f7; border-radius: var(--radius); padding: 12px; min-height: 200px; }
.column > h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.order-card .oc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.order-card .oc-head b { font-size: 13.5px; }
.order-card ul { margin: 6px 0; padding-left: 0; list-style: none; font-size: 12.5px; }
.order-card ul li { display: flex; justify-content: space-between; padding: 2px 0; color: #344054; }
.order-card .meta { color: var(--muted); font-size: 11.5px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 11.5px; }
.timer.warn { color: var(--amber); }
.timer.late { color: var(--red); }

.list { display: flex; flex-direction: column; gap: 10px; }
.list-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.list-row .grow { flex: 1; min-width: 0; }
.progress { height: 7px; background: #eef1f7; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; }

.bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin: 6px 0; }
.bar { flex: 1; height: 8px; background: #eef1f7; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--amber); }

.stars { color: var(--amber); letter-spacing: 1px; font-size: 15px; }
.stars .off { color: #d5d9e2; }

.mapwrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eaf1f8; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 26px 26px; }
.mapwrap svg { display: block; width: 100%; height: 420px; }
.map-legend { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 11.5px; }

.wa-phone { background: #0b141a; border-radius: 18px; padding: 14px; }
.wa-header { display: flex; align-items: center; gap: 10px; color: #e9edef; padding: 4px 6px 12px; border-bottom: 1px solid #222d34; }
.wa-header .avatar { width: 34px; height: 34px; border-radius: 50%; background: #00a884; display: grid; place-items: center; color: #fff; font-weight: 700; }
.wa-body { padding: 12px 4px; display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; background: #0b141a; }
.wa-bubble { background: #005c4b; color: #e9edef; border-radius: 10px 3px 10px 10px; padding: 9px 11px; font-size: 12.5px; line-height: 1.5; max-width: 82%; align-self: flex-end; white-space: pre-wrap; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.wa-bubble .wa-time { display: block; text-align: right; font-size: 10px; color: #8fb3a8; margin-top: 4px; }
.wa-to { font-size: 11px; color: #8696a0; align-self: flex-end; }

.toast-wrap { position: fixed; right: 18px; top: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; width: 330px; }
.toast { background: #14161f; color: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); border-left: 4px solid var(--brand); animation: slidein .25s ease; }
.toast .tt { font-weight: 700; font-size: 12.5px; }
.toast .tm { font-size: 11.5px; color: #c8ccda; margin-top: 3px; white-space: pre-wrap; }
.toast.stock { border-left-color: var(--amber); }
.toast.review { border-left-color: var(--brand-2); }
.toast.delivery { border-left-color: var(--blue); }
.toast.payment { border-left-color: var(--green); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.empty { text-align: center; color: var(--muted); padding: 32px 12px; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.mono { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.tag { font-size: 11px; background: #eef1f7; border-radius: 7px; padding: 2px 8px; color: #475467; }
.flexcol { display: flex; flex-direction: column; }

.pubmenu { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pubmenu .crest { text-align: center; border-bottom: 2px dashed var(--line); padding-bottom: 16px; margin-bottom: 8px; }
.pubmenu .crest h2 { margin: 0; font-size: 26px; letter-spacing: .02em; }
.pubmenu .crest p { color: var(--muted); margin: 4px 0 0; }
.cat-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin: 22px 0 10px; font-weight: 800; }
.dish-line { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dotted var(--line); }
.dish-line .n { font-weight: 600; }
.dish-line .d { color: var(--muted); font-size: 11.5px; }
.dish-line .dots { flex: 1; border-bottom: 1px dotted #cfd5e2; transform: translateY(-3px); }
.dish-line .p { font-weight: 800; }

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: -260px; transition: .2s; width: 248px; }
  .sidebar.open { left: 0; }
  .cols-2, .cols-3, .cols-4, .kanban { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-grid !important; }
  .content { padding: 14px; }
}
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 38px; height: 38px; place-items: center; }

.notif-panel { position: absolute; right: 0; top: 46px; width: 360px; max-height: 460px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 60; padding: 10px; }
.notif-item { padding: 9px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 7px; }

.avatar-sq { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; flex: none; }

.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.seat-table { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; transition: .15s; }
.seat-table:hover { border-color: var(--brand); transform: translateY(-1px); }
.seat-table.busy { border-left: 4px solid var(--amber); }
.seat-table.open { border-left: 4px solid var(--green); }
.seat-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 8px; }
.seat { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #cfd5e2; background: #fff; display: inline-block; }
.seat.filled { background: var(--brand); border-color: var(--brand); }
.seat.reserved { background: var(--amber); border-color: var(--amber); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-right: 14px; }
.legend i.seat { width: 13px; height: 13px; }

.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: #fafbff; }
table.data td.mono { font-variant-numeric: tabular-nums; }

.badge.violet { background: #f3ecff; color: var(--brand-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }

.intake-overlay { position: fixed; inset: 0; background: rgba(16, 24, 40, .55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 999; padding: 18px; overflow: auto; }
.intake-card { background: #fff; border-radius: 18px; padding: 26px 26px 22px; width: 100%; max-width: 470px; box-shadow: 0 24px 60px rgba(16,24,40,.35); animation: pop .28s ease; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.intake-card h2 { margin: 6px 0 4px; }
.intake-card .field { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 14px 0 5px; }
.intake-card .input { width: 100%; }
.intake-avatar { font-size: 34px; line-height: 1; }
.intake-brand { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--brand, #ff5a3c); }
.recover-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.recover-ring { width: 46px; height: 46px; border-radius: 50%; background: #eef2ff; display: grid; place-items: center; font-size: 22px; animation: ring 1.4s ease-in-out infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,.45); } 50% { box-shadow: 0 0 0 10px rgba(124,58,237,0); } }
.recover-reason { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }

.face-wrap { display: grid; gap: 12px; }
.face-stage { position: relative; background: #0b0d14; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.face-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.face-frame { position: absolute; width: 52%; height: 62%; border: 2px dashed rgba(255,255,255,.55); border-radius: 140px; pointer-events: none; }
.face-controls { display: grid; gap: 8px; }
.face-controls .btn { width: auto; }

.demo-card { background: linear-gradient(135deg, #fff8f5, #f8f5ff); border-color: #ffd9cf; }
.wa-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(11, 20, 26, .68); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 18px; overflow: auto; }
.wa-modal { background: #fff; border-radius: 18px; width: 100%; max-width: 900px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: pop .24s ease; }
.wa-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wa-demo-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.wa-demo-side { display: flex; flex-direction: column; gap: 10px; }
.wa-demo-step { display: flex; gap: 10px; align-items: flex-start; background: #f7f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 12.5px; }
.wa-demo-step > b { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 11px; }
.wa-bill { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 12px; }
.wa-bill-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; color: #344054; }
.wa-bill-total { display: flex; justify-content: space-between; font-weight: 800; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.wa-hint { font-size: 11.5px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 9px 10px; }
.wa-phone { background: #0b141a; border-radius: 18px; padding: 14px; }
.wa-header .wa-contact { display: flex; flex-direction: column; line-height: 1.3; }
.wa-header .wa-contact b { font-size: 13px; color: #e9edef; }
.wa-header .wa-contact span { font-size: 10.5px; color: #8696a0; }
.wa-header-badge { margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #00a884; border: 1px solid #00a884; border-radius: 99px; padding: 2px 7px; }
.wa-body { padding: 12px 4px; display: flex; flex-direction: column; gap: 9px; max-height: 500px; overflow-y: auto; background: #0b141a; }
.wa-day { align-self: center; font-size: 10px; color: #8696a0; background: #182229; border-radius: 7px; padding: 3px 9px; }
.wa-msg { max-width: 84%; padding: 8px 10px 6px; border-radius: 9px; font-size: 12.3px; line-height: 1.5; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.wa-msg.in { align-self: flex-start; background: #202c33; color: #e9edef; border-top-left-radius: 3px; }
.wa-msg.out { align-self: flex-end; background: #005c4b; color: #e9edef; border-top-right-radius: 3px; }
.wa-sender { font-size: 10px; font-weight: 700; color: #00a884; margin-bottom: 2px; }
.wa-text { white-space: pre-wrap; }
.wa-meta { display: block; text-align: right; font-size: 9.5px; color: #8fb3a8; margin-top: 3px; }
.wa-link { display: block; margin-top: 6px; border: 0; background: transparent; padding: 0; color: #53bdeb; font-weight: 700; font-size: 12px; text-decoration: underline; }
.wa-sheet { background: #111b21; border: 1px solid #2a3942; border-radius: 12px; padding: 11px; display: flex; flex-direction: column; gap: 7px; }
.wa-sheet-title { color: #e9edef; font-weight: 700; font-size: 12.5px; }
.wa-sheet .small { color: #8696a0; }
.wa-sheet .input { background: #202c33; border-color: #2a3942; color: #e9edef; font-size: 12px; }
.wa-stars { display: flex; gap: 4px; justify-content: center; margin: 4px 0; }
.wa-star { background: transparent; border: 0; font-size: 27px; line-height: 1; color: #3b4a54; padding: 2px 4px; }
.wa-star.on { color: #f7b928; }
.wa-rating-label { text-align: center; color: #e9edef; font-size: 11.5px; }
.wa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-chip { background: #202c33; border: 1px solid #2a3942; color: #d1d7db; border-radius: 99px; padding: 5px 10px; font-size: 11.5px; }
.wa-chip:hover { border-color: #00a884; color: #fff; }
.wa-note { align-self: center; font-size: 10.5px; color: #8696a0; text-align: center; background: #182229; border-radius: 8px; padding: 5px 10px; }
.wa-inputbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #202c33; color: #8696a0; border-radius: 99px; padding: 9px 13px; font-size: 11.5px; margin-top: 8px; }
.wa-send { color: #00a884; font-size: 15px; }
.wa-chat-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.wa-chat-item:hover { border-color: #cbd2e0; }
.wa-chat-item.sel { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(255,90,60,.14); }
.wa-chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: #00a884; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.wa-chat-main { flex: 1; min-width: 0; }
.wa-chat-last { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-rule { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 11.5px; }
.wa-rule:last-child { border-bottom: 0; }
.wa-rule b { font-size: 12px; }
.wa-rule span { color: var(--muted); }
.wa-modal .wa-body { max-height: 520px; }
@media (max-width: 820px) {
  .wa-demo-grid { grid-template-columns: 1fr; }
  .wa-modal { padding: 14px; }
}

.face-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(11,13,20,.65); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.face-controls .btn:disabled { opacity: .5; cursor: not-allowed; }
.route-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fff; }
.route-row:last-child { margin-bottom: 0; }
