:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#172239;--ink:#172239;--muted:#4e5c71;--blue:#204dbc;--line:#d9e0eb;background:#f4f6fb;font:16px/1.5 Segoe UI,-apple-system,BlinkMacSystemFont,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}main{width:min(100% - 32px,1060px);margin:0 auto;padding:40px 0 56px}h1,h2,h3,p{margin:0}h1{letter-spacing:-.045em;font-size:clamp(1.7rem,4vw,2.8rem);line-height:1.08}.page-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:24px;display:flex}.page-header p{color:var(--muted);margin-top:8px}.lang-switch{border:1px solid var(--line);background:#eef2f8;border-radius:9px;flex:none;gap:3px;padding:3px;display:flex}.lang-switch button{background:0 0;border-color:#0000;min-height:32px;padding:4px 10px;font-size:.875rem;font-weight:650}.lang-switch button[aria-pressed=true]{color:#153f9f;background:#fff;border-color:#b8caf7}.small-break{display:none}.workspace{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}.image-panel,.recognition-panel,.debug{border:1px solid var(--line);background:#fff;border-radius:16px;padding:18px}.stage{isolation:isolate;background:#101a2b;border-radius:11px;height:clamp(230px,46vw,440px);position:relative;overflow:hidden}.preview,.preview img,#live-video,.empty{width:100%;height:100%;position:absolute;inset:0}.preview img,#live-video{object-fit:contain}.empty{color:#e0eafa;text-align:center;place-content:center;justify-items:center;gap:19px;padding:10px;display:grid}.focus-mark{border:2px dashed #89aef1;border-radius:8px;width:50px;height:43px;display:block}.guide{pointer-events:none;border:1px solid #cbddff;position:absolute;box-shadow:0 0 0 1px #24334d70}.guide.active{box-shadow:0 0 0 100vmax #08122372}.guide i{border:0 solid #d9e8ff;width:17px;height:17px;position:absolute}.guide i:first-child{border-top-width:3px;border-left-width:3px;top:-1px;left:-1px}.guide i:nth-child(2){border-top-width:3px;border-right-width:3px;top:-1px;right:-1px}.guide i:nth-child(3){border-bottom-width:3px;border-left-width:3px;bottom:-1px;left:-1px}.guide i:nth-child(4){border-bottom-width:3px;border-right-width:3px;bottom:-1px;right:-1px}.source-mode{margin-top:12px}.image-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}#camera-status{margin-top:6px}button,.file-button,.mode-switch label{font:inherit;color:var(--ink);cursor:pointer;text-align:center;border:1px solid var(--line);background:#fff;border-radius:8px;min-height:44px;padding:8px 11px;font-weight:600}button:hover:not(:disabled),.file-button:hover{background:#edf3ff}button[disabled]{opacity:.55;cursor:default}.file-button:has(:disabled){opacity:.55;cursor:default}.file-button,.mode-switch label{place-items:center;display:grid;position:relative}.file-button input,.mode-switch input{opacity:0;width:100%;height:100%;cursor:inherit;margin:0;position:absolute;inset:0}button:focus-visible,label:focus-within,summary:focus-visible{outline-offset:2px;outline:3px solid #4879ee}.privacy,.mode-help,.model-state,.run-status,#unscored,#confirmation,#score-note{color:var(--muted);font-size:.875rem}.privacy{margin-top:8px}fieldset{border:0;min-inline-size:0;margin:0;padding:0}legend{margin-bottom:7px;padding:0;font-weight:650}.mode-switch{background:#eef2f8;border-radius:11px;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:4px;display:grid}.mode-switch label{background:0 0;border-color:#0000}.mode-switch label:has(input:checked){color:#153f9f;background:#fff;border-color:#b8caf7}.mode-help{margin:7px 0 14px}.primary{background:var(--blue);color:#fff;border-color:var(--blue);width:100%}.primary:hover:not(:disabled){background:#193e9c}.model-state{margin-top:9px}.run-status{margin-top:5px}.run-status.error{color:#9b2416}progress{width:100%;height:9px;accent-color:var(--blue);margin-top:6px;display:block}.matches{border-top:1px solid var(--line);margin-top:13px;padding-top:13px}h2{letter-spacing:-.02em;font-size:1.1rem;line-height:1.3}#unscored{margin-top:4px}.live-banner{background:#eef2f8;border-radius:9px;margin-top:8px;padding:10px 11px}.live-banner p+p{margin-top:4px}.live-badge{color:#153f9f;letter-spacing:.03em;background:#dce6fb;border-radius:20px;padding:2px 8px;font-size:.72rem;font-weight:700;display:inline-block}.live-badge.stable{color:#17643a;background:#d9f2e3}.live-candidates{color:var(--muted);font-size:.82rem}.debug-toggle{cursor:pointer;align-items:center;gap:6px;margin:8px 0;font-size:.875rem;font-weight:600;display:inline-flex}.debug-toggle input{width:16px;height:16px;accent-color:var(--blue)}.top-three{gap:7px;margin-top:8px;display:grid}.match{text-align:left;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-height:57px;display:grid}.match small{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.77rem}.match strong{overflow-wrap:anywhere}.match[aria-pressed=true]{border-color:var(--blue);background:#e9f0ff}#score-note{margin-top:5px}.feedback{flex-wrap:wrap;align-items:center;gap:6px;margin-top:9px;display:flex}.feedback p{flex-basis:100%}.debug{margin-top:20px}.debug-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.metrics,.comparison{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.metrics{grid-template-columns:repeat(auto-fit,minmax(134px,1fr));margin:12px 0}.metrics div,.comparison article{background:#f1f4fa;border-radius:8px;padding:8px 10px}dt,.comparison p{color:var(--muted);font-size:.82rem}dd{overflow-wrap:anywhere;font-variant-numeric:tabular-nums;margin:0;font-size:.95rem}.debug h3{margin:13px 0 7px;font-size:1rem}details{border-top:1px solid var(--line);margin-top:10px;padding:5px 0 0}summary{cursor:pointer;padding:8px 0;font-weight:600}.runs,#top-five{color:var(--muted);margin:0;padding-left:24px;font-size:.875rem}.runs li+li{margin-top:5px}.fixture-buttons{flex-wrap:wrap;gap:6px;padding-bottom:7px;display:flex}.main-tabs{border:1px solid var(--line);background:#e9eef7;border-radius:11px;gap:6px;margin-bottom:16px;padding:4px;display:flex}.main-tabs button{min-height:40px;color:var(--muted);background:0 0;border-color:#0000;flex:1;font-weight:700}.main-tabs button.active,.main-tabs button[aria-selected=true]{color:#153f9f;background:#fff;border-color:#b8caf7;box-shadow:0 1px 3px #1c2c5522}.pokedex-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.pokedex-toast{color:#17643a;background:#d9f2e3;border-radius:9px;padding:8px 12px;font-size:.9rem;font-weight:700}.pokedex-sub{color:var(--muted);margin-bottom:8px;font-size:.9rem;font-weight:600}.pokedex-generations{gap:6px;padding:3px 0 9px;display:flex;overflow-x:auto}.pokedex-generations button{flex:none;min-height:34px;padding:5px 12px;font-weight:700}.pokedex-generations button.active{color:#fff;background:#153f9f;border-color:#153f9f}.pokedex-tools{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.pokedex-count{font-variant-numeric:tabular-nums;font-weight:700}.pokedex-tools input{min-width:190px;min-height:40px;padding:7px 11px;font-size:1rem}.pokedex-debug{border:1px solid var(--line);background:#fff;border-radius:10px;margin:0 0 12px;padding:0 11px}.pokedex-grid-wrap{-webkit-overflow-scrolling:touch;max-height:min(62vh,680px);padding:3px;overflow-y:auto}.pokedex-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:9px;display:grid}.dex-tile{border:1px solid var(--line);text-align:center;background:#fff;border-radius:11px;flex-direction:column;gap:6px;min-width:0;padding:8px 6px;display:flex}.dex-tile.selected{border-color:#204dbc;box-shadow:0 0 0 2px #204dbc44}.dex-tile.undiscovered{color:var(--muted);cursor:default;background:#eceff4}.dex-tile-image{aspect-ratio:1;background:#f4f6fb;border-radius:8px;place-items:center;width:100%;display:grid;overflow:hidden}.dex-tile-image img{object-fit:contain;width:100%;height:100%}.dex-tile-image img.silhouette,.silhouette{filter:brightness(0)opacity(.85)}.dex-placeholder{color:#8794a8;background:#e4e9f1;place-items:center;width:100%;height:100%;font-size:2rem;display:grid}.dex-tile-meta{flex-direction:column;min-width:0;display:flex}.dex-tile-meta strong{text-overflow:ellipsis;white-space:nowrap;font-size:.88rem;overflow:hidden}.dex-tile-meta small{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.73rem}.dex-tile-meta .dex-status{font-size:.68rem}.pokedex-empty{text-align:center;color:var(--muted);grid-column:1/-1;padding:30px 10px}.pokedex-detail{border:1px solid var(--line);background:#fff;border-radius:14px;padding:16px}.pokedex-back{margin-bottom:12px}.detail-hero{align-items:center;gap:16px;display:flex}.detail-image{object-fit:contain;background:#f4f6fb;border-radius:12px;width:140px;height:140px}.detail-number{color:var(--muted);font-variant-numeric:tabular-nums;font-weight:700}.detail-en{color:var(--muted);font-size:.9rem}.detail-fields{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px;margin-top:14px;display:grid}.detail-field{background:#f4f6fb;border-radius:9px;padding:10px}.detail-field dt{color:var(--ink);font-weight:700}.poc-notice{color:#8a5a00;margin-top:12px;font-size:.78rem}@media (width<=700px){.pokedex-grid{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:7px}.pokedex-grid-wrap{max-height:60vh}.pokedex-tools input{width:100%}.detail-hero{gap:10px}.detail-image{width:104px;height:104px}main{width:min(100% - 22px,510px);padding-top:22px}.page-header{margin-bottom:14px}.lang-switch button{min-height:30px;padding:3px 8px}.workspace{grid-template-columns:minmax(0,1fr);gap:10px}.image-panel,.recognition-panel,.debug{border-radius:13px;padding:11px}.debug{margin-top:10px}.small-break{display:initial}}
