/* ============================================================================
   PlagLab — forensic dossier aesthetic, refined edition
   Editorial / investigative identity kept; elevated spacing, type rhythm,
   layered depth, restrained motion, full a11y.
   ========================================================================== */
:root {
  /* --- surfaces (researchguru premium light) --- */
  --paper: #f4f6fc;
  --paper-2: #eef2fa;
  --paper-deep: #e7eaf4;
  --card: #ffffff;
  --ink: #1d2240;
  --ink-soft: #4b5172;
  --ink-faint: #838aa6;
  /* --- risk semantics (kept, refined to suite hues) --- */
  --crimson: #d83a52;
  --crimson-deep: #b3243c;
  --amber: #d98a12;
  --amber-soft: #f6e2bd;
  --sage: #1f9d57;
  --sage-deep: #15803d;
  --line: #e3e7f2;
  --line-soft: #eef1f8;
  /* --- brand chrome --- */
  --navy: #272783;
  --navy-deep: #1c1c66;
  --orange: #f5921e;
  --purple: #7b4fc4;

  /* --- type --- */
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* --- spacing scale (8pt) --- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* --- depth: cool premium shadows --- */
  --sh-1: 0 1px 2px rgba(20,30,80,.05), 0 4px 14px -8px rgba(20,30,80,.14);
  --sh-2: 0 2px 8px -2px rgba(20,30,80,.10), 0 16px 36px -18px rgba(20,30,80,.28);
  --sh-pop: 0 22px 50px -24px rgba(20,30,80,.42);
  --sh-edge: 4px 4px 0 rgba(39,39,131,.08);   /* subtle press-offset accent */

  --radius: 12px;
  --maxw: 1100px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--paper);
  background-image:
    radial-gradient(42% 34% at 12% -4%, rgba(123,79,196,.07), transparent 70%),
    radial-gradient(46% 36% at 88% -2%, rgba(39,39,131,.07), transparent 72%),
    radial-gradient(50% 40% at 50% 0%, rgba(245,146,30,.045), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.62;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(39,39,131,.16); }

.grain { display: none; }

/* shared focus ring (accessibility) */
:where(a, button, [tabindex], summary, input):focus-visible {
  outline: 2.5px solid var(--navy);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------------- masthead ---------------- */
.masthead { max-width: var(--maxw); margin: 0 auto; padding: var(--s8) var(--s5) var(--s2); position: relative; }
.case-no {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  color: var(--navy); border: 1.5px solid var(--navy);
  display: inline-block; padding: 4px 11px; transform: none; border-radius: 30px;
  background: rgba(39,39,131,.05);
}
.masthead h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(48px, 8vw, 92px);
  letter-spacing: -.03em; line-height: .98; margin-top: var(--s4);
  color: var(--navy);
}
.masthead h1 .amp { color: var(--orange); }
.tagline {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .28em;
  color: var(--ink-soft); margin-top: var(--s3); text-transform: uppercase;
}
.rule-double { border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line);
  height: 6px; margin-top: var(--s5); position: relative; }
.rule-double::after { content: ""; position: absolute; right: 0; top: -2px;
  width: 64px; height: 2px; background: var(--orange); }

main { max-width: var(--maxw); margin: 0 auto; padding: var(--s6) var(--s5) var(--s9); }

.view { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------------- upload ---------------- */
.dropzone {
  margin-top: var(--s7); border: 2px dashed var(--ink-soft); border-radius: var(--radius);
  padding: var(--s9) var(--s6); text-align: center; cursor: pointer;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255,255,255,.5), rgba(255,255,255,.2));
  transition: border-color .25s var(--ease), background .25s var(--ease),
              transform .25s var(--ease), box-shadow .35s var(--ease);
  position: relative; overflow: hidden;
}
.dropzone::after {
  content: "EVIDENCE INTAKE"; position: absolute; top: 14px; right: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--ink-faint);
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--navy); border-style: solid;
  background: radial-gradient(120% 140% at 50% 0%, rgba(39,39,131,.07), rgba(255,255,255,.4));
  transform: translateY(-3px); box-shadow: var(--sh-pop);
}
.dropzone.drag { transform: translateY(-3px) scale(1.005); }
.bag-icon { width: 60px; color: var(--navy); margin-bottom: var(--s3);
  transition: transform .3s var(--ease); }
.dropzone:hover .bag-icon { transform: translateY(-3px) rotate(-3deg); }
.dz-title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -.01em; }
.dz-sub { color: var(--ink-soft); margin-top: var(--s2); font-size: 15px; line-height: 1.7; }

.depth-toggle { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s5);
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft);
  cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s3) var(--s4); background: rgba(255,255,255,.45);
  transition: border-color .2s, background .2s; }
.depth-toggle:hover { border-color: var(--ink-soft); background: rgba(255,255,255,.65); }
.depth-toggle b { color: var(--navy); letter-spacing: .1em; }
.depth-toggle input { accent-color: var(--navy); width: 17px; height: 17px; flex: none; }

.upload-foot { display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--s5); gap: var(--s4); flex-wrap: wrap; }
.sources-line { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  color: var(--ink-faint); max-width: 52ch; line-height: 1.7; }

.ghost-btn {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em;
  background: rgba(255,255,255,.35); border: 1.5px solid var(--ink); color: var(--ink);
  padding: 10px 18px; border-radius: var(--radius); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              transform .15s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none; display: inline-block;
}
.ghost-btn:hover { background: var(--ink); color: var(--paper);
  transform: translateY(-2px); box-shadow: var(--sh-2); }
.ghost-btn:active { transform: translateY(0); }

/* ---------------- progress ---------------- */
.invest-head { display: flex; align-items: baseline; gap: var(--s4); margin-top: var(--s6); flex-wrap: wrap; }
.invest-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 33px);
  letter-spacing: -.01em; }
.blink-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--crimson);
  align-self: center; box-shadow: 0 0 0 0 rgba(164,36,59,.5); animation: pulse 1.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(164,36,59,.45); }
  70% { box-shadow: 0 0 0 9px rgba(164,36,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(164,36,59,0); }
}
.invest-file { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }

