*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0d0a1a;--bg-panel: #160d2e;--bg-card: #1e1240;--bg-input: #110920;--border: #2d1f5e;--border-hover: #4a2f8a;--orange: #ff7b00;--orange-light: #ffaa44;--orange-dim: #7a3800;--purple: #9b59b6;--purple-light: #c084fc;--text: #e8e0f0;--text-muted: #8b80a8;--text-dim: #5c5478;--high: #ff4444;--high-bg: #2a0a0a;--medium: #ff9900;--medium-bg: #2a1800;--low: #44cc88;--low-bg: #0a2018;--radius: 8px;--radius-lg: 12px;--shadow: 0 4px 24px rgba(0,0,0,.6)}html,body{height:100%;background:var(--bg);color:var(--text);font-family:Segoe UI,system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.6}#root{min-height:100vh;display:flex;flex-direction:column}.app{flex:1;display:flex;flex-direction:column;max-width:960px;width:100%;margin:0 auto;padding:0 1.5rem 3rem}.header{padding:2.5rem 0 1.5rem;text-align:center;border-bottom:1px solid var(--border);margin-bottom:2rem}.header-title{font-size:2.4rem;font-weight:800;letter-spacing:-.02em;color:var(--orange);text-shadow:0 0 24px var(--orange-dim),0 0 60px rgba(255,123,0,.15)}.header-sub{margin-top:.4rem;color:var(--text-muted);font-size:.95rem}.analyze-form{display:flex;gap:.75rem;margin-bottom:2rem}.analyze-input{flex:1;padding:.65rem 1rem;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);font-size:.95rem;font-family:Cascadia Code,Fira Mono,monospace;transition:border-color .15s;outline:none}.analyze-input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #ff7b0026}.analyze-input::placeholder{color:var(--text-dim)}.btn{padding:.65rem 1.4rem;border:none;border-radius:var(--radius);font-size:.95rem;font-weight:600;cursor:pointer;transition:background .15s,transform .08s,opacity .15s;white-space:nowrap}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.btn-primary{background:var(--orange);color:#000}.btn-primary:hover:not(:disabled){background:var(--orange-light)}.btn-secondary{background:transparent;border:1px solid var(--border-hover);color:var(--purple-light)}.btn-secondary:hover:not(:disabled){border-color:var(--purple-light);background:#9b59b61a}.btn-ghost{background:transparent;border:1px solid var(--orange-dim);color:var(--orange-light);font-size:.85rem;padding:.5rem 1rem}.btn-ghost:hover:not(:disabled){border-color:var(--orange);background:#ff7b0014}.status-loading{display:flex;align-items:center;gap:.75rem;padding:1.5rem;background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius-lg);color:var(--text-muted)}.spinner{width:20px;height:20px;border:2px solid var(--border-hover);border-top-color:var(--orange);border-radius:50%;animation:spin .7s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.status-error{padding:1rem 1.25rem;background:var(--high-bg);border:1px solid var(--high);border-radius:var(--radius);color:#f88}.status-error strong{color:var(--high)}.score-panel{background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.75rem 2rem;margin-bottom:1.5rem;display:flex;align-items:center;gap:2rem;flex-wrap:wrap;box-shadow:var(--shadow)}.gauge-wrap{flex-shrink:0}.gauge-svg{display:block}.gauge-track{fill:none;stroke:var(--bg-card);stroke-width:10}.gauge-fill{fill:none;stroke-width:10;stroke-linecap:round;transition:stroke-dashoffset .9s cubic-bezier(.4,0,.2,1),stroke .9s ease}.gauge-label{font-size:28px;font-weight:800;fill:var(--text);dominant-baseline:middle;text-anchor:middle}.gauge-sublabel{font-size:9px;fill:var(--text-muted);dominant-baseline:middle;text-anchor:middle;letter-spacing:.08em;text-transform:uppercase}.score-meta{flex:1;min-width:200px}.score-title{font-size:1.3rem;font-weight:700;color:var(--orange);margin-bottom:.5rem}.score-detail{color:var(--text-muted);font-size:.88rem;line-height:1.8}.score-detail span{color:var(--text);font-weight:500}.counts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;margin-top:.75rem}.count-chip{display:flex;align-items:center;gap:.4rem;padding:.3rem .6rem;background:var(--bg-card);border:1px solid var(--border);border-radius:4px;font-size:.82rem;color:var(--text-muted)}.count-chip strong{color:var(--text)}.actions-bar{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1.5rem}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.modal{background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.75rem;max-width:480px;width:100%;box-shadow:var(--shadow)}.modal h2{font-size:1.1rem;font-weight:700;color:var(--orange);margin-bottom:.4rem}.modal p{color:var(--text-muted);font-size:.88rem;margin-bottom:1.2rem;line-height:1.6}.modal-field{margin-bottom:1rem}.modal-field label{display:block;font-size:.82rem;font-weight:600;color:var(--text-muted);margin-bottom:.3rem;letter-spacing:.04em;text-transform:uppercase}.modal-field input{width:100%;padding:.6rem .9rem;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);font-size:.9rem;font-family:inherit;outline:none;transition:border-color .15s}.modal-field input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #ff7b001f}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1.25rem}.pr-result{margin-top:1rem;padding:.75rem 1rem;border-radius:var(--radius);font-size:.88rem;line-height:1.5}.pr-result.ok{background:var(--low-bg);border:1px solid var(--low);color:#8fc}.pr-result.ok a{color:var(--low);font-weight:600;word-break:break-all}.pr-result.err{background:var(--high-bg);border:1px solid var(--high);color:#f99}.pr-result.warn{background:var(--medium-bg);border:1px solid var(--medium);color:var(--orange-light)}.filters{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem;align-items:center}.filters-label{color:var(--text-dim);font-size:.82rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin-right:.25rem}.filter-chip{padding:.3rem .75rem;border-radius:999px;border:1px solid var(--border);background:transparent;color:var(--text-muted);font-size:.82rem;cursor:pointer;transition:all .12s}.filter-chip:hover{border-color:var(--border-hover);color:var(--text)}.filter-chip.active{background:var(--orange);border-color:var(--orange);color:#000;font-weight:600}.filter-sep{width:1px;height:1.2em;background:var(--border);margin:0 .25rem}.ghost-list-header{font-size:1rem;font-weight:700;color:var(--text-muted);margin-bottom:.75rem;letter-spacing:.02em}.ghost-list{display:flex;flex-direction:column;gap:.6rem}.ghost-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:.9rem 1.1rem;display:grid;grid-template-columns:auto 1fr;gap:0 .9rem;transition:border-color .12s}.ghost-card:hover{border-color:var(--border-hover)}.ghost-card.sev-high{border-left:3px solid var(--high)}.ghost-card.sev-medium{border-left:3px solid var(--medium)}.ghost-card.sev-low{border-left:3px solid var(--low)}.ghost-sev-dot{width:10px;height:10px;border-radius:50%;margin-top:.42rem;flex-shrink:0}.sev-high .ghost-sev-dot{background:var(--high);box-shadow:0 0 6px var(--high)}.sev-medium .ghost-sev-dot{background:var(--medium);box-shadow:0 0 6px var(--medium)}.sev-low .ghost-sev-dot{background:var(--low);box-shadow:0 0 6px var(--low)}.ghost-top{display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap;margin-bottom:.2rem}.ghost-type-badge{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:.1rem .45rem;border-radius:3px}.sev-high .ghost-type-badge{background:var(--high-bg);color:var(--high)}.sev-medium .ghost-type-badge{background:var(--medium-bg);color:var(--medium)}.sev-low .ghost-type-badge{background:var(--low-bg);color:var(--low)}.ghost-file{font-family:Cascadia Code,Fira Mono,monospace;font-size:.84rem;color:var(--purple-light);word-break:break-all}.ghost-symbol{font-family:Cascadia Code,Fira Mono,monospace;font-size:.8rem;color:var(--orange-light)}.ghost-age{font-size:.75rem;color:var(--text-dim);white-space:nowrap}.ghost-epitaph{font-size:.84rem;color:var(--text-muted);font-style:italic;line-height:1.5;margin-top:.1rem}.clean-state{text-align:center;padding:3rem 2rem;background:var(--bg-panel);border:1px solid var(--low);border-radius:var(--radius-lg);color:var(--low)}.clean-state h2{font-size:1.5rem;margin-bottom:.5rem}.clean-state p{color:var(--text-muted);font-size:.9rem}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:var(--border-hover);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--purple)}
