body.steady-inner {
  --shell-bg: rgba(5, 5, 8, .82);
  --shell-line: rgba(255, 255, 255, .1);
  --shell-text: #f7f7fb;
  --shell-muted: #a8a8b5;
  --shell-hover: rgba(255, 255, 255, .06);

  /* Shared component tokens. Components must use these instead of assuming a dark theme. */
  --ui-page-text: #f7f7fb;
  --ui-page-muted: #aaaab8;
  --ui-panel-bg: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .88));
  --ui-panel-bg-soft: rgba(15, 23, 42, .62);
  --ui-panel-bg-hover: rgba(30, 41, 59, .9);
  --ui-panel-border: rgba(148, 163, 184, .28);
  --ui-card-border: rgba(125, 211, 252, .22);
  --ui-card-border-hover: rgba(125, 211, 252, .72);
  --ui-title: #f8fafc;
  --ui-copy: #cbd5e1;
  --ui-copy-muted: #94a3b8;
  --ui-link: #7dd3fc;
  --ui-chip-bg: rgba(56, 189, 248, .14);
  --ui-chip-text: #bae6fd;
  --ui-code-bg: rgba(2, 6, 23, .72);
  --ui-code-text: #dbeafe;
  --ui-control-bg: rgba(14, 116, 144, .22);
  --ui-control-border: rgba(125, 211, 252, .42);
  --ui-control-text: #bae6fd;
  --ui-subtle-bg: rgba(15, 23, 42, .35);
  --ui-shadow: 0 18px 45px rgba(2, 6, 23, .18);
  --ui-resource-bg: rgba(2, 6, 23, .42);
  --ui-resource-text: #bae6fd;
  --ui-action-bg: linear-gradient(135deg, #f6f2ff, #cbbfff 55%, #a4ddff);
  --ui-action-text: #08080d;

  margin: 0;
  min-width: 320px;
}

body.steady-inner.ui-classic {
  --shell-bg: rgba(255, 255, 255, .92);
  --shell-line: rgba(15, 23, 42, .1);
  --shell-text: #172033;
  --shell-muted: #5f6b7a;
  --shell-hover: #eef3f8;

  --ui-page-text: #172033;
  --ui-page-muted: #526075;
  --ui-panel-bg: #ffffff;
  --ui-panel-bg-soft: #f7fafc;
  --ui-panel-bg-hover: #eef4fa;
  --ui-panel-border: #dce5ee;
  --ui-card-border: #d8e5f1;
  --ui-card-border-hover: #8aa8c5;
  --ui-title: #172033;
  --ui-copy: #526075;
  --ui-copy-muted: #64748b;
  --ui-link: #315ca5;
  --ui-chip-bg: #e8f0f8;
  --ui-chip-text: #315270;
  --ui-code-bg: #eef3f8;
  --ui-code-text: #26364d;
  --ui-control-bg: #eef4fa;
  --ui-control-border: #b8c9da;
  --ui-control-text: #315270;
  --ui-subtle-bg: #f7fafc;
  --ui-shadow: 0 16px 42px rgba(15, 23, 42, .07);
  --ui-resource-bg: #f4f8fc;
  --ui-resource-text: #294e72;
  --ui-action-bg: #172033;
  --ui-action-text: #ffffff;
}

.inner-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--shell-line);
  background: var(--shell-bg);
  backdrop-filter: blur(20px) saturate(140%);
}

.inner-site-header__row {
  width: min(1220px, calc(100% - 32px));
  min-height: 70px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.inner-site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--shell-text) !important;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.03em;
}

.inner-site-brand__mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #08080d;
  background: linear-gradient(145deg, #cec4ff, #947cff 52%, #74c9ff);
  box-shadow: 0 0 28px rgba(143, 119, 255, .28);
  font-size: .78rem;
  font-weight: 950;
}

.ui-classic .inner-site-brand__mark {
  color: #fff;
  background: linear-gradient(145deg, #172033, #2f4770);
  box-shadow: 0 8px 22px rgba(23, 32, 51, .16);
}

.inner-site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.inner-site-nav::-webkit-scrollbar { display: none; }

.inner-site-nav a {
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--shell-muted) !important;
  text-decoration: none;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 700;
}
.inner-site-nav a:hover,
.inner-site-nav a:focus-visible {
  color: var(--shell-text) !important;
  background: var(--shell-hover);
}

.inner-site-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.inner-site-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  color: #08080d !important;
  background: linear-gradient(135deg, #f6f2ff, #cbbfff 55%, #a4ddff);
  text-decoration: none;
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 850;
}
.ui-classic .inner-site-action {
  border-color: #172033;
  color: #fff !important;
  background: #172033;
}

.inner-site-main { min-height: calc(100vh - 152px); }

.inner-site-footer {
  border-top: 1px solid var(--shell-line);
  background: var(--shell-bg);
}
.inner-site-footer__row {
  width: min(1220px, calc(100% - 32px));
  min-height: 86px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--shell-muted);
  font-size: .84rem;
}
.inner-site-footer__links { display: flex; flex-wrap: wrap; gap: 17px; }
.inner-site-footer a { color: var(--shell-muted); text-decoration: none; }
.inner-site-footer a:hover { color: var(--shell-text); }

@media (max-width: 1040px) {
  .inner-site-nav { display: none; }
  .inner-site-header__row { min-height: 66px; }
}

@media (max-width: 720px) {
  .inner-site-header__row {
    width: min(100% - 22px, 1220px);
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .inner-site-tools { margin-left: auto; }
  .inner-site-action { display: none; }
  .inner-site-tools .ui-mode-switcher {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 1200;
    width: min(320px, calc(100% - 24px));
  }
  .inner-site-footer__row {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 0;
  }
}