:root {
  --primary: var(--sc-color-brand-500);
  --primary-foreground: #ffffff;
  --accent: #ff7a59;
  --accent-foreground: #ffffff;
  --background: var(--sc-color-surface);
  --surface: var(--sc-color-canvas);
  --card: var(--sc-color-surface);
  --muted: var(--sc-color-surface-muted);
  --foreground: var(--sc-color-ink);
  --muted-foreground: var(--sc-color-muted);
  --border: var(--sc-color-border);
  --font-heading: var(--sc-font-display);
  --font-body: var(--sc-font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --space-1: var(--sc-space-1);
  --space-2: var(--sc-space-2);
  --space-3: var(--sc-space-3);
  --space-4: var(--sc-space-4);
  --space-5: var(--sc-space-5);
  --space-6: var(--sc-space-6);
  --space-8: var(--sc-space-8);
  --space-10: var(--sc-space-10);
  --space-12: var(--sc-space-12);
  --space-16: var(--sc-space-16);
  --space-20: var(--sc-space-20);
  --radius-sm: var(--sc-radius-sm);
  --radius-md: var(--sc-radius-md);
  --radius-lg: var(--sc-radius-lg);
  --radius-xl: var(--sc-radius-xl);
  --radius-pill: var(--sc-radius-pill);
  --shadow-1: var(--sc-shadow-sm);
  --shadow-2: var(--sc-shadow-sm);
  --shadow-4: var(--sc-shadow-md);
  --shadow-primary-glow: 0 8px 20px rgba(244, 84, 35, 0.2);
  --transition-fast: var(--sc-motion-fast) var(--sc-ease);
  --transition-normal: var(--sc-motion-base) var(--sc-ease);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.detector-page {
  margin: 0;
  color: var(--foreground);
  background: var(--surface);
  font-family: var(--font-body);
}

.main-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: var(--space-10) 0 var(--space-20);
}

.detector-page .hero-section {
  padding-top: var(--space-6);
  margin-bottom: var(--space-12);
  background: transparent !important;
  text-align: center;
}

.badge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .4rem .8rem;
  margin-bottom: var(--space-4);
  border: 1px solid var(--sc-color-brand-200);
  border-radius: var(--radius-pill);
  color: var(--sc-color-brand-700);
  background: var(--sc-color-brand-50);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge-dot {
  width: .48rem;
  height: .48rem;
  border-radius: var(--radius-pill);
  background: var(--sc-color-brand-600);
  box-shadow: 0 0 0 3px rgba(244, 84, 35, .25);
}

.sugarcube-display {
  margin: 0 0 var(--space-4);
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.sugarcube-display .highlight-green { color: var(--sc-color-brand-500); }

.hero-subhead {
  max-width: 720px;
  margin: 0 auto var(--space-6);
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.6;
}

.privacy-banner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted-foreground);
  background: var(--card);
  box-shadow: var(--shadow-1);
  font-size: .875rem;
}

.privacy-banner strong { color: var(--foreground); }

.detector-card {
  padding: var(--space-8);
  margin-bottom: var(--space-16);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-4);
}

.dropzone-container {
  padding: var(--space-12) var(--space-6);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  outline: 0;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.dropzone-container:hover,
.dropzone-container.drag-over,
.dropzone-container:focus-visible {
  border-color: var(--sc-color-brand-500);
  background: var(--sc-color-brand-50);
  box-shadow: var(--shadow-primary-glow);
}

.dropzone-icon {
  display: flex;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--sc-color-brand-600);
  background: var(--sc-color-brand-50);
  font-size: 1.75rem;
}

