/* PIXBN back office (by Pixberry): navy + royal blue */
:root {
  --bg: #f4f7fc; --surface: #ffffff; --surface-2: #eef3fb; --surface-3: #e2eaf7; --line: #dde5f1; --line-2: #c4d1e5;
  --fg: #0b1b33; --muted: #4a5a77; --faint: #7a88a2;
  --violet: #2563eb; --violet-2: #1d4ed8; --violet-soft: #e8effd; --side: #0b1b33; --side-2: #16294a; --side-ink: #e8eef8; --side-muted: #93a4c2;
  --pista: #2563eb; --pista-2: #1d4ed8; --pista-soft: #e8effd; --pista-ink: #ffffff;
  --ok: #15803d; --ok-soft: #e3f5e9; --warn: #a75f00; --warn-soft: #fff1d6; --bad: #c62a3a; --bad-soft: #fde7e9; --info: #2563eb;
  --radius: 14px; --shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 6px 20px rgba(11, 27, 51, .07);
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #08111f; --surface: #0f1b2e; --surface-2: #15243b; --surface-3: #1c2f4b; --line: #22375a; --line-2: #33507d;
  --fg: #eef3fb; --muted: #b3c2da; --faint: #7f90ad; --violet: #6ea0ff; --violet-2: #8db4ff; --violet-soft: #162b4d; --side: #050c18; --side-2: #10203a;
  --pista: #3b82f6; --pista-2: #60a5fa; --pista-soft: #162b4d; --pista-ink: #ffffff;
  --ok: #4ade80; --ok-soft: #12301f; --warn: #f0b350; --warn-soft: #3a2c12; --bad: #ff8fa3; --bad-soft: #43182a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--violet); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
.num { font-variant-numeric: tabular-nums; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.narrow { width: min(440px, 100%); }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; }
.mark { width: 38px; height: 38px; border-radius: 11px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 1px 3px rgba(11,27,51,.18); }
.mark svg { width: 24px; height: 24px; display: block; }
.wordmark { font-weight: 800; letter-spacing: .02em; }
.byline { color: var(--side-muted); font-size: 11.5px; }
.brand b { display: block; font-size: 15px; line-height: 1.2; } .brand small { color: var(--side-muted); font-size: 12px; }
.nav-grp { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); padding: 14px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--side-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: var(--side-2); }
.nav a.on { background: var(--pista); color: var(--pista-ink); }
.nav a.on svg { opacity: 1; }
.nav .badge { margin-left: auto; background: #ff5a6e; color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 800; }
.side .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--side-2); display: grid; gap: 6px; font-size: 13px; color: var(--side-muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .in { display: flex; align-items: center; gap: 10px; padding: 12px 20px; }
.top h1 { flex: 1; min-width: 0; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kbd-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; font: 500 13.5px var(--font); }
.kbd { font: 600 11px var(--font); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; color: var(--faint); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
#view { padding: 20px; max-width: 1440px; width: 100%; }
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-105%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 5, 20, .45); }
  .menu-btn { display: grid; }
  .kbd-btn .lbl, .kbd-btn .kbd { display: none; }
  #view { padding: 14px 14px 90px; }
}

