@charset "utf-8";
:root {
  --space: #060b12;
  --space-deep: #04070c;
  --surface: #0d1624;
  --surface-elevated: #132033;
  --surface-hover: #1a2b44;
  --paper: #ecf0ec;
  --muted: #9aaabf;
  --dim: #687a92;
  --line: #213044;
  --line-bright: #344c6b;
  --gold: #e5c687;
  --gold-soft: rgba(229, 198, 135, 0.14);
  --anth: #f0a45d;
  --oai: #59c2ff;
  --tc: #34d399;
  --comm: #c792ea;
  --radius: 14px;
  --radius-sm: 9px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(25, 52, 84, 0.48) 0%, transparent 70%),
    radial-gradient(circle at 85% 20%, rgba(229, 198, 135, 0.06) 0%, transparent 45%),
    var(--space);
  color: var(--paper);
  font: 14.5px/1.58 var(--font-sans);
  min-height: 100vh;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

button, input, select, textarea {
  font: inherit;
  color: var(--paper);
  background: #0c1522;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  padding: 8px 14px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

button:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--gold);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button[aria-pressed="true"], .pill.is-active {
  background: var(--gold);
  color: #0b131e;
  border-color: var(--gold);
  font-weight: 650;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, pre:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--gold);
  color: #09121c;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* Masthead & Navigation */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(6, 11, 18, 0.86);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(229, 198, 135, 0.4);
  color: var(--gold);
  font-size: 16px;
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 4px;
}

.lens-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0a121d;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

.lens-btn {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lens-btn:hover:not([aria-pressed="true"]) {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
}

.lens-btn[aria-pressed="true"] {
  background: var(--gold);
  color: #09111b;
  font-weight: 700;
}

.lens-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.lens-btn[aria-pressed="true"] .lens-count {
  background: rgba(9, 17, 27, 0.18);
  color: #09111b;
}

.masthead-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.masthead-links a {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.masthead-links a:hover {
  color: var(--gold);
  border-color: var(--line-bright);
  background: var(--surface);
}

/* Main container */
main {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 28px 64px;
}

/* Hero / Header Banner */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 750;
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gold);
  font-style: italic;
}

.hero-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.stat-card {
  background: linear-gradient(145deg, rgba(19, 32, 51, 0.82), rgba(11, 20, 33, 0.82));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 15px;
  min-width: 135px;
}

.stat-card strong {
  display: block;
  font-size: 20px;
  font-weight: 750;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.stat-card span {
  font-size: 11.5px;
  color: var(--muted);
}

/* Ecosystem Quick-Filter Ribbon */
.ecosystem-ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 12px;
  flex-wrap: wrap;
}

.eco-label {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

.eco-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--line-bright);
  color: var(--paper);
}

.eco-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Control Toolbar */
.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 0.75fr)) auto;
  gap: 12px;
  align-items: end;
  background: rgba(13, 22, 36, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.field-group label {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 550;
}

.search-box {
  display: flex;
  gap: 6px;
}

.search-box input {
  flex: 1;
  padding: 8px 12px;
  min-width: 0;
}

.field-group select {
  width: 100%;
  padding: 8px 10px;
}

.view-modes {
  display: flex;
  gap: 5px;
}

/* Project Constellation Chips Bar */
.project-constellation-bar {
  margin-bottom: 16px;
  background: rgba(10, 17, 28, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.project-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.project-bar-title {
  font-size: 12px;
  color: var(--muted);
}

.project-bar-title strong {
  color: var(--paper);
}

.project-bar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.project-bar-actions button {
  padding: 4px 10px;
  font-size: 12px;
  min-height: 30px;
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 138px;
  overflow-y: auto;
  padding-right: 4px;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  background: #0d1726;
  border: 1px solid color-mix(in srgb, var(--p-color, #8aa) 40%, #1d2d42);
  color: var(--paper);
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
}

.project-chip:hover {
  border-color: var(--p-color, var(--gold));
  background: #16263d;
}

.project-chip.is-selected {
  background: color-mix(in srgb, var(--p-color, var(--gold)) 22%, #0e1929);
  border-color: var(--p-color, var(--gold));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--p-color, var(--gold)) 35%, transparent);
}

.project-chip.is-dimmed {
  opacity: 0.36;
}

.project-chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p-color, var(--gold));
}

.project-chip .chip-org {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* Main Galaxy + Inspector Split Layout */
.galaxy-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.galaxy-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(24, 53, 88, 0.52), transparent 68%),
    var(--space-deep);
}

.galaxy-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 11.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.galaxy-scene {
  position: relative;
  height: 590px;
  overflow: hidden;
  isolation: isolate;
}

#galaxy-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#galaxy-canvas:active {
  cursor: grabbing;
}

.project-hubs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  font-size: 10.5px;
  font-weight: 650;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(7, 13, 22, 0.88);
  border: 1px solid color-mix(in srgb, var(--hub-color) 55%, transparent);
  color: var(--hub-color);
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.hub-node:hover, .hub-node.is-highlighted {
  transform: translate(-50%, -50%) scale(1.12);
  background: #132238;
  box-shadow: 0 0 14px color-mix(in srgb, var(--hub-color) 45%, transparent);
  z-index: 5;
}

.galaxy-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  background: rgba(12, 21, 35, 0.96);
  border: 1px solid var(--gold);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  max-width: 320px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.galaxy-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.family-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
  color: var(--muted);
}

.family-legend button {
  background: none;
  border: none;
  padding: 2px 6px;
  font-size: 11.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.family-legend button:hover, .family-legend button.is-active {
  color: var(--paper);
  text-decoration: underline;
}

.family-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.camera-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}

.camera-controls button {
  padding: 4px 9px;
  font-size: 12px;
  min-width: 32px;
}

