.project-cost-editor { min-width: 0; padding-top: 20px; border-top: 1px solid var(--line, #d9dfe7); }
.project-cost-editor [hidden] { display: none !important; }
.project-cost-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.project-cost-head > div { min-width: 0; }
.project-cost-head h3 { margin: 0; font-size: var(--workspace-section-heading-size, 18px); font-weight: var(--workspace-heading-weight, 700); line-height: var(--workspace-section-heading-leading, 1.5); }
.project-cost-head p, .project-cost-hint, .project-cost-message, .project-cost-close-confirm p, .project-cost-comparison > p { margin: 6px 0 0; color: var(--muted, #52627a); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.project-cost-head > button { flex: 0 0 auto; margin: 0; min-height: 44px; }
.project-cost-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.project-cost-actions:has(> [hidden]:first-child):has(> [hidden]:last-child) { margin-top: 0; }
.project-cost-actions button { min-height: 44px; max-width: 100%; margin: 0; white-space: normal; line-height: 1.5; }
.project-cost-message:empty { margin: 0; }
.project-cost-close-confirm, .project-cost-comparison { margin-top: 16px; padding: 16px; border: 1px solid var(--line, #d9dfe7); border-radius: 8px; background: var(--background, #f5f6f8); }
.project-cost-comparison h4 { margin: 0; font-size: var(--workspace-subheading-size, 16px); font-weight: var(--workspace-heading-weight, 700); line-height: var(--workspace-subheading-leading, 1.5); }
.project-cost-comparison table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.project-cost-comparison th, .project-cost-comparison td { padding: 8px 6px; border-bottom: 1px solid var(--line, #d9dfe7); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.project-cost-comparison th:first-child { width: 42%; text-align: left; }
.project-cost-editor :is(button, h3, h4):focus-visible { outline: 3px solid var(--brand, #2868f0); outline-offset: 3px; }
@media (max-width: 600px) {
  .project-cost-editor { padding-top: 16px; }
  .project-cost-close-confirm, .project-cost-comparison { padding: 12px; }
  .project-cost-comparison th, .project-cost-comparison td { padding: 8px 4px; font-size: 13px; }
}
