@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
  --ink: #243b37;
  --muted: #6c7772;
  --green: #245a50;
  --green-dark: #153e36;
  --line: #dfe5df;
  --paper: #f6f7f2;
  --soft: #edf3ec;
  --orange: #b7602b;
  --orange-soft: #f8ede1;
  --white: #fff;
  --radius: 16px;
  font-family: 'DM Sans',sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,input,select {
  font: inherit;
}

button,a,input,select,summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

button {
  transition: background .15s,color .15s,border-color .15s;
}

button:disabled {
  cursor: default;
  opacity: .35;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 3px solid #c38249;
  outline-offset: 4px;
}

button:disabled:hover {
  background: inherit;
}

button:not(:disabled):hover {
  filter: brightness(.96);
}

[hidden] {
  display: none!important;
}

.header {
  max-width: 1320px;
  margin: auto;
  padding: 25px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Manrope,sans-serif;
  font-weight: 800;
  font-size: 18px;
}

.brand-mark {
  background: var(--green-dark);
  color: white;
  border-radius: 12px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.brand-mark span,.footer-brand>span:first-child {
  color: #a6cb92;
}

.brand-sub {
  display: block;
  font: 400 11px 'DM Sans',sans-serif;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: .2px;
}

main {
  max-width: 1240px;
  margin: auto;
  padding: 0 0 28px;
}

.intro {
  padding: 56px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--green);
  margin: 0 0 16px;
}

h1,h2,h3,p {
  margin-top: 0;
}

h1 {
  font: 650 clamp(34px,4vw,52px)/1.13 Manrope,sans-serif;
  letter-spacing: -2px;
  margin-bottom: 18px;
}

h1 em {
  font-style: normal;
  color: #51816b;
}

.intro-copy {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 570px;
  margin: 0;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: 24px;
  align-items: start;
}

.settings {
  display: grid;
  gap: 20px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 27px;
}

.section-heading {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 23px;
}

.step {
  color: var(--green);
  font: 600 12px Manrope,sans-serif;
  background: var(--soft);
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

h2 {
  font: 700 19px/1.5 Manrope,sans-serif;
  letter-spacing: -.5px;
  margin-bottom: 3px;
}

.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.example-row {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.text-button {
  font-size: 11px;
  font-weight: 600;
  background: none;
  border: 0;
  color: var(--green);
  padding: 5px 0;
}

.text-button span {
  margin-left: 6px;
}

.category-group {
  margin-top: 15px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  padding: 10px 0 8px;
}

.room-icon {
  display: inline-grid;
  grid-template-columns: repeat(2,4px);
  gap: 2px;
}

.room-icon i {
  height: 4px;
  background: #739486;
}

.category-row {
  display: grid;
  grid-template-columns: 1fr auto 110px;
  gap: 15px;
  align-items: center;
  min-height: 49px;
  border-top: 1px solid #edf0ea;
}

.category-row.selected {
  background: #f3f7f1;
}

.floor {
  font-size: 12px;
  padding-left: 6px;
}

.quota {
  font-size: 11px;
  color: var(--muted);
}

.counter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.counter button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--green);
  width: 27px;
  height: 27px;
  padding: 0;
  font-size: 18px;
}

.counter input {
  min-width: 0;
  width: 40px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  text-align: center;
  font-size: 12px;
  height: 29px;
  color: var(--ink);
}

.counter input:hover {
  border-color: var(--line);
}

.category-error {
  margin: 0 0 6px;
  font-size: 11px;
}

.selection-summary {
  margin-top: 19px;
  border: 1px solid #d9e4d7;
  background: #f4f7f0;
  border-radius: 9px;
  padding: 14px 15px;
  font-size: 12px;
  line-height: 1.6;
}

.selection-summary strong {
  display: block;
  color: var(--green);
  font-size: 13px;
}

.selected-list {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 10px;
}

.segmented {
  display: flex;
  padding: 4px;
  background: #f3f5f1;
  border-radius: 8px;
  gap: 3px;
  margin-bottom: 19px;
}

