@font-face {
  font-family: "Game of Squids";
  src:
    url("./fonts/game_of_squids/GameOfSquids.otf") format("opentype"),
    url("./fonts/game_of_squids/GameOfSquids.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #050905;
  color: #d6ffd6;
  font-family: "Consolas", "Courier New", monospace;
}

body {
  overflow-x: hidden;
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

:root {
  --side-gutter: clamp(180px, 22vw, 420px);
}

#top-bar {
  position: fixed;
  top: 10px;
  left: var(--side-gutter);
  right: var(--side-gutter);
  padding: 0 12px;
  z-index: 100020;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

#ond-au {
  font-family: 'Game of Squids';
  font-size: 4rem;
  color: #0f0;
  text-shadow: 0 0 10px #0f0;
  user-select: none;
  pointer-events: none;
  display: inline-block;
  vertical-align: middle;
  z-index: 100025;
}

#ond-copy {
  font-family: monospace;
  font-size: 1.1rem;
  color: #0f0;
  text-shadow: 0 0 8px #0f0, 0 0 16px #0f0;
  user-select: none;
  display: inline-block;
  margin-left: 10px;
  z-index: 100026;
  pointer-events: none;
}

#top-bar #digital-clock {
  font-family: monospace;
  font-size: 1.5rem;
  color: #0f0;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
  margin-left: auto;
  z-index: 100021;
}

.app {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: calc(100% - (2 * var(--side-gutter)));
  margin: 0 auto;
  padding: 20px 20px 180px;
}

#runtimeSidebar {
  position: fixed;
  left: 12px;
  top: 110px;
  width: calc(var(--side-gutter) - 24px);
  max-height: calc(100vh - 140px);
  overflow: auto;
  z-index: 100010;
  padding: 10px;
  border: 1px solid rgba(0, 255, 0, 0.25);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 18px rgba(0, 255, 0, 0.12);
}

#quickStartSidebar {
  position: fixed;
  right: 12px;
  top: 110px;
  width: calc(var(--side-gutter) - 24px);
  max-height: calc(100vh - 140px);
  overflow: auto;
  z-index: 100010;
  padding: 10px;
  border: 1px solid rgba(0, 255, 0, 0.25);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 18px rgba(0, 255, 0, 0.12);
}

.quickstart-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9eff9e;
  margin-bottom: 8px;
}

.quickstart-card {
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 6px;
  font-size: 11px;
}

.quickstart-step {
  color: #b9ffb9;
}

.quickstart-note {
  margin-top: 8px;
  font-size: 11px;
  color: #8fd18f;
}
.field-help {
  font-size: 11px;
  color: #8fd18f;
  margin: -4px 0 6px;
}
.field-help code {
  color: #b7ffb7;
}
.quickstart-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(0, 255, 0, 0.2);
}

.runtime-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9eff9e;
  margin-bottom: 8px;
}

.runtime-section {
  margin-bottom: 10px;
}

.runtime-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  color: #0ff;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.runtime-section-title span {
  color: #9eff9e;
  font-family: monospace;
}

.runtime-list {
  display: grid;
  gap: 8px;
}

.runtime-item {
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 8px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.35);
}

.runtime-line {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

.runtime-index {
  color: #9eff9e;
  font-family: monospace;
}

.runtime-name {
  color: #d6ffd6;
  font-weight: 600;
}

.runtime-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.runtime-actions button {
  padding: 4px 8px;
  font-size: 11px;
}

.runtime-note {
  margin-top: 8px;
  font-size: 11px;
  color: #8fcd8f;
}

h1 {
  margin: 0;
  font-size: 2rem;
  color: #0f0;
  text-shadow: 0 0 10px #0f0;
  font-family: "Game of Squids", Arial, sans-serif;
  letter-spacing: 0.06em;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(0, 255, 0, 0.25);
  border-radius: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.12);
}

.hero h1 {
  text-transform: uppercase;
}

.hero p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #b9ffb9;
}

.tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tags span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 0, 0.35);
  background: rgba(0, 255, 0, 0.08);
  color: #9eff9e;
}

