.tit-budget-page {
  --tit-budget-accent: #16845b;
  --tit-budget-accent-dark: #0f6044;
  --tit-budget-ink: #0b1728;
  --tit-budget-muted: #5f6f82;
  --tit-budget-warning: #9a650b;
  --tit-budget-soft-warning: #fff8e8;
  padding: 0;
  background: #f7faf8;
}

.tit-budget-hero {
  border-bottom: 1px solid var(--tip-line);
  background:
    radial-gradient(circle at 86% 18%, rgba(191, 230, 213, 0.34), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  padding: clamp(16px, 3vw, 30px) 0 clamp(16px, 3vw, 28px);
}

.tit-budget-hero-grid,
.tit-budget-tool,
.tit-budget-allocation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(14px, 2.6vw, 28px);
  align-items: start;
}

.tit-budget-hero-grid {
  align-items: center;
}

.tit-budget-hero-copy {
  max-width: 810px;
}

.tit-budget-hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--tit-budget-ink);
  font-size: clamp(2.25rem, 5vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.tit-budget-lede {
  max-width: 760px;
  margin: 10px 0 0;
  color: #34465b;
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.tit-budget-support,
.tit-budget-trust-line {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--tit-budget-muted);
  line-height: 1.55;
}

.tit-budget-trust-line {
  font-size: 0.9rem;
  font-weight: 750;
}

.tit-budget-hero-actions,
.tit-budget-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tit-budget-hero-art {
  display: grid;
  min-height: 210px;
  place-items: center;
}

.tit-budget-hero-art img {
  width: min(100%, 430px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(220, 230, 225, 0.9);
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(15, 31, 51, 0.12);
  object-fit: cover;
}

.tit-budget-privacy-section {
  padding-top: clamp(12px, 2vw, 20px);
  padding-bottom: 0;
}

.tit-budget-privacy-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(22, 132, 91, 0.25);
  border-radius: 18px;
  background: #f1faf5;
  color: #284236;
  padding: clamp(14px, 2.2vw, 20px);
}

.tit-budget-privacy-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--tit-budget-accent-dark);
}

.tit-budget-privacy-icon svg {
  width: 23px;
  height: 23px;
}

.tit-budget-privacy-note h2,
.tit-budget-privacy-note p {
  margin: 0;
}

.tit-budget-privacy-note h2 {
  color: var(--tit-budget-ink);
  font-size: 1.22rem;
  line-height: 1.2;
}

.tit-budget-privacy-note p {
  margin-top: 7px;
  font-size: 0.96rem;
  line-height: 1.62;
}

.tit-budget-workspace {
  scroll-margin-top: 90px;
  padding-top: clamp(12px, 2vw, 20px);
  padding-bottom: 0;
}

.tit-budget-page .home-section {
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(20px, 3vw, 34px);
}

.tit-budget-page .home-section + .home-section {
  padding-top: clamp(10px, 1.8vw, 18px);
}

.tit-budget-page .tit-budget-privacy-section,
.tit-budget-page .tit-budget-workspace {
  padding-top: clamp(12px, 2vw, 20px);
}

.tit-budget-page .section-heading {
  margin-bottom: 14px;
}

.tit-budget-input-panel,
.tit-budget-summary-panel,
.tit-budget-chart-panel,
.tit-budget-breakdown-panel,
.tit-budget-detail-table-wrap,
.tit-budget-insights-panel,
.tit-budget-download-panel,
.tit-budget-resource-card {
  border: 1px solid var(--tip-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 31, 51, 0.065);
}

.tit-budget-input-panel,
.tit-budget-summary-panel,
.tit-budget-chart-panel,
.tit-budget-breakdown-panel,
.tit-budget-insights-panel {
  padding: clamp(14px, 2.2vw, 22px);
}

.tit-budget-panel-heading {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tit-budget-panel-heading h2,
.tit-budget-download-panel h2,
.tit-budget-resource-card h3 {
  margin: 0;
  color: var(--tit-budget-ink);
  line-height: 1.14;
}

.tit-budget-panel-heading h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.tit-budget-heading-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
}

