@font-face {
  font-family: "Inter";
  src: url("fonts/inter-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bank Gothic";
  src: url("fonts/bank-gothic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg-base: rgb(16, 16, 16);
  --bg-soft: #1c1c1c;
  --bg-inset: #0a0a0a;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --shadow-light: rgba(255, 255, 255, 0.03);
  --shadow-dark: rgba(0, 0, 0, 0.4);
  --accent-primary: #f4f4f5;
  --accent-cyan: #06b6d4;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --radius: 0.625rem;
  --border-soft: rgba(255, 255, 255, 0.05);
  --border-inset: rgba(255, 255, 255, 0.03);
  --button-primary-text: #09090b;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-base: #e4e4e7;
  --bg-soft: #ffffff;
  --bg-inset: #f4f4f5;
  --text-main: #09090b;
  --text-muted: #52525b;
  --shadow-light: #ffffff;
  --shadow-dark: rgba(0, 0, 0, 0.08);
  --accent-primary: #0f172a;
  --accent-cyan: #0891b2;
  --accent-success: #059669;
  --accent-warning: #d97706;
  --accent-danger: #dc2626;
  --border-soft: rgba(0, 0, 0, 0.05);
  --border-inset: rgba(0, 0, 0, 0.03);
  --button-primary-text: #f8fafc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme="light"] body {
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1rem;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(6, 182, 212, 0.3);
  color: var(--text-main);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(161, 161, 170, 0.35);
  border-radius: 999px;
}

.font-gothic {
  font-family: "Bank Gothic", "BankGothic-Regular", sans-serif;
}

.font-mono-num {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.soft-panel {
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 6px -1px var(--shadow-dark);
  overflow: hidden;
}

.soft-well {
  background: var(--bg-inset);
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border-inset);
}

.soft-btn {
  background: var(--bg-base);
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px 0 var(--shadow-dark);
  color: var(--text-main);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.soft-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.status-green {
  background: var(--accent-success);
}

.status-blue {
  background: var(--accent-cyan);
}

.status-red {
  background: var(--accent-danger);
}

.page-grid {
  min-height: 100vh;
}

.sidebar-shell {
  position: fixed;
  top: 24px;
  left: 24px;
  bottom: 24px;
  width: 256px;
  z-index: 20;
}

.sidebar-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
}

.theme-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.theme-logo-light {
  display: none;
}

html[data-theme="light"] .theme-logo-dark {
  display: none;
}

html[data-theme="light"] .theme-logo-light {
  display: block;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logo-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  white-space: nowrap;
}

.logo-subtitle {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  padding: 16px 10px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text-muted);
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.nav-item:hover {
  color: var(--text-main);
  background: var(--bg-base);
}

.nav-item.is-active {
  background: var(--bg-base);
  color: var(--text-main);
  font-weight: 600;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: "JetBrains Mono", monospace;
}

.nav-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  color: currentColor;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 14px 10px 12px;
  border-top: 1px solid var(--border-soft);
}

.side-status-card {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.sidebar-meta {
  display: grid;
  gap: 8px;
  padding: 14px 10px 0;
}

.sidebar-meta .topbar-pill,
.sidebar-meta .topbar-state {
  width: 100%;
  justify-content: center;
}

.status-label,
.system-label,
.section-kicker,
.panel-title,
.preview-card-label,
.status-card-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.side-status-card strong,
.status-card strong,
.developer-card h3,
.preview-note-card h3,
.feature-card h3,
.statement-card h3,
.architecture-card h3,
.ecosystem-card h3 {
  font-size: 14px;
  line-height: 1.35;
}

.side-status-card p,
.feature-card p,
.statement-card p,
.architecture-card p,
.ecosystem-card p,
.status-card p,
.preview-note-card p,
.developer-card p,
.section-copy,
.hero-body,
.hero-note {
  color: var(--text-muted);
  font-size: 13px;
}

.side-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.side-theme-toggle,
.topbar-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-soft);
  background: var(--bg-base);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.side-theme-toggle:hover,
.topbar-theme-toggle:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

html[data-theme="light"] .side-theme-toggle:hover,
html[data-theme="light"] .topbar-theme-toggle:hover {
  border-color: rgba(0, 0, 0, 0.08);
}

.side-theme-toggle {
  min-height: 38px;
  padding: 0 14px;
  border-radius: calc(var(--radius) - 2px);
  font-size: 12px;
  font-weight: 700;
}

.topbar-theme-toggle {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  display: none;
}

.theme-toggle-indicator {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4f4f5, #06b6d4);
  box-shadow: 0 0 0 1px var(--border-soft);
}

html[data-theme="light"] .theme-toggle-indicator {
  background: linear-gradient(135deg, #facc15, #f59e0b);
}

.main-shell {
  margin-left: 304px;
  padding: 24px 24px 24px 0;
}

.topbar-shell {
  display: none;
  margin-bottom: 24px;
}

.topbar-card {
  min-height: 56px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  line-height: 1;
}

.topbar-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  overflow-x: auto;
}

.topbar-nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.topbar-nav a:hover {
  background: var(--bg-base);
  color: var(--text-main);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-pill,
.small-pill,
.hero-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-state {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--bg-base);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
}

.content-shell {
  display: grid;
  gap: 24px;
}

.section-panel {
  scroll-margin-top: 92px;
}

.hero-panel {
  padding: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero-kicker {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.hero-title {
  max-width: none;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 1vw + 14px, 28px);
  line-height: 1.08;
  letter-spacing: normal;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-body {
  max-width: 62ch;
  font-size: 14px;
}

.nowrap {
  white-space: nowrap;
}

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

.hero-note {
  font-size: 12px;
}

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

.button-primary,
.button-secondary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border-soft);
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.button-primary {
  background: var(--accent-primary);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--button-primary-text);
}

.button-secondary {
  background: var(--bg-base);
  color: var(--text-main);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.button-primary svg,
.button-secondary svg,
.side-cta svg {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 14px;
  color: currentColor;
}

.side-cta {
  gap: 8px;
}

.hero-side {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.hero-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-side-list {
  display: grid;
  gap: 10px;
}

.hero-side-item {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-inset);
}

.hero-side-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-side-item > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.hero-side-item strong {
  font-size: 13px;
  line-height: 1.35;
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 18px;
  border-right: 1px solid var(--border-soft);
}

.system-cell:last-child {
  border-right: 0;
}

.system-cell strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.content-panel {
  padding: 20px;
}

.panel-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.2;
}

.section-copy {
  max-width: 72ch;
  margin-top: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.statement-card,
.architecture-card,
.ecosystem-card,
.status-card {
  min-height: 100%;
  padding: 16px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.feature-card:hover,
.statement-card:hover,
.architecture-card:hover,
.ecosystem-card:hover,
.status-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 16px -4px var(--shadow-dark);
}

.ecosystem-card {
  padding: 0;
}

.ecosystem-card-link {
  min-height: 100%;
  display: block;
  padding: 16px;
  color: inherit;
}

.ecosystem-card-link:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: -2px;
}

.ecosystem-card-top {
  min-height: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ecosystem-card-link-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.ecosystem-card-link-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  color: currentColor;
}

.ecosystem-card:hover .ecosystem-card-link-icon,
.ecosystem-card-link:focus-visible .ecosystem-card-link-icon {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.card-badge,
.statement-index {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-family: "JetBrains Mono", monospace;
}

.card-badge svg,
.statement-index svg {
  width: 17px;
  height: 17px;
  display: block;
  color: currentColor;
}

.card-badge-logo {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  flex: 0 0 18px;
}

.card-badge-logo-mind {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
}

.feature-card h3,
.statement-card h3,
.architecture-card h3,
.ecosystem-card h3 {
  margin-top: 14px;
  margin-bottom: 8px;
}

.preview-frame {
  position: relative;
  padding: 18px;
}

.preview-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.88);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border-soft);
}