/* Inspector Panel */
.inspector-panel {
  background: linear-gradient(155deg, #132033 0%, #0b1422 100%);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  padding: 20px;
  max-height: 700px;
  overflow-y: auto;
}

.inspector-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.inspector-header h2 {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.3;
  margin: 6px 0;
  word-break: break-word;
  color: var(--gold);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.badge {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-bright);
}

.badge-gold {
  color: var(--gold);
  border-color: rgba(229, 198, 135, 0.45);
  background: var(--gold-soft);
}

.intuition-callout {
  background: rgba(229, 198, 135, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 11px 14px;
  margin: 12px 0;
  font-size: 13px;
}

.intuition-callout strong {
  color: var(--gold);
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.compare-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.compare-selectors label {
  font-size: 11.5px;
  color: var(--muted);
  display: block;
}

.compare-selectors select {
  width: 100%;
  margin-top: 4px;
  padding: 7px 9px;
  font-size: 12.5px;
}

.source-card {
  background: #08101b;
  border: 1px solid var(--line-bright);
  border-radius: 11px;
  padding: 13px;
  margin-top: 12px;
}

.source-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.source-card-head h3 {
  margin: 0;
  font-size: 14px;
}

.source-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin: 4px 0 8px;
  font-family: var(--font-mono);
}

pre.code-block {
  background: #050911;
  border: 1px solid #1c2c42;
  border-radius: 8px;
  padding: 11px 13px;
  font: 12px/1.55 var(--font-mono);
  overflow-x: auto;
  max-height: 230px;
  margin: 8px 0;
  white-space: pre;
  color: #dbe6f5;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.ext-link:hover {
  text-decoration: underline;
}

/* Discovery Spotlight Strip inside Galaxy View */
.spotlight-strip {
  margin-top: 22px;
  background: linear-gradient(180deg, rgba(16, 28, 45, 0.7), rgba(9, 16, 27, 0.7));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}

.spotlight-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.spotlight-strip-head h2 {
  margin: 0;
  font-size: 19px;
}

.spotlight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.spot-card {
  background: #0b1422;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.spot-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.spot-card h3 {
  margin: 4px 0;
  font-size: 14.5px;
  color: var(--paper);
}

.spot-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Readable Catalogue Grid */
.catalogue-section {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 11px;
}

.ingredient-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.ingredient-card:hover, .ingredient-card[aria-current="true"] {
  border-color: var(--gold);
  background: var(--surface-elevated);
}

.ingredient-card .ing-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 650;
  color: var(--paper);
  word-break: break-all;
}

.ingredient-card .ing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.ingredient-card .ing-projs {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mini-proj-tag {
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 24px 0 8px;
}

/* LENS 2: Cross-Project Bridge Radar */
.matrix-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.85fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.eco-matrix-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.matrix-scroll {
  overflow: auto;
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #070e18;
}

.bridge-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11.5px;
}

.bridge-table th, .bridge-table td {
  border: 1px solid #162436;
  padding: 6px 8px;
  text-align: center;
}

.bridge-table th {
  background: #0d1828;
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.bridge-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: #0d1828;
  color: var(--paper);
}

.cell-btn {
  width: 100%;
  min-width: 44px;
  padding: 5px 4px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(89, 194, 255, var(--cell-alpha, 0.08));
  color: var(--paper);
}

.cell-btn:hover, .cell-btn.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

/* LENS 3: Research Discovery Paths */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.path-card {
  background: linear-gradient(155deg, #111e30, #0a121e);
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.path-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.path-card h3 {
  margin: 4px 0;
  font-size: 18px;
  line-height: 1.28;
}

.path-endpoints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

/* LENS 4: Constellation & 2.32M Declaration Search */
.constellation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

/* LENS 5: Geometric & Spectral Intuition Lab */
.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.8fr);
  gap: 22px;
  margin-top: 20px;
}

.lab-stage {
  background: #08111d;
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  padding: 20px;
}

.lab-readout {
  background: var(--surface);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  padding: 20px;
}

.meter-bar {
  height: 8px;
  background: #08101b;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}

.meter-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--oai), var(--gold));
}

footer {
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1100px) {
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .galaxy-workspace, .matrix-grid-layout, .lab-layout {
    grid-template-columns: 1fr;
  }
}

