* {
  box-sizing: border-box;
}
.redevelopment-page {
  --bg: #f3f5f9;
  --accent: #2457e7;
  background: var(--bg);
  font-size: 16px;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  font: 600 14px var(--font);
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #d4dce8;
  border-radius: 8px;
  background: white;
  color: #253449;
}
button:hover {
  background: #edf2ff;
  border-color: #91a9ea;
}
button.primary {
  background: #2457e7;
  color: white;
  border-color: #2457e7;
}
.app-header {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 4%;
  background: white;
  border-bottom: 1px solid #dce2eb;
}
.wordmark {
  display: flex;
  align-items: center;
  color: #17212f;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.header-route {
  font-size: 12px;
  color: #6c778b;
  letter-spacing: 0.13em;
}
.header-route span {
  padding: 0 14px;
  color: #c0c9d8;
}
.back-home {
  margin-left: auto;
  text-decoration: none;
  font-size: 14px;
  color: #506078;
}
main {
  max-width: 1540px;
  margin: auto;
  padding: 0 40px 40px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 0 24px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #2457e7;
  margin: 0 0 10px;
}
.intro h1 {
  font-size: clamp(27px, 2.6vw, 40px);
  margin: 0 0 14px;
  letter-spacing: -0.055em;
}
.lede {
  color: #626e81;
  font-size: 15px;
  margin: 0;
  max-width: 860px;
}
.mobile-break {
  display: none;
}
.intro-mark {
  width: 150px;
  height: 96px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.intro-mark i {
  position: absolute;
  bottom: 0;
  width: 25px;
  background: #dce5ff;
  border: 1px solid #bacbf9;
  transform: skewY(-20deg);
}
.intro-mark i:nth-child(1) {
  height: 38px;
  left: 0;
}
.intro-mark i:nth-child(2) {
  height: 59px;
  left: 28px;
}
.intro-mark i:nth-child(3) {
  height: 77px;
  left: 56px;
}
.intro-mark i:nth-child(4) {
  height: 96px;
  left: 84px;
}
.intro-mark span {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #244dbc;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #dce2eb;
  padding: 16px 0;
}
.pill {
  background: #e2eaff;
  color: #244aab;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}
.unit-note,
.unit-label {
  font-size: 13px;
  color: #647187;
}
.unit-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.unit-label select {
  font-size: 13px;
  min-height: 34px;
  padding: 3px 6px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toolbar .actions {
  margin-left: auto;
}
.notice {
  border: 1px solid #d9e2f5;
  background: #edf2ff;
  color: #445a81;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 24px;
}
.workspace {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}
.section-nav {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 4px;
  padding-top: 6px;
}
.section-nav a {
  display: flex;
  gap: 10px;
  padding: 10px 8px;
  font-size: 13px;
  color: #58677c;
  text-decoration: none;
  border-radius: 6px;
}
.section-nav a:hover {
  background: #e6edff;
  color: #2457e7;
}
.section-nav b {
  font-size: 11px;
  color: #98a6bc;
  width: 17px;
}
.inputs {
  min-width: 0;
}
.input-section {
  scroll-margin-top: 20px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #dce2eb;
  border-radius: 12px;
  padding: 26px;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.section-heading > span {
  font-size: 12px;
  font-weight: 700;
  color: #2457e7;
  background: #edf2ff;
  border-radius: 6px;
  padding: 7px 9px;
}
.section-heading h2 {
  margin: 1px 0 8px;
  font-size: 21px;
}
.section-heading p {
  color: #738095;
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin: 16px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field > span {
  font-size: 13px;
  font-weight: 600;
  color: #46536a;
}
.field .input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d7dfeb;
  border-radius: 7px;
  background: #fbfcfe;
  overflow: hidden;
}
.input-wrap input {
  border: 0 !important;
  background: transparent !important;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
}
.input-wrap .suffix {
  padding-right: 10px;
  white-space: nowrap;
  color: #8b96a8;
  font-size: 12px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 43px;
  background: #fbfcfe;
  border: 1px solid #d7dfeb;
  color: #1c2b42;
  border-radius: 7px;
  padding: 9px 11px;
  font: 500 15px var(--font);
  outline-offset: 2px;
}
.field small {
  font-size: 11px;
  color: #738095;
  line-height: 1.6;
}
.field.wide {
  grid-column: 1/-1;
}
.help {
  font-size: 12px;
  color: #738095;
  line-height: 1.85;
  margin: 10px 0 16px;
}
.subheading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-top: 26px;
}
.subheading span {
  font-size: 11px;
  color: #8b96a8;
}
h3 {
  font-size: 16px;
  margin: 22px 0 10px;
}
.subheading h3 {
  margin: 0;
}
.stage-inputs {
  display: grid;
  gap: 0;
}
.stage-row {
  display: grid;
  grid-template-columns: 1fr 85px;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #edf0f5;
  padding: 9px 0;
  font-size: 12px;
  color: #59697e;
}
.stage-row input {
  width: 62px;
  padding: 6px;
  border: 1px solid #d8e0ec;
  border-radius: 5px;
  font-size: 14px;
  text-align: right;
}
.stage-row.completed {
  opacity: 0.5;
}
.stage-row.current {
  color: #2457e7;
  font-weight: 700;
}
.formula-callout {
  padding: 16px 18px;
  border-left: 3px solid #2457e7;
  background: #f1f5ff;
  font-size: 14px;
  line-height: 1.9;
  margin: 22px 0;
}
.formula-callout small {
  display: block;
  font-size: 12px;
  color: #6a7c9b;
}
.comp-grid {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}
.comp-row {
  background: #f6f8fc;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.comp-row .field > span {
  font-size: 11px;
}
.comp-row .field input {
  font-size: 14px;
}
.factor-head,
.factor-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 82px;
  gap: 10px;
  align-items: center;
}
.factor-head {
  font-size: 10px;
  color: #8c98aa;
  padding: 12px 0;
}
.factor-row {
  padding: 10px 0;
  border-top: 1px solid #edf0f5;
}
.factor-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.factor-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #2457e7;
  flex-shrink: 0;
}
.factor-row input:not([type="checkbox"]) {
  min-width: 0;
  width: 100%;
  border: 1px solid #d9e0eb;
  background: #fbfcfe;
  border-radius: 6px;
  padding: 8px;
  font-size: 13px;
}
.detail-box {
  border-top: 1px solid #e7ecf3;
  margin-top: 24px;
  padding-top: 18px;
}
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #3d4e66;
}
.scenario-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.scenario-input {
  background: #f5f7fb;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}
.scenario-input h3 {
  margin: 0 0 16px;
  font-size: 14px;
}
.scenario-input:nth-child(2) {
  background: #edf2ff;
}
.scenario-input .field {
  margin: 12px 0;
}
.scenario-input .field > span {
  font-size: 11px;
}
.scenario-input .input-wrap input {
  padding: 8px;
  font-size: 14px;
}
.check-grid {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.check-grid label {
  font-size: 13px;
  color: #54647a;
  display: flex;
  gap: 10px;
  align-items: center;
}
.check-grid input {
  width: 17px;
  height: 17px;
  accent-color: #2457e7;
}
.result-sidebar {
  min-width: 0;
  align-self: stretch;
}
.sticky-result {
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid #dce2eb;
  border-radius: 12px;
  overflow: hidden;
  padding: 22px;
}
.result-title {
  border-bottom: 1px solid #e7ecf3;
  padding-bottom: 16px;
}
.result-title h2 {
  font-size: 21px;
  margin: 7px 0;
}
.result-title > span:last-child {
  font-size: 12px;
  color: #7c8ba1;
}
.main-kpi {
  padding: 20px 0;
  border-bottom: 1px solid #e6ebf3;
}
.main-kpi > span {
  font-size: 12px;
  color: #67768e;
}
.main-kpi strong {
  font-size: 31px;
  display: block;
  line-height: 1.35;
  letter-spacing: -1.4px;
  margin: 7px 0;
  color: #2457e7;
}
.main-kpi small {
  font-size: 12px;
  color: #6d7c93;
}
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f7;
  color: #68778d;
}
.metric-row b {
  font-size: 14px;
  color: #26364e;
  text-align: right;
}
.negative {
  color: #b83d45 !important;
}
.positive {
  color: #17654c !important;
}
.warn {
  background: #fff6e7;
  color: #856025;
  border-radius: 6px;
  font-size: 12px;
  padding: 10px 12px;
  line-height: 1.7;
  margin-top: 12px;
}
.warn.serious {
  background: #fff0f0;
  color: #9e353e;
}
#errors {
  padding: 14px;
  background: #fff0f0;
  color: #a83240;
  font-size: 13px;
  margin-top: 12px;
}
#errors ul {
  padding-left: 18px;
  margin: 0;
}
.output-section {
  padding: 26px;
  background: white;
  border: 1px solid #dce2eb;
  border-radius: 12px;
  margin-top: 24px;
  min-width: 0;
}
.output-section h2 {
  font-size: 23px;
  margin: 0 0 18px;
}
.output-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.segmented {
  display: flex;
  background: #f2f5fa;
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
}
.segmented button {
  background: none;
  border: 0;
  font-size: 13px;
  padding: 7px 16px;
}
.segmented button[aria-pressed="true"] {
  background: white;
  color: #2457e7;
  box-shadow: 0 1px 5px #1e376416;
}
.timeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 12px 0 26px;
  margin-bottom: 12px;
}
.timeline-item {
  min-width: 145px;
  position: relative;
  border-top: 2px solid #dce5f9;
  padding: 17px 12px 0 0;
}
.timeline-item:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2457e7;
  position: absolute;
  top: -5px;
  left: 0;
}
.timeline-item strong {
  font-size: 12px;
  display: block;
  color: #415778;
}
.timeline-item span {
  font-size: 11px;
  color: #7e8fa7;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
th {
  text-align: right;
  font-weight: 500;
  background: #f5f7fb;
  color: #75849b;
  padding: 12px;
  border-bottom: 1px solid #dce2eb;
}
td {
  padding: 15px 12px;
  text-align: right;
  border-bottom: 1px solid #edf0f5;
  color: #3e506b;
}
th:first-child,
td:first-child {
  text-align: left;
}
td small {
  display: block;
  font-size: 10px;
  color: #8693a7;
  margin-top: 5px;
}
td.profit {
  font-weight: 700;
  font-size: 14px;
}
.legal-status {
  white-space: normal;
  min-width: 160px;
  max-width: 210px;
  font-size: 11px;
  color: #947047;
}
.highlight-row {
  background: #f3f7ff;
}
.analytics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  color: #61728c;
  margin: 15px 0;
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}
.profit-svg {
  width: 100%;
  height: auto;
  margin-top: 12px;
}
.cost-item {
  display: grid;
  grid-template-columns: 95px 1fr 85px;
  align-items: center;
  gap: 12px;
  margin: 13px 0;
  font-size: 12px;
  color: #66768f;
}
.cost-track {
  height: 8px;
  background: #f0f3f8;
  border-radius: 2px;
  overflow: hidden;
}
.cost-fill {
  height: 100%;
  background: #8ba8ef;
}
.cost-item:first-child .cost-fill {
  background: #2457e7;
}
.cost-item b {
  text-align: right;
  font-size: 12px;
  color: #324963;
}
.cash-note {
  background: #edf2ff;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  color: #425f9b;
  font-size: 13px;
}
.cash-note strong {
  display: block;
  font-size: 22px;
  margin-top: 5px;
}
.saved-section > .actions {
  margin: 18px 0;
}
.saved-section td button {
  font-size: 12px;
  min-height: 32px;
  padding: 5px 9px;
}
.methodology p {
  font-size: 13px;
  color: #64758e;
  line-height: 1.9;
}
.methodology details {
  border-bottom: 1px solid #e7ecf3;
  padding: 16px 0;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  list-style: none;
  padding: 0;
  font-size: 12px;
}
.source-links a {
  text-decoration: none;
}
footer {
  max-width: 1460px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #183359;
  color: white;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 13px;
  box-shadow: 0 5px 25px #18335930;
  max-width: 90%;
  z-index: 20;
}
#toast:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
.print-only {
  display: none;
}
input:invalid {
  border-color: #c6535c;
}
.input-wrap:has(input:invalid) {
  border-color: #c6535c;
}
@media (min-width: 1450px) {
  .workspace {
    grid-template-columns: 180px minmax(0, 1fr) 350px;
  }
}
@media (max-width: 1150px) {
  main {
    padding: 0 24px 30px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
  }
  .section-nav {
    grid-column: 1/-1;
    display: flex;
    flex-wrap: wrap;
    position: static;
    padding: 0;
  }
  .section-nav a {
    padding: 8px 12px;
  }
  .scenario-inputs {
    gap: 7px;
  }
  .scenario-input {
    padding: 9px;
  }
  .input-section {
    padding: 22px;
  }
}
@media (max-width: 800px) {
  main {
    padding: 0 16px 24px;
  }
  .app-header {
    height: 64px;
    padding: 0 18px;
    gap: 20px;
  }
  .header-route {
    display: none;
  }
  .intro {
    padding: 28px 0 22px;
  }
  .intro-mark {
    display: none;
  }
  .intro h1 {
    font-size: 29px;
    line-height: 1.3;
  }
  .mobile-break {
    display: block;
  }
  .lede {
    font-size: 13px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar .actions {
    width: 100%;
    margin: 0;
  }
  .toolbar .actions button {
    flex: 1;
    font-size: 12px;
    padding: 8px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .section-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
  }
  .section-nav a {
    white-space: nowrap;
  }
  .inputs {
    width: 100%;
  }
  .result-sidebar {
    width: 100%;
  }
  .sticky-result {
    position: static;
  }
  .input-section {
    padding: 20px 17px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .fields {
    gap: 15px 12px;
  }
  .field > span {
    font-size: 12px;
  }
  .field input,
  .field select {
    font-size: 16px;
  }
  .factor-row,
  .factor-head {
    grid-template-columns: 1.2fr 1fr 65px;
    gap: 6px;
  }
  .factor-row label {
    font-size: 11px;
  }
  .factor-row input:not([type="checkbox"]) {
    font-size: 14px;
    padding: 7px;
  }
  .scenario-inputs {
    grid-template-columns: 1fr;
  }
  .scenario-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px;
  }
  .scenario-input h3 {
    grid-column: 1/-1;
  }
  .scenario-input .field {
    margin: 0;
  }
  .scenario-input .field > span {
    font-size: 12px;
  }
  .analytics {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .output-section {
    padding: 20px 17px;
    margin-top: 18px;
  }
  .output-heading {
    display: block;
  }
  .segmented {
    width: fit-content;
    margin-bottom: 24px;
  }
  .output-section h2 {
    font-size: 21px;
  }
  .cost-item {
    grid-template-columns: 88px 1fr 80px;
    gap: 8px;
  }
  footer {
    padding: 24px 18px;
    display: block;
  }
  footer span {
    display: block;
    margin-top: 6px;
  }
  .notice {
    font-size: 12px;
  }
  .help {
    font-size: 12px;
  }
}
@media print {
  body {
    background: white !important;
    font-size: 10pt;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .app-header,
  .intro-mark,
  .toolbar,
  .section-nav,
  .actions,
  .inputs,
  .segmented,
  #toast,
  footer {
    display: none !important;
  }
  .intro {
    padding: 12px 0;
  }
  .intro h1 {
    font-size: 22pt;
  }
  .workspace {
    display: block;
  }
  .result-sidebar {
    width: 100%;
  }
  .sticky-result {
    position: static;
  }
  .analytics {
    display: block;
  }
  .output-section,
  .sticky-result {
    break-inside: avoid;
    border: 1px solid #ddd;
    margin-top: 12px;
    padding: 14px;
  }
  .table-scroll {
    overflow: visible;
  }
  table {
    white-space: normal;
    font-size: 8pt;
  }
  th,
  td {
    padding: 6px;
  }
  .timeline {
    overflow: visible;
    flex-wrap: wrap;
  }
  .print-only {
    display: block;
    overflow-wrap: anywhere;
    font-size: 8pt;
  }
  .methodology {
    break-before: page;
  }
  .saved-section {
    display: none;
  }
  .profit-svg {
    max-height: 200px;
  }
  .notice {
    font-size: 9pt;
  }
  a {
    color: inherit;
  }
  input,
  select {
    border: 0;
  }
}
