@font-face{font-family:Manrope;src:url('assets/vendor/manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
:root{font:14px/1.5 Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--surface:#ececeb;--accent:#727474;--line:#b0b3b2;--ink:#303434;--muted:#616666;color:var(--ink);background:var(--surface)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,summary{cursor:pointer}button,.button,select,input{min-height:40px}button,.button{border:1px solid #c8cbca;background:#fff;border-radius:6px;padding:9px 15px;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;color:var(--ink);font-size:12px}button:hover,.button:hover{background:#e3e5e4}.primary{background:#727474;border-color:#727474;color:#fff;font-weight:650}.primary:hover{background:#5f6262}a{color:#444b4b}.icon{width:21px;height:21px;object-fit:contain}input,select,textarea{border:1px solid #bfc4c2;border-radius:5px;background:#fff;padding:8px 11px;width:100%;font-size:13px}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #727474;outline-offset:3px}input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:#727474;margin:0;flex-shrink:0}input[readonly]{background:#ececeb;color:#596060}textarea{min-height:65px;resize:vertical;line-height:1.5}.topbar{min-height:86px;display:flex;align-items:center;padding:18px 28px;gap:26px;background:#fff;border-bottom:1px solid #d0d3d2}.brand img{width:208px;height:auto;display:block}.top-title{font-size:24px;font-weight:750;letter-spacing:-.6px;border-left:1px solid #d4d6d5;padding-left:26px;white-space:nowrap}.top-title span{display:block;font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.top-actions select{width:170px;font-size:12px}.backup-menu{position:relative;font-size:12px}.backup-menu>summary{border:1px solid #c8cbca;background:#fff;padding:10px 14px;border-radius:6px;min-height:40px;white-space:nowrap}.backup-menu>div{position:absolute;right:0;top:48px;z-index:5;min-width:250px;border:1px solid #c6c9c8;box-shadow:0 8px 24px #30343418;border-radius:7px;background:#fff;padding:8px;display:grid;gap:3px}.backup-menu button{justify-content:start;border:0;text-align:left;font-size:12px}.workspace{padding:18px 24px 26px;max-width:1800px;margin:auto}.identity{background:#f1f2f1;border:1px solid #d5d8d6;border-radius:7px;padding:13px 15px;margin-bottom:14px}.identity-fields{display:grid;grid-template-columns:1.2fr .65fr 1.25fr 1.25fr;gap:20px}.field{min-width:0}.field label{display:block;font-size:12px;font-weight:550;margin-bottom:5px;line-height:1.5}.identity-notes{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:10px;margin-top:8px}.sample-label{font-weight:550}.work-grid{display:grid;grid-template-columns:335px minmax(0,1fr);gap:14px;align-items:start}#scope-panel{background:#ececeb;border:1px solid #d0d3d2;border-radius:7px;padding:17px 15px;min-height:calc(100vh - 270px)}h1,h2{margin:0;font-weight:750;letter-spacing:-.5px}h1{font-size:27px;line-height:1.25}h2{font-size:18px;line-height:1.4}.scope-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.scope-heading h2{font-size:17px;letter-spacing:-.7px}.scope-heading>span{font-size:11px;white-space:nowrap;color:var(--muted)}.scope-group{border-top:1px solid #cdd1cf;padding:12px 0}.scope-group>summary{font-weight:700;font-size:13px;min-height:26px}.scope-group>div{padding:7px 0 0 17px}.scope-label,.child-label{display:flex;align-items:start;gap:10px;cursor:pointer;font-size:12px;line-height:1.5;min-height:32px;padding:6px 0}.scope-label input,.child-label input{margin-top:2px}.scope-branch>summary{position:relative;min-height:32px}.scope-branch>summary .scope-label{display:inline-flex;max-width:calc(100% - 18px)}.branch-content{padding:8px 8px 12px 15px;border-left:1px solid #b0b3b2;margin:1px 0 6px 8px;background:#f2f3f2}.branch-content textarea{min-height:54px;font-size:11px}.child-label{font-size:11px;gap:8px;min-height:29px;padding:5px 0}.scope-confirm{margin-top:25px;padding-top:15px;border-top:1px solid #cdd1cf}.scope-confirm button{width:100%}.hint{font-size:10px;line-height:1.6;color:var(--muted);margin:7px 0 0}.scope-confirm .hint{margin-top:10px}main{background:#fff;border:1px solid #d4d7d5;border-radius:7px;padding:22px 27px;min-width:0;outline:0}.main-heading p{margin:3px 0 18px;color:var(--muted);font-size:12px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 24px}.parameter-group+.parameter-group{border-top:1px solid #d0d3d2;margin-top:20px;padding-top:12px}.parameter-group h2{font-size:18px;margin-bottom:10px}.extra-details{background:#f3f4f3;border:1px solid #d0d3d2;border-radius:6px;padding:13px;margin-top:20px}.extra-details h2{font-size:15px;margin-bottom:8px}.extra-details>textarea{min-height:60px}.extra-details details{margin-top:9px}.extra-details summary{font-size:12px;min-height:28px;padding:4px 0}.extra-details .fields{margin-top:15px}.source-details p{font-size:11px;line-height:1.7;color:var(--muted)}#decision-status{font-size:11px;color:var(--muted);margin:10px 0}#decision-status p{margin:5px 0}#decision-status details{background:#f4f5f4;border-radius:4px;padding:7px 10px}#decision-status li{margin:5px 0}.main-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:13px}.main-actions .primary{min-width:195px}.main-foot{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted);margin-top:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}dialog{width:min(750px,94vw);border:1px solid #b0b3b2;border-radius:10px;padding:24px;box-shadow:0 20px 80px #30343425;color:var(--ink);background:#fff}dialog::backdrop{background:#30343466}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-head h2{font-size:22px}dialog p{font-size:12px;line-height:1.6}.start-options{display:grid;gap:12px;margin-top:18px}.start-options button{display:block;text-align:left;padding:16px;background:#f2f3f2}.start-options strong{display:block;font-size:14px;margin-bottom:5px}.start-options span{font-size:12px;color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}#transfer-text,#reference-text{min-height:300px;font:11px/1.6 ui-monospace,monospace;padding:13px;white-space:pre-wrap}#toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:#555b5b;color:white;border-radius:7px;padding:12px 18px;font-size:12px;max-width:90vw;z-index:20}#print-reference{display:none}
.topbar{padding-top:13px;padding-bottom:13px}.identity{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:18px;align-items:center}.identity-notes{font-size:11px;line-height:1.5;margin:0;display:block}.identity-notes #period-format{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.identity-fields{grid-template-columns:1fr .6fr 1fr 1fr;gap:18px}.identity input,.identity select{min-height:36px}.work-grid{grid-template-columns:385px minmax(0,1fr)}.workspace{padding-top:12px}.scope-heading h2{font-size:19px}.scope-label{font-size:13px}.scope-group>summary{font-size:14px}.scope-branch>summary .scope-label{vertical-align:middle}.field label{font-size:13px;margin-bottom:3px}.parameter-group input,.parameter-group select{min-height:34px;padding:6px 10px;font-size:13px}.fields{gap:12px 24px}.parameter-group+.parameter-group{margin-top:13px;padding-top:9px}.parameter-group h2{margin-bottom:8px}.main-heading p{margin-bottom:13px}.parameter-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.extra-details{margin-top:13px;padding:12px}.extra-details>textarea{min-height:46px;height:46px;font-size:12px}.extra-details h2{margin-bottom:6px}.extra-details summary{min-height:24px;padding:2px 0}.source-details:not([open]){display:none}.extra-details:has(#operator-controls[open]) .source-details{display:block}.main-actions{margin-top:9px}.main-foot{margin-top:8px}.parameter-group{position:relative}
.parameter-group .field.boolean{display:flex;align-items:center;gap:12px}.parameter-group .field.boolean label{flex:1;margin:0}.parameter-group .field.boolean select{width:112px;flex-shrink:0}.parameter-group+.parameter-group{padding-top:6px;margin-top:10px}.parameter-group h2{line-height:1.25;margin-bottom:6px}main{padding-top:18px;padding-bottom:18px}.main-heading p{margin-bottom:10px}.extra-details{margin-top:10px}.main-foot{font-size:10px}
@media(min-width:1650px){.work-grid{grid-template-columns:385px minmax(0,1fr)}main{padding:25px 35px}.workspace{padding:22px 30px}}
@media(max-width:1100px){.topbar{padding:16px 20px;gap:18px;flex-wrap:wrap}.top-title{font-size:21px;padding-left:18px}.top-actions{margin-left:auto;gap:8px}.brand img{width:180px}.top-actions select{width:145px}.workspace{padding:16px}.work-grid{grid-template-columns:280px minmax(0,1fr)}main{padding:20px}.fields{gap:15px}.identity-fields{gap:12px;grid-template-columns:1fr .7fr 1.2fr 1.2fr}.scope-heading{flex-wrap:wrap}.scope-heading h2{font-size:17px}}
@media(max-width:1100px){.identity{display:block}.identity-notes{margin-top:7px;font-size:10px}.identity-fields{grid-template-columns:1fr .7fr 1.2fr 1.2fr}.field label{font-size:12px}.scope-label{font-size:12px}}
@media(max-width:760px){.top-actions{width:100%;justify-content:flex-end}.identity-fields{grid-template-columns:1fr 1fr}.identity-notes{flex-direction:column;gap:3px}.work-grid{grid-template-columns:230px minmax(0,1fr)}.fields{grid-template-columns:1fr}.scope-heading{gap:4px}.scope-group>div{padding-left:12px}.scope-label{font-size:11px}#scope-panel{padding:15px 12px}.main-actions{flex-wrap:wrap;justify-content:stretch}.main-actions>*{flex:1}.main-foot{flex-direction:column;gap:4px}h1{font-size:24px}}
@media(max-width:580px){.topbar{padding:16px;gap:15px}.brand img{width:158px}.top-title{font-size:17px;padding-left:14px}.top-title span{font-size:10px}.top-actions{flex-wrap:wrap;gap:7px;justify-content:start}.top-actions select{flex:1;min-width:145px}.top-actions button{font-size:10px;padding:9px 10px}.backup-menu>summary{font-size:11px}.workspace{padding:12px}.identity-fields{grid-template-columns:1fr}.identity{padding:13px}.work-grid{display:flex;flex-direction:column;gap:12px}#scope-panel,main{width:100%}#scope-panel{min-height:0}.scope-heading{flex-wrap:nowrap}.scope-group>div{padding-left:18px}.scope-label{font-size:12px;min-height:35px}.scope-confirm{margin-top:15px}main{padding:20px 16px}.field label{font-size:13px}.fields{gap:17px}.extra-details{padding:12px}.main-actions>*{min-width:0!important;font-size:12px}.dialog-head h2{font-size:19px}dialog{padding:20px}}
@media(max-width:580px){.scope-label,.child-label{min-height:44px;align-items:center}.scope-label input,.child-label input{margin-top:0}.identity input,.identity select,main input,main select,button,.button{min-height:44px}.scope-branch>summary{min-height:44px}.parameter-group .field.boolean{min-height:44px}.parameter-group .field.boolean select{min-height:44px}}
.top-title{display:flex;align-items:center;flex-shrink:0}.top-title .product-logo{display:block;width:auto;height:54px;object-fit:contain}
@media(max-width:1100px){.top-title .product-logo{height:48px}}
@media(max-width:580px){.top-title .product-logo{height:40px}}
.parameter-preset{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;margin-bottom:14px;background:#ececeb;border:1px solid #d0d3d2;border-radius:6px}.parameter-preset p{margin:0;width:100%;font-size:11px;line-height:1.5;color:var(--muted)}.parameter-preset button{font-size:11px;min-height:34px;padding:7px 10px}.parameter-preset label{display:flex;align-items:center;gap:8px;font-size:11px;cursor:pointer}
.scope-heading{gap:6px;min-height:84px;margin-bottom:8px}.scope-heading-copy{flex:1;min-width:0}.scope-heading-copy h2{font-size:18px;line-height:1.35}.scope-heading-copy>span{display:block;margin-top:5px;font-size:11px;color:var(--muted)}.scope-motion-wrap{position:relative;width:112px;height:88px;flex-shrink:0}#scope-motion{width:100%;height:100%;pointer-events:none;filter:grayscale(1) contrast(.8)}#scope-motion svg{display:block}.motion-unavailable{display:none}
@media(min-width:581px) and (max-width:1100px){.scope-motion-wrap{width:74px;height:74px}.scope-heading-copy h2{font-size:16px}}
@media(max-width:580px){.scope-motion-wrap{margin-right:3px}}
#delete-project{color:#515757;background:#ececeb;border-color:#b0b3b2;white-space:nowrap}.project-target{background:#ececeb;border:1px solid #d0d3d2;padding:14px;border-radius:6px;margin-top:16px;overflow-wrap:anywhere}.project-target strong{font-size:17px}.project-target p{margin:7px 0}.project-target small,.trash-item small{font-size:10px;color:var(--muted)}.trash-item{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #d0d3d2;border-radius:6px;padding:14px;margin-top:12px;overflow-wrap:anywhere}.trash-item>div{min-width:0}.trash-item p{margin:6px 0}.trash-item button{flex-shrink:0}
@media(max-width:580px){.trash-item{align-items:start;flex-direction:column}.trash-item button{width:100%}}
#reference-dialog{width:min(1060px,94vw);max-height:94vh;overflow:auto}#reference-state{padding:14px 16px;background:#ececeb;border-radius:6px;margin-top:15px}#reference-state>p{margin:5px 0}.reference-tabs{display:flex;gap:8px;margin-top:16px;border-bottom:1px solid #b0b3b2;padding-bottom:8px}.reference-tabs [aria-selected=true]{background:#727474;color:white;border-color:#727474}#reference-pdf-status{font-size:11px;color:var(--muted);margin:9px 0}#reference-pdf-preview{display:block;width:100%;height:52vh;min-height:300px;overflow:auto;border:1px solid #b0b3b2;border-radius:5px;background:#ececeb;padding:20px}#reference-ai-text{width:100%;height:52vh;min-height:300px;font:12px/1.65 Manrope,sans-serif;white-space:pre-wrap;margin-top:10px}#reference-dialog>.actions{padding-top:8px}#reference-pdf-download:disabled{opacity:.5;cursor:wait}
.reference-paper{max-width:760px;margin:auto;background:white;padding:28px;font-size:12px;line-height:1.65;overflow-wrap:anywhere}.reference-paper header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #b0b3b2;padding-bottom:16px;margin-bottom:22px}.reference-paper header img{width:130px;height:auto}.reference-paper header img+img{width:105px}.reference-paper h2{font-size:22px;line-height:1.35}.reference-paper h3{font-size:15px;margin:24px 0 10px}.reference-kicker{color:#727474;font-size:10px;letter-spacing:.05em}.reference-paper table{width:100%;border-collapse:collapse;table-layout:fixed}.reference-paper th{text-align:left;background:#ececeb;font-size:10px;font-weight:600}.reference-paper th,.reference-paper td{padding:8px;vertical-align:top;border-bottom:1px solid #b0b3b2}.reference-notes{white-space:pre-wrap}.reference-paper ul{padding-left:20px}.reference-paper li{margin:6px 0}
.period-input{display:flex;gap:5px}.period-input input{min-width:0;flex:1}.period-input button{padding:5px 8px;font-size:10px;min-height:34px}.identity-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;border-top:1px solid #d0d3d2;padding-top:10px}.identity-tools button{font-size:11px}.identity-tools .hint{margin:0}button:disabled{opacity:.55;cursor:not-allowed}#period-dialog{width:min(700px,94vw)}.period-picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.period-picker-grid fieldset{border:1px solid #b0b3b2;border-radius:6px;padding:16px;min-width:0}.period-picker-grid legend{font-weight:700}.period-picker-grid label{display:block;font-size:12px;margin:9px 0 4px}#period-error{font-size:12px}#customer-dialog{width:min(940px,94vw);max-height:94vh;overflow:auto}#customer-preview{max-height:58vh;overflow:auto;background:#ececeb;border:1px solid #b0b3b2;padding:18px;border-radius:5px}.customer-cover{background:white;padding:24px;font-size:12px;line-height:1.65;overflow-wrap:anywhere}.customer-cover header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #b0b3b2;padding-bottom:14px;margin-bottom:18px}.customer-cover header img{width:150px}.customer-cover header span{font-size:10px;color:#727474;letter-spacing:1px}.customer-cover h2{font-size:21px}.customer-question{border-top:1px solid #b0b3b2;padding:14px 0}.customer-question h3{font-size:13px;margin:0 0 5px}.customer-question p{font-size:11px;color:#616666;margin:0 0 10px}.customer-options{display:flex;flex-wrap:wrap;gap:8px}.customer-options label{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #b0b3b2;border-radius:5px}.customer-cover fieldset{border:0;margin:0;padding:0}.customer-cover fieldset input,.customer-cover fieldset select{opacity:1;color:#616666}#customer-status{font-size:11px}#customer-response-text{width:100%;height:55vh;font-size:12px}#customer-response-dialog{width:min(820px,94vw)}
#customer-dialog[open]{display:flex;flex-direction:column;height:min(780px,94vh);overflow:hidden}#customer-dialog>.dialog-head,#customer-dialog>.hint,#customer-dialog>.actions,#customer-status{flex-shrink:0}#customer-preview{flex:1;min-height:0;max-height:none}#customer-dialog>.actions{margin-top:4px}
#customer-response-dialog[open]{display:flex;flex-direction:column;height:min(800px,94vh);overflow:hidden}#customer-response-dialog>.dialog-head,#customer-response-dialog>.actions{flex-shrink:0}.customer-response-body{flex:1;min-height:0;overflow:auto;padding-right:6px}.customer-response-body li{margin-bottom:10px;font-size:13px;line-height:1.55}.customer-response-body small{display:block;color:#727474;font-size:11px}.customer-response-body h3{font-size:15px}.customer-answer-history{margin-top:20px;border-top:1px solid #b0b3b2;padding-top:14px}.customer-answer-history summary{cursor:pointer;font-weight:600}#customer-response-text{height:300px;margin-top:12px}#customer-response-dialog>.actions{margin-top:12px}
#reference-dialog[open]{display:flex;flex-direction:column;height:min(880px,94vh);overflow:hidden}#reference-dialog>.dialog-head,#reference-state,.reference-tabs,#reference-dialog>.actions{flex-shrink:0}#reference-state{max-height:24vh;overflow:auto}#reference-dialog>[role=tabpanel]:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}#reference-pdf-preview,#reference-ai-text{flex:1;min-height:0;height:auto}#reference-ai-panel>.hint{flex-shrink:0}
@media(max-width:580px){.period-picker-grid{grid-template-columns:1fr;gap:12px}#period-dialog{max-height:94vh;overflow:auto}.period-input button{min-height:44px}.identity-tools button{flex:1;min-width:140px}#customer-dialog{padding:17px}#customer-preview{padding:8px}.customer-cover{padding:15px}.customer-cover header img{width:125px}.customer-cover header span{font-size:8px}.customer-options label{width:100%;min-height:44px}#customer-dialog>.actions{flex-wrap:wrap}#customer-dialog>.actions button{flex:1;min-width:180px}}
@media(max-width:580px){#reference-dialog{padding:17px}.reference-tabs button{flex:1;font-size:11px}#reference-pdf-preview,#reference-ai-text{height:42vh;min-height:230px}#reference-pdf-preview{padding:8px}.reference-paper{padding:16px;font-size:11px}.reference-paper header img{width:95px}.reference-paper header img+img{width:78px}.reference-paper h2{font-size:18px}.reference-paper th,.reference-paper td{padding:6px;font-size:10px}#reference-dialog>.actions button{flex:1;min-width:130px}}
[hidden]{display:none!important}
@media(max-width:580px){.top-actions{position:relative}.backup-menu{position:static}.backup-menu>div{left:0;right:auto;top:100%;margin-top:8px;min-width:0;width:min(300px,100%)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}@media print{body{background:white;color:black}.topbar,.workspace,dialog,#toast{display:none!important}#print-reference{display:block;white-space:pre-wrap;font:11px/1.6 Manrope,sans-serif;padding:20px;overflow-wrap:anywhere}}
