/* =====================================================================
   v3 additions: boot, HUD, rain, threat map, hexdump, sequence diagrams,
   lab shell + missions, new labs, toasts
   ===================================================================== */
body.booting { overflow: hidden; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 89; box-shadow: inset 0 0 180px rgba(0,0,0,.75); }
.ico { width: 100%; height: 100%; display: block; }
.labs { padding: 8rem 5vw; }

/* ---------- boot screen ---------- */
.boot {
  position: fixed; inset: 0; z-index: 500; background: #020403; color: var(--green);
  display: flex; flex-direction: column; justify-content: center; padding: 0 10vw;
  font-family: var(--mono); transition: clip-path .9s var(--ease), opacity .4s .6s;
  clip-path: inset(0 0 0 0);
}
.boot::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(57,255,136,.05) 0 1px, transparent 1px 3px); pointer-events: none; }
.boot.done { clip-path: inset(50% 0 50% 0); opacity: 0; pointer-events: none; }
#boot-log { font-size: clamp(.75rem, 1.4vw, .95rem); line-height: 1.8; min-height: 13em; text-shadow: 0 0 8px rgba(57,255,136,.6); white-space: pre-wrap; }
#boot-log .dim { color: #2f7a4e; }
#boot-log .w { color: var(--yellow); }
.boot-bar { height: 4px; background: #0c2016; margin-top: 1.5rem; max-width: 520px; border-radius: 4px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--green); box-shadow: 0 0 12px var(--green); transition: width .2s linear; }
.boot-granted {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0;
  font-size: clamp(2rem, 7vw, 5.5rem); font-weight: 900; letter-spacing: .08em; white-space: nowrap;
  color: var(--green); border: 3px solid var(--green); padding: .3em .6em; background: #020403;
  text-shadow: 0 0 24px var(--green); box-shadow: 0 0 40px rgba(57,255,136,.4), inset 0 0 30px rgba(57,255,136,.2);
}
.boot-granted.show { animation: granted .55s var(--ease) forwards; }
@keyframes granted { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.boot-skip { position: absolute; bottom: 30px; left: 10vw; font-size: .72rem; color: #2f7a4e; animation: blink 1.2s steps(1) infinite; }

/* ---------- hero rain + HUD ---------- */
#rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .32; }
.hud { position: absolute; inset: 88px 3vw 24px; pointer-events: none; z-index: 2; font-family: var(--mono); font-size: .68rem; color: #4d6b5c; letter-spacing: .08em; }
.hud .hc { position: absolute; width: 26px; height: 26px; border-color: rgba(57,255,136,.55); border-style: solid; border-width: 0; }
.hc.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.hc.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.hc.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hc.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hud-txt { position: absolute; line-height: 1.7; }
.hud-txt b { color: var(--green); font-weight: 400; }
.hud-txt b.warn { color: var(--yellow); }
.hud-txt.tl { top: 14px; left: 18px; }
.hud-txt.tr { top: 14px; right: 18px; text-align: right; }
.hud-txt.bl { bottom: 14px; left: 18px; }
.hud-txt.br { bottom: 14px; right: 18px; }
@media (max-width: 800px) { .hud { display: none; } }

/* ---------- cards v3: icon, glitch sig, scan beam ---------- */
.card-icon { position: absolute !important; top: 1.6rem; right: 1.6rem; width: 54px; height: 54px; color: var(--h1); opacity: .9; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--h1) 60%, transparent)); }
.card-top { padding-right: 70px; }
.card-icon .ico * { stroke-dasharray: 120; stroke-dashoffset: 120; }
.card.in .card-icon .ico * { animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--d, 0s) + .3s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.card:hover .card-icon { animation: iconPulse 1.2s ease-in-out infinite; }
@keyframes iconPulse { 50% { transform: translateZ(40px) scale(1.1); filter: drop-shadow(0 0 18px var(--h1)); } }
.sig { position: relative; }
.card:hover .sig::before, .card:hover .sig::after { content: attr(data-text); position: absolute; inset: 0; overflow: hidden; }
.card:hover .sig::before { color: var(--red); transform: translate(-2px, 0); clip-path: inset(0 0 55% 0); animation: sliceA .9s steps(2) infinite; }
.card:hover .sig::after { color: var(--cyan); transform: translate(2px, 0); clip-path: inset(55% 0 0 0); animation: sliceB .7s steps(2) infinite; }
@keyframes sliceA { 50% { clip-path: inset(10% 0 70% 0); transform: translate(3px, 0); } }
@keyframes sliceB { 50% { clip-path: inset(70% 0 5% 0); transform: translate(-3px, 0); } }
.card::after {
  content: ""; position: absolute; left: 0; right: 0; height: 90px; top: -100px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--h1) 18%, transparent), transparent);
}
.card:hover::after { animation: beam 1.6s linear infinite; }
@keyframes beam { to { top: 110%; } }

