/* V3 — Bowl Builder: admin "Kitchen HQ". Leaf sidebar, cream workspace, chunky round cards. Tokens in tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 15px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; border-radius: 10px; }
.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: .86; letter-spacing: .02em; margin: 0; }
.label { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.num { font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; font: 700 11px var(--font-body); background: #ffffff30; }
:root { --card: var(--cream-hi); --r-card: 28px; --good: #4F7A1E; --warn: #C98A12; --bad: #B5452A; }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--moss); color: var(--cream); font-weight: 700; font-size: 14.5px; box-shadow: 0 3px 0 var(--forest); transition: translate .15s, box-shadow .15s, background .2s; white-space: nowrap; }
.btn:hover { background: var(--forest); }
.btn:active { translate: 0 2px; box-shadow: 0 1px 0 var(--forest); }
.btn--soft { background: var(--cream); color: var(--forest); box-shadow: 0 3px 0 color-mix(in oklab, var(--forest) 20%, transparent); }
.btn--soft:hover { background: #fff; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; box-shadow: 0 2px 0 var(--forest); }
.btn--soft.btn--sm { box-shadow: 0 2px 0 color-mix(in oklab, var(--forest) 20%, transparent); }
.btn svg { width: 17px; height: 17px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.seg button { height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--moss); color: var(--cream); }
.seg button b { margin-left: 4px; font-weight: 800; opacity: .7; }

/* ---------- Bowl (shared renderer, see bowl.js) ---------- */
.bowl { position: relative; width: 100%; aspect-ratio: 1; }
.bowl svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bowl .rim { fill: var(--leaf-deep); }
.bowl .rim-pattern { fill: url(#leafRim); }
.bowl .inside { fill: var(--cream-hi); }
.bowl .wedge { stroke: var(--cream-hi); stroke-width: 3; stroke-linejoin: round; }
.bowl .seal { fill: var(--leaf); stroke: var(--cream-hi); stroke-width: 4; }
.bowl .drizzle { fill: none; stroke-width: 5; stroke-linecap: round; opacity: .95; }
.bowl__tip { position: absolute; z-index: 4; pointer-events: none; padding: 5px 11px; border-radius: 999px; background: var(--forest); color: var(--cream); font-weight: 700; font-size: 12.5px; opacity: 0; translate: -50% calc(-100% - 8px); white-space: nowrap; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); min-height: 100vh; }
.side { grid-row: 1 / -1; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 20px 16px 16px; background: var(--leaf); z-index: 30; }
.side__logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; }
.side__logo img { height: 40px; }
.side__logo span { font: 700 30px/1 var(--font-display); color: var(--forest); padding-top: 6px; }
.newwrap { position: relative; margin-bottom: 10px; }
.newbtn { width: 100%; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px 0 16px; border-radius: 999px; background: var(--moss); color: var(--cream); font-weight: 800; font-size: 15px; box-shadow: 0 4px 0 var(--forest); transition: translate .15s, box-shadow .15s; }
.newbtn:active { translate: 0 3px; box-shadow: 0 1px 0 var(--forest); }
.newbtn svg { width: 20px; height: 20px; }
.newbtn span { flex: 1; text-align: left; }
.newmenu { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; width: 300px; padding: 8px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-lift); display: grid; gap: 2px; }
.newmenu button { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 16px; text-align: left; }
.newmenu button:hover, .newmenu button.on { background: var(--cream); }
.newmenu i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-pale); font-style: normal; }
.newmenu i svg { width: 18px; height: 18px; }
.newmenu b { display: block; font-size: 14px; }
.newmenu small { color: var(--muted); font-size: 12px; }
.newmenu kbd { background: var(--cream); }
.side > a { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 999px; font-weight: 700; color: var(--forest); transition: background .2s, translate .25s var(--pop); }
.side > a:hover { background: #ffffff2e; translate: 3px 0; }
.side > a.active { background: var(--cream-hi); box-shadow: var(--shadow); }
.side > a svg { width: 20px; height: 20px; flex: none; }
.badge { margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--clay); color: var(--cream); font: 800 12px/24px var(--font-body); text-align: center; }
.badge[data-zero="true"] { display: none; }
.today { margin-top: auto; padding: 16px; border-radius: var(--r-card); background: var(--cream-hi); display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.today .label { grid-column: 1 / -1; }
.ring { position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-linecap: round; }
.ring b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 800; line-height: 1; }
.ring b small { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.today__nums { display: grid; gap: 4px; font-size: 13px; }
.today__nums b { font-weight: 800; }
.me { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px; border-radius: 999px; text-align: left; }
.me:hover { background: #ffffff2e; }
.av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--moss); color: var(--cream); font-weight: 800; font-size: 13px; }
.me b { display: block; font-size: 14px; }
.me small { font-size: 12px; color: color-mix(in oklab, var(--forest) 70%, transparent); }

