.mp-topic,
.mp-experiment-shell {
  display: grid;
  gap: 18px;
}

.mp-observatory {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(190, 202, 222, 0.9);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 12%, rgba(249, 115, 22, 0.18), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(20, 184, 166, 0.16), transparent 32%),
    linear-gradient(135deg, #fffaf0 0%, #eef6ff 48%, #f8fafc 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.mp-observatory-copy {
  max-width: 980px;
}

.mp-observatory-copy h2 {
  margin: 8px 0 10px;
  color: #111827;
  font-size: clamp(2.4rem, 5vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.mp-observatory-copy p {
  max-width: 860px;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.75;
}

.mp-observatory-stage {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.mp-orbit-nav,
.mp-control-dock {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mp-orbit-nav button {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.mp-orbit-nav button.is-selected {
  border-color: rgba(249, 115, 22, 0.75);
  background: #fff7ed;
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.12);
}

.mp-orbit-nav span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 950;
}

.mp-orbit-nav strong {
  color: #0f172a;
}

.mp-orbit-nav em {
  color: #64748b;
  font-size: 0.75rem;
  font-style: normal;
}

.mp-canvas-wrap {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 24px;
  background: #fff;
}

.mp-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
}

.mp-canvas-overlay {
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  gap: 5px;
  max-width: min(520px, 70%);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.mp-canvas-overlay span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 0.72rem;
  font-weight: 950;
}

.mp-canvas-overlay strong {
  color: #0f172a;
  font-size: 1.7rem;
}

.mp-canvas-overlay p {
  margin: 0;
  color: #475569;
}

.mp-control-dock {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
}

.mp-research-note {
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  color: #334155;
  background: #eff6ff;
  font-weight: 800;
  line-height: 1.55;
}

.mp-nav {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mp-nav button.is-selected,
.mp-problem-card.is-selected,
.mp-graph-row.is-selected,
.mp-exp-rail button.is-selected,
.mp-lens-grid button.is-selected {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.mp-graph-shell,
.mp-exp-map {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.mp-graph-layers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mp-graph-layers span,
.mp-path-card,
.mp-exp-rail button {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(190, 202, 222, 0.78);
  border-radius: 12px;
  background: #f8fafc;
}

.mp-graph-layers b,
.mp-path-card strong {
  color: #0f172a;
}

.mp-graph-layers em {
  color: #64748b;
  font-style: normal;
  font-size: 0.78rem;
}

.mp-graph-board {
  display: grid;
  gap: 9px;
}

.mp-graph-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.mp-graph-row::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(249, 115, 22, 0.36));
}

.mp-graph-row span,
.mp-graph-row strong,
.mp-graph-row em {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(190, 202, 222, 0.86);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.4;
}

.mp-graph-row strong {
  color: #1d4ed8;
  font-size: 0.96rem;
}

.mp-graph-row em {
  color: #9a3412;
  font-style: normal;
  background: #fff7ed;
}

.mp-lens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mp-lens-grid button {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(190, 202, 222, 0.78);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.mp-lens-grid span,
.mp-lens-note span {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 950;
}

.mp-lens-grid strong,
.mp-lens-note strong {
  color: #0f172a;
}

.mp-lens-grid em,
.mp-lens-note p {
  color: #64748b;
  font-style: normal;
  line-height: 1.5;
}

.mp-lens-note {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.mp-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mp-problem-card,
.mp-theory-card,
.mp-boundary-card,
.mp-case-stage,
.mp-exp-controls,
.mp-exp-board {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(190, 202, 222, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
}

.mp-problem-card {
  cursor: pointer;
}

.mp-problem-card strong,
.mp-theory-card strong,
.mp-boundary-card strong,
.mp-case-stage strong,
.mp-exp-card strong {
  color: #111827;
  font-size: 1.05rem;
}

.mp-problem-card span,
.mp-theory-card span,
.mp-case-stage header span,
.mp-exp-card span {
  color: #2563eb;
  font-weight: 950;
}

.mp-problem-card b {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
}

.mp-focus-grid,
.mp-boundary-grid,
.mp-mis-grid,
.mp-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mp-mis-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mp-path-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mp-path-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mp-path-card span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #1e3a8a;
  background: #dbeafe;
  font-size: 0.82rem;
  font-weight: 900;
}

.mp-boundary-card.is-open {
  border-color: rgba(249, 115, 22, 0.38);
  background: #fff7ed;
}

.mp-focus-lab,
.mp-exp-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.mp-exp-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.mp-exp-rail button {
  min-height: 118px;
  text-align: left;
  cursor: pointer;
}

.mp-exp-rail span {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 950;
}

.mp-exp-rail strong {
  color: #0f172a;
}

.mp-exp-rail em {
  color: #64748b;
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.35;
}

.mp-case-stage header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.mp-case-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mp-case-metrics span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.82rem;
}

.mp-case-metrics em {
  font-style: normal;
}

.mp-case-metrics b {
  color: #1e293b;
}

.mp-visual {
  min-height: 230px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
  overflow: hidden;
}

.mp-exp-card {
  padding: 14px;
  border-radius: 14px;
  color: #172554;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.mp-sat,
.mp-prime-lab,
.mp-hodge,
.mp-curve,
.mp-fluid,
.mp-quantum,
.mp-topology {
  display: grid;
  gap: 12px;
  min-height: 200px;
}

.mp-var,
.mp-prime-dot,
.mp-zero {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 3px;
  border-radius: 4px;
  background: #60a5fa;
}

.mp-prime-dot {
  border-radius: 999px;
  background: #22c55e;
}

.mp-zero {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #2563eb;
  border-radius: 999px;
  background: #eff6ff;
}

.mp-sat section {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: start;
}

.mp-sat div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mp-sat span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 10px;
  color: #7f1d1d;
  font-weight: 900;
  background: #fee2e2;
}

.mp-sat span.is-ok {
  color: #065f46;
  background: #d1fae5;
}

.mp-sat span.is-live,
.mp-hodge section.is-live,
.mp-quantum span.is-live {
  outline: 3px solid rgba(249, 115, 22, 0.34);
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.12);
}

.mp-prime-lab {
  position: relative;
  align-content: center;
}

.mp-critical-line {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: #f97316;
}

.mp-prime-lab span {
  display: block;
  width: var(--w);
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.mp-hodge {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mp-hodge section {
  min-height: 62px;
  padding: 8px;
  border-radius: 12px;
  color: #4c1d95;
  font-weight: 900;
  background: #f3e8ff;
}

.mp-hodge section.is-matched {
  color: #065f46;
  background: #d1fae5;
}

.mp-curve svg {
  width: 100%;
  min-height: 150px;
  border-radius: 14px;
  background: #f8fafc;
}

.mp-fluid {
  grid-template-columns: repeat(3, 1fr);
}

.mp-fluid i {
  display: block;
  min-height: 52px;
  border: 3px solid #38bdf8;
  border-radius: 999px;
  transform: rotate(var(--r));
  scale: var(--s);
}

.mp-quantum {
  position: relative;
  min-height: 210px;
  border-left: 3px solid #111827;
}

.mp-quantum span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 999px;
  background: #2563eb;
}

.mp-topology {
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.mp-topology section {
  min-height: 82px;
  border: 8px solid #0f766e;
  border-radius: 999px;
}

.mp-topology section.cut {
  border-style: dashed;
  border-color: #f97316;
}

.mp-visual strong,
.mp-sat strong {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 12px;
  color: #0f172a;
  background: #e0f2fe;
}

@media (max-width: 980px) {
  .mp-observatory {
    padding: 18px;
  }

  .mp-observatory-stage {
    grid-template-columns: 1fr;
  }

  .mp-canvas-wrap,
  .mp-canvas-wrap canvas {
    min-height: 420px;
  }

  .mp-nav,
  .mp-problem-grid,
  .mp-lens-grid,
  .mp-graph-layers,
  .mp-graph-row,
  .mp-exp-rail,
  .mp-focus-grid,
  .mp-boundary-grid,
  .mp-mis-grid,
  .mp-path-grid,
  .mp-focus-lab,
  .mp-exp-grid {
    grid-template-columns: 1fr;
  }

  .mp-graph-row::before {
    top: 0;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 2px;
    height: auto;
  }
}
