/* IP-DB v2 shell: tokens, header, footer, page loader, tooltip, inspector.
   Loaded on every page; pages built on the v2 design add v2.css, pages that
   still use main.css add bridge.css. Shell classes avoid main.css names
   (.gnav/.gbrand/.gbtn instead of .nav/.brand/.btn). */

/* ---------- 1. Tokens ---------- */
:root {
  --hdr-h: 64px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f2f4f7;
  --line: #e8eaee;
  --line-2: #d8dce3;
  --text: #0b0e15;
  --text-2: #3a4251;
  --muted: #687082;
  --faint: #98a0ad;

  --accent: #1f5eea;
  --accent-h: #184dc4;
  --accent-soft: #eef3ff;
  --accent-line: #cddafd;
  --accent-text: #1a4fcf;
  --on-accent: #ffffff;
  --ring: 0 0 0 4px rgba(31, 94, 234, .16);

  --ok: #14894a;   --ok-bg: #eaf7ef;   --ok-line: #c3e7d1;   --ok-dot: #22c55e;
  --low: #8a6500;  --low-bg: #fdf6de;  --low-line: #f0dfa0;  --low-dot: #eab308;
  --warn: #b9520b; --warn-bg: #fff2e7; --warn-line: #f9d2b2; --warn-dot: #f97316;
  --crit: #cf2736; --crit-bg: #fdedef; --crit-line: #f6c6cb; --crit-dot: #ef4444;
  --neutral-bg: #f2f4f7;

  --c-feeds: #2f6bff;
  --c-community: #8b5cf6;
  --c-dnsbl: #0ea5a5;
  --c-history: #64748b;
  --c-neigh: #f59e0b;

  --ink: #05070c;
  --ink-2: #0a0e16;
  --ink-3: #0f1520;
  --ink-line: rgba(255, 255, 255, .085);
  --ink-line-2: rgba(255, 255, 255, .14);
  --ink-text: #f3f5f9;
  --ink-text-2: #aab3c3;
  --ink-muted: #737e91;

  --shadow-xs: 0 1px 1px rgba(11, 14, 21, .04);
  --shadow-sm: 0 1px 2px rgba(11, 14, 21, .05), 0 1px 1px rgba(11, 14, 21, .03);
  --shadow: 0 1px 2px rgba(11, 14, 21, .04), 0 6px 20px -6px rgba(11, 14, 21, .10);
  --shadow-lg: 0 2px 6px rgba(11, 14, 21, .04), 0 28px 56px -16px rgba(11, 14, 21, .22);
  --r-xs: 6px; --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* the IP location card (static/js/ipgeo.js reads --accent) */
  --ipm-ring: #ffffff;
  --ipm-glass: rgba(255, 255, 255, .88);
  --ipm-glass-border: rgba(11, 14, 21, .08);
  --ipm-glass-shadow: 0 10px 30px -12px rgba(11, 14, 21, .25);
  --ipm-stage-bg: #eef1f5;
  --ipm-tile-filter: grayscale(1) contrast(.88) brightness(1.06);

  /* top areas (home hero, IP verdict header): light by default */
  --stage-bg: #ffffff;
  --stage-glow-a: rgba(47, 107, 255, .13);
  --stage-glow-b: rgba(99, 102, 241, .07);
  --stage-glow-c: rgba(14, 165, 233, .06);
  --stage-grid: rgba(11, 14, 21, .05);
  --stage-shadow: 0 1px 2px rgba(11, 14, 21, .04), 0 40px 80px -36px rgba(23, 46, 107, .28);
  --h1-a: #0b0e15; --h1-b: #33405a;
  --glass: rgba(255, 255, 255, .72); --glass-2: #ffffff; --glass-3: #f2f5fa;
  --glass-line: rgba(11, 14, 21, .1); --glass-line-2: rgba(11, 14, 21, .2);
  --eyebrow-shadow: 0 1px 2px rgba(11, 14, 21, .04), 0 8px 24px -12px rgba(31, 94, 234, .35);
  --search-bg: rgba(255, 255, 255, .9);
  --search-shadow: 0 1px 2px rgba(11, 14, 21, .05), 0 24px 50px -24px rgba(31, 94, 234, .4);
  --panel: #ffffff; --panel-glass: rgba(255, 255, 255, .86);
  --map-bg: radial-gradient(70% 80% at 50% 40%, rgba(47, 107, 255, .06), transparent 70%), #f8fafd;
  --frame-edge: linear-gradient(180deg, rgba(11, 14, 21, .12), rgba(11, 14, 21, .07));
  --frame-glint: rgba(47, 107, 255, .55);
  --flag-ring: rgba(11, 14, 21, .1);
  --verdict-bg: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
  --verdict-shadow: 0 1px 2px rgba(11, 14, 21, .05), 0 30px 60px -30px rgba(23, 46, 107, .3);
  --gauge-track: #edf0f4; --gauge-ticks: #d5dae2;
  --tone-glow: .13; --tone-halo: .35;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #07090e;
  --bg-alt: #0a0d14;
  --surface: #0d1118;
  --surface-2: #10151e;
  --surface-3: #151b26;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef1f6;
  --text-2: #b3bccb;
  --muted: #7e889a;
  --faint: #5b6577;

  --accent: #4b8bff;
  --accent-h: #6a9fff;
  --accent-soft: rgba(75, 139, 255, .12);
  --accent-line: rgba(75, 139, 255, .32);
  --accent-text: #86b0ff;
  --ring: 0 0 0 4px rgba(75, 139, 255, .22);

  --ok: #4ade80;   --ok-bg: rgba(34, 197, 94, .12);   --ok-line: rgba(34, 197, 94, .3);
  --low: #facc15;  --low-bg: rgba(234, 179, 8, .12);  --low-line: rgba(234, 179, 8, .3);
  --warn: #fb923c; --warn-bg: rgba(249, 115, 22, .13); --warn-line: rgba(249, 115, 22, .32);
  --crit: #f87171; --crit-bg: rgba(239, 68, 68, .13);  --crit-line: rgba(239, 68, 68, .34);
  --neutral-bg: rgba(255, 255, 255, .06);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 30px 60px -18px rgba(0, 0, 0, .7);

  --ipm-ring: #0b1220;
  --ipm-glass: rgba(14, 19, 30, .86);
  --ipm-glass-border: rgba(255, 255, 255, .08);
  --ipm-glass-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --ipm-stage-bg: #0b0f17;
  --ipm-tile-filter: grayscale(1) invert(1) brightness(.78) contrast(1.15);

  --btn-primary: #2563eb;
  --btn-primary-h: #3b78f5;
  --stage-bg: #05070c;
  --stage-glow-a: rgba(47, 107, 255, .42);
  --stage-glow-b: rgba(99, 102, 241, .16);
  --stage-glow-c: rgba(14, 165, 233, .10);
  --stage-grid: rgba(255, 255, 255, .045);
  --stage-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .5);
  --h1-a: #ffffff; --h1-b: #b9c6dc;
  --glass: rgba(255, 255, 255, .045); --glass-2: rgba(255, 255, 255, .08); --glass-3: rgba(255, 255, 255, .14);
  --glass-line: rgba(255, 255, 255, .12); --glass-line-2: rgba(255, 255, 255, .25);
  --eyebrow-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 10px 30px -10px rgba(47, 107, 255, .5);
  --search-bg: rgba(255, 255, 255, .055);
  --search-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 80px -30px rgba(47, 107, 255, .6);
  --panel: #070a11; --panel-glass: rgba(7, 10, 17, .72);
  --map-bg: radial-gradient(70% 80% at 50% 40%, rgba(47, 107, 255, .07), transparent 70%), #070a11;
  --frame-edge: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 40%, rgba(255, 255, 255, .02));
  --frame-glint: rgba(143, 181, 255, .9);
  --flag-ring: rgba(255, 255, 255, .1);
  --verdict-bg: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  --verdict-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --gauge-track: rgba(255, 255, 255, .07); --gauge-ticks: rgba(255, 255, 255, .14);
  --tone-glow: .22; --tone-halo: .55;

  color-scheme: dark;
}

