/* -- Results -------------------------------------------------------------- */
.results { width: 100%; max-width: 672px; display: flex; flex-direction: column; gap: 16px; }

/* Domain row -- centered */
.result-domain-row {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; text-align: center;
}
.result-domain-meta {
  display: flex; align-items: baseline; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.result-domain-name {
  font-family: var(--font-sans);
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 700; letter-spacing: -0.035em;
}
@media (max-width: 540px) { .result-domain-name { font-size: 32px; } }

.online-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--gn); box-shadow: 0 0 8px rgba(74,222,128,0.5);
}
.scan-mode-badge-deep { border-color: var(--acbd); color: var(--ac2); }
.scan-mode-badge {
  font-family: var(--font-mono); font-size: 11px; flex-shrink: 0;
  padding: 2px 6px; border-radius: 6px;
  background: var(--s2); border: 1px solid rgba(255,255,255,0.06); color: var(--t3);
  display: inline-flex; align-items: center;
  line-height: 1;
}
.share-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--t3);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; padding: 6px 10px;
  background: var(--s2); transition: color 0.15s, border-color 0.15s;
}
.share-btn:hover { color: var(--tx); border-color: rgba(255,255,255,0.15); }
.badge-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--t3);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; padding: 6px 10px;
  background: var(--s2); cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.badge-btn:hover { color: var(--tx); border-color: rgba(255,255,255,0.15); }
.scan-time { font-family: var(--font-mono); font-size: 11px; color: var(--t4); line-height: 1; }
.scan-finding-count { font-family: var(--font-mono); font-size: 11px; color: var(--t4); line-height: 1; }

/* Badge modal */
.badge-modal-backdrop {
  position: fixed; inset: 0; background: rgba(8,8,13,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 16px; padding-bottom: 20vh;
}
.badge-modal {
  position: relative;
  background: var(--s1); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 24px; width: 100%; max-width: 520px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.badge-modal-header { display: flex; align-items: center; justify-content: space-between; }
.badge-modal-title { font-size: 15px; font-weight: 600; color: var(--tx); }
.badge-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(10,10,15,0.95);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  cursor: pointer;
  color: #e2e8f0;
  padding: 6px 10px;
  line-height: 1;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.badge-modal-close:hover {
  background: rgba(10,10,15,1);
  border-color: rgba(255,255,255,0.4);
}
.badge-preview {
  display: flex; align-items: center; gap: 12px;
  background: var(--s2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 16px;
}
.badge-preview-label {
  font-size: 12px; color: var(--t3); white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center;
}
.badge-preview img {
  display: block;
  vertical-align: middle;
}
.badge-embed-section { display: flex; flex-direction: column; gap: 8px; }
.badge-embed-label { font-size: 12px; color: var(--t3); }
.badge-embed-row {
  display: flex; align-items: stretch; gap: 0;
  background: var(--s2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; overflow: hidden;
}
.badge-embed-code {
  flex: 1; font-family: var(--font-mono); font-size: 11px; color: var(--t2);
  background: none; border: none; padding: 10px 12px;
  white-space: pre-wrap; word-break: break-all; user-select: all;
}
.badge-copy-btn {
  font-family: var(--font-mono); font-size: 11px; color: var(--t3);
  background: var(--s3); border: none; border-left: 1px solid rgba(255,255,255,0.06);
  padding: 10px 14px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.badge-copy-btn:hover { background: var(--s2); color: var(--tx); }
.badge-copy-btn.copied { color: var(--gn); }

/* Cards */
.card {
  background: var(--s1); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r); box-shadow: none;
}
.card-p  { padding: 20px; }
.card-sm { padding: 16px; }

/* -- Grade card ----------------------------------------------------------- */
.gc {
  position: relative; overflow: hidden;
  background: var(--s1); border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}
/* Grade-colored border -- data-grade-color set by JS: Aplus, A, B, C, D, F */
.gc[data-grade-color="Aplus"], .gc[data-grade-color="A"] { border-color: var(--gnbd); }
.gc[data-grade-color="B"]  { border-color: rgba(45,212,191,0.18); }
.gc[data-grade-color="C"]  { border-color: var(--ambd); }
.gc[data-grade-color="D"], .gc[data-grade-color="F"] { border-color: var(--rdbd); }

.gc-top-bar {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--rd), var(--am));
}
.gc[data-grade-color="Aplus"] .gc-top-bar,
.gc[data-grade-color="A"]  .gc-top-bar { background: linear-gradient(90deg, var(--gn), var(--tl)); }
.gc[data-grade-color="B"]  .gc-top-bar { background: linear-gradient(90deg, var(--tl), var(--gn)); }
.gc[data-grade-color="C"]  .gc-top-bar { background: linear-gradient(90deg, var(--am), var(--rd)); }
.gc[data-grade-color="D"]  .gc-top-bar,
.gc[data-grade-color="F"]  .gc-top-bar { background: linear-gradient(90deg, var(--rd), var(--am)); }

.gc-body {
  display: flex; align-items: flex-start; gap: 28px;
  padding: 32px;
}

/* Ring column */
.gc-ring-col { flex-shrink: 0; }
.gc-ring-wrap {
  position: relative;
  width: 130px; height: 130px;
}
.gc-ring {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.gc-ring-bg {
  fill: none; stroke: rgba(255,255,255,0.04); stroke-width: 5;
}
.gc-ring-fill {
  fill: none; stroke: var(--rd); stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 364.4; /* 2 * PI * 58 */
  stroke-dashoffset: 364.4; /* starts empty */
  transition: stroke-dashoffset 1.2s cubic-bezier(.22,1,.36,1);
}
.gc-ring-inner {
  fill: none; stroke: rgba(255,255,255,0.03); stroke-width: 1;
}
/* Ring stroke color per grade */
.gc[data-grade-color="Aplus"] .gc-ring-fill,
.gc[data-grade-color="A"]  .gc-ring-fill { stroke: var(--gn); }
.gc[data-grade-color="B"]  .gc-ring-fill { stroke: var(--tl); }
.gc[data-grade-color="C"]  .gc-ring-fill { stroke: var(--am); }
.gc[data-grade-color="D"]  .gc-ring-fill,
.gc[data-grade-color="F"]  .gc-ring-fill { stroke: var(--rd); }

/* Pulsating ring glow for A+ and AA+ grades */
.gc[data-grade-color="Aplus"] .gc-ring-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gn);
  opacity: 0;
  animation: rippleRing 3s ease-out;
  animation-iteration-count: 3;
}
.gc[data-grade-color="Aplus"] .gc-ring-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gn);
  opacity: 0;
  animation: rippleRing 3s ease-out;
  animation-delay: 1.5s;
  animation-iteration-count: 3;
}

