/* LOWKEY. Kitchen & Bar — платформа. Темы: Ночь (по умолчанию), Leopard, Бетон (светлая). */
:root {
  --acc: #ff5fa2; --acc2: #ff86b9; --acc-soft: rgba(255, 95, 162, .14);
  --amber: #e8a548; --amber-soft: rgba(232, 165, 72, .15);
  --ok: #2fd4a6; --ok-soft: rgba(47, 212, 166, .14);
  --bad: #ff5a5f; --bad-soft: rgba(255, 90, 95, .14);
  --vio: #8b7cf6; --vio-soft: rgba(139, 124, 246, .16);
  --info: #5b8cff; --info-soft: rgba(91, 140, 255, .15);
  --r: 16px; --r2: 11px; --rail: 252px; --rail-min: 74px; --top: 64px;
  --head: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
}
:root[data-theme="night"] {
  --bg: #0b0a0c; --bg2: #121014; --panel: #161418; --panel2: #1c191f; --card: #18161b; --hover: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .075); --line2: rgba(255, 255, 255, .15);
  --ink: #f4eef1; --ink2: #b9b0b6; --ink3: #7c737a; --inp: #0f0e11;
  --rail-bg: #100e11; --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(255, 95, 162, .10), transparent 60%), radial-gradient(800px 500px at 110% 110%, rgba(232, 165, 72, .07), transparent 60%);
  color-scheme: dark;
}
:root[data-theme="leopard"] {
  --bg: #120a0e; --bg2: #1a0f15; --panel: #1e1218; --panel2: #26161e; --card: #21141b; --hover: rgba(255, 180, 210, .06);
  --line: rgba(255, 190, 215, .09); --line2: rgba(255, 190, 215, .18);
  --ink: #fff1f6; --ink2: #d9b8c6; --ink3: #94707f; --inp: #150b10; --acc: #f48fb8; --acc2: #ffb3d1; --acc-soft: rgba(244, 143, 184, .16);
  --rail-bg: #180d13; --sh: 0 10px 30px -12px rgba(0, 0, 0, .7); --sh2: 0 30px 80px -20px rgba(0, 0, 0, .85);
  --glow: radial-gradient(900px 500px at 8% -10%, rgba(244, 143, 184, .16), transparent 60%);
  color-scheme: dark;
}
:root[data-theme="concrete"] {
  --bg: #ecebe8; --bg2: #e3e1dd; --panel: #f8f7f5; --panel2: #f1efec; --card: #fbfaf8; --hover: rgba(20, 15, 18, .045);
  --line: rgba(30, 20, 25, .09); --line2: rgba(30, 20, 25, .18);
  --ink: #1d1a1c; --ink2: #4f4a4d; --ink3: #8c8589; --inp: #fff; --acc: #e0438a; --acc2: #c42e74; --acc-soft: rgba(224, 67, 138, .1);
  --rail-bg: #18151a; --sh: 0 1px 2px rgba(30, 20, 25, .05), 0 8px 24px rgba(30, 20, 25, .06); --sh2: 0 30px 70px -25px rgba(30, 20, 25, .35);
  --glow: none; color-scheme: light;
}
/* тема по умолчанию — Бетон */
:root:not([data-theme]) {
  --bg: #ecebe8; --bg2: #e3e1dd; --panel: #f8f7f5; --panel2: #f1efec; --card: #fbfaf8; --hover: rgba(20, 15, 18, .045);
  --line: rgba(30, 20, 25, .09); --line2: rgba(30, 20, 25, .18); --ink: #1d1a1c; --ink2: #4f4a4d; --ink3: #8c8589; --inp: #fff; --acc: #e0438a; --acc2: #c42e74; --acc-soft: rgba(224, 67, 138, .1);
  --rail-bg: #18151a; --sh: 0 1px 2px rgba(30, 20, 25, .05), 0 8px 24px rgba(30, 20, 25, .06); --sh2: 0 30px 70px -25px rgba(30, 20, 25, .35); --glow: none; color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow: hidden; }
body::before { content: ""; position: fixed; inset: 0; background: var(--glow); pointer-events: none; z-index: 0; }
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: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; 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); }
#app { position: relative; z-index: 1; height: 100%; }

