/* Chicken Bell's Astana — платформа управления кухней. Темы: Крем (по умолчанию, светлая), Ночь, Пламя (фирменная тёмно-красная). */
:root {
  --red: #c8102e; --red2: #9c0c22; --red-soft: rgba(200, 16, 46, .12);
  --gold: #f5b81c; --gold2: #ffd34d; --gold-soft: rgba(245, 184, 28, .16);
  --orange: #f26b1d; --orange-soft: rgba(242, 107, 29, .14);
  --navy: #1f2a5c;
  --acc: var(--red); --acc2: #e3213c; --acc-soft: var(--red-soft);
  --amber: #f29a1c; --amber-soft: rgba(242, 154, 28, .16);
  --ok: #22b573; --ok-soft: rgba(34, 181, 115, .14);
  --bad: #e5484d; --bad-soft: rgba(229, 72, 77, .14);
  --vio: #7c6cf2; --vio-soft: rgba(124, 108, 242, .16);
  --info: #3b82f6; --info-soft: rgba(59, 130, 246, .14);
  --r: 18px; --r2: 12px; --rail: 256px; --rail-min: 76px; --top: 66px;
  --head: 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --rail-bg: #8f1222; --rail-bg2: #b5192e; --rail-ink: #fff1ee;
}
:root[data-theme="cream"], :root:not([data-theme]) {
  --bg: #f4efe8; --bg2: #ebe4da; --panel: #fbf9f5; --panel2: #f3eee6; --card: #fffdf9; --hover: rgba(60, 20, 20, .05);
  --line: rgba(70, 25, 25, .09); --line2: rgba(70, 25, 25, .18);
  --ink: #221416; --ink2: #5a4a4c; --ink3: #93838a; --inp: #fff;
  --sh: 0 1px 2px rgba(60, 20, 20, .05), 0 10px 26px rgba(60, 20, 20, .06); --sh2: 0 30px 70px -25px rgba(40, 10, 10, .4);
  --glow: none; color-scheme: light;
}
:root[data-theme="night"] {
  --bg: #0f0a0b; --bg2: #171012; --panel: #1a1315; --panel2: #221a1c; --card: #1d1518; --hover: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .16);
  --ink: #f6eeee; --ink2: #c3b4b6; --ink3: #857579; --inp: #130d0f;
  --acc: #ff3b57; --acc2: #ff6a7f; --acc-soft: rgba(255, 59, 87, .16);
  --sh: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .6); --sh2: 0 30px 80px -20px rgba(0, 0, 0, .8);
  --glow: radial-gradient(900px 500px at 8% -10%, rgba(200, 16, 46, .14), transparent 60%), radial-gradient(800px 500px at 110% 110%, rgba(245, 184, 28, .08), transparent 60%);
  --rail-bg: #6e0d1a; --rail-bg2: #8f1222; color-scheme: dark;
}
:root[data-theme="fire"] {
  --bg: #4a0c14; --bg2: #5a0f19; --panel: #5e111b; --panel2: #6a1420; --card: #63121d; --hover: rgba(255, 220, 200, .07);
  --line: rgba(255, 200, 180, .12); --line2: rgba(255, 200, 180, .24);
  --ink: #fff4ec; --ink2: #e9c9bf; --ink3: #b88f87; --inp: #3d0b11;
  --acc: var(--gold); --acc2: var(--gold2); --acc-soft: rgba(245, 184, 28, .18);
  --sh: 0 10px 30px -12px rgba(0, 0, 0, .55); --sh2: 0 30px 80px -20px rgba(0, 0, 0, .8);
  --glow: radial-gradient(900px 500px at 8% -10%, rgba(245, 184, 28, .12), transparent 60%);
  --rail-bg: #7a0f1d; --rail-bg2: #9c1426; color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
b, strong, th { font-weight: 600; }
html, body { height: 100%; }
body { background: var(--rail-bg); color: var(--ink); font: 14px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--acc-soft); }
::-webkit-scrollbar { width: 9px; height: 9px; } ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 20px; border: 2px solid transparent; background-clip: padding-box; }
svg.i { width: 18px; height: 18px; fill: currentColor; stroke: none; flex-shrink: 0; }
.muted { color: var(--ink3); } .mono { font-family: var(--mono); } .nowrap { white-space: nowrap; } .r { text-align: right; } .c { text-align: center; }
.pos { color: var(--ok); } .neg { color: var(--bad); } .warnc { color: var(--amber); } .accc { color: var(--acc); }
#app { position: relative; z-index: 1; height: 100%; }

