.budget-main{max-width:1480px}.budget-heading{margin-bottom:28px}.budget-heading h1{font-size:clamp(30px,3.5vw,43px);max-width:800px}.budget-heading>.secondary-button{white-space:nowrap}.budget-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:30px;align-items:start}.history-panel{position:sticky;top:20px;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}.panel-heading h2{font:750 15px/1.4 system-ui;letter-spacing:0;margin:0}.panel-heading .text-button{font-size:12px}.history-list{display:grid;gap:8px;margin:14px 0}.history-entry{display:block;width:100%;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:13px}.history-entry.active{border-color:var(--accent);background:var(--accent-soft)}.history-entry small,.history-entry span{display:block;font-size:12px;color:var(--muted)}.history-entry strong{display:block;font-size:14px;line-height:1.35;margin:5px 0;overflow-wrap:anywhere}.history-entry .history-value{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;font-size:13px;color:var(--ink)}.history-entry .history-project{margin-bottom:8px}.budget-editor{min-width:0}.budget-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:16px}.budget-toolbar h2{font-size:26px;margin:0 0 5px}.budget-toolbar p{margin:0}.budget-toolbar .button-row{justify-content:flex-end}.panel-card{padding:25px;background:var(--paper);border:1px solid var(--line);border-radius:8px;margin-bottom:20px;box-shadow:var(--shadow)}.section-kicker{display:flex;align-items:center;gap:10px;margin-bottom:20px}.section-kicker>span{font-size:12px;font-weight:750;color:var(--accent);background:var(--accent-soft);display:grid;place-items:center;width:27px;height:27px;border-radius:50%;flex-shrink:0}.section-kicker h3{margin:0;font-size:18px;letter-spacing:-.02em}.section-kicker small{margin-left:auto;color:var(--muted);font-size:13px}.validity-field{border-left:2px solid var(--line);padding-left:14px;align-self:center;display:grid;gap:3px;font-size:14px}.validity-field>span,.validity-field small{font-size:12px;color:var(--muted)}.payment-line{display:flex;gap:12px;font-size:13px;margin:19px 0 0;padding-top:15px;border-top:1px solid var(--line);color:var(--muted)}.payment-line strong{color:var(--ink);flex-shrink:0}.composer-tabs{display:flex;border-bottom:1px solid var(--line);gap:22px;margin:0 0 20px}.composer-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:0 0 11px;font-size:14px;font-weight:650;color:var(--muted)}.composer-tabs button.active{border-color:var(--accent);color:var(--accent)}.optional{font-size:12px;font-weight:400;color:var(--muted);display:inline}.item-note{margin-top:20px}.item-estimate{border-top:1px solid var(--line);padding:17px 0;margin-top:20px;display:flex;align-items:baseline;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:14px}.item-estimate strong{font-size:23px;letter-spacing:-.03em}.item-estimate small{color:var(--muted)}.item-estimate ul{width:100%;margin:0;padding-left:18px;color:var(--muted);font-size:12px}.item-estimate .error{margin:0}.custom-intro{margin-bottom:18px}.custom-intro+.form-grid{margin-bottom:20px}.budget-table-wrap{overflow:auto;margin:0 -25px}.budget-table{min-width:600px;font-size:13px}.budget-table th{padding:12px 15px;background:var(--bg);font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.02em}.budget-table td{padding:16px 15px}.budget-table th:first-child,.budget-table td:first-child{padding-left:25px}.budget-table th:last-child,.budget-table td:last-child{padding-right:25px}.budget-table th:nth-child(n+2),.budget-table td:nth-child(n+2){text-align:right;white-space:nowrap}.budget-table .item-label{font-weight:750;display:block;min-width:190px;white-space:normal}.budget-table .item-description{font-size:12px;white-space:pre-line;color:var(--muted);margin:5px 0 0;max-width:420px;overflow-wrap:anywhere}.item-actions{display:flex;gap:5px;justify-content:flex-end}.item-actions button{padding:5px 7px;min-height:32px;font-size:12px}.budget-total{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin-top:17px;padding:19px 0 0;border-top:2px solid var(--ink)}.budget-total span{font-size:14px;font-weight:650}.budget-total strong{font-size:32px;letter-spacing:-.03em;white-space:nowrap}.notes-field{margin-top:23px}.compact-copy{font-size:14px;margin-top:-5px}.detail-cards{display:grid;gap:14px}.detail-card{border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--bg)}.detail-card-head{display:flex;gap:15px;padding:15px;align-items:start}.detail-card-thumb{width:94px;height:94px;object-fit:cover;border-radius:4px;background:var(--paper);flex-shrink:0}.detail-card-placeholder{width:65px;height:65px;display:grid;place-items:center;color:var(--muted);border:1px solid var(--line);border-radius:5px;font-size:11px;text-align:center;flex-shrink:0}.detail-card-info{min-width:0;flex:1}.detail-card-info h4{margin:0 0 5px;font-size:15px}.detail-card-info p{margin:0;color:var(--muted);font-size:13px;white-space:pre-line}.detail-card-info .card-used{font-size:11px;margin-top:8px}.detail-card .check-field{margin:10px 0 0;font-size:12px}.detail-card .check-field input{width:17px;height:17px}.card-edit{border-top:1px solid var(--line);padding:0 15px 15px}.card-edit summary{padding:12px 0 0;font-size:12px;font-weight:650;color:var(--accent)}.card-edit .form-grid{margin-top:15px;gap:12px}.card-edit .field{font-size:12px}.card-edit .field textarea{min-height:85px;font-size:14px}.card-edit .field select,.card-edit .field input{font-size:14px}.card-edit .field-hint{font-size:12px}.photo-picker{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.photo-option{width:65px;height:65px;border:2px solid transparent;background:var(--paper);border-radius:4px;padding:2px;line-height:0}.photo-option[aria-pressed=true]{border-color:var(--accent)}.photo-option img{width:100%;height:100%;object-fit:cover}.photo-option:disabled{opacity:1}.export-panel{padding:25px;border:1px solid var(--accent);background:var(--accent-soft);border-radius:8px;display:flex;justify-content:space-between;gap:25px;align-items:center}.export-panel .eyebrow{font-size:10px;margin-bottom:7px}.export-panel h3{font-size:19px;margin:0 0 8px}.export-panel p{font-size:13px;max-width:530px;margin:0;color:var(--muted)}.export-panel .button-row{flex-shrink:0;flex-direction:column;align-items:stretch}.pdf-dialog{width:1100px;max-width:96vw}.pdf-dialog iframe{border:1px solid var(--line);display:block;width:100%;height:72vh;background:#555}.pdf-dialog>.field-hint{margin-top:10px}.status-message:empty{display:none}#conflictActions p{margin-bottom:10px}#historyStatus:empty,#catalogStatus:empty,#pdfStatus:empty{display:none}#pendingDraft{margin-top:20px}#budgetApp[aria-busy=true] .budget-editor{opacity:.75}#budgetApp[aria-busy=true] .history-entry{pointer-events:none}
.badge-views{display:grid;grid-template-columns:repeat(2,minmax(0,140px));gap:12px;padding:0 15px 15px}.badge-views figure{margin:0;min-width:0}.badge-views img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#eeeeec;border:1px solid var(--line);border-radius:5px}.badge-views figcaption{font-size:11px;color:var(--muted);margin-top:5px;text-align:center}
.budget-toolbar #numberHint{margin:0 0 5px;font-size:12px}.history-entry .history-author{font-size:11px;margin-top:8px}.commercial-terms{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:12px 20px;padding-top:14px;margin-top:14px;border-top:1px solid var(--line)}.commercial-terms p{display:grid;gap:3px;font-size:13px;margin:0;color:var(--muted)}.commercial-terms strong{color:var(--ink);font-size:13px}.pdf-dialog>#previewDownload{margin-top:12px}.budget-toolbar .primary-button{white-space:nowrap}
@media(max-width:1100px){.budget-layout{grid-template-columns:215px minmax(0,1fr);gap:20px}.budget-toolbar{align-items:start;flex-direction:column;gap:12px}.export-panel{flex-direction:column;align-items:stretch}.export-panel .button-row{flex-direction:row}.budget-heading h1{font-size:35px}}
@media(max-width:800px){.budget-layout{grid-template-columns:1fr}.history-panel{position:static;border-bottom:1px solid var(--line);padding-bottom:20px}.history-list{grid-template-columns:repeat(3,minmax(0,1fr));max-height:235px;overflow:auto}.history-entry{padding:10px}.history-panel>.field{max-width:500px}.budget-toolbar{flex-direction:row;align-items:center}.budget-heading{display:flex;align-items:center}.budget-heading h1{font-size:31px}.budget-main{padding:24px 20px}.budget-editor .form-grid{grid-template-columns:1fr 1fr}.export-panel{flex-direction:row;align-items:center}.export-panel .button-row{flex-direction:column}}
@media(max-width:600px){.budget-main{padding:23px 16px}.budget-heading{display:block}.budget-heading>.secondary-button{margin-top:16px}.budget-heading h1{font-size:30px}.history-list{grid-template-columns:1fr 1fr;max-height:230px}.history-entry strong{font-size:13px}.history-entry .history-value{font-size:12px;flex-wrap:wrap}.budget-toolbar{display:block}.budget-toolbar .button-row{margin-top:14px;justify-content:flex-start}.panel-card{padding:19px;margin-bottom:16px}.budget-table-wrap{margin:0 -19px}.section-kicker h3{font-size:16px}.budget-table th:first-child,.budget-table td:first-child{padding-left:19px}.budget-table th:last-child,.budget-table td:last-child{padding-right:19px}.budget-editor .form-grid{gap:13px}.payment-line{display:grid;gap:4px}.budget-total strong{font-size:27px}.budget-total span{font-size:13px}.detail-card-head{padding:12px;gap:12px}.detail-card-thumb{width:76px;height:85px}.detail-card-info h4{font-size:14px}.detail-card-info p{font-size:12px}.export-panel{display:block;padding:20px}.export-panel .button-row{margin-top:18px;flex-direction:row}.export-panel .button-row button{flex:1}.top-actions .admin-link{display:none}.top-actions{gap:6px}.top .quiet-button{font-size:12px;padding:8px}.top .brand-logo{width:100px}.pdf-dialog{padding:13px}.pdf-dialog .dialog-top h2{font-size:19px}.composer-tabs{gap:16px}.composer-tabs button{font-size:13px}.item-estimate strong{font-size:21px}}
@media(max-width:400px){.budget-editor .form-grid{grid-template-columns:1fr}.history-list{grid-template-columns:1fr}.budget-total{flex-wrap:wrap}.detail-card-thumb{width:62px;height:76px}.export-panel .button-row{flex-direction:column}.section-kicker{gap:8px}.budget-toolbar .button-row button{padding:9px 11px;font-size:13px}.top .brand-logo{width:87px}}
@media(max-width:600px){.commercial-terms{grid-template-columns:1fr}.export-panel .button-row .primary-button{white-space:normal}}
