:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #142438;
  background: #f1f4f7;
  font-synthesis: none;
  --ink: #142438;
  --muted: #52647a;
  --line: #d6e0e8;
  --paper: #fff;
  --teal: #086650;
  --mint: #dff5ed;
  --blue: #244ca5;
  --orange: #a64812;
  --shadow: 0 8px 30px #14243809;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: var(--blue);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #417be9;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.13;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
}
small,
.small {
  font-size: 0.875rem;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.top {
  background: var(--ink);
  color: white;
  min-height: 78px;
  padding: 18px max(24px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand-mark {
  color: #8ae8ca;
  border: 1px solid #456272;
  padding: 7px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.brand strong {
  color: #8ae8ca;
}
.local-label {
  font-size: 0.875rem;
  margin-left: auto;
  color: #c5d1df;
}
.top .quiet {
  color: white;
  border-color: #4c6075;
  white-space: nowrap;
}
.shell {
  max-width: 1280px;
  margin: auto;
  padding: 30px 24px 60px;
}
.workbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  background: #e8eef3;
  border-radius: 10px;
}
.tab {
  border: 0;
  padding: 10px 17px;
  border-radius: 7px;
  background: transparent;
  color: #43576b;
  font-size: 0.94rem;
}
.tab.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 4px #14243812;
  font-weight: 700;
}
.save-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.quiet,
.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 7px;
  padding: 9px 13px;
  font-weight: 600;
  font-size: 0.9rem;
}
.secondary {
  background: white;
}
.primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 12px 19px;
  font-weight: 700;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
}
.primary:hover {
  background: #28435f;
}
.primary.teal {
  background: var(--teal);
  border-color: var(--teal);
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
  padding: 3px 0;
  font-weight: 600;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 10px;
}
.intro {
  max-width: 750px;
}
.intro p {
  color: var(--muted);
  font-size: 1.05rem;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.8fr);
  gap: 24px;
  align-items: start;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card + .card {
  margin-top: 20px;
}
.card-header {
  display: flex;
  align-items: start;
  gap: 20px;
  justify-content: space-between;
}
.badge {
  font-size: 0.75rem;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
  background: #e8edf4;
  color: #45566b;
  font-weight: 700;
}
.badge.green {
  background: var(--mint);
  color: var(--teal);
}
.badge.orange {
  background: #fff0e3;
  color: var(--orange);
}
.story {
  padding: 20px;
  border-radius: 9px;
  background: #f2f6fb;
  border: 1px solid #e0e8f1;
  margin: 18px 0;
}
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 21px 0;
}
.flow > div {
  border-top: 3px solid #91a9c1;
  padding-top: 10px;
  min-width: 0;
}
.flow span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 3px;
}
.flow strong {
  font-size: 0.9rem;
}
.field {
  display: block;
  margin: 0 0 19px;
  font-weight: 650;
  font-size: 0.95rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  display: block;
  margin-top: 7px;
  border: 1px solid #b9c8d7;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 400;
  min-height: 46px;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field .help {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 6px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pair .field {
  margin-bottom: 16px;
}
.checks {
  display: grid;
  gap: 12px;
}
.check {
  display: flex;
  align-items: start;
  gap: 10px;
  font-weight: 600;
}
.check input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--teal);
}
.check small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.choices {
  display: grid;
  gap: 10px;
}
.choice {
  display: flex;
  align-items: start;
  gap: 13px;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  cursor: pointer;
}
.choice:has(input:checked) {
  background: #e9f7f2;
  border-color: #6ba991;
}
.choice input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--teal);
  flex: none;
}
.choice strong {
  display: block;
}
.choice small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.notice {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 14px 16px;
  background: #e8f0fb;
  border-left: 3px solid #587bba;
  border-radius: 0 7px 7px 0;
  margin: 20px 0;
}
.notice.warm {
  background: #fff4e9;
  border-color: #c77732;
}
.notice.success {
  background: #e8f6ef;
  border-color: #26835d;
}
.run-card {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.run-card .eyebrow {
  color: #8ae8ca;
}
.run-card .muted {
  color: #c1cedc;
}
.run-card .primary {
  background: #8ae8ca;
  color: var(--ink);
  border-color: #8ae8ca;
  width: 100%;
}
.run-card .field select {
  background: #253b52;
  color: #fff;
  border-color: #51657b;
}
.run-card .field .help {
  color: #becbda;
}
.run-card .field {
  font-size: 0.9rem;
}
.run-card .rule-summary {
  border-top: 1px solid #496074;
  padding-top: 17px;
  margin: 19px 0;
  font-size: 0.94rem;
}
.rule-summary p {
  margin-bottom: 10px;
}
.rule-summary strong {
  color: #a5edd5;
}
.disclaimer {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 14px 0 0;
}
.run-card .disclaimer {
  color: #bdcddb;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.actions p {
  margin: 0;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
details {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.94rem;
  margin-bottom: 12px;
}
details[open] summary {
  margin-bottom: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin: 22px 0;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  min-width: 0;
}
.metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 6px 0;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
.metric.warn {
  background: #fff5ec;
  border-color: #ebc8a8;
}
.metric.good {
  background: #e9f7f1;
  border-color: #b1d9c9;
}
.result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.result-title p {
  margin-bottom: 5px;
}
.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
}
.repair {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.repair:first-of-type {
  padding-top: 0;
}
.repair:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.repair p {
  font-size: 0.94rem;
  margin-bottom: 10px;
}
.repair .small {
  margin-bottom: 12px;
}
.repair .secondary {
  color: var(--teal);
  border-color: #81b5a2;
  background: #f3fbf7;
}
.day-strip {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 5px;
  margin: 16px 0;
}
.day {
  border: 1px solid var(--line);
  background: #e6f4ed;
  text-align: center;
  padding: 7px 2px;
  border-radius: 4px;
  font-size: 0.75rem;
}
.day.problem {
  background: #ffdfc6;
  border-color: #e2b087;
}
.day span {
  display: block;
  font-size: 0.7rem;
  color: #4e5967;
}
.table-wrap {
  overflow: auto;
  max-height: 480px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
  text-align: left;
}
th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid #e2e8ef;
  vertical-align: top;
}
th {
  background: #f0f4f8;
  font-weight: 700;
  position: sticky;
  top: 0;
}
td.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ledger {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 20px;
  font-size: 0.94rem;
  margin: 0;
}
.ledger dt {
  color: var(--muted);
}
.ledger dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ledger .total {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 6px;
  font-weight: 750;
  color: var(--ink);
}
.compare {
  background: #e9f5ff;
  border: 1px solid #bcd5ed;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 22px;
}
.compare h3 {
  margin-bottom: 12px;
}
.deltas {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.delta {
  font-size: 0.875rem;
}
.delta strong {
  display: block;
  font-size: 1.3rem;
}
.run-picker {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.run-pill {
  border: 1px solid var(--line);
  background: white;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 0.875rem;
}
.run-pill.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}
.order-reason {
  max-width: 330px;
}
.empty {
  text-align: center;
  padding: 55px 25px;
}
.empty p {
  max-width: 470px;
  margin: 0 auto 24px;
  color: var(--muted);
}
.code {
  background: #f1f5f9;
  font:
    13px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 15px;
  border-radius: 7px;
  max-height: 320px;
  overflow: auto;
}
.agent-steps {
  counter-reset: agent;
  display: grid;
  gap: 24px;
}
.agent-step {
  padding-left: 43px;
  position: relative;
}
.agent-step:before {
  counter-increment: agent;
  content: counter(agent);
  position: absolute;
  left: 0;
  top: 0;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  text-align: center;
  font-weight: 700;
  line-height: 29px;
}
.file-result {
  font-size: 0.875rem;
  background: #e7f5ee;
  color: #17513e;
  padding: 15px;
  border-radius: 8px;
  margin-top: 12px;
}
.footer {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}
.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 12px;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  max-width: min(90vw, 620px);
  padding: 13px 22px;
  border-radius: 8px;
  z-index: 20;
  box-shadow: 0 5px 30px #0003;
  display: none;
}
.toast.show {
  display: block;
}
dialog {
  border: 0;
  border-radius: 14px;
  padding: 34px;
  max-width: 610px;
  width: calc(100% - 36px);
  color: var(--ink);
  box-shadow: 0 25px 80px #0005;
}
dialog::backdrop {
  background: #10223999;
}
.close {
  float: right;
  background: transparent;
  border: 0;
  font-size: 1.7rem;
  line-height: 1;
  padding: 5px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.log-entry {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.log-entry small {
  color: var(--muted);
  display: block;
}
.log-scroll {
  max-height: 420px;
  overflow: auto;
}
.mobile-only {
  display: none;
}
@media (max-width: 950px) {
  .grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  }
  .top {
    padding: 16px 24px;
  }
  .local-label {
    display: none;
  }
  .top .quiet {
    margin-left: auto;
  }
  .tabs {
    flex: 1;
    justify-content: space-between;
  }
  .tab {
    padding: 10px 12px;
  }
  .save-actions {
    margin-left: 0;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .day-strip {
    grid-template-columns: repeat(7, 1fr);
  }
}
@media (max-width: 700px) {
  .shell {
    padding: 22px 16px 40px;
  }
  .top {
    padding: 15px 16px;
    gap: 10px;
  }
  .brand {
    font-size: 0.9rem;
    gap: 8px;
  }
  .brand-mark {
    font-size: 0.65rem;
  }
  .top .quiet {
    font-size: 0.8rem;
    padding: 7px 9px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .workbar {
    gap: 12px;
  }
  .tabs {
    width: 100%;
    flex: none;
    overflow: auto;
  }
  .tab {
    font-size: 0.82rem;
    white-space: nowrap;
    padding: 9px;
  }
  .save-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .intro p {
    font-size: 1rem;
  }
  .pair {
    gap: 12px;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 1.7rem;
  }
  .flow {
    gap: 10px;
  }
  .flow strong {
    font-size: 0.84rem;
  }
  .result-title {
    display: block;
  }
  .result-title .badge {
    display: inline-block;
    margin-top: 10px;
  }
  .footer {
    display: block;
  }
  .footer p {
    margin-bottom: 8px;
  }
  .agent-step {
    padding-left: 38px;
  }
  h1 {
    letter-spacing: -0.03em;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .card,
  .metric {
    animation: appear 0.15s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.5;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.mobile-run {
  display: none;
}
.change-list {
  font-size: 0.9rem;
  padding-left: 20px;
  margin: 12px 0 18px;
}
.change-list li {
  margin: 4px 0;
}
.metric strong {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .mobile-run {
    display: block;
    margin: 16px 0 20px;
  }
  .mobile-run .primary {
    width: 100%;
  }
  .mobile-run .disclaimer {
    font-size: 0.8rem;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .top {
    flex-wrap: wrap;
  }
  .tab {
    padding: 9px 7px;
  }
}

.history-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(210px, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.history-bar .field {
  margin: 0;
}
.history-bar select {
  max-width: 100%;
}
.history-bar p {
  margin: 0;
}
@media (max-width: 700px) {
  .history-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.template-card {
  display: flex;
  flex-direction: column;
}
.template-card > .muted {
  flex: 1;
}
.template-card h2 {
  margin-top: 12px;
}
.type-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--mint);
  color: var(--teal);
  font-size: 1.7rem;
  border-radius: 10px;
}
.template-card .primary {
  align-self: start;
}
@media (max-width: 700px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
  .template-card .primary {
    width: 100%;
  }
}

.other-repairs {
  margin-top: 20px;
}
.other-repairs .repair {
  margin-top: 18px;
}
.money-overview {
  padding: 12px 14px;
  background: #eff5fa;
  border-radius: 6px;
  margin-top: 18px;
}

/* Phone navigation stays visible; closed disclosure contents must not size the page in WebKit. */
details:not([open]) > :not(summary) {
  display: none;
}
.results-grid > div,
.history-bar,
.history-bar .field,
.field select,
.table-wrap {
  min-width: 0;
  max-width: 100%;
}
.pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
h1,
h2,
h3,
p,
dt,
.metric {
  overflow-wrap: anywhere;
}
summary {
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.text-button,
.quiet,
.tab {
  min-height: 44px;
}
@media (max-width: 700px) {
  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .tab {
    white-space: normal;
    padding: 10px 8px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .template-card .type-icon {
    display: none;
  }
  .template-card h2 {
    margin-top: 0;
  }
  .template-card .muted {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  .template-card {
    padding: 18px;
  }
}
@media (max-width: 360px) {
  .pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .top {
    flex-wrap: wrap;
  }
  .top .quiet {
    margin-left: auto;
  }
  .brand {
    white-space: normal;
  }
}

.history-bar select {
  appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%2352647a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
/* Flexible fields and metrics follow the reader's text size as well as the device width. */
.pair {
  display: flex;
  flex-wrap: wrap;
}
.pair > .field {
  flex: 1 1 calc(50% - 9px);
  min-width: min(100%, 9rem);
}
.field {
  overflow-wrap: anywhere;
}
.metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}
.badge {
  display: inline-block;
  white-space: normal;
  max-width: 100%;
}
.field select {
  appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%2352647a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
@media (max-width: 700px) {
  .top {
    flex-wrap: wrap;
  }
  .brand,
  .top .quiet {
    white-space: normal;
  }
}
.day-strip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 2.5rem), 1fr));
}

.mobile-action-bar {
  display: none;
}
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  .shell {
    padding-bottom: 10rem;
  }
  .mobile-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    background: #fff;
    border-top: 1px solid #c8d6e2;
    box-shadow: 0 -4px 18px #14243812;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-action-bar > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .mobile-action-bar small,
  .mobile-action-bar strong {
    display: block;
  }
  .mobile-action-bar small {
    color: var(--muted);
    font-size: 0.75rem;
  }
  .mobile-action-bar strong {
    font-size: 0.9rem;
  }
  .mobile-action-bar button {
    max-width: 56%;
    padding: 10px 13px;
    font-size: 0.9rem;
    white-space: normal;
    flex: none;
  }
}

@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  .history-bar.single-run {
    display: none;
  }
}

/* Example-led type choice and explicit operational assumptions. */
.type-essential {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.examples-heading {
  margin-top: 20px;
  margin-bottom: 8px;
}
.example-list {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.example-choice {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f6f9fc;
  color: var(--blue);
  font-size: 0.9rem;
}
.example-choice:hover {
  background: #e8f1fa;
  border-color: #244ca5;
}
.more-examples {
  margin-bottom: 16px;
}
.equipment-settings {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

[hidden] {
  display: none !important;
}
.comparison-assumptions {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.run-card #plan-summary {
  background: #e8f0fa;
  color: var(--ink);
}
.run-card #plan-summary .text-button {
  color: #244ca5;
}
.more-examples > summary {
  padding: 12px;
  border: 1px solid #b8cce0;
  border-radius: 7px;
  background: #edf4fb;
  color: #244ca5;
}
