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

:root {
  --white: #fdfcfb;
  --cream: #f8f5f1;
  --cream-2: #f1ede7;
  --cream-3: #e8e2da;
  --cream-4: #ddd6cc;
  --indigo: #312e81;
  --indigo-2: #3730a3;
  --indigo-3: #4338ca;
  --indigo-light: #eef2ff;
  --indigo-mid: rgba(67, 56, 202, 0.1);
  --indigo-glow: rgba(67, 56, 202, 0.15);
  --ink: #1a1714;
  --ink-2: #3d3732;
  --ink-3: #7a7268;
  --ink-4: #aea79e;
  --ink-5: #d4cfc9;
  --red: #dc2626;
  --red-light: #fef2f2;
  --red-mid: rgba(220, 38, 38, 0.1);
  --green: #16a34a;
  --green-light: #f0fdf4;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --blue: #1d4ed8;
  --blue-light: #eff6ff;
  --overlay-1: rgba(26, 23, 20, 0.35);
  --overlay-2: rgba(26, 23, 20, 0.55);
  --overlay-3: rgba(26, 23, 20, 0.7);
  --font-display: "Playfair Display", serif;
  --font-ui: "Plus Jakarta Sans", sans-serif;
  --r: 8px;
  --r-lg: 14px;
  --r-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.08);
  --trans: 150ms ease;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.scroll-locked {
  overflow: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-3);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-icon-stack {
  position: relative;
  width: 24px;
  height: 24px;
}
.bi-layer {
  position: absolute;
  border-radius: 4px;
  border: 2px solid var(--indigo-3);
  background: var(--indigo-light);
}
.bi-l1 {
  width: 20px;
  height: 20px;
  bottom: 0;
  left: 0;
}
.bi-l2 {
  width: 20px;
  height: 20px;
  bottom: 4px;
  left: 2px;
  background: var(--indigo-mid);
  border-color: var(--indigo-2);
}
.bi-l3 {
  width: 20px;
  height: 20px;
  bottom: 8px;
  left: 4px;
  background: var(--indigo-glow);
  border-color: var(--indigo);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-version {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hbadge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.hbadge-wcag {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(22, 163, 74, 0.2);
}
.hbadge-a11y {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid rgba(29, 78, 216, 0.2);
}
.hbadge-wm {
  background: var(--amber-light);
  color: var(--amber);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.page-layout {
  flex: 1;
  display: flex;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px;
  gap: 28px;
  align-items: flex-start;
}

.inspector-rail {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 84px;
  background: var(--white);
  border: 1px solid var(--cream-3);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cream-3) transparent;
}

.rail-section {
  border-bottom: 1px solid var(--cream-2);
}
.rail-section:last-child {
  border-bottom: none;
}

.rail-section-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 10px 14px 6px;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-2);
}

.stack-viz {
  padding: 10px 14px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stack-empty-msg {
  font-size: 11px;
  color: var(--ink-5);
  font-style: italic;
  padding: 4px 0;
}

.stack-layer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r);
  border: 1px solid var(--cream-3);
  background: var(--cream);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  animation: layerIn 0.2s ease both;
  position: relative;
  overflow: hidden;
}
@keyframes layerIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.stack-layer.sl-top {
  border-color: var(--indigo-3);
  background: var(--indigo-light);
  color: var(--indigo-2);
}
.stack-layer.sl-top::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--indigo-3);
}

