/* Calculator-only visual polish. No calculator behavior or layout order lives here. */

.calculator-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 42px;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #0f2347 0%, #174b7f 58%, #205f96 100%);
}

.syd-income-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.syd-paycheck-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.syd-paycheck-result-heading > div {
  display: grid;
  gap: 2px;
}

.syd-paycheck-result-heading .syd-income-toggle {
  flex: 0 0 auto;
}

.syd-income-toggle-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 10px;
  padding: 9px 12px;
  border: 1px solid #bfd5e3;
  border-radius: 10px;
  background: #f3f9fc;
  color: #334755;
  font-size: 0.82rem;
  line-height: 1.35;
}

.syd-income-toggle-hint > span:first-child {
  color: #2e6f95;
  font-size: 1.15rem;
  font-weight: 900;
}

#billsTable tr.is-income-off td {
  background: #eef1f3 !important;
  color: #65747f !important;
  filter: grayscale(0.85);
  opacity: 0.7;
}

#billsTable tr.is-income-off .syd-assigned-paycheck {
  border-color: #aeb9c1 !important;
  background: #e2e7ea !important;
  color: #45535d !important;
}

.calculator-unfunded-bills-card strong {
  color: #9a4b00;
}

.syd-income-toggle {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #718596;
  border-radius: 999px;
  background: #eef1f3;
  color: #334755;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.syd-income-toggle.is-on {
  border-color: #2e6f95;
  background: #e6f2f8;
  color: #16324f;
}

.syd-income-toggle:focus-visible {
  outline: 3px solid rgba(217, 152, 47, 0.45);
  outline-offset: 2px;
}

.syd-income-source-card.is-disabled,
.syd-paycheck-result-card.is-disabled {
  border-color: #aeb9c1 !important;
  background: #eef1f3 !important;
  box-shadow: none !important;
  filter: grayscale(0.85);
  opacity: 0.62;
}

.syd-income-source-card.is-disabled .syd-income-toggle,
.syd-paycheck-result-card.is-disabled .syd-income-toggle {
  filter: none;
  opacity: 1;
}

/* Move visitors into Step 1 quickly without removing trust or context. */
.calculator-process-panel,
.calculator-workflow-divider {
  display: none !important;
}

.calculator-hero {
  padding: 26px 0 24px;
}

.calculator-hero .container {
  display: block;
}

.calculator-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
}

.calculator-hero-panel {
  display: none !important;
}

.calculator-hero-copy {
  max-width: 820px;
}

.calculator-page {
  padding-top: 14px;
}

@media (max-width: 820px) {
  .calculator-hero-panel {
    display: none !important;
  }

  .calculator-hero {
    padding: 22px 0;
  }
}

/* Premium calculator tool refresh. Visual only: no calculator formulas, IDs, or events changed. */
.calculator-page {
  background:
    radial-gradient(circle at 8% 4%, rgba(120, 181, 223, 0.20), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(34, 197, 94, 0.16), transparent 30%),
    linear-gradient(180deg, #edf6fb 0, #f8fbff 210px, #f4f8fc 100%) !important;
}

.calculator-page > .container {
  width: min(1120px, calc(100% - 28px));
  padding: 16px;
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 0%, rgba(34, 197, 94, 0.09), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(239,247,255,0.72));
  box-shadow: 0 26px 64px rgba(15, 35, 71, 0.12);
}

.calculator-page .calculator-card {
  isolation: isolate;
  border: 1px solid rgba(187, 211, 232, 0.92) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(120, 181, 223, 0.13), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.09), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow:
    0 18px 44px rgba(15, 35, 71, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

.calculator-page .calculator-card::before {
  height: 5px !important;
  background: linear-gradient(90deg, #145da0, #16a34a, #78b5df) !important;
}

.calculator-page .calculator-card:hover {
  border-color: rgba(120, 181, 223, 0.98) !important;
  box-shadow:
    0 22px 52px rgba(15, 35, 71, 0.13),
    inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

.calculator-page .calculator-card h1,
.calculator-page .calculator-card h2,
.calculator-page .calculator-card h3 {
  color: #071b38;
  letter-spacing: 0;
}

.calculator-page .dashboard-section-title {
  border-bottom-color: rgba(191, 219, 254, 0.74) !important;
}

.calculator-page .section-helper {
  border-left-color: #16a34a !important;
  background:
    linear-gradient(90deg, rgba(240, 253, 244, 0.92), rgba(239, 246, 255, 0.62)) !important;
  color: #39536d !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
}

.syd-calculator-save-path {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e7c46c;
  border-left: 5px solid #d9982f;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff9e9, #ffffff);
  box-shadow: 0 8px 20px rgba(88, 61, 13, 0.07);
  color: #334b61;
}

.syd-save-path-number {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #16324f;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.syd-calculator-save-path strong {
  color: #16324f;
}

.syd-calculator-save-path p {
  margin: 3px 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .syd-calculator-save-path {
    align-items: flex-start;
    padding: 11px;
  }

  .syd-save-path-number {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
}

.calculator-page .enhanced-bill-input,
.calculator-page .bill-input,
.calculator-page .mortgage-tool-grid,
.calculator-page .mortgage-results-grid,
.calculator-page .affordability-grid {
  border: 1px solid rgba(205, 224, 240, 0.96) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 96% 4%, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,0.90), rgba(245,250,255,0.90)) !important;
  box-shadow: 0 12px 26px rgba(15, 35, 71, 0.07);
}

.calculator-page label {
  color: #102747;
  font-weight: 850;
}

.calculator-page .calculator-card input,
.calculator-page .calculator-card select {
  min-height: 46px !important;
  border: 1px solid #bfd5e8 !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff) !important;
  color: #102033;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.96),
    0 7px 16px rgba(15, 35, 71, 0.045);
}

.calculator-page .calculator-card input:hover,
.calculator-page .calculator-card select:hover {
  border-color: #8fc1e7 !important;
}

.calculator-page .calculator-card input:focus,
.calculator-page .calculator-card select:focus {
  border-color: #145da0 !important;
  box-shadow:
    0 0 0 4px rgba(20, 93, 160, 0.12),
    0 8px 18px rgba(15, 35, 71, 0.06) !important;
}

.calculator-page .calculator-card button,
.calculator-page .next-step-btn,
.calculator-page .related-guide-links a {
  border-radius: 14px !important;
}

.calculator-page .calculator-card button {
  border: 1px solid rgba(15, 42, 77, 0.08) !important;
  box-shadow: 0 9px 20px rgba(15, 42, 77, 0.10) !important;
}

.calculator-page .dashboard-stat-card,
.calculator-page .mortgage-result-tile,
.calculator-page .mortgage-insight-card,
.calculator-page .affordability-result-card,
.calculator-page .value-strip-list span,
.calculator-page .pay-date-summary span,
.calculator-page .save-plan-preview div {
  border: 1px solid rgba(205, 224, 240, 0.96) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(120, 181, 223, 0.10), transparent 26%),
    linear-gradient(145deg, #ffffff, #f8fbff) !important;
  box-shadow:
    0 12px 28px rgba(15, 35, 71, 0.075),
    inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

.calculator-page .dashboard-stat-card strong,
.calculator-page .mortgage-result-tile strong,
.calculator-page .affordability-result-card strong,
.calculator-page .pay-date-summary strong {
  color: #071b38 !important;
  letter-spacing: 0;
}

.calculator-page .table-wrap,
.calculator-page .pay-date-table-wrap,
.calculator-page .mortgage-table-wrap {
  border: 1px solid rgba(190, 215, 235, 0.95) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 16px 36px rgba(15, 35, 71, 0.08) !important;
}

.calculator-page table th {
  background:
    linear-gradient(180deg, #edf6fd, #e5f1fb) !important;
  color: #0f2347 !important;
  letter-spacing: 0.045em;
}

.calculator-page table td {
  background: rgba(255,255,255,0.88);
}

.calculator-page .next-move-card,
.calculator-page .calculator-trust-note,
.calculator-page .calculator-related-card,
.calculator-page .calculator-faq-card {
  border-color: var(--border, #e2e8f0) !important;
  background: #fff !important;
}

.calculator-page .flow-step-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 8px;
  padding: 5px 10px;
  border: 1px solid rgba(46, 111, 149, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #f5f9fb, #e9f2f7);
  color: #2e6f95;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(22, 50, 79, 0.06);
}

.mortgage-coach-card {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(190, 215, 235, 0.95);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 0%, rgba(34, 197, 94, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(246,251,255,0.94));
  box-shadow:
    0 16px 34px rgba(15, 35, 71, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.94);
}

.affordability-coach-card {
  background:
    radial-gradient(circle at 96% 0%, rgba(20, 93, 160, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(239,253,246,0.92));
}

.mortgage-coach-card h3 {
  margin: 4px 0 4px;
  color: #0f2347;
  font-size: 1.05rem;
}

.mortgage-coach-card .section-helper {
  margin: 0;
}

.mortgage-coach-card textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid #bfd6ed;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: #10233f;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 8px 18px rgba(15, 35, 71, 0.045);
}

.mortgage-coach-card textarea:focus {
  outline: none;
  border-color: #145da0;
  box-shadow: 0 0 0 4px rgba(20, 93, 160, 0.13);
}

.mortgage-coach-card button {
  justify-self: start;
  min-height: 44px;
}

.mortgage-coach-response {
  padding: 14px;
  border: 1px solid #d5e5f4;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fbff, #fff);
  color: #2c455f;
  line-height: 1.55;
  white-space: pre-wrap;
}

.mortgage-chat-thread {
  display: grid;
  gap: 10px;
}

.mortgage-chat-message {
  max-width: 94%;
  padding: 12px 14px;
  border: 1px solid #d5e5f4;
  border-radius: 16px;
  background: #ffffff;
  color: #203a55;
  white-space: pre-wrap;
}

.mortgage-chat-message.is-user {
  justify-self: end;
  border-color: rgba(20, 93, 160, 0.32);
  background: linear-gradient(145deg, #145da0, #1f72b6);
  color: #ffffff;
}

.mortgage-chat-message.is-coach {
  justify-self: start;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.09), transparent 36%),
    linear-gradient(145deg, #ffffff, #f8fbff);
}

.mortgage-coach-response.is-error {
  border-color: #fecdd3;
  background: #fff7f7;
  color: #9f1239;
}

@media (max-width: 760px) {
  .calculator-page > .container {
    width: min(100% - 18px, 1120px);
    padding: 10px;
    border-radius: 22px;
  }

  .calculator-page .calculator-card {
    border-radius: 20px !important;
    padding: 16px !important;
  }

  .calculator-page .enhanced-bill-input,
  .calculator-page .bill-input,
  .calculator-page .mortgage-tool-grid,
  .calculator-page .mortgage-results-grid,
  .calculator-page .affordability-grid {
    border-radius: 16px !important;
    box-shadow: 0 8px 18px rgba(15, 35, 71, 0.055);
  }
}

.calculator-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -56%;
  width: 68%;
  height: 88%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.calculator-hero .container {
  position: relative;
  z-index: 1;
}

.calculator-hero h1,
.calculator-hero h2 {
  max-width: 720px;
  margin-top: 11px;
  font-size: 2.7rem;
  line-height: 1;
  letter-spacing: 0;
}

.calculator-hero p {
  max-width: 680px;
  color: #e6f0fb;
  line-height: 1.6;
}

.calculator-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.calculator-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(220, 252, 231, 0.34);
  border-radius: 999px;
  background: rgba(240, 253, 244, 0.12);
  color: #f0fdf4;
  font-size: 0.78rem;
  font-weight: 850;
}

.calculator-page {
  padding: 32px 0 58px;
  background:
    linear-gradient(180deg, #edf6fb 0, #f7fbfd 165px, #f5f9fc 100%);
}

.calculator-value-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: center;
  margin: -18px 0 18px;
  padding: 20px;
  border: 1px solid #cfe2f0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 18%, rgba(22, 163, 74, 0.10), transparent 24%),
    linear-gradient(145deg, #ffffff, #f7fbff);
  box-shadow: 0 18px 42px rgba(16, 73, 124, 0.09);
}

.value-strip-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #145da0;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calculator-value-strip h2 {
  max-width: 670px;
  margin: 0;
  color: #0f2347;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.calculator-value-strip p {
  max-width: 650px;
  margin: 9px 0 0;
  color: #52677d;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.55;
}

.value-strip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.value-strip-list span {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid #d8e8f5;
  border-radius: 13px;
  background: #ffffff;
  color: #0f2347;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(16, 73, 124, 0.05);
}

.calculator-flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -8px 0 18px;
}

.calculator-flow-strip div {
  position: relative;
  min-height: 92px;
  padding: 16px 16px 15px;
  border: 1px solid #d5e7f2;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 253, 250, 0.96));
  box-shadow: 0 10px 24px rgba(16, 73, 124, 0.07);
}

.calculator-flow-strip div::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #145da0, #16a34a);
}

.calculator-flow-strip strong,
.calculator-flow-strip span {
  display: block;
}

.calculator-flow-strip strong {
  color: #0f2347;
  font-size: 0.94rem;
  letter-spacing: 0;
}

.calculator-flow-strip span {
  margin-top: 6px;
  color: #52667d;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

.calculator-page .calculator-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 22px;
  border-color: #d5e3ef;
  border-radius: 16px;
  background:
    linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 26px rgba(16, 73, 124, 0.08);
}

.calculator-page .calculator-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #145da0;
}

.calculator-page .budget-health-card::before,
.calculator-page .bills-ledger-card::before {
  background: #16a34a;
}

.calculator-page .add-bill-card::before {
  background: #78b5df;
}

.calculator-page .dashboard-section-title {
  margin: 0 0 13px;
  padding: 2px 0 12px;
  border-bottom: 1px solid #e4edf5;
}

.calculator-page .dashboard-section-title h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f2347;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.calculator-page .dashboard-section-title h3::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #145da0;
  box-shadow: 0 0 0 5px #e8f2fb;
}

