/* Zoe Swellmark | Creative Intelligence - Collaborative Movement Autonomy Blueprint
 * Dual-Theme WCAG AA/AAA Stylesheet | Zero External Fonts | Zero Inline Overrides
 * Scoped under body.bp-body / .bp-shell so #nuclideSplitBar & .zs-footer stay intact
 */

:root,
html[data-theme="light"] body.bp-body {
  --paper: #FAF8F4;
  --surface: #F1EDE5;
  --surface-elevated: #FFFFFF;
  --ink: #0F1720;
  --ink2: #1E2B38;
  --mute: #3B4956;
  --hair: #CFC8BC;
  --accent: #0B6E78;
  --accent-text: #054A52;
  --accent-2: #7A2858;
  --accent-2-text: #591B40;
  --btn-active-bg: #054A52;
  --btn-active-ink: #FFFFFF;
  --btn-plum-bg: #7A2858;
  --btn-plum-ink: #FFFFFF;
  --band-bg: #0F1720;
  --band-ink: #FFFFFF;
  --band-mute: #D3DFEA;
  --band-hair: #2C3D4F;
  --c64-bg: #1B1D4E;
  --c64-ink: #BCE0FF;
  --c64-border: #4D62A8;
  --focus-ring: #054A52;
  --pass-bg: #E6F4F1;
  --pass-ink: #054A52;
  --pass-border: #0B6E78;
  --warn-bg: #F9EBF2;
  --warn-ink: #591B40;
  --warn-border: #7A2858;
  --svg-task: #0B6E78;
  --svg-safety: #187D87;
  --svg-effort: #7A2858;
  --svg-comfort: #5B6B7C;
  --svg-uniform: #526273;
  --svg-grid: #7B8794;
  --svg-axis: #0F1720;
}

html[data-theme="dark"] body.bp-body,
body.bp-body {
  --paper: #0B1118;
  --surface: #131C26;
  --surface-elevated: #1A2532;
  --ink: #F1F5F9;
  --ink2: #CBD5E1;
  --mute: #9FB0C3;
  --hair: #2A3848;
  --accent: #38B9C7;
  --accent-text: #4FD1DE;
  --accent-2: #D97AB0;
  --accent-2-text: #F09BC9;
  --btn-active-bg: #38B9C7;
  --btn-active-ink: #0B1118;
  --btn-plum-bg: #D97AB0;
  --btn-plum-ink: #0B1118;
  --band-bg: #131C26;
  --band-ink: #F8FAFC;
  --band-mute: #CBD5E1;
  --band-hair: #2E4054;
  --c64-bg: #111338;
  --c64-ink: #CFE8FF;
  --c64-border: #556EC2;
  --focus-ring: #4FD1DE;
  --pass-bg: #0D2D33;
  --pass-ink: #8CE8F2;
  --pass-border: #38B9C7;
  --warn-bg: #351629;
  --warn-ink: #F7C2DF;
  --warn-border: #D97AB0;
  --svg-task: #38B9C7;
  --svg-safety: #67D4E0;
  --svg-effort: #D97AB0;
  --svg-comfort: #94A3B8;
  --svg-uniform: #94A3B8;
  --svg-grid: #5E7187;
  --svg-axis: #E2E8F0;
}

body.bp-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.bp-body.ns-split-ready {
  padding-top: 56px;
}

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

.bp-shell {
  width: 100%;
  min-width: 0;
  font-size: 16px;
  line-height: 1.62;
}

/* Commercial IP Lock Banner */
.bp-shell .zs-licensing-band {
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid var(--zs-rule-strong);
  background: var(--zs-surface);
  color: var(--zs-ink);
}

.bp-shell .zs-licensing-copy-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bp-shell .zs-licensing-copy {
  margin: 0;
  max-width: 68ch;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--zs-ink-soft);
}

.bp-shell .zs-licensing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Top Utility & Theme Bar (position: static to avoid #nuclideSplitBar collision) */
.bp-shell .utility-bar {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px clamp(24px, 7.5vw, 88px);
  background: var(--surface);
  border-bottom: 1px solid var(--hair);
}

.bp-shell .utility-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.bp-shell .brand-mark {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.bp-shell .const-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--hair);
  background: var(--surface-elevated);
  color: var(--accent-text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
}

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

.bp-shell .nav-pill,
.bp-shell .btn,
.bp-shell button,
.bp-shell input,
.bp-shell select,
.bp-shell textarea,
.bp-shell [role="switch"],
.bp-shell [role="tab"] {
  min-height: 44px;
  min-width: 44px;
  font-family: inherit;
}

.bp-shell .nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--hair);
  background: var(--surface-elevated);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.bp-shell .nav-pill:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

