@font-face {
  font-family: "Saira";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  src: url(fonts/saira-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  src: url(fonts/saira-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/jetbrains-mono-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Kierunek z makiet: czerń, grafitowe panele, czerwona poświata oka i celownika z logo. */
:root {
  --void: #07070a;
  --panel: #101015;
  --panel-hi: #16161d;
  --well: #0b0b0f;
  --rim: #24242d;
  --rim-hi: #3a3a46;
  --text: #ececf1;
  --muted: #a3a3b0;
  --faint: #70707d;
  --red: #e5192f;
  --red-hi: #ff3e52;
  --crit: #ff3e52;
  --high: #ff7a30;
  --medium: #f2b33d;
  --low: #3d8bff;
  --ok: #2fbf71;

  --sans: "Saira", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--void); }

body {
  margin: 0;
  color: var(--text);
  background: var(--void);
  font: 400 0.98rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red-hi); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-stretch: 87.5%; font-weight: 600; margin: 0; letter-spacing: 0.005em; }

code, pre { font-family: var(--mono); font-size: 0.86rem; }
p code, .hash { color: var(--text); overflow-wrap: anywhere; }

.fine { color: var(--faint); font-size: 0.88rem; margin: 10px 0 0; }

/* ------------------------------------------------------------------ */
/* Strona główna: jeden ekran jak kadr z filmu                        */
/* ------------------------------------------------------------------ */

/* Intro jest włączane przez intro.js klasą .intro (pierwsza wizyta) albo .intro-fast;
   bez JS, po błędzie tokenu i przy ograniczeniu ruchu strona od razu pokazuje stan końcowy.
   --t skaluje opóźnienia i czasy animacji wejścia. */
@property --reveal { syntax: "<percentage>"; inherits: false; initial-value: 108%; }

:root { --t: 1; --mx: 0; --my: 0; }
:root.intro-fast { --t: 0.35; }

body.landing { min-height: 100svh; overflow-x: hidden; background: #050507; }

/* tło: mgła, promienie i iskry */
.cine { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fog {
  position: absolute;
  width: 95vmax;
  height: 95vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(130 12 28 / 0.32), transparent 70%);
  translate: calc(var(--mx) * -22px) calc(var(--my) * -14px);
  transition: translate 1.4s cubic-bezier(.2, .7, .2, 1);
}
.fog-a { left: -32vmax; top: -30vmax; animation: drift-a 52s ease-in-out infinite alternate; }
.fog-b { right: -38vmax; bottom: -46vmax; background: radial-gradient(closest-side, rgb(80 80 100 / 0.2), transparent 70%); animation: drift-b 68s ease-in-out infinite alternate; }
.embers { position: absolute; inset: 0; }
.embers i {
  position: absolute;
  bottom: -12px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #ff4b5c;
  box-shadow: 0 0 6px 1px rgb(255 62 82 / 0.85);
  opacity: 0;
  animation: ember var(--d) linear var(--delay) infinite;
}

/* ziarno taśmy nad całym kadrem */
.grain {
  position: fixed;
  inset: -60%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.07;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}

/* pasy kinowe: tylko gdy jest zapas wysokości, żeby nie zasłaniały formularza */
.letterbox {
  --lb: max(0px, min(7vh, calc((100svh - 860px) / 2)));
  position: fixed;
  left: 0;
  right: 0;
  z-index: 5;
  height: var(--lb);
  background: #000;
  pointer-events: none;
}
.letterbox.top { top: 0; }
@media (max-height: 939px) { .letterbox { --lb: 0px; } }
.letterbox.bottom { bottom: 0; }

/* kadr */
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.9vh, 20px);
  padding: 28px 16px;
  overflow: clip;
  text-align: center;
}
/* winieta i linie obrazu jak w kadrze filmowym */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(120vmax 80vmax at 50% 40%, transparent 42%, #000 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.016) 0 1px, transparent 1px 3px);
}

.hero-mark {
  position: relative;
  width: min(56vh, 78vw, 560px);
  aspect-ratio: 848 / 684;
  translate: calc(var(--mx) * 12px) calc(var(--my) * 9px);
  transition: translate 1s cubic-bezier(.2, .7, .2, 1);
}
.hero-emblem {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to bottom, #000 calc(var(--reveal) - 9%), transparent var(--reveal));
  filter: drop-shadow(0 0 42px rgb(229 25 47 / 0.2));
}
/* promienie światła z oka: dwie miękkie warstwy o różnym rozstawie obracają się w przeciwne
   strony, więc wzór jest nieregularny; przy samym oku wygaszone, żeby nie migotały */
.hero-rays {
  position: absolute;
  left: 48.2%;
  top: 55.6%;
  z-index: -2;
  width: 300vmax;
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
  mask-image: radial-gradient(closest-side, transparent 0.6%, rgb(0 0 0 / 0.5) 2.5%, #000 6%, rgb(0 0 0 / 0.45) 20%, transparent 46%);
}
.hero-rays::before, .hero-rays::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.hero-rays::before {
  background: repeating-conic-gradient(from 0deg, transparent 0deg, rgb(229 25 47 / 0.055) 5deg, rgb(229 25 47 / 0.02) 9deg, transparent 14deg, transparent 23deg);
  animation: turn 240s linear infinite;
}
.hero-rays::after {
  background: repeating-conic-gradient(from 11deg, transparent 0deg, rgb(255 110 120 / 0.035) 8deg, transparent 17deg, transparent 37deg);
  animation: turn 330s linear infinite reverse;
}

/* czerwona poświata rozlewająca się od oka */
.hero-bloom {
  position: absolute;
  left: 48.2%;
  top: 55.6%;
  width: 250%;
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(229 25 47 / 0.22), rgb(229 25 47 / 0.06) 45%, transparent 72%);
  pointer-events: none;
}
/* celownik: przerywany pierścień i obracająca się podziałka */
.hero-ring {
  position: absolute;
  left: 49.9%;
  top: 56.3%;
  width: 92%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px dashed rgb(229 25 47 / 0.36);
  animation: turn 90s linear infinite;
}
.hero-hud {
  position: absolute;
  left: 49.9%;
  top: 56.3%;
  width: 104%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgb(255 62 82 / 0.55) 0deg 0.5deg, transparent 0.5deg 5deg);
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px), #000 calc(100% - 2px), transparent);
  opacity: 0.55;
  animation: turn 140s linear infinite reverse;
}
.hero-eye {
  position: absolute;
  left: 48.2%;
  top: 55.6%;
  width: 22%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 46 66 / 0.6) 0%, rgb(229 25 47 / 0.2) 38%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.6;
  animation: eye 5s ease-in-out infinite;
}
/* anamorficzny błysk przez oko */
.hero-flare {
  position: absolute;
  left: 48.2%;
  top: 55.6%;
  width: 240%;
  height: 2px;
  translate: -50% -50%;
  background: linear-gradient(90deg, transparent, rgb(255 60 80 / 0.15) 22%, rgb(255 80 100 / 0.6) 44%, rgb(255 225 230 / 0.95) 50%, rgb(255 80 100 / 0.6) 56%, rgb(255 60 80 / 0.15) 78%, transparent);
  box-shadow: 0 0 20px 2px rgb(255 40 60 / 0.35);
  mix-blend-mode: screen;
  opacity: 0.3;
  pointer-events: none;
  animation: flicker 7s ease-in-out infinite;
}
/* wiązka skanera, która odsłania godło */
.hero-beam {
  position: absolute;
  left: -45vw;
  right: -45vw;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(255 62 82 / 0.85) 28%, #fff 50%, rgb(255 62 82 / 0.85) 72%, transparent);
  box-shadow: 0 0 18px 3px rgb(255 40 60 / 0.55);
  opacity: 0;
  pointer-events: none;
}

