.cost-page{max-width:1440px;margin:auto}.cost-tabs,.cost-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.cost-panel{overflow-wrap:anywhere;padding:22px;margin-bottom:16px;min-width:0}.cost-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.cost-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.cost-form{display:grid;gap:16px}.cost-form label{display:grid;gap:6px;min-width:0}.cost-form input,.cost-form select,.cost-form textarea{width:100%;min-width:0;box-sizing:border-box}.cost-line{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #e5e8ee;border-radius:10px;padding:16px;margin:0 0 14px;min-width:0}.cost-line label:first-of-type,.cost-line label:last-of-type{grid-column:1/-1}.cost-result dl{display:grid;grid-template-columns:1fr auto;gap:12px}.cost-result dd{margin:0;font-weight:700}.cost-result dt{color:#65708b}.cost-result p{overflow-wrap:anywhere}.cost-blockers{background:#fff5da;padding:14px;border-radius:8px}.cost-error{color:#b42335;white-space:pre-line}.cost-panel blockquote{margin:16px 0;border-left:3px solid #2c55d8;padding:12px 18px;background:#f5f7fc}.cost-panel a{color:#2c55d8}.cost-panel li{margin:8px 0}.cost-panel button{white-space:normal}.cost-result{position:sticky;top:18px}@media(max-width:900px){.cost-layout{grid-template-columns:1fr}.cost-result{position:static}.cost-panel{padding:16px}.cost-line{grid-template-columns:1fr}.cost-page .page-heading{align-items:stretch;gap:12px;flex-direction:column}.cost-tabs button{flex:1}.cost-list{grid-template-columns:1fr}}

.cost-dialog{width:min(620px,calc(100vw - 32px));max-height:88vh;overflow:auto;border:1px solid #e5e8ee;border-radius:14px;padding:24px;color:#172650}.cost-dialog::backdrop{background:#17265070}.cost-dialog .cost-form label{display:grid;gap:8px}.cost-dialog input,.cost-dialog select,.cost-dialog textarea{max-width:100%;box-sizing:border-box}.cost-dialog input[type=checkbox]{width:20px;height:20px}.cost-pre{white-space:pre-wrap;overflow-wrap:anywhere}

.quote-editor{display:grid;gap:16px;min-width:0}.quote-modes{display:flex;gap:4px;padding:4px;background:#E9E7E0;border-radius:12px}.quote-modes button{flex:1;white-space:normal;min-height:48px;border:0;background:transparent;color:#5F625C}.quote-modes button[aria-pressed=true]{background:#fff;color:#1F4D36;box-shadow:0 1px 3px #0001}.quote-settings{border:1px solid #E3E1D9;border-radius:10px;padding:12px}.quote-settings summary{cursor:pointer;padding:4px}.quote-settings[open]{display:grid;gap:12px}.quote-footer{position:sticky;bottom:0;z-index:3;background:#fff;border:1px solid #D6D3C9;border-top:3px solid #1F4D36;border-radius:12px;padding:16px;display:grid;gap:10px;box-shadow:0 -4px 16px #00000008}.quote-footer>button{min-height:48px;width:100%}.quote-footer p{margin:0;line-height:1.45}.quote-footer section{display:grid;gap:4px}.quote-footer strong{font-size:18px;color:#1F4D36}.quote-editor [hidden]{display:none!important}@media(max-width:700px){.quote-modes button{font-size:13px;padding:8px}.quote-footer{padding:12px;bottom:0}.quote-footer p{font-size:13px}}
