:root{--blue: #3b71eb;--blue-dark: #2d5bc9;--blue-soft: #eef3ff;--red: #c12a2a;--ink: #1a2233;--muted: #6b7488;--line: #e5e9f2;--bg: #f4f6fa;--white: #fff;--shadow: 0 8px 24px rgba(24, 39, 75, .06);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}*{box-sizing:border-box;margin:0;padding:0}body{min-height:100vh;background:var(--bg)}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.app{min-height:100vh}.hero{background:linear-gradient(135deg,#fff,#edf3ff);border-bottom:1px solid var(--line)}.hero-inner{max-width:1120px;margin:0 auto;padding:28px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:16px}.brand-mark{width:54px;height:54px;flex:none;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:26px;font-weight:900;letter-spacing:2px;border-radius:14px;box-shadow:0 8px 18px #3b71eb40}.brand h1{font-size:26px;font-weight:900;letter-spacing:1px}.brand p{color:var(--muted);font-size:14px;margin-top:6px}.stats{display:flex;gap:12px}.data-bar{padding:14px 20px}.data-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.data-actions .btn-quiet{margin-left:auto}.stat{min-width:86px;padding:10px 16px;background:#ffffffd9;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:2px}.stat b{font-size:22px;color:var(--blue)}.stat span{font-size:12px;color:var(--muted)}.main{max-width:1120px;margin:0 auto;padding:24px;display:flex;flex-direction:column;gap:18px}.panel{background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:18px 20px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.toolbar-group{display:flex;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 20px;font-size:15px;font-weight:700;border:1px solid transparent;border-radius:10px;transition:transform .1s,background .2s,box-shadow .2s;box-shadow:0 3px 8px #18274b14}.btn svg{width:18px;height:18px}.btn:active{transform:scale(.97)}.btn-primary{background:var(--blue);color:#fff}.btn-primary:hover:not(:disabled){background:var(--blue-dark)}.btn-ghost{background:#7b7b7b;color:#fff}.btn-ghost:hover{background:#666}.btn-soft{background:var(--blue-soft);color:var(--blue-dark);border-color:#d9e4ff}.btn-soft:hover{background:#e2ebff}.btn-quiet{background:transparent;color:#8b93a4;box-shadow:none}.btn-quiet:hover{color:var(--red);background:#fff4f4}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.panel-head h2,.board-head h2{font-size:17px;font-weight:800}.panel-head p{font-size:13px;color:var(--muted);margin-top:5px}.panel-actions{display:flex;align-items:center;gap:12px;flex:none}.link{background:none;border:0;color:var(--blue);font-size:13px;font-weight:700;padding:4px 2px}.link:hover{text-decoration:underline}.divider{width:1px;height:14px;background:var(--line)}.chips{display:flex;flex-wrap:wrap;gap:10px}.chip{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:#fafbfd;color:#4c5568;font-size:14px;font-weight:600;transition:all .18s}.chip:hover{border-color:#bfd0f7}.chip .check{display:none;color:#fff;background:var(--blue);border-radius:50%;width:16px;height:16px;font-size:11px;line-height:16px;text-align:center}.chip em{font-style:normal;font-size:12px;color:#9aa3b5;background:#eef0f5;padding:1px 7px;border-radius:999px}.chip.active{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 4px 12px #3b71eb38}.chip.active .check{display:inline-block;background:#fff;color:var(--blue)}.chip.active em{background:#ffffff38;color:#fff}.empty-hint{color:var(--muted);font-size:14px;padding:8px 0}.board-head{display:flex;align-items:center;gap:12px;margin:4px 2px 14px}.badge{font-size:12px;color:var(--blue-dark);background:var(--blue-soft);padding:4px 10px;border-radius:999px}.grid-container{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;background:#111;border:5px solid #111;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}.tile{background:#fff;min-height:160px;padding:16px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.tile-top{position:absolute;top:14px;left:16px;right:16px;display:flex;justify-content:space-between;align-items:center}.subject{font-size:17px;font-weight:700;color:#333}.status{font-size:11px;color:#9aa3b5;background:#f0f2f6;padding:3px 8px;border-radius:999px}.status.done{color:#1a9c62;background:#e9f8f0}.name{font-size:32px;font-weight:900;color:var(--red);letter-spacing:2px;transition:opacity .16s,transform .16s;text-align:center}.name.muted{color:#b8bec9;font-size:26px}.name.flash{opacity:0;transform:scale(.9)}.tile-bottom{position:absolute;bottom:12px;font-size:12px;color:#a1a8b6}.footer{margin-top:16px;text-align:center;color:#8b93a4;font-size:13px;line-height:1.6}.empty-board{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:200px;color:var(--muted)}.empty-icon{font-size:34px;color:#c9cfdb}.empty-board p{font-size:16px;font-weight:700;color:#4c5568}.empty-board span{font-size:13px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#121b2e7a;display:flex;align-items:center;justify-content:center;padding:20px}.dialog{width:min(640px,100%);max-height:88vh;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 24px 60px #0c162d40;overflow:hidden}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 16px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:19px;font-weight:800}.dialog-head p{font-size:13px;color:var(--muted);margin-top:5px}.icon-btn{border:0;background:#f2f4f8;color:#6b7488;width:30px;height:30px;border-radius:8px}.icon-btn:hover{background:#e9ecf3}.dialog-body{padding:20px 24px;overflow-y:auto}.dropzone{border:2px dashed #cbd6ee;border-radius:12px;background:#f9fbff;padding:24px 16px;text-align:center;cursor:pointer;transition:all .2s}.dropzone:hover,.dropzone.drag-over{border-color:var(--blue);background:var(--blue-soft)}.dropzone.has-file{border-style:solid;border-color:#b6e3c8;background:#f4fcf7}.drop-icon{width:38px;height:38px;margin:0 auto 10px;border-radius:50%;background:var(--blue);color:#fff;font-size:22px;line-height:38px;font-weight:700}.dropzone.has-file .drop-icon{background:#22a45d}.drop-title{font-size:15px;font-weight:700;word-break:break-all}.drop-sub{font-size:12px;color:var(--muted);margin-top:5px}.template-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;font-size:12px;color:var(--muted)}.error-box{margin-top:14px;background:#fff2f2;border:1px solid #ffd6d6;color:#b42318;padding:10px 12px;border-radius:8px;font-size:13px}.result-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}.summary-item{flex:1;min-width:92px;background:#f7f9fc;border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}.summary-item b{font-size:19px;color:var(--blue)}.summary-item span,.sheet-tag{font-size:12px;color:var(--muted)}.group-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.group-tag{font-size:12px;color:var(--blue-dark);background:var(--blue-soft);border-radius:999px;padding:4px 10px}.group-tag em{font-style:normal;opacity:.7}.preview-title{font-size:13px;font-weight:700;margin:18px 0 8px}.preview-wrap{max-height:200px;overflow:auto;border:1px solid var(--line);border-radius:10px}.preview-table{width:100%;border-collapse:collapse;font-size:13px}.preview-table th{position:sticky;top:0;background:#f7f9fc;text-align:left;color:var(--muted);font-weight:700}.preview-table th,.preview-table td{padding:8px 12px;border-bottom:1px solid var(--line)}.preview-table tr:last-child td{border-bottom:0}.warnings{margin-top:10px;padding-left:18px;font-size:12px;color:#9a6700;line-height:1.7}.mode-block{margin-top:18px}.mode-title{font-size:13px;font-weight:700;margin-bottom:8px}.radio{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;cursor:pointer}.radio.checked{border-color:var(--blue);background:#f7faff}.radio input{margin-top:3px;accent-color:var(--blue)}.radio span{display:flex;flex-direction:column;gap:3px;font-size:13px}.radio small{color:var(--muted);font-size:12px}.dialog-foot{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--line);background:#fcfdff}.toast{position:fixed;left:50%;bottom:32px;transform:translate(-50%);z-index:80;padding:12px 22px;border-radius:10px;background:#1f2a44;color:#fff;font-size:14px;font-weight:600;box-shadow:0 12px 30px #0c162d40}.toast.warn{background:#a86400}@media(max-width:900px){.grid-container{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.hero-inner{padding:20px 16px}.brand h1{font-size:20px}.brand p{font-size:12px}.brand-mark{width:44px;height:44px;font-size:22px}.stats{width:100%}.stat{flex:1;min-width:0;padding:8px 6px}.data-bar{padding:12px 16px}.data-actions .btn{flex:1;padding:10px 8px;font-size:13px}.data-actions .btn-quiet{margin-left:0}.main{padding:16px;gap:14px}.toolbar{gap:10px}.toolbar-group{width:100%}.toolbar-group .btn{flex:1;padding:10px 8px;font-size:13px}.grid-container{grid-template-columns:1fr;border-width:4px}.tile{min-height:130px}.name{font-size:26px}.subject{font-size:16px}.dialog-body,.dialog-head,.dialog-foot{padding-left:16px;padding-right:16px}}
