/* HackFort - operator console look: black + phosphor green, cyan for info, red for danger.
   Dark-only by design; the lab desktop uses a blue wallpaper like a real attack distro. */
:root {
  --bg: #030703; --surface: #0a120b; --surface-2: #0f1c11; --line: #173a1d;
  --fg: #d2f7d8; --muted: #6f9a77; --accent: #2bff88; --accent-2: #00d1ff; --accent-soft: #0c2a17; --accent-ink: #02130a;
  --ok: #2bff88; --ok-soft: #0b2716; --bad: #ff4d5e; --bad-soft: #2a0d11; --warn: #ffc857; --info: #00d1ff;
  --term-bg: #020602; --term-fg: #c8ffd8; --term-dim: #5e8a66;
  --f-display: "JetBrains Mono", "Readex Pro", "IBM Plex Sans Arabic", monospace;
  --f-body: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --r: 10px; --grid: rgba(43, 255, 136, .04);
  color-scheme: dark;
}
* { box-sizing: border-box }
html, body { margin: 0 }
body { background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; color: var(--fg); font-family: var(--f-body); font-size: 15.5px; line-height: 1.75; padding-top: env(safe-area-inset-top, 0px) }
a { color: var(--accent) }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.3; text-wrap: balance; margin: 0 }
h3 { font-size: 16px }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
[hidden] { display: none !important }
img { max-width: 100% }
.mono { font-family: var(--f-mono) }
.muted { color: var(--muted) }
.acc { color: var(--accent) }
code { font-family: var(--f-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: 0 .35em; border-radius: 5px; direction: ltr; unicode-bidi: isolate; color: var(--accent) }
pre.code { font-family: var(--f-mono); font-size: 13px; background: var(--term-bg); color: var(--term-fg); padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); overflow-x: auto; direction: ltr; text-align: left; line-height: 1.6; margin: .6em 0 }
::selection { background: var(--accent); color: var(--accent-ink) }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(3, 7, 3, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line) }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.bar { display: flex; align-items: center; gap: 16px; padding-block: 10px; flex-wrap: wrap }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg) }
.brand b { font-family: var(--f-mono); font-size: 20px; letter-spacing: .5px }
.brand small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.2 }
.stats { margin-inline-start: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap }
.stat { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted) }
.stat strong { color: var(--fg); font-variant-numeric: tabular-nums; font-family: var(--f-mono); font-size: 13px }
.xpbar { width: 100px; height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden }
.xpbar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: width .5s }
.lang { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; font-size: 13px }
.who { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); font-size: 13.5px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px 3px 3px }
.who img { width: 26px; height: 26px; border-radius: 50%; display: block }
nav.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none }
nav.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500 }
nav.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent) }
nav.tabs a:hover { color: var(--fg) }

