.scope-entry { display: block; min-height: 0; max-width: 850px; }
.fde-cost-start { display: grid; justify-items: start; gap: 14px; padding: 20px; color: var(--muted); }
.fde-rate-detail { margin-top: 7px; font-size: 12px; color: var(--muted); }
.fde-rate-detail summary, .fde-budget-reference summary, .fde-handoff > summary { cursor: pointer; color: var(--green-dark); }
.fde-rate-detail[open] > span { display: block; margin: 6px 0 1px; }
.fde-volume { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; white-space: nowrap; }
.fde-pending-link { margin-top: 5px; }
@container (min-width: 691px) {
  .fde-cost-table :is(th, td):nth-child(3) { width: 30%; }
  .fde-cost-table :is(th, td):nth-child(4) { width: 17%; }
}
.fde-budget-edit { display: grid; gap: 17px; padding: 18px; }
.fde-budget-pair { margin: 0; padding: 0; min-width: 0; border: 0; }
.fde-budget-pair legend { margin-bottom: 5px; padding: 0; font-weight: 680; font-size: 14px; }
.fde-budget-pair > div { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 7px; }
.fde-budget-pair > div > span { padding-bottom: 9px; color: var(--muted); }
.fde-budget-pair .field > span { font-size: 12px; font-weight: 480; color: var(--muted); }
.fde-budget-pair > button { margin-top: 5px; }
.fde-budget-reference { padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.fde-budget-reference dl { display: grid; gap: 5px; margin: 12px 0 5px; }
.fde-budget-reference dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.fde-budget-reference dd { margin: 0; font-weight: 650; }
.fde-budget-reference .source-link { margin-top: 5px; }
.fde-proposal-export { padding: 0 18px 18px; }
#budget-form > .budget-feedback:empty { display: none; }
.fde-handoff { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.fde-handoff > summary { padding: 15px 18px; font-size: 14px; font-weight: 620; }
.fde-handoff .handoff-panel { border: 0; background: transparent; }
.fde-handoff .panel-header { display: none; }
@media screen and (min-width: 1190px) {
  .workspace:has(> #budget-form + .proposal) { grid-template-columns: minmax(276px, .69fr) minmax(0, 1.31fr); }
  .workspace > .fde-handoff { grid-column: 1; width: 100%; margin-top: 0; }
  .workspace:has(> #budget-form) > .stage-footer { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .fde-budget-pair input, .fde-cost-table input[type=number] { font-size: 16px; }
}

.fde-scope-extra { min-width: 0; }
.fde-scope-extra > summary { cursor: pointer; font-size: 13px; color: var(--green-dark); }
.fde-scope-extra .field { margin-top: 12px; }

.fde-preview-link { display: none; }
@media screen and (max-width: 1189px) {
  .fde-proposal-export { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
  .fde-preview-link { display: inline-block; }
}