/* ---------- вход ---------- */
.login { display: grid; grid-template-columns: 1.1fr 1fr; height: 100%; }
.lg-art { background: var(--leo); background-size: 420px; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; overflow: hidden; }
.lg-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(10, 5, 8, .15), rgba(10, 5, 8, .7)); }
.lg-art > * { position: relative; z-index: 1; }
.lg-logo { font: 800 clamp(48px, 7vw, 96px)/1 var(--head); letter-spacing: -.03em; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.lg-logo span { color: var(--acc); } .lg-logo.sm { font-size: 34px; color: var(--ink); text-shadow: none; }
.lg-sub { font: 600 15px var(--head); letter-spacing: .3em; text-transform: uppercase; margin-top: 14px; opacity: .92; }
.lg-note { position: absolute !important; bottom: 34px; left: 0; right: 0; text-align: center; font-size: 12.5px; opacity: .8; line-height: 1.7; }
.lg-form { display: grid; place-items: center; background: var(--panel); }
.lg-in { width: 300px; text-align: center; }
.lg-t { font: 700 22px var(--head); } .lg-s { color: var(--ink3); margin: 6px 0 26px; }
.dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 28px; }
.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: 64px; border-radius: 18px; background: var(--panel2); border: 1px solid var(--line); font: 600 22px 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: 14px; font-weight: 600; }
.boot { height: 100%; display: grid; place-content: center; justify-items: center; gap: 22px; }
.spin { width: 30px; height: 30px; border: 3px solid var(--line2); border-top-color: var(--acc); border-radius: 50%; animation: rot .8s linear infinite; } @keyframes rot { to { transform: rotate(360deg) } }
.who { max-width: 960px; margin: 0 auto; padding: 56px 24px; text-align: center; height: 100%; overflow: auto; }
.who h2 { font: 700 26px var(--head); margin: 28px 0 6px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 28px; }
.who-grid button { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: .15s; }
.who-grid button:hover { border-color: var(--acc); transform: translateY(-2px); }
.who-grid b { font-size: 13.5px; } .who-grid span { color: var(--ink3); font-size: 12px; }

