/* ░░░ ToolWizHub — PII Exposure Scanner · dark glass theme ░░░ */

/* ── Splash ────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer;
  background:
    radial-gradient(56% 46% at 50% 42%, rgba(255, 184, 72, 0.16), transparent 70%),
    radial-gradient(120% 90% at 100% 0%, #123a44 0%, transparent 55%),
    radial-gradient(120% 90% at 0% 100%, #2a1840 0%, transparent 55%),
    #07070d;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  animation: splash-failsafe 0s linear 5s forwards;
}
html.no-splash .splash { display: none; }
.splash.is-hiding { opacity: 0; visibility: hidden; pointer-events: none; }
.splash.is-hiding .splash__stage { transform: scale(1.08); }
.splash__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.splash__glow { position: absolute; top: 42%; left: 50%; width: 320px; height: 320px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(255, 184, 72, 0.34), rgba(34, 211, 238, 0.16) 45%, transparent 70%); filter: blur(10px);
  animation: splash-glow 2.4s ease-in-out infinite; }
@keyframes splash-glow { 0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); } }
.splash__logo { position: relative; width: clamp(150px, 42vw, 200px); height: auto; filter: drop-shadow(0 14px 34px rgba(0,0,0,.55));
  animation: splash-in .8s cubic-bezier(.34,1.56,.64,1) both, splash-float 3.2s ease-in-out .8s infinite; }
@keyframes splash-in { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes splash-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.splash__tagline { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 7px; text-transform: uppercase; padding-left: 7px;
  color: #ffd486; text-shadow: 0 2px 12px rgba(255,184,72,.4); opacity: 0; animation: splash-fade .6s ease .55s forwards; }
@keyframes splash-fade { to { opacity: .95; } }
.splash__bar { width: 168px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.splash__bar > span { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #ffb648, #22d3ee, #e879f9); animation: splash-bar 1.5s ease .3s forwards; }
@keyframes splash-bar { from { width: 0; } to { width: 100%; } }
.splash__sparkles { position: absolute; inset: -10% -20%; pointer-events: none; }
.splash__sparkles span { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 2px rgba(255,212,134,.9); opacity: 0; animation: splash-sparkle 1.9s ease-in-out infinite; }
.splash__sparkles span:nth-child(1){top:26%;left:28%;animation-delay:0s}
.splash__sparkles span:nth-child(2){top:20%;left:70%;animation-delay:.45s}
.splash__sparkles span:nth-child(3){top:58%;left:20%;animation-delay:.9s}
.splash__sparkles span:nth-child(4){top:62%;left:78%;animation-delay:.25s}
.splash__sparkles span:nth-child(5){top:36%;left:86%;animation-delay:.65s}
.splash__sparkles span:nth-child(6){top:78%;left:48%;animation-delay:1.1s}
@keyframes splash-sparkle { 0%,100%{opacity:0;transform:scale(0)} 40%{opacity:1;transform:scale(1.25)} 70%{opacity:.6;transform:scale(.9)} }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ── Tokens ───────────────────────────────────────── */
:root {
  --bg: #07070d; --text: #f4f5fb; --soft: #c2c6da; --muted: #8087a0; --faint: #5a6080;
  --glass: rgba(255,255,255,0.045); --glass-2: rgba(255,255,255,0.07);
  --line: rgba(255,255,255,0.09); --line-strong: rgba(255,255,255,0.16);
  --c1: #22d3ee; --c2: #818cf8; --c3: #e879f9;
  --grad: linear-gradient(110deg, var(--c1), var(--c2) 55%, var(--c3));
  --ok: #34d399; --warn: #fbbf24; --fail: #fb7185; --low: #7c8cff;
  --r: 18px; --r-pill: 999px; --maxw: 1600px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--sans); --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--sans); color: var(--text); background: var(--bg); min-height: 100vh; line-height: 1.6;
  -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden;
}
body::before, body::after { content: ""; position: fixed; z-index: -1; border-radius: 50%; filter: blur(100px); opacity: 0.45; pointer-events: none; }
body::before { width: 52vw; height: 52vw; top: -16vw; right: -12vw; background: radial-gradient(circle, rgba(34,211,238,.45), transparent 70%); animation: drift1 19s var(--ease) infinite alternate; }
body::after { width: 48vw; height: 48vw; bottom: -18vw; left: -12vw; background: radial-gradient(circle, rgba(232,121,249,.4), transparent 70%); animation: drift2 23s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(-8vw, 10vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(8vw, -8vw) scale(1.1); } }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── App bar / brand ──────────────────────────────── */
.appbar { display: flex; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 22px clamp(20px, 5vw, 48px) 0; }
.brand { display: inline-flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r); text-decoration: none;
  background: linear-gradient(180deg, #1d2333, #12151f); border: 1px solid var(--line); }
.brand__mark { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.brand__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
.brand__text strong { font-family: var(--display); font-size: 16px; font-weight: 700; color: #fff; }
.brand__text span { font-size: 9.5px; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; }

/* ── Layout / intro ───────────────────────────────── */
.main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.intro { text-align: center; padding: clamp(34px, 7vw, 64px) 0 28px; }
.intro__title, .intro__sub { margin-left: auto; margin-right: auto; } /* hero stays readable; functional area goes full width */
.intro__title { font-family: var(--display); font-weight: 700; letter-spacing: -1.2px; line-height: 1.06; font-size: clamp(30px, 5.2vw, 50px); color: #fff; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro__sub { color: var(--soft); font-size: clamp(15px, 2vw, 17px); max-width: 560px; margin: 16px auto 18px; }
.privacy { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--ok); padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(52,211,153,.09); border: 1px solid rgba(52,211,153,.25); }

/* ── Scan panel ───────────────────────────────────── */
.scan__panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* segmented input switcher */
.scan__tabs { display: flex; align-items: center; gap: 5px; margin-bottom: 13px; }
.tab { font-size: 13px; font-weight: 600; color: var(--muted); padding: 7px 15px; border-radius: 10px; border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); background: var(--glass-2); border-color: var(--line); box-shadow: inset 0 0 0 1px rgba(255,255,255,.02); }
.scan__samples { margin-left: auto; font-size: 12.5px; color: var(--faint); }
.pane { animation: fade .22s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* From URL */
.url-row { display: flex; gap: 10px; flex-wrap: wrap; }
.url-in { flex: 1; min-width: 220px; background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; color: var(--text); font-family: var(--mono); font-size: 13px; outline: none; transition: border-color .2s, box-shadow .25s; }
.url-in:focus { border-color: transparent; box-shadow: 0 0 0 1.5px var(--c1), 0 0 28px rgba(34,211,238,.2); }
.url-in::placeholder { color: var(--faint); }
.url-note { font-size: 12px; color: var(--faint); margin-top: 11px; line-height: 1.5; }
.url-note--err { color: var(--fail); }

/* Upload */
.filedrop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; cursor: pointer;
  min-height: 220px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: rgba(0,0,0,.18); transition: border-color .2s, background .2s; }
.filedrop:hover, .filedrop.is-drag { border-color: var(--c1); background: rgba(34,211,238,.06); }
.filedrop__icon { font-size: 30px; line-height: 1; color: var(--c1); }
.filedrop__text { font-size: 14px; font-weight: 600; color: var(--soft); }
.filedrop__link { color: var(--c1); text-decoration: underline; text-underline-offset: 3px; }
.filedrop__sub { font-size: 12px; color: var(--faint); }
.link { color: var(--c1); font: inherit; font-size: 12.5px; border-bottom: 1px dashed rgba(34,211,238,.4); }
.link:hover { color: var(--c3); border-bottom-color: var(--c3); }
.scan__input {
  width: 100%; min-height: 220px; resize: vertical; border-radius: 12px; padding: 14px 16px;
  background: rgba(0,0,0,0.28); border: 1px solid var(--line); color: var(--text);
  font-family: var(--mono); font-size: 13px; line-height: 1.6; outline: none; transition: border-color .2s, box-shadow .25s;
}
.scan__input:focus { border-color: transparent; box-shadow: 0 0 0 1.5px var(--c1), 0 0 28px rgba(34,211,238,.2); }
.scan__input::placeholder { color: var(--faint); }
.scan__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px;
  transition: transform .18s var(--ease), box-shadow .25s, background-position .5s; }
.btn--primary { color: #04141a; background: var(--grad); background-size: 160% 160%; box-shadow: 0 8px 24px rgba(129,140,248,.4); }
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 12px 30px rgba(232,121,249,.45); }

/* ── Results ──────────────────────────────────────── */
.results { display: flex; flex-direction: column; gap: 16px; margin: 22px 0 10px; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.clean { text-align: center; padding: 30px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); color: var(--ok); font-weight: 600; }
.clean--error { color: var(--fail); }

.summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--line); }
.summary__counts { display: flex; gap: 8px; flex-wrap: wrap; }
.summary__fmt { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.tally { font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 7px; background: var(--glass-2); border: 1px solid var(--line); color: var(--soft); }
.tally--critical, .tally--high { color: var(--fail); border-color: rgba(251,113,133,.3); }
.tally--medium { color: var(--warn); border-color: rgba(251,191,36,.3); }
.tally--low { color: var(--low); }
.tally--masked { color: var(--ok); border-color: rgba(52,211,153,.3); }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid transparent; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill--sm { padding: 4px 11px; font-size: 10.5px; }
.pill--fail { color: var(--fail); background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.25); }
.pill--warn { color: var(--warn); background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.25); }
.pill--ok   { color: var(--ok);   background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.25); }
.pill--low  { color: var(--low);  background: rgba(124,140,255,.1); border-color: rgba(124,140,255,.25); }