.legend {
  font-size: 0.9rem;
  background: rgba(0,0,0,0.15);
  padding: 6px;
  border-radius: 5px;
  margin-top: 10px;
  border: 1px solid rgba(0,255,0,0.25);
  box-shadow: 0 0 12px rgba(0,255,0,0.12);
  backdrop-filter: blur(2px);
}
.legend-item { display: flex; align-items: center; }
.color-box { width: 12px; height: 12px; margin-right: 6px; }
.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.legend-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}
.legend-link {
  color: #0f0;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(0, 255, 0, 0.4);
  padding-bottom: 2px;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
}
.legend-link:hover {
  color: #9eff9e;
  border-bottom-color: rgba(0, 255, 0, 0.7);
}

.build-stamp {
  margin-top: 6px;
  font-size: 11px;
  color: #6fbf6f;
  font-family: "Consolas", "Courier New", monospace;
}

.build-paths {
  margin-top: 4px;
  font-size: 11px;
  color: #6fbf6f;
  font-family: "Consolas", "Courier New", monospace;
  word-break: break-all;
}

button, input, select {
  font-family: inherit;
}

textarea {
  font-family: inherit;
  background: rgba(0, 0, 0, 0.4);
  color: #d6ffd6;
  border: 1px solid rgba(0, 255, 0, 0.35);
  border-radius: 6px;
  padding: 6px 8px;
  resize: vertical;
}

button {
  background: rgba(0, 255, 0, 0.12);
  color: #0f0;
  border: 1px solid #0f0;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.1) inset;
}

button:hover {
  background: rgba(0, 255, 0, 0.3);
}

.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sandbox-launch {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.panel {
  margin-top: 16px;
  border: 1px solid rgba(0, 255, 0, 0.25);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 14px;
  box-shadow: inset 0 0 14px rgba(0, 255, 0, 0.08);
}

.meters-card {
  margin-top: 16px;
  background: rgba(0,0,0,0.12);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,255,0,0.25);
  box-shadow: 0 0 12px rgba(0,255,0,0.12);
  backdrop-filter: blur(3px);
}
.meters-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:8px; }
.bar-wrap { width:100%; height:8px; background: rgba(255,255,255,0.1); border-radius:10px; overflow:hidden; margin:2px 0 4px 0; }
.bar { height:100%; width:0%; background: linear-gradient(90deg, #16a34a, #22c55e); }
.meter-title { font-weight:bold; margin-bottom:2px; }
.nums { font-family:monospace; font-size:12px; color:#e5e7eb; }
.meter canvas { display:block; width:100%; height:28px; }

.panel-title {
  color: #0ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  align-items: center;
}
.panel-grid .field-full {
  grid-column: 1 / -1;
}
.panel-grid .field-help {
  grid-column: 1 / -1;
}

.panel-grid input, .panel-grid select {
  background: rgba(0, 0, 0, 0.4);
  color: #d6ffd6;
  border: 1px solid rgba(0, 255, 0, 0.35);
  border-radius: 6px;
  padding: 6px 8px;
}

.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.note {
  color: #6fbf6f;
  font-size: 11px;
}

.panel-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.panel-note {
  margin: 8px 0;
  font-size: 12px;
  color: #a7f7a7;
}

.ports-helper {
  border: 1px dashed rgba(0, 255, 0, 0.25);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.ports-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ports-badge {
  padding: 2px 6px;
  border: 1px solid rgba(0, 255, 0, 0.45);
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  color: #9eff9e;
}

.ports-hint {
  font-size: 11px;
  color: #8fcd8f;
}

.ports-list {
  font-family: monospace;
  font-size: 11px;
  color: #9eff9e;
  max-height: 80px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

#docsOverlay { position:fixed; inset:0; background:rgba(0,0,0,0.6); display:none; align-items:center; justify-content:center; z-index: 9999; }
#docsModal {
  background: rgba(0,0,0,0.25);
  border:1px solid #0f0; border-radius:8px; width:min(900px, 92vw);
  max-height:85vh; overflow:auto; padding:14px; color:#ddd;
  box-shadow: 0 0 18px rgba(0,255,0,0.18);
  backdrop-filter: blur(6px);
}
#docsHeader {
  display:flex; justify-content:space-between; align-items:center;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(0,255,0,0.25);
  border-radius: 6px;
  padding: 8px;
  backdrop-filter: blur(4px);
}
#docsHeader h2 { margin:0; color:#0f0; }
#closeDocs {
  background: rgba(255,51,51,0.2); color:#fff; border:1px solid #f33; border-radius:4px; padding:6px 10px; cursor:pointer;
  backdrop-filter: blur(4px);
}
#closeDocs:hover { background: rgba(255,102,102,0.35); }
#docsMeta {
  font-family:monospace; font-size:12px;
  background: rgba(0,0,0,0.12);
  padding:8px; border-radius:6px; margin:8px 0;
  border: 1px solid rgba(0,255,0,0.25);
  backdrop-filter: blur(3px);
}
#docsList {
  padding:8px;
  border-radius:6px;
  border: 1px solid rgba(0,255,0,0.2);
  background: rgba(0,0,0,0.2);
  min-height: 120px;
}