.custody { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) 6px; margin: var(--s5) 0 var(--s4); }
.custody li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-faint);
  background: rgba(255,255,255,.4); position: relative; margin-bottom: 6px;
  transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease);
}
.custody li.active {
  border-color: var(--crimson); color: var(--crimson-deep);
  background: rgba(164,36,59,.08); font-weight: 600; transform: translateY(-1px);
  box-shadow: var(--sh-1);
}
.custody li.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px;
  height: 2px; background: var(--crimson); animation: scanline 1.1s var(--ease) infinite; }
@keyframes scanline { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
.custody li.done { border-color: var(--sage); color: var(--sage); background: rgba(79,111,82,.06); }
.custody li.done::before { content: "✓ "; }

/* ── professional, launch-ready progress (Turnitin/iThenticate-style) ── */
.prog-pro { max-width: 560px; margin: var(--s8) auto; text-align: center; }
.prog-ring { position: relative; width: 108px; height: 108px; margin: 0 auto var(--s5); }
.prog-ring svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.prog-ring .pr-track { fill: none; stroke: var(--line); stroke-width: 4; }
.prog-ring .pr-arc { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 125.66; stroke-dashoffset: 125.66; transition: stroke-dashoffset .7s var(--ease); }
.prog-ring #progPct { position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--navy); }
#progStage { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 3.4vw, 26px);
  color: var(--ink); margin-bottom: var(--s2); }
.prog-file { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); margin-bottom: var(--s5); }
.prog-steps { list-style: none; display: flex; flex-direction: column; gap: 2px; text-align: left;
  max-width: 340px; margin: 0 auto var(--s5); }
.prog-steps li { display: flex; align-items: center; gap: var(--s3); padding: 9px 12px;
  font-size: 14px; color: var(--ink-faint); border-radius: 9px; transition: .3s var(--ease); }
.prog-steps li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; transition: .3s var(--ease); }
.prog-steps li.active { color: var(--ink); font-weight: 600; background: rgba(39,39,131,.05); }
.prog-steps li.active::before { border-color: var(--navy);
  box-shadow: inset 0 0 0 3px var(--navy); animation: progPulse 1.2s ease-in-out infinite; }
.prog-steps li.done { color: var(--sage); }
.prog-steps li.done::before { border-color: var(--sage); background: var(--sage);
  box-shadow: none; content: "✓"; color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; }
@keyframes progPulse { 0%,100% { box-shadow: inset 0 0 0 3px var(--navy), 0 0 0 0 rgba(39,39,131,.25); }
  50% { box-shadow: inset 0 0 0 3px var(--navy), 0 0 0 6px rgba(39,39,131,0); } }
.prog-note { font-size: 13px; color: var(--ink-faint); }

.console {
  background: linear-gradient(180deg, #0e1426, #0a0f1e); color: #c7d0ea;
  font-family: var(--mono); font-size: 13px; padding: var(--s5) var(--s5);
  min-height: 260px; max-height: 380px; overflow-y: auto; border-radius: var(--radius);
  box-shadow: inset 0 0 70px rgba(0,0,0,.5), var(--sh-2);
  border: 1px solid #1a2440;
}
.console div { animation: typeline .25s ease both; padding: 2px 0; }
.console div::before { content: "▸ "; color: var(--amber); }
@keyframes typeline { from { opacity: 0; transform: translateX(-6px); } }
.console::-webkit-scrollbar { width: 10px; }
.console::-webkit-scrollbar-thumb { background: #443c2c; border-radius: 6px; }

/* ---------------- report ---------------- */
.report-head { display: flex; justify-content: space-between; gap: var(--s5);
  align-items: flex-start; margin-top: var(--s6); flex-wrap: wrap; }
.exhibit-label { font-family: var(--mono); font-size: 11px; letter-spacing: .24em;
  color: var(--navy); }
.rpt-title { font-family: var(--display); font-weight: 700; font-size: clamp(27px, 4.4vw, 36px);
  line-height: 1.12; letter-spacing: -.012em; max-width: 660px; margin-top: var(--s2); }
.rpt-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-top: var(--s2);
  line-height: 1.7; }

.stamp {
  border: 4px solid var(--crimson); color: var(--crimson);
  font-family: var(--display); font-weight: 900; font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .08em; padding: 10px 24px; border-radius: 6px;
  transform: rotate(5deg) scale(2.2); opacity: 0;
  text-transform: uppercase; white-space: nowrap; align-self: center;
  box-shadow: inset 0 0 14px rgba(164,36,59,.25);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='0.55' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 .45'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23r)'/%3E%3C/svg%3E");
  animation: slam .45s cubic-bezier(.2,1.6,.4,1) .45s forwards;
}
.stamp.ok { border-color: var(--sage); color: var(--sage);
  box-shadow: inset 0 0 14px rgba(79,111,82,.25); }
.stamp.warn { border-color: #b06b1f; color: #b06b1f;
  box-shadow: inset 0 0 14px rgba(176,107,31,.25); }
@keyframes slam { to { transform: rotate(-4deg) scale(1); opacity: 1; } }

/* sticky report navigator */
.report-nav {
  position: sticky; top: 0; z-index: 30; margin: var(--s5) 0 0;
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: 10px var(--s4); border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244,246,252,.85); backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: var(--sh-1);
}
.rn-verdict { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em;
  padding: 3px 10px; border: 1.5px solid var(--ink-soft); border-radius: 3px; color: var(--ink-soft); }
.rn-verdict.v-plagiarized { color: #fff; background: var(--crimson); border-color: var(--crimson); }
.rn-verdict.v-suspicious, .rn-verdict.v-review { color: var(--crimson-deep); border-color: #b06b1f; background: rgba(207,154,50,.16); }
.rn-verdict.v-clean { color: #fff; background: var(--sage); border-color: var(--sage); }
.rn-links { display: flex; gap: var(--s1); flex-wrap: wrap; margin-right: auto; }
.rn-links a { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--ink-soft); text-decoration: none; padding: 5px 10px; border-radius: 3px;
  transition: background .18s, color .18s; }
.rn-links a:hover { background: rgba(39,39,131,.07); color: var(--ink); }
.rn-links a.active { color: var(--navy); background: rgba(39,39,131,.1); font-weight: 600; }
.rn-pdf { padding: 6px 12px; font-size: 11.5px; }
@media (max-width: 640px) { .rn-links { width: 100%; order: 3; } }

/* anchored sections clear the sticky bar */
.dials, .sec-head, .coverage-block { scroll-margin-top: 72px; }

/* dials */
.dials { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s4);
  margin-top: var(--s6); }
@media (max-width: 880px) { .dials { grid-template-columns: 1fr; } }
.dial-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--paper-2));
  padding: var(--s5) var(--s5) var(--s4); text-align: center; position: relative;
  box-shadow: var(--sh-edge), var(--sh-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.dial-card:hover { transform: translateY(-3px); box-shadow: var(--sh-edge), var(--sh-2); }
.dial-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em;
  color: var(--ink-soft); }
