:root{--bg: #fbfbfc;--surface: #ffffff;--surface-2: #f5f5f7;--surface-3: #ececef;--border: #e6e6ea;--border-strong: #d4d4da;--text: #17181c;--muted: #6b6f78;--faint: #9a9ea6;--accent: #5b5bd6;--accent-soft: rgb(91 91 214 / .1);--success: #2f8f5b;--danger: #d93f3f;--warning: #b7791f;--shadow: 0 1px 2px rgb(16 17 20 / .04);--pop: 0 8px 30px rgb(16 17 20 / .12), 0 0 0 1px rgb(16 17 20 / .06);--k-header: 91 91 214;--k-row: 47 143 91;--k-skipped: 154 158 166;color-scheme:light}.dark{--bg: #0c0d0f;--surface: #131416;--surface-2: #18191c;--surface-3: #1f2024;--border: #232428;--border-strong: #303237;--text: #ecedef;--muted: #8b8f98;--faint: #5f636b;--accent: #7c82ee;--accent-soft: rgb(124 130 238 / .14);--success: #4cb782;--danger: #eb6a6a;--warning: #e0b24a;--shadow: none;--pop: 0 12px 40px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 255 255 / .06);--k-header: 124 130 238;--k-row: 76 183 130;--k-skipped: 139 143 152;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;height:100%}body{background:var(--bg);color:var(--text);font:13px/20px Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-feature-settings:"cv11","ss01";-webkit-font-smoothing:antialiased}a{color:inherit}button{font:inherit;color:inherit}svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}:focus-visible{outline:2px solid var(--accent);outline-offset:1px}[hidden]{display:none!important}.top{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:16px;height:48px;padding:0 16px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(8px)}.brand{display:flex;align-items:center;gap:8px;font-weight:600}.mark{width:22px;height:22px;border-radius:6px;background:var(--text);background-image:linear-gradient(var(--bg),var(--bg)),linear-gradient(var(--bg),var(--bg)),linear-gradient(var(--bg),var(--bg));background-size:12px 2px,12px 2px,8px 2px;background-position:5px 6px,5px 10px,5px 14px;background-repeat:no-repeat}.local{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.local svg{width:14px;height:14px}.top-actions{margin-left:auto;display:flex;gap:2px}.icon-btn{display:inline-grid;place-items:center;width:28px;height:28px;border:0;border-radius:6px;background:none;color:var(--muted);cursor:pointer}.icon-btn:hover{background:var(--surface-2);color:var(--text)}.icon-btn:disabled{opacity:.4;pointer-events:none}.icon-btn svg{width:16px;height:16px}.app{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:calc(100vh - 48px)}.side{border-right:1px solid var(--border);padding:16px;display:flex;flex-direction:column;gap:22px}.work{min-width:0;padding:24px 28px;display:flex;flex-direction:column}.label{margin:0 0 8px;font-size:11px;font-weight:500;color:var(--faint)}.drop{border:1px dashed var(--border-strong);border-radius:8px;background:var(--surface);padding:16px;text-align:center;transition:border-color .1s,background .1s}.drop.over{border-color:var(--accent);background:var(--accent-soft)}.drop svg{width:20px;height:20px;color:var(--faint)}.drop p{margin:6px 0 0}.faint{color:var(--faint);font-size:12px;line-height:17px}.link{border:0;background:none;padding:0;color:var(--accent);font-weight:500;cursor:pointer}.link:hover{text-decoration:underline}.files,.samples{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}.files:empty{display:none}.file,.sample{display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;border-radius:6px;text-align:left}.file{background:var(--surface-2)}.sample{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);cursor:pointer;transition:border-color .1s}.sample:hover{border-color:var(--border-strong)}.sample[aria-current=true]{border-color:var(--accent)}.file b,.sample b{display:block;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file small,.sample small{display:block;color:var(--muted);font-size:12px}.file>span:last-child,.sample>span:last-child{min-width:0}.file-ico{flex:none;display:grid;place-items:center;width:28px;height:32px;border-radius:4px;border:1px solid var(--border-strong);background:var(--surface);color:var(--danger);font-size:8px;font-weight:600;letter-spacing:.02em}.field{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px;font-weight:500}select{height:32px;padding:0 8px;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;box-shadow:var(--shadow)}select:hover{border-color:var(--border-strong)}.check{display:flex;align-items:center;gap:8px;margin-top:10px;color:var(--text)}.check input{width:14px;height:14px;margin:0;accent-color:var(--accent)}.check.muted{color:var(--faint)}.actions{display:flex;gap:6px;margin-top:14px}.btn{height:32px;padding:0 12px;border-radius:6px;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);font-weight:500;cursor:pointer;transition:background .1s}.btn:hover{background:var(--surface-2)}.btn.primary{flex:1;border-color:transparent;background:var(--accent);color:#fff}.btn.primary:hover{background:color-mix(in srgb,var(--accent) 90%,black)}.btn:disabled{opacity:.5;pointer-events:none}#sheets-note{margin:8px 0 0}.work-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.title{min-width:0}h1{margin:0;font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta{margin:2px 0 0;color:var(--muted)}.seg{display:inline-flex;height:32px;padding:2px;border:1px solid var(--border);border-radius:6px;background:var(--surface);box-shadow:var(--shadow);flex:none}.seg button{border:0;border-radius:4px;padding:0 12px;background:none;color:var(--muted);font-size:12px;font-weight:500;cursor:pointer}.seg button[aria-selected=true]{background:var(--surface-3);color:var(--text)}.steps{display:flex;gap:6px;margin-bottom:12px}.steps span{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 8px;border-radius:6px;border:1px solid var(--border);color:var(--faint);font-size:12px}.steps span:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--border-strong)}.steps span.active{color:var(--text)}.steps span.active:before{background:var(--accent);animation:pulse 1s ease-in-out infinite}.steps span.done{color:var(--muted)}.steps span.done:before{background:var(--success)}@keyframes pulse{50%{opacity:.35}}.status{margin:0 0 12px;color:var(--muted)}.status:empty{display:none}.status.error{color:var(--danger)}.view{flex:1;display:flex;flex-direction:column;min-height:0;animation:enter .2s ease-out both}@keyframes enter{0%{opacity:0;transform:translateY(4px)}}.table-box{flex:1;min-height:320px;max-height:calc(100vh - 230px);overflow:auto;border:1px solid var(--border);border-radius:8px 8px 0 0;background:var(--surface);box-shadow:var(--shadow)}table{border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums}th,td{padding:0 12px;height:34px;text-align:left;white-space:nowrap;border-bottom:1px solid var(--border)}thead th{position:sticky;top:0;z-index:1;height:36px;background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:500}th .type{display:inline-grid;place-items:center;min-width:18px;height:16px;margin-right:6px;padding:0 3px;border-radius:3px;background:var(--surface-3);color:var(--faint);font-size:10px;font-weight:600}td.num,th.num{text-align:right}th.num .type{margin:0 0 0 6px}td.idx,th.idx{width:1%;color:var(--faint);text-align:right;padding-right:8px}tbody tr:hover td{background:var(--surface-2)}tbody tr.flash td{background:var(--accent-soft)}tfoot td{position:sticky;bottom:0;background:var(--surface-2);font-weight:600;border-bottom:0;border-top:1px solid var(--border)}tfoot td:first-child{color:var(--muted);font-weight:500}.more td{color:var(--faint);text-align:center}.sheets{display:flex;gap:2px;overflow-x:auto;padding:4px;border:1px solid var(--border);border-top:0;border-radius:0 0 8px 8px;background:var(--surface-2)}.sheets button{flex:none;height:26px;padding:0 10px;border:1px solid transparent;border-radius:5px;background:none;color:var(--muted);font-size:12px;cursor:pointer}.sheets button:hover{color:var(--text)}.sheets button[aria-selected=true]{border-color:var(--border);background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.sheets button small{margin-left:6px;color:var(--faint)}.detect-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}.pager{display:flex;align-items:center;gap:6px;color:var(--muted)}.legend{list-style:none;display:flex;gap:14px;margin:0;padding:0;color:var(--muted);font-size:12px}.legend li{display:flex;align-items:center;gap:6px}.legend i{width:10px;height:10px;border-radius:2px}.k-header{background:rgb(var(--k-header) / .35);box-shadow:inset 0 0 0 1px rgb(var(--k-header))}.k-row{background:rgb(var(--k-row) / .25);box-shadow:inset 0 0 0 1px rgb(var(--k-row) / .8)}.k-total{background:#c4841d40;box-shadow:inset 0 0 0 1px #c4841dcc}.k-skipped{background:repeating-linear-gradient(135deg,rgb(var(--k-skipped) / .5) 0 2px,transparent 2px 4px);box-shadow:inset 0 0 0 1px rgb(var(--k-skipped) / .7)}.k-col{border-left:1px dashed var(--accent);border-right:1px dashed var(--accent);border-radius:0!important}.page-wrap{flex:1;overflow:auto;padding:20px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);display:flex;justify-content:center}.page{position:relative;height:max-content;box-shadow:var(--pop);background:#fff}.page canvas{display:block}.page svg{position:absolute;inset:0;width:100%;height:100%;stroke:none}.page svg .col{fill:rgb(var(--k-header) / .05);stroke:rgb(var(--k-header) / .6);stroke-width:1;stroke-dasharray:3 3}.page svg .header{fill:#5b5bd638;stroke:#5b5bd6;stroke-width:1}.page svg .row{fill:#2f8f5b24;stroke:#2f8f5bb3;stroke-width:.75;cursor:pointer}.page svg .row:hover{fill:#2f8f5b52}.page svg rect{vector-effect:non-scaling-stroke}.page svg .total{fill:#c4841d29;stroke:#c4841dcc;stroke-width:.75}.page svg .skipped{fill:url(#hatch);stroke:#787c84cc;stroke-width:.75}.foot{margin-top:20px;color:var(--faint);font-size:12px}.foot a{color:var(--muted)}@media(max-width:900px){.app{grid-template-columns:1fr}.side{border-right:0}.work{padding:20px 16px;order:-1;border-bottom:1px solid var(--border)}.table-box{max-height:70vh}.local{display:none}.work-head{flex-direction:column;align-items:stretch}.seg{align-self:flex-start}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}dialog#pw{border:1px solid var(--border);border-radius:12px;padding:20px;width:min(380px,calc(100vw - 32px));background:var(--surface);color:var(--text);box-shadow:var(--pop)}dialog#pw::backdrop{background:#00000059}dialog#pw h2{font-size:16px;margin:0 0 6px}dialog#pw p{margin:0 0 12px;font-size:13px;color:var(--muted)}dialog#pw input{width:100%;padding:8px 10px;border-radius:8px;border:1px solid var(--border-strong);font:inherit;background:var(--surface-2);color:var(--text)}dialog#pw .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}.check-ok{color:var(--success)}.check-bad{color:var(--warning)}.kbd-btn{display:inline-flex;align-items:center;gap:8px;height:28px;padding:0 8px;border:1px solid var(--border);border-radius:6px;background:none;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}.kbd-btn:hover{background:var(--surface-2);color:var(--text)}.kbd-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.kbd-btn kbd,.palette kbd{border:1px solid var(--border);border-radius:4px;padding:0 4px;font:11px/16px inherit;color:var(--faint)}.lang-btn{width:auto;padding:0 7px;font-size:11.5px;font-weight:600;letter-spacing:.02em}@media(max-width:640px){.kbd-btn .kbd-label,.kbd-btn kbd{display:none}.kbd-btn{border:0;padding:0 6px}}.palette{width:min(560px,calc(100% - 32px));margin-top:12vh;padding:0}.palette::backdrop{background:#00000073}.pal-search{display:flex;align-items:center;gap:8px;padding:0 12px;border-bottom:1px solid var(--border)}.pal-search svg{width:16px;height:16px;flex:none;fill:none;stroke:var(--faint);stroke-width:2;stroke-linecap:round}.pal-search input{flex:1;min-width:0;height:48px;border:0;outline:0;background:none;color:var(--text);font:inherit;font-size:14px}#pal-list{max-height:52vh;overflow-y:auto;margin:0;padding:6px;list-style:none}#pal-list [role=option]{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:6px;cursor:pointer}#pal-list [role=option] span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#pal-list [role=option] small{color:var(--faint);font-size:11.5px;white-space:nowrap}#pal-list [aria-selected=true]{background:var(--accent-soft)}.pal-group{padding:8px 10px 4px;color:var(--faint);font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.pal-empty{padding:24px;text-align:center;color:var(--muted)}.pal-foot{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0;padding:8px 12px;border-top:1px solid var(--border);color:var(--faint);font-size:11px}
