@font-face {
  font-family: Instrument;
  src: url("./instrument-sans.woff2");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f2efe6;
  color: #111512;
  font-family: Instrument, system-ui, sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #d4d7ce;
  border-radius: 5px;
  background: #fbf9f2;
  color: #111512;
  padding: 9px 13px;
  font-weight: 550;
}
button:hover {
  border-color: #59625c;
  background: #e7e8de;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #dc1e35;
  outline-offset: 2px;
}
.primary {
  background: #dc1e35;
  border-color: #dc1e35;
  color: white;
}
.primary:hover {
  background: #b1172c;
  color: white;
}
.dark {
  background: #111512;
  color: #fbf9f2;
  border-color: #111512;
}
.dark:hover {
  background: #29372e;
  color: white;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 198px;
  padding: 28px 18px;
  background: #111814;
  color: #fbf9f2;
  display: flex;
  flex-direction: column;
}
.wordmark {
  color: inherit;
  text-decoration: none;
  font-size: 18px;
  font-weight: 660;
  display: flex;
  gap: 9px;
  align-items: center;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 31px;
  background: #dc1e35;
  border-radius: 5px;
  font: italic bold 24px Georgia;
}
.rail-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #aeb6ae;
  margin: 43px 5px 17px;
}
.rail nav {
  display: grid;
  gap: 5px;
}
.rail nav button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: #aeb6ae;
  padding: 12px;
}
.rail nav button.active {
  color: #fbf9f2;
  background: #25382d;
  border-left: 3px solid #dc1e35;
}
.rail-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #b3bdb5;
  line-height: 1.7;
}
.rail-bottom p {
  font-size: 11px;
  margin: 2px 0 25px;
}
.local-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #8eb49a;
  border-radius: 100%;
  margin-right: 5px;
}
main {
  margin-left: 198px;
  padding: 30px 30px 14px;
  max-width: 1900px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: #59625c;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  line-height: 1.2;
  font-weight: 550;
  margin: 10px 0;
}
p {
  line-height: 1.55;
}
.page-header p {
  color: #59625c;
  margin: 0;
  font-size: 13px;
}
.header-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.scenario-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 24px 0 20px;
  border-top: 1px solid #d0d3c9;
  border-bottom: 1px solid #d0d3c9;
  padding: 13px 0;
}
.scenario-bar label {
  font-size: 10px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scenario-bar select {
  min-width: 175px;
  font-size: 13px;
  letter-spacing: 0;
  background: transparent;
}
.scenario-bar button {
  font-size: 12px;
  padding: 7px 10px;
}
.save-status {
  font-size: 10px;
  color: #59625c;
  margin-left: auto;
}
select,
input {
  border: 1px solid #d0d3c9;
  border-radius: 4px;
  background: #fbf9f2;
  padding: 8px;
  color: #111512;
  min-width: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #d0d3c9;
  border: 1px solid #d0d3c9;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 22px;
}
.metrics > div {
  background: #fbf9f2;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.metrics span {
  font-size: 11px;
  color: #59625c;
}
.metrics strong {
  font-size: 26px;
  letter-spacing: -0.5px;
  font-weight: 550;
}
.metrics strong i {
  font-size: 18px;
  font-style: normal;
  color: #92998f;
}
.metrics small {
  font-size: 10px;
  color: #59625c;
}
.workbench {
  display: grid;
  grid-template-columns: 175px minmax(270px, 1fr) 305px;
  gap: 0;
  border: 1px solid #d0d3c9;
  border-radius: 7px;
  overflow: hidden;
  background: #fbf9f2;
  min-height: 670px;
  height: calc(100vh - 328px);
}
.space-list {
  padding: 12px;
  background: #f9f8f1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #d0d3c9;
}
.floor-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 13px;
}
.floor-tabs button {
  padding: 7px 8px;
  font-size: 11px;
  border: 0;
  background: transparent;
}
.floor-tabs button.active {
  background: #111814;
  color: white;
}
.space-list > input {
  width: 100%;
  font-size: 12px;
}
.list-scroll {
  overflow: auto;
  margin-top: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.space-row {
  text-align: left;
  display: grid;
  gap: 6px;
  border: 0;
  padding: 12px;
  background: transparent;
}
.space-row span {
  font-size: 15px;
}
.space-row small {
  font-size: 9px;
  color: #59625c;
}
.space-row b {
  font-size: 12px;
  font-weight: 500;
  color: #59625c;
}
.space-row.selected {
  background: #e7eade;
  box-shadow: inset 3px 0 #dc1e35;
}
.plan-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #e7e8df;
}
.plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid #d0d3c9;
  background: #f9f8f1;
  gap: 6px;
}
.plan-toolbar button {
  padding: 5px 8px;
  font-size: 11px;
}
.plan-toolbar select {
  font-size: 12px;
  padding: 5px;
  max-width: 110px;
}
.plan-canvas {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(#c6cec4 0.8px, transparent 0.8px);
  background-size: 16px 16px;
  touch-action: none;
}
.plan-transform {
  height: calc(100% - 35px);
  max-width: 94%;
  transform-origin: center;
  filter: drop-shadow(0 9px 14px #142c1826);
}
.floor-svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}
.plan-space {
  cursor: pointer;
}
.plan-space:hover polygon {
  fill-opacity: 0.5;
}
.plan-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  font-size: 10px;
  color: #59625c;
}
.plan-caption span:last-child {
  margin-left: auto;
}
.legend-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: #dc1e35;
  border-radius: 50%;
}
.inspector {
  overflow: auto;
  padding: 20px;
  border-left: 1px solid #d0d3c9;
}
.inspector-head h2 {
  font-weight: 550;
  font-size: 32px;
  margin: 9px 0;
}
.inspector-head p {
  font-size: 22px;
  margin: 0 0 17px;
}
.inspector-head p span {
  font-size: 12px;
  color: #59625c;
}
.price-card {
  border-top: 1px solid #d0d3c9;
  border-bottom: 1px solid #d0d3c9;
  padding: 17px 0;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.price-card > span {
  font-size: 11px;
  color: #59625c;
}
.price-card strong {
  font-size: 30px;
  font-weight: 550;
}
.price-card small {
  font-size: 10px;
  color: #59625c;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > span {
  font-size: 10px;
  color: #59625c;
}
.field input,
.field select {
  width: 100%;
  font-size: 12px;
}
.wide {
  grid-column: 1/-1;
}
.detail-section {
  border-top: 1px solid #d0d3c9;
  margin-top: 20px;
  padding-top: 15px;
  font-size: 11px;
  color: #59625c;
}
.detail-section h3 {
  font-size: 12px;
  color: #111512;
}
.detail-section code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.calc-line {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 7px 0;
}
.warning {
  color: #985323 !important;
}
.notice {
  padding: 10px;
  background: #f7e7c7;
  font-size: 11px;
  line-height: 1.5;
  border-left: 2px solid #b08535;
}
.panel {
  background: #fbf9f2;
  padding: 24px;
  border: 1px solid #d0d3c9;
  border-radius: 6px;
}
.section-heading h2 {
  font-weight: 550;
  font-size: 27px;
  margin: 9px 0;
}
.section-heading p,
.muted {
  color: #59625c;
  font-size: 12px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  color: #59625c;
  font-weight: 550;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td,
th {
  padding: 12px 10px;
  border-bottom: 1px solid #d0d3c9;
}
td input {
  width: 100%;
  min-width: 80px;
}
td:first-child input {
  min-width: 135px;
}
.form-actions {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
footer {
  font-size: 10px;
  color: #737d72;
  padding: 15px 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  max-width: 600px;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 6px;
  background: #111814;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
}
#toast.show {
  opacity: 1;
}
.loading {
  padding: 50px;
}
.empty {
  color: #59625c;
  padding: 30px;
  line-height: 1.6;
}
@media (max-width: 1180px) {
  main {
    margin-left: 155px;
    padding: 20px;
  }
  .rail {
    width: 155px;
    padding: 25px 13px;
  }
  .wordmark {
    font-size: 15px;
  }
  .workbench {
    grid-template-columns: 140px minmax(230px, 1fr) 275px;
  }
  .metrics > div {
    padding: 14px;
  }
  .metrics strong {
    font-size: 22px;
  }
  h1 {
    font-size: 28px;
  }
  .header-actions {
    flex-direction: column;
  }
  .save-status {
    display: none;
  }
  .floor-tabs button {
    padding: 5px;
  }
  .inspector {
    padding: 15px;
  }
}
@media (max-width: 850px) {
  .rail {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 14px;
  }
  .rail-label,
  .rail-bottom {
    display: none;
  }
  .rail nav {
    display: flex;
  }
  .rail nav button {
    padding: 8px;
  }
  .rail nav button.active {
    border-left: 0;
    border-bottom: 2px solid #dc1e35;
  }
  main {
    margin: 0;
    padding: 16px;
  }
  .workbench {
    height: auto;
    grid-template-columns: 130px 1fr;
  }
  .plan-panel {
    height: 680px;
  }
  .inspector {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid #d0d3c9;
    max-height: 650px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .page-header {
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .scenario-bar {
    flex-wrap: wrap;
  }
  .scenario-bar label {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-toolbar {
    padding: 9px;
  }
  .page-header p {
    font-size: 11px;
  }
  .header-actions button {
    font-size: 11px;
  }
  .rail nav {
    overflow: auto;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
textarea {
  font: inherit;
  background: #fbf9f2;
  border: 1px solid #d0d3c9;
  border-radius: 4px;
  padding: 9px;
  resize: vertical;
}
.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.block {
  display: block;
  color: #59625c;
  margin-top: 6px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.editor-dialog {
  border: 1px solid #bfc7bc;
  border-radius: 9px;
  width: min(720px, 94vw);
  max-height: 90vh;
  padding: 0;
  background: #fbf9f2;
  color: #111512;
  box-shadow: 0 24px 100px #07100b50;
}
.editor-dialog::backdrop {
  background: #0a0e0c80;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  padding: 22px 26px;
  border-bottom: 1px solid #d0d3c9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-heading h2 {
  font-size: 26px;
  font-weight: 550;
  margin: 7px 0;
}
.dialog-body {
  padding: 22px 26px;
}
.dialog-body h3 {
  margin: 25px 0 12px;
  font-size: 16px;
}
.dialog-body .field {
  margin-bottom: 5px;
}
.dialog-body .field span {
  font-size: 12px;
}
.dialog-body small {
  font-size: 11px;
  color: #59625c;
}
.dialog-body input,
.dialog-body select {
  font-size: 14px;
}
.dialog-footer {
  padding: 18px 26px;
  background: #e7eade;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
}
.repeat-row {
  padding: 14px;
  background: #f2efe6;
  border-radius: 6px;
  border: 1px solid #d0d3c9;
  margin-bottom: 10px;
}
.remove-row {
  align-self: end;
}
.form-error {
  color: #b1172c;
  padding: 0 26px;
}
.editor-dialog select[multiple] {
  max-height: 180px;
}
.plan-panel,
.inspector,
.space-list {
  min-width: 0;
}
body {
  overflow-x: hidden;
}
.projection-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.projection-controls .field {
  flex: 1;
  min-width: 130px;
}
.projection-controls button {
  height: 38px;
}
.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 25px 0;
  padding: 20px 0;
  border-top: 1px solid #d0d3c9;
  border-bottom: 1px solid #d0d3c9;
}
.report-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-metrics span {
  font-size: 11px;
  color: #59625c;
}
.report-metrics strong {
  font-size: 27px;
  letter-spacing: -0.7px;
  font-weight: 550;
}
.report-metrics small {
  font-size: 10px;
  color: #59625c;
}
.forecast-chart {
  width: 100%;
  height: auto;
  max-height: 300px;
}
.chart-legend {
  display: flex;
  gap: 20px;
  margin: 14px 0 28px;
  font-size: 11px;
  color: #59625c;
}
.chart-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 5px;
}
.report-table {
  max-height: 450px;
}
.report-table th {
  position: sticky;
  top: 0;
  background: #fbf9f2;
}
.report-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}
.compare-control {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.demo-banner {
  padding: 12px 16px;
  background: #f7e7c7;
  border-left: 3px solid #b08535;
  margin-bottom: 18px;
  font-size: 12px;
}
.rail-bottom button {
  font-size: 11px;
  width: 100%;
  background: #26392d;
  color: #fbf9f2;
  border-color: #526352;
}
.notice p {
  font-size: 11px;
  margin: 6px 0;
}
.checkline {
  font-size: 11px;
  line-height: 1.4;
}
@media (max-width: 950px) {
  .report-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .heading-row {
    align-items: flex-start;
  }
  .forecast-chart {
    min-height: 160px;
  }
}
@media (max-width: 600px) {
  .heading-row {
    display: block;
  }
  .compare-control {
    margin-left: 0;
  }
  .report-metrics strong {
    font-size: 23px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .rail .wordmark {
    flex-shrink: 0;
  }
}
.potential-strip {
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 17px;
  background: #edf0e6;
  border: 1px solid #d0d3c9;
  border-radius: 5px;
  margin-bottom: 18px;
}
.potential-strip > div {
  min-width: 245px;
}
.potential-strip strong {
  display: block;
  font-size: 26px;
  font-weight: 550;
  margin-top: 9px;
}
.potential-strip strong small {
  font-size: 12px;
}
.potential-strip p {
  font-size: 11px;
  color: #59625c;
}
.metrics > div {
  min-width: 0;
}
.save-status.warning {
  display: block;
  max-width: 430px;
}
@media (max-width: 700px) {
  .potential-strip {
    display: block;
  }
  .rail nav button {
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .editor-dialog .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-dialog .field {
    min-width: 0;
  }
}
