/* Unified, accessible presentation layer for every AR scheme. */
#arSchemeRoot {
  --ar-cyan: #22d3ee;
  --ar-violet: #8b5cf6;
  --ar-surface: rgba(9, 16, 30, 0.88);
  background: radial-gradient(circle at 16% 12%, rgba(34,211,238,.15), transparent 34%), radial-gradient(circle at 84% 24%, rgba(139,92,246,.16), transparent 38%), linear-gradient(155deg,#070b14 0%,#0a1222 54%,#080d18 100%) !important;
  isolation: isolate;
}
#arSchemeRoot::before { opacity:.38; animation:none !important; background-size:44px 44px !important; mask-image:linear-gradient(to bottom,black,transparent 82%); }
#killChainScrollContainer { padding:92px 16px 138px !important; scrollbar-width:thin; scrollbar-color:rgba(34,211,238,.42) transparent; }
#killChainNodes { width:min(100%,520px); margin-inline:auto; }

.ar-stage-control { position:relative; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
button.ar-stage-control { appearance:none; }
.ar-stage-control:focus-visible { outline:3px solid #f8fafc !important; outline-offset:4px; }
button.ar-stage-control:not(.ar-stage-control--killchain) { min-height:62px !important; border-radius:16px !important; background:linear-gradient(120deg,rgba(255,255,255,.045),transparent 42%),var(--ar-surface) !important; box-shadow:0 14px 30px rgba(0,0,0,.26),inset 0 1px rgba(255,255,255,.06) !important; }
button.ar-stage-control:not(.ar-stage-control--killchain)::after { content:'›'; margin-left:auto; color:rgba(226,232,240,.48); font-size:24px; line-height:1; }
.ar-stage-control:hover { filter:brightness(1.12); }
button.ar-stage-control:hover { transform:translateY(-2px) !important; box-shadow:0 18px 38px rgba(0,0,0,.34),0 0 22px rgba(34,211,238,.1) !important; }
button.ar-stage-control:active { transform:translateY(0) scale(.985) !important; }
.ar-stage-control.is-selected { border-color:#e0f2fe !important; box-shadow:0 0 0 2px rgba(34,211,238,.46),0 18px 42px rgba(8,145,178,.24) !important; filter:brightness(1.18); }
.ar-stage-control.is-studied::before { content:'✓ изучено'; position:absolute; top:8px; right:12px; color:#6ee7b7; font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }

.ar-stage-item { display:grid !important; grid-template-columns:58px minmax(0,1fr) 20px; align-items:center; gap:14px; width:min(100%,460px) !important; min-height:84px; padding:11px 16px 11px 11px !important; border:1px solid color-mix(in srgb,var(--ar-stage-accent,var(--ar-cyan)) 50%,transparent) !important; border-radius:20px; color:#f8fafc; text-align:left; background:linear-gradient(110deg,color-mix(in srgb,var(--ar-stage-accent,var(--ar-cyan)) 12%,transparent),transparent 52%),rgba(9,16,30,.9) !important; box-shadow:0 15px 34px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.07); cursor:pointer; backdrop-filter:blur(18px); }
.ar-stage-item::after { content:'›'; color:color-mix(in srgb,var(--ar-stage-accent,var(--ar-cyan)) 76%,white); font-size:27px; }
.ar-killchain-node { display:flex; position:relative; width:54px !important; height:54px !important; align-items:center; justify-content:center; border:2px solid var(--ar-stage-accent,var(--ar-cyan)); border-radius:17px; color:#fff; background:linear-gradient(145deg,rgba(30,41,59,.94),rgba(8,14,25,.98)); box-shadow:inset 0 1px rgba(255,255,255,.12),0 0 20px color-mix(in srgb,var(--ar-stage-accent,var(--ar-cyan)) 22%,transparent); }
.ar-stage-copy { display:grid; min-width:0; gap:3px; }
.ar-stage-kicker { color:#67e8f9; font-size:9px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.ar-stage-name { color:#f8fafc !important; font-size:14px !important; font-weight:750 !important; line-height:1.25 !important; text-align:left !important; }
.ar-stage-action { color:rgba(203,213,225,.66); font-size:10px; }
.ar-stage-item.is-selected .ar-killchain-node { background:linear-gradient(145deg,#0891b2,#6d28d9); border-color:white; transform:rotate(-3deg) scale(1.04); }
#arSchemeRoot[data-view-mode="attack"] .ar-stage-kicker { color:#fda4af; }
#arSchemeRoot[data-view-mode="defense"] .ar-stage-kicker { color:#6ee7b7; }
.ar-chain-link.vertical { width:2px !important; height:20px !important; margin:-5px 0 !important; border:0 !important; border-radius:2px !important; background:linear-gradient(var(--ar-cyan),var(--ar-violet)) !important; box-shadow:0 0 12px rgba(34,211,238,.34) !important; }

.ar-stage-control--stride { min-height:150px !important; }
.ar-stage-control--mitre { min-height:132px !important; }
.ar-stage-control--nist,.ar-stage-control--did { cursor:pointer; transform-box:fill-box; transform-origin:center; }
.ar-stage-control--nist:hover,.ar-stage-control--did:hover { fill-opacity:.48 !important; }
.ar-stage-control--nist.is-selected,.ar-stage-control--did.is-selected { stroke:#fff !important; stroke-width:4 !important; fill-opacity:.58 !important; }
#arSchemeRoot svg text { pointer-events:none; }
#arStageHint { padding:9px 15px !important; border:1px solid rgba(148,163,184,.2); border-radius:999px !important; color:rgba(226,232,240,.84) !important; background:rgba(6,11,20,.84) !important; box-shadow:0 10px 25px rgba(0,0,0,.25); backdrop-filter:blur(14px); }

@media (min-width:768px) { #killChainScrollContainer { padding-inline:28px !important; } .ar-stage-item { grid-template-columns:64px minmax(0,1fr) 22px; min-height:92px; } .ar-killchain-node { width:60px !important; height:60px !important; } .ar-stage-name { font-size:15px !important; } }
@media (max-width:480px) { #killChainScrollContainer { padding-inline:10px !important; } .ar-stage-item { width:100% !important; grid-template-columns:50px minmax(0,1fr) 16px; gap:10px; padding:9px 11px 9px 9px !important; } .ar-killchain-node { width:48px !important; height:48px !important; border-radius:14px; } .ar-stage-action { display:none; } .ar-stage-control--mitre { width:142px !important; } }
@media (prefers-reduced-motion:reduce) { #arSchemeRoot *,#arSchemeRoot *::before,#arSchemeRoot *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }
