:root{--sticky-header-height: 76px;font-family:"Noto Sans KR",sans-serif;color:#24342e;background:#fff;font-synthesis:none;-webkit-font-smoothing:antialiased;--ink: #24342e;--muted: #5f6e64;--line: #d7ddd4;--paper: #fffefa;--accent: #e3ebd9;--green: #315a4a;--warm: #ddc19b;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-6: 24px;--space-8: 32px}*{box-sizing:border-box}[hidden]{display:none!important}.mobile-preview-jump[hidden]{display:none!important}html{scroll-behavior:smooth;scroll-padding-top:calc(var(--sticky-header-height) + 16px)}.mobile-preview-jump,.mobile-editor-jump{display:none!important}.pdf-review-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px;border:1px solid #d7ddd4;border-radius:14px;background:#fffefa;color:#24342e;box-shadow:0 24px 64px #132e2550}.pdf-review-dialog::backdrop{background:#10281f91}.pdf-review-dialog h2{margin:0 0 10px;font-size:22px}.pdf-review-dialog p{margin:0 0 18px;color:#526358;line-height:1.6}.pdf-review-dialog ul{margin:0 0 24px;padding:0;list-style:none}.pdf-review-dialog li{padding:10px 0;border-bottom:1px solid #d7ddd4;font-size:14px}.pdf-review-dialog li::before{content:"•";margin-right:9px;color:#315a4a}#pdf-review-list{max-height:32dvh;overflow-y:auto}#pdf-review-list li{padding-block:0}.pdf-review-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}::selection{background:#dfd0ad;color:#1a352c}:focus-visible{outline:2px solid #315a4a;outline-offset:3px}input,textarea{caret-color:#315a4a}*{scrollbar-color:var(--ui-line, #bdbdbd) transparent;scrollbar-width:thin}.skip-link{position:fixed;top:12px;left:16px;z-index:200;padding:10px 15px;border-radius:7px;background:#fffefa;color:#193e33;font-size:13px;font-weight:700;text-decoration:none;transform:translateY(-160%)}.skip-link:focus-visible{transform:translateY(0)}.app-header{position:sticky;top:0;z-index:100;min-height:76px;padding:0 clamp(20px,3.2vw,56px);border-bottom:1px solid #173e32;display:grid;grid-template-columns:minmax(165px,1fr) auto minmax(0,1fr);align-items:center;gap:24px;background:#193e33;color:#f8f6ef}.brand{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;width:max-content;color:inherit;text-decoration:none;font-size:17px;font-weight:700;letter-spacing:-.045em;white-space:nowrap;line-height:1.15}.brand-tagline{font-size:10px;font-weight:500;letter-spacing:-.015em;opacity:.82}.app-header :focus-visible{outline-color:#f4d6a4}.header-actions,.add-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.header-actions{justify-self:end;justify-content:flex-end;flex-wrap:nowrap}.header-flow{display:flex;align-items:center;gap:3px;padding:4px;border:1px solid #ffffff29;border-radius:999px;background:#ffffff0c}.header-flow a{display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border-radius:999px;color:#c8d8cb;text-decoration:none;white-space:nowrap;font-size:12px;font-weight:600;transition:background .18s ease,color .18s ease,transform .18s ease}.header-flow a span{color:#9ebaa6;font-size:11px;font-variant-numeric:tabular-nums}.header-flow a:hover{background:#ffffff14;color:#fff}.header-flow a:active{transform:translateY(1px)}.header-flow a[aria-current]{background:#e7eddf;color:#173d30;box-shadow:0 2px 8px #071f1730}.header-flow a[aria-current] span{color:#5c8066}.header-data{display:flex;align-items:center;gap:3px;padding-right:10px;border-right:1px solid #ffffff35}.header-text-button,.header-account button{border:0;border-radius:7px;background:transparent;color:#dce9dc;padding:9px 10px;white-space:nowrap;font-size:11px;font-weight:600}.header-text-button:hover,.header-account button:hover{background:#ffffff16;color:#fff}.header-pdf-button,.header-login-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid #d8e2d3;border-radius:8px;background:#edf0e3;color:#1b4233;padding:8px 12px;white-space:nowrap;font-size:11px;font-weight:700}.header-pdf-button:hover{background:#fff8e6}.header-login-button:hover{background:#305548}.header-login-button{border-color:#ffffff5e;background:transparent;color:#fff}.header-login-button:disabled{opacity:.55}.header-account{display:inline-flex;align-items:center;gap:3px;max-width:160px}.header-account span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e7efe5;font-size:11px;font-weight:600}.auth-feedback{margin:0;padding:10px clamp(20px,3.2vw,56px);background:#fff3dc;color:#75532c;font-size:12px;line-height:1.5}.editor-save-status{margin:9px 0 0;color:#536657;font-size:11px}.save-status{color:#d4dfd3;font-size:12px;margin-right:12px}.button{box-sizing:border-box;min-height:44px;border:1px solid transparent;border-radius:9px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:13px;line-height:20px;font-weight:700;white-space:nowrap;transition:background .18s ease,color .18s ease,transform .18s ease}.button:hover{transform:translateY(-1px)}.button:active{transform:translateY(1px)}.button-primary{background:var(--green);color:#fff}.button-primary:hover{background:#214638}.button-outline{background:#fffefa;color:var(--ink);border:1px solid #a9bbae}.button-outline:hover{background:#edf3eb}.button-quiet{background:transparent;color:var(--green)}.button-quiet:hover{background:#e9eee4}.app-header .button-quiet{color:#e5ece4}.app-header .button-quiet:hover{background:#305548}.app-header .button-primary{background:#eee1c8;color:#1c3f33}.app-header .button-primary:hover{background:#f8eacc}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(510px,46%);align-items:start;min-height:calc(100vh - 76px)}.guide-mode{display:block!important}.guide-mode .editor,.guide-mode .contract-editor{max-width:980px;margin-inline:auto}.guide-mode .preview-area,.guide-mode .contract-preview-area{position:static;max-height:none;min-height:0;overflow:visible;width:min(100%,1100px);margin:0 auto 64px;border-radius:22px}.guide-progress{display:flex;gap:5px;overflow-x:auto;padding:3px 0 24px;margin-bottom:24px;border-bottom:1px solid #d8e1d5;scrollbar-width:thin}body[data-active-guide=design] .guide-progress{display:none}body[data-active-guide=design] .editor-intro{padding-bottom:16px}body[data-active-guide=design] .editor-intro h1{font-size:clamp(28px,3vw,39px);line-height:1.2}body[data-active-guide=design] .editor-intro .intro-total{display:none}.guide-progress button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:1 0 auto;min-height:44px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#526657;font:inherit;font-size:12px;line-height:1.4;font-weight:700;cursor:pointer}.guide-progress button span{margin-right:0;font-size:10px;opacity:.7}.guide-progress button[aria-current=step]{background:#e4eddf;color:#214d37}.guide-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:25px 0 12px}.guide-actions .button{min-width:105px}.guide-actions span{color:#64756b;font-size:12px;text-align:center}.design-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}.design-choice{display:flex;flex-direction:column;gap:7px;align-items:stretch;text-align:left;padding:14px;border:1px solid #ccd9cf;border-radius:17px;background:#fffefa;color:#183b2d;font:inherit;cursor:pointer;transition:border-color .16s,box-shadow .16s,transform .16s}.design-choice:hover{transform:translateY(-2px);border-color:#678f73}.design-choice[aria-pressed=true]{border:2px solid #2b6245;box-shadow:0 8px 22px #17472a18;padding:13px}.design-choice strong{font-size:15px}.design-choice small{color:#64756b;font-size:11px}.design-paper{display:flex;flex-direction:column;gap:7px;height:194px;padding:20px;margin-bottom:5px;background:#fff;border:1px solid #e2e9e1;box-shadow:0 5px 14px #173c2511}.design-paper-title{font-size:19px;font-weight:800}.design-paper-meta{width:55%;height:18px;border-bottom:1px solid #cbd7cb}.design-paper-header{height:19px;margin-top:15px;background:var(--start-soft)}.design-paper-row{height:20px;border-bottom:1px solid #d6dfd6}.design-paper-total{width:45%;height:14px;margin:auto 0 0 auto;background:var(--start-soft)}.design-choice[data-start-template=grid] .design-paper-row{border:1px solid #cfdbd0}.design-choice[data-start-template=editorial] .design-paper-header{background:var(--start-accent)}.design-choice[data-start-template=editorial] .design-paper-title{color:var(--start-accent)}.design-choice[data-start-template=minimal] .design-paper-header{height:2px;background:var(--start-accent)}.design-choice[data-start-template=minimal] .design-paper-total{height:2px;background:var(--start-accent)}.design-selection-layout{--start-accent: #20493a;--start-soft: #e8ece3;display:grid;gap:22px;margin-top:24px}.design-start-options{display:flex;flex-direction:column;min-width:0}.design-start-options .design-continue{align-self:stretch;margin-top:12px}.design-heading-actions{display:flex;align-items:center;gap:12px}.design-continue{min-height:44px}.design-selection-layout[data-palette=coral]{--start-accent: #c94b39;--start-soft: #fae9e4}.design-selection-layout[data-palette=blue]{--start-accent: #235b96;--start-soft: #e9f0f9}.design-selection-layout[data-palette=plum]{--start-accent: #684764;--start-soft: #f2eaf1}.design-selection-layout[data-palette=mono]{--start-accent: #242424;--start-soft: #efefef}.design-selection-layout .design-choices{margin-top:0}.design-preview-stage{min-width:0;padding:16px;border:1px solid #d1dbd0;border-radius:17px;background:#fff}.design-preview-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:5px}.design-preview-eyebrow{color:#5d7162;font-size:10px;font-weight:700;letter-spacing:.06em}.design-preview-heading h3{margin:4px 0 0;color:#254335;font-size:16px}.design-preview-heading>strong{color:#315a4a;font-size:13px;white-space:nowrap}.design-preview-stage>p{margin:0 0 14px;color:#5e6d61;font-size:11px;line-height:1.6}.design-preview-paper-wrap{display:flex;justify-content:center;max-width:620px;max-height:500px;margin-inline:auto;overflow:auto;container-type:inline-size;border-radius:3px}.design-sample{flex:none;max-width:620px;min-height:calc(100cqw * 1.4142857);padding:clamp(22px,5cqw,52px);box-shadow:0 12px 25px #163b2420}.design-sample[data-template=grid] .document-table tfoot{display:none}.design-sample:not([data-template=grid]) .document-summary{display:none}@media(min-width:850px){body[data-active-guide=design] .guide-mode .editor{max-width:1040px;padding-top:16px}body[data-active-guide=design] .editor-intro{padding-bottom:10px}body[data-active-guide=design] .editor-intro h1{font-size:27px}body[data-active-guide=design] .editor-intro .intro-copy{max-width:none}.design-start .section-heading{align-items:center;margin-bottom:8px}.design-start .section-help{margin-bottom:0}.design-selection-layout{max-width:900px;grid-template-columns:minmax(300px,1fr) minmax(0,1.12fr);align-items:stretch;gap:12px;margin-top:12px}.design-selection-layout .design-choices{grid-template-columns:1fr;gap:8px}.design-selection-layout .design-choice,.design-selection-layout .design-choice[aria-pressed=true]{display:grid;grid-template-columns:64px 1fr;grid-template-rows:1fr 1fr;align-items:center;column-gap:12px;height:78px;padding:7px 10px}.design-selection-layout .design-choice .design-paper{grid-row:1 / 3;width:64px;height:62px;padding:6px;gap:2px;margin:0}.design-selection-layout .design-paper-title{font-size:13px}.design-selection-layout .design-paper-meta{height:5px}.design-selection-layout .design-paper-header{height:7px;margin-top:2px}.design-selection-layout .design-paper-row{height:6px}.design-selection-layout .design-paper-total{height:5px}.design-selection-layout .design-choice strong{align-self:end}.design-selection-layout .design-choice small{align-self:start}.design-preview-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px}.design-preview-heading{width:100%;margin-bottom:9px}.design-preview-stage>p{display:none}.design-preview-paper-wrap{position:relative;flex:none;width:205px;height:290px;max-height:none;overflow:hidden;container-type:normal}.design-preview-paper-wrap .design-sample{position:absolute;top:0;left:0;width:620px;max-width:none;min-height:876px;transform:scale(.33);transform-origin:top left}}.design-start-copy{margin-top:22px;padding:17px 19px;background:#e9eee6;border-radius:13px;color:#315144}.design-start-copy p{margin:6px 0 0;font-size:12px}.guide-checklist{margin:16px 0 22px;padding:18px 20px 18px 36px;border-radius:13px;background:#edf2eb;color:#315144;font-size:13px;line-height:1.8}.site-explainer{max-width:980px;margin:45px auto 70px;padding:28px 30px;border-top:1px solid #d8e1d5;color:#254335}.site-explainer h2{font-size:23px;margin:0 0 10px}.site-explainer>p{max-width:760px;line-height:1.8;color:#506659;font-size:13px}.site-explainer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:25px}.faq-item{align-self:start;min-width:0;border:1px solid #d5dfd4;border-radius:12px;background:#fffefa}.faq-item summary{position:relative;padding:18px 45px 18px 18px;color:#254335;font-size:14px;font-weight:700;cursor:pointer;list-style:none}.faq-item summary::-webkit-details-marker{display:none}.faq-item summary::after{content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);font-size:20px;font-weight:400;color:#52705d}.faq-item[open] summary::after{content:"−"}.faq-item summary:focus-visible{outline:2px solid #315a4a;outline-offset:3px;border-radius:10px}.faq-item p{margin:0;padding:0 18px 18px;font-size:12px;line-height:1.75;color:#506659}.site-explainer-grid a{color:#275d40;font-weight:700}@media(max-width:640px){.site-explainer{margin:30px 18px 55px;padding-inline:0}.site-explainer-grid{grid-template-columns:1fr;gap:10px}}@media(max-width:640px){.design-choices{grid-template-columns:1fr}.design-choice{display:grid;grid-template-columns:110px 1fr;grid-template-rows:1fr 1fr;align-items:end}.design-paper{grid-row:1 / 3;height:115px;padding:11px;gap:3px}.design-paper-title{font-size:12px}.design-paper-header{margin-top:5px}.design-paper-row{height:10px}.design-preview-stage{padding:12px}.design-preview-paper-wrap{max-height:580px}.guide-actions .button{min-width:82px}.guide-progress button{flex-basis:auto}}@media(max-width:640px){.design-start .section-heading{align-items:stretch;flex-direction:column;gap:10px}.design-heading-actions{justify-content:space-between;flex-wrap:wrap}.design-continue{min-height:44px}}.editor{padding:36px clamp(28px,3.6vw,64px) 80px;max-width:1050px;width:100%;margin-inline:auto}.editor-intro{display:flex;justify-content:space-between;gap:var(--space-6);align-items:end;padding-bottom:var(--space-6)}h1{font-size:clamp(32px,2.8vw,40px);line-height:1.25;letter-spacing:-.035em;margin:0;font-weight:700;text-wrap:balance}.intro-copy{margin:var(--space-3) 0 0;color:var(--muted);font-size:14px;line-height:1.7;max-width:520px}.preset-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:20px}.preset-actions .button{min-height:38px;padding:9px 13px;font-size:12px}.workflow-notice{margin:15px 0;padding:15px 17px;border:1px solid #d7c79d;border-radius:9px;background:#fff9eb;color:#4e4430;font-size:12px;line-height:1.6}.workflow-notice strong{display:block;font-size:13px}.workflow-notice p{margin:5px 0 0}.workflow-notice a{color:#234f3d;font-weight:700;text-underline-offset:3px}.workflow-notice-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.workflow-notice-actions .button{min-height:36px;padding:8px 12px;font-size:12px}.sample-notice{background:#f3f6ef;border-color:#cbdacb}#sample-price-review-row{display:flex;align-items:start;gap:8px;margin-top:10px;font-weight:600;cursor:pointer}#sample-price-review-row input{width:16px;height:16px;margin-top:2px;accent-color:#315a4a;flex:none}.intro-total{min-width:175px;text-align:right;display:flex;flex-direction:column;align-items:end;gap:5px;padding-bottom:5px}.intro-total span{color:var(--muted);font-size:12px}.intro-total strong{font-size:clamp(22px,2vw,28px);letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:nowrap;color:#214f3e}.intro-total small{font-size:11px;color:var(--muted)}.form-section{padding:var(--space-8) 0 36px;border-top:1px solid #cbd6cb}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-6)}.section-heading h2{margin:0;font-size:21px;letter-spacing:-.025em;color:#203d32}.section-heading span{font-size:11px;color:#59695d;letter-spacing:.01em;white-space:nowrap}.section-help{margin:-11px 0 23px;color:var(--muted);font-size:12px;line-height:1.7}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field-wide{grid-column:1 / -1}.party-editor-group{min-width:0;display:flex;flex-direction:column}.form-section[data-guide-step=client] .party-editor-group,.form-section[data-guide-step=studio] .party-editor-group{grid-column:1 / -1;width:100%}.party-editor-group h3{margin:0 0 10px;color:#315a4a;font-size:13px;font-weight:700}.party-editor{flex:1;min-width:0;margin:0;padding:18px;display:grid;gap:15px;border:1px solid #d3ded2;border-radius:12px;background:#fffefa}@media(min-width:760px){.form-section[data-guide-step=client] .party-editor,.form-section[data-guide-step=studio] .party-editor{grid-template-columns:repeat(3,minmax(0,1fr))}.form-section[data-guide-step=client] .party-editor .field:first-child,.form-section[data-guide-step=studio] .party-editor .field:first-child{grid-column:1 / -1}}.field>span{font-size:13px;font-weight:600;color:#435044}.field input,.field textarea,.field select,.read-only-field{background:#fffefa;border:1px solid #becdbf;border-radius:8px;min-height:44px;width:100%;padding:10px 12px;color:var(--ink);font-size:14px;outline:none;transition:border-color .18s ease,box-shadow .18s ease}.field textarea{resize:vertical;line-height:1.6}.field input::placeholder,.field textarea::placeholder{color:#75877a;opacity:1}.field input:hover,.field textarea:hover,.field select:hover{border-color:#99ab99}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--green);box-shadow:0 0 0 3px #e0eadf}.read-only-field{background:#edf0e8;color:#536052;display:flex;align-items:center;font-variant-numeric:tabular-nums}.ai-section{padding-top:31px}.api-card{margin-top:8px;padding:18px 21px;border:1px solid #c7d8c6;border-radius:12px;background:#edf3e9}.api-card-head{display:flex;align-items:start;justify-content:space-between;gap:15px}.api-card h2{margin:0;font-size:15px;letter-spacing:-.02em}.api-card-head>span{color:#46644c;font-size:11px;font-weight:700}.api-card>p{color:#506451;font-size:12px;line-height:1.6;margin:10px 0 0}.api-card>p a{color:#2d633b;font-weight:700;text-underline-offset:3px}.api-key-form{display:flex;align-items:end;gap:10px;margin-top:16px}.api-key-form .field{flex:1}.api-key-form .button{flex:none;min-height:43px}.api-key-form[hidden],.api-file-message[hidden]{display:none}.api-card .api-key-feedback{margin-top:9px;color:#42684c}.api-card .api-key-feedback[data-kind=error]{color:#a04337}.ai-section .section-heading{margin-bottom:18px}.ai-section .section-help{margin:0 0 19px;max-width:620px}.ai-section textarea{min-height:140px}.ai-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:13px}.ai-actions>span{color:#667367;font-size:11px;line-height:1.5}.ai-status{min-height:19px;margin:15px 0 0;color:#586a58;font-size:12px;line-height:1.6}.ai-status:empty{display:none}.ai-status[data-kind=error]{color:#a04337}.ai-status[data-kind=notice]{color:#745d2b}.ai-status a{color:inherit;font-weight:700;text-underline-offset:3px}.ai-results{margin-top:23px;padding:22px;border:1px solid #cbd8c9;border-radius:12px;background:#f6f9f3}.ai-results[hidden]{display:none}.ai-result-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.ai-results h3{font-size:15px;letter-spacing:-.02em;margin:0}.ai-result-heading span{color:#738074;font-size:11px}.ai-project-suggestion{display:flex;align-items:end;gap:17px;border-bottom:1px solid #d9e3d5;padding:18px 0 19px}.ai-project-suggestion .field{flex:1}.ai-project-suggestion .checkbox{flex:none;padding-bottom:13px}.ai-items-heading{margin:20px 0 12px!important}.ai-items{display:flex;flex-direction:column;gap:7px;margin-bottom:17px}.ai-merge-choice{display:flex;flex-wrap:wrap;gap:10px 18px;margin:0 0 16px;padding:0;border:0;background:transparent}.ai-merge-choice[hidden]{display:none}.ai-merge-choice legend{padding:0 0 8px;color:#344b3b;font-size:12px;font-weight:700}.ai-merge-choice label{display:inline-flex;align-items:center;gap:6px;font-size:12px;cursor:pointer}.ai-merge-choice input{accent-color:#315a4a}.ai-suggestion{display:flex;align-items:start;gap:10px;background:#fffefa;border:1px solid #e0e6dd;border-radius:7px;padding:12px;cursor:pointer}.ai-suggestion:has(input:checked){border-color:#a9bba5}.ai-suggestion input{margin:3px 0 0;width:15px;height:15px;accent-color:#3e5e45;flex:none}.ai-suggestion span{display:flex;flex-direction:column;gap:4px}.ai-suggestion strong{font-size:12px;font-weight:700}.ai-suggestion small{color:#657266;font-size:11px;line-height:1.5}.ai-questions{border-top:1px solid #d9e3d5;margin-top:20px;padding-top:19px}.ai-questions h3{margin-bottom:10px}.ai-questions ul{margin:0;padding-left:20px;color:#566458;font-size:12px;line-height:1.75}.ai-questions li+li{margin-top:6px}.items{display:flex;flex-direction:column;gap:12px}.item-card{background:#fffefa;border:1px solid #cddacf;border-radius:13px;padding:19px 20px}.item-card:focus-within{border-color:#809e87}.item-top{display:flex;align-items:center;gap:10px;margin-bottom:15px}.item-index{font-size:11px;color:#899489;font-variant-numeric:tabular-nums}.item-type{border-radius:4px;padding:5px 8px;background:#e7eee2;color:#315a43;font-size:10px;font-weight:700}.item-type.actual{background:#f5edcf;color:#77591c}.item-type.percentage{background:#e8e7f4;color:#56547f}.icon-button{margin-left:auto;width:44px;height:44px;padding:10px;display:grid;place-items:center;border:0;background:transparent;border-radius:8px;color:#526557;cursor:pointer}.icon-button:hover{background:#f8eae6;color:#a14c3f}.icon-button svg{width:18px;height:18px}.item-fields{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(110px,.8fr) minmax(70px,.45fr) minmax(110px,.8fr);gap:13px}.item-category input{min-height:38px;background:#f3f7ef}.item-detail{grid-column:1 / -1}.item-bottom{border-top:1px solid #e8ebe5;padding-top:14px;margin-top:16px;display:flex;justify-content:space-between;align-items:center;gap:12px}.item-options{display:flex;gap:18px;flex-wrap:wrap}.checkbox{display:inline-flex;align-items:center;gap:6px;color:#576458;font-size:11px;cursor:pointer}.checkbox input{margin:0;accent-color:#3e5e45;width:14px;height:14px}.item-amount{font-size:16px;letter-spacing:-.025em;font-variant-numeric:tabular-nums;white-space:nowrap}.add-actions{margin-top:18px}.add-actions .button{padding:10px 13px;font-size:12px}.item-help{margin:15px 0 0}.preview-area{background:#fff;min-height:calc(100vh - var(--sticky-header-height));padding:24px clamp(18px,2.7vw,44px) 58px;position:sticky;top:var(--sticky-header-height);max-height:calc(100vh - var(--sticky-header-height));overflow-y:auto}.preview-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 22px}.preview-topline>div{display:flex;align-items:center;gap:9px}.preview-dot{width:7px;height:7px;background:#3a7656;border-radius:50%;box-shadow:0 0 0 3px #c5d9c4}.preview-topline h2{font-size:13px;margin:0;color:#214135}.preview-export{display:flex;align-items:center;gap:9px}.preview-export>span{max-width:225px;color:#48624f;font-size:12px;font-weight:600;line-height:1.45;text-align:right}.preview-export-button{min-height:38px;padding:9px 13px;font-size:11px}.preview-export-button:disabled{cursor:not-allowed;opacity:.52}.export-readiness{margin:-10px 0 20px;padding:10px 13px;border:1px solid #d2dccc;border-radius:9px;background:#f7f9f5;color:#4d624f;font-size:12px}.estimate-export-blocked .export-readiness,.contract-export-blocked .export-readiness{border-color:#dccaa1;background:#fff9ec;color:#584b31;box-shadow:inset 3px 0 #b28a42}.export-readiness summary{cursor:pointer;font-weight:700}.export-readiness ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 13px;margin:10px 0 0;padding-left:17px;line-height:1.6}.missing-field-link{min-height:44px;padding:10px 0;border:0;background:transparent;color:#284f3d;text-align:left;font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px;white-space:normal;cursor:pointer}.contract-start-warning{margin-top:-8px}.missing-field-link:hover{color:#152f25}.preview-controls{--choice-color: #20493a;padding:16px;margin:-5px 0 20px;background:#f7f8f3;border:1px solid #cdd7cb;border-radius:12px}.preview-controls[data-palette=coral]{--choice-color: #c94b39}.preview-controls[data-palette=blue]{--choice-color: #235b96}.preview-controls[data-palette=plum]{--choice-color: #684764}.preview-controls[data-palette=mono]{--choice-color: #242424}.preview-control-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:11px}.preview-control-heading strong{font-size:12px;color:#263f32}.preview-control-heading span{font-size:11px;color:#526657}.template-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.template-option{display:flex;align-items:center;gap:8px;min-width:0;min-height:60px;padding:7px;border:1px solid #d4ded3;border-radius:8px;background:#fffefa;color:#344b3b;text-align:left;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.template-option:hover{border-color:#9fac9d}.template-option:active,.palette-options button:active{transform:translateY(1px)}.template-option[aria-pressed=true]{border-color:var(--choice-color);box-shadow:0 0 0 1px var(--choice-color)}.template-option>span:last-child{display:flex;flex-direction:column;min-width:0;gap:2px}.template-option strong{font-size:11px;white-space:nowrap}.template-option small{font-size:11px;color:#536558;white-space:nowrap}.template-sample{position:relative;display:block;flex:none;width:27px;height:36px;border:1px solid #d9dfd7;background:#fff;box-shadow:0 2px 4px #00000012}.template-sample::before,.template-sample::after{content:"";position:absolute;left:4px;right:4px}.template-sample::before{top:6px;height:4px;background:var(--choice-color)}.template-sample::after{top:15px;bottom:5px;background:repeating-linear-gradient(to bottom,#d8d8d8 0 1px,transparent 1px 5px)}.template-option[data-template-choice=grid] .template-sample::after{background:repeating-linear-gradient(to bottom,#d8d8d8 0 1px,transparent 1px 6px),repeating-linear-gradient(to right,transparent 0 8px,#d8d8d8 8px 9px)}.template-option[data-template-choice=editorial] .template-sample::before{height:7px}.template-option[data-template-choice=minimal] .template-sample::before{height:2px}.palette-options{display:flex;align-items:center;flex-wrap:wrap;gap:7px;border-top:1px solid #dce3d9;margin-top:12px;padding-top:12px}.palette-options>span{margin-right:5px;font-size:11px;font-weight:700;color:#536454}.palette-options button{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#46594c;font-size:11px;transition:background .18s ease,color .18s ease,transform .18s ease}.palette-options button:hover{background:#edf0e9}.palette-options button[aria-pressed=true]{border-color:#aebdad;background:#fffefa;color:#273c2e;font-weight:700}.palette-options i{display:block;width:13px;height:13px;border-radius:50%;background:#20493a}.palette-options [data-palette-choice=coral] i{background:#c94b39}.palette-options [data-palette-choice=blue] i{background:#235b96}.palette-options [data-palette-choice=plum] i{background:#684764}.palette-options [data-palette-choice=mono] i{background:linear-gradient(90deg,#242424 50%,#fff 50%);border:1px solid #242424}.print-area{width:100%;container-type:inline-size}.estimate-preview,.contract-sheet{--doc-line: #d4d4d4;--doc-rule: 1px solid var(--doc-line);--doc-accent: #20493a;--doc-soft: #e8ece3;--doc-highlight: #f4d6a4}.estimate-preview[data-template=grid],.contract-sheet[data-template=grid]{--doc-line: color-mix(in srgb, var(--doc-accent) 70%, white);--doc-outer-rule: 1px solid var(--doc-line);--doc-inner-rule: 1px solid var(--doc-line);--doc-footer-rule: 1px solid var(--doc-line)}.grid-rules-ready{position:relative;isolation:isolate}.grid-rules-ready [data-grid-fill]{background-color:transparent!important}.grid-rules-ready tr[data-grid-row]{height:var(--grid-row-height)}.grid-rules-ready[data-template=grid] :is(table,th,td,.contract-party dl,.contract-party dt,.contract-party dd,.document-party>h3,.contract-party>h3,.summary-breakdown,.summary-breakdown>div,.contract-date-grid,.contract-date-grid>div,.contract-price-lines,.contract-price-lines>div,.document-foot,.document-foot p,.document-bottom,.contract-signature-grid>div,.contract-closing>.contract-clause){border-color:transparent!important}.grid-rule-overlay{position:absolute;left:0;top:0;display:block;max-width:none;overflow:visible;z-index:2;pointer-events:none}.grid-rule-fills{position:absolute;left:0;top:0;display:block;max-width:none;overflow:visible;z-index:-1;pointer-events:none}.estimate-preview{background:#fff;width:100%;min-height:calc(100cqw * 1.4142857);padding:clamp(32px,5.4vw,84px);color:#26382e;box-shadow:0 23px 52px -29px #36493c55;container-type:inline-size}.estimate-preview[data-palette=coral],.contract-sheet[data-palette=coral]{--doc-accent: #c94b39;--doc-soft: #fae9e4;--doc-highlight: #fffefa}.estimate-preview[data-palette=blue],.contract-sheet[data-palette=blue]{--doc-accent: #235b96;--doc-soft: #e9f0f9;--doc-highlight: #fffefa}.estimate-preview[data-palette=plum],.contract-sheet[data-palette=plum]{--doc-accent: #684764;--doc-soft: #f2eaf1;--doc-highlight: #fffefa}.estimate-preview[data-palette=mono],.contract-sheet[data-palette=mono]{--doc-accent: #242424;--doc-soft: #efefef;--doc-highlight: #fff;color:#242424}.estimate-preview[data-template=grid]{--doc-tint-ink: color-mix(in srgb, var(--doc-accent) 78%, #26382e);--doc-subtle: color-mix(in srgb, var(--doc-soft) 45%, white)}.preview-help{font-size:11px;color:#647065;line-height:1.6;margin:18px 0 0;text-align:center}.document-kicker{display:flex;justify-content:flex-end;border-top:2px solid var(--doc-accent);padding-top:12px;font-size:9px;font-weight:500;color:#667065}.estimate-preview[data-template=grid] .document-kicker{border-top:var(--doc-rule)}.document-title-row{display:grid;gap:12px;margin-top:29px}.document-title-row h2{grid-row:2;font-size:clamp(22px,2.05vw,33px);line-height:1.32;letter-spacing:-.035em;font-weight:700;margin:0;word-break:keep-all;overflow-wrap:anywhere}.document-date{grid-row:1;justify-self:end;color:#697369;font-size:10px;white-space:nowrap}.document-intro{font-size:10px;color:#69786c;margin:11px 0 32px}.document-parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.document-party{min-width:0}.document-party h3{margin:0;padding:9px 10px;background:var(--doc-soft);border:var(--doc-rule);border-bottom:0;color:var(--doc-accent);font-size:10px;font-weight:700;letter-spacing:.02em}.document-party-table{width:100%;border-collapse:collapse;border-spacing:0;table-layout:fixed}.document-party-table th,.document-party-table td{border:0;border-bottom:var(--doc-rule);padding:8px 7px;font-size:9px;line-height:1.5;vertical-align:middle;overflow-wrap:anywhere}.document-party-table th{width:36%;background:#f6f2e8;color:#6b624c;font-weight:700;text-align:left}.document-party-table td{color:#243c2e;font-weight:600;text-align:left}.document-party-table tr:first-child td{font-weight:700}.estimate-preview[data-template=grid] .document-party-table{border:var(--doc-outer-rule)}.estimate-preview[data-template=grid] .document-party-table th,.estimate-preview[data-template=grid] .document-party-table td{border:var(--doc-inner-rule);padding:4px 6px;line-height:13px}.estimate-preview[data-template=grid] .document-party h3{padding:6px 8px;border-width:1px;border-bottom:0}.estimate-preview[data-template=grid] .document-party-table th,.estimate-preview[data-template=grid] .document-table .document-category-cell,.estimate-preview[data-template=grid] .document-foot span{background:var(--doc-subtle);color:var(--doc-tint-ink)}.estimate-preview[data-template=grid] .document-table .actual-row td{color:var(--doc-accent)}.document-table-wrap{margin-top:34px;overflow-x:auto}.document-table{border-collapse:collapse;border-spacing:0;width:100%;min-width:410px;table-layout:fixed;font-variant-numeric:tabular-nums}.estimate-preview[data-template=grid] .document-table{border:var(--doc-outer-rule)}.estimate-preview[data-template=grid] .document-table :is(th,td){border:var(--doc-inner-rule)}.document-table .col-category{width:13%}.document-table .col-item{width:24%}.document-table .col-quantity{width:6%}.document-table .col-unit{width:14%}.document-table .col-supply{width:15%}.document-table .col-vat{width:12%}.document-table .col-total{width:16%}.document-table thead th{text-align:right;padding:10px 4px;font-size:8px;font-weight:700;color:var(--doc-accent);background:var(--doc-soft);border:var(--doc-rule);white-space:nowrap}.document-table thead th:first-child,.document-table thead th:nth-child(2){text-align:left;padding-left:7px}.document-table .document-category-cell{padding:13px 6px;vertical-align:middle;text-align:left;background:#f6f2e8;border:var(--doc-rule);color:#6f5b3d;font-size:9px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}.document-table td{padding:13px 5px;vertical-align:middle;text-align:right;border:var(--doc-rule);font-size:9px;white-space:nowrap}.document-table td:first-of-type{text-align:left;white-space:normal;padding-left:7px}.document-table td:first-of-type strong{display:block;line-height:1.45;font-size:10px;font-weight:700;overflow-wrap:anywhere}.document-table td:first-of-type span{display:block;margin-top:5px;color:#627466;font-size:8px;line-height:1.5;overflow-wrap:anywhere}.document-table .actual-row td{color:#756535}.document-table .empty-row{text-align:center;color:#8b938b;padding:30px 0}.document-scroll-hint{display:none}.document-table tfoot{break-inside:avoid}.document-table tfoot th,.document-table tfoot td{padding:9px 10px;border:var(--doc-rule);font-size:10px;line-height:1.5}.document-table tfoot th{text-align:right;background:#f6f2e8;color:#6b624c;font-weight:600}.document-table tfoot td{text-align:right;font-weight:700;white-space:nowrap}.document-table tfoot tr:first-child th,.document-table tfoot tr:first-child td{border-top:var(--doc-rule)}.document-table tfoot .sum-final th,.document-table tfoot .sum-final td{background:var(--doc-accent);color:#fffdf6;font-weight:700}.document-table tfoot .sum-final td{color:var(--doc-highlight);font-size:16px;letter-spacing:-.025em}.document-summary{margin-top:18px;break-inside:avoid;font-variant-numeric:tabular-nums}.estimate-preview[data-template=grid] .document-summary{width:43%;margin-left:auto}.document-summary dl{margin:0}.document-summary dt,.document-summary dd{margin:0}.summary-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:var(--doc-rule);background:var(--doc-soft)}.estimate-preview[data-template=grid] .summary-breakdown{border:var(--doc-outer-rule)}.summary-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:12px}.summary-breakdown>div+div{border-left:var(--doc-rule)}.estimate-preview[data-template=grid] .summary-breakdown>div+div{border-left:var(--doc-inner-rule)}.summary-breakdown dt{color:#556157;font-size:9px;font-weight:600;white-space:nowrap}.summary-breakdown dd{color:#26382e;font-size:10px;font-weight:700;text-align:right;white-space:nowrap}.summary-total{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;padding:13px 14px;background:var(--doc-accent);color:#fffdf6;font-weight:700}.summary-total dt{font-size:10px}.summary-total dd{color:var(--doc-highlight);font-size:17px;letter-spacing:-.025em;text-align:right;white-space:nowrap}.estimate-preview[data-template=grid] .summary-breakdown>div,.estimate-preview[data-template=grid] .summary-total{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}.estimate-preview[data-template=grid] .summary-breakdown>div{padding:9px 8px}.estimate-preview[data-template=grid] .summary-total{padding:12px 10px}.document-foot{color:#5c685d;border-top:var(--doc-rule);margin-top:34px}.document-foot>div{display:grid;grid-template-columns:37% minmax(0,1fr);align-items:stretch}.document-foot span{background:#f6f2e8;color:#6b624c;font-size:9px;font-weight:700;padding:10px 12px}.document-foot strong{font-size:10px;font-weight:600;padding:10px 12px;overflow-wrap:anywhere}.document-foot p{font-size:9px;line-height:1.7;margin:0;padding:10px 12px;border-top:var(--doc-rule);white-space:pre-line}.document-bottom{display:flex;justify-content:space-between;gap:15px;margin-top:32px;padding-top:12px;border-top:var(--doc-rule);font-size:9px;color:#69746a}.estimate-preview[data-template=grid] :is(.document-foot,.document-foot p,.document-bottom){border-top:var(--doc-footer-rule)}.estimate-preview[data-template=editorial],.contract-sheet[data-template=editorial]{--editorial-title-size: 24px;--editorial-header-size: 9px;--editorial-total-size: 18px;--editorial-row-padding: 7px;--doc-ink: #242424;--doc-muted: #626262;--editorial-label: var(--doc-muted)}.estimate-preview[data-template=editorial] .document-title-row h2,.contract-sheet[data-template=editorial] h2{font-size:var(--editorial-title-size);line-height:1.32;letter-spacing:-.035em}.estimate-preview[data-template=editorial] .document-party h3,.contract-sheet[data-template=editorial] .contract-party h3{margin:0;padding-bottom:8px}.estimate-preview[data-template=editorial] .document-party-table th,.contract-sheet[data-template=editorial] .contract-party dt{color:var(--editorial-label);font-weight:500;line-height:1.5}.estimate-preview[data-template=editorial] .document-table tbody td strong,.contract-sheet[data-template=editorial] .contract-scope td strong{font-size:10px;line-height:1.45}.estimate-preview[data-template=editorial] .document-table tbody td span,.contract-sheet[data-template=editorial] .contract-scope td span{margin-top:4px}.estimate-preview[data-template=editorial]{background:#fff}.estimate-preview[data-template=editorial] .document-kicker{border:0;padding:0;font-size:10px}.estimate-preview[data-template=editorial] .document-title-row{margin-top:33px}.estimate-preview[data-template=editorial] .document-title-row h2{font-size:var(--editorial-title-size)}.estimate-preview[data-template=editorial] .document-intro{margin-bottom:31px}.estimate-preview[data-template=editorial] .document-parties{gap:16px}.estimate-preview[data-template=editorial] .document-party h3{border:0;border-bottom:var(--doc-rule);background:transparent;padding:0 0 8px}.estimate-preview[data-template=editorial] .document-party-table th,.estimate-preview[data-template=editorial] .document-party-table td{border:0;border-bottom:var(--doc-rule);padding:4px 6px}.estimate-preview[data-template=editorial] .document-party-table th{background:transparent;color:var(--editorial-label);font-weight:500}.estimate-preview[data-template=editorial] .document-table-wrap{margin-top:41px}.estimate-preview[data-template=editorial] .document-table thead th{background:var(--doc-accent);border:0;border-bottom:var(--doc-rule);color:#fff;font-size:var(--editorial-header-size);padding-block:var(--editorial-row-padding)}.estimate-preview[data-template=editorial] .document-table .document-category-cell{background:var(--doc-soft);color:var(--doc-accent);border:0;border-bottom:var(--doc-rule)}.estimate-preview[data-template=editorial] .document-table td{border:0;border-bottom:var(--doc-rule);padding-block:var(--editorial-row-padding)}.estimate-preview[data-template=editorial] .document-table tfoot th,.estimate-preview[data-template=editorial] .document-table tfoot td{border:0;border-bottom:var(--doc-rule);background:transparent;color:#615c54;padding-block:10px}.estimate-preview[data-template=editorial] .document-table tfoot tr:first-child th,.estimate-preview[data-template=editorial] .document-table tfoot tr:first-child td{border-top:var(--doc-rule)}.estimate-preview[data-template=editorial] .document-table tfoot .sum-final th,.estimate-preview[data-template=editorial] .document-table tfoot .sum-final td{color:var(--doc-accent);border-bottom:var(--doc-rule)}.estimate-preview[data-template=editorial] .document-table tfoot .sum-final td{font-size:var(--editorial-total-size)}.estimate-preview[data-template=editorial] .document-foot{border:0;border-top:var(--doc-rule)}.estimate-preview[data-template=editorial] .document-foot span{border:0;background:transparent;color:var(--doc-accent)}.estimate-preview[data-template=editorial] .document-foot p{border-top-color:var(--doc-line)}.estimate-preview[data-template=editorial] .document-bottom{border:0}.estimate-preview[data-template=minimal]{background:#fff;color:#24292a}.estimate-preview[data-template=minimal] .document-kicker{justify-content:flex-start;border:0;border-bottom:2px solid var(--doc-accent);padding:0 0 15px;color:var(--doc-accent);font-weight:700}.estimate-preview[data-template=minimal] .document-title-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;margin-top:37px}.estimate-preview[data-template=minimal] .document-title-row h2{grid-row:1;grid-column:1;font-size:clamp(20px,1.9vw,28px)}.estimate-preview[data-template=minimal] .document-date{grid-row:1;grid-column:2;padding-bottom:3px}.estimate-preview[data-template=minimal] .document-intro{margin:12px 0 25px}.estimate-preview[data-template=minimal] .document-parties{gap:12px}.estimate-preview[data-template=minimal] .document-party{padding:14px 16px;background:#f4f5f4}.estimate-preview[data-template=minimal] .document-party h3{border:0;padding:0 0 8px;background:transparent;color:#24292a}.estimate-preview[data-template=minimal] .document-party-table th,.estimate-preview[data-template=minimal] .document-party-table td{border:0;padding:5px 2px;background:transparent}.estimate-preview[data-template=minimal] .document-party-table th{color:#747c79;font-weight:500}.estimate-preview[data-template=minimal] .document-party-table td{color:#24292a}.estimate-preview[data-template=minimal] .document-table-wrap{margin-top:39px}.estimate-preview[data-template=minimal] .document-table{border-collapse:separate;border-spacing:5px 0}.estimate-preview[data-template=minimal] .document-table thead th{border:0;border-top:var(--doc-rule);border-bottom:var(--doc-rule);padding:13px 3px;background:transparent;color:#24292a}.estimate-preview[data-template=minimal] .document-table .document-category-cell{border:0;border-bottom:var(--doc-rule);background:transparent;color:var(--doc-accent);vertical-align:middle;text-align:left}.estimate-preview[data-template=minimal] .document-table td{border:0;border-bottom:var(--doc-rule);padding:17px 3px}.estimate-preview[data-template=minimal] .document-table tbody:last-of-type .document-category-cell,.estimate-preview[data-template=minimal] .document-table tbody:last-of-type tr:last-child>td{border-bottom:var(--doc-rule)}.estimate-preview[data-template=minimal] .document-table tfoot th,.estimate-preview[data-template=minimal] .document-table tfoot td{border:0;border-bottom:var(--doc-rule);background:transparent;color:#424a47;padding-block:10px}.estimate-preview[data-template=minimal] .document-table tfoot tr:first-child th,.estimate-preview[data-template=minimal] .document-table tfoot tr:first-child td{border-top:0}.estimate-preview[data-template=minimal] .document-table tfoot .sum-final th,.estimate-preview[data-template=minimal] .document-table tfoot .sum-final td{border-bottom:var(--doc-rule);color:var(--doc-accent)}.estimate-preview[data-template=minimal] .document-table tfoot .sum-final td{font-size:20px}.estimate-preview[data-template=minimal] .document-table tfoot tr td.total-spacer{border:0;background:transparent;padding:0}.estimate-preview[data-template=minimal] .document-foot{border:0;border-top:var(--doc-rule)}.estimate-preview[data-template=minimal] .document-foot span{border:0;background:transparent;color:#24292a}.estimate-preview[data-template=minimal] .document-foot p{border-top-color:var(--doc-line)}.estimate-preview[data-template=minimal] .document-bottom{border-top-color:var(--doc-line)}.estimate-preview[data-palette=mono] .document-party-table td{color:#242424}.estimate-preview[data-palette=mono] .document-party-table th,.estimate-preview[data-palette=mono] .document-kicker span,.estimate-preview[data-palette=mono] .document-date,.estimate-preview[data-palette=mono] .document-intro{color:#666}.estimate-preview[data-palette=mono] .document-table td:first-of-type span{color:#626262}.estimate-preview[data-palette=mono] .document-table .actual-row td{color:#555}.estimate-preview[data-palette=mono] .document-foot{color:#555}.estimate-preview[data-palette=mono] .document-bottom{color:#666}.estimate-preview[data-palette=mono][data-template=grid] .document-party-table th,.estimate-preview[data-palette=mono][data-template=grid] .document-table .document-category-cell,.estimate-preview[data-palette=mono][data-template=grid] .document-foot span{background:var(--doc-subtle);color:#3d3d3d}.estimate-preview[data-palette=mono] .document-table tfoot tr:not(.sum-final) th{color:#555}.estimate-preview[data-palette=mono] .summary-breakdown dt{color:#555}.estimate-preview[data-palette=mono] .summary-breakdown dd{color:#242424}.estimate-preview[data-template=editorial] .document-table>thead th{border-bottom:0}.estimate-preview[data-template=editorial] .document-table>tbody:first-of-type>tr:first-child>th,.estimate-preview[data-template=editorial] .document-table>tbody:first-of-type>tr:first-child>td{border-top:0}.estimate-preview[data-template=grid] .document-party-table>thead th{width:auto;padding:6px 8px;background:var(--doc-soft);border-bottom:var(--doc-inner-rule);text-align:left}.estimate-preview[data-template=grid] .document-party-table>thead h3{border:0;padding:0;background:transparent}.estimate-preview[data-template=grid] :is(.document-party-table,.document-table)>thead th{border-bottom:var(--doc-inner-rule)}.estimate-preview[data-template=grid] :is(.document-party-table,.document-table)>tbody:first-of-type>tr:first-child>:is(th,td){border-top:var(--doc-inner-rule)}.estimate-preview[data-template=grid] .document-party:has(>h3) .document-party-table{border-top:var(--doc-inner-rule)}.estimate-preview .document-party h3,.estimate-preview .document-party-table th,.estimate-preview .document-party-table td,.estimate-preview .document-table thead th:first-child,.estimate-preview .document-table thead th:nth-child(2),.estimate-preview .document-table td:first-of-type,.estimate-preview .document-table .document-category-cell,.estimate-preview .document-foot span,.estimate-preview .document-foot strong,.estimate-preview .document-foot p{text-align:left}.estimate-preview .document-table thead th:nth-child(n+3),.estimate-preview .document-table td:not(:first-of-type),.estimate-preview .document-table tfoot th,.estimate-preview .document-table tfoot td{text-align:right}.estimate-preview[data-template=minimal] .document-table tfoot td:first-of-type{text-align:right}.estimate-preview .document-table td.empty-row{text-align:center}.estimate-preview .document-table thead th:first-child,.estimate-preview .document-table thead th:nth-child(2),.estimate-preview .document-table td:first-of-type{padding-inline:5px}@media(max-width:1520px){:root{--sticky-header-height: 124px}.app-header{grid-template-columns:auto 1fr;padding-block:13px;row-gap:9px}.app-header .brand{grid-column:1;grid-row:1}.header-actions{grid-column:2;grid-row:1}.header-flow{grid-column:1 / -1;grid-row:2;justify-self:center}}@media(max-width:1180px){.workspace{grid-template-columns:minmax(0,1fr) minmax(480px,44%)}.editor{padding-inline:30px}.preview-area{padding-inline:22px}}@media(max-width:1100px){.mobile-preview-jump{display:inline-flex!important;width:max-content;margin-top:18px;text-decoration:none}.mobile-preview-bottom{margin-top:24px}.mobile-editor-jump{display:inline-block!important;margin:0 0 16px;color:#315a4a;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}.workspace{display:flex;flex-direction:column}.editor{max-width:850px;padding:40px 30px 48px}.preview-area{position:static;max-height:none;width:100%;padding:30px}.print-area{max-width:720px;margin-inline:auto}.preview-topline,.preview-controls,.preview-help{max-width:720px;margin-inline:auto}.preview-topline{margin-bottom:20px}.preview-controls{margin-bottom:20px}.document-title-row h2{font-size:32px}.document-table td{font-size:10px}}@media(max-width:640px){:root{--sticky-header-height: 116px}.app-header{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:13px 17px 12px;min-height:65px;align-items:center;gap:11px}.brand{font-size:15px}.brand-tagline{font-size:9px}.header-flow{width:100%;justify-content:space-between;justify-self:stretch;gap:0}.header-flow a{flex:1;justify-content:center;gap:0;min-height:44px;padding:9px 3px;font-size:11px}.header-flow a span{display:none}.header-actions{display:flex;grid-column:2;grid-row:1;justify-self:end;gap:var(--space-1)}.header-login-button,.header-account{grid-column:2;grid-row:1;justify-self:end}.header-data{padding:0;border:0}.header-text-button,.header-account button{min-height:40px;padding:8px 6px}.header-account span{display:none}.header-pdf-button,.header-login-button{min-height:44px;font-size:11px}.header-account{max-width:min(45vw,190px);margin-left:auto}.header-actions .save-status{display:none}.header-actions .button{padding:10px 12px;font-size:12px}.editor{padding:30px 18px 52px}.editor-intro{align-items:start;flex-direction:column;gap:20px;padding-bottom:24px}h1{font-size:32px}.intro-total{text-align:left;align-items:start}.intro-total strong{font-size:27px}.preset-actions{width:100%}.field-grid{grid-template-columns:1fr;gap:15px}.section-heading{margin-bottom:20px}.section-heading h2{font-size:19px}.section-heading span{font-size:10px}.item-fields{grid-template-columns:1fr 1fr}.item-name,.item-detail{grid-column:1 / -1}.item-quantity,.item-price{grid-column:auto}.item-bottom{align-items:start;flex-direction:column}.item-amount{align-self:end}.ai-actions{align-items:start;flex-direction:column}.api-key-form,.api-card-head{align-items:stretch;flex-direction:column}.ai-results{padding:16px}.ai-result-heading{align-items:start;flex-direction:column;gap:4px}.ai-project-suggestion{align-items:start;flex-direction:column;gap:11px}.ai-project-suggestion .field{width:100%}.ai-project-suggestion .checkbox{padding-bottom:0}.preview-area{padding:27px 12px 40px}.preview-topline{align-items:start;flex-direction:column}.preview-export{width:100%;justify-content:flex-end}.preview-controls{padding:12px}.preview-control-heading{flex-direction:column;gap:3px}.template-option{flex-direction:column;align-items:start;min-height:79px}.template-option strong{font-size:11px}.template-option small{font-size:10px}.palette-options>span{flex:0 0 100%}.document-title-row{margin-top:25px;gap:10px}.document-title-row h2{font-size:27px}.document-table-wrap{margin-top:26px}.document-table{min-width:520px}.document-table td{font-size:10px}.document-scroll-hint{display:block;margin:8px 0 0;color:#526a58;font-size:10px}}@media screen{@container (max-width: 600px){.document-parties{gap:8px}.document-party-table th,.document-party-table td{padding:5px 4px}}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button,.header-flow a,.template-option,.palette-options button,.field input,.field textarea,.field select{transition:none}.button:hover,.button:active,.header-flow a:active,.template-option:active,.palette-options button:active{transform:none}}.work-kind-help{margin:0 0 18px;color:var(--ui-muted);font-size:12px;line-height:1.6}.work-kind-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-input);color:var(--ui-text);font:inherit;font-size:13px;text-align:left;cursor:pointer}.work-kind-trigger span{min-width:0;overflow-wrap:anywhere}.work-kind-trigger svg,.work-kind-picker svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.work-kind-trigger:hover,.work-kind-trigger[aria-expanded=true]{border-color:var(--ui-text)}.work-kind-picker{position:fixed;inset:auto;margin:0;padding:8px;overflow:hidden;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-panel);color:var(--ui-text);font-family:inherit}.work-kind-picker:popover-open{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.work-kind-groups{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:var(--ui-line) var(--ui-panel)}.work-kind-picker .work-kind-heading{display:flex;align-items:center;justify-content:space-between;padding:0 4px 4px 12px}.work-kind-heading strong{font-size:13px}.work-kind-picker button{border:0;border-radius:6px;padding:10px 12px;min-height:44px;background:transparent;color:var(--ui-text);font:inherit;font-size:13px;text-align:left;cursor:pointer}.work-kind-heading button{display:grid;place-items:center;width:44px;padding:10px}.work-kind-group+.work-kind-group{border-top:1px solid var(--ui-line)}.work-kind-group>button{display:flex;align-items:center;justify-content:space-between;width:100%;font-weight:600}.work-kind-group>button[aria-expanded=true] svg{transform:rotate(180deg)}.work-kind-picker .work-kind-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:0 4px 10px}.work-kind-picker .work-kind-options[hidden]{display:none}.work-kind-options button{font-size:12px;overflow-wrap:anywhere}.work-kind-options button:first-child{grid-column:1 / -1;color:var(--ui-muted)}.work-kind-picker button:hover{background:var(--ui-soft)}.work-kind-picker button[aria-pressed=true]{background:var(--ui-strong);color:var(--ui-on-strong)}.work-kind-trigger:focus-visible,.work-kind-picker button:focus-visible{outline:2px solid var(--ui-text);outline-offset:-3px}.work-kind-footer{display:grid;grid-template-columns:1fr 1fr;gap:4px;border-top:1px solid var(--ui-line);padding-top:8px}.work-kind-footer button{text-align:center;background:var(--ui-soft)}@media screen and (max-width:640px),screen and (pointer:coarse){html .field input,html .field textarea,html .field select,html .guide-mobile-progress select{font-size:16px}}@media print{.work-kind-picker{display:none!important}}@page{size:A4 portrait;margin:36mm 34mm}.project-library{width:min(560px,calc(100vw - 32px));max-height:min(80vh,720px);padding:27px;border:1px solid #d8ded7;border-radius:18px;box-shadow:0 22px 70px #14241c35;color:#203428;background:#fff}.project-library::backdrop{background:#0b2119a3}.library-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:22px}.library-heading h2{margin:0 0 6px;font-size:24px}.library-heading p{margin:0;color:#66756b;line-height:1.55;font-size:13px}.library-heading>button{width:30px;height:30px;border:0;border-radius:50%;background:#eef1ec;color:#304436;font-size:22px;cursor:pointer}#library-status{min-height:20px;margin:16px 0 10px;color:#455e4c;font-size:13px}.library-list{display:grid;gap:8px;max-height:340px;overflow-y:auto}.library-project{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #e0e5dd;border-radius:10px}.library-project div{display:grid;gap:4px;min-width:0}.library-project strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.library-project small{color:#6b796f;font-size:11px}.library-project button{flex:0 0 auto}.library-file-actions{display:flex;gap:8px;justify-content:end;flex-wrap:wrap;margin-top:22px;padding-top:15px;border-top:1px solid #e0e5dd}@media(max-width:640px){.project-library{padding:20px}.library-project{align-items:start;flex-direction:column}}@media print{.guide-mode .preview-area,.guide-mode .contract-preview-area{width:100%;max-width:none;margin:0;border-radius:0}html,body{background:#fff;margin:0;padding:0}html.estimate-export-blocked body::before{content:"필수 항목을 모두 작성한 뒤 PDF로 저장할 수 있습니다.";display:block;padding:24mm;font-size:14px}html.estimate-export-blocked .preview-area{display:none!important}.skip-link,.app-header,.editor,.site-explainer,.preview-topline,.preview-controls,.preview-help,.export-readiness{display:none!important}.workspace{display:block;min-height:0}.preview-area{display:block;position:static;width:100%;max-height:none;min-height:0;overflow:visible;background:#fff;padding:0}.print-area{max-width:none;margin:0;width:100%}.estimate-preview{box-shadow:none;width:100%;min-height:0;padding:0;break-after:auto;print-color-adjust:exact;-webkit-print-color-adjust:exact}.document-title-row h2{font-size:32px}.document-table{min-width:0}.document-scroll-hint{display:none}.document-table tr{break-inside:avoid}.document-table th{font-size:8px}.document-table td{font-size:9px}.document-party-table th,.document-party-table td{padding:7px 8px;font-size:9px}}.estimate-preview[data-template=grid] .document-party-table col:first-child{width:36%}