/* ---------- sequence diagram ---------- */
.seq-wrap { background: var(--deep); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; overflow-x: auto; }
svg.seq { width: 100%; min-width: 600px; height: auto; display: block; font-family: var(--mono); }
.seq .lane-bg { fill: #0d151c; stroke: #2a3a46; stroke-width: 1.5; }
.seq .lane-bg.evil { stroke: var(--red); fill: rgba(255,59,92,.08); }
.seq .lane-ico { color: var(--cyan); }
.seq .lane-ico.evil { color: var(--red); }
.seq .lane-name { fill: #c9d6dc; font-size: 13px; }
.seq .life { stroke: #22303b; stroke-dasharray: 4 6; }
.seq .msg { opacity: 0; transition: opacity .3s; }
.seq .msg.on { opacity: 1; }
.seq .msg path { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease); }
.seq .msg.on path { stroke-dashoffset: 0; }
.seq .msg polygon { fill: var(--cyan); opacity: 0; transition: opacity .2s .55s; }
.seq .msg.on polygon { opacity: 1; }
.seq .msg text { fill: #d6e2e7; font-size: 12.5px; }
.seq .msg .num { fill: #4d6170; font-size: 11px; }
.seq .msg.evil path { stroke: var(--red); }
.seq .msg.evil polygon { fill: var(--red); }
.seq .msg.evil text:not(.num) { fill: #ffb3c1; }
.seq .pk { fill: #fff; opacity: 0; }
.seq .msg.on .pk { animation: travel .75s var(--ease) forwards; }
@keyframes travel { 0% { opacity: 1; transform: translateX(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--dx)); } }

/* ---------- threat map ---------- */
.threat { padding: 9rem 5vw 8rem; }
.threat-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.globe-wrap { position: relative; aspect-ratio: 1; max-width: 640px; width: 100%; margin: 0 auto; }
#globe { width: 100%; height: 100%; display: block; touch-action: none; }
.sim-badge { position: absolute; top: 6%; left: 2%; font-family: var(--mono); font-size: .72rem; letter-spacing: .15em; color: var(--yellow); border: 1px solid rgba(255,210,63,.45); border-radius: 99px; padding: .35rem .8rem; background: rgba(255,210,63,.06); }
.sim-badge i, .live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: .3rem; animation: blink 1.2s steps(1) infinite; }
.globe-hint { position: absolute; bottom: 4%; right: 4%; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.soc { display: grid; gap: 1rem; }
.soc-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.3rem; }
.soc-head { display: flex; justify-content: space-between; align-items: baseline; }
.live { font-family: var(--mono); font-size: .68rem; color: var(--red); letter-spacing: .12em; }
#feed { list-style: none; font-family: var(--mono); font-size: .76rem; display: grid; gap: .35rem; min-height: 15.5em; align-content: start; }
#feed li { display: grid; grid-template-columns: 62px 1fr auto; gap: .6rem; align-items: center; padding: .3rem .5rem; border-radius: 6px; background: rgba(255,255,255,.015); animation: feedIn .5s var(--ease); }
#feed li time { color: #4d6170; }
#feed li .route { color: #9fb0b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#feed li .st { font-size: .66rem; padding: .1rem .45rem; border-radius: 4px; }
#feed li .st.blk { color: var(--green); background: rgba(57,255,136,.08); }
#feed li .st.alr { color: var(--red); background: rgba(255,59,92,.1); }
@keyframes feedIn { from { opacity: 0; transform: translateX(-16px); background: rgba(57,255,136,.12); } }
.tbar { display: grid; grid-template-columns: 140px 1fr 44px; gap: .7rem; align-items: center; font-family: var(--mono); font-size: .74rem; margin-top: .55rem; color: #b9c6cc; }
.tbar .bar { height: 8px; background: #121b23; border-radius: 99px; overflow: hidden; }
.tbar .bar i { display: block; height: 100%; border-radius: inherit; transition: width .6s var(--ease); }
.tbar b { text-align: right; font-weight: 400; color: var(--muted); }
.soc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.soc-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; text-align: center; }
.soc-stats strong { display: block; font-family: var(--mono); font-size: 1.6rem; color: var(--green); font-variant-numeric: tabular-nums; }
.soc-stats small { font-family: var(--mono); font-size: .65rem; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }

/* ---------- kill chain v3 ---------- */
.chain-progress { position: absolute; left: 5vw; right: 5vw; bottom: 7vh; height: 2px; background: var(--line); }
.chain-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 10px var(--green); }
.panel-icon { position: absolute !important; top: 2.2rem; left: 2.4rem; width: 64px; height: 64px; color: var(--fg); opacity: .9; }
.panel-icon .ico * { stroke-dasharray: 60 20; animation: dashflow 4s linear infinite; }
@keyframes dashflow { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }

/* ---------- hexdump divider ---------- */
.hexdump { overflow: hidden; padding: 3rem 0; border-block: 1px solid var(--line); background: #030507; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hx-row { display: flex; width: max-content; font-family: var(--mono); font-size: .8rem; white-space: pre; line-height: 2; animation: marquee 70s linear infinite; }
.hx-row.rev { animation-direction: reverse; animation-duration: 85s; }
.hx-row .o { color: #33424d; }
.hx-row .h { color: #2c8a56; }
.hx-row .a { color: var(--cyan); opacity: .75; }

/* ---------- lab shell ---------- */
.lab-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.lab-nav { position: sticky; top: 90px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 1rem; display: grid; gap: 1rem; }
.lab-group { display: grid; gap: .2rem; }
.lg-title { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: .2rem .6rem; }
.lab-nav .tab { display: flex; justify-content: space-between; align-items: center; gap: .5rem; text-align: left; border: 1px solid transparent; border-radius: 10px; padding: .55rem .7rem; font-size: .8rem; color: #a9b6bd; }
.lab-nav .tab:hover { background: rgba(255,255,255,.03); color: var(--fg); }
.lab-nav .tab.active { background: rgba(57,255,136,.1); border-color: rgba(57,255,136,.45); color: var(--green); font-weight: 700; }
.tab-prog { font-size: .66rem; color: var(--muted); font-weight: 400; padding: .1rem .4rem; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.tab-prog.full { color: #031008; background: var(--green); border-color: var(--green); }
.lab-score { display: flex; gap: .9rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1rem; }
.score-ring { position: relative; width: 58px; height: 58px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sr-bg { fill: none; stroke: #16212a; stroke-width: 3.2; }
.sr-fg { fill: none; stroke: var(--green); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .8s var(--ease); }
.score-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: .72rem; }
.lab-score small { display: block; font-family: var(--mono); font-size: .62rem; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }
.lab-score strong { font-family: var(--mono); font-size: 1.3rem; }
#flag-reset { display: block; font-family: var(--mono); font-size: .66rem; color: var(--muted); text-decoration: underline; margin-top: .2rem; }
#flag-reset:hover { color: var(--red); }
.lab-shell .lab-window { margin-top: 0; }
.lab-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; margin-bottom: 1.8rem; padding-bottom: 1.6rem; border-bottom: 1px dashed var(--line); }
.lab-kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; color: var(--green); }
.lab-head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -.02em; margin: .2rem 0 .3rem; }
.mission { background: var(--deep); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; align-self: start; }
.objectives { list-style: none; display: grid; gap: .45rem; }
.objectives li { display: grid; grid-template-columns: 18px 1fr; gap: .5rem; font-size: .84rem; color: #a9b6bd; line-height: 1.4; transition: color .4s; }
.objectives li::before { content: ""; width: 14px; height: 14px; margin-top: 2px; border: 1.5px solid #34444f; border-radius: 4px; transition: all .4s var(--ease); box-sizing: border-box; }
.objectives li.done { color: var(--green); }
.objectives li.done::before { content: "✓"; display: grid; place-items: center; font-size: .6rem; font-weight: 900; color: #031008; background: var(--green); border-color: var(--green); box-shadow: 0 0 8px var(--green); }
.objectives li.just { animation: justDone 1s var(--ease); }
@keyframes justDone { 0% { transform: translateX(8px); text-shadow: 0 0 12px var(--green); } }
.lab-grid.sep { margin-top: 2rem; padding-top: 2rem; border-top: 1px dashed var(--line); }
details.deep { margin-top: 2rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(0,229,255,.02); }
details.deep summary { list-style: none; padding: 1rem 1.3rem; font-family: var(--mono); font-size: .82rem; color: var(--cyan); display: flex; align-items: center; gap: .6rem; }
details.deep summary::-webkit-details-marker { display: none; }
details.deep summary::before { content: "▸"; transition: transform .3s; }
details.deep[open] summary::before { transform: rotate(90deg); }
.deep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; padding: 0 1.3rem 1.3rem; }
.deep-grid h5 { font-size: .95rem; margin-bottom: .35rem; color: var(--fg); }
.deep-grid p { font-size: .86rem; line-height: 1.6; color: #a9b6bd; }
.out-label.mt { margin-top: 1.3rem; }
label.nolabel { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .45rem; border: 1px solid var(--line); border-radius: 12px; padding: 4px; text-transform: none; letter-spacing: 0; }
.seg button { flex: 1 1 auto; padding: .5rem .7rem; border-radius: 8px; font-family: var(--mono); font-size: .76rem; color: var(--muted); transition: all .25s; }
.seg button:hover { color: var(--fg); background: rgba(255,255,255,.03); }
.seg button.active { background: var(--cyan); color: #00161a; font-weight: 700; }
.row-btns { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.btn.small { padding: .65rem 1.2rem; font-size: .82rem; }
.link-btn { font-family: var(--mono); font-size: .75rem; color: var(--muted); text-decoration: underline; }

/* request line */
.req-line { display: flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .85rem; background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .5rem .45rem .7rem; margin-top: .8rem; }
.lab-controls .req-line input { flex: 1; min-width: 60px; margin: 0; padding: .4rem .6rem; border-radius: 6px; }
.method { font-weight: 700; font-size: .72rem; padding: .25rem .5rem; border-radius: 5px; }
.method.get { color: #031008; background: var(--green); }
.method.patch { color: #1a1300; background: var(--yellow); }

/* json + http */
.j-key { color: var(--cyan); }
.j-str { color: var(--green); }
.j-num { color: var(--yellow); }
.j-bool { color: var(--pink); }
.st-ok { color: var(--green); font-weight: 700; }
.st-bad { color: var(--red); font-weight: 700; }
.st-warn { color: var(--yellow); font-weight: 700; }
.hl-leak { background: rgba(255,59,92,.18); border-radius: 3px; }

/* enum grid */
.enum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin-top: 1rem; }
.enum-grid div { font-family: var(--mono); font-size: .7rem; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; background: var(--deep); color: var(--muted); transition: all .35s var(--ease); }
.enum-grid div b { display: block; font-size: .82rem; color: var(--fg); }
.enum-grid div.mine { border-color: rgba(57,255,136,.5); color: var(--green); }
.enum-grid div.leak { border-color: var(--red); color: #ffb3c1; background: rgba(255,59,92,.1); animation: hit .5s ease-out; }
.enum-grid div.nf { opacity: .5; }
.enum-grid div.scan { border-color: var(--cyan); box-shadow: 0 0 12px rgba(0,229,255,.4); }

/* csrf browsers */
.browsers { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; margin-bottom: 1.2rem; }
.mini-browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--deep); min-height: 150px; }
.mini-browser.evil { border-color: rgba(255,59,92,.4); }
.mb-bar { display: flex; align-items: center; gap: 4px; padding: .45rem .6rem; border-bottom: 1px solid var(--line); background: #0a1117; }
.mb-bar i { width: 7px; height: 7px; border-radius: 50%; background: #2a3640; }
.mb-bar span { margin-left: .4rem; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.mini-browser.evil .mb-bar span { color: var(--red); }
.mb-body { padding: .8rem; display: grid; gap: .3rem; }
.mb-body small { font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.mb-body strong { font-family: var(--mono); font-size: 1.5rem; color: var(--green); transition: color .3s; }
.mb-body strong.drop { color: var(--red); animation: hit .5s; }
#cs-tx { list-style: none; font-family: var(--mono); font-size: .68rem; color: var(--red); display: grid; gap: .15rem; }
.wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, #2a3640 0 6px, transparent 6px 10px); }
.wire i { position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); opacity: 0; }
.wire.go i { animation: wire .8s var(--ease) forwards; }
.wire.blocked i { animation: wireBlock .8s var(--ease) forwards; }
@keyframes wire { 0% { left: 0; opacity: 1; } 100% { left: calc(100% - 10px); opacity: 1; } }
@keyframes wireBlock { 0% { left: 0; opacity: 1; } 60% { left: 60%; opacity: 1; background: var(--yellow); } 100% { left: 60%; opacity: 0; transform: scale(2.5); background: var(--yellow); } }

/* ssrf pipeline + zones */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
.stage { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .75rem; background: var(--deep); font-family: var(--mono); font-size: .7rem; color: var(--muted); min-height: 92px; opacity: .35; transition: all .35s var(--ease); }
.stage b { display: block; font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .35rem; color: #6c7d88; }
.stage span { color: var(--fg); word-break: break-all; line-height: 1.45; }
.stage.on { opacity: 1; border-color: rgba(0,229,255,.45); }
.stage.pass { border-color: rgba(57,255,136,.5); }
.stage.fail { border-color: var(--red); background: rgba(255,59,92,.08); }
.stage.fail b { color: var(--red); }
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
.zone { border: 1px dashed #26343f; border-radius: 12px; padding: .6rem .7rem; font-family: var(--mono); font-size: .64rem; color: var(--muted); transition: all .4s var(--ease); line-height: 1.4; }
.zone b { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: #b9c6cc; margin-bottom: .2rem; }
.zone b .ico { width: 16px; height: 16px; display: inline-block; }
.zone.hit { border-style: solid; border-color: var(--red); background: rgba(255,59,92,.09); color: #ffb3c1; box-shadow: 0 0 20px rgba(255,59,92,.2); }
.zone.hit.safe { border-color: var(--green); background: rgba(57,255,136,.07); color: #a8f5c8; box-shadow: none; }

/* fs tree + walk */
.fs-tree { font-family: var(--mono); font-size: .76rem; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; line-height: 1.75; max-height: 340px; overflow: auto; }
.fs-tree .n { white-space: pre; color: #6c7d88; }
.fs-tree .n.dir { color: #a9b6bd; }
.fs-tree .n.on { color: var(--cyan); }
.fs-tree .n.hit { color: #fff; background: rgba(255,59,92,.25); border-radius: 4px; }
.fs-tree .n.hit.safe { background: rgba(57,255,136,.2); }
.fs-tree .badge { font-size: .62rem; color: #031008; background: var(--green); border-radius: 4px; padding: 0 .3rem; margin-left: .4rem; }
.fs-tree .lock { color: var(--yellow); font-size: .66rem; margin-left: .3rem; }
ol.walk { list-style: none; font-family: var(--mono); font-size: .78rem; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; display: grid; gap: .25rem; }
.walk li { display: grid; grid-template-columns: 150px 1fr; gap: .6rem; opacity: 0; animation: stepIn .4s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); transform: translateX(-10px); }
.walk li .op { color: var(--muted); }
.walk li .op.up { color: var(--red); }
.walk li .p { color: #cfd8dc; word-break: break-all; }
.walk li.out .p { color: #ffb3c1; }

/* cmd */
.cmd-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-family: var(--mono); font-size: .78rem; min-height: 2rem; }
.cmd-chips .cc { padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--deep); color: #cfd8dc; }
.cmd-chips .cc.evil { border-color: rgba(255,59,92,.6); color: #ffb3c1; background: rgba(255,59,92,.08); }
.cmd-chips .cc.skip { opacity: .4; text-decoration: line-through; }
.cmd-chips .sep { color: var(--red); font-weight: 700; }
.term-out { font-family: var(--mono); font-size: .78rem; line-height: 1.55; background: #020403; border: 1px solid #12301f; border-radius: 12px; padding: .9rem 1rem; color: #9ff5c4; white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; text-shadow: 0 0 6px rgba(57,255,136,.25); }
.term-out .x { color: var(--yellow); }
.term-out .e { color: #ff8fa3; }

/* jwt */
.jwt-color { font-family: var(--mono); font-size: .76rem; word-break: break-all; line-height: 1.55; background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; margin-top: .6rem; }
.jw-h { color: var(--pink); }
.jw-p { color: var(--purple); }
.jw-s { color: var(--cyan); }
.jw-dot { color: var(--fg); font-weight: 700; }
.jwt-parts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.sign-row { display: flex; gap: .5rem; margin-top: 1rem; align-items: center; }
.lab-controls .sign-row input { flex: 1; margin: 0; }
ol.checks { list-style: none; display: grid; gap: .35rem; font-family: var(--mono); font-size: .78rem; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; min-height: 3rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; opacity: 0; animation: stepIn .35s var(--ease) forwards; animation-delay: calc(var(--i) * 180ms); transform: translateX(-10px); color: #b9c6cc; }
.checks li.pass::before { content: "✓"; color: var(--green); }
.checks li.fail::before { content: "✕"; color: var(--red); }
.checks li.warn::before { content: "!"; color: var(--yellow); font-weight: 700; }
.crack-log { font-family: var(--mono); font-size: .74rem; line-height: 1.6; background: #020403; border: 1px solid #12301f; border-radius: 12px; padding: .7rem .9rem; margin-top: .8rem; max-height: 170px; overflow: auto; color: #4f8f69; white-space: pre-wrap; word-break: break-all; }
.crack-log.big { max-height: 260px; min-height: 180px; margin-top: 0; margin-bottom: 1rem; }
.crack-log .hit { color: #031008; background: var(--green); padding: 0 .3rem; border-radius: 3px; }
.crack-log .dim { color: #2f5a42; }
.salt-box { font-family: var(--mono); font-size: .74rem; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; display: grid; gap: .5rem; line-height: 1.5; }
.salt-box .row { display: grid; grid-template-columns: 110px 1fr; gap: .6rem; }
.salt-box .row span { word-break: break-all; color: #cfd8dc; }
.salt-box .same { color: var(--red); }
.salt-box .diff { color: var(--green); }
.salt-box h6 { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-top: .3rem; }

/* encoding */
.enc-grid { display: grid; gap: .45rem; margin-top: 1rem; }
.enc-grid div { display: grid; grid-template-columns: 96px 1fr; gap: .6rem; font-family: var(--mono); font-size: .76rem; background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; }
.enc-grid b { color: var(--muted); font-weight: 400; }
.enc-grid span { color: #cfd8dc; word-break: break-all; }
.recipe { display: flex; flex-wrap: wrap; gap: .3rem; margin: .8rem 0; font-family: var(--mono); font-size: .7rem; min-height: 1.6rem; align-items: center; }
.recipe span { padding: .25rem .55rem; border-radius: 6px; background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.3); color: var(--cyan); }
.recipe em { color: var(--muted); font-style: normal; }
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.2rem; }
.compare div { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; background: var(--deep); display: grid; gap: .3rem; }
.compare b { font-size: .9rem; }
.compare span { font-size: .75rem; color: var(--muted); }
.compare code { font-size: .7rem; }

/* toasts */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 260; display: grid; gap: .6rem; pointer-events: none; }
.toast {
  min-width: 300px; max-width: 380px; font-family: var(--mono); background: rgba(3,12,7,.95); border: 1px solid var(--green);
  border-radius: 14px; padding: .9rem 1.1rem; box-shadow: 0 0 30px rgba(57,255,136,.3); color: var(--fg);
  animation: toastIn .6s var(--ease); position: relative; overflow: hidden;
}
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--green); animation: toastBar 4s linear forwards; }
.toast.out { animation: toastOut .5s var(--ease) forwards; }
.toast b { display: block; color: var(--green); font-size: .74rem; letter-spacing: .2em; }
.toast span { display: block; font-size: .82rem; margin-top: .3rem; line-height: 1.4; }
.toast small { color: var(--muted); font-size: .68rem; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) skewX(-10deg); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }
@keyframes toastBar { from { width: 100%; } to { width: 0; } }
.nav-flags { font-family: var(--mono); color: var(--yellow) !important; }
.nav-flags.bump { animation: hit .6s; }

@media (max-width: 1100px) {
  .lab-shell { grid-template-columns: 1fr; }
  .lab-nav { position: static; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .threat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .lab-head { grid-template-columns: 1fr; }
  .pipeline, .zones { grid-template-columns: repeat(2, 1fr); }
  .browsers { grid-template-columns: 1fr; gap: .6rem; }
  .wire { display: none; }
  .jwt-parts, .compare { grid-template-columns: 1fr; }
}