/* Dark "ink" surfaces: the same components, re-tokened. */
.sec--dark, .hpshow, .prod--sensor, .inkpanel {
  --text: var(--ink-text);
  --text-2: var(--ink-text-2);
  --muted: var(--ink-muted);
  --faint: #566074;
  --line: var(--ink-line);
  --line-2: var(--ink-line-2);
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .05);
  --surface-3: rgba(255, 255, 255, .07);
  --accent: #5b95ff;
  --accent-h: #7aa9ff;
  --accent-soft: rgba(91, 149, 255, .14);
  --accent-line: rgba(91, 149, 255, .35);
  --accent-text: #8fb5ff;
  --ok: #4ade80;   --ok-bg: rgba(34, 197, 94, .13);   --ok-line: rgba(34, 197, 94, .32);
  --low: #fcd34d;  --low-bg: rgba(234, 179, 8, .13);  --low-line: rgba(234, 179, 8, .32);
  --warn: #fdba74; --warn-bg: rgba(249, 115, 22, .14); --warn-line: rgba(249, 115, 22, .34);
  --crit: #fca5a5; --crit-bg: rgba(239, 68, 68, .15);  --crit-line: rgba(239, 68, 68, .36);
  --neutral-bg: rgba(255, 255, 255, .07);
  --btn-primary: #2563eb;
  --btn-primary-h: #3b78f5;
  --glass: rgba(255, 255, 255, .045); --glass-2: rgba(255, 255, 255, .08); --glass-3: rgba(255, 255, 255, .14);
  --glass-line: rgba(255, 255, 255, .12); --glass-line-2: rgba(255, 255, 255, .25);
  color: var(--text);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.v2 {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
:where(.v2) :where(h1, h2, h3, h4) { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--text); text-wrap: balance; }
:where(.v2) p { margin: 0; text-wrap: pretty; }
:where(.v2) a { color: inherit; text-decoration: none; }
:where(.v2) :where(img, svg, canvas) { display: block; }
:where(.v2) img { max-width: 100%; height: auto; }
:where(.v2) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.v2) :where(input, select, textarea) { font: inherit; color: inherit; }
:where(.v2) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.v2) :where(dl, dd, figure, blockquote, pre) { margin: 0; }
:where(.v2) :where(code, kbd), .mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: 0; }
:where(.v2) ::selection { background: rgba(31, 94, 234, .22); }
:where(.v2) :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.i { flex: none; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
main:focus { outline: none; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-sm); background: var(--text); color: var(--bg); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* Page loader: a 2px line that runs while the page (or the next one) loads. */
.navbar-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 300; pointer-events: none; }
.navbar-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #2f6bff, #6aa0ff 60%, #a5c4ff); box-shadow: 0 0 10px rgba(47, 107, 255, .7); }
.js .navbar-progress span { animation: v2-load 1.6s var(--ease-out) forwards; }
.navbar-progress.is-done span { animation: none; transform: scaleX(1); opacity: 0; transition: transform .25s ease, opacity .4s ease .25s; }
.navbar-progress.is-leaving span { animation: v2-leave 6s cubic-bezier(.1, .6, .2, 1) forwards; opacity: 1; }
@keyframes v2-load { from { transform: scaleX(0); } to { transform: scaleX(.72); } }
@keyframes v2-leave { from { transform: scaleX(.08); } to { transform: scaleX(.9); } }

