:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-deep: #02040a;
  --panel: rgba(6, 12, 24, 0.72);
  --panel-strong: rgba(2, 6, 12, 0.86);
  --panel-soft: rgba(0, 0, 0, 0.32);
  --fg: #d0e0f0;
  --blue: #2060f0;
  --blue-soft: #79a7ff;
  --orange: #f08050;
  --orange-soft: #ffb08c;
  --good: #37ff9b;
  --warn: #ffcc66;
  --bad: #ff6b6b;
  --dim: rgba(208, 224, 240, 0.72);
  --dim2: rgba(208, 224, 240, 0.45);
  --hint: rgba(208, 224, 240, 0.38);
  --line: rgba(208, 224, 240, 0.18);
  --line-strong: rgba(208, 224, 240, 0.3);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --shell-radius: 14px;
  --panel-radius: 18px;
  --shell-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -8%, rgba(32, 96, 240, 0.2), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(240, 128, 80, 0.12), transparent 24%),
    linear-gradient(180deg, #04070f 0%, #02040a 36%, #000000 100%);
  color: var(--fg);
  font: 16px/1.5 var(--shell-font);
  letter-spacing: 0.01em;
  text-shadow: 0 0 2px rgba(208, 224, 240, 0.2);
}

* {
  box-sizing: border-box;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(208, 224, 240, 0.35);
}

a:hover {
  border-bottom-color: rgba(208, 224, 240, 0.85);
}

.hdr,
.topbar {
  border: 1px solid var(--line);
  border-radius: var(--shell-radius);
  padding: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(3, 7, 18, 0.28));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.brand,
.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.logo,
.brand-lockup {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo .b,
.brand-lockup strong {
  color: var(--blue);
}

.logo .o,
.brand-lockup span {
  color: var(--orange);
}

.brand-lockup small {
  color: var(--dim2);
  font-size: 12px;
}

.status,
.pill-row,
.topnav,
.shell-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.status {
  row-gap: 8px;
}

.pill,
.meta-pill,
.shell-nav a,
.topnav a,
.ghost-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--dim);
  font: 12px/1.4 var(--shell-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
}

.shell-nav a,
.topnav a,
.ghost-button {
  min-height: 38px;
}

.shell-nav a:hover,
.topnav a:hover,
.ghost-button:hover,
.meta-pill:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}

.button {
  color: var(--fg);
  border-color: rgba(32, 96, 240, 0.42);
  background: linear-gradient(135deg, rgba(32, 96, 240, 0.34), rgba(240, 128, 80, 0.16));
}

.button:hover {
  border-color: rgba(122, 167, 255, 0.5);
}

.pill.good {
  color: var(--good);
  border-color: rgba(55, 255, 155, 0.25);
}

.pill.warn {
  color: var(--warn);
  border-color: rgba(255, 204, 102, 0.25);
}

.pill.bad {
  color: var(--bad);
  border-color: rgba(255, 107, 107, 0.25);
}

.ctxbar,
.prompt-line {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
  overflow-x: auto;
}

.prompt-line {
  color: var(--fg);
  white-space: normal;
  overflow-wrap: anywhere;
}

.prompt-label {
  color: var(--orange);
}

.panel,
.console-sections,
.boot-wrap,
.console-readout,
.console-mini-card {
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: linear-gradient(180deg, rgba(8, 13, 27, 0.72), rgba(5, 8, 18, 0.52));
  box-shadow: var(--shadow);
}

.console-readout,
.console-mini-card {
  padding: 16px 18px;
}

.mono-label,
.eyebrow {
  color: var(--orange-soft);
  font: 12px/1.4 var(--shell-font);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.command-surface {
  margin-top: 14px;
  padding: 18px;
}

.command-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.command-chip {
  text-transform: none;
}

.command-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.command-input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--fg);
  font: 14px/1.4 var(--shell-font);
}

.command-input::placeholder {
  color: var(--hint);
}

.command-history {
  min-height: 11rem;
  max-height: 22rem;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  font: 13px/1.6 var(--shell-font);
}

.command-entry {
  overflow-wrap: anywhere;
}

.command-entry + .command-entry {
  margin-top: 6px;
}

.command-echo {
  color: var(--orange-soft);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.command-history .command-echo:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.command-response {
  color: var(--dim);
}

[id$="-section"] {
  scroll-margin-top: clamp(7rem, 18vw, 14rem);
}

.tytec-command-target {
  border-color: rgba(122, 167, 255, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(122, 167, 255, 0.2), var(--shadow);
}

.blue {
  color: var(--blue);
}

.orange {
  color: var(--orange);
}

.dim {
  color: var(--dim);
}

.dim2 {
  color: var(--dim2);
}

.hint {
  color: var(--hint);
}

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  padding: 18px;
  background: rgba(0, 0, 0, 0.96);
}

.boot-overlay.visible {
  display: block;
}

.boot-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 14px;
}

.boot-title {
  color: var(--blue);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.boot-output {
  min-height: 11.8em;
  max-height: min(70vh, 28rem);
  margin: 0;
  white-space: pre-wrap;
  overflow: auto;
}

.boot-skip {
  margin-top: 8px;
  display: inline-block;
  color: var(--dim);
  border-bottom: 1px dotted var(--dim);
  cursor: pointer;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}

.boot-label {
  color: var(--blue);
}

.boot-step {
  color: var(--orange);
}

.boot-ok {
  color: var(--good);
}

.boot-note {
  color: var(--dim);
}

.shell-section-title,
.section-panel h2,
.hero h1,
.directory-panel h1 {
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  .brand,
  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .status,
  .topnav,
  .shell-nav,
  .pill-row {
    align-items: flex-start;
  }

  .ctxbar {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .command-form {
    flex-direction: column;
    align-items: stretch;
  }

  .command-surface {
    padding: 16px;
  }

  .command-chip-row {
    gap: 8px;
    margin-bottom: 12px;
  }

  .command-history {
    min-height: 10rem;
    padding: 10px;
    font-size: 12.5px;
  }

  .command-echo {
    margin-top: 10px;
    padding-top: 8px;
  }

  .command-form .button {
    width: 100%;
  }
}