:root{--blue:#1677ff;--deep:#102a56;--ink:#1b2940;--muted:#718096;--line:#dce5f2;--bg:#f3f7fc;--ok:#13a564;--warn:#d98600;--danger:#d33b49;--shadow:0 12px 32px rgba(25,62,112,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Microsoft YaHei","Segoe UI",sans-serif}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5vw;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:14px}.logo{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#0d6efd,#29a3ff);color:white;font-weight:800}.brand h1{font-size:20px;margin:0}.brand p{font-size:12px;color:var(--muted);margin:4px 0 0}.status{display:flex;gap:8px;align-items:center;color:var(--muted)}.dot{width:9px;height:9px;background:var(--ok);border-radius:50%;box-shadow:0 0 0 5px #e0f7ec}main{max-width:1480px;margin:auto;padding:28px 4vw 60px}.hero{background:linear-gradient(110deg,var(--deep),#155fb8);color:#fff;border-radius:20px;padding:28px 32px;display:flex;justify-content:space-between;align-items:center;box-shadow:var(--shadow)}.hero h2{font-size:28px;margin:8px 0}.hero p{margin:0;color:#dceaff}.eyebrow{font-size:13px;color:#a9d1ff}.steps{display:flex;gap:8px;margin:20px 0}.steps span{padding:9px 18px;border-radius:999px;background:#e8eff8;color:#758398;font-size:13px}.steps .active{background:#dceaff;color:var(--blue);font-weight:700}.grid{display:grid;grid-template-columns:minmax(400px,.9fr) minmax(560px,1.1fr);gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow)}.card-title{display:flex;gap:12px;align-items:center;margin-bottom:18px}.card-title h3{margin:0;font-size:18px}.card-title p{margin:4px 0 0;color:var(--muted);font-size:12px}.num{width:31px;height:31px;display:grid;place-items:center;background:#e5f0ff;color:var(--blue);font-weight:800;border-radius:9px}.dropzone,.folder{display:flex;align-items:center;justify-content:space-between;padding:18px;border:1.5px dashed #9db9df;border-radius:12px;background:#f8fbff;cursor:pointer}.dropzone span,.folder span{font-size:12px;color:var(--muted)}input[type=file]{display:none}.search-row{display:flex;align-items:center;gap:10px;margin:15px 0}.search-row input{flex:1}.search-row span{font-size:12px;color:var(--muted)}input,select{width:100%;height:38px;border:1px solid #cfd9e8;border-radius:8px;padding:0 10px;background:#fff;color:var(--ink)}input:focus,select:focus{outline:2px solid #cfe3ff;border-color:var(--blue)}.project-list{height:390px;overflow:auto;border:1px solid var(--line);border-radius:12px}.project-list.empty{display:grid;place-items:center;color:var(--muted)}.project{padding:13px;border-bottom:1px solid var(--line);cursor:pointer}.project:hover,.project.active{background:#edf5ff}.project strong{font-size:14px}.project p{font-size:12px;color:var(--muted);margin:5px 0 0}.workflow-tabs{display:flex;gap:7px;margin-bottom:16px}.workflow-tabs button{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:9px;cursor:pointer}.workflow-tabs button.active{background:var(--blue);color:#fff;border-color:var(--blue)}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.form-grid label{font-size:12px;color:#56657a}.form-grid input,.form-grid select{margin-top:5px}.form-grid .wide{grid-column:span 3}.folder{margin-top:15px}.chips{display:flex;flex-wrap:wrap;gap:7px;min-height:20px;margin:10px 0}.chip{font-size:11px;background:#edf5ff;color:#2462a6;padding:5px 8px;border-radius:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.primary,.ghost,.disabled{border:0;border-radius:9px;padding:11px 18px;font-weight:700;cursor:pointer}.primary{background:var(--blue);color:white}.ghost{background:white;color:var(--blue);border:1px solid #9cc2f4}.disabled{background:#e7ebf1;color:#99a3b0;cursor:not-allowed}.full{width:100%;margin-top:8px}.result-card{margin-top:18px}.result-empty{text-align:center;color:var(--muted);padding:34px}.decision{padding:14px;border-radius:10px;font-weight:700;margin-bottom:14px}.decision.ok{background:#e8f8f0;color:var(--ok)}.decision.wait{background:#fff5dd;color:var(--warn)}.decision.skip{background:#ffebed;color:var(--danger)}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.summary-item{background:#f7f9fc;border-radius:10px;padding:12px}.summary-item span{font-size:11px;color:var(--muted);display:block}.summary-item strong{font-size:13px;display:block;margin-top:5px;word-break:break-all}details{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}summary{cursor:pointer;color:var(--blue)}pre{white-space:pre-wrap;max-height:320px;overflow:auto;background:#101b2d;color:#d8e4f7;padding:14px;border-radius:10px;font-size:11px}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:15px}.toast{position:fixed;right:24px;bottom:24px;background:#17243a;color:#fff;padding:12px 18px;border-radius:9px;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:none}@media(max-width:980px){.grid{grid-template-columns:1fr}.summary-grid{grid-template-columns:repeat(2,1fr)}.hero{align-items:flex-start;gap:18px}.form-grid{grid-template-columns:1fr 1fr}.form-grid .wide{grid-column:span 2}}@media(max-width:640px){main{padding:18px 12px}.hero{flex-direction:column}.form-grid,.summary-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:span 1}.actions{flex-direction:column}.topbar{padding:0 14px}.brand p{display:none}}
.reminder-card{margin-bottom:18px}.reminder-head{display:flex;justify-content:space-between;align-items:center}.reminder-head .card-title{margin-bottom:12px}.reminder-head h3 b{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;margin-left:5px;border-radius:12px;background:#ffebed;color:var(--danger);font-size:12px}.reminder-tools{display:flex;gap:8px}.reminder-filters{display:flex;gap:7px;margin-bottom:12px;overflow:auto}.reminder-filters button{border:0;background:#eef2f7;color:#66758a;padding:7px 13px;border-radius:8px;cursor:pointer;white-space:nowrap}.reminder-filters button.active{background:#dceaff;color:var(--blue);font-weight:700}.reminder-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:310px;overflow:auto}.reminder-empty{grid-column:1/-1;text-align:center;color:var(--muted);padding:24px}.reminder{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;border:1px solid var(--line);border-left:4px solid var(--warn);border-radius:10px;padding:11px;background:#fff}.reminder.high{border-left-color:var(--danger)}.reminder.medium{border-left-color:var(--warn)}.reminder.low{border-left-color:var(--blue)}.reminder-icon{width:34px;height:34px;border-radius:9px;background:#f1f5fa;display:grid;place-items:center;font-size:16px}.reminder strong{font-size:13px;display:block}.reminder p{font-size:11px;color:var(--muted);margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reminder button{border:0;background:#edf5ff;color:var(--blue);border-radius:7px;padding:7px 9px;cursor:pointer}@media(max-width:800px){.reminder-list{grid-template-columns:1fr}.reminder-head{align-items:flex-start;gap:10px}.reminder-tools{flex-direction:column}}
.sync-card{margin-bottom:18px}.sync-title{display:flex;justify-content:space-between;align-items:flex-start}.sync-title .card-title{margin-bottom:14px}.sync-status{font-size:12px;padding:7px 11px;border-radius:8px;background:#eef2f7;color:var(--muted)}.sync-status.success{background:#e8f8f0;color:var(--ok)}.sync-status.error{background:#ffebed;color:var(--danger)}.sync-status.running{background:#fff5dd;color:var(--warn)}.sync-grid{display:grid;grid-template-columns:minmax(380px,1fr) 150px 150px auto auto;gap:10px;align-items:end}.sync-grid label{font-size:12px;color:#56657a}.sync-grid label input{margin-top:5px}.switch-label{height:38px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:0 10px;border-radius:8px}.switch-label input{width:auto;height:auto;margin:0}.sync-meta{font-size:12px;color:var(--muted);margin:12px 0 0}@media(max-width:1000px){.sync-grid{grid-template-columns:1fr 150px}.sync-grid label:first-child{grid-column:1/-1}}
.inline-sync{padding:14px;border:1px solid #cfe1ff;background:#f5f9ff;border-radius:12px;margin-bottom:16px}.inline-sync-head,.inline-sync-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.inline-sync-head p{margin:4px 0 0;font-size:12px;color:var(--muted)}.inline-sync-actions{justify-content:flex-start;margin-top:12px}.sync-settings{margin-top:12px;border-top:1px solid #dce8f8;padding-top:10px}.sync-settings summary{cursor:pointer;font-size:12px;color:var(--primary)}.sync-settings .sync-grid{grid-template-columns:1fr 140px}.sync-settings .sync-grid label:first-child{grid-column:1/-1}.token-row{display:grid;grid-template-columns:minmax(300px,1fr) auto;gap:10px;align-items:end;margin:10px 0}.token-row label{font-size:12px;color:#56657a}.token-row label input{margin-top:5px}.connection-state{min-height:38px;display:flex;align-items:center;font-size:12px;color:var(--muted)}.connection-state.success{color:var(--ok)}.connection-state.error{color:var(--danger)}.source-divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;margin:12px 0}.source-divider:before,.source-divider:after{content:"";height:1px;background:var(--line);flex:1}@media(max-width:800px){.token-row{grid-template-columns:1fr}.connection-state{height:auto}}
.summary-item.wide{grid-column:1/-1}.summary-item.wide strong{white-space:pre-line;line-height:1.7}
.batch-mode{display:flex;align-items:flex-end;gap:14px;margin:0 0 12px}.batch-mode label{font-size:12px;color:var(--muted);min-width:180px}.batch-mode select{display:block;margin-top:6px}.batch-mode span{font-size:12px;color:var(--muted);padding-bottom:10px}
.batch-card{margin-top:18px}.batch-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.batch-head .card-title{margin-bottom:14px}.batch-summary{margin:13px 0;color:var(--muted);font-size:12px}.batch-list{border:1px solid var(--line);border-radius:12px;max-height:420px;overflow:auto}.batch-row{display:grid;grid-template-columns:auto minmax(220px,1.1fr) minmax(220px,1fr) auto;gap:12px;align-items:center;padding:12px;border-bottom:1px solid var(--line)}.batch-row:last-child{border-bottom:0}.batch-row input{width:auto;height:auto}.batch-row strong{font-size:13px;display:block}.batch-row p{font-size:11px;color:var(--muted);margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.batch-reason{font-size:12px;color:#56657a}.batch-badge{font-size:11px;padding:6px 9px;border-radius:7px;background:#eef2f7;color:#66758a;white-space:nowrap}.batch-row.ready .batch-badge,.batch-row.success .batch-badge{background:#e8f8f0;color:var(--ok)}.batch-row.running .batch-badge{background:#e5f0ff;color:var(--blue)}.batch-row.blocked .batch-badge,.batch-row.failed .batch-badge{background:#ffebed;color:var(--danger)}.batch-row.skipped .batch-badge,.batch-row.unmatched .batch-badge{background:#fff5dd;color:var(--warn)}.batch-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}@media(max-width:800px){.batch-row{grid-template-columns:auto 1fr auto}.batch-reason{grid-column:2/-1}.batch-actions{flex-direction:column}.batch-head{align-items:flex-start}}