main { padding-block: 24px 64px }
main.wide { max-width: none; padding: 0 }
.grid { display: grid; gap: 16px }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0 }
.eyebrow { font-size: 12px; letter-spacing: .6px; color: var(--muted); font-weight: 600; text-transform: uppercase }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); padding: 7px 14px; border-radius: 8px; cursor: pointer; text-decoration: none; color: var(--fg); font-weight: 500; font-size: 14px }
.btn:hover { border-color: var(--accent) }
.btn:disabled { opacity: .45; cursor: not-allowed }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600 }
.btn.primary:hover { box-shadow: 0 0 14px rgba(43, 255, 136, .45) }
.btn.ghost { background: transparent }
.btn.danger { color: var(--bad); border-color: var(--bad); background: transparent }
.btn.gh { background: #f0f6fc; color: #0d1117; border-color: #f0f6fc; font-weight: 600 }
.wide-btn { margin-top: 12px; width: 100%; justify-content: center }
.pill { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent }
.pill.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 28px 0 12px; flex-wrap: wrap }
.sec-title h2 { font-size: 20px }
.field { display: grid; gap: 4px }
.field label { font-size: 13px; color: var(--muted) }
.field input, .field select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg) }
.sync { font-size: 12.5px; margin: 10px 0 0 }
.sync.ok { color: var(--ok) }
.boot { font-family: var(--f-mono); font-size: 13px; color: var(--term-fg); direction: ltr; text-align: left; background: var(--term-bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; line-height: 1.7 }
.boot .p { color: var(--accent) } .boot .c { color: var(--info) }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite }
@keyframes blink { 50% { opacity: 0 } }
.kpis { display: flex; gap: 18px; flex-wrap: wrap; align-items: center }
.kpis b { display: block; font-family: var(--f-mono); font-size: 20px; font-variant-numeric: tabular-nums }
.kpis.big b { font-size: 24px }
.bigbar { height: 8px; background: var(--surface-2); border-radius: 9px; overflow: hidden; margin-top: 14px }
.bigbar i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent) }
.days { display: flex; gap: 5px; margin-top: 10px; direction: ltr; flex-wrap: wrap }
.days span { width: 16px; height: 16px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line) }
.days span.on { background: var(--accent); border-color: var(--accent) }
.days span.today { outline: 2px solid var(--fg); outline-offset: 1px }
.dlist { display: grid; gap: 8px; margin-top: 10px }
.ditem { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 14px }
.ditem .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none }
.ditem.done .dot { background: var(--ok) }
.ditem.done span { color: var(--muted); text-decoration: line-through }
.check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center }
.check.on { background: var(--ok); border-color: var(--ok) }
.check.on::after { content: ""; width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px) }
.lockic { width: 16px; height: 18px; position: relative; display: inline-block; color: var(--muted) }
.lockic::before { content: ""; position: absolute; left: 3px; top: 0; width: 10px; height: 9px; border: 2.5px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0 }
.lockic::after { content: ""; position: absolute; left: 0; bottom: 0; width: 16px; height: 11px; background: currentColor; border-radius: 3px }
.lockic.sm { transform: scale(.75) }
.toast { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%) translateY(20px); background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 10px 18px; border-radius: 9px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 0 20px rgba(43, 255, 136, .4) }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) }
.confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px }
.hint { font-size: 13px; color: var(--warn); margin-top: 6px; background: var(--surface-2); padding: 6px 9px; border-radius: 6px; border: 1px dashed var(--line) }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-size: 12.5px; justify-self: start }
.shake { animation: shake .35s; border-color: var(--bad) !important }
@keyframes shake { 25% { transform: translateX(-4px) } 75% { transform: translateX(4px) } }

/* onboarding */
.onb { max-width: 660px; margin: 20px auto; display: grid; gap: 16px; padding: 26px }
.onb h1 { font-size: clamp(24px, 4vw, 32px) }
.lvls { display: grid; gap: 10px }
.lvl { display: grid; gap: 4px; text-align: start; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer }
.lvl b { font-size: 16px; font-family: var(--f-display) }
.lvl span { color: var(--muted); font-size: 13.5px }
.lvl em { font-style: normal; color: var(--info); font-size: 12.5px }
.lvl[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 16px rgba(43, 255, 136, .18) }