.preview-sidebar {
  background: rgba(17, 17, 17, 0.96);
  border-right: 1px solid var(--border-soft);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.02);
}

.preview-brand span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.preview-nav-list {
  display: grid;
  gap: 6px;
}

.preview-nav-item {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-nav-item.is-active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.preview-main {
  padding: 20px;
  display: grid;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 30%),
    var(--bg-soft);
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-topline-note {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.preview-card {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.preview-card strong {
  font-size: 12px;
  line-height: 1.4;
}

.preview-tables {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 12px;
}

.preview-table {
  padding: 0;
  overflow: hidden;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.table-head {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-soft);
}

.table-row {
  font-size: 12px;
  border-bottom: 1px solid var(--border-inset);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span:last-child {
  color: var(--text-main);
  font-weight: 700;
}

.preview-note-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.preview-note-card ul li,
.developer-card-note {
  color: var(--text-muted);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-card {
  display: grid;
  gap: 8px;
}

.access-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 20px 36px -30px var(--shadow-dark);
}

.access-panel::before {
  content: none;
}

.access-panel .panel-header-row,
.access-panel .status-grid {
  position: relative;
  z-index: 1;
}

.access-panel .panel-header-row {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.access-panel .section-title {
  max-width: 24ch;
}

.access-panel .status-grid {
  gap: 14px;
  align-items: stretch;
}

.access-panel .status-card {
  position: relative;
  min-height: 0;
  padding: 18px;
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 12px 20px -24px var(--shadow-dark);
}

.access-panel .status-card-label {
  color: var(--text-main);
  opacity: 0.9;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.access-panel .status-card strong {
  max-width: none;
  font-size: 16px;
  line-height: 1.4;
}

.status-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-inset);
}

.status-card-phase {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-card-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  flex: 0 0 32px;
}

.status-card-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  color: currentColor;
}

html[data-theme="light"] .access-panel {
  box-shadow: 0 20px 36px -30px var(--shadow-dark);
}

html[data-theme="light"] .access-panel::before {
  content: none;
}

html[data-theme="light"] .access-panel .status-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 20px -24px var(--shadow-dark);
}

.developer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}

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

.developer-tags + .hero-actions {
  margin-top: 18px;
}

.developer-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.access-scope-list {
  display: grid;
  gap: 10px;
}

.access-scope-row {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-inset);
}