.bp-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--hair);
  background: var(--surface-elevated);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.bp-shell .btn:hover {
  border-color: var(--accent-text);
}

.bp-shell .btn-primary,
.bp-shell .btn[aria-selected="true"],
.bp-shell .btn[aria-pressed="true"],
.bp-shell .btn.is-active {
  background: var(--btn-active-bg);
  color: var(--btn-active-ink);
  border-color: var(--btn-active-bg);
}

.bp-shell .btn-switch[aria-checked="true"] {
  background: var(--btn-plum-bg);
  color: var(--btn-plum-ink);
  border-color: var(--btn-plum-bg);
}

.bp-shell .btn-switch-teal[aria-checked="true"] {
  background: var(--btn-active-bg);
  color: var(--btn-active-ink);
  border-color: var(--btn-active-bg);
}

.bp-shell a:focus-visible,
.bp-shell button:focus-visible,
.bp-shell input:focus-visible,
.bp-shell select:focus-visible,
.bp-shell textarea:focus-visible,
.bp-shell [role="switch"]:focus-visible,
.bp-shell [role="tab"]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Page Container & 12-Column Grid */
.bp-shell .page {
  padding: 40px clamp(24px, 7.5vw, 88px) 84px;
}

.bp-shell .grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

.bp-shell .col-span-9 {
  grid-column: 1 / 10;
}

.bp-shell .col-span-12 {
  grid-column: 1 / -1;
}

.bp-shell .mt-hero {
  margin-top: 40px;
}

/* Typography */
.bp-shell h1,
.bp-shell h2,
.bp-shell h3,
.bp-shell h4 {
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}

.bp-shell h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  grid-column: 1 / -1;
}

.bp-shell .deck {
  grid-column: 1 / 10;
  margin: 22px 0 0 0;
  font-size: clamp(18px, 1.8vw, 20.5px);
  line-height: 1.56;
  color: var(--ink2);
  max-width: 66ch;
  text-wrap: pretty;
}

.bp-shell h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.bp-shell h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.bp-shell p {
  margin: 0 0 18px 0;
  color: var(--ink2);
  line-height: 1.62;
  max-width: 66ch;
}

.bp-shell .measure {
  max-width: 66ch;
  line-height: 1.62;
}

.bp-shell .sec {
  margin-top: 76px;
  padding-top: 36px;
  border-top: 1px solid var(--hair);
}

/* Figures, Vector Schematics & SVG Charts */
.bp-shell figure {
  margin: 34px 0;
  padding: 0;
  grid-column: 1 / -1;
}

.bp-shell .fig-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px 0;
  text-wrap: pretty;
}

.bp-shell .img-wrap {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--surface);
  padding: 16px;
}

.bp-shell figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 72ch;
}

/* Inline Schematic SVG classes */
.bp-shell svg.schematic-svg {
  display: block;
  width: 100%;
  height: auto;
}

.bp-shell .sch-card {
  fill: var(--surface-elevated);
  stroke: var(--hair);
  stroke-width: 1.5;
}

.bp-shell .sch-hub {
  fill: var(--surface-elevated);
  stroke: var(--accent);
  stroke-width: 2.2;
}

.bp-shell .sch-cart {
  fill: var(--surface-elevated);
  stroke: var(--accent-2);
  stroke-width: 2.2;
}

.bp-shell .sch-wire {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}

.bp-shell .sch-wire-plum {
  stroke: var(--accent-2);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  fill: none;
}

.bp-shell .sch-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink);
}

.bp-shell .sch-kicker {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  fill: var(--accent-text);
}

.bp-shell .sch-kicker-plum {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  fill: var(--accent-2-text);
}

.bp-shell .sch-sub {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  fill: var(--mute);
}

/* Signature Full-Bleed Band */
.bp-shell .band-full {
  margin: 72px calc(-1 * clamp(24px, 7.5vw, 88px)) 0;
  padding: 56px clamp(24px, 7.5vw, 88px);
  background: var(--band-bg);
  color: var(--band-ink);
}

.bp-shell .band-full h2 {
  color: var(--band-ink);
  margin-bottom: 14px;
}

.bp-shell .band-full p {
  color: var(--band-mute);
}

.bp-shell .eq-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--band-hair);
}

.bp-shell .eq-col {
  padding-right: 8px;
}

.bp-shell .eq-formula {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.35;
  color: var(--band-ink);
  margin-bottom: 10px;
}

.bp-shell .eq-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--band-mute);
  margin: 0;
}

/* Multi-Column Strips & Asymmetric Splits */
.bp-shell .split-left {
  grid-column: 1 / 6;
  min-width: 0;
}

.bp-shell .split-right {
  grid-column: 6 / 13;
  min-width: 0;
}