.gc-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.grade-letter {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 56px; line-height: 1;
  white-space: nowrap; position: relative; display: inline-block;
}
.grade-letter.grade-multi { font-size: 44px; }

.grade-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--t4); letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 4px;
}

.grade-Aplus { color: var(--gn);  filter: none; }
.grade-plus  { font-size: 26px; position: absolute; top: -0.02em; right: -0.46em; line-height: 1; color: var(--gn2); font-weight: 700; }
.grade-A { color: var(--gn);  filter: none; }
.grade-B { color: var(--tl);  filter: none; }
.grade-C { color: var(--am);  filter: none; }
.grade-D { color: var(--rd);  filter: none; }
.grade-F { color: var(--rd);  filter: none; }

/* Info column */
.gc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 4px; }

.gc-verdict {
  font-family: var(--font-sans); font-size: 15px;
  color: var(--t2); line-height: 1.5;
  margin-bottom: 0;
}
.gc[data-grade-color="Aplus"] .gc-verdict { color: var(--gn); font-weight: 500; }

.gc-disclaimer {
  font-family: var(--font-sans); font-size: 13px;
  color: var(--t4); line-height: 1.5;
  margin-top: 0;
}
.gc-disclaimer.hidden { display: none; }

/* Health bar */
.gc-health { width: 100%; }
.health-label-row {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px;
}
.health-label-text {
  font-family: var(--font-sans); font-size: 13px; color: var(--t3); font-weight: 400;
}
.health-pct {
  font-family: var(--font-mono); font-weight: 600; font-size: 22px; line-height: 1;
}
.health-track {
  height: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,0.07);
}
.bar-fill {
  height: 100%; border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.4,0,0.2,1);
}

