.takeoff-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}
.takeoff-pricing-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
.takeoff-pricing-title h4 { margin: 0; font-size: 14px; font-weight: 650; }
.takeoff-pricing-title span { color: var(--takeoff-muted); font-size: 11px; overflow-wrap: anywhere; }
.takeoff-pricing-title .takeoff-pricing-pending,
.takeoff-pricing-table td.takeoff-pricing-pending,
.takeoff-estimate-overview .takeoff-pricing-pending { color: var(--takeoff-warn); }
#takeoff-pricing-details { grid-column: 1 / -1; min-width: 0; }
.takeoff-pricing :is(button, input, select), .takeoff-estimate-overview button { min-height: 34px; }
.takeoff-pricing button, .takeoff-estimate-overview button { padding: 4px 9px; font-size: 12px; }
.takeoff-pricing-form {
  display: grid;
  gap: 12px;
  padding-top: 13px;
  margin-top: 6px;
  border-top: 1px solid var(--takeoff-line);
}
.takeoff-pricing-form > *,
.takeoff-pricing-form :is(input, select) { min-width: 0; }
.takeoff-pricing [hidden] { display: none; }
.takeoff-pricing-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.takeoff-pricing-dimensions span { overflow-wrap: anywhere; }
.takeoff-pricing-field { display: grid; gap: 4px; min-width: 0; color: var(--takeoff-muted); font-size: 12px; }
.takeoff-pricing-field > :is(input, select) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 4px 7px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 4px;
  color: var(--takeoff-ink);
  background: var(--takeoff-surface);
  font: inherit;
  caret-color: var(--takeoff-accent);
  text-overflow: ellipsis;
}
.takeoff-pricing-field > input:read-only { color: var(--takeoff-muted); background: var(--takeoff-surface-raised); }
.takeoff-pricing-field input::placeholder { color: var(--takeoff-muted); opacity: 1; }
.takeoff-pricing-field .takeoff-muted { margin: 0; }
.takeoff-pricing :is(button, input, select):focus-visible { outline: 2px solid var(--takeoff-accent); outline-offset: 2px; }
.takeoff-pricing-simple, .takeoff-pricing-analysis { display: grid; gap: 10px; }
.takeoff-pricing-analysis > button { justify-self: start; }
.takeoff-pricing-analysis button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.takeoff-pricing-analysis .takeoff-icon { width: 15px; height: 15px; }
.takeoff-pricing-note, .takeoff-pricing-preview p { margin: 0; color: var(--takeoff-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.takeoff-pricing-component {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 8px;
  padding: 8px 0 10px;
  border-top: 1px solid var(--takeoff-line);
}
.takeoff-pricing-component-heading, .takeoff-pricing-component-amount,
.takeoff-pricing-preview > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 8px; }
.takeoff-pricing-component-heading, .takeoff-pricing-component-amount,
.takeoff-pricing-component :is([data-component-choice-field="category"], label:has([data-component-field="name"])) { grid-column: 1 / -1; }
.takeoff-pricing-component-heading { align-items: center; font-size: 12px; }
.takeoff-pricing .takeoff-pricing-component-remove {
  width: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--takeoff-muted);
  background: transparent;
}
.takeoff-pricing .takeoff-pricing-component-remove:is(:hover,:focus-visible):not(:disabled) {
  color: var(--ui-danger);
  border-color: var(--takeoff-line);
  background: var(--ui-danger-bg);
}
.takeoff-pricing-component-remove:disabled { opacity: .45; }
.takeoff-pricing-analysis .takeoff-pricing-component-remove .takeoff-icon { width: 17px; height: 17px; }
.takeoff-pricing-choice-control {
  --choice-height: 34px;
  --choice-menu-width: 28px;
  display: grid;
  grid-template-columns: minmax(0,1fr) var(--choice-menu-width);
  min-width: 0;
  border: 1px solid var(--takeoff-line);
  border-radius: 4px;
  color: var(--takeoff-ink);
  background: var(--takeoff-surface);
}
.takeoff-pricing-choice-control:focus-within { border-color: var(--takeoff-accent); }
.takeoff-pricing .takeoff-pricing-choice-control > :is(input,select) {
  width: 100%;
  min-height: calc(var(--choice-height) - 2px);
  border: 0;
  border-radius: 3px;
  background: transparent;
  font: inherit;
}
.takeoff-pricing-choice-control > input { padding: 4px 6px; color: inherit; text-overflow: ellipsis; }
.takeoff-pricing-choice-control:has(select:disabled) { color: var(--takeoff-muted); background: var(--takeoff-surface-raised); }
.takeoff-pricing-choice-control > :is(select,.takeoff-icon) { grid-column: 2; grid-row: 1; }
.takeoff-pricing-choice-control > select {
  appearance: none;
  padding: 0;
  color: transparent;
  cursor: pointer;
}
.takeoff-pricing-choice-control select:disabled { cursor: default; }
.takeoff-pricing-choice-control select :is(option,optgroup) { color: var(--takeoff-ink); background: var(--takeoff-surface); }
.takeoff-pricing-choice-control:has(input:focus-visible) { outline: 2px solid var(--takeoff-accent); outline-offset: -1px; }
.takeoff-pricing .takeoff-pricing-field .takeoff-pricing-choice-control > input:focus-visible { outline: 0; }
.takeoff-pricing .takeoff-pricing-field .takeoff-pricing-choice-control > select:focus-visible { outline-offset: -2px; }
.takeoff-pricing .takeoff-pricing-choice-control select:hover:not(:disabled) { background: var(--takeoff-surface-raised); }
.takeoff-pricing-choice-control > .takeoff-icon { pointer-events: none; place-self: center; z-index: 1; }
.takeoff-pricing-choice-control select:disabled + .takeoff-icon { opacity: .45; }
@media (forced-colors: active) {
  .takeoff-pricing-choice-control > select { forced-color-adjust: none; }
  .takeoff-pricing-choice-control select :is(option,optgroup) { color: FieldText; background: Field; }
}
.takeoff-pricing-component-amount { color: var(--takeoff-muted); font-size: 12px; }
.takeoff-pricing-component-amount output, .takeoff-pricing-preview strong { color: var(--takeoff-ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.takeoff-pricing-preview { display: grid; gap: 4px; padding: 8px; background: var(--takeoff-surface-raised); border: 1px solid var(--takeoff-line); border-radius: 4px; font-size: 12px; }
.takeoff-pricing-preview strong { font-weight: 650; }
.takeoff-pricing-apply label { display: inline-flex; min-height: 32px; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }
.takeoff-pricing-apply input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--takeoff-accent); }
.takeoff-pricing-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.takeoff-pricing-form-actions p, .takeoff-pricing-retry p { margin: 0; color: var(--takeoff-accent); font-size: 12px; overflow-wrap: anywhere; }
.takeoff-pricing-form-actions p[role="alert"], .takeoff-pricing-retry p { color: var(--takeoff-warn); }
.takeoff-pricing-retry { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.takeoff-pricing [data-takeoff-pricing-summary] dd { font-variant-numeric: tabular-nums; }
.takeoff-pricing [data-takeoff-pricing-summary] small { display: block; color: var(--takeoff-muted); font-size: 11px; }
.takeoff-pricing [data-takeoff-pricing-summary] dl > div { flex-wrap: wrap; gap: 4px 8px; }
.takeoff-pricing [data-takeoff-pricing-summary] dd { margin-inline-start: auto; }
.takeoff-pricing [data-takeoff-pricing-summary] dl > div:last-child { border-bottom: 0; }
.takeoff-estimate-overview {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 9px;
}
.takeoff-estimate-overview dl { display: flex; flex-wrap: wrap; column-gap: 17px; row-gap: 6px; margin: 0; }
.takeoff-estimate-overview dl > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; }
.takeoff-estimate-overview dt { color: var(--takeoff-muted); font-size: 12px; }
.takeoff-estimate-overview dd { margin: 0; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.takeoff-estimate-overview dd small { font-size: 11px; font-weight: 400; }
.takeoff-estimate-overview button { display: inline-flex; align-items: center; gap: 5px; }
.takeoff-estimate-overview .takeoff-icon { width: 16px; height: 16px; }
.takeoff-pricing-table:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: -2px; }
.takeoff-pricing-table td:is(:nth-child(3), :nth-child(4), :nth-child(5)),
.takeoff-pricing-table th:is(:nth-child(3), :nth-child(4), :nth-child(5)) { text-align: right; white-space: nowrap; }
.takeoff-pricing-table td:first-child { min-width: 104px; }
.takeoff-pricing-table td small { display: block; color: var(--takeoff-muted); }
@media (max-width: 760px) {
  .takeoff-pricing :is(button, .takeoff-pricing-field input, select), .takeoff-estimate-overview button { min-height: 44px; }
  .takeoff-pricing .takeoff-pricing-component-remove { width: 44px; }
  .takeoff-pricing-choice-control { --choice-height: 44px; --choice-menu-width: 38px; }
  .takeoff-pricing-apply label { min-height: 44px; }
}