/* ---------- вход ---------- */
.login { display: grid; grid-template-columns: 1.15fr 1fr; height: 100%; background: var(--rail-bg); }
.lg-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #221416; overflow: hidden; background: radial-gradient(700px 520px at 50% 38%, #fff8ec, #f4ebdd 60%, #ecdfcc 100%); }
.lg-img { width: min(440px, 56vw); filter: drop-shadow(0 26px 34px rgba(90, 20, 20, .28)); animation: float 5s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes float { 50% { transform: translateY(-10px) } }
.lg-art::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 184, 28, .35), transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -62%); }
.lg-art::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='10' cy='10' r='1.4' fill='%23c8102e' opacity='.12'/%3E%3Ccircle cx='70' cy='50' r='1.2' fill='%23c8102e' opacity='.1'/%3E%3Ccircle cx='40' cy='90' r='1.6' fill='%23f5b81c' opacity='.25'/%3E%3C/svg%3E"); }
.lg-art > * { position: relative; z-index: 1; }
.lg-3d { width: min(420px, 60vw); height: min(420px, 60vw); position: relative; }
.lg-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.lg-logo { font: 600 clamp(34px, 4.6vw, 58px)/1 var(--head); letter-spacing: -.02em; color: #fff; text-align: center; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); margin-top: -10px; }
.lg-logo em { font-style: normal; color: var(--gold); }
.lg-sub { font: 600 12px var(--body); letter-spacing: .34em; text-transform: uppercase; margin-top: 12px; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.lg-sub::before, .lg-sub::after { content: ""; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.lg-tag { margin-top: 10px; padding: 9px 18px; border-radius: 30px; background: var(--red); color: #fff; font-weight: 600; font-size: 12.5px; letter-spacing: .04em; box-shadow: 0 10px 24px -8px rgba(200, 16, 46, .6); position: relative; z-index: 1; }
.lg-note { position: absolute !important; bottom: 30px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: #7a5a5a; line-height: 1.7; }
.lg-form { display: grid; place-items: center; background: linear-gradient(180deg, var(--rail-bg2), var(--rail-bg)); color: #fff; border-radius: 30px 0 0 30px; margin: 12px 0 12px 0; box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .5); }
.lg-form .lg-s, .lg-form .lg-hint { color: rgba(255, 255, 255, .5); } .lg-form .lg-hint b { color: var(--gold2); }
.lg-form .dots i { border-color: rgba(255, 255, 255, .25); } .lg-form .dots i.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px var(--gold); }
.lg-form .pad button { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .1); color: #fff; } .lg-form .pad button:hover { background: rgba(255, 255, 255, .13); } .lg-form .pad button:active { background: rgba(245, 184, 28, .3); }
.lg-in { width: 310px; text-align: center; }
.lg-t { font: 600 21px var(--head); } .lg-s { color: var(--ink3); margin: 6px 0 24px; }
.dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 26px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); transition: .15s; }
.dots i.on { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 12px var(--acc); }
.dots.shake { animation: shake .4s; } @keyframes shake { 25% { transform: translateX(-8px) } 75% { transform: translateX(8px) } }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pad button { height: 62px; border-radius: 18px; background: var(--panel2); border: 1px solid var(--line); font: 600 21px var(--head); transition: .12s; }
.pad button:hover { background: var(--hover); border-color: var(--line2); } .pad button:active { transform: scale(.96); background: var(--acc-soft); }
.pad .ghost { visibility: hidden; } .lg-err { color: var(--bad); height: 22px; margin-top: 12px; font-weight: 600; }
.lg-hint { margin-top: 10px; font-size: 12px; color: var(--ink3); } .lg-hint b { font-family: var(--mono); color: var(--ink2); }
.boot { height: 100%; display: grid; place-content: center; justify-items: center; gap: 22px; color: #fff; }
.boot .lg-logo { font-size: 30px; }
.spin { width: 30px; height: 30px; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--gold); border-radius: 50%; animation: rot .8s linear infinite; } @keyframes rot { to { transform: rotate(360deg) } }

/* ---------- каркас: рельс и топбар — одна тёмная панель, контент — скруглённая вкладка внутри ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; height: 100%; transition: grid-template-columns .22s var(--ease); background: linear-gradient(180deg, var(--rail-bg2), var(--rail-bg) 60%); }
.shell.min { grid-template-columns: var(--rail-min) 1fr; }
.rail { color: var(--rail-ink); display: flex; flex-direction: column; padding: 14px 12px 12px; overflow: hidden; z-index: 30; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 4px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.brand .logo { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.brand .t { font: 600 15px/1.05 var(--head); letter-spacing: -.01em; white-space: nowrap; }
.brand .t em { font-style: normal; color: var(--gold); }
.brand .s { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 233, 230, .5); margin-top: 5px; white-space: nowrap; font-weight: 600; }
.nav { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 8px -4px 0; padding: 0 4px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.nav .grp { font: 600 9.5px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 233, 230, .38); padding: 16px 10px 7px; white-space: nowrap; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 13px; color: rgba(246, 233, 230, .7); font-weight: 600; font-size: 13.5px; white-space: nowrap; position: relative; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(0, 0, 0, .12); color: #fff; }
.nav a.on { background: rgba(0, 0, 0, .22); color: #fff; }
.nav a.on::before { content: ""; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.nav a.on svg { color: var(--gold); }
.nav .badge { margin-left: auto; font: 600 10.5px/1 var(--mono); font-style: normal; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); padding: 4px 7px; border-radius: 20px; }
.nav .badge.warn { background: rgba(245, 184, 28, .22); color: var(--gold2); } .nav .badge.hot { background: rgba(229, 72, 77, .3); color: #ffb3b6; }
.rail .foot { border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px 6px 2px; font-size: 11.5px; }
.rf-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; color: rgba(246, 233, 230, .55); white-space: nowrap; } .rf-row b { color: #fff; font-family: var(--mono); font-size: 11px; }
.rf-mut { color: rgba(246, 233, 230, .35); margin-top: 6px; font-size: 10.5px; white-space: nowrap; }
.min .brand .bt, .min .nav a span, .min .nav .grp, .min .rail .foot, .min .nav .badge { display: none; }
.min .nav a { justify-content: center; } .min .brand { justify-content: center; padding-left: 0; padding-right: 0; }
main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; overflow: hidden; padding: 0 12px 12px 0; }
.topbar { height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 12px 0 8px; color: var(--rail-ink); flex-shrink: 0; position: relative; z-index: 20; }
.crumbs { font: 600 16px var(--head); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 8px; align-items: center; color: #fff; }
.crumbs a { color: rgba(246, 233, 230, .55); font-weight: 600; } .crumbs a:hover { color: #fff; } .crumbs i { color: rgba(246, 233, 230, .4); font-style: normal; }
.ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--ink2); position: relative; transition: .15s; flex-shrink: 0; }
.ic:hover { background: var(--hover); color: var(--ink); }
.topbar .ic { color: rgba(246, 233, 230, .72); } .topbar .ic:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.ic .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--rail-bg); }
.search { margin-left: auto; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 12px; border-radius: 12px; background: rgba(0, 0, 0, .16); border: 1px solid rgba(255, 255, 255, .09); color: rgba(246, 233, 230, .55); min-width: 290px; font-size: 13px; }
.search:hover { border-color: rgba(255, 255, 255, .22); color: #fff; } .search span { flex: 1; text-align: left; }
kbd { font: 600 10.5px var(--mono); padding: 3px 6px; border-radius: 6px; background: var(--hover); border: 1px solid var(--line); color: var(--ink3); }
.topbar kbd { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: rgba(246, 233, 230, .6); }
.sync { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex-shrink: 0; } .sync.off { background: var(--ink3); box-shadow: none; } .sync.busy { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35 } }
.sp { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sp i { width: 7px; height: 7px; border-radius: 50%; } .sp.on { background: rgba(34, 181, 115, .18); color: #5fe3a6; } .sp.on i { background: #5fe3a6; box-shadow: 0 0 8px #5fe3a6; } .sp.off { background: rgba(255, 255, 255, .07); color: rgba(246, 233, 230, .55); } .sp.off i { background: rgba(246, 233, 230, .4); }
.user { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 14px; text-align: left; color: #fff; }
.user:hover { background: rgba(255, 255, 255, .08); } .user .n { font-weight: 600; font-size: 13px; line-height: 1.2; white-space: nowrap; } .user .r { font-size: 11px; color: rgba(246, 233, 230, .55); }
.user .ava { box-shadow: 0 0 0 2px var(--rail-bg); }
.tpick { position: relative; }
.tpop { position: absolute; right: 0; top: 46px; width: 270px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--sh2); display: none; color: var(--ink); z-index: 50; }
.tpop.show { display: block; } .tpop .th { font-size: 11px; font-weight: 600; color: var(--ink3); text-transform: uppercase; letter-spacing: .12em; padding: 6px 8px 8px; }
.tpop button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px; border-radius: 10px; text-align: left; font-weight: 600; }
.tpop button:hover, .tpop button.on { background: var(--hover); } .tpop small { display: block; color: var(--ink3); font-weight: 500; font-size: 11.5px; }
.tpop .sw { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; box-shadow: inset 0 0 0 1px var(--line2); }
.content { flex: 1; min-height: 0; overflow: auto; position: relative; background: var(--bg); border-radius: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.content::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.page { padding: 22px 26px 60px; max-width: 1680px; margin: 0 auto; position: relative; animation: fade .3s var(--ease); }
.page.flush { padding: 0; max-width: none; height: 100%; }
@keyframes fade { from { opacity: 0; transform: translateY(8px) } }
.scrim, .tabbar { display: none; }

/* ---------- элементы ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); min-width: 0; }
.card.p0 { padding: 0; overflow: hidden; } .card.tight { padding: 14px; }
.card > header, .ch { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card h3, .ch h3 { font: 600 14px var(--head); letter-spacing: -.005em; } .card h3 small { font: 500 12px var(--body); color: var(--ink3); margin-left: 6px; }
.card > header .sp1, .ch .sp1 { flex: 1; }
.card .more { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--acc); display: inline-flex; align-items: center; gap: 4px; } .card .more:hover { color: var(--acc2); }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .g31 { grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .sp1 { flex: 1; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.phead { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.phead h1 { font: 600 24px/1.1 var(--head); letter-spacing: -.02em; } .phead p { color: var(--ink3); margin-top: 6px; font-size: 13.5px; }
.phead .sp1 { flex: 1; } .phead.sub { margin-top: 4px; } .phead.sub h1 { font-size: 19px; }
/* KPI-карточки: единая плашка, большие цифры, иконка-бейдж */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 16px; overflow: hidden; }
.kpi { position: relative; padding: 16px 16px 14px; min-height: 108px; overflow: hidden; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.kpi:first-child { border-left: 0; }
.kpi .l { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); display: flex; gap: 6px; align-items: center; padding-right: 44px; }
.kpi .l svg { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: var(--acc-soft); color: var(--acc); }
.kpi:nth-child(6n+2) .l svg { background: var(--gold-soft); color: #c98f05; } .kpi:nth-child(6n+3) .l svg { background: var(--info-soft); color: var(--info); } .kpi:nth-child(6n+4) .l svg { background: var(--vio-soft); color: var(--vio); } .kpi:nth-child(6n+5) .l svg { background: var(--ok-soft); color: var(--ok); } .kpi:nth-child(6n) .l svg { background: var(--orange-soft); color: var(--orange); }
.kpi .v { font: 600 26px/1.1 var(--head); letter-spacing: -.03em; margin-top: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi .v small { font: 600 13px var(--body); color: var(--ink3); margin-left: 4px; }
.kpi .d { font-size: 11.5px; color: var(--ink3); margin-top: 6px; font-weight: 600; line-height: 1.4; display: flex; gap: 6px; align-items: flex-start; } .kpi .d::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); flex-shrink: 0; margin-top: 5px; } .kpi .d b { font-weight: 600; color: var(--ink2); }
.kpi .spark { position: absolute; left: 16px; right: 16px; bottom: 10px; height: 36px; opacity: .9; } .kpi:has(.spark) { padding-bottom: 50px; }
.kpi[data-href], .kpi.click { cursor: pointer; transition: background .15s; } .kpi[data-href]:hover, .kpi.click:hover { background: var(--hover); }
.kpi.acc { background: linear-gradient(135deg, var(--acc-soft), transparent 70%); } .kpi.acc .v { color: var(--acc); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-weight: 600; font-size: 13px; white-space: nowrap; transition: .12s; }
.btn:hover { border-color: var(--line2); background: var(--hover); } .btn:active { transform: scale(.98); }
.btn.pri { background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: #e3a60e; color: #2a1200; box-shadow: 0 6px 16px -6px rgba(245, 184, 28, .7); } .btn.pri:hover { filter: brightness(1.05); }
.btn.red { background: linear-gradient(180deg, #e3213c, var(--red)); border-color: var(--red2); color: #fff; } .btn.red:hover { filter: brightness(1.08); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; } .btn.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.btn.ghost { background: none; border-color: transparent; } .btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; } .btn.lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn.icon { width: 38px; padding: 0; } .btn.sm.icon { width: 31px; } .btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button, .seg a { padding: 6px 12px; border-radius: 9px; font-weight: 600; font-size: 12.5px; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.seg button:hover, .seg a:hover { color: var(--ink); } .seg .on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2), inset 0 0 0 1px var(--line); }
.seg em { font-style: normal; font: 600 10.5px var(--mono); color: var(--ink3); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--ink3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.tabs a:hover { color: var(--ink); } .tabs a.on { color: var(--ink); border-color: var(--acc); }
.tabs a em { font: 600 10.5px var(--mono); font-style: normal; background: var(--hover); padding: 2px 6px; border-radius: 10px; color: var(--ink2); }
.inp, select.inp, textarea.inp { width: 100%; height: 38px; padding: 0 12px; border-radius: 11px; background: var(--inp); border: 1px solid var(--line); outline: none; transition: .15s; }
textarea.inp { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.inp:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); } .inp.big { height: 48px; font-size: 16px; } .inp.sm { height: 31px; font-size: 12.5px; }
.inp.num { font-family: var(--mono); text-align: right; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink3); }
label.f > span { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; } .form .full { grid-column: 1 / -1; } .form.g3f { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chk { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; } .chk input { accent-color: var(--acc); width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; background: var(--hover); color: var(--ink2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.warn { background: var(--amber-soft); color: #c97b05; }
.pill.acc { background: var(--acc-soft); color: var(--acc); } .pill.vio { background: var(--vio-soft); color: var(--vio); } .pill.info { background: var(--info-soft); color: var(--info); } .pill.gold { background: var(--gold-soft); color: #b07e03; } .pill.orange { background: var(--orange-soft); color: var(--orange); }
.ava { --c: #888; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 11px var(--body); color: #fff; background: var(--c); flex-shrink: 0; box-shadow: 0 0 0 2px var(--card); }
.ava.sm { width: 24px; height: 24px; font-size: 9.5px; } .ava.lg { width: 54px; height: 54px; font-size: 17px; } .ava.xl { width: 84px; height: 84px; font-size: 26px; }
.empty { text-align: center; padding: 34px 10px; color: var(--ink3); } .empty svg { width: 34px; height: 34px; opacity: .5; margin-bottom: 8px; }
.prog { height: 7px; background: var(--hover); border-radius: 10px; overflow: hidden; } .prog i { display: block; height: 100%; border-radius: 10px; background: var(--acc); transition: width .5s var(--ease); }
.prog.ok i { background: var(--ok); } .prog.warn i { background: var(--amber); } .prog.bad i { background: var(--bad); } .prog.gold i { background: var(--gold); }
.dotc { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.tipbox { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(245, 184, 28, .4); font-size: 13px; line-height: 1.5; }
.tipbox svg { color: #c98f05; flex-shrink: 0; margin-top: 2px; } .tipbox.red { background: var(--acc-soft); border-color: color-mix(in srgb, var(--acc) 35%, transparent); } .tipbox.red svg { color: var(--acc); }

/* таблицы */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--card); z-index: 1; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; } .tbl tbody tr { transition: background .1s; animation: fadeup .3s ease both; } .tbl tbody tr:hover { background: var(--hover); }
.tbl .r, .tbl th.r { text-align: right; } .tbl td.num, .tbl .num { font-family: var(--mono); font-size: 12.5px; text-align: right; white-space: nowrap; }
.tbl tr.click { cursor: pointer; } .tbl tfoot td { font-weight: 600; border-top: 1px solid var(--line2); border-bottom: 0; }
.tbl .sub { font-size: 11.5px; color: var(--ink3); } .tbl b { font-weight: 600; }
.tbl tr.lowrow td:first-child { box-shadow: inset 3px 0 0 var(--amber); } .tbl tr.badrow td:first-child { box-shadow: inset 3px 0 0 var(--bad); } .tbl tr.sel td { background: var(--acc-soft); }
.tw { overflow: auto; } .tw.h { max-height: 560px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; } .filters .inp { width: auto; min-width: 220px; }

/* модалка, тосты */
.mwrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.mback { position: absolute; inset: 0; background: rgba(20, 4, 6, .62); backdrop-filter: blur(4px); opacity: 0; transition: .2s; }
.modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2); border-radius: 22px; box-shadow: var(--sh2); transform: translateY(12px) scale(.98); opacity: 0; transition: .2s var(--ease); color: var(--ink); }
.modal.wide { width: min(980px, 100%); }
.mwrap.in .mback { opacity: 1; } .mwrap.in .modal { transform: none; opacity: 1; }
.modal > header { display: flex; gap: 10px; align-items: flex-start; padding: 18px 18px 10px 22px; } .modal > header > div { flex: 1; }
.modal h3 { font: 600 16px var(--head); } .modal header p { color: var(--ink3); font-size: 12.5px; margin-top: 3px; }
.mbody { padding: 6px 22px 18px; overflow: auto; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mwrap.side { place-items: stretch end; padding: 0; } .mwrap.side .modal { height: 100%; max-height: none; border-radius: 24px 0 0 24px; width: min(460px, 100%); transform: translateX(30px); }
.mwrap.side.in .modal { transform: none; }
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; gap: 9px; align-items: center; padding: 11px 16px; border-radius: 14px; background: #7a0f1d; color: #fff; font-weight: 600; box-shadow: var(--sh2); opacity: 0; transform: translateY(10px); transition: .25s; border: 1px solid rgba(255, 255, 255, .1); }
.toast.in { opacity: 1; transform: none; } .toast svg { color: var(--gold); } .toast.bad svg { color: var(--bad); }
.alist { display: flex; flex-direction: column; gap: 8px; }
.al { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); }
.al:hover { border-color: var(--line2); } .al div { flex: 1; min-width: 0; } .al b { display: block; font-size: 13px; } .al span { font-size: 12px; color: var(--ink3); }
.al > svg:first-child { color: var(--info); } .al.warn > svg:first-child { color: var(--amber); } .al.bad > svg:first-child { color: var(--bad); }
.plist { margin-top: 10px; max-height: 420px; overflow: auto; display: flex; flex-direction: column; }
.plist a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; } .plist a b { font-weight: 600; flex: 1; } .plist a span { color: var(--ink3); font-size: 12px; }
.plist a.on, .plist a:hover { background: var(--hover); } .plist svg { color: var(--ink3); } .pad1 { padding: 12px; }

/* графики */
svg.chart { width: 100%; display: block; font-family: var(--mono); overflow: visible; }
svg.chart .gl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
svg.chart .tk { font-size: 11px; fill: var(--ink3); } svg.chart .tk2 { fill: var(--amber); }
svg.chart .vl { font-size: 10.5px; fill: var(--ink2); font-weight: 600; }
svg.chart .hz { fill: transparent; } svg.chart .bar:hover .hz, svg.chart .bar.hi .hz { fill: var(--ink); opacity: .05; }
svg.chart .bar { transform-origin: bottom; animation: grow .5s ease both; } svg.chart .bar:hover .b1, svg.chart .bar:hover .b2 { filter: brightness(1.12); }
svg.chart .ln { fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--amber) 60%, transparent)); vector-effect: non-scaling-stroke; }
svg.chart .ln.dash { stroke: var(--info); stroke-dasharray: 6 5; filter: none; }
svg.chart .pt { fill: var(--amber); stroke: var(--card); stroke-width: 1.5; }
@keyframes grow { from { transform: scaleY(0); opacity: 0 } }
.kpis2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 16px; overflow: hidden; }
.kpi2 { position: relative; padding: 16px 16px 60px; min-height: 160px; overflow: hidden; }
.kpi2 + .kpi2 { border-left: 1px solid var(--line); } .kpi2.flat { padding-bottom: 16px; min-height: 0; }
.kpi2 .l { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); padding-right: 40px; }
.kpi2 .v { font: 600 28px/1.1 var(--head); letter-spacing: -.03em; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi2 .v small { font: 600 14px var(--body); color: var(--ink3); margin-left: 4px; }
.kpi2 .sub { font-size: 12px; color: var(--ink2); margin: 4px 0 8px; line-height: 1.35; }
.kpi2 .st { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; color: var(--ink3); font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.kpi2 .st i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); flex-shrink: 0; margin-top: 5px; }
.kpi2 .st.m { color: var(--ok); } .kpi2 .st.m i { background: var(--ok); } .kpi2 .st.r { color: var(--bad); } .kpi2 .st.r i { background: var(--bad); } .kpi2 .st.a { color: var(--amber); } .kpi2 .st.a i { background: var(--amber); }
.kpi2 .ico { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--acc); background: var(--acc-soft); }
.kpi2 .ico.m { color: var(--ok); background: var(--ok-soft); } .kpi2 .ico.a { color: #c98f05; background: var(--gold-soft); } .kpi2 .ico.v { color: var(--vio); background: var(--vio-soft); } .kpi2 .ico.r { color: var(--bad); background: var(--bad-soft); } .kpi2 .ico.i { color: var(--info); background: var(--info-soft); } .kpi2 .ico.o { color: var(--orange); background: var(--orange-soft); }
.kpi2[data-href] { cursor: pointer; transition: background .15s; } .kpi2[data-href]:hover { background: var(--hover); }
.spark2 { position: absolute; left: 16px; right: 16px; bottom: 12px; height: 42px; overflow: visible; }
.spark2 .line { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark2 .area { fill: var(--acc); opacity: .1; } .spark2 .dot { fill: var(--acc); stroke: var(--card); stroke-width: 2; filter: drop-shadow(0 0 5px var(--acc)); }
.spark2.m .line { stroke: var(--ok); } .spark2.m .area { fill: var(--ok); } .spark2.m .dot { fill: var(--ok); filter: drop-shadow(0 0 5px var(--ok)); }
.spark2.a .line { stroke: var(--gold); } .spark2.a .area { fill: var(--gold); } .spark2.a .dot { fill: var(--gold); filter: drop-shadow(0 0 5px var(--gold)); }
.spark2.v .line { stroke: var(--vio); } .spark2.v .area { fill: var(--vio); } .spark2.v .dot { fill: var(--vio); filter: drop-shadow(0 0 5px var(--vio)); }
.spark2.i .line { stroke: var(--info); } .spark2.i .area { fill: var(--info); } .spark2.i .dot { fill: var(--info); filter: drop-shadow(0 0 5px var(--info)); }
.spark2.o .line { stroke: var(--orange); } .spark2.o .area { fill: var(--orange); } .spark2.o .dot { fill: var(--orange); filter: drop-shadow(0 0 5px var(--orange)); }
.kpi2::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 10px; height: 1px; background: var(--line); } .kpi2.flat::after { display: none; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hb { display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr 90px; gap: 10px; align-items: center; animation: fadeup .4s ease both; }
.hb .hl { min-width: 0; } .hb .hl b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hb .hl small { color: var(--ink3); font-size: 11px; }
.hb .ht { height: 10px; border-radius: 6px; background: var(--hover); overflow: hidden; } .hb .ht i { display: block; height: 100%; border-radius: 6px; transition: width .6s var(--ease); }
.hb .hv { font: 600 12px var(--mono); text-align: right; white-space: nowrap; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px) } }
.ring { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; } .ring svg { position: absolute; inset: 0; width: 100%; height: 100%; } .ring .rc { font: 600 14px var(--head); position: relative; }
.donut { position: relative; display: inline-grid; place-items: center; } .donut .dc { position: absolute; text-align: center; }
.donut .dc b { display: block; font: 600 17px var(--head); } .donut .dc span { font-size: 11px; color: var(--ink3); }
.legend { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; flex: 1; min-width: 150px; }
.legend div { display: flex; align-items: center; gap: 8px; } .legend i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; } .legend span { flex: 1; color: var(--ink2); } .legend b { font-family: var(--mono); font-size: 12px; }
.heat { display: grid; gap: 3px; font-size: 10.5px; }
.heat .hc { height: 28px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); color: #fff; font-size: 10px; }
.heat .hl { color: var(--ink3); display: grid; place-items: center; font-weight: 600; }
.split { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--hover); } .split i { display: block; height: 100%; }
.ctool { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- обзор / 3D ---------- */
.hero { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #2a0a0f; height: min(64vh, 640px); min-height: 420px; box-shadow: var(--sh); }
.hero .stage { position: absolute; inset: 0; }
.hero .hud { position: absolute; left: 16px; top: 16px; right: 16px; display: flex; gap: 10px; align-items: flex-start; pointer-events: none; z-index: 5; }
.hero .hud > * { pointer-events: auto; }
.glass { background: rgba(60, 8, 14, .72); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; color: #fff4ec; }
.hero .ttl { padding: 12px 16px; } .hero .ttl b { font: 600 17px var(--head); display: block; letter-spacing: -.01em; } .hero .ttl b em { font-style: normal; color: var(--gold); } .hero .ttl small { font-size: 11.5px; color: rgba(255, 244, 236, .6); }
.hero .ctrls { margin-left: auto; display: flex; gap: 6px; padding: 5px; flex-wrap: wrap; justify-content: flex-end; }
.hero .ctrls button { height: 32px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 12.5px; color: rgba(255, 244, 236, .75); display: inline-flex; gap: 6px; align-items: center; }
.hero .ctrls button:hover { background: rgba(255, 255, 255, .08); color: #fff; } .hero .ctrls button.on { background: var(--gold); color: #2a1200; }
.hero .zones { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 5; pointer-events: none; }
.hero .zones button { pointer-events: auto; padding: 7px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; color: rgba(255, 244, 236, .8); }
.hero .zones button.on, .hero .zones button:hover { background: rgba(245, 184, 28, .28); color: #fff; border-color: rgba(245, 184, 28, .5); }
.hero .legend3d { position: absolute; right: 16px; bottom: 16px; padding: 10px 14px; display: flex; gap: 14px; font-size: 11.5px; z-index: 5; }
.hero .legend3d span { display: flex; gap: 6px; align-items: center; color: rgba(255, 244, 236, .8); }
.hero .loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .6); gap: 10px; }
.tdrawer { position: absolute; right: 16px; top: 74px; width: 300px; padding: 16px; z-index: 6; max-height: calc(100% - 140px); overflow: auto; transform: translateX(16px); opacity: 0; pointer-events: none; transition: .2s; }
.tdrawer.show { transform: none; opacity: 1; pointer-events: auto; }
.tdrawer h4 { font: 600 15px var(--head); display: flex; align-items: center; gap: 8px; } .tdrawer .x { margin-left: auto; color: rgba(255, 255, 255, .6); }
.tdrawer .ln { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.tdrawer .ln span { color: rgba(255, 244, 236, .75); } .tdrawer .tot { font: 600 17px var(--head); margin: 10px 0; display: flex; justify-content: space-between; }
.feed { display: flex; flex-direction: column; } .feed > a, .feed > div { display: flex; gap: 11px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.feed > :last-child { border-bottom: 0; } .feed .fx { flex: 1; min-width: 0; } .feed b { font-weight: 600; display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed small { color: var(--ink3); font-size: 12px; } .feed .fv { font: 600 12.5px var(--mono); white-space: nowrap; }
.tchip { min-width: 40px; height: 30px; padding: 0 8px; border-radius: 9px; display: grid; place-items: center; font: 600 12px var(--head); background: var(--hover); flex-shrink: 0; }
.live { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px var(--mono); letter-spacing: .1em; color: var(--bad); text-transform: uppercase; } .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: pulse 1.2s infinite; }

/* ---------- заказы: монитор ---------- */
.intbar { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); flex-wrap: wrap; margin-bottom: 16px; }
.intbar .is { display: flex; align-items: center; gap: 10px; min-width: 220px; } .intbar .is i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s infinite; } .intbar .is.off i { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.intbar .is b { display: block; font-size: 13px; } .intbar .is span { font-size: 11.5px; color: var(--ink3); }
.intbar .im { display: flex; flex-direction: column; padding: 0 14px; border-left: 1px solid var(--line); } .intbar .im b { font: 600 16px var(--head); line-height: 1.1; } .intbar .im span { font-size: 10.5px; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.intbar .im.warn b { color: var(--amber); } .intbar .im.bad b { color: var(--bad); }
.lanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.lanes.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lanes.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lane { background: var(--panel2); border: 1px solid var(--line); border-radius: 18px; padding: 10px; min-height: 240px; }
.lane > header { display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px; font: 600 12.5px var(--head); } .lane > header i { width: 9px; height: 9px; border-radius: 50%; } .lane > header em { font: 600 11px var(--mono); font-style: normal; color: var(--ink3); margin-left: auto; background: var(--hover); padding: 3px 8px; border-radius: 10px; }
.lane.l-new > header i { background: var(--acc); } .lane.l-cook > header i { background: var(--amber); } .lane.l-ready > header i { background: var(--ok); } .lane.l-way > header i { background: var(--info); } .lane.l-done > header i { background: var(--ink3); }
.oc { background: var(--card); border: 1px solid var(--line); border-radius: 15px; margin-bottom: 10px; box-shadow: var(--sh); overflow: hidden; cursor: pointer; transition: .15s; animation: fadeup .3s ease both; }
.oc:hover { border-color: var(--line2); transform: translateY(-1px); } .oc.sel { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.oc header { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.oc header b { font: 600 14px var(--head); } .oc header .ch { margin: 0; } .oc header .tm { margin-left: auto; font: 600 12px var(--mono); padding: 3px 8px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); }
.oc.w header .tm { background: var(--amber-soft); color: var(--amber); } .oc.late header .tm { background: var(--bad); color: #fff; animation: pulse 1s infinite; } .oc.late { border-color: rgba(229, 72, 77, .5); }
.oc .ol { padding: 0 12px 8px; font-size: 12.5px; color: var(--ink2); line-height: 1.5; } .oc .ol b { color: var(--ink); font-family: var(--mono); margin-right: 4px; }
.oc footer { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink3); } .oc footer .sum { margin-left: auto; font: 600 13px var(--mono); color: var(--ink); }
.oc .stbar { display: flex; height: 4px; } .oc .stbar i { flex: 1; } .oc .stbar .new { background: var(--line2); } .oc .stbar .cook { background: var(--amber); } .oc .stbar .ready { background: var(--ok); }
.oc.ch-wa { box-shadow: inset 0 3px 0 #25d366, var(--sh); } .oc.ch-glovo { box-shadow: inset 0 3px 0 #ffc244, var(--sh); } .oc.ch-wolt { box-shadow: inset 0 3px 0 #00c2e8, var(--sh); } .oc.ch-yandex { box-shadow: inset 0 3px 0 #fc0, var(--sh); } .oc.ch-phone { box-shadow: inset 0 3px 0 var(--info), var(--sh); } .oc.ch-inst { box-shadow: inset 0 3px 0 #e1306c, var(--sh); } .oc.ch-pickup { box-shadow: inset 0 3px 0 var(--vio), var(--sh); }
.chico { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; font: 600 10px var(--body); color: #fff; flex-shrink: 0; }
.ch-wa .chico, .chico.wa { background: #25d366; } .chico.glovo { background: #ffc244; color: #2a1200; } .chico.wolt { background: #00c2e8; } .chico.yandex { background: #fc0; color: #2a1200; } .chico.phone { background: var(--info); } .chico.inst { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); } .chico.pickup { background: var(--vio); } .chico.site { background: var(--acc); }
.ostat { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); } .ostat > div { padding: 10px 6px; text-align: center; border-right: 1px solid var(--line); } .ostat > div:last-child { border-right: 0; }
.ostat b { display: block; font: 600 14px var(--head); } .ostat span { font-size: 10.5px; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; } .ostat .bad b { color: var(--bad); }
.evl { display: flex; flex-direction: column; } .evl > div { display: flex; gap: 10px; align-items: center; padding: 7px 16px; font-size: 12.5px; border-bottom: 1px solid var(--line); } .evl .mono { color: var(--ink3); font-size: 11.5px; flex-shrink: 0; }
.evl.big > div { cursor: pointer; animation: fadeup .35s ease both; } .evl.big > div:hover { background: var(--hover); } .evl > div.pay { box-shadow: inset 3px 0 0 var(--ok); } .evl > div.bad { box-shadow: inset 3px 0 0 var(--bad); } .evl > div.new { box-shadow: inset 3px 0 0 var(--acc); }
.olines { display: flex; flex-direction: column; } .oli { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); } .oli b { font: 600 14px var(--mono); color: var(--acc); } .oli .pr { font: 600 13px var(--mono); }
.oli.ready { opacity: .55; } .oli.cook span { color: var(--amber); }
.acts.a2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .acts.a3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .acts .btn { height: 40px; font-size: 12px; padding: 0 8px; }

/* KDS: станции */
.kdsw { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.tk { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--sh); margin-bottom: 10px; animation: fadeup .3s ease both; }
.tk header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.tk header .tchip { height: 34px; min-width: 46px; font-size: 14px; } .tk header .ti2 { min-width: 0; } .tk header .ti2 b { display: block; font: 600 12.5px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tk header .ti2 span { display: block; font-size: 11px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk header .tm { font: 600 13px var(--mono); padding: 4px 9px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); }
.tk.w header .tm { background: var(--amber-soft); color: var(--amber); } .tk.late header .tm { background: var(--bad); color: #fff; animation: pulse 1s infinite; } .tk.late { border-color: rgba(229, 72, 77, .5); }
.tk .ti { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; } .tk .ti:last-of-type { border-bottom: 0; }
.tk .ti b { font: 600 14px var(--mono); color: var(--acc); min-width: 26px; } .tk .ti span { flex: 1; font-weight: 600; font-size: 13px; } .tk .ti .pill { margin-left: auto; }
.tk .ti.cook { background: var(--amber-soft); } .tk .ti.ready { background: var(--ok-soft); } .tk .ti:hover { filter: brightness(.97); }
.tk footer { padding: 8px 10px; display: flex; gap: 8px; border-top: 1px solid var(--line); } .tk footer .btn { flex: 1; height: 34px; font-size: 12.5px; }
.tk.st-fry header { box-shadow: inset 0 3px 0 var(--gold); } .tk.st-pizza header { box-shadow: inset 0 3px 0 var(--acc); } .tk.st-grill header { box-shadow: inset 0 3px 0 var(--orange); } .tk.st-pack header { box-shadow: inset 0 3px 0 var(--vio); }
.stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stc { padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); display: flex; gap: 12px; align-items: center; cursor: pointer; transition: .15s; }
.stc:hover { border-color: var(--line2); } .stc.on { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.stc .si { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--hover); flex-shrink: 0; }
.stc b { display: block; font: 600 13px var(--head); } .stc span { font-size: 11.5px; color: var(--ink3); } .stc .sn { margin-left: auto; font: 600 20px var(--head); }

/* курьеры / доставка */
.cour { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.cour .cn { flex: 1; min-width: 0; } .cour .cn b { display: block; font-size: 13.5px; } .cour .cn span { font-size: 12px; color: var(--ink3); }
.cour .cs { font: 600 11.5px var(--mono); padding: 4px 9px; border-radius: 8px; background: var(--hover); white-space: nowrap; } .cour.free .cs { background: var(--ok-soft); color: var(--ok); } .cour.way .cs { background: var(--info-soft); color: var(--info); } .cour.off .cs { opacity: .5; }
.map { position: relative; border-radius: 20px; overflow: hidden; background: #e9e4dc; border: 1px solid var(--line); aspect-ratio: 16 / 10; min-height: 360px; }
:root[data-theme="night"] .map, :root[data-theme="fire"] .map { background: #1b1416; }
.map svg { width: 100%; height: 100%; display: block; }
.map .mroad { stroke: var(--card); stroke-width: 6; fill: none; stroke-linecap: round; } .map .mroad2 { stroke: var(--card); stroke-width: 3; fill: none; }
.map .mzone { fill: var(--acc); opacity: .07; stroke: var(--acc); stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 6 4; }
.map .mlbl { font: 600 11px var(--body); fill: var(--ink3); }
.map .mp { cursor: pointer; } .map .mp text { font: 600 10px var(--mono); fill: #fff; text-anchor: middle; }
.map .pulse { animation: mpulse 1.8s ease-out infinite; transform-origin: center; transform-box: fill-box; } @keyframes mpulse { 0% { transform: scale(.6); opacity: .8 } 100% { transform: scale(2.2); opacity: 0 } }
.map .hq { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); }

/* клиенты, чат */
.cust { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: .12s; } .cust:hover { border-color: var(--line2); }
.cust .cn { flex: 1; min-width: 0; } .cust b { display: block; font-size: 13px; } .cust span { font-size: 11.5px; color: var(--ink3); }
.seglvl { font: 600 10px var(--body); text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; }
.lv-vip { background: var(--gold-soft); color: #b07e03; } .lv-reg { background: var(--ok-soft); color: var(--ok); } .lv-new { background: var(--info-soft); color: var(--info); } .lv-lost { background: var(--bad-soft); color: var(--bad); }
.chatw { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - var(--top) - 12px); }
.chat-l { border-right: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.chat-l .cl-h { padding: 14px 14px 10px; } .chat-list { flex: 1; overflow: auto; padding: 0 8px 10px; }
.chan { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 13px; cursor: pointer; } .chan:hover, .chan.on { background: var(--hover); }
.chan .cn { flex: 1; min-width: 0; } .chan b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chan span { font-size: 11.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chan .un { font: 600 10.5px var(--mono); background: var(--acc); color: #fff; padding: 3px 7px; border-radius: 10px; }
.chan .ci { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--hover); flex-shrink: 0; }
.chat-r { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.chat-h { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.chat-h b { font: 600 14px var(--head); display: block; } .chat-h span { font-size: 12px; color: var(--ink3); }
.msgs { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 68%; display: flex; gap: 8px; align-items: flex-end; } .msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .bub { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; box-shadow: var(--sh); }
.msg.me .bub { background: linear-gradient(135deg, #e3213c, var(--red)); color: #fff; border-color: transparent; border-radius: 16px 16px 4px 16px; }
.msg .bub small { display: block; font-size: 10.5px; opacity: .6; margin-top: 4px; font-family: var(--mono); } .msg .bub b { display: block; font-size: 11.5px; margin-bottom: 2px; color: var(--acc); } .msg.me .bub b { color: #ffe39a; }
.msg.sys { align-self: center; max-width: 80%; } .msg.sys .bub { background: var(--gold-soft); border-color: rgba(245, 184, 28, .4); font-size: 12px; text-align: center; border-radius: 12px; }
.msg.cust .bub { border-radius: 16px 16px 16px 4px; background: #e9f9ee; border-color: #c6ebd2; color: #1d2a21; }
.chat-in { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); align-items: center; }
.chat-in .inp { flex: 1; } .quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 16px 0; background: var(--panel); } .quick button { padding: 5px 10px; border-radius: 20px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; } .quick button:hover { border-color: var(--acc); color: var(--acc); }

/* канбан, чек-листы, график */
.kb { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; }
.kcol { background: var(--panel2); border: 1px solid var(--line); border-radius: 18px; padding: 10px; min-height: 200px; } .kcol.drop { border-color: var(--acc); background: var(--acc-soft); }
.kcol > header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 600; font-size: 13px; } .kcol > header em { font: 600 11px var(--mono); font-style: normal; color: var(--ink3); }
.kc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--sh); transition: .12s; }
.kc:hover { border-color: var(--line2); } .kc.dragging { opacity: .4; } .kc b { display: block; font-weight: 600; font-size: 13px; line-height: 1.35; margin-bottom: 8px; }
.kc .km { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink3); flex-wrap: wrap; } .kc .km .sp1 { flex: 1; } .kc.pr-high { box-shadow: inset 3px 0 0 var(--bad), var(--sh); } .kc.pr-mid { box-shadow: inset 3px 0 0 var(--amber), var(--sh); }
.cl-item { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.cl-item:last-child { border-bottom: 0; } .cl-item .bx { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line2); display: grid; place-items: center; flex-shrink: 0; }
.cl-item.ok .bx { background: var(--ok); border-color: var(--ok); color: #fff; } .cl-item.ok span { color: var(--ink3); text-decoration: line-through; } .cl-item .bx svg { width: 13px; height: 13px; stroke-width: 3; }
.sched { border-collapse: separate; border-spacing: 0; font-size: 12px; width: 100%; }
.sched th, .sched td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: center; }
.sched th { font-size: 10.5px; color: var(--ink3); font-weight: 600; position: sticky; top: 0; background: var(--card); z-index: 1; }
.sched th.td, .sched td.td { background: var(--acc-soft); } .sched th.off { opacity: .4; }
.sched td.nm { text-align: left; white-space: nowrap; padding-left: 12px; position: sticky; left: 0; background: var(--card); z-index: 1; } .sched td.nm span { color: var(--ink3); font-size: 11px; display: block; }
.sched .cell { width: 30px; height: 26px; border-radius: 7px; border: 1px dashed var(--line2); display: inline-grid; place-items: center; cursor: pointer; transition: .1s; }
.sched .cell.on { background: var(--c); border: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1) inset; } .sched .cell:hover { transform: scale(1.1); }
.stockbar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--hover); width: 110px; } .stockbar i { display: block; height: 100%; }
.lines-ed .lr { display: grid; grid-template-columns: 1fr 120px 110px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }

/* меню: карточки блюд */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--sh); cursor: pointer; transition: .15s; position: relative; }
.mc:hover { border-color: var(--line2); transform: translateY(-2px); } .mc.stop { opacity: .5; }
.mc .mimg { height: 96px; display: grid; place-items: center; font-size: 44px; background: linear-gradient(135deg, var(--panel2), var(--bg2)); position: relative; }
.mc .mimg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(240px 90px at 50% 110%, rgba(245, 184, 28, .25), transparent 70%); }
.mc .mb { padding: 12px 14px 14px; } .mc .mb b { display: block; font: 600 13px var(--body); line-height: 1.3; min-height: 34px; } .mc .mb .pr { font: 600 16px var(--head); margin-top: 6px; display: flex; align-items: baseline; gap: 8px; } .mc .mb .pr small { font: 600 11.5px var(--body); color: var(--ink3); }
.mc .mb .mm { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mc .spicy { position: absolute; top: 8px; right: 8px; font-size: 14px; } .mc .stoptag { position: absolute; top: 8px; left: 8px; }

/* маркетинг, отзывы, посты */
.rev { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); } .rev:last-child { border-bottom: 0; }
.rev .rc { flex: 1; min-width: 0; } .rev b { font-size: 13px; } .rev p { font-size: 13px; color: var(--ink2); margin-top: 3px; line-height: 1.5; } .rev .stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; } .rev small { color: var(--ink3); font-size: 11.5px; }
.post { border-radius: 18px; border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: var(--sh); }
.post .pimg { aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(135deg, #3a0a10, #8a0b1b); color: #fff; padding: 20px; text-align: center; font: 600 18px var(--head); line-height: 1.2; position: relative; }
.post .pimg span { font-size: 50px; display: block; margin-bottom: 10px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4)); } .post .pimg em { font-style: normal; color: var(--gold); }
.post .pb { padding: 12px 14px; font-size: 12.5px; } .post .pb b { display: block; margin-bottom: 4px; } .post .pb .pm { display: flex; gap: 10px; color: var(--ink3); font-size: 11.5px; margin-top: 8px; }
.promo { display: flex; gap: 14px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); align-items: center; }
.promo .pi { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--gold-soft); flex-shrink: 0; }
.promo .pn { flex: 1; min-width: 0; } .promo b { display: block; font: 600 13.5px var(--head); } .promo span { font-size: 12px; color: var(--ink3); }

/* личный кабинет, администрирование */
.profile-h { display: flex; gap: 20px; align-items: center; padding: 22px; border-radius: 22px; background: linear-gradient(135deg, var(--rail-bg2), var(--rail-bg)); color: #fff; margin-bottom: 16px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.profile-h::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 184, 28, .25), transparent 70%); }
.profile-h .ava { box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); } .profile-h h2 { font: 600 22px var(--head); } .profile-h p { color: rgba(255, 255, 255, .65); margin-top: 4px; font-size: 13px; }
.profile-h .pm { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; } .profile-h .pm span { padding: 5px 11px; border-radius: 20px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 600; }
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rolec { padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); } .rolec b { font: 600 13.5px var(--head); display: block; } .rolec p { font-size: 12px; color: var(--ink3); margin: 4px 0 10px; }
.perm { display: flex; flex-wrap: wrap; gap: 4px; } .perm span { font-size: 10.5px; padding: 3px 7px; border-radius: 6px; background: var(--hover); font-weight: 600; }
.integ { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.integ .ii { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 600 12px var(--body); color: #fff; flex-shrink: 0; } .integ .in { flex: 1; min-width: 0; } .integ b { display: block; font-size: 13px; } .integ span { font-size: 11.5px; color: var(--ink3); }
.sw { width: 42px; height: 24px; border-radius: 20px; background: var(--line2); position: relative; cursor: pointer; transition: .15s; flex-shrink: 0; } .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sw.on { background: var(--ok); } .sw.on::after { left: 21px; }
.log { font-family: var(--mono); font-size: 11.5px; } .log > div { display: grid; grid-template-columns: 110px 120px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); } .log .lt { color: var(--ink3); }

/* прогноз */
.fc-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); text-align: center; } .fc-day.td { border-color: var(--acc); background: var(--acc-soft); }
.fc-day b { font: 600 16px var(--head); } .fc-day span { font-size: 10.5px; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; } .fc-day small { font: 600 11px var(--mono); color: var(--ink2); } .fc-day .wx { font-size: 20px; }
.fcg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.conf { display: inline-flex; gap: 3px; } .conf i { width: 14px; height: 5px; border-radius: 3px; background: var(--line2); } .conf i.on { background: var(--ok); }

/* мобильная версия */
@media (max-width: 1280px) { .g31 { grid-template-columns: 1fr; } .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stations { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g21, .g12 { grid-template-columns: 1fr; } .search { min-width: 0; } .search span, .search kbd { display: none; } .kpi2 + .kpi2 { border-left: 0; border-top: 1px solid var(--line); } .chatw { grid-template-columns: 1fr; } .chat-l { display: none; } }
@media (max-width: 900px) {
  .shell, .shell.min { grid-template-columns: 1fr; }
  main { padding: 0; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .25s var(--ease); background: var(--rail-bg); }
  body.nav-open .rail { transform: none; } body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 25; }
  .min .brand .bt, .min .nav a span, .min .nav .grp, .min .rail .foot, .min .nav .badge { display: revert; } .min .nav a { justify-content: flex-start; }
  .topbar { padding: 0 10px; gap: 6px; } .user > div, .shiftpill, .tpick { display: none; } .crumbs { font-size: 15px; flex: 1; } .search { margin-left: 0; width: 38px; padding: 0; justify-content: center; border: 0; background: none; min-width: 0; }
  .content { border-radius: 22px 22px 0 0; padding-bottom: 64px; }
  .page { padding: 14px 14px 90px; } .phead h1 { font-size: 20px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: var(--panel); border-top: 1px solid var(--line); z-index: 24; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ink3); } .tabbar .on { color: var(--acc); }
  .login { grid-template-columns: 1fr; grid-template-rows: 38vh 1fr; } .lg-note { display: none; } .lg-form { border-radius: 30px 30px 0 0; margin: 0; } .lg-3d { width: 200px; height: 200px; } .lg-logo { font-size: 26px; }
  .g2, .g3, .g4, .form { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .v { font-size: 20px; } .kpi:nth-child(odd) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } .kpi .l svg { width: 28px; height: 28px; padding: 6px; }
  .kpis2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi2 { padding: 14px 12px 54px; min-height: 140px; } .kpi2 .v { font-size: 22px; } .kpi2:nth-child(2n) { border-left: 1px solid var(--line); border-top: 0; } .kpi2:nth-child(n+3) { border-top: 1px solid var(--line); } .hb { grid-template-columns: 1fr 70px; } .hb .ht { grid-column: 1 / -1; }
  .hero { height: 60vh; min-height: 380px; } .tdrawer { left: 12px; right: 12px; width: auto; top: auto; bottom: 60px; } .hero .ctrls { max-width: 60%; } .hero .legend3d { display: none; } .filters .inp { min-width: 0; flex: 1; }
  .lanes, .lanes.k4, .lanes.k3 { grid-template-columns: 1fr; } .stations { grid-template-columns: 1fr 1fr; } .kb { grid-template-columns: repeat(4, 82vw); } .mwrap { padding: 0; place-items: end stretch; } .modal { border-radius: 22px 22px 0 0; max-height: 92vh; width: 100%; }
  .intbar .is { min-width: 0; width: 100%; } .intbar .im { border-left: 0; padding: 0; } .fcg { grid-template-columns: repeat(4, 1fr); } .lines-ed .lr { grid-template-columns: 1fr 90px 34px; } .lines-ed .lr .hide-m { display: none; }
}
@media print { body { overflow: visible; background: #fff; } .rail, .topbar, .tabbar, .no-print { display: none !important; } .content { overflow: visible; } }