/* Progress nudge */
.gc-nudge {
  display: flex; align-items: center; gap: 8px;
  background: var(--gnbg); border: 1px solid var(--gnbd);
  border-radius: 10px; padding: 8px 12px;
  font-size: 13px; color: var(--gn);
}
.gc-nudge strong { color: var(--gn2); }

/* Action buttons row */
.gc-actions {
  display: flex; align-items: center; gap: 6px;
  margin-top: 16px;
}
.gc-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--t3); background: var(--s2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px; padding: 4px 10px;
  text-decoration: none; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.gc-action-btn:hover { color: var(--tx); border-color: rgba(255,255,255,0.15); }
/* A+ badge button highlight */
.gc[data-grade-color="Aplus"] .badge-btn {
  background: var(--gnbg); border-color: var(--gnbd); color: var(--gn2);
}

/* Severity counts */
.sev-counts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sev-group  { display: flex; align-items: center; gap: 6px; }
.risk-score-text { font-family: var(--font-mono); font-size: 12px; color: var(--t3); }
.risk-score-hint { color: var(--t4); font-size: 11px; }

/* Severity badges */
.sev-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 10px;
  padding: 1px 6px; border-radius: var(--rs);
  flex-shrink: 0; margin-top: 3px;
}
.sev-C { background: rgba(255, 0, 0, 0.12); color: #ff0000; border: 1px solid rgba(255, 0, 0, 0.3); font-weight: 700; }
.sev-H { background: var(--rdbg); color: var(--rd); border: 1px solid var(--rdbd); font-weight: 700; }
.sev-M { background: var(--ambg); color: var(--am); border: 1px solid var(--ambd); font-weight: 700; }
.sev-L { background: var(--acbg); color: var(--ac2); border: 1px solid var(--acbd); font-weight: 700; }

/* -- Scan coverage grid --------------------------------------------------- */
.coverage {
  background: var(--s1); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 16px;
}
.coverage-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.coverage-title {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--t2);
}
.coverage-count {
  font-family: var(--font-mono); font-size: 12px; color: var(--t4);
  text-align: right;
}
.coverage-count.all-pass { color: var(--gn); }
.coverage-count-link {
  cursor: pointer;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.1);
  color: var(--gn);
  font-weight: 500;
  transition: all 0.15s ease;
}
.coverage-count-link:hover {
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.5);
}
.coverage-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
}
.coverage-item {
  display: flex; align-items: center; gap: 6px;
  background: var(--s2); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px; padding: 6px 8px;
  transform: translateY(0);
}
.coverage-item:hover {
  transform: translateY(0);
}
.coverage-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.coverage-dot.dot-pass { background: var(--gn); }
.coverage-dot.dot-fail { background: var(--rd); }
.coverage-dot.dot-warn { background: var(--am); }
.coverage-name {
  font-family: var(--font-sans); font-size: 12px; color: var(--t2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.coverage-ratio {
  font-family: var(--font-mono); font-size: 11px; color: var(--t4);
  flex-shrink: 0; margin-left: auto;
}

/* -- All clear (no issues) ------------------------------------------------ */
.all-clear { text-align: center; padding: 36px; }
.all-clear-icon-wrap {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gnbg); border: 1px solid var(--gnbd);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: var(--gn);
}
.all-clear-title { font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: var(--gn); }
.all-clear-sub   { font-family: var(--font-sans); font-size: 16px; color: var(--t3); margin-top: 6px; font-weight: 500; }
.all-clear-deep-notice { 
  font-family: var(--font-sans); font-size: 13px; color: var(--t3); 
  margin-top: 16px; display: none; 
}
.all-clear-deep-notice .deep-scan-link {
  color: var(--ac); text-decoration: none; font-weight: 500;
  transition: color 0.15s;
}
.all-clear-deep-notice .deep-scan-link:hover { color: var(--ac2); }

/* Mobile grade card */
@media (max-width: 540px) {
  .gc-body { flex-direction: column; align-items: center; gap: 20px; padding: 24px; }
  .gc-ring-wrap { width: 110px; height: 110px; }
  .grade-letter { font-size: 44px; }
  .grade-letter.grade-multi { font-size: 36px; }
  .grade-plus { font-size: 22px; }
  .health-pct { font-size: 18px; }
  .gc-info { align-items: center; text-align: center; }
  .gc-verdict { font-size: 14px; }
  .gc-actions { justify-content: center; }
  .gc-action-btn { font-size: 10px; padding: 4px 8px; }
  .gc-action-btn svg { display: none; }
  .coverage-items { grid-template-columns: repeat(2, 1fr); }
}

/* Top action -- legacy, hidden */
.top-action { display: none !important; }
.top-action--clear { display: none !important; }

/* -- What this means ------------------------------------------------------ */
.whats-this {
  background: var(--ambg); border: 1px solid var(--ambd);
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: var(--am2); line-height: 1.6; margin-bottom: 12px;
}
.whats-this strong { font-weight: 700; color: var(--am); }

/* -- Top fixes card ------------------------------------------------------- */
.top3-card { padding: 16px 20px; }
.top3-header {
  font-size: 10px; font-weight: 700; color: var(--t3);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}
.top3-list { display: flex; flex-direction: column; }
.top3-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.top3-item:last-child { border-bottom: none; }
.top3-sev {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  border-radius: 3px; padding: 2px 6px; text-transform: uppercase;
  flex-shrink: 0; min-width: 32px; text-align: center;
}
.top3-sev.sev-C { background: rgba(255, 0, 0, 0.12); color: #ff0000; border-color: rgba(255, 0, 0, 0.3); }
.top3-sev.sev-H { background: var(--rdbg); color: var(--rd); border-color: var(--rdbd); }
.top3-sev.sev-M { background: var(--ambg); color: var(--am); border-color: var(--ambd); }
.top3-sev.sev-L { background: var(--acbg); color: var(--ac2); border-color: var(--acbd); }
.top3-title { flex: 1; font-size: 13px; color: var(--tx); line-height: 1.4; }
.top3-gain  { font-size: 11px; font-weight: 700; color: var(--gn); white-space: nowrap; flex-shrink: 0; }
.top3-fix-btn {
  font-size: 11px; font-weight: 600; background: var(--ac); color: #fff;
  border: none; border-radius: 4px; padding: 5px 10px; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; font-family: var(--font-sans);
  transition: background 0.15s;
}
.top3-fix-btn:hover { background: #6a58d6; }
.top3-potential {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--gnbg); border: 1px solid var(--gnbd);
  border-radius: 8px; padding: 9px 14px; margin-top: 12px;
  font-size: 13px; color: var(--gn);
}
.top3-potential strong { font-weight: 700; color: var(--gn2); }
.top3-potential-arrow { color: var(--gn); font-size: 16px; }

/* -- Section divider ---------------------------------------------------- */
.section-divider {
  margin: 32px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-divider-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
}

/* -- Observed configuration card ---------------------------------------- */
.observed-config-card { 
  padding: 16px 20px; 
  background: var(--s1) !important; 
  border-color: rgba(255,255,255,0.06) !important; 
  box-shadow: none !important; 
}
.observed-config-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.observed-config-row:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.observed-config-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--t4);
  min-width: 120px;
  flex-shrink: 0;
}
.observed-config-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--t2);
  font-weight: 500;
}
.observed-config-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