.calculator-page .budget-health-card .dashboard-section-title h3::before,
.calculator-page .bills-ledger-card .dashboard-section-title h3::before {
  background: #16a34a;
  box-shadow: 0 0 0 5px #e9f8ef;
}

.calculator-page .section-helper {
  max-width: 780px;
  margin: 0 0 13px;
  padding: 8px 12px;
  border-left: 3px solid #78b5df;
  border-radius: 0 8px 8px 0;
  color: #42566d;
  background: #f4f9fd;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
}

.calculator-reassurance {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px !important;
  padding: 8px 11px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534 !important;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.syd-preferred-name-setup {
  display: grid;
  gap: 7px;
  margin: 18px 0 14px;
  max-width: 420px;
  padding: 14px 16px;
  border: 1px solid rgba(46, 111, 149, 0.22);
  border-radius: 14px;
  background: rgba(233, 242, 247, 0.72);
}

.syd-preferred-name-setup label {
  color: #16324f;
  font-weight: 800;
}

.syd-preferred-name-setup label span,
.syd-preferred-name-setup small {
  color: #526779;
  font-weight: 500;
}

.syd-preferred-name-setup input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(22, 50, 79, 0.24);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: #22313f;
  font: inherit;
}

.syd-preferred-name-setup input:focus {
  border-color: #2e6f95;
  outline: 3px solid rgba(46, 111, 149, 0.16);
}

.syd-plan-currency-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.syd-plan-currency-field label {
  color: #16324f;
  font-size: 0.84rem;
  font-weight: 800;
}

.syd-plan-currency-field select {
  width: 100%;
}

.calculator-page .budget-health-card .section-helper,
.calculator-page .bills-ledger-card .section-helper {
  border-left-color: #43b77a;
  background: #f2fbf6;
}

.calculator-page .enhanced-bill-input {
  gap: 10px;
  margin-top: 0;
  padding: 14px;
  border: 1px solid #dbe5f1;
  border-radius: 13px;
  background:
    linear-gradient(145deg, #f8fbff, #f7fcfa);
}

.syd-guided-field {
  display: grid;
  flex: 1 1 180px;
  gap: 6px;
  min-width: 0;
}

.syd-guided-field label {
  font-size: 0.82rem;
  line-height: 1.25;
}

.syd-guided-field label span {
  color: #5d7185;
  font-weight: 650;
}

.syd-guided-field input,
.syd-guided-field select {
  width: 100%;
  max-width: none !important;
}

.syd-guided-next {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef7fd;
  color: #274967;
  font-size: 0.9rem;
  line-height: 1.45;
}

.syd-ledger-key {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

/* Calculator field hierarchy. Presentation only; saving and calculation behavior are unchanged. */
.calculator-tool-shell .section-helper {
  max-width: 820px;
  padding: 4px 0 4px 12px;
  border-left: 3px solid #78b5df;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #4b6175;
  font-size: 0.84rem;
  line-height: 1.42;
}

.calculator-tool-shell .syd-save-boundary-callout {
  gap: 2px;
  margin: 10px 0 16px;
  padding: 9px 12px;
  border: 1px solid rgba(217, 152, 47, 0.48);
  border-left: 5px solid #d9982f;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 249, 233, 0.96), rgba(255, 255, 255, 0.72));
}

.calculator-tool-shell .syd-save-boundary-callout strong {
  font-size: 0.88rem;
}

.calculator-tool-shell .syd-save-boundary-callout span {
  color: #526779;
  font-size: 0.8rem;
  line-height: 1.4;
  display: block;
  margin-top: 4px;
}

.calculator-tool-shell .syd-save-boundary-callout summary,
.calculator-tool-shell .syd-currency-note summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  list-style: none;
}

.calculator-tool-shell .syd-save-boundary-callout summary::-webkit-details-marker,
.calculator-tool-shell .syd-currency-note summary::-webkit-details-marker {
  display: none;
}

.calculator-tool-shell .syd-save-boundary-callout summary::before,
.calculator-tool-shell .syd-currency-note summary::before {
  content: "+ ";
  color: #d9982f;
}

.calculator-tool-shell .syd-save-boundary-callout[open] summary::before,
.calculator-tool-shell .syd-currency-note[open] summary::before {
  content: "\2212 ";
}

.calculator-tool-shell .syd-currency-note {
  cursor: default;
}

.calculator-tool-shell .income-mode-control {
  display: grid;
  gap: 5px;
  justify-items: start;
  margin: 0 0 14px;
  color: #17345a;
  font-weight: 800;
}

.calculator-tool-shell .income-mode-control > span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #526984;
}

.calculator-tool-shell .payoff-method-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(147, 197, 253, 0.85);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(239,246,255,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 10px 20px rgba(15, 35, 71, 0.07);
}