/* ---------- primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .g3, .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .g2 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 40px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); font: 14.5px var(--font); }
textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--violet); }
input[type=color] { padding: 3px; height: 40px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--fg); font-weight: 500; font-size: 14px; }
.btn { min-height: 40px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); font: 700 14px var(--font); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--pista); border-color: var(--pista); color: var(--pista-ink); } .btn.primary:hover { background: var(--pista-2); }
.btn.violet { background: var(--violet); border-color: var(--violet); color: #fff; } .btn.violet:hover { background: var(--violet-2); }
:root[data-theme="dark"] .btn.violet { color: #08111f; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); background: transparent; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.lg { min-height: 50px; font-size: 15.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 700 13.5px var(--font); padding: 7px 13px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.hint, .muted { color: var(--muted); font-size: 13px; } .faint { color: var(--faint); }
.banner { padding: 11px 14px; border-radius: 11px; font-size: 13.5px; } .banner.ok { background: var(--ok-soft); color: var(--ok); } .banner.bad { background: var(--bad-soft); color: var(--bad); } .banner.info { background: var(--violet-soft); color: var(--violet); } .banner.warn { background: var(--warn-soft); color: var(--warn); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.new { background: var(--violet-soft); color: var(--violet); } .chip.preparing { background: var(--warn-soft); color: var(--warn); }
.chip.ready, .chip.paid, .chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.alert, .chip.cancelled { background: var(--bad-soft); color: var(--bad); }
.empty { text-align: center; color: var(--faint); padding: 28px 8px; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); border-top: 0; font-weight: 700; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--surface-2); }
.r { text-align: right; }
.diet { width: 12px; height: 12px; border: 1.5px solid #3f8f2a; border-radius: 3px; display: inline-grid; place-items: center; flex: none; }
.diet::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #3f8f2a; }
.diet.egg { border-color: #d38b00; } .diet.egg::after { background: #d38b00; } .diet.nonveg { border-color: #c62a3a; } .diet.nonveg::after { background: #c62a3a; }
.pic { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface-2); display: block; }
.pic img, .pic svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic.lg { width: 92px; height: 92px; border-radius: 14px; }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.kpi .l { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; color: var(--faint); }
.kpi .up { color: var(--ok); font-weight: 700; } .kpi .down { color: var(--bad); font-weight: 700; }
.kpi.hero { background: linear-gradient(135deg, var(--side) 0%, #1e3a8a 100%); color: #fff; border-color: transparent; }
.kpi.hero .l, .kpi.hero .d { color: #c9d6f0; } .kpi.hero .up { color: #86efac; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--faint); font: 600 10.5px var(--font); }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: #93b4f5; } .chart .bar.today { fill: var(--violet); }
.hbar { display: grid; grid-template-columns: minmax(90px, 170px) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.hbar .t { height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; } .hbar .t i { display: block; height: 100%; background: var(--violet); border-radius: 6px; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.quick a { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--surface-2); text-decoration: none; color: var(--fg); font-weight: 700; font-size: 14px; }
.quick a svg { width: 22px; height: 22px; color: var(--violet); }
.quick a:hover { background: var(--surface-3); }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pos { grid-template-columns: minmax(0, 1fr); } .ticket-panel { position: static; max-height: none; } }
#jumpBill { display: none; }
@media (max-width: 1100px) { #jumpBill:not([hidden]) { display: flex; justify-content: space-between; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; box-shadow: 0 8px 24px rgba(0,0,0,.25); } }
.pos-search { position: relative; }
.pos-search input { padding-left: 38px; min-height: 46px; border-radius: 12px; font-size: 15px; }
.pos-search svg { position: absolute; left: 12px; top: 14px; width: 18px; height: 18px; color: var(--faint); }
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.cats button { flex: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); padding: 7px 13px; border-radius: 999px; font: 700 13px var(--font); cursor: pointer; }
.cats button.on { background: var(--violet); color: #fff; border-color: var(--violet); }
:root[data-theme="dark"] .cats button.on { color: #08111f; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { position: relative; display: grid; grid-template-rows: 96px auto; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; padding: 0; color: var(--fg); font: inherit; transition: transform .08s, box-shadow .15s; }
.tile:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.tile:active { transform: scale(.98); }
.tile .ph { overflow: hidden; } .tile .ph img, .tile .ph svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .bd { padding: 8px 10px 10px; display: grid; gap: 2px; }
.tile .nm { font-weight: 700; font-size: 13.5px; line-height: 1.3; display: flex; gap: 6px; align-items: flex-start; }
.tile .pr { font-weight: 800; color: var(--violet); font-variant-numeric: tabular-nums; }
.tile .qty { position: absolute; top: 7px; right: 7px; min-width: 26px; height: 26px; border-radius: 999px; background: var(--pista); color: var(--pista-ink); font-weight: 800; display: grid; place-items: center; font-size: 13px; padding: 0 7px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.tile .stk { position: absolute; top: 7px; left: 7px; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.92); color: #1d4ed8; border-radius: 6px; padding: 1px 6px; }
.tile.out { opacity: .45; cursor: not-allowed; }
.ticket-panel { position: sticky; top: 76px; display: grid; gap: 12px; max-height: calc(100vh - 96px); overflow: auto; }
.lines { display: grid; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px dashed var(--line); }
.line:first-child { border-top: 0; }
.line .nm { font-weight: 600; font-size: 14px; } .line .sub { font-size: 12px; color: var(--faint); }
.line.sent .nm { color: var(--muted); }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.step button { width: 32px; height: 32px; border: 0; background: var(--surface-2); color: var(--fg); font: 800 16px var(--font); cursor: pointer; }
.step span { min-width: 30px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.totals { display: grid; gap: 4px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 22px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; letter-spacing: -.01em; }

/* ---------- floor ---------- */
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tcard { border-radius: 16px; padding: 14px; min-height: 118px; display: grid; align-content: space-between; gap: 6px; cursor: pointer; border: 2px solid var(--line); background: var(--surface); text-align: left; color: var(--fg); font: inherit; }
.tcard .lb { font-size: 22px; font-weight: 800; }
.tcard .st { font-size: 12.5px; font-weight: 700; color: var(--faint); }
.tcard .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.tcard.busy { border-color: var(--violet); background: var(--violet-soft); } .tcard.busy .st { color: var(--violet); }
.tcard.ready { border-color: var(--ok); background: var(--ok-soft); } .tcard.ready .st { color: var(--ok); }
.tcard.bill { border-color: var(--bad); background: var(--bad-soft); animation: pulse 1.6s infinite; } .tcard.bill .st { color: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--bad) 22%, transparent); } }
@media (prefers-reduced-motion: reduce) { .tcard.bill { animation: none; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- kitchen ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 900px) { .board { grid-template-columns: minmax(0, 1fr); } }
.colh { display: flex; justify-content: space-between; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 4px 4px 8px; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--violet); border-radius: 13px; padding: 13px; display: grid; gap: 8px; margin-bottom: 10px; box-shadow: var(--shadow); }
.ticket.preparing { border-left-color: var(--warn); } .ticket.ready { border-left-color: var(--pista-2); }
.ticket.late { background: var(--bad-soft); border-color: var(--bad); border-left-color: var(--bad); }
.ticket .where { font-size: 20px; font-weight: 800; }
.ticket ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.ticket li.old { color: var(--faint); text-decoration: line-through; }
.note { color: var(--bad); font-weight: 700; font-size: 13px; }