.dropzone-title {
  margin: 0 0 var(--space-2);
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.dropzone-desc {
  margin: 0 0 var(--space-5);
  color: var(--muted-foreground);
  font-size: .9rem;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  padding: var(--space-3) var(--space-5);
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: 700 .875rem/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: filter var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn.lg { min-height: 44px; padding-inline: var(--space-6); font-size: .95rem; }
.btn.primary { color: var(--primary-foreground); background: var(--sc-color-brand-600); box-shadow: var(--shadow-primary-glow); }
.btn.primary:hover { filter: brightness(.92); }
.btn.secondary { color: var(--foreground); background: var(--card); border-color: var(--border); }
.btn.secondary:hover { background: var(--muted); }
.btn:disabled { opacity: .62; cursor: not-allowed; filter: none; }
.btn:focus-visible,
.filter-btn:focus-visible { outline: 3px solid rgba(244, 84, 35, .32); outline-offset: 2px; }
.dropzone-container[aria-disabled="true"] { opacity: .72; cursor: wait; }

.detector-error {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--sc-color-danger);
  border-radius: var(--radius-md);
  color: var(--sc-color-danger);
  background: var(--sc-color-danger-soft);
  font-size: .875rem;
}

.scanning-state { display: none; padding: var(--space-8) var(--space-4); text-align: center; }
.scanning-state h3 { margin: 0 0 var(--space-2); color: var(--foreground); font: 700 1.25rem/1.3 var(--font-heading); }
.scanning-state > p { margin: 0; color: var(--muted-foreground); font-size: .9rem; }
.scanning-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  border: 3px solid var(--muted);
  border-top-color: var(--sc-color-brand-500);
  border-radius: 50%;
  animation: detector-spin 1s linear infinite;
}

.scan-step-list { max-width: 440px; margin: var(--space-6) auto 0; text-align: left; }
.scan-step-item {
  display: flex;
  padding: var(--space-2) 0;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px dashed var(--border);
  color: var(--muted-foreground);
  font-size: .9rem;
}
.scan-step-item.active { color: var(--sc-color-brand-600); font-weight: 600; }
.scan-step-item.completed { color: var(--sc-color-success); }