.suggest { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-radius: var(--r);
  background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.2); }
.suggest__k { font-size: 12px; font-weight: 600; color: var(--c1); text-transform: uppercase; letter-spacing: .06em; }
.suggest__v { font-family: var(--mono); font-size: 14px; color: var(--text); }

.card { border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; }
.card__head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card__title { font-family: var(--display); font-weight: 600; font-size: 14px; }
.card__body { padding: 6px 18px 14px; }

/* findings as a responsive card grid — align-items:start so a tall card doesn't
   stretch its row-mates into big empty boxes */
.finding-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; padding: 14px 18px 16px; align-items: start; }
.fcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 13px 14px 13px 17px; border-radius: 12px;
  background: var(--glass-2); border: 1px solid var(--line); overflow: hidden; transition: transform .15s var(--ease), border-color .2s, box-shadow .2s; }
.fcard:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.fcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--muted); }
.fcard--fail::before { background: var(--fail); }
.fcard--warn::before { background: var(--warn); }
.fcard--low::before  { background: var(--low); }
.fcard--ok::before   { background: var(--ok); }
.fcard--ok { opacity: .78; }
.fcard--ignored { opacity: .7; }
.fcard--ignored::before { background: var(--faint); }
.fcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fcard__acts { display: flex; align-items: center; gap: 6px; }
.fcard__type { font-family: var(--display); font-weight: 600; font-size: 13.5px; color: #fff; }
.fcard--ignored .fcard__type { color: var(--soft); }
.fcard__field { font-family: var(--mono); font-size: 11.5px; color: var(--muted); word-break: break-all; }
.fcard--ignored .fcard__field { text-decoration: line-through; text-decoration-color: var(--faint); }
.fcard__ex { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px;
  background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
/* clamp long values (a field-name match can be a whole log line) so no card balloons */
.fcard__raw, .fcard__masked { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: break-all; max-width: 100%; }
.fcard__raw { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.18); }
.fcard__arrow { color: var(--c1); flex-shrink: 0; }
.fcard__masked { color: var(--ok); }
.fcard__regs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; }
.reg { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 2px 7px; border-radius: 6px; background: var(--glass-2); border: 1px solid var(--line); }
.reg--hint { color: var(--c2); }