/* -- Section divider ---------------------------------------------------- */
.section-divider {
  margin: 24px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-divider-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
}

/* -- TLS card ------------------------------------------------------------- */
.tls-compact-card { padding: 10px 14px; color: var(--t3); font-size: 13px; background: var(--s1) !important; border-color: rgba(255,255,255,0.06) !important; box-shadow: none !important; }
.tls-compact-row  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tls-compact-sep  { color: var(--t4); font-size: 12px; }
.tls-ok   { background: var(--gnbg); color: var(--gn); border: 1px solid var(--gnbd); }
.tls-warn { background: var(--ambg); color: var(--am); border: 1px solid var(--ambd); }
.tls-bad  { background: var(--rdbg); color: var(--rd); border: 1px solid var(--rdbd); }

/* Tooltip */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-wrap .tooltip {
  display: block; position: absolute;
  bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font-family: var(--font-sans); font-size: 11px;
  padding: 6px 10px; border-radius: 5px; pointer-events: none; z-index: 200;
  background: var(--s3); border: 1px solid rgba(255,255,255,0.08); color: var(--t2);
  opacity: 0; visibility: hidden;
  transition: opacity 0.12s, visibility 0.12s; transition-delay: 0s;
  line-height: 1.5;
  width: max-content;
  max-width: 350px;
}
/* Mobile: adjust positioning to prevent overflow */
@media (max-width: 768px) {
  .tooltip-wrap .tooltip {
    left: 0; transform: none;
    max-width: min(300px, calc(100vw - 40px));
  }
}
.tooltip-wrap:hover .tooltip { opacity: 1; visibility: visible; transition-delay: 150ms; }

