/* Липкое окно с живыми сценами: повторяет интерфейс Protokol на вымышленных данных */
.feature-layout { display: grid; grid-template-columns: 4fr 7fr; gap: 48px; 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 24px; 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(26px, 3vw, 36px); 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 - 250px); perspective: 1400px; }

.app {
  --app-bg: #1e1f22; --app-panel: #27282c; --app-line: rgba(255, 255, 255, 0.07); --app-blue: #2f6fe4;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: var(--app-bg); overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 90px -25px rgba(74, 140, 255, 0.3);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.4s var(--ease);
  font: 12px/1.45 var(--sans); color: #e4e6ea;
}
.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-name { margin-left: 150px; font-weight: 700; font-size: 14px; }
.app-rec { margin-left: auto; font: 500 11px var(--mono); color: #ff5f57; }
.app-body { display: grid; grid-template-columns: 186px minmax(0, 1fr); height: 450px; }
.app-side { padding: 10px; border-right: 1px solid var(--app-line); background: #1b1c1f; overflow: hidden; }
.search { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 8px; background: #2a2b30; color: #8b8f98; }
.search .typed { color: #fff; }
.side-h { margin: 10px 4px 4px; font-size: 10.5px; font-weight: 700; color: #7b7f88; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 4px; margin-bottom: 8px; }
.tag { padding: 0 6px; border-radius: 999px; background: #233150; color: #c9d6f5; font-size: 10px; line-height: 17px; }
.mtg { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding: 6px 8px; border-radius: 8px; transition: background 0.3s, opacity 0.3s, max-height 0.4s; max-height: 46px; overflow: hidden; }
.mtg b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtg span { color: #8b8f98; font-size: 10.5px; text-align: right; }
.mtg small { grid-column: 1 / -1; color: #8b8f98; font-size: 10.5px; }
.mtg.on { background: var(--app-blue); }
.mtg[hidden] { display: none; }
.mtg.on span, .mtg.on small { color: #d6e2ff; }
.mtg.hide { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.mtg.rec b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #ff5f57; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.stage-body { position: relative; overflow: hidden; }
.panel { position: absolute; inset: 0; padding: 14px 16px; 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; }

.m-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.muted { color: #8b8f98; }
.player { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.play { width: 0; height: 0; border-left: 11px solid #e4e6ea; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.speed { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: #303137; font-weight: 600; transition: background 0.3s; }
.speed.flash { background: var(--app-blue); }
.time { font: 11px var(--mono); color: #b9bdc6; }
.track { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; height: 34px; }
.track canvas { width: 100%; height: 30px; display: block; }
.who { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; height: 17px; font-size: 11px; color: #c9ccd2; }
.who-bars { position: relative; height: 9px; }
.who-bars i { position: absolute; top: 0; height: 9px; border-radius: 1px; background: #5b5e66; transform-origin: left; animation: grow 0.5s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.lanes { position: relative; --lab: 92px; }
.playhead { position: absolute; top: 0; bottom: 0; left: calc(var(--lab) + (100% - var(--lab)) * var(--p, 0)); width: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); pointer-events: none; }
.seg { display: inline-flex; margin: 8px 8px 0 0; padding: 2px; border-radius: 8px; background: #2a2b30; }
.seg span { padding: 3px 12px; border-radius: 6px; color: #c9ccd2; transition: background 0.3s, color 0.3s; }
.seg span.on { background: var(--app-blue); color: #fff; }
.rec-banner { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(63, 208, 122, 0.1); color: #7fe3a8; }
.rec-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: #3fd07a; animation: blink 1s steps(2) infinite; }
.mute-mark { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 4px, transparent 4px 8px); border-left: 1px dashed #8b8f98; }
.meters { display: grid; gap: 6px; margin-top: 10px; }
.meter { display: grid; grid-template-columns: 92px 1fr; align-items: center; }
.meter-bar { height: 6px; border-radius: 3px; background: #303137; overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3fd07a, #febc2e 80%, #ff5f57); transition: width 0.12s; }
.hint { margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: #26272c; color: #b9bdc6; animation: pop 0.4s var(--ease) both; }

.lines { margin-top: 10px; }
.line { padding: 5px 8px; margin: 0 -8px 2px; border-radius: 7px; animation: pop 0.4s var(--ease) both; transition: background 0.3s; }
.line.now { background: rgba(47, 111, 228, 0.18); }
.line small { display: block; font-size: 10.5px; color: #8b8f98; }
.line small.me { color: #5b9bff; }
.line p { margin: 1px 0 0; font-size: 12.5px; }
@keyframes pop { from { opacity: 0; transform: translateY(5px); } }

.proto { margin-top: 8px; font-size: 12.5px; }
.proto h4 { margin: 10px 0 4px; font-size: 14px; animation: pop 0.4s var(--ease) both; }
.proto li { margin: 0 0 4px 16px; animation: pop 0.4s var(--ease) both; }
.proto b { color: #fff; }
.proto .due { color: #8b8f98; }
.generating { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #8b8f98; }
.spin { width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: #c9ccd2; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.btns span { padding: 3px 10px; border-radius: 7px; background: #303137; }

.person { margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--app-panel); }
.pop-card { margin-top: 8px; padding: 8px; border-radius: 10px; background: #2f3036; border: 1px solid var(--app-line); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.7); animation: pop 0.35s var(--ease) both; }
.pop-card div { padding: 4px 6px; border-radius: 6px; }
.pop-card div.on { background: var(--app-blue); }
.renamed { color: #7fe3a8; transition: color 0.4s; }

.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.screen { position: relative; height: 210px; border-radius: 10px; border: 1px solid var(--app-line); background: linear-gradient(160deg, #2a3350, #1a1d2a); overflow: hidden; }
.screen p { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; text-align: center; color: #b9bdc6; font-size: 11px; }
.mini-win { position: absolute; left: 14%; top: 16%; right: 14%; bottom: 22%; border-radius: 6px; background: #1e1f22; border: 1px solid rgba(255, 255, 255, 0.12); transition: opacity 0.5s, filter 0.5s; }
.mini-win::before { content: ""; position: absolute; left: 8%; right: 30%; top: 20%; height: 6px; border-radius: 3px; background: #4a4c54; box-shadow: 0 14px 0 #3a3c43, 0 28px 0 #3a3c43, 0 42px 0 #3a3c43; }
.screen.shared .mini-win { opacity: 1; }
.screen.shared.hidden-win .mini-win { opacity: 0; filter: blur(6px); }
.share-badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: #ff5f57; color: #fff; font-size: 10.5px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 44px; padding: 10px; border-radius: 10px; background: var(--app-panel); }
.box { width: 16px; height: 16px; border-radius: 4px; background: #3a3b40; transition: background 0.3s; display: grid; place-items: center; }
.box.on { background: var(--app-blue); }
.box.on::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

@media (max-width: 900px) {
  .feature-layout { grid-template-columns: 1fr; gap: 0; }
  .feature-stage { position: sticky; top: 60px; z-index: 3; order: -1; }
  .app-body { grid-template-columns: 1fr; height: 340px; }
  .app-side { display: none; }
  .app-name { margin-left: 10px; }
  .feature-steps li { min-height: 75vh; justify-content: flex-end; padding-bottom: 6vh; }
  .track, .who, .meter { grid-template-columns: 64px minmax(0, 1fr); }
  .lanes { --lab: 64px; }
  .screen { height: 140px; }
}
