/* sgcAIDetectWeb "Spectra": content passes through a prism of five layers.
   Dark first, light alternative. No web fonts, no external files, no script.
   Icons are data URI masks, so the pages carry no hand written markup. */

@property --v { syntax: '<number>'; inherits: false; initial-value: 0; }

:root {
  --bg: #0B0F1A; --bg2: #0E1424; --surface: #131A2B; --surface2: #1A2338; --surface3: #222C44;
  --line: rgba(148, 163, 184, .14); --line2: rgba(148, 163, 184, .26);
  --ink: #E8ECF6; --ink2: #C9D1E3; --muted: #94A3B8;
  --ai1: #D946EF; --ai2: #7C3AED; --capture: #14B8A6; --capture1: #2DD4BF;
  --none: #8B9BB4; --none2: #64748B; --alert: #F43F5E; --warn: #F59E0B;
  --l-provenance: #2DD4BF; --l-metadata: #38BDF8; --l-watermark: #818CF8;
  --l-classifier: #A78BFA; --l-forensics: #FBBF24;
  --track: rgba(148, 163, 184, .13); --focus: #F0ABFC;
  --glow-a: rgba(124, 58, 237, .20); --glow-b: rgba(45, 212, 191, .10);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -28px rgba(0, 0, 0, .7);
  --radius: 20px;
  --sans: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
  --spectrum: linear-gradient(90deg, #2DD4BF, #38BDF8, #818CF8, #A78BFA, #FBBF24);
}
[data-bs-theme="light"] {
  --bg: #F7F8FC; --bg2: #EEF1F8; --surface: #FFFFFF; --surface2: #F3F5FA; --surface3: #E8ECF5;
  --line: rgba(15, 23, 42, .09); --line2: rgba(15, 23, 42, .17);
  --ink: #0F172A; --ink2: #273248; --muted: #5B6478;
  --ai1: #A21CAF; --ai2: #6D28D9; --capture: #0F8C80; --capture1: #0F8C80;
  --none: #64748B; --none2: #475569; --alert: #E11D48; --warn: #B45309;
  --l-provenance: #0D9488; --l-metadata: #0284C7; --l-watermark: #4F46E5;
  --l-classifier: #7C3AED; --l-forensics: #D97706;
  --track: rgba(15, 23, 42, .08); --focus: #A21CAF;
  --glow-a: rgba(124, 58, 237, .10); --glow-b: rgba(13, 148, 136, .08);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 44px -26px rgba(15, 23, 42, .28);
}

/* base */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.aid {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.6 var(--sans); color: var(--ink); background-color: var(--bg);
  background-image: radial-gradient(1100px 620px at 8% -12%, var(--glow-a), transparent 62%),
    radial-gradient(900px 520px at 100% -4%, var(--glow-b), transparent 60%);
  background-repeat: no-repeat; overflow-x: hidden;
}
.aid h1, .aid h2, .aid h3 { color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -.015em; }
.aid p { margin: 0; }
.aid a { color: inherit; }
.aid ul, .aid ol { margin: 0; padding: 0; list-style: none; }
.aid dl, .aid dd, .aid figure { margin: 0; }
.aid :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.aid ::selection { background: rgba(217, 70, 239, .35); }
.aid-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.aid-main { flex: 1; padding: 28px 0 72px; }
.aid-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px;
  background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.aid-skip:focus { top: 12px; }

/* icons (masks, so they take the text colour) */
.aid-i { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -.2em;
  background-color: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-upload { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 15V3'/><path d='m7 8 5-5 5 5'/><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/></svg>"); }
.i-check { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>"); }
.i-lock { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='11' width='16' height='10' rx='2'/><path d='M8 11V7a4 4 0 0 1 8 0v4'/></svg>"); }
.i-spark { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 3l1.9 5.6L18.5 10l-5.6 1.9L11 17.5l-1.9-5.6L3.5 10l5.6-1.4z'/><path d='M19 15v6M16 18h6'/></svg>"); }
.i-text { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M4 6h16M4 12h16M4 18h10'/></svg>"); }
.i-seal { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6z'/><path d='m8.5 12 2.5 2.5 4.5-5'/></svg>"); }
.i-wave { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M2 10c2.5-4 5-4 7.5 0s5 4 7.5 0 4-4 5 0'/><path d='M2 16c2.5-3 5-3 7.5 0s5 3 7.5 0 4-3 5 0' opacity='.55'/></svg>"); }
.i-chart { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v18h18'/><path d='m7 15 4-5 3 3 5-7'/></svg>"); }
.i-sun { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='4'/><path d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/></svg>"); }
.i-moon { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/></svg>"); }
.i-download { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12'/><path d='m7 10 5 5 5-5'/><path d='M5 21h14'/></svg>"); }
.i-trash { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h18'/><path d='M8 6V4h8v2'/><path d='M19 6l-1 14H6L5 6'/></svg>"); }
.i-alert { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 2 20h20z'/><path d='M12 10v4M12 17h.01'/></svg>"); }
.i-info { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M12 11v5M12 8h.01'/></svg>"); }
.i-chevron { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); }
.i-image { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='3'/><circle cx='9' cy='9' r='2'/><path d='m21 15-5-5L5 21'/></svg>"); }
.i-audio { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18V5l12-2v13'/><circle cx='6' cy='18' r='3'/><circle cx='18' cy='16' r='3'/></svg>"); }
.i-video { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='14' height='14' rx='2'/><path d='m16 10 6-3v10l-6-3'/></svg>"); }
.i-doc { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/><path d='M14 3v6h6M8 13h8M8 17h5'/></svg>"); }
.i-layers { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m12 3 9 5-9 5-9-5z'/><path d='m3 13 9 5 9-5'/></svg>"); }
.i-cpu { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><rect x='6' y='6' width='12' height='12' rx='2'/><path d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/></svg>"); }
.i-clock { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>"); }
.i-link { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/><path d='M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/></svg>"); }

/* logo: a prism splitting a beam into the five layer colours */
.aid-logo { display: inline-block; flex: none; width: 34px; height: 34px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23E879F9'/><stop offset='1' stop-color='%237C3AED'/></linearGradient></defs><path d='M3 37 21 33' stroke='%2394A3B8' stroke-width='3.5' stroke-linecap='round'/><g stroke-width='3.5' stroke-linecap='round'><path d='M41 29 61 18' stroke='%232DD4BF'/><path d='M42 32 62 26' stroke='%2338BDF8'/><path d='M43 35 62 35' stroke='%23818CF8'/><path d='M44 38 62 44' stroke='%23A78BFA'/><path d='M45 41 61 52' stroke='%23FBBF24'/></g><path d='M31 10 50 47H12Z' fill='url(%23g)' fill-opacity='.22' stroke='url(%23g)' stroke-width='4' stroke-linejoin='round'/></svg>") center / contain no-repeat; }
.aid-logo-sm { width: 22px; height: 22px; }

/* header */
.aid-top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.aid-top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.aid-brand { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; font-size: 19px; letter-spacing: -.02em; }
.aid-brand .aid-logo { margin-right: 8px; }
.aid-brand-sgc { color: var(--muted); font-weight: 500; }
.aid-brand-name { font-weight: 750; color: var(--ink); }
.aid-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.aid-nav-link { text-decoration: none; color: var(--muted); font-weight: 560; font-size: 15px;
  padding: 8px 14px; border-radius: 10px; transition: color .15s, background .15s; }
.aid-nav-link:hover { color: var(--ink); background: var(--surface2); }
.aid-nav-link.is-active { color: var(--ink); background: var(--surface2); box-shadow: inset 0 -2px 0 var(--ai1); }
.aid-theme { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line2); color: var(--ink2); text-decoration: none; background: var(--surface); }
.aid-theme:hover { color: var(--ink); border-color: var(--ai2); }

/* footer */
.aid-foot { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
.aid-foot-in { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.aid-foot-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aid-foot-brand strong { color: var(--ink2); font-weight: 650; }
.aid-foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.aid-foot-nav a { color: var(--muted); text-decoration: none; }
.aid-foot-nav a:hover { color: var(--ink); text-decoration: underline; }

/* the prism bands behind the heroes */
.aid-bands { position: absolute; inset: -30% -10% auto -10%; height: 150%; pointer-events: none; filter: blur(48px); opacity: .5; z-index: 0; }
.aid-bands span { position: absolute; left: -10%; width: 120%; height: 64px; border-radius: 64px; transform-origin: center;
  animation: aid-drift 18s ease-in-out infinite alternate; }
.aid-bands .b1 { top: 18%; background: var(--l-provenance); transform: rotate(-9deg); }
.aid-bands .b2 { top: 30%; background: var(--l-metadata); transform: rotate(-6deg); animation-delay: -3s; }
.aid-bands .b3 { top: 42%; background: var(--l-watermark); transform: rotate(-3deg); animation-delay: -6s; }
.aid-bands .b4 { top: 54%; background: var(--l-classifier); transform: rotate(0deg); animation-delay: -9s; }
.aid-bands .b5 { top: 66%; background: var(--l-forensics); transform: rotate(3deg); animation-delay: -12s; opacity: .75; }
.aid-bands-sm { opacity: .3; inset: -10% 0 auto 30%; height: 120%;
  -webkit-mask: radial-gradient(50% 50% at 55% 50%, #000 20%, transparent 100%); mask: radial-gradient(50% 50% at 55% 50%, #000 20%, transparent 100%); }
[data-bs-theme="light"] .aid-bands { opacity: .26; }
[data-bs-theme="light"] .aid-bands-sm { opacity: .13; }
@keyframes aid-drift { from { translate: -6% 0; } to { translate: 6% -14px; } }

/* home hero */
.aid-hero { position: relative; overflow: hidden; border-radius: 32px; padding: 72px 56px 64px; margin-bottom: 28px;
  border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent); }
.aid-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask: radial-gradient(70% 80% at 50% 40%, #000, transparent); mask: radial-gradient(70% 80% at 50% 40%, #000, transparent); opacity: .5; }
.aid-hero-in { position: relative; z-index: 1; max-width: 780px; }
.aid-display { font-size: clamp(42px, 7vw, 68px) !important; line-height: 1.02; letter-spacing: -.045em !important; margin: 22px 0 18px !important; font-weight: 760 !important; }
.aid-grad { background: linear-gradient(100deg, var(--ai1), var(--ai2) 55%, var(--l-metadata)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aid-lead { font-size: 19px; line-height: 1.55; color: var(--ink2); max-width: 640px; }
.aid-spectrum { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px !important; }
.aid-spectrum li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.aid-dot-sm { width: 9px; height: 9px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 10px var(--lc); }

/* layer colours */
.ly-provenance { --lc: var(--l-provenance); }
.ly-metadata { --lc: var(--l-metadata); }
.ly-watermark { --lc: var(--l-watermark); }
.ly-classifier { --lc: var(--l-classifier); }
.ly-forensics { --lc: var(--l-forensics); }

/* chips, codes, pills */
.aid-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aid-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 12px; border-radius: 999px;
  background: var(--surface2); border: 1px solid var(--line); color: var(--ink2); font-size: 13.5px; line-height: 1.4; }
.aid-chip > span:last-child { overflow-wrap: anywhere; }
.aid-chip .aid-i { color: var(--muted); }
.aid-chip-glow { color: var(--ink); background: color-mix(in srgb, var(--ai2) 16%, var(--surface)); border-color: color-mix(in srgb, var(--ai1) 40%, transparent); }
.aid-chip-glow .aid-i { color: var(--ai1); }
.aid-code { font-family: var(--mono); font-size: 12.5px; padding: 2px 7px; border-radius: 6px; background: var(--surface3);
  color: var(--ink2); overflow-wrap: anywhere; word-break: break-word; }
.aid-code-alert { background: color-mix(in srgb, var(--alert) 16%, transparent); color: var(--ink); }
.aid-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
  font-weight: 650; background: var(--surface3); color: var(--ink2); white-space: nowrap; }
.aid-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.aid-pill.is-on { color: var(--ink); } .aid-pill.is-on::before { background: var(--capture1); }
.aid-pill.is-off { color: var(--muted); } .aid-pill.is-off::before { background: transparent; border: 1.5px dashed var(--muted); }
.aid-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* buttons */
.aid-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px;
  border-radius: 13px; border: 1px solid var(--line2); background: var(--surface2); color: var(--ink); font: 600 15px/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .15s, border-color .15s, background .15s, box-shadow .15s; }
.aid-btn:hover { border-color: var(--ai2); background: var(--surface3); }
.aid-btn:active { transform: translateY(1px); }
.aid-btn-primary { border: 0; color: #fff; background: linear-gradient(120deg, #C026D3, #7C3AED);
  box-shadow: 0 10px 30px -12px rgba(192, 38, 211, .7), inset 0 1px 0 rgba(255, 255, 255, .22); }
.aid-btn-primary:hover { background: linear-gradient(120deg, #D946EF, #8B5CF6); box-shadow: 0 14px 36px -12px rgba(192, 38, 211, .85); }
.aid-btn-danger { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 45%, transparent); background: transparent; }
.aid-btn-danger:hover { background: color-mix(in srgb, var(--alert) 12%, transparent); border-color: var(--alert); }

/* the analyze panel */
.aid-panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: 22px; box-shadow: var(--shadow); }
.aid-analyze { margin-top: -6px; }
.aid-tabs { display: inline-flex !important; gap: 4px; padding: 5px; margin-bottom: 18px; border-radius: 14px;
  background: var(--bg2); border: 1px solid var(--line); flex-wrap: nowrap; }
.aid-tabs .nav-link { border: 0; border-radius: 10px; padding: 8px 22px; color: var(--muted); font-weight: 650; background: transparent; }
.aid-tabs .nav-link:hover { color: var(--ink); }
.aid-tabs .nav-link.active { color: var(--ink); background: var(--surface3); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 6px 16px -10px rgba(0, 0, 0, .6); }
.aid-form-in { display: grid; gap: 16px; }
.aid-drop { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 250px; padding: 36px 20px;
  text-align: center; border-radius: 20px; border: 2px dashed var(--line2); cursor: pointer; overflow: hidden;
  background: radial-gradient(600px 220px at 50% 0%, color-mix(in srgb, var(--ai2) 10%, transparent), transparent 70%), var(--bg2);
  transition: border-color .2s, background .2s; }
.aid-drop:hover, .aid-drop:focus-within { border-color: color-mix(in srgb, var(--ai1) 70%, transparent);
  background: radial-gradient(600px 260px at 50% 0%, color-mix(in srgb, var(--ai1) 16%, transparent), transparent 70%), var(--bg2); }
.aid-drop:has(.aid-drop-input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.aid-drop-art { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 10px; border-radius: 20px; color: #fff;
  background: linear-gradient(140deg, #C026D3, #7C3AED); box-shadow: 0 16px 40px -14px rgba(192, 38, 211, .8); font-size: 28px; }
.aid-drop-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.aid-drop-sub { color: var(--muted); max-width: 460px; }
.aid-drop-ready { display: none; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; padding: 6px 14px;
  border-radius: 999px; background: color-mix(in srgb, var(--ai2) 22%, transparent); }
.aid-drop:has(.aid-drop-input:valid) { border-style: solid; border-color: var(--ai1); }
.aid-drop:has(.aid-drop-input:valid) .aid-drop-ready { display: inline-flex; }
.aid-drop:has(.aid-drop-input:valid) .aid-drop-sub { display: none; }
.aid-drop-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.aid-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.aid-hint { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 14px; max-width: 640px; }
.aid-hint .aid-i { margin-top: .25em; }
.aid-tab-body .form-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; color: var(--ink2); }
.aid-textarea { display: block; width: 100%; box-sizing: border-box; min-height: 250px; padding: 18px 20px; resize: vertical;
  border-radius: 18px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); font: 16px/1.65 var(--sans); }
.aid-textarea::placeholder { color: var(--muted); }
.aid-textarea:focus { outline: none; border-color: var(--ai1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ai1) 22%, transparent); }

/* sections */
.aid-section { margin-top: 56px; }
.aid-section-head { margin-bottom: 20px; }
.aid-h2 { font-size: 24px !important; letter-spacing: -.02em !important; }
.aid-h3 { font-size: 16px !important; margin-bottom: 14px !important; }
.aid-sub { color: var(--muted); margin-top: 6px !important; }
.aid-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.aid-card > .aid-h2 { margin-bottom: 16px; font-size: 19px !important; }
.aid-note { color: var(--muted); font-size: 14px; margin-top: 12px !important; }
.aid-empty { display: flex; gap: 12px; align-items: flex-start; padding: 20px; border-radius: 16px; border: 1px dashed var(--line2); color: var(--muted); }
.aid-empty .aid-i { margin-top: .25em; }

/* what we look for */
.aid-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aid-look { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.aid-look::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--lk); }
.aid-look::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lk1) 20%, transparent), transparent 70%); }
.lk-c2pa { --lk: linear-gradient(90deg, var(--l-provenance), var(--l-metadata)); --lk1: var(--l-provenance); }
.lk-marks { --lk: linear-gradient(90deg, var(--l-metadata), var(--l-watermark)); --lk1: var(--l-watermark); }
.lk-signals { --lk: linear-gradient(90deg, var(--l-classifier), var(--l-forensics)); --lk1: var(--l-classifier); }
.aid-look-art { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px; font-size: 22px;
  color: var(--lk1); background: color-mix(in srgb, var(--lk1) 14%, transparent); }
.aid-look h3 { font-size: 19px; margin-bottom: 6px; }
.aid-look > p { color: var(--muted); }
.aid-ticks { margin-top: 16px !important; display: grid; gap: 8px; }
.aid-ticks li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink2); }
.aid-ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--lk1);
  border-bottom: 2px solid var(--lk1); transform: rotate(-45deg); }

/* media types */
.aid-media { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.aid-media-card { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.aid-media-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.aid-media-head .aid-i { color: var(--ai1); font-size: 18px; }
.aid-media-types { display: flex; flex-wrap: wrap; gap: 6px; }
.aid-type { font: 600 12px/1 var(--mono); padding: 6px 8px; border-radius: 7px; background: var(--surface2); color: var(--ink2); border: 1px solid var(--line); }

/* inner page heads */
.aid-head { position: relative; overflow: hidden; padding: 40px 0 30px; }
.aid-head > :not(.aid-bands) { position: relative; z-index: 1; }
.aid-title { font-size: clamp(32px, 5vw, 48px) !important; line-height: 1.08; letter-spacing: -.035em !important; margin: 10px 0 12px !important;
  overflow-wrap: anywhere; }
.aid-head .aid-lead { font-size: 18px; }
.aid-head-tight { padding-top: 24px; }

/* progress */
.aid-progress-page { max-width: 760px; margin: 0 auto; }
.aid-progress { padding: 28px; }
.aid-progress-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.aid-pulse { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--ai1); flex: none; }
.aid-pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ai1); animation: aid-ping 1.6s ease-out infinite; }
@keyframes aid-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.aid-prism { display: grid; gap: 10px; }
.aid-step { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 18px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); overflow: hidden; }
.aid-step::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--lc); opacity: .35; }
.aid-step-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--lc); box-sizing: border-box; opacity: .55; }
.aid-step-name { font-weight: 650; }
.aid-step-state { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.aid-step.st-running { border-color: color-mix(in srgb, var(--lc) 55%, transparent); }
.aid-step.st-running::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--lc) 22%, transparent), transparent);
  animation: aid-sweep 1.4s linear infinite; }
.aid-step.st-running .aid-step-dot { opacity: 1; background: var(--lc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lc) 22%, transparent); }
.aid-step.st-running .aid-step-state { color: var(--ink); }
.aid-step.st-done::before { opacity: 1; }
.aid-step.st-done .aid-step-dot { opacity: 1; background: var(--lc); box-shadow: 0 0 12px var(--lc); }
.aid-step.st-done .aid-step-state { color: var(--ink2); }
.aid-step.st-unused { opacity: .55; }
.aid-step.st-unused .aid-step-dot { border-style: dashed; }
@keyframes aid-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.aid-engine-now { display: flex; align-items: center; gap: 10px; margin-top: 16px !important; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.aid-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.aid-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 8px; }
.aid-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); min-width: 0; }
.aid-stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.aid-stat-value { font-size: 20px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.aid-stat-lg { padding: 20px; background: var(--surface); }
.aid-stat-lg .aid-i { color: var(--ai1); font-size: 20px; margin-bottom: 8px; }
.aid-stat-lg .aid-stat-value { font-size: 28px; }

/* verdict hero */
.fam-ai { --c1: var(--ai1); --c2: var(--ai2); }
.fam-capture { --c1: var(--capture1); --c2: var(--capture); }
.fam-none { --c1: var(--none); --c2: var(--none2); }
.cs-trusted { --c1: var(--capture1); --c2: var(--capture); }
.cs-valid { --c1: var(--l-metadata); --c2: #0284C7; }
.cs-wellformed { --c1: var(--warn); --c2: #D97706; }
.cs-invalid { --c1: var(--alert); --c2: #BE123C; }
.cs-none { --c1: var(--none); --c2: var(--none2); }
.aid-verdict { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 52px;
  padding: 44px 48px; border-radius: 32px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c1) 34%, var(--line));
  background: radial-gradient(520px 340px at 0% 50%, color-mix(in srgb, var(--c2) 22%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--c1) 8%, var(--surface)), var(--surface) 65%); box-shadow: var(--shadow); }
.aid-verdict::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--spectrum); opacity: .9; }
.aid-verdict.is-tampered { border-color: color-mix(in srgb, var(--alert) 60%, transparent); }
.aid-verdict-title { font-size: clamp(36px, 5.4vw, 52px) !important; line-height: 1.04; letter-spacing: -.04em !important; margin: 8px 0 12px !important;
  background: linear-gradient(100deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent !important; padding-bottom: 4px; }
.fam-none .aid-verdict-title, .cs-none .aid-verdict-title { background: none; color: var(--ink) !important; }
.aid-verdict-sentence { font-size: 19px; line-height: 1.5; color: var(--ink2); max-width: 620px; }
.aid-coverage-line { margin-top: 12px !important; color: var(--muted); font-size: 15px; padding-left: 12px; border-left: 3px solid var(--line2); }
.aid-verdict-text .aid-chips { margin-top: 22px; }
.aid-chip-name { min-width: 0; }
.aid-chip-name > span:last-child { max-width: min(34ch, 62vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the ring: conic arc animated through @property --v, no script */
.aid-ring-wrap { --size: 232px; --R: calc(var(--size) / 2 + 20px); display: grid; place-items: center; width: calc(var(--size) + 56px); aspect-ratio: 1; }
.aid-ring { position: relative; width: var(--size); aspect-ratio: 1; border-radius: 50%; }
.aid-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; --v: var(--p);
  background: conic-gradient(var(--c1) 0%, var(--c2) calc(var(--v) * 1%), var(--track) calc(var(--v) * 1%) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 20px), #000 calc(100% - 19px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 20px), #000 calc(100% - 19px));
  animation: aid-fill 1.8s cubic-bezier(.2, .8, .2, 1) both; }
.aid-ring::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 30%, transparent), transparent 70%); filter: blur(14px); }
@keyframes aid-fill { from { --v: 0; } }
.aid-ring-core { position: absolute; inset: 30px; z-index: 1; display: grid; place-content: center; text-align: center; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 8px color-mix(in srgb, var(--surface) 40%, transparent); }
.aid-ring-core::before { content: ""; position: absolute; inset: 8px; border-radius: 50%;
  background: repeating-conic-gradient(var(--line2) 0 .8deg, transparent .8deg 7.2deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); }
.aid-ring-num { position: relative; font-size: 50px; font-weight: 760; letter-spacing: -.05em; line-height: 1; }
.is-verify .aid-ring-num { font-size: 26px; letter-spacing: -.02em; }
.aid-ring-cap { position: relative; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aid-dot { position: absolute; left: 50%; top: 50%; z-index: 2; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  box-sizing: border-box; transform: rotate(var(--a)) translateY(calc(var(--R) * -1)); }
.d1 { --a: 0deg; } .d2 { --a: 72deg; } .d3 { --a: 144deg; } .d4 { --a: 216deg; } .d5 { --a: 288deg; }
.s-ran { background: var(--lc); box-shadow: 0 0 14px var(--lc), 0 0 0 3px var(--surface); }
.s-partial { background: linear-gradient(90deg, var(--lc) 50%, var(--surface) 50%); border: 2px solid var(--lc); box-shadow: 0 0 0 3px var(--surface); }
.s-skipped { background: var(--surface); border: 2px dashed var(--lc); opacity: .8; }
.s-none { background: var(--track); border: 2px solid var(--line2); }

/* banners */
.aid-banner { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 18px 20px; border-radius: 18px;
  border: 1px solid var(--line2); background: var(--surface); }
.aid-banner > .aid-i { font-size: 22px; margin-top: 2px; }
.aid-banner-body { display: grid; gap: 4px; min-width: 0; }
.aid-banner-body strong { font-size: 16px; }
.aid-banner-body p { color: var(--ink2); }
.aid-banner-body .aid-chips { margin-top: 8px; }
.aid-banner.is-alert { border-color: color-mix(in srgb, var(--alert) 55%, transparent); background: color-mix(in srgb, var(--alert) 10%, var(--surface)); }
.aid-banner.is-alert > .aid-i { color: var(--alert); }
.aid-banner.is-warn { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }
.aid-banner.is-warn > .aid-i { color: var(--warn); }
.aid-banner.is-info > .aid-i { color: var(--l-metadata); }
.aid-main > .aid-wrap > div > .aid-banner:first-child { margin: 0 0 18px; }
.aid-conflicts { display: grid; gap: 4px; margin-top: 8px !important; }
.aid-conflicts li { color: var(--ink2); font-size: 14.5px; padding-left: 14px; position: relative; }
.aid-conflicts li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }

/* why */
.aid-reasons { display: grid; gap: 12px; counter-reset: r; }
.aid-reason { position: relative; padding: 20px 22px 20px 64px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); counter-increment: r; }
.aid-reason::before { content: counter(r); position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 10px; font-weight: 750; font-size: 14px; background: var(--surface3); color: var(--ink2); }
.aid-reason.role-deciding { border-color: color-mix(in srgb, var(--ai1) 40%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--ai2) 10%, var(--surface)), var(--surface) 60%); }
.aid-reason.role-deciding::before { color: #fff; background: linear-gradient(140deg, #C026D3, #7C3AED); }
.aid-reason-head { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.aid-role, .aid-class { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 7px; }
.aid-role { background: var(--surface3); color: var(--ink); }
.aid-class { color: var(--muted); border: 1px solid var(--line2); }
.aid-reason-title { display: block; font-size: 17px; margin-bottom: 4px; }
.aid-reason p { color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }

/* layers */
.aid-layers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.aid-layer { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; border-radius: 18px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.aid-layer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--lc); }
.aid-layer.ps-skipped { background: transparent; border-style: dashed; }
.aid-layer.ps-skipped::before { opacity: .35; }
.aid-layer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.aid-layer-n { font: 700 13px/1 var(--mono); color: var(--lc); }
[data-bs-theme="light"] .aid-layer-n { color: var(--ink2); }
.aid-layer.ps-ran .aid-pill::before, .aid-layer.ps-partial .aid-pill::before { background: var(--lc); box-shadow: 0 0 8px var(--lc); }
.aid-layer.ps-ran .aid-pill { color: var(--ink); }
.aid-layer.ps-skipped .aid-pill { color: var(--muted); background: transparent; border: 1px dashed var(--line2); }
.aid-layer.ps-skipped .aid-pill::before { background: transparent; border: 1.5px dashed var(--muted); }
.aid-layer h3 { font-size: 17px; }
.aid-layer-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.aid-mini-h { margin-top: 6px !important; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.aid-engines { display: flex; flex-wrap: wrap; gap: 6px; }
.aid-skips { display: grid; gap: 8px; }
.aid-skips li { display: grid; gap: 3px; font-size: 13px; color: var(--ink2); }
.aid-skips .aid-code { justify-self: start; }

/* findings */
.aid-finding { margin-bottom: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.aid-finding[open] { border-color: color-mix(in srgb, var(--c1) 40%, var(--line)); box-shadow: var(--shadow); }
.aid-finding-sum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.aid-finding-sum::-webkit-details-marker { display: none; }
.aid-finding-sum:hover { background: var(--surface2); }
.aid-finding-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 10px var(--lc); }
.aid-finding-main { display: grid; gap: 2px; min-width: 0; }
.aid-finding-main strong { font-size: 16.5px; overflow-wrap: anywhere; }
.aid-finding-sub { font: 12.5px/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.aid-finding-side { display: flex; align-items: center; gap: 12px; }
.aid-badge { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; white-space: nowrap; color: var(--ink);
  background: color-mix(in srgb, var(--c1) 20%, transparent); border: 1px solid color-mix(in srgb, var(--c1) 40%, transparent); }
.aid-meter { position: relative; width: 96px; height: 7px; border-radius: 7px; background: var(--track); overflow: hidden; }
.aid-meter > span { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.aid-meter-num { font: 700 14px/1 var(--mono); min-width: 3.2em; text-align: right; }
.aid-finding-sum > .aid-i { color: var(--muted); transition: transform .2s; }
.aid-finding[open] .aid-finding-sum > .aid-i { transform: rotate(180deg); }
.aid-finding-body { padding: 4px 22px 22px 50px; display: grid; gap: 16px; }
.aid-finding-text { color: var(--ink2); overflow-wrap: anywhere; }
.aid-ev-sum { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 4px 0 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.aid-ev-sum::-webkit-details-marker { display: none; }
.aid-ev-sum::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .2s; }
.aid-ev[open] > .aid-ev-sum::before { transform: rotate(45deg); }
.aid-ev-sum:hover { color: var(--ink); }
.aid-evidence { width: 100%; border-collapse: collapse; display: block; font-size: 14px; }
.aid-evidence tbody { display: block; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.aid-evidence tr { display: grid; grid-template-columns: minmax(140px, 30%) minmax(0, 1fr); border-top: 1px solid var(--line); }
.aid-evidence tr:first-child { border-top: 0; }
.aid-evidence th { padding: 10px 14px; font-weight: 600; color: var(--muted); background: var(--bg2); overflow-wrap: anywhere; }
.aid-evidence td { padding: 10px 14px; min-width: 0; }
.aid-evidence td .aid-code { background: transparent; padding: 0; font-size: 13px; color: var(--ink); }

/* facts */
.aid-facts { display: grid; gap: 0; }
.aid-fact { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.aid-fact:first-child { border-top: 0; padding-top: 0; }
.aid-fact dt { color: var(--muted); font-weight: 560; font-size: 14px; }
.aid-fact dd { min-width: 0; overflow-wrap: anywhere; font-size: 14.5px; }
.aid-facts-inline { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.aid-facts-inline .aid-fact { grid-template-columns: 1fr; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.aid-facts-inline .aid-fact:first-child { padding-top: 12px; }
.aid-facts-inline dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.aid-hash .aid-code { font-size: 12px; line-height: 1.6; }

/* C2PA panel */
.aid-c2pa { padding: 30px; border-radius: 28px; border: 1px solid color-mix(in srgb, var(--c1) 35%, var(--line));
  background: radial-gradient(700px 280px at 100% 0%, color-mix(in srgb, var(--c1) 12%, transparent), transparent 70%), var(--bg2); }
.aid-c2pa-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 22px; }
.aid-seal { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; font-size: 28px; color: #fff;
  background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 14px 34px -14px var(--c1); }
.aid-c2pa-title .aid-h2 { margin-top: 4px; }
.aid-state { justify-self: end; font: 700 13px/1 var(--mono); padding: 8px 12px; border-radius: 10px; white-space: nowrap; color: var(--ink);
  background: color-mix(in srgb, var(--c1) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent); }
.aid-state-off { --c1: var(--none); color: var(--muted); }
.aid-c2pa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.aid-c2pa-wide { margin-top: 16px; }
.aid-timeline { position: relative; display: grid; gap: 0; }
.aid-timeline li { position: relative; padding: 0 0 20px 30px; }
.aid-timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--c1); box-sizing: border-box; }
.aid-timeline li::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: var(--line2); }
.aid-timeline li:last-child { padding-bottom: 0; }
.aid-timeline li:last-child::after { display: none; }
.aid-timeline .dep-1 { margin-left: 18px; } .aid-timeline .dep-2 { margin-left: 36px; }
.aid-timeline .dep-3, .aid-timeline .dep-4 { margin-left: 54px; }
.aid-timeline .dep-1::before, .aid-timeline .dep-2::before, .aid-timeline .dep-3::before, .aid-timeline .dep-4::before { border-color: var(--muted); }
.aid-tl-body strong { display: block; font-size: 15.5px; }
.aid-tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.aid-tl-agent { margin-top: 6px !important; font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.aid-tl-source { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px !important; padding: 6px 10px; border-radius: 10px; font-size: 13.5px;
  color: var(--ink); background: color-mix(in srgb, var(--ai2) 16%, transparent); border: 1px solid color-mix(in srgb, var(--ai1) 30%, transparent); }
.aid-tl-source .aid-i { color: var(--ai1); }
.aid-chain { display: grid; gap: 10px; }
.aid-chain li { position: relative; }
.aid-chain .dep-1 { margin-left: 26px; } .aid-chain .dep-2 { margin-left: 52px; } .aid-chain .dep-3, .aid-chain .dep-4 { margin-left: 78px; }
.aid-chain .dep-1::before, .aid-chain .dep-2::before, .aid-chain .dep-3::before, .aid-chain .dep-4::before { content: ""; position: absolute; left: -18px; top: -10px;
  width: 14px; height: 34px; border-left: 2px solid var(--line2); border-bottom: 2px solid var(--line2); border-bottom-left-radius: 8px; }
.aid-ing { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); }
.aid-ing > .aid-i { color: var(--c1); font-size: 20px; }
.aid-ing-main { display: grid; gap: 2px; min-width: 0; }
.aid-ing-main strong { overflow-wrap: anywhere; }
.aid-ing-rel { font-size: 13px; color: var(--muted); }
.aid-codes { display: grid; gap: 8px; }
.aid-codes li { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 14px; color: var(--ink2); }
.aid-codes .k-failure .aid-code { background: color-mix(in srgb, var(--alert) 16%, transparent); color: var(--ink); }
.aid-codes .k-issue .aid-code { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--ink); }

/* facts + preview */
.aid-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.aid-figure { display: grid; place-items: center; padding: 14px; border-radius: 16px; min-height: 160px;
  background: repeating-conic-gradient(var(--surface2) 0 25%, var(--bg2) 0 50%) 0 0 / 22px 22px; border: 1px solid var(--line); }
.aid-preview { display: block; max-width: 100%; max-height: 420px; height: auto; border-radius: 10px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7); }
.aid-figure-audio { background: var(--bg2); gap: 14px; }
.aid-figure-audio > .aid-i { font-size: 40px; color: var(--ai1); }
.aid-audio { width: 100%; }
.aid-text { margin: 0; max-height: 380px; overflow: auto; padding: 18px 20px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line);
  white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.7 var(--mono); color: var(--ink2); }
.aid-text code { font: inherit; color: inherit; }

/* actions */
.aid-actions { margin-top: 40px; padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; }
.aid-actions-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.aid-inline-form { margin: 0; }

/* how it works */
.aid-how { display: grid; gap: 14px; counter-reset: none; }
.aid-how-layer { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 24px; padding: 28px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.aid-how-layer::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--lc); box-shadow: 0 0 24px var(--lc); }
.aid-how-n { font: 800 52px/1 var(--sans); letter-spacing: -.05em; color: var(--lc); opacity: .9; }
.aid-how-body { display: grid; gap: 10px; }
.aid-how-body > p { color: var(--ink2); }
.aid-limit { padding: 14px 16px; border-radius: 14px; background: var(--bg2); border: 1px dashed var(--line2); }
.aid-limit strong { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.aid-limit p { color: var(--ink2); font-size: 14.5px; }
.aid-order { display: grid; gap: 0; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.aid-order li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); align-items: start; }
.aid-order li:first-child { border-top: 0; }
.aid-order-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-weight: 800; background: var(--surface3); }
.aid-order li:first-child .aid-order-n { color: #fff; background: linear-gradient(140deg, #C026D3, #7C3AED); }
.aid-order strong { display: block; font-size: 16px; }
.aid-order p { color: var(--muted); font-size: 14.5px; }
.aid-verdicts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.aid-vcard { position: relative; padding: 22px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.aid-vcard-bar { display: block; width: 36px; height: 6px; border-radius: 6px; margin-bottom: 14px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.aid-vcard h3 { font-size: 17px; margin-bottom: 6px; }
.aid-vcard p { font-size: 14px; color: var(--muted); }

/* tables (status) */
.aid-table-wrap { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.aid-table { width: 100%; border-collapse: collapse; font-size: 14.5px; table-layout: fixed; }
.aid-table th { text-align: left; padding: 12px 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg2); }
.aid-table td { padding: 12px 18px; border-top: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: middle; }
.aid-table tr:hover td { background: var(--surface2); }
.aid-num { font-family: var(--mono); font-size: 13.5px; }

/* error pages */
.aid-error { max-width: 720px; margin: 40px auto 0; text-align: center; display: grid; justify-items: center; gap: 6px; }
.aid-error-code { font: 800 clamp(72px, 16vw, 140px)/1 var(--sans); letter-spacing: -.06em;
  background: linear-gradient(100deg, var(--l-provenance), var(--l-watermark) 45%, var(--ai1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aid-error .aid-lead { margin: 0 auto; }
.aid-error .aid-banner { text-align: left; width: 100%; box-sizing: border-box; }
.aid-error .aid-actions-row { justify-content: center; margin-top: 22px; }

/* responsive */
@media (max-width: 1100px) {
  .aid-layers, .aid-verdicts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aid-media { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .aid-verdict { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; padding: 36px 28px; }
  .aid-verdict-text .aid-chips { justify-content: center; }
  .aid-verdict-sentence { margin: 0 auto; }
  .aid-coverage-line { border-left: 0; padding-left: 0; }
  .aid-grid-3, .aid-c2pa-grid, .aid-split { grid-template-columns: 1fr; }
  .aid-stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aid-hero { padding: 52px 30px 44px; }
}
@media (max-width: 640px) {
  .aid-wrap { padding: 0 16px; }
  .aid-top-in { flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; min-height: 0; }
  .aid-nav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 2px; flex-wrap: nowrap; }
  .aid-nav-link { padding: 7px 9px; font-size: 14px; }
  .aid-theme { margin-left: auto; }
  .aid-main { padding-top: 18px; }
  .aid-hero { padding: 40px 20px 34px; border-radius: 24px; }
  .aid-lead, .aid-verdict-sentence { font-size: 17px; }
  .aid-panel { padding: 14px; border-radius: 20px; }
  .aid-drop { min-height: 210px; padding: 28px 14px; }
  .aid-form-foot .aid-btn { width: 100%; }
  .aid-layers, .aid-verdicts, .aid-media { grid-template-columns: 1fr; }
  .aid-stats { grid-template-columns: 1fr 1fr; }
  .aid-stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .aid-verdict { padding: 30px 18px; border-radius: 24px; }
  .aid-ring-wrap { --size: 184px; }
  .aid-ring-num { font-size: 40px; }
  .aid-finding-sum { grid-template-columns: auto minmax(0, 1fr) auto; padding: 16px; gap: 12px; }
  .aid-finding-side { grid-column: 2 / 4; grid-row: 2; }
  .aid-finding-sum > .aid-i { grid-column: 3; grid-row: 1; }
  .aid-finding-body { padding: 0 16px 18px; }
  .aid-evidence tr, .aid-fact { grid-template-columns: 1fr; gap: 2px; }
  .aid-evidence th { padding-bottom: 4px; }
  .aid-c2pa { padding: 18px; border-radius: 22px; }
  .aid-c2pa-head { grid-template-columns: auto minmax(0, 1fr); }
  .aid-c2pa-head .aid-state { grid-column: 1 / -1; justify-self: start; }
  .aid-ing { grid-template-columns: auto minmax(0, 1fr); }
  .aid-ing .aid-state { grid-column: 2; justify-self: start; }
  .aid-chain .dep-1, .aid-chain .dep-2, .aid-chain .dep-3, .aid-chain .dep-4 { margin-left: 20px; }
  .aid-codes li { grid-template-columns: 1fr; gap: 4px; }
  .aid-how-layer { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .aid-how-n { font-size: 36px; }
  .aid-actions-row .aid-btn, .aid-inline-form, .aid-inline-form .aid-btn { width: 100%; }
  .aid-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .aid-bands span, .aid-pulse::after, .aid-step.st-running::after, .aid-ring::before { animation: none !important; }
  .aid * { transition: none !important; }
}
@media (max-width: 640px) {
  .aid-stat-lg .aid-stat-value { font-size: 22px; overflow-wrap: normal; }
  .aid-table-wrap { overflow-x: auto; }
  .aid-table { table-layout: auto; }
  .aid-table th, .aid-table td { padding: 10px 12px; }
  .aid-table td .aid-code { overflow-wrap: break-word; word-break: normal; }
  .aid-table th, .aid-table td.aid-num { white-space: nowrap; overflow-wrap: normal; }
}