/* -- Findings ------------------------------------------------------------- */
.findings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.findings-title  {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  color: var(--t4); text-transform: uppercase; letter-spacing: 0.08em;
}
.findings-count  { font-family: var(--font-mono); font-size: 12px; color: var(--t4); }
.findings-list   { display: flex; flex-direction: column; gap: 8px; }
.findings-header-right { display: flex; align-items: center; gap: 8px; }

/* Severity filter pills */
.sev-filter-pills {
  display: flex; gap: 2px;
}
.sev-pill {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--t4); background: var(--lo-bg);
  border: 1px solid var(--lo-bd); border-radius: 4px;
  padding: 2px 8px; cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.sev-pill:hover { color: var(--t2); border-color: rgba(255,255,255,0.12); }
.sev-pill-active {
  color: var(--ac2); background: var(--acbg);
  border-color: var(--acbd);
}

/* Standards filter */
.std-filter-wrap { position: relative; }
.std-filter-select {
  font-family: var(--font-mono); font-size: 11px; color: var(--t2);
  background-color: var(--s1); border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 3px 22px 3px 8px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238e8d9e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center;
  cursor: pointer; transition: border-color 0.15s;
}
.std-filter-select:hover { border-color: var(--ac); color: var(--tx); }
.std-filter-select:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px rgba(124,106,239,0.15); }
.std-filter-select option { background: var(--s2); color: var(--tx); }
.std-filter-tip {
  display: block; position: absolute;
  top: calc(100% + 6px); right: 0; z-index: 200;
  width: 260px; font-size: 11px; font-family: var(--font-sans);
  line-height: 1.5; color: var(--t2);
  background: var(--s2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 8px 10px; pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  opacity: 0; transition: opacity 0.15s;
}
.std-filter-wrap:hover .std-filter-tip,
.std-filter-wrap:focus-within .std-filter-tip { opacity: 1; transition-delay: 150ms; }
.std-empty {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 14px; font-size: 13px; color: var(--t3);
  border: 1px dashed rgba(255,255,255,0.06); border-radius: 10px;
}

/* Finding rows */
.finding {
  padding: 0;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--s1); border-radius: 10px;
  transition: border-color 0.15s;
}
.finding:hover { border-color: rgba(255,255,255,0.12); }
.finding.is-open { border-color: var(--acbd); }

.finding-header {
  cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 10px 10px 0 0;
  transition: background 0.15s, border-color 0.15s;
}
.finding-header:hover { background: rgba(255,255,255,0.04); }
.finding.is-open .finding-header {
  background: rgba(255,255,255,0.03);
  border-bottom-color: rgba(255,255,255,0.06);
}

