.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 40px;
  place-items: center;
  color: var(--ink);
}

.brand-mark img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 12px;
  color: #555;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: none;
}

.lead {
  max-width: 720px;
  color: #555;
  font-size: 1.12rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.intro-hero,
.intro-hero-content {
  display: grid;
  gap: 34px;
}

.intro-hero {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 28px;
}

.intro-copy {
  text-align: center;
}

.intro-kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.intro-copy h1 {
  max-width: 760px;
  margin-right: auto;
  margin-bottom: 18px;
  margin-left: auto;
}

.intro-lead {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
  color: #555;
  font-size: 1.08rem;
  line-height: 1.62;
  text-align: center;
}

.intro-body {
  max-width: 620px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  text-align: center;
}

.intro-portrait {
  display: grid;
  gap: 14px;
  width: min(100%, 300px);
  margin: 0 auto;
}

.intro-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 32%;
  filter: grayscale(1) contrast(1.03);
}

.intro-portrait figcaption {
  max-width: 260px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
}

.dossier-hero-section {
  min-height: auto;
  align-items: start;
}

.dossier-hero {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
  padding: 28px;
}

.dossier-content {
  min-width: 0;
}

.dossier-panel {
  max-width: none;
  min-width: 0;
}

.dossier-panel h2 {
  max-width: 780px;
  font-size: 2rem;
}

.dossier-panel > p {
  max-width: 760px;
}

.dossier-panel p:last-child {
  margin-bottom: 0;
}

.dossier-panel .info-grid {
  margin-top: 22px;
}

.terminal-hero {
  min-height: 88vh;
}

.terminal-window {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-color: #2d2a2c;
  background: #101114;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.18),
    inset 0 3px 0 #a80030;
}

.terminal-bare {
  border-radius: 8px;
}