.segmented button {
  flex: 1;
  background: none;
  border: 1px solid transparent;
  padding: 8px 4px;
  border-radius: 5px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.segmented button[aria-pressed=true] {
  background: white;
  box-shadow: 0 1px 5px #233c3010;
  color: var(--green);
  border-color: #e0e6db;
}

.priority {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 10px;
}

.priority:has(input:checked) {
  border-color: #a4bb9f;
  background: #fafcf7;
}

.priority-top {
  display: flex;
  align-items: start;
  gap: 11px;
  cursor: pointer;
}

.priority-check {
  margin: 4px 0 0;
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.priority-info {
  flex: 1;
  min-width: 0;
}

.priority-kicker {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}

.priority-kicker span:first-child {
  font-weight: 600;
  color: var(--green);
}

.priority-title {
  font: 650 14px/1.4 Manrope,sans-serif;
}

.priority-price {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  text-align: right;
  margin-left: 5px;
}

.priority-body {
  padding-left: 27px;
}

.priority-description {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 7px 0;
}

.range-label {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}

.priority-custom {
  margin-top: 10px;
}

.priority-custom label {
  font-size: 11px;
  display: block;
  margin-bottom: 6px;
}

.priority-custom .unit-input input {
  font-size: 13px;
}

.priority-flag {
  font-size: 10px;
  color: var(--orange);
  margin: 5px 0 0;
}

.cost-setting {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cost-setting label {
  font-size: 12px;
  font-weight: 600;
}

select {
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 11px;
  max-width: 70%;
}

.assumption {
  font-size: 11px;
  color: var(--green);
  background: var(--soft);
  border-radius: 7px;
  padding: 10px 12px;
  margin: 13px 0;
  line-height: 1.6;
}

.fineprint {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 10px;
}

.unit-input {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5c9;
  border-radius: 8px;
  padding: 0 14px;
  background: white;
}

.unit-input span {
  font-size: 12px;
  color: var(--muted);
}

.unit-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 13px 10px;
  background: transparent;
  color: var(--ink);
  font-size: 19px;
  font-weight: 550;
}

.unit-input:focus-within {
  outline: 2px solid #8ca889;
  outline-offset: 2px;
}

.unit-input input:focus-visible {
  outline: 0;
}

.unit-input:has([aria-invalid=true]) {
  border-color: #b53b32;
}

.unit-input+ .error,.unit-input~.fineprint {
  margin-top: 8px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}

.rate-input {
  width: 180px;
}

.rate-input input {
  padding-left: 0;
}

.rate-input span {
  white-space: nowrap;
}

.rate-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0;
}

.rate-presets button {
  white-space: nowrap;
  min-width: 60px;
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 8px 15px;
  background: white;
  border-radius: 6px;
  color: var(--muted);
}

.rate-presets button[aria-pressed=true] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.model-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0 0;
}

.result-sticky {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 16px;
}

.results-column {
  align-self: stretch;
}

.result-card {
  border-radius: var(--radius);
  background: var(--green-dark);
  color: #fff;
  padding: 30px;
  overflow: hidden;
}

.result-eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b4c9bf;
  margin-bottom: 18px;
}

.result-card h2 {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: #e5ede5;
}

.result-total {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font: 600 clamp(32px,3.4vw,44px)/1.3 Manrope,sans-serif;
  letter-spacing: -1.5px;
  margin: 8px 0;
}

.currency {
  font: 500 14px 'DM Sans',sans-serif;
  letter-spacing: 0;
  color: #b4c9bf;
}

.result-context {
  font-size: 11px;
  color: #c1d2c7;
  margin-bottom: 25px;
  line-height: 1.7;
}

.result-breakdown {
  background: #ffffff0c;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  padding: 17px;
}

.breakdown-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.breakdown-line:last-child {
  margin: 0;
  padding-top: 15px;
  border-top: 1px solid #ffffff21;
}

.breakdown-label {
  font-size: 12px;
  line-height: 1.5;
}

.breakdown-label small {
  display: block;
  font-size: 10px;
  color: #b4c9bf;
  margin-top: 2px;
}

.breakdown-line strong {
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
}

.extra-line .breakdown-label,.extra-line strong {
  color: #f3c08f;
}

.swatch {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 2px;
  background: #b9d0a3;
  margin-right: 6px;
}

