*{box-sizing:border-box}body{margin:0;background:#f4f6f8;color:#1b2b3a;font-family:"Microsoft YaHei",system-ui,sans-serif;font-size:14px}button,select,input,textarea{font:inherit}button{cursor:pointer;border:1px solid #ccd5dd;background:white;color:#274057;padding:10px 15px;border-radius:6px;min-height:42px}button:disabled{opacity:.5;cursor:not-allowed}button:hover:not(:disabled){border-color:#447eac;background:#f1f7fb}input:focus-visible,button:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2480bd;outline-offset:2px}select{padding:8px;border:1px solid #ccd5dd;border-radius:5px;background:white}.top{height:68px;display:flex;align-items:center;gap:14px;padding:0 30px;background:#fff;border-bottom:1px solid #dae1e7}.brand{font-weight:800;font-size:20px;border:0;color:#173c59}.year{background:#e9f0f6;color:#345f7c;padding:5px 10px;border-radius:5px}.spacer{flex:1}.demo-label{font-size:12px;color:#607285}.demo-label select{margin-left:8px}.eyebrow{color:#678095;font-size:12px;letter-spacing:1px;margin:0 0 8px}h1{font-size:27px;margin:0 0 12px}#home{max-width:1020px;margin:75px auto;padding:0 28px}.intro{font-size:16px;color:#66788a;line-height:1.8}.projects{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:36px 0}.project-card{padding:28px;text-align:left;min-height:190px;background:white;border-radius:12px;box-shadow:0 4px 16px #173c5908}.project-card h2{font-size:25px;margin:12px 0}.project-card p{color:#66788a}.project-card strong{color:#236a9c}.plain{background:transparent;border:0;color:#236a9c}#workspace{display:grid;grid-template-columns:224px minmax(0,1fr);height:calc(100vh - 68px)}aside{background:white;border-right:1px solid #dce3e9;overflow:auto;padding:24px 14px}#project-name{font-size:19px;font-weight:800;padding:0 10px 12px}#back-projects{border:0;font-size:12px;padding:5px 10px;color:#698095}nav h3{font-size:11px;color:#8293a1;margin:20px 12px 6px}nav button{display:block;text-align:left;width:100%;border:0;margin:2px 0;padding:9px 12px;font-size:14px}nav button.active{color:#12628e;background:#e9f3fa;font-weight:700}.work{min-width:0;overflow:auto;padding:24px 30px 50px}.work-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.work-heading h1{font-size:23px}.main-actions{display:flex;flex-wrap:wrap;gap:8px}.primary{background:#226fa0;color:white;border-color:#226fa0}.primary-dark{background:#174762;color:white;border-color:#174762}.primary:hover:not(:disabled),.primary-dark:hover:not(:disabled){background:#155d8b;color:white}.basis{display:flex;gap:15px;flex-wrap:wrap;background:#fff7e3;border-left:3px solid #c89c3b;padding:12px 16px;color:#765d2a;font-size:12px;margin:12px 0}.basis span{color:#8c7648}.tools{display:flex;align-items:center;gap:14px;margin:16px 0;font-size:12px;color:#687b8d;flex-wrap:wrap}#message{min-height:24px;line-height:1.8;color:#285e7d}#message.error{color:#a34a20;background:#fff4ec;padding:9px}#hint{line-height:1.7;color:#546c7e}.legend{font-size:11px;color:#758593;line-height:1.8}.input-dot,.formula-dot{display:inline-block;width:10px;height:10px;background:#e7f3fd;border:1px solid #b6d4eb}.formula-dot{background:#eceff2;border-color:#d5dde4}#table-host{max-width:100%;overflow:auto;background:white;border:1px solid #d6e0e7;max-height:65vh;position:relative}table{border-collapse:separate;border-spacing:0;font-size:12px;table-layout:fixed}td{border-bottom:1px solid #dce3e9;border-right:1px solid #dce3e9;min-width:116px;max-width:300px;vertical-align:middle;padding:8px;white-space:pre-wrap;overflow-wrap:anywhere;background:white}td:nth-child(1){position:sticky;left:0;z-index:2;width:68px;min-width:68px;max-width:100px;background:#f9fbfc}td:nth-child(2){position:sticky;left:68px;z-index:2;min-width:170px;width:170px;background:#f9fbfc}tr.table-header td{font-weight:700;background:#edf2f6}td.editable{background:#eef7ff}td.formula{background:#f2f4f6}td input{width:100px;min-height:36px;text-align:right;border:1px solid #b9d5e9;border-radius:4px;background:white;padding:6px;font-variant-numeric:tabular-nums}td .ref{display:block;font-size:10px;color:#85919c;margin-bottom:5px;line-height:1.3}td .computed{font-weight:650;font-variant-numeric:tabular-nums;display:block}td .auto{font-size:9px;color:#85919c}td .jump{padding:0;min-height:0;border:0;color:#20668d;background:transparent;font-size:12px;text-align:left}td.warn{box-shadow:inset 3px 0 #d3a63b}.review-tools{padding:20px 0;display:flex;gap:18px;align-items:flex-end}.review-tools label{flex:1}.review-tools textarea{display:block;width:100%;padding:9px;border:1px solid #cbd6df;border-radius:5px;margin-top:6px}.review-tools>div{display:flex;gap:7px;flex-wrap:wrap}#source-details{font-size:12px;color:#657a8c;margin-top:16px}#source-details p{white-space:pre-wrap}dialog{max-width:620px;width:90%;border:0;border-radius:12px;padding:28px;box-shadow:0 20px 90px #16334c44}dialog::backdrop{background:#15354c55}.dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}.summary-project{background:white;border:1px solid #dbe4eb;border-radius:9px;margin-bottom:24px;padding:18px}.summary-project h2{font-size:18px}[hidden]{display:none!important}@media(max-width:850px){.top{padding:0 12px;height:64px}.brand{font-size:17px;padding:5px}.demo-label{font-size:0}.demo-label select{font-size:12px;width:115px;margin:0}#home{margin:36px auto;padding:0 18px}.projects{grid-template-columns:1fr;gap:15px}.project-card{min-height:140px;padding:20px}#workspace{display:block;height:auto}aside{border-bottom:1px solid #dbe3ea;padding:10px;max-height:150px}#project-name{display:none}nav{display:flex;overflow:auto;gap:6px}nav h3{display:none}nav button{white-space:nowrap;width:auto;min-width:110px}#back-projects{display:none}.work{padding:20px 12px 40px;overflow:visible}.work-heading{display:block}.main-actions{margin:14px 0}.main-actions button{flex:1;min-width:135px;min-height:44px}.basis{padding:10px;gap:7px}.work-heading h1{font-size:22px}#table-host{max-height:65vh}td:nth-child(2){position:static;min-width:135px}td{min-width:114px}.review-tools{display:block}.review-tools>div{margin-top:12px}.legend{font-size:10px}}

/* Compact everyday workspace: retain original column labels, reduce pre-table chrome. */
.top{height:56px}.work{padding:16px 22px 35px}#workspace{height:calc(100vh - 56px)}.work-heading h1{margin:0 0 5px}.work-heading .eyebrow{margin-bottom:4px}#state{margin:4px 0 6px;font-size:12px}.main-actions button{min-height:38px;padding:8px 12px}.basis{margin:8px 0;padding:8px 12px;gap:8px;font-size:11px}.tools{margin:9px 0;gap:10px}.tools select{padding:5px}.tools button{min-height:33px;padding:5px 10px}#message{margin:5px 0;min-height:20px;font-size:12px}#hint{margin:6px 0;font-size:12px}.legend{margin:5px 0 8px;font-size:10px}tr.table-header td{position:sticky;top:0;z-index:4;background:#e8eff5;box-shadow:0 1px #b6c7d4}tr.table-header td:nth-child(1),tr.table-header td:nth-child(2){z-index:6}.source-title{display:block;font-size:10px;color:#738393;font-weight:400;margin-bottom:4px}#table-host{max-height:calc(100vh - 260px)}
@media(min-width:601px) and (max-width:850px){.top{height:52px}#workspace{display:grid;grid-template-columns:155px minmax(0,1fr);height:calc(100vh - 52px)}aside{max-height:none;padding:12px 8px;overflow:auto}#project-name{display:block;font-size:15px;padding:0 7px 7px}nav{display:block;overflow:visible}nav h3{display:block;font-size:10px;margin:14px 6px 4px}nav button{width:100%;min-width:0;font-size:12px;padding:7px 8px;white-space:normal;min-height:33px}.work{padding:13px 12px;overflow:auto}.work-heading h1{font-size:19px}.main-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:9px 0}.main-actions button{font-size:12px;min-width:0;min-height:36px;padding:6px}.basis{display:block;line-height:1.5;padding:7px 9px}.basis span{display:none}.tools{gap:7px}.legend{font-size:9px}#table-host{max-height:calc(100vh - 310px)}td:nth-child(2){position:sticky;left:68px;min-width:145px;width:145px}}
@media(max-width:600px){.top{height:50px}#workspace{height:auto}aside{padding:4px 8px;max-height:50px}.work{padding:12px 10px}.work-heading h1{font-size:20px}.main-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0;gap:6px}.main-actions button{min-width:0;min-height:38px;font-size:12px}.basis{padding:6px 8px;font-size:10px;line-height:1.5}.basis span{display:none}.tools{margin:6px 0;gap:7px}.legend{font-size:9px;line-height:1.5}#table-host{max-height:calc(100vh - 320px)}td:nth-child(2){position:static}nav button{font-size:12px;min-height:33px;padding:6px 9px}}

.column-segments{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 10px}.column-segments button{min-height:34px;padding:6px 14px;font-size:12px}.column-segments button.active{background:#235f88;color:white;border-color:#235f88}

#table-host input.note-input{text-align:left;width:210px;max-width:100%}

.cell-warning{margin:6px 0;padding:7px 10px;font-size:12px;background:#fff4d7;color:#876218;border-left:3px solid #ca9d36}.cell-badge{display:inline-block;min-height:0;padding:2px 5px;margin:4px 0 0;font-size:10px;border:1px solid #d9b965;background:#fff4d7;color:#825d17;border-radius:3px}

#help-panel{border:1px solid #a8bdc7;background:#f5fafb;padding:14px;margin:12px 0;overflow-wrap:anywhere}#help-panel button{margin:4px}#help-output p{margin:8px 0}#help-panel select{max-width:100%}[data-help-cell]:focus{outline:2px solid #187a98;outline-offset:-2px}

.basis-panel{max-width:1180px;margin:18px auto;padding:20px;background:#fff;border:1px solid #aabac7;border-radius:10px;overflow-wrap:anywhere}.basis-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.basis-heading h2{margin:0}.basis-notice{color:#725318;background:#fff4d9;padding:10px}.basis-selectors,.basis-actions{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.basis-selectors label,.basis-actions label{display:grid;gap:5px}.basis-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:16px 0}.basis-card{border:1px solid #ced9e0;border-radius:8px;padding:14px;min-width:0}.basis-card h3{margin:0 0 8px}.basis-card.missing{border-left:4px solid #a87818}.basis-card details p{font-size:12px;overflow-wrap:anywhere}.basis-actions textarea{min-width:200px;width:100%;box-sizing:border-box}#basis-status{min-height:1.5em;color:#184d68}#basis-details{font-size:13px;overflow-wrap:anywhere}:focus-visible{outline:3px solid #19738c;outline-offset:2px}@media(max-width:600px){.basis-panel{margin:10px;padding:14px}.basis-cards{grid-template-columns:1fr}.basis-selectors>*{width:100%}.basis-selectors select{width:100%;max-width:100%}.basis-actions>*{width:100%}#basis-open{font-size:12px;padding:7px}.top{gap:6px}.basis-heading{align-items:flex-start}}

.p02-panel{margin:1rem;padding:1rem;border:1px solid #b7c7cc;border-radius:12px;background:#f7fafb;color:#203b45;max-width:100%;box-sizing:border-box}.p02-panel [hidden]{display:none!important}.p02-panel div{display:flex;flex-wrap:wrap;gap:.6rem;margin:.7rem 0}.p02-panel label{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.p02-panel select{max-width:100%;min-width:0}.p02-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:24rem;overflow:auto}.p02-panel button{margin:.2rem;min-height:40px}.p02-panel p{overflow-wrap:anywhere}

#p06-panel{margin:18px 0;padding:16px;border:1px solid #d6e2e0;border-radius:10px;background:#f7fbfa;min-width:0}#p06-panel h2{font-size:19px;margin:0}.p06-heading{display:flex;gap:8px;flex-wrap:wrap;align-items:center}#p06-subjects{max-height:330px;overflow:auto;margin-top:10px}#p06-subjects table{width:100%;border-collapse:collapse;min-width:0}#p06-subjects td,#p06-subjects th{padding:8px;text-align:left;border-bottom:1px solid #dce5e3;overflow-wrap:anywhere}#p06-subjects td:first-child{max-width:270px}#p06-subjects input{width:100%;min-width:60px}#p06-subjects .p06-unmapped{color:#687775}#p06-notice{color:#655b31}#p06-details{margin-top:8px}.p06-target{outline:3px solid #2a7c77;outline-offset:2px}@media(max-width:600px){#p06-panel{padding:10px}#p06-subjects th:nth-child(3),#p06-subjects td:nth-child(3){display:none}.p06-heading button{font-size:12px}#p06-subjects td{padding:6px}#p06-subjects td:first-child{max-width:110px}.work{min-width:0}body{overflow-x:hidden}}

.return-feedback{padding:14px;margin:12px 0;border:1px solid #c59a62;border-radius:8px;background:#fff8e9;min-width:0}.return-feedback[hidden]{display:none}.return-feedback h2{font-size:18px;margin:0 0 8px}.return-feedback p,.p06-origin p{white-space:pre-wrap;overflow-wrap:anywhere}.p06-origin{font-size:12px;margin-top:5px}.p06-unmapped-group{margin-top:10px;padding:8px;border:1px solid #dce5e3}.p06-unmapped-group summary{cursor:pointer}

/* P03_BEGIN */
#p03-panel{box-sizing:border-box;margin:18px auto;padding:18px;max-width:1280px;min-width:0;border:1px solid #b2c8bb;border-radius:12px;background:#f7faf8;color:#213c30}#p03-panel[hidden]{display:none}#p03-panel h2{margin:0 0 10px}#p03-panel p{line-height:1.65;overflow-wrap:anywhere}#p03-panel .p03-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:12px 0}#p03-panel label{display:flex;flex-direction:column;gap:6px;min-width:0;max-width:100%}#p03-panel select,#p03-panel input,#p03-panel textarea{max-width:100%;box-sizing:border-box;padding:8px;border:1px solid #a2b5a9;border-radius:5px}#p03-manifest{max-width:min(600px,85vw)}#p03-panel button{cursor:pointer;padding:9px 12px;border:1px solid #648474;border-radius:6px;background:#fff;color:#213c30}#p03-panel button:disabled{opacity:.5;cursor:default}#p03-panel .p03-scroll,#p03-summary,#p03-source-body{overflow:auto;max-width:100%;min-width:0}#p03-panel table{border-collapse:collapse;min-width:520px}#p03-panel th,#p03-panel td{padding:9px;border:1px solid #c4d3c9;text-align:left;white-space:nowrap}#p03-panel details{padding:8px;margin:7px 0;background:#fff;border:1px solid #d4dfd7;border-radius:7px}#p03-panel details details{margin-left:8px}#p03-panel summary{cursor:pointer;overflow-wrap:anywhere}#p03-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-width:100%}#p03-panel :focus-visible{outline:3px solid #22714b;outline-offset:3px}#p03-panel .p03-error{color:#9d2d28}#p03-source-dialog{width:min(860px,90vw);max-height:85vh;border:1px solid #648474;border-radius:10px;box-sizing:border-box}@media(max-width:600px){#p03-panel{margin:10px 6px;padding:12px}#p03-panel .p03-controls>*{max-width:100%;flex:1 1 160px}#p03-panel details details{margin-left:0}#p03-panel select{width:100%}}
#p03-reason{width:min(480px,100%);min-height:52px;resize:vertical}
/* P03_END */

/* P04_BEGIN */
#p04-panel{margin:20px auto;padding:22px;max-width:1180px;background:#fff;border:1px solid #c8d8de;border-radius:12px;box-sizing:border-box;color:#183b48}#p04-panel h2{margin:0 0 12px}#p04-panel h3{font-size:17px}#p04-panel button,#p04-panel select,#p04-panel textarea{font:inherit;max-width:100%;box-sizing:border-box}#p04-panel button{padding:9px 12px;border:1px solid #8aa7b0;border-radius:6px;background:#f4fafb;color:#183b48;cursor:pointer}#p04-panel button:disabled{opacity:.5;cursor:default}#p04-panel textarea{display:block;width:100%;min-height:64px;padding:8px}.p04-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0}.p04-controls label{flex:1 1 200px}.p04-controls label:has(textarea){flex-basis:100%}#p04-panel label{display:block;margin:8px 0}.p04-scroll{max-width:100%;overflow:auto}.p04-scroll table{border-collapse:collapse;min-width:620px;width:100%}.p04-scroll td,.p04-scroll th{padding:8px;border:1px solid #dce6e9;text-align:left;white-space:normal}.p04-thread{margin:12px 0;border-left:4px solid #497e8c;background:#f5f9fa;padding:14px;overflow-wrap:anywhere}.p04-thread p{white-space:pre-wrap}.p04-error{color:#a12626}#p04-panel pre{white-space:pre-wrap;overflow-wrap:anywhere}#p04-panel dialog{max-width:min(960px,92vw);box-sizing:border-box}#p04-opinion-form{padding:12px;border:1px solid #dce6e9;border-radius:8px;margin:16px 0}#p04-caption{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:600px){#p04-panel{margin:12px 8px;padding:14px}.p04-controls{display:block}.p04-controls button{margin:5px 4px 5px 0;width:auto}#p04-panel select{width:100%}.p04-thread{padding:10px}}
/* P04_END */

/* P05_BEGIN */
#p05-panel{margin:18px 0;padding:18px;border:1px solid #cbd8e6;border-radius:10px;background:#f6f9fd;min-width:0;max-width:100%;box-sizing:border-box}#p05-panel h2{font-size:1.25rem;margin:0}#p05-panel p{overflow-wrap:anywhere;line-height:1.65}.p05-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:10px 0}.p05-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.p05-grid label,.p05-bar label{display:flex;flex-direction:column;gap:6px;min-width:0}.p05-grid input,.p05-grid select{width:100%;box-sizing:border-box;min-width:0}.p05-months{display:flex;flex-wrap:wrap;gap:10px}.p05-months label,.p05-ack{display:flex;align-items:center;gap:5px}#p05-panel fieldset{margin:12px 0;min-width:0;border:1px solid #ccd7e5}.p05-scroll{max-width:100%;overflow:auto}.p05-scroll table{min-width:780px;border-collapse:collapse;background:#fff}.p05-scroll th,.p05-scroll td{padding:9px;border:1px solid #d5deea;text-align:left;white-space:nowrap}.p05-error{color:#9d2235;font-weight:600}.p05-target{outline:3px solid #bd6c12!important;outline-offset:2px}#p05-panel button:focus-visible,#p05-panel input:focus-visible,#p05-panel select:focus-visible{outline:3px solid #2865a7;outline-offset:2px}#p05-dirty-dialog{max-width:min(500px,90vw)}@media(max-width:600px){#p05-panel{padding:12px}.p05-grid{grid-template-columns:1fr}.p05-bar{align-items:stretch}.p05-bar button{min-height:40px}.p05-ack{align-items:flex-start}}
/* P05_END */

.employee-panel{max-width:58rem;margin:2rem auto;padding:1.5rem;background:var(--paper,#fff);border:1px solid #ddd;border-radius:12px}.employee-panel label{display:block;margin:.8rem 0}.employee-panel input:not([type=checkbox]){display:block;max-width:100%;width:26rem;padding:.6rem}.employee-account{padding:1rem 0;border-top:1px solid #ddd}.employee-account p{overflow-wrap:anywhere}.employee-panel button{margin:.3rem}

.employee-group .top{height:auto;min-height:56px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.employee-group #employee-name{flex:1 1 14rem;min-width:0;overflow-wrap:anywhere}.employee-panel{box-sizing:border-box;width:calc(100% - 24px);min-width:0;overflow-wrap:anywhere}.employee-panel select{width:100%;max-width:100%;min-width:0}.employee-panel input{box-sizing:border-box}.employee-account button{max-width:100%;white-space:normal}.employee-group .top .spacer{flex:0}