.calculator-tool-shell .payoff-method-toggle button {
  border: 1px solid rgba(23, 68, 111, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #17446f;
  font-weight: 900;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.calculator-tool-shell .payoff-method-toggle button:hover {
  border-color: rgba(217, 152, 47, 0.55);
  background: #fdf6e9;
}

.calculator-tool-shell .payoff-method-toggle button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #d9982f, #f2c56d);
  color: #08213d;
  box-shadow: 0 8px 18px rgba(217, 152, 47, 0.24);
}

.calculator-tool-shell .income-mode-control small {
  max-width: 320px;
  color: #526984;
  font-size: 0.72rem;
  font-weight: 750;
}

.calculator-tool-shell .syd-currency-note span {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}

.calculator-tool-shell .syd-preferred-name-setup {
  max-width: none;
  margin: 10px 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.calculator-tool-shell .syd-preferred-name-setup input {
  max-width: 360px;
}

.calculator-tool-shell .enhanced-bill-input {
  gap: 13px;
  padding: 18px;
  border: 1px solid #b9d4e7;
  border-left: 5px solid #2e6f95;
  border-radius: 14px;
  background: #f7fbfe;
  box-shadow: 0 10px 24px rgba(22, 50, 79, 0.07);
}

.calculator-tool-shell .syd-guided-field label,
.calculator-tool-shell .syd-plan-currency-field label,
.calculator-tool-shell .syd-preferred-name-setup label {
  color: #16324f;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.25;
}

.calculator-tool-shell input:not([type="checkbox"]):not([type="radio"]),
.calculator-tool-shell select,
.calculator-tool-shell textarea {
  min-height: 48px;
  border: 2px solid #aec8dc !important;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(22, 50, 79, 0.045);
}

.calculator-tool-shell .syd-money-input input:not([type="checkbox"]):not([type="radio"]),
.calculator-tool-shell .syd-money-input input#payAmount {
  border: 0 !important;
  box-shadow: none !important;
  min-height: auto;
}

.calculator-tool-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.calculator-tool-shell select:focus,
.calculator-tool-shell textarea:focus {
  border-color: #2e6f95 !important;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(46, 111, 149, 0.16);
}

.calculator-tool-shell input:disabled,
.calculator-tool-shell select:disabled,
.calculator-tool-shell textarea:disabled {
  border-color: #d7e0e7 !important;
  background: #eef2f5;
  box-shadow: none;
}

.calculator-tool-shell .syd-guided-next {
  padding: 8px 11px;
  border-left: 3px solid #78b5df;
  border-radius: 0 8px 8px 0;
  background: #f4f9fd;
  font-size: 0.84rem;
}

@media (max-width: 680px) {
  .calculator-tool-shell .enhanced-bill-input {
    gap: 12px;
    padding: 13px;
  }

  .calculator-tool-shell .syd-preferred-name-setup input {
    max-width: none;
  }
}

/* Calm bill-entry flow: essentials first, debt-only details second. */
@media (min-width: 1101px) {
  .calculator-site-page .calculator-tool-shell .enhanced-bill-input {
    display: grid;
    grid-template-columns: 1.08fr 1.12fr 1fr 1fr;
    grid-template-areas:
      "kind name monthly due"
      "balance apr owner action";
    gap: 12px;
    align-items: start;
  }

  .calculator-site-page .enhanced-bill-input .syd-guided-field:has(#billEntryType) { grid-area: kind; }
  .calculator-site-page .enhanced-bill-input .syd-guided-field:has(#billName) { grid-area: name; }
  .calculator-site-page .enhanced-bill-input .syd-guided-field:has(#monthlyPayment) { grid-area: monthly; }
  .calculator-site-page .enhanced-bill-input .syd-guided-field:has(#dueDate) { grid-area: due; }
  .calculator-site-page .enhanced-bill-input .syd-guided-field:has(#billBalance) { grid-area: balance; }
  .calculator-site-page .enhanced-bill-input .syd-guided-field:has(#billApr) { grid-area: apr; }
  .calculator-site-page .enhanced-bill-input .syd-guided-field:has(#billPaycheckAssignment) { grid-area: owner; }

  .calculator-site-page .enhanced-bill-input #addBillBtn {
    grid-area: action;
    align-self: center;
    width: 100%;
    min-height: 48px;
    padding-inline: 12px;
    white-space: nowrap;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .calculator-site-page .calculator-tool-shell .enhanced-bill-input {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .calculator-site-page .enhanced-bill-input #addBillBtn {
    align-self: end;
    width: 100%;
    min-height: 48px;
    white-space: nowrap;
  }
}

/* Keep every bill owner and action row visually consistent. */
.calculator-site-page .bills-ledger-card .paycheck-badge.syd-assigned-paycheck {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  border-radius: 12px;
}

.calculator-site-page .bills-ledger-card .syd-assigned-paycheck strong {
  min-width: 0;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.calculator-site-page .bills-ledger-card .syd-assigned-paycheck em {
  margin-top: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.calculator-site-page .bills-ledger-card #billsTable td:nth-child(7) button {
  min-width: 54px;
  min-height: 38px;
  padding-inline: 9px;
}

@media (max-width: 680px) {
  .calculator-site-page .syd-paycheck-result-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "number name"
      "cadence cadence"
      "paydays paydays"
      "health health"
      "note note";
    align-items: center;
  }

  .calculator-site-page .syd-paycheck-result-card .syd-source-payday-heading {
    justify-content: flex-start;
    padding-top: 2px;
  }

  .calculator-site-page .syd-paycheck-result-card .syd-source-paydays {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .calculator-site-page .syd-source-paydays > span {
    width: 100%;
    padding: 10px 12px;
  }

  .calculator-site-page .syd-source-paydays b,
  .calculator-site-page .syd-source-paydays em,
  .calculator-site-page .syd-source-paydays strong {
    overflow-wrap: normal;
    word-break: normal;
  }
}

.syd-ledger-key div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #d8e6f1;
  border-radius: 10px;
  background: #f7fbfe;
}

.syd-ledger-key strong {
  color: #16324f;
  font-size: 0.82rem;
}

.syd-ledger-key span {
  color: #536b80;
  font-size: 0.76rem;
  line-height: 1.35;
}

#billsTable th small {
  font-size: 0.68rem;
  font-weight: 650;
  opacity: 0.82;
}

.bills-ledger-card .paycheck-badge.syd-budget-kind {
  border: 1px solid #bfdbfe !important;
  background: #eaf4ff !important;
  color: #17457a !important;
}

.bills-ledger-card .paycheck-badge.syd-debt-kind {
  border: 1px solid #f1d294 !important;
  background: #fff7df !important;
  color: #6f4a08 !important;
}

.bills-ledger-card .syd-bill-name-stack {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.syd-bill-type-pill,
.bills-ledger-card .paycheck-badge.syd-assigned-paycheck {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
}

.syd-bill-type-pill {
  border: 1px solid #d5e0e8 !important;
  background: #f3f6f8 !important;
  color: #486176 !important;
}

.calculator-total-debt-card small,
.calculator-monthly-payments-card small {
  display: block;
  margin-top: 6px;
  color: #5d7185;
  font-size: 0.74rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .syd-ledger-key {
    grid-template-columns: 1fr;
  }
}

.calculator-page .calculator-card input,
.calculator-page .calculator-card select {
  min-height: 40px;
  border-color: #c9ddec;
  background: #ffffff;
}

.calculator-page .calculator-card input:focus,
.calculator-page .calculator-card select:focus {
  outline: none;
  border-color: #145da0;
  box-shadow: 0 0 0 3px rgba(20, 93, 160, 0.12);
}

.calculator-page .calculator-card button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(20, 93, 160, 0.12);
}

.calculator-page .stress-meter {
  padding: 14px;
  border: 1px solid #dbe5f1;
  border-radius: 13px;
  background:
    linear-gradient(145deg, #f8fbff, #f5fcf8);
}

.calculator-page .dashboard-stat-card {
  border-color: #dbe5f1;
  background: linear-gradient(145deg, #ffffff, #f7fbff);
  box-shadow: 0 6px 16px rgba(16, 73, 124, 0.06);
}

.calculator-page .table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe5f1;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 73, 124, 0.05);
}

.calculator-page #billsTable th {
  background: #edf6fd;
  color: #0f2347;
}

.calculator-page .next-move-card {
  display: block;
  border-color: #bfe6cf;
  background:
    radial-gradient(circle at 92% 16%, rgba(22, 163, 74, 0.12), transparent 28%),
    linear-gradient(145deg, #ffffff, #f6fbff);
}

.calculator-page .next-move-card .dashboard-section-title {
  margin-bottom: 13px;
}

.calculator-page .next-move-card > .section-helper {
  margin-bottom: 14px;
}

.calculator-page .next-step-btn {
  border-radius: 11px;
  background: linear-gradient(135deg, #16a34a, #145da0);
  box-shadow: 0 9px 20px rgba(20, 93, 160, 0.18);
}

.save-plan-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  max-width: 640px;
}

.save-plan-preview div {
  padding: 12px;
  border: 1px solid #d5e7f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.save-plan-preview strong,
.save-plan-preview span {
  display: block;
}

.save-plan-preview strong {
  color: #0f2347;
  font-size: 0.9rem;
}

.save-plan-preview span {
  margin-top: 5px;
  color: #536a80;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.42;
}

.save-plan-note {
  max-width: 560px;
  margin: 10px 0 0 !important;
  color: #52677d !important;
  font-size: 0.83rem;
  font-weight: 750;
}

.calculator-trust-note {
  border-color: #cce4d6 !important;
  background:
    radial-gradient(circle at 94% 12%, rgba(22, 163, 74, 0.10), transparent 28%),
    linear-gradient(145deg, #ffffff, #f7fcf9) !important;
}

.calculator-trust-note::before {
  background: linear-gradient(90deg, #16a34a, #78b5df) !important;
}

.calculator-trust-note p {
  max-width: 820px;
  margin: 0 0 10px;
  color: #40566c;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.6;
}

.calculator-trust-note p:last-child {
  margin-bottom: 0;
}

.calculator-related-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 111, 183, 0.08), transparent 28%),
    linear-gradient(145deg, #ffffff, #f9fcff) !important;
}

.related-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.related-guide-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #cfe0ee;
  border-radius: 999px;
  background: #ffffff;
  color: #0d4f8f;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16, 73, 124, 0.06);
}

.related-guide-links a:hover {
  border-color: #1aa861;
  color: #063d72;
}

.pay-date-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pay-date-summary span {
  padding: 12px;
  border: 1px solid #d6e6f3;
  border-radius: 12px;
  background: #f8fbfe;
  color: #3f5870;
  font-size: 0.86rem;
  font-weight: 850;
}

.pay-date-summary strong {
  color: #0f2347;
}

.pay-date-table-wrap {
  overflow-x: auto;
  border: 1px solid #d6e6f3;
  border-radius: 14px;
  background: #ffffff;
}

.pay-date-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pay-date-table th,
.pay-date-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e1edf7;
  text-align: left;
  vertical-align: top;
}

.pay-date-table th {
  color: #52677d;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pay-date-table td:first-child {
  color: #0f2347;
  font-weight: 950;
}

.calculator-faq-card {
  background: #fff !important;
  border-top: 1px solid var(--border, #e2e8f0) !important;
  box-shadow: none !important;
  padding-top: 18px !important;
}

.calculator-faq-card .dashboard-section-title h2 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #526779;
}

.calculator-faq-list {
  display: grid;
  gap: 4px;
}

.calculator-faq-list details {
  border: none;
  border-bottom: 1px solid #e7edf2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.calculator-faq-list details:last-child {
  border-bottom: none;
}

.calculator-faq-list summary {
  cursor: pointer;
  padding: 10px 2px;
  color: #17345a;
  font-size: 0.86rem;
  font-weight: 700;
  list-style-position: outside;
}

.calculator-faq-list p {
  margin: 0;
  padding: 0 2px 12px;
  color: #4c6278;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .calculator-hero {
    padding: 34px 0 32px;
  }

  .calculator-hero h1,
  .calculator-hero h2 {
    font-size: 2rem;
    line-height: 1.06;
  }

  .calculator-page {
    padding-top: 24px;
  }

  .calculator-value-strip {
    grid-template-columns: 1fr;
    margin-top: -8px;
    padding: 16px;
  }

  .value-strip-list {
    grid-template-columns: 1fr;
  }

  .calculator-trust-row {
    gap: 7px;
  }

  .calculator-trust-row span {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .calculator-flow-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: -4px;
  }

  .calculator-flow-strip div {
    min-height: 0;
    padding: 14px;
  }

  .calculator-page .calculator-card {
    padding: 16px;
  }

  .calculator-page .dashboard-section-title {
    gap: 8px;
  }

  .calculator-page .enhanced-bill-input {
    padding: 10px;
  }

  .save-plan-preview {
    grid-template-columns: 1fr;
  }
}

/* Premium calculator presentation layer. Visual only; calculator behavior stays in script.js. */
.calculator-hero {
  padding: 54px 0 48px;
  background:
    radial-gradient(circle at 82% 18%, rgba(220, 252, 231, 0.22), transparent 24%),
    radial-gradient(circle at 18% 92%, rgba(120, 181, 223, 0.22), transparent 26%),
    linear-gradient(135deg, #0b1d3a 0%, #123f6d 48%, #1f6b9d 100%);
}

.calculator-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 78px;
  background: linear-gradient(180deg, transparent, rgba(237, 246, 251, 0.16));
  pointer-events: none;
}

.calculator-hero::after {
  right: -14%;
  bottom: -62%;
  width: 62%;
  height: 94%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
}

.calculator-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 34px;
  align-items: center;
}

.calculator-hero h1,
.calculator-hero h2 {
  max-width: 760px;
  margin: 13px 0 12px;
  font-size: clamp(2.35rem, 4vw, 4.15rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.calculator-hero p {
  max-width: 650px;
  color: #e8f3ff;
  font-size: 1.02rem;
  line-height: 1.65;
}

.calculator-hero .hero-kicker {
  border-color: rgba(220, 252, 231, 0.36);
  background: rgba(240, 253, 244, 0.13);
  color: #ecfdf5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.calculator-trust-row {
  gap: 10px;
  margin-top: 20px;
}

.calculator-trust-row span {
  min-height: 32px;
  padding: 7px 12px;
  border-color: rgba(226, 246, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.calculator-hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(219, 234, 254, 0.42);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 250, 255, 0.92));
  color: #0f2347;
  box-shadow: 0 26px 70px rgba(6, 24, 48, 0.28);
}

.calculator-hero-panel::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ffffff 0 18%, #dbeafe 19% 48%, #16a34a 49% 52%, transparent 53%);
  opacity: 0.86;
}

.hero-panel-top {
  padding: 16px;
  border-radius: 17px;
  background: linear-gradient(135deg, #123f6d, #17659a);
  color: #ffffff;
}

.hero-panel-top span,
.hero-panel-grid span,
.hero-panel-progress span {
  display: block;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-panel-top span {
  color: #dbeafe;
}

.hero-panel-top strong {
  display: block;
  margin-top: 7px;
  font-size: 2rem;
  letter-spacing: 0;
}

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

.hero-panel-grid div,
.hero-panel-progress {
  border: 1px solid #d8e8f5;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 73, 124, 0.07);
}

.hero-panel-grid div {
  padding: 12px;
}

.hero-panel-grid span,
.hero-panel-progress span {
  color: #5a6f86;
}

.hero-panel-grid strong {
  display: block;
  margin-top: 6px;
  color: #0f2347;
  font-size: 1.02rem;
}

.hero-panel-progress {
  margin-top: 10px;
  padding: 13px;
}

.hero-panel-progress strong {
  display: block;
  margin-top: 5px;
  color: #0f2347;
  font-size: 0.95rem;
}

.hero-panel-progress div {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #16a34a 0 42%, #dbeafe 42% 100%);
}

.calculator-hero-panel p {
  margin: 12px 2px 0;
  color: #496174;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.calculator-page {
  padding: 36px 0 62px;
  background:
    linear-gradient(180deg, #edf6fb 0, #f7fbfd 150px, #f5f9fc 100%);
}

.calculator-value-strip {
  margin-top: -16px;
  border-color: #c7deed;
  box-shadow: 0 22px 48px rgba(16, 73, 124, 0.10);
}

.calculator-flow-strip {
  gap: 14px;
  margin: -14px 0 20px;
}

.calculator-flow-strip div {
  min-height: 104px;
  padding: 18px 18px 16px;
  border-color: #cfe2f0;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(22, 163, 74, 0.07), transparent 36%),
    linear-gradient(145deg, #ffffff, #f7fbff);
  box-shadow: 0 16px 34px rgba(16, 73, 124, 0.09);
}

.calculator-flow-strip strong {
  font-size: 0.98rem;
}

.calculator-flow-strip span {
  color: #4d6277;
}

.calculator-page .calculator-card {
  padding: 24px;
  border-color: #cfe0ee;
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 0%, rgba(120, 181, 223, 0.08), transparent 28%),
    linear-gradient(145deg, #ffffff, #fbfdff);
  box-shadow: 0 18px 44px rgba(16, 73, 124, 0.09);
}

.calculator-page .calculator-card::before {
  height: 5px;
  background: linear-gradient(90deg, #145da0, #78b5df);
}

.calculator-page .budget-health-card::before,
.calculator-page .bills-ledger-card::before {
  background: linear-gradient(90deg, #16a34a, #78b5df);
}

.calculator-page .dashboard-section-title {
  border-bottom-color: #dceaf4;
}

.calculator-page .section-helper {
  border-left-width: 4px;
  border-left-color: #145da0;
  background: linear-gradient(90deg, #f3f9fd, #ffffff);
  color: #40566c;
}

.calculator-page .budget-health-card .section-helper,
.calculator-page .bills-ledger-card .section-helper {
  background: linear-gradient(90deg, #f0fbf5, #ffffff);
}

.calculator-page .enhanced-bill-input,
.calculator-page .stress-meter,
.calculator-page .table-wrap {
  border-color: #cfdfec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.calculator-page .calculator-card input,
.calculator-page .calculator-card select {
  min-height: 43px;
  border-color: #bed4e6;
  border-radius: 11px;
  box-shadow: 0 2px 0 rgba(15, 35, 71, 0.02);
}

.calculator-page .calculator-card button {
  min-height: 43px;
  border-radius: 11px;
  box-shadow: 0 9px 18px rgba(20, 93, 160, 0.14);
}

.calculator-page .dashboard-stat-card {
  border-color: #cfdfec;
  border-radius: 15px;
}

.calculator-page .next-move-card {
  display: block;
  border-color: #acdcbc;
  background:
    radial-gradient(circle at 88% 20%, rgba(22, 163, 74, 0.15), transparent 30%),
    linear-gradient(145deg, #ffffff, #f5fbff);
}

.calculator-page .next-step-btn {
  display: inline-flex;
  width: fit-content;
  min-width: 240px;
  justify-content: center;
  background: linear-gradient(135deg, #16a34a 0%, #1474a6 100%);
  box-shadow: 0 14px 28px rgba(20, 93, 160, 0.2);
}

@media (max-width: 760px) {
  .calculator-hero {
    padding: 38px 0 34px;
  }

  .calculator-hero .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calculator-hero h1,
  .calculator-hero h2 {
    font-size: 2.25rem;
    line-height: 1.02;
  }

  .calculator-hero-panel {
    padding: 14px;
    border-radius: 19px;
  }

  .hero-panel-top strong {
    font-size: 1.65rem;
  }

  .calculator-flow-strip {
    gap: 10px;
    margin-top: -8px;
  }

  .calculator-value-strip {
    margin-top: -10px;
  }

  .calculator-flow-strip div {
    min-height: 0;
    padding: 15px;
  }

  .calculator-page .calculator-card {
    padding: 17px;
    border-radius: 16px;
  }

  .calculator-page .next-step-btn {
    width: 100%;
    min-width: 0;
  }
}
.calculator-email-card {
  border-color: rgba(22, 163, 74, 0.22);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.96) 55%),
    #ffffff;
}

.calculator-email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  max-width: 620px;
}

.calculator-email-form input {
  flex: 1;
  min-width: 220px;
}

.calculator-email-form button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #16a34a, #0f6db3);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.calculator-email-note {
  margin-top: 12px;
  font-weight: 900;
}

.workbook-offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.38fr);
  gap: 18px;
  align-items: center;
  border-color: rgba(245, 158, 11, 0.34);
  background:
    radial-gradient(circle at 92% 16%, rgba(245, 158, 11, 0.13), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 54%, #ecfdf5 100%);
}

.calculator-page .workbook-offer-card::before {
  background: linear-gradient(90deg, #f59e0b, #16a34a, #145da0);
}

.workbook-offer-copy h2 {
  margin: 6px 0 8px;
}

.workbook-offer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.workbook-offer-list li {
  padding: 7px 10px;
  border: 1px solid #d6e7f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #0f2347;
  font-size: 0.78rem;
  font-weight: 900;
}

.workbook-offer-action {
  padding: 16px;
  border: 1px solid #cfe2f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(16, 73, 124, 0.08);
}

.workbook-price {
  display: block;
  color: #0f2347;
  font-size: 1.85rem;
  font-weight: 950;
  line-height: 1;
}

.workbook-buy-btn {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3c865, #d9982f);
  color: #10213a;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(217, 152, 47, 0.24);
}

.workbook-buy-btn:hover,
.workbook-buy-btn:focus-visible {
  transform: translateY(-1px);
  color: #10213a;
  box-shadow: 0 16px 32px rgba(217, 152, 47, 0.30);
}

.workbook-offer-action p {
  margin: 10px 0 0;
  color: #536a80;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .workbook-offer-card {
    grid-template-columns: 1fr;
  }

  .workbook-offer-action {
    padding: 14px;
  }
}

.mortgage-feature-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #bcd7eb;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(236, 248, 255, 0.96), rgba(239, 255, 246, 0.92)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(16, 73, 124, 0.11);
}

.mortgage-feature-strip h2 {
  margin: 4px 0 6px;
  color: #0f2347;
  font-size: 1.3rem;
}

.mortgage-feature-strip p {
  max-width: 760px;
  margin: 0;
  color: #3f5870;
  font-size: 0.95rem;
  line-height: 1.55;
}

.mortgage-feature-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f6db3, #14a86b);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 109, 179, 0.18);
  white-space: nowrap;
}

.mortgage-feature-button:hover,
.mortgage-feature-button:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 109, 179, 0.24);
}

.mortgage-tool-page .container {
  max-width: 1160px;
}

.mortgage-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 20px;
  align-items: center;
}

.mortgage-hero-card h1 {
  margin: 6px 0 8px;
  color: #0f2347;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
}

.mortgage-trust-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #cfe2f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 73, 124, 0.1);
}

.mortgage-trust-panel span {
  padding: 10px 12px;
  border: 1px solid #dbe8f3;
  border-radius: 12px;
  background: #f7fbff;
  color: #0f2347;
  font-size: 0.8rem;
  font-weight: 900;
}

.mortgage-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mortgage-input-grid button {
  grid-column: 1 / -1;
}

.mortgage-premium-grid {
  align-items: stretch;
  padding: 18px !important;
  gap: 12px;
  background:
    radial-gradient(circle at 96% 0%, rgba(34, 197, 94, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 255, 0.96));
}

.mortgage-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px 14px 14px;
  border: 1px solid rgba(199, 219, 238, 0.95);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(120, 181, 223, 0.13), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.92)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 12px 26px rgba(15, 35, 71, 0.062);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mortgage-field:focus-within {
  border-color: rgba(20, 93, 160, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 16px 30px rgba(15, 35, 71, 0.095);
  transform: translateY(-1px);
}

.mortgage-featured-field {
  background:
    radial-gradient(circle at 95% 8%, rgba(34, 197, 94, 0.13), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 253, 246, 0.9)),
    #ffffff;
  border-color: rgba(170, 220, 194, 0.95);
}

.mortgage-field label {
  align-items: center;
  color: #193a5c;
  display: flex;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.055em;
  line-height: 1.25;
  min-height: 1.95em;
  text-transform: uppercase;
}

.mortgage-field label::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #145da0, #20b26b);
  box-shadow: 0 0 0 4px rgba(32, 178, 107, 0.1);
  flex: 0 0 auto;
}

.mortgage-field input {
  width: 100%;
  max-width: none;
  min-height: 46px;
  border: 1px solid #b9d4ec;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 7px 16px rgba(15, 35, 71, 0.038);
  color: #10233f;
  font-size: 0.98rem;
  font-weight: 750;
  padding: 10px 13px;
}

.mortgage-field input:focus {
  border-color: #145da0;
  box-shadow: 0 0 0 4px rgba(20, 93, 160, 0.13), 0 10px 20px rgba(15, 35, 71, 0.06);
}

.mortgage-results-empty {
  padding: 18px;
  border: 1px dashed #b8cfe3;
  border-radius: 14px;
  background: #f8fbfe;
  color: #536a80;
  font-weight: 850;
}

.mortgage-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mortgage-result-tile,
.mortgage-breakdown-card {
  padding: 14px;
  border: 1px solid #d2e3f1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 73, 124, 0.07);
}

.mortgage-result-tile span,
.mortgage-breakdown-card h3 {
  display: block;
  margin: 0 0 6px;
  color: #52677d;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mortgage-result-tile strong {
  display: block;
  color: #0f2347;
  font-size: 1.45rem;
  line-height: 1.1;
}

.mortgage-result-tile small {
  display: block;
  margin-top: 6px;
  color: #5a7288;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.mortgage-breakdown-card p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0;
  padding: 9px 10px;
  border: 1px solid rgba(216, 228, 236, 0.85);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 249, 251, 0.96), rgba(255, 255, 255, 0.98));
  color: #3f5870;
  font-size: 0.9rem;
}