.tit-budget-reset,
.tit-budget-example {
  min-height: 38px;
  border: 1px solid rgba(22, 132, 91, 0.28);
  border-radius: 12px;
  background: #ffffff;
  color: var(--tit-budget-ink);
  padding: 7px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.tit-budget-reset:focus,
.tit-budget-example:focus {
  border-color: rgba(22, 132, 91, 0.4);
  background: #ffffff;
  color: var(--tit-budget-ink);
}

.tit-budget-example:hover,
.tit-budget-example:active {
  border-color: rgba(22, 132, 91, 0.55);
  background: var(--tit-budget-accent-dark);
  color: #ffffff;
}

.tit-budget-reset.is-resetting {
  border-color: rgba(22, 132, 91, 0.55);
  background: var(--tit-budget-accent-dark);
  color: #ffffff;
}

@media (hover: hover) {
  .tit-budget-reset:hover {
    border-color: rgba(22, 132, 91, 0.55);
    background: var(--tit-budget-accent-dark);
    color: #ffffff;
  }
}

.tit-budget-reset:focus-visible,
.tit-budget-example:focus-visible {
  box-shadow: 0 0 0 3px rgba(22, 132, 91, 0.22);
}

.tit-budget-example-status {
  max-width: 220px;
  margin: 0;
  color: var(--tit-budget-muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.45;
}

.tit-budget-global-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.tit-budget-field {
  display: grid;
  grid-template-rows: auto auto minmax(38px, auto);
  gap: 5px;
  min-width: 0;
}

.tit-budget-field > span {
  color: var(--tit-budget-ink);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.25;
}

.tit-budget-field small {
  color: var(--tit-budget-muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.tit-budget-field input,
.tit-budget-field select,
.tit-budget-row input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfddd7;
  border-radius: 11px;
  background: #ffffff;
  color: var(--tit-budget-ink);
  padding: 7px 10px;
  font-weight: 700;
}

.tit-budget-field input[aria-invalid="true"],
.tit-budget-row input[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.tit-budget-money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfddd7;
  border-radius: 11px;
  background: #ffffff;
}

.tit-budget-money-input:focus-within {
  outline: 3px solid rgba(22, 132, 91, 0.22);
  outline-offset: 2px;
}

.tit-budget-money-input > span {
  display: inline-flex;
  min-width: 38px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e4ece8;
  background: #f8fbf9;
  color: var(--tit-budget-muted);
  padding: 0 9px;
  font-size: 0.82rem;
  font-weight: 850;
}

.tit-budget-money-input input {
  min-width: 0;
  border: 0;
  border-radius: 0;
}

.tit-budget-money-input input:focus-visible {
  outline: 0;
}

.tit-budget-income-note {
  margin: 10px 0;
  border-left: 3px solid var(--tit-budget-accent);
  background: #f8fbf9;
  color: #405366;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.tit-budget-input-groups {
  display: grid;
  gap: 8px;
}

.tit-budget-input-group {
  overflow: hidden;
  border: 1px solid #dce6e1;
  border-radius: 14px;
  background: #ffffff;
}

.tit-budget-input-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 11px 13px;
  background: #f8fbf9;
  color: var(--tit-budget-ink);
  cursor: pointer;
}

.tit-budget-input-group summary::marker {
  color: var(--tit-budget-accent);
}

.tit-budget-input-group summary span {
  display: grid;
  gap: 3px;
}

.tit-budget-input-group summary strong {
  font-size: 1rem;
  line-height: 1.2;
}

.tit-budget-input-group summary small {
  color: var(--tit-budget-muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.tit-budget-input-group summary b {
  color: var(--tit-budget-accent-dark);
  font-size: 0.95rem;
  line-height: 1.1;
}

.tit-budget-input-table {
  display: grid;
  padding: 2px 13px 6px;
}

.tit-budget-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  color: #2f4257;
  font-size: 0.91rem;
  font-weight: 750;
  line-height: 1.35;
}

.tit-budget-row + .tit-budget-row {
  border-top: 1px solid #edf2ef;
}

.tit-budget-row .tit-budget-money-input {
  min-width: 0;
}

.tit-budget-validation {
  min-height: 0;
  margin: 8px 0 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 700;
}

.tit-budget-results {
  position: sticky;
  top: calc(var(--tip-header-height) + var(--tip-admin-bar-height) + 12px);
}

.tit-budget-primary-metrics,
.tit-budget-rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tit-budget-metric,
.tit-budget-rate,
.tit-budget-optional-metrics article {
  min-width: 0;
  border: 1px solid #e0e9e5;
  border-radius: 14px;
  background: #f8fbf9;
  padding: 10px;
}

.tit-budget-metric span,
.tit-budget-rate span,
.tit-budget-optional-metrics span {
  display: block;
  color: var(--tit-budget-muted);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.32;
}

.tit-budget-metric strong,
.tit-budget-rate strong,
.tit-budget-optional-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--tit-budget-ink);
  overflow-wrap: anywhere;
  line-height: 1.1;
}

.tit-budget-metric strong {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
}

.tit-budget-metric small {
  display: block;
  margin-top: 8px;
  color: var(--tit-budget-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
}

.tit-budget-metric.is-positive {
  border-color: rgba(22, 132, 91, 0.28);
  background: #f1faf5;
}

.tit-budget-metric.is-positive strong {
  color: var(--tit-budget-accent-dark);
}

.tit-budget-metric.is-deficit {
  border-color: rgba(196, 147, 47, 0.4);
  background: var(--tit-budget-soft-warning);
}

.tit-budget-metric.is-deficit strong {
  color: #7b5109;
}

.tit-budget-rate-grid {
  margin-top: 9px;
}

.tit-budget-rate strong {
  font-size: 1.12rem;
}

.tit-budget-rate-featured {
  border-color: rgba(22, 132, 91, 0.24);
  background: #f1faf5;
}

.tit-budget-optional-metrics {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border-top: 1px solid #e8efeb;
  padding-top: 10px;
}

.tit-budget-optional-metrics article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
}

.tit-budget-optional-metrics strong {
  margin-top: 0;
  font-size: 0.95rem;
  text-align: right;
}

.tit-budget-allocation-grid {
  grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.64fr);
}