.flag { display: inline-block; width: 18px; height: 13px; border-radius: 2px; object-fit: cover; vertical-align: -1px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(11, 14, 21, .08); }

.live-dot { position: relative; display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #22c55e; opacity: 0; animation: v2-ping 2.4s var(--ease-out) infinite; }
@keyframes v2-ping { 0% { transform: scale(.5); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* Shell resets, scoped to the shell's own containers so they hold on pages that
   still load the pre-v2 main.css (body.v2-legacy). :where() keeps them at zero
   specificity: every shell component rule still wins. */
:where(.hdr, .ftr, .nav-scrim, .inspector, .tip) { font-family: var(--font); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; }
:where(.hdr, .ftr, .inspector) :where(h1, h2, h3, h4) { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--text); }
:where(.hdr, .ftr, .inspector) p { margin: 0; }
:where(.hdr, .ftr, .inspector) a, :where(.hdr, .ftr, .inspector) a:hover { color: inherit; text-decoration: none; }
:where(.hdr, .ftr, .inspector) :where(img, svg) { display: block; }
:where(.hdr, .ftr, .inspector) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; box-shadow: none; }
:where(.hdr, .ftr, .inspector) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.hdr, .ftr, .inspector) :where(dl, dd) { margin: 0; }
.hdr, .ftr { color: var(--text); }
.hdr *, .ftr * { box-sizing: border-box; }

