.quote-app {
  --ledger: #e1e5dc;
  --paper: #fff;
  --pencil: #627063;
  --attention: #936529;
  --attention-paper: #f8f2e6;
  font-variant-numeric: tabular-nums;
}
.quote-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.quote-toolbar button,
.quote-toolbar .file-picker {
  padding: 10px 14px;
  min-height: 42px;
  font-size: 13px;
  margin: 0;
  border: 1px solid #d6ddd3;
  border-radius: 5px;
  background: #fff;
  width: auto;
}
.quote-toolbar button:first-child {
  background: #ecf1e9;
}
.quote-toolbar .file-picker {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.quiet-note {
  font-size: 12px;
  color: #687467;
  line-height: 1.8;
  margin: 12px 0 22px;
}
.quote-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--ledger);
  margin-top: 24px;
}
.quote-project .field {
  margin: 0;
}
.quote-project > p {
  font-size: 13px;
  line-height: 1.8;
  color: #687467;
  margin: 0;
}
.quote-project input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #aeb9aa;
  border-radius: 0;
  padding-left: 0;
  font-size: 19px;
}
.quote-project label > span {
  font-size: 12px;
}
.sample-note {
  padding: 12px 16px;
  border-left: 3px solid #b39966;
  background: #f5f0e4;
  font-size: 13px;
}
.quote-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 24px;
  align-items: start;
}
.quote-editor {
  background: #fff;
  border: 1px solid var(--ledger);
  border-radius: 8px;
  min-width: 0;
  padding: 24px;
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.editor-heading h2 {
  font-size: 18px;
  margin: 0;
}
.editor-heading button {
  padding: 7px 10px;
  font-size: 12px;
}
.editor-tabs {
  display: flex;
  gap: 0;
  overflow: auto;
  border-bottom: 1px solid var(--ledger);
  margin-bottom: 24px;
}
.editor-tabs button {
  flex: 1;
  min-width: 90px;
  white-space: nowrap;
  padding: 12px 8px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 13px;
}
.editor-tabs button[aria-selected="true"] {
  border-bottom-color: #2f5e52;
  color: #2f5e52;
  font-weight: 700;
}
.editor-utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #727c70;
  margin-bottom: 20px;
}
.editor-utility button {
  padding: 5px 8px;
  font-size: 11px;
  margin-left: 4px;
}
.quote-app .field {
  margin: 0;
}
.quote-app .field > span {
  font-size: 13px;
  line-height: 1.5;
}
.quote-app .field small {
  font-size: 11px;
  line-height: 1.7;
  color: #76806f;
}
.quote-app input,
.quote-app select,
.quote-app textarea {
  font-size: 14px;
  min-width: 0;
  max-width: 100%;
  border-radius: 4px;
}
.quote-app fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0 30px;
  min-width: 0;
}
.quote-app legend {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--ledger);
  padding: 0 0 12px;
  margin-bottom: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.fieldset-note {
  font-size: 12px;
  color: #727c70;
}
.span-all {
  grid-column: 1/-1;
}
.scope-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.scope-heading h3 {
  font-size: 15px;
  margin: 0;
}
.scope-heading > span {
  font-size: 11px;
  color: #727c70;
}
.scope-rows {
  margin-top: 12px;
  border-top: 1px solid var(--ledger);
}
.scope-row {
  display: grid;
  grid-template-columns: 130px 160px minmax(0, 1fr);
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ledger);
  align-items: center;
}
.scope-row.needs-check .scope-label:before {
  content: "·";
  color: #b48742;
  margin-right: 7px;
  font-weight: bold;
}
.scope-label {
  font-size: 13px;
  line-height: 1.7;
}
.scope-label button {
  display: block;
  font-size: 10px;
  padding: 2px 4px;
  color: #868a80;
  margin-top: 4px;
}
.scope-row .field > span {
  font-size: 11px;
  color: #7a8275;
}
.scope-row .field input,
.scope-row .field select {
  font-size: 12px;
  padding: 9px 7px;
  min-height: 38px;
}
.scope-note {
  grid-column: 2/-1;
}
.scope-note .field {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
  align-items: center;
}
.scope-note input {
  background: transparent;
  border-style: dashed;
}
.scope-zero {
  font-size: 12px;
  color: #8b7754;
  padding-top: 18px;
}
.add-item {
  display: flex;
  gap: 8px;
  align-items: end;
  margin-top: 16px;
}
.add-item label {
  flex: 1;
}
.add-item button {
  font-size: 12px;
  min-height: 42px;
  padding: 8px;
}
.quote-summary {
  position: sticky;
  top: 20px;
  border-top: 2px solid #536d5a;
  background: #f0f3ec;
  padding: 22px;
  min-width: 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6c7c66;
}
.quote-summary h3 {
  font-size: 17px;
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}
.summary-label {
  font-size: 12px;
  margin: 25px 0 8px;
  color: #64735e;
}
.summary-money {
  display: block;
  font-size: 25px;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.quote-summary dl {
  margin: 22px 0;
  font-size: 12px;
}
.quote-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #dbe2d3;
}
.quote-summary dt {
  color: #64735e;
}
.quote-summary dd {
  margin: 0;
  text-align: right;
}
.quote-summary h4 {
  font-size: 12px;
  margin: 24px 0 10px;
}
.quote-badge {
  display: inline-block;
  padding: 4px 7px;
  background: #e7ede2;
  color: #4f6748;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}
.quote-badge.unknown {
  background: #f0e5ce;
  color: #82602b;
}
.missing-list {
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.9;
  color: #836129;
  overflow-wrap: anywhere;
}
.summary-warnings p {
  font-size: 11px;
  line-height: 1.8;
  color: #727366;
  border-top: 1px solid #dce3d6;
  padding-top: 12px;
}
.formula-card {
  border-top: 1px solid #cad6c4;
  margin-top: 26px;
  padding-top: 20px;
}
.formula-card strong {
  font-size: 12px;
}
.formula-card p {
  font-size: 11px;
  line-height: 1.9;
  color: #677762;
  margin: 10px 0 0;
}
.summary-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  border-bottom: 1px solid #d8e0d1;
  padding: 15px 0;
}
.quote-results {
  margin-top: 44px;
  border-top: 1px solid #aebbaa;
  padding-top: 28px;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.results-heading h2 {
  font-size: 23px;
  margin-bottom: 8px;
}
.results-heading p {
  font-size: 13px;
  color: #6c7767;
  margin: 0;
}
.report-actions {
  display: flex;
  gap: 8px;
}
.report-actions button {
  font-size: 12px;
  padding: 10px 14px;
  min-height: 40px;
}
.report-actions .primary {
  background: #365f4d;
  border-color: #365f4d;
}
.comparison-caption {
  font-size: 13px;
  margin: 24px 0 14px;
  line-height: 1.9;
}
.comparison-scroll {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--ledger);
  border-radius: 5px;
}
.comparison {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
  table-layout: fixed;
  font-size: 13px;
}
.comparison th,
.comparison td {
  padding: 16px 18px;
  text-align: right;
  border-bottom: 1px solid var(--ledger);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.comparison th:first-child {
  width: 190px;
  text-align: left;
  font-weight: 400;
  color: #62715e;
  background: #f7f8f4;
}
.comparison thead th {
  font-weight: 700;
  line-height: 2;
}
.comparison thead th:first-child {
  color: #74806d;
  font-size: 12px;
}
.comparison .total-row th,
.comparison .total-row td {
  background: #edf2e8;
  font-weight: 700;
  color: #344c32;
}
.quote-results h3 {
  margin-top: 32px;
  font-size: 15px;
}
.scope-comparison td {
  font-size: 12px;
}
.scope-comparison strong,
.scope-comparison small {
  display: block;
  font-weight: 400;
  margin-top: 6px;
}
.scope-comparison small {
  color: #7d8375;
  line-height: 1.6;
}
.unknown-cell {
  background: #faf4e9;
  color: #8e6931;
}
.compare-modes {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.compare-modes label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.compare-modes input {
  width: auto;
  accent-color: #365f4d;
}
.editor-tip {
  font-size: 12px;
  line-height: 1.9;
  padding: 16px 18px;
  background: #f5f6f0;
  color: #64725c;
}
.formula-wide {
  font-size: 15px;
  background: #edf2e8;
  padding: 24px;
  line-height: 1.8;
  border-left: 2px solid #597c4f;
  margin: 20px 0;
}
.method-heading h3 {
  font-size: 18px;
}
.method-heading p {
  font-size: 13px;
  line-height: 1.8;
  color: #6c7864;
}
.loan-payment {
  padding: 20px;
  background: #f5f6f0;
  display: grid;
  gap: 8px;
}
.loan-payment span,
.loan-payment small {
  font-size: 12px;
  color: #718068;
  line-height: 1.8;
}
.loan-payment strong {
  font-size: 23px;
}
.quote-app details summary {
  font-size: 13px;
  cursor: pointer;
  padding: 18px 0;
}
.amortization {
  max-height: 320px;
}
.amortization table {
  border-collapse: collapse;
  min-width: 500px;
  width: 100%;
  font-size: 11px;
}
.amortization td,
.amortization th {
  padding: 10px;
  border-bottom: 1px solid var(--ledger);
  text-align: right;
}
.error-text {
  color: #9d3c30;
  font-size: 13px;
  line-height: 1.8;
}
.report-empty {
  padding: 28px;
  background: #fff;
  border: 1px dashed #cbd5c5;
}
.quote-explain {
  border-top: 1px solid var(--ledger);
  margin-top: 36px;
  padding-top: 24px;
}
.quote-explain h2 {
  font-size: 17px;
}
.quote-explain li {
  font-size: 13px;
  line-height: 2.1;
  color: #667361;
}
.quote-explain a {
  overflow-wrap: anywhere;
}
body:has(.quote-app) main {
  max-width: 1280px;
}
body:has(.quote-app) {
  --desk: #f7f8f3;
  --blue: #365f4d;
  --blue-soft: #edf2e8;
}
.quote-app input:focus-visible,
.quote-app select:focus-visible,
.quote-app button:focus-visible {
  outline: 2px solid #61815a;
  outline-offset: 2px;
}
@media (max-width: 1000px) {
  .scope-row {
    grid-template-columns: 110px 135px minmax(0, 1fr);
  }
  .quote-work {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px;
  }
  .quote-editor {
    padding: 18px;
  }
  .quote-summary {
    padding: 18px;
  }
  .summary-money {
    font-size: 22px;
  }
}
@media (max-width: 760px) {
  .quote-toolbar {
    gap: 6px;
  }
  .quote-toolbar button,
  .quote-toolbar .file-picker {
    font-size: 11px;
    padding: 8px 10px;
    min-height: 38px;
  }
  .quote-project {
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 18px;
  }
  .quote-project > p {
    grid-column: 1/-1;
  }
  .quote-work {
    display: flex;
    flex-direction: column;
  }
  .quote-editor,
  .quote-summary {
    width: 100%;
    box-sizing: border-box;
  }
  .quote-summary {
    position: static;
  }
  .form-grid {
    gap: 14px 12px;
  }
  .scope-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .scope-label {
    grid-column: 1/-1;
    font-weight: 700;
  }
  .scope-note {
    grid-column: 1/-1;
  }
  .scope-note .field {
    display: flex;
    align-items: stretch;
    gap: 5px;
  }
  .scope-note .field > span {
    font-size: 10px;
  }
  .editor-tabs button {
    min-width: 90px;
  }
  .quote-project input {
    font-size: 16px;
  }
  .comparison th,
  .comparison td {
    padding: 13px 12px;
  }
  .comparison th:first-child {
    width: 155px;
  }
  .quote-results {
    margin-top: 30px;
  }
  .results-heading h2 {
    font-size: 21px;
  }
  .quote-explain ul,
  .quote-explain ol {
    padding-left: 20px;
  }
  .summary-money {
    font-size: 26px;
  }
}
.quote-mobile-nav {
  display: none;
}
body[data-tool="interior-compare"] #editor {
  max-height: 760px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: 10px;
}
.quote-editor,
#results {
  scroll-margin-top: 20px;
}
@media (max-width: 760px) {
  body:has(.quote-app) {
    padding-bottom: 72px;
  }
  body[data-tool="interior-compare"] #editor {
    max-height: none;
    padding: 0;
  }
  .quote-mobile-nav {
    display: flex;
    position: fixed;
    z-index: 20;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    gap: 6px;
    padding: 4px;
    background: #fffffff5;
    border: 1px solid #cbd5c4;
    border-radius: 6px;
    box-shadow: 0 3px 12px #24332010;
  }
  .quote-mobile-nav button,
  .quote-mobile-nav a {
    font-size: 12px;
    min-width: 100px;
    padding: 11px 15px;
    text-align: center;
    white-space: nowrap;
    border: 0;
    border-radius: 4px;
  }
  .quote-mobile-nav a {
    background: #365f4d;
    color: white;
    text-decoration: none;
  }
  .report-empty p {
    font-size: 13px;
    line-height: 1.8;
    margin: 12px 0 0;
  }
}
.partial-value {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #997339;
  margin-top: 5px;
}
.report-empty p {
  font-size: 13px;
  line-height: 1.8;
  color: #6d7966;
  margin: 10px 0 0;
}
.editor-tabs button {
  overflow: hidden;
  text-overflow: ellipsis;
}
.mode-selector {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 0 24px;
}
.mode-selector > span {
  font-size: 12px;
  color: #6d7c64;
}
.mode-selector .compare-modes {
  margin: 0;
}
body[data-tool="car-total-cost"] .quote-project {
  grid-template-columns: 1fr;
}
body[data-tool="car-total-cost"] .quote-project > .field {
  max-width: 750px;
}
body[data-tool="car-total-cost"] .quote-project > p {
  display: none;
}
@media (max-width: 760px) {
  .mode-selector {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .mode-selector .compare-modes {
    gap: 12px 18px;
  }
  body[data-tool="car-total-cost"] .editor-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    border: 0;
    gap: 3px;
  }
  body[data-tool="car-total-cost"] .editor-tabs button {
    min-width: 0;
    background: #f6f8f2;
  }
  body[data-tool="car-total-cost"] .editor-tabs button:first-child {
    grid-column: 1/-1;
  }
}
