:root {
  --bg: #0b1120;
  --panel: #131c31;
  --panel-2: #1b2740;
  --line: #24324f;
  --text: #e6edf7;
  --muted: #93a4bf;
  --accent: #38bdf8;
  --accent-2: #0ea5e9;
  --good: #22c55e;
  --bad: #ef4444;
  --warn: #f59e0b;
  --neutral: #94a3b8;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 600px at 20% -10%, #16233d 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100%;
}

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

.site-header {
  padding: 26px 0 14px;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), #6366f1);
  color: #06111f; font-size: 24px; font-weight: 800;
  box-shadow: 0 8px 24px rgba(56,189,248,.25);
}
.site-header h1 { font-size: 21px; margin: 0; letter-spacing: .2px; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.banner {
  background: linear-gradient(90deg, rgba(245,158,11,.18), rgba(245,158,11,.05));
  border-bottom: 1px solid rgba(245,158,11,.3);
  color: #fcd9a0; font-size: 13.5px;
  padding: 10px 0;
}
.banner strong { color: #fde7c2; }

main { padding: 26px 0 60px; display: flex; flex-direction: column; gap: 20px; }

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.step-head h2 { font-size: 17px; margin: 0; }
.step-num {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--accent); font-weight: 700; font-size: 13px;
}
h3 { margin: 0 0 6px; font-size: 15.5px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* Upload */
.dropzone {
  margin-top: 14px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: rgba(56,189,248,.03);
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent);
  background: rgba(56,189,248,.08);
}
.dz-title { margin: 0 0 6px; font-weight: 600; }
.dz-hint { margin: 0; color: var(--muted); font-size: 13px; }

.file-info {
  margin-top: 14px;
  display: flex; align-items: center; gap: 14px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font-size: 13.5px;
}
.file-info img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.file-info .fi-name { font-weight: 600; }
.file-info .fi-meta { color: var(--muted); }

.actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: transform .06s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #05121f; border-color: transparent; }
.btn-secondary { background: linear-gradient(140deg, #34d399, #10b981); color: #05231a; border-color: transparent; }
.btn-ghost { background: transparent; }

/* Verdict */
.verdict-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.verdict-main { display: flex; align-items: center; gap: 16px; }
.verdict-badge {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 800;
  background: var(--panel-2); border: 1px solid var(--line);
}
.verdict-badge.is-ai { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.5); color: #fca5a5; }
.verdict-badge.is-real { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.5); color: #86efac; }
.verdict-badge.is-mixed { background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.5); color: #fcd34d; }
#verdictTitle { margin: 0 0 3px; font-size: 18px; }
.verdict-score { text-align: right; }
.verdict-score span { display: block; font-size: 30px; font-weight: 800; color: var(--accent); }
.verdict-score small { color: var(--muted); font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; }

/* Reasons */
.reasons { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.reasons li { padding-left: 4px; }
.reasons .r-title { font-weight: 600; }
.reasons .r-detail { color: var(--muted); font-size: 13px; display: block; }
.pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; margin-right: 8px;
  text-transform: uppercase; letter-spacing: .4px; vertical-align: middle;
}
.pill.high { background: rgba(239,68,68,.16); color: #fca5a5; }
.pill.med { background: rgba(245,158,11,.16); color: #fcd34d; }
.pill.low { background: rgba(148,163,184,.16); color: #cbd5e1; }
.pill.good { background: rgba(34,197,94,.16); color: #86efac; }

/* Tables */
.table-scroll { overflow-x: auto; margin-top: 14px; }
.sig-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sig-table th, .sig-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sig-table th { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.sig-table td.evidence { color: var(--muted); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; word-break: break-word; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag.ai { background: rgba(239,68,68,.16); color: #fca5a5; }
.tag.real { background: rgba(34,197,94,.16); color: #86efac; }
.tag.neutral { background: rgba(148,163,184,.16); color: #cbd5e1; }
.tag.info { background: rgba(56,189,248,.16); color: #7dd3fc; }
.tag.na { background: rgba(148,163,184,.1); color: #7c8aa3; }

/* Visuals */
.visual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.visual-grid figure { margin: 0; background: #0a1424; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.visual-grid canvas { width: 100%; height: auto; display: block; border-radius: 8px; background: #060d18; }
.visual-grid figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; }
.metric { color: var(--accent); font-weight: 600; }

@media (max-width: 640px) {
  .visual-grid { grid-template-columns: 1fr; }
  .verdict-score { text-align: left; }
}

/* Controls */
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 18px 0 6px; }
.control label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.control .val { color: var(--accent); font-weight: 700; }
.control input[type=range] { width: 100%; accent-color: var(--accent); }
.control select {
  width: 100%; padding: 9px 10px; border-radius: 9px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  font-size: 14px;
}
.control-check { display: flex; align-items: flex-end; }
.control-check label { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; margin: 0; }

.stats { margin-top: 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.stats b { color: var(--accent); }

.removed-list { margin: 12px 0 0; padding-left: 18px; font-size: 13.5px; }
.removed-list li { margin: 5px 0; }
.removed-list code { background: #0a1424; padding: 1px 6px; border-radius: 5px; color: #fca5a5; font-size: 12px; }

.after-verdict { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.after-verdict b { color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: 13px; }