.hero-word { position: relative; display: inline-block; margin: 0; line-height: 0; translate: calc(var(--mx) * 5px) calc(var(--my) * 4px); transition: translate 1s cubic-bezier(.2, .7, .2, 1); }
.hero-word img { width: min(460px, 76vw); height: auto; }
/* refleks przelatujący po napisie, przycięty do kształtu liter */
.glint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: url(img/wordmark.webp);
  mask-size: 100% 100%;
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / 0.85) 50%, transparent 58%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  animation: glint 12s ease-in-out 4.5s infinite;
}

.hero-tagline { display: flex; gap: 2.4em; margin: 0; padding-left: 0.5em; color: var(--muted); font-size: 0.72rem; font-stretch: 112%; letter-spacing: 0.55em; text-transform: uppercase; }
.hero-tagline span { position: relative; }
.hero-tagline span + span::before {
  content: "";
  position: absolute;
  left: -1.5em;
  top: 50%;
  width: 4px;
  height: 4px;
  translate: -50% -50%;
  rotate: 45deg;
  background: var(--red);
  box-shadow: 0 0 6px rgb(229 25 47 / 0.9);
}

.hero-line { max-width: 52ch; margin: 0; color: var(--muted); font-size: clamp(0.98rem, 1.6vh, 1.08rem); }

.invite { width: min(520px, 100%); text-align: left; }
.invite label { display: block; color: var(--muted); font-size: 0.88rem; margin-bottom: 6px; }
.invite-row { display: flex; gap: 8px; }
.invite input {
  flex: 1;
  min-width: 0;
  font: 400 0.95rem var(--mono);
  color: var(--text);
  background: rgb(12 12 16 / 0.78);
  border: 1px solid var(--rim-hi);
  border-radius: 8px;
  padding: 12px 14px;
  backdrop-filter: blur(6px);
}
.invite input::placeholder { color: var(--faint); font-family: var(--sans); }
.invite input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(229 25 47 / 0.25), 0 0 30px rgb(229 25 47 / 0.2); }
.invite input[aria-invalid="true"] { border-color: var(--red); }
.invite button {
  font: 600 0.95rem var(--sans);
  font-stretch: 87.5%;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  box-shadow: 0 0 24px rgb(229 25 47 / 0.35);
}
.invite button:hover { background: var(--red-hi); box-shadow: 0 0 34px rgb(255 62 82 / 0.5); }
.invite-error { color: var(--red-hi); margin: 8px 0 0; font-size: 0.9rem; }

.hero-foot { margin: 0; color: var(--faint); font-size: 0.85rem; }

/* --- sekwencja wejścia --- */
:is(.intro, .intro-fast) .letterbox { animation: shutter calc(1.3s * var(--t)) cubic-bezier(.7, 0, .2, 1) calc(0.15s * var(--t)) both; }
:is(.intro, .intro-fast) .hero-beam { animation: beam calc(1.3s * var(--t)) cubic-bezier(.45, 0, .25, 1) calc(0.45s * var(--t)) both; }
:is(.intro, .intro-fast) .hero-emblem {
  animation:
    reveal calc(1.3s * var(--t)) cubic-bezier(.45, 0, .25, 1) calc(0.45s * var(--t)) both,
    light calc(1.7s * var(--t)) ease-out calc(0.8s * var(--t)) both,
    dolly calc(6s * var(--t)) cubic-bezier(.15, .6, .2, 1) both;
}
:is(.intro, .intro-fast) .hero-bloom { animation: bloom calc(1.4s * var(--t)) ease-out calc(1.8s * var(--t)) both; }
:is(.intro, .intro-fast) .hero-rays { animation: bloom calc(2.2s * var(--t)) ease-out calc(1.9s * var(--t)) both; }
:is(.intro, .intro-fast) .hero-eye { animation: ignite calc(0.9s * var(--t)) ease-out calc(1.8s * var(--t)) both, eye 5s ease-in-out calc(2.7s * var(--t)) infinite; }
:is(.intro, .intro-fast) .hero-flare { animation: flare calc(1.6s * var(--t)) cubic-bezier(.2, .7, .2, 1) calc(1.85s * var(--t)) both, flicker 7s ease-in-out calc(3.5s * var(--t)) infinite; }
:is(.intro, .intro-fast) .hero-ring { animation: ring-in calc(1.4s * var(--t)) cubic-bezier(.2, .7, .2, 1) calc(1.6s * var(--t)) both, turn 90s linear calc(3s * var(--t)) infinite; }
:is(.intro, .intro-fast) .hero-hud { animation: hud-in calc(1.6s * var(--t)) ease-out calc(1.9s * var(--t)) both, turn 140s linear calc(3.2s * var(--t)) infinite reverse; }
:is(.intro, .intro-fast) .hero-word img { animation: wipe calc(0.95s * var(--t)) cubic-bezier(.7, 0, .2, 1) calc(2.2s * var(--t)) both; }
:is(.intro, .intro-fast) .glint { animation: glint 12s ease-in-out calc(3s * var(--t)) infinite; }
:is(.intro, .intro-fast) .hero-tagline span { animation: rise calc(0.7s * var(--t)) ease-out both; }
:is(.intro, .intro-fast) .hero-tagline span:nth-child(1) { animation-delay: calc(2.6s * var(--t)); }
:is(.intro, .intro-fast) .hero-tagline span:nth-child(2) { animation-delay: calc(2.8s * var(--t)); }
:is(.intro, .intro-fast) .hero-tagline span:nth-child(3) { animation-delay: calc(3s * var(--t)); }
:is(.intro, .intro-fast) .hero-line { animation: rise calc(0.9s * var(--t)) ease-out calc(2.9s * var(--t)) both; }
:is(.intro, .intro-fast) .invite { animation: rise calc(0.9s * var(--t)) ease-out calc(3.1s * var(--t)) both; }
:is(.intro, .intro-fast) .hero-foot { animation: rise calc(0.9s * var(--t)) ease-out calc(3.3s * var(--t)) both; }
:is(.intro, .intro-fast) .embers { animation: rise calc(2s * var(--t)) ease-out calc(2.4s * var(--t)) both; }