#portsOverlay { position:fixed; inset:0; background:rgba(0,0,0,0.6); display:none; align-items:center; justify-content:center; z-index: 9999; }
#portsModal {
  background: rgba(0,0,0,0.25);
  border:1px solid #0f0; border-radius:8px; width:min(980px, 94vw);
  max-height:85vh; overflow:auto; padding:14px; color:#ddd;
  box-shadow: 0 0 18px rgba(0,255,0,0.18);
  backdrop-filter: blur(6px);
}
#portsHeader {
  display:flex; justify-content:space-between; align-items:center;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(0,255,0,0.25);
  border-radius: 6px;
  padding: 8px;
  backdrop-filter: blur(4px);
}
#portsHeader h2 { margin:0; color:#0f0; }
#closePorts {
  background: rgba(255,51,51,0.2); color:#fff; border:1px solid #f33; border-radius:4px; padding:6px 10px; cursor:pointer;
  backdrop-filter: blur(4px);
}
#closePorts:hover { background: rgba(255,102,102,0.35); }
#portsMeta {
  font-family:monospace; font-size:12px;
  background: rgba(0,0,0,0.12);
  padding:8px; border-radius:6px; margin:8px 0;
  border: 1px solid rgba(0,255,0,0.25);
  backdrop-filter: blur(3px);
}
#portsListWrap {
  padding:6px;
  border-radius:6px;
  border: 1px solid rgba(0,255,0,0.2);
  background: rgba(0,0,0,0.2);
}
#portsTable {
  width: 100%;
  border-collapse: collapse;
  font-family: monospace;
  font-size: 12px;
}
#portsTable th, #portsTable td {
  border-bottom: 1px solid rgba(0,255,0,0.2);
  padding: 6px 8px;
  text-align: left;
}
#portsTable thead {
  color: #9eff9e;
}