.bar { display: flex; align-items: flex-end; gap: 16px; padding: 26px 32px 18px; }
.bar__hello { flex: 1; min-width: 0; }
.bar__hello .display { font-size: 64px; color: var(--forest); }
.pills { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.pills button { height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.pills button[aria-pressed="true"] { background: var(--moss); color: var(--cream); }
.pills .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.pills .dot--busy { background: var(--warn); } .pills .dot--paused { background: var(--bad); }
.clock { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--forest); color: var(--cream); font-weight: 800; font-variant-numeric: tabular-nums; }
.clock i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.main { padding: 0 32px 48px; min-width: 0; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.card { position: relative; background: var(--card); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card__h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.card__h .display { font-size: 34px; }
.card__h .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; }

/* Hero KPI */
.hero { background: var(--moss); color: var(--cream); box-shadow: 0 4px 0 var(--forest); display: grid; gap: 14px; overflow: hidden; }
.hero .label { color: color-mix(in oklab, var(--cream) 70%, transparent); }
.hero__v { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hero__v .num { font-size: 64px; line-height: 1; }
.up { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--leaf); color: var(--forest); font-weight: 800; font-size: 13px; }
.down { background: #F3D3C2; color: #8A3414; }
.target { position: relative; height: 22px; border-radius: 999px; background: #ffffff1f; margin-top: 18px; }
.target__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--leaf), var(--sun)); }
.target__mark { position: absolute; top: -8px; bottom: -8px; width: 3px; border-radius: 2px; background: var(--cream); }
.target__mark span { position: absolute; bottom: calc(100% + 4px); left: 50%; translate: -50% 0; white-space: nowrap; font-size: 11.5px; font-weight: 700; }
.hero__row { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: color-mix(in oklab, var(--cream) 80%, transparent); }
.hero__row b { color: var(--cream); }
.hero__bowl { position: absolute; right: -60px; top: -60px; width: 220px; opacity: .22; pointer-events: none; }

/* Gauge */
.gauge { display: grid; justify-items: center; text-align: center; }
.gauge svg { width: 100%; max-width: 260px; overflow: visible; }
.gauge .g-bg { fill: none; stroke: var(--cream); stroke-width: 22; stroke-linecap: round; }
.gauge .g-fg { fill: none; stroke: var(--good); stroke-width: 22; stroke-linecap: round; }
.gauge .g-tick { stroke: var(--forest); stroke-width: 3; stroke-linecap: round; }
.gauge .g-tick-l { font: 700 11px var(--font-body); fill: var(--forest); letter-spacing: .06em; }
.gauge__v { margin-top: -54px; font-size: 44px; line-height: 1; }
.gauge p { margin: 6px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }

/* Channel bowl */
.chbowl { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; }
.chlist { display: grid; gap: 8px; font-size: 13.5px; font-weight: 600; }
.chlist div { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; }
.chlist i { width: 14px; height: 14px; border-radius: 50%; }
.chlist b { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Lollipop */
.lolli { position: relative; }
.lolli svg { width: 100%; display: block; overflow: visible; }
.lolli .stick { stroke: color-mix(in oklab, var(--forest) 28%, transparent); stroke-width: 3; stroke-linecap: round; }
.lolli .pop { fill: color-mix(in oklab, var(--forest) 28%, transparent); }
.lolli .over .stick { stroke: var(--good); } .lolli .over .pop { fill: var(--good); }
.lolli .today .pop { fill: var(--sun); stroke: var(--forest); stroke-width: 3; }
.lolli .today .stick { stroke: var(--forest); }
.lolli .tline { stroke: var(--clay); stroke-width: 2; stroke-dasharray: 6 6; }
.lolli .tlabel { font: 700 11.5px var(--font-body); fill: var(--clay); letter-spacing: .06em; }
.lolli g.d { cursor: pointer; }
.lolli g.d:hover .pop { stroke: var(--forest); stroke-width: 3; }
.axis-label { font: 600 11px var(--font-body); fill: var(--muted); }
.grid-line { stroke: var(--line); stroke-width: 1; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 16px; background: var(--forest); color: var(--cream); font-size: 12.5px; opacity: 0; translate: -50% calc(-100% - 12px); transition: opacity .15s; }
.tip .row { display: flex; justify-content: space-between; gap: 12px; }
.tip__muted { color: color-mix(in oklab, var(--cream) 65%, transparent); font-size: 11.5px; }
.tip__delta { display: inline-block; margin-top: 4px; font-weight: 800; }
.tip__delta.up { background: none; padding: 0; height: auto; color: var(--leaf); }
.tip__delta.down { background: none; color: #F3B79C; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.sw--cur { background: var(--leaf); } .sw--prev { background: #ffffff66; }

/* Dispatch lines */
.lines { display: grid; gap: 14px; }
.dline { display: grid; grid-template-columns: 92px 1fr 72px; gap: 12px; align-items: center; font-size: 13.5px; }
.dline b { font-weight: 700; }
.dbar { display: flex; gap: 3px; height: 26px; }
.dbar i { flex: 1; border-radius: 6px; background: var(--good); opacity: .85; transform-origin: 50% 100%; }
.dbar i.r { background: var(--warn); } .dbar i.x { background: var(--bad); }
.dline small { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.dlegend { display: flex; gap: 12px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.dlegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Kitchens */
.kitchens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kc { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.kc__nums, .kc__act { grid-column: 1 / -1; }
.kc[data-status="paused"] { background: color-mix(in oklab, var(--clay) 14%, var(--card)); }
.kc .display { font-size: 32px; }
.kc__nums { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 8px; padding: 10px 14px; border-radius: 18px; background: var(--cream); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kc__nums b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.kc__nums b.bad { color: var(--bad); }
.kc__act { display: flex; gap: 6px; flex-wrap: wrap; }
.pillst { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--leaf-pale); color: var(--forest); }
.pillst--busy { background: #F5DFA8; } .pillst--paused { background: var(--clay); color: var(--cream); }

/* Attention list */
.att { display: grid; gap: 8px; }
.att__row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 20px; background: var(--cream); }
.att__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--leaf-pale); }
.att__ic--bad { background: var(--clay); color: var(--cream); } .att__ic--warn { background: #F5DFA8; }
.att__row small { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- The pass ---------- */
.pass { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.lanes { display: grid; gap: 18px; min-width: 0; }
.lane { background: var(--card); border-radius: var(--r-card); padding: 18px 20px 20px; box-shadow: var(--shadow); }
.lane__h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.lane__h .display { font-size: 40px; }
.lane__h .cnt { font-size: 26px; font-weight: 800; color: var(--leaf-ink); }
.lane__h .label { margin-left: auto; }
.tickets { display: flex; flex-wrap: wrap; gap: 14px; min-height: 150px; align-content: flex-start; }
.tk { position: relative; width: 128px; display: grid; justify-items: center; gap: 4px; padding: 10px 6px 12px; border-radius: 26px; text-align: center; transition: background .2s, translate .25s var(--pop); }
.tk:hover { background: var(--cream); translate: 0 -3px; }
.tk.sel { background: var(--cream); box-shadow: inset 0 0 0 3px var(--moss); }
.tk__ring { position: relative; width: 96px; height: 96px; }
.tk__ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tk__ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.tk__ring .bg { stroke: var(--cream); }
.tk__in { position: absolute; inset: 11px; border-radius: 50%; overflow: hidden; }
.tk__in img { width: 100%; height: 100%; object-fit: cover; }
.tk__no { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.tk__who { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tk__age { position: absolute; top: 4px; right: 8px; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--forest); color: var(--cream); font-size: 11.5px; font-weight: 800; line-height: 24px; }
.tk__age.late { background: var(--bad); }
.tk__al { position: absolute; top: 4px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); color: var(--forest); font-weight: 900; font-size: 13px; line-height: 24px; }
.tk__qty { position: absolute; top: 74px; right: 14px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--moss); color: var(--cream); font-size: 12px; font-weight: 800; line-height: 26px; }
.tk.fresh .tk__ring { animation: none; }
.lane--ready .tk__ring .bg { stroke: var(--leaf-pale); }
.lane__empty { color: var(--muted); font-weight: 600; padding: 24px 0; }
.detail { position: sticky; top: 18px; display: grid; gap: 14px; }
.detail .display.big { font-size: 64px; }
.dl { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 2px dashed var(--line); }
.dl .bowl, .dl img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.dl small { display: block; color: var(--muted); font-size: 12.5px; }
.dl .out { color: #A3401A; font-weight: 700; }
.allergy { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 20px; background: #F5DFA8; font-weight: 700; }
.allergy i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--sun); font-style: normal; font-weight: 900; }
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 8px; border-radius: 999px; background: var(--cream); }
.steps span.on { background: var(--good); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--cream); font-size: 12.5px; font-weight: 700; }
.meta-row svg { width: 15px; height: 15px; }
.keys { display: flex; gap: 14px; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.keys kbd { background: var(--card); box-shadow: var(--shadow); }

/* ---------- Menu ---------- */
.mtools { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.mtools .legend { margin-left: auto; }
.dishes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dish { display: grid; gap: 10px; align-content: start; }
.dish__top { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.dish__top .bowl, .dish__top img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dish__name { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: .86; text-transform: uppercase; text-align: left; }
.dish__name:hover { color: var(--leaf-ink); }
.dish__meta { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.lock { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--ink); }
.lock svg { width: 12px; height: 12px; opacity: .55; }
.al { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.al b { color: #A3401A; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; margin-right: 4px; }
.avail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.av-pill { height: 34px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; display: grid; place-items: center; line-height: 1.05; background: var(--leaf-pale); color: var(--forest); transition: background .2s, color .2s; }
.av-pill small { display: block; font-size: 9.5px; font-weight: 700; opacity: .8; }
.av-pill[data-v="snoozed"] { background: #F5DFA8; }
.av-pill[data-v="off"] { background: var(--cream); color: var(--muted); text-decoration: line-through; }
.catsec { margin-bottom: 26px; }
.catsec > .display { font-size: 44px; color: var(--forest); margin: 0 0 12px; }

/* ---------- Drawer (editor) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: #1B2A2350; opacity: 0; pointer-events: none; }
.scrim.open { pointer-events: auto; }
.drawer { position: fixed; z-index: 70; top: 12px; right: 12px; bottom: 12px; width: min(760px, calc(100vw - 24px)); display: flex; flex-direction: column; background: var(--cream-hi); border-radius: 32px; visibility: hidden; box-shadow: 0 20px 60px #1B2A2350; overflow: hidden; }
.drawer__head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 12px; }
.drawer__head .display { font-size: 44px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 6px 24px 24px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-content: start; }
.drawer__left { display: grid; gap: 12px; align-content: start; position: sticky; top: 0; }
.drawer__right { display: grid; gap: 16px; align-content: start; }
.drawer__foot { display: flex; gap: 10px; align-items: center; padding: 14px 24px; border-top: 2px dashed var(--line); }
.own { padding: 12px 14px; border-radius: 18px; background: var(--leaf-pale); font-size: 13px; font-weight: 600; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.field > span svg { width: 12px; height: 12px; }
.input { width: 100%; height: 46px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--cream); font-size: 14.5px; font-weight: 500; box-shadow: inset 0 0 0 2px transparent; }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--moss); }
textarea.input { height: 90px; padding: 12px 16px; resize: vertical; line-height: 1.45; }
.input[readonly] { color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggles button { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--cream); font-size: 13px; font-weight: 600; transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: 6px; }
.toggles button[aria-pressed="true"] { background: var(--moss); color: var(--cream); }
.toggles--al button[aria-pressed="true"] { background: var(--clay); }
.toggles i { width: 14px; height: 14px; border-radius: 50%; }
.minirow { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--cream); font-size: 13.5px; }
.minirow small { color: var(--muted); }

/* ---------- Insights ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.kpi { display: grid; gap: 6px; }
.kpi .num { font-size: 38px; line-height: 1; }
.kpi .up, .kpi .down { justify-self: start; }
.chart { position: relative; }
.chart svg { width: 100%; display: block; overflow: hidden; }
.chart .area { fill: url(#areaFade); }
.chart .area-stop-a { stop-color: var(--leaf); stop-opacity: .45; }
.chart .area-stop-b { stop-color: var(--leaf); stop-opacity: 0; }
.chart .line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .line--cur { stroke: var(--good); }
.chart .line--prev { stroke: color-mix(in oklab, var(--forest) 35%, transparent); stroke-dasharray: 2 7; stroke-width: 3; }
.chart .cross { stroke: var(--forest); stroke-width: 1.5; stroke-dasharray: 3 4; }
.chart .marker { fill: var(--sun); stroke: var(--forest); stroke-width: 3; }
.chart .hit { fill: transparent; }
.donuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.donut { display: grid; justify-items: center; gap: 8px; text-align: center; }
.donut .bowl { width: 130px; }
.donut b { font-size: 15px; }
.donut small { font-size: 12px; color: var(--muted); font-weight: 600; }
.tops { display: grid; gap: 10px; }
.top { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) 90px; gap: 12px; align-items: center; }
.top .bowl, .top img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.top__bar { height: 30px; border-radius: 999px; background: var(--cream); position: relative; overflow: hidden; }
.top__bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--leaf); }
.top__bar span { position: absolute; left: 14px; top: 0; line-height: 30px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.top .num { text-align: right; font-size: 15px; }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.person { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.person .av { width: 56px; height: 56px; font-size: 17px; }
.person .av.off { background: var(--cream); color: var(--muted); }
.person b { font-size: 16px; }
.person .email { font-size: 12.5px; color: var(--muted); }
.scopes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.scope { height: 28px; padding: 0 12px; border-radius: 999px; background: var(--leaf-pale); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.scope--x { background: var(--clay); color: var(--cream); }
.person__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; white-space: nowrap; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.person__foot .btn { margin-left: auto; }
.mfa { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--moss); color: var(--cream); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mfa--none { background: #F5DFA8; color: var(--forest); }
.scrollbox { overflow: auto; max-height: calc(100vh - 230px); }
.pmx { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.pmx th { position: sticky; top: 0; z-index: 2; background: var(--card); text-align: center; padding: 14px 6px; font-size: 12px; font-weight: 800; vertical-align: bottom; }
.pmx th:first-child { text-align: left; left: 0; z-index: 3; padding-left: 20px; }
.pmx td { padding: 6px; text-align: center; border-top: 2px dashed var(--line); }
.pmx td:first-child { text-align: left; position: sticky; left: 0; background: var(--card); padding-left: 20px; min-width: 260px; }
.pmx .key { font-size: 11px; color: var(--muted); }
.pmx .grp td { background: var(--cream); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-top: 0; }
.pc { min-width: 74px; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; transition: background .2s, color .2s; line-height: 1.05; }
.pc small { display: block; font-size: 9.5px; font-weight: 700; }
.pc[data-v="allow"] { background: var(--good); color: var(--cream); }
.pc[data-v="inherit"] { background: var(--cream); color: var(--muted); }
.pc[data-v="deny"] { background: var(--clay); color: var(--cream); }
.timeline { display: grid; gap: 0; }
.ev { display: grid; grid-template-columns: 56px 26px 1fr auto; gap: 12px; padding: 0; }
.ev__t { padding-top: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ev__dot { position: relative; display: grid; justify-items: center; }
.ev__dot::before { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--line); }
.ev__dot i { position: relative; margin-top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--card); }
.ev__dot i.money { background: var(--sun); } .ev__dot i.access { background: var(--moss); } .ev__dot i.integration { background: #2F7DB0; } .ev__dot i.danger { background: var(--bad); }
.ev__body { padding: 10px 0 14px; }
.ev__body small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ev__hash { padding-top: 12px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.diff-old { text-decoration: line-through; color: var(--muted); }
.diff-new { font-weight: 800; color: var(--good); }
.chain { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--leaf-pale); font-size: 12.5px; font-weight: 700; }
.chain svg { width: 15px; height: 15px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login__art { position: relative; background: var(--leaf); display: grid; place-content: center; justify-items: center; gap: 18px; padding: 40px; text-align: center; overflow: hidden; }
.login__logo { position: absolute; top: 28px; left: 32px; height: 46px; }
#loginBowl { width: min(420px, 70%); }
.login__art .display { font-size: 92px; color: var(--forest); }
.login__art p { margin: 0; font-size: 18px; font-weight: 500; max-width: 30ch; }
.login__side { display: grid; place-items: center; padding: 40px; }
.login__card { width: min(420px, 100%); display: grid; gap: 14px; }
.login__card h1 { font-size: 72px; }
.login .input { background: var(--cream-hi); }
.login__card p { margin: 0; font-size: 13px; color: var(--muted); }
.lsteps { display: flex; gap: 6px; }
.lsteps i { flex: 1; height: 8px; border-radius: 999px; background: var(--cream-hi); }
.lsteps i.on { background: var(--moss); }
.mfa-tabs { justify-self: start; }
.pk { display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: var(--r-card); background: var(--cream-hi); }
.pk__btn { position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-pale); color: var(--moss); overflow: hidden; box-shadow: 0 0 0 8px var(--leaf); }
.pk__btn .fp { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.pk__btn.ok { background: var(--moss); color: var(--cream); }
.pk__scan { position: absolute; left: 10%; right: 10%; height: 4px; border-radius: 2px; background: var(--moss); opacity: 0; top: 30%; }
.pk p { margin: 0; font-weight: 700; color: var(--ink); font-size: 14px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { height: 64px; border: 0; border-radius: 18px; background: var(--cream-hi); text-align: center; font-size: 28px; font-weight: 800; box-shadow: inset 0 0 0 2px var(--line); }
.otp input:focus { outline: none; box-shadow: inset 0 0 0 3px var(--moss); }
.otp input.ok { background: var(--leaf-pale); box-shadow: none; }
.otp-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.otp-ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.otp-ring circle { fill: none; stroke-width: 3; }
.otp-ring .bg { stroke: var(--line); } .otp-ring .fg { stroke: var(--moss); }
.check-row { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; }
.check-row input { accent-color: var(--moss); width: 18px; height: 18px; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 28px; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--forest); color: var(--cream); font-weight: 600; box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none; }
.toast kbd { background: #ffffff26; }

@media (max-width: 1280px) {
  .kitchens, .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5, .span-7, .span-8 { grid-column: span 6; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .today, .me, .newwrap { display: none; }
  .bar { flex-wrap: wrap; padding: 20px 16px 12px; }
  .main { padding: 0 16px 40px; }
  .grid > * { grid-column: 1 / -1 !important; }
  .pass, .login, .drawer__body { grid-template-columns: 1fr; }
  .kpis, .donuts { grid-template-columns: 1fr 1fr; }
  .kitchens, .dishes, .people { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.nophoto { display: block; width: 100%; height: 100%; }
.dl .nophoto { width: 56px; height: 56px; } .top .nophoto { width: 48px; height: 48px; } .dish__top .nophoto { width: 84px; height: 84px; }