@keyframes shutter { from { height: 50.5svh; } to { height: var(--lb); } }
@keyframes beam { 0% { top: 0%; opacity: 0; } 8% { opacity: 1; } 86% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes reveal { from { --reveal: 0%; } to { --reveal: 108%; } }
@keyframes light { from { filter: brightness(0.25) saturate(0.6) drop-shadow(0 0 42px rgb(229 25 47 / 0)); } to { filter: brightness(1) drop-shadow(0 0 42px rgb(229 25 47 / 0.2)); } }
@keyframes dolly { from { transform: scale(1.07); } to { transform: none; } }
@keyframes bloom { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }
@keyframes ignite { 0% { opacity: 0; scale: 0.4; } 40% { opacity: 1; scale: 1.4; } 100% { opacity: 0.6; scale: 1; } }
@keyframes flare { 0% { opacity: 0; scale: 0 1; } 18% { opacity: 1; scale: 1.15 1; } 100% { opacity: 0.3; scale: 1 1; } }
@keyframes flicker { 0%, 100% { opacity: 0.3; } 45% { opacity: 0.42; } 52% { opacity: 0.24; } 60% { opacity: 0.38; } }
@keyframes ring-in { from { opacity: 0; transform: scale(0.85) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes hud-in { from { opacity: 0; } to { opacity: 0.55; } }
@keyframes wipe { from { clip-path: inset(0 50% 0 50%); filter: brightness(2.4) blur(2px); } 65% { filter: brightness(1.5) blur(0); } to { clip-path: inset(0); filter: none; } }
@keyframes glint { 0% { background-position: 150% 0; } 14%, 100% { background-position: -50% 0; } }
@keyframes turn { to { rotate: 360deg; } }
@keyframes eye { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.95; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drift-a { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vmax, -8vmax) scale(1.1); } }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: var(--o); } 75% { opacity: calc(var(--o) * 0.6); } 100% { transform: translate(var(--dx), -105vh); opacity: 0; } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(-2%, 6%); } }

@media (max-width: 520px) {
  .invite-row { flex-direction: column; }
  .invite button { padding: 12px 20px; }
  .hero-tagline { gap: 1.6em; letter-spacing: 0.4em; }
  .hero-tagline span + span::before { left: -1.05em; }
}

/* ------------------------------------------------------------------ */
/* Raport                                                              */
/* ------------------------------------------------------------------ */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--rim);
  background: linear-gradient(90deg, rgb(229 25 47 / 0.07), transparent 40%);
}
.bar-logo img { display: block; height: 26px; width: auto; }
.bar-meta { color: var(--faint); font-size: 0.85rem; }

.sheet { max-width: 1320px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 32px) 48px; }
.sheet.narrow { max-width: 760px; padding-top: 72px; }

.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.report-title { font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.1; }
.report-system { margin: 2px 0 0; font-size: 1.2rem; font-stretch: 87.5%; font-weight: 500; }
.report-meta { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; }
.report-meta span + span { border-left: 1px solid var(--rim-hi); margin-left: 12px; padding-left: 12px; }
.lede { color: var(--muted); font-size: 1.1rem; }

.status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--rim-hi);
  color: var(--muted);
  font-size: 0.86rem;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status[data-state="active"] { color: var(--medium); border-color: rgb(242 179 61 / 0.45); background: rgb(242 179 61 / 0.08); }
.status[data-state="active"]::before { animation: blink 1.2s ease-in-out infinite; }
.status[data-state="done"] { color: var(--ok); border-color: rgb(47 191 113 / 0.45); background: rgb(47 191 113 / 0.08); }
.status[data-state="error"] { color: var(--red-hi); border-color: rgb(229 25 47 / 0.5); background: rgb(229 25 47 / 0.08); }
@keyframes blink { 50% { opacity: 0.25; } }

.panel { background: var(--panel); border: 1px solid var(--rim); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.panel > h2 { font-size: 1.02rem; margin-bottom: 12px; color: var(--text); }

.grid-top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; scroll-margin-top: 72px; }

/* polecenie */
.tabs { display: flex; gap: 2px; margin-bottom: -1px; }
.tabs button {
  font: 500 0.86rem var(--sans);
  color: var(--faint);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  padding: 5px 14px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--text); background: var(--well); border-color: var(--rim); }
.cmd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--well);
  border: 1px solid var(--rim);
  border-radius: 0 8px 8px 8px;
  padding: 14px 14px 14px 16px;
}
.fix .cmd, .detail .cmd { border-radius: 8px; }
.cmd pre { margin: 0; flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; color: #f4f4f8; }

.btn {
  flex: none;
  font: 500 0.85rem var(--sans);
  color: var(--text);
  background: var(--panel-hi);
  border: 1px solid var(--rim-hi);
  border-radius: 7px;
  padding: 6px 12px;
  cursor: pointer;
}
.btn:hover { border-color: var(--red); }
.btn[data-done] { color: var(--ok); border-color: var(--ok); }

.manual { margin-top: 12px; }
.manual summary { cursor: pointer; color: var(--red-hi); width: fit-content; font-size: 0.92rem; }
.manual pre { background: var(--well); border: 1px solid var(--rim); border-radius: 8px; padding: 12px 16px; overflow-x: auto; color: #f4f4f8; }

/* postęp: celownik z logo jako wskaźnik */
.progress-body { display: flex; gap: 20px; align-items: flex-start; }
.reticle {
  position: relative;
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px dashed var(--rim-hi);
}
.reticle::before, .reticle::after {
  content: "";
  position: absolute;
  background: var(--rim-hi);
}
.reticle::before { left: 50%; top: -8px; bottom: -8px; width: 1px; }
.reticle::after { top: 50%; left: -8px; right: -8px; height: 1px; }
.reticle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--faint);
  z-index: 1;
}
.progress[data-state="waiting"] .reticle { animation: turn 14s linear infinite; }
.progress[data-state="active"] .reticle { border-color: var(--red); animation: turn 2.4s linear infinite; box-shadow: 0 0 18px rgb(229 25 47 / 0.35); }
.progress[data-state="active"] .reticle::before, .progress[data-state="active"] .reticle::after { background: rgb(229 25 47 / 0.7); }
.progress[data-state="active"] .reticle span, .progress[data-state="done"] .reticle span { background: var(--red-hi); box-shadow: 0 0 12px 3px rgb(255 62 82 / 0.7); }
.progress[data-state="done"] .reticle { border-style: solid; border-color: var(--red); }
.progress[data-state="error"] .reticle { border-color: var(--red); }
.progress[data-state="error"] .reticle span { background: var(--red); }

.stages { list-style: none; margin: 0; padding: 0; flex: 1; }
.stages li { position: relative; padding: 0 0 12px 18px; color: var(--faint); }
.stages li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 1px; background: var(--rim-hi); rotate: 45deg; }
.stages h3 { font-size: 0.98rem; font-weight: 500; color: var(--faint); }
.stages p { margin: 0; font-size: 0.86rem; }
.stages p:empty { display: none; }
.stages li.past h3 { color: var(--muted); }
.stages li.past::before { background: var(--red); }
.stages li.now h3 { color: var(--text); font-weight: 600; }
.stages li.now { color: var(--muted); }
.stages li.now::before { background: var(--red-hi); box-shadow: 0 0 10px 2px rgb(255 62 82 / 0.6); }
.stages li.failed h3 { color: var(--red-hi); }