.dial { width: 100%; max-width: 230px; margin: var(--s2) auto 0; display: block; }
.dial-track { fill: none; stroke: var(--paper-deep); stroke-width: 13; stroke-linecap: round; }
.dial-fill { fill: none; stroke: var(--crimson); stroke-width: 13; stroke-linecap: round;
  stroke-dasharray: 251.3; stroke-dashoffset: 251.3;
  transition: stroke-dashoffset 1.4s cubic-bezier(.3,.9,.3,1) .35s;
  filter: drop-shadow(0 2px 3px rgba(164,36,59,.25)); }
.dial-fill.ai { stroke: var(--amber); filter: drop-shadow(0 2px 3px rgba(207,154,50,.3)); }
.needle { stroke: var(--ink); stroke-width: 2.5;
  transform-origin: 100px 110px; transform: rotate(-90deg);
  transition: transform 1.4s cubic-bezier(.3,.9,.3,1) .35s; }
.needle-hub { fill: var(--ink); }
.dial-value { font-family: var(--mono); font-weight: 600; font-size: 42px; margin-top: -8px;
  font-variant-numeric: tabular-nums; }
.dial-value small { font-size: 20px; color: var(--ink-soft); }
.dial-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--crimson-deep); margin-top: var(--s1); min-height: 17px; }

.stat-stack { display: flex; flex-direction: column; gap: var(--s2); }
.stat-row { border: 1px solid var(--line-soft); border-radius: 3px; background: rgba(255,255,255,.5);
  padding: 10px var(--s4); display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft);
  transition: border-color .2s, background .2s; }
.stat-row:hover { border-color: var(--line); background: rgba(255,255,255,.7); }
.stat-row b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* section headings */
.sec-head { font-family: var(--display); font-weight: 700; font-size: clamp(21px, 3vw, 25px);
  letter-spacing: -.01em; margin: var(--s7) 0 var(--s4); padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line-soft); }
.sec-head { color: var(--navy); }
.sec-head::before { content: "§ "; color: var(--orange); }

/* sources */
.source-list { display: flex; flex-direction: column; gap: var(--s3); }
.source-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), rgba(251,248,241,.65));
  padding: var(--s4) var(--s5); display: grid; gap: var(--s1) var(--s5);
  grid-template-columns: 56px 1fr 130px; align-items: center;
  box-shadow: var(--sh-1); animation: rise .5s var(--ease) both;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.source-card:hover { transform: translateY(-2px); border-color: var(--ink-soft);
  box-shadow: var(--sh-2); }
@media (max-width: 700px) { .source-card { grid-template-columns: 44px 1fr; } }
.exhibit-tag {
  font-family: var(--display); font-weight: 900; font-size: 28px;
  color: var(--crimson); border: 2px solid var(--crimson); border-radius: 3px;
  width: 48px; height: 48px; display: flex; align-items: center;
  justify-content: center; transform: rotate(-3deg); grid-row: span 2;
  background: rgba(164,36,59,.04);
}
.src-title { font-weight: 600; font-size: 17px; line-height: 1.35; }
.src-title a { color: var(--ink); text-decoration-color: var(--crimson);
  text-underline-offset: 2px; }
.src-title a:hover { color: var(--crimson-deep); }
.src-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }
.src-meta .badge { border: 1px solid var(--line); border-radius: 2px; padding: 1px 6px; margin-right: 6px; }
.src-meta .deep { color: var(--crimson-deep); border-color: var(--crimson); background: rgba(164,36,59,.05); }
.src-meta .ai-src { font-weight: 600; letter-spacing: .04em; }
.src-meta .ai-src.ok { color: var(--sage-deep); border-color: var(--sage); background: rgba(79,111,82,.1); }
.src-meta .ai-src.warm { color: #8a5418; border-color: var(--amber); background: rgba(207,154,50,.14); }
.src-meta .ai-src.hot { color: #fff; border-color: var(--crimson); background: var(--crimson); }
.max-toggle { border-color: var(--crimson); background: rgba(164,36,59,.04); }
.max-toggle b { color: var(--crimson-deep); }
.src-pct { font-family: var(--mono); font-weight: 600; font-size: 30px;
  text-align: right; grid-row: span 2; font-variant-numeric: tabular-nums; }
.src-pct small { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 700px) { .src-pct { grid-column: 2; text-align: left; } }
.src-bar { grid-column: 2; height: 8px; background: var(--paper-deep);
  border: 1px solid var(--line); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.src-bar i { display: block; height: 100%; background:
  repeating-linear-gradient(-45deg, var(--crimson), var(--crimson) 5px,
  var(--crimson-deep) 5px, var(--crimson-deep) 10px); width: 0;
  transition: width 1s var(--ease) .3s; }
.src-pairs { grid-column: 1 / -1; margin-top: var(--s2); }
.src-pairs summary { font-family: var(--mono); font-size: 12px; cursor: pointer;
  color: var(--crimson-deep); }
.pair-row { border-left: 3px solid var(--crimson); background: rgba(164,36,59,.05);
  border-radius: 0 3px 3px 0; margin: var(--s2) 0; padding: var(--s2) var(--s3); font-size: 14.5px; }
.pair-row .who { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--ink-faint); }

/* manuscript heatmap */
.legend { display: flex; gap: var(--s5); font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-soft); margin-bottom: var(--s3); flex-wrap: wrap; }
.sw { display: inline-block; width: 14px; height: 14px; margin-right: 6px;
  vertical-align: -2px; border: 1px solid var(--line); border-radius: 2px; }
.sw-exact { background: rgba(124,18,40,.65); }
.sw-high { background: rgba(164,36,59,.4); }
.sw-mid { background: rgba(217,164,59,.45); }
.sw-sem { background: rgba(79,111,82,.35); }
.sw-none { background: rgba(255,255,255,.6); }
.manuscript {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: var(--s6) var(--s7); font-size: 16.5px; line-height: 2.0;
  box-shadow: var(--sh-edge), var(--sh-1); max-height: 480px; overflow-y: auto;
}
.manuscript span { padding: 2px 3px; border-radius: 2px; transition: background .2s; }
.m-exact { background: rgba(124,18,40,.45); color: #fff; box-shadow: 0 1px 0 var(--crimson-deep); cursor: help; }
.m-high { background: rgba(164,36,59,.32); box-shadow: 0 1px 0 var(--crimson); cursor: help; }
.m-mid { background: rgba(217,164,59,.4); cursor: help; }
.m-high:hover, .m-mid:hover { background: rgba(164,36,59,.5); }
.m-sem { box-shadow: inset 0 -3px 0 rgba(79,111,82,.8); }

/* AI strip */
.ai-strip { display: flex; height: 34px; border: 1px solid var(--ink); border-radius: 3px;
  overflow: hidden; box-shadow: var(--sh-1); }
.ai-strip i { flex: 1; transition: transform .2s var(--ease); position: relative; }
.ai-strip i:hover { transform: scaleY(1.18); z-index: 1; }
.ai-strip-labels { display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 6px; }

.warrants { margin-top: var(--s7); font-family: var(--mono); font-size: 13px; }
.warrants summary { cursor: pointer; letter-spacing: .06em; color: var(--ink-soft);
  padding: var(--s2) 0; }
.warrants summary:hover { color: var(--ink); }
.warrants div span { display: inline-block; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(255,255,255,.5); padding: 4px 10px; margin: 6px 6px 0 0; font-size: 12px; }

.report-foot { margin-top: var(--s8); display: flex; gap: var(--s3); justify-content: center;
  flex-wrap: wrap; }

.colophon { max-width: var(--maxw); margin: 0 auto; padding: var(--s5) var(--s5) var(--s7);
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; line-height: 1.8;
  color: var(--ink-faint); border-top: 1px solid var(--line); }

/* ---- verdict basis, evasion, ensemble, coverage ---- */
.verdict-basis { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft);
  margin: var(--s4) 0 0; letter-spacing: .02em; line-height: 1.8; }
.verdict-basis b { color: var(--ink); letter-spacing: .1em; }

.evasion-panel { margin: var(--s4) 0 0; border: 1px solid var(--crimson); border-radius: var(--radius);
  background: rgba(164,36,59,.07); padding: var(--s3) var(--s4); font-family: var(--mono);
  font-size: 12.5px; line-height: 1.9; box-shadow: var(--sh-1); }
.evasion-panel b { color: var(--crimson-deep); display: block; letter-spacing: .06em; }
.evasion-panel code { border: 1px solid var(--line); border-radius: 2px; background: rgba(255,255,255,.6);
  padding: 1px 6px; margin-right: 4px; }

.near-misses { border: 1px dashed var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.4); padding: var(--s3) var(--s4); }
.near-row { font-family: var(--mono); font-size: 12.5px; padding: 6px 0;
  border-bottom: 1px dotted var(--line); display: flex; gap: var(--s3);
  align-items: baseline; flex-wrap: wrap; }
.near-row:last-child { border-bottom: 0; }
.near-row a { color: var(--ink); }
.near-row b { margin-left: auto; color: var(--ink-soft); font-weight: 500; }
.near-row .badge { border: 1px solid var(--line); border-radius: 2px; padding: 1px 6px; }
.near-row .deep { color: var(--crimson-deep); border-color: var(--crimson); }

.ai-detectors { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: var(--s4) var(--s5); box-shadow: var(--sh-1); }
.det-row { display: grid; grid-template-columns: 220px 1fr 48px; gap: var(--s4);
  align-items: center; font-family: var(--mono); font-size: 13px; padding: 6px 0; }
@media (max-width: 560px) { .det-row { grid-template-columns: 130px 1fr 40px; gap: var(--s3); } }
.det-name i { color: var(--ink-faint); font-style: normal; font-size: 11px; display: block; }
.det-bar { height: 12px; border: 1px solid var(--ink); border-radius: 6px;
  background: rgba(255,255,255,.6); overflow: hidden; }
.det-bar i { display: block; height: 100%; background: var(--sage);
  transition: width .9s var(--ease); border-radius: 6px; }
.det-bar i.warm { background: var(--amber); }
.det-bar i.hot { background: var(--crimson); }
.det-row b { text-align: right; font-variant-numeric: tabular-nums; }
.lm-metrics { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft);
  margin-top: var(--s2); letter-spacing: .03em; }

.coverage-block summary { color: var(--crimson-deep); font-weight: 600; }
.cov-chips { margin: var(--s3) 0; }
.cov-chips .chip { display: inline-block; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(255,255,255,.55); padding: 4px 10px; margin: 0 6px 6px 0; font-size: 12px; }
.cov-chips .chip.total { border-color: var(--ink); font-weight: 600; }
.cov-pdfs { margin: var(--s3) 0 var(--s4); font-size: 12.5px; }
.cov-pdfs > b { letter-spacing: .05em; }
.cov-note { color: var(--ink-soft); font-size: 12px; }
.cov-tablewrap { max-height: 420px; overflow: auto; border: 1px solid var(--ink);
  border-radius: var(--radius); background: var(--card); }
.cov-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cov-table th { position: sticky; top: 0; background: var(--paper-deep);
  text-align: left; padding: 8px 10px; border-bottom: 1.5px solid var(--ink);
  letter-spacing: .06em; }
.cov-table td { padding: 6px 10px; border-bottom: 1px dotted var(--line); vertical-align: top; }
.cov-table tr:hover td { background: rgba(164,36,59,.04); }
.cov-table td a { color: var(--ink); text-decoration: none; }
.cov-table td a:hover { text-decoration: underline; }
.cov-table .deep-row { background: rgba(164,36,59,.06); }
.cov-dl { display: inline-block; margin-top: var(--s3); }
.cand-venue { font-style: italic; color: var(--ink-soft); font-size: 11px; margin-top: 1px; }
.cand-doi { font-size: 10.5px; color: var(--ink-faint); margin-top: 1px; }
.cand-doi a { color: var(--steel, var(--crimson-deep)); }
.acc { display: inline-block; border-radius: 2px; padding: 1px 6px; font-size: 10.5px;
  letter-spacing: .03em; white-space: nowrap; border: 1px solid var(--line); }
