:root {
  --bg: #0b1020;
  --panel: #111936;
  --panel-2: #162045;
  --text: #eef3ff;
  --muted: #9fb0d0;
  --line: rgba(255,255,255,.10);
  --good: #3ee08f;
  --watch: #ffd166;
  --bad: #ff6b6b;
  --accent: #7c8cff;
  --accent-2: #55d6ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 0%, rgba(85,214,255,.18), transparent 28%), radial-gradient(circle at 85% 10%, rgba(124,140,255,.20), transparent 28%), var(--bg);
  color: var(--text);
}
.hero, main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: stretch; padding: 48px 0 26px; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }
h1 { font-size: clamp(34px, 5vw, 64px); line-height: 0.95; margin: 8px 0 14px; }
.subtitle { color: var(--muted); font-size: 18px; max-width: 680px; }
.hero-card { min-width: 180px; background: linear-gradient(145deg, rgba(124,140,255,.25), rgba(85,214,255,.12)); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: grid; align-content: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.hero-card span, .hero-card small { color: var(--muted); }
.hero-card strong { font-size: 54px; line-height: 1; }
.grid { display: grid; gap: 18px; }
.summary-grid { grid-template-columns: 2fr 1fr 1fr; }
.two-col { grid-template-columns: 1.2fr .8fr; margin: 18px 0 40px; }
.panel { background: rgba(17,25,54,.82); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.22); }
h2 { margin: 0 0 12px; font-size: 18px; }
p { color: var(--muted); line-height: 1.55; }
.chips, .meta-row, .metric-strip, .sources { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .pill { border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); border-radius: 999px; padding: 7px 10px; font-size: 12px; }
.risk-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 112px; border-radius: 999px; padding: 10px 14px; font-weight: 800; }
.risk-Low { background: rgba(62,224,143,.15); color: var(--good); }
.risk-Medium { background: rgba(255,209,102,.15); color: var(--watch); }
.risk-High { background: rgba(255,107,107,.15); color: var(--bad); }
.rules { color: var(--muted); padding-left: 20px; line-height: 1.8; }
.toolbar { margin: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.toolbar p { margin: 0; }
select { margin-left: 8px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.stock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stock-card { position: relative; overflow: hidden; }
.stock-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.card-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.rank { color: var(--accent-2); font-weight: 800; font-size: 13px; }
h3 { font-size: 30px; margin: 4px 0 0; }
.company { margin: 2px 0 0; }
.score-ring { width: 82px; height: 82px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--good) calc(var(--score, 0) * 1%), rgba(255,255,255,.08) 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 8px; background: var(--panel); border-radius: 50%; }
.score-ring span, .score-ring small { position: relative; z-index: 1; }
.score-ring span { font-weight: 900; font-size: 24px; }
.score-ring small { margin-left: 2px; color: var(--muted); }
.business { border-left: 3px solid var(--accent-2); padding-left: 12px; }
.metric { min-width: 120px; padding: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 14px; }
.metric b { display:block; color: var(--text); }
.metric span { color: var(--muted); font-size: 12px; text-transform: capitalize; }
details { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
summary { cursor: pointer; font-weight: 800; }
ul { color: var(--muted); line-height: 1.65; }
.source-link { color: var(--accent-2); text-decoration: none; font-size: 12px; }
.rejected-item { border-bottom: 1px solid var(--line); padding: 10px 0; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px; border: 1px dashed var(--line); border-radius: 22px; grid-column: 1 / -1; }
@media (max-width: 900px) { .hero, .toolbar { flex-direction: column; align-items: stretch; } .summary-grid, .two-col, .stock-grid { grid-template-columns: 1fr; } }