.tit-budget-chart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 2vw, 16px);
}

.tit-budget-chart-legend {
  display: grid;
  max-width: min(100%, 420px);
  gap: 8px;
  justify-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tit-budget-chart-legend[hidden] {
  display: none;
}

.tit-budget-chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #33475b;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
}

.tit-budget-chart-legend i {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.tit-budget-donut-wrap {
  position: relative;
  width: min(100%, 540px);
  min-width: 0;
  margin: 0 auto;
}

.tit-budget-donut {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.tit-budget-donut-track {
  stroke: #edf3f0;
  stroke-width: 34;
}

.tit-budget-donut-track-inner {
  stroke: #e4eee9;
}

.tit-budget-donut-segment {
  cursor: pointer;
  outline: none;
  transition: opacity 160ms ease, filter 160ms ease, stroke-width 160ms ease;
}

.tit-budget-donut-segment:hover,
.tit-budget-donut-segment:focus {
  opacity: 0.9;
  filter: drop-shadow(0 3px 4px rgba(15, 31, 51, 0.16));
}

.tit-budget-donut-segment-macro:hover,
.tit-budget-donut-segment-macro:focus {
  stroke-width: 37;
}

.tit-budget-donut-segment-subcategory:hover,
.tit-budget-donut-segment-subcategory:focus {
  stroke-width: 37;
}

.tit-budget-donut-label {
  pointer-events: none;
}

.tit-budget-donut-label text {
  fill: #33475b;
  font-size: 0.5rem;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-linejoin: round;
  stroke-width: 3px;
}

.tit-budget-donut-label tspan {
  fill: inherit;
  font: inherit;
  stroke: inherit;
}

.tit-budget-donut-label-connector {
  stroke: rgba(95, 111, 130, 0.58);
  stroke-width: 1.05;
  stroke-linecap: round;
}

.tit-budget-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 40%;
  justify-items: center;
  transform: translate(-50%, -50%);
  text-align: center;
}

.tit-budget-donut-center span {
  color: var(--tit-budget-muted);
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  font-weight: 800;
  line-height: 1.25;
}

.tit-budget-donut-center strong {
  margin-top: 4px;
  color: var(--tit-budget-ink);
  font-size: clamp(0.92rem, 2.1vw, 1.3rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.tit-budget-chart-empty {
  margin: 0;
  color: var(--tit-budget-muted);
  line-height: 1.55;
}

.tit-budget-chart-info {
  display: grid;
  gap: 8px;
}

.tit-budget-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tit-budget-legend li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: #33475b;
  font-size: 0.88rem;
  line-height: 1.35;
}

.tit-budget-legend i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.tit-budget-legend strong {
  color: var(--tit-budget-ink);
  font-size: 0.88rem;
  text-align: right;
}

.tit-budget-legend small {
  display: block;
  color: var(--tit-budget-muted);
  font-size: 0.76rem;
}

.tit-budget-chart-detail {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.tit-budget-chart-tooltip {
  position: absolute;
  z-index: 4;
  display: grid;
  width: min(248px, calc(100% - 24px));
  gap: 7px;
  border: 1px solid rgba(207, 221, 215, 0.94);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 31, 51, 0.18);
  color: #33475b;
  padding: 12px 13px;
  pointer-events: none;
  transform: none;
}

.tit-budget-chart-tooltip[hidden] {
  display: none;
}

.tit-budget-chart-tooltip::after {
  position: absolute;
  top: var(--tit-budget-tooltip-tail-y, 50%);
  width: 0;
  height: 0;
  border: 7px solid transparent;
  content: "";
  transform: translateY(-50%);
}

.tit-budget-chart-tooltip[data-side="right"]::after {
  left: -13px;
  border-right-color: rgba(255, 255, 255, 0.98);
}

.tit-budget-chart-tooltip[data-side="left"]::after {
  right: -13px;
  border-left-color: rgba(255, 255, 255, 0.98);
}

.tit-budget-chart-tooltip-title {
  color: var(--tit-budget-ink);
  font-size: 0.95rem;
  line-height: 1.2;
}

.tit-budget-chart-tooltip-meta {
  color: var(--tit-budget-accent-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tit-budget-chart-tooltip-rows {
  display: grid;
  gap: 5px;
  border-top: 1px solid #e8efeb;
  padding-top: 8px;
}

.tit-budget-chart-tooltip-rows div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  font-size: 0.8rem;
  line-height: 1.25;
}

.tit-budget-chart-tooltip-rows span {
  color: var(--tit-budget-muted);
}

.tit-budget-chart-tooltip-rows strong {
  color: var(--tit-budget-ink);
  font-size: 0.82rem;
  text-align: right;
}

.tit-budget-deficit-note {
  margin: 8px 0 0;
  border-left: 3px solid var(--tit-budget-warning);
  background: var(--tit-budget-soft-warning);
  color: #65450d;
  padding: 8px 10px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.tit-budget-table-wrap,
.tit-budget-detail-table-wrap {
  overflow-x: auto;
}

.tit-budget-breakdown-panel table,
.tit-budget-detail-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  color: #33475b;
  font-size: 0.88rem;
}

.tit-budget-breakdown-panel th,
.tit-budget-breakdown-panel td,
.tit-budget-detail-table-wrap th,
.tit-budget-detail-table-wrap td {
  border-bottom: 1px solid #e6eeea;
  padding: 8px 8px;
  text-align: left;
  vertical-align: top;
}

.tit-budget-breakdown-panel th,
.tit-budget-detail-table-wrap th {
  color: var(--tit-budget-ink);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tit-budget-breakdown-panel td:nth-child(n + 2),
.tit-budget-breakdown-panel th:nth-child(n + 2),
.tit-budget-detail-table-wrap td:nth-child(3),
.tit-budget-detail-table-wrap td:nth-child(4),
.tit-budget-detail-table-wrap th:nth-child(3),
.tit-budget-detail-table-wrap th:nth-child(4) {
  text-align: right;
}

.tit-budget-detail-table-wrap {
  box-shadow: 0 14px 36px rgba(15, 31, 51, 0.055);
}

.tit-budget-detail-table-wrap table {
  min-width: 760px;
}

.tit-budget-detail-table-wrap th,
.tit-budget-detail-table-wrap td {
  padding: 9px 12px;
}

.tit-budget-insights-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
}

.tit-budget-insights-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(207, 221, 215, 0.94);
  border-radius: 16px;
  background: #f8fbf9;
  padding: 10px 12px;
}

.tit-budget-insights-summary span,
.tit-budget-insight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e6f4ee;
  color: var(--tit-budget-accent-dark);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.tit-budget-insights-summary-watch span,
.tit-budget-insight-card-watch .tit-budget-insight-badge {
  background: #fff4d9;
  color: #7b5109;
}

.tit-budget-insights-summary-review span,
.tit-budget-insight-card-review .tit-budget-insight-badge {
  background: #fff1ee;
  color: #9b2f21;
}

.tit-budget-insights-summary strong {
  color: var(--tit-budget-ink);
  font-size: 1rem;
  line-height: 1.25;
}

.tit-budget-insights-summary b {
  color: var(--tit-budget-ink);
  font-size: 0.96rem;
  text-align: right;
  white-space: nowrap;
}

.tit-budget-insights-summary p {
  grid-column: 2 / -1;
  margin: -2px 0 0;
  color: var(--tit-budget-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tit-budget-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tit-budget-insight-card {
  display: grid;
  gap: 7px;
  align-content: start;
  border: 1px solid #e0e9e5;
  border-radius: 14px;
  background: #ffffff;
  color: #33475b;
  padding: 11px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.tit-budget-insight-card h3 {
  margin: 0;
  color: var(--tit-budget-ink);
  font-size: 1rem;
  line-height: 1.25;
}

.tit-budget-insight-card p {
  margin: 0;
  color: #33475b;
}

.tit-budget-insight-metric {
  color: var(--tit-budget-ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.tit-budget-insight-card-strong {
  border-color: rgba(22, 132, 91, 0.22);
  background: #f6fcf9;
}

.tit-budget-insight-card-watch {
  border-color: rgba(196, 147, 47, 0.26);
  background: #fffdf7;
}

.tit-budget-insight-card-review {
  border-color: rgba(155, 47, 33, 0.18);
  background: #fffbfa;
}

.tit-budget-benchmark-disclaimer,
.tit-budget-final-disclaimer {
  margin: 12px 0 0;
  color: var(--tit-budget-muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
}

.tit-budget-download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  background: var(--tit-budget-ink);
  color: #ffffff;
  padding: clamp(20px, 3.6vw, 34px);
}

.tit-budget-download-panel h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.tit-budget-download-panel p {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.62;
}

.tit-budget-download-panel .eyebrow {
  color: #aee0c8;
}

.tit-budget-download-panel .tit-budget-download-note {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.tit-budget-download-actions {
  min-width: min(100%, 270px);
  flex-direction: column;
  margin: 0;
}

.tit-budget-download-actions .button {
  width: 100%;
}

.tit-budget-download-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

.tit-budget-resource-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(14px, 2.2vw, 20px);
}

.tit-budget-resource-card.is-recommended {
  border-color: rgba(22, 132, 91, 0.38);
  box-shadow: 0 16px 38px rgba(22, 132, 91, 0.1);
}

.tit-budget-resource-match {
  align-self: flex-start;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #e4f5ec;
  color: var(--tit-budget-accent-dark);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.tit-budget-resource-card h3 {
  font-size: 1.14rem;
}

.tit-budget-resource-card p {
  margin: 8px 0 14px;
  color: var(--tit-budget-muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.tit-budget-resource-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.tit-budget-resource-disclosure {
  margin-bottom: 0;
}

.tit-budget-final-disclaimer {
  margin: 18px 0 0;
  text-align: center;
}

@media (max-width: 1000px) {
  .tit-budget-tool,
  .tit-budget-allocation-grid {
    grid-template-columns: 1fr;
  }

  .tit-budget-results {
    position: static;
  }

  .tit-budget-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tit-budget-hero-grid,
  .tit-budget-chart-layout,
  .tit-budget-download-panel {
    grid-template-columns: 1fr;
  }

  .tit-budget-hero-art {
    min-height: 210px;
  }

  .tit-budget-download-actions {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .tit-budget-hero {
    padding: 22px 0 24px;
  }

  .tit-budget-hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .tit-budget-hero-actions,
  .tit-budget-hero-actions .button,
  .tit-budget-download-actions,
  .tit-budget-resource-card .button {
    width: 100%;
  }

  .tit-budget-privacy-note {
    grid-template-columns: 1fr;
  }

  .tit-budget-global-grid,
  .tit-budget-primary-metrics,
  .tit-budget-rate-grid,
  .tit-budget-insights,
  .tit-budget-resource-grid {
    grid-template-columns: 1fr;
  }

  .tit-budget-panel-heading {
    flex-direction: column;
  }

  .tit-budget-heading-actions,
  .tit-budget-reset,
  .tit-budget-example {
    width: 100%;
  }

  .tit-budget-example-status {
    max-width: none;
  }

  .tit-budget-insights-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tit-budget-insights-summary span {
    justify-self: start;
  }

  .tit-budget-insights-summary b {
    text-align: left;
    white-space: normal;
  }

  .tit-budget-insights-summary p {
    grid-column: auto;
  }

  .tit-budget-input-group summary {
    gap: 10px;
    padding: 14px;
  }

  .tit-budget-input-group summary small {
    display: none;
  }

  .tit-budget-input-table {
    padding: 4px 14px 8px;
  }

  .tit-budget-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px 0;
  }

  .tit-budget-row .tit-budget-money-input {
    width: 100%;
  }

  .tit-budget-chart-layout {
    gap: 12px;
  }

  .tit-budget-chart-legend {
    gap: 7px;
  }

  .tit-budget-legend {
    grid-template-columns: 1fr;
  }

  .tit-budget-donut {
    max-width: 360px;
  }

  .tit-budget-donut-label text {
    font-size: 0.44rem;
  }

  .tit-budget-donut-label-connector {
    stroke-width: 0.85;
  }

  .tit-budget-input-panel,
  .tit-budget-summary-panel,
  .tit-budget-chart-panel,
  .tit-budget-breakdown-panel,
  .tit-budget-insights-panel,
  .tit-budget-download-panel,
  .tit-budget-resource-card {
    border-radius: 16px;
  }
}