/* home path */
.home2 { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start }
@media (max-width: 900px) { .home2 { grid-template-columns: 1fr } .home2 .side { order: -1 } }
.home2 .side { display: grid; gap: 14px; position: sticky; top: calc(var(--hdr, 100px) + 14px) }
@media (max-width: 900px) { .home2 .side { position: static } }
.unit { margin-bottom: 26px }
.unit-h { border-radius: 14px; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--accent-ink); background: linear-gradient(135deg, #2bff88, #0fa356) }
.unit[data-n="2"] .unit-h { background: linear-gradient(135deg, #00d1ff, #0a7ea3) }
.unit[data-n="3"] .unit-h { background: linear-gradient(135deg, #b4ff39, #5c9e10) }
.unit-h h2 { font-size: 18px }
.unit-h p { margin: 2px 0 0; font-size: 13.5px; opacity: .85 }
.u-eye { font-size: 12px; opacity: .8; font-family: var(--f-mono) }
.unit-h .uprog { font-family: var(--f-mono); font-size: 13px; background: rgba(0, 0, 0, .2); padding: 4px 10px; border-radius: 99px; white-space: nowrap }
.trail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 0 6px }
.pgrp { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; color: var(--muted); font-size: 12.5px; margin-top: 6px }
.pgrp::before, .pgrp::after { content: ""; flex: 1; height: 1px; background: var(--line) }
.node { display: grid; justify-items: center; gap: 7px; text-decoration: none; color: var(--fg); transform: translateX(var(--off, 0)); width: 160px; text-align: center; font-size: 13px; line-height: 1.4; position: relative }
.node .c { width: 70px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: 0 7px 0 #0a1a0c; font-family: var(--f-mono); font-weight: 700; font-size: 18px; color: var(--muted); transition: transform .1s; border: 2px solid var(--line) }
.node:hover .c { transform: translateY(-2px) }
.node:active .c { transform: translateY(4px); box-shadow: 0 3px 0 #0a1a0c }
.node.done .c { background: #1a5c34; border-color: var(--accent); color: var(--accent); box-shadow: 0 7px 0 #0d3a1f }
.node.open .c { border-color: var(--accent-2); color: var(--accent-2) }
.node.cur .c { background: var(--accent); border-color: var(--accent); box-shadow: 0 7px 0 #0b7a3e, 0 0 24px rgba(43, 255, 136, .5); color: var(--accent-ink); width: 80px; height: 72px }
.node.cur { margin-top: 30px }
.node.lock .c { opacity: .55 }
.node.lock .nm { color: var(--muted) }
.node .bubble { position: absolute; top: -34px; left: 0; right: 0; margin: 0 auto; width: max-content; background: var(--surface); border: 1px solid var(--accent); color: var(--accent); padding: 3px 12px; border-radius: 9px; font-weight: 600; font-size: 12.5px; animation: bob 1.6s ease-in-out infinite }
.node .bubble::after { content: ""; position: absolute; bottom: -6px; left: 50%; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--accent) }
@keyframes bob { 50% { transform: translateY(-4px) } }

/* paths */
.path { display: flex; flex-direction: column; gap: 10px }
.path-head { display: flex; gap: 12px; align-items: flex-start }
.glyph { width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; flex: none; font-family: var(--f-mono); font-weight: 700; font-size: 14px; color: var(--accent-ink); background: var(--accent); direction: ltr }
.path h3 { font-size: 17px }
.path p { margin: 0; color: var(--muted); font-size: 14px }
.prog { height: 5px; background: var(--surface-2); border-radius: 9px; overflow: hidden }
.prog i { display: block; height: 100%; background: var(--ok) }
.rooms { display: grid; gap: 6px; margin-top: 4px }
.room-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--fg); font-size: 14px }
.room-link:hover { border-color: var(--accent) }
.room-link .n { font-family: var(--f-mono); font-size: 12px; color: var(--muted); width: 22px; flex: none; text-align: center }
.room-link .t { flex: 1; min-width: 0 }

/* room: split tasks + machine */
.room-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: calc(100vh - var(--hdr, 100px) - env(safe-area-inset-top, 0px)); align-items: stretch }
.room-split .left { overflow-y: auto; padding: 0 16px 48px; min-width: 0 }
.vm-wrap { height: 100%; min-height: 0 }
@media (max-width: 980px) { .room-split { grid-template-columns: 1fr; height: auto } .room-split .left { overflow: visible } .vm-wrap { height: 620px } }
.rbar { position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 12px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px }
.rbar h1 { font-size: clamp(19px, 2.4vw, 24px) }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px }
.crumbs a { color: var(--muted) }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px }
.rprog { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; margin-top: 10px }
.rprog i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s }
.rprog-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; font-family: var(--f-mono) }
.tk { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-top: 10px; overflow: hidden }
.tk.open { border-inline-start: 3px solid var(--accent) }
.tk-h { display: flex; gap: 12px; align-items: center; padding: 13px 14px; cursor: pointer; width: 100%; background: none; border: 0; text-align: start; font-size: 15px }
.tk-h .lbl { color: var(--accent); font-family: var(--f-mono); font-size: 13px; white-space: nowrap }
.tk-h .t { flex: 1; font-weight: 500 }
.tk-h .chev { color: var(--muted); font-size: 14px }
.tk.lock .tk-h { cursor: not-allowed; opacity: .5 }
.tk-b { padding: 6px 18px 18px; border-top: 1px solid var(--line) }
.lesson p { margin: .5em 0 }
.lesson ul { padding-inline-start: 1.2em; margin: .4em 0 }
.lesson table { border-collapse: collapse; font-size: 14px; margin: .6em 0 }
.lesson td, .lesson th { border: 1px solid var(--line); padding: 4px 10px; text-align: start }
.lesson th { background: var(--surface-2) }
.tblwrap { overflow-x: auto }
.note { border-inline-start: 3px solid var(--info); background: var(--surface-2); padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 14px; margin: .8em 0 }
.qa { padding: 14px 0; border-top: 1px dashed var(--line) }
.qa .qt { margin-bottom: 8px; font-size: 15px }
.qa form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
.qa input { flex: 1; min-width: 180px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); direction: ltr; text-align: left; font-family: var(--f-mono); font-size: 13.5px }
.qa input:disabled { opacity: .5 }
.qa.ok input { border-color: var(--ok); color: var(--ok); opacity: 1 }
.finish { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--ok-soft); border: 1px solid var(--ok); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap }

/* daily */
.daily-card { display: grid; gap: 10px }
.daily-card.done { border-color: var(--ok) }
.daily-card .cat { display: flex; justify-content: space-between; align-items: center }
.daily-card .payload { font-family: var(--f-mono); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 7px; padding: 8px 10px; direction: ltr; text-align: left; word-break: break-all; font-size: 14px; color: var(--accent) }
.daily-card form { display: flex; gap: 6px }
.daily-card input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); direction: ltr; text-align: left; font-family: var(--f-mono); font-size: 13px }
.solved-ans { font-family: var(--f-mono); font-size: 13px; color: var(--ok); direction: ltr; text-align: left }

/* tools */
.tool textarea { width: 100%; min-height: 110px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); direction: ltr; text-align: left; font-family: var(--f-mono); font-size: 13px; resize: vertical }
.tool select, .tool .num { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg) }
.tool .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 }
.cheats { display: grid; gap: 4px; font-size: 13.5px }
.cheats div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 5px 0; flex-wrap: wrap }
.res { margin: 0; padding-inline-start: 1.2em; font-size: 14px }

/* profile */
.badge { display: flex; gap: 12px; align-items: center }
.medal { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px dashed var(--line); color: var(--muted); font-family: var(--f-mono); font-size: 12px; font-weight: 700 }
.badge.on .medal { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 12px rgba(43, 255, 136, .3) }
.badge:not(.on) h3 { color: var(--muted) }
.badge h3 { font-size: 15px }
.badge p { margin: 0; font-size: 13px; color: var(--muted) }
.rankrow { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line) }
.rankrow.cur span { color: var(--accent); font-weight: 600 }
.settings { display: grid; gap: 14px; max-width: 560px }
.acct { display: flex; gap: 12px; align-items: center; flex-wrap: wrap }
.acct img { width: 44px; height: 44px; border-radius: 50% }
.acct > div { flex: 1 }