#runtimeOverlay { position:fixed; inset:0; background:rgba(0,0,0,0.6); display:none; align-items:center; justify-content:center; z-index: 9999; }
#runtimeModal {
  background: rgba(0,0,0,0.25);
  border:1px solid #0f0; border-radius:8px;
  width:min(960px, 90vw);
  height: min(620px, 75vh);
  padding:12px;
  color:#ddd;
  box-shadow: 0 0 18px rgba(0,255,0,0.18);
  backdrop-filter: blur(6px);
  resize: both;
  overflow: auto;
}
#runtimeModal.is-minimized {
  height: 44px;
  width: 260px;
  overflow: hidden;
}
#runtimeHeader {
  display:flex; justify-content:space-between; align-items:center;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(0,255,0,0.25);
  border-radius: 6px;
  padding: 6px 8px;
  backdrop-filter: blur(4px);
}
#runtimeHeader h2 { margin:0; color:#0f0; font-size:14px; }
.runtime-header-actions { display:flex; gap:6px; }
#runtimeMeta {
  font-family:monospace; font-size:12px;
  background: rgba(0,0,0,0.12);
  padding:6px; border-radius:6px; margin:8px 0;
  border: 1px solid rgba(0,255,0,0.25);
}
#runtimeBody {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 10px;
}
#runtimeFrame {
  width: 100%;
  min-height: 360px;
  border: 1px solid rgba(0,255,0,0.2);
  background: rgba(0,0,0,0.2);
}
#runtimeSide {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}
#runtimeDetails {
  border: 1px solid rgba(0,255,0,0.2);
  border-radius: 6px;
  padding: 8px;
  background: rgba(0,0,0,0.2);
  font-family: monospace;
  font-size: 11px;
  white-space: pre-wrap;
}
#runtimeConsole {
  border: 1px solid rgba(0,255,0,0.2);
  border-radius: 6px;
  padding: 8px;
  background: rgba(0,0,0,0.2);
  display: grid;
  gap: 8px;
}
.runtime-console-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9eff9e;
}
.console-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: none;
  border: 1px solid rgba(0, 255, 0, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #c7ffc7;
}
.console-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.console-pill-time {
  font-size: 10px;
  color: #a7d8a7;
  letter-spacing: 0.04em;
  text-transform: none;
}
.console-pill.is-on {
  border-color: rgba(34, 197, 94, 0.7);
  color: #9eff9e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}
.console-pill.is-off {
  border-color: rgba(255, 99, 99, 0.6);
  color: #ffb4b4;
}
.console-pill.is-warn {
  border-color: rgba(245, 158, 11, 0.7);
  color: #ffd28a;
}
.runtime-console-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.runtime-console-controls label {
  color: #b9ffb9;
}
.runtime-console-shell {
  display: none;
}
.runtime-console-shell.is-visible {
  display: inline-flex;
}
.runtime-console-ack {
  font-size: 11px;
}
.runtime-console-input {
  display: flex;
  gap: 6px;
}
.runtime-console-input input {
  flex: 1;
}

#thirdPartyOverlay { position:fixed; inset:0; background:rgba(0,0,0,0.6); display:none; align-items:center; justify-content:center; z-index: 9999; }
#thirdPartyModal {
  background: rgba(0,0,0,0.25);
  border:1px solid #0f0; border-radius:8px; width:min(900px, 92vw);
  max-height:85vh; overflow:auto; padding:14px; color:#ddd;
  box-shadow: 0 0 18px rgba(0,255,0,0.18);
  backdrop-filter: blur(6px);
}
#thirdPartyHeader {
  display:flex; justify-content:space-between; align-items:center;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(0,255,0,0.25);
  border-radius: 6px;
  padding: 8px;
  backdrop-filter: blur(4px);
}
#thirdPartyHeader h2 { margin:0; color:#0f0; }
#closeThirdParty {
  background: rgba(255,51,51,0.2); color:#fff; border:1px solid #f33; border-radius:4px; padding:6px 10px; cursor:pointer;
  backdrop-filter: blur(4px);
}
#closeThirdParty:hover { background: rgba(255,102,102,0.35); }
#thirdPartyMeta {
  font-family:monospace; font-size:12px;
  background: rgba(0,0,0,0.12);
  padding:8px; border-radius:6px; margin:8px 0;
  border: 1px solid rgba(0,255,0,0.25);
  backdrop-filter: blur(3px);
}
#thirdPartyList {
  padding:8px;
  border-radius:6px;
  border: 1px solid rgba(0,255,0,0.2);
  background: rgba(0,0,0,0.2);
  min-height: 120px;
}

.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.docker-daemon-btn {
  padding: 6px 10px;
  font-size: 11px;
}

.docker-daemon-btn.is-stop {
  background: rgba(255, 0, 0, 0.12);
  color: #ffb3b3;
  border-color: #ff6b6b;
}

.docker-daemon-btn.is-stop:hover {
  background: rgba(255, 0, 0, 0.25);
}

.docker-daemon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 0, 0.3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill.is-ok {
  color: #9eff9e;
  border-color: rgba(0, 255, 0, 0.5);
}