.terminal-titlebar {
  display: grid;
  min-height: 48px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #1d1e20;
  background: #2a2c30;
  padding: 10px 14px;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.terminal-controls span {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.terminal-controls span:nth-child(1) {
  background: #d96a62;
}

.terminal-controls span:nth-child(2) {
  background: #d6ae44;
}

.terminal-controls span:nth-child(3) {
  background: #5eaf6b;
}

.terminal-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  color: #c7c7c7;
  font-family:
    "DejaVu Sans Mono", "Liberation Mono", "Ubuntu Mono", ui-monospace,
    SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  white-space: nowrap;
}

.terminal-title strong,
.terminal-title span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-title span {
  color: #8f949b;
}

.terminal-screen {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    #101114;
  color: #ede7df;
  padding: 24px;
  font-family:
    "DejaVu Sans Mono", "Liberation Mono", "Ubuntu Mono", ui-monospace,
    SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
}

.terminal-login-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.terminal-login-copy {
  min-width: 0;
}

.terminal-login-copy .terminal-row {
  margin-bottom: 0;
}

.terminal-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-family:
    "DejaVu Sans Mono", "Liberation Mono", "Ubuntu Mono", ui-monospace,
    SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.terminal-toggle:hover {
  transform: translateY(-1px);
}

.terminal-collapsible-body {
  margin-top: 24px;
}

.terminal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.terminal-note {
  color: #8e8b87;
}

.terminal-prompt {
  color: #d70a53;
}

.terminal-command {
  color: #f5f0e8;
}

.terminal-output {
  margin: 0 0 18px;
  color: #f9f5ef;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.15em;
  background: #d70a53;
  transform: translateY(2px);
  animation: cursor-blink 1.05s steps(2, start) infinite;
}

@keyframes cursor-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

.button,
.control-button,
.switch-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button {
  padding: 0 18px;
  font-weight: 700;
}

.button:hover,
.control-button:hover,
.switch-button:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.secondary {
  background: var(--paper);
}

.tab-list {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
  display: none;
}

.tab-control {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 12px 13px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tab-control:hover,
.tab-control.active {
  border-color: var(--ink);
  color: var(--ink);
}

.tab-panel {
  animation: fade-in 180ms ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-grid,
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.profile-rail {
  max-width: 340px;
}

.profile-rail h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}

.profile-rail p {
  margin-bottom: 24px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.profile-rail dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.profile-rail dl div {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.profile-rail dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-rail dd {
  margin: 7px 0 0;
  color: #555;
  font-size: 0.94rem;
  line-height: 1.55;
}

.profile-dossier,
.profile-copy {
  min-width: 0;
}

.profile-copy {
  max-width: 760px;
}

.profile-copy h2 {
  font-size: 2rem;
}

.profile-copy p:last-child {
  margin-bottom: 0;
}

.mini-card,
.state-card,
.info-grid-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--side);
}

.mini-card {
  min-height: 138px;
  padding: 20px;
}

.mini-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.accordion-list {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-bottom: 1px solid var(--border);
}

.accordion-item {
  border-top: 1px solid var(--border);
}

.accordion-item summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  padding: 20px 0;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.accordion-title {
  max-width: 560px;
  min-width: 0;
}

.accordion-meta {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: start;
  gap: 12px;
  justify-self: stretch;
  text-align: left;
}

.accordion-toggle {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
}

.accordion-toggle::before {
  content: "+";
}

.accordion-item[open] .accordion-toggle::before {
  content: "-";
}

.accordion-item strong,
.accordion-item em,
.accordion-item small {
  display: block;
}

.accordion-item strong {
  margin-bottom: 3px;
  font-size: 1.02rem;
}

.accordion-item em {
  color: var(--muted);
  font-style: italic;
}

.accordion-item small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.accordion-body {
  max-width: 680px;
  padding: 0 0 24px;
}

.accordion-body p {
  max-width: 620px;
  margin-bottom: 12px;
}

.accordion-body ul {
  max-width: 640px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.accordion-body li {
  margin-bottom: 8px;
  color: #555;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--side);
  color: #555;
  padding: 6px 9px;
  font-size: 0.78rem;
}

.info-grid-item {
  padding: 18px;
}

.info-grid-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-grid-item p {
  margin-bottom: 0;
  color: #555;
  font-size: 0.95rem;
}

.select-control {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.case-studies-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding: 0 22px;
}

.case-studies-heading h2 {
  margin-bottom: 0;
}

.case-studies-heading p {
  max-width: 660px;
  margin-bottom: 0;
  color: #555;
}

.case-studies-heading {
  text-align: center;
}

.case-studies-heading p,
.case-study-copy {
  margin-right: auto;
  margin-left: auto;
}

.case-study-list {
  display: grid;
  gap: 18px;
}

.case-study-tabs,
.case-study-panels,
.case-study-panel {
  min-width: 0;
}

.case-study-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
  padding: 22px;
}

.case-study-copy {
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.case-study-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.case-study-kicker span,
.case-study-kicker small,
.case-study-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-study-kicker small {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--side);
  padding: 5px 8px;
}

.case-study-card h3 {
  max-width: 720px;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 7vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: left;
}

.case-study-card p {
  color: #555;
}

.case-study-highlights {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.case-study-highlights div {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.case-study-highlights span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-study-highlights strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.45;
}

.flow-diagram {
  margin: 28px 0;
}

.flow-track {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-node {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 92px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 12px;
  align-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--side);
  padding: 14px;
}

.flow-node:not(:last-child)::after {
  position: absolute;
  bottom: -11px;
  left: 32px;
  width: 1px;
  height: 11px;
  content: "";
  background: var(--border-strong);
}

.flow-node span {
  grid-row: 1 / 3;
  color: var(--muted);
  font-family:
    "DejaVu Sans Mono", "Liberation Mono", "Ubuntu Mono", ui-monospace,
    SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.flow-node strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.flow-node small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.flow-feedback {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
}

.flow-feedback span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flow-feedback strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.step-debugger {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 18px;
  margin: 28px 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(250, 250, 250, 0.96)),
    var(--side);
  padding: 16px;
}

.step-debugger-header {
  display: grid;
  gap: 16px;
}

.step-debugger-header span,
.debugger-panel-heading span,
.debugger-card span,
.debugger-state > span,
.debugger-note span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step-debugger-header h4,
.debugger-panel-heading h5 {
  margin: 5px 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}

.step-debugger-header h4 {
  font-size: 1.38rem;
}

.step-debugger-header p,
.debugger-panel-heading p,
.debugger-note p {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 0.94rem;
}

.step-debugger-controls {
  display: grid;
  grid-template-columns: auto minmax(54px, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.step-debugger-controls strong {
  min-width: 54px;
  color: var(--ink);
  font-family:
    "DejaVu Sans Mono", "Liberation Mono", "Ubuntu Mono", ui-monospace,
    SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  text-align: center;
}

.debugger-nav-button,
.debugger-step-button {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.debugger-nav-button {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.debugger-nav-button:hover,
.debugger-step-button:hover,
.debugger-step-button.active {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  color: var(--ink);
}

.debugger-nav-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.step-debugger-body {
  display: grid;
  gap: 16px;
}

.debugger-step-rail {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.debugger-step-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 3px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.debugger-step-list::-webkit-scrollbar {
  display: none;
}

.debugger-step-list li {
  flex: 0 0 140px;
}

.debugger-step-button {
  display: grid;
  width: 100%;
  min-height: 74px;
  align-content: start;
  gap: 7px;
  padding: 11px;
  text-align: left;
}

.debugger-step-button span {
  color: var(--muted);
  font-family:
    "DejaVu Sans Mono", "Liberation Mono", "Ubuntu Mono", ui-monospace,
    SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
}

.debugger-step-button strong {
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.25;
}

.debugger-panel {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.debugger-panel-heading h5 {
  max-width: 720px;
  font-size: 1.28rem;
}

.debugger-card-grid {
  display: grid;
  gap: 10px;
}

.debugger-card {
  display: grid;
  min-width: 0;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 13px;
}

.debugger-card strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

.debugger-card p {
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.debugger-state-grid {
  display: grid;
  gap: 12px;
}

.debugger-state,
.debugger-note {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
}

.debugger-state {
  display: grid;
  gap: 10px;
}

.debugger-state-row {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 9px;
}

.debugger-state-row small,
.debugger-state-row strong {
  font-family:
    "DejaVu Sans Mono", "Liberation Mono", "Ubuntu Mono", ui-monospace,
    SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.4;
}

.debugger-state-row small {
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.debugger-state-row strong {
  color: var(--ink);
  font-weight: 700;
  min-width: 0;
}

.debugger-note {
  background: var(--side);
}

.debugger-note p {
  margin-top: 7px;
}

.system-snapshot {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 16px;
  margin-top: 28px;
  border: 1px solid #252525;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(30, 30, 30, 0.96), rgba(13, 14, 15, 0.98)),
    #111;
  padding: 16px;
  color: #e7e7e2;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.system-snapshot-header {
  display: grid;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.system-snapshot-header span,
.system-panel-head span,
.system-metric span {
  color: #a9aaa4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.system-snapshot-header h4 {
  max-width: 680px;
  margin: 5px 0 8px;
  color: #f6f5ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}

.system-snapshot-header p {
  max-width: 720px;
  margin-bottom: 0;
  color: #b9bbb5;
  font-size: 0.94rem;
}

.system-snapshot-header > strong {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 7px 9px;
  color: #f1f0ea;
  font-family:
    "DejaVu Sans Mono", "Liberation Mono", "Ubuntu Mono", ui-monospace,
    SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
}

.system-snapshot-grid {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.system-map-panel,
.system-metrics-panel,
.system-telemetry-panel,
.system-ops-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.system-panel-head {
  display: flex;
  min-height: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 10px 12px;
}

.system-panel-head small {
  color: #858883;
  font-size: 0.76rem;
}

.system-node-grid,
.system-metric-grid,
.system-telemetry-list,
.system-ops-grid {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.system-node {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 11px;
}

.system-node-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.system-node-title span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dcf83;
  box-shadow: 0 0 0 4px rgba(125, 207, 131, 0.12);
}

.system-node-warn .system-node-title span {
  background: #f1c35a;
  box-shadow: 0 0 0 4px rgba(241, 195, 90, 0.12);
}

.system-node-bad .system-node-title span {
  background: #d96c6c;
  box-shadow: 0 0 0 4px rgba(217, 108, 108, 0.12);
}

.system-node-title strong,
.system-node code,
.system-console,
.system-log {
  font-family:
    "DejaVu Sans Mono", "Liberation Mono", "Ubuntu Mono", ui-monospace,
    SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.system-node-title strong {
  color: #f2f1ec;
  font-size: 0.85rem;
}

.system-node code {
  color: #c8d7dc;
  font-size: 0.75rem;
}

.system-node p,
.system-node small {
  margin: 0;
  color: #aeb1aa;
  font-size: 0.78rem;
  line-height: 1.45;
}

.system-node small {
  color: #7f847e;
}

.system-metric-grid {
  grid-template-columns: 1fr;
}

.system-metric {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 11px;
}

.system-metric strong {
  color: #f4f3ee;
  font-size: 1.45rem;
  line-height: 1.05;
}

.system-metric small {
  color: #8f938d;
  font-size: 0.74rem;
  line-height: 1.45;
}

.system-metric-ok strong,
.system-log-ok strong {
  color: #94d19a;
}

.system-metric-warn strong,
.system-log-warn strong,
.system-console-warn {
  color: #f1c35a;
}

.system-metric-bad strong,
.system-log-bad strong {
  color: #d96c6c;
}

.system-telemetry-list {
  gap: 10px;
}

.system-telemetry-row {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.system-telemetry-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.system-telemetry-row strong,
.system-telemetry-row span {
  color: #f2f1ec;
  font-size: 0.84rem;
}

.system-telemetry-row small {
  display: block;
  margin-top: 2px;
  color: #8f938d;
  font-size: 0.74rem;
}

.system-telemetry-row i {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.system-telemetry-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #b7bab2;
}

.system-telemetry-ok b {
  background: #7dcf83;
}

.system-telemetry-warn b {
  background: #f1c35a;
}

.system-telemetry-bad b {
  background: #d96c6c;
}

.system-ops-grid {
  gap: 10px;
}

.system-log-list {
  display: grid;
  gap: 6px;
}

.system-log {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 7px;
  color: #b7bab2;
  font-size: 0.72rem;
}

.system-log:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.system-log small {
  color: #777c76;
  font-size: inherit;
}

.system-log span {
  grid-column: 1 / -1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.system-console {
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #070808;
  padding: 12px;
  color: #d7d8d1;
  font-size: 0.72rem;
  overflow: hidden;
}

.system-console p {
  margin: 0 0 7px;
  color: inherit;
  font-size: inherit;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.system-console p:last-child {
  margin-bottom: 0;
}

.system-console span {
  color: #9cd39f;
}

.system-console-muted {
  color: #858883 !important;
}

.case-study-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.case-study-grid p {
  margin: 7px 0 0;
  font-size: 0.95rem;
}

.case-study-notes {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.case-study-notes summary {
  position: relative;
  padding: 18px 32px 0 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.case-study-notes summary::-webkit-details-marker {
  display: none;
}

.case-study-notes summary::after {
  position: absolute;
  top: 18px;
  right: 0;
  color: var(--muted);
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.case-study-notes[open] summary::after {
  content: "-";
}

.case-study-note-grid {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

.case-study-note-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.case-study-note-grid p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

@media (min-width: 641px) {
  .intro-kicker,
  .intro-lead,
  .intro-portrait figcaption,
  .case-studies-heading,
  .case-study-card h3 {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .intro-portrait,
  .case-studies-heading p,
  .case-study-copy {
    margin-right: 0;
    margin-left: 0;
  }

  .lead {
    font-size: 1.24rem;
  }

  .intro-hero,
  .intro-hero-content {
    padding: 42px;
  }

  .intro-hero-content {
    padding: 0;
  }

  .intro-lead {
    font-size: 1.18rem;
  }

  .dossier-hero {
    padding: 42px;
  }

  .dossier-panel h2 {
    font-size: 2.35rem;
  }

  .terminal-titlebar {
    min-height: 54px;
    padding: 12px 18px;
  }

  .terminal-controls span {
    width: 15px;
    height: 15px;
  }

  .terminal-screen {
    min-height: 480px;
    padding: 26px;
    font-size: 0.92rem;
  }

  .profile-layout {
    gap: 42px;
  }

  .profile-copy h2 {
    font-size: 2.35rem;
  }

  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-study-card {
    padding: 34px;
  }

  .case-studies-heading {
    padding-right: 34px;
    padding-left: 34px;
  }

  .case-study-highlights {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-study-grid,
  .case-study-note-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-debugger {
    padding: 20px;
  }

  .step-debugger-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
  }

  .debugger-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .debugger-state-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: baseline;
    column-gap: 18px;
  }

  .debugger-state-row strong {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
  }

  .system-snapshot {
    padding: 20px;
  }

  .system-snapshot-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .system-node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-telemetry-row {
    grid-template-columns: minmax(0, 1fr) 54px;
    align-items: center;
  }

  .system-telemetry-row i {
    grid-column: 1 / -1;
  }

  .system-ops-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .system-log {
    grid-template-columns: 38px 46px minmax(0, 1fr);
  }

  .system-log span {
    grid-column: auto;
  }

  .accordion-item summary {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr);
    gap: 28px;
  }

  .accordion-meta {
    width: auto;
    min-width: 180px;
    justify-self: end;
    text-align: right;
  }
}

@media (min-width: 981px) {
  .terminal-hero {
    min-height: 86vh;
  }

  .intro-hero,
  .intro-hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    align-items: end;
    gap: 58px;
    padding: 58px;
  }

  .intro-hero-content {
    padding: 0;
  }

  .intro-portrait {
    justify-self: end;
  }

  .intro-copy {
    text-align: left;
  }

  .intro-copy h1,
  .intro-lead,
  .intro-body {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
  }

  .dossier-hero {
    padding: 58px;
  }

  .dossier-panel h2 {
    font-size: 2.75rem;
  }

  .hero-terminal {
    max-width: 1040px;
  }

  .terminal-screen {
    min-height: 560px;
    padding: 32px;
    font-size: 0.96rem;
  }

  .profile-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 56px;
  }

  .profile-rail {
    position: sticky;
    top: 112px;
  }

  .profile-copy h2 {
    font-size: 2.7rem;
  }

  .case-studies-heading {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    align-items: end;
    margin-bottom: 30px;
    padding-right: 42px;
    padding-left: 42px;
  }

  .case-study-card {
    padding: 42px;
  }

  .case-study-card h3 {
    font-size: 2rem;
  }

  .flow-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .flow-node {
    min-height: 136px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 9px;
  }

  .flow-node:not(:last-child)::after {
    top: 50%;
    right: -13px;
    bottom: auto;
    left: auto;
    width: 13px;
    height: 1px;
  }

  .flow-node span {
    grid-row: auto;
  }

  .flow-feedback {
    grid-template-columns: minmax(160px, 0.3fr) minmax(0, 1fr);
    align-items: center;
  }

  .case-study-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-debugger {
    padding: 22px;
  }

  .step-debugger-body {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }

  .debugger-step-list {
    display: grid;
    overflow: visible;
    padding: 0;
  }

  .debugger-step-list li {
    flex: initial;
    min-width: 0;
  }

  .debugger-step-button {
    min-height: 64px;
  }

  .debugger-state-grid {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.45fr);
  }

  .system-snapshot {
    padding: 22px;
  }

  .system-snapshot-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.52fr);
    align-items: start;
  }

  .system-map-panel {
    grid-row: span 2;
  }

  .system-ops-panel {
    grid-column: 1 / -1;
  }
}

.hero-terminal.terminal-window {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-terminal .terminal-screen {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 246, 246, 0.88)),
    var(--paper);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.6;
}

.hero-terminal .terminal-note {
  color: var(--muted);
}

.hero-terminal .terminal-prompt,
.hero-terminal .terminal-output {
  color: var(--ink);
}

.hero-terminal .terminal-command {
  color: #555;
}

.hero-terminal .terminal-cursor {
  background: var(--ink);
}

.hero-terminal .terminal-toggle {
  border-color: var(--border);
  background: var(--panel-soft);
  color: var(--ink);
}

.hero-terminal .terminal-toggle:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.hero-terminal.is-collapsed .terminal-screen {
  min-height: 72px;
}

@media (min-width: 641px) {
  .hero-terminal .terminal-screen {
    min-height: 250px;
    padding: 28px;
    font-size: 0.86rem;
  }

  .hero-terminal.is-collapsed .terminal-screen {
    min-height: 76px;
  }
}

@media (min-width: 981px) {
  .hero-terminal .terminal-screen {
    min-height: 280px;
    padding: 32px;
    font-size: 0.86rem;
  }

  .hero-terminal.is-collapsed .terminal-screen {
    min-height: 82px;
  }
}