/* Light estimate workspaces, using the same pricing drafts and server results. */
.takeoff-workspace[data-workspace-view] .takeoff-pricing {
  color: var(--takeoff-ink);
}
.takeoff-workspace[data-workspace-view] .takeoff-pricing-field { gap: 7px; font-size: 13px; }
.takeoff-workspace[data-workspace-view] .takeoff-pricing-field > :is(input,select) {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 5px;
  color: var(--takeoff-ink);
  background: var(--takeoff-surface);
  font-size: 14px;
}
.takeoff-workspace[data-workspace-view] .takeoff-pricing-field > :is(input,select):focus-visible { outline: 2px solid var(--takeoff-accent); outline-offset: 2px; }
.takeoff-workspace[data-workspace-view] .takeoff-pricing-field input::placeholder { color: var(--takeoff-muted); }
.takeoff-workspace[data-workspace-view] .takeoff-pricing-field > input:read-only { color: var(--takeoff-muted); background: var(--takeoff-surface-raised); }
.takeoff-workspace[data-workspace-view] .takeoff-pricing-pending { color: var(--takeoff-warn); }
.takeoff-pricing-summary,.takeoff-pricing-measure { display: block; margin-top: 14px; }
.takeoff-component-actions { display: grid; gap: 12px; margin-top: 24px; }
.takeoff-component-actions .button { width: 100%; }
.takeoff-measure-form { gap: 23px; margin-top: 0; padding-top: 0; border-top: 0; }
.takeoff-measure-source { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0 17px; border-bottom: 1px solid var(--takeoff-line); color: var(--takeoff-muted); font-size: 14px; }
.takeoff-measure-source strong { color: var(--takeoff-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.takeoff-measure-dimensions { display: grid; gap: 8px; }
.takeoff-measure-dimensions .takeoff-pricing-dimensions { gap: 10px; }
.takeoff-measure-form .takeoff-pricing-note { font-size: 12px; line-height: 1.7; }
.takeoff-measure-preview { gap: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.takeoff-measure-preview > div { padding-bottom: 14px; border-bottom: 1px solid var(--takeoff-line); font-size: 14px; }
.takeoff-measure-preview strong { font-size: 18px; font-weight: 500; }
.takeoff-pricing-preview .takeoff-pricing-warning { margin-top: 4px; padding: 12px; border-radius: 5px; color: var(--takeoff-warn); background: var(--ui-warning-bg); font-size: 12px; line-height: 1.7; }
.takeoff-pricing-quantity-note { margin: 0; padding: 12px; border-radius: 5px; color: var(--takeoff-warn); background: var(--ui-warning-bg); font-size: 12px; line-height: 1.7; }
.takeoff-measure-form .takeoff-pricing-form-actions:not([hidden]) { display: grid; margin-top: 8px; }
.takeoff-measure-form .takeoff-pricing-form-actions .button { width: 100%; }
.takeoff-pricing-workspace { display: block; min-width: 0; min-height: 100%; margin: 0; }
.takeoff-pricing-workspace > [data-takeoff-pricing-info]:not(:empty) { padding: 20px 28px 0; }
.takeoff-pricing-workspace-form { display: grid; grid-template-columns: minmax(0,1fr) clamp(300px,31vw,450px); gap: 0; min-height: 100%; margin: 0; padding: 0; border: 0; }
.takeoff-pricing-editor { min-width: 0; padding: 28px; }
.takeoff-pricing-quote h3 { margin: 0; color: var(--takeoff-ink); font-size: 23px; line-height: 1.35; font-weight: 650; letter-spacing: -.02em; }
.takeoff-pricing-work-field { max-width: 620px; }
.takeoff-pricing-basis-fields { display: grid; gap: 12px; max-width: 620px; margin-top: 18px; }
.takeoff-pricing-basis-fields .takeoff-pricing-dimensions { display: flex; flex-wrap: wrap; gap: 10px; }
.takeoff-pricing-basis-fields .takeoff-pricing-dimensions[hidden] { display: none; }
.takeoff-pricing-basis-fields .takeoff-pricing-dimensions > label { flex: 1 1 110px; }
.takeoff-pricing-mode-tabs,.takeoff-report-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 22px 0 25px; }
.takeoff-pricing-mode-tabs button,.takeoff-report-filters button { min-height: 37px; padding: 8px 15px; border: 0; border-radius: 6px; color: var(--takeoff-muted); background: var(--takeoff-surface-raised); font-size: 13px; }
.takeoff-pricing-mode-tabs button:hover,.takeoff-report-filters button:hover { color: var(--takeoff-accent); background: var(--ui-selected); }
.takeoff-pricing-mode-tabs button[aria-pressed="true"],.takeoff-report-filters button[aria-pressed="true"] { color: var(--takeoff-accent); background: var(--ui-selected); font-weight: 650; }
.takeoff-pricing-workspace .takeoff-pricing-simple { grid-template-columns: minmax(0,1fr) minmax(130px,.65fr); gap: 18px; margin-top: 25px; }
.takeoff-pricing-workspace .takeoff-pricing-analysis { display: block; margin-top: 6px; overflow-x: auto; padding-bottom: 10px; }
.takeoff-pricing-workspace .takeoff-pricing-analysis > .takeoff-pricing-note:first-child { margin: 0 0 17px; }
.takeoff-pricing-component-columns,.takeoff-pricing-workspace .takeoff-pricing-component { display: grid; grid-template-columns: minmax(106px,1fr) minmax(125px,1.55fr) minmax(60px,.7fr) minmax(94px,.95fr) minmax(85px,1fr) minmax(85px,1fr) 34px; align-items: center; gap: 9px; min-width: 665px; }
.takeoff-pricing-component-columns { min-height: 44px; padding: 10px 8px; color: var(--takeoff-muted); background: var(--takeoff-surface-raised); font-size: 12px; font-weight: 600; }
.takeoff-pricing-component-columns > :is(:nth-child(3),:nth-child(5),:nth-child(6)) { text-align: right; }
.takeoff-pricing-workspace .takeoff-pricing-component { position: relative; align-items: start; padding: 15px 8px; border-top: 0; border-bottom: 1px solid var(--takeoff-line); }
.takeoff-pricing-workspace .takeoff-pricing-component .takeoff-pricing-field { grid-column: auto; grid-row: 1; gap: 0; }
.takeoff-pricing-workspace .takeoff-pricing-component [data-component-choice-field="category"] { grid-column: 1; }
.takeoff-pricing-workspace .takeoff-pricing-component label:has([data-component-field="name"]) { grid-column: 2; }
.takeoff-pricing-workspace .takeoff-pricing-component label:has([data-component-field="usage"]) { grid-column: 3; }
.takeoff-pricing-workspace .takeoff-pricing-component [data-component-choice-field="unit"] { grid-column: 4; }
.takeoff-pricing-workspace .takeoff-pricing-component label:has([data-component-field="unit_price"]) { grid-column: 5; }
.takeoff-pricing-workspace .takeoff-pricing-component :is(label > span,.takeoff-pricing-component-choice > label),.takeoff-pricing-workspace .takeoff-pricing-component-heading > strong,.takeoff-pricing-workspace .takeoff-pricing-component-amount > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.takeoff-workspace[data-workspace-view] .takeoff-pricing-workspace .takeoff-pricing-component .takeoff-pricing-field > input { min-height: 40px; padding: 7px 3px; border-color: transparent; border-radius: 3px; background: transparent; font-size: 13px; }
.takeoff-pricing-workspace .takeoff-pricing-choice-control { --choice-height: 40px; font-size: 13px; }
.takeoff-workspace[data-workspace-view] .takeoff-pricing-workspace .takeoff-pricing-component .takeoff-pricing-field > input:hover:not(:read-only) { border-color: var(--ui-border-strong); background: var(--takeoff-surface-raised); }
.takeoff-workspace[data-workspace-view] .takeoff-pricing-workspace .takeoff-pricing-component .takeoff-pricing-field > input:focus { border-color: var(--takeoff-accent); background: var(--takeoff-surface); }
.takeoff-pricing-workspace .takeoff-pricing-component input:is([data-component-field="usage"],[data-component-field="unit_price"]) { text-align: right; font-variant-numeric: tabular-nums; }
.takeoff-pricing-workspace .takeoff-pricing-component-heading { display: block; grid-column: 7; grid-row: 1; }
.takeoff-pricing-workspace .takeoff-pricing-component-amount { display: flex; grid-column: 6; grid-row: 1; align-items: center; justify-content: flex-end; min-height: 40px; text-align: right; font-size: 13px; }
.takeoff-pricing-workspace .takeoff-pricing-analysis > button { margin-top: 19px; }
.takeoff-pricing-workspace .takeoff-pricing-analysis > .takeoff-pricing-note:last-child { margin-top: 27px; line-height: 1.7; }
.takeoff-pricing-quote { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 29px 28px; border-left: 1px solid var(--takeoff-line); }
.takeoff-pricing-quote h3 { margin-bottom: 5px; font-size: 21px; }
.takeoff-quote-preview { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; }
.takeoff-quote-preview dl { margin: 0; }
.takeoff-quote-preview dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--takeoff-line); }
.takeoff-quote-preview dt { color: var(--takeoff-muted); font-size: 13px; }
.takeoff-quote-preview dd { margin: 0; text-align: right; color: var(--takeoff-ink); font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.takeoff-quote-preview .takeoff-quote-formula { margin: 12px 0 4px; }
.takeoff-quote-preview .takeoff-quote-subtotal { display: grid; justify-content: stretch; gap: 24px; margin: 29px 0 0; padding: 23px; border-radius: 6px; color: var(--takeoff-accent); background: var(--ui-selected); }
.takeoff-quote-subtotal span { font-size: 14px; }
.takeoff-quote-subtotal strong { justify-self: end; width: 100%; color: var(--takeoff-accent); font-size: clamp(27px,2.6vw,40px); line-height: 1.2; font-weight: 600; text-align: right; }
.takeoff-pricing-quote .takeoff-pricing-apply label { min-height: 40px; font-size: 13px; }
.takeoff-pricing-quote .takeoff-pricing-form-actions { display: grid; gap: 12px; margin-top: auto; padding-top: 15px; }
.takeoff-pricing-quote .takeoff-pricing-form-actions button[type="submit"] { width: 100%; min-height: 45px; }
.takeoff-report-workspace { min-width: 0; padding: 24px 28px 32px; }
.takeoff-report-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.takeoff-report-heading .takeoff-workspace-search { flex: 1 1 250px; max-width: 450px; margin: 0; }
.takeoff-report-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 12px 0 16px; }
.takeoff-report-toolbar :is(.takeoff-filter-tabs,.takeoff-report-filters) { margin: 0; }
.takeoff-report-table { container-type: inline-size; }
.takeoff-report-table .takeoff-table { min-width: 790px; }
.takeoff-workspace[data-workspace-view] .takeoff-report-table .takeoff-table > :is(thead,tbody) > tr > :is(th,td) { padding: 12px; }
.takeoff-report-table .takeoff-table > :is(thead,tbody) > tr > :is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6)) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.takeoff-report-table .takeoff-table > :is(thead,tbody) > tr > :is(th,td):nth-child(7) { min-width: 145px; text-align: left; }
.takeoff-report-table [data-report-pricing-row] > td:first-child { min-width: 155px; max-width: 370px; overflow-wrap: anywhere; }
.takeoff-report-table [data-report-pricing-row] > td small { display: block; margin-top: 4px; color: var(--takeoff-muted); font-size: 12px; font-weight: 400; }
.takeoff-workspace[data-workspace-view] .takeoff-report-table .takeoff-report-name { min-height: 32px; color: var(--takeoff-accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.takeoff-report-table [data-report-pricing-row]:is(.selected,:hover,:focus-within,:has([aria-expanded="true"])) { background: var(--takeoff-surface-raised); }
.takeoff-report-table .takeoff-table > :is(thead,tbody) > tr > :is(th,td):nth-child(8) { width: 1%; text-align: center; white-space: nowrap; }
.takeoff-workspace[data-workspace-view] .takeoff-report-table .takeoff-report-price { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ui-border-strong); border-radius: 5px; color: var(--takeoff-accent); background: var(--takeoff-surface); cursor: pointer; }
.takeoff-workspace[data-workspace-view] .takeoff-report-table .takeoff-report-price:is(:hover,[aria-expanded="true"]) { background: var(--ui-selected); }
.takeoff-report-price .takeoff-icon { width: 16px; height: 16px; }
.takeoff-report-price[aria-expanded="true"] .takeoff-icon { rotate: 180deg; }
.takeoff-workspace[data-workspace-view] .takeoff-report-table .takeoff-table > tbody > [data-report-pricing-detail] > td { padding: 0; background: var(--takeoff-surface-raised); }
.takeoff-report-detail { position: sticky; inset-inline-start: 0; max-width: 100cqi; padding: 16px 17px 18px; }
.takeoff-report-detail :is(h4,h5) { margin: 0; color: var(--takeoff-ink); font-size: 14px; font-weight: 650; }
.takeoff-report-detail dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr)); gap: 10px 16px; margin: 8px 0 0; }
.takeoff-report-detail :is(dt,p,small) { color: var(--takeoff-muted); font-size: 12px; }
.takeoff-report-detail dd { margin: 3px 0 0; font-weight: 600; }
.takeoff-report-detail dd,.takeoff-report-total > strong { overflow-wrap: anywhere; }
.takeoff-report-detail dd small { display: block; margin-top: 3px; font-weight: 400; }
.takeoff-report-detail h5 { margin-top: 16px; }
.takeoff-report-detail p { margin: 4px 0 0; }
.takeoff-report-detail-heading,.takeoff-report-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.takeoff-report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.takeoff-workspace[data-workspace-view] .takeoff-report-actions .button { min-height: 36px; padding: 0 11px; }
.takeoff-workspace[data-workspace-view] .takeoff-report-actions .button.takeoff-report-delete { color: var(--ui-danger); }
.takeoff-workspace[data-workspace-view] .takeoff-report-actions .button.takeoff-report-delete:hover:not([aria-disabled="true"]) { color: var(--ui-danger); background: var(--ui-danger-bg); }
.takeoff-report-actions .button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.takeoff-report-confirm { margin-top: 6px; padding: 8px 0; }
.takeoff-report-confirm p { margin: 0; color: var(--takeoff-ink); }
.takeoff-report-confirm p span { display: block; margin-top: 2px; color: var(--takeoff-muted); }
.takeoff-report-detail .takeoff-report-error { color: var(--ui-danger); }
.takeoff-report-feedback { margin: 0 0 10px; color: var(--takeoff-accent); font-size: 13px; }
.takeoff-report-feedback:empty { margin: 0; }
.takeoff-report-materials { width: 100%; margin-top: 8px; table-layout: fixed; border-collapse: collapse; font: inherit; }
.takeoff-workspace[data-workspace-view] .takeoff-report-detail .takeoff-report-materials :is(th,td) { padding: 7px 8px; white-space: normal; overflow-wrap: anywhere; }
.takeoff-report-materials :is(th,td):nth-child(2) { width: 29%; }
.takeoff-report-materials :is(th,td):is(:nth-child(3),:nth-child(5),:nth-child(6)) { text-align: right; }
@container (max-width: 450px) {
  .takeoff-report-detail { padding-inline: 10px; }
  .takeoff-workspace[data-workspace-view] .takeoff-report-actions .button { min-height: 44px; }
  .takeoff-workspace[data-workspace-view] .takeoff-report-detail .takeoff-report-materials :is(th,td) { padding-inline: 3px; }
  .takeoff-report-materials :is(th,td):nth-child(1) { width: 12%; }
  .takeoff-report-materials :is(th,td):nth-child(2) { width: 23%; }
  .takeoff-report-materials :is(th,td):nth-child(4) { width: 11%; }
  .takeoff-report-materials :is(th,td):is(:nth-child(3),:nth-child(5),:nth-child(6)) { width: 18%; }
}
.takeoff-report-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: 6px; color: var(--takeoff-accent); background: var(--ui-selected); }
.takeoff-report-total h4 { margin: 0 0 5px; font-size: 16px; font-weight: 600; }
.takeoff-report-total p { margin: 0; color: var(--takeoff-muted); font-size: 12px; }
.takeoff-report-total > strong { color: var(--takeoff-accent); font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.takeoff-report-note { margin: 10px 0 0; color: var(--takeoff-muted); font-size: 12px; line-height: 1.7; }
.takeoff-report-empty { text-align: center; color: var(--takeoff-muted); }
@media (max-width: 1120px) {
  .takeoff-pricing-workspace-form { grid-template-columns: minmax(0,1fr) 310px; }
  .takeoff-pricing-editor,.takeoff-pricing-quote { padding: 23px 20px; }
  .takeoff-report-workspace { padding: 24px 22px; }
}
@media (max-width: 1000px) {
  .takeoff-pricing-workspace-form { grid-template-columns: minmax(0,1fr); }
  .takeoff-pricing-quote { gap: 16px; border-left: 0; border-top: 1px solid var(--takeoff-line); }
  .takeoff-quote-preview dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .takeoff-quote-preview dl > div { flex-direction: column; gap: 8px; }
  .takeoff-quote-preview .takeoff-quote-subtotal { margin-top: 20px; }
  .takeoff-pricing-quote .takeoff-pricing-form-actions { max-width: 360px; margin-top: 0; }
}
@media (max-width: 770px) {
  .takeoff-pricing-editor,.takeoff-pricing-quote,.takeoff-report-workspace { padding: 24px 18px; }
  .takeoff-workspace[data-workspace-view] .takeoff-pricing-field > :is(input,select) { min-height: 44px; font-size: 16px; }
  .takeoff-pricing-workspace .takeoff-pricing-simple { grid-template-columns: minmax(0,1fr); }
  .takeoff-pricing-mode-tabs button,.takeoff-report-filters button { min-height: 44px; }
  .takeoff-quote-preview dl { grid-template-columns: minmax(0,1fr); gap: 0; }
  .takeoff-quote-preview dl > div { flex-direction: row; }
  .takeoff-pricing-quote .takeoff-pricing-form-actions { max-width: none; }
  .takeoff-report-heading .takeoff-workspace-search { max-width: none; }
  .takeoff-workspace[data-workspace-view] .takeoff-report-table .takeoff-report-price { width: 44px; height: 44px; }
  .takeoff-workspace[data-workspace-view] .takeoff-report-table .takeoff-report-name { min-height: 44px; }
}
@container (max-width: 789px) {
  .takeoff-report-table .takeoff-table > :is(thead,tbody) > tr > :is(th,td):nth-child(8) {
    position: sticky;
    inset-inline-end: 0;
    background: var(--takeoff-surface-raised);
    border-inline-start: 1px solid var(--takeoff-line);
  }
}

.takeoff-quote-dialog {
  width: min(1120px, calc(100% - 40px));
  height: min(740px, calc(100dvh - 40px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: var(--takeoff-ink);
  background: var(--takeoff-surface);
  box-shadow: var(--ui-raised-shadow);
}
.takeoff-quote-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.takeoff-quote-dialog::backdrop { background: var(--ui-scrim); }
.takeoff-quote-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; padding: 14px 20px; border-bottom: 1px solid var(--takeoff-line); }
.takeoff-quote-header > div { min-width: 0; }
.takeoff-quote-header h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.takeoff-quote-header h2:focus { outline: none; }
.takeoff-quote-header p { margin: 4px 0 0; color: var(--takeoff-muted); font-size: 13px; overflow-wrap: anywhere; }
.takeoff-quote-header .takeoff-quote-close { flex: none; width: 44px; min-height: 44px; padding: 0; border-radius: 5px; }
.takeoff-quote-header .takeoff-quote-close:hover:not(:disabled) { color: var(--takeoff-accent); background: var(--takeoff-surface-raised); }
.takeoff-quote-header .takeoff-quote-close .takeoff-icon { width: 19px; height: 19px; }
.takeoff-quote-body { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.takeoff-quote-body:has(.takeoff-pricing-workspace-form) { overflow: hidden; }
.takeoff-quote-body > #ot-quote-root:has(> .takeoff-pricing-workspace-form) { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; }
.takeoff-quote-body > .takeoff-empty-copy { padding: 20px; }
.takeoff-quote-dialog .takeoff-pricing-workspace-form { flex: 1; grid-template-columns: minmax(0,1fr) 292px; min-height: 0; }
.takeoff-quote-dialog .takeoff-pricing-editor { padding: 20px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.takeoff-quote-dialog .takeoff-pricing-workspace > [data-takeoff-pricing-info]:not(:empty) { padding: 12px 20px 0; }
.takeoff-quote-dialog :is(.takeoff-pricing-work-field,.takeoff-pricing-basis-fields) { max-width: none; }
.takeoff-quote-dialog .takeoff-pricing-mode-tabs { margin: 16px 0 12px; }
.takeoff-quote-dialog .takeoff-pricing-simple { align-items: start; gap: 12px; margin-top: 16px; }
.takeoff-quote-dialog .takeoff-pricing-analysis { padding-bottom: 8px; overflow: visible; }
.takeoff-quote-dialog .takeoff-pricing-analysis > .takeoff-pricing-note:first-child { margin-bottom: 10px; }
.takeoff-quote-dialog .takeoff-pricing-analysis > .takeoff-pricing-note:last-child { margin-top: 14px; }
.takeoff-quote-dialog .takeoff-pricing-analysis > button { margin-top: 12px; }
.takeoff-quote-dialog :is(.takeoff-pricing-component-columns,.takeoff-pricing-component) {
  grid-template-columns: minmax(106px,1.1fr) minmax(100px,1.45fr) minmax(52px,.65fr) minmax(94px,1fr) minmax(68px,.8fr) minmax(68px,.8fr) 38px;
  gap: 8px;
  min-width: 0;
  padding-inline: 8px;
}
.takeoff-quote-dialog .takeoff-pricing-component { padding-block: 6px; }
.takeoff-workspace[data-workspace-view] .takeoff-quote-dialog .takeoff-pricing-component .takeoff-pricing-field > input { padding-inline: 6px; border-color: var(--takeoff-line); background: var(--takeoff-surface); }
.takeoff-workspace[data-workspace-view] .takeoff-quote-dialog .takeoff-pricing-component .takeoff-pricing-field > input:read-only { background: var(--takeoff-surface-raised); }
.takeoff-quote-dialog .takeoff-pricing-component-amount output { display: inline-block; max-width: 100%; }
.takeoff-workspace[data-workspace-view] .takeoff-quote-dialog .takeoff-pricing-component-heading button { width: 38px; min-height: 38px; padding: 0; }
.takeoff-quote-dialog .takeoff-pricing-quote { display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 0; min-height: 0; padding: 0; border-top: 0; border-left: 1px solid var(--takeoff-line); background: var(--takeoff-surface-raised); }
.takeoff-quote-summary { min-width: 0; min-height: 0; padding: 20px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.takeoff-quote-dialog .takeoff-pricing-quote h3 { margin: 0; font-size: 17px; letter-spacing: 0; }
.takeoff-quote-dialog .takeoff-quote-preview dl { display: block; }
.takeoff-quote-dialog .takeoff-quote-preview dl > div { flex-direction: row; gap: 8px; padding: 10px 0; }
.takeoff-quote-dialog .takeoff-quote-preview dd { font-size: 14px; }
.takeoff-quote-dialog .takeoff-quote-preview .takeoff-quote-subtotal { gap: 7px; margin-top: 13px; padding: 14px; }
.takeoff-quote-dialog .takeoff-quote-subtotal strong { font-size: 26px; }
.takeoff-quote-dialog .takeoff-pricing-form-actions { gap: 6px; max-width: none; margin: 0; padding: 12px 20px; border-top: 1px solid var(--takeoff-line); background: var(--takeoff-surface); }
.takeoff-quote-dialog #takeoff-pricing-save[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.takeoff-quote-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; padding: 9px 20px; border-top: 1px solid var(--takeoff-line); background: var(--takeoff-surface); }
.takeoff-quote-footer .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.takeoff-quote-footer .takeoff-icon { width: 16px; height: 16px; }
@media (max-width: 1010px) {
  .takeoff-quote-dialog .takeoff-pricing-workspace-form { display: block; overflow: auto; overscroll-behavior: contain; scroll-padding-block-end: 88px; }
  .takeoff-quote-dialog .takeoff-pricing-editor { overflow: visible; }
  .takeoff-quote-dialog .takeoff-pricing-quote { display: contents; }
  .takeoff-quote-summary { overflow: visible; border-top: 1px solid var(--takeoff-line); background: var(--takeoff-surface-raised); }
  .takeoff-quote-dialog .takeoff-pricing-form-actions { position: sticky; z-index: 1; bottom: 0; }
}
@media (max-width: 770px) {
  .takeoff-quote-dialog { width: calc(100% - 24px); height: calc(100dvh - 24px); }
  .takeoff-quote-header,.takeoff-quote-footer { padding-inline: 12px; }
  .takeoff-quote-dialog .takeoff-pricing-editor,.takeoff-quote-summary { padding: 16px; }
  .takeoff-quote-dialog .takeoff-pricing-form-actions { padding: 8px 16px; }
}
@media (max-width: 670px) {
  .takeoff-quote-dialog .takeoff-pricing-component-columns { display: none; }
  .takeoff-quote-dialog .takeoff-pricing-component { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 8px 10px; padding: 10px 0; }
  .takeoff-quote-dialog .takeoff-pricing-component .takeoff-pricing-field { grid-column: auto; grid-row: auto; gap: 4px; }
  .takeoff-quote-dialog .takeoff-pricing-component :is([data-component-choice-field="category"], label:has([data-component-field="name"])) { grid-column: 1 / -1; }
  .takeoff-quote-dialog .takeoff-pricing-component-heading { display: flex; grid-column: 1 / -1; grid-row: auto; }
  .takeoff-quote-dialog .takeoff-pricing-component-amount { display: grid; grid-column: 2; grid-row: auto; align-items: stretch; justify-content: stretch; gap: 4px; text-align: left; }
  .takeoff-quote-dialog .takeoff-pricing-component-amount output { display: flex; align-items: center; min-height: 44px; }
  .takeoff-quote-dialog .takeoff-pricing-component :is(label > span,.takeoff-pricing-component-choice > label,.takeoff-pricing-component-heading > strong,.takeoff-pricing-component-amount > span) { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; }
  .takeoff-workspace[data-workspace-view] .takeoff-quote-dialog .takeoff-pricing-component .takeoff-pricing-field > input { min-height: 44px; padding: 8px; font-size: 16px; }
  .takeoff-quote-dialog .takeoff-pricing-choice-control { --choice-height: 44px; font-size: 16px; }
  .takeoff-workspace[data-workspace-view] .takeoff-quote-dialog .takeoff-pricing-component-heading button { width: 44px; min-height: 44px; }
}
