.schedule-scroll {
  overflow: auto;
  max-height: 26rem;
  margin-top: .75rem;
  max-width: 100%;
}

.schedule-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
}

.schedule-scroll th,
.schedule-scroll td {
  text-align: right;
  padding: .45rem .65rem;
  border-bottom: 1px solid #d5dedb;
  white-space: nowrap;
}

.schedule-scroll th[scope="row"],
.schedule-scroll thead th:first-child {
  text-align: left;
}

.schedule-scroll th {
  position: sticky;
  top: 0;
  background: #f2f7f5;
  color: #103347;
  font-weight: 700;
}

body[data-tool="mortgage-calculator"] .result,
body[data-tool="compound-interest"] .result {
  min-width: 0;
}

.finance-plot {
  margin: 14px 0 18px;
}

.finance-plot svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 190px;
}

.finance-plot svg [hidden] {
  display: none;
}

.finance-plot figcaption {
  font-size: .85rem;
  color: #314e40;
}

.finance-plot figcaption span {
  display: block;
  margin-top: .35rem;
}

.fn-check-field {
  align-self: center;
}

.fn-check {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-weight: 600;
  cursor: pointer;
}

.fn-check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: .15rem 0 0;
  padding: 0;
  flex-shrink: 0;
}

.fn-callout {
  margin: .75rem 0 1rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid #b6dfd2;
  background: #eff9f5;
  color: #0e4437;
  font-weight: 600;
  font-size: .93rem;
  line-height: 1.5;
}

.fn-compare {
  margin: 1.15rem 0;
  padding: .9rem 1rem;
  border-radius: 10px;
  border: 1px solid #d8e2df;
  background: #fafcfb;
}

.fn-compare h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  color: #103347;
}

.fn-row-current {
  background: #e9f5f0;
  font-weight: 700;
}

.fn-mini-btn {
  min-height: 34px;
  padding: .3rem .65rem;
  font-size: .82rem;
  border-radius: 8px;
}

.fn-view-toggle {
  display: inline-flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin: .65rem 0 .25rem;
}

.fn-view-toggle button {
  min-height: 36px;
  padding: .35rem .8rem;
  font-size: .85rem;
  border-radius: 8px;
}

.fn-view-toggle [aria-pressed="true"] {
  background: #e0f3ed;
  border-color: #17624e;
  color: #104b3e;
  font-weight: 700;
}

.fn-goal-box {
  padding: .35rem 0;
}

.fn-goal-status {
  margin: .6rem 0 0;
  font-weight: 600;
  font-size: .92rem;
  color: #103347;
}

.fn-result-actions {
  margin-top: 1rem;
}

.project-status {
  font-size: .82rem;
  color: var(--muted);
  margin: .65rem 0 0;
}

@media screen and (max-width: 600px) {
  body[data-tool="mortgage-calculator"] #result .results-grid > div,
  body[data-tool="compound-interest"] #result .results-grid > div {
    display: block;
  }

  body[data-tool="mortgage-calculator"] #result .results-grid dd,
  body[data-tool="compound-interest"] #result .results-grid dd {
    max-width: none;
    margin-top: 4px;
    text-align: left;
  }
}

@media print {
  body[data-tool="mortgage-calculator"] form,
  body[data-tool="compound-interest"] form,
  body[data-tool="mortgage-calculator"] .fn-result-actions,
  body[data-tool="compound-interest"] .fn-result-actions,
  body[data-tool="mortgage-calculator"] .cs-studio-actions,
  body[data-tool="compound-interest"] .cs-studio-actions,
  body[data-tool="mortgage-calculator"] .cs-preset-bar,
  body[data-tool="compound-interest"] .cs-preset-bar,
  body[data-tool="mortgage-calculator"] .tool-rating,
  body[data-tool="compound-interest"] .tool-rating,
  body[data-tool="mortgage-calculator"] .ci-organic-guide,
  body[data-tool="compound-interest"] .ci-organic-guide,
  .fn-view-toggle,
  .fn-mini-btn,
  .project-status {
    display: none !important;
  }

  .fn-compare,
  .finance-plot {
    break-inside: avoid;
  }
}
