:root{color-scheme:light;font-family:Pretendard,Noto Sans KR,Apple SD Gothic Neo,system-ui,sans-serif;color:#20252d;background:#eceff2;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#eceff2}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-header{height:64px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;color:#fff;background:#243247;border-bottom:1px solid #182231}.brand-lockup{display:flex;align-items:baseline;gap:12px}.brand-lockup strong{font-size:20px;letter-spacing:-.04em}.brand-lockup span{color:#bdc7d4;font-size:13px}.header-status{color:#d6dde6;font-size:12px}.workspace{display:grid;grid-template-columns:minmax(430px,510px) minmax(680px,1fr);min-height:calc(100vh - 64px)}.editor-panel{padding:24px;background:#f5f6f7;border-right:1px solid #d6dbe1;overflow:auto}.preview-panel{min-width:0;padding:24px 30px 32px;overflow:auto}.panel-heading,.preview-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.heading-actions{display:flex;gap:7px}.panel-heading h2,.preview-toolbar h2{margin:0;font-size:19px;letter-spacing:-.03em}.zoom-note{color:#6f7782;font-size:12px}.form-section{margin-bottom:14px;padding:18px;background:#fff;border:1px solid #dce0e5;border-radius:5px}.profile-section{border-top:3px solid #243247}.profile-summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}.profile-summary::-webkit-details-marker{display:none}.profile-summary h3{margin:2px 0 0;font-size:14px}.profile-summary h3 small{color:#747c86;font-size:11px;font-weight:600}.profile-summary-action:before{content:"설정 펼치기";color:#31577f;font-size:11px;font-weight:700}.profile-section[open] .profile-summary-action:before{content:"접기"}.profile-body{margin-top:15px;padding-top:15px;border-top:1px solid #e0e4e8}.profile-section:not([open]) .profile-body{display:none}.profile-management{justify-content:flex-end;margin-bottom:12px}.ledger-section{border-left:3px solid #566b83}.section-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-title-row h3{margin:2px 0 0;font-size:14px}.section-kicker{color:#7a828d;font-size:10px;font-weight:700;letter-spacing:.08em}.profile-actions{display:flex;gap:12px}.form-grid{display:grid;gap:12px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field{display:flex;min-width:0;flex-direction:column;gap:6px}.field.full{grid-column:1 / -1}.field span{color:#555d68;font-size:11px;font-weight:700}.field small{color:#9097a0;font-size:10px;font-weight:500}.field input,.field select,.field textarea{width:100%;min-height:40px;padding:9px 10px;color:#20252d;background:#fff;border:1px solid #cfd5dc;border-radius:3px;outline:none;transition:border-color .15s,box-shadow .15s}.field textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#4a607e;box-shadow:0 0 0 2px #364c6a1a}.field input:disabled,.field select:disabled,.field textarea:disabled{color:#59616c;background:#f1f3f5;cursor:not-allowed}.file-field input{padding:7px;font-size:11px}.ghost-button,.text-button,.secondary-button,.primary-button{border-radius:3px;font-weight:700;transition:background .15s}.ghost-button{padding:8px 11px;color:#344254;background:#fff;border:1px solid #ccd2d9;font-size:11px}.text-button{padding:0;color:#31577f;background:transparent;border:0;font-size:11px}.text-button.danger,.remove-item{color:#a84a52}.secondary-button{padding:10px 14px;color:#2f3d4e;background:#fff;border:1px solid #c5ccd4}.primary-button{padding:11px 19px;color:#fff;background:#243247;border:1px solid #243247}.full-button{width:100%;margin-top:13px}.ghost-button:hover,.secondary-button:hover{background:#f0f2f4}.primary-button:hover{background:#172334}button:disabled{cursor:wait;opacity:.6}.client-search-wrap{position:relative;margin-bottom:14px;padding-bottom:13px;border-bottom:1px solid #e3e6e9}.sync-note{margin:7px 0 0;color:#737b85;font-size:10px}.ledger-help{margin:12px 0 8px;color:#6a727d;font-size:10px;line-height:1.55}.ledger-help a{color:#31577f;font-weight:700}.ledger-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;color:#69717c;background:#f4f6f8;border:1px solid #dce1e6;border-radius:3px;font-size:10px}.ledger-status.complete{color:#285b40;background:#edf7f1;border-color:#bed8c8}.ledger-status.cancelled{color:#81434a;background:#fbf0f1;border-color:#e4c5c8}.ledger-status strong{font-size:11px}.ledger-status-copy{display:flex;min-width:0;flex-direction:column;gap:3px}.ledger-status-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}.ledger-status-actions button,.ledger-status-actions a{padding:0;color:#31577f;background:transparent;border:0;font-size:10px;font-weight:700;text-decoration:none}.ledger-status-actions button[data-ledger-action=cancel]{color:#a84a52}.client-results{position:absolute;z-index:20;top:61px;right:0;left:0;max-height:300px;overflow:auto;background:#fff;border:1px solid #aeb8c5;box-shadow:0 8px 20px #1a243124}.client-result{display:grid;width:100%;gap:3px;padding:11px 12px;text-align:left;color:#232a33;background:#fff;border:0;border-bottom:1px solid #e2e5e9}.client-result:hover{background:#f1f4f7}.client-result strong{font-size:12px}.client-result span{color:#525c68;font-size:10px}.client-result small{color:#808892;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.client-empty{margin:0;padding:14px;color:#6f7781;font-size:11px}.item-editor{display:flex;flex-direction:column;gap:9px}.preset-toolbar{display:grid;grid-template-columns:minmax(130px,1fr) auto auto auto;align-items:center;gap:7px;margin-bottom:11px;padding:10px;background:#f7f8f9;border:1px solid #dfe3e7;border-radius:3px}.preset-toolbar select{min-width:0;height:34px;padding:6px 8px;background:#fff;border:1px solid #ccd3da;border-radius:3px}.item-card{padding:12px;background:#f7f8f9;border:1px solid #dfe3e7;border-radius:3px}.item-card-header{display:flex;justify-content:space-between;margin-bottom:9px;font-size:11px}.remove-item{padding:0;background:transparent;border:0;font-size:10px}.item-grid{grid-template-columns:1fr 1.45fr .55fr .85fr}.paper-stage{display:flex;flex-direction:column;align-items:center;gap:24px;justify-content:flex-start;padding:24px;min-width:680px;background:#d6dbe1;border:1px solid #cbd1d8}.estimate-paper{position:relative;width:794px;height:1123px;flex:0 0 auto;padding:42px 48px 38px;overflow:hidden;color:#20242a;background:#fff;box-shadow:0 8px 24px #171f2a2e;font-family:Noto Sans KR,Apple SD Gothic Neo,Arial,sans-serif}.quotation-header{display:flex;min-height:72px;align-items:center;justify-content:space-between;padding:14px 0 16px;border-top:6px solid;border-bottom:1px solid #20242a}.quotation-title span{color:#68717c;font-size:8px;font-weight:800;letter-spacing:.18em}.quotation-title h2{margin:0;font-size:30px;line-height:1;letter-spacing:-.06em}.quotation-title h2 small{color:#717985;font-size:12px;letter-spacing:0}.quotation-title p{margin:7px 0 0;color:#5f6670;font-size:10px}.quotation-brand{display:flex;align-items:flex-start;gap:14px}.paper-logo{width:50px;height:50px;padding:3px;object-fit:contain;border:1px solid #e0e3e6}.document-meta{width:196px;margin:0;border-top:1px solid #8b929a}.document-meta div{display:grid;grid-template-columns:58px 1fr;min-height:26px;border-bottom:1px solid #d9dde1}.document-meta dt,.document-meta dd{display:flex;align-items:center;margin:0;padding:5px 7px;font-size:8px}.document-meta dt{color:#68717c;background:#f5f6f7;font-weight:700}.document-meta dd{justify-content:flex-end;font-weight:700}.business-parties{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.business-card{overflow:hidden;border:1px solid #b9bec5;border-top:3px solid #7a838d}.business-card-heading{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;background:#f4f5f6;border-bottom:1px solid #cbd0d5}.business-card-heading span{color:#68717c;font-size:8px;font-weight:800;letter-spacing:.06em}.business-card-heading strong{max-width:220px;text-align:right;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.business-info{display:grid;grid-template-columns:1fr 1fr;margin:0}.business-info div{display:grid;grid-template-columns:64px 1fr;min-height:31px;border-right:1px solid #e0e3e6;border-bottom:1px solid #e0e3e6}.business-info div:nth-child(2n),.business-info .wide{border-right:0}.business-info .wide{grid-column:1 / -1}.business-info div:last-child,.business-info .bank-row{border-bottom:0}.business-info dt,.business-info dd{display:flex;align-items:center;margin:0;padding:5px 7px;font-size:8px;line-height:1.35;overflow-wrap:anywhere}.business-info dt{color:#68717c;background:#fafafa;font-weight:700}.business-info dd{font-weight:600}.quotation-terms{display:grid;grid-template-columns:1.5fr .75fr;margin-top:12px;border:1px solid #c4c9cf}.quotation-terms div{min-height:49px;padding:8px 10px;border-right:1px solid #d8dce0}.quotation-terms div:last-child{border-right:0}.quotation-terms span,.quotation-terms strong{display:block}.quotation-terms span{margin-bottom:4px;color:#747c86;font-size:7px;font-weight:700}.quotation-terms strong{font-size:8px;line-height:1.35}.quotation-total{display:flex;min-height:56px;align-items:center;justify-content:space-between;margin:12px 0 14px;padding:10px 15px;color:#fff}.quotation-total div{display:flex;flex-direction:column;gap:3px}.quotation-total span{font-size:9px;font-weight:800}.quotation-total small{color:#ffffffc7;font-size:8px}.quotation-total>strong{font-size:22px;letter-spacing:-.04em}.paper-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:9px}.paper-table th{height:30px;padding:6px 4px;color:#31363d;background:#eef0f2;border-top:1px solid #333941;border-right:1px solid #c7ccd1;border-bottom:1px solid #8f969e;font-size:8px}.paper-table th:first-child{border-left:1px solid #c7ccd1}.paper-table th:nth-child(1){width:5%}.paper-table th:nth-child(2){width:15%}.paper-table th:nth-child(3){width:29%}.paper-table th:nth-child(4){width:8%}.paper-table th:nth-child(5){width:14%}.paper-table th:nth-child(6),.paper-table th:nth-child(7){width:14.5%}.paper-table td{height:34px;padding:6px;text-align:right;border:1px solid #c7ccd1;overflow-wrap:anywhere}.paper-table td:nth-child(1),.paper-table td:nth-child(2),.paper-table td:nth-child(4){text-align:center}.paper-table .detail-cell{text-align:left;color:#4f5660}.paper-table .line-number{color:#7d858e}.paper-table .empty-row td{color:transparent}.paper-footer-grid{display:grid;grid-template-columns:1fr 250px;gap:20px;margin-top:16px}.paper-note{min-height:92px;padding:11px 12px;color:#535b65;background:#fafafa;border:1px solid #c7ccd1;font-size:8px;line-height:1.6}.paper-note strong{color:#24282e;font-size:9px}.paper-note p{margin:7px 0 0;white-space:pre-wrap}.paper-totals{border-top:2px solid #333941}.paper-totals>div{display:flex;justify-content:space-between;padding:7px 3px;border-bottom:1px solid #c7ccd1;font-size:9px}.paper-totals .grand-total{padding-top:10px;font-size:13px;font-weight:800}.paper-bottom{position:absolute;right:48px;bottom:30px;left:48px;display:flex;align-items:flex-end;padding-top:10px;color:#747b84;border-top:1px solid #c7ccd1;font-size:8px}.paper-bottom{justify-content:space-between}.paper-bottom div{display:flex;align-items:baseline;gap:9px}.paper-bottom strong{color:#292e34;font-size:10px}.paper-bottom p{margin:0}.compact-header{min-height:88px;margin-bottom:18px}.continuation-summary{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding:11px 13px;color:#3b4654;background:#f3f5f7;border:1px solid #d5dae0;font-size:10px}.continuation-summary strong{font-size:14px}.continued-note{margin:18px 0 0;color:#737b86;text-align:right;font-size:9px}.export-bar{display:flex;align-items:center;justify-content:space-between;min-width:680px;padding:16px 18px;background:#fff;border:1px solid #cbd1d8;border-top:0}.export-summary{display:flex;flex-direction:column;gap:2px}.export-summary span{color:#707883;font-size:10px}.export-summary strong{font-size:19px}.export-actions{display:flex;gap:7px}.toast{position:fixed;z-index:100;bottom:25px;left:50%;padding:11px 17px;color:#fff;background:#243247;border-radius:3px;box-shadow:0 8px 24px #141e2d40;font-size:12px;opacity:0;transform:translate(-50%,10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%)}.toast.error{background:#943f47}.app-dialog{width:min(720px,calc(100vw - 28px));max-height:min(780px,calc(100vh - 40px));padding:0;color:#20252d;background:#fff;border:1px solid #b9c1ca;border-radius:6px;box-shadow:0 24px 60px #121b274d}.app-dialog::backdrop{background:#141d288c}.dialog-heading{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;background:#fff;border-bottom:1px solid #dfe3e7}.dialog-heading h2{margin:2px 0 0;font-size:18px}.dialog-close{width:32px;height:32px;color:#5f6873;background:#f4f5f6;border:1px solid #d8dde2;border-radius:50%;font-size:20px}.history-list{display:flex;flex-direction:column;gap:10px;padding:16px 20px 22px;overflow:auto}.dialog-empty{margin:20px 0;color:#707985;text-align:center}.dialog-empty.error{color:#9a4049}.history-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid #dce1e6;border-radius:4px}.history-card-main{min-width:0}.history-card-main>div{display:flex;align-items:center;gap:8px}.history-card-main h3{margin:6px 0 4px;font-size:14px}.history-card-main p{margin:0;color:#747d88;font-size:10px}.history-card-main .history-ip{margin-top:4px;color:#87909b;font-size:9px;font-variant-numeric:tabular-nums}.history-status{padding:3px 6px;color:#315b42;background:#edf7f1;border-radius:10px;font-size:9px;font-weight:700}.history-status.cancelled,.history-status.superseded{color:#8a454c;background:#faecee}.history-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.history-actions button{padding:6px 8px;color:#344254;background:#fff;border:1px solid #ccd3da;border-radius:3px;font-size:10px}.history-actions button.danger{color:#a4454e}.confirm-summary{padding:20px}.confirm-summary dl{margin:0;border-top:2px solid #2f3d4e}.confirm-summary dl div{display:grid;grid-template-columns:110px 1fr;padding:11px 8px;border-bottom:1px solid #dfe3e7}.confirm-summary dt{color:#6c7580;font-size:11px;font-weight:700}.confirm-summary dd{margin:0;text-align:right;font-size:12px;font-weight:700}.confirm-summary p{margin:14px 0 0;color:#66707b;font-size:11px;line-height:1.6}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px 20px}@media(max-width:1180px){.workspace{grid-template-columns:460px minmax(680px,1fr)}.preview-panel{padding-right:20px;padding-left:20px}}@media(max-width:900px){.app-header{height:auto;min-height:60px;padding:14px 18px}.header-status{display:none}.workspace{display:block}.editor-panel,.preview-panel{padding:18px 14px;border:0}.item-grid{grid-template-columns:1fr 1fr}.paper-stage,.export-bar{min-width:0;overflow-x:auto;justify-content:flex-start}.estimate-paper{transform-origin:top left}.export-bar{align-items:flex-start;gap:14px}.export-actions{flex-wrap:wrap;justify-content:flex-end}}@media(max-width:640px){.preset-toolbar{grid-template-columns:1fr 1fr}.preset-toolbar select{grid-column:1 / -1}.history-card{align-items:flex-start;flex-direction:column}.history-actions{justify-content:flex-start}}@media(max-width:520px){.form-grid.two{grid-template-columns:1fr}.field.full{grid-column:auto}.item-grid{grid-template-columns:1fr}.export-bar{flex-direction:column}.export-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.primary-button{grid-column:1 / -1}.ledger-status{align-items:flex-start;flex-direction:column}.ledger-status-actions{justify-content:flex-start}}:root{--app-ink: #172033;--app-navy: #1f2d43;--app-accent: #315f8c;--app-muted: #6f7886;--app-line: #dce2e8;--app-surface: #ffffff;--app-canvas: #eef1f4;--preview-paper-width: 873px;--preview-paper-height: 1235px;--preview-paper-scale: 1.1}body{color:var(--app-ink);background:var(--app-canvas)}.app-header{position:sticky;z-index:40;top:0;height:72px;padding:0 32px;background:var(--app-navy);border-bottom:1px solid #152033;box-shadow:0 2px 10px #121c2b1f}.brand-lockup{align-items:center;gap:11px}.brand-lockup>div{display:flex;flex-direction:column;gap:1px}.brand-lockup strong{font-size:19px;line-height:1.1;letter-spacing:-.04em}.brand-lockup span:not(.brand-mark){color:#abb7c7;font-size:11px}.brand-mark{display:grid;width:34px;height:34px;place-items:center;color:#fff;background:#ffffff17;border:1px solid rgba(255,255,255,.22);border-radius:9px;font-size:14px;font-weight:800}.header-status{display:flex;align-items:center;gap:8px;padding:7px 11px;color:#d8e0ea;background:#ffffff12;border:1px solid rgba(255,255,255,.1);border-radius:999px;font-size:11px}.status-dot,.preview-live i{width:6px;height:6px;flex:0 0 auto;background:#72c899;border-radius:50%;box-shadow:0 0 0 3px #72c8991f}.workspace{grid-template-columns:minmax(640px,680px) minmax(920px,1fr);min-height:calc(100vh - 72px)}.editor-panel{padding:28px 30px 80px;background:#f7f8fa;border-right-color:#d9dfe6}.preview-panel{padding:28px 24px 38px;background:#eef1f4}.panel-heading,.preview-toolbar{margin-bottom:20px}.panel-heading{align-items:flex-end}.panel-title h2,.preview-toolbar h2{margin:3px 0 0;color:var(--app-ink);font-size:22px;letter-spacing:-.045em}.panel-title p{margin:6px 0 0;color:var(--app-muted);font-size:11px;line-height:1.5}.panel-eyebrow{color:#7d8795;font-size:9px;font-weight:800;letter-spacing:.16em}.heading-actions{gap:8px}.form-section{margin-bottom:16px;padding:21px;background:var(--app-surface);border-color:var(--app-line);border-radius:11px;box-shadow:0 1px 2px #19253606}.profile-section{padding:18px 20px;border-top:1px solid var(--app-line)}.primary-form-section,.ledger-section{border-top:3px solid var(--app-navy)}.ledger-section{border-left:1px solid var(--app-line)}.profile-summary-main,.section-heading-group{display:flex;align-items:center;gap:11px}.profile-avatar,.section-index{display:grid;width:32px;height:32px;flex:0 0 auto;place-items:center;color:#42536a;background:#f1f4f7;border:1px solid #dde3e9;border-radius:8px;font-size:10px;font-weight:800}.profile-summary h3,.section-title-row h3{margin:2px 0 0;color:#202b3a;font-size:15px;letter-spacing:-.025em}.profile-summary h3 small{padding-left:3px;color:#7d8794}.profile-summary-action:before{display:inline-flex;padding:6px 9px;color:#3d5e81;background:#f3f6f9;border-radius:6px}.section-title-row{margin-bottom:17px}.section-heading-group{align-items:flex-start}.section-heading-group>div{min-width:0}.section-heading-group p{margin:4px 0 0;color:#828b97;font-size:10px;line-height:1.45}.section-kicker{color:#7c8693;font-size:9px;letter-spacing:.1em}.form-grid{gap:14px 12px}.field{gap:7px}.field span{color:#4e5968;font-size:11px}.field input,.field select,.field textarea{min-height:44px;padding:10px 12px;color:#1f2937;background:#fcfdfe;border-color:#cfd7df;border-radius:7px;transition:border-color .15s,box-shadow .15s,background .15s}.field textarea{min-height:88px;line-height:1.55}.field input:hover,.field select:hover,.field textarea:hover{border-color:#b4c0cc}.field input:focus,.field select:focus,.field textarea:focus{background:#fff;border-color:#486a90;box-shadow:0 0 0 3px #3f62881a}.field input:disabled,.field select:disabled,.field textarea:disabled{background:#f1f3f5}.ghost-button,.secondary-button,.primary-button{min-height:38px;border-radius:7px}.ghost-button{padding:8px 12px;color:#35465a;border-color:#ccd5de;font-size:11px}.text-button{color:#315f8c}.section-title-row>.text-button{padding:7px 10px;background:#eef4f9;border-radius:6px}.primary-button{padding:11px 18px;background:var(--app-navy);border-color:var(--app-navy);box-shadow:0 1px 2px #111b2929}.primary-button:hover{background:#152238}.client-search-wrap{margin-bottom:18px;padding:13px;background:#f4f7fa;border:1px solid #e0e6ec;border-radius:8px}.client-search-wrap .field input{background:#fff;border-color:#bfcad5}.sync-note{margin:8px 1px 0;color:#778392}.client-results{top:70px;border-color:#b9c5d1;border-radius:8px;box-shadow:0 12px 30px #1a243129}.preset-toolbar{grid-template-columns:minmax(150px,1fr) auto auto auto;gap:8px;margin-bottom:12px;padding:11px;background:#f3f5f7;border:0;border-radius:8px}.preset-toolbar select{height:38px;border-color:#cbd4dd;border-radius:6px}.item-editor{gap:11px}.item-card{padding:14px;background:#f9fafb;border-color:#dde3e8;border-radius:8px}.item-card-header{margin-bottom:11px;color:#435063}.note-section{background:#fbfcfd}.ledger-help{margin:14px 1px 10px;color:#74808d;font-size:10px}.ledger-status{padding:12px 13px;border-radius:7px}.preview-toolbar{min-height:44px}.preview-meta{display:flex;align-items:center;gap:10px}.preview-live{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;color:#496554;background:#e9f4ed;border:1px solid #d0e5d7;border-radius:999px;font-size:10px;font-weight:700}.zoom-note{padding-left:10px;border-left:1px solid #cfd6de}.paper-stage{min-width:920px;gap:30px;padding:24px;background:#dce1e7;border:0;border-radius:12px}.paper-shell{width:var(--preview-paper-width);height:var(--preview-paper-height);flex:0 0 auto;display:flex;align-items:flex-start;justify-content:center}.paper-shell .estimate-paper{transform:scale(var(--preview-paper-scale));transform-origin:top center}.export-bar{position:sticky;z-index:18;bottom:18px;min-width:920px;gap:20px;margin-top:14px;padding:15px 16px;background:#fffffff5;border:1px solid #d4dbe2;border-radius:11px;box-shadow:0 12px 32px #17213024;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.export-summary span{color:#7a8491;font-size:9px;font-weight:700;letter-spacing:.03em}.export-summary strong{color:#172337;font-size:20px}.export-actions,.export-file-actions{display:flex;align-items:center;gap:7px}.export-actions{margin-left:auto}.export-file-actions{padding-right:8px;border-right:1px solid #dde2e7}.export-actions .secondary-button{padding:9px 12px;white-space:nowrap}.export-actions .primary-button{min-width:158px;white-space:nowrap}.app-dialog{border-radius:12px}.dialog-heading{padding:20px 22px}.dialog-close{border-radius:8px}.history-card{padding:16px;border-radius:8px}.history-actions button{border-radius:6px}.toast{border-radius:8px}@media(max-width:1600px){:root{--preview-paper-width: 826px;--preview-paper-height: 1168px;--preview-paper-scale: 1.04}.workspace{grid-template-columns:610px minmax(820px,1fr)}.paper-stage,.export-bar{min-width:820px}}@media(max-width:1380px){:root{--preview-paper-width: 794px;--preview-paper-height: 1123px;--preview-paper-scale: 1}.workspace{grid-template-columns:560px minmax(780px,1fr)}.editor-panel{padding-right:24px;padding-left:24px}.preview-panel{padding-right:16px;padding-left:16px}.paper-stage,.export-bar{min-width:780px}.paper-stage{padding:12px}}@media(max-width:1180px){:root{--preview-paper-width: 730px;--preview-paper-height: 1033px;--preview-paper-scale: .92}.workspace{grid-template-columns:500px minmax(640px,1fr)}.export-bar,.paper-stage{min-width:640px}}@media(max-width:900px){.app-header{min-height:64px;padding:12px 18px}.workspace{display:block}.editor-panel,.preview-panel{padding:22px 16px 40px;border:0}.preview-panel{border-top:1px solid #d8dee5}.paper-stage,.export-bar{min-width:0}.paper-stage{align-items:flex-start;padding:18px;overflow-x:auto}.paper-shell .estimate-paper{transform-origin:top left}.export-bar{bottom:10px;align-items:center}.export-actions{flex-wrap:wrap;justify-content:flex-end}}@media(max-width:640px){.panel-heading{align-items:flex-start;gap:14px}.panel-title p{display:none}.form-section{padding:18px 16px}.preset-toolbar{grid-template-columns:1fr 1fr}.preset-toolbar select{grid-column:1 / -1}.preview-live{display:none}.export-bar{align-items:stretch;flex-direction:column}.export-summary{flex-direction:row;align-items:baseline;justify-content:space-between}.export-actions{width:100%;margin:0;display:grid;grid-template-columns:1fr}.export-file-actions{display:grid;grid-template-columns:repeat(2,1fr);padding:0 0 9px;border-right:0;border-bottom:1px solid #dde2e7}.export-actions .primary-button{width:100%}}@media(max-width:520px){.header-status{display:none}.brand-lockup span:not(.brand-mark){display:block}.form-grid.two{grid-template-columns:1fr}.field.full{grid-column:auto}.item-grid{grid-template-columns:1fr}.section-heading-group p{display:none}.profile-summary-action:before{padding:5px 7px}}.capture-mode .paper-shell{width:794px;height:1123px}.capture-mode .paper-shell .estimate-paper{transform:none}:root{--app-ink: #152033;--app-navy: #16243a;--app-accent: #2f638f;--app-muted: #697586;--app-line: #d9e0e7;--app-soft: #f3f6f9;--app-canvas: #edf1f5}body{background:linear-gradient(180deg,#f6f8fa 0,var(--app-canvas) 240px)}.app-header{height:68px;padding:0 30px;background:linear-gradient(135deg,#142238,#1d304b);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 5px 20px #101d2f21}.brand-lockup{display:inline-flex;align-items:center;text-decoration:none}.brand-mark{width:42px;height:42px;background:#ffffff1a;border-color:#fff3;border-radius:13px;box-shadow:inset 0 1px #ffffff1a,0 8px 18px #0000001f;font-size:22px}.brand-lockup:hover .brand-mark{background:#ffffff29;transform:translateY(-1px)}.header-status{padding:8px 12px;background:#ffffff13;border-color:#ffffff1c}.header-status-icon{display:grid;width:22px;height:22px;place-items:center;background:#ffffff17;border-radius:7px;font-size:12px}.workspace{grid-template-columns:clamp(660px,35vw,780px) minmax(820px,1fr);min-height:calc(100vh - 68px)}.editor-panel{padding:30px 32px 90px;background:#f9fafbf0;border-right-color:#d9e0e7}.preview-panel{padding:30px 26px 42px;background:transparent}.panel-heading{align-items:flex-end;margin-bottom:16px}.panel-title h2,.preview-toolbar h2{font-size:23px}.panel-eyebrow{color:#64738a;letter-spacing:.07em}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.ghost-button,.secondary-button,.primary-button{transition:border-color .16s,background .16s,color .16s,box-shadow .16s,transform .16s}.ghost-button:hover,.secondary-button:hover{border-color:#aebdcb;background:#f5f8fb;transform:translateY(-1px)}.primary-button:hover{box-shadow:0 7px 16px #16243a2e;transform:translateY(-1px)}.workflow-strip{display:flex;min-height:48px;align-items:center;gap:9px;margin-bottom:18px;padding:9px 12px;color:#667386;background:#fff;border:1px solid var(--app-line);border-radius:12px;box-shadow:0 2px 8px #1b293d09}.workflow-step{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:750;white-space:nowrap}.workflow-step b{display:grid;width:20px;height:20px;place-items:center;color:#748094;background:#f0f3f6;border-radius:50%;font-size:9px}.workflow-step.active{color:#223a58}.workflow-step.active b{color:#fff;background:#2f638f;box-shadow:0 0 0 3px #2f638f17}.workflow-strip i{color:#a6b0bb;font-size:17px;font-style:normal}.workflow-strip em{margin-left:auto;padding:6px 9px;color:#4e6859;background:#edf7f1;border-radius:999px;font-size:9px;font-style:normal;font-weight:750;white-space:nowrap}.form-section{margin-bottom:18px;padding:23px;border-color:var(--app-line);border-radius:14px;box-shadow:0 3px 14px #17243609}.profile-section{padding:19px 22px}.primary-form-section,.ledger-section{border-top:1px solid var(--app-line)}.primary-form-section{box-shadow:inset 0 3px #2e5d89,0 3px 14px #17243609}.ledger-section{box-shadow:inset 0 3px #5b7189,0 3px 14px #17243609}.profile-avatar,.section-index{width:38px;height:38px;color:#314c6a;background:linear-gradient(145deg,#f4f7fa,#eaf0f5);border-color:#d7e0e8;border-radius:11px;font-size:17px;box-shadow:inset 0 1px #fff}.profile-summary h3,.section-title-row h3{font-size:16px}.section-kicker{color:#69778a;letter-spacing:.08em}.field span{color:#465365}.field input,.field select,.field textarea{min-height:46px;padding:11px 13px;background:#fff;border-color:#cbd5df;border-radius:9px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#3f709c;box-shadow:0 0 0 4px #3669961a}.client-search-wrap{padding:15px;background:linear-gradient(145deg,#f6f9fb,#f1f5f8);border-color:#dce4eb;border-radius:11px}.preset-toolbar{padding:12px;background:#f3f6f8;border:1px solid #e2e7ec;border-radius:10px}.item-card{padding:15px;background:#fbfcfd;border-color:#dce3ea;border-radius:10px}.item-card-header strong{color:#33445a}.ledger-help{display:flex;align-items:flex-start;gap:12px;margin:16px 0 12px;padding:14px;color:#5f6e80;background:#f4f7fa;border:1px solid #dce4eb;border-radius:10px;line-height:1.6}.ledger-help-icon{display:grid;width:30px;height:30px;flex:0 0 auto;place-items:center;background:#fff;border:1px solid #d9e1e8;border-radius:9px;font-size:14px}.ledger-help>div{min-width:0}.ledger-help strong{display:block;margin-bottom:3px;color:#334156;font-size:11px}.ledger-help p{margin:0}.ledger-help a{text-underline-offset:2px}.ledger-help .ledger-connection{display:inline-flex;margin-top:5px;font-size:9px;text-decoration:none}.ledger-status{padding:13px 14px;background:#f7f8fa;border-color:#dce2e8;border-radius:9px}.preview-toolbar{margin-bottom:18px}.preview-live{padding:7px 10px}.paper-stage{background:linear-gradient(145deg,#e3e8ed,#d9e0e6);border:1px solid #d4dce4;border-radius:15px;box-shadow:inset 0 1px #ffffff8c}.export-bar{border-radius:13px;box-shadow:0 15px 38px #121f3029}.export-actions .primary-button{min-width:186px}.history-card{border-color:#d8e0e7;box-shadow:0 2px 8px #18263909}.history-card:hover{border-color:#bcc9d5;background:#fbfcfd}.dialog-empty{padding:30px 12px}.toast{padding:12px 18px;background:#1b2c43;border:1px solid rgba(255,255,255,.1);border-radius:10px}.calculator-open-button{color:#214d72;background:#eef5fa;border-color:#c8d9e7}.calculator-fab{position:fixed;z-index:35;right:22px;bottom:104px;display:inline-flex;min-height:48px;align-items:center;gap:8px;padding:9px 15px 9px 10px;color:#fff;background:linear-gradient(145deg,#245f8e,#173b5e);border:1px solid rgba(255,255,255,.18);border-radius:999px;box-shadow:0 12px 28px #122b4447;transition:opacity .16s,visibility .16s,transform .16s,box-shadow .16s}.calculator-fab:hover{box-shadow:0 15px 34px #122b4457;transform:translateY(-2px)}.calculator-fab>span{display:grid;width:29px;height:29px;place-items:center;background:#ffffff1f;border-radius:50%;font-size:15px}.calculator-fab strong{font-size:11px;letter-spacing:-.02em}body.calculator-panel-visible .calculator-fab{visibility:hidden;opacity:0;pointer-events:none;transform:translateY(8px)}.calculator-dock{display:flex;min-width:920px;justify-content:flex-start;padding:26px 0 92px}.calculator-panel{width:min(560px,100%);overflow:hidden;background:#fff;border:1px solid #d3dce5;border-radius:15px;box-shadow:0 14px 36px #18273a1f;outline:0;transition:border-color .18s,box-shadow .18s,transform .18s}.calculator-panel.calculator-highlight{border-color:#5b8db5;box-shadow:0 18px 44px #1b4c733d,0 0 0 4px #3f79a51a;transform:translateY(-2px)}.calculator-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 16px;background:linear-gradient(180deg,#fff,#f8fafc);border-bottom:1px solid #e0e6ec}.calculator-panel-heading h2{margin:3px 0 4px;color:#203047;font-size:18px;letter-spacing:-.025em}.calculator-panel-heading p{margin:0;color:#6a7788;font-size:10px;line-height:1.5}.calculator-available{flex:0 0 auto;padding:6px 9px;color:#286247;background:#edf7f1;border:1px solid #cfe7d8;border-radius:999px;font-size:9px;font-weight:750}.calculator-body{padding:18px 20px 22px}.calculator-screen{min-height:104px;padding:17px 18px;text-align:right;color:#fff;background:linear-gradient(145deg,#17263d,#213956);border:1px solid #122036;border-radius:12px;box-shadow:inset 0 1px #ffffff14}.calculator-screen small{display:block;min-height:18px;margin-bottom:8px;color:#aebdce;font-size:11px;font-weight:650}.calculator-screen strong{display:flex;min-width:0;align-items:baseline;justify-content:flex-end;gap:8px}.calculator-screen strong>span{color:#9fb0c3;font-size:18px;font-weight:600}.calculator-screen output{min-width:0;overflow:hidden;color:#fff;font-size:31px;font-weight:800;letter-spacing:-.035em;text-overflow:ellipsis;white-space:nowrap}.calculator-target-select{display:grid;gap:6px;margin-top:13px}.calculator-target-select>span{color:#536176;font-size:10px;font-weight:750}.calculator-target-select select{width:100%;min-height:43px;padding:0 36px 0 12px;color:#24364d;background-color:#fff;border:1px solid #cfd9e3;border-radius:9px;font-size:11px;font-weight:650}.calculator-target-select select:focus{border-color:#5685aa;box-shadow:0 0 0 3px #33709e1f;outline:0}.calculator-keypad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.calculator-key{min-height:52px;color:#26364a;background:#fff;border:1px solid #d5dde5;border-radius:10px;font-size:16px;font-weight:750;transition:background .14s,border-color .14s,transform .14s}.calculator-key:hover{background:#f4f7fa;border-color:#b8c6d3;transform:translateY(-1px)}.calculator-key:active{transform:translateY(0)}.calculator-key.utility{color:#526277;background:#f1f4f7}.calculator-key.operator{color:#24577e;background:#edf5fa;border-color:#c9dce9;font-size:20px}.calculator-key.equals{color:#fff;background:#255f8d;border-color:#255f8d;font-size:21px}.calculator-key.equals:hover{background:#1c5078;border-color:#1c5078}.calculator-target{min-height:34px;margin:13px 2px 10px;color:#657286;font-size:10px;line-height:1.5}.calculator-actions{display:grid;grid-template-columns:.85fr 1.15fr;gap:8px}.calculator-actions button{width:100%}@media(max-width:1600px){.workspace{grid-template-columns:clamp(580px,36vw,640px) minmax(760px,1fr)}.editor-panel{padding-right:26px;padding-left:26px}}@media(max-width:1380px){.workspace{grid-template-columns:560px minmax(760px,1fr)}.form-section{padding:20px}}@media(max-width:1180px){.workspace{grid-template-columns:500px minmax(640px,1fr)}.workflow-strip{gap:6px}.workflow-step{font-size:10px}.workflow-strip em{display:none}}@media(max-width:900px){.app-header{min-height:62px;padding:10px 16px}.brand-mark{width:39px;height:39px;font-size:20px}.workspace{display:block}.editor-panel,.preview-panel{padding:22px 16px 42px}.workflow-strip em{display:inline-flex}.calculator-fab{right:15px;bottom:18px;min-height:46px;padding-right:13px}.calculator-dock{min-width:0;justify-content:center;padding:22px 0 76px}}@media(max-width:640px){.app-header{height:60px}.header-status{max-width:calc(100vw - 78px);overflow:hidden}.header-status span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.panel-heading{align-items:flex-start;flex-direction:column}.heading-actions{width:100%;justify-content:stretch}.heading-actions .ghost-button{flex:1}.workflow-strip{overflow-x:auto}.workflow-strip em{margin-left:4px}.form-section{padding:19px 16px;border-radius:12px}.section-heading-group{gap:10px}.profile-avatar,.section-index{width:36px;height:36px;font-size:16px}.ledger-help{padding:12px}}@media(max-width:520px){.header-status-icon,.workflow-step b,.workflow-strip i{display:none}.workflow-strip{justify-content:space-between}.workflow-strip em{display:none}.preset-toolbar{gap:7px}.calculator-body{padding:15px 15px 18px}.calculator-panel-heading{padding:16px 15px 14px}.calculator-screen{min-height:94px;padding:15px}.calculator-screen output{font-size:28px}.calculator-key{min-height:49px}.calculator-actions{grid-template-columns:1fr}}
