:root { --doc-bg: #fff; --doc-text: #111; --doc-total-color: #c026d3; }
body { min-height: 100vh; }
.budget-shell { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 64px; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.workspace-title { display: flex; align-items: center; gap: 18px; }
.main-logo-img { width: 50px; height: 50px; object-fit: contain; border-radius: 12px; background: var(--suite-surface); }
.workspace-title h1 { margin: 4px 0 2px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.045em; }
.workspace-title p:last-child { margin: 0; color: var(--suite-muted); font-size: 14px; }
.workspace-actions { display: flex; gap: 10px; }
.workspace-actions button, .add-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border-radius: 12px; border: 1px solid var(--suite-border); color: var(--suite-text); cursor: pointer; font-weight: 750; transition: .2s ease; }
.workspace-actions svg, .add-btn svg { width: 18px; height: 18px; }
.ghost-btn { background: var(--suite-surface); }
.ghost-btn:hover { border-color: #4a4a55; background: var(--suite-surface-2); }
.primary-action, .add-btn { border-color: transparent !important; background: var(--suite-accent); box-shadow: 0 8px 24px rgba(200, 60, 255, .18); }
.primary-action:hover, .add-btn:hover { background: var(--suite-accent-strong); transform: translateY(-1px); }
.budget-layout { display: grid; grid-template-columns: minmax(340px, 410px) minmax(0, 1fr); gap: 20px; align-items: start; }
.controls-panel { border: 1px solid var(--suite-border); border-radius: 20px; background: rgba(21,21,26,.92); box-shadow: var(--suite-shadow); overflow: hidden; }
.progress-rail { height: 3px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--suite-bg); }
.progress-rail span { background: #292930; }.progress-rail span.active { background: linear-gradient(90deg,var(--suite-cyan),var(--suite-accent)); }
.accordion { border-bottom: 1px solid var(--suite-border); }.accordion:last-child { border-bottom: 0; }
.accordion summary { min-height: 78px; display: grid; grid-template-columns: 38px 1fr 22px; align-items: center; gap: 12px; padding: 0 22px; list-style: none; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary > svg { width: 19px; color: var(--suite-muted); transition: transform .25s ease; }.accordion[open] summary > svg { transform: rotate(180deg); }
.step-number { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #35353d; border-radius: 10px; color: var(--suite-muted); font-size: 11px; font-weight: 800; }
.accordion[open] .step-number { color: var(--suite-accent); border-color: rgba(200,60,255,.32); background: rgba(200,60,255,.08); }
.accordion summary small, .accordion summary strong { display: block; }.accordion summary small { margin-bottom: 3px; color: var(--suite-muted); font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }.accordion summary strong { font-size: 16px; }
.accordion-content { padding: 3px 22px 24px; }
.field { margin-bottom: 16px; }.field label, .range-head label, .mini-label { display: block; margin-bottom: 7px; color: #b5b5bf; font-size: 13px; font-weight: 650; }
.field input, .field select { width: 100%; min-height: 45px; padding: 0 13px; border: 1px solid var(--suite-border); border-radius: 11px; outline: 0; background: #202026; color: var(--suite-text); transition: .2s; }.field input::placeholder { color: #666672; }.field input:focus, .field select:focus { border-color: var(--suite-accent); box-shadow: 0 0 0 3px rgba(200,60,255,.12); }
.field-row { display: grid; grid-template-columns: 1fr 105px; gap: 12px; }.field-row .field { min-width: 0; }
.input-prefix, .input-suffix { display: flex; align-items: center; border: 1px solid var(--suite-border); border-radius: 11px; background: #202026; overflow: hidden; }.input-prefix span, .input-suffix span { padding: 0 12px; color: var(--suite-muted); font-size: 13px; }.input-prefix input, .input-suffix input { border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }.input-prefix:focus-within, .input-suffix:focus-within { border-color: var(--suite-accent); box-shadow: 0 0 0 3px rgba(200,60,255,.12); }
.add-btn { width: 100%; margin-top: 3px; }
.section-label { margin: 22px 0 13px; padding-top: 18px; border-top: 1px solid var(--suite-border); color: var(--suite-text); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.file-row { display: flex; gap: 8px; }.file-row input[type=file] { padding: 9px; min-width: 0; }.icon-btn { width: 45px; flex: 0 0 45px; border: 1px solid var(--suite-border); border-radius: 11px; background: #202026; color: var(--suite-muted); cursor: pointer; }.icon-btn svg { width: 18px; }.helper { display: block; margin-top: 6px; color: #777782; font-size: 12px; }
.subpanel { margin: 2px 0 16px; padding: 14px; border: 1px solid var(--suite-border); border-radius: 12px; background: rgba(0,0,0,.13); }.range-head { display: flex; justify-content: space-between; gap: 10px; }.range-head output { color: var(--suite-muted); font-size: 12px; }input[type=range] { width: 100%; accent-color: var(--suite-accent); }.mini-label { margin-top: 13px; }
.button-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }.button-group button { min-height: 38px; border: 1px solid var(--suite-border); border-radius: 9px; background: #202026; color: var(--suite-muted); cursor: pointer; }.button-group button:hover { color: #fff; border-color: #4a4a55; }.button-group svg { width: 17px; }
.check-row { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 650; }.check-row input { width: 16px; height: 16px; accent-color: var(--suite-accent); }.range-disabled { margin-top: 12px; opacity: .45; pointer-events: none; }
.color-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.color-field { display: flex; gap: 6px; }.color-field input[type=color] { flex: 0 0 42px; padding: 4px; }.color-field input[type=text] { min-width: 0; padding: 0 7px; font-family: ui-monospace,monospace; font-size: 12px; }
.preview-wrap { position: sticky; top: 92px; min-width: 0; border: 1px solid var(--suite-border); border-radius: 20px; background: #050506; box-shadow: var(--suite-shadow); overflow: hidden; }
.preview-bar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--suite-border); color: var(--suite-muted); background: var(--suite-surface); font-size: 13px; font-weight: 700; }.preview-bar span { display: flex; align-items: center; gap: 8px; }.preview-bar svg { width: 17px; }.page-badge { padding: 5px 8px; border-radius: 7px; background: #25252c; font-size: 11px; }
.preview-panel { min-height: calc(100vh - 190px); display: flex; justify-content: center; align-items: flex-start; padding: 30px 18px; overflow: hidden; }
.budget-document { width: 794px; min-height: 1123px; flex: 0 0 794px; display: flex; flex-direction: column; position: relative; padding: 68px; color: var(--doc-text); background-color: var(--doc-bg); background-size: cover; background-position: center; box-shadow: 0 18px 50px rgba(0,0,0,.45); transform-origin: top center; }
.doc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 2px solid var(--doc-text); }.doc-logo-container,.doc-info { flex: 1; max-width: 50%; min-width: 0; }.logo-resize-wrapper { display: inline-block; width: 250px; max-width: 100%; min-width: 50px; resize: horizontal; overflow: hidden; }.doc-logo-img { display: block; width: 100%; height: auto; }.doc-subtitle { display: inline-block; margin-top: 6px; font-size: 12px; letter-spacing: 2px; opacity: .7; }.doc-info { text-align: right; }.doc-info h3 { margin: 0 0 5px; font-size: 23px; }.doc-info p { margin: 3px 0; font-size: 14px; opacity: .8; }.doc-info #doc-client-display { font-size: 17px; font-weight: 700; opacity: 1; }
.empty-document { margin: 80px auto 0; text-align: center; color: #8a8a92; }.empty-document span { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--doc-total-color); background: rgba(192,38,211,.08); }.empty-document svg { width: 24px; }.empty-document strong { display: block; color: #333; font-size: 16px; }.empty-document p { margin: 7px 0 0; font-size: 13px; }
.doc-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }.doc-table th { padding: 12px 0; border-bottom: 2px solid var(--doc-text); text-align: left; font-size: 13px; }.doc-table td { padding: 15px 0; border-bottom: 1px solid rgba(128,128,128,.3); font-size: 14px; }.text-right { text-align: right !important; }.delete-btn { background: transparent; border: 0; color: #dc2626; cursor: pointer; }
.doc-totals { width: 350px; align-self: flex-end; margin: auto 0 30px; }.total-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,.25); }.total-label { font-size: 16px; font-weight: 800; }.total-amount { color: var(--doc-total-color); font-size: 19px; font-weight: 800; }.total-row.final .total-label { font-size: 19px; }.total-row.final .total-amount { font-size: 24px; }
.doc-footer { margin-top: 20px; padding-top: 19px; border-top: 1px solid rgba(128,128,128,.22); text-align: center; color: inherit; font-size: 14px; opacity: .74; }.doc-footer p { margin: 4px 0; }.doc-footer .fine-print { font-size: 12px; }.contact-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 9px !important; font-weight: 700; opacity: 1; }.contact-info a { color: inherit; text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 1200; transform: translate(-50%,20px); padding: 12px 16px; border: 1px solid rgba(69,224,208,.25); border-radius: 11px; color: #d9fff9; background: rgba(15,28,27,.95); box-shadow: 0 14px 35px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: .25s ease; font-size: 14px; font-weight: 700; }.toast.show { opacity: 1; transform: translate(-50%,0); }
.mobile-switch { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }.spin { animation: spin 1s linear infinite; }
@media (max-width: 1050px) { .budget-layout { grid-template-columns: 360px minmax(0,1fr); }.budget-document { padding: 58px; } }
@media (max-width: 840px) {
  .budget-shell { width: min(100% - 24px,1500px); padding-top: 20px; }.workspace-header { align-items: flex-start; }.main-logo-img { display: none; }.workspace-title p:last-child { display: none; }.workspace-actions .ghost-btn span { display: none; }.workspace-actions .ghost-btn { width: 46px; padding: 0; }.mobile-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 12px; padding: 4px; border: 1px solid var(--suite-border); border-radius: 12px; background: var(--suite-surface); }.mobile-switch button { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9px; color: var(--suite-muted); background: transparent; font-weight: 750; }.mobile-switch button.active { color: #fff; background: #292930; }.mobile-switch svg { width: 18px; }.budget-layout { display: block; }.preview-wrap { position: relative; top: auto; display: none; }.budget-layout[data-mobile-view=preview] .controls-panel { display: none; }.budget-layout[data-mobile-view=preview] .preview-wrap { display: block; }.preview-panel { min-height: auto; padding: 18px 8px; }.controls-panel { border-radius: 16px; }
}
@media (max-width: 520px) { .budget-shell { width: min(100% - 16px,1500px); }.workspace-title h1 { font-size: 28px; }.workspace-actions { gap: 6px; }.workspace-actions button { min-height: 42px; padding: 0 12px; }.primary-action span { display: none; }.primary-action { width: 44px; }.accordion summary { padding: 0 16px; }.accordion-content { padding: 3px 16px 22px; }.color-grid { grid-template-columns: 1fr; }.budget-document { padding: 52px; }.contact-info { gap: 4px; } }
