@layer reset,base,components;
@layer reset{
*{box-sizing:border-box}
body,h1,h2,h3,p,blockquote{margin:0}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
button,a,input,select,summary{outline-offset:4px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--primary)}
button{border:0}
a{color:inherit;text-decoration:none}
img{max-width:100%}
}

@layer base{
:root{--primary:#0274be;--accent:#ffb038;--ink:#0f172a;--muted:#64748b;--line:#e2e8f0;--paper:#fff;--surface:#f8fafc;--blue-soft:#eff6ff;--deep:#0f172a;--heading-font:Montserrat,Arial,sans-serif;--body-font:"Source Sans Pro","Segoe UI",sans-serif}
body{background:var(--paper);color:var(--ink);font-family:var(--body-font);font-size:13px;line-height:1.5;min-width:300px;-webkit-font-smoothing:antialiased}
button{background:none;color:inherit}
h1{font-family:var(--heading-font);font-weight:700;font-size:29px;line-height:1.16;letter-spacing:-1.15px}
h2{font-family:var(--heading-font);font-weight:700;font-size:16px;letter-spacing:-.35px}
h3{font-family:var(--heading-font);font-weight:700;font-size:13px}
.muted{color:var(--muted);line-height:1.7}
small{font-size:10px}
main{padding:0 24px}
label{display:block;font-size:12px;font-weight:600}
input,select{width:100%;background:white;border:1px solid var(--line);border-radius:8px;padding:12px;color:var(--ink);margin-top:7px;margin-bottom:15px}
input::placeholder{color:var(--muted);font-weight:400}
summary{cursor:pointer;font-size:12px;font-weight:600}
details[open]>summary{margin-bottom:15px}
}

@layer components{

.topbar{height:82px;display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}
.brand{display:flex;flex-direction:column;gap:5px;align-items:flex-start;line-height:1}
.brand img{width:166px;height:auto;display:block}
.brand small{font-family:var(--heading-font);font-size:8px;letter-spacing:1.4px;font-weight:600;color:var(--muted);padding-left:1px}
.icon-button{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:16px}
.icon-button:hover{background:var(--blue-soft)}
.workspace{padding:18px 24px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.analysis-toolbar{position:sticky;top:0;z-index:20;background:var(--paper);border-bottom:1px solid var(--line);padding:10px 24px 14px;box-shadow:0 8px 16px #0f172a05}
.analysis-target{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.analysis-target .eyebrow{font-size:8px;flex-shrink:0}
.analysis-target strong{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.analysis-toolbar .privacy-note{margin-top:8px}
.analysis-toolbar.compact{padding-top:9px;padding-bottom:9px}
.analysis-toolbar.compact .analysis-target{margin-bottom:0}
.analysis-toolbar.compact button{flex-shrink:0;font-size:10px;color:var(--primary);text-decoration:underline;text-underline-offset:3px}
.report-company{padding:14px 0 0}
.report-company h1{font-size:18px;line-height:1.3;letter-spacing:-.4px}
.report-company p{margin-top:5px;font-size:10px;color:var(--primary)}
.report-company + .score-card{margin-top:14px;margin-bottom:18px}
.eyebrow{font-family:var(--heading-font);font-size:9px;font-weight:650;letter-spacing:1.2px;color:var(--muted)}
.team-tabs{display:flex;gap:3px;padding:3px;background:var(--surface);border-radius:7px}
.team-tabs button{padding:5px 10px;border-radius:5px;font-size:10px;color:var(--muted)}
.team-tabs button.active{background:var(--primary);color:white;box-shadow:0 2px 5px #0274be20}
.demo-banner{background:#fff7ed;color:#87510c;padding:8px 24px;display:flex;justify-content:space-between;gap:8px;font-size:9px;letter-spacing:.7px;align-items:center;border-top:1px solid #ffedd5;border-bottom:1px solid #ffedd5}
.demo-banner button{font-size:10px;text-decoration:underline;letter-spacing:0}
.identity{padding:14px 0 21px}
.domain{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.domain-dot{width:6px;height:6px;border-radius:50%;background:var(--primary)}
.source-label{margin-left:auto;font-size:9px;letter-spacing:1px;color:var(--muted)}
.identity h1{margin-top:14px;font-size:24px;letter-spacing:-.7px;overflow-wrap:anywhere}
.identity-meta{margin-top:6px;color:var(--muted);font-size:11px}
.identity-status{margin-top:13px;font-size:10px;color:var(--muted)}
.identity-status.selected{color:var(--primary)}
.view-tabs{display:flex;border-bottom:1px solid var(--line);gap:24px;margin-bottom:5px}
.view-tabs button{padding:10px 0 12px;color:var(--muted);font-size:11px;border-bottom:2px solid transparent}
.view-tabs .active{color:var(--ink);border-color:var(--primary)}
.section{padding:24px 0;border-bottom:1px solid var(--line)}
.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}
.section-title>span{font-size:9px;color:var(--muted)}
.fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 0 16px}
.fact-grid small{display:block;font-size:8px;letter-spacing:1.15px;color:var(--muted)}
.fact-grid strong{font-size:23px;font-weight:550;letter-spacing:-1px}
.fact-grid strong:has(+span){font-size:13px}
.facts{margin:0}
.facts>div{display:grid;grid-template-columns:110px 1fr;gap:8px;margin:11px 0}
.facts dt{color:var(--muted);font-size:10px}
.facts dd{margin:0;font-size:11px;overflow-wrap:anywhere}
.small-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--primary);margin-right:4px;vertical-align:middle}
.source-note{font-size:9px;color:var(--muted);line-height:1.7;margin-top:15px}
.source-note a{text-decoration:underline;text-underline-offset:3px}
.score-card{background:linear-gradient(135deg,#0274be 0%,#07588e 60%,#0a3d62 100%);color:white;border:1px solid #ffffff12;border-radius:16px;padding:20px;margin:24px 0 1px;position:relative;overflow:hidden;box-shadow:0 8px 24px #0274be1a}
.score-top{display:flex;justify-content:space-between;align-items:center}
.score-card .eyebrow{color:#dbeafe;font-size:8px}
.report-pill{font-size:9px;letter-spacing:.8px;background:#ffffff26;padding:4px 7px;border-radius:4px;color:#dbeafe}
.score-content{display:flex;gap:21px;align-items:center;margin:22px 0}
.score-ring{--score:0;flex-shrink:0;width:108px;height:108px;border-radius:50%;background:conic-gradient(from 220deg,var(--accent) calc(var(--score)*1%),#ffffff26 0);padding:6px;transform:rotate(-0deg)}
.score-ring>div{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:#09649d;width:100%;height:100%}
.score-ring strong{font-family:var(--heading-font);font-size:40px;line-height:1.1;letter-spacing:-2px;font-weight:550}
.score-ring span{font-size:8px;letter-spacing:1.3px;color:#dbeafe;margin-top:4px}
.score-summary h2{font-size:19px;font-weight:500;line-height:1.3;letter-spacing:-.4px}
.score-summary p{font-size:10px;color:#dbeafe;margin-top:7px}
.score-direction{display:block;font-size:8px;color:#dbeafe;margin-top:10px}
.score-bottom{border-top:1px solid #ffffff26;padding-top:15px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.score-bottom small{display:block;font-size:8px;color:#dbeafe;letter-spacing:1px}
.score-bottom b{font-weight:500;font-size:11px;display:block;margin-top:5px}
.pending h2{font-size:24px;line-height:1.2;letter-spacing:-.7px;margin:17px 0 10px;max-width:265px}
.pending p{font-size:11px;color:#dbeafe;line-height:1.8}
.pending small{font-size:10px;color:#dbeafe;display:block;margin-top:15px}
.pending .button{margin-top:18px;background:var(--accent);color:var(--ink)}
.financial-head{display:flex;justify-content:space-between;align-items:flex-end}
.financial-head small{display:block;font-size:8px;color:var(--muted);letter-spacing:1px}
.financial-head strong{font-size:23px;letter-spacing:-.7px;font-weight:550}
.unit-label{font-size:8px;color:var(--muted)}
.chart{height:126px;display:flex;gap:14px;padding:14px 0 0;margin:8px 0 14px}
.chart-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px}
.chart-value{font-size:8px;color:var(--muted)}
.chart-track{height:74px;width:100%;display:flex;align-items:flex-end;border-bottom:1px solid var(--line)}
.chart-track i{background:#abd4f0;display:block;width:100%;border-radius:5px 5px 0 0;min-height:2px}
.chart-col:last-child i{background:var(--primary)}
.chart-track i.negative{background:#ef4444}
.chart-year{font-size:8px;color:var(--muted)}
.ratio-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;border-top:1px solid var(--line);padding-top:14px}
.ratio-grid small{display:block;color:var(--muted);font-size:9px}
.ratio-grid strong{font-size:20px;font-weight:500;letter-spacing:-.6px}
.ratio-grid strong span{font-size:10px;margin-left:3px;color:var(--muted)}
.team-note{font-size:11px;line-height:1.8;color:var(--muted)}
.assessment{display:flex;gap:12px;margin-top:19px}
.assessment-icon{height:26px;width:26px;display:grid;place-items:center;flex-shrink:0;border-radius:8px;background:var(--blue-soft);color:var(--primary)}
.assessment h3{font-size:11px;margin-bottom:5px}
.assessment p{font-size:10px;line-height:1.7;color:var(--muted)}
.button{font-family:var(--heading-font);display:flex;justify-content:space-between;align-items:center;width:100%;gap:12px;padding:13px 15px;border-radius:7px;font-size:11px;font-weight:600;transition:background .15s,transform .15s}
.button:hover{transform:translateY(-1px)}
.button.primary{background:linear-gradient(135deg,var(--accent),#f59e0b);color:var(--ink);border:1px solid #efa328;box-shadow:0 4px 12px #ffb03826}
.button.primary:hover{background:linear-gradient(135deg,#ffbe5c,var(--accent));box-shadow:0 6px 16px #ffb03835}
.button.secondary{background:var(--blue-soft);color:var(--primary);border:1px solid #cfe3f4}
.button.quiet{font-weight:400;color:var(--muted);justify-content:center;margin-top:6px}
.bottom-actions{padding:23px 0 12px}
.panel-footer{display:flex;align-items:center;font-size:8px;color:var(--muted);gap:3px;padding:22px 24px;border-top:1px solid var(--line);margin-top:16px}
.panel-footer>span:last-child{margin-left:auto;font-size:9px}
.welcome{padding:28px 0 15px}
.welcome h1{font-size:40px;font-weight:500;letter-spacing:-1.7px;line-height:1.1;max-width:315px;margin:20px 0 17px}
.welcome>p{color:var(--muted);font-size:12px;line-height:1.8}
.orbital{position:relative;height:145px;width:145px;border:1px solid var(--line);border-radius:50%;margin:32px auto 28px;display:grid;place-items:center}
.orbital:before{content:'';position:absolute;width:112px;height:112px;border:1px solid var(--line);border-radius:50%}
.orbital:after{content:'';position:absolute;width:76px;height:76px;border-radius:50%;background:var(--blue-soft)}
.orbital-word{z-index:1;font-size:40px;letter-spacing:-5px;font-weight:700;color:var(--primary)}
.orbital-word span{color:var(--primary)}
.orbital-dot{position:absolute;width:11px;height:11px;border:3px solid var(--paper);border-radius:50%;background:var(--primary);top:12px;right:14px}
.steps{padding:0 0 27px}
.steps>div{display:flex;align-items:center;gap:16px;margin:13px 0;font-size:11px}
.steps b{font-size:8px;color:var(--muted);font-weight:500}
.privacy-note{font-size:9px!important;line-height:1.8!important;color:var(--muted)!important;font-weight:400}
.welcome .privacy-note{text-align:center;margin-top:17px}
.notice{background:var(--blue-soft);border:1px solid #dbeafe;padding:13px;border-radius:10px;font-size:12px;line-height:1.7;margin:15px 0;color:#335a78}
.notice.error{background:#f8ece3;border-color:#eed7c6;color:#8a5234;overflow-wrap:anywhere}
.candidate{border:1px solid var(--line);border-radius:8px;padding:14px;width:100%;text-align:left;margin:12px 0;display:flex;position:relative;flex-wrap:wrap;gap:9px}
.candidate:disabled{cursor:not-allowed;opacity:.65}
.identity-confirm{margin-top:18px}
.candidate:hover{background:var(--blue-soft);border-color:#93c5fd}
.candidate>div{flex:1}
.candidate b{display:block;font-size:12px}
.candidate span:not(.candidate-arrow){display:block;color:var(--muted);font-size:10px;margin-top:5px}
.candidate small{font-size:9px;color:var(--muted)}
.candidate-arrow{color:var(--primary)}
.candidate em{font-style:normal;font-size:8px;color:var(--primary);width:100%}
.manual{margin-top:18px}
.manual input{margin-top:10px}
.warnings{margin:20px 0;padding:14px;background:#fff7ed;border-radius:7px;color:#9a5705;font-size:10px}
.warnings p{margin:10px 0}
.evidence-page{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}
.evidence-page a{font-size:11px;overflow-wrap:anywhere}
.evidence-page small{display:block;color:var(--muted);font-size:9px;margin-top:4px}
.page-icon{width:27px;height:27px;flex-shrink:0;border-radius:6px;background:var(--blue-soft);display:grid;place-items:center;color:var(--primary)}
.section blockquote{background:var(--blue-soft);border-left:2px solid var(--primary);padding:14px;font-size:11px;line-height:1.8;margin:18px 0;white-space:pre-line;overflow-wrap:anywhere}
.section cite{display:block;font-style:normal;font-size:9px;color:var(--muted);margin-top:10px}
.evidence-status{margin:20px 0}
.evidence-status b{font-size:11px}
.evidence-status p{font-size:10px;color:var(--muted);line-height:1.8;margin-top:7px}
.model-note{font-size:9px;line-height:1.8;color:var(--muted);margin:18px 0}
.table-scroll{overflow:auto;margin-top:20px}
table{border-collapse:collapse;width:100%;font-size:9px}
th{text-align:left;font-size:8px;font-weight:500;color:var(--muted)}
th,td{padding:10px 5px;border-bottom:1px solid var(--line);white-space:nowrap}
caption{text-align:left;font-size:8px;color:var(--muted);margin-bottom:8px}
.settings-heading{display:flex;align-items:center;gap:13px;padding:15px 0}
.settings-heading h1{font-size:24px}
.role-options{display:grid;gap:9px;margin-top:16px}
.role-option{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;border:1px solid var(--line);border-radius:8px;padding:14px}
.role-option.selected{border-color:var(--primary);background:var(--blue-soft);box-shadow:0 0 0 1px var(--primary)}
.role-option b{font-size:12px}
.role-option small{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:4px}
.role-option i{font-style:normal;color:var(--primary);font-size:17px}
.settings-heading+.section{padding-top:13px}
.section form{margin-top:18px}
.advanced{margin:0 0 16px}
.connection-dot{width:7px;height:7px;border-radius:50%;background:#cbd5e1}
.connection-dot.connected{background:var(--primary)}
.switch-label{display:flex;gap:25px;align-items:center;margin-bottom:12px}
.switch-label b{font-size:11px}
.switch-label small{display:block;font-size:10px;line-height:1.7;color:var(--muted);font-weight:400;margin-top:6px}
.switch-label input{accent-color:var(--primary);width:17px;flex-shrink:0;margin:0}
.section>.muted+.muted{margin-top:15px}
.section>.button{margin-top:17px}
.loading{padding:60px 0 150px}
.loading h1{font-size:34px;margin:18px 0}
.loading p{font-size:12px;color:var(--muted);line-height:1.8}
.scanner{width:46px;height:46px;border:2px solid var(--line);border-top-color:var(--primary);border-radius:50%;margin-bottom:28px;animation:spin 1.4s linear infinite}
.progress-line{height:3px;margin:24px 0 16px;border-radius:3px;background:var(--line);overflow:hidden}
.progress-line:after{content:'';display:block;width:35%;height:100%;background:var(--primary);animation:scan 1.5s infinite ease-in-out}
.generation-status{display:flex;align-items:center;gap:7px;text-transform:capitalize;font-size:10px;color:#dbeafe}
.generation-status button{color:#dbeafe;font-size:9px;margin-left:auto;text-decoration:underline}
.status-dot{height:5px;width:5px;background:var(--accent);border-radius:50%}
#toast{position:fixed;bottom:24px;left:24px;right:24px;z-index:50;background:var(--deep);color:#fff;padding:12px 16px;border-radius:8px;font-size:11px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}
#toast.visible{opacity:1;transform:none}
dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:14px;width:calc(100% - 38px);max-width:380px;padding:24px;box-shadow:0 20px 80px #0f172a40}
dialog::backdrop{background:#0f172a80;backdrop-filter:blur(3px)}
dialog h2{font-size:24px;line-height:1.2;margin:15px 0 12px}
dialog p{font-size:11px;line-height:1.8;color:var(--muted)}
.confirm-cost{display:flex;gap:10px;align-items:baseline;margin:16px 0}
.confirm-cost strong{font-size:44px;letter-spacing:-2px;font-weight:500}
.confirm-cost span{font-size:11px;color:var(--muted)}
.dialog-actions{display:flex;gap:10px;margin-top:24px}
.dialog-actions .button{justify-content:center;font-size:10px}
@keyframes spin{to{transform:rotate(360deg)}
}
@keyframes scan{0%{transform:translateX(-110%)}
100%{transform:translateX(390%)}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}
}
@media(max-width:345px){main,.topbar,.workspace,.analysis-toolbar{padding-left:17px;padding-right:17px}
.workspace>.eyebrow{font-size:9px}
.team-tabs button{padding:5px 7px}
.score-content{gap:12px}
.score-ring{width:95px;height:95px}
.score-summary h2{font-size:16px}
.facts>div{grid-template-columns:95px 1fr}
.source-label{display:none}
}

}