.mortgage-breakdown-card p span {
  min-width: 0;
  font-weight: 600;
}

.mortgage-breakdown-card p strong {
  color: #0f2347;
  font-weight: 800;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .mortgage-breakdown-card p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mortgage-breakdown-card p strong {
    text-align: left;
  }
}

.mortgage-breakdown-card .mortgage-note-text {
  display: block;
  color: #3f5870;
  line-height: 1.45;
}

.mortgage-wide {
  grid-column: 1 / -1;
}

.mortgage-table-wrap {
  overflow-x: auto;
}

.mortgage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.mortgage-table th,
.mortgage-table td {
  padding: 10px;
  border-bottom: 1px solid #dbe8f3;
  text-align: left;
}

.mortgage-table th {
  color: #52677d;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.affordability-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 255, 246, 0.88)),
    #ffffff;
}

.affordability-card .section-helper {
  max-width: 840px;
}

.affordability-input-grid {
  margin-top: 14px;
}

.affordability-results {
  margin-top: 16px;
}

.affordability-note p {
  display: block;
  margin: 9px 0;
  color: #3f5870;
  line-height: 1.45;
}

.mortgage-footer-actions {
  max-width: 760px;
}

.mortgage-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.mortgage-footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #cfe0ee;
  border-radius: 999px;
  background: #ffffff;
  color: #0d4f8f;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16, 73, 124, 0.06);
}

