:root {
  --ink: #e8f2fa;
  --muted: #91a9ba;
  --panel: #0c1b29;
  --line: rgba(154, 195, 218, 0.18);
  --blue: #1797d5;
  --cyan: #25d2cf;
  --good: #40d991;
  --warn: #f4bd4f;
  --bad: #ff6d69;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(29, 133, 177, 0.18),
      transparent 34rem
    ),
    linear-gradient(145deg, #07131f, #0a1723 60%, #08111b);
  font:
    14px/1.45 "Segoe UI",
    Arial,
    sans-serif;
  overflow-x: hidden;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 210, 207, 0.55);
  outline-offset: 2px;
}
.app-shell {
  min-height: 100vh;
}
.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 16, 25, 0.94);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.28);
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 210, 207, 0.7);
  border-radius: 10px;
  color: #05202b;
  background: linear-gradient(145deg, var(--cyan), #63f0c8);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 0 25px rgba(37, 210, 207, 0.18);
}
.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.6px;
}
.brand small {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}
.hud {
  display: flex;
  align-items: stretch;
  gap: 5px;
}
.hud > div {
  min-width: 94px;
  padding: 7px 12px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.hud small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.2px;
}
.hud b {
  font-size: 15px;
}
.status-bad {
  color: var(--bad);
}
.game-layout {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(660px, 1fr) 390px;
}
.scene-panel {
  padding: 18px;
  display: grid;
  align-items: start;
}
.stage-media {
  position: sticky;
  top: 84px;
  width: 100%;
  max-height: calc(100vh - 102px);
  aspect-ratio: 16/9;
  border: 1px solid rgba(140, 195, 220, 0.26);
  border-radius: 18px;
  overflow: hidden;
  background: #07111b;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(2, 8, 13, 0.04) 43%,
    rgba(2, 8, 13, 0.72) 100%
  );
  z-index: 1;
}
.zone {
  position: absolute;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.18s ease;
  transform: translate(-50%, -50%);
}
.zone:hover,
.zone.selected {
  transform: translate(-50%, -54%) scale(1.05);
}
.zone i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: linear-gradient(145deg, #108ac5, #20d6cc);
  color: white;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 0 0 5px rgba(14, 151, 200, 0.22);
}
.zone span {
  padding: 3px 8px;
  border-radius: 8px;
  color: white;
  background: rgba(3, 13, 20, 0.84);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.zone em {
  position: absolute;
  right: -16px;
  top: -8px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  color: #bffaf6;
  background: #06131d;
  font:
    700 10px Consolas,
    "Courier New",
    monospace;
}
.rack-zone {
  right: 18%;
  left: auto !important;
  top: 14%;
  transform: none;
}
.rack-zone:hover,
.rack-zone.selected {
  transform: translateY(-4px) scale(1.05);
}
.laptop-dock {
  position: absolute;
  z-index: 7;
  right: 14px;
  top: 42%;
  width: 150px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(37, 210, 207, 0.42);
  border-radius: 13px;
  background: rgba(4, 17, 27, 0.93);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  text-align: center;
}
.laptop-dock:hover,
.laptop-dock.selected {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.laptop-dock b,
.laptop-dock small {
  display: block;
}
.laptop-dock b {
  margin-top: 7px;
  font-size: 11px;
}
.laptop-dock small {
  color: var(--warn);
  font-size: 9px;
}
.laptop-icon {
  width: 62px;
  height: 38px;
  margin: auto;
  display: grid;
  place-items: center;
  border: 3px solid #9cb6c6;
  border-bottom-width: 5px;
  border-radius: 5px;
  background: linear-gradient(145deg, #0c3144, #0c8da0);
  box-shadow: 0 5px 0 -2px #b9c9d1;
}
.laptop-icon i {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.8px;
}
.scene-label {
  position: absolute;
  left: 18px;
  bottom: 22px;
  z-index: 3;
  padding: 8px 12px;
  border-left: 3px solid var(--cyan);
  background: rgba(3, 13, 20, 0.72);
  backdrop-filter: blur(6px);
}
.scene-label small {
  display: block;
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: 1.4px;
}
.scene-label b {
  font-size: 15px;
}
.guide {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  width: 260px;
  min-height: 73px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: end;
  padding: 8px 10px 8px 5px;
  border: 1px solid rgba(37, 210, 207, 0.36);
  border-radius: 13px;
  background: rgba(6, 25, 35, 0.91);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}
.guide img {
  width: 58px;
  height: 66px;
  object-fit: contain;
  object-position: center top;
  align-self: end;
}
.guide small {
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 1px;
}
.guide p {
  margin: 3px 0 0;
  color: #e5f1f6;
  font-size: 11px;
  line-height: 1.35;
}
.sidebar {
  padding: 14px;
  border-left: 1px solid var(--line);
  background: rgba(6, 16, 25, 0.88);
  overflow-y: auto;
}
.sidebar section {
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(
    145deg,
    rgba(18, 40, 56, 0.88),
    rgba(10, 27, 39, 0.92)
  );
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.kicker {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.incident-card h1 {
  margin: 2px 0 4px;
  font-size: 22px;
  line-height: 1.1;
}
.incident-card p {
  margin: 0;
  color: #b8cbd7;
  font-size: 12px;
}
.priority {
  margin-top: 9px;
  color: #cddde6;
  font-size: 10px;
}
.priority i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 10px var(--bad);
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-heading h2 {
  margin: 0;
  font-size: 14px;
}
.card-heading > small {
  color: var(--muted);
  font-size: 9px;
}
.progress {
  height: 7px;
  margin: 9px 0 11px;
  border-radius: 999px;
  overflow: hidden;
  background: #07131d;
}
.progress i {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.phase {
  padding: 9px;
  border: 1px solid rgba(37, 210, 207, 0.16);
  border-radius: 9px;
  background: rgba(5, 17, 26, 0.45);
}
.phase small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}
.phase b {
  font-size: 12px;
}
.objectives {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
}
.objectives li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid rgba(154, 195, 218, 0.1);
  opacity: 0.5;
}
.objectives li.active {
  opacity: 1;
}
.objectives li > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 169, 186, 0.35);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 900;
}
.objectives li.active > span {
  color: #07131f;
  border-color: var(--cyan);
  background: var(--cyan);
}
.objectives p {
  margin: 0;
}
.objectives b,
.objectives small {
  display: block;
}
.objectives b {
  font-size: 11px;
}
.objectives small {
  color: var(--muted);
  font-size: 9px;
}
.actions-card p {
  margin: 8px 0 10px;
  color: #b8cbd7;
  font-size: 11px;
}
.badge {
  padding: 3px 7px;
  border-radius: 999px;
  color: #bdece9;
  background: rgba(37, 210, 207, 0.12);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}
.primary-btn {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  color: #051a22;
  background: linear-gradient(135deg, var(--cyan), #65edbd);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 9px 20px rgba(37, 210, 207, 0.16);
}
.primary-btn:hover {
  filter: brightness(1.08);
}
.log-card {
  color: var(--muted);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 8, 13, 0.82);
  backdrop-filter: blur(7px);
}
.modal {
  width: min(920px, 96vw);
  border: 1px solid rgba(125, 192, 218, 0.28);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #102638, #081720);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}
.intro-modal {
  min-height: 490px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}
.intro-copy {
  align-self: center;
  padding: 48px;
}
.intro-copy h2 {
  margin: 5px 0 13px;
  font-size: 44px;
  line-height: 1;
}
.intro-copy p {
  margin: 0 0 22px;
  color: #bdd0db;
  font-size: 16px;
  line-height: 1.6;
}
.intro-copy label {
  display: block;
  color: #9bb1bf;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.intro-copy input {
  width: 100%;
  margin: 6px 0 12px;
  padding: 12px;
  border: 1px solid rgba(145, 169, 186, 0.28);
  border-radius: 9px;
  color: white;
  background: #07131d;
}
.intro-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}
.intro-character {
  display: grid;
  align-items: end;
  justify-items: center;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(37, 210, 207, 0.16),
      transparent 52%
    ),
    linear-gradient(145deg, rgba(23, 151, 213, 0.08), rgba(37, 210, 207, 0.02));
}
.intro-character img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  object-position: center bottom;
}
@media (max-width: 1050px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
  .scene-panel {
    padding: 12px;
  }
  .stage-media {
    position: relative;
    top: 0;
  }
  .sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .sidebar section {
    margin: 0;
  }
  .hud > div {
    min-width: 78px;
    padding-inline: 8px;
  }
}
@media (max-width: 720px) {
  .topbar {
    height: auto;
    min-height: 66px;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 8px;
  }
  .brand small {
    display: none;
  }
  .hud {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .hud > div {
    padding: 2px 7px;
    min-width: 68px;
  }
  .game-layout {
    min-height: 0;
  }
  .scene-panel {
    padding: 8px;
  }
  .stage-media {
    aspect-ratio: 4/3;
  }
  .scene-image {
    object-position: center;
  }
  .laptop-dock {
    right: 7px;
    top: 40%;
    width: 116px;
    padding: 8px;
  }
  .laptop-dock small {
    display: none;
  }
  .guide {
    display: none;
  }
  .scene-label {
    bottom: 10px;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .intro-modal {
    grid-template-columns: 1fr;
  }
  .intro-copy {
    padding: 28px;
  }
  .intro-copy h2 {
    font-size: 34px;
  }
  .intro-character {
    display: none;
  }
}

.status-good {
  color: var(--good);
}
.status-warn {
  color: var(--warn);
}
.station-actions {
  position: absolute;
  z-index: 6;
  transform: translate(-50%, -50%);
}
.station-actions .zone {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}
.station-actions .zone:hover {
  transform: translateY(-4px) scale(1.05);
}
.browser-orb {
  position: absolute;
  right: -28px;
  bottom: 8px;
  width: 27px;
  height: 27px;
  border: 1px solid #e9f7ff;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #157fd0, #30d1d2);
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 0 0 4px rgba(21, 127, 208, 0.2);
}
.back-scene {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 13;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 9px;
  color: white;
  background: rgba(4, 15, 24, 0.87);
  cursor: pointer;
}
.desktop-shortcuts {
  position: absolute;
  z-index: 9;
  left: 23px;
  top: 75px;
  display: grid;
  gap: 14px;
}
.desktop-shortcuts button,
.admin-desktop > button {
  width: 94px;
  padding: 8px 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(3, 19, 31, 0.18);
  cursor: pointer;
  text-shadow: 0 2px 4px #000;
}
.desktop-shortcuts button:hover,
.admin-desktop > button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(17, 119, 176, 0.42);
}
.desktop-shortcuts span,
.admin-desktop > button span {
  width: 44px;
  height: 40px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: linear-gradient(145deg, #132738, #2479a5);
  font:
    800 20px Consolas,
    "Courier New",
    monospace;
}
.desktop-shortcuts b,
.admin-desktop > button b {
  display: block;
  margin-top: 5px;
  color: white;
  font-size: 10px;
}
.rack-panel {
  position: absolute;
  z-index: 8;
  right: 25px;
  bottom: 25px;
  width: min(430px, 52%);
  padding: 16px;
  border: 1px solid rgba(37, 210, 207, 0.38);
  border-radius: 14px;
  background: rgba(4, 17, 27, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}
.router-device,
.switch-device {
  padding: 12px;
  border: 1px solid #526573;
  border-radius: 8px;
  background: linear-gradient(#1c252d, #0b1014);
}
.router-device.online {
  border-color: var(--good);
}
.router-device small,
.switch-device small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}
.router-device b,
.switch-device b {
  font-size: 11px;
}
.ports {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.ports i,
.port-row i {
  padding: 5px;
  border: 1px solid #58646c;
  border-radius: 3px;
  color: #b7c4ca;
  background: #050809;
  font-style: normal;
  font-size: 7px;
}
.ports i.linked,
.port-row i.linked {
  border-color: #79ff8a;
  color: #b8ffc1;
  box-shadow: 0 0 10px rgba(64, 217, 145, 0.65);
}
.patch-cable {
  height: 25px;
  width: 48%;
  margin: 0 auto;
  border-left: 5px dashed #5a6670;
  border-right: 5px dashed #5a6670;
}
.patch-cable.connected {
  border-color: #168cce;
}
.port-row {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}
.port-row i {
  width: 25px;
  text-align: center;
}
.rack-action {
  margin-top: 12px;
  font-size: 10px;
}
.laptop-scene {
  background: radial-gradient(circle at 50% 30%, #126f95, #06253a 48%, #04121e);
}
.admin-desktop {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(38, 190, 200, 0.25),
      transparent 35%
    ),
    linear-gradient(145deg, #07324c, #071a2d);
}
.desktop-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(37, 210, 207, 0.2);
  border-radius: 32px;
  color: rgba(51, 223, 213, 0.22);
  font-size: 90px;
  font-weight: 900;
}
.admin-desktop > button {
  position: absolute;
  left: 32px;
  top: 75px;
  z-index: 5;
}
.admin-desktop > button.admin-router-shortcut {
  left: 32px;
}
.admin-desktop > button.admin-cmd-shortcut {
  left: 145px;
}
.admin-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 37px;
  padding: 8px 15px;
  background: rgba(4, 14, 25, 0.9);
  font-size: 14px;
}
.admin-taskbar small {
  float: right;
  color: #c6d8e4;
}
.action-stack {
  display: grid;
  gap: 7px;
}
.action-stack button {
  padding: 8px 9px;
  text-align: left;
  border: 1px solid rgba(145, 169, 186, 0.2);
  border-radius: 8px;
  background: rgba(4, 17, 27, 0.5);
  cursor: pointer;
}
.action-stack button:hover {
  border-color: var(--cyan);
}
.action-stack b,
.action-stack small {
  display: block;
}
.action-stack b {
  font-size: 10px;
}
.action-stack small {
  color: var(--muted);
  font-size: 8px;
}
.objectives li.done {
  opacity: 1;
}
.objectives li.done > span {
  border-color: var(--good);
  color: #062016;
  background: var(--good);
}
.log-card .card-heading button {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #cde0eb;
  background: #102637;
  cursor: pointer;
  font-size: 9px;
}
.log-panel {
  max-height: 120px;
  margin-top: 8px;
  overflow: auto;
}
.log-panel p {
  margin: 0;
  padding: 5px 0;
  border-top: 1px solid rgba(154, 195, 218, 0.08);
  color: #a9beca;
  font-size: 9px;
}
.side-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.side-footer button {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #bed0da;
  background: #0b2130;
  cursor: pointer;
  font-size: 9px;
}
.terminal {
  position: absolute;
  inset: 22px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  border: 1px solid #68737c;
  border-radius: 5px;
  overflow: hidden;
  color: #f2f2f2;
  background: #0c0c0c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
  font-family: Consolas, "Courier New", monospace;
}
.terminal > header {
  height: 34px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 10px;
  color: #111;
  background: #f0f0f0;
  font:
    12px "Segoe UI",
    Arial,
    sans-serif;
}
.terminal > header button {
  width: 46px;
  height: 100%;
  border: 0;
  color: #222;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}
.terminal > header button:hover {
  color: white;
  background: #c42b1c;
}
.terminal-body {
  flex: 1;
  padding: 8px 9px 14px;
  overflow: auto;
  cursor: text;
}
.terminal pre {
  min-height: 0;
  margin: 0;
  color: #f2f2f2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    14px/1.35 Consolas,
    "Courier New",
    monospace;
  user-select: text;
}
.terminal form {
  display: flex;
  align-items: baseline;
}
.terminal form label {
  white-space: nowrap;
}
.terminal form input {
  flex: 1;
  min-width: 60px;
  padding: 0 0 0 2px;
  border: 0;
  outline: 0;
  color: #f2f2f2;
  background: transparent;
  caret-color: white;
  font:
    14px/1.35 Consolas,
    "Courier New",
    monospace;
}
.toast {
  position: absolute;
  left: 50%;
  top: 18px;
  z-index: 50;
  max-width: 70%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  background: rgba(8, 29, 42, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  transition: 0.22s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.warning {
  border-color: rgba(244, 189, 79, 0.65);
  color: #ffdf9b;
}
.toast.success {
  border-color: rgba(64, 217, 145, 0.65);
  color: #aaf2cb;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 13px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 20px;
}
.boss-modal {
  min-height: 470px;
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
}
.boss-character {
  display: grid;
  align-items: end;
  justify-items: center;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(37, 210, 207, 0.14),
    transparent 52%
  );
}
.boss-character img {
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  object-position: center bottom;
}
.dialogue-panel {
  align-self: center;
  padding: 42px;
}
.dialogue-panel h2 {
  margin: 4px 0 16px;
  font-size: 34px;
}
.speech {
  position: relative;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid rgba(154, 195, 218, 0.18);
  border-radius: 14px;
  color: #d8e7ef;
  background: rgba(4, 17, 27, 0.55);
  font-size: 15px;
  line-height: 1.7;
}
.milestone-modal {
  width: min(590px, 94vw);
  padding: 42px;
  text-align: center;
}
.success-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #062018;
  background: var(--good);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(64, 217, 145, 0.22);
}
.milestone-modal h2 {
  margin: 6px 0;
  font-size: 28px;
}
.milestone-modal p {
  margin: 0 0 22px;
  color: #b9ced9;
  line-height: 1.7;
}
.windows-backdrop {
  background: rgba(2, 8, 13, 0.72);
}
.windows-window {
  width: min(1050px, 96vw);
  height: min(760px, 93vh);
  display: flex;
  flex-direction: column;
  border: 1px solid #a9a9a9;
  border-radius: 9px;
  overflow: hidden;
  color: #202020;
  background: #f8f8f8;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.62);
  font-family: "Segoe UI", Arial, sans-serif;
}
.windows-window > header {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 13px;
  color: #444;
  background: #efefef;
}
.windows-window > header button {
  width: 48px;
  height: 100%;
  border: 0;
  color: #333;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}
.windows-window > header button:hover {
  color: white;
  background: #c42b1c;
}
.windows-toolbar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #d6d6d6;
  background: white;
}
.windows-toolbar button {
  width: 34px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 22px;
}
.windows-toolbar span {
  flex: 1;
  padding: 7px 12px;
  border: 1px solid #d1d1d1;
  color: #333;
  background: white;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.windows-content {
  position: relative;
  flex: 1;
  padding: 28px 36px;
  overflow: auto;
  background: linear-gradient(#fff, #f8f8f8);
}
.windows-content h2 {
  margin: 0 0 18px;
  color: #1e5486;
  font-size: 23px;
  font-weight: 400;
}
.view-label {
  position: absolute;
  right: 30px;
  top: 22px;
  font-size: 11px;
}
.control-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.control-categories button,
.windows-link-list button {
  display: flex;
  gap: 15px;
  padding: 18px;
  border: 1px solid transparent;
  text-align: left;
  color: #1765a1;
  background: transparent;
  cursor: pointer;
}
.control-categories button:hover,
.windows-link-list button:hover {
  border-color: #d8e9f7;
  background: #eff8ff;
}
.control-categories span {
  font-size: 38px;
}
.control-categories b,
.control-categories small,
.windows-link-list b,
.windows-link-list small {
  display: block;
}
.control-categories small,
.windows-link-list small {
  margin-top: 5px;
  color: #555;
}
.windows-link-list {
  display: grid;
  width: 70%;
}
.windows-link-list button {
  display: block;
  border-bottom: 1px solid #eee;
}
.network-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 15px 0 30px;
  padding: 20px;
  border: 1px solid #ddd;
}
.network-map span {
  display: grid;
  justify-items: center;
  font-size: 35px;
}
.network-map b {
  font-size: 10px;
}
.network-map .offline {
  opacity: 0.45;
}
.center-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}
.center-layout nav {
  display: grid;
  align-content: start;
}
.center-layout nav button,
.inline-link {
  padding: 7px;
  border: 0;
  text-align: left;
  color: #1765a1;
  background: transparent;
  cursor: pointer;
}
.inline-link {
  padding: 0;
}
.adapter-card button {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border: 1px solid #8eb8d7;
  text-align: left;
  background: #e9f4fb;
  cursor: pointer;
}
.adapter-card span {
  font-size: 38px;
}
.adapter-card b,
.adapter-card small {
  display: block;
}
.windows-note {
  display: block;
  margin-top: 15px;
  color: #555;
}
.ethernet-status,
.adapter-properties,
.ipv4-properties {
  width: min(620px, 100%);
  margin: auto;
  padding: 24px;
  border: 1px solid #b6b6b6;
  background: #f5f5f5;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}
.ethernet-status dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.ethernet-status dd {
  margin: 0;
}
.status-actions,
.property-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.status-actions button,
.property-actions button {
  min-width: 100px;
  padding: 7px 12px;
  border: 1px solid #aaa;
  border-radius: 3px;
  color: #222;
  background: #f9f9f9;
  cursor: pointer;
}
.status-actions button:hover,
.property-actions button:hover {
  border-color: #1675ad;
  background: #eef8ff;
}
.protocol-list {
  height: 210px;
  padding: 5px;
  border: 1px solid #999;
  overflow: auto;
  background: white;
}
.protocol-list button {
  width: 100%;
  display: block;
  padding: 6px;
  border: 0;
  text-align: left;
  color: #111;
  background: white;
  cursor: pointer;
}
.protocol-list button.selected {
  color: white;
  background: #0875bf;
}
.ipv4-properties p {
  font-size: 12px;
}
.radio-row {
  display: block;
  margin: 11px 0;
  font-size: 13px;
}
.radio-row input {
  margin-right: 7px;
}
.ip-fields {
  display: grid;
  gap: 7px;
  margin: 8px 20px 18px;
}
.ip-fields label {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  font-size: 12px;
}
.ip-fields input {
  height: 29px;
  padding: 4px 8px;
  border: 1px solid #999;
  color: #111;
  background: white;
}
.ip-fields.disabled {
  opacity: 0.55;
}
.radio-row.dns {
  margin-top: 22px;
}
.property-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Misión 06 v1.1 — recorrido de configuración fiel a Windows 10/11 */
.windows-window {
  width: min(1180px, 97vw);
  height: min(820px, 96vh);
  border-radius: 7px;
  background: #fff;
}
.windows-window > header {
  min-height: 42px;
  height: 42px;
  padding-left: 16px;
  color: #444;
  font-size: 17px;
}
.windows-window > header span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.windows-toolbar {
  min-height: 58px;
  height: 58px;
}
.windows-toolbar span {
  font-size: 14px;
}
.windows-content {
  padding: 36px 50px;
  background: #fff;
}
.windows-content h2 {
  color: #2b648d;
  font-size: 30px;
}
.network-map {
  min-height: 160px;
  margin-top: 24px;
  background: #fff;
}
.network-map span {
  min-width: 126px;
  font-size: 46px;
}
.network-map b {
  margin-top: 8px;
  color: #222;
  font-size: 14px;
}
.center-layout {
  grid-template-columns: 310px 1fr;
  gap: 42px;
  padding-top: 10px;
}
.center-layout nav button,
.inline-link {
  color: #176b9c;
  font-size: 16px;
  line-height: 1.45;
}
.adapter-card button {
  min-width: 390px;
  border-color: #888;
  background: #d9d9d9;
}
.adapter-properties,
.ipv4-properties {
  color: #111;
  border: 1px solid #9b9b9b;
  border-radius: 9px;
  background: #f3f3f3;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}
.adapter-properties {
  width: min(610px, 100%);
  padding: 18px 26px 14px;
}
.adapter-properties h2 {
  margin: -4px 0 20px;
  color: #333;
  font-size: 20px;
}
.adapter-properties > p {
  margin: 8px 0;
  font-size: 14px;
}
.protocol-list {
  height: 205px;
  padding: 4px;
  border-color: #8e8e8e;
}
.protocol-list button {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 14px;
}
.protocol-list button.selected {
  color: #111;
  background: #cfe8ff;
  outline: 1px solid #7aaee0;
}
.property-actions {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: #f3f3f3;
}
.windows-step-5 .windows-content,
.windows-step-6 .windows-content {
  padding: 16px 28px;
}
.win-tabs.ethernet-tabs {
  margin: 0 -8px 12px;
}
.win-nic-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid #d0d0d0;
  background: #fafafa;
}
.win-nic-row span {
  color: #0787b5;
  font-size: 24px;
}
.win-nic-row b {
  font-size: 13px;
}
.win-nic-row button,
.win-install-actions button {
  min-width: 112px;
  padding: 7px 12px;
  border: 1px solid #aaa;
  border-radius: 3px;
  color: #111;
  background: #fafafa;
}
.win-install-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.win-install-actions button:disabled {
  color: #999;
  background: #eee;
}
.win-install-actions .ipv4-properties-button:not(:disabled) {
  margin-left: auto;
  border-color: #2878bc;
  box-shadow: inset 0 0 0 1px #89bdea;
}
.win-protocol-description {
  min-height: 72px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #c8c8c8;
  color: #222;
}
.win-protocol-description legend,
.win-protocol-description p {
  font-size: 12px;
}
.win-protocol-description p {
  margin: 0;
  line-height: 1.35;
}
.ethernet-dialog-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #c8c8c8;
}
.ipv4-properties-button:not(:disabled) {
  border-color: #2878bc;
  box-shadow: inset 0 0 0 1px #89bdea;
}
.ipv4-properties-v11 {
  width: min(650px, 100%);
  padding: 22px 28px 18px;
}
.win-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin: 0 -8px 20px;
  padding-left: 8px;
  border-bottom: 1px solid #aaa;
}
.win-tabs b {
  padding: 8px 13px 7px;
  border: 1px solid #b7b7b7;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  color: #333;
  background: #e9e9e9;
  font-size: 13px;
  font-weight: 400;
}
.win-tabs b.active {
  position: relative;
  top: 1px;
  padding-top: 9px;
  color: #111;
  background: #f3f3f3;
  font-weight: 600;
}
.ipv4-properties .win-info-copy {
  max-width: 560px;
  margin: 0 0 18px;
  color: #222;
  font-size: 13px;
  line-height: 1.35;
}
.win-radio-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0;
  color: #111;
  font-size: 14px;
}
.win-radio-row input {
  width: 18px;
  height: 18px;
  accent-color: #0879c9;
}
.win-ip-fields {
  gap: 8px;
  margin: 7px 18px 18px;
}
.win-field-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  color: #333;
  font-size: 13px;
}
.win-ip-control {
  width: 190px;
  height: 31px;
  display: grid;
  grid-template-columns: 1fr 8px 1fr 8px 1fr 8px 1fr;
  align-items: center;
  padding: 1px 5px;
  border: 1px solid #8d8d8d;
  border-radius: 1px;
  background: #fff;
}
.win-ip-control:focus-within {
  border-color: #0879c9;
  box-shadow: 0 0 0 1px #0879c9;
}
.win-ip-control input {
  width: 100%;
  min-width: 0;
  height: 25px;
  padding: 0 2px;
  border: 0;
  outline: 0;
  color: #111;
  background: transparent;
  text-align: center;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
.win-ip-control i {
  align-self: end;
  padding-bottom: 3px;
  color: #333;
  font-style: normal;
  text-align: center;
}
.win-ip-control.disabled {
  border-color: #c3c3c3;
  background: #ededed;
}
.win-ip-control.disabled input {
  color: #999;
}
.win-dns-fields {
  margin-bottom: 8px;
}
.win-ipv4-options {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  color: #222;
  font-size: 13px;
}
.win-ipv4-options input {
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
.win-ipv4-options button,
.win-ipv4-actions button {
  min-width: 116px;
  padding: 7px 14px;
  border: 1px solid #9a9a9a;
  border-radius: 3px;
  color: #111;
  background: #fafafa;
}
.win-ipv4-actions {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px solid #c7c7c7;
}
.win-ipv4-actions button.primary {
  border-color: #176eaa;
  box-shadow: inset 0 0 0 1px #92c7ea;
}
.connection-modal {
  position: relative;
  width: min(680px, 94vw);
  padding: 40px;
}
.connection-modal h2 {
  margin: 5px 0;
}
.connection-modal > p {
  color: #b7cbd7;
}
.connection-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.connection-options button {
  padding: 24px;
  border: 1px solid rgba(145, 169, 186, 0.25);
  border-radius: 13px;
  text-align: left;
  background: #0a1c29;
  cursor: pointer;
}
.connection-options button:hover {
  border-color: var(--cyan);
  background: #0d2a3b;
}
.connection-options span {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 10px;
  color: #07141d;
  background: var(--cyan);
  font-size: 24px;
}
.connection-options b,
.connection-options small {
  display: block;
}
.connection-options b {
  margin-top: 12px;
}
.connection-options small {
  margin-top: 4px;
  color: var(--muted);
}
.router-admin {
  width: min(1080px, 96vw);
  height: min(720px, 92vh);
  color: #25313a;
  background: #eff4f7;
}
.admin-workspace {
  width: min(1320px, 97vw);
  height: min(760px, 94vh);
  overflow: hidden;
  color: #25313a;
  background: #eff4f7;
}
.admin-workspace > header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: white;
  background: #092335;
}
.admin-workspace > header b,
.admin-workspace > header small {
  display: block;
}
.admin-workspace > header small {
  margin-top: 2px;
  color: #9db5c4;
}
.admin-workspace > header button {
  width: 42px;
  height: 42px;
  border: 0;
  color: white;
  background: transparent;
  cursor: pointer;
  font-size: 23px;
}
.admin-workspace-grid {
  height: calc(100% - 58px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(540px, 1.1fr) minmax(430px, 0.9fr);
  overflow: hidden;
}
.admin-cmd-pane {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  color: #f2f2f2;
  background: #0c0c0c;
  font-family: Consolas, "Courier New", monospace;
}
.admin-cmd-pane > header {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #111;
  background: #f0f0f0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
}
.admin-cmd-pane > header small {
  color: #58636b;
}
.admin-terminal-body {
  min-height: calc(100% - 38px);
  flex: 0 0 auto;
  padding: 10px 12px 14px;
  overflow: visible;
}
.admin-terminal-body pre {
  min-height: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  font:
    13px/1.35 Consolas,
    "Courier New",
    monospace;
}
.admin-terminal-body form {
  display: flex;
  align-items: baseline;
  font:
    13px/1.35 Consolas,
    "Courier New",
    monospace;
}
.admin-terminal-body form label {
  white-space: nowrap;
}
.admin-terminal-body form input {
  min-width: 60px;
  flex: 1;
  padding: 0 0 0 2px;
  border: 0;
  outline: 0;
  color: #f2f2f2;
  background: transparent;
  caret-color: white;
  font: inherit;
}
.admin-terminal-body form button {
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid #6d7880;
  border-radius: 4px;
  color: #111;
  background: #ededed;
  cursor: pointer;
  font:
    10px "Segoe UI",
    Arial,
    sans-serif;
}
.admin-arp-copy {
  max-height: none;
  flex: 0 0 auto;
  overflow: visible;
  border-top: 1px solid #40505a;
  color: #dcecf4;
  background: #102430;
}
.admin-arp-copy > header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 12px;
  background: #153344;
}
.admin-arp-copy > header b,
.admin-arp-copy > header small {
  display: block;
}
.admin-arp-copy > header small {
  margin-top: 2px;
  color: #9fc1d0;
  font-size: 9px;
}
.admin-arp-row {
  display: grid;
  grid-template-columns: 46px 112px 1fr 62px;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-top: 1px solid rgba(157, 198, 216, 0.12);
  font-size: 10px;
}
.admin-arp-row code {
  color: #fff;
  font-size: 11px;
  user-select: text;
}
.admin-arp-row button {
  padding: 5px;
  border: 1px solid #4abfc2;
  border-radius: 5px;
  color: white;
  background: #087c87;
  cursor: pointer;
  font-size: 9px;
}
.admin-router-pane {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 22px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  border-left: 3px solid #253f4e;
  background: #eff4f7;
}
.admin-cmd-pane,
.admin-router-pane {
  scrollbar-width: auto;
}
.admin-cmd-pane {
  scrollbar-color: #71818b #101820;
}
.admin-router-pane {
  scrollbar-color: #7c8e98 #dbe4e9;
}
.admin-cmd-pane::-webkit-scrollbar,
.admin-router-pane::-webkit-scrollbar {
  width: 13px;
}
.admin-cmd-pane::-webkit-scrollbar-track {
  background: #101820;
}
.admin-router-pane::-webkit-scrollbar-track {
  background: #dbe4e9;
}
.admin-cmd-pane::-webkit-scrollbar-thumb,
.admin-router-pane::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 10px;
  background-clip: padding-box;
}
.admin-cmd-pane::-webkit-scrollbar-thumb {
  background-color: #71818b;
}
.admin-router-pane::-webkit-scrollbar-thumb {
  background-color: #7c8e98;
}
.admin-router-pane h2 {
  margin: 3px 0 14px;
}
.admin-router-pane > label {
  display: block;
  font-size: 11px;
  font-weight: 700;
}
.white-table.compact {
  margin-top: 14px;
}
.white-table.compact .table-head,
.white-table.compact .table-row {
  grid-template-columns: 72px 1fr 58px;
}
.white-table.compact .table-row {
  padding: 8px 10px;
}
.white-table.compact .table-row code {
  font-size: 11px;
}
.router-admin > header {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: white;
  background: #092335;
}
.router-admin > header b,
.router-admin > header small {
  display: block;
}
.router-admin > header small {
  color: #9db5c4;
}
.router-admin > header button,
.browser-window > header button {
  width: 42px;
  height: 42px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}
.router-layout {
  height: calc(100% - 62px);
  display: grid;
  grid-template-columns: 210px 1fr;
}
.router-layout nav {
  display: grid;
  align-content: start;
  padding: 18px 0;
  background: #102f42;
}
.router-layout nav b {
  padding: 13px 20px;
  color: #b9ced9;
  font-size: 12px;
}
.router-layout nav b.active {
  color: white;
  border-left: 4px solid #33d3ca;
  background: #0a2333;
}
.router-content {
  padding: 28px 34px;
  overflow: auto;
}
.router-content h2 {
  margin: 3px 0 18px;
}
.filter-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #aad6c3;
  border-radius: 8px;
  color: #1f5c44;
  background: #e3f5ed;
}
.filter-status b {
  font-size: 11px;
}
.router-content > label {
  display: block;
  font-size: 11px;
  font-weight: 700;
}
.mac-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.mac-form input {
  flex: 1;
  padding: 11px;
  border: 1px solid #aab7be;
  border-radius: 6px;
  color: #222;
  background: white;
  font:
    14px Consolas,
    "Courier New",
    monospace;
}
.mac-form button {
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: #087ca2;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.white-table {
  margin-top: 20px;
  border: 1px solid #c6d0d5;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1fr 2fr 90px;
  align-items: center;
}
.table-head {
  padding: 9px 13px;
  color: #5a6b74;
  background: #e5edf1;
  font-size: 9px;
  font-weight: 900;
}
.table-row {
  padding: 11px 13px;
  border-top: 1px solid #dde4e8;
}
.table-row code {
  font-size: 13px;
}
.table-row button {
  padding: 5px;
  border: 1px solid #d3a7a7;
  border-radius: 5px;
  color: #9c3030;
  background: #fff5f5;
  cursor: pointer;
}
.empty-row {
  padding: 25px;
  text-align: center;
  color: #75858d;
}
.policy-check {
  padding: 11px;
  border-radius: 7px;
  color: #7b5c22;
  background: #fff2cd;
}
.policy-check.ok {
  color: #216343;
  background: #dff4e8;
}
.browser-window {
  width: min(1120px, 97vw);
  height: min(760px, 94vh);
  display: flex;
  flex-direction: column;
  color: #222;
  background: white;
}
.browser-window > header {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 10px;
  color: #222;
  background: #d8e1e8;
}
.browser-tabs span {
  display: block;
  padding: 8px 20px;
  border-radius: 8px 8px 0 0;
  background: white;
}
.address-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 7px 14px;
  border-bottom: 1px solid #ddd;
  background: #f5f7f8;
}
.address-bar b {
  flex: 1;
  padding: 7px 13px;
  border-radius: 18px;
  background: white;
  font-size: 11px;
}
.address-bar small {
  font-weight: 800;
}
.youtube-page {
  flex: 1;
  overflow: hidden;
}
.yt-head {
  height: 57px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  border-bottom: 1px solid #eee;
}
.yt-head > b {
  font-size: 20px;
}
.yt-head > b i {
  display: inline-grid;
  width: 28px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  color: white;
  background: #f00;
  font-style: normal;
  font-size: 12px;
}
.yt-head > span {
  flex: 1;
  max-width: 520px;
  padding: 8px 18px;
  border: 1px solid #ccc;
  border-radius: 20px;
  color: #777;
}
.yt-head em {
  margin-left: auto;
}
.yt-body {
  height: calc(100% - 57px);
  display: grid;
  grid-template-columns: 190px 1fr;
}
.yt-body nav {
  padding: 22px;
  line-height: 2.6;
  background: #fafafa;
}
.yt-body main {
  padding: 24px;
  overflow: auto;
}
.video-hero {
  height: 240px;
  display: grid;
  align-content: center;
  padding: 38px;
  border-radius: 14px;
  color: white;
  background:
    radial-gradient(
      circle at 80% 30%,
      rgba(44, 218, 210, 0.5),
      transparent 25%
    ),
    linear-gradient(135deg, #071b2b, #0a7194);
}
.video-hero span {
  color: #53e2d6;
  font-size: 11px;
  letter-spacing: 2px;
}
.video-hero b {
  font-size: 30px;
}
.video-hero small {
  margin-top: 7px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.video-grid i {
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dde5e9, #adbfc8);
}
.blocked-page {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #58656d;
  text-align: center;
}
.blocked-page > div {
  font-size: 70px;
}
.blocked-page h2 {
  margin: 5px;
  color: #25313a;
}
.blocked-page p {
  font:
    12px Consolas,
    "Courier New",
    monospace;
}
.final-modal {
  width: min(980px, 96vw);
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
}
.final-character {
  display: grid;
  align-items: end;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(64, 217, 145, 0.16),
    transparent 52%
  );
}
.final-character img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: center bottom;
}
.final-content {
  padding: 35px;
}
.final-content .success-mark {
  margin-left: 0;
}
.final-content h2 {
  margin: 4px 0;
  font-size: 30px;
}
.final-content > p {
  color: #b9ced9;
}
.final-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.final-stats div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(4, 17, 27, 0.45);
}
.final-stats small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}
.debrief {
  padding: 14px;
  border-left: 3px solid var(--good);
  background: rgba(64, 217, 145, 0.06);
}
.debrief p {
  margin: 7px 0;
  color: #bfd2dc;
  font-size: 11px;
}
.final-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.final-actions button {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #102b3d;
  cursor: pointer;
}
.final-actions .primary-btn {
  background: linear-gradient(135deg, var(--cyan), #65edbd);
}
@media (max-width: 800px) {
  .boss-modal,
  .final-modal {
    grid-template-columns: 1fr;
  }
  .boss-character,
  .final-character {
    display: none;
  }
  .dialogue-panel,
  .final-content {
    padding: 28px;
  }
  .control-categories,
  .connection-options {
    grid-template-columns: 1fr;
  }
  .router-layout {
    grid-template-columns: 130px 1fr;
  }
  .admin-workspace-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .admin-cmd-pane,
  .admin-router-pane {
    height: auto;
    min-height: 520px;
    overflow: visible;
  }
  .admin-router-pane {
    border-top: 3px solid #253f4e;
    border-left: 0;
  }
  .router-layout nav b {
    padding: 10px;
    font-size: 9px;
  }
  .router-content {
    padding: 20px;
  }
  .windows-content {
    padding: 20px;
  }
  .center-layout {
    grid-template-columns: 1fr;
  }
  .rack-panel {
    width: 75%;
    right: 12px;
  }
  .desktop-shortcuts {
    top: 55px;
  }
  .terminal {
    inset: 10px;
  }
  .laptop-dock {
    display: none;
  }
}