.snippet { padding: 12px 0; border-bottom: 1px solid var(--line); }
.snippet:last-child { border-bottom: none; }
.snippet__title { font-size: 12.5px; font-weight: 600; color: var(--soft); margin-bottom: 8px; }
.snippet__code { background: rgba(0,0,0,0.32); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.snippet__code code { font-family: var(--mono); font-size: 12.5px; color: #d8def0; white-space: pre; }

/* ── Dropzone ─────────────────────────────────────── */
.dropzone { position: relative; }
.dropzone.is-drag .scan__input { border-color: var(--c1); box-shadow: 0 0 0 1.5px var(--c1), 0 0 28px rgba(34,211,238,.25); }
.dropzone__hint { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; border-radius: 12px;
  font-weight: 600; color: var(--c1); background: rgba(7,7,13,.78); pointer-events: none; }
.dropzone.is-drag .dropzone__hint { display: flex; }

/* ── Summary tools / export ───────────────────────── */
.summary__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ghost { font-family: var(--mono); font-size: 11px; color: var(--soft); padding: 5px 11px; border-radius: 8px;
  background: var(--glass-2); border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.ghost:hover { color: var(--text); border-color: var(--line-strong); }
.tally--ignored { color: var(--c2); border-color: rgba(129,140,248,.3); cursor: pointer; }
.tally--ignored:hover { color: var(--text); }

.ghost--share { color: var(--c3); border-color: rgba(232,121,249,.3); background: rgba(232,121,249,.08); }
.ghost--share:hover { color: #fff; border-color: rgba(232,121,249,.5); }
.ghost--share.is-done { color: var(--ok); border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.1); }

/* ── Share link banner ────────────────────────────── */
.share-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 18px; border-radius: var(--r);
  background: rgba(232,121,249,.06); border: 1px solid rgba(232,121,249,.25); animation: rise .25s var(--ease); }
.share-banner__k { font-size: 12px; font-weight: 700; color: var(--c3); text-transform: uppercase; letter-spacing: .05em; }
.share-banner__link { flex: 1; min-width: 200px; font-family: var(--mono); font-size: 12px; color: var(--text);
  background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; outline: none; }
.share-banner__link:focus { border-color: var(--c3); }
.share-banner__note { font-size: 11.5px; color: var(--faint); width: 100%; }

/* ── Shared (read-only) report banner ─────────────── */
.shared-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 13px 18px; border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--line); }
.shared-note span { font-size: 13px; font-weight: 600; color: var(--soft); }