/* ===== lab machine ===== */
.vm { height: 100%; display: flex; flex-direction: column; background: var(--term-bg); border-inline-start: 1px solid var(--line); position: relative }
.vm-wrap.full { position: fixed; inset: 0; z-index: 60; height: auto; background: var(--bg); padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) }
.vm-top { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: #010401; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--term-dim); direction: ltr }
.vm-led { width: 8px; height: 8px; border-radius: 50%; background: var(--muted) }
.vm-led.on { background: var(--ok); box-shadow: 0 0 8px var(--ok) }
.vm-top .sp { flex: 1 }
.vm-top button { background: transparent; border: 1px solid var(--line); color: var(--fg); border-radius: 6px; padding: 2px 10px; font-size: 12px; cursor: pointer; font-family: var(--f-body) }
.vm-top button:hover { border-color: var(--accent) }
.desk { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #0a1a3a; font-family: "Segoe UI", system-ui, sans-serif }
.wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.dpanel { position: absolute; top: 0; left: 0; right: 0; height: 30px; display: flex; align-items: center; gap: 4px; padding: 0 6px; background: rgba(8, 12, 22, .9); border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: #e6edf7; z-index: 5000 }
.dpanel button { background: transparent; border: 0; color: #e6edf7; font-size: 12px; cursor: pointer; padding: 3px 8px; border-radius: 5px; font-weight: 600 }
.dpanel button:hover { background: rgba(255, 255, 255, .08) }
.dpanel .sp { flex: 1 }
.dpanel .clk, .dpanel .net { font-family: var(--f-mono); color: #9fb3cf; font-size: 11.5px; padding: 0 4px }
.dpanel .pl { padding: 2px 4px }
.dpanel .pl .ico { width: 20px; height: 20px; font-size: 7.5px; border-radius: 5px; box-shadow: none }
.dmenu { position: absolute; top: 32px; left: 6px; z-index: 5001; background: #111827; border: 1px solid #2a3550; border-radius: 8px; padding: 4px; display: grid; min-width: 210px; box-shadow: 0 12px 30px rgba(0, 0, 0, .6) }
.dmenu button { display: flex; gap: 10px; align-items: center; background: transparent; border: 0; color: #e6edf7; padding: 6px 8px; border-radius: 6px; cursor: pointer; text-align: left; font-size: 13px }
.dmenu button:hover { background: #1d2a44 }
.dmenu .ico { width: 26px; height: 26px; font-size: 10px; border-radius: 6px }
.wins { position: absolute; top: 30px; bottom: 34px; left: 0; right: 0 }
.dicons { position: absolute; top: 12px; left: 12px; bottom: 10px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 84px); gap: 4px; align-content: start }
.dicon { width: 80px; display: grid; justify-items: center; align-content: start; gap: 4px; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 2px; color: #fff; cursor: pointer; font-size: 11.5px; line-height: 1.3; text-align: center; text-shadow: 0 1px 3px #000 }
.dicon:hover, .dicon:focus-visible { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15) }
.ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(160deg, #2a3958, #141c2e); border: 1px solid #3a4a6e; box-shadow: 0 4px 10px rgba(0, 0, 0, .45) }
.ico.term { background: linear-gradient(160deg, #1b1f27, #07090c); color: #2bff88; border-color: #333 }
.ico.web { background: linear-gradient(160deg, #ff7a2f, #c2410c); color: #fff }
.ico.files { background: linear-gradient(160deg, #4f8fe6, #1d4f9e); color: #fff }
.ico.editor { background: linear-gradient(160deg, #e8edf5, #a9b6c8); color: #1b2333 }
.ico.mail, .ico.pcap, .ico.logs { background: linear-gradient(160deg, #3a3f8f, #1c1f5a); color: #b9c3ff }
.win { position: absolute; display: flex; flex-direction: column; background: var(--surface); border: 1px solid #2a3550; border-radius: 9px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .65); resize: both; min-width: 260px; min-height: 160px }
.win.active { border-color: #4a6aa8 }
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; resize: none }
.win-head { display: flex; align-items: center; gap: 8px; height: 30px; flex: none; padding: 0 6px 0 12px; background: #1a2030; border-bottom: 1px solid #2a3550; cursor: grab; user-select: none; touch-action: none; font-size: 12.5px; color: #e6edf7 }
.win.active .win-head { background: #232c44 }
.win-title { font-weight: 600 }
.win-head .sp { flex: 1 }
.win-head button { width: 26px; height: 22px; border: 0; border-radius: 5px; background: transparent; color: #9fb3cf; cursor: pointer; font-size: 13px; line-height: 1; font-family: var(--f-mono) }
.win-head button:hover { background: #2f3a58; color: #fff }
.win-head button[data-w="close"]:hover { background: var(--bad); color: #fff }
.win-body { flex: 1; min-height: 0; overflow: auto; position: relative }
.win-body.pad { padding: 12px }
.win-body.term-pane { display: flex; flex-direction: column; background: var(--term-bg); overflow: hidden }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; gap: 4px; align-items: center; padding: 0 6px; background: rgba(8, 12, 22, .92); border-top: 1px solid rgba(255, 255, 255, .06); overflow-x: auto; z-index: 5000; scrollbar-width: none }
.taskbar button { background: transparent; border: 1px solid transparent; color: #9fb3cf; font-size: 12px; padding: 3px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap }
.taskbar button:hover { color: #fff }
.taskbar button.on { background: #1d2a44; color: #fff; border-color: #2f3e60 }
.taskbar .tip { color: #7f8fab; font-size: 11.5px; padding: 0 6px; white-space: nowrap }
.vm-off { position: absolute; inset: 0; z-index: 6000; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(10, 26, 58, .92), rgba(2, 6, 2, .97) 70%); padding: 20px; color: var(--fg); font-family: var(--f-body) }
.vm-off h3 { font-size: 16px; margin-bottom: 6px }
.vm-off p { color: var(--muted); font-size: 13.5px; margin: 0 0 14px }
.vm-bootlog { font-family: var(--f-mono); font-size: 12px; color: var(--term-fg); text-align: left; white-space: pre; line-height: 1.7 }
/* terminal */
.term { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--term-bg); color: var(--term-fg); font-family: var(--f-mono); font-size: 13px; line-height: 1.5; direction: ltr; text-align: left }
.term-out { flex: 1; overflow-y: auto; padding: 10px 12px 4px; white-space: pre-wrap; word-break: break-word }
.term-out .l { unicode-bidi: plaintext; margin-bottom: 2px }
.term-out .err { color: #ff7b86 }
.term-out .dim { color: var(--term-dim) }
.tp { color: #3b82f6 } .tu { color: #2bff88; font-weight: 700 } .tr { color: #ff4d5e; font-weight: 700 } .tc { color: #e6edf7; font-weight: 700 }
.term-ps1 { padding: 0 12px; white-space: pre }
.term-in { display: flex; gap: 6px; padding: 0 12px 10px; align-items: center; margin: 0 }
.term-in label { white-space: nowrap }
.term-in input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--term-fg); font-family: var(--f-mono); font-size: 13px; outline: none; caret-color: var(--accent) }
/* browser + training sites */
.br { display: flex; flex-direction: column; height: 100% }
.br-bar { display: flex; gap: 6px; padding: 6px 8px; background: #1a2030; border-bottom: 1px solid #2a3550 }
.br-bar button { background: transparent; border: 1px solid #2a3550; border-radius: 6px; color: #e6edf7; min-width: 30px; cursor: pointer; font-family: var(--f-mono); font-size: 13px }
.br-bar form { flex: 1; display: flex; min-width: 0; margin: 0 }
.br-bar input { flex: 1; min-width: 0; background: #0d1220; border: 1px solid #2a3550; border-radius: 99px; padding: 4px 12px; font-family: var(--f-mono); font-size: 12.5px; color: #e6edf7 }
.br-view { flex: 1; overflow: auto; padding: 18px; background: #f6f7fb; color: #1c2230; text-align: left; font-family: "Segoe UI", system-ui, sans-serif }
.br-view .muted { color: #5b6476 }
.br-view code { color: #0b5cad; background: #e8eef8; border-color: #d3dceb }
.br-view .btn { color: #1c2230; background: #e8ecf3; border-color: #cfd6e2 }
.br-view .btn.primary { background: #1f6feb; border-color: #1f6feb; color: #fff }
.vsrc, .raw { font-family: var(--f-mono); font-size: 12.5px; white-space: pre-wrap; word-break: break-all; margin: 0 }
.site { display: grid; gap: 10px; max-width: 680px }
.site h1 { font-size: 22px; font-family: "Segoe UI", system-ui, sans-serif }
.site h2 { font-size: 16px; font-family: "Segoe UI", system-ui, sans-serif }
.site p { margin: 0 }
.site a { color: #1f6feb; cursor: pointer }
.site .hero-s { padding: 16px; border-radius: 10px; background: #fff; border: 1px solid #dfe4ee }
.site .links { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px }
.site .links span { color: #5b6476 }
.site .person { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #e3e7ef }
.site .av { width: 38px; height: 38px; border-radius: 50%; background: #e3e9f4; display: grid; place-items: center; font-weight: 700; color: #4a5670; flex: none }
.site .flag, .site .inj { font-family: var(--f-mono) }
.site .mock-body { display: grid; gap: 10px; background: #fff; border: 1px solid #dfe4ee; border-radius: 10px; padding: 16px }
.site .field label { color: #5b6476 }
.site .field input { background: #fff; border: 1px solid #cfd6e2; color: #1c2230; font-family: var(--f-mono); font-size: 13px }
.site .eyebrow { color: #5b6476 }
.serp-logo { font-size: 26px; font-weight: 800; color: #1f6feb; letter-spacing: -.5px }
.serp form, .site form.s { display: flex; gap: 6px }
.serp input, .site form.s input { flex: 1; min-width: 0; padding: 8px 14px; border: 1px solid #cfd6e2; border-radius: 99px; background: #fff; color: #1c2230; font-family: var(--f-mono); font-size: 13px }
.serp .r { padding: 10px 0; border-bottom: 1px solid #e3e7ef }
.serp .r a { font-size: 16px }
.serp .u { font-family: var(--f-mono); font-size: 12px; color: #12813f }
.serp .r p { font-size: 13.5px; color: #5b6476; margin: 2px 0 0 }
.pdfdoc { background: #fff; color: #222; padding: 22px; border-radius: 4px; font-size: 14px; line-height: 1.9; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); max-width: 600px }
.codebox { font-family: var(--f-mono); font-size: 12.5px; background: #0d1117; color: #c9d1d9; padding: 12px; border-radius: 8px; white-space: pre; overflow-x: auto }
.post { border: 1px solid #e3e7ef; background: #fff; border-radius: 10px; padding: 12px; display: grid; gap: 6px }
.photo { height: 120px; border-radius: 8px; background: linear-gradient(135deg, #8fb3e8, #3d5f96); display: grid; place-items: center; color: #fff; font-family: var(--f-mono); font-size: 12px }
.sqlq { font-family: var(--f-mono); font-size: 12.5px; background: #0d1117; color: #c9d1d9; padding: 10px 12px; border-radius: 8px; white-space: pre-wrap; word-break: break-all }
.sqlq .inj { color: #f5b85a }
.result { padding: 10px 12px; border-radius: 8px; font-size: 14px }
.result.ok { background: #dcf5e7; color: #0e6b3a }
.result.bad { background: #fde2e4; color: #a4232f }
.result.warn { background: #fff1d6; color: #8a5a00 }
.tblwrap .pcap { background: #0d1117 }
/* tools inside the machine */
.tool-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 13px }
.tool-filter { padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); font-family: var(--f-mono); font-size: 12.5px; width: 230px; max-width: 100% }
.loglines { font-family: var(--f-mono); font-size: 12px; background: var(--term-bg); color: var(--term-fg); padding: 10px 12px; border-radius: 8px; overflow: auto; white-space: pre; max-height: 360px; line-height: 1.6; border: 1px solid var(--line); direction: ltr; text-align: left }
.pcapwrap { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--term-bg) }
.pcap { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 12px; direction: ltr; text-align: left; color: var(--term-fg) }
.pcap th, .pcap td { padding: 4px 8px; border-bottom: 1px solid var(--line); white-space: nowrap }
.pcap th { background: var(--surface-2); color: var(--muted); position: sticky; top: 0 }
.pcap tbody tr { cursor: pointer }
.pcap tr.sel td { background: var(--accent-soft) }
.pkt { font-family: var(--f-mono); font-size: 12px; background: var(--term-bg); color: var(--term-fg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 8px; white-space: pre-wrap; word-break: break-all; direction: ltr; text-align: left }
.email { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; direction: ltr; text-align: left }
.email-head { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; display: grid; gap: 2px }
.email-head .k { color: var(--muted); display: inline-block; min-width: 64px }
.email-body { padding: 14px }
.email-body .fake { display: inline-block; background: #1f6feb; color: #fff; padding: 8px 16px; border-radius: 6px; cursor: help }
.attach { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-family: var(--f-mono); font-size: 12.5px; margin-top: 10px }
.flag { font-family: var(--f-mono); font-weight: 600 }
.fm { display: grid; gap: 10px; direction: ltr; text-align: left }
.fm-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px }
.fm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px }
.fm-item { display: flex; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); cursor: pointer; text-align: left; font-family: var(--f-mono); font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.fm-item:hover { border-color: var(--info) }
.fm-item .ic { font-size: 10px; padding: 1px 5px; border-radius: 4px; background: var(--bg); color: var(--muted); flex: none }
.fm-item.dir .ic { color: var(--info) }
.fm-view pre { font-family: var(--f-mono); font-size: 12.5px; background: var(--term-bg); color: var(--term-fg); padding: 10px; border-radius: 8px; white-space: pre-wrap; word-break: break-word; margin: 4px 0 0 }
.notes { display: block; width: 100%; height: 100%; border: 0; resize: none; background: #fffdf3; color: #2a2a2a; padding: 12px; font-family: var(--f-mono); font-size: 13px; line-height: 1.7; outline: none }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } }
