/* Липкое окно с живыми сценами панели Chronicle (данные вымышленные) */
.feature-layout { display: grid; grid-template-columns: 3fr 8fr; gap: 40px; align-items: start; }
.feature-steps { margin: 0; padding: 0; list-style: none; }
.feature-steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 24px 22px; border-left: 2px solid var(--border); opacity: 0.35; transition: opacity 0.5s var(--ease), border-color 0.5s var(--ease); }
.feature-steps li.active { opacity: 1; border-color: var(--accent); }
.feature-steps h3 { margin: 10px 0 12px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.feature-steps p { margin: 0; color: var(--muted); }
.feature-stage { position: sticky; top: calc(50vh - 260px); perspective: 1400px; }

.app {
  --app-line: rgba(255, 255, 255, 0.07); --app-panel: #1b2223; --bad: #ff6b6b; --warn: #febc2e; --ok: #2fd07a; --tg: #4ea4f6; --max: #a78bfa;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: #121718; overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 90px -25px rgba(45, 212, 191, 0.3);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.4s var(--ease);
  font: 12px/1.45 var(--sans); color: #e2e8e8;
}
.app svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--app-line); }
.app-bar > i { width: 11px; height: 11px; border-radius: 50%; }
.app-bar > i:nth-child(1) { background: #ff5f57; }
.app-bar > i:nth-child(2) { background: #febc2e; }
.app-bar > i:nth-child(3) { background: #28c840; }
.app-tabs { display: flex; gap: 2px; margin: 0 auto; padding: 3px; border-radius: 9px; background: #0c1011; }
.app-tabs span { padding: 3px 12px; border-radius: 7px; color: #8a9696; transition: background 0.3s, color 0.3s; }
.app-tabs span.on { background: rgba(45, 212, 191, 0.16); color: #fff; }
.app-body { position: relative; height: 470px; }
.hero-app .app-body { height: 480px; }
.panel { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); pointer-events: none; overflow: hidden; }
.panel.active { opacity: 1; transform: none; }
.muted { color: #8a9696; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.p-head b { font-size: 15px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.pop { animation: pop 0.35s var(--ease) both; }

/* Security-консоль */
.sc { display: flex; flex-direction: column; height: 100%; padding: 14px; gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { padding: 8px 10px; border-radius: 10px; background: var(--app-panel); border: 1px solid var(--app-line); }
.tile span { display: block; font-size: 10.5px; color: #8a9696; }
.tile b { font-size: 20px; letter-spacing: -0.02em; }
.tile.warn b { color: var(--warn); }
.tile.bad b { color: var(--bad); }
.sc-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; min-height: 0; flex: 1; }
.queue { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.q-row { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px 8px 0; border-radius: 9px; background: var(--app-panel); border: 1px solid transparent; overflow: hidden; }
.q-row.sel, .q-new .q-row { border-color: rgba(45, 212, 191, 0.4); }
.q-new { animation: pop 0.45s var(--ease) both; }
.q-row, .q-new { flex-shrink: 0; }
.q-row p { margin: 1px 0; color: #c6cfcf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-row small { color: #8a9696; }
.sev { align-self: stretch; }
.sev.high { background: var(--bad); }
.sev.mid { background: var(--warn); }
.sev.low { background: #5b6b6b; }
.status { padding: 1px 8px; border-radius: 999px; font: 10px/16px var(--mono); white-space: nowrap; }
.st-new { background: rgba(255, 107, 107, 0.16); color: var(--bad); }
.st-work { background: rgba(254, 188, 46, 0.16); color: var(--warn); }
.st-esc { background: rgba(167, 139, 250, 0.18); color: var(--max); }
.ctx { padding: 10px 12px; border-radius: 10px; background: #0f1415; border: 1px solid var(--app-line); }
.ctx-in { animation: pop 0.4s var(--ease) both; }
.ctx-in > b { font-size: 13px; }
.ctx-msg { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: #17403b; }
.ctx-msg mark { background: rgba(254, 188, 46, 0.3); color: #fff; border-radius: 3px; padding: 0 2px; }
.crm-line { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--bad); font-weight: 600; }
.crm-line.ok { color: var(--ok); }
.ctx-act { display: flex; gap: 6px; margin-top: 12px; }
.ctx-act span { padding: 3px 10px; border-radius: 7px; background: #243031; }
.ctx-act .pri { background: rgba(167, 139, 250, 0.25); color: #fff; transition: transform 0.2s; }
.ctx-act .pri.pressed { transform: scale(0.94); background: var(--max); }
.chan { display: inline-block; padding: 0 6px; border-radius: 4px; font: 600 10px/16px var(--mono); }
.chan.tg { background: rgba(78, 164, 246, 0.16); color: var(--tg); }
.chan.max { background: rgba(167, 139, 250, 0.16); color: var(--max); }

/* Граф-расследование */
.gr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; height: 100%; padding: 14px; }
.gr-canvas { display: flex; flex-direction: column; min-height: 0; padding: 10px; border-radius: 10px; background: #0f1415; border: 1px solid var(--app-line); }
.gr-canvas canvas { flex: 1; width: 100%; min-height: 0; }
.gr-legend { display: flex; align-items: center; gap: 6px; color: #f2c4c4; font-size: 11px; }
.gr-legend .risk { width: 18px; height: 2px; background: var(--bad); }
.gr-card { padding: 12px; border-radius: 10px; background: var(--app-panel); }
.gr-name { display: block; margin-top: 2px; font-size: 16px; }
.act-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 24px; gap: 8px; align-items: center; margin-top: 6px; }
.act-row b { text-align: right; font: 11px var(--mono); }
.act-bar { height: 6px; border-radius: 3px; background: #2a3334; overflow: hidden; }
.act-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent); transition: width 1s var(--ease); }
.act-bar i.bad { background: var(--bad); }

/* Журнал доступа */
.au { padding: 14px 16px; }
.audit-row { display: grid; grid-template-columns: 46px 64px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border-bottom: 1px solid var(--app-line); animation: pop 0.4s var(--ease) both; }
.audit-row .act-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audit-row .why { font: 10.5px var(--mono); color: #8a9696; }
.badge { padding: 0 7px; border-radius: 999px; font: 10px/16px var(--mono); }
.badge.view { background: rgba(45, 212, 191, 0.14); color: var(--accent); }
.badge.export { background: rgba(254, 188, 46, 0.16); color: var(--warn); }
.badge.search { background: rgba(167, 139, 250, 0.16); color: var(--max); }
.hash { margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: #0f1415; font: 10.5px var(--mono); color: #8a9696; word-break: break-all; animation: pop 0.4s var(--ease) both; }

@media (max-width: 1000px) {
  .feature-layout { grid-template-columns: 1fr; gap: 0; }
  .feature-stage { position: sticky; top: 60px; z-index: 3; order: -1; }
  .app-body { height: 360px; }
  .feature-steps li { min-height: 75vh; justify-content: flex-end; padding-bottom: 6vh; }
}
@media (max-width: 600px) {
  .app-tabs span { padding: 3px 7px; font-size: 11px; }
  .app-tabs span:nth-child(n+4) { display: none; }
  .hero-app .app-body { height: 400px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile b { font-size: 16px; }
  .sc-body, .gr { grid-template-columns: 1fr; }
  .ctx { display: none; }
  .gr-card { display: none; }
  .audit-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .audit-row .who { display: none; }
}