.mortgage-support-button {
  border-color: #a7e5c4;
  background: #1aa861;
  color: #ffffff;
}

.mortgage-footer-button:hover,
.mortgage-footer-button:focus-visible {
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .mortgage-feature-strip,
  .mortgage-hero-card,
  .mortgage-results-grid {
    grid-template-columns: 1fr;
  }

  .mortgage-feature-button {
    width: 100%;
  }

  .mortgage-input-grid {
    grid-template-columns: 1fr;
  }

  .mortgage-result-tile strong {
    font-size: 1.25rem;
  }

  .mortgage-footer-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .pay-date-summary {
    grid-template-columns: 1fr;
  }
}

/* Premium calculator tool cards, July 2026. Visual-only layer; formulas and handlers stay in page scripts. */
body:not(.dashboard-page) .calculator-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(120, 181, 223, 0.18), transparent 27%),
    radial-gradient(circle at 92% 8%, rgba(22, 163, 74, 0.10), transparent 28%),
    linear-gradient(180deg, #eef6fb 0%, #f8fbff 42%, #f4f8fc 100%);
}

body:not(.dashboard-page) .calculator-page > .container {
  display: grid;
  gap: 18px;
}

body:not(.dashboard-page) .calculator-page .calculator-card {
  border-radius: 24px;
  border: 1px solid rgba(190, 208, 230, 0.88);
  background:
    radial-gradient(circle at top right, rgba(120, 181, 223, 0.12), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 18px 48px rgba(15, 35, 71, 0.105);
}

body:not(.dashboard-page) .calculator-page .calculator-card::before {
  height: 5px;
  background: linear-gradient(90deg, #145da0, #16a34a, #78b5df);
}

body:not(.dashboard-page) .calculator-page .bill-input,
body:not(.dashboard-page) .calculator-page .enhanced-bill-input,
body:not(.dashboard-page) .mortgage-input-grid {
  padding: 14px;
  border: 1px solid #d5e5f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.78), 0 10px 24px rgba(15,35,71,0.055);
}

body:not(.dashboard-page) .calculator-page input,
body:not(.dashboard-page) .calculator-page select,
body:not(.dashboard-page) .calculator-page textarea {
  min-height: 44px;
  border-radius: 13px;
  border-color: #bed0e6;
  box-shadow: 0 4px 12px rgba(15,35,71,0.04);
}

body:not(.dashboard-page) .calculator-page button,
body:not(.dashboard-page) .calculator-page .next-step-btn,
body:not(.dashboard-page) .mortgage-feature-button,
body:not(.dashboard-page) .mortgage-footer-button {
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(20, 93, 160, 0.14);
}

body:not(.dashboard-page) .dashboard-stat-card,
body:not(.dashboard-page) .mortgage-result-tile,
body:not(.dashboard-page) .save-plan-preview > div {
  border-radius: 18px;
  border-color: #d5e5f4;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.96), transparent 36%),
    linear-gradient(145deg, #ffffff, #f7fbff);
  box-shadow: 0 10px 26px rgba(15, 35, 71, 0.075);
}

body:not(.dashboard-page) .mortgage-results-card,
body:not(.dashboard-page) .budget-health-card,
body:not(.dashboard-page) .next-move-card {
  min-height: 190px;
}

body:not(.dashboard-page) .mortgage-results-empty,
body:not(.dashboard-page) .affordability-results {
  border-radius: 18px;
  background:
    linear-gradient(145deg, #f8fbff, #ffffff);
}

body:not(.dashboard-page) .calculator-value-strip,
body:not(.dashboard-page) .calculator-flow-strip div,
body:not(.dashboard-page) .mortgage-feature-strip {
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15, 35, 71, 0.09);
}

body:not(.dashboard-page) .bills-ledger-card .table-wrap,
body:not(.dashboard-page) .mortgage-table-wrap {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #d8e8f5;
}

/* Mortgage instrument-first page. Visual-only shell; existing formula functions stay in page script. */
.mortgage-instrument-page {
  --navy: #16324F;
  --glacier: #2E6F95;
  --ice: #E9F2F7;
  --ice2: #F5F9FB;
  --gold: #D9982F;
  --text: #22313F;
  --muted: #5B6B7A;
  --line: #D8E4EC;
  --card: #ffffff;
  --shadow: 0 2px 12px rgba(22,50,79,.08);
  color: var(--text);
}

.mortgage-instrument-page .container {
  max-width: 1120px;
}

.mortgage-instrument-hero {
  padding: 32px 0 74px;
  text-align: center;
}

.mortgage-instrument-hero h1 {
  max-width: 720px;
  margin: 0 auto 10px;
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.mortgage-instrument-hero p {
  margin: 0 auto 8px;
  max-width: 680px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.55;
}

.mortgage-instrument-hero span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.mortgage-instrument-band {
  margin-top: -44px;
  padding: 0 14px 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(46,111,149,.16), transparent 32%),
    linear-gradient(180deg, var(--ice) 0%, rgba(245,249,251,0) 78%);
  border-radius: 28px;
}

.mortgage-instrument-card {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
  padding: 28px !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: var(--card) !important;
  box-shadow: var(--shadow) !important;
}

.mortgage-instrument-card::before {
  display: none !important;
}

.mortgage-instrument-inputs,
.mortgage-instrument-results {
  min-width: 0;
  max-width: 100%;
}

.mortgage-instrument-result-panel,
.mortgage-instrument-result-panel > *,
.mortgage-breakdown-card,
.mortgage-comparison-table {
  min-width: 0;
  max-width: 100%;
}

.mortgage-instrument-inputs h2 {
  margin: 4px 0 18px;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.15;
}

.mortgage-instrument-page .mortgage-hidden-defaults {
  display: none;
}

.mortgage-optional-details {
  margin: 18px 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 152, 47, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(245, 249, 251, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 22px rgba(22, 50, 79, 0.06);
}

.mortgage-optional-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
  cursor: pointer;
  list-style: none;
}

.mortgage-optional-details summary::-webkit-details-marker {
  display: none;
}

.mortgage-optional-details summary::after {
  content: "+";
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--glacier);
  font-size: 1.35rem;
  font-weight: 800;
}

.mortgage-optional-details[open] summary::after {
  content: "−";
}

.mortgage-optional-details summary span {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.mortgage-optional-details summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.mortgage-optional-details-body {
  padding-top: 14px;
}

.mortgage-optional-details-body > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.mortgage-instrument-page .mortgage-field {
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mortgage-instrument-page .mortgage-field:focus-within {
  transform: none;
  box-shadow: none;
}

.mortgage-instrument-page .mortgage-field label {
  min-height: auto;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.mortgage-instrument-page .mortgage-field label::before {
  display: none;
}

.mortgage-instrument-page .mortgage-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.mortgage-instrument-page .mortgage-field input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ice2);
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 12px;
  box-shadow: none;
}

.mortgage-instrument-page .mortgage-field input:focus {
  border-color: var(--glacier);
  box-shadow: 0 0 0 4px rgba(46,111,149,.14);
}

.mortgage-input-note {
  min-height: 1.3em;
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.mortgage-instrument-page #calculateMortgage {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(217,152,47,.22);
}

.mortgage-left-helper {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 10%, rgba(217,152,47,.14), transparent 34%),
    linear-gradient(135deg, var(--ice2), var(--card));
  box-shadow: var(--shadow);
}

.mortgage-left-helper h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.mortgage-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.92rem;
}

.mortgage-helper-row strong {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.mortgage-helper-row.is-highlighted {
  border-color: rgba(217,152,47,.48);
  background: rgba(217,152,47,.12);
}

.mortgage-left-helper p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.mortgage-instrument-result-panel {
  display: grid;
  gap: 16px;
}

.mortgage-placeholder-result {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--ice2), var(--card));
  color: var(--muted);
  box-shadow: var(--shadow);
}

