/* ░░░ ToolWizHub — NetLens site · 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(232,121,249,.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 .55s ease, visibility .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 .55s cubic-bezier(.22,1,.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(232,121,249,.34), rgba(34,211,238,.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: #f3c0ff; text-shadow: 0 2px 12px rgba(232,121,249,.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,#22d3ee,#818cf8,#e879f9); animation: splash-bar 1.5s ease .3s forwards; }
@keyframes splash-bar { from{width:0} to{width:100%} }
@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,.045); --glass-2: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --c1: #22d3ee; --c2: #818cf8; --a: #e879f9;
  --grad: linear-gradient(110deg, var(--c1), var(--c2) 52%, var(--a));
  --ok: #34d399; --warn: #fbbf24; --fail: #fb7185; --low: #7c8cff;
  --axis-bg: #0c0c14;
  --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(.22,1,.36,1);
}
/* ── Light theme (toggle persists in localStorage 'netlens:theme') ── */
html[data-theme="light"] {
  --bg: #f5f6fb; --text: #14161f; --soft: #39405a; --muted: #6a7088; --faint: #9398ad;
  --glass: rgba(10,14,40,.035); --glass-2: rgba(10,14,40,.06);
  --line: rgba(10,14,40,.12); --line-2: rgba(10,14,40,.20);
  --axis-bg: #eceef6;
}
html[data-theme="light"] body::before, html[data-theme="light"] body::after { opacity: .18; }
* { 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: .42; 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 ──────────────────────────────────────── */
.appbar { display: flex; align-items: center; justify-content: space-between; 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); 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 pill stays dark in both themes (gold logo needs a dark backing) → keep its text light */
.brand__text strong { font-family: var(--display); font-size: 16px; font-weight: 700; color: #f4f5fb; }
.brand__text span { font-size: 9.5px; letter-spacing: .16em; color: #9298b0; font-weight: 700; }
.appbar__links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--soft); }
.appbar__links a:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 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); }
.btn--ghost { color: var(--soft); background: var(--glass-2); border: 1px solid var(--line-2); }
.btn--ghost:hover { color: var(--text); border-color: var(--c1); }

.main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,5vw,48px); }

/* ── Hero (landing) ───────────────────────────────── */
.hero { text-align: center; padding: clamp(40px,8vw,84px) 0 40px; }
.hero__eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--a); padding: 6px 14px; border-radius: var(--r-pill); background: rgba(232,121,249,.09); border: 1px solid rgba(232,121,249,.25); margin-bottom: 22px; }
.hero__title { font-family: var(--display); font-weight: 700; letter-spacing: -1.4px; line-height: 1.05; font-size: clamp(34px,6vw,64px); color: var(--text); max-width: 16ch; margin: 0 auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: var(--soft); font-size: clamp(15px,2vw,18px); max-width: 600px; margin: 20px auto 28px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.privacy { display: inline-block; margin-top: 22px; 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); }

/* ── Sections ─────────────────────────────────────── */
.section { padding: clamp(40px,6vw,72px) 0; }
.section__title { font-family: var(--display); font-weight: 700; font-size: clamp(24px,3.4vw,34px); color: var(--text); text-align: center; letter-spacing: -.5px; }
.section__lead { text-align: center; color: var(--muted); max-width: 560px; margin: 12px auto 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 40px; }
.feature { padding: 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); transition: transform .18s var(--ease), border-color .2s; }
.feature:hover { transform: translateY(-3px); border-color: var(--line-2); }
.feature__ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(232,121,249,.1); color: var(--a); font-size: 20px; margin-bottom: 14px; }
.feature h3 { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; counter-reset: s; }
.step { padding: 22px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-family: var(--mono); font-weight: 700; color: #04141a; background: var(--grad); margin-bottom: 12px; }
.step h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 13.5px; }
.step code { font-family: var(--mono); font-size: 12px; color: var(--c1); }