.swatch.orange {
  background: #e4a670;
}

.bar {
  display: flex;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin: 18px 0 10px;
  background: #ffffff15;
}

.bar-base {
  background: #b9d0a3;
}

.bar-extra {
  background: #e4a670;
}

.bar-caption {
  font-size: 10px;
  color: #c1d2c7;
  line-height: 1.6;
  margin: 0;
}

.simulation {
  font-size: 10px;
  line-height: 1.7;
  color: #b7cbbf;
  margin: 20px 0 0;
}

.result-empty-icon {
  width: 49px;
  height: 49px;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: #adc9a2;
  margin: 26px 0 18px;
}

.result-empty-title {
  font: 600 26px/1.4 Manrope,sans-serif!important;
  color: white!important;
  max-width: 260px;
  margin-bottom: 12px!important;
}

.result-empty-copy {
  font-size: 12px;
  line-height: 1.8;
  color: #c1d2c7;
  max-width: 340px;
}

.result-empty-list {
  font-size: 11px;
  line-height: 2;
  color: #c1d2c7;
  padding: 17px 0;
  border-top: 1px solid #ffffff25;
  margin-top: 25px;
}

.community {
  padding: 24px;
}

.community h2 {
  font-size: 14px;
  margin-bottom: 19px;
}

.community-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 12px;
}

.community-line span {
  color: var(--muted);
}

.community-line strong {
  font-weight: 550;
  white-space: nowrap;
}

.community-line.total {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.community-line.total span {
  color: var(--ink);
}

.community .fund-source {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 15px 0 0;
}

.fund-left {
  background: var(--soft);
  padding: 9px 12px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  border-radius: 6px;
  margin-top: 10px;
}

.reset-button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  padding: 10px;
  justify-self: center;
}

.comparison-panel {
  margin-top: 24px;
  padding: 28px;
}

.comparison-panel .section-heading {
  margin-bottom: 20px;
}

.table-scroll {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
  min-width: 550px;
}

th {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

td {
  font-size: 13px;
  padding: 15px;
  border-bottom: 1px solid #edf0ea;
}

th:not(:first-child),td:not(:first-child) {
  text-align: right;
}

tbody tr:last-child td {
  border: 0;
}

.active-scenario {
  background: #f1f5ed;
}

.active-scenario td:first-child {
  color: var(--green);
  font-weight: 700;
}

.scenario-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  color: var(--green);
  margin-left: 8px;
  background: #e0ebd8;
  padding: 3px 6px;
  border-radius: 3px;
}

.extra-cell {
  color: var(--orange);
}

.comparison-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