/* ---------- shell primitives ---------- */
.gbtn { --b-bg: var(--surface); --b-fg: var(--text); --b-line: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--b-line); background: var(--b-bg); color: var(--b-fg);
  font: 500 14.5px/1 var(--font); letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, transform .15s; }
.gbtn .i { transition: transform .2s var(--ease); }
.gbtn:hover .i:last-child:not(:first-child) { transform: translateX(2px); }
.gbtn:active { transform: translateY(1px); }
.gbtn--primary { --b-bg: var(--btn-primary, var(--accent)); --b-fg: var(--on-accent); --b-line: transparent;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 1px 2px rgba(11, 14, 21, .2), 0 4px 12px -4px rgba(31, 94, 234, .55); }
.gbtn--primary:hover { --b-bg: var(--btn-primary-h, var(--accent-h)); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 1px 2px rgba(11, 14, 21, .2), 0 8px 20px -6px rgba(31, 94, 234, .6); }
.gbtn--secondary { box-shadow: var(--shadow-xs); }
.gbtn--secondary:hover { --b-line: var(--faint); --b-bg: var(--surface-2); }
.gbtn--ghost { --b-bg: transparent; --b-line: transparent; }
.gbtn--ghost:hover { --b-bg: var(--surface-3); }
.gbtn--glass { --b-bg: var(--glass); --b-line: var(--glass-line); --b-fg: var(--text); box-shadow: var(--shadow-xs); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gbtn--glass:hover { --b-bg: var(--glass-2); --b-line: var(--glass-line-2); }
.gbtn--light { --b-bg: #ffffff; --b-fg: #0b0e15; --b-line: transparent; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
.gbtn--light:hover { --b-bg: #eef2f8; }
.gbtn--ghost-dark { --b-bg: transparent; --b-fg: var(--ink-text); --b-line: rgba(255, 255, 255, .18); }
.gbtn--ghost-dark:hover { --b-bg: rgba(255, 255, 255, .07); }
.gbtn--sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.gbtn--lg { height: 48px; padding: 0 20px; font-size: 15.5px; border-radius: 12px; }
.gbtn--block { display: flex; width: 100%; }
.gbtn.is-copied { --b-line: var(--ok-line); }

.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--muted); border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.iconbtn:hover { background: var(--surface-3); color: var(--text); }
.iconbtn--sm { width: 30px; height: 30px; border-radius: 8px; }
.iconbtn--dark { color: var(--ink-muted); }
.iconbtn--dark:hover { background: rgba(255, 255, 255, .08); color: var(--ink-text); }
.iconbtn.is-copied { color: var(--ok); border-color: var(--ok-line); background: var(--ok-bg); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line); }
.seg__i { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); transition: color .15s, background-color .15s, box-shadow .15s; }
.seg__i:hover { color: var(--text); }
.seg__i.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .seg__i.is-on { background: var(--surface-3); box-shadow: 0 0 0 1px var(--line-2); }
.seg--sm .seg__i { height: 26px; padding: 0 10px; font-size: 12.5px; }

