:root {
  color-scheme: light;
  --ink: #111214;
  --muted: #6e7177;
  --line: #e8e9eb;
  --paper: #fff;
  --canvas: #f4f5f7;
  --blue: #246bfd;
  --green: #0a9b6b;
  --amber: #a86800;
  --red: #c62e4d;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 38px; box-shadow: 0 22px 70px rgba(20,24,32,.09); }
.brand { font-size: 34px; font-weight: 800; letter-spacing: -2px; }
.brand i { color: #aeb0b5; font-style: normal; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 14px 0 8px; font-size: 34px; line-height: 1.06; letter-spacing: -1.5px; }
h2 { margin: 0; font-size: 22px; letter-spacing: -.5px; }
p { color: var(--muted); line-height: 1.55; }
.field { display: grid; gap: 7px; margin: 18px 0; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea, .search-input { width: 100%; border: 1px solid #dfe1e5; border-radius: 14px; background: #fafafa; padding: 13px 14px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus, .search-input:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,107,253,.11); }
.primary, .secondary, .quiet { border-radius: 14px; min-height: 46px; padding: 0 18px; font-weight: 750; }
.primary { width: 100%; border: 0; background: var(--ink); color: #fff; }
.primary:disabled { opacity: .45; cursor: wait; }
.secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.quiet { border: 0; background: transparent; color: var(--muted); }
.error { color: var(--red); font-size: 13px; font-weight: 650; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { background: #111214; color: #fff; padding: 28px 22px; display: flex; flex-direction: column; }
.sidebar .brand { font-size: 28px; }
.sidebar-copy { color: #979ba3; font-size: 13px; margin-top: 6px; }
.nav { margin-top: 42px; display: grid; gap: 8px; }
.nav-item { padding: 12px 14px; border-radius: 12px; color: #aeb2ba; font-weight: 700; }
.nav-item.active { background: #23262c; color: #fff; }
.sidebar-footer { margin-top: auto; border-top: 1px solid #2b2e34; padding-top: 18px; }
.main { min-width: 0; padding: 36px clamp(24px, 5vw, 72px) 64px; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 34px; }
.topbar p { margin: 5px 0 0; }
.status-pill { border: 1px solid #dfe9e4; background: #eefaf5; color: #087b56; border-radius: 999px; padding: 9px 13px; font-size: 12px; font-weight: 800; }
.grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); gap: 22px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 10px 34px rgba(22,25,31,.04); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.step { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eef3ff; color: var(--blue); font-weight: 800; font-size: 12px; }
.results { display: grid; gap: 9px; margin-top: 14px; }
.tenant { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 14px; text-align: left; display: flex; justify-content: space-between; gap: 10px; }
.tenant:hover, .tenant.selected { border-color: var(--blue); background: #f7f9ff; }
.tenant strong { display: block; }
.tenant small { color: var(--muted); }
.tag { align-self: center; border-radius: 999px; background: #f0f1f3; padding: 6px 9px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.case-card { background: #111214; color: #fff; border-radius: 17px; padding: 18px; margin-bottom: 18px; }
.case-card small { color: #aeb2ba; }
.case-number { font-size: 20px; font-weight: 800; margin: 5px 0; }
.findings { display: grid; gap: 10px; }
.finding { border: 1px solid var(--line); border-left: 4px solid #b8bbc1; border-radius: 15px; padding: 15px 16px; }
.finding.CRITICAL { border-left-color: var(--red); background: #fff8fa; }
.finding.WARNING { border-left-color: #d99516; background: #fffbf1; }
.finding.INFO { border-left-color: var(--blue); background: #f7f9ff; }
.finding.OK { border-left-color: var(--green); }
.finding-top { display: flex; justify-content: space-between; gap: 12px; }
.finding strong { font-size: 14px; }
.finding p { margin: 7px 0 0; font-size: 13px; }
.severity { font-size: 10px; letter-spacing: .08em; font-weight: 900; }
.empty { border: 1px dashed #d9dce1; border-radius: 17px; padding: 34px 20px; text-align: center; color: var(--muted); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 24px 18px 48px; }
  .grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
}
