
:root{
  --brand-500:#1E88E5;--brand-700:#1565C0;--brand-900:#0D47A1;--brand-tint:#E8F1FC;--brand-tint-subtle:#F4F8FD;
  --ink:#1A2330;--ink-2:#3D4955;--muted:#5B6672;--border:#E2E8F0;--border-input:#8793A0;--surface:#fff;--page:#F5F7FA;
  --ok:#1B7F4B;--ok-tint:#E6F4EC;--warn:#9A5B00;--warn-tint:#FFF4E0;--bad:#B42318;--bad-tint:#FDECEA;
  --r-sm:8px;--r-md:10px;--r-lg:14px;--r-pill:999px;
  --shadow:0 1px 2px rgba(16,24,40,.06),0 4px 16px rgba(16,24,40,.06);
  --font:"Harmonia Sans","Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:var(--font);font-size:14px;line-height:20px;color:var(--ink-2);background:var(--page)}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--brand-700);text-decoration:none}a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--brand-700);outline-offset:2px}
svg.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
svg.i.sm{width:16px;height:16px}

/* layout */
.app{display:grid;grid-template-columns:248px 1fr;min-height:100vh}
.app.collapsed{grid-template-columns:76px 1fr}
.side{background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow:auto}
.brand{display:flex;align-items:baseline;gap:6px;padding:20px 20px 16px}
.brand b{font-size:20px;letter-spacing:.02em;color:var(--ink)}
.brand span{font-size:13px;font-weight:600;color:var(--brand-700);background:var(--brand-tint);padding:2px 8px;border-radius:var(--r-pill)}
.venue{margin:0 12px 12px;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--page);cursor:pointer;width:calc(100% - 24px);text-align:left}
.venue .av{width:32px;height:32px;border-radius:8px;background:var(--brand-700);color:#fff;display:grid;place-items:center;font-weight:700}
.venue small{display:block;color:var(--muted);font-size:12px;line-height:16px}
.venue strong{color:var(--ink);font-weight:600}
.nav-group{padding:8px 12px}
.eyebrow{font-size:12px;line-height:16px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.nav-group .eyebrow{padding:8px 8px 6px}
.nav a{display:flex;align-items:center;gap:12px;height:44px;padding:0 8px;border-radius:var(--r-md);color:var(--ink-2);font-weight:500;text-decoration:none}
.nav a .tile{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--brand-tint);color:var(--brand-700)}
.nav a .tile svg{width:17px;height:17px}
.nav a:hover{background:var(--brand-tint-subtle)}
.nav a.on{background:var(--brand-tint);color:var(--brand-900);font-weight:700}
.nav a.on .tile{background:var(--brand-700);color:#fff}
.nav a .count{margin-left:auto;background:var(--brand-700);color:#fff;font-size:12px;font-weight:700;border-radius:var(--r-pill);padding:0 7px;line-height:20px}
.app.collapsed .nav a .lbl,.app.collapsed .nav a .count,.app.collapsed .nav-group .eyebrow,.app.collapsed .brand span,.app.collapsed .venue div,.app.collapsed .side-foot div{display:none}
.app.collapsed .venue{justify-content:center}
.side-foot{margin-top:auto;padding:16px;border-top:1px solid var(--border);display:flex;gap:10px;align-items:center}
.side-foot .help{font-size:13px}
.main{min-width:0;display:flex;flex-direction:column}
.top{height:64px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;padding:0 24px;position:sticky;top:0;z-index:5}
.search{flex:1;max-width:420px;display:flex;align-items:center;gap:8px;height:40px;border:1px solid var(--border);border-radius:var(--r-md);padding:0 12px;background:var(--page);color:var(--muted)}
.search input{border:0;background:transparent;outline:0;flex:1;color:var(--ink)}
.top .spacer{flex:1}
.iconbtn{width:40px;height:40px;border-radius:var(--r-md);border:1px solid var(--border);background:var(--surface);display:grid;place-items:center;cursor:pointer;color:var(--ink-2);position:relative}
.iconbtn:hover{background:var(--brand-tint-subtle)}
.iconbtn .dot{position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--bad);border:2px solid #fff}
.me{width:40px;height:40px;border-radius:50%;background:var(--brand-tint);color:var(--brand-900);display:grid;place-items:center;font-weight:700}
.content{padding:28px 32px 48px;max-width:1360px;width:100%}

/* type */
h1{font-size:28px;line-height:36px;color:var(--ink);margin:0;font-weight:700}
h2{font-size:20px;line-height:28px;color:var(--ink);margin:0;font-weight:700}
h3{font-size:16px;line-height:24px;color:var(--ink);margin:0;font-weight:600}
.sub{color:var(--muted);margin:4px 0 0}
.page-head{display:flex;align-items:flex-end;gap:16px;margin-bottom:24px;flex-wrap:wrap}
.page-head .actions{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap}
.muted{color:var(--muted)}

/* components */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 18px;border-radius:var(--r-md);border:1px solid transparent;font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap;text-decoration:none}
.btn:hover{text-decoration:none}
.btn.primary{background:var(--brand-700);color:#fff}.btn.primary:hover{background:var(--brand-900)}
.btn.secondary{background:var(--surface);border-color:var(--border-input);color:var(--ink)}.btn.secondary:hover{background:var(--brand-tint-subtle)}
.btn.ghost{background:transparent;color:var(--brand-700)}.btn.ghost:hover{background:var(--brand-tint-subtle)}
.btn.danger{background:var(--surface);border-color:var(--bad);color:var(--bad)}
.btn.sm{height:32px;padding:0 12px;font-size:13px;border-radius:var(--r-sm)}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg)}
.card.pad{padding:20px}
.card-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border)}
.card-head .right{margin-left:auto}
.grid{display:grid;gap:20px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g6{grid-template-columns:repeat(6,minmax(0,1fr))}
.split{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px}
.tile{border-radius:var(--r-md)}
.itile{width:44px;height:44px;border-radius:var(--r-md);background:var(--brand-tint);color:var(--brand-700);display:grid;place-items:center;flex:none}
.pill{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:var(--r-pill);font-size:12px;font-weight:600;background:var(--brand-tint);color:var(--brand-900)}
.pill.ok{background:var(--ok-tint);color:var(--ok)}.pill.warn{background:var(--warn-tint);color:var(--warn)}.pill.bad{background:var(--bad-tint);color:var(--bad)}.pill.grey{background:var(--page);color:var(--muted);border:1px solid var(--border)}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:20px;overflow:auto}
.tabs button{height:44px;padding:0 14px;border:0;background:none;color:var(--muted);font-weight:600;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tabs button.on{color:var(--brand-700);border-color:var(--brand-700)}
.seg{display:inline-flex;border:1px solid var(--border);border-radius:var(--r-md);padding:3px;background:var(--surface)}
.seg button{height:30px;padding:0 12px;border:0;border-radius:7px;background:none;cursor:pointer;font-weight:600;color:var(--muted)}
.seg button.on{background:var(--brand-tint);color:var(--brand-900)}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field label{font-weight:600;color:var(--ink);font-size:13px}
.input,select.input,textarea.input{height:40px;border:1px solid var(--border-input);border-radius:var(--r-md);padding:0 12px;background:var(--surface);width:100%}
textarea.input{height:auto;padding:10px 12px;min-height:80px;resize:vertical}
.input:focus{outline:2px solid var(--brand-700);outline-offset:0;border-color:var(--brand-700)}
.switch{position:relative;width:40px;height:24px;flex:none;display:inline-block}
.switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.switch span{position:absolute;inset:0;background:#C5CDD6;border-radius:var(--r-pill);transition:.15s}
.switch span::after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.15s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.switch input:checked+span{background:var(--brand-700)}
.switch input:checked+span::after{transform:translateX(16px)}
.switch input:focus-visible+span{outline:2px solid var(--brand-700);outline-offset:2px}
table{width:100%;border-collapse:collapse}
th{text-align:left;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:12px 16px;border-bottom:1px solid var(--border);background:var(--page)}
td{padding:14px 16px;border-bottom:1px solid var(--border);color:var(--ink-2);vertical-align:middle}
tr:last-child td{border-bottom:0}
tbody tr:hover td{background:var(--brand-tint-subtle)}
.tbl-wrap{overflow:auto}
.empty{padding:40px 20px;text-align:center;color:var(--muted)}
.empty .itile{margin:0 auto 12px}

/* KPI */
.kpi{padding:18px 20px}
.kpi .lbl{display:flex;align-items:center;gap:8px;color:var(--muted);font-weight:600;font-size:13px}
.kpi .val{font-size:26px;line-height:34px;font-weight:700;color:var(--ink);margin-top:8px}
.kpi .delta{font-size:13px;font-weight:600;margin-top:2px}
.delta.up{color:var(--ok)}.delta.down{color:var(--bad)}.delta.flat{color:var(--muted)}

/* quick start */
.qs{display:flex;gap:14px;padding:18px;align-items:flex-start;cursor:pointer;text-align:left;width:100%;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg)}
.qs:hover{border-color:var(--brand-500);box-shadow:var(--shadow)}
.qs p{margin:4px 0 0;color:var(--muted);font-size:13px}
.progress{height:8px;background:var(--brand-tint);border-radius:var(--r-pill);overflow:hidden}
.progress i{display:block;height:100%;background:var(--brand-700);border-radius:inherit}

/* menus */
.menu-card{padding:18px 20px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.menu-card .meta{color:var(--muted);font-size:13px;margin-top:2px}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.chip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:1px solid var(--border);border-radius:var(--r-pill);font-size:12px;font-weight:600;color:var(--ink-2);background:var(--page)}
.chip svg{width:14px;height:14px}
.menu-card .acts{margin-left:auto;display:flex;align-items:center;gap:10px}

/* editor */
.editor{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
.section{margin-bottom:14px;overflow:hidden}
.sec-head{display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;background:var(--surface)}
.sec-head.open{background:var(--brand-tint-subtle);border-bottom:1px solid var(--border)}
.sec-head .chev{transition:.15s;color:var(--muted)}
.sec-head.open .chev{transform:rotate(90deg)}
.item{display:grid;grid-template-columns:20px 48px minmax(0,1fr) 120px 40px 32px;gap:12px;align-items:center;padding:10px 16px;border-bottom:1px solid var(--border)}
.item:last-child{border-bottom:0}
.item.off .nm{color:var(--muted);text-decoration:line-through}
.thumb{width:48px;height:48px;border-radius:var(--r-sm);background:var(--brand-tint);display:grid;place-items:center;color:var(--brand-700);font-weight:700;font-size:16px}
.thumb.none{background:var(--page);border:1px dashed var(--border-input);color:var(--muted)}
.nm{font-weight:600;color:var(--ink)}
.desc{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.price{display:flex;align-items:center;border:1px solid var(--border-input);border-radius:var(--r-sm);height:36px;overflow:hidden}
.price span{padding:0 8px;color:var(--muted);background:var(--page);height:100%;display:grid;place-items:center;border-right:1px solid var(--border)}
.price input{border:0;width:100%;padding:0 8px;outline:0;text-align:right;font-weight:600}
.drag{color:#B5BEC8;cursor:grab}
.score{background:var(--page);border:1px solid var(--border);border-radius:var(--r-pill);font-size:11px;font-weight:700;padding:0 7px;line-height:18px;color:var(--ink-2)}
.insight{display:flex;gap:14px;align-items:center;padding:16px 18px;margin-bottom:16px}
.ring{--p:66;width:52px;height:52px;border-radius:50%;background:conic-gradient(var(--brand-700) calc(var(--p)*1%),var(--brand-tint) 0);display:grid;place-items:center;flex:none}
.ring b{width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--ink);font-size:14px}

/* phone preview */
.preview{position:sticky;top:88px}
.share{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.phone{width:300px;height:600px;margin:0 auto;border-radius:36px;border:10px solid #1A2330;background:#fff;overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow)}
.ph-top{background:var(--brand-700);color:#fff;padding:22px 16px 14px}
.ph-top b{font-size:17px;display:block}
.ph-top small{opacity:.85}
.ph-tabs{display:flex;gap:6px;padding:10px 12px;overflow:auto;border-bottom:1px solid var(--border)}
.ph-tabs span{white-space:nowrap;font-size:12px;font-weight:600;padding:5px 10px;border-radius:var(--r-pill);background:var(--page);color:var(--ink-2)}
.ph-tabs span.on{background:var(--brand-tint);color:var(--brand-900)}
.ph-body{flex:1;overflow:auto;padding:4px 12px 16px}
.ph-sec{font-weight:700;color:var(--ink);margin:14px 0 6px;font-size:14px}
.ph-item{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.ph-item .t{flex:1;min-width:0}
.ph-item .t b{display:block;color:var(--ink);font-size:13px}
.ph-item .t small{color:var(--muted);font-size:11px;display:block;line-height:15px}
.ph-item .p{font-weight:700;color:var(--ink);font-size:13px}
.ph-item .thumb{width:44px;height:44px;font-size:13px}

/* orders board */
.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.col{background:var(--page);border:1px solid var(--border);border-radius:var(--r-lg);padding:12px;min-height:200px}
.col h3{display:flex;align-items:center;gap:8px;font-size:14px;padding:4px 4px 10px}
.col h3 .n{margin-left:auto;font-size:12px;color:var(--muted)}
.ocard{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:12px;margin-bottom:10px}
.ocard .row{display:flex;align-items:center;gap:8px}
.ocard .row b{color:var(--ink)}
.ocard ul{margin:8px 0;padding:0 0 0 16px;font-size:13px}
.ocard .foot{display:flex;align-items:center;gap:8px;margin-top:8px}
.ocard .foot .btn{margin-left:auto}

/* reservations */
.timeline{display:grid;grid-template-columns:70px 1fr}
.slot{padding:10px 0;border-bottom:1px solid var(--border);min-height:52px}
.slot.t{color:var(--muted);font-weight:600;font-size:13px;padding-left:16px}
.bk{display:inline-flex;align-items:center;gap:8px;margin:2px 6px 2px 0;padding:6px 10px;border-radius:var(--r-md);background:var(--brand-tint);color:var(--brand-900);font-size:13px;font-weight:600;cursor:pointer;border:0}
.bk.seated{background:var(--ok-tint);color:var(--ok)}
.bk.cancelled{background:var(--page);color:var(--muted);text-decoration:line-through}

/* reviews */
.review{padding:16px 20px;border-bottom:1px solid var(--border)}
.review:last-child{border-bottom:0}
.stars{color:#E8A317;letter-spacing:1px}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--brand-tint);color:var(--brand-900);display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}

/* charts */
.bars{display:flex;align-items:flex-end;gap:10px;height:200px;padding:10px 4px 0}
.bars .b{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.bars .b i{display:block;width:100%;max-width:38px;background:var(--brand-700);border-radius:6px 6px 2px 2px;min-height:3px}
.bars .b i.dim{background:var(--brand-tint)}
.bars .b small{color:var(--muted);font-size:12px}
.hbar{display:grid;grid-template-columns:150px 1fr 60px;gap:12px;align-items:center;padding:8px 0}
.hbar .tr{height:10px;background:var(--brand-tint);border-radius:var(--r-pill);overflow:hidden}
.hbar .tr i{display:block;height:100%;background:var(--brand-700)}

/* modal + toast */
.scrim{position:fixed;inset:0;background:rgba(26,35,48,.45);display:none;align-items:flex-start;justify-content:center;padding:60px 16px;z-index:50;overflow:auto}
.scrim.show{display:flex}
.modal{background:var(--surface);border-radius:var(--r-lg);width:100%;max-width:560px;box-shadow:var(--shadow)}
.modal.wide{max-width:820px}
.modal header{display:flex;align-items:center;padding:18px 20px;border-bottom:1px solid var(--border)}
.modal header button{margin-left:auto}
.modal .body{padding:20px}
.modal footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--border);background:var(--page);border-radius:0 0 var(--r-lg) var(--r-lg)}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--ink);color:#fff;padding:12px 18px;border-radius:var(--r-md);font-weight:600;opacity:0;transition:.2s;z-index:60;display:flex;gap:10px;align-items:center}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.pick{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--r-md);margin-bottom:8px}
.pick .qty{display:flex;align-items:center;gap:6px;margin-left:auto}
.pick .qty button{width:28px;height:28px;border-radius:7px;border:1px solid var(--border-input);background:#fff;cursor:pointer;font-weight:700}
.qr{width:180px;height:180px;margin:0 auto;display:block}
.stat-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border)}
.stat-row:last-child{border:0}
.hours{display:grid;grid-template-columns:110px 1fr 1fr 60px;gap:10px;align-items:center;margin-bottom:8px}

@media (max-width:1100px){.g6{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(2,1fr)}.split,.editor{grid-template-columns:1fr}.preview{position:static}.board{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){.app,.app.collapsed{grid-template-columns:1fr}.side{position:fixed;left:0;top:0;width:260px;z-index:40;transform:translateX(-100%);transition:.2s}.app.mobile-open .side{transform:none}.content{padding:20px 16px 40px}.g2,.g3,.g4{grid-template-columns:1fr}.g6{grid-template-columns:repeat(2,1fr)}.board{grid-template-columns:1fr}.item{grid-template-columns:48px minmax(0,1fr) 96px 40px}.item .drag,.item .more{display:none}.top{padding:0 12px}.search{display:none}}
