.unified-sitebar {
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg, rgba(5,8,15,.96), rgba(8,12,22,.91));
  color: #eef6ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 12px 35px rgba(0,0,0,.22);
}
.unified-sitebar a { color: inherit; text-decoration: none; }
.unified-sitebar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .68rem 1rem .48rem;
}
.unified-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 900;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.unified-mark {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: .7rem;
  color: #07101b;
  background: linear-gradient(135deg, #67e8f9, #f0abfc);
  box-shadow: 0 0 28px rgba(103,232,249,.18);
}
.unified-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .35rem;
}
.unified-nav a {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .48rem .72rem;
  color: #aebbd1;
  background: rgba(255,255,255,.035);
  font-size: .88rem;
  font-weight: 800;
}
.unified-nav a:hover,
.unified-nav a.active {
  color: #fff;
  border-color: rgba(103,232,249,.32);
  background: rgba(103,232,249,.09);
}
.unified-breadcrumbs {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  padding: 0 1rem .62rem;
  color: #91a1b9;
  font-size: .82rem;
}
.unified-breadcrumbs a { color: #bddfff; }
.unified-breadcrumbs span:last-child { color: #f7f9fd; }
@media (max-width: 760px) {
  .unified-sitebar-inner { align-items: flex-start; flex-direction: column; }
  .unified-nav { justify-content: flex-start; }
}


/* 20260521 mobile compatibility patch */
img, video, canvas, svg { max-width: 100%; height: auto; }
a, button, input, select, textarea { touch-action: manipulation; }
button, .button, .choice-button, .small-button, .mode-tab, .guide-chip, .chip-button, .doc-button, .id-pill-button { min-height: 44px; }
input, select, textarea { font-size: 16px; }
pre, code, .event-console, .table-scroll, .data-table { max-width: 100%; overflow-x: auto; }
.github-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.github-grid article { border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.045); }
.fineprint { color: var(--muted, #aab6cb); font-size: .92rem; line-height: 1.55; }
@media (max-width: 860px) {
  body { overflow-x: hidden; }
  .section-shell { width: min(100% - 24px, var(--max-width, 1180px)); padding-left: 0; padding-right: 0; }
  .hero-grid, .footer-grid, .portal-grid, .boundary-card, .contact-grid, .layout, .grid, .workbench-grid, .command-bar, .dashboard-shell, .operator-grid, .retroweb-shell, .retro-grid { grid-template-columns: 1fr !important; }
  .hero, .section-shell, .panel, .portal-card, .hero-card, .boundary-card, .doc-card { border-radius: 18px; }
  .portal-actions, .hero-actions, .button-row, .doc-actions { flex-direction: column; align-items: stretch; }
  .portal-actions .button, .hero-actions .button, .button-row .button, .button-row button, .doc-actions .button { width: 100%; justify-content: center; text-align: center; }
  .site-header, .topbar, .command-bar, .aisop-bridge { position: static !important; }
  .site-nav, .global-nav, .unified-nav, .aisop-bridge__nav, .mode-tabs { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .site-nav a, .global-nav a, .unified-nav a, .aisop-bridge__nav a { white-space: nowrap; }
  .hero-copy h1, .section-heading h1, .section-heading h2 { overflow-wrap: anywhere; }
  .kpi-row, .service-grid, .persona-grid, .github-grid { grid-template-columns: 1fr !important; }
  .right-rail, aside, .explorer-panel, .reader-panel { min-width: 0; }
  table { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 560px) {
  .hero-copy h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .section-heading h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .section-heading h2 { font-size: clamp(1.6rem, 8vw, 2.3rem); }
  .hero-lede, .lede { font-size: 1rem; }
  .hero-card, .portal-card, .panel, .boundary-card { padding: 16px !important; }
  .aisop-bridge__inner, .unified-sitebar-inner, .topbar-inner { gap: 10px; }
  .brand-copy span, .aisop-bridge__brand span:last-child { white-space: normal; }
  audio, video { width: 100%; }
}