.finding.sev-C .finding-header { background: rgba(255, 0, 0, 0.12); border-left-color: #ff0000; }
.finding.sev-H .finding-header { background: var(--rdbg); border-left-color: var(--rd); }
.finding.sev-M .finding-header { background: var(--ambg); border-left-color: var(--am); }
.finding.sev-L .finding-header { background: var(--s2); border-left-color: var(--acbd); }

.finding.sev-C .finding-header:hover { background: rgba(255, 0, 0, 0.15); }
.finding.sev-H .finding-header:hover { background: rgba(248,113,113,0.09); }
.finding.sev-M .finding-header:hover { background: rgba(251,191,36,0.09); }
.finding.sev-L .finding-header:hover { background: var(--s3); }

.finding.sev-C.is-open .finding-header { background: rgba(255, 0, 0, 0.15); border-bottom-color: rgba(255, 0, 0, 0.3); }

.finding.sev-H.is-open .finding-header { background: rgba(248,113,113,0.09); border-bottom-color: var(--rdbd); }
.finding.sev-M.is-open .finding-header { background: rgba(251,191,36,0.09); border-bottom-color: var(--ambd); }
.finding.sev-L.is-open .finding-header { background: var(--s3); border-bottom-color: rgba(255,255,255,0.06); }

.finding-meta       { flex: 1; min-width: 0; }
.finding-title-row  { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.finding-title      { font-size: 13px; color: var(--tx); font-weight: 400; }
.finding-right      { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.finding-scheme     { font-family: var(--font-mono); font-size: 11px; color: var(--t4); }
.js-rec             { padding: 12px; background: var(--s2); }
.finding-evidence   { font-family: var(--font-mono); font-size: 12px; color: var(--t3); margin-top: 2px; display: none; }
.finding.is-open .finding-evidence { display: block; }
.js-chevron         { color: var(--t4); transition: transform 0.2s; }

.finding.sev-H .finding-title,
.finding.sev-M .finding-title,
.finding.sev-L .finding-title { color: var(--tx); }
.finding.sev-H .finding-scheme,
.finding.sev-M .finding-scheme { color: var(--t3); }
.finding.sev-H .js-chevron,
.finding.sev-M .js-chevron { color: var(--t3); }
.finding.sev-H .finding-evidence,
.finding.sev-M .finding-evidence { color: var(--t3); }

/* Priority markers ("fix first") */
.finding-priority .finding-header {
  border-left: 3px solid var(--ac) !important;
}
.finding-priority-col {
  display: flex; align-items: center; flex-shrink: 0;
}
.fix-first-pill {
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ac2); background: var(--acbg);
  border: 1px solid var(--acbd);
  border-radius: 3px; padding: 1px 6px;
  white-space: nowrap;
}
.finding-impact {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--gn); white-space: nowrap;
}
.finding-cat {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--t4); white-space: nowrap;
}

/* Mobile: drop "fix first" pill text, keep purple border */
@media (max-width: 540px) {
  .fix-first-pill { display: none; }
  .finding-priority-col { display: none; }
}

/* Expanded rec panel */
.rec-body { display: flex; flex-direction: column; gap: 12px; }
.rec-why  { font-size: 14px; color: var(--t2); line-height: 1.65; margin: 0; }

.rec-tags-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.std-tag-wrap { position: relative; display: inline-flex; }
.std-tag {
  font-size: 10px; font-family: var(--font-mono);
  color: var(--t3); background: var(--lo-bg);
  border: 1px solid var(--lo-bd); border-radius: 5px;
  padding: 2px 7px; white-space: nowrap; cursor: default;
}
.std-tag-tip {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 100;
  width: 240px; font-size: 11px; font-family: var(--font-sans);
  line-height: 1.5; color: var(--tx);
  background: var(--s3); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 8px 10px; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.12s, visibility 0.12s;
}
.std-tag-wrap:hover .std-tag-tip { opacity: 1; visibility: visible; transition-delay: 150ms; }

