:root {
  --bg: #070a09;
  --raised: #0d1210;
  --raised-2: #111814;
  --line: #18231d;
  --line-soft: #26362d;
  --text: #edf4ef;
  --muted: #8d9b92;
  --muted-2: #5f6d64;
  --accent: #72f59c;
  --accent-soft: rgba(114, 245, 156, .11);
  --success: #86efac;
  --warning: #d8b46f;
  --danger: #d88b91;
  --radius: 11px;
}

html, body { background: var(--bg); }
body { color: var(--text); }

.app-shell { width: min(100%, 700px); }
.topbar { height: 64px; border-bottom: 1px solid rgba(255,255,255,.025); }
.brand {
  gap: 9px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.brand-mark {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid #31443a;
  border-radius: 5px;
  transform: none;
  background: #0a0f0c;
}
.brand-mark span {
  position: absolute;
  top: 5px;
  width: 3px;
  height: 12px;
  border-radius: 1px;
  background: var(--accent);
}
.brand-mark span:first-child { left: 5px; }
.brand-mark span:last-child { right: 5px; opacity: .55; transform: none; }
.target-pill {
  border: 0;
  background: transparent;
  padding: 7px 0 7px 8px;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: #829088;
}
.target-dot { width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.view { min-height: calc(100vh - 64px); padding-top: 16px; }
.eyebrow { color: #627169; letter-spacing: .11em; font-size: 9px; }

.hero-block { padding-top: clamp(20px, 5vh, 52px); max-width: 560px; }
.hero-block h1 {
  margin: 12px 0 13px;
  max-width: 540px;
  font-size: clamp(38px, 9vw, 56px);
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 610;
}
.hero-block h1 span { color: var(--accent); }
.hero-copy { max-width: 500px; font-size: 15px; line-height: 1.5; color: #8f9a94; }

.scan-form {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px 9px;
  max-width: 580px;
}
.field-label { grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-size: 10px; color: #77847d; }
.repo-input-wrap {
  grid-column: 1;
  min-height: 72px;
  padding: 12px 13px 10px;
  background: #0b100d;
  border-color: #233129;
  border-radius: 10px;
}
.repo-input-wrap:focus-within { border-color: #4e8c64; background: #0d1410; }
.repo-prefix { margin-bottom: 4px; font-size: 10px; color: #536159; }
textarea { font-size: 14px; line-height: 1.4; }
textarea::placeholder { color: #465149; }
.scan-form .primary-button {
  grid-column: 2;
  grid-row: 2;
  min-height: 72px;
  height: 72px;
  padding: 0;
  border-radius: 10px;
  justify-content: center;
  color: #061009;
  background: var(--accent);
}
.scan-form .primary-button > span:first-child { display: none; }
.scan-form .button-arrow { font-size: 22px; font-weight: 600; }
.field-error { grid-column: 1 / -1; margin-top: 0; min-height: 17px; }
.home-footnote { display: none; }
.recent-section { margin-top: 46px; padding-top: 16px; }
.recent-row { padding: 14px 0; }
.recent-row .mono { color: #cbd5ce; }

.primary-button {
  border-radius: 10px;
  background: var(--accent);
  color: #061009;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.primary-button:hover { filter: brightness(1.02); }
.back-link { font-family: var(--mono); font-size: 10px; color: #7c8981; }
.quiet-button { border-color: #26362d; border-radius: 8px; font-family: var(--mono); font-size: 10px; }

.scan-orbit { border-color: #213027; }
.scan-orbit::after { background: var(--accent-soft); }
.repo-slug { color: #9eaaa2; }

.result-hero { padding: 22px 0 28px; }
.repo-line { margin-bottom: 30px; }
.provenance { border-color: #25342c; color: #67756d; }
.result-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(40px, 10vw, 62px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 610;
}
.verdict-native .result-hero h1 { color: var(--accent); }
.verdict-fixes .result-hero h1 { color: #a9ddb8; }
.verdict-partial .result-hero h1 { color: var(--warning); }
.verdict-fallback .result-hero h1 { color: #a1aca5; }
.result-summary { font-size: 15px; color: #8c9991; }
.metric-rail { border-color: var(--line); grid-template-columns: .9fr 1fr 1.45fr; }
.metric-rail > div + div { border-color: var(--line); }
.metric-rail > div:first-child strong { color: var(--accent); font-size: 20px; letter-spacing: -.04em; }
.metric-rail strong { color: #d7e0da; }
.metric-label { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.target-context { border-bottom: 1px solid rgba(255,255,255,.025); padding-bottom: 13px; }

.content-section { margin-top: 44px; }
.section-title-row h2 { font-size: 20px; font-weight: 590; }
.component-list, .finding-groups, details { border-color: var(--line); }
.component-row summary, .finding-group summary { min-height: 62px; }
.component-main strong { font-size: 14px; }
.component-main span, .finding-group summary span:not(.disclosure) { color: #647168; }
.component-score { color: #d1ddd5; }
.strategy-tag { color: #78877e; }
.finding-item { background: #0b100d; border-color: #1e2b24; border-radius: 9px; }
.finding-item p { color: #bdc8c1; }
.severity-low .severity-dot { background: #738179; }

.sticky-action { background: linear-gradient(to top, var(--bg) 72%, rgba(7,10,9,0)); }
.target-header { padding-top: 28px; }
.target-header h1 { font-size: clamp(34px, 9vw, 52px); font-weight: 610; }
.setting-row, .target-note { border-color: var(--line); }
.segmented span { border-color: #26362d; border-radius: 8px; }
.segmented input:checked + span { border-color: #4b8a61; background: var(--accent-soft); color: #bff6cf; }

.sheet { background: #0b100d; border-color: #24332b; }
.sheet-grabber { background: #33453b; }
.icon-button, .command-block, .copy-button { border-color: #26362d; }
.command-block { background: #070a09; }
.copy-button { background: #111814; color: #b8c5bd; }
.raw-json { color: #aab6ae; }

@media (max-width: 430px) {
  .topbar { height: 60px; }
  .view { min-height: calc(100vh - 60px); }
  .hero-block { padding-top: 16px; }
  .hero-block h1 { font-size: 39px; }
  .hero-copy { font-size: 14px; }
  .scan-form { margin-top: 26px; }
  .target-pill { font-size: 9px; }
  .result-hero h1 { font-size: 43px; }
}
