/* ============================================================================
   PlagLab — dark "research observatory" override, scoped to [data-theme=dark].
   Light mode (data-theme=light) falls back to the original style.css (a light
   forensic-dossier theme). CSS-only: no markup or behaviour changes.
   ========================================================================== */
:root[data-theme="dark"]{
  --paper:#070a12; --paper-2:#0b1020; --paper-deep:#0e1426; --card:#0e1426;
  --ink:#eaf0ff; --ink-soft:#b9c2da; --ink-faint:#7e88a6;
  --crimson:#ff6b8a; --crimson-deep:#ff9bb0;
  --amber:#f0b35e; --amber-soft:rgba(240,179,94,.18);
  --sage:#6fe3a3; --sage-deep:#8ff0bd;
  --line:rgba(140,160,220,.16); --line-soft:rgba(140,160,220,.09);
  --cyan:#54e8d6; --indigo:#7c9cff;
  --sh-1:0 1px 2px rgba(0,0,0,.4),0 2px 10px -4px rgba(0,0,0,.6);
  --sh-2:0 2px 8px -2px rgba(0,0,0,.5),0 16px 36px -18px rgba(0,0,0,.85);
  --sh-pop:0 22px 50px -24px rgba(0,0,0,.9);
  --sh-edge:4px 4px 0 rgba(124,156,220,.10);
}

[data-theme="dark"] body{
  background-color:#070a12;
  background-image:
    radial-gradient(45% 38% at 85% -5%, rgba(124,156,255,.16), transparent 70%),
    radial-gradient(40% 35% at 10% 0%, rgba(84,232,214,.12), transparent 72%),
    linear-gradient(rgba(140,160,220,.05) 1px, transparent 1px);
  background-size:100% 100%,100% 100%,100% 34px;
  background-attachment:fixed,fixed,scroll;
}
[data-theme="dark"] .grain{ opacity:.05; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-theme="dark"] ::selection{ background:rgba(84,232,214,.25); }

[data-theme="dark"] .dropzone{ background:radial-gradient(120% 140% at 50% 0%, rgba(124,156,255,.10), rgba(255,255,255,.02)); }
[data-theme="dark"] .dropzone:hover,[data-theme="dark"] .dropzone.drag{ background:radial-gradient(120% 140% at 50% 0%, rgba(255,107,138,.14), rgba(124,156,255,.05)); }
[data-theme="dark"] .depth-toggle{ background:rgba(255,255,255,.03); }
[data-theme="dark"] .depth-toggle:hover{ background:rgba(255,255,255,.06); }
[data-theme="dark"] .ghost-btn{ background:rgba(255,255,255,.04); border-color:var(--ink-soft); color:var(--ink); }
[data-theme="dark"] .ghost-btn:hover{ background:var(--cyan); color:#05121a; border-color:var(--cyan); }
[data-theme="dark"] .custody li{ background:rgba(255,255,255,.03); }
[data-theme="dark"] .custody li.active{ background:rgba(255,107,138,.12); }
[data-theme="dark"] .custody li.done{ background:rgba(111,227,163,.10); }
[data-theme="dark"] .stat-row{ background:rgba(255,255,255,.03); }
[data-theme="dark"] .stat-row:hover{ background:rgba(255,255,255,.06); }
[data-theme="dark"] .source-card{ background:linear-gradient(180deg, var(--card), rgba(11,16,32,.7)); }
[data-theme="dark"] .sw-none{ background:rgba(255,255,255,.12); }
[data-theme="dark"] .det-bar{ background:rgba(255,255,255,.06); }
[data-theme="dark"] .warrants div span{ background:rgba(255,255,255,.04); }
[data-theme="dark"] .evasion-panel code{ background:rgba(255,255,255,.05); }
[data-theme="dark"] .near-misses{ background:rgba(255,255,255,.03); }
[data-theme="dark"] .cov-chips .chip{ background:rgba(255,255,255,.04); }
[data-theme="dark"] .fraud-panel,[data-theme="dark"] .figure-panel{ background:rgba(255,255,255,.03); }
[data-theme="dark"] .disguise-panel,[data-theme="dark"] .cite-panel{ background:rgba(255,255,255,.03); }
[data-theme="dark"] .disguise-panel.hot,[data-theme="dark"] .cite-panel.hot{ background:rgba(164,36,59,.13); }
[data-theme="dark"] .disguise-panel.warm,[data-theme="dark"] .cite-panel.warm{ background:rgba(217,164,59,.10); }
[data-theme="dark"] .disguise-panel.ok,[data-theme="dark"] .cite-panel.ok{ background:rgba(79,111,82,.10); }
[data-theme="dark"] .cite-table th{ color:var(--ink-faint); }
[data-theme="dark"] .hist-row:hover{ background:rgba(255,255,255,.06); }

[data-theme="dark"] .rn-verdict.v-plagiarized,[data-theme="dark"] .hist-verdict.v-plagiarized,
[data-theme="dark"] .src-meta .ai-src.hot,[data-theme="dark"] .acc-read,
[data-theme="dark"] .rn-verdict.v-clean,[data-theme="dark"] .hist-verdict.v-clean{ color:#05121a !important; }
[data-theme="dark"] .hist-verdict.v-suspicious,[data-theme="dark"] .hist-verdict.v-review{ color:#1a1206 !important; }
[data-theme="dark"] .src-meta .ai-src.warm{ color:var(--amber) !important; }

[data-theme="dark"] .svc-switch{ background:rgba(7,10,18,.82); border-bottom:1px solid var(--line); }
[data-theme="dark"] .svc-brand{ color:var(--cyan); }
[data-theme="dark"] .svc-mark{ background-image:url(/assets/logo-mark-dark.png); }
[data-theme="dark"] .svc-link{ color:var(--ink-soft); }
[data-theme="dark"] .svc-link:hover,[data-theme="dark"] .svc-link.active{ color:var(--ink); }

[data-theme="dark"] .m-high{ color:#fff; }
[data-theme="dark"] .m-mid{ color:#1a1206; }