/* wynik */
.verdict { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-stretch: 87.5%; font-weight: 600; line-height: 1.25; margin: 26px 0 14px; max-width: 46ch; }
.verdict.clean { color: var(--ok); }
.eosl { border: 1px solid rgb(229 25 47 / 0.45); background: rgb(229 25 47 / 0.08); border-radius: 8px; padding: 10px 14px; max-width: 80ch; }

.grid-stats { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; gap: 16px; margin: 16px 0; }
.stat h2 { color: var(--muted); font-weight: 500; font-size: 0.95rem; margin-bottom: 8px; }
.stat-big { margin: 0; font-size: 2.6rem; font-stretch: 87.5%; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-big:not([data-zero]) { color: var(--crit); }
.stat-text { margin: 0; font-size: 1.05rem; font-weight: 500; }

.sev-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.sev-counts div { display: flex; flex-direction: column-reverse; }
.sev-counts dd { margin: 0; font-size: clamp(1.7rem, 2.3vw, 2.3rem); font-stretch: 87.5%; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sev-counts dt { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.82rem; }
.sev-counts dt::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sev-counts .CRITICAL dd, .sev-counts .CRITICAL dt::before { color: var(--crit); }
.sev-counts .HIGH dd, .sev-counts .HIGH dt::before { color: var(--high); }
.sev-counts .MEDIUM dd, .sev-counts .MEDIUM dt::before { color: var(--medium); }
.sev-counts .LOW dd, .sev-counts .LOW dt::before { color: var(--low); }
.sev-counts dd[data-zero] { color: var(--faint); }

.facts { margin: 0; display: grid; gap: 6px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rim); padding-bottom: 6px; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); font-size: 0.88rem; }
.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.fix { margin-bottom: 16px; display: grid; gap: 18px; }
.fix-note { border-left: 2px solid var(--rim-hi); padding-left: 14px; max-width: 90ch; }
.fix-note h3 { font-size: 1rem; margin: 0 0 6px; }
.fix-note p { margin: 0 0 6px; color: var(--muted); }
.fix-note code, .fine code { font-size: 0.86em; color: var(--text); background: var(--well); border: 1px solid var(--rim); border-radius: 4px; padding: 1px 5px; }
.pkg-list { color: var(--text); overflow-wrap: anywhere; }

.grid-vulns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }

.vulns-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-bottom: 16px; }
.vulns-head h2 { font-size: 1.25rem; }
.donut { position: relative; flex: none; width: 112px; height: 112px; }
.donut svg { width: 100%; height: 100%; rotate: -90deg; }
.donut circle { fill: none; stroke-width: 4.2; }
.donut-track { stroke: var(--rim); }
.donut span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; font-stretch: 87.5%; font-weight: 600; font-variant-numeric: tabular-nums; }
.legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.88rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.controls input, .controls select {
  font: 400 0.9rem var(--sans);
  color: var(--text);
  background: var(--well);
  border: 1px solid var(--rim-hi);
  border-radius: 7px;
  padding: 8px 12px;
}
.controls input { flex: 1 1 220px; min-width: 0; }
.controls select { flex: 0 0 auto; }
.controls input:focus, .controls select:focus { outline: none; border-color: var(--red); }
.seg { display: inline-flex; border: 1px solid var(--rim-hi); border-radius: 7px; overflow: hidden; }
.seg button { font: 500 0.86rem var(--sans); color: var(--muted); background: var(--well); border: 0; padding: 0 14px; cursor: pointer; }
.seg button[aria-checked="true"] { color: #fff; background: var(--red); }

.table-wrap { overflow-x: auto; border: 1px solid var(--rim); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 0.82rem; padding: 10px 12px; background: var(--well); white-space: nowrap; }
td { padding: 10px 12px; border-top: 1px solid var(--rim); vertical-align: top; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--panel-hi); }
tbody tr[aria-selected="true"] { background: rgb(229 25 47 / 0.09); box-shadow: inset 3px 0 0 var(--red); }
td.ver { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 6.5rem; color: #dcdce4; }
td.none { color: var(--faint); }
td.pkg { font-weight: 500; overflow-wrap: anywhere; min-width: 9rem; }
.pkg-more { display: block; color: var(--faint); font-size: 0.8rem; font-weight: 400; }
.vuln-title { display: block; font-weight: 500; overflow-wrap: anywhere; }
.vuln-id { display: block; color: var(--faint); font-size: 0.82rem; }
.vuln-id .kev-tag { color: var(--red-hi); margin-left: 6px; }

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  background: rgb(255 255 255 / 0.03);
}
.pill.CRITICAL { color: var(--crit); background: rgb(255 62 82 / 0.1); }
.pill.HIGH { color: var(--high); background: rgb(255 122 48 / 0.1); }
.pill.MEDIUM { color: var(--medium); background: rgb(242 179 61 / 0.1); }
.pill.LOW { color: var(--low); background: rgb(61 139 255 / 0.1); }

