@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@100;200;300;400;500&family=JetBrains+Mono:wght@400&display=swap');

/* clr Design System v1.7 tokens (light theme) */
:root {
  --surface-base: #FAFBFC;
  --surface-glass: rgba(255, 255, 255, 0.70);
  --surface-azure: #EDF2F5;
  --surface-solid: #FFFFFF;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);
  --glass-border: rgba(255, 255, 255, 0.50);
  --text-primary: #1A1D21;
  --text-secondary: #5C6370;
  --text-tertiary: #9CA3AF;
  --coral: #FF4F28;
  --coral-soft: #FFEAE5;
  --coral-soft-hover: #FFDDD3;
  --coral-text: #993C1D;
  --azure: #69859E;
  --azure-soft: #EDF2F5;
  --azure-soft-hover: #E4EBEF;
  --azure-text: #3E5464;
  --success: #059669;
  --warning: #D97706;
  --error: #B91C1C;
  --success-tint: rgba(5, 150, 105, 0.10);
  --warning-tint: rgba(217, 119, 6, 0.10);
  --error-tint: rgba(185, 28, 28, 0.10);
  --gradient-line: linear-gradient(90deg, #FF4F28, #69859E);
  --shadow-glass: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --blur-panel: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--surface-base); color: var(--text-primary);
  font-family: "Roboto Condensed", -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 300;
  font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--azure-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; word-break: break-all; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 14px 32px; background: var(--surface-glass); backdrop-filter: blur(var(--blur-panel));
  -webkit-backdrop-filter: blur(var(--blur-panel)); border-bottom: 1px solid var(--border); }
.topbar img { height: 36px; width: 36px; display: block; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text-primary); }
.brand span { font-weight: 300; letter-spacing: .02em; font-size: 18px; }
.topbar nav { display: flex; gap: 20px; flex: 1; }
.topbar nav a { color: var(--text-secondary); font-weight: 400; }
.topbar form { margin: 0; }
.hairline { height: 2px; background: var(--gradient-line); border: 0; margin: 0; }

main { max-width: 1180px; margin: 0 auto; padding: 32px 32px 64px; }
h1 { font-weight: 100; font-size: 40px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-weight: 100; font-size: 28px; margin: 32px 0 12px; }
h3 { font-weight: 300; font-size: 19px; margin: 18px 0 8px; }
.lede { color: var(--text-secondary); font-size: 17px; font-weight: 300; margin: 0 0 20px; max-width: 70ch; }
.label { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--azure); margin: 0 0 8px; }
.muted { color: var(--text-secondary); }
.small { font-size: 13px; }

.panel { background: var(--surface-glass); backdrop-filter: blur(var(--blur-panel)); -webkit-backdrop-filter: blur(var(--blur-panel));
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-glass); border-radius: 14px; padding: 20px 24px; margin: 0 0 20px; }
.panel.tint { background: var(--surface-azure); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--azure);
  padding: 10px 12px; border-bottom: 1px solid var(--border-strong); }
td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font: inherit; font-weight: 400;
  font-size: 14px; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: background 150ms ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--coral-soft); color: var(--coral-text); border-color: rgba(255, 79, 40, 0.35); }
.btn-primary:hover { background: var(--coral-soft-hover); }
.btn-secondary { background: var(--azure-soft); color: var(--azure-text); border-color: rgba(105, 133, 158, 0.35); }
.btn-secondary:hover { background: var(--azure-soft-hover); }
.btn-solid { background: var(--coral); color: #FFFFFF; }
.btn-solid:hover { background: #CC3E1F; }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border-strong); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

label { display: block; font-weight: 400; font-size: 14px; margin: 14px 0 6px; }
input[type=text], input[type=url], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-solid);
  font: inherit; color: var(--text-primary); }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(105, 133, 158, 0.45); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 300; }
.hint { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.sev { display: inline-block; min-width: 68px; text-align: center; padding: 2px 8px; border-radius: 999px; font-size: 11px;
  font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.sev-critical { background: var(--error); color: #FFFFFF; }
.sev-high { background: var(--error-tint); color: var(--error); }
.sev-medium { background: var(--warning-tint); color: var(--warning); }
.sev-low { background: var(--azure-soft); color: var(--azure-text); }
.sev-info { background: transparent; color: var(--text-tertiary); border: 1px solid var(--border-strong); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--azure-soft); color: var(--azure-text); }
.pill.ok { background: var(--success-tint); color: var(--success); }
.pill.bad { background: var(--error-tint); color: var(--error); }
.pill.warn { background: var(--warning-tint); color: var(--warning); }

.counts { display: flex; gap: 6px; flex-wrap: wrap; }
.stat { font-weight: 100; font-size: 36px; line-height: 1; }
.flash { padding: 12px 16px; border-radius: 10px; background: var(--success-tint); color: var(--success); margin-bottom: 16px; }
.reasons li { margin-bottom: 6px; }
details summary { cursor: pointer; color: var(--azure-text); }
.finding { padding: 14px 0; border-bottom: 1px solid var(--border); }
.finding:last-child { border-bottom: 0; }
.finding .title { font-weight: 400; }
.finding.resolved { opacity: .6; }
.req { padding: 14px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 90px 1fr 250px; gap: 16px; }
.req .opts { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.req .opts label { margin: 0; display: inline-flex; gap: 4px; font-weight: 300; }
.req input[type=text] { margin-top: 6px; padding: 6px 10px; }
.login-wrap { max-width: 380px; margin: 10vh auto; }

@media (max-width: 760px) {
  .topbar { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  main { padding: 20px 16px 48px; }
  .req { grid-template-columns: 1fr; }
  table, thead, tbody, tr, td, th { display: block; }
  thead { display: none; }
  td { border: 0; padding: 4px 0; }
  tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
}
.mt { margin-top: 22px; }