/* ---------- каркас ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; height: 100%; transition: grid-template-columns .22s var(--ease); }
.shell.min { grid-template-columns: var(--rail-min) 1fr; }
.rail { background: var(--rail-bg); color: #ece5ea; display: flex; flex-direction: column; padding: 14px 12px; overflow: hidden; z-index: 30; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; background: var(--leo); background-size: 160px; position: relative; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .35); overflow: hidden; }
.brand .logo span { font: 800 22px/1 var(--head); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); transform: translate(-1px, -1px); }
.brand .logo i { position: absolute; right: 7px; bottom: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 6px var(--acc); }
.brand .t span { color: var(--acc); }
.brand .t { font: 800 17px/1 var(--head); letter-spacing: -.01em; white-space: nowrap; }
.brand .s { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(236, 229, 234, .5); margin-top: 5px; white-space: nowrap; }
.nav { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 8px -4px 0; padding: 0 4px; display: flex; flex-direction: column; gap: 2px; }
.nav .grp { font: 700 9.5px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: rgba(236, 229, 234, .38); padding: 16px 10px 7px; white-space: nowrap; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px; color: rgba(236, 229, 234, .68); font-weight: 600; font-size: 13.5px; white-space: nowrap; position: relative; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: linear-gradient(90deg, rgba(255, 95, 162, .2), rgba(255, 95, 162, .06)); color: #fff; }
.nav a.on::before { content: ""; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.nav a.on svg { color: var(--acc); }
.nav .badge { margin-left: auto; font: 700 10.5px/1 var(--mono); font-style: normal; background: rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .75); padding: 4px 7px; border-radius: 20px; }
.nav .badge.warn { background: rgba(232, 165, 72, .2); color: var(--amber); }
.rail .foot { border-top: 1px solid rgba(255, 255, 255, .07); padding: 12px 6px 2px; font-size: 11.5px; }
.rf-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; color: rgba(236, 229, 234, .55); white-space: nowrap; } .rf-row b { color: #fff; font-family: var(--mono); font-size: 11px; }
.rf-mut { color: rgba(236, 229, 234, .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; background: var(--rail-bg); }
.topbar { height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 22px 0 10px; background: var(--rail-bg); color: #ece5ea; flex-shrink: 0; position: relative; z-index: 20; }
.crumbs { font: 700 17px 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(236, 229, 234, .55); font-weight: 600; } .crumbs a:hover { color: #fff; } .crumbs i { color: rgba(236, 229, 234, .4); font-style: normal; }
.ic { width: 38px; height: 38px; border-radius: 11px; 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(236, 229, 234, .7); } .topbar .ic:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ic .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); 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: 11px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); color: rgba(236, 229, 234, .55); min-width: 280px; font-size: 13px; }
.search:hover { border-color: rgba(255, 255, 255, .2); 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(236, 229, 234, .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: 700; white-space: nowrap; }
.sp i { width: 7px; height: 7px; border-radius: 50%; } .sp.on { background: rgba(47, 212, 166, .16); color: #2fd4a6; } .sp.on i { background: #2fd4a6; box-shadow: 0 0 8px #2fd4a6; } .sp.off { background: rgba(255, 255, 255, .07); color: rgba(236, 229, 234, .55); } .sp.off i { background: rgba(236, 229, 234, .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: 700; font-size: 13px; line-height: 1.2; white-space: nowrap; } .user .r { font-size: 11px; color: rgba(236, 229, 234, .55); }
.user .ava { box-shadow: 0 0 0 2px var(--rail-bg); }
.tpick { position: relative; }
.tpop { position: absolute; right: 0; top: 46px; width: 260px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--sh2); display: none; }
.tpop.show { display: block; } .tpop .th { font-size: 11px; font-weight: 700; 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-top-left-radius: 22px; }
.page { padding: 22px 26px 60px; max-width: 1640px; margin: 0 auto; }
.page.flush { padding: 0; max-width: none; height: 100%; }
.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: 700 14.5px 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: 700; 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: 800 26px/1.1 var(--head); letter-spacing: -.02em; } .phead p { color: var(--ink3); margin-top: 6px; font-size: 13.5px; }
.phead .sp1 { flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 12px; position: relative; overflow: hidden; box-shadow: var(--sh); }
.kpi .l { font-size: 11.5px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 6px; align-items: center; }
.kpi .l svg { width: 14px; height: 14px; }
.kpi .v { font: 700 23px/1.25 var(--head); letter-spacing: -.02em; margin-top: 6px; white-space: nowrap; }
.kpi .v small { font: 600 13px var(--body); color: var(--ink3); margin-left: 3px; }
.kpi .d { font-size: 12px; color: var(--ink3); margin-top: 2px; } .kpi .d b { font-weight: 700; }
.kpi .spark { position: absolute; left: 0; right: 0; bottom: 0; opacity: .9; }
.kpi.acc { background: linear-gradient(135deg, rgba(255, 95, 162, .2), rgba(255, 95, 162, .04)), var(--card); border-color: rgba(255, 95, 162, .3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line); font-weight: 700; 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: var(--acc); border-color: var(--acc); color: #1a0710; } .btn.pri:hover { background: var(--acc2); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #04241b; } .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: 700; 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, .25), inset 0 0 0 1px var(--line); }
.seg em { font-style: normal; font: 700 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: 700; 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: 700 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: 10px; 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: 700; 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: 700; 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: var(--amber); }
.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); }
.ava { --c: #888; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 11px var(--body); color: #120d10; 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; }
.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); }
.prog.ok i { background: var(--ok); } .prog.warn i { background: var(--amber); } .prog.bad i { background: var(--bad); }
.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; }

/* таблицы */
.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: 700; 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; } .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: 800; border-top: 1px solid var(--line2); border-bottom: 0; }
.tbl .sub { font-size: 11.5px; color: var(--ink3); } .tbl b { font-weight: 700; }
.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); }
.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(5, 3, 5, .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: 20px; box-shadow: var(--sh2); transform: translateY(12px) scale(.98); opacity: 0; transition: .2s var(--ease); }
.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: 700 17px 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: 0; width: min(440px, 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: #241f24; 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(--ok); } .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: 13px; 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; }

/* графики */
.bars { display: flex; align-items: stretch; gap: 0; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 2px; }
.bar .col { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 30px; margin: 0 auto; border-radius: 5px 5px 2px 2px; min-height: 2px; opacity: .85; transition: .15s; }
.bar:hover i { opacity: 1; } .bar.hi i { opacity: 1; box-shadow: 0 0 14px var(--acc); }
.bar span { font-size: 10px; color: var(--ink3); white-space: nowrap; }
.line .gl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; } .line .gt { fill: var(--ink3); font-size: 10px; font-family: var(--mono); }
.donut { position: relative; display: inline-grid; place-items: center; } .donut .dc { position: absolute; text-align: center; }
.donut .dc b { display: block; font: 700 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: 30px; border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); color: rgba(255, 255, 255, .85); font-size: 10px; }
.heat .hl { color: var(--ink3); display: grid; place-items: center; font-weight: 700; }

