.cashflow-tool-page {
  --cash-ink: #171322;
  --cash-muted: #6f6562;
  --cash-coral: #ff7658;
  --cash-coral-dark: #f16245;
  --cash-coral-soft: #fff1eb;
  --cash-mint: #2f9a94;
  --cash-mint-soft: #eef9f6;
  --cash-amber: #d99035;
  --cash-amber-soft: #fff8ec;
  --cash-blue-soft: #f3f6fb;
  --cash-line: #eadfd7;
  background: #fffdfb;
}

.cashflow-tool-page button,
.cashflow-tool-page input {
  font: inherit;
}

.cashflow-tool-page :focus-visible {
  outline: 3px solid rgba(255, 118, 88, 0.28);
  outline-offset: 3px;
}

.cash-breadcrumb,
.cash-hero,
.cash-result,
.cash-data-strip,
.cash-article {
  width: min(1180px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.cash-breadcrumb {
  display: flex;
  padding-top: 20px;
  gap: 8px;
  align-items: center;
  color: #8a7e78;
  font-size: 0.78rem;
}

.cash-breadcrumb a {
  color: #675d58;
  text-decoration: none;
}

.cash-hero {
  display: grid;
  padding: 42px 0 62px;
  grid-template-columns: minmax(0, 1.02fr) minmax(450px, 0.98fr);
  gap: clamp(42px, 7vw, 82px);
  align-items: center;
}

.cash-kicker,
.cash-result-heading > div > p {
  margin: 0 0 12px;
  color: #e85f43;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.cash-intro h1 {
  margin: 0;
  color: var(--cash-ink);
  font-size: clamp(2.08rem, 4.1vw, 3.4rem);
  font-weight: 900;
  line-height: 1.24;
}

.cash-intro h1 span {
  display: block;
  margin-top: 13px;
  color: var(--cash-coral);
  font-size: 0.46em;
  line-height: 1.55;
}

.cash-lead {
  margin: 24px 0 0;
  color: #554d4a;
  font-size: 1rem;
  line-height: 1.9;
}

.cash-trust-list {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.cash-trust-list li {
  position: relative;
  padding-left: 27px;
  color: #332d2b;
  font-size: 0.88rem;
  font-weight: 750;
}

.cash-trust-list li::before {
  position: absolute;
  top: 0.5em;
  left: 1px;
  width: 14px;
  height: 8px;
  border-bottom: 2px solid var(--cash-coral);
  border-left: 2px solid var(--cash-coral);
  content: "";
  transform: rotate(-45deg);
}

.cash-updated {
  margin: 21px 0 0;
  color: #837873;
  font-size: 0.74rem;
}

.cash-form {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--cash-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(62, 47, 39, 0.06);
}

.cash-form-heading {
  margin-bottom: 22px;
}

.cash-form-heading p {
  margin: 0 0 3px;
  color: #e85f43;
  font-size: 0.75rem;
  font-weight: 850;
}

.cash-form-heading h2 {
  margin: 0;
  color: var(--cash-ink);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.cash-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cash-form-grid + .cash-form-grid,
.cash-choice-field + .cash-form-grid {
  margin-top: 17px;
}

.cash-field label,
.cash-choice-field legend {
  display: block;
  margin-bottom: 7px;
  color: #2f2927;
  font-size: 0.86rem;
  font-weight: 850;
}

.cash-field label > span:not(.is-optional),
.cash-choice-field legend > span {
  margin-left: 5px;
  color: #e85f43;
  font-size: 0.68rem;
}

.cash-field label .is-optional {
  margin-left: 5px;
  color: #8b807b;
  font-size: 0.68rem;
}

.cash-field input[type="date"],
.cash-input-unit input {
  width: 100%;
  min-height: 53px;
  padding: 0 14px;
  border: 1px solid #ddcec6;
  border-radius: 6px;
  background: #fff;
  color: var(--cash-ink);
}

.cash-input-unit {
  position: relative;
}

.cash-input-unit input {
  padding-right: 78px;
}

.cash-input-unit > span {
  position: absolute;
  top: 50%;
  right: 13px;
  color: #796e69;
  font-size: 0.72rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.cash-field input:focus {
  border-color: var(--cash-coral);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 118, 88, 0.14);
}

.cash-field input[aria-invalid="true"] {
  border-color: #c24c55;
}

.cash-help,
.cash-error {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

.cash-help {
  color: #837873;
}

.cash-error {
  color: #c24c55;
  font-weight: 750;
}

.cash-choice-field {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.cash-segmented {
  display: grid;
  padding: 3px;
  border: 1px solid #ddcec6;
  border-radius: 7px;
  background: #fffaf7;
  grid-template-columns: repeat(3, 1fr);
}

.cash-segmented label {
  cursor: pointer;
}

.cash-segmented input {
  position: absolute;
  opacity: 0;
}

.cash-segmented span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #6d625d;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.cash-segmented input:checked + span {
  background: #fff;
  color: #dd5a3e;
  box-shadow: 0 2px 7px rgba(62, 47, 39, 0.09);
}

.cash-options {
  margin-top: 20px;
  border-top: 1px solid var(--cash-line);
  border-bottom: 1px solid var(--cash-line);
}

.cash-options summary {
  padding: 15px 2px;
  color: #5f5652;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.cash-options summary span {
  margin-left: 5px;
  color: #8b807b;
  font-size: 0.68rem;
}

.cash-options-body {
  display: grid;
  padding: 2px 2px 20px;
  gap: 12px;
}

.cash-checkbox {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #4c4541;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.65;
}

.cash-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--cash-coral);
}

.cash-submit,
.cash-sample,
.cash-result-heading button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
}

.cash-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 23px;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--cash-coral);
  color: #fff;
  box-shadow: 0 2px 7px rgba(66, 46, 42, 0.13);
}

