/* Home OS Evolution — premium futuristic command center. Усі дані демонстраційні. */
:root {
  --bg0: #05070c; --bg1: #0a0e17; --ink: #e8edf8; --ink2: #9aa6c0; --ink3: #66728e;
  --blue: #5b9bff; --violet: #a78bfa; --teal: #22d3c5; --mint: #4ade80; --amber: #fbbf24; --coral: #fb7185;
  --edge: rgba(255, 255, 255, .09); --edge2: rgba(255, 255, 255, .16);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .068), rgba(255, 255, 255, .028));
  --r: 24px; --dock-w: 92px;
  --f: ui-sans-serif, -apple-system, "SF Pro Display", "Inter", system-ui, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; background: var(--bg0); }
body { min-height: 100vh; font: 400 15px/1.5 var(--f); color: var(--ink); background: radial-gradient(1200px 700px at 15% -10%, #101a33 0%, transparent 60%), radial-gradient(900px 700px at 100% 110%, #1a1036 0%, transparent 60%), var(--bg0); overflow-x: hidden; -webkit-font-smoothing: antialiased; letter-spacing: .005em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 10px; }
::selection { background: rgba(91, 155, 255, .35); }
h1, h2, h3, p { font-weight: inherit; }
small { font-size: .78rem; color: var(--ink2); }
.mut { color: var(--ink3); }
em { font-style: normal; }

/* фон */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 38s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #2a5bd7; top: -30vmax; left: -20vmax; }
.aurora i:nth-child(2) { background: #6d3fe0; bottom: -35vmax; right: -25vmax; animation-duration: 46s; }
.aurora i:nth-child(3) { background: #0f9d95; width: 40vmax; height: 40vmax; top: 40%; left: 50%; opacity: .1; animation-duration: 52s; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }
.grid-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }

/* каркас */
.shell { display: grid; grid-template-columns: var(--dock-w) minmax(0, 1fr); min-height: 100vh; }
.stage { min-width: 0; padding-bottom: 40px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) clamp(16px, 3vw, 40px) 12px; background: linear-gradient(180deg, rgba(5, 7, 12, .86), rgba(5, 7, 12, 0)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.brand-t b { font-weight: 600; letter-spacing: .02em; font-size: .95rem; }
.brand-t i { font-style: normal; font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; background: linear-gradient(90deg, var(--teal), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-r { display: flex; align-items: center; gap: 12px; }
.clock { color: var(--ink2); font-variant-numeric: tabular-nums; font-size: .85rem; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: .68rem; letter-spacing: .14em; font-weight: 600; color: #b9f5d3; background: rgba(74, 222, 128, .09); border: 1px solid rgba(74, 222, 128, .28); }
.status-chip.paused { color: #fde4a0; background: rgba(251, 191, 36, .09); border-color: rgba(251, 191, 36, .3); }
#view { padding: 4px clamp(16px, 3vw, 40px) 120px; outline: none; max-width: 1480px; }
.foot { text-align: center; color: var(--ink3); font-size: .72rem; padding: 0 20px 20px; }

/* док */
.dock { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 0; border-right: 1px solid var(--edge); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); }
.dk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 68px; padding: 10px 4px 8px; border-radius: 18px; color: var(--ink3); transition: color .2s, background .2s, transform .2s; }
.dk span { font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; }
.dk:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.dk.on { color: #fff; background: linear-gradient(180deg, rgba(91, 155, 255, .22), rgba(167, 139, 250, .12)); box-shadow: inset 0 0 0 1px rgba(120, 160, 255, .3), 0 8px 30px rgba(60, 100, 255, .2); }
.dk.on::before { content: ""; position: absolute; left: -12px; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: linear-gradient(var(--teal), var(--violet)); }
.dk-morebtn { display: none; }
.ico { flex: none; }

/* типографіка */
.eyebrow { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); font-weight: 600; }
.h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; margin-top: 4px; }
.h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; margin-top: 2px; }
.sub { color: var(--ink2); margin-top: 8px; font-size: .95rem; max-width: 56ch; }
.vhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 14px 0 22px; flex-wrap: wrap; }
.lead { color: var(--ink2); line-height: 1.6; }

/* скло */
.glass { position: relative; border-radius: var(--r); border: 1px solid var(--edge); background: radial-gradient(120% 90% at 0% 0%, rgba(91, 155, 255, .09), transparent 55%), var(--glass); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 24px 60px rgba(0, 0, 0, .35); padding: 20px; min-width: 0; }
button.glass { width: 100%; transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s; }
button.glass:hover { transform: translateY(-3px); border-color: var(--edge2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 70px rgba(30, 70, 200, .22); }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .72rem; color: var(--ink2); background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); white-space: nowrap; }
.chip.demo { color: #ffd9a1; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .32); letter-spacing: .1em; font-weight: 600; font-size: .64rem; }
.chip.warn { color: #fde4a0; border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .1); }
.chip.lnk { cursor: pointer; transition: background .2s; }
.chip.lnk:hover { background: rgba(255, 255, 255, .1); }
.row-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px currentColor; }
.dot.ok { background: var(--mint); color: var(--mint); } .dot.idle { background: #64748b; color: #64748b; box-shadow: none; } .dot.warn { background: var(--amber); color: var(--amber); }
.dot.pulse { animation: beat 2s infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }
.rdot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 14px; border: 1px solid var(--edge2); background: rgba(255, 255, 255, .05); transition: background .2s, transform .15s; font-weight: 500; }
.btn:hover { background: rgba(255, 255, 255, .1); } .btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, #3b6fe0, #7a4fe0); border-color: transparent; box-shadow: 0 10px 30px rgba(80, 100, 255, .35); color: #fff; }
.link { color: var(--blue); font-size: .85rem; display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; }
.empty { color: var(--ink3); text-align: center; padding: 30px; grid-column: 1 / -1; }
.bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; border-radius: 5px; transition: width 1s ease; }

/* сегменти й тулбари */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); }
.seg button { padding: 8px 14px; border-radius: 12px; font-size: .82rem; color: var(--ink2); white-space: nowrap; transition: all .2s; }
.seg button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, rgba(91, 155, 255, .35), rgba(167, 139, 250, .3)); box-shadow: inset 0 0 0 1px rgba(150, 180, 255, .3); }
.seg-scroll { overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.seg-scroll::-webkit-scrollbar { display: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.toolbar.wrap { flex-wrap: wrap; } .toolbar > * { min-width: 0; max-width: 100%; }
.search { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); color: var(--ink3); min-width: 180px; flex: 1; max-width: 320px; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; min-width: 0; }
.search:focus-within { border-color: var(--blue); }

/* анімація появи */
.view-in > * { animation: up .6s cubic-bezier(.2, .8, .2, 1) both; }
.view-in > *:nth-child(2) { animation-delay: .06s; } .view-in > *:nth-child(3) { animation-delay: .12s; } .view-in > *:nth-child(4) { animation-delay: .18s; } .view-in > *:nth-child(5) { animation-delay: .24s; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.cc-grid > * { animation: up .7s cubic-bezier(.2, .8, .2, 1) both; }
.cc-grid > *:nth-child(2) { animation-delay: .08s; } .cc-grid > *:nth-child(3) { animation-delay: .14s; } .cc-grid > *:nth-child(4) { animation-delay: .2s; } .cc-grid > *:nth-child(5) { animation-delay: .26s; } .cc-grid > *:nth-child(6) { animation-delay: .32s; }

/* ===== Command Center ===== */
.cc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.hero { grid-column: 1 / span 7; min-height: clamp(380px, 46vw, 560px); padding: 0; background: radial-gradient(90% 80% at 50% 40%, rgba(40, 70, 190, .18), transparent 70%), var(--glass); }
.orb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-top { position: absolute; left: 22px; right: 22px; top: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.big-status { display: flex; align-items: center; gap: 12px; font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 200; letter-spacing: -.02em; margin-top: 4px; }
.big-status .dot { width: 10px; height: 10px; }
.hero-hint { position: absolute; left: 0; right: 0; bottom: 88px; text-align: center; color: var(--ink3); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.hero-kpis { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { padding: 10px 12px; border-radius: 16px; background: rgba(8, 12, 22, .55); border: 1px solid var(--edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.kv-n { display: flex; align-items: baseline; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 200; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kv-n b { font-weight: 200; } .kv-n i { font-style: normal; color: var(--ink3); font-size: .9rem; margin-left: 2px; }
.kpi small { display: block; font-size: .66rem; line-height: 1.25; margin-top: 2px; }
.pulse { grid-column: 8 / span 5; display: flex; flex-direction: column; }
.pulse-chart { margin: 4px 0 8px; }
.feed { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.feed-i { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.feed-i:hover { background: rgba(255, 255, 255, .05); }
.feed-i.new { animation: slide .7s cubic-bezier(.2, .8, .2, 1); background: rgba(91, 155, 255, .1); }
@keyframes slide { from { opacity: 0; transform: translateY(-12px); } }
.ft { flex: 1; font-size: .88rem; line-height: 1.3; min-width: 0; }
.fm { display: flex; flex-direction: column; align-items: flex-end; font-size: .68rem; color: var(--ink3); white-space: nowrap; }
.fm em { color: #ffcf8a; letter-spacing: .1em; font-size: .56rem; font-weight: 700; }
.procs { grid-column: 1 / span 6; } .res-card { grid-column: 7 / span 6; }
.proc-list { display: flex; flex-direction: column; gap: 4px; }
.proc { width: 100%; padding: 10px 8px; border-radius: 14px; transition: background .2s; }
.proc:hover { background: rgba(255, 255, 255, .05); }
.proc-t { display: flex; align-items: center; gap: 10px; font-size: .9rem; margin-bottom: 8px; }
.proc-m { display: flex; align-items: center; gap: 10px; }
.proc-m b { font-weight: 500; font-size: .8rem; width: 38px; text-align: right; font-variant-numeric: tabular-nums; } .proc-m small { width: 56px; text-align: right; }
.res-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.res { display: flex; flex-direction: column; gap: 8px; }
.res-h b { display: block; font-weight: 500; } .res-g { display: flex; gap: 6px; }
.gauge { position: relative; flex: none; }
.gauge-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-t b { font-weight: 300; font-size: 1.15rem; font-variant-numeric: tabular-nums; line-height: 1; } .gauge-t i { font-style: normal; font-size: .58rem; color: var(--ink3); letter-spacing: .1em; margin-top: 2px; text-transform: uppercase; }
.gauge-v { transition: stroke-dasharray 1.4s cubic-bezier(.2, .8, .2, 1); }
.disc { grid-column: 1 / span 7; } .goals { grid-column: 8 / span 5; }
.sec-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.disc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.disc-c { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: radial-gradient(100% 90% at 0% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 62%), var(--glass); }
.disc-c b { font-weight: 500; line-height: 1.25; } .disc-c p { color: var(--ink2); font-size: .82rem; line-height: 1.4; }
.tag { align-self: flex-start; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c); font-weight: 700; }
.conf { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.goal-list { display: flex; flex-direction: column; gap: 12px; }
.goal { display: flex; align-items: center; gap: 14px; } .goal b { font-weight: 500; font-size: .92rem; display: block; line-height: 1.25; }

/* ===== спільне для детальних видів ===== */
.net-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.net-stats { display: flex; gap: 10px; flex-wrap: wrap; } .net-stats.wide { margin-bottom: 18px; }
.ns { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--edge); min-width: 96px; position: relative; overflow: hidden; }
.ns::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--blue)); box-shadow: 0 0 14px var(--c, var(--blue)); }
.ns b { font-weight: 200; font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.net-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.net-wrap { padding: 12px; overflow-x: auto; }
.net, .smap, .const { width: 100%; height: auto; display: block; }
.net-panel { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.ag-head { display: flex; align-items: center; gap: 14px; } .ag-head b { display: block; font-weight: 500; font-size: 1.05rem; line-height: 1.25; }
.ag-orb { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 18px; color: #fff; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 55%, #fff 10%), color-mix(in srgb, var(--c) 30%, transparent)); box-shadow: 0 0 30px color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .2); }
.now { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--edge); } .now small { letter-spacing: .16em; color: var(--ink3); font-size: .62rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 8px 2px; font-size: .74rem; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; } .legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend.inline { padding: 0; }
.agent-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.ag-chip { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 18px; }
.ag-chip b { font-weight: 500; font-size: .9rem; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--edge); font-size: .88rem; } .kv span { color: var(--ink2); } .kv b { font-weight: 500; text-align: right; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .stat3 > div { padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--edge); } .stat3 b { display: block; font-weight: 200; font-size: 1.5rem; line-height: 1.1; } .stat3 .good b { color: var(--mint); } .stat3 .bad b { color: var(--coral); }
.blk .eyebrow { margin-bottom: 8px; } .blk p { color: var(--ink2); }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--edge); font-size: .85rem; width: 100%; } .mini-row span { color: var(--ink2); flex: 1; }
.link-row:hover span { color: var(--ink); }
.demo-note { font-size: .74rem; color: var(--ink3); display: flex; gap: 8px; align-items: center; }
.two { display: flex; gap: 16px; align-items: center; } .two .grow { flex: 1; min-width: 0; }
.decision { padding: 16px; border-radius: 18px; border: 1px solid rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .07); } .decision b { font-weight: 500; } .decision p { color: var(--ink2); margin: 4px 0 12px; } .row-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* агентна мережа SVG */
.net .edge { transition: stroke-opacity .3s, stroke-width .3s; } .net .edge.hot { stroke-opacity: 1; stroke-width: 2.600; }
.node { cursor: pointer; outline: none; } .node .nglow { opacity: .55; transition: opacity .3s; } .node:hover .nglow, .node.sel .nglow { opacity: 1; }
.node .ncore { transition: stroke-width .2s; } .node.sel .ncore { stroke-width: 2.600; } .node.sel .nsel { stroke-opacity: .6; animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { r: 38; stroke-opacity: .7; } to { r: 56; stroke-opacity: 0; } }
.nname { fill: #e6edff; font-size: 14px; font-weight: 600; } .nua { fill: #8d99b5; font-size: 11.5px; } .nrun { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: 0; transition: opacity .3s; }
.ntag { font-size: 9px; font-weight: 700; fill: #cbd5e1; letter-spacing: .08em; } .nauth { opacity: 0; transition: opacity .3s; }
.perim { opacity: 0; transition: opacity .4s; } .perim-t { fill: #4ade80; font-size: 10px; letter-spacing: .22em; opacity: .8; }
.net[data-mode="auth"] .nauth, .net[data-mode="auth"] .perim, .net[data-mode="runs"] .nrun { opacity: 1; }
.net[data-mode="flow"] .pkt { opacity: 1; } .net:not([data-mode="flow"]) .pkt { opacity: .15; }
.hub-t { fill: #9fb4ff; font-size: 12px; letter-spacing: .24em; font-weight: 700; } .hub-s { fill: #6b7794; font-size: 10px; }
.beat { animation: beat 2.4s infinite; }
.zone-t { font-size: 10px; letter-spacing: .2em; font-weight: 600; opacity: .85; }
.ax { fill: #6b7794; font-size: 10px; }
.chart { width: 100%; height: auto; display: block; }
.line-draw { animation: fadeIn 1.4s both; } @keyframes fadeIn { from { opacity: 0; } }

/* ===== Product Factory ===== */
.pipe-wrap .card-h { align-items: center; } .pipe-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px; } .pipe { min-width: 760px; width: 100%; height: auto; display: block; }
.stg { cursor: pointer; outline: none; } .stg-c { fill: rgba(10, 14, 24, .9); stroke: rgba(150, 180, 255, .4); stroke-width: 1.400; transition: all .25s; } .stg:hover .stg-c, .stg.on .stg-c { stroke: #5b9bff; fill: rgba(91, 155, 255, .2); filter: drop-shadow(0 0 8px rgba(91, 155, 255, .6)); }
.stg-n { fill: #cfe0ff; font-size: 13px; font-weight: 500; } .stg-l { fill: #9aa6c0; font-size: 12px; } .stg.on .stg-l { fill: #fff; }
.tok { filter: drop-shadow(0 0 6px currentColor); animation: hover 3.4s ease-in-out infinite alternate; } @keyframes hover { to { transform: translateY(-4px); } }
.river { animation: river 2.4s linear infinite; } @keyframes river { to { stroke-dashoffset: -22; } }
.fac-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.slot-card { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 76px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0; }
.slot { aspect-ratio: 1; display: grid; place-items: center; border-radius: 16px; } .slot.full { color: #fff; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 55%, transparent), color-mix(in srgb, var(--c) 20%, transparent)); box-shadow: 0 0 20px color-mix(in srgb, var(--c) 35%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .18); } .slot.vacant { border: 1px dashed var(--edge2); color: var(--ink3); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.prod { display: flex; flex-direction: column; gap: 12px; background: radial-gradient(100% 90% at 0% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%), var(--glass); } .prod.retired { opacity: .55; filter: grayscale(.7); }
.p-top { display: flex; align-items: center; gap: 14px; } .p-orb { position: relative; width: 72px; height: 72px; flex: none; display: grid; place-items: center; color: var(--c); } .p-ring { position: absolute; inset: 0; } .p-t b { display: block; font-weight: 500; line-height: 1.2; }
.stagechip { color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.p-empty { color: var(--ink3); font-size: .82rem; min-height: 34px; } .p-foot { display: flex; justify-content: space-between; color: var(--ink3); }
.track { display: flex; gap: 4px; } .tk { flex: 1; text-align: center; } .tk i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-bottom: 6px; } .tk.done i { background: var(--teal); } .tk.now i { background: linear-gradient(90deg, var(--blue), var(--violet)); box-shadow: 0 0 10px var(--blue); } .tk small { font-size: .52rem; letter-spacing: .02em; display: block; line-height: 1.1; color: var(--ink3); } .tk.now small { color: #fff; }

/* ===== Evolution Lab ===== */
.lab-body { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.exp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 14px; }
.exp { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.exp-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .exp-id { font-size: .7rem; letter-spacing: .1em; color: var(--ink3); font-variant-numeric: tabular-nums; } .exp b { font-weight: 500; }
.exp-d { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 2px; } .exp-d small { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); } .exp-d em { font-size: .78rem; color: var(--ink2); font-variant-numeric: tabular-nums; }
.dbar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin: 5px 0 3px; overflow: hidden; } .dbar i { display: block; height: 100%; border-radius: 4px; }
.cmp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; } .cmp .skill-card { grid-column: 1 / -1; }
.skills { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; } .sk { display: grid; grid-template-columns: 130px 1fr 80px; align-items: center; gap: 12px; font-size: .86rem; } .sk span { color: var(--ink2); } .sk b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.sk-bar { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); } .sk-bar i { position: absolute; top: 0; bottom: 0; border-radius: 8px; } .sk-bar .a { left: 0; background: #64748b; } .sk-bar .b { background: linear-gradient(90deg, var(--teal), var(--blue)); box-shadow: 0 0 12px rgba(34, 211, 197, .5); }
.par-pt { cursor: pointer; outline: none; } .par-pt circle { transition: r .2s; } .par-pt:hover circle { r: 9; } .par-pt.hot circle { filter: drop-shadow(0 0 8px #a78bfa); }
.par-info { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.tm-strip-wrap { position: relative; margin: 16px 0 6px; } .tm-strip { display: flex; height: 34px; gap: 1px; border-radius: 10px; overflow: hidden; } .tm-strip i { flex: 1; } .tm-strip .on { background: linear-gradient(180deg, rgba(34, 211, 197, .75), rgba(34, 211, 197, .35)); } .tm-strip .off { background: rgba(251, 113, 133, .75); }
.tm-marks { position: absolute; left: 0; right: 0; top: -9px; height: 8px; } .tm-marks i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); transform: translateX(-50%); }
.tm-ax { display: flex; justify-content: space-between; margin-bottom: 18px; } .tm-ax small { flex: 1; text-align: center; font-size: .66rem; color: var(--ink3); }
.tm-ctl { display: grid; grid-template-columns: 150px 1fr 70px; gap: 14px; align-items: center; margin-bottom: 14px; } .tm-ctl b { text-align: right; font-weight: 500; }
.tm-out { display: flex; flex-direction: column; gap: 10px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #7ab0ff, #a78bfa); box-shadow: 0 0 14px rgba(120, 160, 255, .7); border: 2px solid #0a0e17; cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #8fb4ff; border: 2px solid #0a0e17; cursor: pointer; }

/* ===== System Map ===== */
.smap { min-width: 680px; }
.ml { transition: stroke-opacity .3s, stroke-width .3s; } .ml.hot { stroke-opacity: 1; stroke-width: 2.800; } .ml.route { stroke-opacity: 1; stroke-width: 3.400; filter: drop-shadow(0 0 7px #4ade80); stroke-dasharray: 8 6; animation: river 1.2s linear infinite; }
.mnode { cursor: pointer; outline: none; } .mnode .mglow { opacity: .5; transition: opacity .3s; } .mnode:hover .mglow, .mnode.sel .mglow { opacity: 1; } .mnode.sel .mcore { stroke-width: 2.800; } .mnode.sel .msel { stroke-opacity: .6; animation: ring2 2.2s ease-out infinite; } @keyframes ring2 { from { r: 38; stroke-opacity: .7; } to { r: 58; stroke-opacity: 0; } }
.mnode.locked .mcore { fill: rgba(40, 10, 20, .9); } .mperm { opacity: 0; transition: opacity .3s; } .smap[data-mode="perm"] .mperm { opacity: 1; } .smap[data-mode="flow"] .mpkt { opacity: 1; } .smap:not([data-mode="flow"]) .mpkt { opacity: .2; }
.legend.wrap { justify-content: flex-start; }

/* ===== Memory ===== */
.const { min-width: 620px; } .const-wrap { overflow-x: auto; padding: 12px; }
.cnode { cursor: pointer; outline: none; transition: opacity .3s; } .cnode.dim { opacity: .12; pointer-events: none; } .cnode:hover circle:first-child { fill-opacity: .35; } .cl { transition: stroke .3s; } .cl.hot { stroke: rgba(160, 200, 255, .8); stroke-width: 1.800; }
.mem-list { display: flex; flex-direction: column; gap: 10px; } .mem { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; } .mem b { font-weight: 500; display: block; } .mem.arch { opacity: .5; }
.mem-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); } .mem > div:nth-child(2) { flex: 1; min-width: 0; } .mem-m { text-align: right; display: flex; flex-direction: column; } .mem-m em { color: var(--ink2); font-variant-numeric: tabular-nums; }
.grow { margin-top: 16px; }

/* ===== Activity ===== */
.heat-card { margin-bottom: 18px; } .heat { display: flex; flex-direction: column; gap: 3px; } .hrow { display: grid; grid-template-columns: 26px repeat(24, 1fr); gap: 3px; align-items: center; } .hrow small { font-size: .6rem; } .hrow i { height: 16px; border-radius: 4px; background: rgba(91, 155, 255, calc(.06 + var(--a) * .9)); cursor: pointer; transition: transform .15s; } .hrow i:hover { transform: scale(1.35); }
.tl { display: flex; flex-direction: column; margin-top: 14px; position: relative; } .tl-day { margin: 18px 0 6px; color: var(--ink3); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.tl-i { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 14px; position: relative; width: 100%; transition: background .2s; } .tl-i:hover { background: rgba(255, 255, 255, .05); } .tl-i b { font-weight: 500; font-size: .92rem; display: block; line-height: 1.3; } .tl-i.warn b { color: #ffd9a1; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); justify-self: center; } .tl-i:not(:last-child)::before { content: ""; position: absolute; left: 18px; top: 38px; bottom: -14px; width: 1px; background: linear-gradient(var(--edge2), transparent); }
.tl-i small.tm { color: var(--ink3); white-space: nowrap; }

/* ===== Settings ===== */
.banner { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding: 14px 18px; color: #ffd9a1; border-color: rgba(251, 191, 36, .28); background: rgba(251, 191, 36, .06); } .banner p { color: var(--ink2); font-size: .88rem; } .banner b { color: #ffd9a1; font-weight: 500; }
.kill-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; } .kill-card b { display: block; font-size: 1.3rem; font-weight: 300; margin: 4px 0; }
.kill { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 18px; font-weight: 600; color: #ffd1d8; background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .45); transition: all .25s; } .kill:hover { background: rgba(251, 113, 133, .2); box-shadow: 0 0 30px rgba(251, 113, 133, .3); } .kill.on { color: #1a1204; background: var(--amber); border-color: var(--amber); }
.set-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; } .set-col { display: flex; flex-direction: column; gap: 16px; } .set-sec { display: flex; flex-direction: column; gap: 14px; }
.policy { display: flex; flex-direction: column; gap: 12px; } .pol { padding: 16px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); background: radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%); display: flex; flex-direction: column; gap: 8px; }
.pol-h { display: flex; align-items: center; gap: 10px; } .pol-h svg { color: var(--c); margin-left: auto; } .pol-c { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #06101c; background: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); } .pol b { font-weight: 500; }
.pol ul { display: flex; flex-direction: column; gap: 4px; color: var(--ink2); font-size: .86rem; } .pol li::before { content: "·"; color: var(--c); margin-right: 8px; font-weight: 700; }
.pol-sw { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--edge); font-size: .85rem; color: var(--ink2); } .pol-sw.wide { border: 0; padding: 0; }
.sw { position: relative; width: 48px; height: 28px; border-radius: 28px; flex: none; background: rgba(255, 255, 255, .12); transition: background .25s; } .sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.2, .8, .2, 1); } .sw.on { background: linear-gradient(135deg, #3b6fe0, #22d3c5); } .sw.on i { transform: translateX(20px); } .sw.locked { opacity: .55; cursor: not-allowed; }
.stack-bar { display: flex; height: 14px; border-radius: 14px; overflow: hidden; gap: 2px; } .stack-bar i { display: block; transition: width .3s; }
.sld { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 70px; gap: 14px; align-items: center; font-size: .86rem; color: var(--ink2); } .sld b { text-align: right; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts { display: flex; flex-direction: column; } .fact { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--edge); } .fact b { font-weight: 500; display: block; font-size: .9rem; } .fact .chip { color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.foot-actions { display: flex; justify-content: center; margin-top: 22px; }

/* ===== шторка ===== */
.sheet { position: fixed; inset: 0; z-index: 60; } .sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(2, 4, 10, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .28s; } .sheet.open .sheet-scrim { opacity: 1; }
.sheet-panel { position: absolute; right: 16px; top: 16px; bottom: 16px; width: min(460px, calc(100vw - 32px)); display: flex; flex-direction: column; border-radius: 28px; border: 1px solid var(--edge2); background: linear-gradient(180deg, rgba(20, 26, 44, .94), rgba(10, 14, 24, .96)); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); transform: translateX(30px); opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s; } .sheet.open .sheet-panel { transform: none; opacity: 1; }
.sheet-grip { display: none; } .sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 22px 22px 6px; } .sheet-title { font-size: 1.35rem; font-weight: 300; letter-spacing: -.01em; line-height: 1.2; } .sheet-sub { color: var(--ink3); font-size: .78rem; margin-top: 2px; }
.sheet-close { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--edge); } .sheet-body { padding: 14px 22px 26px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.more-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .more-i { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); } .more-i b { font-weight: 500; font-size: .92rem; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 80; padding: 12px 20px; border-radius: 99px; background: rgba(20, 28, 50, .95); border: 1px solid var(--edge2); color: var(--ink); font-size: .85rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); transition: all .35s cubic-bezier(.2, .8, .2, 1); max-width: calc(100vw - 32px); text-align: center; pointer-events: none; } .toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ===== адаптивність ===== */
@media (max-width: 1180px) {
  .hero, .pulse, .procs, .res-card, .disc, .goals { grid-column: 1 / -1; }
  .net-grid { grid-template-columns: 1fr; } .net-panel, .slot-card { position: static; }
  .fac-row { grid-template-columns: 1fr; } .slots { grid-template-columns: repeat(8, 1fr); }
  .set-grid { grid-template-columns: 1fr; } .agent-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .shell { display: block; } body { font-size: 14.5px; }
  .dock { position: fixed; z-index: 40; top: auto; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); height: auto; flex-direction: row; justify-content: space-between; gap: 2px; padding: 8px; border: 1px solid var(--edge2); border-radius: 26px; background: rgba(14, 20, 36, .78); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%); box-shadow: 0 20px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1); }
  .dk { width: auto; flex: 1; padding: 8px 2px 6px; } .dk.on::before { display: none; } .dk-more { display: none; } .dk-morebtn { display: flex; }
  .top { padding-top: max(12px, env(safe-area-inset-top)); } .clock { display: none; } .status-chip { font-size: .6rem; padding: 5px 10px; }
  #view { padding-bottom: 130px; } .vhead { padding: 6px 0 18px; } .vhead .chip.demo { order: -1; }
  .glass { padding: 16px; border-radius: 22px; } .cc-grid { gap: 14px; }
  .hero { min-height: 470px; } .hero-top { left: 16px; right: 16px; top: 16px; } .hero-top .chip { display: none; } .hero-hint { bottom: 164px; }
  .hero-kpis { grid-template-columns: repeat(2, 1fr); left: 10px; right: 10px; bottom: 10px; } .kpi { padding: 8px 10px; } .kv-n { font-size: 1.3rem; }
  .res-wrap { grid-template-columns: 1fr; } .disc-row { grid-template-columns: 1fr; }
  .cmp { grid-template-columns: 1fr; } .agent-strip { grid-template-columns: repeat(2, 1fr); }
  .net { min-width: 520px; } .nname { font-size: 19px; } .nua { font-size: 15px; } .nrun { font-size: 13px; } .ntag { font-size: 11px; } .perim-t { font-size: 12px; } .hub-t { font-size: 15px; } .hub-s { font-size: 12px; }
  .smap .nname { font-size: 19px; } .smap .nua { font-size: 14px; } .zone-t { font-size: 12px; } .smap .ntag { font-size: 12px; }
  .chart .ax { font-size: 17px; } .stg-l { font-size: 14px; } .stg-n { font-size: 15px; }
  .sk { grid-template-columns: 96px 1fr 62px; font-size: .8rem; } .tm-ctl { grid-template-columns: 1fr; gap: 6px; } .tm-ctl b { text-align: left; } .sld { grid-template-columns: 1fr 70px; } .sld input { grid-column: 1 / -1; grid-row: 2; } .sld span { grid-column: 1; } .sld b { grid-column: 2; grid-row: 1; }
  .slots { grid-template-columns: repeat(4, 1fr); } .prod-grid { grid-template-columns: 1fr; } .exp-list { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; } .search { max-width: none; }
  .sheet-panel { left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-height: 88vh; border-radius: 28px 28px 0 0; transform: translateY(40px); } .sheet.open .sheet-panel { transform: none; } .sheet-grip { display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--edge2); margin: 10px auto 0; } .sheet-head { padding-top: 12px; } .sheet-body { padding-bottom: max(26px, env(safe-area-inset-bottom)); }
  .hrow { grid-template-columns: 22px repeat(24, 1fr); gap: 2px; } .hrow i { height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
