.editor-dialog.lease-studio {
  width: calc(100vw - 40px);
  max-width: 1580px;
  max-height: 94dvh;
  color: #111814;
  background: #f2efe6;
  border: 1px solid #d0d5ca;
  border-radius: 10px;
  font-family: "Instrument Sans", sans-serif;
}
.lease-studio .dialog-heading {
  padding: 18px 26px;
  background: #111814;
  color: #f2efe6;
  border: 0;
}
.lease-studio .dialog-heading .eyebrow {
  color: #b9cdd0;
  font-size: 9px;
}
.lease-studio .dialog-heading h2 {
  margin: 6px 0 0;
  font-size: 25px;
  font-weight: 500;
}
.lease-studio .dialog-heading [data-close] {
  color: #f2efe6;
  border: 1px solid #405046;
  background: transparent;
  width: 36px;
  font-size: 23px;
}
.lease-studio .dialog-body {
  padding: 0 26px 18px;
}
.lease-studio-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0 20px;
}
.lease-studio-intro > p {
  font-size: clamp(21px, 2.3vw, 31px);
  letter-spacing: -0.04em;
  line-height: 1.13;
  margin: 0;
  color: #778178;
}
.lease-studio-intro > p b {
  color: #111814;
  font-weight: 550;
}
.lease-studio-intro > div {
  position: relative;
  text-align: right;
  padding-left: 16px;
  max-width: 45%;
  overflow-wrap: anywhere;
}
.lease-studio-intro small {
  display: block;
  margin-top: 5px;
}
.lease-unsaved-dot {
  display: inline-block;
  background: #ac8850;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 7px 2px 0;
}
.lease-stepbar {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #cdd2c7;
  margin-bottom: 22px;
}
.lease-stepbar span {
  padding-bottom: 12px;
  color: #798278;
  font-size: 11px;
  font-weight: 550;
}
.lease-stepbar .is-active {
  border-bottom: 2px solid #dc1e35;
  color: #111814;
  margin-bottom: -1px;
}
.lease-studio-layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr) 305px;
  gap: 20px;
  align-items: start;
}
.lease-work-area {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.lease-plan-context {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  background: #e6e8df;
  border: 1px solid #d7dccf;
  border-radius: 7px;
  overflow: hidden;
}
.lease-preview {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  border: 1px solid #d8dcd2;
  background: #fbfaf5;
  border-radius: 7px;
  padding: 20px;
}
.lease-section-title {
  display: flex;
  align-items: end;
  gap: 12px;
  justify-content: space-between;
  margin: 1px 0 15px;
}
.lease-studio .lease-section-title h3 {
  font-size: 20px;
  margin: 7px 0 0;
  font-weight: 550;
  letter-spacing: -0.04em;
}
.lease-section-title > span {
  flex-shrink: 0;
  font-size: 10px;
  color: #6c786b;
  padding-bottom: 2px;
}
.lease-add {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}
.lease-add label {
  flex: 1;
  min-width: 0;
}
.lease-add select {
  width: 100%;
  min-width: 0;
  background: #fbfaf5;
}
.lease-add button {
  white-space: nowrap;
  background: #40584d;
  color: #fff;
  border-color: #40584d;
}
.lease-shared-defaults {
  margin: 0 0 16px;
  padding: 11px 13px;
  background: #e9ece2;
  border: 1px solid #d5dccd;
  border-radius: 5px;
}
.lease-shared-defaults summary {
  font-size: 11px;
  color: #526b59;
  cursor: pointer;
}
.lease-shared-defaults > p {
  font-size: 11px;
  line-height: 1.5;
  color: #6d7b66;
}
.lease-shared-defaults > button {
  margin-top: 12px;
  font-size: 11px;
}
.lease-row-card {
  background: #fbfaf5;
  border: 1px solid #d5dacf;
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 16px;
}
.lease-row-card.is-focused {
  border-color: #8caaa0;
  box-shadow: inset 3px 0 #40584d;
}
.lease-row-card.lease-invalid {
  border-color: #d9aaa0;
  background: #fff9f3;
}
.lease-row-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.lease-row-card [data-lease-focus] {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
  border: 0;
  padding: 0;
  background: transparent;
}
.lease-row-card [data-lease-focus] b {
  display: block;
  font-size: 16px;
  font-weight: 550;
}
.lease-row-card [data-lease-focus] small {
  display: block;
  margin-top: 3px;
  line-height: 1.4;
}
.lease-row-number {
  color: #7a8a7e;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.lease-studio .lease-remove {
  padding: 0 2px;
  min-height: 28px;
  font-size: 10px;
  color: #7b6b61;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lease-row-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px;
}
.lease-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.lease-input > span {
  font-size: 10px;
  color: #637164;
  font-weight: 500;
}
.lease-input input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #cdd3c8;
  border-radius: 4px;
  background: white;
  color: #111814;
  font-family: inherit;
  font-size: 13px;
}
.lease-input input[aria-invalid="true"] {
  border-color: #bf8b7f;
}
.lease-input-wide {
  grid-column: 1 / -1;
}
.lease-studio .lease-row-error {
  color: #a03e35;
  font-size: 11px;
  line-height: 1.5;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.lease-row-error:empty,
.lease-effective:empty {
  display: none;
}
.lease-effective {
  margin: 12px 0 0;
  font-size: 11px;
  color: #40584d;
  border-top: 1px dashed #ccd6c9;
  padding-top: 10px;
  line-height: 1.5;
}
.lease-rehearsal {
  background: #e2e8dd;
  border: 1px solid #d1dacb;
  padding: 18px;
  border-radius: 6px;
  margin-top: 20px;
}
.lease-studio .lease-rehearsal h3 {
  margin: 6px 0;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.025em;
}
.lease-rehearsal p {
  color: #5c6e5e;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}
.lease-rehearsal-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 17px;
  align-items: end;
}
.lease-unit-input {
  position: relative;
}
.lease-unit-input input {
  padding-right: 57px;
}
.lease-unit-input > span {
  position: absolute;
  right: 13px;
  top: 12px;
  font-size: 10px;
  color: #677369;
  pointer-events: none;
}
.lease-rehearsal-controls button {
  justify-self: start;
  border: 0;
  padding: 0;
  color: #40584d;
  background: transparent;
  min-height: 24px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 11px;
}
.lease-context-title {
  padding: 16px;
  display: grid;
  gap: 11px;
}
.lease-context-title select {
  width: 100%;
  background: #f8f8ef;
}
.lease-source-plan {
  padding: 14px 24px;
  background: #fff;
  border-block: 1px solid #d7dccf;
}
.lease-source-plan .floor-svg {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: contain;
}
.lease-source-plan .plan-space {
  cursor: pointer;
}
.lease-source-plan .plan-space[aria-disabled="true"] {
  cursor: default;
}
.lease-source-plan .plan-space:focus-visible {
  outline: none;
}
.lease-source-plan .plan-space:focus-visible polygon {
  stroke: #111814;
  stroke-width: 4;
}
.lease-plan-detail {
  padding: 17px 16px 0;
  overflow-wrap: anywhere;
}
.lease-plan-detail b {
  display: block;
  font-size: 21px;
  margin: 5px 0;
  letter-spacing: -0.035em;
}
.lease-plan-detail small {
  display: block;
  line-height: 1.5;
}
.lease-plan-note {
  margin: 12px 16px 15px;
  color: #667365;
  font-size: 10px;
  line-height: 1.55;
}
.lease-plan-key {
  padding: 13px 16px;
  border-top: 1px solid #d0d8c9;
  display: grid;
  gap: 8px;
  color: #5e6d60;
  font-size: 9px;
}
.lease-plan-key span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #dc1e35;
  margin-right: 7px;
}
.lease-plan-key span + span:before {
  background: #40584d;
}
.lease-studio .lease-preview-heading h3 {
  font-size: 23px;
  margin: 8px 0 7px;
  font-weight: 550;
  letter-spacing: -0.04em;
}
.lease-preview-heading p {
  font-size: 10px;
  color: #738071;
  margin: 0 0 19px;
  line-height: 1.5;
}
.lease-impact {
  background: #40584d;
  color: #fff;
  border-radius: 5px;
  padding: 18px 16px;
  margin-bottom: 20px;
}
.lease-impact > span {
  font-size: 10px;
  color: #d2dfd1;
}
.lease-impact strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  margin: 8px 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.lease-studio .lease-impact small {
  font-size: 10px;
  color: #d2dfd1;
  line-height: 1.5;
  display: block;
}
.lease-impact-blocked {
  background: #e5e8dd;
  color: #637260;
  border: 1px dashed #bfcbbb;
}
.lease-impact-blocked strong {
  font-size: 25px;
}
.lease-impact-blocked > span,
.lease-studio .lease-impact-blocked small {
  color: #647561;
}
.lease-metrics {
  width: 100%;
  font-size: 10px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
}
.lease-metrics caption {
  text-align: left;
  font-size: 10px;
  margin-bottom: 9px;
  color: #74806f;
}
.lease-metrics th,
.lease-metrics td {
  padding: 10px 3px;
  border-bottom: 1px solid #e0e3da;
  text-align: right;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.lease-metrics th:first-child {
  text-align: left;
  padding-left: 0;
  font-weight: 500;
}
.lease-metrics thead th {
  color: #7c8878;
  font-size: 9px;
}
.lease-metrics td:last-child {
  font-weight: 600;
  color: #40584d;
}
.lease-metrics td span {
  color: #89917f;
  font-weight: 400;
}
.lease-chart {
  margin: 20px 0 14px;
}
.lease-chart figcaption {
  color: #5b6d60;
  font-size: 11px;
  margin-bottom: 8px;
}
.lease-chart svg {
  width: 100%;
  display: block;
}
.lease-chart-key {
  display: flex;
  gap: 15px;
  font-size: 9px;
  color: #5f7265;
  margin-top: 8px;
}
.lease-chart-key span:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 15px;
  border-top: 2px dashed #889f9f;
  margin-right: 5px;
}
.lease-chart-key span + span:before {
  border-top: 2px solid #40584d;
}
.lease-chart-placeholder {
  margin: 20px 0;
  padding: 29px 12px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 29px,
    #e4e7dd 30px
  );
  color: #7d8a78;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  border: 1px solid #e5e7df;
}
.lease-monthly,
.lease-qualifications {
  font-size: 10px;
  line-height: 1.55;
}
.lease-monthly summary,
.lease-qualifications summary {
  cursor: pointer;
  color: #536b59;
}
.lease-financial-note {
  font-size: 10px;
  line-height: 1.6;
  color: #7a8273;
  margin: 16px 0;
}
.lease-qualifications {
  border-top: 1px solid #dde2d6;
  padding-top: 13px;
}
.lease-validation {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.6;
}
.lease-validation #lease-summary {
  margin: 0;
}
.lease-validation details {
  margin-top: 8px;
}
.lease-validation details button {
  background: transparent;
  border: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #9e4b36;
  font-size: 11px;
  line-height: 1.5;
  padding: 0;
}
.lease-studio .dialog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 15px 26px;
  background: #ebece3;
  border-top: 1px solid #d1d7ca;
  z-index: 3;
  gap: 8px;
}
.lease-footer-note {
  margin-right: auto;
  color: #6b7866;
  font-size: 10px;
}
.lease-studio .dialog-footer button {
  font-size: 12px;
  padding: 10px 14px;
}
.lease-studio .dialog-footer [data-lease-review] {
  order: 3;
}
.lease-studio .dialog-footer [type="submit"] {
  order: 4;
}
.lease-studio .form-error {
  font-size: 12px;
  line-height: 1.5;
}
.lease-studio .form-error:empty {
  display: none;
}
.lease-studio .discard-editor {
  margin: 12px 26px;
  background: #fff0dd;
  border: 1px solid #dbb783;
  padding: 14px;
  border-radius: 5px;
}
.lease-studio .lease-review-title h3 {
  margin: 9px 0 12px;
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -0.04em;
}
.lease-review-title p {
  font-size: 12px;
  color: #657364;
  line-height: 1.6;
  margin: 0 0 20px;
}
.lease-table-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #d9dfd1;
  border-radius: 4px;
  margin-top: 10px;
  background: #fff;
}
.lease-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.lease-table-scroll th,
.lease-table-scroll td {
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid #e2e6dc;
  white-space: nowrap;
}
.lease-table-scroll thead {
  background: #e8ede2;
  color: #647461;
}
.lease-table-scroll th {
  font-weight: 500;
}
.lease-table-scroll td {
  text-align: right;
}
.lease-table-scroll small {
  display: block;
  margin-top: 4px;
  max-width: 175px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.lease-destination {
  padding: 0;
  border: 0;
  margin: 25px 0 0;
  min-width: 0;
}
.lease-destination legend {
  font-size: 15px;
  font-weight: 550;
  margin-bottom: 14px;
}
.lease-save-option {
  display: flex;
  align-items: start;
  gap: 9px;
  padding: 13px 0;
  cursor: pointer;
}
.lease-save-option input {
  width: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  accent-color: #40584d;
}
.lease-save-option > span {
  flex: 1;
  min-width: 0;
}
.lease-save-option b {
  font-size: 12px;
  font-weight: 550;
}
.lease-save-option small {
  display: block;
  margin-top: 5px;
  line-height: 1.5;
}
.lease-save-option .lease-recommended {
  flex: 0 0 auto;
  color: #40584d;
  background: #e0e9d9;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 8px;
  margin-top: 0;
}
.lease-copy-name {
  margin: 0 0 8px 25px;
}
.lease-save-disclosure {
  background: #e8eade;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  font-size: 11px;
  color: #667460;
  line-height: 1.6;
}
.lease-save-disclosure p {
  margin: 5px 0 0;
}
.lease-recovery {
  border: 1px solid #dfb592;
  border-radius: 6px;
  padding: 24px;
  background: #fff3e5;
}
.lease-studio .lease-recovery h3 {
  margin: 8px 0 12px;
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.03em;
}
.lease-recovery p {
  font-size: 12px;
  line-height: 1.6;
  color: #856449;
}
.lease-empty-rows {
  padding: 24px;
  border: 1px dashed #c6d0bf;
  background: #f8f8ef;
  border-radius: 5px;
}
.lease-studio .lease-empty-rows h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 550;
}
.lease-empty-rows p {
  font-size: 12px;
  color: #70806a;
  line-height: 1.6;
}
@media (min-width: 1600px) {
  .lease-row-inputs {
    grid-template-columns: 1.2fr 1.1fr 0.8fr 0.8fr;
  }
}
@media (max-width: 1190px) {
  .lease-studio-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
  }
  .lease-work-area {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .lease-preview {
    grid-column: 2;
    grid-row: 1;
  }
  .lease-plan-context {
    grid-column: 2;
    grid-row: 2;
  }
  .lease-source-plan .floor-svg {
    height: 340px;
  }
}
@media (max-width: 760px) {
  .editor-dialog.lease-studio {
    width: calc(100vw - 16px);
    max-height: 96dvh;
    border-radius: 7px;
  }
  .lease-studio .dialog-heading {
    padding: 16px;
  }
  .lease-studio .dialog-heading .eyebrow {
    font-size: 8px;
  }
  .lease-studio .dialog-heading h2 {
    font-size: 22px;
  }
  .lease-studio .dialog-body {
    padding: 0 16px 16px;
  }
  .lease-studio-intro {
    padding: 19px 0;
    gap: 16px;
  }
  .lease-studio-intro > p {
    font-size: 22px;
  }
  .lease-studio-intro > div {
    font-size: 10px;
  }
  .lease-studio-intro small {
    font-size: 9px;
    line-height: 1.5;
  }
  .lease-stepbar {
    margin-bottom: 20px;
    gap: 22px;
  }
  .lease-stepbar span {
    font-size: 10px;
  }
  .lease-studio-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .lease-work-area,
  .lease-preview,
  .lease-plan-context {
    width: 100%;
  }
  .lease-preview {
    order: 2;
  }
  .lease-plan-context {
    order: 3;
  }
  .lease-row-card {
    padding: 14px;
  }
  .lease-studio .lease-section-title h3 {
    font-size: 20px;
  }
  .lease-section-title .eyebrow {
    font-size: 8px;
  }
  .lease-row-inputs {
    gap: 11px 9px;
  }
  .lease-input input {
    padding: 9px 8px;
    font-size: 13px;
  }
  .lease-rehearsal {
    padding: 15px;
  }
  .lease-rehearsal-controls {
    column-gap: 9px;
  }
  .lease-unit-input input {
    padding-right: 49px;
  }
  .lease-unit-input > span {
    right: 8px;
  }
  .lease-source-plan {
    padding-inline: 40px;
  }
  .lease-source-plan .floor-svg {
    height: 420px;
  }
  .lease-studio .dialog-footer {
    padding: 12px 16px;
    gap: 7px;
  }
  .lease-footer-note {
    flex-basis: 100%;
  }
  .lease-studio .dialog-footer button {
    font-size: 11px;
    padding-inline: 10px;
  }
  .lease-studio .discard-editor {
    margin-inline: 16px;
  }
  .lease-save-option {
    flex-wrap: wrap;
  }
  .lease-save-option .lease-recommended {
    margin-left: 25px;
  }
  .lease-metrics {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lease-studio *,
  .lease-studio *:before,
  .lease-studio *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
