@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #080d18;
  --panel: #0d1524;
  --panel2: #101b2d;
  --border: #1b2a40;
  --text: #e5edf8;
  --muted: #8292aa;
  --blue: #3995ff;
  --cyan: #36d8f2;
  --green: #38dfa0;
  --purple: #ad8bff;
  --red: #ff617c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, sans-serif; font-size: 13px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { width: 245px; position: fixed; inset: 0 auto 0 0; z-index: 5; background: #0a111e; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 25px 16px 18px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; }
.brand-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #398cf0; background: linear-gradient(145deg,#173b69,#0d1b32); border-radius: 10px; color: #72b9ff; font-size: 23px; font-weight: 800; box-shadow: 0 0 22px #2485ff20; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; letter-spacing: .7px; }
.brand-copy strong { font-size: 13px; }
.brand-copy small { font: 9px 'JetBrains Mono', monospace; color: var(--blue); letter-spacing: 1.6px; }
.side-label,.section-kicker { font: 10px 'JetBrains Mono', monospace; letter-spacing: 1.5px; color: #71839c; }
.side-label { padding: 8px 11px 13px; }
.navigation { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; color: #8f9fb5; border: 1px solid transparent; border-radius: 7px; font-size: 12px; transition: .2s; }
.nav-item > span { font-size: 17px; width: 18px; text-align: center; }
.nav-item b { margin-left: auto; color: #79baff; font: 10px 'JetBrains Mono', monospace; background: #172c48; padding: 4px 6px; border-radius: 4px; }
.nav-item:hover,.nav-item.active { color: #e8f3ff; background: #12243a; border-color: #234568; }
.nav-item.active { box-shadow: inset 2px 0 var(--blue); }
.sidebar-bottom { margin-top: auto; }
.system-card { display: flex; align-items: center; gap: 10px; padding: 13px 10px; border: 1px solid var(--border); border-radius: 8px; background: #0d1827; }
.system-card div { display: grid; gap: 6px; }
.system-card strong { font-size: 9px; letter-spacing: .7px; }
.system-card small { color: var(--muted); font-size: 10px; }
.status-dot,.pulse-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px #38dfa080; }
.side-footer { margin: 21px 10px 0; color: #64748b; font: 9px/1.9 'JetBrains Mono', monospace; letter-spacing: 1px; }
.side-footer strong { color: #a7b7cc; font-size: 9px; }
.main-content { margin-left: 245px; min-width: 0; padding: 0 30px 20px; max-width: 1800px; }
.topbar { min-height: 66px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.breadcrumb { color: #8191a8; font: 10px 'JetBrains Mono', monospace; letter-spacing: 1px; }
.breadcrumb span { color: var(--blue); margin: 0 8px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.environment { display: flex; align-items: center; gap: 8px; color: #9aacc2; font: 9px 'JetBrains Mono', monospace; letter-spacing: .5px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #2b4a6c; background: #152740; color: #9dcaff; border-radius: 50%; font-size: 10px; font-weight: 700; }
.mobile-brand { display: none; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0 25px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font: 9px 'JetBrains Mono', monospace; letter-spacing: 1.7px; color: #75b7ff; }
.pulse-dot { animation: pulse 1.7s infinite; }
h1 { font-size: clamp(23px,2.6vw,34px); letter-spacing: -1.2px; line-height: 1.25; margin: 13px 0 8px; }
h1 span { color: var(--blue); }
.welcome p,.section-header p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.session-card { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--border); background: var(--panel); border-radius: 8px; min-width: 190px; }
.session-icon { font-size: 27px; color: var(--cyan); }
.session-card div { display: grid; gap: 8px; }
.session-card small { color: #7e91aa; font: 9px 'JetBrains Mono', monospace; }
.session-card strong { display: flex; align-items: center; gap: 7px; font: 10px 'JetBrains Mono', monospace; }
.metrics-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.metric-card,.panel,.lab-card { background: var(--panel); border: 1px solid var(--border); border-radius: 9px; }
.metric-card { padding: 16px 15px 14px; min-width: 0; }
.metric-top { display: flex; justify-content: space-between; align-items: center; gap: 5px; color: #8e9fb5; font: 9px 'JetBrains Mono', monospace; letter-spacing: .6px; }
.metric-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; font-size: 17px; }
.blue { color: var(--blue); background: #152d4b; }
.cyan { color: var(--cyan); background: #10313d; }
.green { color: var(--green); background: #10352e; }
.purple { color: var(--purple); background: #2b2148; }
.metric-value { font-size: 27px; font-weight: 700; letter-spacing: -.8px; margin: 17px 0 14px; white-space: nowrap; }
.metric-unit { font: 9px 'JetBrains Mono', monospace; color: #7c8ea6; letter-spacing: .4px; }
.metric-foot { display: flex; align-items: center; gap: 8px; color: #7f91a9; font-size: 9px; white-space: normal; line-height: 1.5; }
.mini-bar { width: 5px; height: 5px; border-radius: 2px; flex-shrink: 0; }
.blue-bar { background: var(--blue); }.cyan-bar { background: var(--cyan); }.green-bar { background: var(--green); }.purple-bar { background: var(--purple); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 17px; }
.panel { padding: 19px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-heading h2,.section-header h2 { font-size: 16px; margin: 7px 0 0; letter-spacing: -.3px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 4px; white-space: nowrap; font: 8px 'JetBrains Mono', monospace; letter-spacing: .5px; }
.tag-blue { color: #79baff; border: 1px solid #264b72; background: #11253d; }
.tag-green { color: var(--green); border: 1px solid #205440; background: #0d2925; }
.tag .status-dot { width: 5px; height: 5px; flex-basis: 5px; }
.radar-stage { padding: 14px 0 4px; }
.radar-grid { position: relative; width: min(100%,300px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 50%; border: 1px solid #173c50; background: radial-gradient(circle,#102b3c 0%,#0b1c2b 57%,#091521 100%); }
.radar-ring { position: absolute; border: 1px solid #1a4a58; border-radius: 50%; inset: 12%; }
.ring-two { inset: 25%; }.ring-three { inset: 38%; }
.radar-cross { position: absolute; background: #1a3b4a; }
.radar-cross.horizontal { height: 1px; top: 50%; left: 0; right: 0; }
.radar-cross.vertical { width: 1px; top: 0; bottom: 0; left: 50%; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg,transparent 0deg,transparent 280deg,#27e1a017 320deg,#27e1a04a 358deg,transparent 360deg); animation: sweep 8s linear infinite; }
.radar-point { position: absolute; width: 7px; height: 7px; border-radius: 50%; animation: point-glow 2s infinite; }
.point-one { top: 29%; left: 62%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.point-two { top: 65%; left: 35%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.point-three { top: 48%; left: 75%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.radar-center { position: absolute; width: 5px; height: 5px; top: calc(50% - 2px); left: calc(50% - 2px); background: #b9fff0; border-radius: 50%; box-shadow: 0 0 12px var(--green); }
.radar-caption { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 13px; color: #7f9db0; font: 8px 'JetBrains Mono', monospace; letter-spacing: 1px; }
.radar-caption .status-dot { width: 5px; height: 5px; flex-basis: 5px; }
.radar-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 17px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 13px; color: #96a5b9; font-size: 10px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; }
.red-dot { background: var(--red); }.blue-dot { background: var(--blue); }.green-dot { background: var(--green); }
.console-toolbar { display: flex; justify-content: space-between; margin-top: 20px; padding: 10px; border: 1px solid #1b2c40; background: #09111d; color: #6f839d; font: 8px 'JetBrains Mono', monospace; letter-spacing: .7px; }
.console-body { min-height: 190px; padding: 13px 10px; background: #080f19; border: 1px solid #17283a; border-top: 0; overflow-wrap: anywhere; }
.log-line { display: grid; grid-template-columns: 61px 65px minmax(0,1fr); gap: 5px; margin: 0 0 13px; color: #a4b4c9; font: 9px/1.6 'JetBrains Mono', monospace; }
.log-time { color: #667b95; }.log-info { color: #66aaff; }.log-success { color: var(--green); }.log-warn { color: #f2c36f; }
.console-footer { display: flex; align-items: center; gap: 8px; padding-top: 13px; color: #6e859b; font: 8px 'JetBrains Mono', monospace; letter-spacing: .8px; }
.console-cursor { width: 6px; height: 12px; background: var(--green); animation: blink 1s steps(2,start) infinite; }
.labs-section { margin-top: 30px; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 17px; }
.section-header h2 { font-size: 19px; margin-bottom: 6px; }
.labs-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.lab-card { padding: 19px; display: flex; flex-direction: column; transition: transform .2s,border-color .2s,background .2s; }
.lab-card:hover { transform: translateY(-3px); border-color: #2e5077; background: #0f1a2b; }
.lab-card-top { display: flex; justify-content: space-between; align-items: center; }
.lab-number { font: 9px 'JetBrains Mono',monospace; color: #84a0bd; letter-spacing: 1.1px; }
.lab-symbol { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; font-size: 25px; }
.phishing-symbol { color: #ffb66c; background: #38271e; }
.forensics-symbol { color: #7ab8ff; background: #182d4b; }
.logs-symbol { color: var(--green); background: #12342d; }
.malware-symbol { color: #c5a1ff; background: #2c2147; }
.lab-card h3 { font-size: 14px; margin: 17px 0 8px; }
.lab-card p { color: #8d9db2; font-size: 11px; line-height: 1.8; margin: 0 0 16px; flex: 1; }
.lab-meta { display: flex; flex-wrap: wrap; gap: 13px; color: #8296af; font: 8px 'JetBrains Mono',monospace; padding: 12px 0; border-top: 1px solid #1a293b; }
.launch-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 39px; padding: 0 12px; color: #a8d1ff; background: #132946; border: 1px solid #274d75; border-radius: 5px; cursor: pointer; text-align: left; font-size: 10px; font-weight: 600; transition: .2s; }
.launch-button:hover { color: white; border-color: var(--blue); background: #1b3b60; }
.launch-button span { font-size: 16px; }
.progress-panel { margin-top: 17px; }
.progress-track { height: 6px; border-radius: 10px; background: #1a2a3c; overflow: hidden; margin-top: 23px; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2984ff,#36d8f2); transition: width .4s; }
.progress-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 11px; color: #8597ad; font-size: 10px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 25px 0 5px; color: #687c95; font: 8px 'JetBrains Mono',monospace; letter-spacing: .4px; }
.footer .status-dot { width: 5px; height: 5px; flex-basis: 5px; margin-right: 6px; }
.footer strong { color: #a3b5ca; }.footer-divider { padding: 0 6px; color: #34475f; }

@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes point-glow { 50% { opacity: .45; } }
@keyframes blink { to { visibility: hidden; } }

@media(min-width:1500px) { .main-content { padding-left: 38px; padding-right: 38px; } .labs-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:1100px) { .sidebar { width: 210px; }.main-content { margin-left: 210px; padding-left: 20px; padding-right: 20px; }.metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.dashboard-grid { grid-template-columns: 1fr; }.radar-grid { width: min(100%,260px); } }
@media(max-width:650px) {
  .sidebar { display: none; }.main-content { margin-left: 0; padding: 0 14px 18px; }
  .topbar { min-height: 57px; }.mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: .4px; }.mobile-brand .brand-icon { width: 29px; height: 29px; font-size: 18px; border-radius: 7px; }
  .breadcrumb { display: none; }.topbar-right { gap: 10px; }.environment { font-size: 7px; gap: 5px; }.avatar { width: 29px; height: 29px; }
  .welcome { padding: 27px 0 20px; align-items: flex-start; }.welcome h1 { font-size: 24px; letter-spacing: -.8px; }.welcome p { font-size: 11px; max-width: 290px; }.eyebrow { font-size: 8px; letter-spacing: 1px; }.session-card { display: none; }
  .metrics-grid { gap: 9px; }.metric-card { padding: 12px 10px; }.metric-top { font-size: 8px; }.metric-icon { width: 25px; height: 25px; }.metric-value { font-size: 24px; margin: 12px 0; }.metric-foot { font-size: 8px; }
  .dashboard-grid { margin-top: 12px; gap: 12px; }.panel { padding: 14px; }.panel-heading h2 { font-size: 15px; }.tag { font-size: 7px; padding: 5px 6px; }.radar-grid { width: min(100%,245px); }.console-body { min-height: 175px; padding: 11px 7px; }.log-line { grid-template-columns: 51px 59px minmax(0,1fr); gap: 3px; font-size: 8px; }
  .labs-section { margin-top: 25px; }.section-header h2 { font-size: 17px; }.section-header p { font-size: 10px; }.labs-grid { grid-template-columns: 1fr; gap: 10px; }.lab-card { padding: 16px; }.lab-card h3 { margin-top: 13px; }.lab-card p { font-size: 11px; }.launch-button { min-height: 42px; }.progress-panel { margin-top: 13px; }.progress-bottom { font-size: 9px; }.footer { flex-direction: column; gap: 10px; font-size: 8px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.01ms!important; } }

/* DCO CYBER LABS — PREMIUM INTERACTIVE VISUAL UPGRADE */
:root {
  --glow-blue: #3995ff;
  --glow-cyan: #36d8f2;
}

body {
  background-image:
    radial-gradient(ellipse at 80% 0%, #15345a35 0%, transparent 42%),
    radial-gradient(ellipse at 0% 55%, #10274722 0%, transparent 38%);
  background-attachment: fixed;
}

.topbar {
  backdrop-filter: blur(14px);
}

.environment {
  border: 1px solid #38dfa033;
  background: #38dfa00b;
  padding: 8px 11px;
  border-radius: 30px;
  transition: border-color .25s, box-shadow .25s;
}

.environment:hover {
  border-color: #38dfa099;
  box-shadow: 0 0 18px #38dfa01c;
}

.status-dot, .pulse-dot {
  box-shadow: 0 0 10px #38dfa080;
}

.metric-card, .panel, .lab-card, .session-card {
  position: relative;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.metric-card::before, .lab-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  opacity: .55;
  background: linear-gradient(90deg, transparent, var(--glow-blue), var(--glow-cyan), transparent);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
}

.metric-card:hover, .panel:hover, .session-card:hover {
  border-color: #2a4b70;
  box-shadow: 0 8px 30px #00000020, 0 0 18px #3995ff0b;
}

.metric-card:hover::before, .lab-card:hover::before {
  transform: scaleX(1);
  opacity: 1;
}

.lab-card {
  background: linear-gradient(145deg, #101b2d, #0b1422);
}

.lab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #00000030, 0 0 22px #3995ff13;
}

.lab-symbol, .metric-icon {
  transition: transform .25s, filter .25s;
}

.lab-card:hover .lab-symbol, .metric-card:hover .metric-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px #3995ff55);
}

.launch-button {
  position: relative;
  overflow: hidden;
  border: 1px solid #29496c;
  transition: transform .18s, background .18s, border-color .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}

.launch-button:hover:not(:disabled) {
  border-color: var(--glow-blue);
  box-shadow: 0 0 18px #3995ff18;
  transform: translateY(-1px);
}

.launch-button:active:not(:disabled) {
  transform: scale(.985);
}

.launch-button:focus-visible {
  outline: 2px solid var(--glow-cyan);
  outline-offset: 3px;
}

.launch-button:disabled {
  cursor: default;
  opacity: .7;
}

.simulation-stage {
  animation: dco-stage-enter .3s ease both;
}

.simulation-stage h3 {
  line-height: 1.65;
  letter-spacing: -.2px;
}

.simulation-stage [aria-live="polite"] {
  padding: 13px;
  border: 1px solid #29496c;
  border-radius: 9px;
  background: #0a1422;
  animation: dco-feedback-enter .25s ease both;
}

.simulation-stage [aria-live="polite"]:empty {
  display: none;
}

.simulation-stage .metric-card {
  border-color: #2d628b;
  background: linear-gradient(145deg, #10243a, #0b1422);
}

#progress-fill {
  transition: width .5s ease;
  box-shadow: 0 0 12px #3995ff55;
}

#console-output {
  scrollbar-width: thin;
  scrollbar-color: #29496c transparent;
}

.lab-card .launch-button {
  min-height: 44px;
}

@keyframes dco-stage-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dco-feedback-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dco-soft-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

@media (max-width: 650px) {
  .lab-card:hover { transform: none; }
  .launch-button { min-height: 46px; }
  .simulation-stage [aria-live="polite"] { padding: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .simulation-stage, .simulation-stage [aria-live="polite"] {
    animation: none !important;
  }
  .metric-card, .panel, .lab-card, .launch-button {
    transition: none !important;
  }
}

/* DCO Cyber Labs — Command Center Enhancement */
:root {
  --dco-accent: #00f5c8;
  --dco-accent-blue: #38bdf8;
  --dco-surface: rgba(10, 22, 35, 0.88);
}

.panel,
.metric-card,
.lab-card {
  background: var(--dco-surface);
  border: 1px solid rgba(0, 245, 200, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel {
  box-shadow: 0 0 24px rgba(0, 245, 200, 0.035);
}

.lab-card {
  transition: border-color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.2s ease;
}

.lab-card:hover {
  border-color: rgba(0, 245, 200, 0.65);
  box-shadow: 0 0 22px rgba(0, 245, 200, 0.09);
  transform: translateY(-3px);
}

.launch-button {
  border: 1px solid rgba(0, 245, 200, 0.5);
  transition: background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.launch-button:hover {
  border-color: var(--dco-accent);
  box-shadow: 0 0 18px rgba(0, 245, 200, 0.15);
}

.metric-card {
  transition: border-color 0.2s ease;
}

.metric-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
}

.panel :focus-visible,
.lab-card :focus-visible,
.launch-button:focus-visible {
  outline: 2px solid var(--dco-accent-blue);
  outline-offset: 3px;
}

@media (max-width: 650px) {
  .panel,
  .metric-card,
  .lab-card {
    border-radius: 12px;
  }

  .lab-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-card,
  .metric-card,
  .launch-button {
    transition: none !important;
  }

  .lab-card:hover {
    transform: none;
  }
}

/* DCO CYBER LABS — WINDOWS WORKSTATION MODE */
:root {
  --dco-window-bg: #080e18;
  --dco-panel-bg: #101b2b;
  --dco-border: #26384d;
  --dco-cyan: #00e5c0;
  --dco-blue: #38bdf8;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--dco-window-bg);
}

body {
  background: var(--dco-window-bg);
  color: #e6edf7;
}

@media (min-width: 651px) {
  body {
    min-width: 760px;
    min-height: 100vh;
    overflow-x: auto;
  }

  .panel,
  .metric-card,
  .lab-card {
    background: var(--dco-panel-bg);
    border: 1px solid var(--dco-border);
    border-radius: 8px;
  }

  .launch-button {
    border-radius: 5px;
  }
}



@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* DCO Desktop Window */
.dco-window-bar {
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #111b2a;
  border-bottom: 1px solid #29394d;
  color: #e7eef8;
  font: 600 12px system-ui, sans-serif;
}

.dco-window-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dco-window-brand small {
  display: block;
  margin-top: 2px;
  color: #8da2ba;
  font-size: 9px;
  letter-spacing: 1px;
}

.dco-window-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 17px;
  color: #b8c7d9;
}

.dco-window-controls .window-close {
  color: #ff7b86;
}

.dco-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: rgba(12, 22, 36, .97);
  border-top: 1px solid #29394d;
  color: #dbe7f5;
  font: 11px system-ui, sans-serif;
}

.taskbar-start,
.taskbar-item,
.taskbar-status {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.taskbar-start {
  font-weight: 700;
  color: #00e5c0;
}

.taskbar-item {
  height: 30px;
  padding: 0 10px;
  border-bottom: 2px solid #00e5c0;
  background: #17263a;
}

.taskbar-status {
  margin-left: auto;
  color: #9eb0c5;
}

body {
  padding-bottom: 52px;
}

@media (max-width: 650px) and (orientation: portrait) {
  .dco-window-bar,
  .dco-taskbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dco-window-bar,
  .dco-taskbar {
    scroll-behavior: auto;
  }
}


/* DCO CERTIFICATES */
.certificates-panel { margin: 22px 0; }
.certificate-name-input {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 10px 0 16px;
  padding: 12px 14px;
  border: 1px solid #31445e;
  border-radius: 8px;
  background: #0c1524;
  color: #eef5ff;
  font: inherit;
}
.certificate-name-input:focus {
  outline: 2px solid #3995ff;
  outline-offset: 2px;
}
.certificate-list { display: grid; gap: 12px; margin-top: 16px; }
.certificate-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid #263c55;
  border-radius: 10px;
  background: #0c1524;
}
.certificate-card h3 { margin: 0 0 8px; }
.certificate-card p, .certificate-note { overflow-wrap: anywhere; }
.certificate-note { font-size: 12px; line-height: 1.7; opacity: .8; }


/* Certificate generation controls */
.certificate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 18px;
}
#certificate-generate-button {
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid #36d8f2;
  border-radius: 8px;
  background: linear-gradient(135deg, #123a58, #155e75);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}
#certificate-generate-button:hover {
  filter: brightness(1.15);
}

/* DCO FIX: independently scrollable Command Menu */
.sidebar {
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

.navigation {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #38516e #0a111e;
}

.nav-item {
  flex: 0 0 auto;
  min-height: 42px;
}

.sidebar-bottom {
  flex: 0 0 auto;
}

/* Keep the menu visible and scrollable on mobile landscape */
@media (max-width: 650px) and (orientation: landscape) {
  .sidebar {
    display: flex;
    position: fixed;
    top: 44px;
    bottom: 52px;
    left: 0;
    width: 200px;
    height: auto;
    max-height: none;
    padding: 12px 10px;
    z-index: 100;
    overflow: hidden;
  }

  .sidebar .brand {
    flex: 0 0 auto;
    padding: 0 5px 14px;
    gap: 8px;
  }

  .sidebar .brand-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
  }

  .sidebar .side-label {
    flex: 0 0 auto;
    padding: 6px 8px 10px;
  }

  .sidebar .navigation {
    flex: 1 1 auto;
    min-height: 0;
  }

  .sidebar .nav-item {
    padding: 7px 8px;
    gap: 7px;
    font-size: 10px;
  }

  .sidebar .nav-item b {
    font-size: 8px;
    padding: 3px 4px;
  }

  .sidebar-bottom {
    margin-top: 8px;
  }

  .sidebar .system-card {
    padding: 8px 6px;
    gap: 6px;
  }

  .sidebar .system-card strong {
    font-size: 8px;
  }

  .sidebar .system-card small,
  .sidebar .side-footer {
    display: none;
  }

  .main-content {
    margin-left: 200px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* DCO FIX: prevent Command Menu from crowding lab content */
@media (max-width: 650px) and (orientation: landscape) {
  .sidebar {
    width: 160px !important;
    padding: 10px 8px !important;
  }

  .main-content {
    margin-left: 160px !important;
    min-width: 0;
    width: calc(100% - 160px);
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .sidebar .brand-copy strong {
    font-size: 10px;
  }

  .sidebar .brand-copy small {
    font-size: 8px;
  }

  .sidebar .nav-item {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 10px;
  }

  .sidebar .nav-item b {
    max-width: 55px;
    white-space: normal;
  }

  .main-content img,
  .main-content video,
  .main-content canvas,
  .main-content iframe {
    max-width: 100%;
  }
}

/* DCO mobile collapsible command menu */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 650px) {
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #10263a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }

  .topbar {
    gap: 8px;
    flex-wrap: wrap;
  }

  .mobile-brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .sidebar,
  .sidebar[ id="dco-sidebar" ] {
    display: none !important;
  }

  .sidebar.mobile-menu-open {
    display: flex !important;
    position: fixed;
    inset: 60px 0 auto 0;
    width: min(290px, 88vw);
    max-height: calc(100dvh - 75px);
    overflow-y: auto;
    padding: 16px;
    z-index: 1000;
    border: 1px solid var(--border);
    border-radius: 0 0 12px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
    background: #0a111e;
  }

  .main-content {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-left: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

@media (min-width: 651px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* DCO Command Menu: open/close on desktop and mobile */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #10263a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 651px) {
  .sidebar.desktop-menu-closed {
    display: none !important;
  }

  .main-content {
    transition: margin-left .2s ease, width .2s ease;
  }

  .main-content:has(~ .sidebar.desktop-menu-closed) {
    margin-left: 0 !important;
  }

  .app-shell:has(.sidebar.desktop-menu-closed) .main-content {
    margin-left: 0 !important;
    width: 100%;
  }
}

@media (max-width: 650px) {
  .sidebar,
  .sidebar[ id="dco-sidebar" ] {
    display: none !important;
  }

  .sidebar.mobile-menu-open {
    display: flex !important;
    position: fixed;
    inset: 60px auto auto 0;
    width: min(290px, 88vw);
    max-height: calc(100dvh - 75px);
    overflow-y: auto;
    padding: 16px;
    z-index: 1000;
    border: 1px solid var(--border);
    border-radius: 0 0 12px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
    background: #0a111e;
  }

  .main-content {
    width: 100% !important;
    max-width: none;
    min-width: 0;
    margin-left: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .topbar {
    gap: 8px;
    flex-wrap: wrap;
  }

  .mobile-brand {
    min-width: 0;
    flex: 1 1 auto;
  }
}

/* Final fix: collapsible Command Menu workspace */
@media (min-width: 651px) {
  .app-shell:has(#dco-sidebar.desktop-menu-closed) .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  #dco-sidebar.desktop-menu-closed {
    display: none !important;
  }

  #mobile-menu-toggle {
    display: inline-flex !important;
  }
}

/* DCO Command Menu controls */
#dco-sidebar #mobile-menu-toggle {
  display: inline-flex !important;
  width: 100%;
  justify-content: center;
  margin: 14px 0;
  cursor: pointer;
}

#menu-reopen-button {
  position: fixed;
  top: 78px;
  left: 14px;
  z-index: 2000;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #10263a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#menu-reopen-button[hidden] {
  display: none !important;
}

@media (min-width: 651px) {
  .app-shell:has(#dco-sidebar.desktop-menu-closed) .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  #dco-sidebar.desktop-menu-closed {
    display: none !important;
  }
}

@media (max-width: 650px) {
  #menu-reopen-button {
    top: 72px;
    left: 10px;
  }
}

/* Compact icon-only Command Menu buttons */
#menu-reopen-button,
#dco-sidebar #mobile-menu-toggle {
  width: 44px !important;
  height: 44px;
  min-width: 44px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}

#menu-reopen-button {
  border-radius: 10px;
}

#dco-sidebar #mobile-menu-toggle {
  margin: 12px 0;
}


/* Single clean mobile Command Menu scrolling rule */
@media (max-width: 650px) {
  #dco-sidebar {
    display: none !important;
  }

  #dco-sidebar.mobile-menu-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 8px !important;
    bottom: 90px !important;
    left: 0 !important;
    width: min(300px, 88vw) !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    z-index: 1600 !important;
  }

  #dco-sidebar .brand,
  #dco-sidebar .side-label,
  #dco-sidebar #mobile-menu-toggle,
  #dco-sidebar .sidebar-bottom {
    flex: 0 0 auto !important;
  }

  #dco-sidebar .navigation {
    display: flex !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  #dco-sidebar .nav-item {
    flex: 0 0 auto !important;
  }

  #dco-sidebar .sidebar-bottom {
    margin-top: 8px !important;
  }
}

/* Refined Event Console heading */
.events-panel .panel-heading h2 {
  margin: 4px 0 0;
  color: #edf6ff;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.35px;
  text-transform: none;
}

/* Decorative ambient background for Interactive Cyber Labs */
.labs-ambient {
  position: relative;
  height: 108px;
  margin: 18px 0 16px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(75, 145, 210, .2);
  border-radius: 10px;
  background: linear-gradient(110deg, #07111f, #0b1b30 52%, #07151f);
}

.labs-ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(87, 151, 205, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 151, 205, .09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 80%, transparent);
}

.labs-ambient-glow {
  position: absolute;
  width: 45%;
  height: 180%;
  top: -40%;
  left: -20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 190, 210, .19), rgba(28, 93, 190, .08) 45%, transparent 72%);
  filter: blur(10px);
  animation: labs-glow-drift 12s ease-in-out infinite alternate;
}

.labs-ambient-orb {
  position: absolute;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #70e7f5;
  box-shadow: 0 0 12px 3px rgba(63, 201, 235, .3);
  animation: labs-orb-float 5s ease-in-out infinite alternate;
}

.labs-ambient .orb-one { left: 24%; top: 28%; }
.labs-ambient .orb-two { left: 61%; top: 65%; animation-delay: -2s; }
.labs-ambient .orb-three { left: 82%; top: 24%; animation-delay: -3.5s; }

.labs-ambient-caption {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: #8ba8c6;
  font: 9px 'JetBrains Mono', monospace;
  letter-spacing: 1.5px;
}

.labs-ambient-caption span {
  color: #4fd6e8;
  margin: 0 5px;
}

@keyframes labs-glow-drift {
  from { transform: translateX(0) scale(1); }
  to { transform: translateX(230%) scale(1.2); }
}

@keyframes labs-orb-float {
  from { transform: translateY(8px); opacity: .4; }
  to { transform: translateY(-12px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .labs-ambient-glow,
  .labs-ambient-orb {
    animation: none;
  }
}

@media (max-width: 600px) {
  .labs-ambient { height: 82px; margin: 14px 0; }
  .labs-ambient-caption { right: 10px; bottom: 10px; font-size: 8px; letter-spacing: .8px; }
}

/* Remove the visible Event Console rectangle while preserving its data element */
.events-panel #console-output {
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}


/* DCO PAGE ISOLATION FIX */
#overview[hidden],
#academy-page[hidden] {
  display: none !important;
}