.acc-read { color: #fff; background: var(--sage); border-color: var(--sage); }
.acc-oa { color: var(--sage-deep); background: rgba(79,111,82,.12); border-color: var(--sage); }
.acc-meta { color: var(--crimson-deep); background: rgba(164,36,59,.07); border-color: var(--crimson); }

/* fusion note + style seam map */
.fusion-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft);
  margin-top: var(--s2); letter-spacing: .02em; }
.fusion-note b { color: var(--ink); }
.warn-text { color: var(--crimson-deep); }

.seam-strip { display: flex; height: 40px; border: 1px solid var(--ink); border-radius: 3px;
  overflow: hidden; box-shadow: var(--sh-1); }
.seam-strip i { display: block; height: 100%; border-right: 1px solid rgba(29,24,18,.3); }
.seam-strip i:last-child { border-right: 0; }
.seam-legend { font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  margin-top: var(--s2); line-height: 1.7; }
.seam-legend b { letter-spacing: .04em; }

/* LLM summary, data fraud, figures */
.llm-summary { margin: var(--s4) 0 0; border-left: 3px solid var(--sage); border-radius: 0 3px 3px 0;
  background: rgba(79,111,82,.07); padding: var(--s3) var(--s4); font-family: var(--serif);
  font-size: 15px; line-height: 1.6; }
.llm-summary b { display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; color: var(--sage-deep); margin-bottom: 6px; }

.fraud-panel, .figure-panel { margin: var(--s4) 0 0; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(255,255,255,.4); padding: var(--s3) var(--s4);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.8; }
.fraud-panel.hot, .figure-panel.hot { border-color: var(--crimson);
  background: rgba(164,36,59,.07); box-shadow: var(--sh-1); }
.fraud-panel b, .figure-panel b { display: block; letter-spacing: .05em; }
.fraud-panel.hot b, .figure-panel.hot b { color: var(--crimson-deep); }
.fraud-panel span, .figure-panel span { color: var(--ink-soft); }

/* disguised-plagiarism + citation-integrity panels (deep features) */
.sec-note { font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  line-height: 1.7; max-width: 70ch; margin: 4px 0 12px; }
.sec-note b { color: var(--ink); }
.disguise-panel, .cite-panel, .docf-panel { margin: var(--s3) 0 var(--s5); border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(255,255,255,.4); padding: var(--s4);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; }
.disguise-panel.warm, .cite-panel.warm, .docf-panel.warm { border-color: #c9922f;
  background: rgba(217,164,59,.08); }
.disguise-panel.hot, .cite-panel.hot, .docf-panel.hot { border-color: var(--crimson);
  background: rgba(164,36,59,.07); box-shadow: var(--sh-1); }
.disguise-panel.ok, .cite-panel.ok, .docf-panel.ok { border-color: var(--sage);
  background: rgba(79,111,82,.07); }