.install { max-width: 760px; margin: 36px auto 0; padding: 26px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.install ol { margin: 0; padding-left: 20px; color: var(--soft); }
.install li { margin: 8px 0; font-size: 14.5px; }
.install code { font-family: var(--mono); font-size: 12.5px; color: var(--c1); background: rgba(0,0,0,.3); padding: 2px 7px; border-radius: 6px; }

/* ── Footer ───────────────────────────────────────── */
.app-footer { max-width: var(--maxw); margin: 44px auto 0; padding: 26px clamp(20px,5vw,48px) 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.app-footer__brand { display: inline-flex; align-items: center; gap: 9px; opacity: .6; transition: opacity .2s; }
.app-footer__brand:hover { opacity: 1; }
.app-footer__brand img { height: 20px; }
.app-footer__brand span { font-size: 12px; font-weight: 600; color: var(--muted); }
.app-footer__copy { font-size: 12px; color: var(--faint); }

/* ── Legal / privacy prose ────────────────────────── */
.legal { max-width: 780px; margin: 0 auto; padding: 24px clamp(20px,5vw,48px) 48px; }
.legal h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px,4vw,40px); color: var(--text); letter-spacing: -.5px; }
.legal__date { color: var(--faint); font-size: 13px; margin-top: 6px; margin-bottom: 26px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--text); margin: 30px 0 10px; }
.legal p, .legal li { color: var(--soft); font-size: 15px; line-height: 1.75; }
.legal ul { margin: 8px 0 0; padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal strong { color: var(--text); }
.legal code { font-family: var(--mono); font-size: 12.5px; color: var(--c1); background: var(--glass); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.legal a { color: var(--c1); text-decoration: underline; text-underline-offset: 3px; }
.legal .tldr { padding: 16px 18px; border-radius: var(--r); background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25); line-height: 1.6; }

/* ── Report page ──────────────────────────────────── */
.report { max-width: var(--maxw); margin: 0 auto; padding: 24px clamp(20px,5vw,48px) 60px; }
.report__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px; border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--line); }
.rgrade { width: 84px; height: 84px; flex-shrink: 0; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--mono); font-weight: 800; font-size: 40px; border: 1px solid var(--line-2); }
.rgrade::after { content: "GRADE"; font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .14em; opacity: .65; }
.rgrade--A, .rgrade--B { color: var(--ok); background: radial-gradient(120% 120% at 50% 0, rgba(52,211,153,.22), rgba(52,211,153,.05)); border-color: rgba(52,211,153,.4); }
.rgrade--C { color: var(--warn); background: radial-gradient(120% 120% at 50% 0, rgba(251,191,36,.22), rgba(251,191,36,.05)); border-color: rgba(251,191,36,.4); }
.rgrade--D, .rgrade--F { color: var(--fail); background: radial-gradient(120% 120% at 50% 0, rgba(251,113,133,.24), rgba(251,113,133,.05)); border-color: rgba(251,113,133,.4); }
.report__meta { flex: 1; min-width: 200px; }
.report__site { font-family: var(--mono); font-size: 20px; color: var(--text); }
.report__when { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.report__actions { display: flex; gap: 10px; }

.rstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.rstat { padding: 16px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.rstat b { display: block; font-family: var(--mono); font-size: 24px; letter-spacing: -.5px; }
.rstat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rstat--track b { color: var(--fail); }

.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
.card__head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 14px; }
.card__body { padding: 16px 18px; }
.bar { display: grid; grid-template-columns: 120px 1fr 96px; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar:last-child { margin-bottom: 0; }
.bar__label { font-size: 13px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__track { height: 9px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--grad); box-shadow: 0 0 12px rgba(232,121,249,.4); }
.bar__val { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: right; }

.domtable { width: 100%; border-collapse: collapse; }
.domtable th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.domtable td { padding: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.domtable tr:last-child td { border-bottom: none; }
.domtable tr:hover td { background: var(--glass); }
.dom__d { font-family: var(--mono); font-size: 12.5px; }
.tag { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; }
.tag--third { color: var(--a); border: 1px solid rgba(232,121,249,.3); background: rgba(232,121,249,.08); }
.tag--first { color: var(--c1); border: 1px solid rgba(34,211,238,.3); background: rgba(34,211,238,.08); }
.num { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }

.report__empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.report__empty h2 { font-family: var(--display); color: var(--text); font-size: 22px; margin-bottom: 10px; }
.drop { margin: 22px auto 0; max-width: 420px; padding: 28px; border: 1.5px dashed var(--line-2); border-radius: var(--r); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.is-drag { border-color: var(--a); background: rgba(232,121,249,.06); }

/* report v2: security headers, PII leaks, waterfall, explorer filters */
.card__head--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card__body--table { padding: 0; overflow-x: auto; }
.card__body--table .domtable th, .card__body--table .domtable td { padding-left: 18px; }
.rstat--warn b { color: var(--warn); }

.secgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.secchip { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); }
.secchip b { display: block; font-size: 12px; }
.secchip span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.secchip.is-ok { border-color: rgba(52,211,153,.3); } .secchip.is-ok b { color: var(--ok); }
.secchip.is-bad { border-color: rgba(251,113,133,.3); } .secchip.is-bad b { color: var(--fail); }

.leak { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.leak:last-child { border-bottom: none; }
.leak--third .dom__d { color: var(--a); }
.leak__tags { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.tag--pii { color: var(--fail); border: 1px solid rgba(251,113,133,.35); background: rgba(251,113,133,.1); }

.wf__total { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.wf { display: grid; grid-template-columns: 150px 1fr 60px; align-items: center; gap: 12px; padding: 3px 0; border-radius: 5px; }
.wf:not(.wf--axis):hover { background: rgba(255,255,255,.03); }
.wf__label { font-family: var(--mono); font-size: 11px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf__track { position: relative; height: 13px; border-radius: 4px; background: rgba(255,255,255,.035);
  background-image: repeating-linear-gradient(90deg, transparent, transparent calc(25% - 1px), rgba(255,255,255,.06) calc(25% - 1px), rgba(255,255,255,.06) 25%); }
.wf__bar { position: absolute; top: 2.5px; height: 8px; border-radius: 3px; min-width: 2px; box-shadow: 0 0 8px -2px currentColor; }
.wf__bar--track { background: var(--fail); color: var(--fail); } .wf__bar--third { background: var(--a); color: var(--a); } .wf__bar--first { background: var(--c1); color: var(--c1); }
.wf__dur { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-align: right; }
.wf--axis { margin-bottom: 4px; }
.wf__axis { position: relative; height: 14px; }
.wf__tick { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: 9.5px; color: var(--faint); white-space: nowrap; }
.wf__tick:first-child { transform: none; }
.wf__legend { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.wf__leg { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
/* scroller — keeps a long timeline compact, axis pinned at the top */
.wf__scroll { max-height: 440px; overflow-y: auto; overflow-x: hidden; margin: 0 -2px; padding: 0 2px; }
.wf__scroll::-webkit-scrollbar { width: 10px; }
.wf__scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.wf__scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); }
.wf__scroll > .wf:nth-of-type(even) { background: rgba(255,255,255,.018); }
.wf--axis { position: sticky; top: 0; z-index: 2; background: var(--axis-bg); padding-bottom: 7px; margin-bottom: 3px; box-shadow: 0 1px 0 var(--line); }
.wf--axis:hover { background: var(--axis-bg); }

/* grade panel */
.gradewhy { display: flex; flex-direction: column; gap: 14px; }
.gscore { font-family: var(--mono); font-size: 15px; color: var(--text); }
.gcomp { display: flex; gap: 8px; flex-wrap: wrap; }
.gpart { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--line); }
.gpart b { font-family: var(--mono); font-size: 15px; color: var(--a); }
.gpart span { font-size: 10.5px; color: var(--muted); }
.gpart--ok b { color: var(--ok); }
.gscale__title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.gscale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gcell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); opacity: .5; transition: opacity .2s, transform .2s, box-shadow .2s; }
.gcell.is-active { opacity: 1; transform: translateY(-2px); }
.gcell b { font-family: var(--mono); font-size: 22px; font-weight: 800; }
.gcell__r { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.gcell__l { font-size: 10px; color: var(--faint); }
.gcell--A b, .gcell--B b { color: var(--ok); }
.gcell--C b { color: var(--warn); }
.gcell--D b, .gcell--F b { color: var(--fail); }
.gcell--A.is-active, .gcell--B.is-active { border-color: rgba(52,211,153,.45); box-shadow: 0 6px 20px rgba(52,211,153,.16); }
.gcell--C.is-active { border-color: rgba(251,191,36,.45); box-shadow: 0 6px 20px rgba(251,191,36,.16); }
.gcell--D.is-active, .gcell--F.is-active { border-color: rgba(251,113,133,.45); box-shadow: 0 6px 20px rgba(251,113,133,.16); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters__search, .filters__sel { font: inherit; font-size: 12.5px; color: var(--text); background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; outline: none; }
.filters__search { min-width: 180px; }
.filters__search:focus, .filters__sel:focus { border-color: var(--c1); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot--track { background: var(--fail); } .dot--third { background: var(--a); } .dot--first { background: var(--c1); }
.url { max-width: 360px; }
.url span { font-family: var(--mono); font-size: 11px; color: var(--faint); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted-note { font-size: 12px; color: var(--faint); padding: 10px 0; }

/* "Who it talks to" — company rows with initial badge + share bar */
.party { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.party:last-child { border-bottom: none; }
.party:hover { background: rgba(255,255,255,.025); border-radius: 8px; }
.party__badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px;
  color: hsl(var(--h, 280) 75% 78%); background: hsl(var(--h, 280) 60% 55% / .16); border: 1px solid hsl(var(--h, 280) 60% 60% / .35); }
.party__main { min-width: 0; }
.party__name { font-family: var(--mono); font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 7px; }
.party__bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; }
.party__fill { height: 100%; border-radius: 999px; background: var(--grad); box-shadow: 0 0 10px rgba(232,121,249,.35); }
.party__stat { text-align: right; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.party__n { font-family: var(--mono); font-size: 11.5px; color: var(--soft); white-space: nowrap; }
.party__dom { font-size: 10px; color: var(--faint); }

/* theme toggle */
.theme-toggle { font-size: 15px; line-height: 1; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); color: var(--soft); background: var(--glass); cursor: pointer; transition: color .2s, border-color .2s; }
.theme-toggle:hover { color: var(--text); border-color: var(--c1); }

/* request detail drawer */
.domtable tbody tr { cursor: pointer; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 50; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 92vw); background: var(--bg); border-left: 1px solid var(--line-2); box-shadow: -24px 0 60px rgba(0,0,0,.45); transform: translateX(100%); transition: transform .28s var(--ease); z-index: 51; overflow-y: auto; padding: 22px; }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.drawer__title { font-family: var(--mono); font-size: 15px; color: var(--text); word-break: break-all; }
.drawer__close { font-size: 13px; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); flex-shrink: 0; cursor: pointer; }
.drawer__close:hover { color: var(--text); border-color: var(--line-2); }
.drawer__url { font-family: var(--mono); font-size: 11.5px; color: var(--c1); word-break: break-all; background: var(--glass); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }
.drawer__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer__k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.drawer__v { font-family: var(--mono); font-size: 12.5px; color: var(--text); text-align: right; word-break: break-word; }
.drawer__v.ok { color: var(--ok); } .drawer__v.bad { color: var(--fail); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line); }
.pager__btn { font: inherit; font-size: 12.5px; color: var(--soft); background: var(--glass-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 16px; cursor: pointer; transition: color .2s, border-color .2s; }
.pager__btn:hover:not(:disabled) { color: var(--text); border-color: var(--c1); }
.pager__btn:disabled { opacity: .4; cursor: default; }
.pager__info { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 120px; text-align: center; }

@media (max-width: 760px) { .rgrid { grid-template-columns: 1fr; } .appbar__links { display: none; } .wf { grid-template-columns: 96px 1fr 48px; } .gscale { grid-template-columns: repeat(5, 1fr); gap: 5px; } .gcell b { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; } }
