:root {
  --bg: #f6f7f9; --card: #fff; --text: #14181f; --muted: #5d6675; --line: #dfe3ea;
  --accent: #0578ff; --accent-text: #fff; --ok: #0a7d42; --ok-bg: #e4f6ec; --warn: #9a5b00; --warn-bg: #fff2d9; --bad: #b3261e; --bad-bg: #fde8e6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1116; --card: #171b22; --text: #eef1f5; --muted: #9aa4b2; --line: #2a303a;
    --ok: #5fd598; --ok-bg: #12301f; --warn: #f2bb5c; --warn-bg: #362809; --bad: #ff8a80; --bad-bg: #3a1614; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
main { max-width: 860px; margin: 0 auto; padding: 48px 20px 64px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.02em; }
.lede { color: var(--muted); margin: 0 0 28px; max-width: 62ch; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; padding: 4px; background: color-mix(in srgb, var(--line) 55%, transparent); border-radius: 12px; width: fit-content; max-width: 100%; }
.tab { background: transparent; color: var(--muted); padding: 9px 16px; }
.tab:hover { filter: none; color: var(--text); }
.tab[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.verdict { grid-column: 1 / -1; font-weight: 600; }
.verdict.ai { color: var(--warn); } .verdict.ok { color: var(--ok); } .verdict.bad { color: var(--bad); }
.facts { grid-column: 1 / -1; margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.facts li { margin: 2px 0; overflow-wrap: anywhere; }
.origin { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; }
.origin-title { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.source { display: grid; gap: 3px; }
.source-name { font-weight: 600; overflow-wrap: anywhere; }
.source-detail { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.track { position: relative; height: 10px; margin-top: 6px; border-radius: 99px; background: color-mix(in srgb, var(--line) 80%, transparent); overflow: hidden; }
.seg { position: absolute; top: 0; bottom: 0; background: var(--warn); border-radius: 99px; }
.scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 44px 20px; text-align: center; cursor: pointer;
  background: var(--card); border: 2px dashed var(--line); border-radius: 16px; transition: border-color .15s, background .15s; }
.drop strong { font-size: 19px; }
.drop span { color: var(--muted); font-size: 14px; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); outline: none; }
.drop.over { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }

.bar { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: 14px; color: var(--muted); }
.spacer { flex: 1; }
button, .btn { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 9px; padding: 9px 14px; cursor: pointer;
  background: var(--accent); color: var(--accent-text); text-decoration: none; white-space: nowrap; }
button:hover, .btn:hover { filter: brightness(1.08); }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
button:disabled { opacity: .45; cursor: default; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
.name { font-weight: 600; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 13px; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); }
.chip.ai { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.plain { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.detail { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 44px; }
.notes h2 { font-size: 14px; margin: 0 0 4px; }
.notes p { margin: 0; color: var(--muted); font-size: 14px; }
.foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 520px) { .item { grid-template-columns: 1fr; } main { padding-top: 28px; } }
@media (max-width: 520px) { .tabs { width: 100%; } .tab { flex: 1; white-space: normal; padding: 9px 8px; } }