.access-scope-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.access-scope-row span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.access-scope-row strong {
  font-size: 13px;
  line-height: 1.35;
}

.developer-card-note {
  font-size: 12px;
}

.footer-shell {
  margin-top: 24px;
}

.footer-card {
  min-height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.footer-credit-logo {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 14px;
}

.footer-external-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  display: block;
  opacity: 0.85;
}

html[data-theme="light"] .nav-icon,
html[data-theme="light"] .card-badge,
html[data-theme="light"] .statement-index,
html[data-theme="light"] .preview-brand,
html[data-theme="light"] .preview-nav-item.is-active {
  background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .preview-sidebar {
  background: rgba(244, 244, 245, 0.96);
}

html[data-theme="light"] .preview-overlay {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

html[data-theme="light"] .preview-main {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.03), transparent 30%),
    var(--bg-soft);
}

@media (max-width: 1320px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 1140px) {
  .sidebar-shell {
    display: none;
  }

  .topbar-shell {
    display: block;
  }

  .side-theme-toggle {
    display: none;
  }

  .topbar-theme-toggle {
    display: inline-flex;
  }

  .main-shell {
    margin-left: 0;
    padding: 16px;
  }

  .topbar-nav {
    padding: 0;
  }

  .preview-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .topbar-card {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .topbar-meta {
    width: 100%;
    justify-content: flex-start;
  }

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

  .system-cell:nth-child(2) {
    border-right: 0;
  }

  .system-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-soft);
  }

  .statement-grid,
  .architecture-grid,
  .developer-grid,
  .preview-tables {
    grid-template-columns: 1fr;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .preview-nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-panel,
  .content-panel,
  .preview-frame {
    padding: 16px;
  }

  .topbar-nav {
    display: none;
  }

  .hero-title {
    max-width: none;
    font-size: 22px;
  }

  .feature-grid,
  .statement-grid,
  .ecosystem-grid,
  .status-grid,
  .preview-cards {
    grid-template-columns: 1fr;
  }

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

  .system-cell {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

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

  .preview-nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-overlay {
    position: static;
    margin-bottom: 12px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 12px;
  }

  .main-shell {
    padding: 12px;
  }

  .topbar-card {
    padding: 10px 12px;
  }

  .topbar-brand {
    width: 100%;
  }

  .hero-actions,
  .topbar-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .button-primary,
  .button-secondary,
  .topbar-state,
  .topbar-pill {
    justify-content: center;
  }

  .preview-nav-list {
    grid-template-columns: 1fr;
  }

  .footer-card {
    min-height: auto;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
}
