:root{color-scheme:light;--ink:#183840;--text:#263b43;--muted:#63747b;--accent:#226957;--line:#dfe7e7;--paper:#f5f7f6;--error:#a53d38;--radius:12px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--text);font:14px/1.55 "Microsoft YaHei","微软雅黑",Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8ebfae}button,a{touch-action:manipulation}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;background:none;transition:background .15s;min-height:42px;border-radius:7px;padding:10px 16px;color:inherit}button:disabled{cursor:not-allowed;opacity:.48}button:hover:not(:disabled){background:#e8eeeb}a{color:var(--accent);text-decoration:none}svg{width:18px;height:18px;stroke-width:1.7;flex-shrink:0}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border-radius:7px;font-weight:600;white-space:nowrap}.primary{background:var(--accent);color:#fff;border:1px solid var(--accent);padding:12px 21px}.primary:hover:not(:disabled){background:#195340}.secondary{background:#fff;border:1px solid #ccd9d5;padding:9px 15px;color:#2f5148}.quiet{color:var(--muted)}.compact{min-height:40px;padding:8px 12px;font-size:13px}.icon-button{font-size:24px;width:38px;min-height:38px;padding:0}.skip{position:fixed;left:12px;top:-80px;background:white;z-index:50;padding:12px}.skip:focus{top:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:#163b42;color:#e0eeea;display:flex;flex-direction:column;padding:28px 18px;z-index:5}.brand{display:flex;align-items:center;gap:10px;color:white;margin-bottom:40px;padding:0 7px;font-size:17px;font-weight:700}.brand img{width:35px;height:35px;padding:4px;background:white;border-radius:8px}.brand small{font-size:9px;letter-spacing:1.3px;display:block;margin-top:3px;font-weight:400;color:#b3cbc8}.sidebar-title{font-size:11px;letter-spacing:1px;color:#aec5c0;padding:0 12px;margin-bottom:12px}.sidebar nav{display:grid;gap:5px}.side-tab{justify-content:flex-start;width:100%;min-height:46px;color:#d7e6e0;padding-left:13px}.side-tab.active{background:#2b5257;color:white}.side-tab:hover:not(:disabled){background:#254950}.sidebar-divider{height:1px;background:#385b5e;margin:25px 10px}.module-index{display:grid;gap:8px;padding:0 12px}.module-index div{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#c0d2ce;min-height:26px}.module-index span:last-child{font-size:11px;color:#92b1a9}.module-index .done span:last-child{color:#c4ead1}.sidebar-bottom{margin-top:auto;padding:20px 10px 0;display:flex;align-items:flex-start;gap:9px;color:#d4e4dc;font-size:11px}.sidebar-bottom small{display:block;color:#9bb9af;font-size:10px;margin-top:5px}.memory-dot{width:6px;height:6px;background:#94c9a6;border-radius:50%;margin-top:6px}.main{margin-left:230px;padding:0 40px;max-width:1700px}.topbar{height:74px;display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.topbar strong{color:var(--text);font-weight:500}.topbar>a{color:var(--muted)}.topbar .quiet{margin-left:auto}.heading{display:flex;align-items:center;justify-content:space-between;margin:32px 0 27px;gap:24px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.2px;color:#527967;margin:0 0 10px}h1{font-size:29px;line-height:1.35;letter-spacing:-.8px;margin:0 0 10px;color:var(--ink);font-weight:650}.heading p:not(.eyebrow){color:var(--muted);margin:0;font-size:13px}.sheet-count{display:flex;align-items:center;gap:12px;color:#78938a;padding:0 20px;border-left:1px solid var(--line);flex-shrink:0}.sheet-count strong{font-size:40px;line-height:1;font-weight:500;color:#30614f}.sheet-count span{font-size:11px;line-height:1.7}.context-bar{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;display:flex;align-items:flex-end;gap:14px}.context-bar label{font-size:11px;font-weight:600;color:var(--muted)}input,select,textarea{background:white;border:1px solid #cedad6;border-radius:6px;color:var(--text);padding:9px 11px;min-height:41px;max-width:100%}label input,label select,label textarea{display:block;margin-top:6px;width:100%;font-size:14px}.project-field{min-width:190px;flex:1;max-width:300px}.week-field{min-width:158px}.week-description{font-size:12px;padding-bottom:1px;white-space:nowrap}.week-description small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.context-divider{height:37px;width:1px;background:var(--line);margin:0 5px}.context-bar>#nextWeek{margin-left:auto}.baseline-card{display:flex;align-items:center;gap:14px;border:1px solid #d4e6dc;background:#edf5ef;padding:17px 20px;border-radius:var(--radius);margin-top:20px}.baseline-icon{display:flex;width:38px;height:38px;background:#dcece0;align-items:center;justify-content:center;border-radius:9px;color:#3a7456;flex-shrink:0}.baseline-card strong{font-size:13px;color:#2b6047}.baseline-card p{margin:3px 0 0;color:#567360;font-size:12px}.baseline-card button{margin-left:auto;flex-shrink:0}.baseline-card.absent{background:#f6f4ee;border-color:#e7e1d4}.baseline-card.absent .baseline-icon{background:#ebe6da;color:#78674b}.baseline-card.absent strong{color:#6c5a3c}.baseline-card.absent p{color:#80725c}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:29px 0 18px}.section-head h2{font-size:18px;margin:0 0 6px;color:var(--ink)}.section-head p{font-size:12px;color:var(--muted);margin:0}.badge{background:#e8efeb;color:#4f6f5d;border:1px solid #d7e3dc;border-radius:20px;padding:6px 11px;font-size:11px;white-space:nowrap}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.module-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:21px 22px;min-width:0}.module-card:last-child{grid-column:1/-1}.module-head{display:flex;align-items:flex-start;gap:12px}.module-icon{width:36px;height:36px;display:grid;place-items:center;background:#f0f4f1;color:#4d765e;border-radius:9px;flex-shrink:0}.module-head h3{margin:0;font-size:15px;color:var(--ink)}.module-head p{font-size:11px;color:var(--muted);margin:4px 0 0;line-height:1.6}.module-state{font-size:10px;margin-left:auto;background:#f2f5f3;color:#62776b;border-radius:4px;padding:4px 7px;white-space:nowrap}.module-state.ready{background:#eaf4e9;color:#436c3f}.module-state.invalid{background:#fff0e7;color:#996124}.scope-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;font-size:11px;color:var(--muted)}.scope-row select{font-size:11px;min-height:32px;padding:5px 8px;max-width:200px}.dropzone{position:relative;border:1px dashed #bbcfc4;background:#fafcfb;border-radius:7px;margin-top:15px;min-height:74px;display:flex;align-items:center;justify-content:center;gap:10px;transition:background .15s}.dropzone.dragging{background:#eaf4ec;border-color:#387d56}.dropzone button{color:#426b55;font-weight:500;font-size:12px;width:100%;height:72px}.dropzone small{font-size:10px;font-weight:400;color:#819387}.dropzone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.module-bottom{display:flex;justify-content:space-between;gap:10px;margin-top:12px;font-size:10px;color:#708179}.module-bottom a{font-size:10px;color:#526f61}.upload-list{display:grid;gap:9px;margin-top:12px}.file-row{border-top:1px solid #e9eeee;padding-top:11px}.file-main{display:flex;align-items:center;gap:8px}.file-main>svg{color:#6e8b7c;width:15px;height:15px}.file-name{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}.file-main button{min-height:28px;padding:3px 7px;font-size:10px}.file-meta{font-size:10px;color:#758b7d;margin:4px 0 0 23px}.file-errors{font-size:11px;color:var(--error);margin:5px 0 0 23px}.file-warnings{margin:5px 0 0 23px;font-size:10px;color:#8a754d}.file-warnings summary{cursor:pointer}.file-warnings p{margin:4px 0}.generate-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:23px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px}.generate-bar strong{font-size:14px;color:var(--ink)}.generate-bar p{margin:5px 0 0;color:var(--muted);font-size:11px}.fine-print{font-size:11px;color:var(--muted);line-height:1.7}.view>.fine-print{text-align:center;margin-top:14px}.status-message{border-radius:8px;padding:13px 16px;background:#edf5ef;border:1px solid #d8e5d9;margin-top:16px;font-size:12px}.status-message.error{background:#fff0ec;border-color:#edcec7;color:#9f4038}.page-footer{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#7d8d84;margin:38px 0 25px;border-top:1px solid var(--line);padding-top:20px}.empty{background:white;border:1px solid var(--line);border-radius:var(--radius);text-align:center;padding:70px 24px;margin-top:24px}.empty>svg{width:34px;height:34px;color:#829f8d}.empty h2{font-size:19px;margin:16px 0 8px}.empty p{font-size:12px;color:var(--muted);margin-bottom:23px}.result-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:28px 0 24px}.result-summary h2{font-size:20px;margin:8px 0}.result-summary p{font-size:12px;color:var(--muted);margin:0}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}#sheetTabs{display:flex;gap:3px}#sheetTabs button{border-radius:7px 7px 0 0;color:var(--muted);padding:12px 17px}#sheetTabs button.active{background:white;box-shadow:inset 0 -2px var(--accent);color:var(--accent);font-weight:600}.copy-actions{display:flex;align-items:center;gap:7px}.copy-actions button{font-size:12px;min-height:36px;padding:7px 10px}.copy-hint{font-size:11px;color:var(--muted)}.table-preview{max-width:100%;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px}.table-preview table{min-width:max-content}.result-foot{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:12px}.history-row{display:flex;align-items:center;gap:20px;padding:20px 22px;background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:12px}.history-icon{width:38px;height:42px;display:grid;place-items:center;background:#edf4ef;border-radius:6px;color:#5b8067}.history-row strong{font-size:14px;color:var(--ink)}.history-row p{font-size:11px;margin:5px 0 0;color:var(--muted)}.history-row .history-actions{margin-left:auto;display:flex;gap:7px}.history-row button,.history-row a{font-size:12px}.legacy{border-top:1px solid var(--line);margin-top:30px;padding:18px 0;font-size:12px;color:var(--muted)}.legacy summary{cursor:pointer}.legacy a{display:block;margin:8px 0}.legacy p{font-size:11px}dialog{border:1px solid #dbe4df;border-radius:14px;padding:26px;max-width:min(92vw,620px);width:540px;color:var(--text);max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #163b4226}dialog::backdrop{background:#18384066}dialog h2{font-size:20px;margin:0}dialog p{font-size:12px;color:var(--muted)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}dialog label{font-size:12px;font-weight:500;display:block;margin-top:17px}.mapping-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 17px}.mapping-fields label{min-width:0}.mapping-fields .required::after{content:' *';color:#a55040}textarea{resize:vertical;line-height:1.7}.busy .generate-bar{border-color:#9abdac}.busy #generateButton svg:first-child{animation:pulse 1.3s infinite}.busy .context-bar{opacity:.8}[hidden]{display:none!important}@keyframes pulse{50%{opacity:.3}}
@media(min-width:1700px){.main{padding-left:55px;padding-right:55px}.module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.module-card:last-child{grid-column:auto}}
@media(max-width:1150px){.sidebar{width:194px;padding:24px 12px}.main{margin-left:194px;padding:0 24px}.context-bar{flex-wrap:wrap}.context-divider{display:none}.week-description{font-size:11px}.sheet-count{display:none}.module-card{padding:18px}.project-field{max-width:none}}
@media(max-width:800px){.sidebar{position:static;width:auto;padding:16px 20px;display:block}.brand{margin:0;font-size:16px}.brand small{display:none}.sidebar-title,.sidebar-divider,.module-index,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:6px;margin-top:16px}.side-tab{justify-content:center;min-height:40px;padding:8px 10px;font-size:12px}.main{margin-left:0;padding:0 18px}.topbar{height:58px}.heading{margin:24px 0}h1{font-size:25px}.context-bar{padding:16px;gap:12px}.project-field{min-width:180px}.week-field{flex:1}.context-bar>#nextWeek{margin-left:0}.module-grid{grid-template-columns:1fr}.module-card:last-child{grid-column:auto}.generate-bar{align-items:flex-start;flex-direction:column;padding:19px}.generate-bar .primary{width:100%}.baseline-card{align-items:flex-start;padding:16px;gap:10px}.baseline-card button{font-size:11px;padding:5px;max-width:88px;white-space:normal}.section-head{align-items:flex-start}.result-summary{align-items:flex-start;flex-direction:column}.preview-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.copy-actions{padding-bottom:8px}#sheetTabs{width:100%}#sheetTabs button{flex:1;padding:11px 7px}.history-row{flex-wrap:wrap;padding:17px}.history-row .history-actions{margin-left:58px}.page-footer{font-size:9px}.mapping-fields{grid-template-columns:1fr}input,select,textarea{font-size:16px!important}.heading p:not(.eyebrow){font-size:12px}.fine-print{text-align:left!important}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.period-toolbar{display:flex;align-items:center;gap:12px;margin:15px 0 10px;font-size:12px}.period-toolbar label{font-weight:600;color:var(--ink)}.period-toolbar select{min-width:235px;font-size:12px}.period-toolbar span{color:var(--muted);margin-left:auto;font-size:11px}.table-preview{max-height:72vh;scrollbar-gutter:stable}
.module-groups{display:grid;gap:28px}.dimension-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.dimension-heading h3{font-size:17px;color:var(--ink);margin:0}.dimension-heading p{font-size:12px;color:var(--muted);margin:5px 0 0}.dimension-heading>span{font-size:11px;color:var(--muted);white-space:nowrap}.dimension-group .module-card:last-child{grid-column:auto}.module-index .sidebar-group-label{display:block;color:#bdd0d1;font-size:10px;letter-spacing:1px;padding-top:15px;padding-bottom:5px}.sheet-tab-group{display:flex;align-items:center}.sheet-dimension-label{font-size:10px;color:var(--muted);padding:0 8px}.history-tag{display:inline-block;font-size:10px;font-weight:500;color:var(--accent);background:#edf4ef;border-radius:4px;padding:3px 6px;margin-left:9px;vertical-align:middle}.history-actions{flex-wrap:wrap;justify-content:flex-end}.source-download{font-size:10px;color:var(--accent);white-space:nowrap}.source-version{padding:12px 0;border-bottom:1px solid var(--line)}.source-version small{line-height:1.8;overflow-wrap:anywhere}.rules-summary{background:#f1f6f3;border:1px solid var(--line);border-radius:8px;padding:14px;margin-top:18px}.rules-summary strong{font-size:13px;color:var(--ink)}.rules-summary p{font-size:12px;line-height:1.7;margin:7px 0 0}
@media(min-width:1700px){.dimension-group[data-dimension="live"] .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){#sheetTabs{flex-wrap:wrap;gap:8px}.sheet-tab-group{flex:1;min-width:150px;flex-wrap:wrap}.sheet-dimension-label{width:100%;padding:0 7px}.dimension-heading p{font-size:11px}.history-row .history-actions{margin-left:0;width:100%;justify-content:flex-start}.history-tag{margin-left:0;margin-top:5px}.source-version .history-tag{margin-left:8px}.file-main{gap:4px}.file-main button{padding-left:4px;padding-right:4px}}
@media(max-width:800px){.period-toolbar{flex-wrap:wrap}.period-toolbar select{min-width:0;flex:1}.period-toolbar span{margin-left:0;width:100%}}
.brand{display:block;margin-bottom:28px}.brand img{display:block;width:164px;height:auto;padding:0;background:transparent;border-radius:0;margin-bottom:9px}.brand>span{font-size:12px;font-weight:500}.brand small{font-size:8px;margin-top:2px}
@media(max-width:800px){.brand{display:flex;gap:14px;margin-bottom:0}.brand img{width:145px;margin-bottom:0}.brand>span{font-size:11px}.side-tab{white-space:nowrap;padding:8px 4px;gap:6px;font-size:12px}.side-tab svg{width:16px;height:16px}}