/* ── Copy buttons ─────────────────────────────────── */
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.copy { font-family: var(--mono); font-size: 10.5px; color: var(--c1); padding: 4px 10px; border-radius: 7px;
  background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.25); transition: background .2s; }
.copy:hover { background: rgba(34,211,238,.16); }
.copy.is-done { color: var(--ok); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.3); }
.snippet__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ── Highlighted input ────────────────────────────── */
.highlight { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--soft); white-space: pre-wrap;
  word-break: break-word; max-height: 320px; overflow: auto; }
.hl { border-radius: 4px; padding: 0 3px; color: #fff; font-weight: 600; background: rgba(255,255,255,.06); }
.hl--fail { background: rgba(251,113,133,.22); box-shadow: inset 0 -2px 0 var(--fail); }
.hl--warn { background: rgba(251,191,36,.22); box-shadow: inset 0 -2px 0 var(--warn); }
.hl--low  { background: rgba(124,140,255,.22); box-shadow: inset 0 -2px 0 var(--low); }

/* ── Masked copy ──────────────────────────────────── */
.masked-out { background: rgba(0,0,0,.32); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  max-height: 320px; overflow: auto; }
.masked-out code { font-family: var(--mono); font-size: 12.5px; color: var(--ok); white-space: pre-wrap; word-break: break-word; }

/* ── Finding actions ──────────────────────────────── */
.mini { font-family: var(--mono); font-size: 10px; color: var(--muted); padding: 3px 8px; border-radius: 6px;
  background: var(--glass-2); border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.mini:hover { color: var(--text); border-color: var(--line-strong); }
.mini--x { color: var(--fail); }
.mini--x:hover { color: #fff; background: rgba(251,113,133,.18); border-color: rgba(251,113,133,.35); }
.mini--restore { color: var(--c1); border-color: rgba(34,211,238,.3); }
.mini--restore:hover { color: #fff; background: rgba(34,211,238,.16); border-color: rgba(34,211,238,.5); }

/* ── Ignored findings ─────────────────────────────── */
.card--ignored .card__title { color: var(--muted); }

/* ── Custom rules ─────────────────────────────────── */
.rules { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); overflow: hidden; }
.rules__summary { padding: 13px 18px; font-family: var(--display); font-weight: 600; font-size: 13.5px; cursor: pointer; list-style: none; }
.rules__summary::-webkit-details-marker { display: none; }
.rules__summary::before { content: "▸"; display: inline-block; margin-right: 9px; color: var(--c1); transition: transform .2s; }
.rules[open] .rules__summary::before { transform: rotate(90deg); }
.rules__hint { color: var(--faint); font-weight: 400; font-size: 12px; }
.rules__body { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.rules__form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.rules__in { flex: 1; min-width: 140px; background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 11px; color: var(--text); font-size: 13px; outline: none; }
.rules__in:focus { border-color: var(--c1); }
.rules__in--mono { font-family: var(--mono); font-size: 12.5px; }
.rules__sev { font-family: var(--mono); font-size: 12.5px; color: var(--text); background: var(--glass-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
.btn--ghost { padding: 8px 16px; font-size: 13px; border-radius: 8px; color: var(--c1); background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.3); }
.btn--ghost:hover { background: rgba(34,211,238,.16); }
.rules__err { color: var(--fail); font-size: 12px; margin-top: 8px; min-height: 0; }
.rules__err:empty { display: none; }
.rules__list { list-style: none; margin: 12px 0 0; display: flex; flex-direction: column; gap: 7px; }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 9px;
  background: var(--glass-2); border: 1px solid var(--line); }
.rule__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.rule__meta strong { font-size: 13px; color: var(--text); }
.rule__meta code { font-family: var(--mono); font-size: 11.5px; color: var(--c1); word-break: break-all; }
.rule__sev { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); }
.rule__sev--critical, .rule__sev--high { color: var(--fail); border-color: rgba(251,113,133,.3); }
.rule__sev--medium { color: var(--warn); border-color: rgba(251,191,36,.3); }
.rule__sev--low { color: var(--low); }
.rules__note { font-size: 11.5px; color: var(--faint); margin-top: 12px; }
.rules__note code { font-family: var(--mono); color: var(--soft); }

/* ── Footer ───────────────────────────────────────── */
.app-footer { max-width: var(--maxw); margin: 44px auto 0; padding: 20px clamp(20px,5vw,48px) 44px; display: flex; justify-content: center; border-top: 1px solid var(--line); }
.app-footer__brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; opacity: 0.5; transition: opacity 0.2s; }
.app-footer__brand:hover { opacity: 1; }
.app-footer__label { font-size: 12px; font-weight: 600; color: var(--muted); }
.app-footer__brand img { height: 20px; width: auto; display: block; }

@media (max-width: 560px) {
  .summary__fmt { margin-left: 0; width: 100%; }
  .finding-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; } }