.sl-index {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream-3);
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sl-top .sl-index {
  background: var(--indigo-3);
  color: #fff;
}
.sl-id {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-role {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-4);
  background: var(--cream-3);
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.sl-top .sl-role {
  background: rgba(67, 56, 202, 0.15);
  color: var(--indigo-3);
}

.focus-log {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 120px;
  overflow-y: auto;
}
.focus-entry {
  font-size: 10px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
  border-bottom: 1px solid var(--cream-2);
  animation: fadeIn 0.15s ease both;
}
.focus-entry:last-child {
  border-bottom: none;
}
.fe-arrow {
  color: var(--ink-5);
  flex-shrink: 0;
}
.fe-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-ui);
}
.fe-type {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 2px;
  flex-shrink: 0;
}
.fe-save {
  background: var(--amber-light);
  color: var(--amber);
}
.fe-restore {
  background: var(--green-light);
  color: var(--green);
}
.fe-trap {
  background: var(--indigo-light);
  color: var(--indigo-3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.aria-monitor {
  padding: 8px 14px;
}
.aria-live-el {
  display: none;
}
.aria-log {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 80px;
  overflow-y: auto;
}
.aria-entry {
  font-size: 10px;
  color: var(--ink-3);
  padding: 3px 6px;
  background: var(--cream);
  border-radius: 3px;
  border-left: 2px solid var(--indigo-3);
  font-family: var(--font-ui);
  animation: fadeIn 0.15s ease both;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics-grid {
  padding: 8px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.metric-cell {
  background: var(--cream);
  border-radius: var(--r);
  padding: 8px 10px;
  border: 1px solid var(--cream-2);
}
.mc-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.mc-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--indigo-3);
  font-family: var(--font-ui);
  line-height: 1;
}
.mc-sub {
  font-size: 9px;
  color: var(--ink-4);
  margin-top: 2px;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-section {
  background: var(--white);
  border: 1px solid var(--cream-3);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--indigo-light) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: "⬡";
  position: absolute;
  top: 20px;
  right: 32px;
  font-size: 8rem;
  color: var(--indigo-light);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.hero-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--indigo-3);
  border-radius: 1px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  color: var(--indigo-3);
}

.hero-sub {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 400;
}
.hero-sub code {
  font-family: "Courier New", monospace;
  font-size: 13px;
  background: var(--cream-2);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--indigo-3);
}

.demo-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.demo-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.demo-section-meta {
  font-size: 12px;
  color: var(--ink-4);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.demo-card {
  background: var(--white);
  border: 1px solid var(--cream-3);
  border-radius: var(--r-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--trans),
    border-color var(--trans),
    transform var(--trans);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--cream-4);
  transform: translateY(-1px);
}
.demo-card-wide {
  grid-column: 1 / -1;
}

.demo-card-icon {
  font-size: 1.2rem;
  color: var(--indigo-3);
  line-height: 1;
}
.demo-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.demo-card-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  flex: 1;
}
.demo-card-desc code {
  font-family: "Courier New", monospace;
  font-size: 11px;
  background: var(--cream-2);
  padding: 1px 4px;
  border-radius: 2px;
  color: var(--indigo-3);
}
.demo-card-actions {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: var(--r);
  transition: all var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--indigo-3);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--indigo-3);
  color: #fff;
  box-shadow: 0 2px 6px rgba(67, 56, 202, 0.3);
}
.btn-primary:hover {
  background: var(--indigo-2);
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--indigo-3);
  border: 1.5px solid var(--indigo-3);
}
.btn-outline:hover {
  background: var(--indigo-light);
}

.btn-danger {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}
.btn-danger:hover {
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-3);
  border: 1.5px solid var(--cream-3);
}
.btn-ghost:hover {
  background: var(--cream);
  border-color: var(--cream-4);
  color: var(--ink-2);
}

.btn-sm {
  font-size: 12px;
  padding: 6px 12px;
}

.api-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.api-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--cream-3);
  border-radius: var(--r);
  padding: 7px 11px;
  font-size: 11px;
}
.api-pill code {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: var(--indigo-3);
  font-weight: 600;
}
.ap-desc {
  color: var(--ink-4);
}

.kbd-table {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.ktr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--cream-2);
}
.ktr:last-child {
  border-bottom: none;
}
.ktr span {
  font-size: 12px;
  color: var(--ink-3);
}

kbd {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  background: var(--cream);
  border: 1px solid var(--cream-4);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--ink-2);
  white-space: nowrap;
  box-shadow: 0 1px 0 var(--cream-4);
  display: inline-block;
}

#modalHost {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background-color 0.25s ease;
}
.modal-overlay[aria-hidden="true"] {
  pointer-events: none;
}

.modal-overlay.mo-1 {
  background: var(--overlay-1);
}
.modal-overlay.mo-2 {
  background: var(--overlay-2);
}
.modal-overlay.mo-3 {
  background: var(--overlay-3);
}

