:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#203b33;background:#f3f5f2;font-synthesis:none;--green:#176b59;--ink:#203b33;--muted:#718079;--line:#dfe6e1}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px 15px;font-size:13px;color:#3d554b;transition:background .15s}button:hover{background:#eff4f0}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--green);border-color:var(--green);color:#fff}button.primary:hover{background:#115345}button:focus-visible,summary:focus-visible,a:focus-visible,.table-wrap:focus-visible{outline:3px solid #89b8a6;outline-offset:3px}a{color:inherit}h1,h2,h3,p{margin-top:0}h2{font-size:18px;font-weight:600}h3{font-size:12px;font-weight:600}.app-header{background:#ffffffed;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.header-inner{max-width:1440px;padding:17px 40px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-weight:650;font-size:17px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:var(--green);color:#fff;font-size:17px;font-weight:500}.brand small{font-size:10px;color:var(--muted);font-weight:400;margin-left:8px}.header-actions{display:flex;gap:10px}main{max-width:1440px;margin:auto;padding:32px 40px 18px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:16px}.eyebrow{display:block;font-size:10px;letter-spacing:1.8px;color:#7c8a82;margin:0 0 10px;font-weight:500}h1{font-size:28px;letter-spacing:-.6px;font-weight:600;margin:0;line-height:1.3}.local-badge{display:flex;align-items:center;gap:7px;font-size:11px;color:#738177;white-space:nowrap}.local-badge i{width:6px;height:6px;background:#3c9473;border-radius:50%}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 12px #213e3103}.metadata{padding:22px 26px;display:grid;grid-template-columns:1.05fr 1fr 1.35fr 1.2fr;gap:24px}label{display:flex;flex-direction:column;gap:9px;font-size:12px;color:#60756a;min-width:0}input,textarea,select{display:block;width:100%;min-width:0;border:1px solid #dce4de;border-radius:7px;background:#fcfdfb;color:#203d33;outline:none;padding:11px 12px;font-size:14px}input:focus,textarea:focus,select:focus{border-color:#70a18b;box-shadow:0 0 0 3px #176b5910;background:#fff}input::placeholder,textarea::placeholder{color:#a0ada4}textarea{resize:vertical;line-height:1.85;max-width:100%}#status{font-size:12px;color:#718078;margin:13px 2px 20px;line-height:1.8;overflow-wrap:anywhere;min-height:22px}#status[data-tone=saved]{color:#377b60}#status[data-tone=error]{color:#a14732;background:#fff2eb;border:1px solid #f0d2c6;border-radius:7px;padding:10px 13px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:16px}.tabs{display:flex;gap:4px;padding:4px;background:#e9eee9;border-radius:9px}.tabs button{background:transparent;border:0;padding:9px 19px;color:#748377}.tabs button.active{background:#fff;color:var(--green);font-weight:600;box-shadow:0 1px 5px #203b3310}summary{cursor:pointer;font-size:13px;line-height:1.7}summary::marker{color:#899c8f}.tools{position:relative}.tools>summary{list-style:none;padding:10px 3px;color:#53695c;display:flex;gap:18px;align-items:center}.tools>summary::-webkit-details-marker{display:none}.tools-menu{position:absolute;right:0;top:100%;width:230px;z-index:10;background:#fff;padding:9px;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px #1c38221a}.tools-menu button{width:100%;border:0;text-align:left;padding:11px}.tools-menu p{font-size:11px;color:var(--muted);padding:8px;line-height:1.8;margin:0}.workspace{display:grid;grid-template-columns:280px minmax(0,1fr);align-items:start;gap:22px;margin-bottom:20px}.directory{position:sticky;top:92px;min-width:0;overflow:hidden}.directory-heading{padding:22px 18px 18px;border-bottom:1px solid #e9eeea}.directory-heading h2{font-size:14px;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.directory-heading h2 span{font-size:11px;font-weight:400;color:var(--muted)}.add{width:100%;border:1px dashed #b8cebf;background:#f5f9f4;color:var(--green);font-size:12px}#directory{max-height:calc(100vh - 255px);overflow-y:auto;padding:6px 9px 16px}.directory-group{padding-top:18px}.directory-group h3{color:#819187;padding:0 10px;margin:0 0 8px;display:flex;justify-content:space-between;gap:8px;overflow-wrap:anywhere}.directory-group h3 span{font-weight:400}.directory-item{display:flex;gap:10px;text-align:left;width:100%;border:1px solid transparent;padding:11px 9px;border-radius:7px;background:transparent;margin-top:3px;align-items:flex-start}.directory-item.active{background:#edf5ee;border-color:#e0ece1}.directory-item:hover{background:#f3f6f2}.directory-item.active:hover{background:#e7f1e9}.item-number{color:#99ab9f;font-size:11px;line-height:1.8;font-variant-numeric:tabular-nums;flex-shrink:0}.directory-item>span:last-child{min-width:0}.directory-item b{display:block;font-size:12px;font-weight:500;line-height:1.65;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.directory-item.active b{color:var(--green);font-weight:600}.directory-item small{display:block;font-size:10px;color:#8c9b90;line-height:1.6;margin-top:5px}.editor{min-width:0;overflow:hidden}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 28px;border-bottom:1px solid #eaf0ea}.editor-heading h2{margin:0}.editor-heading .eyebrow{margin-bottom:7px}.row-actions{display:flex;flex-wrap:wrap;gap:6px}.row-actions button{font-size:11px;padding:7px 10px}.danger{color:#a06655}.editor-body{padding:24px 28px}.classification{display:grid;grid-template-columns:1fr 1.6fr;gap:20px;margin-bottom:24px}.writing-field{margin-bottom:23px}.writing-field textarea{font-size:14px}.amount-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.amount-fields input{font-variant-numeric:tabular-nums}.hint{font-size:12px;color:#8a978c;line-height:1.9;margin:10px 0 22px;overflow-wrap:anywhere}.editor-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf1eb;padding-top:22px;margin-top:28px}.editor-pagination span{font-size:11px;color:#8a988d}.editor-pagination button{font-size:12px;padding:9px 12px}.totals{padding:24px 28px;display:flex;align-items:center;gap:40px;flex-wrap:wrap}.totals>div{display:flex;flex-direction:column;gap:9px;min-width:160px}.totals span{font-size:11px;color:#7b8b80}.totals strong{font-size:24px;font-weight:550;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.totals>div:nth-child(2) strong{color:var(--green)}.totals p{font-size:11px;color:#97a298;line-height:1.9;margin:0 0 0 auto;max-width:210px}#totals{margin-bottom:22px}.sheet{overflow:hidden;margin-bottom:22px}.sheet-heading{background:#176b59;color:#fff;padding:28px 30px}.sheet-heading h2{font-size:21px;font-weight:500;margin-bottom:14px}.sheet-heading .eyebrow{color:#b2d3c7}.sheet-heading p:last-child{font-size:12px;color:#c4dfd3;margin:0;line-height:1.8}.sheet-heading p>span{float:right}.sheet #totals{margin:0;background:#f0f5ef}.sheet .totals{border-top:1px solid var(--line)}.table-wrap{overflow:auto;max-width:100%;padding:22px}table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:12px;line-height:1.8}table.kpi-table{min-width:1220px}table.legacy-table{min-width:1000px}th,td{border:1px solid #d9e3dc;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top}th{background:#176b59;color:#fff;font-weight:500;text-align:left;font-size:11px}tbody tr:nth-child(2n){background:#f3f7f4}.kpi-table .col-1{width:90px}.kpi-table .col-2{width:52px}.kpi-table .col-3{width:105px}.kpi-table .col-4{width:235px}.kpi-table .col-5{width:270px}.kpi-table .col-6,.kpi-table .col-7{width:102px}.kpi-table .col-8{width:200px}.kpi-table td:nth-child(2){text-align:center}.kpi-table td:nth-child(6),.kpi-table td:nth-child(7){text-align:right;font-variant-numeric:tabular-nums}.legacy-table .col-1{width:90px}.legacy-table .col-2{width:240px}.legacy-table .col-3{width:260px}.legacy-table .col-4,.legacy-table .col-5{width:105px}.legacy-table .col-6{width:200px}.assistant{margin-top:22px;margin-bottom:24px;overflow:hidden}.assistant>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 26px}.assistant>summary::-webkit-details-marker{display:none}.assistant>summary b{font-size:13px;font-weight:600}.assistant>summary small{font-size:11px;color:#8a978d;font-weight:400;margin-left:18px}.disclosure{font-size:18px;color:#7c9582}.assistant[open]>summary{border-bottom:1px solid #e9eeea}.assistant[open] .disclosure{transform:rotate(45deg)}.assistant-body{padding:5px 26px 22px}.assistant-body>details{padding:18px 0;border-bottom:1px solid #e7ede6}.assistant-body>details>summary{font-weight:600}.assistant-body>details[open]>summary{margin-bottom:18px}.assistant-body textarea{max-height:400px}.button-row{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0 20px}.assistant-body>.hint{margin:16px 0}.ai-review-list{padding-left:24px;max-height:420px;overflow:auto;font-size:13px;line-height:1.8}.ai-review-list li{padding:14px 6px;white-space:pre-wrap;overflow-wrap:anywhere;border-bottom:1px solid #e7ece4}.ai-review-list p{margin:5px 0;color:#738477}.ai-review-list b{font-weight:600}#ai-feedback{font-size:12px;color:#816a47;margin-top:16px;line-height:1.8}#apply-ai{margin-top:10px}.history-note{max-width:850px;margin-top:0}.history-card{margin-bottom:22px;overflow:hidden}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:25px 28px}.history-heading h2{margin-bottom:13px}.history-heading h2 small{margin-left:15px;font-size:11px;font-weight:400;color:#8c9a90}.history-heading p{font-size:12px;color:#829185;margin:6px 0;line-height:1.7}.history-heading button{flex-shrink:0}.history-preview>summary{padding:0 28px 22px;color:var(--green)}.history-preview .totals{background:#f3f7f1}.empty-history{text-align:center;padding:55px 24px 45px;margin-bottom:28px}.empty-symbol{display:inline-grid;place-items:center;width:60px;height:60px;background:#edf4ec;border-radius:16px;color:#78a38a;font-size:28px;margin-bottom:24px}.empty-history h2{font-size:20px}.empty-history p{font-size:13px;line-height:1.8;color:#8b998e}.error-banner{padding:14px;border:1px solid #f0d2c6;border-radius:8px;background:#fff3ed;font-size:13px;color:#a14732}footer{display:flex;align-items:center;justify-content:space-between;gap:20px;color:#99a49b;font-size:10px;line-height:1.8;margin-top:28px;padding:0 0 20px}@media(min-width:1600px){.workspace{grid-template-columns:310px minmax(0,1fr)}}@media(max-width:1050px){.header-inner{padding:16px 25px}main{padding:27px 25px 14px}.workspace{grid-template-columns:240px minmax(0,1fr);gap:16px}.editor-heading,.editor-body{padding:22px}.row-actions{gap:4px}.row-actions button{padding:6px 7px}.metadata{gap:16px;padding:20px}.totals{gap:28px}.totals p{max-width:180px}}@media(max-width:760px){.header-inner{padding:13px 16px;gap:10px}.brand{font-size:14px;gap:8px}.brand-mark{width:30px;height:30px;font-size:14px}.brand small{display:none}.header-actions{gap:6px}.header-actions button{font-size:11px;padding:9px 10px}main{padding:24px 16px 12px}.page-heading{margin-bottom:20px}h1{font-size:24px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.2px}.local-badge{font-size:10px;gap:5px}.metadata{grid-template-columns:1fr 1fr;gap:18px 14px;padding:18px}.metadata input{font-size:13px;padding:10px}#status{font-size:11px;margin:12px 0 17px}.toolbar{gap:8px}.tabs button{padding:8px 13px;font-size:12px}.tools>summary{font-size:12px;gap:8px}.workspace{grid-template-columns:minmax(0,1fr);gap:16px}.directory{position:static}.directory-heading{padding:17px 18px;display:flex;align-items:center;gap:12px;justify-content:space-between}.directory-heading h2{margin:0;gap:10px;white-space:nowrap}.directory-heading .add{width:auto;padding:8px 10px}#directory{max-height:230px;padding:0 9px 14px}.directory-item{padding:10px}.directory-item b{-webkit-line-clamp:1}.editor-heading{padding:20px 18px;gap:10px;align-items:flex-start}.editor-heading h2{font-size:16px}.editor-heading .eyebrow{font-size:9px}.row-actions{gap:3px}.row-actions button{font-size:10px;padding:6px}.editor-body{padding:20px 18px}.classification{gap:12px;grid-template-columns:1fr 1.3fr}.writing-field textarea{font-size:13px}.amount-fields{gap:12px}.amount-fields input{font-size:12px;padding:11px 9px}.hint{font-size:11px}.totals{padding:22px 18px;gap:24px}.totals>div{min-width:calc(50% - 12px);flex:1}.totals strong{font-size:21px}.totals p{margin:0;max-width:none;width:100%}.sheet-heading{padding:24px 20px}.sheet-heading h2{font-size:18px}.sheet-heading p>span{float:none;display:block;margin-top:6px}.table-wrap{padding:14px}.assistant>summary{padding:18px}.assistant>summary small{display:block;margin:4px 0 0;font-size:10px}.assistant-body{padding:2px 18px 18px}.button-row button{flex:1;font-size:12px;padding:10px}.history-heading{padding:22px 18px;align-items:flex-start}.history-heading h2{font-size:16px}.history-heading h2 small{display:block;margin:8px 0 0}.history-heading button{font-size:11px;padding:9px}.history-preview>summary{padding:0 18px 20px}footer{flex-direction:column;align-items:flex-start;gap:4px;margin-top:22px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