.mortgage-placeholder-result strong {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 800;
}

.mortgage-placeholder-result span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--card);
  font-weight: 700;
}

.mortgage-savings-hero {
  padding: 2px 0 6px;
}

.mortgage-savings-hero span,
.mortgage-savings-hero em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.mortgage-savings-hero strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.mortgage-savings-hero em {
  color: var(--glacier);
  font-size: 1.02rem;
}

.mortgage-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mortgage-plan-comparison-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.mortgage-plan-comparison-label strong {
  color: var(--navy);
}

.mortgage-plan-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(46,111,149,.10), transparent 28%),
    linear-gradient(145deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow);
}

.mortgage-plan-card-biweekly {
  border-color: rgba(217,152,47,.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(217,152,47,.14), transparent 30%),
    linear-gradient(145deg, #ffffff, #fdfaf3);
}

.mortgage-plan-card-head {
  display: grid;
  gap: 8px;
}

.mortgage-plan-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--glacier);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mortgage-plan-card-biweekly .mortgage-plan-pill {
  background: rgba(217,152,47,.14);
  color: #8a5a08;
}

.mortgage-plan-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 800;
}

.mortgage-plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mortgage-plan-card-body {
  display: grid;
  gap: 10px;
}

.mortgage-plan-sync-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(46,111,149,.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(233,242,247,.78), rgba(255,255,255,.92));
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.mortgage-comparison-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.mortgage-comparison-table > div {
  display: grid;
  grid-template-columns: .85fr 1fr 1fr;
  min-width: 0;
}

.mortgage-comparison-table span,
.mortgage-comparison-table b,
.mortgage-comparison-table strong {
  min-width: 0;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mortgage-comparison-table > div:last-child span,
.mortgage-comparison-table > div:last-child b {
  border-bottom: 0;
}

.mortgage-comparison-table strong {
  color: var(--navy);
  font-weight: 800;
}

.mortgage-comparison-table b:last-child,
.mortgage-comparison-table strong:last-child {
  background: var(--ice2);
  border-top: 3px solid var(--gold);
  color: var(--navy);
}

.mortgage-biweekly-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mortgage-interest-bars {
  max-width: 880px;
  margin: 18px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.mortgage-interest-bars:empty {
  display: none;
}

.mortgage-interest-bars h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.15rem;
}

.mortgage-interest-bar-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  color: var(--text);
  font-weight: 600;
}

.mortgage-interest-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ice);
}

.mortgage-interest-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  animation: mortgageBarIn 620ms ease both;
}

.mortgage-interest-track .is-monthly {
  background: var(--glacier);
}

.mortgage-interest-track .is-biweekly {
  background: var(--gold);
}

@keyframes mortgageBarIn {
  from { width: 0; }
}

.mortgage-step-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.mortgage-step-list div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ice2);
}

.mortgage-step-list span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--glacier);
  color: white;
  font-weight: 800;
}

.mortgage-step-list p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.mortgage-servicer-callout {
  border-left: 3px solid var(--gold) !important;
  background: linear-gradient(135deg, var(--ice), var(--card)) !important;
}

.mortgage-tool-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mortgage-tool-card-row a {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.mortgage-tool-card-row a:hover,
.mortgage-tool-card-row a:focus-visible {
  border-color: var(--glacier);
  transform: translateY(-2px);
}

.mortgage-tool-card-row span {
  color: var(--glacier);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mortgage-tool-card-row strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.mortgage-tool-card-row small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.mortgage-email-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  gap: 18px;
  align-items: center;
}

/* Standalone paycheck calculators. Visual-only shell; page scripts and formulas remain unchanged. */
.standalone-tool-page {
  --navy: #16324F;
  --glacier: #2E6F95;
  --ice: #E9F2F7;
  --ice2: #F5F9FB;
  --gold: #D9982F;
  --text: #22313F;
  --muted: #5B6B7A;
  --line: #D8E4EC;
  --card: #ffffff;
  --shadow: 0 2px 12px rgba(22,50,79,.08);
  color: var(--text);
}

.standalone-tool-page > .container {
  max-width: 1060px;
}

.standalone-tool-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px) !important;
  background:
    radial-gradient(circle at 92% 10%, rgba(46,111,149,.14), transparent 30%),
    linear-gradient(145deg, var(--card), var(--ice2)) !important;
}

.standalone-tool-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 0 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,111,149,.28), transparent);
}

.standalone-tool-card > h1 {
  max-width: 720px;
  margin: 6px 0 10px;
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.standalone-tool-card > .section-helper {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.standalone-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: 20px;
  align-items: stretch;
}

.calculator-page .standalone-tool-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}

.standalone-tool-inputs label {
  align-self: end;
  margin: 0;
  color: var(--navy);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.standalone-tool-inputs input,
.standalone-tool-inputs select {
  width: 100%;
  min-height: 50px !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: var(--ice2) !important;
  color: var(--navy) !important;
  font-size: 1.05rem;
  font-weight: 600;
}

.standalone-tool-inputs input:focus,
.standalone-tool-inputs select:focus {
  border-color: var(--glacier) !important;
  box-shadow: 0 0 0 4px rgba(46,111,149,.14) !important;
}

.standalone-tool-inputs button {
  grid-column: 1 / -1;
  min-height: 50px;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 22px rgba(217,152,47,.2) !important;
}

.standalone-tool-helper {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(217,152,47,.14), transparent 35%),
    linear-gradient(145deg, var(--ice2), var(--card));
  box-shadow: var(--shadow);
}

.standalone-tool-helper h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
}

.tool-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
  font-size: .92rem;
}

.tool-helper-row strong {
  color: var(--navy);
  font-size: .9rem;
  font-weight: 800;
  text-align: right;
}

.tool-helper-row.is-highlighted {
  border-color: rgba(217,152,47,.48);
  background: rgba(217,152,47,.12);
}

.standalone-tool-helper p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}

.standalone-results-card,
.standalone-next-card {
  background:
    radial-gradient(circle at 92% 6%, rgba(46,111,149,.09), transparent 28%),
    linear-gradient(145deg, var(--card), var(--ice2)) !important;
}

.standalone-results-card h2,
.standalone-next-card h2 {
  color: var(--navy);
  font-weight: 800;
}

.standalone-results-card .related-guide-links span,
.standalone-results-card .pay-date-summary span {
  border-color: var(--line);
  border-radius: 14px;
  background: var(--ice2);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.standalone-results-card .related-guide-links strong,
.standalone-results-card .pay-date-summary strong {
  color: var(--navy);
  font-weight: 800;
}

.standalone-results-card .pay-date-table-wrap {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.standalone-results-card .pay-date-table th {
  background: var(--ice);
  color: var(--navy);
}

.standalone-next-card .related-guide-links a {
  border-radius: 999px;
  border-color: rgba(46,111,149,.28);
  background: var(--card);
  color: var(--navy);
}

.standalone-next-card .related-guide-links a:hover,
.standalone-next-card .related-guide-links a:focus-visible {
  border-color: var(--gold);
  color: var(--navy);
}

.standalone-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.standalone-content-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 12%, rgba(46,111,149,.08), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(245,249,251,.98));
  box-shadow: var(--shadow);
}

.standalone-content-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(46,111,149,.1);
  color: var(--glacier);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.standalone-content-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.06rem;
  line-height: 1.25;
}

.standalone-content-card p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.65;
}

.standalone-note-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.standalone-note-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}

.standalone-note-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: .98rem;
}

.standalone-note-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.standalone-table-card .pay-date-table-wrap {
  margin-top: 16px;
}

.standalone-table-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
}

.standalone-callout-band {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(46,111,149,.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 10%, rgba(217,152,47,.14), transparent 30%),
    linear-gradient(145deg, rgba(233,242,247,.78), rgba(255,255,255,.95));
  box-shadow: var(--shadow);
}

.standalone-callout-band strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1rem;
}

.standalone-callout-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