/* ---------- обзор / 3D ---------- */
.hero { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #0d0c0b; height: min(68vh, 680px); min-height: 440px; 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(14, 11, 13, .72); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; color: #f4eef1; }
.hero .ttl { padding: 12px 16px; } .hero .ttl b { font: 800 18px var(--head); display: block; letter-spacing: -.01em; } .hero .ttl b span { color: var(--acc); } .hero .ttl small { font-size: 11.5px; color: rgba(244, 238, 241, .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: 9px; font-weight: 700; font-size: 12.5px; color: rgba(244, 238, 241, .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(--acc); color: #1a0710; }
.hero .ctrls svg { width: 15px; height: 15px; }
.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: 700; color: rgba(244, 238, 241, .8); }
.hero .zones button.on, .hero .zones button:hover { background: rgba(255, 95, 162, .25); color: #fff; border-color: rgba(255, 95, 162, .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(244, 238, 241, .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: 700 16px 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(244, 238, 241, .75); } .tdrawer .tot { font: 700 18px 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: 700; 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: 800 12px var(--head); background: var(--hover); flex-shrink: 0; }
.st-free { --s: #9a9298; } .st-busy { --s: #e8a548; } .st-booked { --s: #8b7cf6; } .st-bill { --s: #ff5a5f; }
.tchip[class*="st-"] { background: color-mix(in srgb, var(--s) 20%, transparent); color: var(--s); }

/* ---------- касса ---------- */
.posw { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: 100%; }
.pos-left { overflow: auto; padding: 18px 20px 40px; }
.pos-right { border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.zone-h { font: 700 11px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin: 18px 0 10px; display: flex; align-items: center; gap: 10px; }
.zone-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ttiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tt { --s: #9a9298; text-align: left; border-radius: 15px; padding: 12px 13px; background: var(--card); border: 1px solid var(--line); position: relative; min-height: 96px; display: flex; flex-direction: column; gap: 3px; transition: .15s; overflow: hidden; }
.tt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--s); }
.tt:hover { border-color: var(--line2); transform: translateY(-1px); } .tt.sel { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.tt b { font: 800 17px var(--head); } .tt .tn { font-size: 11.5px; color: var(--ink3); } .tt .ts { margin-top: auto; display: flex; justify-content: space-between; gap: 6px; align-items: center; font-size: 12px; }
.tt .ts em { font-style: normal; font: 700 12.5px var(--mono); } .tt .tst { font-size: 11px; font-weight: 700; color: var(--s); }
.tt.st-busy { background: linear-gradient(135deg, rgba(232, 165, 72, .12), transparent 60%), var(--card); }
.tt.st-bill { background: linear-gradient(135deg, rgba(255, 90, 95, .14), transparent 60%), var(--card); animation: billp 1.6s ease-in-out infinite; }
@keyframes billp { 50% { box-shadow: 0 0 0 3px rgba(255, 90, 95, .18) } }
.tt.st-booked { background: linear-gradient(135deg, rgba(139, 124, 246, .12), transparent 60%), var(--card); }
.plan2d { position: relative; background: var(--panel2); border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 26/22; max-height: 560px; width: 100%; overflow: hidden; }
.plan2d svg { width: 100%; height: 100%; }
.ord-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.ord-h .tbig { font: 800 22px var(--head); } .ord-h .meta { font-size: 12px; color: var(--ink3); line-height: 1.4; }
.ord-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 6px; flex-shrink: 0; }
.ord-tabs button { padding: 7px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink2); background: var(--panel2); border: 1px solid var(--line); white-space: nowrap; }
.ord-tabs button.on { background: var(--acc); color: #1a0710; border-color: var(--acc); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; padding: 8px 12px 12px; overflow: auto; align-content: start; }
.mi { text-align: left; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); min-height: 74px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; transition: .1s; position: relative; }
.mi:hover { border-color: var(--acc); } .mi:active { transform: scale(.97); background: var(--acc-soft); }
.mi b { font-size: 12.5px; font-weight: 700; line-height: 1.25; } .mi span { font: 600 12px var(--mono); color: var(--ink2); }
.mi.stop { opacity: .35; pointer-events: none; } .mi .tg { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 800; text-transform: uppercase; color: var(--acc); letter-spacing: .05em; }
.ord-lines { flex: 1; overflow: auto; padding: 4px 0; min-height: 120px; }
.ol { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.ol .on { font-weight: 700; font-size: 13px; line-height: 1.3; } .ol .om { font-size: 11px; color: var(--ink3); display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.ol .qty { display: flex; align-items: center; gap: 4px; } .ol .qty button { width: 26px; height: 26px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); display: grid; place-items: center; }
.ol .qty button svg { width: 13px; height: 13px; } .ol .qty b { min-width: 20px; text-align: center; font-family: var(--mono); }
.ol .pr { font: 700 13px var(--mono); min-width: 70px; text-align: right; }
.ol.new { background: rgba(255, 95, 162, .06); } .ol.void { opacity: .4; text-decoration: line-through; }
.st-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; } .st-dot.new { background: var(--acc); } .st-dot.cook { background: var(--amber); } .st-dot.ready { background: var(--ok); }
.ord-f { border-top: 1px solid var(--line); padding: 12px 16px 14px; background: var(--panel2); }
.ord-f .tl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink2); padding: 2px 0; } .ord-f .tl b { font-family: var(--mono); }
.ord-f .tl.big { font: 800 20px var(--head); color: var(--ink); margin: 6px 0 10px; } .ord-f .tl.big b { font-family: var(--head); }
.ord-f .acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.ord-f .acts .btn { padding: 0 6px; font-size: 11.5px; height: 40px; flex-direction: column; gap: 1px; } .ord-f .acts .btn svg { width: 15px; height: 15px; }
.ord-f .main2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.posempty { flex: 1; display: grid; place-content: center; text-align: center; color: var(--ink3); padding: 30px; gap: 8px; } .posempty svg { width: 40px; height: 40px; margin: 0 auto; opacity: .4; }
.paym { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.paym button { padding: 14px 8px; border-radius: 13px; background: var(--panel2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; }
.paym button.on { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); } .paym svg { width: 22px; height: 22px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chips button { padding: 6px 11px; border-radius: 20px; background: var(--panel2); border: 1px solid var(--line); font-weight: 700; font-size: 12.5px; }
.chips button.on, .chips button:hover { border-color: var(--acc); color: var(--acc); }
.receipt { font-family: var(--mono); font-size: 12px; background: #fbf8f2; color: #1d1a1c; padding: 18px 16px; border-radius: 6px; max-width: 320px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.receipt .rh { text-align: center; font-weight: 700; } .receipt .rl { display: flex; justify-content: space-between; gap: 8px; } .receipt hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }

/* 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); }
.tk header { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.tk header b { font: 800 18px var(--head); } .tk header > div { flex: 1; min-width: 0; } .tk header .tm { margin-left: auto; font: 700 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(255, 90, 95, .5); }
.tk .ti { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tk .ti:last-of-type { border-bottom: 0; } .tk .ti b { font: 800 16px var(--mono); color: var(--acc); min-width: 30px; } .tk .ti span { flex: 1; font-weight: 700; }
.tk .ti.cook span { color: var(--amber); } .tk .ti.ready { opacity: .45; } .tk .ti.ready span { text-decoration: line-through; }
.tk footer { padding: 10px 14px; display: flex; gap: 8px; border-top: 1px solid var(--line); } .tk footer .btn { flex: 1; }
.tk .who { font-size: 11.5px; color: var(--ink3); }

/* канбан */
.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: 16px; 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: 800; font-size: 13px; }
.kcol > header em { font: 700 11px var(--mono); font-style: normal; color: var(--ink3); }
.kc { background: var(--card); border: 1px solid var(--line); border-radius: 13px; 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: 700; 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: #04241b; } .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: 700; 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); }

/* афиша */
.evc { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; box-shadow: var(--sh); cursor: pointer; transition: .15s; }
.evc:hover { border-color: var(--line2); transform: translateY(-1px); }
.evd { width: 58px; height: 64px; border-radius: 13px; background: var(--acc-soft); color: var(--acc); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.evd b { font: 800 22px/1 var(--head); } .evd span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; margin-top: 3px; }
.evc.t-brand .evd { background: var(--amber-soft); color: var(--amber); } .evc.t-art .evd { background: var(--vio-soft); color: var(--vio); } .evc.t-quiz .evd { background: var(--info-soft); color: var(--info); }
.evc h4 { font: 700 14.5px var(--head); line-height: 1.3; } .evc .em { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink3); margin-top: 6px; }
.monthcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.monthcal .wd { font-size: 10.5px; font-weight: 700; color: var(--ink3); text-transform: uppercase; text-align: center; padding: 4px; }
.monthcal .dc { min-height: 92px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); padding: 6px; font-size: 11px; display: flex; flex-direction: column; gap: 3px; }
.monthcal .dc.out { opacity: .35; } .monthcal .dc.td { border-color: var(--acc); } .monthcal .dc > b { font: 700 12px var(--mono); color: var(--ink3); }
.monthcal .dc.td > b { color: var(--acc); } .monthcal .ev { padding: 3px 6px; border-radius: 6px; background: var(--acc-soft); color: var(--acc); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.monthcal .ev.t-brand { background: var(--amber-soft); color: var(--amber); } .monthcal .ev.t-art { background: var(--vio-soft); color: var(--vio); } .monthcal .ev.t-quiz { background: var(--info-soft); color: var(--info); } .monthcal .ev.ct { background: var(--hover); color: var(--ink2); font-weight: 600; }

/* бренды */
.brc { border-radius: 18px; border: 1px solid var(--line); background: var(--card); padding: 18px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.brc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--bc); }
.brc h4 { font: 700 15px var(--head); line-height: 1.3; } .brc .bt { font-size: 12px; color: var(--ink3); margin: 3px 0 10px; }
.brc p { font-size: 12.5px; color: var(--ink2); line-height: 1.55; } .brc .bnum { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; }
.brc .bnum b { font: 700 20px var(--head); } .brc .bnum span { font-size: 12px; color: var(--ink3); }
.brc .bmeta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* склад */
.stockbar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--hover); width: 110px; }
.stockbar i { display: block; height: 100%; } .stockbar .s1 { background: var(--info); } .stockbar .s2 { background: var(--acc); } .stockbar .s3 { background: var(--amber); }
.lines-ed .lr { display: grid; grid-template-columns: 1fr 120px 110px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.audit-in { width: 110px; }

/* мобильная версия */
@media (max-width: 1280px) { .g31 { grid-template-columns: 1fr; } .posw { grid-template-columns: minmax(0, 1fr) 380px; } }
@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; } }
@media (max-width: 900px) {
  .shell, .shell.min { grid-template-columns: 1fr; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .25s var(--ease); }
  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-top-left-radius: 0; }
  .page { padding: 14px 14px 90px; } .phead h1 { font-size: 21px; }
  .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: 700; color: var(--ink3); }
  .tabbar .on { color: var(--acc); }
  .content { padding-bottom: 64px; }
  .login { grid-template-columns: 1fr; grid-template-rows: 34vh 1fr; } .lg-note { display: none; }
  .g2, .g3, .g4, .form { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .v { font-size: 19px; }
  .posw { grid-template-columns: 1fr; height: auto; } .pos-right { border-left: 0; border-top: 1px solid var(--line); min-height: 80vh; } .page.flush { height: auto; }
  .ttiles { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .hero { height: 62vh; 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; }
  .kb { grid-template-columns: repeat(4, 82vw); } .mwrap { padding: 0; place-items: end stretch; } .modal { border-radius: 20px 20px 0 0; max-height: 92vh; width: 100%; }
  .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; } }

