/* Reader-paced comparison views; governed records remain separate. */
#relationshipWorkbenchModule:has(#workbenchCatalog:not([hidden])) {
  padding: 14px;
}
#relationshipWorkbenchModule:has(#workbenchCatalog:not([hidden])) .relationship-module-switcher button {
  min-height: 34px;
}
#relationshipWorkbenchModule:has(#workbenchCatalog:not([hidden])) .atlas-introduction {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
}
#relationshipWorkbenchModule:has(#workbenchCatalog:not([hidden])) .atlas-introduction .overview-kicker {
  margin: 0;
  font-size: 11px;
}
#relationshipWorkbenchModule:has(#workbenchCatalog:not([hidden])) .atlas-introduction .module-candidate-badge {
  justify-self: start;
  margin: 0;
}
#relationshipWorkbenchModule:has(#workbenchCatalog:not([hidden])) .atlas-introduction h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
}
#relationshipWorkbenchModule:has(#workbenchCatalog:not([hidden])) #workbenchIntroduction {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15px;
}
#relationshipWorkbenchModule:has(#workbenchCatalog:not([hidden])) .breakfast-catalog-switch {
  margin: 6px 0 10px;
  padding: 0;
  border: 0;
}
#relationshipWorkbenchModule:has(#workbenchCatalog:not([hidden])) .breakfast-catalog-switch button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 14px;
}
@media (max-width: 600px) {
  #relationshipWorkbenchModule:has(#workbenchCatalog:not([hidden])) .atlas-introduction {
    grid-template-columns: minmax(0, 1fr);
  }
}
#relationshipWorkbenchModule:has(#workbenchCatalog:not([hidden])) .breakfast-catalog-switch > span,
#workbenchCatalog .builder-necessity-head,
#workbenchCatalog .builder-test-step {
  display: none;
}
#relationshipWorkbenchModule #workbenchCatalog {
  max-width: 1320px;
  margin: 0 auto;
}
#relationshipWorkbenchModule #workbenchCatalog .builder-necessity {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
#relationshipWorkbenchModule #workbenchCatalog .builder-test-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
#relationshipWorkbenchModule #workbenchCatalog .builder-test-outcome {
  position: static;
  max-height: none;
  overflow: visible;
  padding: 0;
  scrollbar-gutter: auto;
}
#builderTestControlsGenerated {
  display: grid;
  gap: 12px;
}
.removal-comparison-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.removal-comparison-picker label {
  font-size: 15px;
  font-weight: 750;
  color: #294b44;
}
#removalComparisonSelect {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  color: #253f3b;
  background: #fff;
  border: 1px solid #8ba59c;
  border-radius: 7px;
  font-size: 16px;
  text-overflow: ellipsis;
}
.removal-comparison-inventory summary,
.removal-value-disclosure > summary {
  width: fit-content;
  cursor: pointer;
  color: #2c564d;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}
.removal-comparison-inventory[open] {
  padding: 16px;
  background: #f4f6f4;
  border: 1px solid #d2dcd6;
  border-radius: 10px;
}
.removal-comparison-inventory .builder-test-buttons {
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
}
#builderTestResult {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, .85fr);
  align-items: start;
  gap: 18px 26px;
  padding: clamp(16px, 2.5vw, 30px);
  border: 1px solid #c5d2cc;
  border-radius: 14px;
  background: #fdfdfb;
  box-shadow: none;
  min-height: 0;
}
#builderTestResult > :not(.removal-stage):not(.removal-invariant) {
  grid-column: 1 / -1;
}
#builderTestResult h3 {
  margin: 0;
  font: 700 clamp(24px, 2.7vw, 34px)/1.2 ui-serif, Georgia, serif;
  color: #294840;
}
#builderTestResult h4 {
  margin: 0 0 14px;
  color: #294840;
  font: 700 22px/1.3 ui-serif, Georgia, serif;
}
#builderTestResult p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #2d4140;
  max-width: 80ch;
}
#builderTestResult strong {
  font: 750 15px/1.45 ui-sans-serif, system-ui, sans-serif;
  color: #304e46;
  margin: 0 0 7px;
}
.removal-step-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.removal-step-controls button {
  padding: 10px;
  min-height: 48px;
  white-space: normal;
  line-height: 1.3;
  font-size: 14px;
  background: #f4f6f3;
  border: 1px solid #b6c7bd;
  color: #315148;
}
.removal-step-controls button[aria-pressed="true"] {
  background: #285b4e;
  border-color: #285b4e;
  color: #fff;
  font-weight: 750;
}
.removal-stage { min-width: 0; }
.removal-focus-panel[hidden] { display: none; }
.removal-focus-panel { display: grid; gap: 14px; }
.removal-focused-pair { display: grid; gap: 14px; }
.removal-support-card,
.removal-context-card,
.removal-change-card {
  padding: 16px 18px;
  border: 1px solid #dae2db;
  border-left: 4px solid #86a795;
  border-radius: 7px;
  background: #f1f6f0;
}
.removal-context-card {
  background: #f4f5f2;
  border-color: #dee3dc;
}
.removal-change-card {
  background: #fbf6ea;
  border-color: #dfd2af;
  border-left-color: #9e8044;
}
#builderTestResult .removal-invariant {
  margin-top: 2px;
  padding: 16px 18px;
  border: 1px solid #d4dfd5;
  border-radius: 8px;
  background: #f3f6f1;
}
#builderTestResult .removal-invariant p {
  font-size: 14px;
  line-height: 1.6;
}
#builderTestResult .removal-invariant p + p { margin-top: 12px; }
#builderTestResult .removal-payoff {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}
.removal-reading-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dde4dd;
  padding-top: 16px;
}
.removal-reading-navigation button { min-height: 46px; font-size: 15px; }
#removalNext:not(:disabled) { background: #285b4e; border-color: #285b4e; color: #fff; font-weight: 750; }
#builderTestResult .removal-reading-progress { margin: 0; font-size: 13px; color: #496359; }
#builderTestResult .removal-status { font-size: 12px; color: #53685d; }
#builderTestResult details { min-width: 0; }
#builderTestResult summary { cursor: pointer; font-size: 14px; color: #31554b; line-height: 1.45; }
#builderTestResult details > p,
#builderTestResult details > div,
#builderTestResult details > dl { margin-top: 14px; }
#builderTestResult .removal-complete-comparison .removal-focused-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}
#builderTestResult .removal-complete-comparison .removal-focused-pair section {
  padding: 16px;
  border-left: 3px solid #91aa97;
  background: #f4f6f2;
}
.removal-value-disclosure { margin-top: 20px; }
.removal-value-disclosure[hidden] { display: none; }
#workbenchCatalog :is(button, select, summary):focus-visible,
#builderTestResult h4:focus-visible {
  outline: 3px solid #a08032;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .removal-comparison-picker { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #builderTestResult { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
  .removal-step-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #builderTestResult .removal-complete-comparison .removal-focused-pair { grid-template-columns: minmax(0, 1fr); }
  .removal-reading-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #builderTestResult .removal-reading-progress { grid-row: 2; grid-column: 1 / -1; text-align: center; }
  .removal-reading-navigation button { width: 100%; padding: 10px; white-space: normal; }
}