/* szczegóły luki, kontroli i kontenera w oknie modalnym */
.modal { width: min(780px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.modal::backdrop { background: rgb(3 3 5 / 0.74); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in 0.18s ease-out; }
.modal > .panel { position: relative; max-height: calc(100dvh - 48px); overflow: auto; padding: 24px 26px; overscroll-behavior: contain; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rim-hi);
  border-radius: 8px;
  background: var(--panel-hi);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); border-color: var(--red); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.detail { border-color: rgb(229 25 47 / 0.45); box-shadow: 0 30px 80px rgb(0 0 0 / 0.6), 0 0 60px rgb(229 25 47 / 0.12); }
.detail > .pill, .cdetail > div > h2:first-child { margin-right: 44px; }
.detail > h2 { margin: 12px 0 4px; font-size: 1.3rem; }
.detail-id { margin: 0 0 12px; }
.detail h3 { font-size: 0.95rem; margin: 16px 0 8px; color: var(--muted); font-weight: 500; }
.kev-note { color: var(--red-hi); border-left: 2px solid var(--red); padding-left: 10px; margin: 0 0 12px; }

.history > h2 { margin-bottom: 8px; }
.history ul { list-style: none; margin: 0; padding: 0; }
.history li { border-top: 1px solid var(--rim); }
.history li:first-child { border-top: 0; }
.history button {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 13rem 1fr auto;
  gap: 4px 16px;
  width: 100%;
  padding: 10px 2px;
  cursor: pointer;
  color: var(--muted);
}
.history button:hover, .history li[aria-current="true"] button { color: var(--text); }
.history li[aria-current="true"] .when { color: var(--red-hi); }
.history .when { color: var(--text); font-variant-numeric: tabular-nums; }

.colophon { color: var(--faint); font-size: 0.84rem; margin-top: 28px; border-top: 1px solid var(--rim); padding-top: 14px; max-width: 90ch; }

/* ------------------------------------------------------------------ */
/* Panel administratora                                                */
/* ------------------------------------------------------------------ */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.bar-admin { display: flex; align-items: center; gap: 14px; }
.bar-admin form { margin: 0; }
.bar-admin .btn { padding: 5px 12px; }

a.btn { display: inline-block; text-decoration: none; }
.btn.primary { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 0 22px rgb(229 25 47 / 0.3); padding: 10px 18px; }
.btn.primary:hover { background: var(--red-hi); border-color: var(--red-hi); color: #fff; }
.btn.danger { color: var(--red-hi); border-color: rgb(229 25 47 / 0.5); background: transparent; }
.btn.danger:hover { color: #fff; background: var(--red); }

.notice { color: var(--red-hi); border-left: 2px solid var(--red); padding: 4px 0 4px 12px; margin: 18px 0; }

.stat-big.plain, .stat-big.plain:not([data-zero]) { color: var(--text); }

.flash { margin-bottom: 16px; border-color: rgb(47 191 113 / 0.45); }
.flash h2, .new-token h2, .tokens h2, .masters h2, .music h2 { margin-bottom: 12px; font-size: 1.15rem; }
.new-token, .masters, .music { margin-bottom: 16px; }
.new-token .invite-row, .masters .invite-row { max-width: 640px; }
.music .invite-row { max-width: 860px; }
.masters .table-wrap, .music .table-wrap { margin: 12px 0 14px; }
.masters > .fine, .music > .fine { margin: 0 0 12px; max-width: 90ch; }
.music .actions form { display: inline-block; margin-left: 6px; }
.file-pick { display: flex; flex: 1.2; min-width: 0; }
.file-pick input { width: 100%; min-width: 0; padding: 8px 10px; color: var(--muted); font: 400 0.88rem var(--sans); background: var(--well); border: 1px dashed var(--rim-hi); border-radius: 8px; }
.file-pick input::file-selector-button { margin-right: 10px; padding: 4px 10px; border: 1px solid var(--rim-hi); border-radius: 6px; background: var(--panel-hi); color: var(--text); font: 500 0.82rem var(--sans); cursor: pointer; }
.admin-notice { margin: 0 0 16px; color: var(--text); border-left-color: var(--ok); }
.new-token input[type="text"], .masters input[type="text"], .music input[type="text"] {
  flex: 1;
  min-width: 0;
  font: 400 0.95rem var(--sans);
  color: var(--text);
  background: var(--well);
  border: 1px solid var(--rim-hi);
  border-radius: 8px;
  padding: 10px 14px;
}
.new-token input[type="text"]:focus, .masters input[type="text"]:focus, .music input[type="text"]:focus { outline: none; border-color: var(--red); }

.admin-table tbody tr { cursor: default; }
.admin-table tbody tr:hover { background: transparent; }
.admin-table tr.revoked td { color: var(--faint); }
.admin-table tr.revoked .token-label { color: var(--muted); }
.token-label { font-weight: 600; color: var(--text); text-decoration: none; }
.token-label:hover { color: var(--red-hi); }
.token-id, .last-when { display: block; color: var(--faint); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.last-system { display: block; }
.admin-table .none { color: var(--faint); }
.admin-table td.num { font-variant-numeric: tabular-nums; }
.admin-table td.when-cell { color: var(--muted); white-space: nowrap; }
.admin-table td.actions { white-space: nowrap; text-align: right; }
.admin-table td.actions form { display: inline; margin: 0 0 0 6px; }
.sev-inline { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sev-inline.CRITICAL { color: var(--crit); }
.sev-inline.HIGH { color: var(--high); }
.ok-text { color: var(--ok); }
.tag { display: inline-block; margin: 4px 6px 0 0; padding: 1px 7px; border: 1px solid var(--rim-hi); border-radius: 5px; font-size: 0.76rem; color: var(--muted); }
.tag.kev { color: var(--red-hi); border-color: rgb(229 25 47 / 0.5); }
.tag.keygen { display: table; color: var(--muted); border-style: dashed; }
.admin-actions { margin: 14px 0 0; }
.risk-cell { --lvl: var(--ok); display: inline-flex; align-items: baseline; gap: 6px; color: var(--lvl); white-space: nowrap; }
.risk-cell b { font-size: 1.2rem; font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
.risk-cell[data-level="moderate"] { --lvl: var(--medium); }
.risk-cell[data-level="high"] { --lvl: var(--high); }
.risk-cell[data-level="critical"] { --lvl: var(--crit); }
.trend { display: block; margin-top: 6px; }
.trend rect { fill: var(--ok); }
.trend rect.moderate { fill: var(--medium); }
.trend rect.high { fill: var(--high); }
.trend rect.critical { fill: var(--crit); }

/* aktualne kampanie: baner na samej górze raportu */
.threat {
  --c: var(--crit);
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  border-left: 4px solid var(--c);
  border-radius: var(--radius);
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 16%, transparent), color-mix(in srgb, var(--c) 4%, transparent) 60%), var(--panel);
  box-shadow: 0 0 40px color-mix(in srgb, var(--c) 14%, transparent);
}
.threat[data-level="watch"] { --c: var(--high); }
.threat-head { display: flex; gap: 14px; align-items: flex-start; }
.threat-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 70%, transparent);
  animation: threat-pulse 2.4s ease-in-out infinite;
}
@keyframes threat-pulse { 50% { box-shadow: 0 0 4px color-mix(in srgb, var(--c) 40%, transparent); } }
.threat h2 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--text); }
.threat-head p { margin: 4px 0 0; color: var(--muted); }
.threat-items { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; }
.threat-items > li { min-width: 0; padding: 12px 14px; border: 1px solid var(--rim); border-radius: 8px; background: var(--well); }
.threat-items > li.active { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.threat-item-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0; }
.threat-item-head strong { font-family: var(--mono); font-size: 0.86rem; color: var(--c); }
.threat-meta { margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; overflow-wrap: anywhere; }
.threat-why { margin: 6px 0 0; padding-left: 18px; font-size: 0.88rem; }
.threat-items .cmd { margin-top: 8px; border-radius: 8px; }
.threat-more { margin: 10px 0 0; }
.threat-more:empty { display: none; }
.campaign-tag { margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--red); color: #fff; font-size: 0.74rem; }
.nuclei-tag { margin-left: 6px; color: var(--low); }
.tag.campaign { color: #fff; background: var(--red); border-color: var(--red); }

/* zakres raportu: pełny albo tylko to, w co trafi skaner z internetu */
.lens-bar { margin: 0 0 16px; }
.lens-seg { max-width: 100%; }
.lens-seg button { padding: 8px 16px; text-align: center; }
body[data-lens="external"] [data-lens-hide] { display: none !important; }
.lens-sum { margin: 0 0 16px; }
.lens-sum .mini-stats.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 0; }
.lens-sum .fine { max-width: 110ch; }
.via-tag { margin-left: 6px; color: var(--muted); }

