:root{--bg: #f5f7fa;--surface: #ffffff;--line: #e3e8ef;--line-strong: #cfd6e0;--text: #1f2937;--muted: #6b7280;--brand: #1d4ed8;--brand-soft: #eaf0ff;--ok: #0f9d58;--danger: #d93026;--warn: #b45309;--row-hover: #f7f9fc;--shadow: 0 8px 24px rgba(15, 23, 42, .08);--row-h: 32px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,Hiragino Sans GB,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font-family:inherit;font-size:inherit}.app{display:flex;flex-direction:column;height:100%}.topbar{display:flex;align-items:center;justify-content:space-between;padding:6px 16px;background:var(--surface);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px}.brand-mark,.login-logo{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#2563eb,#1e40af);color:#fff;display:grid;place-items:center;font-size:18px;font-weight:600}.brand-mark{width:28px;height:28px;border-radius:8px;font-size:14px}.brand h1,.login-brand h1{margin:0;font-size:17px;letter-spacing:.5px}.brand h1{font-size:15px;letter-spacing:.3px}.brand p,.login-brand p{margin:2px 0 0;font-size:12px;color:var(--muted)}.brand p{margin:1px 0 0;font-size:11px}.topbar-right{display:flex;align-items:center;gap:8px}.me{display:flex;align-items:center;gap:8px;padding:3px 9px;border:1px solid var(--line);border-radius:999px;background:#fafbfe}.me-name{font-weight:600;border:none;background:transparent;padding:0 2px;color:inherit;font-size:inherit;cursor:default}.me-name.empty{color:var(--warn);font-weight:500;border-bottom:1px dashed #f0b26b}.role-badge{padding:2px 8px;border-radius:6px;font-size:12px;border:1px solid transparent}.role-badge.admin{background:#fdecec;color:#b42318;border-color:#f8c9c5}.role-badge.editor{background:#eaf0ff;color:#1d4ed8;border-color:#c7d6fe}.role-badge.viewer{background:#f1f3f7;color:#475467;border-color:#dfe3ea}.btn{border:1px solid var(--line-strong);background:var(--surface);color:var(--text);padding:5px 10px;border-radius:7px;font-size:13px;line-height:1.4;white-space:nowrap;cursor:pointer;transition:all .15s ease}.btn:hover:not(:disabled){border-color:var(--brand);color:var(--brand)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover:not(:disabled){background:#1b3fae;color:#fff}.btn.ghost{background:#f7f9fc}.btn.text{border:none;background:transparent;color:var(--muted);padding:6px 8px}.btn.mini{padding:3px 8px;font-size:12px;border-radius:6px}.btn.mini.danger{color:var(--danger);border-color:#f2c9c5}.btn.mini.danger:hover:not(:disabled){background:#fdecec;border-color:var(--danger);color:var(--danger)}.btn.block{width:100%;padding:10px 14px}.sheet-wrap{flex:1;display:flex;flex-direction:column;min-height:0;padding:8px 14px 6px;gap:7px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.tool-left,.tool-right{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.search{width:210px;padding:5px 10px;border:1px solid var(--line-strong);border-radius:7px;outline:none;background:var(--surface)}.search:focus,.filter:focus,input:focus{border-color:var(--brand)}.filter{padding:5px 8px;border:1px solid var(--line-strong);border-radius:7px;background:var(--surface);color:var(--text);max-width:132px;min-width:96px}.quick-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:4px 8px;border:1px solid var(--line);border-radius:9px;background:#fbfcfe}.quick-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-right:2px}.quick-right{display:inline-flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}.quick-sep{flex:0 0 1px;width:1px;height:18px;background:var(--line-strong);margin:0 2px}.quick-chip{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:#374151;font-size:12px;font-weight:500;cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.quick-chip em{font-style:normal;font-size:11px;color:var(--muted);padding:0 5px;border-radius:999px;background:#f1f5f9}.quick-chip:hover{border-color:var(--brand);color:var(--brand)}.tick-box{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border:1px solid currentColor;border-radius:4px;font-size:10px;line-height:1;opacity:.4}.quick-chip.on .tick-box{opacity:1}.quick-chip.on{border-color:var(--brand);background:var(--brand);color:#fff;box-shadow:0 1px 3px #1d4ed840}.quick-chip.on em{color:#fff;background:#ffffff38}.style-pop{position:fixed;z-index:67;width:336px;padding:8px 10px 6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.sp-row{display:flex;align-items:flex-start;gap:6px;padding:3px 0}.sp-row .sb-name{flex:0 0 auto;width:26px;line-height:22px;margin:0}.sp-dots{display:flex;flex-wrap:wrap;align-items:center;gap:4px;flex:1;min-width:0;min-height:22px}.sp-br{flex-basis:100%;height:0}.sp-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px;padding-top:6px;border-top:1px solid var(--line)}.sp-scope{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sb-name{font-size:11px;color:var(--muted);white-space:nowrap}.sb-size{min-width:26px;height:22px;padding:0 5px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#374151;font-size:12px;line-height:1;cursor:pointer}.sb-size:hover:not(:disabled){border-color:var(--brand);color:var(--brand)}.sb-size.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand);font-weight:600}.sb-bold{width:24px;height:22px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#374151;font-weight:700;font-size:13px;line-height:1;cursor:pointer}.sb-bold.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}.sb-dot{width:15px;height:15px;padding:0;border:1px solid var(--line-strong);border-radius:4px;cursor:pointer}.sb-dot.text{border-radius:999px}.sb-dot.vivid{border-color:#0f172a1f}.sb-dot.none{background-image:linear-gradient(135deg,transparent 44%,#cbd5e1 44%,#cbd5e1 56%,transparent 56%)}.sb-dot.on{outline:2px solid var(--brand);outline-offset:1px}.sb-dot:disabled,.sb-size:disabled,.sb-bold:disabled{opacity:.45;cursor:not-allowed}.sb-pick{position:relative;display:inline-flex;align-items:center;justify-content:center;height:22px;padding:0 6px;margin-left:2px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--muted);font-size:11px;cursor:pointer;overflow:hidden}.sb-pick:hover{border-color:var(--brand);color:var(--brand)}.sb-pick input[type=color]{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;padding:0;border:none;opacity:0;cursor:pointer}.btn.hl-btn{font-weight:700;background:#fde68a;border:1px solid #fcd34d;color:#92400e;border-radius:7px}.btn.hl-btn:hover:not(:disabled){background:#fcd34d;border-color:#f59e0b;color:#78350f}.btn.hl-btn:disabled{background:#f1f5f9;border-color:transparent;color:#94a3b8;font-weight:700}.btn.text.clear-style{padding:2px 10px;flex:0 0 auto}.table-scroll{flex:1;min-height:0;overflow:auto;position:relative;border:1px solid var(--line);border-radius:10px;background:var(--surface)}table.sheet{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:0}table.sheet th,table.sheet td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:0;height:var(--row-h);text-align:center;white-space:nowrap;background:var(--surface)}table.sheet thead th{position:sticky;top:0;z-index:3;overflow:hidden;background:#f2f5fa;font-weight:600;color:#374151;font-size:13px;padding:0 10px}table.sheet thead th.resizing{background:#e6ecfb}.th-inner{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:var(--row-h)}.col-resizer{position:absolute;top:0;right:-2px;width:10px;height:100%;cursor:col-resize;z-index:6;touch-action:none}.col-resizer:after{content:"";position:absolute;top:4px;bottom:4px;right:2px;width:2px;border-radius:2px;background:transparent;transition:background .12s ease}.col-resizer:hover:after,th.resizing .col-resizer:after{background:var(--brand)}body.col-resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}table.sheet td.cell.hit-cell,table.detail td.cell.hit-cell,table.sheet tbody td.cell.hit-cell.sticky-col-1,table.detail tr.sold td.cell.hit-cell{background-color:#fff7d6;box-shadow:inset 0 0 0 100px #facc1533}table.sheet td.cell.sel.hit-cell{background-color:#e6ecfb;box-shadow:inset 0 0 0 100px #1d4ed812}table.detail td.cell.sel.hit-cell{background-color:#fdf1e0;box-shadow:inset 0 0 0 100px #d9770617}table.sheet td.cell.sel{background-color:#e6ecfb;box-shadow:inset 0 0 0 100px #1d4ed812}table.sheet thead th.head-sel{background-color:#dbe4fb;box-shadow:inset 0 0 0 100px #1d4ed81f;color:var(--brand)}table.sheet td.cell.sel.locked{color:#475569}table.sheet tbody tr td.cell.sel.sticky-col-1{background-color:#e6ecfb;box-shadow:inset 0 0 0 100px #1d4ed812}table.sheet tbody td.cell,table.sheet tbody td.grip-col{box-shadow:none}body.col-resizing table.sheet td.cell{cursor:col-resize}table.sheet thead th.grip-col,table.sheet td.grip-col{position:sticky;left:0;z-index:5;width:40px;min-width:40px;text-align:left;white-space:nowrap;background:#f2f5fa}table.sheet td.grip-col{background:var(--surface);z-index:4}.grip-inner{position:relative;display:flex;align-items:center;gap:2px;padding-left:3px;height:var(--row-h);white-space:nowrap}table.sheet td.grip-col.pickable{cursor:pointer;-webkit-user-select:none;user-select:none}table.sheet td.grip-col.pickable.on{background:#dfe9ff}table.sheet thead th.grip-col.pick-head{cursor:pointer}table.sheet thead th.grip-col.pick-head:hover .pick-mark{border-color:var(--brand);background:#e8efff}.pick-mark{width:0;height:0;border-left:8px solid #cbd5e1;border-top:8px solid transparent;border-bottom:8px solid transparent;transition:border-left-color .12s ease}table.sheet thead th.grip-col.pick-head.on .pick-mark{border-left-color:var(--brand)}.grip{flex:0 0 auto;color:#b6bcc6;cursor:grab;-webkit-user-select:none;user-select:none;font-size:12px;line-height:1}.grip:hover{color:var(--brand)}.drop-line{position:absolute;left:0;height:3px;transform:translateY(-50%);background:var(--brand);box-shadow:0 0 0 1px #1d4ed847;border-radius:2px;pointer-events:none;z-index:30}.drop-line:before{content:"";position:absolute;left:-3px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 2px #fff}.grip-toggle{flex:1;border:0;background:transparent;cursor:pointer;color:var(--brand);font-size:21px;font-weight:700;line-height:1;padding:0;text-align:center}.grip-toggle:hover{color:#1d4ed8}table.sheet th.sticky-col-1,table.sheet td.sticky-col-1{position:sticky;left:34px;z-index:3;background:#f2f5fa}table.sheet td.sticky-col-1{background:var(--surface);z-index:2;font-weight:600}table.sheet th.sticky-col-1.resizing{background:#e6ecfb}table.sheet tbody tr.colored td{background:var(--row-bg)}table.sheet tbody tr.mine td.sticky-col-1{box-shadow:inset 3px 0 0 var(--brand)}table.sheet tbody tr.row-active td{background:transparent}table.sheet tbody tr.row-active td.sticky-col-1{box-shadow:inset 3px 0 0 var(--danger)}.row-menu{position:fixed;z-index:60;min-width:188px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:var(--shadow);animation:menu-in .1s ease-out}.row-menu-title{padding:6px 10px 8px;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line);margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-menu-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:8px 10px;border:0;border-radius:7px;background:transparent;font-size:13px;color:var(--text);text-align:left;cursor:pointer}.row-menu-item em{font-style:normal;font-size:11px;color:var(--muted)}.row-menu-item:hover:not(:disabled){background:var(--row-hover)}.row-menu-item.danger{color:var(--danger)}.row-menu-item.danger:hover:not(:disabled){background:#fee2e2}.row-menu-item:disabled{opacity:.45;cursor:not-allowed}@keyframes menu-in{0%{opacity:0;transform:translateY(-4px)}}table.sheet td.cell{padding:0 10px;cursor:default;overflow:hidden;text-overflow:ellipsis;text-align:center;text-indent:0}table.sheet td.cell.num{text-align:center;font-variant-numeric:tabular-nums}table.sheet td.cell.bold{font-weight:700}table.sheet td.cell.auto-sum{cursor:not-allowed;color:#6b7280}.auto-tag{font-style:normal;font-size:10px;color:#9aa1ac;margin-left:5px;border:1px dashed var(--line);border-radius:4px;padding:0 3px}mark.hit{background:#fde68a;color:inherit;border-radius:2px;padding:0 1px}.cell-check{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:1px solid var(--line-strong);border-radius:4px;background:#fff;color:transparent;font-size:12px;line-height:1;vertical-align:middle}.cell-check.on{border-color:var(--brand);background:var(--brand);color:#fff}table.sheet td.ops{padding:0 8px;display:table-cell;vertical-align:middle;text-align:center;background:var(--surface)}table.sheet td.ops .btn+.btn{margin-left:6px}.cell-empty{color:#c3c8d0}.empty{text-align:center;padding:40px 12px!important;color:var(--muted)}table.sheet td.cell>.cell-text,table.detail td.cell>.cell-text{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}table.sheet td.cell.auto-sum>.cell-text{max-width:calc(100% - 36px)}table.sheet td.cell>.cell-text.status-pill{padding:1px 9px;border-radius:999px;line-height:1.6;font-weight:500}.status-pill.st-stock{background:#dbeafe;color:#1d4ed8}.status-pill.st-off{background:#fee2e2;color:#b91c1c}.status-pill.st-sold{background:#ede9fe;color:#6d28d9}.status-pill.st-other{background:#ffedd5;color:#c2410c}.cell-picker-item .tone-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;vertical-align:middle}.tone-dot.st-stock{background:#3b82f6}.tone-dot.st-off{background:#ef4444}.tone-dot.st-sold{background:#8b5cf6}.tone-dot.st-other{background:#f97316}table.sheet td.cell.float-edit>*,table.detail td.cell.float-edit>*{visibility:hidden}.cell-expand{position:fixed;z-index:96;display:flex;flex-direction:column;gap:6px;padding:9px 11px 7px;background:#fff;border:1px solid var(--brand);border-radius:12px;box-shadow:0 18px 42px #0f172a33;font-size:12px;overflow:hidden}.cell-expand .ce-head{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;line-height:1.2}.cell-expand .ce-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-expand .ce-meta{flex:none;margin-left:auto;padding:1px 7px;border-radius:999px;background:#eef3ff;color:#3559b5;font-size:10.5px;font-weight:600;white-space:nowrap}.cell-expand .ce-area{flex:1;min-height:0;width:100%;padding:8px 10px;border:1px solid var(--line-strong);border-radius:8px;outline:none;resize:none;overflow:auto;background:#fff;color:var(--text);font:inherit;font-size:13.5px;line-height:1.7;white-space:pre-wrap;word-break:break-word}.cell-expand .ce-area:focus{border-color:var(--brand);box-shadow:0 0 0 3px #1d4ed81f}.cell-expand .ce-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-right:20px;color:var(--muted);font-size:11px}.cell-expand .ce-hint{color:#8a97ad}.cell-expand .ce-grip{position:absolute;right:2px;bottom:2px;width:20px;height:20px;border-radius:4px;cursor:nwse-resize;background-image:linear-gradient(135deg,transparent 0 42%,#b7c4da 42% 50%,transparent 50% 62%,#b7c4da 62% 70%,transparent 70% 82%,#b7c4da 82% 90%,transparent 90%)}.cell-expand .ce-grip:hover{background-color:#eef3ff}body.card-resizing{cursor:nwse-resize;-webkit-user-select:none;user-select:none}body.card-resizing .cell-expand,body.card-resizing .cell-expand .ce-area{-webkit-user-select:none;user-select:none}.cell-input{width:100%;border:1px solid var(--brand);border-radius:6px;padding:5px 8px;outline:none;background:#fff;box-shadow:0 0 0 3px #1d4ed81f;font:inherit;color:inherit}.cell-picker{position:fixed;z-index:90;padding:4px;background:#fff;border:1px solid #d7dce5;border-radius:8px;box-shadow:0 12px 28px #0f172a29;overflow:hidden}.cell-picker-list{max-height:inherit;overflow-y:auto}.cell-picker-item{display:block;width:100%;border:0;border-radius:6px;padding:6px 10px;background:transparent;color:#1f2937;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.cell-picker-item.on{background:#e6ecfb;color:#1d4ed8}.cell-picker-item.clear{margin-bottom:2px;color:#98a2b3;box-shadow:inset 0 -1px #eef1f6;border-radius:6px 6px 0 0}.cell-picker-empty{margin:0;padding:8px 10px;color:#98a2b3;font-size:12px}.cell-picker-add{display:block;width:100%;margin-top:4px;padding:7px 10px;border:0;border-top:1px solid #eef1f6;background:transparent;color:var(--brand);font:inherit;font-weight:600;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.cell-picker-add:hover{background:#eef4ff}.cell-picker-add:disabled{color:#98a2b3;cursor:default}input.cell-input::-webkit-outer-spin-button,input.cell-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.cell-input[type=number]{-moz-appearance:textfield}.row-off td{opacity:.55}table.sheet tbody tr.group-row td{background:#f8fafc}td.group-cell{text-align:left;padding:0 10px;font-weight:700;color:#334155;background:transparent}.group-inner{display:flex;align-items:center;gap:12px}.group-title{cursor:text;padding:3px 6px;border-radius:5px;border:1px dashed transparent}.group-title:hover{border-color:var(--line);background:#fff}.group-input{border:1px solid var(--brand);border-radius:6px;padding:4px 8px;min-width:260px;outline:none}.group-stat{font-weight:400;font-size:12px;color:var(--muted)}.group-stat b{color:#1f2937}.grow{flex:1}.undo-btn{min-width:104px;text-align:center}.btn.undo-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:78px}.btn.undo-btn:disabled{opacity:.42}.undo-ico{font-size:14px;line-height:1;transform:translateY(-.5px)}.undo-count{min-width:16px;padding:0 4px;border-radius:8px;background:#e2e8f0;color:#475467;font-size:11px;font-weight:700;line-height:16px;font-variant-numeric:tabular-nums}.btn.undo-btn:hover:not(:disabled) .undo-count{background:var(--brand);color:#fff}.move-toast{position:fixed;right:18px;bottom:18px;padding:8px 14px;border-radius:8px;background:#111827;color:#fff;font-size:12px;z-index:70}tr.detail-row td{background:#eaf0fa}td.detail-cell{padding:8px 10px 12px 0;text-align:left;vertical-align:top}.detail-wrap{position:relative;overflow-x:auto;padding-left:28px}.detail-wrap:focus,.detail-wrap:focus-visible{outline:none}.float-toast{position:fixed;right:18px;bottom:18px;z-index:130;padding:8px 14px;border-radius:8px;background:#111827eb;color:#fff;font-size:12px;white-space:nowrap;pointer-events:none;box-shadow:0 10px 24px #0f172a3d}table.detail{border-collapse:collapse;border:1px solid #c9d8ef;border-radius:8px;background:#f7faff;box-shadow:0 1px 4px #0f172a0f;font-size:12px;min-width:100%;table-layout:fixed}table.detail th,table.detail td{border-right:1px solid #dbe5f5;border-bottom:1px solid #dbe5f5;height:32px;padding:0 8px;text-align:center;white-space:nowrap}table.detail thead th{background:#e6eefb;font-weight:600;color:#475569;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;overflow:hidden}table.detail thead th>.detail-th-text{display:inline-block;max-width:calc(100% - 6px);overflow:hidden;text-overflow:ellipsis;vertical-align:middle}table.detail thead th>.detail-resizer{position:absolute;top:0;right:0;width:8px;height:100%;cursor:col-resize;z-index:2}table.detail thead th>.detail-resizer:hover,table.detail thead th.resizing>.detail-resizer{background:#1d4ed838}table.detail th.detail-filler,table.detail td.detail-filler{border-right:0;padding:0}.dcol-menu{position:fixed;z-index:120;min-width:176px;padding:6px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 12px 30px #0f172a2e}.dcol-menu-head{padding:4px 8px 6px;color:#64748b;font-size:11px}.dcol-menu button{display:block;width:100%;padding:7px 8px;border:0;border-radius:6px;background:transparent;color:#1f2937;font-size:12px;text-align:left;cursor:pointer}.dcol-menu button:hover{background:#eff6ff;color:var(--brand)}table.detail thead th.head-sel{background-color:#fbe6cc;box-shadow:inset 0 0 0 100px #d9770624;color:#b45309}table.detail th.ops-head{cursor:default}table.detail td.cell{cursor:pointer;overflow:hidden;text-overflow:ellipsis}table.detail td.cell.sel,table.detail tr.sold td.cell.sel{background-color:#fdf1e0;box-shadow:inset 0 0 0 100px #d9770617}table.detail td.cell.num{text-align:center;font-variant-numeric:tabular-nums}table.detail td.cell.center,table.detail th.ops-head{text-align:center}table.detail tr.sold td{background:#edfbf1}.cell-select{border:1px solid var(--line);border-radius:5px;padding:2px 4px;background:#fff;font-size:12px}.tag{display:inline-block;padding:1px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:11px}.tag.ok{background:#dcfce7;color:#15803d}.tag.blue{background:#dbeafe;color:#1d4ed8}.style-pop{position:fixed;z-index:70;width:236px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.width-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:66}.width-pop{position:fixed;z-index:67;width:236px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.width-row{display:flex;align-items:center;gap:6px;margin-bottom:8px}.width-input{flex:1;min-width:0;height:28px;padding:0 8px;border:1px solid var(--line-strong);border-radius:8px;font-size:13px;text-align:left}.width-unit{font-size:12px;color:var(--muted)}.width-presets{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:9px}.width-actions{display:flex;align-items:center;justify-content:space-between;gap:6px}.width-actions .btn{padding:5px 8px;font-size:12px}.width-note{margin:7px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}.wpanel-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:grid;place-items:center;background:#0f172a47}.wpanel{width:380px;max-height:76vh;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 18px 48px #0f172a38;overflow:hidden}.wpanel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px 14px 10px;border-bottom:1px solid var(--line)}.wpanel-head h3{margin:0;font-size:14px}.wpanel-head p{margin:3px 0 0;font-size:11.5px;line-height:1.5;color:var(--muted)}.wpanel-body{flex:1;min-height:0;overflow-y:auto;padding:8px 14px}.wpanel-item{display:flex;align-items:center;gap:6px;padding:4px 0}.wpanel-name{flex:1;min-width:0;font-size:13px;color:var(--text);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wpanel-item .width-input{flex:0 0 66px;height:26px;text-align:right}.wpanel-reset{flex:0 0 auto;padding:4px 7px;font-size:11px}.wpanel-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-top:1px solid var(--line);background:#fbfcfe}.wpanel-actions{display:flex;align-items:center;gap:6px}.wpanel-actions .btn{padding:5px 10px;font-size:12px}.style-head{font-weight:600;margin-bottom:8px;text-align:left}.style-head em{margin-left:6px;font-size:11px;font-weight:400;color:var(--muted)}.size-row{display:flex;flex-wrap:wrap;gap:6px}.size-btn{min-width:38px;padding:3px 8px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:12px;color:#374151;cursor:pointer}.size-btn.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}.style-label{font-size:11px;color:var(--muted);margin:8px 0 5px;text-align:left}.swatches{display:flex;flex-wrap:wrap;gap:6px}.swatch{width:24px;height:24px;border-radius:6px;border:1px solid var(--line);cursor:pointer;padding:0}.swatch.on{outline:2px solid var(--brand);outline-offset:1px}.swatch.text{border-radius:999px}.custom-colors{display:flex;gap:12px;align-items:center;font-size:12px;color:var(--muted)}.custom-colors label{display:flex;align-items:center;gap:6px}.custom-colors input[type=color]{width:34px;height:26px;border:1px solid var(--line);border-radius:6px;padding:0;background:none;cursor:pointer}.btn.toggle{width:100%;margin-top:8px;border:1px solid var(--line);background:#fff}.btn.toggle.on{border-color:var(--brand);color:var(--brand);background:#eff6ff}.operator-add{display:flex;gap:8px;margin:10px 0}.operator-add input{flex:1;min-width:0}.operator-list{display:flex;flex-direction:column;gap:8px}.operator-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}.quick-panel{display:flex;flex-direction:column;gap:12px}.qf-editor{padding:14px;border:1px solid #c7d7fe;border-radius:10px;background:#f8faff;display:flex;flex-direction:column;gap:14px}.qf-editor .field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#475569}.qf-editor .field input{padding:8px 10px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;outline:none}.qf-editor .field input:focus{border-color:var(--brand)}.qf-field{padding:10px 12px;border:1px dashed var(--line-strong);border-radius:8px;background:#fff}.qf-field-head{display:flex;align-items:baseline;gap:8px;margin-bottom:8px}.qf-field-head b{font-size:13px;color:#1f2937}.qf-field-head em{font-style:normal;font-size:11px;color:var(--muted)}.qf-add input{width:100%;padding:6px 10px;border:1px solid var(--line-strong);border-radius:8px;outline:none;font-size:13px}.qf-add input:focus{border-color:var(--brand)}.token-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.token{padding:4px 10px;border:1px solid var(--line-strong);border-radius:999px;background:#fff;color:#475569;font-size:12px;cursor:pointer}.token:hover{border-color:var(--brand);color:var(--brand)}.token.on{border-color:var(--brand);background:#eaf1ff;color:var(--brand);font-weight:600}.token-list.candidates .token{border-style:dashed;color:var(--muted)}.qf-preview{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:8px;background:#eef2ff;font-size:12px}.qf-preview b{color:var(--brand)}.tool-line,.form-ops{display:flex;gap:8px}.statusbar{display:flex;align-items:center;gap:16px;padding:3px 2px 0;color:var(--muted);font-size:12px}.statusbar b{color:var(--text)}.statusbar .grow{flex:1}.pos{color:var(--ok)}.neg{color:var(--danger)}.statusbar em{font-style:normal;color:#98a2b3}.quick-count{min-width:132px;white-space:nowrap;color:#98a2b3}.search-count{min-width:190px;white-space:nowrap;color:#98a2b3}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;display:flex;justify-content:flex-end;z-index:20;animation:fade .15s ease}@keyframes fade{0%{opacity:0}}.panel{position:relative;width:min(720px,92vw);height:100%;background:var(--surface);box-shadow:var(--shadow);overflow:auto;animation:slide .18s ease}@keyframes slide{0%{transform:translate(24px);opacity:.4}}.panel-close{position:absolute;top:12px;right:14px;border:none;background:#f1f3f7;width:30px;height:30px;border-radius:8px;font-size:18px;cursor:pointer;color:var(--muted)}.drawer{padding:24px 26px 40px}.drawer-head h2{margin:0 0 4px;font-size:18px}.drawer-head p{margin:0;color:var(--muted);font-size:13px}.drawer-tip{margin-top:14px;color:var(--warn);font-size:13px}.role-legend{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.legend-card{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fafbfe}.legend-card p{margin:8px 0 0;font-size:12px;color:var(--muted);line-height:1.6}.member-table{width:100%;border-collapse:collapse;border:1px solid var(--line);border-radius:10px;overflow:hidden}.member-table th,.member-table td{border-bottom:1px solid var(--line);padding:10px 12px;text-align:left}.member-table th{background:#f2f5fa;font-size:13px;color:#374151}.cell-select{padding:5px 8px;border:1px solid var(--line-strong);border-radius:6px;background:#fff}.cell-select:disabled{background:#f5f6f8;color:var(--muted)}.member-name{display:inline-flex;align-items:center;gap:8px}.member-name.editable{cursor:text;border-bottom:1px dashed var(--line-strong)}.avatar{width:24px;height:24px;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-style:normal;font-size:12px}.self-tag{margin-left:6px;padding:1px 6px;border-radius:4px;background:var(--brand-soft);color:var(--brand);font-size:11px}.visitor-stats{display:flex;gap:18px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:#fafbfe;font-size:13px;color:#374151}.visitor-stats .warn strong{color:#c2410c}.visitor-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.seg{display:inline-flex;border:1px solid var(--line-strong);border-radius:6px;overflow:hidden}.seg button{padding:5px 12px;border:0;background:#fff;font-size:12.5px;color:#374151;cursor:pointer}.seg button+button{border-left:1px solid var(--line-strong)}.seg button.on{background:var(--brand);color:#fff}.visitor-search{flex:1;min-width:180px;max-width:260px;padding:6px 10px;border:1px solid var(--line-strong);border-radius:6px;font-size:13px}.visitor-select{min-width:170px;max-width:240px;padding:6px 8px;border:1px solid var(--line-strong);border-radius:6px;background:#fff;font-size:13px;color:#374151;cursor:pointer}.visitor-select:focus{outline:2px solid color-mix(in srgb,var(--brand) 35%,transparent);outline-offset:1px}.checkline.inline{font-size:13px;color:#374151}.pending-tag{margin-left:6px;padding:1px 6px;border-radius:4px;background:#fff1e6;color:#c2410c;font-size:11px;border:1px solid #ffd9b8}.member-table tr.row-pending td{background:#fffaf3}.visitor-account{margin-top:4px;font-size:12px;color:var(--muted)}.badge{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:6px;padding:0 5px;border-radius:9px;background:#e5484d;color:#fff;font-size:11px;font-style:normal}.pending-tip{display:block;width:calc(100% - 28px);margin:6px 14px 0;padding:5px 12px;border-radius:8px;border:1px solid #ffd9b8;background:#fff3e8;color:#9a4a00;font-size:12px;text-align:left;cursor:pointer}.pending-tip:hover{background:#ffe9d6}.tiny{font-size:11px}.small{font-size:12px}.muted{color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:20px}.field{display:flex;flex-direction:column;gap:6px}.field.wide{grid-column:1 / -1}.field span{font-size:12px;color:var(--muted)}.field input{padding:8px 10px;border:1px solid var(--line-strong);border-radius:8px;outline:none}.field input:focus{border-color:var(--brand);box-shadow:0 0 0 3px #1d4ed81a}.field-error{color:var(--danger);font-size:12px;font-style:normal}.drawer-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.login-page{min-height:100%;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,#e8efff,#f5f7fa 45%);padding:20px}.login-card{width:min(420px,100%);background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:28px 26px;box-shadow:var(--shadow)}.login-brand{display:flex;gap:12px;align-items:center;margin-bottom:20px}.login-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;background:#f1f3f7;padding:4px;border-radius:10px;margin-bottom:18px}.tab{border:none;background:transparent;padding:8px;border-radius:8px;cursor:pointer;color:var(--muted)}.tab.active{background:var(--surface);color:var(--brand);font-weight:600;box-shadow:0 1px 3px #0f172a14}.login-form{display:flex;flex-direction:column;gap:14px}.code-row{display:flex;gap:8px}.code-row input{flex:1;padding:8px 10px;border:1px solid var(--line-strong);border-radius:8px;outline:none}.code-row input:focus{border-color:var(--brand)}.notice{margin:0;font-size:12.5px;padding:8px 10px;border-radius:8px}.notice.ok{background:#eefaf2;color:#166534}.notice.err{background:#fdecec;color:#b42318}.notice.warn{background:#fff7e6;color:#8a5a00}.name-gate{height:100%;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,#e8efff,#f5f7fa 45%);padding:20px}.name-gate.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#0f172a61}.name-card{width:min(440px,100%);max-height:calc(100% - 24px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:22px 24px 18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:11px}.name-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:2px}.name-mark{width:38px;height:38px;flex:0 0 auto;border-radius:10px;background:linear-gradient(135deg,#2563eb,#1e40af);color:#fff;display:grid;place-items:center;font-size:17px;font-weight:600}.name-head h2{margin:0;font-size:17px}.name-head p{margin:3px 0 0;font-size:12.5px;color:var(--muted);line-height:1.55}.name-card .field input{font-size:15px;padding:10px 12px}.field-hint{font-size:11.5px;color:var(--muted);font-style:normal;line-height:1.5}.name-account{margin:0;font-size:12px;color:var(--muted);line-height:1.5}.name-actions{display:flex;gap:10px;margin-top:4px}.name-actions .btn.primary{flex:1}.name-skip{align-self:center;border:none;background:transparent;color:var(--muted);font-size:12px;text-decoration:underline;cursor:pointer;padding:2px 4px}.name-skip:hover{color:var(--brand)}.name-logout{position:fixed;right:18px;top:18px;border:1px solid var(--line-strong);background:var(--surface);color:var(--muted);border-radius:8px;padding:5px 10px;font-size:12px;cursor:pointer}.name-logout:hover{border-color:var(--brand);color:var(--brand)}.login-tip{margin:0;font-size:12px;color:var(--muted);text-align:center;line-height:1.6}.scope-tip{margin:6px 14px 0;padding:5px 12px;border-radius:8px;background:#fff7e6;border:1px solid #ffe1a6;color:#8a5a00;font-size:12px}.group-chip{padding:2px 8px;border-radius:6px;font-size:12px;background:#f1f3f7;color:#475467;border:1px solid #dfe3ea}.group-chip.builtin-admin{background:#fdecec;color:#b42318;border-color:#f8c9c5}.group-chip.builtin-editor{background:#eaf0ff;color:#1d4ed8;border-color:#c7d6fe}.group-chip.custom{background:#ecfdf3;color:#027a48;border-color:#a6f4c5}.panel.wide{width:min(860px,94vw)}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.tabs{display:flex;gap:4px;background:#f1f3f7;padding:4px;border-radius:10px}.group-list{display:grid;gap:12px;margin-top:16px}.group-card{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#fafbfe}.group-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.group-head strong{font-size:15px}.tag{margin-left:8px;padding:1px 7px;border-radius:4px;font-size:11px;background:#eef1f6;color:#556070}.tag.builtin{background:#eaf0ff;color:#1d4ed8}.tag.manage{background:#fdecec;color:#b42318}.tag.default-group{background:#e8f7ee;color:#067647}.tag.entry{background:#f1ecfe;color:#6b21a8}.group-ops{display:flex;gap:8px}.group-desc,.group-meta,.group-count{margin:6px 0 0;font-size:12.5px;color:var(--muted)}.editor-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a47;display:grid;place-items:center;z-index:30;padding:20px}.editor{width:min(620px,100%);max-height:88vh;overflow:auto;background:var(--surface);border-radius:14px;padding:22px 24px 24px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:14px}.editor h3{margin:0 0 4px;font-size:16px}.checkline{display:flex;align-items:center;gap:8px;cursor:pointer}.perm-block{border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:#fafbfe}.perm-title{font-weight:600;margin-bottom:8px}.entry-list{display:flex;flex-direction:column;gap:8px;margin-bottom:6px}.hint-text.inline{font-size:11.5px;color:#98a2b3;font-weight:400}.radio-row{display:flex;gap:14px;flex-wrap:wrap}.radio{display:inline-flex;align-items:center;gap:5px;cursor:pointer;font-size:13px}.radio.locked{cursor:not-allowed;opacity:.5}.radio.locked:hover{color:var(--muted)}.filter-grid{display:grid;gap:10px;margin-top:10px}.filter-item{display:grid;grid-template-columns:90px 1fr;gap:10px;align-items:start}.filter-label{font-size:12.5px;color:var(--muted);padding-top:4px}.filter-label em{font-style:normal;color:var(--brand)}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{border:1px solid var(--line-strong);background:#fff;border-radius:999px;padding:3px 11px;font-size:12.5px;cursor:pointer;color:var(--muted)}.chip:hover{border-color:var(--brand);color:var(--brand)}.chip.on{background:var(--brand);border-color:var(--brand);color:#fff}.chip-lock{display:inline-flex}.hint-text{font-size:12px;color:#98a2b3}.editor:has(.editor-foot){padding-bottom:0}.editor-foot{position:sticky;bottom:0;z-index:1;display:flex;justify-content:flex-end;gap:10px;margin:4px -24px 0;padding:12px 24px 20px;background:var(--surface);border-top:1px solid var(--line)}.lock{margin-left:4px;font-style:normal;font-size:10px;padding:1px 4px;border-radius:3px;background:#f1f3f7;color:#98a2b3}td.cell.locked{color:#98a2b3;cursor:not-allowed}.login-split{display:flex;align-items:center;gap:10px;margin:18px 0 12px;color:#98a2b3;font-size:12px}.login-split:before,.login-split:after{content:"";flex:1;height:1px;background:var(--line)}.oauth-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.btn.oauth{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 10px;background:#fff}.btn.oauth.wechat:hover:not(:disabled){border-color:#07c160;color:#07c160}.btn.oauth.workbuddy:hover:not(:disabled){border-color:var(--brand);color:var(--brand)}.ico-wechat,.ico-pc{width:16px;height:16px;border-radius:4px;display:inline-block}.ico-wechat{background:#07c160}.ico-pc{background:linear-gradient(135deg,#2563eb,#1e40af)}.wx-scene-tip{margin:10px 0 0;padding:8px 10px;border:1px solid #f0dfae;border-radius:8px;background:#fffaeb;color:#8a5a00;font-size:12px;line-height:1.6}.login-tip.qr-hint{margin-top:10px}.login-tip.pwd-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:3px 5px;margin-top:10px;padding:9px 12px;border:1px solid #ffe0a3;border-left:3px solid #f59e0b;border-radius:8px;background:#fff8e8;color:#8a5300;font-size:12.5px;line-height:1.65;text-align:left}.pwd-note-tag{flex:none;margin-right:2px;padding:1px 7px;border-radius:4px;background:#f59e0b;color:#fff;font-size:11px;font-weight:600;letter-spacing:.5px}.login-tip.pwd-note .link-btn{margin-left:0;color:#b45309;font-weight:600;text-decoration:underline}.login-tip.pwd-note .link-btn:hover{color:#92400e}.link-btn{margin-left:2px;padding:0;border:none;background:none;color:var(--brand);font-size:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.link-btn:hover{color:#1e3a8a}.login-share{display:block;margin:14px auto 0;color:#8a8f99;font-size:12px;text-decoration:none}.login-share:hover{color:var(--brand);text-decoration:underline}.pwd-gate{position:fixed;top:0;right:0;bottom:0;left:0;z-index:230;display:flex;align-items:center;justify-content:center;padding:24px;background:#0f172a6b}.pwd-card{width:100%;max-width:460px;max-height:calc(100vh - 60px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:22px 24px 18px;box-shadow:0 24px 60px #0f172a47}.pwd-form{display:flex;flex-direction:column;gap:12px}.pwd-head{display:flex;gap:12px;align-items:flex-start}.pwd-mark{width:36px;height:36px;flex:0 0 auto;border-radius:10px;background:linear-gradient(135deg,#2563eb,#1e40af);color:#fff;display:grid;place-items:center;font-size:16px;font-weight:600}.pwd-head h2{margin:0;font-size:16px}.pwd-head p{margin:4px 0 0;font-size:12px;color:var(--muted);line-height:1.55}.pwd-actions{display:flex;gap:10px;margin-top:2px}.pwd-actions .btn.primary{flex:1}.wx-qr{margin-top:12px;padding:10px 12px 12px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe}.wx-qr-head{display:flex;flex-direction:column;gap:2px;text-align:center}.wx-qr-head strong{font-size:12.5px;color:#344054}.wx-qr-head span{font-size:11.5px;color:#98a2b3;line-height:1.5}.wx-qr-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.wx-qr-actions .btn{flex:1 1 0;min-width:64px;padding:5px 8px;font-size:11.5px;white-space:nowrap}.toast{position:fixed;left:50%;bottom:34px;transform:translate(-50%);padding:10px 18px;border-radius:10px;background:#111827;color:#fff;box-shadow:var(--shadow);z-index:40;max-width:80vw}.toast.err{background:var(--danger)}.boot{height:100%;display:grid;place-items:center;align-content:center;gap:14px;color:var(--muted)}.spinner{width:30px;height:30px;border:3px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.online-btn{display:inline-flex;align-items:center;gap:6px}.dot-online{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 2px #22c55e2e}.online-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.online-total{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#334155}.online-list{display:flex;flex-direction:column;gap:6px}.online-row{display:grid;grid-template-columns:10px minmax(120px,1fr) auto auto auto;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:13px}.online-who{display:flex;flex-direction:column;gap:1px;min-width:0}.online-who strong{font-weight:600;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.online-when{color:#15803d;font-size:12px;white-space:nowrap}@media (max-width: 720px){.online-row{grid-template-columns:10px 1fr auto}.online-row .online-when,.online-row .tag{display:none}}.stats-drawer{padding-bottom:28px}.stats-range{margin:14px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fafbfe}.stats-range .chips{margin-bottom:0}.stats-custom{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px;color:var(--muted)}.stats-custom input[type=date]{padding:5px 8px;border:1px solid var(--line-strong);border-radius:8px;font-size:13px;color:#0f172a;background:#fff;font-family:inherit}.stats-range-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.stats-range-label{font-size:12.5px;color:#556070}.stats-error{margin-top:12px;padding:9px 12px;border:1px solid #f8c9c5;border-radius:8px;background:#fdecec;color:#b42318;font-size:13px}.stats-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 6px}.stats-card{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}.stats-card span{font-size:12px;color:var(--muted)}.stats-card strong{font-size:20px;font-weight:600;color:#0f172a;font-variant-numeric:tabular-nums}.stats-scroll{margin-top:12px;overflow:auto;border:1px solid var(--line);border-radius:12px}.stats-table{width:100%;border-collapse:collapse;font-size:13px;min-width:560px}.stats-table th,.stats-table td{padding:8px 10px;text-align:left;white-space:nowrap;border-bottom:1px solid #eef1f6}.stats-table thead th{position:sticky;top:0;z-index:1;background:#f8fafc;font-weight:600;color:#475467;font-size:12.5px}.stats-table tbody tr:last-child td{border-bottom:1px solid #eef1f6}.stats-table tbody tr:hover td{background:#fbfcfe}.stats-table tfoot td{background:#f8fafc;font-weight:600;color:#0f172a;border-top:1px solid var(--line)}.stats-table .num{text-align:right;font-variant-numeric:tabular-nums}.stats-table .name{font-weight:600;color:#0f172a}.stats-table .strong{font-weight:600}.stats-table .when{color:#667085;font-size:12.5px}.stats-table.deals{min-width:840px}.rank{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:6px;background:#f1f3f7;color:#667085;font-size:12px;font-weight:600}.rank-1{background:#fef3c7;color:#b45309}.rank-2{background:#eef2f6;color:#475467}.rank-3{background:#fdece3;color:#b45309}.stats-table tr.top-1 td{background:#fffdf5}.stats-note{margin:16px 0 0;padding:10px 12px;border:1px dashed var(--line-strong);border-radius:10px;font-size:12.5px;line-height:1.7;color:var(--muted)}.stats-note strong{color:#0f172a}@media (max-width: 720px){.stats-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}.history-panel{padding:18px 22px 22px}.history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.history-head h3{margin:0 0 6px;font-size:16px;font-weight:700;color:var(--text)}.history-tip{margin:0 0 12px;max-width:620px;font-size:12px;line-height:1.7;color:var(--muted)}.history-tip kbd{padding:1px 5px;border:1px solid var(--line-strong);border-bottom-width:2px;border-radius:4px;background:#f8fafc;font-family:inherit;font-size:11px;color:var(--text)}.history-list{display:flex;flex-direction:column;gap:6px;max-height:58vh;overflow:auto;padding-right:2px}.history-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.history-item:hover{border-color:var(--line-strong);background:#fbfcfe}.history-dot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--brand)}.history-dot.kind-rollback{background:#f59e0b}.history-dot.kind-undo{background:#94a3b8}.history-main{flex:1;min-width:0}.history-title{display:flex;align-items:baseline;gap:8px;min-width:0;font-size:13px;font-weight:600;color:var(--text)}.history-title>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-actor{flex:0 0 auto;font-size:12px;font-weight:500;color:var(--brand)}.history-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px;font-size:12px;color:var(--muted)}.history-when{font-variant-numeric:tabular-nums;color:#475467}.history-size{color:#98a2b3}.history-rollback{flex:0 0 auto;min-width:64px}.history-empty{margin:40px 0;text-align:center;font-size:13px;color:var(--muted)}.bulk-dock{position:fixed;left:50%;bottom:44px;transform:translate(-50%);z-index:80;display:flex;flex-direction:column;align-items:center;gap:6px;max-width:calc(100vw - 40px);animation:bulk-in .16s ease}.bulk-bar{display:flex;align-items:center;gap:5px;max-width:calc(100vw - 40px);padding:6px 10px;border:1px solid #bfdbfe;border-radius:10px;background:#fff;box-shadow:0 10px 28px #0f172a29;font-size:12.5px;color:#1e3a8a}.bulk-edit{display:flex;align-items:center;gap:6px;max-width:calc(100vw - 40px);padding:7px 10px;border:1px solid #bfdbfe;border-radius:10px;background:#fff;box-shadow:0 10px 28px #0f172a29;font-size:12.5px;color:#1e3a8a}.bulk-edit-title{white-space:nowrap}.bulk-edit-title b{color:var(--brand)}.bulk-input{min-width:96px;max-width:220px;height:26px;padding:0 6px;border:1px solid #d7e2f5;border-radius:6px;background:#fff;color:var(--text);font-size:12.5px}@keyframes bulk-in{0%{opacity:0;transform:translate(-50%,6px)}to{opacity:1;transform:translate(-50%)}}.bulk-count{padding-left:2px;font-weight:600;white-space:nowrap}.bulk-count b{color:var(--brand);font-size:13px}.bulk-sep{width:1px;height:16px;background:#dbe4f3;margin:0 2px}.bulk-btn{border:1px solid #d7e2f5;background:#f6f9ff;color:#1e3a8a;padding:3px 8px;border-radius:6px;font-size:12.5px;line-height:1.5;white-space:nowrap;cursor:pointer;transition:all .12s ease}.bulk-btn:hover:not(:disabled){border-color:var(--brand);background:#e8efff;color:var(--brand)}.bulk-btn:disabled{opacity:.45;cursor:not-allowed}.bulk-btn.primary{border-color:var(--brand);background:var(--brand);color:#fff;font-weight:600}.bulk-btn.primary:hover:not(:disabled){background:#1b3fae;border-color:#1b3fae;color:#fff}.bulk-btn.on{border-color:var(--brand);background:#e8efff;color:var(--brand);font-weight:600}.bulk-btn.ghost{border-color:transparent;background:transparent;color:#64748b}.bulk-btn.ghost:hover{color:#b91c1c;background:#fef2f2}.bulk-btn.danger{border-color:#fca5a5;background:#fff1f2;color:#b91c1c;font-weight:600}.bulk-btn.danger:hover:not(:disabled){border-color:#dc2626;background:#dc2626;color:#fff}.del-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:220;display:flex;align-items:center;justify-content:center;padding:24px;background:#0f172a6b;animation:del-fade .12s ease}@keyframes del-fade{0%{opacity:0}to{opacity:1}}.del-card{width:100%;max-width:520px;max-height:calc(100vh - 80px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 24px 60px #0f172a47}.del-head{display:flex;align-items:center;gap:8px;padding:14px 18px;border-bottom:1px solid var(--line);background:#f8fafc;font-size:14.5px;color:#0f172a}.del-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#e2e8f0;color:#475569;font-size:13px}.del-card.danger{border-color:#fca5a5}.del-card.danger .del-head{border-bottom-color:#fca5a5;background:#dc2626;color:#fff;font-size:15px}.del-card.danger .del-icon{background:#fff;color:#dc2626}.del-body{padding:14px 18px;overflow:auto;font-size:13px;color:#334155;line-height:1.65}.del-line{margin:0 0 8px}.del-line b,.del-warn b{color:#b91c1c}.del-warn{margin:0 0 10px;padding:10px 12px 10px 28px;border:1px solid #fecaca;border-radius:8px;background:#fff5f5;color:#7f1d1d}.del-warn li+li{margin-top:4px}.del-list{max-height:176px;overflow:auto;margin-bottom:10px;border:1px solid var(--line);border-radius:8px}.del-item{display:flex;align-items:baseline;gap:8px;padding:6px 10px;font-size:12.5px}.del-item+.del-item{border-top:1px solid #f1f5f9}.del-item-main{flex:none;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#0f172a}.del-item-sub{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.del-item.more{color:var(--muted);font-style:italic}.del-ack{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border:1px dashed #fca5a5;border-radius:8px;background:#fff1f2;color:#991b1b;font-size:13px;cursor:pointer}.del-ack input{margin-top:3px;accent-color:#dc2626;cursor:pointer}.del-ack b{color:#b91c1c}.del-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--line);background:#fbfdff}.del-btn{padding:6px 16px;border:1px solid #dc2626;border-radius:8px;background:#dc2626;color:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:all .12s ease}.del-btn:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c}.del-btn:disabled{border-color:#e5e7eb;background:#e5e7eb;color:#9ca3af;cursor:not-allowed}.bulk-tip{margin-left:4px;color:#94a3b8;font-size:11.5px;white-space:nowrap}@media (max-width: 1180px){.bulk-tip{display:none}}table.sheet tbody tr.picked td{background:#2563eb12}table.sheet tbody tr.picked td.grip-col{background:#e8efff}table.sheet tbody tr.picked td.sticky-col-1{box-shadow:inset 3px 0 #2563eb}.top-notice{position:relative;display:flex;align-items:center;gap:8px;flex:1 1 520px;min-width:0;max-width:1080px;margin:0 16px;padding:0 10px 0 8px;height:34px;border:1px solid #f0a53c;border-radius:10px;background:linear-gradient(96deg,#fff4de,#ffe8c6 52%,#ffd9a6);box-shadow:0 2px 10px #d8810e2e,inset 0 1px #ffffffbf}.top-notice:before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:2px;background:linear-gradient(180deg,#ff8a1f,#e0430a)}.notice-badge{display:inline-flex;align-items:center;gap:5px;flex:none;padding:3px 9px;border-radius:7px;background:linear-gradient(135deg,#ff8412,#e0430a);color:#fff;font-size:12px;font-weight:800;letter-spacing:1px;box-shadow:0 2px 7px #e0430a57}.notice-dot{width:6px;height:6px;border-radius:50%;background:#fff;animation:noticeBlink 1.6s ease-in-out infinite}@keyframes noticeBlink{0%,to{opacity:1;box-shadow:0 0 #ffffffd9}50%{opacity:.5;box-shadow:0 0 0 3px #fff0}}.notice-view{display:flex;align-items:center;flex:1;min-width:0;height:100%;overflow:hidden;padding:0;border:none;background:transparent;text-align:left;cursor:pointer}.notice-view:hover .notice-seg{color:#b52c00}.notice-marquee{display:flex;align-items:center;width:100%;overflow:hidden}.notice-marquee.center{justify-content:center}.notice-marquee-track{display:flex;align-items:center;gap:40px;width:max-content;animation:noticeRun var(--dur, 20s) linear infinite}.notice-marquee-track.still{animation:none;transform:none}.notice-run{display:flex;align-items:center;flex:none}.notice-seg{font-size:13.5px;font-weight:700;color:#8a3a00;letter-spacing:.2px;white-space:nowrap}.notice-sep{margin:0 20px;color:#e8892b;font-size:10px;line-height:1}@keyframes noticeRun{0%{transform:translate(0)}to{transform:translate(calc(-1 * var(--shift, 0px)))}}.top-notice.on-hold .notice-marquee-track{animation-play-state:paused}.notice-count{display:inline-flex;align-items:center;gap:3px;flex:none;padding:2px 7px;border:1px solid #f3c079;border-radius:999px;background:#fff;color:#a2470a;font-size:11.5px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.notice-count i{color:#c17a2a;font-size:10.5px;font-style:normal;font-weight:500}.notice-pop{position:absolute;top:calc(100% + 8px);left:0;z-index:260;width:min(460px,86vw);max-height:60vh;overflow:auto;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 14px 34px #0f204429}.notice-pop-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}.notice-pop-edit{margin-left:auto}.notice-list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}.notice-item{padding:9px 11px;border:1px solid #f6d7a8;border-left:3px solid #f0871f;border-radius:8px;background:#fffaf0}.notice-item p{margin:0;font-size:13px;line-height:1.6;color:#6b3305;white-space:pre-wrap;word-break:break-word}.notice-meta{display:block;margin-top:4px;font-size:11.5px;color:var(--muted)}.notice-add{margin:10px 0 4px}.notice-add textarea,.notice-admin-edit{width:100%;padding:9px 11px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:13px;line-height:1.6;resize:vertical}.notice-add textarea:focus,.notice-admin-edit:focus{outline:2px solid color-mix(in srgb,var(--brand) 35%,transparent);outline-offset:1px;border-color:var(--brand)}.notice-add-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}.notice-admin-head{display:flex;align-items:baseline;gap:8px;margin:18px 0 8px}.notice-admin-list{display:flex;flex-direction:column;gap:8px}.notice-admin-row{display:flex;align-items:flex-start;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#fbfcfe}.notice-admin-row.off{border-style:dashed;background:#f8f9fb}.notice-admin-row.off .notice-admin-text{color:#8b95a7}.notice-admin-main{flex:1;min-width:0}.notice-admin-top{display:flex;align-items:center;gap:8px;margin-bottom:4px}.notice-admin-text{margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.notice-admin-ops{flex:none;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:220px}@media (max-width: 900px){.top-notice{order:3;flex-basis:100%;max-width:none;margin:6px 0 0}.topbar{flex-wrap:wrap}}.pg{display:flex;flex-direction:column;gap:14px}.pg-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.pg-title{margin:0 0 4px;font-size:16px}.pg-sub{margin:0;max-width:760px;color:var(--muted);font-size:13px;line-height:1.6}.pg-readonly{font-size:12.5px;color:var(--warn)}.pg-error{display:flex;align-items:center;gap:10px;margin:0;padding:8px 12px;border-radius:8px;background:#fdecec;color:#b42318;font-size:13px}.pg-empty{margin:0;padding:18px 0;color:var(--muted);font-size:13px}.pg-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.pg-table{width:100%;border-collapse:collapse;font-size:13px}.pg-table th,.pg-table td{padding:9px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.pg-table th{background:#f8fafc;color:var(--muted);font-size:12px;font-weight:600;white-space:nowrap}.pg-table tr:last-child td{border-bottom:none}.pg-table-sm{font-size:12.5px}.pg-cell-sub{margin-top:3px;color:#98a2b3;font-size:11.5px}.pg-row-muted td{color:var(--muted)}.pg-tag-danger{background:#fdecec;color:#b42318}.pg-warn-text{color:var(--warn);font-weight:600}.pg-ops{display:flex;flex-wrap:wrap;gap:6px}.pg-foot{margin:0;color:#98a2b3;font-size:12px;line-height:1.6}.pg-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:240;display:grid;place-items:center;padding:20px;background:#0f172a52}.pg-modal{width:min(680px,100%);max-height:88vh;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:20px 22px 22px;border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}.pg-modal-narrow{width:min(520px,100%)}.pg-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.pg-modal-head h3{margin:0;font-size:16px}.pg-modal-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:2px}.pg-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.pg-inline{display:flex;align-items:center;gap:8px}.pg-inline input{flex:1;min-width:0}.pg-modal .field select{padding:8px 10px;border:1px solid var(--line-strong);border-radius:8px;outline:none;background:#fff}.pg-modal .field select:focus{border-color:var(--brand);box-shadow:0 0 0 3px #1d4ed81a}.pg-fieldset{margin:0;padding:10px 12px 12px;border:1px solid var(--line);border-radius:10px;background:#fafbfe}.pg-fieldset legend{padding:0 6px;color:var(--muted);font-size:12px}.pg-dim{display:flex;flex-direction:column;gap:5px;margin-top:8px}.pg-dim-label{font-size:12px;font-weight:600}.pg-preview{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 12px;border-radius:10px;background:var(--brand-soft);font-size:13px}.pg-preview-ok{color:var(--brand);font-weight:600}.pg-preview-sep{color:#c7d2fe}.pg-preview-warn{width:100%;color:var(--warn);font-weight:600}.pg-preview-bad{width:100%;color:var(--danger);font-weight:600}.pg-sendtext{margin:0;padding:12px;border-radius:10px;background:#0f172a;color:#e2e8f0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;line-height:1.7;white-space:pre-wrap;word-break:break-all}.pg-code{padding:1px 5px;border-radius:4px;background:#f1f5f9;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.pg-toast{position:fixed;left:50%;bottom:32px;z-index:270;transform:translate(-50%);padding:9px 18px;border-radius:999px;background:#111827;color:#fff;font-size:13px;box-shadow:var(--shadow)}.pg-redline-hint{margin:0 0 8px;padding:8px 10px;border-radius:8px;background:#fff7e6;color:#8a5a00;line-height:1.6}.chip:disabled{opacity:.45;border-style:dashed;cursor:not-allowed}.chip:disabled:hover{border-color:var(--line-strong);color:var(--muted)}.chip.on:disabled{opacity:.55}.smart-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90;display:grid;place-items:center;padding:24px;background:#0f172a52;animation:fade .15s ease}.smart-pop{display:flex;flex-direction:column;width:min(980px,96vw);max-height:min(880px,calc(100vh - 48px));background:var(--surface);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}.smart-head{position:relative;padding:11px 16px;font-size:14px;font-weight:600;border-bottom:1px solid var(--line)}.smart-close{position:absolute;top:7px;right:10px;width:28px;height:28px;border:none;border-radius:8px;background:#f1f3f7;color:var(--muted);font-size:17px;line-height:1;cursor:pointer}.smart-close:hover{color:var(--text)}.smart-text{flex:0 0 auto;min-height:104px;max-height:260px;margin:8px 16px 10px;padding:9px 11px;border:1px solid var(--line-strong);border-radius:9px;font:inherit;font-size:13px;line-height:1.7;color:var(--text);background:var(--surface);resize:vertical;outline:none}.smart-text::placeholder{color:#9aa4b2}.smart-text:focus{border-color:var(--brand)}.smart-scroll{flex:1;min-height:0;margin:0 16px;overflow:auto;border:1px solid var(--line);border-radius:9px}.smart-table{width:100%;border-collapse:collapse;font-size:12.5px}.smart-table th{position:sticky;top:0;z-index:1;padding:6px 4px;background:#f8fafc;border-bottom:1px solid var(--line);color:var(--muted);font-weight:600;text-align:center;white-space:nowrap}.smart-table td{padding:2px 3px;border-bottom:1px solid #f1f5f9}.smart-table tr.blank td{background:#fff7ed}.smart-no{width:34px;text-align:center;color:var(--muted);font-size:11px}.smart-input{width:100%;height:26px;padding:0 6px;border:1px solid transparent;border-radius:6px;background:transparent;font:inherit;font-size:12.5px;color:var(--text);text-align:center;outline:none}.smart-input:hover{background:#f8fafc}.smart-input:focus{background:#fff;border-color:var(--brand)}.smart-input.miss{background:#fef9c3}.smart-input.miss:focus{background:#fff}.smart-drop{border:none;background:none;color:#cbd5e1;font-size:14px;line-height:1;cursor:pointer}.smart-drop:hover{color:var(--danger)}.smart-source{display:flex;align-items:center;gap:9px;flex:0 0 auto;margin:12px 16px 0}.smart-source-name{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:.5px;white-space:nowrap}.smart-source-input{flex:1;height:27px;padding:0 9px;border:1px solid var(--line-strong);border-radius:8px;font:inherit;font-size:12.5px;color:var(--text);background:var(--surface);outline:none}.smart-source-input::placeholder{color:#9aa4b2}.smart-source-input:focus{border-color:var(--brand)}.smart-source-input.need{border-color:#e7a99c;background:#fffaf9}.smart-foot{display:flex;align-items:center;gap:8px;padding:10px 16px;border-top:1px solid var(--line)}.smart-count{margin-right:auto;font-size:12px;color:var(--muted)}table.sheet tbody tr.menu-target td{background:#2563eb1a;box-shadow:inset 0 2px #2563eb73,inset 0 -2px #2563eb73,inset 0 0 14px #2563eb2e}table.sheet tbody tr.menu-target td.sticky-col-1{box-shadow:inset 3px 0 #2563eb,inset 0 2px #2563eb73,inset 0 -2px #2563eb73,inset 0 0 14px #2563eb2e}table.sheet tbody tr.menu-target.row-active td.sticky-col-1{box-shadow:inset 3px 0 0 var(--danger),inset 0 2px #2563eb73,inset 0 -2px #2563eb73,inset 0 0 14px #2563eb2e}table.sheet tbody tr.group-row.menu-target td{box-shadow:inset 0 2px #2563eb73,inset 0 -2px #2563eb73,inset 0 0 14px #2563eb29}table.sheet tbody tr:not(.picked) td.cell.auto-sum.has-data:not(.sel):not(.hit-cell){background-color:#ecfdf5;color:#047857;font-weight:700}