.bp-shell .cols-2 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.bp-shell .cols-3 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.bp-shell .col-item {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}

.bp-shell .form-card {
  min-width: 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--hair);
}

.bp-shell .form-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-text);
}

.bp-shell .Zone-metric {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--accent-text);
  margin-bottom: 6px;
}

.bp-shell .zone-plum {
  color: var(--accent-2-text);
}

/* Open Tables */
.bp-shell .table-wrap {
  grid-column: 1 / -1;
  overflow: visible;
  margin: 24px 0 36px;
}

.bp-shell table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.bp-shell thead th {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 14px 12px 0;
  border-bottom: 2px solid var(--ink);
  vertical-align: bottom;
}

.bp-shell .th-w-19 { width: 19%; }
.bp-shell .th-w-31 { width: 31%; }
.bp-shell .th-w-28 { width: 28%; }
.bp-shell .th-w-22 { width: 22%; }
.bp-shell .th-w-20 { width: 20%; }
.bp-shell .th-w-34 { width: 34%; }
.bp-shell .th-w-30 { width: 30%; }
.bp-shell .th-w-16 { width: 16%; }

.bp-shell tbody td {
  padding: 15px 14px 15px 0;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink2);
}

.bp-shell tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.bp-shell .num,
.bp-shell code.inline-code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--ink);
}

.bp-shell .num {
  white-space: nowrap;
}

.bp-shell code.inline-code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.bp-shell .accent-strong {
  color: var(--accent-text);
  font-weight: 600;
}

.bp-shell .plum-strong {
  color: var(--accent-2-text);
  font-weight: 600;
}

/* Pull Quote */
.bp-shell blockquote.pull-quote {
  grid-column: 2 / 12;
  margin: 44px 0 12px;
  padding: 28px 0 0;
  border-top: 2px solid var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.24;
  color: var(--ink);
  text-wrap: pretty;
}

.bp-shell .quote-note {
  grid-column: 2 / 12;
  font-size: 14px;
  line-height: 1.58;
  color: var(--mute);
  margin: 8px 0 0;
  max-width: 68ch;
}

/* Open Lists */
.bp-shell ul.open-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bp-shell ul.open-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink2);
  font-size: 15.5px;
}

.bp-shell ul.open-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--accent-text);
  font-weight: 700;
}

/* Theme-Aware SVG Chart Classes */
.bp-shell svg.data-chart {
  display: block;
  width: 100%;
  height: auto;
}

.bp-shell .svg-axis { stroke: var(--svg-axis); stroke-width: 1.5; }
.bp-shell .svg-grid { stroke: var(--svg-grid); stroke-width: 1; }
.bp-shell .svg-grid-dashed { stroke: var(--svg-grid); stroke-width: 1; stroke-dasharray: 3 3; }
.bp-shell .svg-ref-50 { stroke: var(--svg-uniform); stroke-width: 1.2; stroke-dasharray: 4 4; }
.bp-shell .svg-ref-70 { stroke: var(--svg-task); stroke-width: 1.2; stroke-dasharray: 4 4; }
.bp-shell .svg-ref-85 { stroke: var(--svg-effort); stroke-width: 1.2; stroke-dasharray: 4 4; }
.bp-shell .svg-legend { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; fill: var(--ink); }
.bp-shell .svg-label { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; font-weight: 600; fill: var(--ink); }
.bp-shell .svg-label-bold { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13.5px; font-weight: 600; fill: var(--mute); }
.bp-shell .svg-label-accent { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; font-weight: 700; fill: var(--accent-text); }
.bp-shell .svg-label-plum { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; font-weight: 700; fill: var(--accent-2-text); }
.bp-shell .svg-tick { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; fill: var(--mute); }
.bp-shell .svg-tick-accent { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; fill: var(--accent-text); }
.bp-shell .svg-tick-plum { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; fill: var(--accent-2-text); }
.bp-shell .svg-axis-caption { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; fill: var(--mute); }
.bp-shell .svg-bar-task { fill: var(--svg-task); }
.bp-shell .svg-bar-safety { fill: var(--svg-safety); }
.bp-shell .svg-bar-effort { fill: var(--svg-effort); }
.bp-shell .svg-bar-comfort { fill: var(--svg-comfort); }
.bp-shell .svg-curve-uniform { fill: none; stroke: var(--svg-uniform); stroke-width: 2; stroke-dasharray: 6 4; }
.bp-shell .svg-curve-early { fill: none; stroke: var(--svg-task); stroke-width: 3; }
.bp-shell .svg-curve-late { fill: none; stroke: var(--svg-effort); stroke-width: 3; }
.bp-shell .bar-row { transition: opacity 0.16s ease; }
.bp-shell svg.data-chart:hover .bar-row { opacity: 0.55; }
.bp-shell svg.data-chart .bar-row:hover { opacity: 1; }
.bp-shell .curve-group { transition: opacity 0.16s ease; }
.bp-shell .curve-group:hover path { stroke-width: 4px; }

