/* Пульт ИЧ в Telegram — оформление «Сумерки над цехом» (миниапп/DESIGN.md). Значения — из утверждённого макета v5.
   Раскладка: фон-сцена на весь экран, шапка, прокручиваемый экран, плавающее меню из пяти вкладок. */
:root {
  --bg: #0C0B0A; --surface: #1B1816; --surface-2: #352F2B; --ink: #F9F3EC; --ink-2: #D2C8BD; --ink-3: #A09489; --line: #3B3531;
  --accent: #FF9D52; --accent-ink: #1E1006; --accent-soft: #33200F; --accent-grad: linear-gradient(135deg, #FFC98A, #E8702A);
  --ok: #6BCB95; --ok-soft: #14301F; --warn: #F4C84A; --warn-soft: #3A300E; --crit: #FF6B6B; --crit-soft: #3F1818;
  --f-display: "Onest", "Segoe UI", Roboto, Arial, sans-serif; --f-body: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
  --r: 18px; color-scheme: dark;
  /* безопасные отступы Telegram: вырез экрана и кнопки самого Telegram в полноэкранном режиме */
  --safe-top: calc(var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: calc(var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px));
  --vh: var(--tg-viewport-stable-height, 100dvh);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.42; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.tn { font-variant-numeric: tabular-nums; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; opacity: 0; transition: opacity .6s ease; }
#bg.on { opacity: 1; }
/* ниже мотива сцена уходит в темноту, чтобы карточки читались */
#shade { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 11, 10, 0) var(--fade-a, 46%), rgba(12, 11, 10, .96) var(--fade-b, 78%)), linear-gradient(rgba(12, 11, 10, var(--dim, 0)), rgba(12, 11, 10, var(--dim, 0))); }
.phone { position: fixed; left: 0; right: 0; top: 0; height: var(--vh); display: flex; flex-direction: column; min-width: 0; z-index: 1; }
.pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.top { display: flex; align-items: center; gap: 10px; padding-top: calc(var(--safe-top) + 12px); padding-bottom: 10px; flex: none; }
.top h1 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.top h1 em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top .when { font-size: 12.5px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.top .when b { color: var(--ink); font-weight: 600; }
.top .when .old { color: var(--warn); }
.back { flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(42, 37, 33, .82); border: 1px solid rgba(255, 226, 200, .15); display: grid; place-items: center; }

.view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: 4px; padding-bottom: calc(96px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 16px; scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
.view > * { flex: none; }
.sect { display: flex; flex-direction: column; gap: 8px; }
.h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.h h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 16.5px; line-height: 1.2; letter-spacing: -.01em; }
.h span { font-size: 12.5px; color: var(--ink-3); text-align: right; }
.card { background: rgba(42, 37, 33, .8); border: 1px solid rgba(255, 226, 200, .15); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255, 236, 214, .06), 0 8px 24px rgba(0, 0, 0, .2); }
.rows > * + * { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; width: 100%; min-width: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; overflow-wrap: anywhere; }
.row .s { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; display: inline-block; }
.chev { color: var(--ink-3); flex: none; }
.tid { font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; border-bottom: 1px dashed currentColor; flex: none; }
.ava { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 17px; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; flex: none; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-ok { color: var(--ok); background: var(--ok-soft); } .p-warn { color: var(--warn); background: var(--warn-soft); }
.p-crit { color: var(--crit); background: var(--crit-soft); } .p-mute { color: var(--ink-2); background: var(--surface-2); }
.p-acc { color: var(--accent); background: var(--accent-soft); }

/* состояние цеха */
.alert { display: flex; gap: 12px; align-items: flex-start; width: 100%; background: rgba(62, 22, 22, .6); border: 1px solid rgba(255, 107, 107, .45); border-radius: var(--r); padding: 13px 14px; -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%); }
.alert b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--crit); }
.alert span span { display: block; margin-top: 3px; font-size: 13.5px; overflow-wrap: anywhere; }
.pulse { flex: none; width: 11px; height: 11px; margin-top: 7px; border-radius: 50%; background: var(--crit); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--crit); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.run { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r); background: rgba(22, 50, 35, .62); border: 1px solid rgba(107, 203, 149, .5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.run b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 19px; color: var(--ok); letter-spacing: -.01em; }
.run .grow { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); }
.run-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 14px var(--ok); }
.beat { flex: none; width: 86px; height: 30px; }
.beat path { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60 160; animation: beat 2.4s linear infinite; }
@keyframes beat { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }

/* циферблат суток и список «ждёт вас» */
.hero { width: 100%; display: grid; justify-items: center; }
.dial { width: min(100%, 264px); height: auto; display: block; overflow: visible; }
.dial text { font-family: var(--f-body); fill: #8E8176; font-size: 11px; }
.dial .big { font-family: var(--f-display); font-weight: 700; font-size: 70px; fill: #FFF6EC; letter-spacing: -.03em; }
.dial .cap { font-size: 12.5px; fill: var(--ink-2); }
.draw { animation: draw 1.1s cubic-bezier(.2, .8, .2, 1); }
@keyframes draw { from { stroke-dasharray: 0 1000; } }
.hero-gap { display: block; width: 100%; height: 78px; }
.hero-list { width: 100%; display: grid; gap: 7px; font-size: 14px; background: rgba(42, 37, 33, .62); border: 1px solid rgba(255, 226, 200, .17); border-radius: var(--r); padding: 13px 14px; box-shadow: inset 0 1px 0 rgba(255, 236, 214, .07); -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%); }
.hero-list > span { display: flex; justify-content: space-between; gap: 8px; }
.hero-list > span > span { color: var(--ink-2); }
.hero-list em { font-style: normal; color: var(--ink-3); font-size: 12.5px; }
.hero-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-legend div { background: rgba(42, 37, 33, .62); border: 1px solid rgba(255, 226, 200, .17); border-radius: 14px; padding: 9px 12px; font-size: 12.5px; color: var(--ink-2); -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%); overflow-wrap: anywhere; }
.hero-legend b { display: block; color: var(--ink); font-size: 14px; }
.hero-legend .on b { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { padding: 13px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; width: 100%; }
.tile .k { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.tile .n { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1.05; letter-spacing: -.02em; }
.tile .n small { font-size: 17px; color: var(--ink-3); font-weight: 600; }
.tile .d { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.t-ok .n { color: var(--ok); } .t-warn .n { color: var(--warn); } .t-crit .n { color: var(--crit); }
.span2 { grid-column: span 2; }
.tile-g { flex-direction: row; align-items: center; gap: 14px; }
.tile-g .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ring { flex: none; display: block; }
.ring text { font-family: var(--f-display); font-weight: 700; fill: var(--ink); letter-spacing: -.02em; }
.dots { display: grid; grid-template-columns: repeat(8, 10px); gap: 5px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.dots .w { background: var(--warn); } .dots .c { background: var(--crit); }

.bar { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bar .b-ok { background: var(--ok); } .bar .b-warn { background: var(--warn); } .bar .b-crit { background: var(--crit); }
.meter { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; width: 100%; }
.meter .t { font-weight: 600; overflow-wrap: anywhere; } .meter .s { font-size: 12.5px; color: var(--ink-2); }
.meter .v { font-size: 13px; font-weight: 600; min-width: 3.4em; text-align: right; }

.seg { display: flex; background: rgba(42, 37, 33, .82); border: 1px solid rgba(255, 226, 200, .15); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { flex: 1; padding: 7px 6px; border-radius: 999px; text-align: center; font-weight: 600; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.seg button b { font-weight: 600; opacity: .75; margin-left: 4px; }
.seg button[aria-pressed="true"] { background: var(--accent-grad); color: var(--accent-ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 226, 200, .15); background: rgba(42, 37, 33, .82); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chips button[aria-pressed="true"] { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; }

.job { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.job-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.job-head .who { font-weight: 700; } .job-head .tid, .job-head .from { margin-left: auto; }
.from { font-size: 12.5px; color: var(--ink-3); }
.job .title { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.job p { margin: 0; overflow-wrap: anywhere; }
.checks { display: grid; gap: 8px; margin: 0; padding: 10px 12px; list-style: none; background: rgba(12, 11, 10, .35); border-radius: 12px; font-size: 13.5px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.checks small { display: block; color: var(--ink-3); font-size: 12.5px; }
.mk { font-weight: 700; } .mk-ok { color: var(--ok); } .mk-no { color: var(--crit); } .mk-half { color: var(--warn); }
.advice { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; overflow-wrap: anywhere; }
.advice b { display: block; font-size: 12px; color: var(--accent); margin-bottom: 2px; }
.quote { background: rgba(12, 11, 10, .35); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.quote b { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 2px; font-weight: 600; }
.muted { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.more { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent); }
.stamp { flex: none; width: 116px; height: 58px; border-radius: 50%; border: 2px solid var(--ok); outline: 1px solid var(--ok); outline-offset: -6px; color: var(--ok); box-shadow: 0 0 18px rgba(107, 203, 149, .22);
  display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-8deg); }
.stamp b { font-size: 12.5px; letter-spacing: .06em; line-height: 1.1; } .stamp i { font-style: normal; font-size: 10.5px; }
.stamp-back { border-color: var(--crit); outline-color: var(--crit); color: var(--crit); box-shadow: 0 0 18px rgba(255, 107, 107, .2); }

.steps { display: grid; gap: 0; padding: 6px 14px 12px; }
.step { display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding-top: 10px; position: relative; }
.step::before { content: ""; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--surface); z-index: 1; }
.step::after { content: ""; position: absolute; left: 5px; top: 26px; bottom: -10px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step.now::before { border-color: var(--accent); background: var(--accent); }
.step.done::before { border-color: var(--ok); background: var(--ok); }
.step b { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; } .step.now b { color: var(--accent); }
.step span { display: block; font-size: 13.5px; overflow-wrap: anywhere; } .step i { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.kv { padding: 12px 14px; display: grid; gap: 3px; } .kv b { font-size: 12.5px; color: var(--ink-3); font-weight: 600; } .kv span { overflow-wrap: anywhere; }
.empty { padding: 16px 14px; font-size: 13.5px; color: var(--ink-2); }
.foot { font-size: 12px; color: var(--ink-3); text-align: center; margin: 0; }

/* дерево */
.node { display: flex; gap: 8px; padding: 10px 14px; font-size: 13.5px; width: 100%; overflow-wrap: anywhere; align-items: flex-start; }
.node .tw { flex: none; width: 14px; color: var(--ink-3); transition: transform .15s; }
.node[aria-expanded="true"] .tw { transform: rotate(90deg); color: var(--accent); }
.node .cnt { margin-left: auto; flex: none; font-size: 12px; color: var(--ink-3); padding-left: 8px; }
.node-desc { padding: 0 14px 12px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.tree-kids { border-left: 1px solid var(--line); margin-left: 20px; }
.tree-kids > * + * { border-top: 1px solid rgba(59, 53, 49, .5); }

.tabs { position: absolute; left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(20, 18, 16, .72); border: 1px solid rgba(255, 222, 196, .13); border-radius: 24px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); z-index: 2; }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; font-size: 11px; font-weight: 600; color: var(--ink-3); position: relative; border-radius: 18px; }
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button[aria-current="page"] { background: var(--accent-grad); color: var(--accent-ink); }
.tabs .badge { position: absolute; top: 2px; left: calc(50% + 6px); font-size: 10.5px; font-weight: 700; background: var(--accent-grad); color: var(--accent-ink); border-radius: 999px; padding: 0 5px; line-height: 16px; }
.tabs button[aria-current="page"] .badge { background: var(--bg); color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; z-index: 20; max-width: calc(100% - 32px); text-align: center; }

/* люди */
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; height: 168px; padding: 14px 14px 12px; }
.col { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; text-align: center; font-size: 11.5px; color: var(--ink-3); min-width: 0; min-height: 0; }
.col b { color: var(--ink); font-size: 12.5px; }
.col div { display: flex; align-items: flex-end; min-height: 0; }
.col i { display: block; width: 100%; border-radius: 7px 7px 2px 2px; background: var(--accent-grad); transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .8, .2, 1); }
.col .w { background: linear-gradient(180deg, #F4C84A, #8C6A12); }
@keyframes grow { from { transform: scaleY(0); } }
.phero { display: flex; align-items: center; gap: 16px; padding: 16px; border-color: rgba(255, 157, 82, .28); }
.phero .name { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.phero .role { color: var(--ink-2); font-size: 13.5px; }
.donut-card { display: flex; align-items: center; gap: 16px; padding: 16px; }
.legend { display: grid; gap: 6px; font-size: 13px; flex: 1; min-width: 0; }
.legend span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; color: var(--ink); }
.rings4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 14px 8px; text-align: center; font-size: 11.5px; color: var(--ink-2); }
.rings4 div { display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.ava-ring { flex: none; position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.ava-ring svg { position: absolute; inset: 0; }
.ava-ring .ava { width: 34px; height: 34px; font-size: 15px; }
.scene-win { height: 112px; }

/* поток цеха и передача смены */
.flow { padding: 14px 12px 12px; display: grid; gap: 10px; }
.flow-row { display: grid; grid-template-columns: 1fr 12px 1fr 12px 1fr 12px 1fr; align-items: stretch; gap: 2px; }
.fnode { border-radius: 12px; padding: 9px 4px 9px; text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.2; background: rgba(255, 236, 214, .05); border: 1px solid rgba(255, 226, 200, .15); display: grid; gap: 6px; justify-items: center; align-content: space-between; min-width: 0; overflow-wrap: anywhere; }
.fnode i { font-style: normal; display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; font-size: 12.5px; font-weight: 700; padding: 0 6px; }
.f-ok { border-color: rgba(107, 203, 149, .45); } .f-ok i { background: var(--ok-soft); color: var(--ok); }
.f-warn { border-color: rgba(244, 200, 74, .5); } .f-warn i { background: var(--warn-soft); color: var(--warn); }
.f-crit { border-color: rgba(255, 107, 107, .6); box-shadow: 0 0 18px rgba(255, 107, 107, .2); } .f-crit i { background: var(--crit-soft); color: var(--crit); }
.fnode[aria-pressed="true"] { background: rgba(255, 157, 82, .16); border-color: var(--accent); }
.farrow { align-self: center; color: var(--ink-3); font-size: 14px; text-align: center; }
.flow-turn { text-align: right; padding-right: 9%; color: var(--ink-3); font-size: 16px; line-height: .5; }
.flow-note { font-size: 13.5px; color: var(--ink-2); padding: 11px 12px; border-radius: 12px; background: rgba(255, 236, 214, .06); overflow-wrap: anywhere; display: grid; gap: 4px; }
.flow-note b { color: var(--ink); display: block; font-family: var(--f-display); }
.path { width: 100%; height: auto; display: block; overflow: visible; }
.path text { font-family: var(--f-body); font-size: 10.5px; fill: var(--ink-2); }
.path .role { font-family: var(--f-display); font-weight: 700; font-size: 12px; fill: var(--ink); }

/* портрет: 1 на 1, заметки, ўсиш */
.meet { display: flex; align-items: center; gap: 14px; padding: 14px; border-color: rgba(255, 157, 82, .35); }
.meet .date { flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--accent-grad); color: var(--accent-ink); display: grid; place-items: center; align-content: center; gap: 3px; font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1; box-shadow: 0 0 22px rgba(255, 157, 82, .35); }
.meet .date small { font-size: 10.5px; font-weight: 600; }
.lane { border-radius: var(--r); padding: 12px; display: grid; gap: 8px; border: 1px solid; }
.lane h3 { margin: 0; font-family: var(--f-display); font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lane h3 span { margin-left: auto; font-weight: 600; opacity: .85; }
.lane-ok { background: rgba(20, 48, 31, .55); border-color: rgba(107, 203, 149, .4); } .lane-ok h3 { color: var(--ok); }
.lane-talk { background: rgba(58, 48, 14, .5); border-color: rgba(244, 200, 74, .4); } .lane-talk h3 { color: var(--warn); }
.lane-deal { background: rgba(51, 32, 15, .55); border-color: rgba(255, 157, 82, .45); } .lane-deal h3 { color: var(--accent); }
.point { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; width: 100%; padding: 10px; border-radius: 12px; background: rgba(12, 11, 10, .4); font-size: 13.5px; overflow-wrap: anywhere; }
.point::before { content: ""; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--ink-3); }
.point.done { color: var(--ink-3); text-decoration: line-through; } .point.done::before { background: var(--ok); border-color: var(--ok); }
.ghost { border: 1.5px dashed rgba(255, 226, 200, .28); border-radius: 12px; padding: 12px; font-size: 13px; color: var(--ink-3); text-align: center; }
.tl { display: grid; gap: 12px; position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), rgba(255, 157, 82, .08)); }
.tl-item { position: relative; padding: 12px 14px; display: grid; gap: 8px; overflow-wrap: anywhere; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.tl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duo div { padding: 12px; font-size: 13px; display: grid; gap: 6px; align-content: start; overflow-wrap: anywhere; }
.duo b { font-family: var(--f-display); font-size: 13.5px; }
.duo .plus b { color: var(--ok); } .duo .minus b { color: var(--warn); }

/* дверь: вход, отказ, нет связи */
.door { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: radial-gradient(90% 60% at 50% 38%, rgba(255, 138, 60, .16), transparent 70%), var(--bg); transition: opacity .35s ease; }
.door.off { opacity: 0; pointer-events: none; }
.door-in { max-width: 320px; text-align: center; display: grid; gap: 10px; }
.door h1 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; }
.door p { margin: 0; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .pulse, .draw, .col i, .beat path { animation: none !important; }
  #bg, .door { transition: none; }
}