/* V4 MECHANISM & AST EDITION STYLES */
.signal-tier-bar {
  background: rgba(8, 15, 28, 0.94);
  border-bottom: 1px solid var(--line-bright);
  padding: 6px 18px;
}
.signal-tier-inner {
  max-width: 1760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.signal-tier-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.signal-tier-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.signal-pill {
  background: #0d182a;
  border: 1px solid var(--line-bright);
  color: var(--paper);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}
.signal-pill:hover {
  border-color: var(--gold);
}
.signal-pill[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(229, 198, 135, 0.22), rgba(89, 194, 255, 0.16));
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 0 12px rgba(229, 198, 135, 0.2);
}
.pill-sub {
  font-size: 10.5px;
  color: var(--gold);
  opacity: 0.9;
  font-weight: 500;
}
.translation-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 12px;
  background: #08111f;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  overflow: hidden;
}
.translation-table th {
  background: #101e33;
  color: var(--gold);
  text-align: left;
  padding: 7px 10px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-bright);
}
.translation-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  vertical-align: top;
}
.translation-table tr:last-child td {
  border-bottom: none;
}
.mechanism-banner-strip {
  margin: 12px 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(16, 30, 52, 0.92), rgba(10, 18, 32, 0.92));
  border: 1px solid rgba(229, 198, 135, 0.42);
  border-radius: 12px;
}
.mechanism-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.mech-mini-card {
  background: #0b1424;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.mech-mini-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}


/* V6 Self-Explanatory Visual Discovery Studio Styles */
.v6-onboarding-banner {
  background: linear-gradient(135deg, rgba(21,37,60,0.92), rgba(11,20,34,0.96));
  border: 1px solid rgba(229,198,135,0.42);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.v6-onboarding-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.v6-starter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.v6-starter-btn {
  background: rgba(229,198,135,0.12);
  border: 1px solid rgba(229,198,135,0.45);
  color: #f8e3b4;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v6-starter-btn:hover {
  background: rgba(229,198,135,0.24);
  transform: translateY(-1px);
}
.v6-compare-bar {
  background: #0d1829;
  border: 1px solid rgba(89,194,255,0.38);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.v6-compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
}
.v6-compare-select {
  background: #08101d;
  color: #fff;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  min-width: 210px;
}
.v6-plain-box {
  background: linear-gradient(135deg, rgba(229,198,135,0.13), rgba(89,194,255,0.08));
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0;
}
.v6-plain-headline {
  font-size: 15px;
  font-weight: 750;
  color: #fff;
  margin-bottom: 4px;
}
.v6-plain-text {
  font-size: 13px;
  line-height: 1.55;
  color: #dbe7f6;
}
.v6-step-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
@media (max-width: 900px) {
  .v6-step-flow { grid-template-columns: 1fr; }
}
.v6-step-card {
  background: rgba(10,19,33,0.9);
  border: 1px solid rgba(89,194,255,0.3);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #d4e3f7;
}
.v6-discovery-callout {
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.45);
  border-radius: 8px;
  padding: 10px 13px;
  margin: 10px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #d1fae5;
}


/* ============================================================================
   V36-V40 UX/UI Polish: Command Palette, Quick-Tools Dock, Infoview & Compare
   ============================================================================ */
.v36-quick-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(9, 14, 28, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.42);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 189, 248, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 96vw;
  overflow-x: auto;
}
.v36-dock-btn {
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition: all 0.16s ease;
}
.v36-dock-btn:hover, .v36-dock-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(16, 185, 129, 0.24));
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}
.v36-cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
}
.v36-cmdk-modal {
  width: min(760px, 92vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(9, 14, 28, 0.99));
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.v36-infoview-goal {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: rgba(2, 6, 23, 0.94);
  border-left: 3px solid #38bdf8;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 11.5px;
  line-height: 1.55;
}


/* === V60 10x Self-Critiqued UX/UI Overhaul Styles === */
.v60-quickstart-hero {
  margin: 8px 18px 10px 18px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.94), rgba(8, 17, 34, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}
.v60-qs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.v60-qs-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.v60-qs-badge {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.v60-qs-headline {
  color: #f8fafc;
  font-size: 13px;
}
.v60-qs-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v60-qs-btn, .v60-qs-toggle {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v60-qs-btn:hover, .v60-qs-toggle:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
}
.v60-qs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.v60-qs-card {
  text-align: left;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v60-qs-card:hover {
  border-color: #38bdf8;
  background: rgba(30, 41, 59, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.18);
}
.v60-qs-step {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #38bdf8;
}
.v60-qs-card strong {
  font-size: 13px;
  color: #f8fafc;
}
.v60-qs-card p {
  font-size: 11.5px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

/* Compact Scannable Simulator Selector Strip in ?lens=intuition */
.v60-sim-navigator {
  background: rgba(10, 18, 34, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.v60-sim-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.v60-sim-search {
  flex: 1;
  min-width: 220px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  color: #f8fafc;
  padding: 7px 12px;
  font-size: 12.5px;
}
.v60-sim-cat-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.v60-sim-cat-pill {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.v60-sim-cat-pill.active, .v60-sim-cat-pill:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
}
.intuition-sim-selector {
  max-height: 148px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.v60-cert-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.84);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.v60-cert-modal {
  background: linear-gradient(145deg, #0b1528, #0f1f3a);
  border: 1px solid rgba(16, 185, 129, 0.55);
  border-radius: 16px;
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px 26px;
  color: #f8fafc;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}


/* === V61-V80 10x UX/UI Self-Critique: Progressive Disclosure, Commutative Animator, Break-the-Hypothesis & Guided Tours === */
.v61-prog-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 8px 0 10px 0;
  padding: 4px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
}
.v61-prog-tab {
  flex: 1;
  min-width: 115px;
  text-align: center;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v61-prog-tab:hover {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.65);
}
.v61-prog-tab.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.15);
}
.v61-prog-pane {
  display: none;
  animation: v61FadeIn 0.18s ease-out;
}
.v61-prog-pane.active {
  display: block;
}
@keyframes v61FadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Interactive Commutative Bridge Animator Box */
.v65-comm-box {
  background: linear-gradient(145deg, rgba(6, 13, 28, 0.96), rgba(12, 23, 46, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
}
.v65-comm-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

/* Break-The-Hypothesis Counterexample Toggle Pills */
.v70-hyp-pill {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v70-hyp-pill.violated {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

/* Floating Guided Discovery Tour Player Bar */
.v75-tour-bar {
  position: fixed;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99990;
  width: min(940px, 94vw);
  background: linear-gradient(135deg, rgba(8, 17, 34, 0.97), rgba(15, 30, 58, 0.97));
  border: 1.5px solid rgba(245, 158, 11, 0.65);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.78);
  color: #f8fafc;
}


/* === V81-V100 Plain-English Acronym Decoder Strip, Split-Screen Dual Simulator & Bridge Composer === */
.v85-acronym-strip {
  margin-top: 10px;
  padding: 9px 12px;
  background: rgba(2, 8, 23, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 10px;
}
.v85-acronym-strip-top {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.v85-glossary-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #38bdf8;
}
.v85-acronym-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.v85-term-chip {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}
.v85-term-chip strong {
  color: #fde68a;
}
.v85-term-chip span {
  color: #cbd5e1;
}
.v85-term-chip:hover {
  border-color: #38bdf8;
  background: rgba(30, 41, 59, 0.96);
  transform: translateY(-1px);
}
.v90-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.v90-dual-pane {
  background: rgba(9, 16, 32, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 12px;
  padding: 12px;
}


/* === V110-V120 Inline Hover-to-Explain Jargon Highlighter & 4-Step Proof-Game Stepper === */
.v110-jargon-pill {
  border-bottom: 1.5px dotted #38bdf8;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  padding: 0 4px;
  border-radius: 4px;
  cursor: help;
  font-weight: 600;
  transition: all 0.14s ease;
}
.v110-jargon-pill:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #ffffff;
  border-bottom-color: #fde68a;
}
.v110-floating-tooltip {
  position: fixed;
  z-index: 99999;
  width: min(370px, 92vw);
  background: linear-gradient(145deg, #071124, #0f1f3d);
  border: 1.5px solid #38bdf8;
  border-radius: 12px;
  padding: 11px 13px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.82);
  color: #f8fafc;
  pointer-events: auto;
  font-size: 12px;
}
.v115-step-btn {
  flex: 1;
  min-width: 150px;
  text-align: left;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.16s ease;
}
.v115-step-btn.active {
  background: rgba(99, 102, 241, 0.24);
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28);
}
.v115-step-btn.completed {
  border-color: rgba(16, 185, 129, 0.55);
}


/* === V125 Complete Novice-First Welcome Banner & 3-Level Progressive Drill-Down === */
.v125-novice-banner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  background: linear-gradient(135deg, rgba(6, 22, 46, 0.96), rgba(15, 28, 56, 0.96));
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 12px;
}
@media (max-width: 960px) {
  .v125-novice-banner { grid-template-columns: 1fr; }
}
.v125-novice-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  margin-bottom: 4px;
}
.v125-novice-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.42;
  margin-bottom: 5px;
}
.v125-novice-title span {
  font-weight: 400;
  color: #e2e8f0;
}
.v125-novice-sub {
  font-size: 11.5px;
  color: #bae6fd;
  line-height: 1.4;
}
.v125-depth-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fde68a;
  margin-bottom: 6px;
}
.v125-depth-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.v125-depth-btn {
  text-align: left;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  border-radius: 9px;
  padding: 7px 9px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s ease;
}
.v125-depth-btn strong {
  font-size: 11.5px;
  color: #f8fafc;
}
.v125-depth-btn span {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.3;
}
.v125-depth-btn.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.22);
}
.v125-depth-btn.active span {
  color: #d1fae5;
}

/* Novice Level 1 Progressive Disclosure: Fold technical code blocks inside an optional Drill-Down drawer */
body.v125-mode-novice pre.code-block:not(.v125-force-show) {
  display: none;
}
.v125-drilldown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.v125-drilldown-toggle:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #ffffff;
}


/* === V131-V138 Imported v34 Epistemic Honesty Panels, 4 Exact Finite Diagrams & 8-Role Semantic Matcher === */
.v131-epistemic-triad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  background: rgba(6, 14, 30, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 10px;
}
.v131-epi-box {
  background: rgba(15, 23, 42, 0.88);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.42;
  color: #e2e8f0;
}
.v131-epi-box.shared { border-left: 3px solid #10b981; }
.v131-epi-box.diff   { border-left: 3px solid #f59e0b; }
.v131-epi-box.oblig  { border-left: 3px solid #ec4899; }
.v131-epi-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}
.v136-finite-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}
.v136-finite-table th, .v136-finite-table td {
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 6px 10px;
  text-align: left;
}
.v136-finite-table th {
  background: rgba(30, 41, 59, 0.9);
  color: #7dd3fc;
  font-weight: 700;
}

/* === V135 Imported v34 intuition-diagrams.css === */
.ig-example {
  --ig-ink: #18332e; --ig-muted: #4a625c; --ig-border: #c7d5ce;
  --ig-paper: #fffefa; --ig-green: #eaf2ea; --ig-amber: #fff0d4;
  box-sizing: border-box; color-scheme: light; color: var(--ig-ink); background: var(--ig-paper);
  border: 1px solid var(--ig-border); border-radius: 18px;
  padding: clamp(16px, 3vw, 30px); font: 16px/1.5 system-ui, sans-serif;
  max-width: 1060px; min-width: 0;
}
.ig-example *, .ig-example *::before, .ig-example *::after { box-sizing: border-box; }
.ig-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ig-example p { margin: 0 0 12px; }
.ig-example h4 { color: var(--ig-ink); margin: 0 0 9px; font: 600 clamp(24px, 4vw, 32px)/1.18 Georgia, serif; }
.ig-eyebrow { color: var(--ig-muted); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; }
.ig-heading > p:last-child { max-width: 65ch; }
.ig-law-picker { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 22px 0; min-width: 0; }
.ig-law-picker legend { font-size: 14px; padding: 0; margin-bottom: 7px; }
.ig-law-picker label { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--ig-border); border-radius: 8px; cursor: pointer; }
.ig-law-picker label:has(:checked) { border-color: #315e4b; background: var(--ig-green); }
.ig-law-picker label span { font-variant-numeric: tabular-nums; }
.ig-law-picker input { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; flex: none; margin: 0; accent-color: #315e4b; width: 17px; height: 17px; }
.ig-example :focus-visible { outline: 3px solid #166b9b; outline-offset: 4px; }
.ig-flow { display: grid; grid-template-columns: 1fr .92fr 1fr; gap: 12px; }
.ig-step { border: 1px solid var(--ig-border); padding: 16px; border-radius: 10px; min-width: 0; }
.ig-step-label { color: var(--ig-muted); font-size: 12px; font-weight: 700; }
.ig-step-label > span { display: inline-grid; place-items: center; width: 21px; height: 21px; background: var(--ig-ink); color: white; border-radius: 50%; margin-right: 4px; }
.ig-path-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; }
.ig-path { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font: 600 15px/1.4 ui-monospace, monospace; }
.ig-hop { color: var(--ig-muted); font-size: 11px; }
.ig-state { border-bottom: 2px solid var(--ig-border); }
.ig-mass { font-weight: 650; font-variant-numeric: tabular-nums; }
.ig-small { font-size: 13px; color: var(--ig-muted); }
.ig-summary { background: var(--ig-green); }
.ig-start { font-size: 14px; }
.ig-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0 0 14px; }
.ig-counts div { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.ig-counts dd { margin: 0; font-weight: 700; }
.ig-summary-mass { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ig-border); padding-top: 10px; font-size: 13px; }
.ig-decoder { font-size: 14px; }
.ig-result { background: var(--ig-green); border-radius: 8px; padding: 12px 15px; margin-top: 14px !important; font-size: 14px; }
.ig-boundary { margin-top: 20px !important; padding-left: 14px; border-left: 3px solid #b57720; font-size: 14px; max-width: 80ch; }
.ig-boundary strong { display: block; margin-bottom: 3px; }
.ig-example .ig-sampler { padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; gap: 10px; }
.ig-sampler li { margin: 0; padding: 12px; border-left: 2px solid var(--ig-border); display: grid; gap: 2px; min-width: 0; }
.ig-sampler li > span:last-child { color: var(--ig-muted); font-size: 13px; }
.ig-sampler strong { font-size: 16px; }
.ig-coupling { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.ig-joint { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; table-layout: fixed; }
.ig-joint caption { text-align: left; font-size: 14px; font-weight: 650; padding-bottom: 10px; }
.ig-joint th { font-size: 12px; font-weight: 600; }
.ig-joint td, .ig-joint th { padding: 10px 5px; text-align: center; border: 1px solid var(--ig-border); }
.ig-joint td { font-size: 21px; font-weight: 600; }
.ig-joint td span { display: block; font-size: 11px; font-weight: 400; }
.ig-joint .ig-mismatch { background: var(--ig-amber); }
.ig-joint .ig-total, .ig-joint tfoot td { background: var(--ig-green); font-size: 14px; }
.ig-joint tfoot th { overflow-wrap: anywhere; }
.ig-equation { font-size: 16px; }
.ig-equation strong { display: block; font: 600 27px/1.5 Georgia, serif; }
.ig-conclusion > p:not(.ig-equation) { font-size: 14px; max-width: 36ch; }
@media (max-width: 760px) {
  .ig-flow, .ig-coupling { grid-template-columns: 1fr; }
  .ig-step { padding: 14px; }
  .ig-path { gap: 5px; font-size: 17px; }
  .ig-step .ig-small { margin-bottom: 0; }
  .ig-coupling { gap: 18px; }
}
@media (max-width: 420px) {
  .ig-example .ig-sampler { grid-template-columns: 1fr; gap: 7px; }
  .ig-sampler li { margin: 0; padding: 8px 12px; grid-template-columns: 1fr 1.3fr; }
  .ig-sampler li > span:last-child { grid-column: 2; }
  .ig-path { gap: 3px; font-size: 16px; }
  .ig-joint td { font-size: 18px; }
}
@media (forced-colors: active) {
  .ig-mismatch { outline: 2px solid Highlight; outline-offset: -3px; }
  .ig-law-picker label:has(:checked) { outline: 2px solid Highlight; }
}

.dg-worked-example > .ig-example { margin: 12px 0 18px; }

.ig-example [hidden] { display: none !important; }
.ig-counterexample-control { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
.ig-counterexample-control input { flex: none; width: 17px; height: 17px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; accent-color: #315e4b; }
.ig-score { margin-top: 20px !important; padding-top: 14px; border-top: 1px solid var(--ig-border); font-size: 14px; }
.ig-complete-context { max-width: 650px; }
.ig-path-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; margin: 14px 0 10px; }
.ig-path-table caption { text-align: left; font-size: 13px; font-weight: 650; padding-bottom: 7px; }
.ig-path-table th, .ig-path-table td { border: 1px solid var(--ig-border); text-align: center; padding: 6px 4px; font-size: 13px; overflow-wrap: anywhere; }
.ig-path-table tbody th { font-family: ui-monospace, monospace; font-weight: 500; }
.ig-step-label > [data-decoder-title] { display: inline; width: auto; height: auto; background: none; color: inherit; border-radius: 0; margin: 0; }

/* The map stays fixed while the one native radio group changes its encoding. */
.ig-commuting {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0;padding:14px;border:1px solid #c7d5ce;border-radius:12px;background:#fffefa}
.ig-commuting p {margin:0;min-width:0;overflow-wrap:anywhere}
.ig-commuting strong,.ig-commuting span,.ig-tensor-encoding strong,.ig-tensor-encoding span {display:block}
.ig-commuting span {margin-top:8px}
.ig-commuting .ig-small {grid-column:1/-1}
.ig-tensor-encoding {margin:14px 0;overflow-wrap:anywhere}
.ig-tensor-encoding strong {font-size:1.25rem;margin-bottom:6px}
.ig-action-table {width:100%;table-layout:auto;border-collapse:collapse;margin:18px 0;font-variant-numeric:tabular-nums}
.ig-action-table caption {text-align:left;font-weight:650;margin-bottom:8px}
.ig-action-table th,.ig-action-table td {border:1px solid #c7d5ce;padding:8px 4px;text-align:center;overflow-wrap:normal}
.ig-action-table th {background:#f1f6f2}
@media(max-width:600px){.ig-commuting{grid-template-columns:1fr}.ig-action-table{font-size:.8rem}.ig-action-table th,.ig-action-table td{padding:7px 2px}}

/* Fixed graph groups; checked coordinates are a separate binary marking. */
.ig-cut-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; margin: 20px 0; align-items: start; }
.ig-cut-layout > div { min-width: 0; }
.ig-cut-graph { display: block; width: 100%; max-width: 350px; height: auto; margin: 0 auto 10px; }
.ig-cut-graph line { stroke: #879c95; stroke-width: 2; }
.ig-cut-graph circle { fill: var(--ig-paper); stroke: var(--ig-muted); stroke-width: 2; }
.ig-cut-graph text { fill: var(--ig-ink); font: 13px system-ui, sans-serif; }
.ig-cut-graph .ig-cut-name, .ig-cut-graph .ig-cut-group { font-weight: 700; }
.ig-cut-graph [data-selected="true"] circle { fill: #d9ebde; stroke: #214c3d; stroke-width: 4; }
.ig-cut-picker { margin: 0 0 12px; }
.ig-cut-table { width: 100%; border-collapse: collapse; margin: 16px 0 10px; table-layout: fixed; }
.ig-cut-table caption { text-align: left; font-weight: 650; font-size: 14px; margin-bottom: 8px; }
.ig-cut-table th, .ig-cut-table td { padding: 9px; border: 1px solid var(--ig-border); font-size: 14px; overflow-wrap: anywhere; }
.ig-cut-table th { text-align: left; font-weight: 500; }
.ig-cut-table td { width: 48px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ig-cut-target { padding: 16px; margin-top: 20px; border: 1px solid var(--ig-border); border-radius: 10px; font-size: 14px; }
.ig-cut-target p:last-child { margin-bottom: 0; }
@media (max-width: 650px) { .ig-cut-layout { grid-template-columns: 1fr; gap: 12px; } .ig-cut-graph { max-width: 300px; } }
@media (forced-colors: active) { .ig-cut-graph circle { fill: Canvas; stroke: CanvasText; } .ig-cut-graph line { stroke: GrayText; } .ig-cut-graph text { fill: CanvasText; } .ig-cut-graph [data-selected="true"] circle { fill: Canvas; stroke: Highlight; stroke-width: 4; } }

/* === V150 CALM EDITORIAL OBSERVATORY THEME === */
:root {
  --space: #070c14;
  --space-deep: #050910;
  --surface: #0c1420;
  --surface-elevated: #111c2d;
  --surface-hover: #16243a;
  --paper: #f2efe9;
  --muted: #94a3b8;
  --dim: #64748b;
  --line: rgba(148, 163, 184, 0.14);
  --line-bright: rgba(148, 163, 184, 0.24);
  --gold: #dfc082;
  --gold-soft: rgba(223, 192, 130, 0.12);
}

body.cg-calm-editorial {
  background:
    radial-gradient(ellipse 80% 40% at 50% -5%, rgba(28, 50, 78, 0.36) 0%, transparent 70%),
    var(--space);
  color: var(--paper);
  font-size: 14.5px;
  line-height: 1.62;
  letter-spacing: -0.005em;
}

/* Calm Single-Row Masthead */
.masthead {
  background: rgba(7, 12, 20, 0.9);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  max-width: 1640px;
  padding: 10px 24px;
  gap: 14px;
  justify-content: space-between;
}
.brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
}
.lens-nav {
  background: rgba(12, 20, 32, 0.85);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 10px;
  gap: 3px;
}
.lens-btn {
  padding: 6px 11px;
  font-size: 12.5px;
  border-radius: 7px;
  font-weight: 550;
  color: var(--muted);
}
.lens-btn[aria-pressed="true"] {
  background: rgba(223, 192, 130, 0.18);
  color: var(--gold);
  border: 1px solid rgba(223, 192, 130, 0.42);
  font-weight: 650;
}
.lens-btn[aria-pressed="true"] .lens-count {
  background: rgba(223, 192, 130, 0.2);
  color: var(--paper);
}
.lens-count {
  font-size: 10.5px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

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

/* Segmented Reading Depth Pill Group */
.cg-depth-pill-group {
  display: inline-flex;
  background: rgba(12, 20, 32, 0.9);
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.cg-depth-pill-group .v125-depth-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: none;
}
.cg-depth-pill-group .v125-depth-btn:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}
.cg-depth-pill-group .v125-depth-btn.active {
  background: rgba(107, 196, 156, 0.16);
  border-color: rgba(107, 196, 156, 0.45);
  color: #a7f3d0;
  box-shadow: none;
}

/* Studios & Tools Popover Menu */
.cg-tools-dropdown {
  position: relative;
}
.cg-tools-summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15, 25, 40, 0.9);
  border: 1px solid var(--line-bright);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cg-tools-summary::-webkit-details-marker {
  display: none;
}
.cg-tools-summary:hover, .cg-tools-dropdown[open] .cg-tools-summary {
  border-color: var(--gold);
  color: var(--gold);
}
.cg-tools-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 120;
  width: min(860px, 94vw);
  background: #0b1320;
  border: 1px solid rgba(223, 192, 130, 0.35);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .cg-tools-popover { grid-template-columns: 1fr; }
}
.cg-tools-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cg-tools-heading {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding: 0 6px 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
.cg-menu-item {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cg-menu-item strong {
  font-size: 12.5px;
  color: var(--paper);
  font-weight: 600;
}
.cg-menu-item span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.cg-menu-item:hover {
  background: rgba(223, 192, 130, 0.08);
  border-color: rgba(223, 192, 130, 0.28);
}

.surprise-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(223, 192, 130, 0.1);
  border: 1px solid rgba(223, 192, 130, 0.36);
  color: var(--gold);
}

/* Calm Editorial Intro Strip */
.cg-editorial-intro {
  max-width: 1640px;
  margin: 0 auto;
  padding: 18px 24px 12px;
}
.cg-intro-inner {
  display: grid;
  grid-template-columns: 1.25fr 1.15fr;
  gap: 22px;
  align-items: center;
  background: linear-gradient(160deg, rgba(15, 25, 40, 0.72), rgba(9, 15, 26, 0.72));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}
@media (max-width: 1080px) {
  .cg-intro-inner { grid-template-columns: 1fr; }
}
.cg-intro-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 650;
  margin: 0 0 4px;
}
.cg-intro-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0 0 8px;
}
.cg-intro-lead {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--muted);
}
.cg-intro-lead strong {
  color: var(--paper);
  font-weight: 600;
}
.cg-inline-link {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin-left: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cg-inline-link:hover {
  background: none;
  color: #fff;
}

.cg-entry-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 600px) {
  .cg-entry-cards { grid-template-columns: 1fr; }
}
.cg-entry-card {
  text-align: left;
  background: rgba(11, 18, 30, 0.85);
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.cg-entry-card:hover {
  border-color: var(--gold);
  background: rgba(20, 32, 50, 0.9);
  transform: translateY(-1px);
}
.cg-entry-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 650;
}
.cg-entry-card strong {
  font-size: 13.5px;
  color: var(--paper);
  font-weight: 650;
}
.cg-entry-card span:last-child {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.38;
}

/* Main Workspace Container */
main {
  max-width: 1640px;
  padding: 0 24px 64px;
}

/* Unified Calm Filter Bar & Drawers Above Constellation */
.cg-unified-controls {
  background: rgba(12, 20, 32, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cg-controls-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) auto minmax(150px, 0.75fr) minmax(150px, 0.75fr) auto auto;
  gap: 10px;
  align-items: end;
}
@media (max-width: 1200px) {
  .cg-controls-top { grid-template-columns: 1fr 1fr; }
}
.cg-signal-seg {
  display: inline-flex;
  background: #080f1a;
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}
.cg-signal-seg .signal-pill {
  border: none;
  background: transparent;
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: none;
}
.cg-signal-seg .signal-pill[aria-pressed="true"] {
  background: rgba(223, 192, 130, 0.18);
  color: var(--gold);
  box-shadow: none;
}

.cg-filter-subrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.cg-obstacle-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.cg-obstacle-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 550;
  background: rgba(9, 15, 26, 0.8);
  border: 1px solid var(--line);
  color: var(--muted);
}
.cg-obstacle-pill[aria-pressed="true"] {
  background: rgba(223, 192, 130, 0.16);
  border-color: rgba(223, 192, 130, 0.5);
  color: var(--paper);
  font-weight: 650;
}

.cg-drawer-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cg-drawer {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 15, 26, 0.6);
  padding: 6px 12px;
}
.cg-drawer > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
  user-select: none;
}
.cg-drawer > summary::-webkit-details-marker { display: none; }
.cg-drawer > summary:hover, .cg-drawer[open] > summary {
  color: var(--gold);
}
.cg-drawer[open] {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: rgba(10, 17, 28, 0.92);
  border-color: var(--line-bright);
}

/* Calmer Cards, Serif Section Titles & Progressive Disclosure */
.section-head h2, .spotlight-strip-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.ingredient-grid {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}
.ingredient-card {
  background: rgba(12, 20, 32, 0.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.ingredient-card .ing-name {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.38;
  word-break: normal;
  color: var(--paper);
}
.inspector-panel {
  background: #0c1421;
  border: 1px solid var(--line-bright);
  padding: 20px 22px;
}
.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  font-weight: 650;
  color: var(--gold);
}
.cg-code-disclosure {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(6, 11, 19, 0.78);
  padding: 8px 12px;
}
.cg-code-disclosure > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #7dd3fc;
  user-select: none;
}
.v36-quick-dock {
  display: none !important;
}

/* === V151 SAFARI WEBKIT COMPATIBILITY & ZERO-CLUTTER REFINEMENTS === */
/* Safari sticky masthead + modal backdrop compositing */
.masthead {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Eliminate double disclosure triangles in Safari WebKit (<details><summary>) */
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

/* Reset macOS/iOS Safari native Aqua search input bezel in dark mode */
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* Solid border & background fallbacks before color-mix() for older Safari WebKit */
.project-chip {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border: 1px solid color-mix(in srgb, var(--p-color, #8aa) 40%, #1d2d42);
}
.project-chip.is-selected {
  background: rgba(22, 38, 61, 0.95);
  background: color-mix(in srgb, var(--p-color, var(--gold)) 22%, #0e1929);
  border-color: var(--p-color, var(--gold));
}
.hub-node {
  border: 1px solid rgba(223, 192, 130, 0.48);
  border: 1px solid color-mix(in srgb, var(--hub-color) 55%, transparent);
}

/* Smooth touch scrolling & canvas touch handling on iOS/macOS Safari */
#galaxy-canvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.inspector-panel, .matrix-scroll, .project-chips {
  -webkit-overflow-scrolling: touch;
}

/* === V152 CALM EDITORIAL & EPISTEMIC TIER REFINEMENTS === */
.cg-calm-chip {
  appearance: none;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.cg-calm-chip:hover {
  border-color: rgba(229, 198, 135, 0.55);
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.85);
}
.cg-calm-editorial .ingredient-card {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(13, 21, 36, 0.72);
  padding: 13px 15px;
  gap: 5px;
  box-shadow: none;
}
.cg-calm-editorial .ingredient-card:hover {
  border-color: rgba(229, 198, 135, 0.42);
  background: rgba(17, 28, 48, 0.88);
}
.cg-calm-editorial .spot-card {
  border-color: rgba(148, 163, 184, 0.15);
  background: rgba(13, 21, 36, 0.74);
  box-shadow: none;
}
.cg-calm-editorial [data-seren-sub] {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.22);
}

/* === V157 CALM DE-CLUTTERING, COMPACT WORKSPACE & UNIFIED CATALOGUE CHROME === */
.cg-intro-kicker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.cg-compact-toggle-btn {
  font-size: 11px;
  padding: 3px 10px;
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(9, 15, 26, 0.72);
}
#v60-quickstart-hero.is-compact {
  padding: 8px 24px 4px;
}
#v60-quickstart-hero.is-compact .cg-intro-inner {
  grid-template-columns: 1fr;
  padding: 9px 16px;
  gap: 0;
}
#v60-quickstart-hero.is-compact .cg-intro-headline {
  font-size: 16px;
  margin: 0;
  display: none;
}
#v60-quickstart-hero.is-compact .cg-intro-lead,
#v60-quickstart-hero.is-compact #v60-qs-grid {
  display: none;
}
#v60-quickstart-hero.is-compact .cg-intro-kicker-row {
  margin-bottom: 0;
}