/* Audience Switcher Panel */
.bp-shell .audience-box {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hair);
}

.bp-shell .tablist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.bp-shell .audience-panel {
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

.bp-shell .audience-role {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 6px;
}

.bp-shell .audience-boundary {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--mute);
}

/* Interactive Reflection & Voice Linter Lab */
.bp-shell .lab-shell {
  grid-column: 1 / -1;
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
}

.bp-shell .lab-card {
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hair);
}

.bp-shell .preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}

.bp-shell .control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.bp-shell .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-shell .field-full {
  grid-column: 1 / -1;
}

.bp-shell .field label,
.bp-shell .field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.bp-shell .field-value {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--accent-text);
}

.bp-shell select,
.bp-shell input[type="number"],
.bp-shell textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  background: var(--surface-elevated);
  color: var(--ink);
  font-size: 15px;
}

.bp-shell input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.bp-shell input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

/* Output Views: Studio Card, iPhone Frame, Zoe 64 PETSCII */
.bp-shell .studio-card {
  padding: 22px;
  background: var(--surface-elevated);
  border: 1px solid var(--hair);
}

.bp-shell .studio-metrics {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--accent-text);
  padding: 8px 12px;
  background: var(--surface);
  border-left: 3px solid var(--accent-text);
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.bp-shell .studio-choices {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink2);
}

.bp-shell .studio-choices li {
  margin-bottom: 8px;
}

.bp-shell .ios-frame {
  max-width: 44ch;
  padding: 22px;
  background: var(--surface-elevated);
  border: 2px solid var(--hair);
}

.bp-shell .ios-header {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-text);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bp-shell .c64-bezel {
  max-width: 100%;
  padding: 20px;
  background: var(--c64-bg);
  color: var(--c64-ink);
  border: 4px solid var(--c64-border);
  overflow-x: auto;
}

.bp-shell .c64-screen {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(10.5px, 2.75vw, 14px);
  line-height: 1.45;
  color: var(--c64-ink);
  white-space: pre;
}

.bp-shell .c64-subhead {
  margin: 16px 0 6px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--c64-ink);
  text-transform: uppercase;
}

.bp-shell .uncertainty-banner {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid var(--warn-border);
  font-size: 14.5px;
  line-height: 1.5;
}

.bp-shell .uncertainty-banner[hidden] {
  display: none;
}

/* Voice & Constitution Linter */
.bp-shell .linter-box {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hair);
}

.bp-shell .linter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.bp-shell .linter-badge {
  display: inline-block;
  padding: 8px 14px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--pass-border);
  background: var(--pass-bg);
  color: var(--pass-ink);
}

.bp-shell .linter-badge.is-flagged {
  border-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.bp-shell .linter-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.bp-shell .linter-item {
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--warn-border);
  color: var(--ink);
  font-size: 14.5px;
}

.bp-shell .linter-cat {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-2-text);
}

/* Constitutional Honesty & 9-Sister Council Section (non-footer landmark) */
.bp-shell .blueprint-covenant {
  margin-top: 84px;
  padding: 40px clamp(24px, 7.5vw, 88px) 56px;
  background: var(--surface);
  border-top: 2px solid var(--ink);
}

.bp-shell .covenant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.bp-shell .flag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bp-shell .flag-chip {
  padding: 6px 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--hair);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--ink);
}

.bp-shell .council-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bp-shell .council-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14.5px;
  color: var(--ink2);
}

.bp-shell .covenant-note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 72ch;
}

@media (max-width: 1040px) {
  .bp-shell .lab-shell,
  .bp-shell .cols-2,
  .bp-shell .covenant-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .bp-shell .col-span-9,
  .bp-shell .deck,
  .bp-shell .split-left,
  .bp-shell .split-right,
  .bp-shell blockquote.pull-quote,
  .bp-shell .quote-note {
    grid-column: 1 / -1;
  }
  .bp-shell .split-right {
    margin-top: 20px;
  }
  .bp-shell .eq-strip,
  .bp-shell .cols-3,
  .bp-shell .control-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .bp-shell .table-wrap {
    overflow-x: auto;
  }
  .bp-shell .lab-card,
  .bp-shell .form-card,
  .bp-shell .audience-box,
  .bp-shell .linter-box {
    padding: 16px;
  }
  .bp-shell .c64-bezel {
    padding: 12px;
  }
}
