.micro-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 11px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.4;
}

.micro-nav a:hover { background: #e5ebdf; }
.micro-nav a.active { background: var(--green); color: #fff; }
.micro-page .sidebar { overflow-y: auto; }
.micro-page .sidebar-bottom { padding-top: 22px; }
.micro-hero h1 { max-width: 18ch; }
.micro-hero p { color: #53665b; }
.micro-page .section-intro { color: #586b60; }

.micro-scene-panel, .micro-force-panel, .micro-energy-panel { min-width: 0; }
#micro-scene { height: 250px; }
.micro-scene-caption { color: #53695c; }
.micro-scene-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.micro-page .metric-label { color: #586b60; }
.micro-transport { padding-bottom: 19px; }
.micro-transport #micro-play-label { font-size: inherit; }

.micro-parameters {
  display: grid;
  gap: 16px;
  padding: 21px 20px 0;
}

.micro-controls .control-foot { color: #586b60; }
.micro-controls .range-labels { color: #586b60; }
.micro-controls .parameter label { gap: 6px; }
.micro-controls .parameter label > span { line-height: 1.35; }

.micro-fixed {
  margin: 0;
  padding: 12px 20px;
  background: #f0f4ea;
  border-top: 1px solid var(--line);
  color: #50675a;
  font-size: 10px;
  line-height: 1.65;
}

.micro-fixed div { display: flex; justify-content: space-between; gap: 10px; }
.micro-fixed dd { margin: 0; font-variant-numeric: tabular-nums; }

.micro-observables {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 16px;
  margin-top: 16px;
}

.micro-atom-picker button { min-width: 31px; min-height: 27px; font-size: 11px; }
.micro-atom-picker button[aria-pressed=true] { background: var(--green); color: white; }
.micro-particle-state {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: #556c5e;
  font-size: 11px;
  line-height: 1.6;
  margin: 13px 21px;
}

.micro-particle-state b { color: var(--ink); font-weight: 550; font-variant-numeric: tabular-nums; }
.micro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.micro-table th, .micro-table td { padding: 8px 7px; border-bottom: 1px solid var(--line); text-align: right; }
.micro-table th { font-weight: 550; }
.micro-table thead { color: #53675b; }
.micro-table th:first-child, .micro-table td:first-child { text-align: left; }
.micro-table tfoot { color: var(--green); background: #edf3e9; font-weight: 550; }
.micro-force-panel .micro-table { width: calc(100% - 42px); margin: 0 21px; }
.micro-card-note { margin: 12px 21px 17px; color: #586b60; font-size: 11px; line-height: 1.65; }
.micro-energy-panel canvas { height: 129px; margin-top: 10px; }

.micro-energy-values, .micro-invariants {
  display: grid;
  gap: 7px 16px;
  margin: 0 21px;
  padding: 9px 0;
  font-size: 11px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.micro-energy-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.micro-energy-values span { color: #586b60; }
.micro-energy-values b { margin-left: 3px; color: var(--ink); font-weight: 550; }
.micro-invariants { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.micro-invariants dt { color: #586b60; }
.micro-invariants dd { margin: 2px 0 0; overflow-wrap: anywhere; }

.micro-stepper { margin-top: 17px; }
.micro-step-head { padding: 17px 20px 14px; border-bottom: 1px solid var(--line); background: #f3f6ee; }
.micro-step-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 11px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.micro-step-actions { margin: 12px 0 8px; }
.micro-step-status { min-height: 1.6em; font-size: 11px; line-height: 1.6; color: #4f685a; }
.micro-step-layout { display: grid; grid-template-columns: minmax(155px, .38fr) minmax(0, 1fr); }
.micro-operations { list-style: none; padding: 13px; margin: 0; border-right: 1px solid var(--line); }
.micro-operations li + li { margin-top: 3px; }

.micro-operation-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  background: transparent;
  color: #50675a;
  font-size: 11px;
  line-height: 1.35;
}

.micro-operation-tab:disabled { opacity: .78; }
.micro-operation-tab[aria-pressed=true] { background: #eaf2e8; border-color: #a9c2ae; color: #1a6153; }
.micro-operation-tab:hover:not(:disabled) { background: #edf4ea; }
.micro-operation-number {
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  height: 24px;
  border-radius: 50%;
  background: #edf1e9;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.micro-operation-tab:not(:disabled) .micro-operation-number { background: var(--green); color: #fff; }
.micro-operation-panel { min-width: 0; padding: 17px 21px 22px; }
.micro-operation-panel h3 { font-family: Manrope, system-ui, sans-serif; font-size: 16px; line-height: 1.45; }
.micro-operation-panel h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; line-height: 1.45; }
.micro-operation-panel p { color: #52675a; font-size: 11px; line-height: 1.7; margin: 5px 0 12px; }
.micro-operation-panel .formula { font-size: 19px; line-height: 1.45; margin: 10px 0; }
.micro-operation-panel .micro-explanation { margin-bottom: 0; margin-top: 12px; }
.micro-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.micro-pair { min-width: 0; padding: 12px; border: 1px solid #dce7d8; border-radius: 8px; background: #f6f8f1; }
.micro-pair dl { margin: 0; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.45; }
.micro-pair dl div + div { margin-top: 6px; }
.micro-pair dt { color: #53695b; }
.micro-pair dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.micro-stage-result { background: #edf4e9; border: 1px solid #dce7d8; border-radius: 7px; padding: 9px 12px; }
.micro-model-limits { max-width: 760px; margin-top: 15px; font-size: 12px; line-height: 1.75; color: #52675a; }

@media (max-width: 950px) {
  .micro-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .micro-nav a { padding: 12px; font-size: 12px; gap: 9px; }
  .micro-page .sidebar { overflow: visible; }
  .micro-hero h1 { max-width: none; }
}

@media (max-width: 680px) {
  .micro-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .micro-nav a { padding: 10px; }
  .micro-nav small { display: none; }
  #micro-scene { height: 216px; }
  .micro-scene-metrics { margin-inline: 17px; }
  .micro-scene-caption { gap: 4px 10px; }
  .micro-page .model-tag { white-space: normal; line-height: 1.5; }
  .micro-observables { grid-template-columns: minmax(0, 1fr); }
  .micro-energy-values, .micro-invariants, .micro-card-note, .micro-particle-state { margin-inline: 17px; }
  .micro-force-panel .micro-table { width: calc(100% - 34px); margin-inline: 17px; }
  .micro-step-layout { grid-template-columns: minmax(0, 1fr); }
  .micro-operations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; border-right: 0; border-bottom: 1px solid var(--line); }
  .micro-operations li + li { margin-top: 0; }
  .micro-operation-panel { padding-inline: 16px; }
}

@media (max-width: 420px) {
  .micro-pairs { grid-template-columns: minmax(0, 1fr); }
  .micro-operation-panel .micro-table { font-size: 10px; }
  .micro-operation-panel .micro-table th, .micro-operation-panel .micro-table td { padding: 7px 3px; }
  .micro-operation-panel .micro-table th:first-child { max-width: 43px; }
  .micro-transport .speed-control { justify-content: flex-start; margin-left: 0; }
}

@media (pointer: coarse) {
  .micro-atom-picker button { min-width: 44px; min-height: 44px; }
}