/* Calm Collapsible Spotlight & Verified Atlas Strips */
details.spotlight-strip.cg-calm-spotlight,
details#cg-verified-atlas-strip {
  padding: 11px 16px;
  margin-top: 16px;
  border-radius: 12px;
  background: rgba(12, 20, 32, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
details.spotlight-strip.cg-calm-spotlight > summary,
details#cg-verified-atlas-strip > summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
}
details.spotlight-strip.cg-calm-spotlight > summary::-webkit-details-marker,
details#cg-verified-atlas-strip > summary::-webkit-details-marker {
  display: none;
}
details.spotlight-strip.cg-calm-spotlight[open] > summary,
details#cg-verified-atlas-strip[open] > summary {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Unified Catalogue Header + Epistemic Lens Container */
.cg-catalogue-unified-shell {
  background: rgba(12, 20, 32, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  padding: 14px 16px 10px;
  margin-bottom: 14px;
}
.cg-catalogue-unified-shell .section-head {
  margin-bottom: 10px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}
.cg-catalogue-unified-shell #cg-hybrid-catalogue-bar {
  margin: 0 !important;
  padding: 9px 0 2px !important;
  background: none !important;
  border: none !important;
  border-top: 1px solid rgba(148, 163, 184, 0.13) !important;
  border-radius: 0 !important;
}