/* ---------- 4. Header ---------- */
.hdr { position: sticky; top: 0; z-index: 100; height: var(--hdr-h);
  background: rgba(255, 255, 255, .86);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  transition: background-color .3s, border-color .3s, box-shadow .3s; }
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(11, 14, 21, .25); }
.hdr__in { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.gbrand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 28px; height: 28px; }
.brand__name { font-weight: 650; font-size: 17px; letter-spacing: -0.03em; }

.gnav { flex: 1; min-width: 0; }
.nav__sheet-head, .nav__sheet-foot { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__btn, .nav__a { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 9px; font-size: 14.5px; font-weight: 450; color: var(--text-2); transition: color .15s, background-color .15s; }
.nav__btn:hover, .nav__a:hover, .nav__item.is-open > .nav__btn { color: var(--text); background: var(--surface-3); }
.nav__chev { opacity: .6; transition: transform .25s var(--ease); }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.nav__new { margin-left: 4px; padding: 2px 6px; border-radius: 5px; font: 600 10px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); }

.mm { position: absolute; top: calc(100% - 4px); left: 50%; width: min(860px, calc(100vw - 32px)); display: grid; grid-template-columns: 1fr 250px; gap: 8px; padding: 8px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(.985); transform-origin: 50% 0;
  transition: opacity .18s ease, transform .25s var(--ease-out), visibility 0s linear .25s; }