.rec-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.how-to-fix-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-family: var(--font-mono);
  color: #fff; background: var(--ac);
  border: none; border-radius: 6px; cursor: pointer;
  padding: 5px 12px; font-weight: 600; letter-spacing: 0.01em;
  transition: background 0.15s;
}
.how-to-fix-btn:hover { background: #6a58d6; }

.rec-effort {
  font-size: 11px; font-family: var(--font-mono);
  color: var(--t3); background: var(--lo-bg);
  border: 1px solid var(--lo-bd); border-radius: 4px; padding: 2px 8px;
}
.rec-gain {
  font-size: 11px; font-family: var(--font-mono);
  color: var(--gn); background: var(--gnbg);
  border: 1px solid var(--gnbd); border-radius: 4px; padding: 2px 8px;
}

/* Tech section */
.tech-section { display: none; flex-direction: column; gap: 10px; }
.rec-box {
  background: var(--bg); border: 1px solid var(--acbd);
  border-radius: 8px; padding: 10px 12px;
}
.rec-box-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rec-box-label { font-size: 11px; font-family: var(--font-mono); color: var(--t3); }
.rec-header-value {
  font-size: 12px; font-family: var(--font-mono);
  color: var(--ac2); font-weight: 600; word-break: break-all;
}
.rec-stack-label { font-size: 11px; color: var(--t3); margin: 0 0 6px; font-family: var(--font-mono); }

.rec-tabbed-box {
  background: #f6f7f9; border: none;
  border-radius: 8px; overflow: hidden;
}
.rec-tabs-row, .rec-fw-tabs {
  display: flex; border-bottom: 1px solid rgba(0,0,0,0.12);
  padding: 0 4px; overflow-x: auto; background: #b7b7b7;
}
.rec-tab, .rec-fw-tab {
  display: inline-flex; align-items: center;
  padding: 6px 12px; font-size: 11px;
  font-family: var(--font-mono); cursor: pointer;
  border: none; border-bottom: 2px solid transparent;
  background: none; color: #000000;
  white-space: nowrap; transition: color 0.15s, border-color 0.15s;
}
.rec-tab:hover, .rec-fw-tab:hover { color: #000000; }
.rec-tab-active, .rec-fw-tab-active {
  color: #000000 !important;
  border-bottom-color: #000000 !important;
  font-weight: 600;
}
.rec-tab-detected { opacity: 0.55; font-size: 10px; margin-left: 4px; }

.rec-code-copy-row { display: flex; justify-content: flex-end; padding: 4px 8px 0; background: #f6f7f9; }
.rec-pre {
  padding: 4px 14px 12px;
  font-size: 13px; font-family: var(--font-mono);
  color: #000000; font-weight: 100; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word; margin: 0;
  background: #f6f7f9;
}
@media (max-width: 540px) { .rec-pre { font-size: 12px; } }

.rec-copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-family: var(--font-mono);
  color: #000000; background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 5px; padding: 3px 8px;
  cursor: pointer; transition: color 0.15s, background 0.15s;
}
.rec-copy-btn:hover { color: #000; background: rgba(0, 0, 0, 0.12); }

/* -- All clear ------------------------------------------------------------ */
.all-clear       { text-align: center; padding: 40px; background: var(--gnbg); border: 1px solid var(--gnbd); }
.all-clear-icon  { font-size: 30px; margin-bottom: 8px; }
.all-clear-title { color: var(--gn); font-weight: 500; }
.all-clear-sub   { font-size: 15px; color: var(--t3); margin-top: 6px; font-weight: 500; }
.all-clear-deep-notice { font-size: 12px; color: var(--t3); margin-top: 16px; }

/* -- Results footer ------------------------------------------------------- */
.results-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.reset-btn {
  font-family: var(--font-mono); font-size: 12px; color: var(--t3);
  background: none; border: none; transition: color 0.15s;
}
.reset-btn:hover { color: var(--tx); }
.passive-note {
  font-family: var(--font-mono); font-size: 12px; color: var(--t3);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color 0.15s; text-decoration: underline; text-decoration-style: dotted;
  text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.12);
}
.passive-note:hover { color: var(--tx); }
.raw-results-link {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ac2); background: none; border: none; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: rgba(124,106,239,0.3);
}
.raw-results-link:hover { color: var(--ac); }

/* -- Deep scan CTA -------------------------------------------------------- */
.deep-scan-cta { max-width: 640px; margin: 12px auto 20px; }
.deep-scan-cta-inline { margin-bottom: 16px; }
.deep-scan-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; background: var(--acbg);
  border: 1px solid var(--acbd); border-radius: 10px;
  padding: 12px 16px; flex-wrap: wrap;
}
.deep-scan-cta-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.deep-scan-cta-label { font-size: 13px; font-weight: 600; color: var(--ac2); font-family: var(--font-mono); }
.deep-scan-cta-label::after { content: ''; }
.deep-scan-cta-sub { font-size: 13px; color: var(--t3); line-height: 1.45; }
.deep-scan-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  background: var(--ac); border: none; border-radius: 8px; color: #fff;
  padding: 8px 16px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  text-decoration: none; transition: background 0.15s, transform 0.1s;
}
.deep-scan-cta-btn:hover { background: #6a58d6; color: #fff; }

