@font-face{font-family:'Outfit';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/outfit-400.ttf) format('truetype')}
@font-face{font-family:'Outfit';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/outfit-500.ttf) format('truetype')}
@font-face{font-family:'Outfit';font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/outfit-600.ttf) format('truetype')}
@font-face{font-family:'Outfit';font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/outfit-700.ttf) format('truetype')}

:root{--ink:#17181c;--muted:#68736e;--soft:#53615a;--paper:#f3f4f3;--surface:#e8eeea;--raised:#f3f4f3;--line:#d4ddd6;--accent:#eefb94;--accent-soft:#f1f6d6;--sage:#adb9b1;--danger:#b42318;--danger-soft:#fdf0ee;--ok:#48624f;--ease:cubic-bezier(.22,.8,.3,1);font-family:'Outfit',system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;font-synthesis:none}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--paper)}
button,input,select,textarea{font:inherit;color:inherit}
button{border:0;background:none;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:disabled{opacity:.4;cursor:default}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
[hidden]{display:none!important}
.icon{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.muted{color:var(--muted);font-size:13px;line-height:1.55;margin:0}
h1,h2,h3{font-weight:500;margin:0}

/* Buttons and fields */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:14px;font-weight:500;white-space:nowrap;transition:transform .2s var(--ease),background .2s}
.btn:active:not(:disabled){transform:scale(.97)}
.btn.primary{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.ghost{background:transparent}
.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}
.btn.ghost.danger{background:transparent;color:var(--danger);border-color:#f1d4cf}
.btn.small{min-height:36px;padding:0 14px;font-size:13px}
.btn.wide{width:100%}
.btn .icon{width:17px;height:17px}
.text-button{font-size:13px;color:var(--soft);padding:8px}
input,select,textarea{width:100%;min-height:46px;padding:0 16px;border:1px solid var(--line);border-radius:16px;background:var(--raised);font-size:15px}
input:focus,select:focus{outline:2px solid var(--ink);outline-offset:0;background:#fff}
label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--soft)}
.stack{display:flex;flex-direction:column;gap:16px;max-width:420px}
.stack .btn{align-self:flex-start}
.form-error{color:var(--danger);font-size:13px;margin:0;min-height:1em}
.form-error:empty{display:none}
.row-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}

/* Sign in */
.auth{min-height:100dvh;display:grid;place-items:center;padding:24px 16px}
.auth-card{width:100%;max-width:380px;background:var(--surface);border-radius:32px;padding:36px 28px 28px;display:flex;flex-direction:column;box-shadow:0 20px 50px #0000000a}
.auth-card h1{font-size:28px;letter-spacing:-.8px;margin:22px 0 6px}
.auth-card form{display:flex;flex-direction:column;gap:8px;margin-top:26px}
.auth-card form label{margin-top:8px}
.auth-card .btn.primary{margin-top:18px;min-height:54px;font-size:15px}
.password-field{position:relative}
.password-field input{padding-right:70px}
.password-field .text-button{position:absolute;right:8px;top:50%;transform:translateY(-50%)}
.auth-link{display:inline-flex;align-items:center;gap:6px;align-self:center;margin-top:22px;font-size:13px;color:var(--soft)}
.auth-link .icon{width:15px;height:15px}
.brand-mark{width:46px;height:46px;flex-shrink:0;display:flex;justify-content:center;align-items:center;border-radius:50%;background:var(--surface);font-size:40px;letter-spacing:-5px;font-weight:500;line-height:1;padding:0 5px 6px 0}
.brand-mark span{font-size:21px;margin:10px 0 0 3px}
.boot{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;color:var(--muted);font-size:14px}
.boot strong{color:var(--ink);font-size:18px;font-weight:500}

/* Frame */
.layout{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100dvh}
.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;gap:26px;padding:24px 14px;background:var(--raised);border-right:1px solid var(--line)}
.side-top{display:flex;flex-direction:column;gap:18px;padding:0 6px}
.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:500;letter-spacing:-.4px}
.brand small{display:block;font-size:11px;font-weight:400;color:var(--muted);letter-spacing:0}
.live{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;color:var(--soft)}
.live i{width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 4px #48624f20}
.live.offline{color:var(--danger)}
.live.offline i{background:var(--danger);box-shadow:0 0 0 4px #b423181f}
.nav{display:flex;flex-direction:column;gap:4px}
.nav button{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 14px;border-radius:16px;font-size:15px;color:var(--soft);transition:background .2s}
.nav button:hover{background:var(--raised)}
.nav button.active{background:var(--ink);color:#fff}
.nav-count{margin-left:auto;min-width:24px;height:24px;padding:0 7px;border-radius:12px;background:var(--danger);color:#fff;font-size:12px;font-weight:600;display:grid;place-items:center}
.side-user{margin-top:auto;padding:14px;border-radius:18px;background:var(--surface);display:flex;flex-direction:column;gap:3px;font-size:14px}
.side-user small{font-size:12px;color:var(--muted)}
.content{min-width:0;padding:28px clamp(16px,3vw,40px) 64px}
#main:focus{outline:none}

/* Alerts */
.alerts{display:flex;flex-direction:column;gap:10px}
.alerts>:not([hidden]):last-of-type{margin-bottom:22px}
.alert{display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:20px;font-size:14px;line-height:1.45;text-align:left;width:100%}
.alert>span{flex:1}
.alert.danger{background:var(--danger);color:#fff}
.alert.quiet{background:var(--accent-soft);color:var(--soft);margin-bottom:18px}

/* Pages */
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.page-head h1{font-size:32px;letter-spacing:-1px}
.page-head p{margin:6px 0 0;font-size:14px;color:var(--muted)}
.panel{background:var(--surface);border-radius:26px;padding:22px;margin-bottom:16px}
.panel h2{font-size:18px;letter-spacing:-.3px;margin-bottom:14px}
.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:18px}
.toolbar .search{flex:1;min-width:200px;max-width:340px;border-radius:999px;background:var(--surface)}
.segmented{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:999px;background:var(--surface);margin-bottom:18px}
.toolbar .segmented{margin-bottom:0}
.segmented button{min-height:38px;padding:0 16px;border-radius:999px;font-size:14px;color:var(--soft)}
.segmented button[aria-pressed="true"]{background:var(--ink);color:#fff;box-shadow:0 2px 8px #0000000d}
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:64px 20px;color:var(--muted)}
.empty .icon{width:34px;height:34px}
.empty h2{color:var(--ink);font-size:20px}
.empty p{margin:0;font-size:14px;max-width:340px;line-height:1.55}
.loading{padding:40px 0;color:var(--muted);font-size:14px}

/* Orders */
.order-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px;align-items:start}
.order-card{background:var(--surface);border-radius:26px;padding:20px;display:flex;flex-direction:column;gap:14px;border:2px solid transparent;transition:border-color .4s}
.order-card.is-new{border-color:var(--ink)}
.order-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.order-card header strong{display:block;font-size:24px;font-weight:500;letter-spacing:-.6px}
.order-card header small{display:block;margin-top:3px;font-size:12px;color:var(--muted)}
.status{flex-shrink:0;padding:5px 11px;border-radius:999px;font-size:12px;background:var(--raised);color:var(--soft)}
.status.NEW{background:var(--ink);color:#fff}
.status.CANCELLED{background:var(--danger-soft);color:var(--danger)}
.order-lines{list-style:none;margin:0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:9px;font-size:15px}
.order-lines li{display:grid;grid-template-columns:34px 1fr auto;gap:6px;align-items:baseline}
.order-lines b{font-weight:600}
.order-lines em{font-style:normal;color:var(--muted);font-size:13px}
.order-note{margin:0;padding:11px 14px;border-radius:14px;background:var(--accent-soft);color:var(--soft);font-size:14px;white-space:pre-line}
.order-for{margin:0;font-size:14px;color:var(--soft)}
.order-for b{font-weight:600;color:var(--ink)}
.order-form label small{font-size:12px;font-weight:400;color:var(--muted)}
.order-total{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;color:var(--muted)}
.order-total strong{font-size:22px;font-weight:500;color:var(--ink)}
.order-actions{display:grid;grid-template-columns:1fr auto;gap:8px}
.order-actions .btn.primary{min-height:50px}
.closed-note{margin:0;font-size:13px;color:var(--muted)}

/* Overview */
.kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-bottom:16px}
.kpi{background:var(--surface);border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:6px}
.kpi span{font-size:13px;color:var(--muted)}
.kpi strong{font-size:30px;font-weight:500;letter-spacing:-1px}
.kpi small{font-size:12px;color:var(--muted)}
.bars{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.bars li{display:flex;flex-direction:column;gap:7px}
.bars li div{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.bars small{color:var(--muted);font-size:12px;white-space:nowrap}
.bars i{display:block;height:8px;border-radius:4px;background:var(--ink)}
.bars li+li i{background:var(--sage)}

/* Lists */
.list{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.list-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:14px 18px;border-radius:20px;background:var(--surface);text-align:left}
button.list-row:hover{background:var(--accent-soft)}
.row-main{min-width:0;display:flex;flex-direction:column;gap:3px}
.row-main strong{font-size:15px;font-weight:500}
.row-main small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-side{display:flex;align-items:center;gap:10px;flex-shrink:0}
.row-side strong{font-weight:500}
.tag{font-size:11px;padding:2px 8px;border-radius:999px;background:var(--raised);color:var(--soft);vertical-align:middle}
.is-hidden{opacity:.55}

/* Menu */
.menu-group{padding:18px 22px 8px}
.menu-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.menu-group h2+.menu-row{border-top:0}
.menu-identity{display:flex;align-items:center;gap:12px;min-width:0}
.menu-identity .row-main{min-width:0;overflow-wrap:anywhere}
.menu-photo{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border-radius:14px;background:var(--canvas,#f4f6f4);overflow:hidden}
.menu-photo img{display:block;width:100%;height:100%;object-fit:contain}
.menu-photo .icon{width:28px;height:28px;opacity:.45}
@media(max-width:500px){.menu-identity{gap:8px}.menu-photo{flex-basis:46px;width:46px;height:46px;border-radius:10px}.menu-row .menu-identity .row-main strong{font-size:16px}}
.menu-row .price{font-weight:500;min-width:80px;text-align:right}
.price-field{flex-direction:row;align-items:center;gap:0;width:112px;border:1px solid var(--line);border-radius:14px;background:var(--raised);padding-left:12px;color:var(--ink)}
.price-field input{border:0;background:transparent;min-height:40px;padding:0 10px 0 4px;width:100%}
.price-field input:focus{outline:none}
.price-field:focus-within{outline:2px solid var(--ink)}
.switch{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px 0 8px;border-radius:999px;background:var(--raised);font-size:13px;color:var(--soft);min-width:124px}
.switch i{width:30px;height:18px;border-radius:9px;background:var(--sage);position:relative;transition:background .2s}
.switch i::after{content:'';position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .2s var(--ease)}
.switch[aria-checked="true"]{background:var(--accent);color:var(--ink)}
.switch[aria-checked="true"] i{background:var(--ink)}
.switch[aria-checked="true"] i::after{transform:translateX(12px)}
.switch[data-action="available"][aria-checked="false"]{background:var(--danger-soft);color:var(--danger)}

/* Tables */
.qr-panel{display:flex;flex-direction:column;gap:10px}
.qr-panel label{color:var(--ink);font-size:14px}
.qr-panel input{max-width:460px}
.table-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.table-card{background:var(--surface);border-radius:22px;padding:18px;display:flex;flex-direction:column;gap:4px;border:2px solid transparent}
.table-card.busy{background:var(--accent-soft);border-color:var(--ink)}
.table-card strong{font-size:20px;font-weight:500;letter-spacing:-.4px}
.table-card small{font-size:12px;color:var(--muted)}
.table-actions{display:flex;gap:6px;margin-top:12px}

/* Dialog and toast */
dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);border:0;border-radius:28px;padding:28px 24px 24px;background:var(--surface);color:var(--ink);box-shadow:0 30px 80px #0000002e}
dialog::backdrop{background:#0000004d}
dialog h2{font-size:24px;letter-spacing:-.6px;margin:0 44px 12px 0}
.dialog-close{position:absolute;right:16px;top:16px;width:40px;height:40px;border-radius:50%;background:var(--raised);display:grid;place-items:center}
.dialog-orders{display:flex;flex-direction:column;gap:12px}
.dialog-orders .order-card{padding:0;border:0}
.dialog-orders .order-card+.order-card{padding-top:18px;border-top:1px solid var(--line)}
.toast{position:fixed;z-index:20;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%,16px);max-width:calc(100% - 32px);padding:13px 20px;border-radius:999px;background:var(--ink);color:#fff;font-size:14px;box-shadow:0 10px 30px #0003;opacity:0;visibility:hidden;transition:.25s var(--ease)}
.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}

/* Tablets and phones: the sidebar becomes a top bar with scrolling tabs */
@media (max-width:860px){
 .layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
 .sidebar{min-width:0;position:sticky;z-index:10;height:auto;flex-direction:column;gap:10px;padding:12px 16px 10px;border-right:0;border-bottom:1px solid var(--line)}
 .side-top{flex-direction:row;align-items:center;justify-content:space-between;padding:0}
 .brand-mark{width:38px;height:38px;font-size:33px}
 .brand-mark span{font-size:17px;margin-top:8px}
 .nav{min-width:0;flex-direction:row;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin:0 -16px;padding:0 16px}
 .nav::-webkit-scrollbar{display:none}
 .nav button{flex-shrink:0;min-height:40px;padding:0 14px;font-size:14px;gap:8px}
 .nav button .icon{width:18px;height:18px}
 .side-user{display:none}
 .content{padding:20px 16px 48px}
 .page-head h1{font-size:27px}
 .menu-row{grid-template-columns:minmax(0,1fr) auto;row-gap:8px}
 .menu-row .switch{min-width:0}
 .price-field,.menu-row .price{grid-column:2;grid-row:1}
 .menu-row .switch[data-action="available"]{grid-column:1;justify-self:start}
 .menu-row .switch[data-action="visible"]{grid-column:2}
 .list-row{flex-direction:column;align-items:stretch;gap:10px}
 .row-side{justify-content:space-between}
 .order-grid{grid-template-columns:1fr}
 .segmented{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}
 .segmented::-webkit-scrollbar{display:none}
 .segmented button{flex-shrink:0;padding:0 12px;font-size:13px}
 .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .kpi{padding:16px;border-radius:20px}
 .kpi strong{font-size:24px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* Lumora workspace — existing layout with sage surfaces, charcoal anchors and lime highlights. */
body{background:radial-gradient(ellipse at 52% 50%,#adb9b1,var(--paper) 78%)}
.staff-view{background:var(--raised)}
.staff-view #app{min-height:100dvh}
.layout{width:100%;margin:0;grid-template-columns:244px minmax(0,1fr);gap:0;min-height:100dvh;padding:0;border-radius:0;background:var(--raised)}
.sidebar{position:sticky;top:0;height:100dvh;min-height:0;overflow-y:auto;padding:28px 16px 18px;background:var(--ink);color:#fff;border:0;border-right:1px solid var(--ink);border-radius:0;gap:0}
.side-top{padding:0 10px;margin-bottom:56px}
.brand{font-size:27px;gap:12px;letter-spacing:-1px;font-weight:500}
.brand-symbol{width:43px;height:43px;border:3px solid var(--accent);border-radius:50%;display:grid;place-items:center;color:var(--accent);transform:rotate(-9deg)}
.brand-symbol .icon{width:26px;height:26px;stroke-width:1.8}
.brand-dot{color:var(--accent)}
.nav-label{font-size:12px;font-weight:500;color:#aeb8b1;margin:0 12px 14px}
.nav{gap:2px;overflow:visible}
.nav button{position:relative;min-height:48px;padding:0 12px;border-radius:9px;gap:13px;color:#cbd3cd;font-size:18px;font-weight:400;text-align:left}
.nav button .icon{width:22px;height:22px}
.nav button:hover{background:#292b30;color:#fff}
.nav button.active{background:#434549;color:#fff;font-weight:500}
.sidebar :focus-visible{outline-color:var(--accent)}
.nav button.active .icon{color:var(--accent);stroke-width:2.3}
.nav button.active::before{content:'';position:absolute;left:-16px;top:3px;bottom:3px;width:7px;border-radius:0 8px 8px 0;background:var(--accent)}
.nav-count{min-width:22px;height:20px;padding:0 5px;border-radius:4px;background:var(--accent);color:var(--ink);font-size:10px}
.general{margin-top:44px}
.side-promo{margin-top:auto;position:relative;isolation:isolate;overflow:hidden;background:#24272b;color:white;border-radius:20px;padding:18px 15px 14px;min-height:192px}
.side-promo::before,.wait-panel::before{content:'';position:absolute;z-index:-1;inset:10% -35% -70% -30%;background:repeating-radial-gradient(ellipse at 65% 70%,transparent 0px,transparent 11px,#eefb9420 12px,#3b443c 16px,#17181c 20px);transform:rotate(-35deg)}
.promo-symbol{width:22px;height:22px;border-radius:50%;background:white;color:var(--ink);display:grid;place-items:center;margin-bottom:8px}
.promo-symbol .icon{width:14px;height:14px}
.side-promo h2{font-size:22px;line-height:1.07;letter-spacing:-.5px}
.side-promo p{font-size:10px;color:#cbd3cd;margin:9px 0 22px}
.side-promo .btn{min-height:38px;font-size:12px;background:var(--accent);color:var(--ink);border:0;justify-content:space-between}
.side-promo .btn.primary{background:var(--accent);color:var(--ink)}
.side-promo .btn.primary:hover{background:#e0ed86}
.workspace{min-width:0;display:flex;flex-direction:column;gap:0}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px;background:var(--raised);border-radius:0;border-bottom:1px solid var(--line);min-height:90px}
.global-search{display:flex;align-items:center;gap:11px;width:min(355px,45%);background:white;border-radius:40px;padding:8px 12px 8px 17px}
.global-search .icon{width:21px;height:21px}
.global-search input{padding:0;min-height:34px;border:0;background:none;border-radius:0;font-size:14px;min-width:0;outline:none}
.global-search input::placeholder{color:var(--muted)}
.global-search:focus-within{outline:2px solid #68736e;outline-offset:2px}
.global-search input:focus{outline:none}
kbd{white-space:nowrap;font:13px 'Outfit',sans-serif;color:var(--soft);background:var(--surface);border-radius:6px;padding:5px 7px}
.topbar-actions{display:flex;align-items:center;gap:11px}
.icon-button{width:48px;height:48px;flex-shrink:0;background:#fff;border-radius:50%;display:inline-grid;place-items:center;color:#17181c}
.icon-button:hover{background:var(--accent-soft);color:var(--ink)}
.icon-button .icon{width:21px;height:21px}
.notification-button{position:relative}
.notification-button i{position:absolute;width:7px;height:7px;background:var(--ok);border:2px solid white;border-radius:50%;top:12px;right:12px}
.profile{display:flex;align-items:center;gap:11px;text-align:left;padding-left:2px}
.avatar{height:48px;width:48px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#adb9b1;color:#17181c;font-size:17px;font-weight:500;border:3px solid #ffffff60}
.profile-copy{display:flex;flex-direction:column;gap:4px}
.profile strong{font-size:16px;font-weight:500}
.profile small{font-size:13px;color:#949695}
.content{flex:1;background:var(--raised);border-radius:0;padding:23px 20px 16px;min-width:0}
.page-head{align-items:center;margin-bottom:20px;gap:14px}
.page-head h1{font-size:38px;font-weight:500;letter-spacing:-1.6px;line-height:1.15}
.page-head p{font-size:15px;color:#9aa9a0;margin-top:12px}
.head-actions{display:flex;gap:14px;align-items:center}
.btn{font-size:14px;min-height:44px;border-color:var(--line);background:#fff}
.btn.primary{background:var(--ink);border-color:transparent;color:white}
.btn.primary:hover{filter:brightness(1.1)}
.btn.outline{border-color:#adb9b1;color:var(--ink);background:white}
.btn.small{min-height:31px;font-size:11px;padding:0 12px;gap:5px}
.btn.small .icon{width:13px;height:13px}
.head-actions .btn{min-height:48px;padding:0 21px;font-size:15px}
.dashboard-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}
.dashboard-controls .segmented{margin:0;background:#e8eeea;padding:3px}
.dashboard-controls .segmented button{min-height:29px;font-size:11px;padding:0 12px}
.dashboard-controls .segmented button[aria-pressed=true]{background:var(--ink);color:#fff}
.period-note{display:flex;align-items:center;gap:5px;font-size:11px;color:#9b9f9c}
.period-note .icon{height:13px;width:13px}
.kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 12px}
.kpi{padding:20px 18px 17px;gap:14px;border-radius:22px;min-height:167px;justify-content:space-between}
.kpi-title{display:flex;justify-content:space-between;align-items:center;gap:5px}
.kpi-title>span{font-size:17px;color:var(--ink);letter-spacing:-.4px}
.round-link{display:grid;place-items:center;width:31px;height:31px;border:1px solid #313131;border-radius:50%;flex-shrink:0}
.round-link .icon{height:18px;width:18px}
.round-link:hover{background:var(--accent-soft)}
.kpi strong{font-size:47px;letter-spacing:-1.5px;line-height:1.1;font-weight:500}
.kpi small{display:flex;align-items:center;gap:7px;font-size:11px;color:#53615a;line-height:1.4}
.kpi.featured{background:var(--accent);color:var(--ink)}
.kpi.featured .kpi-title>span{color:var(--ink)}
.kpi.featured .round-link{border:0;background:white;color:#222}
.kpi.featured small{color:var(--soft)}
.tiny-trend{display:inline-grid;place-items:center;width:16px;height:15px;border:1px solid #899553;border-radius:4px}
.tiny-trend .icon{width:11px;height:11px;color:#17181c}
.overview-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;grid-template-rows:minmax(225px,auto) minmax(278px,auto)}
.overview-grid .panel{margin:0;padding:19px 18px;border-radius:22px;min-width:0}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}
.panel-heading h2{font-size:18px;line-height:1.2;letter-spacing:-.5px;margin:0}
.subtle-label{font-size:10px;color:#a4aca7;white-space:nowrap}
.analytics-panel{grid-column:span 6;position:relative}
.weekly-chart{display:flex;align-items:stretch;gap:12px;height:149px;padding:5px 1px 0}
.day-column{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;position:relative;border-radius:40px}
.bar-space{height:100%;width:100%;position:relative;display:flex;align-items:flex-end}
.day-bar{display:block;background:var(--ink);border-radius:60px;width:100%;min-height:7px;transition:height .4s ease}
.day-column:nth-child(3n) .day-bar{background:var(--accent)}
.day-column:nth-child(4n) .day-bar{background:var(--ink)}
.day-column.current .day-bar{background:var(--accent)}
.day-column:nth-child(3n+1):not(.current) .day-bar{background:repeating-linear-gradient(135deg,white 0px,white 3px,#adb9b1 3px,#adb9b1 6px)}
.day-bar.zero{background:#d4ddd6!important}
.day-label{font-size:12px;color:#a2b0a8}
.bar-tooltip{position:absolute;left:50%;top:10%;transform:translateX(-50%);background:#fff;border:1px solid #adb9b1;color:#17181c;padding:2px 6px;font-size:10px;border-radius:4px;opacity:0;pointer-events:none;white-space:nowrap;z-index:1}
.day-column:hover .bar-tooltip,.day-column:focus-visible .bar-tooltip{opacity:1}
/* Centred in the empty space above the bars, whatever the size of the day labels below them. */
.weekly-chart{position:relative}
.chart-empty{position:absolute;top:38%;left:0;right:0;transform:translateY(-50%);margin:0;font-size:14px;color:#68736e;text-align:center;pointer-events:none}
.attention-panel{grid-column:span 3;display:flex;flex-direction:column}
.attention-panel .panel-heading{margin-bottom:16px}
.small-dot{width:6px;height:6px;border-radius:50%;background:#68736e}
.eyebrow{font-size:8px;letter-spacing:1.4px;color:#53615a;margin:0 0 7px}
.attention-panel h3{font-size:25px;color:var(--ink);line-height:1.08;letter-spacing:-.8px;margin-bottom:7px}
.attention-panel .muted{font-size:11px}
.attention-panel .btn{margin-top:auto;min-height:43px;font-size:14px}
.right-rail{grid-column:10 / 13;grid-row:1 / 3;display:flex;flex-direction:column;gap:12px;min-width:0}
.sellers-panel{flex:1}
.sellers-panel .panel-heading{margin-bottom:20px}
.seller-list{display:flex;flex-direction:column;gap:18px}
.seller{display:flex;align-items:center;gap:12px;text-align:left;width:100%;border-radius:8px}
.seller:hover strong{color:var(--ink)}
.seller>span:last-child{min-width:0;display:flex;flex-direction:column;gap:5px}
.seller strong{font-weight:400;font-size:13px;line-height:1.15}
.seller small{font-size:9px;color:#a4b0a9}
.dish-icon{display:grid;place-items:center;height:27px;width:27px;flex-shrink:0;border-radius:9px;color:#17181c;background:#eefb94}
.dish-1{background:#fff;color:#53615a}.dish-2{background:var(--accent-soft);color:#53615a}.dish-3{background:#d4ddd6;color:#53615a}.dish-4{background:#adb9b1;color:#17181c}
.dish-icon .icon{width:19px;height:19px}
.team-panel{grid-column:span 5;display:flex;flex-direction:column}
.team-list{display:flex;flex-direction:column;gap:13px}
.team-member{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border-radius:14px}
.team-member:hover{background:#f3f4f3}
.team-member .avatar{width:39px;height:39px;font-size:12px;border-width:2px}
.avatar-1{background:#eefb94;color:#53615a}.avatar-2{background:#d4ddd6;color:#53615a}.avatar-3{background:var(--accent-soft);color:#53615a}
.team-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.team-copy strong{font-size:13px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-copy small{font-size:10px;color:#a5b0aa}
.role-tag{margin-left:auto;font-size:8px;color:#53615a;background:#f3f4f3;border:1px solid #d4ddd6;padding:2px 5px;border-radius:5px}
.role-tag.manager{color:#17181c;background:#eefb94;border-color:#d4ddd6}
.team-footnote{font-size:10px;color:#68736e;margin:auto 0 0;padding-top:12px}
.progress-panel{grid-column:span 4;display:flex;flex-direction:column}
.gauge{position:relative;margin:5px 0 0;flex:1;display:flex;align-items:center}
.gauge svg{width:100%;overflow:visible}
.gauge path{fill:none;stroke-width:46;stroke-linecap:round}
.gauge-track{stroke:url(#gauge-stripes)}
.gauge-fill{stroke:var(--accent)}
.gauge-value{position:absolute;top:57%;left:50%;transform:translate(-50%,-25%);display:flex;flex-direction:column;align-items:center;white-space:nowrap}
.gauge-value strong{font-size:45px;font-weight:500;line-height:1;letter-spacing:-2px}
.gauge-value strong span{font-size:37px}
.gauge-value small{font-size:11px;color:#53615a;margin-top:5px}
.gauge-legend{display:flex;justify-content:center;gap:18px;margin-top:14px;color:#53615a;font-size:10px}
.gauge-legend span{display:flex;align-items:center;gap:6px}
.gauge-legend i{width:14px;height:14px;border-radius:50%;background:var(--accent)}
.gauge-legend .striped{background:repeating-linear-gradient(135deg,white 0,white 2px,#adb9b1 2px,#adb9b1 4px)}
.wait-panel{position:relative;isolation:isolate;overflow:hidden;min-height:193px;border-radius:22px;background:#17181c;color:#fff;padding:20px 18px 17px}
.wait-panel::before{inset:-85% -80% -70% -50%;background:repeating-radial-gradient(ellipse at 60% 70%,transparent 0,transparent 7px,#eefb941a 9px,#adb9b133 12px,#17181c77 16px);transform:rotate(-30deg)}
.wait-panel h2{font-size:18px;letter-spacing:-.5px}
.wait-panel p{font-size:10px;color:#cbd3cd;margin:6px 0 14px}
.wait-panel>strong{font-size:35px;font-weight:500;letter-spacing:-1px;display:block;text-align:center;font-variant-numeric:tabular-nums}
.wait-actions{display:flex;justify-content:center;gap:8px;margin-top:16px}
.timer-button{height:38px;width:38px;display:grid;place-items:center;background:white;color:var(--ink);border-radius:50%}
.timer-button.finish{background:var(--accent);color:var(--ink)}
.timer-button:hover{transform:translateY(-2px)}
.workspace-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 3px 0;color:#a4aaa6;font-size:9px}
.footer-dot{padding:0 5px}
.live{font-size:9px;gap:6px}
.live i{width:5px;height:5px;background:var(--ok);box-shadow:0 0 0 3px #48624f20}
.alerts>:not([hidden]):last-of-type{margin-bottom:14px}
.alert{padding:11px 14px;font-size:12px;border-radius:14px}
.alert.quiet{background:var(--accent-soft);color:var(--soft)}
#sound-prompt{padding:8px 12px;font-size:10px}
#sound-prompt .icon{width:14px;height:14px}
.panel{border-radius:22px}
.status.NEW{background:var(--accent-soft);color:var(--ink)}
.status.FINISHED{background:var(--accent-soft);color:var(--soft)}
.order-card.is-new,.table-card.busy{border-color:#68736e}
.switch[aria-checked=true] i{background:var(--ink)}
.order-card header strong{font-size:24px}
.compact-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 4px;color:#adb9b1;gap:10px}
.compact-empty .icon{height:32px;width:32px}
.compact-empty p{font-size:13px;color:#53615a;margin:4px 0}
.compact-empty small{font-size:11px;line-height:1.5}
.data-warning{font-size:10px;color:var(--danger);margin:0 0 6px}
.search-result{display:flex;align-items:center;gap:13px;text-align:left;padding:13px 8px;width:100%;border-bottom:1px solid #d4ddd6}
.search-result:hover{background:var(--accent-soft)}
.search-result>span{display:flex;flex-direction:column;gap:5px;flex:1;font-size:14px}
.search-result small{font-size:11px;color:#aaa}
.search-result>.icon{color:var(--ink);width:19px}
#search-results,.activity-list{margin-top:15px}
.search-hint{font-size:10px;color:var(--muted);margin:16px 0 0}
.detail-stat{font-size:48px;letter-spacing:-2px;margin-top:20px;color:var(--ink)}
.help-content h3{font-size:16px;margin-top:23px;color:var(--ink)}
.help-content p{font-size:14px;color:var(--soft);line-height:1.6;margin:7px 0 20px}
.order-form{display:flex;flex-direction:column;gap:18px;margin-top:22px}
.order-form textarea{padding:12px;resize:vertical}
.order-form>.btn.small{align-self:flex-start}
.draft-row{display:grid;grid-template-columns:minmax(0,1fr) 62px 34px;align-items:end;gap:9px;margin-bottom:12px}
.draft-row .icon-button{height:44px;width:34px;background:#f3f4f3;color:var(--ink)}
.draft-row input{padding:0 10px}
.draft-total{display:flex;justify-content:space-between;align-items:center;padding-top:16px;border-top:1px solid var(--line)}
.draft-total strong{font-size:24px;font-weight:500}
.auth-card .brand-mark{background:#eefb94;color:var(--ink)}
.auth-card{box-shadow:0 30px 90px #17181c12}
@media(min-width:1650px){
 .layout{grid-template-columns:275px minmax(0,1fr)}
 .sidebar{padding-top:30px}
 .topbar{padding:22px;min-height:99px}
 .content{padding:26px 22px 18px}
 .kpi{min-height:185px;padding:22px}
 .kpi-title>span{font-size:20px}.kpi strong{font-size:55px}
 .overview-grid{grid-template-rows:250px minmax(310px,auto)}
 .weekly-chart{height:170px;gap:15px}
 .seller-list{gap:22px}.seller strong{font-size:15px}.seller small{font-size:11px}
 .team-member{gap:13px}.team-copy strong{font-size:15px}.team-copy small{font-size:11px}
 .team-member .avatar{width:44px;height:44px}.team-list{gap:16px}
 .wait-panel{min-height:211px}.wait-panel>strong{font-size:42px}
 .attention-panel h3{font-size:29px}.attention-panel .muted{font-size:13px}
 .panel-heading h2{font-size:20px}.side-promo{min-height:220px}
}
@media(max-width:1200px) and (min-width:861px){
 .layout{grid-template-columns:195px minmax(0,1fr)}
 .sidebar{padding-left:10px;padding-right:10px}.nav button{font-size:15px}.nav button.active::before{left:-10px}
 .brand{font-size:24px;gap:8px}.brand-symbol{width:36px;height:36px}.side-top{padding:0 5px}
 .content{padding:20px 14px}.topbar{padding:16px 14px}.topbar-actions{gap:6px}.profile-copy{display:none}
 .kpi{padding:15px 13px;min-height:150px}.kpi-title>span{font-size:14px}.kpi strong{font-size:34px}.kpi small{font-size:9px}.round-link{width:25px;height:25px}
 .page-head h1{font-size:33px}.page-head p{font-size:12px}.head-actions{gap:8px}.head-actions .btn{font-size:12px;padding:0 14px;min-height:41px}
 .overview-grid{gap:10px}.overview-grid .panel{padding:16px 12px}.panel-heading h2{font-size:16px}.subtle-label{font-size:8px}
 .analytics-panel{grid-column:span 5}.attention-panel{grid-column:span 3}.right-rail{grid-column:9/13}.team-panel{grid-column:span 4}.progress-panel{grid-column:span 4}
 .team-member{gap:6px}.team-member .avatar{width:30px;height:30px;font-size:10px}.team-copy strong{font-size:11px}.role-tag{font-size:7px}
 .team-panel .panel-heading{flex-wrap:wrap}.attention-panel h3{font-size:23px}.weekly-chart{gap:8px}.gauge-value strong{font-size:35px}.gauge-value strong span{font-size:29px}.gauge-legend{gap:9px;font-size:8px}
}
@media(max-width:860px){
 .layout{display:flex;flex-direction:column;min-height:100dvh}.workspace{flex:1}
 .sidebar{position:relative;min-height:0;height:auto;overflow:visible;padding:16px 14px 10px;border-radius:0;display:flex;gap:13px;margin-bottom:0;border-right:0;border-bottom:1px solid var(--line)}
 .side-top{margin:0;padding:0}.brand{font-size:23px;gap:9px}.brand-symbol{height:34px;width:34px;border-width:2px}.brand-symbol .icon{height:21px;width:21px}
 .nav-section{min-width:0}.nav-label,.side-promo{display:none}.general{margin:0;position:absolute;right:10px;top:13px}.general .nav{margin:0;padding:0}.general .nav button{padding:0 10px;min-height:38px}.general .nav button span{display:none}.general .nav button.active::before{display:none}
 .nav{flex-direction:row;overflow-x:auto;margin:0 -14px;padding:0 14px;gap:5px;scrollbar-width:none}
 .nav button{min-height:37px;border-radius:30px;font-size:12px;gap:6px;padding:0 12px;flex-shrink:0}.nav button .icon{height:17px;width:17px}
 .nav button.active{background:#434549;color:#fff}.nav button.active::before{display:none}.nav-count{font-size:9px;height:17px;min-width:18px}
 .topbar{min-height:74px;padding:12px;gap:8px}.global-search{width:auto;flex:1;max-width:355px;padding:6px 10px;gap:7px}.global-search input{font-size:12px;min-height:31px}.global-search .icon{width:17px;height:17px}kbd{font-size:9px;padding:4px}
 .topbar-actions{gap:6px}.icon-button{width:36px;height:36px}.icon-button .icon{height:18px;width:18px}.profile-copy{display:none}.profile{padding:0}.avatar{height:36px;width:36px;font-size:12px}
 .content{padding:19px 13px 12px}.page-head{margin-bottom:17px}.page-head h1{font-size:31px}.page-head p{font-size:12px;line-height:1.5;margin-top:7px}
 .head-actions{gap:8px}.head-actions .btn{min-height:38px;font-size:12px;padding:0 15px}
 .dashboard-controls{gap:5px}.dashboard-controls .segmented{flex-wrap:nowrap}.dashboard-controls .segmented button{font-size:10px;padding:0 10px}.period-note{display:none}
 .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}.kpi{border-radius:18px;padding:16px;min-height:154px;gap:14px}.kpi-title>span{font-size:16px}.kpi strong{font-size:37px}.kpi small{font-size:10px}.round-link{height:28px;width:28px}
 .overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:10px}.overview-grid .panel{padding:18px 15px;border-radius:18px}.analytics-panel{grid-column:span 2;min-height:230px}.weekly-chart{height:150px}.attention-panel{grid-column:span 1;min-height:233px}.attention-panel h3{font-size:25px}.attention-panel .btn{margin-top:20px}
 .team-panel{grid-column:span 1;grid-row:2;min-height:233px}.team-panel .panel-heading{flex-wrap:wrap}.team-member .avatar{width:31px;height:31px;font-size:10px}.team-copy strong{font-size:11px}.team-copy small{font-size:9px}.role-tag{font-size:7px}.team-member{gap:6px}.team-footnote{font-size:9px}
 .progress-panel{grid-column:span 1;grid-row:3;min-height:245px}.gauge-value strong{font-size:37px}.gauge-value strong span{font-size:31px}.gauge-legend{gap:10px;font-size:9px}
 .right-rail{grid-column:2;grid-row:3 / 5}.sellers-panel{min-height:240px}.wait-panel{min-height:200px}.seller-list{gap:16px}.seller strong{font-size:12px}
 .workspace-footer{font-size:8px;flex-wrap:wrap}.live{font-size:8px}.workspace-footer>span{display:none}
 .panel-heading h2{font-size:17px}.subtle-label{font-size:9px}.order-grid{grid-template-columns:1fr}.order-card{padding:17px;border-radius:20px}
}
@media(max-width:500px){
 .sidebar{padding:14px 12px 9px}.nav{margin:0 -12px;padding:0 12px}.content{padding:19px 12px 12px}.topbar-actions>.icon-button:first-child{display:none}
 .global-search{max-width:none}.topbar{padding:10px;gap:10px}.global-search input{font-size:11px}.global-search kbd{display:none}.global-search button{display:none}
 .head-actions{width:100%}.head-actions .btn{flex:1;min-height:41px}.page-head h1{font-size:32px}.page-head p{font-size:11px}
 .dashboard-controls .segmented{width:100%;justify-content:space-between}.dashboard-controls .segmented button{font-size:10px;padding:0 9px}
 .kpi{padding:14px 12px;min-height:145px}.kpi-title>span{font-size:14px}.kpi strong{font-size:32px}.kpi small{font-size:9px}.round-link{height:25px;width:25px}.round-link .icon{width:16px;height:16px}
 .overview-grid{grid-template-columns:minmax(0,1fr)}.analytics-panel,.attention-panel,.team-panel,.progress-panel,.right-rail{grid-column:1;grid-row:auto}.analytics-panel{order:0}.attention-panel{order:1;min-height:210px}.team-panel{order:3;min-height:225px}.progress-panel{order:4;min-height:300px}.right-rail{order:2;display:grid;grid-template-columns:1fr;gap:10px}
 .attention-panel h3 br{display:none}.attention-panel h3{font-size:30px}.attention-panel .btn{margin-top:16px}.team-panel .panel-heading{flex-wrap:nowrap}.team-copy strong{font-size:14px}.team-copy small{font-size:11px}.team-member .avatar{width:39px;height:39px;font-size:12px}.team-member{gap:10px}.role-tag{font-size:9px}
 .gauge{max-width:310px;width:100%;margin:auto;flex:0}.gauge-value strong{font-size:48px}.gauge-value strong span{font-size:40px}.gauge-legend{font-size:11px;margin-top:0}.seller strong{font-size:15px}.seller small{font-size:11px}.seller-list{gap:18px}.sellers-panel{min-height:200px}
 .wait-panel{min-height:200px}.wait-panel>strong{font-size:42px}.wait-actions{margin-top:13px}.wait-panel h2{font-size:20px}.wait-panel p{margin:6px 0 8px}
 .menu-group{padding:16px 12px}.menu-row{gap:9px}.menu-row .row-main strong{font-size:13px}.price-field{width:97px}.menu-row .switch{font-size:11px;padding-right:9px}
 dialog{padding:25px 18px 20px}.draft-row{grid-template-columns:minmax(0,1fr) 54px 28px;gap:6px}.draft-row .icon-button{width:28px}.draft-row select{font-size:12px;padding:0 9px}
}
/* Keep period selection with the header actions, leaving the reference's card rhythm intact. */
.head-actions-wrapper{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.head-actions-wrapper .dashboard-controls{margin:0}
.head-actions-wrapper .period-note{display:none}
.kpi strong.compact-value{font-size:32px;letter-spacing:-1.4px}
@media(min-width:1650px){
 .layout{grid-template-columns:286px minmax(0,1fr)}
 .topbar{min-height:110px}
 .content{padding-top:28px}
 .page-head{margin-bottom:25px}
 .page-head h1{font-size:46px;font-weight:400;letter-spacing:-1.7px}
 .page-head p{font-size:18px;margin-top:12px}
 .nav button{font-size:22px;min-height:54px}.side-top{margin-bottom:58px}.general{margin-top:49px}
 .brand{font-size:29px}.brand-symbol{width:47px;height:47px}
 .global-search{width:420px}.global-search input{font-size:17px;min-height:40px}.global-search .icon{width:24px;height:24px}
 .profile strong{font-size:20px}.profile small{font-size:16px}.profile .avatar{width:59px;height:59px;font-size:20px}
 .topbar-actions{gap:14px}.topbar-actions>.icon-button{width:58px;height:58px}.topbar-actions>.icon-button .icon{width:24px;height:24px}
 .head-actions .btn{min-height:52px;font-size:18px;padding:0 23px}
 .head-actions-wrapper{gap:9px}.dashboard-controls .segmented button{min-height:24px;font-size:10px;padding:0 12px}
 .kpi{min-height:202px;padding:22px}.kpi-title>span{font-size:22px}.kpi strong{font-size:62px}.kpi small{font-size:13px}.round-link{height:38px;width:38px}.round-link .icon{width:22px;height:22px}
 .kpi strong.compact-value{font-size:42px}
 .overview-grid{grid-template-rows:277px minmax(340px,auto)}
 .overview-grid .panel{padding:22px}.panel-heading h2{font-size:22px}.subtle-label{font-size:11px}
 .weekly-chart{height:188px;gap:15px}.day-label{font-size:15px}
 .attention-panel h3{font-size:30px}.attention-panel .muted{font-size:14px}.attention-panel .btn{min-height:54px;font-size:18px}.eyebrow{font-size:9px;margin-top:4px}
 .btn.small{min-height:36px;font-size:13px;padding:0 14px}.seller-list{gap:22px}.seller strong{font-size:17px}.seller small{font-size:12px}.dish-icon{width:32px;height:32px}.dish-icon .icon{width:23px;height:23px}
 .team-list{gap:16px}.team-copy strong{font-size:17px}.team-copy small{font-size:12px}.team-member .avatar{width:47px;height:47px;font-size:14px}.role-tag{font-size:10px}.team-footnote{font-size:11px}
 .gauge-value strong{font-size:59px}.gauge-value strong span{font-size:48px}.gauge-value small{font-size:14px}.gauge-legend{font-size:12px}.gauge-legend i{width:17px;height:17px}
 .wait-panel{min-height:230px;padding:24px 22px}.wait-panel h2{font-size:23px}.wait-panel p{font-size:12px}.wait-panel>strong{font-size:46px}.timer-button{height:44px;width:44px}
 .side-promo{padding:20px 16px 16px;min-height:236px}.side-promo h2{font-size:26px}.side-promo p{font-size:12px}.side-promo .btn{font-size:14px;min-height:43px}
}
@media(max-width:860px){.head-actions-wrapper{align-items:flex-start;width:100%;gap:12px}.head-actions-wrapper .dashboard-controls{width:100%}.head-actions-wrapper .head-actions{width:100%}.head-actions-wrapper .head-actions .btn{flex:1}.kpi strong.compact-value{font-size:24px}}

/* Interaction: restrained depth, clear focus, immediate feedback, and finite entry motion. */
:root{--motion-fast:160ms;--motion-base:240ms;--motion-ease:cubic-bezier(.22,1,.36,1)}
.btn,.icon-button,.round-link,.timer-button,.profile,.nav button,.seller,.team-member,.search-result,.table-card,.kpi,.order-card{transition:background-color var(--motion-fast),border-color var(--motion-fast),box-shadow var(--motion-base),transform var(--motion-base) var(--motion-ease),opacity var(--motion-fast)}
.btn{position:relative;isolation:isolate}
.btn.primary{box-shadow:0 3px 8px #17181c12,inset 0 1px 0 #ffffff16}
.btn.primary:hover{box-shadow:0 5px 16px #17181c28;filter:none;background:#303338}
.btn.primary:active:not(:disabled){box-shadow:0 1px 3px #17181c24;transform:translateY(1px) scale(.98)}
.btn.outline:hover,.btn.ghost:hover{background:var(--accent-soft);border-color:var(--sage)}
.btn.ghost.danger:hover{background:var(--danger-soft);border-color:var(--danger)}
.btn .icon,.round-link .icon,.icon-button .icon,.seller .dish-icon{transition:transform var(--motion-base) var(--motion-ease)}
.btn:hover .icon:last-child,.round-link:hover .icon{transform:translate(1px,-1px)}
.icon-button:active,.round-link:active,.timer-button:active{transform:scale(.92)}
.icon-button:hover .icon{transform:rotate(-7deg)}
.nav button.active::before{animation:nav-reveal 260ms var(--motion-ease)}
.nav button:active{transform:scale(.97)}
.nav-count{animation:badge-in 240ms var(--motion-ease)}
.profile{border-radius:32px;padding:4px 7px 4px 2px}
.profile:hover{background:#e8eeea}
.seller,.team-member{padding:5px;margin:-5px;width:calc(100% + 10px)}
.seller:hover,.team-member:hover{background:#f3f4f3;transform:translateX(3px)}
.seller:hover .dish-icon{transform:rotate(-6deg) scale(1.08)}
.search-result{border-radius:10px;transition:background-color 120ms,transform 160ms}
.search-result:focus-visible{outline:2px solid #53615a;outline-offset:-2px;background:var(--accent-soft)}
.search-result:active{transform:scale(.99)}
.command-label{color:#68736e;font-size:10px;letter-spacing:1px;margin:20px 8px 7px}
#search-results{max-height:55dvh;overflow-y:auto;overscroll-behavior:contain;padding:2px}
.search-hint{padding-top:12px;border-top:1px solid var(--line)}
input,select,textarea,.global-search,.price-field{transition:border-color 180ms,box-shadow 180ms,background-color 180ms}
input:focus,select:focus,textarea:focus{outline:2px solid #53615a;outline-offset:0;box-shadow:0 0 0 4px #53615a0b}
.global-search:focus-within{outline-color:#adb9b1;box-shadow:0 3px 16px #17181c11}
.global-search input:focus{box-shadow:none;outline:none}
.day-bar{transform-origin:center bottom;will-change:auto}
.day-column{transition:opacity 180ms}
.bar-tooltip{top:-5px;box-shadow:0 3px 12px #17181c13;padding:5px 8px;transition:opacity 140ms,translate 180ms;translate:0 4px;pointer-events:none}
.day-column:hover .bar-tooltip,.day-column:focus-visible .bar-tooltip{translate:0 0}
.day-column:focus-visible{outline:2px solid #53615a;outline-offset:4px}
.gauge-value strong,.kpi>strong,#wait-clock{font-variant-numeric:tabular-nums}
.gauge-value strong .progress-number{font-size:inherit}
.saving-state{display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;background:var(--accent-soft);border-radius:25px;color:var(--ink)}
.spinner,.is-pending::after{width:16px;height:16px;flex-shrink:0;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin 700ms linear infinite}
.is-pending::after{content:'';display:inline-block;margin-left:4px}
button.is-pending:disabled{opacity:.8;cursor:progress}
.switch:disabled{opacity:.65;cursor:progress}
.order-exit{contain:layout paint}
.toast{border:1px solid #ffffff18;backdrop-filter:blur(12px);background:#17181cef;padding:14px 22px;box-shadow:0 8px 32px #17181c26}
.toast::before{content:'';display:inline-block;vertical-align:middle;width:6px;height:6px;background:#eefb94;border-radius:50%;margin-right:10px}
.live:not(.offline) i{animation:live-pulse 3s ease-in-out infinite}
.skeleton-overview{pointer-events:none}
.skeleton-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}
.skeleton-card{background:var(--surface);border-radius:22px;padding:22px;min-height:167px;overflow:hidden;position:relative}
.skeleton-card::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 25%,#ffffffb0 45%,transparent 65%);transform:translateX(-100%);animation:shimmer 1.5s ease-in-out infinite}
.skeleton-card i,.skeleton-card b{display:block;background:#d4ddd6;border-radius:8px;height:12px;width:62%;margin-bottom:23px}
.skeleton-card b{height:40px;width:48%}.skeleton-card i:last-child{height:9px;width:80%;margin-bottom:0}
.skeleton-panels{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.skeleton-panels>.skeleton-card{height:275px}
.skeleton-panels>.skeleton-card::before{content:'';position:absolute;inset:22px 22px 50px;border-radius:14px;background:#e8eeea}
dialog::backdrop{background:#17181c52;backdrop-filter:blur(4px);animation:backdrop-in 180ms ease-out}
dialog{box-shadow:0 32px 100px #17181c33,0 0 0 1px #ffffff50}
.dialog-close{transition:transform 160ms,background-color 160ms}
.dialog-close:hover{background:#eefb94;transform:rotate(90deg)}
.auth-card{animation:surface-in 480ms var(--motion-ease)}
@media(hover:hover) and (pointer:fine){
 .kpi:hover{box-shadow:0 8px 24px #17181c09;transform:translateY(-3px)}
 .kpi.featured:hover{box-shadow:0 8px 24px #68736e24}
 .table-card:hover{box-shadow:0 5px 22px #17181c09;transform:translateY(-2px)}
 .order-card:hover{box-shadow:0 5px 22px #17181c08}
 .weekly-chart:has(.day-column:hover) .day-column:not(:hover){opacity:.55}
}
@keyframes nav-reveal{from{opacity:0;transform:scaleY(.35)}to{opacity:1;transform:scaleY(1)}}
@keyframes badge-in{from{transform:scale(.8)}to{transform:scale(1)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes shimmer{to{transform:translateX(100%)}}
@keyframes surface-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes alert-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@keyframes backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes live-pulse{50%{box-shadow:0 0 0 5px #48624f12}}
@media(min-width:1650px){.skeleton-card{min-height:202px}}
@media(max-width:860px){.skeleton-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.skeleton-card{min-height:145px}.skeleton-panels{grid-template-columns:1fr}.skeleton-panels>.skeleton-card{height:225px}.profile{padding:0}}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .kpi:hover,.table-card:hover,.seller:hover,.team-member:hover,.dialog-close:hover{transform:none}
}

/* Readable service typography. Headings, values and actions carry the hierarchy. */
:root{--attention-duration:560ms;--attention-ease:cubic-bezier(.22,1,.36,1)}
body{line-height:1.45}
h1,h2,h3,strong,.btn,.nav button.active{font-weight:600}
.page-head h1{font-weight:600;font-size:clamp(30px,3vw,44px)}
.page-head p{font-size:15px;color:var(--soft);line-height:1.5}
.panel-heading{flex-wrap:wrap;row-gap:8px}
.panel-heading h2,.panel h2{font-size:20px;font-weight:600;line-height:1.3}
.kpi-title>span{font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-.2px}
.kpi strong{font-weight:600}
.kpi small{font-size:13px;color:#53615a}
.kpi.featured small{color:#53615a}
.btn.small{min-height:40px;font-size:13px;padding:0 14px}
.dashboard-controls .segmented button{min-height:36px;font-size:13px;font-weight:500}
.subtle-label,.eyebrow,.role-tag,.team-footnote,.data-warning{font-size:12px}
.eyebrow{color:#53615a;letter-spacing:1px;font-weight:600}
.subtle-label,.team-footnote,.day-label,.chart-empty{color:var(--soft)}
.attention-panel h3{font-size:28px;font-weight:600;line-height:1.18}
.attention-panel .muted{font-size:14px;line-height:1.5;margin-bottom:18px}
.attention-panel .btn{font-size:15px;min-height:44px;white-space:normal}
.seller strong,.team-copy strong,.row-main strong{font-size:16px;font-weight:600;line-height:1.35}
.seller small,.team-copy small,.search-result small,.compact-empty small{font-size:13px;color:var(--soft);line-height:1.45}
.team-member{flex-wrap:wrap;row-gap:8px}
.team-copy{flex:1;min-width:80px}
.team-copy strong{white-space:normal;overflow-wrap:anywhere}
.role-tag{font-weight:500}
.gauge-legend{font-size:13px;flex-wrap:wrap;gap:10px 16px}
.gauge-value small{font-size:13px;color:#53615a}
.wait-panel h2{font-size:21px;font-weight:600}
.wait-panel p{font-size:14px;color:#cbd3cd}
.wait-panel>strong{font-size:clamp(30px,2.5vw,46px);font-weight:600}
.nav button{color:#cbd3cd;font-weight:500}
.nav-count{font-size:12px;min-width:24px;height:24px}
.profile strong{font-weight:600}.profile small{color:var(--soft)}
.workspace-footer,.live{font-size:12px;color:var(--soft)}
.workspace-footer{flex-wrap:wrap}
.menu-row .row-main strong{font-size:15px}
.menu-row .switch{font-size:13px}
.order-card header strong,.order-total strong{font-weight:600}
.order-card header small{font-size:13px;color:var(--soft)}
.order-lines{font-size:16px;line-height:1.5}
.order-lines li{grid-template-columns:30px minmax(0,1fr) auto}
.order-lines span,.order-note,.signal-copy,.seller strong{overflow-wrap:anywhere}
.order-lines em{font-size:14px;color:var(--soft)}
.order-note{font-size:15px;font-weight:500;line-height:1.5}
.order-card header>div{min-width:0}
.overview-grid{grid-template-rows:minmax(260px,auto) minmax(310px,auto);align-items:stretch}
.overview-grid>.panel,.right-rail>.panel{min-width:0}

/* Dynamic text: intrinsic size transitions move the actual surrounding layout.
   No scaling of whole surfaces, polling flashes, or looping urgency animations. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.alerts{gap:0}
.alerts>.signal-slot:last-of-type{margin-bottom:0}
.signal-slot{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--attention-duration) var(--attention-ease)}
.signal-slot.is-visible{grid-template-rows:1fr}
.signal-clip{min-height:0;overflow:hidden}
.signal-slot .alert{margin:0 0 14px}
.alert{font-size:14px;line-height:1.5}
.signal-copy{flex:1;min-width:150px;display:flex;flex-direction:column;gap:4px}
.signal-copy strong{display:block;font-size:17px;line-height:1.3;font-weight:600;letter-spacing:-.3px}
.signal-copy small{font-size:14px;line-height:1.5}
.signal-copy strong,.order-card header strong,.order-lines,.attention-panel h3{transition:font-size var(--attention-duration) var(--attention-ease),color 320ms ease,letter-spacing var(--attention-duration) var(--attention-ease)}
.order-card,.attention-panel{transition:padding var(--attention-duration) var(--attention-ease),gap var(--attention-duration) var(--attention-ease),background-color 400ms ease,border-color 400ms ease,box-shadow 400ms ease}
.alert.needs-attention .signal-copy strong{font-size:clamp(22px,2vw,28px)}
.alert.danger{padding:22px;align-items:flex-start}
.order-card{gap:14px;padding:20px}
.order-card.is-new{padding:26px 22px;gap:18px;background:var(--accent-soft);border-color:#899553;box-shadow:0 6px 24px #17181c0a}
.order-card.is-new header strong{font-size:30px;color:var(--ink)}
.order-card.is-new .order-lines{font-size:18px}
.order-ack{display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 12px;text-align:left;border-radius:12px;background:#eefb94;color:var(--ink);font-size:14px;font-weight:600;line-height:1.4;transition:background-color 400ms,color 400ms}
.order-ack[aria-disabled=true]{background:var(--raised);color:var(--soft);font-weight:500;cursor:default}
.order-ack .icon{width:17px;height:17px}
.attention-panel.needs-attention{background:#eefb94;box-shadow:inset 0 0 0 1px #d4ddd6;padding-top:26px;padding-bottom:26px}
.attention-panel.needs-attention h3{font-size:34px}
#sound-prompt{font-size:13px;padding:12px 14px}
#sound-prompt .icon{width:18px;height:18px}
@media(min-width:861px) and (max-width:1200px){
 .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
 .analytics-panel{grid-column:1/-1}.attention-panel{grid-column:1}
 .right-rail{grid-column:2;grid-row:2/4}.team-panel{grid-column:1}.progress-panel{grid-column:1/-1}
 .progress-panel .gauge{width:min(100%,330px);margin:auto}
}
@media(max-width:860px){
 .kpi-title>span{font-size:16px}.kpi{padding:17px 14px;gap:14px}.kpi strong{font-size:34px}
 .kpi small{font-size:12px}.kpi strong.compact-value{font-size:24px;overflow-wrap:anywhere}
 .panel-heading h2{font-size:20px}.overview-grid{grid-template-rows:auto}
 .attention-panel h3{font-size:28px}.attention-panel.needs-attention h3{font-size:34px}
 .signal-slot .alert{gap:12px;padding:14px}.signal-slot .alert.needs-attention{padding:20px 16px}
 .signal-copy{min-width:0;flex-basis:calc(100% - 38px)}
 .order-card.is-new{padding:22px 18px}.order-card.is-new header strong{font-size:28px}
 .team-panel .panel-heading{flex-wrap:wrap}.workspace-footer{font-size:12px}.live{font-size:12px}
 .gauge-legend{font-size:13px}.seller strong{font-size:16px}.seller small,.team-copy small{font-size:13px}
}
@media(prefers-reduced-motion:reduce){
 .signal-slot,.signal-copy strong,.order-card,.order-card header strong,.order-lines,.attention-panel,.attention-panel h3,.order-ack{transition:none!important}
}

/* Incoming notifications — layered cards from the supplied notification-stack.
   Frosted glass, inset translucent sheets, and a rolling footer label. */
#notification-dock{position:fixed;z-index:18;right:24px;bottom:24px;width:min(352px,calc(100vw - 32px));opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity 240ms ease,transform 400ms var(--motion-ease),visibility 240ms;pointer-events:none}
#notification-dock.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.notification-stack{display:block;position:relative;width:100%;padding:12px;border:1px solid #ffffffb8;border-radius:24px;background:linear-gradient(135deg,#ffffffa6,#ffffff40 48%,#e8eeea70);-webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%);color:#17181c;text-align:left;box-shadow:0 16px 48px #17181c1c,0 4px 12px #17181c0a,0 0 0 1px #17181c0a,inset 0 1px 0 #fffffff0,inset 0 -1px 0 #ffffff50;outline-offset:4px;isolation:isolate}
.notification-stage{display:block;position:relative;height:110px;transition:height 480ms cubic-bezier(.22,1,.36,1)}
.notification-card{position:absolute;inset:0 0 auto;display:block;padding:0 16px;border:1px solid #ffffffb8;border-radius:16px;background:linear-gradient(125deg,#ffffffb0,#ffffff52);box-shadow:inset 0 1px 0 #ffffffeb,inset 0 -1px 0 #ffffff50,0 2px 8px #17181c06;transition:transform 480ms cubic-bezier(.22,1,.36,1),clip-path 320ms cubic-bezier(.22,1,.36,1)}
.notification-card-content{display:flex;min-width:0;flex-direction:column;gap:6px;padding:16px 0;transition:opacity 180ms ease}
.notification-stack:not(.is-expanded) .notification-card[aria-hidden=true] .notification-card-content{opacity:0}
.notification-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.notification-card-heading strong{font-size:14px;line-height:1.4;font-weight:600;min-width:0;overflow-wrap:anywhere}
.notification-card-heading>span{font-size:12px;line-height:1.6;white-space:nowrap;color:#53615a;font-weight:500}
.notification-description{font-size:12px;line-height:1.6;color:#53615a;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.notification-meta{font-size:11px;line-height:1.5;color:#68736e}
.notification-footer{display:flex;align-items:center;gap:8px;position:relative;min-height:36px;padding:0 4px;margin-top:8px}
.notification-count{display:grid;place-items:center;flex-shrink:0;min-width:28px;height:28px;padding:0 6px;border-radius:50%;background:var(--accent);color:var(--ink);font-size:12px;font-weight:600;box-shadow:0 2px 6px #17181c16,inset 0 1px 1px #ffffff70,inset 0 -1px 1px #89955340}
.notification-label{position:relative;display:block;flex:1;height:22px;overflow:hidden;font-size:14px;font-weight:500;line-height:22px}
.notification-label>span{position:absolute;inset:0;display:flex;align-items:center;gap:4px;transition:transform 320ms var(--motion-ease),opacity 200ms}
.notification-label>span:last-child{transform:translateY(100%);opacity:0}
.notification-stack.is-expanded .notification-label>span:first-child{transform:translateY(-100%);opacity:0}
.notification-stack.is-expanded .notification-label>span:last-child{transform:translateY(0);opacity:1}
.notification-label .icon{width:16px;height:16px}
.notification-ack-all{margin-top:14px}
@media(max-width:860px){#notification-dock{right:16px;bottom:calc(16px + env(safe-area-inset-bottom))}}
@media(max-height:600px){.notification-description{-webkit-line-clamp:1}.notification-card-content{padding:10px 0;gap:3px}#notification-dock{bottom:12px}}
@media(prefers-reduced-motion:reduce){#notification-dock,.notification-stage,.notification-card,.notification-card-content,.notification-label>span{transition:none!important}}
/* Leave enough scroll room to bring the last service action above the dock. */
.content:has(#notification-dock.is-visible){padding-bottom:228px}
.notification-stack.is-expanded .notification-stage{max-height:calc(100dvh - 116px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}

/* Keep the notification text readable where glass is unavailable or unwanted. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 .notification-stack{background:#e8eeea}.notification-card{background:#fff}
}
@media(prefers-reduced-transparency:reduce){
 .notification-stack{background:#e8eeea;-webkit-backdrop-filter:none;backdrop-filter:none}.notification-card{background:#fff}
}

/* Service stays responsive on small CPUs and during a large open-order backlog. */
.service-priority *, .service-priority *::before, .service-priority *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
.service-priority .notification-stack{background:#e8eeea;-webkit-backdrop-filter:none;backdrop-filter:none}
.service-priority .notification-card{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}
.service-priority dialog::backdrop,.service-priority .toast{-webkit-backdrop-filter:none;backdrop-filter:none}
.order-pagination{justify-content:space-between;flex-wrap:wrap}
.order-pagination span{font-size:13px;color:var(--muted)}

/* Shared feature hints stay out of layout and above modal dialogs. */
.feature-hint{position:fixed;inset:auto;margin:0;z-index:100;padding:8px 10px;width:max-content;max-width:min(250px,calc(100vw - 16px));border:0;border-radius:3px;background:#181818;color:#fff;font:400 12px/1.45 'Outfit',system-ui,sans-serif;text-align:left;letter-spacing:0;overflow-wrap:anywhere;box-shadow:0 3px 12px #0002;cursor:default}
.feature-hint::backdrop{display:none}
/* The shared chart hint includes the day’s value; avoid two overlapping tips. */
.day-column .bar-tooltip{display:none}

/* Service typography: real bold faces and larger labels in the original layout. */
.page-head h1{font-size:clamp(38px,3.5vw,52px);font-weight:700;line-height:1.15}
.panel h2,.panel-heading h2{font-size:24px;font-weight:700}
dialog h2,.auth-card h1{font-size:30px;font-weight:700}
.row-main strong{font-size:24px;font-weight:700;line-height:1.3}
.menu-row .row-main strong{font-size:21px}
.row-main>small{font-size:16px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.row-main .tag{font-size:13px;font-weight:600}
.row-side strong,.menu-row .price,.price-field input{font-size:20px;font-weight:700}
.btn,.btn.small,.head-actions .btn,.attention-panel .btn,.auth-card .btn.primary{font-size:17px;font-weight:700;min-height:44px;line-height:1.3}
.head-actions .btn{min-height:48px}
.nav button{font-size:20px;font-weight:600}
.nav button.active{font-weight:700}
.profile strong{font-size:20px;font-weight:700}
.profile small{font-size:14px}
label,.qr-panel label{font-size:15px;font-weight:600}
input,select,textarea{font-size:16px;font-weight:400}
.global-search input{font-size:16px}
.segmented button,.dashboard-controls .segmented button{font-size:15px;font-weight:600}
.switch,.menu-row .switch{font-size:15px;font-weight:600}
.kpi-title>span{font-size:20px;font-weight:700}
.kpi strong,.gauge-value strong,.wait-panel>strong{font-weight:700}
.seller strong,.team-copy strong{font-size:20px;font-weight:700}
.seller small,.team-copy small{font-size:14px}
.table-card strong{font-size:26px;font-weight:700}
.table-card small{font-size:14px}
.order-card header strong{font-size:28px;font-weight:700}
.order-card.is-new header strong{font-size:34px}
.order-total strong,.draft-total strong{font-size:26px;font-weight:700}
.order-lines{font-size:18px;font-weight:500}
.order-card.is-new .order-lines{font-size:20px}
.order-lines b,.attention-panel h3,.signal-copy strong{font-weight:700}
.search-result>span{font-size:17px;font-weight:600}
.search-result small{font-size:14px;font-weight:400}
@media(max-width:860px){
 .nav button{font-size:16px}
 .row-main strong{font-size:22px}.menu-row .row-main strong{font-size:19px}
 .row-main>small{font-size:15px}
 .kpi-title>span{font-size:17px}
 .panel h2,.panel-heading h2{font-size:22px}
 .order-card header strong{font-size:26px}.order-card.is-new header strong{font-size:32px}
 .global-search input{font-size:14px}
 .team-panel .panel-heading{flex-wrap:wrap}
 .row-side{flex-wrap:wrap}
}
@media(max-width:500px){
 .btn,.btn.small,.head-actions .btn,.attention-panel .btn{font-size:16px}
 .kpi-title>span{font-size:16px}
 .menu-group{padding-left:15px;padding-right:15px}
 .menu-row{column-gap:8px}
 .menu-row .switch{font-size:14px;padding-right:10px}
 .table-actions{flex-wrap:wrap}
}
/* Never let the flex sidebar squash and clip its final action. */
.sidebar{scroll-padding-block:18px}
.sidebar>div{flex-shrink:0}
.side-promo{min-height:0}
@media(min-width:861px) and (max-height:800px){
 .side-top{margin-bottom:20px}.general{margin-top:20px}
}
@media(max-width:860px){
 .side-promo{display:block;margin-top:0;padding:0;background:none;border-radius:0;overflow:visible}
 .side-promo::before{display:none}
 .side-promo .btn{min-height:40px;font-size:14px;justify-content:center}
}
.workspace-footer{justify-content:flex-end}
.dashboard-controls .segmented{flex-wrap:wrap}
.reset-capsule{margin-left:10px;border-radius:999px}
.reset-form{margin-top:20px}
.reset-form .row-actions{margin-top:0}
@media(max-width:500px){.reset-capsule{margin-top:12px;margin-left:0}.dashboard-controls .segmented{justify-content:flex-start}.dashboard-controls .segmented button{flex:1 0 auto}}

/* Inventory: daily stock tables by category, monthly expenses, and the overview's daily stock cost. */
.inventory-toolbar{align-items:center}
.date-field{flex-direction:row;align-items:center;gap:10px}
.date-field input{width:auto;min-height:42px;border-radius:999px;background:#fff;padding:0 14px}
.cost-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.cost-stat{background:var(--surface);border-radius:22px;padding:18px 20px;display:flex;flex-direction:column;gap:8px;min-width:0}
.cost-stat>span{font-size:17px;font-weight:700}
.cost-stat>strong{font-size:clamp(30px,3vw,42px);font-weight:700;letter-spacing:-1px;line-height:1.1;overflow-wrap:anywhere}
.cost-stat small{font-size:14px;color:var(--soft)}
.cost-stat.featured{background:var(--accent)}
.cost-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.cost-chips li{padding:6px 12px;border-radius:999px;background:#fff;font-size:14px;color:var(--soft)}
.cost-chips b{color:var(--ink)}
.cost-group .panel-heading{margin-bottom:8px}
.cost-subtotal{font-size:20px;font-weight:700}
.table-scroll{position:relative;overflow-x:auto;margin:0 0 14px}
.cost-table{width:100%;border-collapse:collapse;font-size:16px;min-width:600px}
.cost-table th{text-align:left;font-size:13px;font-weight:600;color:var(--soft);padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.cost-table td{padding:10px;border-bottom:1px solid var(--line);vertical-align:middle;overflow-wrap:anywhere}
.cost-table td strong{font-weight:700}
.cost-table .num{text-align:right;white-space:nowrap}
.cost-table td.num{font-weight:700}
.cost-by{font-size:14px;color:var(--soft)}
.cost-action{width:48px;text-align:right}
.cost-empty td{color:var(--muted);font-size:14px;text-align:center;padding:16px 10px}
.cost-category{display:inline-block;padding:3px 10px;border-radius:999px;background:#fff;font-size:13px;font-weight:600;white-space:nowrap}
.icon-button.cost-remove{width:38px;height:38px;color:var(--danger)}
.icon-button.cost-remove .icon{width:18px;height:18px}
.cost-add{display:grid;gap:10px;align-items:end;padding:14px;border-radius:18px;background:var(--raised)}
/* Stock: one form above the day's list; the category is chosen per item. */
.stock-add{grid-template-columns:minmax(150px,2fr) minmax(150px,1.3fr) minmax(80px,.8fr) minmax(90px,.8fr) minmax(150px,1.4fr) minmax(100px,1fr) auto;margin-bottom:14px}
.stock-chips{margin:0 0 6px}
.expense-add{grid-template-columns:minmax(140px,1fr) minmax(150px,1.1fr) minmax(170px,2fr) minmax(100px,1fr) auto}
.cost-add label{font-size:13px;font-weight:600;gap:5px;min-width:0}
.cost-add input,.cost-add select{min-height:44px;border-radius:12px;background:#fff;padding:0 12px;min-width:0}
.cost-add .btn{min-height:44px}
.cost-add .form-error{grid-column:1/-1;min-height:0}
.cost-add .form-error:empty{display:none}
.field-pair{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:6px}
.field-pair select{padding:0 8px}
.optional{font-weight:400;color:var(--muted)}
.cost-panel{margin:0 0 12px;padding:19px 18px}
.cost-panel .subtle-label{white-space:normal;min-width:0}
.cost-panel-body{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:28px;align-items:center}
.cost-total{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.cost-total>strong{font-size:clamp(36px,3.4vw,52px);font-weight:700;letter-spacing:-1.5px;line-height:1.05;overflow-wrap:anywhere}
.cost-total small{font-size:14px;color:var(--soft)}
.cost-total .btn{margin-top:6px}
.cost-breakdown{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.cost-breakdown li{display:grid;grid-template-columns:minmax(110px,190px) minmax(0,1fr) minmax(64px,auto);align-items:center;gap:12px;font-size:15px}
.cost-breakdown i{display:block;height:10px;border-radius:99px;background:#fff;overflow:hidden}
.cost-breakdown i b{display:block;height:100%;border-radius:inherit;background:var(--ink);transition:width .45s var(--motion-ease)}
.cost-breakdown strong{text-align:right;font-weight:700}
@media(max-width:1300px){
 .cost-add{grid-template-columns:repeat(3,minmax(0,1fr))}
 .cost-add .cost-name{grid-column:span 3}
 .cost-add .btn{grid-column:span 2}
 .expense-add .cost-name{order:-1}
 .expense-add .btn{grid-column:1/-1}
 .stock-add .cost-name{grid-column:span 2}
}
@media(max-width:860px){
 .cost-panel{border-radius:18px;padding:18px 15px;margin-bottom:10px}
 .cost-panel-body{grid-template-columns:minmax(0,1fr);gap:18px}
 .inventory-toolbar .segmented{width:100%}
}
@media(max-width:600px){
 .cost-summary{grid-template-columns:minmax(0,1fr)}
 .cost-add{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}
 .cost-add .cost-name,.cost-add .btn,.stock-add .cost-kind{grid-column:1/-1}
 .cost-breakdown li{grid-template-columns:minmax(0,1fr) auto;row-gap:5px}
 .cost-breakdown i{grid-column:1/-1;grid-row:2}
 /* Phone rows stack: item and amount first, then quantity, weight and who added it. */
 .cost-table,.cost-table tbody{display:block;min-width:0}
 .cost-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .cost-table tr{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:3px;padding:10px 0;border-bottom:1px solid var(--line)}
 .cost-table tr::after{content:'';order:4;flex-basis:100%}
 .cost-table td{padding:0;border:0}
 .cost-table .cost-item{order:1;flex:1 1 0;min-width:0}
 .cost-table td.num{order:2}
 .cost-table .cost-action{order:3;width:auto}
 .cost-table .cost-meta{order:5;font-size:14px;color:var(--soft)}
 .cost-table .cost-meta.is-empty{display:none}
 .cost-table .cost-meta~.cost-meta:not(.is-empty)::before{content:'·';margin-right:8px;color:var(--muted)}
 .cost-table .cost-empty td{flex:1;text-align:left}
 .cost-table .cost-empty::after{display:none}
}