:root[data-theme="dark"] .mm { background: #0e131c; }
.mm--narrow { grid-template-columns: 1fr; width: min(460px, calc(100vw - 32px)); }
.nav__item.is-open > .mm { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .18s ease, transform .3s var(--ease-out), visibility 0s; }
.mm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 6px; }
.mm--narrow .mm__grid { grid-template-columns: 1fr; }
.mm__link { display: flex; gap: 12px; padding: 10px 12px; border-radius: 11px; transition: background-color .15s; }
.mm__link:hover { background: var(--surface-3); }
.mm__ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); transition: transform .2s var(--ease); }
.mm__link:hover .mm__ico { transform: translateY(-1px); }
.mm__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mm__txt b { font-size: 14px; font-weight: 550; letter-spacing: -0.01em; color: var(--text); }
.mm__txt em { font-style: normal; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.mm__feature { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 12px; overflow: hidden; color: var(--ink-text);
  background: radial-gradient(120% 90% at 100% 0%, rgba(47, 107, 255, .45), transparent 60%), linear-gradient(160deg, #0d1424, #05070c); }
.mm__feature::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 14px 14px; mask-image: linear-gradient(200deg, #000 10%, transparent 70%); -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 70%); pointer-events: none; }
.mm__feature-k { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8fb5ff; }
.mm__feature-ico { display: grid; place-items: center; width: 40px; height: 40px; margin: 10px 0 6px; border-radius: 11px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.mm__feature b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; }
.mm__feature em { font-style: normal; font-size: 13px; line-height: 1.45; color: var(--ink-text-2); }
.mm__feature-go { margin-top: auto; padding-top: 14px; color: #8fb5ff; transition: transform .2s var(--ease); }
.mm__feature:hover .mm__feature-go { transform: translateX(4px); }

.hdr__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr__tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 9px; border-radius: 9px; color: var(--text-2); font-size: 13px; font-weight: 500; transition: color .15s, background-color .15s; }
.hdr__tool:hover, .lang.is-open > .hdr__tool { color: var(--text); background: var(--surface-3); }
.hdr__login { margin-left: 6px; }
.hdr__burger { display: none; }
.t-sun { display: none; }
:root[data-theme="dark"] .t-sun { display: block; }
:root[data-theme="dark"] .t-moon { display: none; }
.lang { position: relative; }
.lang__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .2s var(--ease-out), visibility 0s linear .2s; }
:root[data-theme="dark"] .lang__menu { background: #0e131c; }
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .2s var(--ease-out), visibility 0s; }
.lang__menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.lang__menu a:hover { background: var(--surface-3); color: var(--text); }
.lang__menu a.is-on { color: var(--text); font-weight: 550; }
.lang__menu i { font: 500 11px/1 var(--mono); font-style: normal; color: var(--faint); }
.nav-scrim { position: fixed; inset: 0; z-index: 98; background: rgba(5, 7, 12, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.nav-scrim.is-on { opacity: 1; }

/* over the top area (home hero, IP verdict) until the page scrolls: transparent
   in both themes; light text only where that area is dark */
.hdr--over:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-theme="dark"] .hdr--over:not(.is-scrolled) .brand__name,
:root[data-theme="dark"] .hdr--over:not(.is-scrolled) .hdr__tool { color: rgba(243, 245, 249, .86); }
:root[data-theme="dark"] .hdr--over:not(.is-scrolled) .hdr__tool:hover, :root[data-theme="dark"] .hdr--over:not(.is-scrolled) .lang.is-open > .hdr__tool { color: #fff; background: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .hdr--over:not(.is-scrolled) .hdr__login { --b-fg: #f3f5f9; }
:root[data-theme="dark"] .hdr--over:not(.is-scrolled) .hdr__login:hover { --b-bg: rgba(255, 255, 255, .08); }
@media (min-width: 1081px) {
  :root[data-theme="dark"] .hdr--over:not(.is-scrolled) .nav__btn, :root[data-theme="dark"] .hdr--over:not(.is-scrolled) .nav__a { color: rgba(243, 245, 249, .78); }
  :root[data-theme="dark"] .hdr--over:not(.is-scrolled) .nav__btn:hover, :root[data-theme="dark"] .hdr--over:not(.is-scrolled) .nav__a:hover, :root[data-theme="dark"] .hdr--over:not(.is-scrolled) .nav__item.is-open > .nav__btn { color: #fff; background: rgba(255, 255, 255, .08); }
  :root[data-theme="dark"] .hdr--over:not(.is-scrolled) .nav__new { color: #b7cfff; background: rgba(91, 149, 255, .18); }
}
.is-home .hero, .is-ip .ipv { margin-top: calc(-1 * var(--hdr-h) - 1px); }

@media (max-width: 1080px) {
  .hdr__burger { display: inline-flex; }
  .hdr__cta, .hdr__login, .lang { display: none; }
  .gnav { position: fixed; z-index: 101; inset: 0 0 0 auto; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line);
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease-out), visibility 0s linear .35s; overflow-y: auto; overscroll-behavior: contain; }
  .gnav.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease-out), visibility 0s; box-shadow: var(--shadow-lg); }
  .nav__sheet-head { display: flex; align-items: center; justify-content: space-between; height: var(--hdr-h); padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); flex: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__btn, .nav__a { width: 100%; height: 52px; justify-content: space-between; padding: 0 8px; font-size: 16px; font-weight: 500; color: var(--text); border-radius: 0; }
  .nav__btn:hover, .nav__a:hover, .nav__item.is-open > .nav__btn { background: none; }
  .mm, .mm--narrow { position: static; width: auto; display: none; grid-template-columns: 1fr; padding: 0 0 12px; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  :root[data-theme="dark"] .mm { background: none; }
  .nav__item.is-open > .mm { display: grid; transform: none; }
  .mm__grid { grid-template-columns: 1fr; padding: 0; }
  .mm__link { padding: 9px 8px; }
  .mm__feature { display: none; }
  .nav__sheet-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 20px; border-top: 1px solid var(--line); }
  .nav__sheet-foot .seg { align-self: flex-start; }
}

.flashes { padding-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--r); font-size: 14px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.flash--error { border-color: var(--crit-line); background: var(--crit-bg); color: var(--crit); }

/* ---------- 11. Footer ---------- */
.ftr { background: var(--bg); border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 14px; }
.ftr__sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px 36px; margin-bottom: 64px; border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--line); }
.ftr__sub-k { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.ftr__sub-title { margin-top: 10px; font-size: 20px; letter-spacing: -0.02em; }
.ftr__sub p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.bsub-row { display: flex; gap: 8px; }
.bsub-field { position: relative; flex: 1; min-width: 0; }
.bsub-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.bsub-field input { width: 100%; height: 46px; padding: 0 14px 0 42px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); outline: 0; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.bsub-field input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.bsub .btn-primary { height: 46px; padding: 0 18px; border-radius: 11px; border: 0; background: var(--accent); color: #fff; font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: background-color .15s; }
.bsub .btn-primary:hover { background: var(--accent-h); }
.bsub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bsub-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.bsub-note.is-ok { color: var(--ok); }
.bsub-note.is-err { color: var(--crit); }
.bsub.is-busy { opacity: .7; pointer-events: none; }
.bsub.is-done .bsub-row { display: none; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.ftr__brand p { margin-top: 14px; max-width: 300px; color: var(--muted); line-height: 1.6; }
.ftr__social { display: flex; gap: 6px; margin-top: 20px; }
.ftr__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--muted); border: 1px solid var(--line); transition: color .15s, border-color .15s; }
.ftr__social a:hover { color: var(--text); border-color: var(--line-2); }
.ftr__status { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line); }
.ftr__status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.ftr__col h3 { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.ftr__col ul { display: grid; gap: 9px; }
.ftr__col a { color: var(--text-2); transition: color .15s; }
.ftr__col a:hover { color: var(--text); }
.ftr__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ftr__host { display: inline-flex; align-items: center; gap: 10px; }
.ftr__host span { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ftr__host img { height: 24px; width: auto; }
.ftr__host .fh-dark { display: none; }
:root[data-theme="dark"] .ftr__host .fh-light { display: none; }
:root[data-theme="dark"] .ftr__host .fh-dark { display: block; }
.ftr__mail { color: var(--text-2); font-size: 13px; }
@media (max-width: 980px) { .ftr__sub { grid-template-columns: 1fr; gap: 20px; padding: 26px; } .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } .bsub-row { flex-direction: column; } .ftr__bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- 12. Tooltip, inspector ---------- */
.tip { position: fixed; z-index: 400; max-width: 300px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.4; color: #f3f5f9; background: #0b0f17; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); pointer-events: none; }
.tip[hidden] { display: none; }

.inspector { position: fixed; left: 16px; bottom: 16px; z-index: 250; font-size: 13px; }
.inspector__pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 999px; color: #fff; background: #0b0f17; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); font-weight: 500; }
.inspector__pill i { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.inspector__pill span { padding: 3px 8px; border-radius: 999px; font: 500 11px/1 var(--mono); background: rgba(255, 255, 255, .1); }
.inspector__panel { position: absolute; left: 0; bottom: 44px; width: min(460px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding: 16px 18px; border-radius: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
:root[data-theme="dark"] .inspector__panel { background: #0e131c; }
.inspector__panel[hidden] { display: none; }
.inspector__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.inspector__head button { color: var(--muted); }
.inspector dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.inspector dt { color: var(--muted); font: 500 11.5px/1.6 var(--mono); }
.inspector dd { font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.inspector dd.mono { font-size: 11.5px; }
.inspector p { margin-top: 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.inspector__live { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--accent-text); font-weight: 500; }

/* ---------- print ---------- */
@media print {
  .hdr, .toc, .ftr, .inspector, .navbar-progress, .ipv__bg, .hero__bg, .live__canvas, .ipv__actions { display: none !important; }
  .hero, .ipv, .hpshow { background: #fff !important; color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .live-dot::after { display: none; }
}