@media (max-width: 760px) {
  body:not(.dashboard-page) .calculator-page {
    padding-top: 18px;
  }

  body:not(.dashboard-page) .calculator-page .calculator-card {
    border-radius: 19px;
    padding: 18px;
  }

  body:not(.dashboard-page) .calculator-page .bill-input,
  body:not(.dashboard-page) .calculator-page .enhanced-bill-input,
  body:not(.dashboard-page) .mortgage-input-grid {
    padding: 11px;
    border-radius: 15px;
  }

  .mortgage-instrument-hero {
    padding: 24px 0 58px;
  }

  .mortgage-instrument-band {
    padding-inline: 0;
  }

  .mortgage-instrument-card,
  .mortgage-email-card {
    grid-template-columns: 1fr;
    padding: 20px !important;
  }

  .mortgage-comparison-table > div {
    grid-template-columns: 1fr;
  }

  .mortgage-plan-grid {
    grid-template-columns: 1fr;
  }

  .mortgage-comparison-table span,
  .mortgage-comparison-table b,
  .mortgage-comparison-table strong {
    border-bottom: 1px solid var(--line) !important;
  }

  .mortgage-interest-bar-row {
    grid-template-columns: 1fr;
  }

  .mortgage-tool-card-row {
    grid-template-columns: 1fr;
  }

  .standalone-tool-grid {
    grid-template-columns: 1fr;
  }

  .calculator-page .standalone-tool-inputs {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .standalone-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Make the final calculator action unmistakable without using warning colors. */
.calculator-page .next-move-card .next-step-btn {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border: 1px solid rgba(163, 103, 16, 0.26) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f7d577 0%, #d9982f 58%, #bd7d18 100%) !important;
  color: #10213a !important;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 18px 34px rgba(217, 152, 47, 0.28), 0 8px 18px rgba(22, 50, 79, 0.10) !important;
}

.calculator-page .next-move-card .next-step-btn:hover,
.calculator-page .next-move-card .next-step-btn:focus-visible {
  transform: translateY(-1px);
  color: #10213a !important;
  box-shadow: 0 22px 42px rgba(217, 152, 47, 0.34), 0 10px 22px rgba(22, 50, 79, 0.12) !important;
}

/* Calculator intro should read as guidance, not as part of the input workflow. */
.calculator-page .calculator-value-strip {
  position: relative;
  margin: -12px 0 34px;
  border: 1px solid rgba(46, 111, 149, 0.22);
  border-left: 6px solid var(--gold, #d9982f);
  background:
    radial-gradient(circle at top right, rgba(217, 152, 47, 0.13), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f5f9fb 52%, #e9f2f7 100%);
  box-shadow: 0 14px 34px rgba(22, 50, 79, 0.08);
}

.calculator-page .calculator-value-strip::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 111, 149, 0.28), transparent);
}

.calculator-page .calculator-value-strip .value-strip-kicker {
  background: rgba(217, 152, 47, 0.15);
  color: var(--navy, #16324f);
}

.calculator-page .calculator-flow-strip {
  margin-top: 0;
  margin-bottom: 22px;
}

.calculator-workflow-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 22px;
  color: var(--muted, #5b6b7a);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-workflow-divider::before,
.calculator-workflow-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 111, 149, 0.32), transparent);
}

.calculator-workflow-divider span {
  padding: 8px 13px;
  border: 1px solid rgba(46, 111, 149, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, var(--ice2, #f5f9fb));
  box-shadow: 0 8px 20px rgba(22, 50, 79, 0.06);
  white-space: nowrap;
}

.calculator-tool-shell {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(217, 152, 47, 0.42);
  border-top: 5px solid var(--gold, #d9982f);
  border-radius: 26px;
  background:
    radial-gradient(circle at 6% 0%, rgba(217, 152, 47, 0.16), transparent 26%),
    radial-gradient(circle at 94% 8%, rgba(46, 111, 149, 0.10), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(245, 249, 251, 0.94));
  box-shadow: 0 22px 52px rgba(22, 50, 79, 0.12);
}

.calculator-tool-shell .calculator-card {
  margin: 0;
}

.calculator-after-panel {
  margin: 34px 0 0;
  padding: 22px;
  border: 1px solid rgba(46, 111, 149, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(233, 242, 247, 0.62), rgba(245, 249, 251, 0.92)),
    radial-gradient(circle at top right, rgba(22, 50, 79, 0.07), transparent 34%);
  box-shadow: 0 16px 38px rgba(22, 50, 79, 0.07);
}

.calculator-after-heading {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(46, 111, 149, 0.18);
}

.calculator-after-heading h2 {
  margin: 5px 0 6px;
  color: var(--navy, #16324f);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.calculator-after-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted, #5b6b7a);
  font-weight: 650;
  line-height: 1.55;
}

.calculator-after-panel .calculator-card {
  margin: 16px 0 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
}

.calculator-after-panel .workbook-offer-card {
  border-color: rgba(217, 152, 47, 0.34);
}

@media (max-width: 760px) {
  .calculator-page .calculator-value-strip {
    margin: -4px 0 30px;
    padding: 17px;
    border-left-width: 4px;
  }

  .calculator-page .calculator-value-strip::after {
    left: 18px;
    right: 18px;
    bottom: -15px;
  }

  .calculator-workflow-divider {
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.68rem;
  }

  .calculator-workflow-divider span {
    padding: 7px 10px;
  }

  .calculator-tool-shell {
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
  }

  .calculator-after-panel {
    margin-top: 24px;
    padding: 15px;
    border-radius: 20px;
  }
}

.calculator-process-panel {
  margin: -12px 0 24px;
  padding: 18px;
  border: 1px solid rgba(46, 111, 149, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 12%, rgba(217, 152, 47, 0.16), transparent 24%),
    radial-gradient(circle at 92% 14%, rgba(46, 111, 149, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f5f9fb 50%, #e9f2f7 100%);
  box-shadow: 0 18px 44px rgba(22, 50, 79, 0.10);
}

.calculator-process-panel .calculator-value-strip {
  margin: 0 0 16px;
  padding: 0 0 17px;
  border: 0;
  border-bottom: 1px solid rgba(46, 111, 149, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.calculator-process-panel .calculator-value-strip::after {
  display: none;
}

.calculator-process-panel .calculator-flow-strip {
  margin: 0;
}

.calculator-process-panel .calculator-flow-strip div {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 251, 0.92));
}

@media (max-width: 760px) {
  .calculator-process-panel {
    margin: -4px 0 20px;
    padding: 15px;
    border-radius: 20px;
  }

  .calculator-process-panel .calculator-value-strip {
    padding-bottom: 14px;
    margin-bottom: 13px;
  }
}

/* Mortgage page color alignment. Visual-only: keeps mortgage formulas, IDs, and scripts untouched. */
.mortgage-instrument-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(46,111,149,.24), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(217,152,47,.16), transparent 26%),
    linear-gradient(180deg, var(--navy) 0, #1d4664 168px, var(--ice) 168px, var(--ice2) 100%) !important;
  font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
}

.mortgage-instrument-page > .container {
  padding-top: 26px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mortgage-instrument-hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 42px 26px 78px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.13), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(217,152,47,.18), transparent 28%),
    linear-gradient(135deg, var(--navy), #1d4664 58%, var(--glacier));
  box-shadow: 0 28px 70px rgba(22,50,79,.22);
}

.mortgage-instrument-hero h1,
.mortgage-instrument-hero p,
.mortgage-instrument-hero span {
  color: #fff !important;
}

.mortgage-instrument-hero p {
  opacity: .92;
}

.mortgage-instrument-hero span {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  opacity: .9;
}

.mortgage-instrument-band {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  margin-top: -46px;
  background:
    radial-gradient(circle at 88% 0%, rgba(217,152,47,.16), transparent 30%),
    linear-gradient(180deg, rgba(233,242,247,.95), rgba(245,249,251,.68)) !important;
  border: 1px solid rgba(216,228,236,.86);
  box-shadow: 0 22px 48px rgba(22,50,79,.10);
}

.mortgage-instrument-card,
.mortgage-instrument-page .calculator-card {
  border-color: var(--line) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(46,111,149,.09), transparent 30%),
    linear-gradient(145deg, var(--card), var(--ice2)) !important;
  box-shadow:
    0 18px 44px rgba(22,50,79,.11),
    inset 0 1px 0 rgba(255,255,255,.92) !important;
}

.mortgage-instrument-page .calculator-card::before {
  background: linear-gradient(90deg, var(--glacier), #1c8b73, var(--gold)) !important;
}

.mortgage-instrument-page .eyebrow,
.mortgage-instrument-page .mortgage-tool-card-row span {
  color: var(--glacier) !important;
  background: var(--ice);
  border-radius: 999px;
}

.mortgage-instrument-page .section-helper {
  border-left-color: var(--gold) !important;
  background:
    linear-gradient(90deg, rgba(233,242,247,.95), rgba(255,255,255,.72)) !important;
  color: var(--text) !important;
}

.mortgage-instrument-page .mortgage-field,
.mortgage-left-helper,
.mortgage-placeholder-result,
.mortgage-breakdown-card,
.mortgage-result-tile,
.mortgage-interest-bars,
.mortgage-step-list div,
.mortgage-tool-card-row a,
.mortgage-coach-card {
  border-color: var(--line) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(46,111,149,.08), transparent 30%),
    linear-gradient(145deg, var(--card), var(--ice2)) !important;
  box-shadow: var(--shadow) !important;
}

.mortgage-optional-details,
.mortgage-servicer-callout,
.affordability-card {
  border-color: var(--line) !important;
  background:
    radial-gradient(circle at 98% 0%, rgba(217,152,47,.13), transparent 30%),
    linear-gradient(145deg, var(--card), var(--ice2)) !important;
}

.mortgage-instrument-page .mortgage-field label,
.mortgage-instrument-page h2,
.mortgage-instrument-page h3,
.mortgage-savings-hero strong,
.mortgage-comparison-table strong,
.mortgage-helper-row strong {
  color: var(--navy) !important;
}

.mortgage-instrument-page .mortgage-field input,
.mortgage-coach-card textarea,
.mortgage-instrument-page .calculator-email-form input {
  border-color: var(--line) !important;
  background: #ffffff !important;
  color: var(--navy) !important;
  color-scheme: light;
  -webkit-text-fill-color: var(--navy);
  caret-color: var(--navy);
}

.mortgage-instrument-page .mortgage-field input::placeholder,
.mortgage-coach-card textarea::placeholder,
.mortgage-instrument-page .calculator-email-form input::placeholder {
  color: #5b6b7a !important;
  opacity: 1;
  -webkit-text-fill-color: #5b6b7a;
}

.mortgage-tool-page .calculator-trust-row {
  gap: 10px 18px;
}

.mortgage-tool-page .calculator-trust-row span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #f0fdf4;
  font-size: 0.88rem;
  font-weight: 750;
}

.mortgage-tool-page .calculator-trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: #86efac;
  font-weight: 950;
}

.mortgage-instrument-page .mortgage-field input:focus,
.mortgage-coach-card textarea:focus,
.mortgage-instrument-page .calculator-email-form input:focus {
  border-color: var(--glacier) !important;
  box-shadow: 0 0 0 4px rgba(46,111,149,.14) !important;
}

.mortgage-instrument-page #calculateMortgage,
.mortgage-instrument-page .mortgage-coach-card button,
.mortgage-instrument-page .mortgage-input-grid button,
.mortgage-instrument-page .calculator-email-form button {
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--glacier), #168a73) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(46,111,149,.22) !important;
}