/* ---------- QR ---------- */
.qrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.qr { border: 2px solid var(--violet); border-radius: 18px; padding: 16px; text-align: center; display: grid; gap: 6px; justify-items: center; background: #fff; color: #0b1b33; }
.qr .code svg { width: 160px; height: 160px; display: block; }
.qr b { font-size: 20px; } .qr small { color: #4a5a77; word-break: break-all; font-size: 11px; }

/* ---------- modal, palette, toasts ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(15, 8, 30, .55); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 18px; padding: 20px; display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal.wide { width: min(760px, 100%); }
.palette { width: min(600px, 100%); align-self: start; margin-top: 10vh; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 56px; font-size: 16px; padding: 0 18px; }
.palette input:focus-visible { outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.palette li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.palette li.on { background: var(--violet-soft); color: var(--violet); }
.palette li small { color: var(--faint); font-weight: 500; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-methods button { min-height: 58px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--surface); font: 800 15px var(--font); color: var(--fg); cursor: pointer; }
.pay-methods button.on { border-color: var(--violet); background: var(--violet-soft); color: var(--violet); }
.upi-box { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; background: var(--surface-2); border-radius: 14px; padding: 12px; }
.upi-box .code { background: #fff; border-radius: 10px; padding: 6px; } .upi-box svg { width: 138px; height: 138px; display: block; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--side); color: var(--side-ink); padding: 11px 15px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 600; font-size: 14px; }
.toast.ok { background: var(--pista); color: var(--pista-ink); } .toast.bad { background: var(--bad); color: #fff; }
@media print { body * { visibility: hidden; } }

/* ---------- subscription ---------- */
#licBanner .banner { margin: 14px 20px 0; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: 12px; }
@media (max-width: 980px) { #licBanner .banner { margin: 12px 14px 0; } }
.lic-key { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; min-height: 96px; }
.lic-status { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.lic-status dt { color: var(--muted); font-weight: 600; } .lic-status dd { margin: 0; font-weight: 700; }

/* ---------- app-style home (launcher icons) ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 14px; box-shadow: var(--shadow); }
.app { display: grid; justify-items: center; gap: 9px; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 13.5px; text-align: center; padding: 6px 2px; border-radius: 14px; }
.app:hover { background: var(--surface-2); }
.app .ic { position: relative; width: 62px; height: 62px; border-radius: 19px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px -6px var(--c1, #3b82f6); background: linear-gradient(145deg, var(--c1, #3b82f6), var(--c2, #1d4ed8)); }
.app .ic svg { width: 28px; height: 28px; }
.app .ic .badge { position: absolute; top: -6px; right: -6px; background: #ff3d57; color: #fff; border-radius: 999px; font-size: 11.5px; font-weight: 800; padding: 1px 7px; border: 2px solid var(--surface); }
.app .lb { line-height: 1.25; }
.app.coral { --c1: #ff7b7b; --c2: #ea4b5d; } .app.teal { --c1: #2fd1c1; --c2: #13a39a; } .app.violet { --c1: #9b7cf0; --c2: #6a45c9; } .app.pink { --c1: #f59ad0; --c2: #d9579f; }
.app.rose { --c1: #ff9eb0; --c2: #e65f83; } .app.amber { --c1: #ffc25c; --c2: #e98b14; } .app.green { --c1: #a8d672; --c2: #6aaa2f; } .app.sky { --c1: #6cc4ff; --c2: #2f8fe0; }
.app.indigo { --c1: #8c95ff; --c2: #4f57d6; } .app.olive { --c1: #c8d46a; --c2: #8f9d2b; } .app.slate { --c1: #9aa3b8; --c2: #5f6880; }
.apps.mini { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); box-shadow: none; padding: 10px; }
.apps.mini .app { cursor: default; } .apps.mini .app:hover { background: none; }
.apps.mini .btn.sm { min-height: 26px; padding: 0 7px; }
@media (max-width: 560px) { .apps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 4px; padding: 14px 8px; } .app .ic { width: 54px; height: 54px; border-radius: 17px; } .app .ic svg { width: 24px; height: 24px; } .app { font-size: 12px; } }
.tstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tstat { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--fg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-left: 6px solid var(--line-2); }
.tstat b { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; } .tstat span { font-size: 13px; font-weight: 700; color: var(--muted); }
.tstat.free { border-left-color: var(--pista-2); } .tstat.occ { border-left-color: var(--violet); } .tstat.dirty { border-left-color: var(--warn); } .tstat.wait { border-left-color: #13a39a; }
.donut { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.donut svg { width: 150px; height: 150px; transform: rotate(0deg); }
.donut svg text { font: 800 7px var(--font); fill: var(--fg); } .donut svg text.s { font: 600 3.2px var(--font); fill: var(--faint); }
.donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.donut li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; } .donut li i { width: 12px; height: 12px; border-radius: 4px; }
@media (max-width: 420px) { .donut { grid-template-columns: 1fr; justify-items: center; } .donut ul { width: 100%; } }

/* ---------- table orders, cleaning ---------- */
.qo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .qo-list { grid-template-columns: minmax(0, 1fr); } }
.qo { border-left: 6px solid #13a39a; }
.qo .where { font-size: 20px; font-weight: 800; }
.qo-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 15px; }
.qo-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; } .qo-items li b { min-width: 28px; }
.tcard.dirty { border-color: var(--warn); background: var(--warn-soft); } .tcard.dirty .st { color: var(--warn); }
.ti { width: 16px; height: 16px; vertical-align: -3px; color: var(--violet); }

/* ---------- phone: bottom tab bar like an app ---------- */
.tabbar { display: none; }
@media (max-width: 980px) {
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(31, 21, 53, .08); }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--faint); font: 700 11px var(--font); background: none; border: 0; padding: 4px 2px; cursor: pointer; border-radius: 12px; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--violet); background: var(--violet-soft); }
  .tabbar .badge { position: absolute; top: 0; left: calc(50% + 6px); background: #ff3d57; color: #fff; border-radius: 999px; font-size: 10px; padding: 0 5px; font-weight: 800; }
  #view { padding-bottom: 96px; }
  #jumpBill:not([hidden]) { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  #toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .top .in { padding: 10px 14px; }
}