.modal-box {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 540px;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
  overflow: hidden;
  transform-origin: center bottom;
  animation: modalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  border: 1px solid var(--cream-2);
}

.modal-box.mb-sm {
  max-width: 400px;
}
.modal-box.mb-lg {
  max-width: 660px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes modalOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
}
.modal-box.closing {
  animation: modalOut 0.18s ease both;
}

.modal-stripe {
  height: 5px;
  background: var(--indigo-3);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  flex-shrink: 0;
}
.modal-stripe.ms-danger {
  background: var(--red);
}
.modal-stripe.ms-amber {
  background: var(--amber);
}
.modal-stripe.ms-green {
  background: var(--green);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 16px;
  flex-shrink: 0;
  gap: 12px;
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 4px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.modal-sub {
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 500;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--cream-3);
  color: var(--ink-4);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
  flex-shrink: 0;
  margin-top: -2px;
}
.modal-close-btn:hover {
  background: var(--cream-2);
  color: var(--ink);
  border-color: var(--cream-4);
}
.modal-close-btn:focus-visible {
  outline: 3px solid var(--indigo-3);
  outline-offset: 2px;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--cream-3) transparent;
}
.modal-body p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
}
.modal-body p + p {
  margin-top: 10px;
}
.modal-body strong {
  color: var(--ink-2);
  font-weight: 600;
}
.modal-body code {
  font-family: "Courier New", monospace;
  font-size: 12px;
  background: var(--cream-2);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--indigo-3);
}

.modal-divider {
  height: 1px;
  background: var(--cream-2);
  margin: 0 24px;
  flex-shrink: 0;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 24px;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.modal-footer.mf-split {
  justify-content: space-between;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.field-req {
  color: var(--red);
  font-size: 13px;
}
.field-hint {
  font-size: 11px;
  color: var(--ink-4);
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 13px;
  background: var(--white);
  border: 1.5px solid var(--cream-3);
  border-radius: var(--r);
  color: var(--ink);
  outline: none;
  padding: 9px 12px;
  transition: all var(--trans);
  box-shadow: var(--shadow-sm);
}
.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--ink-5);
  font-style: italic;
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--indigo-3);
  box-shadow:
    0 0 0 3px var(--indigo-glow),
    var(--shadow-sm);
}
.field-input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.field-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23AEA79E' stroke-width='1.5' fill='none' d='M4 6l4 4 4-4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}
.field-textarea {
  resize: vertical;
  min-height: 80px;
  font-size: 13px;
  line-height: 1.6;
}
.field-err {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 4px;
}
.field-err.visible {
  display: flex;
}
.field-err::before {
  content: "⚠";
  font-size: 10px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: var(--cream);
  border-radius: var(--r);
  border: 1px solid var(--cream-2);
  cursor: pointer;
  transition: border-color var(--trans);
}
.check-row:hover {
  border-color: var(--cream-4);
}
.check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--indigo-3);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}
.check-label {
  font-size: 13px;
  color: var(--ink-2);
}
.check-sub {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 2px;
}

.confirm-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red-light);
  margin-bottom: 6px;
}
.confirm-icon {
  font-size: 1.5rem;
}

.stack-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--indigo-4);
  background: var(--indigo-light);
  border: 1px solid rgba(67, 56, 202, 0.15);
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-ui);
}
.si-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--indigo-3);
}

.a11y-meta {
  background: var(--cream);
  border: 1px solid var(--cream-2);
  border-radius: var(--r);
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}
.am-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.am-key {
  color: var(--ink-4);
  font-weight: 600;
}
.am-val {
  color: var(--indigo-3);
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.depth-indicator {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.depth-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cream-3);
  transition: background var(--trans);
}
.depth-dot.active {
  background: var(--indigo-3);
}

@media (max-width: 900px) {
  .page-layout {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  .inspector-rail {
    width: 100%;
    position: static;
    max-height: 260px;
  }
}
@media (max-width: 600px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 24px;
  }
  .hero-section::after {
    display: none;
  }
  .modal-box {
    border-radius: var(--r-lg);
  }
}