.cash-submit:hover {
  background: var(--cash-coral-dark);
}

.cash-sample {
  width: 100%;
  min-height: 43px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #d95a40;
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cash-privacy {
  margin: 8px 0 0;
  color: #837873;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

.cash-result {
  margin-bottom: 64px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--cash-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(62, 47, 39, 0.07);
  scroll-margin-top: 80px;
}

.cash-result[hidden] {
  display: none;
}

.cash-result-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.cash-result-heading h2 {
  margin: 0;
  color: var(--cash-ink);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.cash-result-heading h2:focus {
  outline: 0;
}

.cash-result-heading > div > span {
  display: block;
  margin-top: 7px;
  color: #796f6a;
  font-size: 0.8rem;
}

.cash-result-heading button {
  min-height: 42px;
  padding: 8px 17px;
  border: 1px solid #ffc5b5;
  border-radius: 999px;
  background: #fff;
  color: #d95a40;
  font-size: 0.74rem;
}

.cash-result-grid {
  display: grid;
  margin-top: 29px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cash-result-grid article {
  padding: 20px;
  border: 1px solid var(--cash-line);
  border-radius: 7px;
  background: #fff;
}

.cash-result-grid article.is-primary {
  border-color: #f0ab9b;
  background: var(--cash-coral-soft);
}

.cash-result-grid p {
  margin: 0;
  color: #796e69;
  font-size: 0.75rem;
  font-weight: 800;
}

.cash-result-grid strong {
  display: block;
  margin-top: 9px;
  color: var(--cash-ink);
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  line-height: 1.25;
}

.cash-result-grid span {
  display: block;
  margin-top: 7px;
  color: #756b66;
  font-size: 0.78rem;
  line-height: 1.5;
}

.cash-result-layout {
  display: grid;
  margin-top: 42px;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 42px;
  align-items: start;
}

.cash-result-section + .cash-result-section {
  margin-top: 48px;
}

.cash-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.cash-section-heading h3 {
  margin: 0;
  color: var(--cash-ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.cash-state {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.cash-state.is-schedule { background: var(--cash-mint-soft); color: #18766e; }
.cash-state.is-money { background: var(--cash-blue-soft); color: #46658c; }
.cash-state.is-check { background: var(--cash-amber-soft); color: #8a6428; }

.cash-timeline {
  display: grid;
  margin-top: 20px;
  gap: 10px;
}

.cash-timeline article {
  display: grid;
  padding: 15px 17px;
  border: 1px solid var(--cash-line);
  border-radius: 6px;
  background: #fff;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
}

.cash-timeline time {
  color: var(--cash-coral);
  font-size: 0.86rem;
  font-weight: 900;
}

.cash-timeline strong {
  display: block;
  color: #37302d;
  font-size: 0.88rem;
}

.cash-timeline p {
  margin: 4px 0 0;
  color: #766c67;
  font-size: 0.78rem;
  line-height: 1.65;
}

.cash-caution {
  margin: 14px 0 0;
  color: #766b66;
  font-size: 0.8rem;
  line-height: 1.7;
}

.cashflow-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--cash-line);
  border-radius: 7px;
}

.cashflow-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.cashflow-table th,
.cashflow-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f0e8e3;
  color: #4c4541;
  font-size: 0.8rem;
  text-align: right;
}

.cashflow-table th:first-child,
.cashflow-table td:first-child {
  text-align: left;
}

.cashflow-table th {
  background: #fffaf7;
  color: #6d625d;
  font-weight: 850;
}

.cashflow-table tr:last-child td {
  border-bottom: 0;
}

.cashflow-table .is-negative {
  color: #c24c55;
  font-weight: 900;
}

.cash-bars {
  display: grid;
  margin-top: 14px;
  gap: 8px;
}

.cash-bar-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 84px;
  gap: 10px;
  align-items: center;
  color: #675e59;
  font-size: 0.75rem;
  font-weight: 800;
}

.cash-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e8e3;
}

.cash-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cash-mint);
}

.cash-bar-fill.is-low {
  background: var(--cash-amber);
}

.cash-bar-fill.is-negative {
  background: #c24c55;
}

.cash-check-section {
  padding: 23px;
  border: 1px solid #eed9b7;
  border-radius: 7px;
  background: var(--cash-amber-soft);
}

.cash-check-section ul {
  display: grid;
  margin: 17px 0 0;
  padding-left: 1.2rem;
  gap: 9px;
  color: #5e5040;
  font-size: 0.8rem;
  line-height: 1.65;
}

.cash-result-sidebar {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 12px;
}

.cash-result-sidebar section {
  padding: 18px;
  border: 1px solid var(--cash-line);
  border-radius: 6px;
  background: #fff;
}

.cash-result-sidebar h3 {
  margin: 0 0 11px;
  color: #342e2c;
  font-size: 0.78rem;
}

.cash-result-sidebar dl {
  display: grid;
  margin: 0;
  gap: 9px;
}

.cash-result-sidebar dl div {
  display: flex;
  justify-content: space-between;
  gap: 9px;
}

.cash-result-sidebar dt,
.cash-result-sidebar p {
  color: #837873;
  font-size: 0.78rem;
}

.cash-result-sidebar dd {
  margin: 0;
  color: #4d4542;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.cash-result-sidebar p {
  margin: 0;
  line-height: 1.7;
}

.cash-result-warning {
  margin-top: 35px;
  padding: 15px 17px;
  border-left: 4px solid var(--cash-amber);
  background: var(--cash-amber-soft);
  color: #665039;
  font-size: 0.8rem;
  line-height: 1.7;
}

.cash-data-strip {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--cash-line);
  border-bottom: 1px solid var(--cash-line);
}

.cash-data-strip div {
  padding: 23px;
  border-left: 1px solid var(--cash-line);
}

.cash-data-strip div:first-child {
  border-left: 0;
}

.cash-data-strip span,
.cash-data-strip strong,
.cash-data-strip small {
  display: block;
}

.cash-data-strip span {
  color: #887c76;
  font-size: 0.7rem;
  font-weight: 800;
}

.cash-data-strip strong {
  margin-top: 5px;
  color: #37302d;
  font-size: 0.84rem;
}

.cash-data-strip small {
  margin-top: 4px;
  color: #837873;
  font-size: 0.7rem;
}

.cash-article {
  margin-top: 78px;
  margin-bottom: 100px;
  color: #433b38;
}

.cash-article > section {
  width: min(880px, 100%);
  margin: 0 auto;
  padding-top: 70px;
  scroll-margin-top: 70px;
}

.cash-article > section:first-child {
  padding-top: 0;
}

.cash-article h2 {
  margin: 0 0 18px;
  color: var(--cash-ink);
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.cash-article h3 {
  margin: 0;
  color: var(--cash-ink);
  font-size: 1rem;
}

.cash-article p {
  margin: 0 0 15px;
  font-size: 0.94rem;
  line-height: 1.9;
}

.cash-formula {
  margin: 22px 0;
  padding: 21px 23px;
  border: 1px solid #d9e3ef;
  border-radius: 6px;
  background: var(--cash-blue-soft);
}

.cash-formula p {
  margin: 0;
  font-size: 0.84rem;
}

.cash-formula p + p {
  margin-top: 10px;
}

.cash-source-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: #217f78;
  font-size: 0.82rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.cash-example-card {
  display: grid;
  margin-top: 23px;
  overflow: hidden;
  border: 1px solid var(--cash-line);
  border-radius: 7px;
  background: #fff;
  grid-template-columns: 1.08fr 0.92fr;
}

.cash-example-card > div {
  padding: 24px;
}

.cash-example-results {
  background: var(--cash-coral-soft);
}

.cash-example-conditions dl {
  display: grid;
  margin: 17px 0 0;
  gap: 9px;
}

.cash-example-conditions dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0e8e3;
}

.cash-example-conditions dt {
  color: #756b66;
  font-size: 0.8rem;
}

.cash-example-conditions dd {
  margin: 0;
  color: #342e2b;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}

.cash-example-results > div {
  margin-top: 17px;
}

.cash-example-results span {
  display: block;
  color: #7c5c52;
  font-size: 0.78rem;
  font-weight: 800;
}

.cash-example-results strong {
  display: block;
  margin-top: 4px;
  color: var(--cash-ink);
  font-size: 1.4rem;
}

.cash-example-note {
  margin-top: 14px !important;
  color: #766b66;
  font-size: 0.8rem !important;
}

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

.cash-related-tools a {
  display: block;
  padding: 20px;
  border: 1px solid var(--cash-line);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.cash-related-tools a:hover {
  border-color: var(--cash-coral);
}

.cash-related-tools strong {
  color: var(--cash-ink);
}

.cash-related-tools p {
  margin: 7px 0 0;
  color: #675e5a;
  font-size: 0.8rem;
  line-height: 1.7;
}

.cash-faq {
  border-top: 1px solid var(--cash-line);
}

.cash-faq details {
  border-bottom: 1px solid var(--cash-line);
}

.cash-faq summary {
  padding: 17px 3px;
  color: #352e2b;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
}

.cash-faq p {
  margin: 0;
  padding: 0 3px 19px;
  color: #655c57;
  font-size: 0.82rem;
  line-height: 1.8;
}

.cash-editorial {
  padding: 25px !important;
  border: 1px solid var(--cash-line);
  border-radius: 6px;
  background: #fff;
}

.cash-editorial h2 {
  font-size: 1.25rem;
}

.cash-editorial p {
  margin: 0;
  font-size: 0.82rem;
}

.cash-editorial a {
  color: #d95a40;
  font-weight: 800;
}

.cash-editorial-details {
  display: grid;
  margin: 0 0 18px;
}

.cash-editorial-details div {
  display: grid;
  padding: 10px 0;
  border-bottom: 1px solid #f0e8e3;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
}

.cash-editorial-details dt {
  color: #7b716d;
  font-size: 0.8rem;
}

.cash-editorial-details dd {
  margin: 0;
  color: #3f3835;
  font-size: 0.82rem;
  font-weight: 750;
}

@media (max-width: 980px) {
  .cash-hero {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .cash-form {
    width: min(720px, 100%);
  }

  .cash-result-layout {
    grid-template-columns: 1fr;
  }

  .cash-result-sidebar {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .cash-breadcrumb,
  .cash-hero,
  .cash-result,
  .cash-data-strip,
  .cash-article {
    width: calc(100% - 28px);
  }

  .cash-breadcrumb {
    flex-wrap: wrap;
  }

  .cash-hero {
    padding: 24px 0 42px;
    gap: 29px;
  }

  .cash-intro h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .cash-lead {
    font-size: 0.94rem;
  }

  .cash-form {
    padding: 22px 18px;
  }

  .cash-form-grid,
  .cash-result-grid,
  .cash-data-strip,
  .cash-example-card,
  .cash-related-tools {
    grid-template-columns: 1fr;
  }

  .cash-segmented {
    grid-template-columns: 1fr;
  }

  .cash-result {
    padding: 22px 16px;
  }

  .cash-result-heading {
    display: block;
  }

  .cash-result-heading button {
    margin-top: 15px;
  }

  .cash-result-layout {
    margin-top: 34px;
    gap: 30px;
  }

  .cash-result-sidebar {
    grid-template-columns: 1fr;
  }

  .cash-timeline article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .cash-data-strip div {
    border-top: 1px solid var(--cash-line);
    border-left: 0;
  }

  .cash-data-strip div:first-child {
    border-top: 0;
  }

  .cash-example-results {
    border-top: 1px solid var(--cash-line);
  }

  .cash-editorial-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cash-article {
    margin-top: 58px;
    margin-bottom: 76px;
  }

  .cash-article > section {
    padding-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cashflow-tool-page * {
    scroll-behavior: auto !important;
  }
}