.results-dashboard { display: none; animation: detector-fade .3s ease-out forwards; }
.dashboard-header {
  display: flex;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.dashboard-title { color: var(--foreground); font: 600 1.1rem/1.4 var(--font-heading); }
.file-meta-info { margin-top: .2rem; color: var(--muted-foreground); font-size: .85rem; }
.dashboard-actions { display: flex; gap: var(--space-3); }

.results-grid { display: grid; grid-template-columns: 320px 1fr; gap: var(--space-6); }
.score-card,
.visualizer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.score-card { display: flex; padding: var(--space-6); align-items: center; flex-direction: column; text-align: center; }
.visualizer-card { padding: var(--space-5); }

.confidence-summary {
  width: min(100%, 280px);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  border: 1px solid var(--sc-color-brand-200);
  border-radius: var(--radius-xl);
  background: var(--sc-color-brand-50);
}
.confidence-kicker { color: var(--muted-foreground); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.confidence-score {
  display: flex;
  margin-top: var(--space-2);
  align-items: baseline;
  justify-content: center;
  color: var(--foreground);
  font: 800 clamp(2.75rem, 6vw, 4rem)/1 var(--font-heading);
  font-variant-numeric: tabular-nums;
}
.confidence-score-total { margin-left: .25rem; color: var(--muted-foreground); font-size: 1rem; font-weight: 700; }
.confidence-grade { margin-top: var(--space-2); color: var(--muted-foreground); font-size: .85rem; font-weight: 700; }
.confidence-high { color: var(--sc-color-danger); }
.confidence-medium,
.confidence-low { color: var(--sc-color-warning); }
.confidence-none { color: var(--sc-color-brand-700); }

.verdict-badge { padding: var(--space-2) var(--space-4); margin-bottom: var(--space-4); border-radius: var(--radius-pill); font-size: .9rem; font-weight: 700; }
.verdict-strong { color: var(--sc-color-danger); background: rgba(180, 35, 53, .1); border: 1px solid rgba(180, 35, 53, .2); }
.verdict-some { color: var(--sc-color-warning); background: rgba(180, 83, 9, .1); border: 1px solid rgba(180, 83, 9, .2); }
.verdict-none { color: var(--sc-color-brand-700); background: var(--sc-color-brand-50); border: 1px solid var(--sc-color-brand-200); }
.result-conclusion { margin: calc(var(--space-4) * -1) 0 var(--space-4); color: var(--muted-foreground); font-size: .82rem; line-height: 1.5; }
.generator-tag { width: 100%; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted-foreground); background: var(--card); font-size: .85rem; }
.score-caveat { margin: var(--space-4) 0 0; color: var(--muted-foreground); font-size: .78rem; line-height: 1.5; }

.visualizer-toolbar { display: flex; margin-bottom: var(--space-4); align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.visualizer-title { font-size: .95rem; font-weight: 700; }
.filter-btn-group { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); }
.filter-btn { padding: var(--space-1) var(--space-3); border: 0; border-radius: var(--radius-sm); color: var(--muted-foreground); background: transparent; font: 600 .8rem/1.4 var(--font-body); cursor: pointer; }
.filter-btn.active { color: #fff; background: var(--sc-color-brand-600); }
.canvas-wrapper {
  display: flex;
  position: relative;
  width: 100%;
  min-height: 280px;
  max-height: 400px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--sc-color-canvas);
}
.canvas-wrapper img,
.canvas-wrapper canvas { max-width: 100%; max-height: 400px; object-fit: contain; }
.visualizer-note { margin: calc(var(--space-2) * -1) 0 var(--space-3); color: var(--muted-foreground); font-size: .75rem; line-height: 1.5; }

.forensic-section { margin-top: var(--space-8); }
.section-subtitle { margin: 0 0 var(--space-4); color: var(--foreground); font: 600 1.25rem/1.4 var(--font-heading); }
.vector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.card-vector { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.vector-header { display: flex; margin-bottom: var(--space-2); align-items: center; justify-content: space-between; }
.vector-title { display: flex; align-items: center; gap: var(--space-2); font-size: .9rem; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); }
.status-detected { background: var(--sc-color-danger); }
.status-clean { background: var(--sc-color-brand-600); }
.status-neutral { background: var(--sc-color-subtle); }
.vector-value { margin-bottom: .25rem; color: var(--foreground); font-size: .9rem; font-weight: 700; }
.vector-desc { color: var(--muted-foreground); font-size: .85rem; line-height: 1.4; }
.empty-evidence { grid-column: 1 / -1; padding: var(--space-5); margin: 0; border: 1px dashed var(--border); border-radius: var(--radius-md); color: var(--muted-foreground); text-align: center; }

.metadata-box { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.metadata-code {
  max-height: 220px;
  padding: var(--space-4);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--sc-color-brand-700);
  background: var(--card);
  font: .85rem/1.6 var(--font-mono);
  white-space: pre-wrap;
  word-break: break-word;
}
.detector-warning { padding: var(--space-4); margin: 0 0 var(--space-6); border: 1px solid var(--sc-color-warning); border-radius: var(--radius-md); color: var(--foreground); background: var(--sc-color-warning-soft); }
.seo-section { padding-top: var(--space-12); margin-top: var(--space-20); border-top: 1px solid var(--border); }
.content-block { margin-bottom: var(--space-16); }
.content-block h2 { margin: 0 0 var(--space-4); color: var(--foreground); font: 800 clamp(2rem, 4vw, 2.75rem)/1.15 var(--font-heading); letter-spacing: -.02em; }
.content-block > p { margin: 0 0 var(--space-4); color: var(--muted-foreground); font-size: 1rem; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-8); }
.card-feature { display: flex; padding: var(--space-6); flex-direction: column; gap: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow-2); transition: transform var(--transition-fast), border-color var(--transition-fast); }
.card-feature:hover { transform: translateY(-2px); border-color: var(--sc-color-brand-200); }
.card-feature .num { color: var(--accent); font: 600 .875rem/1.4 var(--font-mono); }
.card-feature .title { margin: 0; color: var(--foreground); font: 600 1.1rem/1.4 var(--font-heading); }
.card-feature .desc { margin: 0; color: var(--muted-foreground); font-size: 1rem; line-height: 1.7; }

.related-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.related-link {
  display: flex;
  min-height: 108px;
  padding: var(--space-5);
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--foreground);
  background: var(--card);
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.related-link:hover { transform: translateY(-2px); border-color: var(--sc-color-brand-200); background: var(--sc-color-brand-50); }
.related-link:focus-visible { outline: 3px solid rgba(244, 84, 35, .32); outline-offset: 3px; }
.related-link span { font: 700 1rem/1.35 var(--font-heading); }
.related-link small { color: var(--muted-foreground); font-size: .9rem; line-height: 1.5; }