/* easter egg: wynik ryzyka reaguje na klikanie, a tryb „Nie strasz mnie proszę” ma własny arkusz (calm.css) */
.calm-ico { display: none; }
.risk-card { position: relative; }
[data-r="risk"] { -webkit-user-select: none; user-select: none; }
.poke {
  position: absolute;
  top: 12px;
  right: 14px;
  max-width: 62%;
  padding: 6px 12px;
  border: 1px solid var(--rim-hi);
  border-radius: 12px 12px 3px 12px;
  background: var(--panel-hi);
  color: var(--text);
  font-size: 0.86rem;
  pointer-events: none;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}
.poke.pop { animation: poke-pop 0.22s ease-out; }
@keyframes poke-pop { from { opacity: 0; transform: translateY(4px) scale(0.92); } }
.risk-card.flinch .risk-score { animation: flinch 0.34s ease-out; }
@keyframes flinch { 20% { transform: translateX(-3px) scale(0.97); } 45% { transform: translateX(3px); } 70% { transform: translateX(-1px); } }

/* zmiany od poprzedniego skanu */
.script-old { margin: 0 0 14px; }
.changes { margin: 0 0 16px; }
.changes h2 { margin-bottom: 10px; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.changes-row { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.chg { display: flex; flex-direction: column; }
.chg strong { font-size: 1.6rem; font-stretch: 87.5%; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chg span { color: var(--muted); font-size: 0.84rem; }
.chg.good strong { color: var(--ok); }
.chg.bad strong { color: var(--crit); }
.changes-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; margin-top: 12px; }
.changes-lists:empty { display: none; }
.chg-list h3 { margin: 0 0 4px; font-size: 0.9rem; font-weight: 500; }
.chg-list.good h3 { color: var(--ok); }
.chg-list.bad h3 { color: var(--red-hi); }
.chg-list ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.88rem; }
.epss-tag { margin-left: 6px; color: var(--medium); }

/* checklisty */
.cl-disclaimer { margin: 0 0 14px; padding: 10px 14px; border-left: 2px solid var(--medium); background: rgb(242 179 61 / 0.06); color: var(--muted); max-width: 110ch; }
.checklist + .checklist { margin-top: 16px; }
.cl-score { margin: 0; color: var(--muted); font-size: 0.86rem; text-align: right; max-width: 34ch; }
.cl-items { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rim); border-radius: 8px; overflow: hidden; }
.cl-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; }
.cl-item + .cl-item { border-top: 1px solid var(--rim); }
.cl-item .mark { margin-top: 2px; }
.cl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.cl-ref { padding: 1px 7px; border: 1px solid var(--rim-hi); border-radius: 5px; color: var(--muted); font: 0.76rem var(--mono); white-space: nowrap; }
.cl-name { color: var(--faint); font-size: 0.8rem; }
.cl-desc { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.cl-found { margin: 8px 0 0; padding: 8px 12px 8px 28px; border-left: 2px solid var(--red); background: rgb(229 25 47 / 0.06); font-size: 0.86rem; }
.cl-manual { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; color: var(--text); font-size: 0.88rem; cursor: pointer; }
.cl-manual input { margin-top: 3px; accent-color: var(--red); }
.cl-state { color: var(--faint); font-size: 0.8rem; white-space: nowrap; }
.cl-state.fail { color: var(--red-hi); }
.cl-state.pass { color: var(--ok); }
.mark.oos { color: var(--rim-hi); border-style: dotted; }
.cl-item:has(.mark.oos) .cl-desc, .cl-item:has(.mark.oos) strong { color: var(--faint); }
.tokens, .new-token, .masters, .music { scroll-margin-top: 72px; }
.tokens { margin-bottom: 16px; }

/* ------------------------------------------------------------------ */
/* Pulpit: menu boczne, górny pasek, karty i zakładki (jak w makiecie) */
/* ------------------------------------------------------------------ */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 14px 18px;
  border-right: 1px solid var(--rim);
  background: linear-gradient(180deg, rgb(229 25 47 / 0.07), transparent 28%), #09090c;
  overflow: hidden;
}
.side-logo img { display: block; width: 172px; height: auto; margin: 2px 10px 4px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.side-nav a:hover { color: var(--text); background: var(--panel); }
.side-nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgb(229 25 47 / 0.45);
  background: linear-gradient(90deg, rgb(229 25 47 / 0.22), rgb(229 25 47 / 0.04));
  box-shadow: inset 3px 0 0 var(--red);
}
.side-nav a[aria-current="page"] .ico { color: var(--red-hi); }
.nav-count { margin-left: auto; color: var(--faint); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.nav-count:empty { display: none; }
.side-mark { margin-top: auto; padding: 0 8px; }
.side-mark img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 28px rgb(229 25 47 / 0.3)); }
.side-mark p { margin: 12px 0 0; text-align: center; color: var(--faint); font-size: 0.68rem; line-height: 1.9; letter-spacing: 0.34em; text-transform: uppercase; }

