:root{--nav:#132c3f;--blue:#176bcb;--ink:#17364c;--muted:#708395;--line:#dfe8ef;--bg:#f3f6fa}*{box-sizing:border-box}body{margin:0;font:14px/1.6 'Segoe UI','Microsoft YaHei',sans-serif;color:var(--ink);background:var(--bg)}aside{position:fixed;width:226px;height:100vh;background:var(--nav);color:#d4e0e9;padding:30px 18px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;margin:0 10px 38px}.brand b{font-size:30px;color:#fff;background:#2479d8;width:42px;height:42px;text-align:center;line-height:42px;border-radius:10px}.brand span{font-size:15px;letter-spacing:1.5px;font-weight:700}.brand small{display:block;font-weight:400;letter-spacing:1px;font-size:11px;color:#94b1c8}nav{display:grid;gap:8px}nav button{text-align:left;background:transparent;border:0;color:#a9bdcc;padding:13px 17px}nav button.active{color:white;background:#254b66}.side-note{margin-top:auto;color:#9db5c7;font-size:12px;padding:14px}#serverState{font-size:11px;color:#8fb3cc;padding:10px}main{margin-left:226px;padding:30px 32px;max-width:2200px}header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--blue);font-weight:700}h1{font-size:27px;margin:4px 0 3px}h2{font-size:19px;margin:0}h3{font-size:15px;margin-top:28px}p{color:var(--muted);margin:4px 0 12px}button,.button{font:inherit;border:1px solid #ccdbe6;border-radius:7px;padding:8px 13px;cursor:pointer;background:#fff;color:var(--ink);display:inline-block;text-decoration:none}button:hover,.button:hover{border-color:#65a4e2}.primary{background:var(--blue);color:#fff;border-color:var(--blue)}button:disabled{opacity:.5;cursor:wait}.actions{display:flex;gap:8px;white-space:nowrap}.projectbar{display:flex;align-items:flex-end;gap:12px;padding:18px 20px;background:white;border:1px solid var(--line);border-radius:10px}.projectbar label{font-size:11px;color:var(--muted);flex:1}.projectbar input{display:block;width:100%;margin-top:5px}input,select{font:inherit;padding:7px;border:1px solid #d5e0e8;border-radius:5px;min-width:0;color:var(--ink);background:#fff}input:focus,select:focus{outline:2px solid #b9dafb;border-color:#5299df}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:20px 0}.metrics article{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 20px}.metrics span,.metrics small{display:block;color:var(--muted);font-size:12px}.metrics strong{display:block;font-size:25px;font-weight:650;margin:5px 0}.tab{background:white;border:1px solid var(--line);border-radius:10px;padding:22px}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:2px 0 15px}.sectionhead p{font-size:12px}.tablewrap,.ganttwrap{overflow:auto;margin-bottom:24px}table{border-collapse:collapse;width:100%;font-size:12px}th{background:#edf3f8;font-size:11px;font-weight:600;color:#61798d;text-align:left;white-space:nowrap}td,th{padding:9px 8px;border-bottom:1px solid #e9eff4;vertical-align:middle}td input,td select{width:100%;padding:5px;font-size:12px}#tasktable{min-width:1420px}#tasktable td:first-child{width:245px}#tasktable td:first-child input:first-child{width:52px;margin-right:4px;font-weight:600}#tasktable td:first-child input:last-child{width:175px}#tasktable td:nth-child(6){width:180px}#tasktable td:nth-child(10){width:165px}#tasktable td:nth-child(3) input{width:65px}#tasktable td:nth-child(4) input{width:44px}.assumed{color:#ae7827}.confirmed{color:#26826b}.callout{border-left:3px solid #e7ad52;padding:13px 16px;background:#fff8e9;margin:15px 0 20px;font-size:13px}#notice{padding:0;color:var(--muted);font-size:12px}#notice:not(:empty){margin:10px 0;padding:10px 14px;border-radius:6px;background:#e8f1fb}.error{color:#b7392c;background:#fff0ee;padding:12px;margin-bottom:15px;border-radius:6px}.gantt{display:grid;min-width:1000px;font-size:11px;position:relative}.glabel{position:sticky;left:0;z-index:2;background:white;border-bottom:1px solid var(--line);padding:10px;width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ghead{background:#eef4f9;text-align:center;border-left:1px solid #e2e9f0;padding:9px 1px}.gcell{border-bottom:1px solid #e8eef3;border-left:1px solid #edf1f5;min-height:38px}.gcell.holiday{background:#fff3e2}.gcell.buffer{background:#f0edf7}.gbar{height:18px;align-self:center;background:#3a83ce;border-radius:4px;z-index:1;margin:0 2px;cursor:pointer;min-width:5px;color:white;line-height:18px;padding-left:4px;overflow:hidden}.gbar.confirmed{background:#2b9c83}.gbar.selected{box-shadow:0 0 0 2px #0e456e}.detail{background:#f3f7fa;border-radius:6px;padding:15px}.detail b{font-size:15px}.templategrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.templategrid article{padding:22px;border:1px solid var(--line);border-radius:9px}.templategrid h3{margin:0}.templategrid div{font-size:12px;color:var(--muted);margin-top:12px}.delete{padding:2px 7px;border:0;background:#f5f7fa;color:#a23c34}.muted{color:var(--muted)}footer{padding:22px 0;color:var(--muted);font-size:11px}.controlpanel{border:1px solid var(--line);padding:18px;border-radius:8px;margin:15px 0}.inputgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.inputgrid label{font-size:11px;display:flex;flex-direction:column}.inputgrid input{margin-top:4px}.resultList{font-size:12px;max-height:400px;overflow:auto}.small{font-size:11px}@media(max-width:1050px){aside{width:175px}main{margin-left:175px;padding:20px}header{display:block}.actions{margin-top:12px}.projectbar{flex-wrap:wrap}.metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){aside{position:static;width:100%;height:auto;padding:12px 16px}.brand{margin:0 0 12px}.brand b{height:32px;width:32px;font-size:22px;line-height:32px}.brand small{display:inline;margin-left:12px}nav{grid-template-columns:repeat(4,1fr);gap:4px}nav button{padding:8px 5px;text-align:center;font-size:12px}.side-note,#serverState{display:none}main{margin:0;padding:18px}.actions{white-space:normal;flex-wrap:wrap}.projectbar label{min-width:110px}.templategrid{grid-template-columns:1fr}.inputgrid{grid-template-columns:repeat(2,1fr)}}

#tasktable td:first-child input[data-field=name]{width:175px}#tasktable td:first-child input[data-field=owner]{width:100%;margin-top:4px;font-size:11px;color:#6b7d8d}
.daily-badge{background:#e8f1fb;color:#176bcb;padding:6px 12px;border-radius:5px;white-space:nowrap}.sheet-instructions{font-size:12px;color:#5f7689;background:#f0f6fb;padding:12px;margin:12px 0}.sheet-wrap{max-height:640px;border:1px solid #ccdce9;margin-top:14px;position:relative}.excel-sheet{table-layout:fixed;border-collapse:separate;border-spacing:0;font:11px/1.4 Arial,sans-serif}.excel-sheet th,.excel-sheet td{padding:0;border-right:1px solid #dce5ed;border-bottom:1px solid #dce5ed;overflow:hidden}.excel-sheet .sheet-meta{position:sticky;z-index:2;background:#fff;padding:7px}.excel-sheet thead th{position:sticky;z-index:4;text-align:center;background:#edf3f8;font-weight:500;height:23px}.excel-sheet thead tr:nth-child(1) th{top:0}.excel-sheet thead tr:nth-child(2) th{top:23px}.excel-sheet thead tr:nth-child(3) th{top:46px;height:28px}.excel-sheet thead .sheet-meta{top:0!important;z-index:6}.excel-sheet .phase-cell{background:#f9e9d9;white-space:pre-wrap;vertical-align:middle}.excel-sheet .task-cell{background:#fff8ee}.excel-sheet input,.excel-sheet select,.excel-sheet textarea{font:11px Arial,sans-serif;border:1px solid transparent;border-radius:3px;padding:4px;background:transparent;width:100%;color:#183b54}.excel-sheet input:hover,.excel-sheet select:hover,.excel-sheet textarea:hover{border-color:#bad2e6;background:#fff}.excel-sheet input:focus,.excel-sheet textarea:focus{background:#fff}.excel-sheet .sheet-dates{display:flex;align-items:center;gap:3px}.excel-sheet input[type=date]{width:132px;padding:3px 0}.excel-sheet textarea{height:57px;resize:vertical;line-height:1.5}.sheet-link{border:0;padding:5px 1px;color:#176bcb;background:transparent;font-size:10px}.sheet-day{text-align:center;font:9px Arial,sans-serif;height:42px;cursor:default}.sheet-actual .sheet-day{height:24px}.sheet-day.weekend,.dayhead.weekend{background:#f4f7fa}.dayhead.holiday{background:#fce4d6!important}.sheet-day.paint.proposed{background:#4472c4;color:white}.sheet-day.paint.confirmed{background:#238e74;color:white}.excel-sheet .selected-row .description-cell{box-shadow:inset 3px 0 #2c80c8}.sheet-band-label{position:sticky;left:0;background:#f1f5f8!important;z-index:3;padding:7px!important;text-align:left!important;font-size:11px}.sheet-day.band-DE,.sheet-day.band-CN{background:#fce4d6}.sheet-day.band-closures{background:#ebe3f4}.sheet-quick-title{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.sheet-quick-title span{font-size:11px;color:#7c8e9c}.sheet-quick-fields{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-bottom:10px}.sheet-quick-fields label{display:grid;gap:4px;font-size:10px}.sheet-quick-fields input,.sheet-quick-fields select{font-size:11px;max-width:150px}.sheet-quick-fields input[type=number]{width:65px}.sheet-quick-fields button{font-size:11px}.advanced-task-panel{margin-top:18px}.advanced-task-panel summary{cursor:pointer;font-size:12px;color:#53758d}.advanced-task-panel p{font-size:11px;margin-top:10px}
.excel-workbench aside{position:static;width:100%;height:auto;flex-direction:row;align-items:center;gap:26px;padding:10px 22px}.excel-workbench .brand{margin:0}.excel-workbench nav{display:flex;gap:8px}.excel-workbench nav button{padding:8px 13px}.excel-workbench .side-note,.excel-workbench #serverState{display:none}.excel-workbench main{margin:0;padding:18px 22px}.excel-workbench header{margin-bottom:14px}.excel-workbench header p,.excel-workbench .eyebrow{display:none}.excel-workbench h1{font-size:23px}.excel-workbench .metrics{gap:10px;margin:12px 0}.excel-workbench .metrics article{padding:10px 14px}.excel-workbench .metrics strong{font-size:20px;margin:0}.excel-workbench .metrics small{font-size:10px}.excel-workbench .projectbar{padding:11px 15px}.excel-workbench .tab{padding:15px}.excel-workbench .sheet-meta{position:static}.excel-workbench .phase-cell,.excel-workbench .task-cell{position:sticky}.excel-workbench .excel-sheet thead .sheet-meta{position:sticky;left:auto!important}.excel-workbench .excel-sheet thead .sheet-meta:nth-child(1){left:0!important}.excel-workbench .excel-sheet thead .sheet-meta:nth-child(2){left:78px!important}.sheet-scroll-actions{display:flex;align-items:center;gap:7px}.sheet-scroll-actions button{font-size:11px;padding:5px 8px}#sheetQuick summary{cursor:pointer;font-size:12px;font-weight:600;color:#2368a3}#sheetQuick[open] summary{margin-bottom:12px}#detail:has(#sheetQuick){padding:11px 14px}@media(max-width:800px){.excel-workbench aside{display:block;padding:10px 14px}.excel-workbench .brand{margin-bottom:7px}.excel-workbench nav{display:grid;grid-template-columns:repeat(4,1fr)}.excel-workbench nav button{font-size:11px;padding:6px 3px}.excel-workbench main{padding:12px}.excel-workbench .metrics{grid-template-columns:repeat(2,1fr)}.excel-workbench .sectionhead{flex-wrap:wrap}.sheet-scroll-actions{flex-wrap:wrap}}
.excel-sheet textarea.sheet-task-name{height:45px;line-height:1.4;resize:vertical}
.excel-workbench .excel-sheet thead .sheet-meta:nth-child(-n+2){z-index:8;background:#edf3f8}
.planning-review{border:1px solid #e6c683;border-left:4px solid #bc831b;background:#fff9ec;border-radius:8px;padding:14px 18px;margin:12px 0;color:#604719}.planning-review h3{margin:0 0 6px;font-size:15px}.planning-review p{font-size:12px;margin:6px 0}.planning-review details{font-size:12px;margin-top:10px}.review-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px;margin-top:10px}.review-checks div{background:#fff;padding:7px;border-radius:4px;font-size:11px}.review-checks b,.review-checks span{display:block}.review-checks span{margin-top:4px}.review-late{border-color:#cc594c;background:#fff1ee}.review-checks .late{color:#ac3025;background:#ffe1dc}

.excel-workbench .excel-sheet thead .sheet-meta:nth-child(2){left:var(--phase-width,78px)!important}.original-template .sheet-meta,.original-template .task-cell,.original-template .phase-cell,.original-template .sheet-day{background:var(--row-bg,#fff)}.original-template .sheet-day.weekend{background:#ededed}.original-template .sheet-day.holiday-day,.original-template .dayhead.holiday{background:#002060!important;color:white}.original-template .sheet-day.paint.proposed{background:#948a54!important;color:#000}.original-template .sheet-day.paint.confirmed{background:#92d050!important;color:#000}.original-template .sheet-task-name{font-size:11px}.original-template thead .sheet-meta,.original-template thead th{background:white!important;color:#222}.original-template .sheet-meta input,.original-template .sheet-meta textarea,.original-template .sheet-meta select{padding-left:0;padding-right:0}

.online-gate{position:fixed;inset:0;z-index:10000;background:#eef3f7;display:flex;align-items:center;justify-content:center}.online-gate[hidden]{display:none}.online-gate form{background:white;width:420px;max-width:90vw;padding:36px;border:1px solid #d9e2ea;border-radius:12px;box-shadow:0 12px 36px #183b5412}.login-mark{font-weight:700;letter-spacing:2px;color:#176bcb;margin-bottom:24px}.online-gate h1{font-size:24px;margin-bottom:12px}.online-gate p{font-size:13px;color:#617385;margin:12px 0}.online-gate label{display:block;margin:18px 0;font-size:12px}.online-gate input{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid #ccd9e4;border-radius:6px}.online-gate button{width:100%;padding:11px;background:#176bcb;color:white;border:0;border-radius:6px}.online-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;padding:10px 0}.online-bar span{flex:1;color:#2d7551;min-width:220px}.online-bar button{font-size:11px;padding:6px 10px}.online-error span{color:#ad3a2c}#loginError{color:#ad3a2c}