.comparison-table-wrapper { margin: var(--space-6) 0; overflow-x: auto; border-radius: var(--radius-lg); }
.comparison-table { width: 100%; overflow: hidden; border: 1px solid var(--border); border-collapse: collapse; background: var(--card); }
.comparison-table th,
.comparison-table td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); text-align: left; font-size: .95rem; }
.comparison-table th { color: var(--foreground); background: var(--muted); font-family: var(--font-heading); font-weight: 600; }
.comparison-table td:first-child { color: var(--foreground); font-weight: 700; }
.comparison-table td:nth-child(2) { color: var(--sc-color-brand-700); font-weight: 600; }
.comparison-table__mobile-label { display: none; }

.faq-list { margin-top: var(--space-6); }

.hidden { display: none !important; }

@keyframes detector-spin { to { transform: rotate(360deg); } }
@keyframes detector-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 860px) {
  .results-grid { grid-template-columns: 1fr; }
  .features-grid,
  .related-link-grid { grid-template-columns: 1fr; }
  .sugarcube-display { font-size: 3rem; }
}

@media (max-width: 640px) {
  .main-container { width: min(100% - 24px, 1180px); padding-top: var(--space-8); }
  .hero-section { padding-top: var(--space-3); }
  .sugarcube-display { font-size: 2.35rem; }
  .sugarcube-display > span { display: block; }
  .hero-subhead { font-size: 1rem; }
  .privacy-banner { align-items: flex-start; border-radius: var(--radius-lg); text-align: left; }
  .detector-card { padding: var(--space-4); }
  .dropzone-container { padding: var(--space-8) var(--space-4); }
  .dashboard-actions { width: 100%; flex-direction: column; }
  .dashboard-actions .btn { width: 100%; }
  .filter-btn-group { width: 100%; overflow-x: auto; }
  .filter-btn { flex: 1 0 auto; min-height: 40px; }
  .canvas-wrapper { min-height: 220px; }
  .comparison-table-wrapper {
    overflow-x: visible;
  }
  .comparison-table {
    display: block;
    min-width: 0;
    border: 0;
    background: transparent;
  }
  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .comparison-table tbody {
    display: flex;
    flex-direction: column;
    gap: var(--sc-space-4);
  }
  .comparison-table tbody tr {
    display: flex;
    flex-direction: column;
    padding: var(--sc-space-4);
    border: 1px solid var(--sc-color-brand-200);
    border-radius: var(--sc-radius-lg);
    background: var(--sc-color-surface);
    box-shadow: var(--sc-shadow-sm);
  }
  .comparison-table td {
    display: block;
    padding: var(--sc-space-2) 0;
    border-bottom: 1px solid var(--sc-color-surface-muted);
    font-size: .9rem;
  }
  .comparison-table td:last-child {
    border-bottom: 0;
  }
  .comparison-table__mobile-label {
    display: block;
    margin-bottom: var(--sc-space-1);
    color: var(--sc-color-muted);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .comparison-table td:first-child {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scanning-spinner { animation: none; }
  .results-dashboard { animation: none; }
}

/* Evidence first: file selection, qualified conclusion, inspectable signals. */
.detector-page .main-container { padding-top: var(--sc-space-6); }
.detector-page .hero-section { padding-top: 0; margin-bottom: var(--sc-space-5); }
.detector-page .sugarcube-display { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: var(--sc-leading-tight); }
.detector-page .hero-subhead { max-width: 65ch; margin-inline: auto; font-size: 1rem; line-height: var(--sc-leading-copy); }
.detector-page .detector-card { padding: var(--sc-space-6); border-color: var(--sc-color-border); background: var(--sc-color-surface); }
.detector-page .dropzone-container { padding: var(--sc-space-6); gap: var(--sc-space-3); background: var(--sc-color-surface-muted); border-color: var(--sc-color-border-strong); }
.detector-page .dropzone-title { font-size: 1.5rem; }
.detector-page .detector-source-tip { max-width: 52ch; color: var(--sc-color-muted); font-size: .875rem; line-height: var(--sc-leading-copy); margin: 0; }
.detector-page .detector-evidence-limit { padding: var(--sc-space-3) 0; margin: var(--sc-space-3) 0 0; color: var(--sc-color-muted); font-size: .875rem; line-height: var(--sc-leading-copy); }
.detector-page .dashboard-header { align-items: start; gap: var(--sc-space-4); }
.detector-page .score-card { text-align: left; align-items: start; padding: var(--sc-space-5); background: var(--sc-color-surface-muted); }
.detector-page .confidence-summary { margin-block: var(--sc-space-4); padding-block: var(--sc-space-3); border-block: 1px solid var(--sc-color-border); width: 100%; }
.detector-page .confidence-score { font-size: 2rem; justify-content: start; }
.detector-page .result-conclusion { font-size: 1rem; }
.detector-page .detector-next-step { padding: var(--sc-space-4) 0; border-bottom: 1px solid var(--sc-color-border); }
.detector-page .detector-next-step h3 { margin: 0 0 var(--sc-space-2); font-size: 1rem; }
.detector-page .detector-next-step p { margin: 0; color: var(--sc-color-muted); line-height: var(--sc-leading-copy); }
.detector-page .metadata-box summary { min-height: var(--sc-control-height); padding-block: var(--sc-space-3); cursor: pointer; font-weight: 600; }
.detector-page .metadata-box > h3 { display: none; }
.detector-page .filter-btn { min-height: var(--sc-control-height); }
@media (max-width: 600px) {
 .detector-page .main-container { width: calc(100% - var(--sc-space-6)); padding-top: var(--sc-space-3); }
 .detector-page .hero-section { margin-bottom: var(--sc-space-3); }
 .detector-page .sugarcube-display { margin-bottom: var(--sc-space-2); }
 .detector-page .sugarcube-display > br { display: none; }
 .detector-page .privacy-banner { padding-inline: var(--sc-space-3); }
 .detector-page .hero-section .hero-subhead, .detector-page .hero-section .badge-eyebrow { display: none; }
 .detector-page .detector-card { padding: var(--sc-space-3); }
 .detector-page .dropzone-container { padding: var(--sc-space-3); }
 .detector-page .dropzone-title { font-size: 1.25rem; }
 .detector-page .dropzone-desc { font-size: .8125rem; margin-bottom: var(--sc-space-3); }
 .detector-page #selectFileBtn { width: 100%; }
 .detector-page .dashboard-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
 .detector-page .filter-btn-group { display: flex; flex-wrap: wrap; }
}

/* Supplied v5b 30: the report reads alongside the actual local image. */
.detector-page .detector-card { max-width:var(--sc-container); margin-inline:auto; padding:var(--sc-workspace-padding); border:0; border-radius:var(--sc-radius-xl); background:var(--sc-color-surface); box-shadow:var(--sc-shadow-hairline); }
.detector-page .dropzone-container { padding:40px 20px; border:1.5px dashed var(--sc-color-border-strong); border-radius:var(--sc-radius-lg); background:transparent; gap:12px; }
.detector-page .dropzone-title { font:600 24px/1.3 var(--sc-font-display); margin:0; }
.detector-page .dropzone-desc { margin:0; font-size:14px; color:var(--sc-color-muted); }
.detector-page .detector-evidence-limit { margin:18px 0 0; padding:0; font-size:14px; }
.detector-page .dashboard-header { align-items:flex-end; padding-bottom:18px; margin-bottom:0; border-bottom:1px solid var(--sc-color-border); }
.detector-page .dashboard-title { font-size:20px; }
.detector-page .file-meta-info { font-size:13.5px; }
.detector-page .dashboard-actions { gap:10px; }
.detector-page .results-grid { grid-template-columns:290px minmax(0,1fr); gap:20px; margin-top:20px; }
.detector-page .score-card,.detector-page .visualizer-card { padding:20px; border:0; border-radius:var(--sc-radius-lg); background:var(--sc-color-well); box-shadow:var(--sc-shadow-hairline); }
.detector-page .verdict-badge { margin:0; padding:8px 14px; min-height:32px; border-radius:var(--sc-radius-pill); font-size:14px; }
.detector-page .result-conclusion { margin-top:10px; font-size:14.5px; line-height:1.55; }
.detector-page .confidence-summary { margin:18px 0 0; padding:16px 18px; border:0; border-radius:16px; background:var(--sc-color-brand-50); box-shadow:inset 0 0 0 1px var(--sc-color-brand-200); }
.detector-page .confidence-kicker { font:600 10.5px/1.6 var(--sc-font-mono); letter-spacing:.1em; }
.detector-page .confidence-score { margin:6px 0 0; font:600 38px/1.2 var(--sc-font-display); color:var(--sc-color-brand-700); }
.detector-page .confidence-grade { font-size:13.5px; margin-top:2px; }
#confidenceMeter { display:block; width:100%; height:6px; margin-top:12px; border:0; }
#confidenceMeter::-webkit-meter-bar { border:0; background:var(--sc-color-surface-secondary); }
#confidenceMeter::-webkit-meter-optimum-value { background:var(--sc-color-brand-500); }
.detector-signal-summary { display:grid; gap:0; width:100%; margin:14px 0 0; }
.detector-signal-summary>div { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--sc-color-border); font-size:13px; color:var(--sc-color-muted); }
.detector-signal-summary dt { min-width:0; }
.detector-signal-summary dd { margin:0; padding:4px 7px; border-radius:var(--sc-radius-pill); background:var(--sc-color-surface-muted); font-size:11px; text-align:center; flex-shrink:0; max-width:48%; }
.detector-signal-summary dd.has-signal { color:var(--sc-color-warning); background:var(--sc-color-warning-soft); }
.detector-page .generator-tag { font-size:12px; margin:12px 0 0; }
.detector-page .visualizer-toolbar { padding:0; gap:12px; background:transparent; border:0; align-items:center; }
.detector-page .visualizer-title { font-size:15.5px; }
.detector-page .filter-btn-group { padding:4px; gap:6px; background:var(--sc-color-well); border-radius:14px; }
.detector-page .filter-btn { min-height:38px; padding:0 14px; border-radius:10px; font-size:13px; }
.detector-page .filter-btn.active { color:var(--sc-color-ink); background:var(--sc-color-brand-50); box-shadow:inset 0 0 0 1px var(--sc-color-brand-500); }
.detector-page .visualizer-note { margin:10px 0 14px; padding:0; font-size:13px; }
.detector-page .canvas-wrapper { min-height:0; padding:0; border-radius:14px; background:var(--sc-color-canvas-deep); }
.detector-page .canvas-wrapper img,.detector-page .canvas-wrapper canvas { width:100%; max-height:420px; aspect-ratio:604/157; object-fit:contain; }
.detector-page .detector-next-step { margin-top:28px; padding:22px 0 0; border-top:1px solid var(--sc-color-border); border-bottom:0; }
.detector-page .detector-next-step p { font-size:14px; }
.detector-page .forensic-section { margin-top:22px; }
.detector-page .vector-grid { grid-template-columns:1fr; gap:12px; }
.detector-page .card-vector { padding:16px 18px; border:0; background:var(--sc-color-well); border-radius:16px; box-shadow:var(--sc-shadow-hairline); }
.detector-page .vector-value { margin-top:10px; font-size:14px; }
.detector-page .vector-desc { font-size:13.5px; margin-top:4px; }
.detector-page .metadata-box { margin-top:14px; padding:16px 18px; background:var(--sc-color-well); border-radius:16px; border:0; box-shadow:var(--sc-shadow-hairline); }
.detector-page .metadata-code { margin:14px 0 0; max-height:260px; padding:14px 16px; border-radius:12px; background:var(--sc-color-canvas-deep); color:var(--sc-color-brand-700); font:12.5px/1.6 var(--sc-font-mono); }
.detector-page .scanning-state { text-align:left; padding:0; }
.detector-page .scanning-state[style*="block"] { display:grid!important; grid-template-columns:minmax(0,1fr) 380px; gap:28px; align-items:center; }
.detector-scan-preview { position:relative; overflow:hidden; border-radius:16px; }
.detector-scan-preview img { display:block; width:100%; aspect-ratio:604/157; object-fit:contain; }
.detector-scan-preview>span { position:absolute; inset:0; background:linear-gradient(90deg,transparent 40%,var(--sc-color-brand-200) 50%,transparent 60%); background-size:200% 100%; animation:detector-scan-sweep 1.8s linear infinite; }
.detector-scan-detail { display:flex; flex-direction:column; align-items:start; gap:10px; min-width:0; }
.detector-page .scanning-spinner { display:none; }
.detector-page .scanning-state h3,.detector-page .scanning-state p { margin:0; font-size:14px; }
.detector-page .scan-step-list { order:2; display:grid; gap:8px; margin:6px 0; padding:0; border:0; width:100%; }
.detector-page .scan-step-item { background:transparent; border:0; padding:0; font-size:14px; }
.detector-page .scan-step-item>span:first-child { width:18px; height:18px; margin-right:10px; border-radius:50%; font-size:10px; }
.detector-page #cancelScanBtn { order:4; }
.detector-scan-progress { order:3; width:100%; height:6px; accent-color:var(--sc-color-brand-500); }
@keyframes detector-scan-sweep { to { background-position:-200% 0; } }
@media(max-width:767px) {
  .detector-page .detector-card { padding:18px 16px; }
  .detector-page .dropzone-container { padding:30px 14px; }
  .detector-page .dropzone-title { font-size:22px; }
  .detector-page .results-grid { grid-template-columns:minmax(0,1fr); }
  .detector-page .dashboard-header,.detector-page .visualizer-toolbar { flex-direction:column; align-items:stretch; }
  .detector-page .filter-btn-group { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; }
  .detector-page .filter-btn { min-width:0; padding:4px; font-size:12px; white-space:normal; }
  .detector-page .scanning-state[style*="block"] { grid-template-columns:minmax(0,1fr); }
  .detector-page .metadata-code { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .detector-scan-preview>span { animation:none; } }
.detector-page .sc-public-hero { --sc-hero-title-size:clamp(3rem,4vw,3.5rem); --sc-hero-title-leading:1.12; --sc-hero-copy-width:75rem; --sc-hero-content-space:40px; }
.detector-page .sc-public-hero .sc-tool-hero__lead { max-width:var(--sc-hero-lead-width)!important; text-wrap:balance; }
.detector-page .detector-evidence-limit { color:var(--sc-color-ink); font-weight:500; }
.detector-signal-summary :is(dt,dd) { color:var(--sc-color-ink); font-weight:600; }
.detector-page .detector-card.sc-public-hero__next { --sc-hero-content-space:40px; }
.detector-page .dropzone-title { font-size:20px; }
.detector-page .btn.primary { color:var(--sc-color-on-brand); }
.detector-page .landing-sections--teaching { margin-top:64px; padding-top:0; }
.detector-page .landing-sections--teaching h2 { font-size:24px; }
.detector-page .landing-sections__steps { gap:16px; margin-top:20px; }
.detector-page .landing-sections__step { padding:22px; background:var(--sc-color-well); border:0; border-radius:20px; box-shadow:var(--sc-shadow-hairline); }
.detector-page .landing-sections__step .landing-sections__copy { display:block; padding:0; }
.detector-page .landing-sections__number { display:grid; width:28px; height:28px; margin:0 0 14px; border:0; background:var(--sc-color-brand-50); color:var(--sc-color-brand-500); font:600 12px var(--sc-font-mono); }
.detector-page .landing-sections__step h3 { font-size:15.5px; margin:0; }
.detector-page .landing-sections__step p { font-size:14px; line-height:1.55; margin-top:6px; }
@media(max-width:767px) {
 .detector-page .sc-public-hero { --sc-hero-title-size:2rem; --sc-hero-content-space:26px; }
 .detector-page .detector-card.sc-public-hero__next { --sc-hero-content-space:26px; }
 .detector-page #selectFileBtn { width:auto; padding-inline:22px; }
}