.main { position: relative; isolation: isolate; min-width: 0; }
/* poświata i siatka punktów w prawym górnym rogu, jak globus z makiety */
.main::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(820px, 72%);
  height: 480px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgb(229 25 47 / 0.18), transparent 78%) 70% 20% / 100% 100% no-repeat,
    radial-gradient(rgb(255 62 82 / 0.3) 1px, transparent 1.6px) 0 0 / 22px 22px;
  mask-image: radial-gradient(ellipse 58% 68% at 72% 22%, #000 18%, transparent 74%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--rim);
  background: rgb(7 7 10 / 0.86);
  backdrop-filter: blur(8px);
}
.topbar-logo { display: none; }
.topbar-logo img { display: block; height: 22px; width: auto; }
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--faint); font-size: 0.9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs > span:last-child { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-right form { margin: 0; }
.db-meta { color: var(--faint); font-size: 0.84rem; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; padding: 6px 8px; }

.main .sheet { max-width: 1760px; padding-top: 26px; }
.report-system { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn:has(.ico) { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; }
.app .verdict { margin-top: 4px; font-size: clamp(1.15rem, 1.7vw, 1.45rem); max-width: 62ch; }
.card .sev-counts { gap: 8px 14px; }
.card .sev-counts dd { font-size: clamp(1.45rem, 1.75vw, 2.1rem); }

.switch { display: flex; align-items: center; gap: 10px; width: fit-content; margin: 0 0 14px; color: var(--text); font-size: 0.92rem; cursor: pointer; }
.switch input {
  appearance: none;
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  margin: 0;
  border-radius: 999px;
  background: var(--rim-hi);
  cursor: pointer;
  transition: background 0.2s;
}
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked { background: var(--red); }
.switch input:checked::after { transform: translateX(16px); }

/* karty pulpitu */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 16px 0 24px; }
.cards > :nth-child(-n + 3) { grid-column: span 2; }
.cards > :nth-child(n + 4) { grid-column: span 3; }
.card h2 { margin-bottom: 10px; color: var(--muted); font-size: 0.95rem; font-weight: 500; }

.risk-card { --lvl: var(--ok); }
.risk-card[data-level="moderate"] { --lvl: var(--medium); }
.risk-card[data-level="high"] { --lvl: var(--high); }
.risk-card[data-level="critical"] { --lvl: var(--crit); border-color: rgb(229 25 47 / 0.4); box-shadow: 0 0 36px rgb(229 25 47 / 0.1); }
.risk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.risk-score { margin: 0; color: var(--lvl); font-size: 3.3rem; font-stretch: 87.5%; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.risk-score small { margin-left: 4px; color: var(--muted); font-size: 1.1rem; font-weight: 500; }
.risk-pill {
  padding: 4px 10px;
  border: 1px solid var(--lvl);
  border-radius: 6px;
  color: var(--lvl);
  background: color-mix(in srgb, var(--lvl) 12%, transparent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.risk-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 16px 0 12px; }
.risk-bar span { height: 6px; border-radius: 3px; background: var(--rim); }
.risk-bar span.on { background: var(--lvl); box-shadow: 0 0 10px color-mix(in srgb, var(--lvl) 55%, transparent); }
.risk-why summary { width: fit-content; color: var(--muted); font-size: 0.86rem; cursor: pointer; }
.risk-why ul { list-style: none; display: grid; gap: 4px; margin: 8px 0 0; padding: 0; color: var(--muted); font-size: 0.84rem; }
.risk-why .pts { display: inline-block; min-width: 2.7em; color: var(--lvl); font-weight: 600; font-variant-numeric: tabular-nums; }
.risk-why li.note { color: var(--faint); }

.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.mini-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.mini-stats dd { margin: 0; font-size: 1.9rem; font-stretch: 87.5%; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mini-stats dd.warn { color: var(--crit); }
.mini-stats dd[data-zero] { color: var(--faint); }
.mini-stats dt { color: var(--muted); font-size: 0.8rem; }
.mini-stats.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; padding: 12px 0; border-block: 1px solid var(--rim); }
.card-cta { margin-top: 2px; }

.controls-score { margin: 0 0 12px; font-size: 2.3rem; font-stretch: 87.5%; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.controls-score small { margin-left: 4px; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.chip { padding: 3px 9px; border: 1px solid var(--rim-hi); border-radius: 6px; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: rgb(47 191 113 / 0.45); background: rgb(47 191 113 / 0.08); }
.chip.CRITICAL { color: var(--crit); border-color: rgb(255 62 82 / 0.5); background: rgb(255 62 82 / 0.08); }
.chip.HIGH { color: var(--high); border-color: rgb(255 122 48 / 0.5); background: rgb(255 122 48 / 0.08); }
.chip.MEDIUM { color: var(--medium); border-color: rgb(242 179 61 / 0.5); background: rgb(242 179 61 / 0.08); }
.chip.LOW { color: var(--low); border-color: rgb(61 139 255 / 0.5); background: rgb(61 139 255 / 0.08); }

/* zakładki raportu */
.tabs-main { display: flex; gap: 4px; margin: 0 0 16px; overflow-x: auto; border-bottom: 1px solid var(--rim); scroll-margin-top: 72px; }
.tabs-main button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: 500 0.95rem var(--sans);
  white-space: nowrap;
  cursor: pointer;
}
.tabs-main button:hover { color: var(--text); }
.tabs-main button span:not(:empty) { padding: 0 7px; border-radius: 999px; background: var(--panel-hi); color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.tabs-main button[aria-selected="true"] { color: var(--red-hi); border-bottom-color: var(--red); }
.tabs-main button[aria-selected="true"] span:not(:empty) { background: rgb(229 25 47 / 0.16); color: var(--red-hi); }
.panel.empty { color: var(--muted); }
.vuln-table, .surface-table { min-width: 640px; }

/* wykres słupkowy obok pierścienia */
.bars { margin: 0; }
.bars figcaption { margin-bottom: 6px; color: var(--muted); font-size: 0.8rem; }
.bars-plot { display: flex; align-items: flex-end; gap: 12px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 52px; }
.bar-fill { display: block; width: 34px; height: calc(84px * var(--p, 0)); border-radius: 3px 3px 0 0; background: var(--c); }
.bar-val { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.bar-lab { width: 100%; padding-top: 4px; border-top: 1px solid var(--rim-hi); color: var(--muted); font-size: 0.72rem; text-align: center; }

/* audyt konfiguracji */
.grid-audit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.audit-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; margin-bottom: 14px; }
.audit-head h2 { font-size: 1.25rem; }
.audit-head .fine { margin-top: 4px; }
.audit-head .seg button { padding: 7px 14px; }
.audit-group + .audit-group { margin-top: 16px; }
.audit-group h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; color: var(--muted); font-size: 0.98rem; font-weight: 500; }
.group-score { color: var(--faint); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.checks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rim); border-radius: 8px; overflow: hidden; }
.checks li + li { border-top: 1px solid var(--rim); }
.check { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; cursor: pointer; }
.check:hover { background: var(--panel-hi); }
.check:focus-visible { outline: 2px solid var(--red-hi); outline-offset: -2px; }
.check[aria-current="true"] { background: rgb(229 25 47 / 0.09); box-shadow: inset 3px 0 0 var(--red); }
.mark { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; font-size: 0.78rem; font-weight: 700; }
.mark.pass { color: var(--ok); }
.mark.unknown { color: var(--faint); }
.mark.CRITICAL { color: var(--crit); background: rgb(255 62 82 / 0.12); }
.mark.HIGH { color: var(--high); background: rgb(255 122 48 / 0.1); }
.mark.MEDIUM { color: var(--medium); }
.mark.LOW { color: var(--low); }
.check-title { display: block; font-weight: 500; }
.check.pass .check-title { color: var(--muted); }
.check-found { display: block; overflow: hidden; color: var(--muted); font-size: 0.86rem; text-overflow: ellipsis; white-space: nowrap; }
.check-state { color: var(--faint); font-size: 0.8rem; white-space: nowrap; }
.pill.OK { color: var(--ok); background: rgb(47 191 113 / 0.1); }
.detail-cat { margin: 0 0 4px; color: var(--faint); font-size: 0.86rem; }
.detail > p { margin: 0 0 6px; }
.evidence { margin: 8px 0 0; padding: 10px 14px 10px 30px; border: 1px solid var(--rim); border-radius: 8px; background: var(--well); color: #dcdce4; font: 0.8rem/1.6 var(--mono); overflow-wrap: anywhere; }
.audit-cta { max-width: 780px; }
.audit-cta h2 { font-size: 1.15rem; }
.audit-cta p { color: var(--muted); }

/* powierzchnia ataku */
.surface-table tbody tr { cursor: default; }
.surface-table tbody tr:hover { background: transparent; }
td.port, td.proc { font-family: var(--mono); font-size: 0.84rem; white-space: nowrap; }
td.scope.all, td.scope.public { color: var(--high); }
td.scope.private { color: var(--muted); }
td.scope.local { color: var(--faint); }
.row-note { display: block; margin-top: 4px; color: var(--faint); font-size: 0.8rem; }

.sev-pills { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
a.vuln-title { color: var(--text); text-decoration: none; }
a.vuln-title:hover { color: var(--red-hi); text-decoration: underline; }
.mini-table { min-width: 560px; font-size: 0.86rem; }
.mini-table tbody tr { cursor: default; }
.mini-table tbody tr:hover { background: transparent; }

/* dostępne z zewnątrz */
.ext-note { margin: -4px 0 14px; max-width: 110ch; }
.ext-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ext-item { border: 1px solid var(--rim); border-radius: 8px; background: var(--well); }
.ext-item[open] { border-color: rgb(229 25 47 / 0.45); background: var(--panel); }
.ext-item.blocked { opacity: 0.6; }
.ext-item > summary {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto minmax(0, auto);
  gap: 6px 16px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.ext-item > summary::-webkit-details-marker { display: none; }
.ext-item > summary:focus-visible { outline: 2px solid var(--red-hi); outline-offset: -2px; }
.ext-port { font: 600 0.95rem var(--mono); white-space: nowrap; }
.ext-title { display: block; font-weight: 600; }
.ext-sub { display: block; color: var(--muted); font-size: 0.84rem; overflow-wrap: anywhere; }
.reach { padding: 2px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.78rem; white-space: nowrap; color: var(--muted); }
.reach.open, .reach.docker { color: var(--crit); background: rgb(255 62 82 / 0.08); }
.reach.allowed { color: var(--high); background: rgb(255 122 48 / 0.08); }
.reach.filtered, .reach.unknown { color: var(--medium); }
.reach.blocked { color: var(--ok); }
.ext-body { padding: 0 14px 14px; border-top: 1px solid var(--rim); }
.ext-body > p { margin: 10px 0 0; }
.ext-body h3 { margin: 14px 0 8px; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.ext-body .cmd { margin-top: 10px; border-radius: 8px; }

/* kontenery */
.ctr-table { min-width: 600px; }
.ctr-table td.ver { min-width: 0; white-space: nowrap; }
.ctr-table .vuln-id { overflow-wrap: anywhere; }
.cdetail h3 { margin: 16px 0 8px; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.ctr-findings { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.ctr-findings li { padding: 10px 12px; border: 1px solid var(--rim); border-radius: 8px; background: var(--well); }
.ctr-findings p { margin: 0 0 4px; }
.finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cdetail .mini-table { min-width: 560px; }
.cdetail .mini-table td.ver { min-width: 0; }

/* hardening */
.guides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.steps > li { min-width: 0; }
.guide { border: 1px solid var(--rim); border-radius: 8px; background: var(--well); }
.guide[open] { background: var(--panel); border-color: var(--rim-hi); }
.guide > summary { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary:focus-visible { outline: 2px solid var(--red-hi); outline-offset: -2px; }
.guide-title { display: block; font-weight: 600; }
.guide-area { display: block; color: var(--faint); font-size: 0.8rem; }
.guide-state { color: var(--faint); font-size: 0.82rem; white-space: nowrap; }
.guide-state.fail { color: var(--red-hi); }
.guide-state.pass { color: var(--ok); }
.mark.consider { color: var(--faint); border-style: dashed; }
.guide-body { padding: 0 14px 14px 52px; border-top: 1px solid var(--rim); }
.guide-body > p { margin: 12px 0 0; color: var(--muted); max-width: 95ch; }
.guide-found { margin: 10px 0 0; padding: 10px 14px 10px 30px; border-left: 2px solid var(--red); background: rgb(229 25 47 / 0.06); color: var(--text); font-size: 0.9rem; }
.steps { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.steps p { margin: 0 0 6px; }
.steps .cmd { border-radius: 8px; }
.guide-note { margin: 14px 0 0; padding-left: 10px; border-left: 2px solid var(--medium); color: var(--medium); }

@media (min-width: 2160px) {
  .cards { grid-template-columns: 1fr 1.25fr 1.2fr 1.1fr 1.1fr; }
  .cards > :nth-child(n) { grid-column: auto; }
}

@media (max-width: 1100px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar-logo { display: block; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > :nth-child(n) { grid-column: auto; }
  .cards > .risk-card { grid-column: 1 / -1; }
  .vulns-head { grid-template-columns: auto minmax(0, 1fr); }
  .bars { grid-column: 1 / -1; }
  .grid-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .grid-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .grid-stats { grid-template-columns: minmax(0, 1fr); }
  .report-head { flex-direction: column; }
  .cmd { flex-direction: column; }
  .btn.copy { align-self: flex-end; }
  .vulns-head { flex-direction: column; align-items: flex-start; }
  .history button { grid-template-columns: 1fr; }
  .bar-admin .bar-meta { display: none; }
  /* tabela linków jako karty: bez przewijania w bok */
  .admin-table thead, .admin-table td.num, .admin-table td.when-cell { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tr { padding: 12px 14px; border-top: 1px solid var(--rim); }
  .admin-table tbody tr:first-child { border-top: 0; }
  .admin-table td { border: 0; padding: 3px 0; }
  .admin-table td.actions { text-align: left; padding-top: 10px; }
  .admin-table td.actions form { margin: 0 0 0 6px; }
  .new-token .invite-row, .masters .invite-row, .music .invite-row { flex-direction: column; }
  .sev-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .sev-counts dd { font-size: 1.9rem; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .db-meta { display: none; }
  .vulns-head { grid-template-columns: minmax(0, 1fr); }
  .mini-stats.wide, .lens-sum .mini-stats.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lens-seg { display: flex; }
  .lens-seg button { flex: 1; }
  .check { grid-template-columns: 26px minmax(0, 1fr); }
  .check > .pill, .check > .check-state { grid-column: 2; justify-self: start; }
  .ext-item > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .ext-item > summary .ext-what, .ext-item > summary .sev-pills { grid-column: 1 / -1; }
  .ext-item > summary .reach { grid-row: 1; grid-column: 2; justify-self: end; }
  .guide > summary { grid-template-columns: 26px minmax(0, 1fr); }
  .cl-item { grid-template-columns: 26px minmax(0, 1fr); }
  .cl-state { grid-column: 2; }
  .cl-score { text-align: left; }
  .guide-state { grid-column: 2; }
  .guide-body { padding-left: 14px; }
}

@media print {
  :root { --void: #fff; --panel: #fff; --panel-hi: #f4f4f6; --well: #f6f6f8; --rim: #d4d4da; --rim-hi: #babac4; --text: #111; --muted: #444; --faint: #666; }
  body, html { background: #fff; color: #111; }
  .side, .topbar, .head-actions, #run, .tabs-main, .controls, .seg, .btn, .manual, .detail, .main::before { display: none !important; }
  .shell { display: block; }
  .tab-panel[hidden] { display: block !important; }
  .tab-panel { margin-top: 18px; }
  .panel { box-shadow: none !important; break-inside: avoid; }
  .vulns, .audit-list, .surface { break-inside: auto; }
  .table-wrap { overflow: visible; }
  .check-found { white-space: normal; }
  details.ext-item, details.guide { break-inside: avoid; }
  a { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