/* ---------- графики и карточки в стиле TAS ---------- */
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: 700; }
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 .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: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); padding-right: 40px; }
.kpi2 .v { font: 800 30px/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: 10px; 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: var(--amber); background: var(--amber-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[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(--amber); } .spark2.a .area { fill: var(--amber); } .spark2.a .dot { fill: var(--amber); filter: drop-shadow(0 0 5px var(--amber)); }
.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)); }
.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: 700 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: 800 14px var(--head); position: relative; }
.ctool { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.split { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--hover); } .split i { display: block; height: 100%; }
.tipbox { display: flex; gap: 12px; padding: 12px 14px; border-radius: 13px; background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); font-size: 13px; line-height: 1.5; }
.tipbox svg { color: var(--acc); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 1100px) { .kpi2 + .kpi2 { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 900px) { .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; } }

/* ---------- зал и заказы: монитор POS ---------- */
.intbar { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); flex-wrap: wrap; }
.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: 800 17px var(--head); line-height: 1.1; } .intbar .im span { font-size: 10.5px; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.intbar .im.warn b { color: var(--amber); } .intbar .im.bad b { color: var(--bad); }
.zone-h em { font-style: normal; font: 700 10.5px var(--mono); background: var(--hover); padding: 2px 7px; border-radius: 10px; letter-spacing: 0; text-transform: none; }
.tt { cursor: pointer; width: 100%; font: inherit; color: inherit; } .tt .tprog { height: 4px; border-radius: 3px; background: var(--hover); overflow: hidden; margin-top: 4px; } .tt .tprog i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .4s; }
.tbl tr.sel td { background: var(--acc-soft); }
.ocl { flex-shrink: 0; } .ocl .ring .rc { font-size: 11px; }
.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: 800 14px var(--head); } .ostat span { font-size: 10.5px; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; } .ostat .bad b { color: var(--bad); }
.st-dot.sent { background: var(--info); } .st-dot.done { background: var(--ink3); } .st-dot.void { background: 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.bill, .evl > div.bad { box-shadow: inset 3px 0 0 var(--bad); } .evl > div.new { box-shadow: inset 3px 0 0 var(--acc); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 800 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; }
.ord-f .acts.a3 { grid-template-columns: repeat(3, 1fr); } .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; }
.denoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .denoms label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink3); }
@media (max-width: 900px) { .intbar .is { min-width: 0; width: 100%; } .intbar .im { border-left: 0; padding: 0; } .ostat b { font-size: 12.5px; } }
.hero.stock3d { height: 380px; min-height: 320px; margin-bottom: 18px; background: #e9e7e3; }
:root[data-theme="night"] .hero.stock3d, :root[data-theme="leopard"] .hero.stock3d { background: #141216; }
.hero.stock3d .ttl b span { color: var(--acc); }
.phead.sub { margin-top: 4px; } .phead.sub h1 { font-size: 20px; }
.cico { --c: #888; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: color-mix(in srgb, var(--c) 18%, transparent); flex-shrink: 0; }
.tbl tbody tr { animation: fadeup .3s ease both; }