.mortgage-instrument-page #calculateMortgage:hover,
.mortgage-instrument-page .mortgage-coach-card button:hover,
.mortgage-instrument-page .mortgage-input-grid button:hover,
.mortgage-instrument-page .calculator-email-form button:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.mortgage-helper-row.is-highlighted,
.mortgage-comparison-table b:last-child,
.mortgage-comparison-table strong:last-child {
  border-color: rgba(217,152,47,.52) !important;
  background: rgba(217,152,47,.12) !important;
}

.mortgage-interest-track .is-monthly {
  background: var(--glacier) !important;
}

.mortgage-interest-track .is-biweekly {
  background: var(--gold) !important;
}

/* Calculator draft protection and bill/debt clarity */
.syd-entry-kind-help,
.syd-calculator-draft-status {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(46, 111, 149, .24);
  border-radius: 12px;
  background: rgba(232, 244, 248, .74);
  color: var(--navy);
  font-size: .92rem;
  line-height: 1.5;
}

.syd-kind-note {
  margin: 6px 0 4px;
  color: #405a70;
  font-size: 0.86rem;
  line-height: 1.4;
}

.syd-entry-kind-help {
  margin: 2px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5d7185;
  font-size: 0.8rem;
  line-height: 1.35;
}

.syd-save-boundary-callout {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 2px solid rgba(217, 152, 47, .58);
  border-radius: 14px;
  background: rgba(217, 152, 47, .11);
  color: var(--navy);
}

.syd-save-boundary-callout strong {
  font-size: 1rem;
}

.syd-required-save-steps {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 14px 18px 14px 38px;
  border: 1px solid rgba(46, 111, 149, .24);
  border-radius: 14px;
  background: rgba(232, 244, 248, .66);
  color: var(--navy);
}

.syd-draft-exit-checkpoint {
  border-top: 5px solid var(--gold);
}

.syd-draft-exit-checkpoint p {
  line-height: 1.55;
}

.syd-calculator-draft-status {
  border-left: 4px solid #168a73;
  background: rgba(22, 138, 115, .08);
  font-weight: 700;
}

.syd-calculator-draft-bar {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(760px, calc(100% - 24px));
  margin: 18px auto;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(217, 152, 47, .48);
  border-radius: 16px;
  background: rgba(22, 50, 79, .97);
  color: #fff;
  box-shadow: 0 16px 38px rgba(22, 50, 79, .24);
}

.syd-calculator-draft-bar[hidden] {
  display: none;
}

.syd-calculator-draft-bar span {
  flex: 1 1 auto;
  font-weight: 800;
}

.syd-calculator-draft-bar button {
  flex: 0 0 auto;
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  white-space: nowrap;
}

.enhanced-bill-input input:disabled {
  opacity: .58;
  background: #eef2f5 !important;
}

@media (max-width: 680px) {
  .syd-calculator-draft-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    bottom: 8px;
    text-align: center;
  }
}

/* Final phone ledger cascade guard. Overrides the older compressed-table rules in styles.css. */
@media (max-width: 680px) {
  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card .table-wrap {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable,
  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable tbody {
    display: block !important;
    width: 100% !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable tr:first-child {
    display: none !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable tr:not(:first-child) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 10px !important;
    border: 1px solid #cbddea !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(22, 50, 79, 0.07) !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    padding: 8px !important;
    border: 1px solid #d9e5ee !important;
    border-radius: 9px !important;
    background: #f8fbfd !important;
    color: #16324f !important;
    font-size: 0.82rem !important;
    line-height: 1.28 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td::before {
    display: block !important;
    color: #617589 !important;
    font-size: 0.61rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.05em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(1),
  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(2),
  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(7) {
    grid-column: 1 / -1 !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(1) {
    width: fit-content !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: #eaf4fb !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(2)::before { content: "Bill or debt" !important; }
  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(3)::before { content: "Total still owed" !important; }
  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(4)::before { content: "Monthly amount" !important; }
  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(5)::before { content: "Due date" !important; }
  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(6)::before { content: "Assigned paycheck" !important; }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(7) {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    background: transparent !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(7) button {
    min-width: 76px !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.78rem !important;
  }
}

/* Phone proportion repair. Visual only; calculator data and event handlers are unchanged. */
@media (max-width: 680px) {
  .calculator-site-page > .header {
    position: static !important;
  }

  .calculator-site-page .calculator-page {
    padding-top: 10px;
  }

  .calculator-site-page .calculator-page > .container {
    width: 100%;
    padding: 6px;
    border-radius: 0;
  }

  .calculator-site-page .calculator-tool-shell {
    gap: 10px;
    padding: 6px;
    border-radius: 15px;
  }

  .calculator-site-page .calculator-page .calculator-card {
    padding: 12px !important;
    border-radius: 15px !important;
  }

  .calculator-site-page .calculator-tool-shell .enhanced-bill-input {
    gap: 10px;
    padding: 11px !important;
    border-left-width: 4px;
  }

  .calculator-site-page .calculator-tool-shell .syd-guided-field,
  .calculator-site-page .calculator-tool-shell .syd-plan-currency-field {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
  }

  .calculator-site-page .calculator-tool-shell .syd-guided-field input,
  .calculator-site-page .calculator-tool-shell .syd-guided-field select,
  .calculator-site-page .calculator-tool-shell .syd-plan-currency-field select {
    height: 48px;
    min-height: 48px;
  }

  .calculator-site-page [data-calculator-summary] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .calculator-site-page [data-calculator-summary] .dashboard-stat-card {
    min-height: 0;
    padding: 11px;
    border-radius: 12px;
  }

  .calculator-site-page [data-calculator-summary] .dashboard-stat-card span {
    font-size: 0.68rem;
  }

  .calculator-site-page [data-calculator-summary] .dashboard-stat-card strong {
    font-size: 1.02rem;
    line-height: 1.2;
  }

  .calculator-site-page [data-calculator-summary] .dashboard-stat-card small {
    font-size: 0.67rem;
    line-height: 1.3;
  }

  .calculator-site-page .bills-ledger-card .table-wrap {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .calculator-site-page .bills-ledger-card #billsTable,
  .calculator-site-page .bills-ledger-card #billsTable tbody {
    display: block !important;
    width: 100% !important;
  }

  .calculator-site-page .bills-ledger-card #billsTable tr:first-child {
    display: none !important;
  }

  .calculator-site-page .bills-ledger-card #billsTable tr:not(:first-child) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 10px !important;
    border: 1px solid #cbddea !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(22, 50, 79, 0.07) !important;
  }

  .calculator-site-page .bills-ledger-card #billsTable td {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 3px;
    padding: 8px !important;
    border: 1px solid #d9e5ee !important;
    border-radius: 9px !important;
    background: #f8fbfd !important;
    color: #16324f !important;
    font-size: 0.82rem !important;
    line-height: 1.28 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .calculator-site-page .bills-ledger-card #billsTable td::before {
    display: block !important;
    color: #617589;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .calculator-site-page .bills-ledger-card #billsTable td:nth-child(1),
  .calculator-site-page .bills-ledger-card #billsTable td:nth-child(2),
  .calculator-site-page .bills-ledger-card #billsTable td:nth-child(7) {
    grid-column: 1 / -1;
  }

  .calculator-site-page .bills-ledger-card #billsTable td:nth-child(1) {
    width: fit-content !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: #eaf4fb !important;
  }

  .calculator-site-page .bills-ledger-card #billsTable td:nth-child(2)::before { content: "Bill or debt" !important; }
  .calculator-site-page .bills-ledger-card #billsTable td:nth-child(3)::before { content: "Total still owed" !important; }
  .calculator-site-page .bills-ledger-card #billsTable td:nth-child(4)::before { content: "Monthly amount" !important; }
  .calculator-site-page .bills-ledger-card #billsTable td:nth-child(5)::before { content: "Due date" !important; }
  .calculator-site-page .bills-ledger-card #billsTable td:nth-child(6)::before { content: "Assigned paycheck" !important; }

  .calculator-site-page .bills-ledger-card #billsTable td:nth-child(7) {
    flex-direction: row;
    align-items: center !important;
    justify-content: flex-end !important;
    background: transparent !important;
  }

  .calculator-site-page .bills-ledger-card #billsTable td:nth-child(7) button {
    min-width: 76px !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.78rem !important;
  }
}

/* Compact colored bill list requested for phone screens. */
@media (max-width: 680px) {
  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable tr:not(:first-child) {
    position: relative !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 9px !important;
    border: 0 !important;
    border-bottom: 1px solid #cbddea !important;
    border-left: 4px solid #2e6f95 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(2) {
    grid-column: 2 / 5 !important;
    grid-row: 1 !important;
    padding: 3px 116px 5px 2px !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(2)::before {
    content: none !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(3) {
    grid-column: 1 / 3 !important;
    grid-row: 2 !important;
    border-color: #ffcdd2 !important;
    background: #ffebee !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(4) {
    grid-column: 3 / 5 !important;
    grid-row: 2 !important;
    border-color: #fef08a !important;
    background: #fff9c4 !important;
    color: #7c4a03 !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(5) {
    grid-column: 1 / 3 !important;
    grid-row: 3 !important;
    border-color: #bbdefb !important;
    background: #e3f2fd !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(6) {
    grid-column: 3 / 5 !important;
    grid-row: 3 !important;
    border-color: #d9e5ee !important;
    background: #f5f8fa !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(7) {
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    gap: 5px !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable td:nth-child(7) button {
    width: auto !important;
    min-width: 52px !important;
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 0.7rem !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable tr.is-income-off td:nth-child(6) {
    grid-column: 1 / 5 !important;
    grid-row: 4 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 7px 9px !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable tr.is-income-off .syd-assigned-paycheck {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
  }

  body.calculator-site-page:not(.dashboard-page) .calculator-page .bills-ledger-card #billsTable tr.is-income-off td:nth-child(7) button {
    width: auto !important;
    min-width: 48px !important;
    max-width: 58px !important;
    min-height: 32px !important;
    padding: 5px 7px !important;
    line-height: 1 !important;
  }
}