footer {
  max-width: 1240px;
  margin: auto;
  padding: 22px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.footer-brand {
  font: 800 21px Manrope,sans-serif;
  color: var(--green-dark);
}

.footer-brand>span:last-child {
  font: 400 10px 'DM Sans',sans-serif;
  color: var(--muted);
  margin-left: 15px;
}

.operando-credit {
  position: relative;
  display: block;
  width: 139px;
  height: 24px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Match Operando's compact logo display without changing the original image. */
.operando-credit img {
  display: block;
  position: absolute;
  width: 165px;
  max-width: none;
  height: auto;
  left: -15px;
  top: -19px;
  mix-blend-mode: multiply;
}

.error {
  font-size: 11px;
  line-height: 1.6;
  color: #af382f;
}

.skip-link {
  position: absolute;
  top: -100px;
  background: white;
  padding: 15px;
  z-index: 5;
}

.skip-link:focus {
  top: 10px;
}

input[aria-invalid=true] {
  border-color: #b53b32;
  background: #fff3ef;
}

.result-error {
  color: #f4caaa;
  line-height: 1.7;
  font-size: 12px;
}

.empty-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.priority-price,.result-total,.breakdown-line strong,.community-line strong {
  font-variant-numeric: tabular-nums;
}

@media(min-width:1500px) {
  .intro {
    padding-top: 65px;
    padding-bottom: 50px;
  }

}

@media(max-width:1320px) {
  main {
    padding: 0 40px 28px;
  }

  footer {
    margin: 0 40px;
  }

  .panel {
    padding: 23px;
  }

  .result-card {
    padding: 25px;
  }

  .priority-top {
    flex-wrap: wrap;
  }

  .priority-price {
    margin-left: 27px;
    text-align: left;
  }

  .priority-info {
    flex-basis: calc(100% - 30px);
  }

}

@media(min-width:1000px) {
  .priority-top {
    position: relative;
  }

  .priority-info {
    padding-right: 130px;
  }

  .priority-price {
    position: absolute;
    right: 0;
    top: 21px;
  }

  .priority-kicker {
    width: calc(100% + 130px);
  }

}

@media(max-width:900px) {
  .header {
    padding: 20px 24px;
  }

  main {
    padding: 0 24px 20px;
  }

  .intro {
    padding: 36px 0;
  }

  .workspace {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .panel {
    padding: 19px;
  }

  .result-card {
    padding: 21px;
  }

  .breakdown-line {
    flex-wrap: wrap;
    gap: 7px;
  }

  .breakdown-line strong {
    margin-left: 13px;
  }

  .example-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .category-row {
    gap: 7px;
    grid-template-columns: 1fr auto 98px;
  }

  .counter {
    gap: 0;
  }

  .counter input {
    width: 34px;
  }

  .rate-presets {
    gap: 5px;
  }

  .rate-presets button {
    padding: 8px 4px;
  }

  .cost-setting {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  select {
    max-width: 100%;
    width: 100%;
  }

  footer {
    margin: 0 24px;
  }

  .community-line {
    flex-wrap: wrap;
    gap: 5px;
  }

  .result-total {
    font-size: 32px;
  }

}

@media(max-width:680px) {
  .header {
    padding: 17px 20px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-sub {
    font-size: 9px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  main {
    padding: 0 16px 15px;
  }

  .intro {
    padding: 32px 4px 28px;
  }

  h1 {
    font-size: 38px;
    letter-spacing: -1.6px;
  }

  .intro-copy {
    font-size: 12px;
  }

  .workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .settings {
    width: 100%;
    gap: 16px;
  }

  .results-column {
    width: 100%;
    order: -1;
  }

  .result-sticky {
    position: static;
    gap: 0;
  }

  .result-card {
    padding: 24px;
    border-radius: 13px;
  }

  .community {
    margin-top: 12px;
    padding: 20px;
  }

  .reset-button {
    margin: 3px 0;
  }

  .result-empty-icon,.result-empty-list {
    display: none;
  }

  .result-empty-title {
    font-size: 22px!important;
    max-width: none;
  }

  .result-empty-copy {
    margin-bottom: 0;
  }

  .result-eyebrow {
    margin-bottom: 12px;
  }

  .result-empty-card .simulation {
    display: none;
  }

  .result-total {
    font-size: 40px;
  }

  .breakdown-line {
    flex-wrap: nowrap;
  }

  .breakdown-line strong {
    font-size: 15px;
    margin: 0;
  }

  .result-context {
    margin-bottom: 20px;
  }

  .result-card h2 {
    font-size: 13px;
  }

  .panel {
    padding: 21px;
    border-radius: 13px;
  }

  .example-row {
    flex-direction: row;
    align-items: center;
  }

  .category-row {
    grid-template-columns: 1fr auto 110px;
    gap: 16px;
  }

  .counter input {
    width: 40px;
  }

  .priority-top {
    position: relative;
  }

  .priority-info {
    padding-right: 90px;
  }

  .priority-price {
    position: absolute;
    right: 0;
    top: 23px;
    font-size: 12px;
  }

  .priority-title {
    font-size: 12px;
  }

  .priority-kicker {
    width: calc(100% + 90px);
    font-size: 9px;
  }

  .priority-description {
    font-size: 10px;
  }

  .priority-body {
    padding-left: 27px;
  }

  .cost-setting {
    flex-direction: row;
    align-items: center;
  }

  select {
    width: auto;
    max-width: 70%;
  }

  .comparison-panel {
    margin-top: 20px;
  }

  .comparison-panel .section-heading {
    gap: 10px;
  }

  h2 {
    font-size: 18px;
  }

  .comparison-panel h2 {
    font-size: 17px;
  }

  footer {
    margin: 0 20px;
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand>span:last-child {
    margin-left: 10px;
  }

  .table-scroll {
    margin: 0 -10px;
  }

  th,td {
    padding: 12px;
  }

  .community-line {
    flex-wrap: nowrap;
  }

  .intro .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    scroll-behavior: auto!important;
  }

}

@media print {
  body {
    background: #fff;
  }

  .header,.intro,.settings,.reset-button,footer {
    display: none;
  }

  .workspace {
    display: block;
  }

  .results-column {
    width: 100%;
  }

  .result-sticky {
    position: static;
  }

  .result-card {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .comparison-panel {
    break-inside: avoid;
  }

  main {
    padding: 0;
  }

}

/* Keep all valid monetary amounts readable, including large custom scenarios. */
.result-total {
  flex-wrap: wrap;
}

.result-total #personal-total {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.result-total.long-amount {
  font-size: 28px;
  letter-spacing: -1px;
}

.breakdown-line,.community-line {
  flex-wrap: wrap;
}

.breakdown-line strong,.community-line strong {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.priority-price {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.fund-left {
  flex-wrap: wrap;
  gap: 6px;
}

@media(max-width:380px) {
  .priority-top {
    position: static;
  }

  .priority-info {
    padding-right: 0;
  }

  .priority-kicker {
    width: auto;
  }

  .priority-price {
    position: static;
    margin: 4px 0 0 27px;
  }

  .example-row {
    flex-wrap: wrap;
  }

  .category-row {
    gap: 7px;
  }

  .result-total {
    font-size: 34px;
  }

  .result-total.long-amount {
    font-size: 25px;
  }

  .cost-setting {
    flex-wrap: wrap;
  }

  select {
    max-width: 100%;
  }

}

.mobile-summary {
  display: none;
}

@media(max-width:680px) {
  body:has(.mobile-summary:not([hidden])) {
    padding-bottom: 85px;
  }

  .mobile-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 20px max(13px,env(safe-area-inset-bottom));
    background: var(--green-dark);
    color: #fff;
    z-index: 10;
    text-decoration: none;
    box-shadow: 0 -3px 15px #173f3620;
    font-size: 10px;
  }

  .mobile-summary strong {
    display: block;
    margin-top: 3px;
    font-size: 18px;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .mobile-summary>span:first-child {
    min-width: 0;
  }

  .mobile-summary>span:last-child {
    flex-shrink: 0;
    color: #c3d7bb;
  }

  #result {
    scroll-margin-top: 15px;
  }

}

@media print {
  .mobile-summary {
    display: none!important;
  }

}

/* Full payment-stop scenario controls and cost breakdown. */
.wide-select {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  white-space: normal;
}

#recurring-settings {
  margin-top: 20px;
}

.budget-details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.budget-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.annual-group {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.annual-group .unit-input input {
  font-size: 15px;
}

.community-recurring {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.community-recurring h3 {
  font-size: 12px;
  margin-bottom: 15px;
}

.recurring-breakdown {
  margin: 18px 0;
  padding: 0 2px;
}

.recurring-breakdown h3 {
  font-size: 11px;
  color: #c1d2c7;
  font-weight: 500;
}

.recurring-breakdown>div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 9px;
}

.recurring-breakdown strong {
  font-weight: 550;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.recurring-breakdown p {
  font-size: 10px;
  color: #c1d2c7;
  line-height: 1.6;
  margin: 12px 0 0;
}

.comparison-note {
  margin-bottom: 14px;
}

.apartment-volume,.apartment-type {
  display: block;
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 3px;
}

.category-row:has(.apartment-volume:not([hidden]),.apartment-type) {
  min-height: 61px;
}

.calculation-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid #a4bb9f;
  border-radius: 10px;
  background: var(--soft);
  color: var(--green);
}

.calculation-date strong {
  font: 700 16px/1.5 Manrope,sans-serif;
}

.calculation-date span {
  font-size: 12px;
  line-height: 1.6;
}

.result-date {
  font-size: 12px;
  font-weight: 650;
  color: #fff;
  border-bottom: 1px solid #ffffff30;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
