/* Continuous replay dashboard. Counts remain discrete evidence records. */
.ir { container-type:inline-size; }
.ir [data-scrub] { appearance:none; height:5px; border-radius:8px; background:linear-gradient(to right,#ee8a9e var(--ir-progress,0%),#2b3949 var(--ir-progress,0%)); outline-offset:6px; }
.ir [data-scrub]::-webkit-slider-thumb { appearance:none; width:13px; height:13px; border:2px solid #fff; border-radius:50%; background:#ed839a; box-shadow:0 0 12px #ed839a55; }
.ir [data-scrub]::-moz-range-thumb { width:10px; height:10px; border:2px solid #fff; border-radius:50%; background:#ed839a; }
.ir-stats > div { padding:11px 16px; }
.ir-stats strong { font-size:20px; margin:3px 0; }
.ir-stats small,.ir-stats span { font-size:10px; }
.ir-node,.ir-edge { transition:opacity .5s ease; }
.ir-node rect { transition:fill .5s ease,stroke .5s ease; }
.ir-edge path { transition:stroke .5s ease; }
.ir-phase-panel,.ir-volume-panel { min-width:0; border:1px solid var(--line); border-radius:14px; background:#0e151e; overflow:hidden; }
.ir-phase-panel header,.ir-volume-panel header { padding:16px 18px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:12px; }
.ir-phase-panel header span,.ir-volume-panel header span { font-size:10px; color:var(--muted); }
.ir-phases { padding:10px 18px; }
.ir-phase-row { margin:10px 0 15px; }
.ir-phase-row > div:first-child { display:flex; justify-content:space-between; gap:10px; font-size:12px; }
.ir-phase-row strong { color:var(--phase-color); }
.ir-phase-row span { font:12px ui-monospace,Consolas,monospace; color:#c7d7e4; }
.ir-phase-row small { display:block; font:9px/1.8 ui-monospace,Consolas,monospace; color:#8da3b6; margin-top:3px; }
.ir-phase-track { margin-top:5px; height:5px; border-radius:5px; overflow:hidden; background:#26313d; }
.ir-phase-track i { display:block; height:100%; background:var(--phase-color); transform-origin:left; }
.ir-phase-row.is-current strong::after { content:' ●'; font-size:8px; }
.ir-chart-note { margin:0; padding:10px 18px 15px; font-size:10px; line-height:1.7; color:#94a9bc; }
.ir[data-mode=timeline] .ir-grid { grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr); align-items:start; }
.ir[data-mode=timeline] .ir-map-panel { grid-row:1 / 3; height:100%; }
.ir[data-mode=timeline] .ir-map { min-width:0; max-height:640px; }
.ir[data-mode=timeline] .ir-detail { padding:18px; }
.ir[data-mode=timeline] .ir-detail h4 { font-size:18px; margin:8px 0 12px; }
.ir[data-mode=timeline] .ir-detail p { font-size:13px; line-height:1.8; }
.ir-bottom-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr); gap:15px; margin-top:16px; }
.ir-bottom-grid .ir-stream-panel { margin:0; }
.ir[data-mode=overview] .ir-bottom-grid { display:none; }
.ir-stream { position:relative; overscroll-behavior:contain; overflow-anchor:none; scrollbar-color:#3c5367 #101720; }
.ir-stream button { transition:background-color .3s ease,opacity .3s ease; grid-template-columns:135px 75px 1fr; font-size:11px; }
.ir-volume { display:flex; align-items:end; gap:7px; padding:20px 15px 10px; min-height:178px; }
.ir-volume-column { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:end; align-items:center; gap:8px; }
.ir-volume-column strong { font:700 11px ui-monospace,Consolas,monospace; }
.ir-volume-column small { font:9px ui-monospace,Consolas,monospace; color:#a2b4c5; writing-mode:horizontal-tb; }
.ir-volume-track { width:100%; min-height:3px; border-radius:5px 5px 0 0; overflow:hidden; background:#1b2632; }
.ir-volume-track i { display:block; height:100%; background:#5e798f; transform-origin:bottom; transition:transform .45s ease,background .3s; }
.ir-volume-column.is-current .ir-volume-track i { background:#67cfc5; }
@container (max-width:720px) {
  .ir[data-mode=timeline] .ir-grid { grid-template-columns:1fr; }
  .ir[data-mode=timeline] .ir-map-panel { grid-row:auto; }
  .ir-bottom-grid { grid-template-columns:1fr; }
  .ir-phases { display:grid; grid-template-columns:1fr 1fr; gap:0 20px; }
  .ir-stream button { grid-template-columns:1fr 1fr; }
  .ir-stream button > span { grid-column:1 / -1; }
}
@media (min-width:1000px) and (min-height:650px) {
  .ir[data-mode=timeline]:fullscreen { height:100dvh; padding:16px 22px; display:grid; grid-template-rows:auto auto auto minmax(0,1fr) minmax(135px,20vh); gap:10px; overflow:hidden; }
  .ir:fullscreen .ir-heading { margin:0; align-items:center; }
  .ir:fullscreen .ir-heading h3 { font-size:23px; margin:2px 0; }
  .ir:fullscreen .ir-heading p { font-size:11px; }
  .ir:fullscreen .ir-eyebrow { font-size:9px; }
  .ir:fullscreen .ir-controls { margin:0; padding:10px 14px; }
  .ir:fullscreen .ir-modes { margin:0; float:left; }
  .ir:fullscreen .ir-modes button { font-size:10px; padding:7px 9px; }
  .ir:fullscreen .ir-transport { margin:0 0 6px; justify-content:flex-end; }
  .ir:fullscreen .ir-buttons button,.ir:fullscreen .ir-buttons select { padding:6px 9px; font-size:11px; }
  .ir:fullscreen .ir-time { font-size:10px; gap:2px; }
  .ir:fullscreen .ir-time strong { font-size:12px; }
  .ir:fullscreen .ir-ticks { font-size:9px; margin-top:4px; }
  .ir:fullscreen .ir-stats { margin:0; gap:10px; }
  .ir:fullscreen .ir-stats > div { padding:7px 13px; }
  .ir:fullscreen .ir-stats strong { font-size:17px; margin:1px 0; }
  .ir:fullscreen .ir-stats small,.ir:fullscreen .ir-stats span { font-size:9px; line-height:1.4; }
  .ir[data-mode=timeline]:fullscreen .ir-grid { min-height:0; grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr); grid-template-rows:minmax(0,1fr) minmax(100px,.8fr); gap:10px; align-items:stretch; }
  .ir:fullscreen .ir-map-panel { display:flex; flex-direction:column; min-height:0; }
  .ir:fullscreen .ir-map-scroll { flex:1; min-height:0; }
  .ir[data-mode=timeline]:fullscreen .ir-map { width:100%; height:100%; max-height:none; }
  .ir:fullscreen .ir-map-panel header,.ir:fullscreen .ir-phase-panel header,.ir:fullscreen .ir-volume-panel header,.ir:fullscreen .ir-stream-panel header { padding:8px 14px; }
  .ir:fullscreen h4 { font-size:13px; }
  .ir:fullscreen .ir-map-caption { font-size:9px; padding:4px 14px 8px; }
  .ir:fullscreen .ir-phase-panel { overflow:auto; }
  .ir:fullscreen .ir-phases { padding:5px 14px; display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
  .ir:fullscreen .ir-phase-row { margin:3px 0 7px; }
  .ir:fullscreen .ir-phase-row > div:first-child,.ir:fullscreen .ir-phase-row span { font-size:10px; }
  .ir:fullscreen .ir-phase-row small { font-size:8px; }
  .ir:fullscreen .ir-phase-panel .ir-chart-note { padding:0 14px 6px; font-size:8px; }
  .ir[data-mode=timeline]:fullscreen .ir-detail { min-height:0; overflow:auto; padding:10px 14px; }
  .ir:fullscreen .ir-detail h4 { font-size:15px; margin:5px 0; }
  .ir:fullscreen .ir-detail p { font-size:12px; line-height:1.7; margin:5px 0 8px; }
  .ir:fullscreen .ir-detail a { font-size:10px; margin-top:8px; }
  .ir:fullscreen .ir-excerpt { margin:8px 0; padding:8px; }
  .ir:fullscreen .ir-bottom-grid { margin:0; min-height:0; gap:10px; grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr); }
  .ir:fullscreen .ir-stream-panel { display:flex; flex-direction:column; }
  .ir:fullscreen .ir-stream { min-height:0; max-height:none; flex:1; }
  .ir:fullscreen .ir-stream button { grid-template-columns:150px 90px 1fr; }
  .ir:fullscreen .ir-volume-panel { display:flex; flex-direction:column; }
  .ir:fullscreen .ir-volume { flex:1; min-height:0; padding:6px 14px; }
  .ir:fullscreen .ir-volume-column { height:100%; gap:3px; }
  .ir:fullscreen .ir-volume-track { max-height:calc(100% - 30px); }
  .ir:fullscreen .ir-volume-column small { writing-mode:initial; font-size:8px; }
  .ir:fullscreen .ir-volume-panel .ir-chart-note { padding:3px 14px 6px; font-size:8px; }
}
@media (prefers-reduced-motion:reduce) { .ir * { animation:none!important; transition:none!important; } }

/* Reference palette: near-black panels, warm transport, colored activity. */
.ir { --bg:#080c11;--panel:#0e131b;--line:#252e3c;--muted:#8995a7;--ink:#f1f3f8;--accent:#ff4d50;background:radial-gradient(ellipse at 75% 0,#2a141c50,transparent 42%),#080c11; }
.ir-controls,.ir-stats>div,.ir-map-panel,.ir-detail,.ir-stream-panel,.ir-phase-panel,.ir-volume-panel { background:linear-gradient(135deg,#10151d,#0a0f15); border-color:#252e3c; }
.ir .ir-heading { background:transparent; }
.ir h3,.ir h4 { color:#f5f5fa; }
.ir-eyebrow { color:#ff6865; }
.ir button,.ir select { background:#111720;border-color:#293140;color:#c6cbd4; }
.ir button:hover { background:#1b2230; }
.ir button[aria-pressed=true] { background:#ff4c50;border-color:#ff6665;color:#fff;box-shadow:0 0 16px #ff4c501c; }
.ir [data-play] { background:#15171e;color:#ff5154;border-color:#ff4c5055;box-shadow:0 0 18px #ff4c5010; }
.ir:not(.is-paused) [data-play] { background:#ff4c50;color:white;box-shadow:0 0 18px #ff4c5033; }
.ir [data-scrub] { background:linear-gradient(90deg,#ed9000,#ff4b52 55%,#ee6fb3) 0 0 / var(--ir-progress,0%) 100% no-repeat,#252b36; }
.ir [data-scrub]::-webkit-slider-thumb { width:15px;height:15px;border:3px solid #ff4b52;background:#fff;box-shadow:0 0 7px #ff4b52,0 0 20px #ff4b5270; }
.ir [data-scrub]::-moz-range-thumb { border:3px solid #ff4b52;background:#fff;box-shadow:0 0 7px #ff4b52,0 0 20px #ff4b5270; }
.ir-stats>div:first-child { background:radial-gradient(circle at 95% 20%,#ff4c5017,transparent 60%),#0e131b; }
.ir-stats>div:first-child strong { color:#ff5357;text-shadow:0 0 20px #ff4b5220; }
.ir-stats>div:nth-child(2) strong { color:#f1f2f7; }
.ir-stats>div:nth-child(3) strong { color:#ff9e0c; }
.ir-map-panel header h4::before,.ir-phase-panel header h4::before,.ir-stream-panel header h4::before,.ir-volume-panel header h4::before { content:'';display:inline-block;width:5px;height:9px;border-radius:1px;margin-right:9px;background:#ff4b52;box-shadow:0 0 9px #ff4b522c; }
.ir-phase-panel header h4::before { background:#79bdff; }
.ir-stream-panel header h4::before { background:#ff9800; }
.ir-volume-panel header h4::before { background:#ecc346; }
.ir-node { opacity:.32; }
.ir-node.is-active { opacity:1; }
.ir-node.is-active rect { stroke:#51d876;fill:#14271b;filter:drop-shadow(0 0 5px #51d87670) drop-shadow(0 0 12px #51d87620); }
.ir-node[data-node=auth].is-active rect { stroke:#ff595e;fill:#2d1821;filter:drop-shadow(0 0 5px #ff595e70) drop-shadow(0 0 12px #ff595e20); }
.ir-node[data-node=download].is-active rect { stroke:#f49b10;fill:#2c2513;filter:drop-shadow(0 0 5px #f49b1070) drop-shadow(0 0 12px #f49b1020); }
.ir-node[data-node=pool].is-active rect { stroke:#ae7af9;fill:#221a34;filter:drop-shadow(0 0 5px #ae7af970) drop-shadow(0 0 12px #ae7af920); }
.ir-node[data-node=monitor].is-active rect { stroke:#79bdff;fill:#182838;filter:drop-shadow(0 0 5px #79bdff70) drop-shadow(0 0 12px #79bdff20); }
.ir-edge.is-active path { filter:drop-shadow(0 0 3px #edbd7c55); }
.ir-phase-track i { box-shadow:0 0 10px var(--phase-color);border-radius:5px; }
.ir-stream button.is-selected { background:#ff51540e;border-left-color:#ff5357; }
.ir-stream b { color:#f2b343; }
.ir-volume-column.is-current .ir-volume-track i { background:#ff635f; }

@media (min-width:1000px) and (min-height:650px) and (max-height:900px) {
 .ir:fullscreen .ir-heading p {display:none;}
 .ir:fullscreen .ir-phases {grid-template-columns:repeat(3,minmax(0,1fr));gap:0 10px;}
 .ir:fullscreen .ir-phase-row small {display:none;}
 .ir:fullscreen .ir-phase-row {margin:6px 0 10px;}
 .ir:fullscreen .ir-phase-row > div:first-child {flex-wrap:wrap;gap:2px;}
}

/* Attack-attempt spotlight and selective failure playback. */
.ir .ir-buttons select {color-scheme:dark;background:#070d0c!important;color:#8effd7!important;border:1px solid #387d6a!important;box-shadow:0 0 12px #66ffcc20;}
.ir .ir-buttons select option {background:#090e0d!important;color:#f5fffb!important;}
.ir [data-fast-failures] {font-size:12px;padding:8px 11px;}
.ir [data-fast-failures][aria-pressed=true] {color:#90ffda;background:#11271f;border-color:#48b995;box-shadow:0 0 14px #60ffc333;}
.ir .ir-attack-node {visibility:hidden;opacity:0;}
.ir .ir-attack-node.is-active {visibility:visible;opacity:1;}
.ir .ir-attack-node.is-active rect {fill:#30102b;stroke:#ff80e5;stroke-width:2.8;filter:drop-shadow(0 0 7px #ff4bdc) drop-shadow(0 0 20px #ef34cbbb) drop-shadow(0 0 40px #d82fbc88);animation:ir-attack-glow 2.6s ease-in-out infinite;}
.ir .ir-attack-node.is-active text {fill:#fff;}
.ir .ir-attack-node.is-active use {stroke:#ffb0ec;filter:drop-shadow(0 0 5px #ff72df);}
.ir .ir-attack-edge {visibility:hidden;}
.ir .ir-attack-edge.is-active {visibility:visible;opacity:1;}
.ir .ir-attack-edge.is-active path {stroke:#ff7ddd;stroke-width:3;stroke-dasharray:10 7;filter:drop-shadow(0 0 7px #ff4ad7);animation:ir-attack-flow .7s linear infinite;}
.ir .ir-attack-edge.is-active text {fill:#ffb4ee;}
.ir.is-paused .ir-attack-node rect,.ir.is-paused .ir-attack-edge path {animation-play-state:paused;}
@keyframes ir-attack-flow {to {stroke-dashoffset:-34;}}
@keyframes ir-attack-glow {50% {filter:drop-shadow(0 0 10px #ff9ce9) drop-shadow(0 0 27px #ff4bdccc) drop-shadow(0 0 48px #e42dc099);}}
@media(prefers-reduced-motion:reduce){.ir .ir-attack-node rect,.ir .ir-attack-edge path {animation:none!important;}}

/* Shared neon spotlight: each active system keeps its own accent. */
.ir .ir-duration {color:#91ffdb;font-size:12px;white-space:nowrap;}
.ir .ir-node {--node-neon:#51ed83;--node-tint:#112819;}
.ir .ir-node[data-node=auth] {--node-neon:#ff667f;--node-tint:#30151f;}
.ir .ir-node[data-node=download] {--node-neon:#ffb33f;--node-tint:#30230e;}
.ir .ir-node[data-node=pool] {--node-neon:#b38aff;--node-tint:#241537;}
.ir .ir-node[data-node=analyst] {--node-neon:#6bffd8;--node-tint:#102b26;}
.ir .ir-node[data-node=evidence] {--node-neon:#ffe174;--node-tint:#2d2812;}
.ir .ir-node[data-node=monitor] {--node-neon:#79c5ff;--node-tint:#122b3b;}
.ir .ir-node[data-node=attack] {--node-neon:#ff80e5;--node-tint:#30102b;}
.ir .ir-node.is-active rect {stroke:var(--node-neon);stroke-width:2.8;fill:var(--node-tint);filter:drop-shadow(0 0 7px var(--node-neon)) drop-shadow(0 0 20px color-mix(in srgb,var(--node-neon) 73%,transparent)) drop-shadow(0 0 40px color-mix(in srgb,var(--node-neon) 53%,transparent));animation:ir-node-neon 2.6s ease-in-out infinite;}
.ir .ir-node.is-active use {stroke:var(--node-neon);filter:drop-shadow(0 0 5px var(--node-neon));}
.ir.is-paused .ir-node rect {animation-play-state:paused;}
@keyframes ir-node-neon {50% {filter:drop-shadow(0 0 10px var(--node-neon)) drop-shadow(0 0 27px color-mix(in srgb,var(--node-neon) 80%,transparent)) drop-shadow(0 0 48px color-mix(in srgb,var(--node-neon) 60%,transparent));}}
@media(prefers-reduced-motion:reduce){.ir .ir-node.is-active rect {animation:none!important;}}

.ir {position:relative;}
.ir .ir-slow-indicator {color:#ffdc8a;font-size:11px;white-space:nowrap;}
.ir .ir-risk-alert {position:absolute;z-index:4;top:9px;left:50%;transform:translateX(-50%);display:flex;gap:10px;align-items:center;max-width:65%;padding:9px 14px;background:#211600f2;border:1px solid #ffc35c;border-radius:10px;box-shadow:0 0 12px #ffb74288,0 0 30px #ffad342e;color:#ffe1a2;font-size:12px;pointer-events:none;}
.ir .ir-risk-alert[hidden],.ir .ir-slow-indicator[hidden] {display:none!important;}
.ir .ir-risk-alert strong {color:#ffd175;white-space:nowrap;}
.ir .ir-risk-alert small {color:#d4b47b;white-space:nowrap;}
@media(max-width:760px){.ir .ir-risk-alert {position:static;transform:none;max-width:none;margin:10px 0;flex-wrap:wrap;}.ir .ir-slow-indicator {white-space:normal;}}

/* Readable labels remain visible while inactive nodes lose their spotlight. */
.ir .ir-map .ir-node,.ir .ir-map .ir-edge {opacity:1;}
.ir .ir-map .ir-node:not(.is-active) rect {fill:#10151b;stroke:#465360;filter:none;animation:none;}
.ir .ir-map .ir-node:not(.is-active) use {stroke:#9aaaba;filter:none;}
.ir .ir-map .ir-node text {fill:#f6f8fb;font-weight:750;}
.ir .ir-map .ir-node .ir-sub {fill:#c3d0dc;font-weight:600;}
.ir .ir-map .ir-zone-title {fill:#d9e9f4;font-weight:750;font-size:14px;paint-order:stroke;stroke:#0b0f14;stroke-width:3px;stroke-linejoin:round;}
.ir .ir-map .ir-edge text {fill:#dce6ef;font-size:13px;font-weight:700;paint-order:stroke;stroke:#0b0f14;stroke-width:4px;stroke-linejoin:round;}
.ir .ir-map .ir-edge:not(.is-active) path {stroke:#526773;opacity:.65;filter:none;animation:none;}
.ir .ir-map .ir-attack-node,.ir .ir-map .ir-attack-edge {visibility:visible;}

/* Only the selected relationship lights up; inactive attack node stays in place. */
.ir .ir-map .ir-node:not(.is-active) {opacity:.32;}
.ir .ir-map .ir-edge:not(.is-active) {opacity:.16;}
.ir .ir-map .ir-edge:not(.is-active) path {opacity:1;}
.ir .ir-map .ir-node.is-active,.ir .ir-map .ir-edge.is-active {opacity:1;}
.ir .ir-map .ir-node.is-active text {fill:#fff;font-weight:750;}
.ir .ir-map .ir-node.is-active .ir-sub {fill:#e6f0f8;font-weight:650;}
.ir .ir-map .ir-edge.is-active text {fill:#f3f8ff;font-weight:750;}

/* Readable activity counters with a colored pulse only as records accumulate. */
.ir .ir-phase-row {padding:9px 11px;border:1px solid transparent;border-radius:10px;transition:background .35s,box-shadow .35s,border-color .35s;}
.ir .ir-phase-row > div:first-child {font-size:16px;line-height:1.5;}
.ir .ir-phase-row span {font-size:16px;font-weight:750;color:#f5f8ff;}
.ir .ir-phase-row small {font-size:11px;font-weight:550;color:#becddb;}
.ir .ir-phase-row.is-current {border-color:color-mix(in srgb,var(--phase-color) 45%,transparent);background:color-mix(in srgb,var(--phase-color) 7%,#0b0e13);}
.ir .ir-phase-row.is-counting {border-color:var(--phase-color);background:color-mix(in srgb,var(--phase-color) 15%,#0b0e13);box-shadow:inset 0 0 17px color-mix(in srgb,var(--phase-color) 20%,transparent),0 0 17px color-mix(in srgb,var(--phase-color) 48%,transparent);}
.ir .ir-phase-row.is-counting strong,.ir .ir-phase-row.is-counting span {text-shadow:0 0 8px var(--phase-color),0 0 17px var(--phase-color);}
.ir .ir-phase-row.is-counting .ir-phase-track {box-shadow:0 0 10px color-mix(in srgb,var(--phase-color) 40%,transparent);}
.ir:fullscreen .ir-phase-row {padding:7px 9px;margin:3px 0 7px;}
.ir:fullscreen .ir-phase-row > div:first-child,.ir:fullscreen .ir-phase-row span {font-size:14px;}
.ir:fullscreen .ir-phase-row small {display:block;font-size:10px;}
.ir .ir-phase-panel {min-height:0;overflow:auto;}
@media(max-height:700px){.ir:fullscreen .ir-phase-row > div:first-child,.ir:fullscreen .ir-phase-row span {font-size:13px;}.ir:fullscreen .ir-phase-row small {font-size:9px;}}

/* Two independent volume scales and an uncluttered fullscreen replay. */
.ir .ir-full-exit {display:none;}
.ir[data-mode=timeline]:fullscreen .ir-heading {display:none;}
.ir[data-mode=timeline]:fullscreen {grid-template-rows:auto auto minmax(0,1fr) minmax(165px,22vh);}
.ir:fullscreen .ir-full-exit {display:inline-block;}
.ir .ir-volume-split {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;flex:1;min-height:0;}
.ir .ir-volume-half {min-width:0;padding:9px 10px 0;display:flex;flex-direction:column;}
.ir .ir-volume-half+ .ir-volume-half {border-left:1px solid #303641;}
.ir .ir-volume-half h5 {display:flex;justify-content:space-between;gap:6px;margin:0 0 5px;font-size:13px;color:#edb2e2;}
.ir .ir-volume-other h5 {color:#8ce7da;}
.ir .ir-volume-half h5 strong {color:#fff;font:750 14px ui-monospace,Consolas,monospace;}
.ir .ir-volume-half .ir-volume {padding:5px 0 2px;min-height:150px;gap:4px;}
.ir .ir-volume-half .ir-volume-column strong {font-size:10px;}
.ir .ir-volume-half .ir-volume-column small {font-size:8px;writing-mode:horizontal-tb;}
.ir .ir-volume-attack .ir-volume-track i {background:#eb6dd0;}
.ir .ir-volume-other .ir-volume-track i {background:#65d4c2;}
.ir:fullscreen .ir-volume-half .ir-volume {min-height:0;}
.ir:fullscreen .ir-risk-alert {top:auto;bottom:6px;max-width:75%;padding:5px 10px;font-size:10px;}

.ir[data-mode=timeline]:fullscreen {grid-template-rows:auto auto minmax(0,1fr) minmax(210px,25vh);}
.ir:fullscreen .ir-volume-half .ir-volume {height:120px;flex:initial;}
.ir:fullscreen .ir-volume-half .ir-volume-column {justify-content:flex-end;}
.ir:fullscreen .ir-volume-half .ir-volume-track {max-height:calc(100% - 58px);}
.ir:fullscreen .ir-volume-half .ir-volume-column small {flex-shrink:0;}

.ir:fullscreen .ir-volume-half {--volume-height:62px;}
.ir:fullscreen .ir-volume-half .ir-volume-track {max-height:none;flex-shrink:0;}

/* Volume labels should be readable without rotating the head or zooming. */
.ir .ir-volume-half h5 {font-size:15px;line-height:1.5;}
.ir .ir-volume-half h5 strong {font-size:16px;}
.ir .ir-volume-half .ir-volume {overflow-x:auto;overflow-y:hidden;padding-bottom:8px;}
.ir .ir-volume-half .ir-volume-column {min-width:38px;}
.ir .ir-volume-half .ir-volume-column strong {font-size:13px;line-height:1.5;white-space:nowrap;}
.ir .ir-volume-half .ir-volume-column small {font-size:11px;line-height:1.35;writing-mode:horizontal-tb;white-space:pre;text-align:center;color:#cddae6;}
.ir .ir-volume-panel .ir-chart-note {font-size:11px;line-height:1.5;}
.ir:fullscreen .ir-volume-half .ir-volume {height:135px;}
.ir[data-mode=timeline]:fullscreen {grid-template-rows:auto auto minmax(0,1fr) minmax(235px,27vh);}

/* Fixed plot and label rows prevent fullscreen flex compression. */
.ir .ir-volume-half,.ir:fullscreen .ir-volume-half {--volume-height:100px;}
.ir .ir-volume-half .ir-volume,.ir:fullscreen .ir-volume-half .ir-volume {height:174px;min-height:174px;flex:none;align-items:start;padding:4px 0 10px;}
.ir .ir-volume-half .ir-volume-column,.ir:fullscreen .ir-volume-half .ir-volume-column {display:grid;grid-template-rows:20px 100px 32px;gap:3px;height:158px;align-items:end;justify-items:center;}
.ir .ir-volume-half .ir-volume-track {grid-row:2;width:100%;align-self:end;max-height:none;}
.ir .ir-volume-half .ir-volume-column strong {grid-row:1;}
.ir .ir-volume-half .ir-volume-column small,.ir:fullscreen .ir-volume-half .ir-volume-column small {grid-row:3;align-self:start;writing-mode:horizontal-tb;transform:none;white-space:pre;line-height:1.35;}
.ir[data-mode=timeline]:fullscreen {grid-template-rows:auto auto minmax(0,1fr) minmax(275px,30vh);}

/* Fit observed months without scrollbars; give the map the stream's extra height. */
.ir .ir-volume-half .ir-volume {overflow:visible;gap:4px;}
.ir .ir-volume-half .ir-volume-column {min-width:0;flex:1 1 0;}
.ir .ir-volume-half .ir-volume-column[hidden] {display:none!important;}
.ir .ir-volume-half .ir-volume-track {max-width:46px;}
.ir .ir-volume-half .ir-volume-column strong {font-size:12px;}
@media(min-width:1000px) and (min-height:650px){
 .ir[data-mode=timeline]:fullscreen {grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);grid-template-rows:auto auto minmax(100px,1fr) minmax(90px,1fr) 125px 140px;gap:10px;}
 .ir[data-mode=timeline]:fullscreen .ir-controls,.ir[data-mode=timeline]:fullscreen .ir-stats {grid-column:1/-1;}
 .ir[data-mode=timeline]:fullscreen .ir-controls {grid-row:1;}
 .ir[data-mode=timeline]:fullscreen .ir-stats {grid-row:2;}
 .ir[data-mode=timeline]:fullscreen .ir-grid,.ir[data-mode=timeline]:fullscreen .ir-bottom-grid {display:contents;}
 .ir[data-mode=timeline]:fullscreen .ir-map-panel {grid-column:1;grid-row:3/6;}
 .ir[data-mode=timeline]:fullscreen .ir-phase-panel {grid-column:2;grid-row:3;}
 .ir[data-mode=timeline]:fullscreen .ir-detail {grid-column:2;grid-row:4;}
 .ir[data-mode=timeline]:fullscreen .ir-stream-panel {grid-column:1;grid-row:6;margin:0;}
 .ir[data-mode=timeline]:fullscreen .ir-volume-panel {grid-column:2;grid-row:5/7;}
}

/* Stable scale and left-to-right slots; remove inherited grid end alignment. */
.ir .ir-volume-half .ir-volume,.ir:fullscreen .ir-volume-half .ir-volume {display:grid;grid-template-columns:repeat(var(--volume-columns,8),minmax(0,1fr));justify-content:stretch;direction:ltr;}
.ir .ir-volume-half .ir-volume-column,.ir:fullscreen .ir-volume-half .ir-volume-column {width:100%;grid-template-columns:minmax(0,1fr);justify-content:stretch;}
.ir .ir-volume-attack h5 {color:#ffb454;}
.ir .ir-volume-attack .ir-volume-track i,.ir .ir-volume-attack .is-current .ir-volume-track i {background:#ffad42;box-shadow:0 0 9px #ffad4255;}

/* Successful authentications sit just to the left of the auth total. */
.ir .ir-phase-row.has-login-success {grid-column:1/-1;}
.ir .ir-phase-row .ir-phase-metrics {display:inline-flex;align-items:center;justify-content:flex-end;gap:16px;margin-left:auto;white-space:nowrap;}
.ir .ir-phase-row .ir-login-success {display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#78e9b8;font-weight:700;padding:3px 6px;border:1px solid #4ade8030;border-radius:6px;text-shadow:none;transition:box-shadow .35s,background .35s;}
.ir .ir-login-success::before {content:'';width:7px;height:7px;border-radius:50%;background:#5ee6a8;flex:none;}
.ir .ir-phase-row .ir-login-success.is-new-success {color:#ddfff0;background:#123e2c;border-color:#64ffb4;box-shadow:0 0 14px #50ffab99;text-shadow:0 0 8px #5effb5;}
.ir .ir-login-success.is-new-success::before {box-shadow:0 0 9px #64ffb4;}
@media(max-width:480px){.ir .ir-phase-row .ir-phase-metrics {gap:8px;}.ir .ir-phase-row .ir-login-success {font-size:11px;}}

.ir .ir-phase-row .ir-login-success {font-family:system-ui,sans-serif;}

/* Keep the success badge inside its existing card, without adding a full row. */
.ir .ir-phase-row.has-login-success {grid-column:auto;}
.ir .ir-phase-row .ir-phase-metrics {gap:8px;}
.ir .ir-phase-row .ir-login-success {font-size:11px;padding:2px 4px;gap:4px;}
@media(min-width:1000px) and (min-height:800px){
 .ir[data-mode=timeline]:fullscreen {grid-template-rows:auto auto minmax(236px,1.2fr) minmax(90px,.8fr) 125px 140px;}
 .ir:fullscreen .ir-phase-panel {display:flex;flex-direction:column;overflow:visible;}
 .ir:fullscreen .ir-phases {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px;padding:4px 12px;}
 .ir:fullscreen .ir-phase-row {padding:4px 6px;margin:0;min-width:0;}
 .ir:fullscreen .ir-phase-row > div:first-child {font-size:13px;line-height:1.4;gap:4px;flex-wrap:nowrap;}
 .ir:fullscreen .ir-phase-row span {font-size:13px;}
 .ir:fullscreen .ir-phase-row .ir-login-success {font-size:10px;}
 .ir:fullscreen .ir-phase-row small {font-size:9px;line-height:1.4;margin-top:2px;white-space:nowrap;}
 .ir:fullscreen .ir-phase-track {margin-top:5px;}
 .ir:fullscreen .ir-phase-panel .ir-chart-note {margin-top:auto;}
}

/* Warning belongs beside the server in the map, at every viewport size. */
.ir .ir-map .ir-risk-anchor {overflow:visible;pointer-events:none;}
.ir .ir-map .ir-risk-alert,.ir:fullscreen .ir-map .ir-risk-alert {position:static;transform:none;max-width:none;width:auto;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px;border-radius:12px;font:600 13px/1.5 system-ui,sans-serif;box-sizing:border-box;}
.ir .ir-map .ir-risk-alert strong {font-size:17px;}
.ir .ir-map .ir-risk-alert span {white-space:normal;word-break:keep-all;overflow-wrap:anywhere;}
.ir .ir-map .ir-risk-alert small {font-size:10px;}

/* Strong, localized warning beacon; fewer than one flash per second. */
.ir .ir-map .ir-risk-alert:not([hidden]),.ir:fullscreen .ir-map .ir-risk-alert:not([hidden]) {animation:ir-warning-beacon 1.25s ease-in-out infinite;border-width:2px;}
@keyframes ir-warning-beacon {
  0%,100% {background:#291300; border-color:#c77122; box-shadow:0 0 8px #ff9c3670; color:#ffcc85;}
  48%,60% {background:#71330c; border-color:#fff2c2; box-shadow:0 0 12px #fff0be,0 0 28px #ffb52bf0,0 0 52px #ff721bb0,inset 0 0 20px #ffc44475; color:#fff9e7;}
}
.ir .ir-map .ir-risk-alert:not([hidden]) strong {animation:ir-warning-title 1.25s ease-in-out infinite;}
@keyframes ir-warning-title {0%,100% {color:#ffd175;text-shadow:none;}48%,60% {color:#fff;text-shadow:0 0 8px #fff,0 0 15px #ffc14b;}}
@media(prefers-reduced-motion:reduce){.ir .ir-map .ir-risk-alert:not([hidden]),.ir:fullscreen .ir-map .ir-risk-alert:not([hidden]),.ir .ir-map .ir-risk-alert:not([hidden]) strong {animation:none!important;}}