/* Quieter Catalogue Card Badges */
.cg-card-kind-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
  letter-spacing: 0;
  text-transform: none;
}
.cg-card-kind-pill.is-mech {
  color: var(--gold);
  border-color: rgba(223, 192, 130, 0.34);
  background: rgba(223, 192, 130, 0.09);
}
.cg-card-kind-pill.is-iso {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
}
.cg-card-kind-pill.is-warn {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.09);
}

/* === V159 IMMERSIVE GALAXY STAGE, CONSEQUENCE LENS & USE-CASE CARDS === */
.galaxy-workspace.is-wide-galaxy {
  grid-template-columns: 1fr;
}
.galaxy-workspace.is-wide-galaxy .galaxy-scene {
  height: 680px;
}
.galaxy-panel {
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 0 80px rgba(20, 42, 74, 0.22);
}
.hub-node.is-paired-beam {
  border-color: var(--gold) !important;
  background: rgba(223, 192, 130, 0.22) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(223, 192, 130, 0.52);
  z-index: 6;
}
.camera-controls button.is-active {
  border-color: var(--gold);
  background: rgba(223, 192, 130, 0.2);
  color: var(--gold);
  font-weight: 650;
}
.cg-consequence-usecase-card {
  margin: 9px 0;
  padding: 10px 13px;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(11, 24, 42, 0.88), rgba(7, 16, 30, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 11.8px;
  line-height: 1.48;
  color: #dbeafe;
}
.cg-consequence-usecase-card .cg-cu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cg-consequence-usecase-card .cg-cu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.cg-cu-row {
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.72);
  border-left: 2.5px solid #38bdf8;
}
.cg-cu-row.is-usecase {
  border-left-color: #34d399;
}
.cg-cu-row.is-gate {
  border-left-color: #fbbf24;
}
.cg-lead-spot-btn {
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(11, 20, 35, 0.84);
  border: 1px solid rgba(223, 192, 130, 0.28);
  margin-bottom: 6px;
  display: block;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cg-lead-spot-btn:hover {
  border-color: var(--gold);
  background: rgba(19, 32, 54, 0.94);
}

/* === V160 EPISTEMIC PILL & ROLE-VS-AST BANNER STYLES === */
.cg-card-kind-pill.is-star {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.42);
}


/* ============================================================================
   V165 IMMERSIVE CELESTIAL OBSIDIAN, ZEN THEATER, OMNIBOX & TABBED INSPECTOR
   ============================================================================ */
:root {
  --space: #050911;
  --space-deep: #03060c;
  --surface: rgba(12, 20, 34, 0.78);
  --surface-elevated: rgba(17, 29, 48, 0.86);
  --surface-hover: rgba(24, 40, 66, 0.92);
  --paper: #f5f3ee;
  --muted: #9cb0c9;
  --dim: #647894;
  --line: rgba(148, 169, 199, 0.14);
  --line-bright: rgba(165, 190, 224, 0.26);
  --gold: #e6c88a;
  --gold-soft: rgba(230, 200, 138, 0.14);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Subtle Custom Thin Dark Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) rgba(5, 9, 17, 0.45);
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(5, 9, 17, 0.45);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 200, 138, 0.52);
}

body.cg-calm-editorial {
  background:
    radial-gradient(ellipse 90% 48% at 50% -8%, rgba(36, 74, 122, 0.34) 0%, transparent 68%),
    radial-gradient(circle at 86% 14%, rgba(230, 200, 138, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 14% 32%, rgba(52, 211, 153, 0.05) 0%, transparent 44%),
    var(--space);
  background-attachment: fixed;
}

/* Frosted Glass Masthead & Quick-Jump Omnibox Pill */
.masthead {
  background: rgba(5, 9, 17, 0.82);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid rgba(230, 200, 138, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.38);
}
.brand-mark {
  box-shadow: 0 0 18px rgba(230, 200, 138, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.25s ease;
}
.brand:hover .brand-mark {
  transform: rotate(36deg) scale(1.06);
  box-shadow: 0 0 24px rgba(230, 200, 138, 0.44);
}
.lens-nav {
  background: rgba(9, 15, 26, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.lens-btn {
  transition: all 0.2s var(--ease-out-expo);
}
.lens-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(230, 200, 138, 0.24), rgba(230, 200, 138, 0.11));
  color: #fff6e0;
  border: 1px solid rgba(230, 200, 138, 0.52);
  box-shadow: 0 2px 14px rgba(230, 200, 138, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cg-omnibox-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  background: linear-gradient(145deg, rgba(16, 28, 46, 0.92), rgba(10, 18, 31, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.18s var(--ease-out-expo);
}
.cg-omnibox-trigger:hover {
  border-color: var(--gold);
  color: #ffffff;
  background: rgba(22, 37, 60, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 14px rgba(230, 200, 138, 0.16);
}
.cg-kbd-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold);
  letter-spacing: 0.02em;
}
.cg-zen-masthead-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(13, 22, 36, 0.85);
  border: 1px solid var(--line-bright);
  transition: all 0.18s var(--ease-out-expo);
}
.cg-zen-masthead-btn.is-active,
.cg-zen-masthead-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(230, 200, 138, 0.14);
}

/* Sleeker Above-the-Fold Editorial Hero & Entry Cards */
.cg-editorial-intro {
  padding: 12px 24px 10px;
}
.cg-intro-inner {
  padding: 14px 20px;
  gap: 18px;
  background:
    radial-gradient(circle at 12% 20%, rgba(56, 189, 248, 0.08), transparent 48%),
    radial-gradient(circle at 92% 80%, rgba(230, 200, 138, 0.08), transparent 48%),
    linear-gradient(160deg, rgba(14, 24, 40, 0.82), rgba(8, 14, 25, 0.86));
  border: 1px solid rgba(230, 200, 138, 0.2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cg-intro-headline {
  font-size: clamp(21px, 2vw, 28px);
  margin: 0 0 5px;
  background: linear-gradient(92deg, #ffffff 0%, #f5efe2 58%, #e6c88a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #f7f4ec;
}
.cg-intro-lead {
  font-size: 13px;
  line-height: 1.52;
}
.cg-entry-card {
  position: relative;
  overflow: hidden;
  padding: 10px 13px;
  background: linear-gradient(155deg, rgba(14, 24, 40, 0.88), rgba(8, 15, 27, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.2s var(--ease-out-expo), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cg-entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 200, 138, 0.62);
  background: linear-gradient(155deg, rgba(20, 34, 56, 0.94), rgba(11, 20, 35, 0.96));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42), 0 0 18px rgba(230, 200, 138, 0.12);
}

/* Unified Filter Bar Glass Polish */
.cg-unified-controls {
  padding: 10px 15px;
  margin-bottom: 12px;
  background: rgba(10, 18, 30, 0.76);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.search-box input {
  background: rgba(5, 10, 19, 0.88);
  border-color: rgba(148, 163, 184, 0.26);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 200, 138, 0.15);
  outline: none;
}

/* Immersive 3D Galaxy Viewport & Floating HUD */
.galaxy-panel {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(165, 190, 224, 0.22);
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(22, 52, 92, 0.44), transparent 72%),
    radial-gradient(circle at 28% 28%, rgba(52, 211, 153, 0.06), transparent 46%),
    radial-gradient(circle at 74% 68%, rgba(230, 200, 138, 0.07), transparent 48%),
    #030710;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.galaxy-scene {
  height: 615px;
  transition: height 0.32s var(--ease-out-expo);
}
.hub-node {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(6, 12, 22, 0.84);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s var(--ease-out-expo), background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.hub-node:hover, .hub-node.is-highlighted {
  transform: translate(-50%, -50%) scale(1.14);
  background: rgba(17, 32, 54, 0.95);
}
.galaxy-tooltip {
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(8, 15, 28, 0.92);
  border: 1px solid rgba(230, 200, 138, 0.65);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.72), 0 0 20px rgba(230, 200, 138, 0.14);
  border-radius: 12px;
  padding: 10px 13px;
}

/* Floating Constellation Status & Gesture Pill inside .galaxy-scene */
.cg-galaxy-hud-pill {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: min(560px, calc(100% - 28px));
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  color: #e2e8f0;
  background: rgba(6, 12, 23, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}
.cg-galaxy-hud-pill .cg-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  flex: none;
}
.cg-galaxy-hud-pill button {
  padding: 2px 8px;
  font-size: 10.5px;
  border-radius: 999px;
  background: rgba(230, 200, 138, 0.14);
  border: 1px solid rgba(230, 200, 138, 0.42);
  color: var(--gold);
}
.cg-galaxy-hud-pill button:hover {
  background: rgba(230, 200, 138, 0.28);
  color: #fff;
}

/* Full-Bleed Zen Theater Mode (Press Z or Click Theater) */
body.cg-zen-theater #v60-quickstart-hero,
body.cg-zen-theater .cg-unified-controls {
  display: none !important;
}
body.cg-zen-theater main {
  max-width: 100%;
  padding: 10px 16px 48px;
}
.galaxy-workspace.is-zen-theater {
  position: relative;
  grid-template-columns: 1fr !important;
}
.galaxy-workspace.is-zen-theater .galaxy-scene {
  height: min(79vh, 840px);
  min-height: 660px;
}
.galaxy-workspace.is-zen-theater .inspector-panel {
  position: absolute;
  right: 16px;
  top: 54px;
  z-index: 14;
  width: min(435px, calc(100vw - 44px));
  max-height: calc(100% - 112px);
  background: rgba(8, 14, 26, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(230, 200, 138, 0.34);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78);
  transition: transform 0.28s var(--ease-out-expo), opacity 0.22s ease;
}
.galaxy-workspace.is-zen-theater.is-inspector-minimized .inspector-panel {
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
}
.cg-zen-floating-bar {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 15;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 12, 23, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(230, 200, 138, 0.38);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.galaxy-workspace.is-zen-theater .cg-zen-floating-bar {
  display: inline-flex;
}

/* Elegant Glassmorphic Inspector & 3-Tab Progressive Disclosure */
.inspector-panel {
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(15, 26, 44, 0.92) 0%, rgba(8, 15, 27, 0.95) 100%);
  border: 1px solid rgba(165, 190, 224, 0.24);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-height: 705px;
}
.cg-ins-tabbar {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 8px 0 12px;
  border-radius: 10px;
  background: rgba(4, 9, 18, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.cg-ins-tab {
  flex: 1;
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  transition: all 0.16s var(--ease-out-expo);
}
.cg-ins-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}
.cg-ins-tab.is-active {
  background: linear-gradient(135deg, rgba(230, 200, 138, 0.22), rgba(56, 189, 248, 0.14));
  border-color: rgba(230, 200, 138, 0.5);
  color: #fff8e7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
/* CSS-attribute-driven progressive disclosure so ALL child nodes stay intact in DOM */
#inspector-panel[data-active-ins-tab="intuition"] .cg-ins-pane[data-ins-pane="mechanism"],
#inspector-panel[data-active-ins-tab="intuition"] .cg-ins-pane[data-ins-pane="rigor"] {
  display: none;
}
#inspector-panel[data-active-ins-tab="mechanism"] .cg-ins-pane[data-ins-pane="intuition"],
#inspector-panel[data-active-ins-tab="mechanism"] .cg-ins-pane[data-ins-pane="rigor"] {
  display: none;
}
#inspector-panel[data-active-ins-tab="rigor"] .cg-ins-pane[data-ins-pane="intuition"],
#inspector-panel[data-active-ins-tab="rigor"] .cg-ins-pane[data-ins-pane="mechanism"] {
  display: none;
}

/* Refined Catalogue Cards */
.cg-calm-editorial .ingredient-card {
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(13, 22, 37, 0.82), rgba(9, 15, 27, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.18s var(--ease-out-expo), border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.cg-calm-editorial .ingredient-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 200, 138, 0.52);
  background: linear-gradient(160deg, rgba(18, 30, 50, 0.92), rgba(11, 20, 35, 0.95));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36), 0 0 16px rgba(230, 200, 138, 0.09);
}

/* Universal ⌘K Spotlight Omnibox Modal */
.cg-omnibox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100020;
  background: rgba(2, 6, 15, 0.76);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 16px 24px;
}
.cg-omnibox-dialog {
  width: min(760px, 95vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(13, 23, 40, 0.97), rgba(7, 13, 24, 0.99));
  border: 1px solid rgba(230, 200, 138, 0.45);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.82), 0 0 40px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.cg-omnibox-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(5, 10, 20, 0.65);
}
.cg-omnibox-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  color: #f8fafc !important;
  font-size: 15.5px !important;
  font-weight: 500;
  padding: 4px 2px !important;
  box-shadow: none !important;
}
.cg-omnibox-input:focus {
  outline: none !important;
}
.cg-omnibox-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(8, 14, 26, 0.55);
}
.cg-omnibox-cat-btn {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.cg-omnibox-cat-btn.is-active {
  background: rgba(230, 200, 138, 0.2);
  border-color: var(--gold);
  color: #fff8e7;
}
.cg-omnibox-results {
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 54vh;
}
.cg-omnibox-item {
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  border-radius: 11px;
  background: rgba(12, 21, 36, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.cg-omnibox-item:hover,
.cg-omnibox-item.is-selected {
  background: linear-gradient(135deg, rgba(23, 39, 64, 0.94), rgba(15, 27, 46, 0.96));
  border-color: rgba(230, 200, 138, 0.55);
  transform: translateX(2px);
}
.cg-omnibox-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 18px;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(4, 8, 16, 0.78);
}