.docf-panel.mild { border-color: #c9922f; background: rgba(217,164,59,.05); }
.dp-val.mild { color: #b07d18; }
.docf-hidden { margin-top: var(--s3); border-top: 1px dashed var(--line); padding-top: var(--s3); }
.docf-hidden .hidden-head { color: var(--crimson-deep); font-size: 11.5px; margin-bottom: var(--s2); }
.docf-flags { margin: var(--s3) 0 0; padding-left: 1.1rem; }
.docf-flags li { padding: 3px 0; color: var(--ink-soft); }
.docf-flags li::marker { color: var(--crimson); }
.dp-head { display: flex; align-items: center; gap: var(--s4); }
.dp-head span { color: var(--ink-soft); }
.dp-head span b { color: var(--ink); }
.dp-val { font-family: var(--mono); font-weight: 600; font-size: 38px; line-height: 1;
  letter-spacing: -.02em; color: var(--ink-soft); }
.dp-val small { font-size: 16px; opacity: .65; }
.dp-val.hot { color: var(--crimson-deep); }
.dp-val.warm { color: #b07d18; }
.dp-val.ok { color: var(--sage-deep); }
.fab-badge { color: #fff !important; background: var(--crimson); border-color: var(--crimson) !important;
  border-radius: 2px; padding: 1px 6px; font-weight: 600; }
.hot-row { display: flex; gap: 8px; align-items: baseline; }
.cite-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 11.5px; }
.cite-table th { text-align: left; color: var(--ink-faint); font-weight: 500;
  border-bottom: 1px solid var(--line); padding: 4px 8px 4px 0; letter-spacing: .04em; }
.cite-table td { padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line-2, rgba(28,23,17,.06));
  vertical-align: top; color: var(--ink-soft); }

/* case history */
.case-history { margin-top: var(--s5); }
.hist-row { display: flex; gap: var(--s3); align-items: baseline; padding: 9px 10px;
  border-bottom: 1px dotted var(--line); font-family: var(--mono); font-size: 12.5px;
  cursor: pointer; border-radius: 3px; transition: background .18s; }
.hist-row:hover { background: rgba(255,255,255,.6); }
.hist-verdict { font-weight: 600; padding: 1px 7px; border: 1px solid var(--line); border-radius: 2px;
  letter-spacing: .05em; min-width: 90px; text-align: center; }
.hist-verdict.v-plagiarized { color: #fff; background: var(--crimson); border-color: var(--crimson); }
.hist-verdict.v-suspicious, .hist-verdict.v-review { color: var(--ink); background: var(--amber-soft); }
.hist-verdict.v-clean { color: #fff; background: var(--sage); border-color: var(--sage); }
.hist-title { flex: 1; color: var(--ink); }
.hist-meta { color: var(--ink-soft); }
#pdfBtn { margin-right: 0; text-decoration: none; }

/* ---------------- motion / responsive guards ---------------- */
@media (max-width: 560px) {
  .masthead { padding-top: var(--s7); }
  main { padding-left: var(--s4); padding-right: var(--s4); }
  .manuscript { padding: var(--s4) var(--s4); }
  .report-head { gap: var(--s3); }
  .stamp { transform: rotate(-3deg) scale(1); opacity: 1; animation: none; align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .stamp { opacity: 1; transform: rotate(-4deg) scale(1); }
}

/* ---- Research-suite service switcher (cross-link to Journal Formatter) ---- */
.svc-switch{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:1.1rem;
  padding:.6rem 1.4rem;
  background:rgba(255,255,255,.85); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
  font-family:var(--display); font-size:.82rem; font-weight:500; letter-spacing:0;
}
.svc-brand{ color:var(--navy); font-weight:700; text-transform:none;
  text-decoration:none; display:inline-flex; align-items:center; gap:.5rem; }
.svc-brand:hover{ color:var(--navy-deep); }
/* real ResearchGuru RG emblem — dark-ink variant for the light detector UI */
.svc-mark{ width:40px; height:27px; flex:none; display:inline-block;
  background:url(/assets/logo-mark-light.png) left center/contain no-repeat; }
.svc-switch .svc-link{
  color:var(--ink-soft); text-decoration:none; text-transform:none;
  padding:.4rem .85rem; border:1px solid transparent; border-radius:9px;
  transition:all .15s ease;
}
.svc-switch .svc-link:hover{ color:var(--navy); background:var(--paper-2); }
.svc-switch .svc-link.active{ color:#fff; background:var(--navy); font-weight:600; }

/* ════════════════════════ Remediation Studio ════════════════════════ */
.remediate{ margin:var(--s6) 0; }
.rem-cta{ display:flex; align-items:center; justify-content:space-between; gap:1.4rem;
  flex-wrap:wrap; padding:1.5rem 1.6rem; border-radius:18px;
  background:linear-gradient(135deg, var(--navy), #4a2f8f 60%, #8a3da0);
  color:#fff; box-shadow:0 18px 50px -28px rgba(39,39,131,.7); }
.rem-eyebrow{ font-size:.7rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:#ffd9a8; }
.rem-cta-txt h3{ font-size:1.5rem; margin:.3rem 0 .5rem; color:#fff; }
.rem-cta-txt p{ font-size:.92rem; color:rgba(255,255,255,.85); max-width:60ch; line-height:1.55; }
.rem-cta-actions{ display:flex; flex-direction:column; gap:.7rem; align-items:flex-end; }
.rem-opt{ font-size:.8rem; color:rgba(255,255,255,.85); display:inline-flex; align-items:center; gap:.45rem; cursor:pointer; }
.rem-go{ display:inline-flex; align-items:center; gap:.5rem; white-space:nowrap;
  background:linear-gradient(135deg,#ffb056,var(--orange)); color:#241; border:none;
  font-weight:700; font-size:1rem; padding:.85rem 1.5rem; border-radius:999px; cursor:pointer;
  box-shadow:0 10px 26px -10px rgba(245,146,30,.8); transition:transform .2s, box-shadow .2s; }
.rem-go:hover{ transform:translateY(-2px); box-shadow:0 16px 34px -10px rgba(245,146,30,.9); }
.rem-go span{ font-size:1.05rem; }

.rem-work{ margin-top:1rem; }
.rem-prog{ display:flex; align-items:center; gap:.9rem; padding:1.1rem 1.3rem;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--paper-2); }
.rem-spin{ width:22px; height:22px; border-radius:50%; flex:none;
  border:3px solid var(--line); border-top-color:var(--orange); animation:remspin .8s linear infinite; }
@keyframes remspin{ to{ transform:rotate(360deg); } }
.rem-log{ font-size:.9rem; color:var(--ink-soft); }
.rem-err{ color:var(--bad,#d83a52); font-weight:600; }

.rem-summary{ border:1px solid var(--line); border-radius:16px; padding:1.2rem 1.3rem;
  background:#fff; box-shadow:var(--shadow-1,0 4px 14px -8px rgba(20,30,80,.12)); }
.rem-gauges{ display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:1rem; }
.rem-gauge{ background:var(--paper-2); border-radius:12px; padding:.9rem 1rem; }
.rg-label{ font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-faint); }
.rg-row{ display:flex; align-items:baseline; gap:.55rem; margin-top:.45rem; }
.rg-before{ font-size:1.2rem; color:var(--ink-faint); text-decoration:line-through; }
.rg-after{ font-size:1.7rem; font-weight:800; color:var(--ink); }
.rg-after.good,.rg-arrow.good{ color:#1f9d57; } .rg-after.bad,.rg-arrow.bad{ color:#d83a52; }
.rg-arrow{ font-size:1rem; color:var(--ink-faint); }
.rg-sub{ font-size:.8rem; color:var(--ink-faint); }
.rem-downloads{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.1rem;
  padding-top:1.1rem; border-top:1px solid var(--line-soft); }
.rem-dl{ font-size:.85rem; font-weight:600; padding:.6rem 1.1rem; border-radius:999px;
  border:1px solid var(--line); color:var(--navy); text-decoration:none; transition:.2s; }
.rem-dl:hover{ border-color:var(--navy); background:var(--paper-2); }
.rem-dl.primary{ background:var(--navy); color:#fff; border-color:var(--navy); }
.rem-dl.primary:hover{ background:var(--navy-deep); }

.rem-changes{ margin-top:1.1rem; display:flex; flex-direction:column; gap:.8rem; }
.rem-card{ border:1px solid var(--line); border-left:4px solid var(--ink-faint);
  border-radius:12px; padding:.9rem 1.1rem; background:#fff; }
.rem-card.ok{ border-left-color:#1f9d57; } .rem-card.warn{ border-left-color:#d98a12; }
.rem-card.muted{ border-left-color:var(--ink-faint); opacity:.85; }
.rc-head{ display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; font-size:.74rem; margin-bottom:.55rem; }
.rc-status{ font-weight:800; letter-spacing:.04em; text-transform:uppercase; font-size:.68rem;
  padding:.18rem .5rem; border-radius:6px; }
.rc-status.ok{ color:#0d6b4c; background:#e3f6ec; } .rc-status.warn{ color:#8a5a00; background:#fdf0d8; }
.rc-status.muted{ color:var(--ink-faint); background:var(--paper-2); }
.rc-kind{ font-weight:600; color:var(--navy); } .rc-meta{ color:var(--ink-faint); }
.rc-old{ color:#b03b4e; text-decoration:line-through; font-size:.9rem; line-height:1.5; }
.rc-new{ color:#1f7a44; font-size:.92rem; line-height:1.5; margin-top:.3rem; }
.rc-reason{ margin-top:.5rem; font-size:.8rem; color:#8a5a00; }
@media(max-width:640px){ .rem-cta-actions{ align-items:stretch; width:100%; } }

/* ============================================================================
   COMMERCIAL HERO — PlagLab landing (public detector + admin entry)
   ========================================================================== */
.hero{ max-width:var(--maxw); margin:0 auto; padding:var(--s7) var(--s5) var(--s8); }
.hero-inner{ text-align:center; max-width:880px; margin:0 auto; }
.hero-eyebrow{ font-family:var(--mono); font-size:.72rem; letter-spacing:.18em;
  color:var(--purple); font-weight:600; margin-bottom:var(--s4); }
.hero-h1{ font-family:var(--display); font-weight:700; font-size:clamp(2rem,5vw,3.4rem);
  line-height:1.08; letter-spacing:-.02em; color:var(--ink); margin-bottom:var(--s4); }
.hero-h1 .hl{ position:relative; color:var(--navy); white-space:nowrap; }
.hero-h1 .hl::after{ content:""; position:absolute; left:-2%; right:-2%; bottom:.06em; height:.34em;
  background:linear-gradient(90deg,var(--orange),#ffce8a); opacity:.4; z-index:-1; border-radius:3px; }
.hero-sub{ font-family:var(--serif); font-size:clamp(1rem,1.6vw,1.18rem); line-height:1.6;
  color:var(--ink-soft); max-width:720px; margin:0 auto var(--s6); }
.hero-sub b{ color:var(--ink); }

.hero-cta{ display:flex; gap:var(--s4); justify-content:center; flex-wrap:wrap; margin-bottom:var(--s5); }
.cta-primary,.cta-secondary{ display:inline-flex; align-items:center; gap:var(--s3); text-decoration:none;
  border-radius:14px; padding:.95rem 1.5rem; font-family:var(--display); cursor:pointer; transition:.18s var(--ease);
  border:1.5px solid transparent; text-align:left; }
.cta-primary{ background:var(--navy); color:#fff; box-shadow:var(--sh-pop); border-color:var(--navy); }
.cta-primary:hover{ transform:translateY(-2px); background:var(--navy-deep); }
.cta-secondary{ background:var(--card); color:var(--ink); border-color:var(--line); box-shadow:var(--sh-1); }
.cta-secondary:hover{ border-color:var(--navy); transform:translateY(-2px); }
.cta-primary .cta-ic,.cta-secondary .cta-ic{ font-size:1.4rem; line-height:1; }
.cta-primary b,.cta-secondary b{ display:block; font-size:1rem; font-weight:600; }
.cta-primary small,.cta-secondary small{ display:block; font-size:.76rem; opacity:.78; font-family:var(--serif); margin-top:.1rem; }

.hero-trust{ font-family:var(--mono); font-size:.68rem; letter-spacing:.06em; color:var(--ink-faint);
  margin-bottom:var(--s7); }
.hero-stats{ display:flex; gap:var(--s5); justify-content:center; flex-wrap:wrap; }
.hstat{ display:flex; flex-direction:column; }
.hstat b{ font-family:var(--display); font-size:1.8rem; font-weight:700; color:var(--navy); line-height:1; }
.hstat span{ font-family:var(--serif); font-size:.78rem; color:var(--ink-faint); margin-top:.25rem; }

/* section titles */
.hsec-title{ font-family:var(--display); font-weight:700; font-size:clamp(1.4rem,3vw,2rem);
  text-align:center; color:var(--ink); margin:0 auto var(--s6); letter-spacing:-.01em; }

/* feature grid */
.hero-features{ margin-top:var(--s9); }
.feat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:var(--s4); }
.feat{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:var(--s5); box-shadow:var(--sh-1); transition:.18s var(--ease); }
.feat:hover{ transform:translateY(-3px); box-shadow:var(--sh-2); border-color:var(--line-soft); }
.feat-ic{ font-size:1.5rem; color:var(--navy); margin-bottom:var(--s3); }
.feat h3{ font-family:var(--display); font-size:1.05rem; font-weight:600; color:var(--ink); margin-bottom:var(--s2); }
.feat p{ font-family:var(--serif); font-size:.9rem; line-height:1.55; color:var(--ink-soft); }
.feat p b{ color:var(--ink); } .feat a{ color:var(--navy); font-weight:600; text-decoration:none; }
.feat a:hover{ text-decoration:underline; }

/* vs table */
.hero-vs{ margin-top:var(--s9); }
.vs-table{ width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--sh-1); font-family:var(--serif); }
.vs-table th,.vs-table td{ padding:.8rem 1.1rem; text-align:left; border-bottom:1px solid var(--line-soft); font-size:.92rem; }
.vs-table thead th{ font-family:var(--display); font-weight:600; background:var(--paper-2); color:var(--ink); font-size:.85rem; }
.vs-table th.us,.vs-table td.us{ background:rgba(39,39,131,.04); color:var(--navy); font-weight:600; }
.vs-table thead th.us{ background:var(--navy); color:#fff; }
.vs-table tbody tr:last-child td{ border-bottom:none; }
.vs-table td:not(.us){ color:var(--ink-soft); }

/* two ways in */
.hero-ways{ margin-top:var(--s9); }
.ways-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:var(--s5); }
.ways-grid.single{ max-width:580px; margin:0 auto; }
.way{ background:var(--card); border:1px solid var(--line); border-radius:16px; padding:var(--s6);
  box-shadow:var(--sh-1); position:relative; }
.way-tag{ display:inline-block; font-family:var(--mono); font-size:.66rem; letter-spacing:.12em; font-weight:600;
  color:var(--sage-deep); background:#e3f6ec; padding:.25rem .6rem; border-radius:20px; margin-bottom:var(--s4); }
.way-tag.admin{ color:var(--navy); background:rgba(39,39,131,.08); }
.way h3{ font-family:var(--display); font-size:1.3rem; font-weight:700; color:var(--ink); margin-bottom:var(--s3); }
.way p{ font-family:var(--serif); font-size:.95rem; line-height:1.6; color:var(--ink-soft); margin-bottom:var(--s5); }
.way-btn{ display:inline-block; font-family:var(--display); font-weight:600; text-decoration:none; cursor:pointer;
  border-radius:11px; padding:.7rem 1.3rem; border:1.5px solid var(--navy); color:var(--navy);
  background:transparent; transition:.18s var(--ease); font-size:.95rem; }
.way-btn:hover{ background:var(--navy); color:#fff; }
.way-btn.primary{ background:var(--navy); color:#fff; box-shadow:var(--sh-pop); }
.way-btn.primary:hover{ background:var(--navy-deep); }

.svc-admin{ margin-left:auto; }

@media(max-width:640px){
  .hero{ padding:var(--s6) var(--s4) var(--s7); }
  .hero-cta{ flex-direction:column; align-items:stretch; }
  .cta-primary,.cta-secondary{ justify-content:center; }
  .hero-stats{ gap:var(--s4); }
}

/* ============================================================================
   PROFESSIONAL SUBMISSION PAGE — upload view redesign (Turnitin/iThenticate-grade)
   ========================================================================== */
/* tighter, app-like masthead so the tool doesn't read as empty */
.masthead{ padding: var(--s6) var(--s5) var(--s2); }
.masthead h1{ font-size: clamp(30px,4.4vw,50px); margin-top: var(--s2); }
.tagline{ margin-top: var(--s2); }
.rule-double{ margin-top: var(--s4); }

.submit-grid{ display:grid; grid-template-columns:1.6fr 1fr; gap:var(--s5); align-items:start; margin-top:var(--s4); }
@media(max-width:860px){ .submit-grid{ grid-template-columns:1fr; } }

.submit-card{ background:var(--card); border:1px solid var(--line); border-radius:16px;
  padding:var(--s5); box-shadow:var(--sh-1); }
.submit-card-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:var(--s4); margin-bottom:var(--s4); }
.submit-card-head h2{ font-family:var(--display); font-weight:700; font-size:1.35rem; color:var(--ink); letter-spacing:-.01em; }
.submit-card-head p{ font-family:var(--serif); font-size:.9rem; color:var(--ink-soft); margin-top:.25rem; }
.intake-tag{ font-family:var(--mono); font-size:9.5px; letter-spacing:.18em; color:var(--ink-faint);
  border:1px solid var(--line); border-radius:20px; padding:.25rem .6rem; white-space:nowrap; flex:none; }

/* compact, professional dropzone */
.dropzone{ margin-top:0; border:2px dashed var(--line); border-radius:14px;
  padding:var(--s6) var(--s5); background:var(--paper-2); overflow:visible; }
.dropzone::after{ content:none; }
.dropzone:hover,.dropzone.drag{ border-color:var(--navy); border-style:dashed;
  background:rgba(39,39,131,.05); transform:none; box-shadow:none; }
.up-icon{ width:42px; height:42px; color:var(--navy); margin-bottom:var(--s2); transition:transform .25s var(--ease); }
.dropzone:hover .up-icon{ transform:translateY(-3px); }
.dz-title{ font-size:1.15rem; font-weight:600; color:var(--ink); }
.dz-sub{ font-size:.9rem; margin-top:.3rem; }
.dz-browse{ color:var(--navy); font-weight:600; text-decoration:underline; }
.fmt-badges{ display:flex; gap:.4rem; justify-content:center; align-items:center; margin-top:var(--s4); flex-wrap:wrap; }
.fmt{ font-family:var(--mono); font-size:10px; letter-spacing:.08em; font-weight:600; color:var(--navy);
  background:rgba(39,39,131,.08); border-radius:6px; padding:.22rem .5rem; }
.fmt-size{ font-family:var(--mono); font-size:10px; color:var(--ink-faint); }

/* scan-depth options */
.scan-opts{ margin-top:var(--s5); }
.scan-opts-label{ font-family:var(--mono); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-faint); margin-bottom:var(--s3); }
.opt-card{ display:flex; gap:var(--s3); align-items:flex-start; cursor:pointer;
  border:1px solid var(--line); border-radius:12px; padding:var(--s3) var(--s4); margin-bottom:var(--s3);
  background:var(--paper-2); transition:border-color .18s, background .18s; }
.opt-card:hover{ border-color:var(--ink-soft); }
.opt-card input{ accent-color:var(--navy); width:17px; height:17px; flex:none; margin-top:3px; }
.opt-card .opt-txt b{ font-family:var(--display); font-size:.9rem; color:var(--ink); display:block; }
.opt-card .opt-txt small{ font-family:var(--serif); font-size:.8rem; color:var(--ink-soft); line-height:1.5; display:block; margin-top:.2rem; }
.opt-card.max-toggle{ border-color:var(--amber-soft); background:rgba(217,138,18,.05); }
.opt-card.max-toggle input{ accent-color:var(--crimson); }
.opt-card.max-toggle .opt-txt b{ color:var(--crimson-deep); }

.submit-actions{ display:flex; gap:var(--s4); margin-top:var(--s5); padding-top:var(--s4); border-top:1px solid var(--line-soft); }

/* side info panel */
.submit-side{ display:flex; flex-direction:column; gap:var(--s4); position:sticky; top:var(--s4); }
.side-card{ background:var(--card); border:1px solid var(--line); border-radius:16px; padding:var(--s5); box-shadow:var(--sh-1); }
.side-card h3{ font-family:var(--display); font-size:.95rem; font-weight:600; color:var(--ink); margin-bottom:var(--s3); }
.check-list{ list-style:none; display:flex; flex-direction:column; gap:var(--s3); }
.check-list li{ display:flex; gap:var(--s3); align-items:flex-start; font-family:var(--serif); font-size:.86rem; color:var(--ink-soft); line-height:1.45; }
.check-list b{ color:var(--ink); }
.ck-ic{ color:var(--navy); font-size:1rem; flex:none; line-height:1.3; }
.src-chips{ display:flex; flex-wrap:wrap; gap:.4rem; }
.src-chips span{ font-family:var(--serif); font-size:.76rem; color:var(--ink-soft);
  background:var(--paper-2); border:1px solid var(--line); border-radius:20px; padding:.25rem .6rem; }
.side-note{ font-family:var(--serif); font-size:.8rem; color:var(--ink-faint); line-height:1.5; padding:0 var(--s2); }
@media(max-width:860px){ .submit-side{ position:static; } }