@media (max-width: 900px) {
  :root { --side-gutter: 24px; }
  .app { width: 100%; padding: 16px 24px 160px; }
  #top-bar { left: 0; right: 0; padding: 0 24px; }
  #runtimeSidebar {
    position: static;
    width: auto;
    max-height: none;
    margin: 12px 24px;
  }
  #quickStartSidebar {
    position: static;
    width: auto;
    max-height: none;
    margin: 12px 24px;
  }
}

.status-pill.is-bad {
  color: #ff9a9a;
  border-color: rgba(255, 0, 0, 0.5);
}

.container-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.container-row {
  border: 1px solid rgba(0, 255, 0, 0.25);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
}

.container-main {
  flex: 1;
}

.container-title {
  color: #b4ffb4;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.container-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #9eff9e;
}

.container-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.container-empty {
  padding: 10px;
  border: 1px dashed rgba(0, 255, 0, 0.3);
  border-radius: 10px;
  color: #9eff9e;
  font-size: 12px;
}

.danger {
  border-color: #ff6666;
  color: #ffb3b3;
  background: rgba(255, 0, 0, 0.12);
}

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 0, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  color: #b4ffb4;
  letter-spacing: 0.05em;
  font-weight: bold;
}

.card-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-meta {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.card-meta span {
  color: #8dff8d;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  display: inline-block;
  min-width: 70px;
}

.card-meta code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 4px;
  padding: 2px 4px;
}

.card-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.output {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  min-height: 80px;
  font-family: "Consolas", "Courier New", monospace;
}

.output-line.ok {
  color: #9dff9d;
}

.output-line.error {
  color: #ff9a9a;
}

.output-line.muted {
  color: #6fbf6f;
}

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.overlay-modal {
  width: min(1000px, 94vw);
  max-height: 85vh;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 0, 0.3);
  background: rgba(0, 0, 0, 0.4);
  padding: 14px;
  color: #d6ffd6;
  box-shadow: 0 0 18px rgba(0, 255, 0, 0.18);
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 0, 0.25);
  background: rgba(0, 0, 0, 0.2);
}

.overlay-header h2 {
  margin: 0;
  color: #0f0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.overlay-meta {
  margin-top: 8px;
  padding: 8px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 0, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.overlay-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.console-modal {
  width: min(1100px, 94vw);
  height: min(80vh, 760px);
  resize: both;
  overflow: auto;
}

.console-warning {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 180, 0, 0.5);
  background: rgba(255, 180, 0, 0.08);
  font-size: 12px;
  color: #ffe4a6;
}

.console-controls {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.console-output {
  height: 320px;
  overflow: auto;
  white-space: pre-wrap;
}

.console-input {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.console-input input {
  flex: 1;
  min-width: 200px;
}

.overlay-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.overlay-row input {
  flex: 1;
  min-width: 160px;
  background: rgba(0, 0, 0, 0.4);
  color: #d6ffd6;
  border: 1px solid rgba(0, 255, 0, 0.35);
  border-radius: 6px;
  padding: 6px 8px;
}

.roadmap {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.roadmap h3 {
  margin: 0 0 4px;
  color: #0ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.roadmap p {
  margin: 0;
  font-size: 12px;
  color: #c9ffc9;
}

.tutorial {
  margin-top: 16px;
  border: 1px solid rgba(0, 255, 0, 0.25);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px;
}

.tutorial summary {
  cursor: pointer;
  color: #0ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  list-style: none;
}

.tutorial summary::-webkit-details-marker {
  display: none;
}

.tutorial summary::before {
  content: '+';
  display: inline-block;
  margin-right: 8px;
  color: #0f0;
}

.tutorial[open] summary::before {
  content: '-';
}

.tutorial-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.tutorial-card {
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #c9ffc9;
  font-size: 12px;
}

.tutorial-card h3 {
  margin: 0 0 6px;
  color: #0ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tutorial-card ul,
.tutorial-card ol {
  margin: 6px 0 0 18px;
  padding: 0;
}

.tutorial-placeholder {
  margin-top: 8px;
  font-size: 11px;
  color: #9eff9e;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .panel-actions {
    justify-content: flex-start;
  }
}