/* ---------- print layout (Customize) ---------- */
.psplit { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .psplit { grid-template-columns: minmax(0, 1fr); } }
.psecs { display: grid; gap: 4px; }
.psec { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.psec .check { font-size: 13px; } .psec .btn.sm { min-height: 26px; padding: 0 8px; }
.pprev { margin-top: 6px; background: #e9e5f1; border-radius: 12px; padding: 10px; overflow: auto; max-height: 560px; }
.pprev iframe { display: block; margin: 0 auto; height: 520px; max-width: none; border: 0; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.18); border-radius: 4px; }

/* ---------- floors ---------- */
.ftabs { flex-wrap: wrap; max-width: 100%; }
.ftabs button .faint { font-weight: 600; font-size: 12px; margin-left: 2px; }
.fhead { margin: 4px 0 -4px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.qr-floor { display: grid; gap: 12px; } .qr-floor h3 { font-size: 18px; }
.qr .fl { color: #1d4ed8; font-weight: 700; font-size: 13px; margin-top: -4px; }
#flist input { min-height: 36px; }
#flist tr.fadd td { background: var(--surface-2); }

/* ---------- split per person ---------- */
.pay-how { flex-wrap: wrap; }
.assign { display: grid; gap: 6px; max-height: 300px; overflow: auto; padding: 4px 2px; }
.arow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); }
.who { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.who button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font: 800 13px var(--font); color: var(--fg); cursor: pointer; }
.who button.on { background: var(--violet); color: #fff; border-color: var(--violet); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pcard { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; background: var(--surface); }
.pcard input[data-name] { width: 60%; min-height: 34px; }
/* ---------- same guests or new guests? ---------- */
.qctx { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; }
.qctx.same { background: var(--ok-soft); color: var(--ok); } .qctx.diff { background: var(--warn-soft); color: var(--warn); }
.qctx > b { font-size: 15px; } .qctx .qb { color: var(--fg); font-size: 13px; background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 8px; padding: 6px 8px; }
.qo-acts .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
.btn.violet-o { border-color: var(--violet); color: var(--violet); }
/* ---------- sounds ---------- */
.snd-bar { padding: 6px 2px; gap: 10px; }
.snd-hint { width: calc(100% - 40px); margin: 12px 20px 0; text-align: left; cursor: pointer; border: 0; font: inherit; }
@media (max-width: 980px) { .snd-hint { width: calc(100% - 28px); margin: 10px 14px 0; } }
.qo-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.qo-acts .btn { width: 100%; }
.app-qr { background: #fff; border-radius: 12px; padding: 8px; width: 150px; flex: none; }
.app-qr svg { width: 134px; height: 134px; display: block; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- sign-in: form on the left, PIXBN panel on the right ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.login[hidden] { display: none; }
.login-side { display: grid; place-items: center; padding: 40px 24px; }
.login-form { width: min(400px, 100%); display: grid; gap: 14px; }
.login-mark { width: 52px; height: 52px; border-radius: 15px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(37, 99, 235, .45), 0 0 0 1px var(--line); margin-bottom: 14px; }
.login-mark svg { width: 30px; height: 30px; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.login-form h1 { font-size: 34px; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.login-sub { margin: -4px 0 10px; }
.login-go { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; margin-top: 6px; }
.login-go svg { width: 20px; height: 20px; transition: transform .2s; }
.login-go:hover svg { transform: translateX(4px); }
.login-foot { text-align: center; color: var(--faint); font-size: 12px; margin: 14px 0 0; }
.login-art { position: relative; overflow: hidden; color: #fff; display: grid; align-items: center; padding: 56px clamp(32px, 6vw, 88px);
  background: radial-gradient(1200px 600px at 100% 0%, #1e3a8a 0%, transparent 60%), linear-gradient(160deg, #0b1b33 0%, #081426 100%); }
.login-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(120deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%); }
.login-corner { position: absolute; width: 520px; height: 520px; right: -150px; bottom: -170px; color: #2563eb; opacity: .55; }
.login-corner.two { width: 760px; height: 760px; right: -300px; bottom: -330px; color: #60a5fa; opacity: .18; }
.login-copy { position: relative; max-width: 470px; }
.login-art .pill { display: inline-block; border: 1px solid rgba(147, 197, 253, .45); color: #bfdbfe; border-radius: 999px; padding: 6px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.login-art h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 26px 0 18px; font-weight: 800; }
.login-art h2 em { font-style: normal; background: linear-gradient(90deg, #60a5fa, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-art p { color: #c3d1ea; font-size: 16px; margin: 0; }
.login-points { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.login-points li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: #e2e8f5; font-size: 14.5px; }
.login-points b { font-size: 22px; color: #60a5fa; min-width: 34px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-art { grid-row: 1; padding: 28px 22px 30px; }
  .login-art h2 { font-size: 32px; margin: 16px 0 8px; }
  .login-art p, .login-points { display: none; }
  .login-corner { width: 260px; height: 260px; right: -80px; bottom: -110px; opacity: .35; } .login-corner.two { display: none; }
  .login-side { padding: 28px 20px 40px; align-items: start; }
  .login-mark { display: none; }
}


/* =====================================================================
   PIXBN premium layer: refined surfaces, sidebar, header and Home
   ===================================================================== */
:root { --radius: 18px; --line: #e3e9f3; --shadow: 0 1px 2px rgba(11, 27, 51, .04), 0 10px 30px -14px rgba(11, 27, 51, .14);
  --shadow-up: 0 2px 4px rgba(11, 27, 51, .05), 0 22px 44px -18px rgba(11, 27, 51, .25); --ring: 0 0 0 4px rgba(37, 99, 235, .14); }
:root[data-theme="dark"] { --line: #1d3050; --shadow: 0 1px 2px rgba(0,0,0,.35), 0 12px 30px -14px rgba(0,0,0,.6); --shadow-up: 0 24px 48px -18px rgba(0,0,0,.7); --ring: 0 0 0 4px rgba(110, 160, 255, .18); }
body { background: radial-gradient(1100px 420px at 70% -120px, rgba(37, 99, 235, .07), transparent 70%), var(--bg); background-attachment: fixed; }
:root[data-theme="dark"] body { background: radial-gradient(1100px 420px at 70% -120px, rgba(59, 130, 246, .12), transparent 70%), var(--bg); }
h2 { font-size: 16px; font-weight: 750; letter-spacing: -.015em; }

/* sidebar */
.shell { grid-template-columns: 252px minmax(0, 1fr); }
.side { background: linear-gradient(180deg, #0d2140 0%, #0a1830 45%, #071224 100%); padding: 18px 14px 14px; gap: 2px; border-right: 1px solid rgba(255,255,255,.04); }
:root[data-theme="dark"] .side { background: linear-gradient(180deg, #0a1730 0%, #050c18 100%); }
.brand { padding: 4px 6px 18px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand b { font-size: 15.5px; letter-spacing: -.01em; }
.nav-grp { font-size: 10.5px; letter-spacing: .16em; font-weight: 700; color: #6f84a8; padding: 18px 12px 6px; }
.nav a { position: relative; padding: 8px 12px; font-size: 13.75px; font-weight: 600; color: #c9d5ea; border-radius: 11px; transition: background .15s, color .15s; }
.nav a svg { width: 17px; height: 17px; opacity: .7; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.on { background: linear-gradient(90deg, rgba(59, 130, 246, .28), rgba(59, 130, 246, .08)); color: #fff; box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .22); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #60a5fa; box-shadow: 0 0 12px #3b82f6; }
.nav a.on svg { opacity: 1; color: #93c5fd; }
.nav .badge { background: linear-gradient(180deg, #ff6b7d, #f43f5e); box-shadow: 0 2px 8px -2px rgba(244, 63, 94, .7); font-size: 10.5px; line-height: 18px; min-width: 20px; text-align: center; }
.side .foot { border-top: 1px solid rgba(255,255,255,.07); padding-top: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 13px; background: rgba(255,255,255,.04); }
.me .av { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; color: #fff; background: linear-gradient(135deg, #3b82f6, #1e40af); }
.me-t { min-width: 0; flex: 1; display: grid; line-height: 1.25; } .me-t b { color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me-t small { color: #8296b8; font-size: 11.5px; text-transform: capitalize; }
.me-out { width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: #8296b8; display: grid; place-items: center; cursor: pointer; }
.me-out:hover { background: rgba(255,255,255,.08); color: #fff; } .me-out svg { width: 17px; height: 17px; }

/* header */
.top { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .in { padding: 14px 28px; gap: 12px; }
.ttl { flex: 1; min-width: 0; } .top h1 { font-size: 21px; font-weight: 800; letter-spacing: -.025em; flex: none; }
.tsub { color: var(--faint); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kbd-btn, .icon-btn { border-color: var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(11, 27, 51, .05); transition: border-color .15s, box-shadow .15s; }
.kbd-btn { min-width: 240px; } .kbd-btn .kbd { margin-left: auto; }
.kbd-btn:hover, .icon-btn:hover { border-color: var(--line-2); box-shadow: var(--ring); }
#view { padding: 24px 28px 40px; }

/* surfaces & controls */
.card, .kpi { border-color: var(--line); box-shadow: var(--shadow); padding: 20px; }
.card-h .muted { font-size: 12.5px; }
input, select, textarea { border-color: var(--line-2); border-radius: 11px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: var(--ring); }
.btn { border-radius: 11px; transition: background .15s, box-shadow .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn.primary, .btn.violet { background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: #2563eb; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -6px rgba(37, 99, 235, .6); color: #fff; }
.btn.primary:hover, .btn.violet:hover { background: linear-gradient(180deg, #2f76f0, #1d4ed8); }
:root[data-theme="dark"] .btn.violet { color: #fff; }
.seg { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.seg button.on { box-shadow: 0 1px 2px rgba(11,27,51,.1), 0 4px 10px -4px rgba(11,27,51,.15); }
.chip { padding: 3px 10px; }
.tbl th { font-size: 11px; letter-spacing: .08em; }
.kpi .v { font-size: 30px; letter-spacing: -.03em; }
.kpi.hero { background: radial-gradient(400px 200px at 100% 0%, rgba(59, 130, 246, .45), transparent 70%), linear-gradient(140deg, #0d2140, #0a1830); }
.chart .bar { fill: url(#pbBarSoft); } .chart .bar.today { fill: url(#pbBar); } .chart .grid-l { stroke-dasharray: 3 4; }
:root[data-theme="dark"] .chart .bar { fill: #26467a; }
.toast { border-radius: 12px; box-shadow: var(--shadow-up); }

/* Quick launch: soft tinted tiles instead of loud gradients */
.launch .apps { background: none; border: 0; box-shadow: none; padding: 0; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.apps .app { padding: 14px 6px 12px; border: 1px solid transparent; border-radius: 16px; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; font-size: 13px; font-weight: 650; }
.apps .app:hover { background: var(--surface); border-color: var(--line); transform: translateY(-2px); box-shadow: var(--shadow-up); }
.app .ic { width: 52px; height: 52px; border-radius: 16px; color: var(--c2, #2563eb); box-shadow: none;
  background: color-mix(in srgb, var(--c1, #3b82f6) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c2, #2563eb) 18%, transparent); }
.app .ic svg { width: 24px; height: 24px; }
:root[data-theme="dark"] .app .ic { color: var(--c1, #60a5fa); background: color-mix(in srgb, var(--c1, #3b82f6) 14%, transparent); }
.app .ic .badge { top: -5px; right: -7px; background: linear-gradient(180deg, #ff6b7d, #f43f5e); }

/* Home */
.dash { gap: 18px; }
.dash-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; }
.hero-card { position: relative; overflow: hidden; border-radius: 22px; padding: 24px 26px; color: #fff; display: grid; gap: 18px; box-shadow: 0 24px 50px -24px rgba(11, 27, 51, .55);
  background: radial-gradient(520px 260px at 100% 0%, rgba(59, 130, 246, .5), transparent 70%), radial-gradient(400px 220px at 0% 120%, rgba(37, 99, 235, .25), transparent 70%), linear-gradient(140deg, #0d2140 0%, #0a1830 60%, #081426 100%); }
.hero-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(110deg, transparent 35%, #000); -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000); pointer-events: none; }
.hc-corner { position: absolute; width: 300px; height: 300px; right: -90px; bottom: -120px; color: #3b82f6; opacity: .28; pointer-events: none; }
.hero-card > :not(.hc-corner) { position: relative; }
.hc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hc-greet { font-size: 20px; font-weight: 800; letter-spacing: -.02em; } .hc-date { color: #9fb3d6; font-size: 13px; margin-top: 2px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #bbf7d0; background: rgba(34, 197, 94, .14); border: 1px solid rgba(74, 222, 128, .3); padding: 4px 11px; border-radius: 999px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pbPulse 2s infinite; }
@keyframes pbPulse { 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.hc-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: end; }
.hc-l { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #93a9cf; }
.hc-v { font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: 4px 0 8px; }
.hc-d { color: #b6c6e3; font-size: 13px; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; font-size: 12.5px; padding: 2px 9px; border-radius: 999px; margin-right: 4px; }
.delta.up { background: rgba(34, 197, 94, .16); color: #86efac; } .delta.down { background: rgba(244, 63, 94, .16); color: #fda4af; }
.hc-spark { min-width: 0; } .spark { width: 100%; height: 74px; display: block; } .hc-sl { color: #7d93bb; font-size: 11.5px; text-align: right; margin-top: 4px; }
.hc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hc-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 11px; font-weight: 700; font-size: 13.5px; text-decoration: none; color: #e6eefb;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background .15s; }
.hc-btn:hover { background: rgba(255,255,255,.13); } .hc-btn svg { width: 16px; height: 16px; }
.hc-btn.go { background: #fff; color: #0b1b33; border-color: #fff; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); } .hc-btn.go:hover { background: #eaf1ff; }
.mstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mstat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i l" "v v" "d d"; column-gap: 10px; row-gap: 2px; align-items: center; padding: 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--fg); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.mstat:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.mstat .mi { grid-area: i; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--t-soft); color: var(--t); } .mstat .mi svg { width: 18px; height: 18px; }
.mstat .ml { grid-area: l; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mstat .mv { grid-area: v; font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; }
.mstat .md { grid-area: d; font-size: 12.5px; color: var(--faint); }
.mstat.blue { --t: #2563eb; --t-soft: #e8effd; } .mstat.teal { --t: #0f9488; --t-soft: #dcf5f1; } .mstat.amber { --t: #c26a00; --t-soft: #fff1d9; } .mstat.rose { --t: #e11d48; --t-soft: #ffe4ea; }
:root[data-theme="dark"] .mstat { --t-soft: color-mix(in srgb, var(--t) 18%, transparent); } :root[data-theme="dark"] .mstat.blue { --t: #6ea0ff; } :root[data-theme="dark"] .mstat.teal { --t: #2dd4bf; } :root[data-theme="dark"] .mstat.amber { --t: #f0b350; } :root[data-theme="dark"] .mstat.rose { --t: #fb7185; }
.alert-strip { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 16px; text-decoration: none; font-size: 13.5px; }
.alert-strip.bad { background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent); }
.alert-strip span { flex: 1; color: var(--fg); } .alert-strip em { font-style: normal; font-weight: 700; white-space: nowrap; }
.pill-n { font-weight: 800; font-size: 13.5px; background: var(--violet-soft); color: var(--violet); padding: 5px 12px; border-radius: 999px; }
.floor-now { gap: 16px; }
.occ-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 3px; }
.occ-bar i { display: block; height: 100%; border-radius: 999px; } .occ-bar .f, .occ-leg .f { background: #22c55e; } .occ-bar .o, .occ-leg .o { background: #2563eb; } .occ-bar .c, .occ-leg .c { background: #f59e0b; }
.occ-leg { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.occ-leg a { display: grid; grid-template-columns: 9px 1fr; column-gap: 7px; align-items: center; padding: 10px 12px; border-radius: 13px; background: var(--surface-2); color: var(--fg); text-decoration: none; }
.occ-leg a:hover { background: var(--surface-3); } .occ-leg i { width: 9px; height: 9px; border-radius: 50%; } .occ-leg b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .occ-leg span { grid-column: 1 / -1; font-size: 12px; color: var(--muted); font-weight: 600; }
.src { display: grid; gap: 9px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.src-row { display: grid; grid-template-columns: 110px 1fr 30px; gap: 10px; align-items: center; font-size: 13px; }
.src-row .t { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; } .src-row .t i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #2563eb); }
.src-row b { text-align: right; }
@media (max-width: 1100px) { .dash-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 980px) { .top .in { padding: 12px 16px; } .kbd-btn { min-width: 0; } #view { padding: 16px 14px 90px; } }
@media (max-width: 560px) {
  .hero-card { padding: 20px; border-radius: 20px; } .hc-body { grid-template-columns: minmax(0, 1fr); gap: 10px; } .hc-sl { text-align: left; }
  .mstats { gap: 10px; } .mstat { padding: 14px; } .mstat .mv { font-size: 23px; }
  .launch .apps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; } .apps .app { padding: 10px 2px; font-size: 11.5px; } .app .ic { width: 46px; height: 46px; border-radius: 14px; }
  .tsub { display: none; }
}
@media (max-width: 980px) { .shell { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .alert-strip { flex-wrap: wrap; gap: 4px 10px; } .alert-strip span { flex-basis: calc(100% - 40px); } .alert-strip em { margin-left: auto; } .hc-greet { font-size: 18px; } }

/* ---------- clock in / out ---------- */
.clock-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  font: 700 13.5px var(--font); cursor: pointer; box-shadow: 0 1px 2px rgba(11,27,51,.05); transition: border-color .15s, box-shadow .15s; }
.clock-btn:hover { border-color: var(--line-2); box-shadow: var(--ring); } .clock-btn svg { width: 17px; height: 17px; color: var(--violet); }
.clock-btn i { font-style: normal; font-size: 11px; font-weight: 800; background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 0 7px; line-height: 18px; }
@media (max-width: 980px) { .clock-btn span { display: none; } .clock-btn { padding: 0 10px; } }
.pad-w { display: grid; gap: 14px; width: min(360px, 100%); margin: 0 auto; }
.pin-dots { display: flex; justify-content: center; gap: 12px; padding: 8px 0 2px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); transition: background .12s, border-color .12s, transform .12s; }
.pin-dots i.on { background: var(--violet); border-color: var(--violet); transform: scale(1.1); }
.pin-dots.shake { animation: pbShake .4s; } @keyframes pbShake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.pmsg { min-height: 20px; text-align: center; font-weight: 700; font-size: 14px; } .pmsg.ok { color: var(--ok); } .pmsg.bad { color: var(--bad); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pad button { height: 62px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: 700 24px var(--font); cursor: pointer; transition: background .1s, transform .08s; }
.pad button:hover { background: var(--surface-3); } .pad button:active { transform: scale(.96); } .pad button.fn { font-size: 18px; color: var(--muted); background: transparent; }
.onshift { display: grid; gap: 6px; border-top: 1px dashed var(--line-2); padding-top: 12px; }

/* ---------- v4.3: quick bill, running bills, delete, sections, switches ---------- */
.line { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.ldel { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ldel svg { width: 16px; height: 16px; }
.ldel:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.seg.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.seg.kinds button { padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.runbar { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 8px; background: var(--surface-2, var(--surface)); }
.runbar.min { padding: 4px 10px; }
.runlist { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.runchip { flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer; color: inherit; display: flex; gap: 6px; align-items: center; }
.runchip.on { border-color: var(--violet); background: var(--violet-soft, rgba(37, 99, 235, .1)); }
.lastbill { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--ok-soft, rgba(22, 163, 74, .12)); color: var(--ok); font-size: 13.5px; }
.lastbill .btn { color: var(--fg); }
body.simple .adv { display: none !important; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { width: 46px; height: 26px; border-radius: 999px; background: var(--line-2, #cbd5e1); position: relative; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--ok, #16a34a); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.seg.sm button { padding: 5px 10px; font-size: 12.5px; }
.seg button.on.bad { background: var(--bad); color: #fff; }
.chipck { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.chipck input { width: auto; margin: 0; }
