:root{color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;--bg: #06080d;--surface: #0d1117;--surface-2: #161b22;--border: rgba(255, 255, 255, .08);--border-glow: rgba(0, 200, 120, .25);--green: #00c878;--green-dim: rgba(0, 200, 120, .15);--text: #e6edf3;--text-dim: rgba(230, 237, 243, .55);--text-muted: rgba(230, 237, 243, .35)}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{min-height:100vh;background:var(--bg);color:var(--text)}.hidden{display:none!important}.hidden-canvas{display:none}.app{min-height:100vh;display:flex;flex-direction:column}.header{display:flex;align-items:center;justify-content:space-between;padding:1rem 2rem;border-bottom:1px solid var(--border);background:var(--surface)}.logo{display:flex;align-items:center;gap:.75rem}.logo-icon{font-size:1.75rem}.header h1{font-size:1.25rem;font-weight:700;letter-spacing:-.02em;line-height:1.2}.subtitle{font-size:.8rem;color:var(--text-dim)}.model-status{display:flex;align-items:center;gap:.5rem;font-size:.8rem;font-weight:500;padding:.35rem .85rem;border-radius:999px;border:1px solid var(--border)}.model-status.ready{color:var(--green);border-color:var(--border-glow);background:var(--green-dim)}.status-dot{width:8px;height:8px;border-radius:50%;background:currentColor;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}.main{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border)}.scanner-panel{background:var(--surface);display:flex;flex-direction:column;align-items:center;padding:2rem;gap:1.5rem}.viewfinder{position:relative;width:100%;max-width:480px;aspect-ratio:4 / 3;border-radius:1rem;overflow:hidden;border:2px solid var(--border);background:var(--surface-2)}.camera-feed,.preview-img{width:100%;height:100%;object-fit:cover;display:block}.placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:1rem;color:var(--text-muted)}.placeholder-icon{font-size:3rem;opacity:.4}.placeholder p{font-size:.9rem}.scan-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#00000059;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.scan-line{position:absolute;left:10%;right:10%;height:2px;background:var(--green);box-shadow:0 0 16px var(--green),0 0 40px var(--green);animation:scanMove 1.8s ease-in-out infinite}@keyframes scanMove{0%{top:15%}50%{top:85%}to{top:15%}}.scan-text{font-size:.85rem;font-weight:600;letter-spacing:.15em;text-transform:uppercase;color:var(--green);background:var(--surface);padding:.4rem 1rem;border-radius:.5rem;border:1px solid var(--border-glow)}.controls{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:center}.btn{display:inline-flex;align-items:center;gap:.5rem;font-family:inherit;font-size:.9rem;font-weight:600;padding:.6rem 1.25rem;border-radius:.6rem;border:1px solid var(--border);cursor:pointer;transition:all .15s ease;background:var(--surface-2);color:var(--text)}.btn:hover{border-color:#fff3}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:var(--green);color:#000;border-color:var(--green)}.btn-primary:hover:not(:disabled){background:#00e68a;box-shadow:0 0 20px #00c8784d}.btn-lg{font-size:1rem;padding:.75rem 1.75rem}.btn-ghost{background:transparent;border-color:transparent;color:var(--text-dim);font-size:.85rem}.btn-ghost:hover{color:var(--text)}.results-panel{background:var(--bg);padding:2rem;overflow-y:auto;max-height:calc(100vh - 60px)}.results-title{font-size:1.1rem;font-weight:700;margin-bottom:1.5rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:.1em}.results-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;gap:1rem;color:var(--text-muted)}.empty-icon{font-size:2.5rem;opacity:.3}.result-hero{border-radius:1rem;padding:1.5rem;margin-bottom:2rem;border:1px solid var(--border-glow);background:var(--surface);position:relative;overflow:hidden;box-shadow:0 0 30px #00c87814}.result-hero:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(ellipse at top left,rgba(0,200,120,.06),transparent 60%);pointer-events:none}.hero-badge{display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:.3rem .7rem;border-radius:999px;margin-bottom:1rem;background:var(--green-dim);color:var(--green);border:1px solid var(--border-glow)}.hero-name{font-size:2rem;font-weight:800;letter-spacing:-.03em;margin-bottom:1rem}.hero-confidence{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.confidence-bar-bg{flex:1;height:8px;border-radius:4px;background:var(--surface-2);overflow:hidden}.confidence-bar-fill{height:100%;border-radius:4px;background:linear-gradient(90deg,var(--green),#00e68a);transition:width .6s ease}.confidence-value{font-size:1.1rem;font-weight:700;color:var(--green);min-width:3.5rem;text-align:right}.animal-fact{font-size:.9rem;color:var(--text-dim);line-height:1.6;padding:.75rem 1rem;background:var(--surface-2);border-radius:.6rem;border-left:3px solid var(--green)}.predictions-list{display:flex;flex-direction:column;gap:.5rem}.list-label{font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.5rem}.prediction-row{display:flex;align-items:center;gap:.75rem;padding:.7rem 1rem;border-radius:.6rem;background:var(--surface);border:1px solid var(--border);transition:border-color .15s}.prediction-row:hover{border-color:#ffffff26}.pred-rank{font-size:.75rem;font-weight:700;color:var(--text-muted);min-width:1.5rem}.pred-info{flex:1;min-width:0}.pred-name{display:block;font-size:.9rem;font-weight:600;margin-bottom:.35rem}.pred-bar-bg{height:4px;border-radius:2px;background:var(--surface-2);overflow:hidden}.pred-bar-fill{height:100%;border-radius:2px;background:var(--green);opacity:.7;transition:width .6s ease}.pred-pct{font-size:.85rem;font-weight:600;color:var(--text-dim);min-width:3rem;text-align:right;font-variant-numeric:tabular-nums}.spinner{width:32px;height:32px;border:3px solid var(--border);border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:800px){.main{grid-template-columns:1fr}.results-panel{max-height:none}.header{padding:.75rem 1rem}.scanner-panel{padding:1.5rem 1rem}.hero-name{font-size:1.5rem}}
