/* Reverse — laboratoire d'analyse. Sombre par défaut, clair si le système le demande. */
@font-face { font-family: "Geist"; src: url("/static/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #07090f; --bg-2: #0b0f18; --surface: #10151f; --surface-2: #151b27; --surface-3: #1b2230;
  --line: #ffffff10; --line-2: #ffffff1c; --text: #e9edf5; --text-2: #b3bccc; --muted: #78839a;
  --accent: #5ee0c4; --accent-2: #4aa8ff; --accent-ink: #032019;
  --crit: #ff4d6d; --high: #ff8a3d; --med: #f2c14e; --low: #5aa9e6; --info: #8a94a8; --ok: #3ed598;
  --crit-bg: #ff4d6d1a; --high-bg: #ff8a3d1a; --med-bg: #f2c14e17; --low-bg: #5aa9e617; --info-bg: #8a94a812; --ok-bg: #3ed59817;
  --shadow: 0 14px 40px #00000066, 0 2px 6px #00000040;
  --radius: 16px; --radius-s: 10px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f2f4f8; --bg-2: #e9edf3; --surface: #ffffff; --surface-2: #f6f8fb; --surface-3: #edf1f6;
    --line: #0b142817; --line-2: #0b142826; --text: #0c1322; --text-2: #3b475d; --muted: #67738a;
    --accent: #0d9f83; --accent-2: #1f6fd1; --accent-ink: #ffffff;
    --crit: #d9284a; --high: #d9661a; --med: #b98a00; --low: #2a7fc4; --info: #66728a; --ok: #13935f;
    --shadow: 0 10px 30px #0b14281a, 0 2px 6px #0b142812;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f4f8; --bg-2: #e9edf3; --surface: #ffffff; --surface-2: #f6f8fb; --surface-3: #edf1f6;
  --line: #0b142817; --line-2: #0b142826; --text: #0c1322; --text-2: #3b475d; --muted: #67738a;
  --accent: #0d9f83; --accent-2: #1f6fd1; --accent-ink: #ffffff;
  --crit: #d9284a; --high: #d9661a; --med: #b98a00; --low: #2a7fc4; --info: #66728a; --ok: #13935f;
  --shadow: 0 10px 30px #0b14281a, 0 2px 6px #0b142812;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  background-image: radial-gradient(1100px 520px at 90% -12%, #5ee0c40f, transparent 60%),
                    radial-gradient(900px 500px at -10% 110%, #4aa8ff0d, transparent 60%);
  background-attachment: fixed; color: var(--text);
  font: 14.5px/1.5 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.err { color: var(--crit); min-height: 1.2em; font-size: 13px; }
::selection { background: #5ee0c455; }

/* ------------------------------------------------------------ contrôles */
button, .btn {
  font: inherit; font-weight: 550; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  padding: 8px 14px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; text-decoration: none;
}
button:hover, .btn:hover { background: var(--surface-3); text-decoration: none; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: linear-gradient(135deg, var(--accent), #4bc7e8); color: var(--accent-ink); border-color: transparent; }
button.primary:hover { filter: brightness(1.06); }
button.danger { color: var(--crit); }
button.ghost { background: transparent; border-color: transparent; }
button.sm, .btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
button svg, .btn svg { width: 16px; height: 16px; flex: none; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 9px 12px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #5ee0c426; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
label.inline { display: flex; align-items: center; gap: 8px; }
label.inline input { width: auto; }

/* ------------------------------------------------------------ auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card { width: min(420px, 100%); padding: 28px; display: grid; gap: 18px; }
.auth-card form { display: grid; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand b { display: block; font-size: 18px; }
.brand span { color: var(--muted); font-size: 13px; }
.otp { font-family: var(--mono); letter-spacing: .35em; text-align: center; font-size: 18px; }
.lock-note { display: flex; gap: 10px; color: var(--muted); font-size: 12.5px; }
.lock-note svg { width: 18px; height: 18px; flex: none; }
.steps { display: flex; gap: 6px; } .steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--line-2); } .steps i.on { background: var(--accent); }
.qr { background: #fff; border-radius: 12px; padding: 8px; width: max-content; margin: auto; } .qr svg { display: block; width: 200px; height: 200px; }
.secret { font-family: var(--mono); text-align: center; color: var(--text-2); font-size: 13px; word-break: break-all; }

/* ------------------------------------------------------------ app */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 20px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.top .brand svg { width: 30px; height: 30px; }
.top .brand b { font-size: 15px; }
.top nav { display: flex; gap: 4px; margin-left: 8px; }
.top nav a { color: var(--text-2); padding: 6px 12px; border-radius: 8px; font-weight: 500; }
.top nav a.on, .top nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.top .sp { flex: 1; }
main { max-width: 1240px; margin: 0 auto; padding: 22px 20px 80px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } .top nav { display: none; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel > h2, .panel > header h2 { font-size: 15px; font-weight: 650; }
.panel > header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel > header .sp { flex: 1; }
.hint { color: var(--muted); font-size: 12.5px; }

/* formulaire nouvelle analyse */
.newscan { display: grid; gap: 16px; }
.urlbox { display: flex; gap: 8px; }
.urlbox input { font-family: var(--mono); font-size: 14px; padding: 12px 14px; }
.urlbox button { padding: 0 20px; }
.nets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .nets { grid-template-columns: 1fr; } .urlbox { flex-direction: column; } .urlbox button { padding: 12px; justify-content: center; } }
.net {
  position: relative; display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; color: var(--text);
}
.net input { position: absolute; opacity: 0; pointer-events: none; }
.net:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); }
.net:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.net b { font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.net .ip { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px #3ed59826; } .dot.bad { background: var(--crit); box-shadow: 0 0 0 3px #ff4d6d26; }
.dot.busy { background: var(--med); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.seg { display: flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; }
.seg label { flex: 1; display: block; text-align: center; cursor: pointer; padding: 6px 8px; border-radius: 7px; font-size: 13px; color: var(--text-2); }
.seg input { display: none; }
.seg label:has(input:checked) { background: var(--surface-3); color: var(--text); font-weight: 600; }
.toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 16px; }
.toggles label { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 13.5px; cursor: pointer; }
.toggles label input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.toggles label span small { display: block; color: var(--muted); font-size: 12px; }
.guard { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--low-bg); color: var(--text-2); font-size: 12.5px; }
.guard svg { width: 18px; height: 18px; flex: none; color: var(--low); }

/* historique */
.hist-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.hist { display: grid; gap: 6px; }
.hrow {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); text-decoration: none;
  transition: border-color .15s, background .15s; content-visibility: auto; contain-intrinsic-size: 64px;
}
.hrow:hover { border-color: var(--line-2); background: var(--surface-2); text-decoration: none; }
.hrow .u { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .t { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .m { text-align: right; font-size: 12px; color: var(--muted); display: grid; gap: 3px; justify-items: end; }
.score {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--info-bg); color: var(--info); font-family: var(--mono);
}
.lv-malicious { --c: var(--crit); --cb: var(--crit-bg); } .lv-suspicious { --c: var(--high); --cb: var(--high-bg); }
.lv-watch { --c: var(--med); --cb: var(--med-bg); } .lv-clean { --c: var(--ok); --cb: var(--ok-bg); }
.score[class*="lv-"] { color: var(--c); background: var(--cb); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
        background: var(--info-bg); color: var(--text-2); white-space: nowrap; }
.pill[class*="lv-"] { background: var(--cb); color: var(--c); }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; height: 64px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 30px; color: var(--muted); }

/* ------------------------------------------------------------ vue en direct */
.live { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
@media (max-width: 1000px) { .live { grid-template-columns: 1fr; } }
.lv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.lv-head .u { font-family: var(--mono); font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.phase { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.screen-wrap { background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); position: relative; }
.chrome { display: flex; align-items: center; gap: 6px; padding: 7px 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chrome input { font-family: var(--mono); font-size: 12.5px; padding: 6px 10px; }
.chrome button { padding: 6px 8px; }
.screen { position: relative; display: grid; place-items: center; min-height: 300px; background: #05070b; outline: none; }
.screen canvas { max-width: 100%; max-height: 74vh; display: block; cursor: crosshair; touch-action: none; }
.screen.focus { box-shadow: inset 0 0 0 2px var(--accent); }
.screen .ph { color: var(--muted); padding: 60px 20px; text-align: center; }
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: 550; }
.banner.captcha { background: var(--high-bg); color: var(--high); border: 1px solid color-mix(in srgb, var(--high) 40%, transparent); animation: glow 1.6s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px #ff8a3d22; } }
.banner svg { width: 22px; height: 22px; flex: none; }
.ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ctl .sp { flex: 1; }
.typebox { display: flex; gap: 6px; margin-top: 10px; }
.side { display: grid; gap: 12px; align-content: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.stat b { display: block; font-size: 20px; font-family: var(--mono); }
.stat span { font-size: 11.5px; color: var(--muted); }
.log { font-family: var(--mono); font-size: 12px; max-height: 52vh; overflow: auto; display: grid; gap: 2px; align-content: start; }
.log div { padding: 4px 8px; border-radius: 6px; color: var(--text-2); border-left: 2px solid transparent; }
.log .warn { color: var(--med); border-color: var(--med); background: var(--med-bg); }
.log .alert { color: var(--high); border-color: var(--high); background: var(--high-bg); }
.log time { color: var(--muted); margin-right: 6px; }
.tabs-list { display: grid; gap: 4px; }
.tabs-list button { justify-content: flex-start; font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.tabs-list button.on { border-color: var(--accent); }

/* ------------------------------------------------------------ rapport */
.rp { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(240px, 360px); gap: 22px; align-items: center; padding: 22px; }
@media (max-width: 960px) { .hero { grid-template-columns: auto minmax(0, 1fr); } .hero .shot { grid-column: 1 / -1; } }
.gauge { position: relative; width: 138px; height: 138px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .v b { font-size: 36px; font-family: var(--mono); color: var(--c); line-height: 1; }
.gauge .v span { font-size: 11px; color: var(--muted); }
.verdict-label { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c); background: var(--cb); padding: 4px 10px; border-radius: 8px; }
.hero h1 { font-size: 21px; margin: 8px 0 6px; overflow-wrap: anywhere; }
.hero .url { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.hero .sum { margin-top: 10px; color: var(--text-2); }
.hero .shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); display: block; cursor: zoom-in; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.chip b { color: var(--text); font-weight: 600; }
.sevbar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin-top: 14px; background: var(--surface-2); }
.sevbar i { display: block; }
.toc { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: 51px; z-index: 10; padding: 8px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.toc a { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; color: var(--text-2); border: 1px solid var(--line); background: var(--surface); }
.toc a:hover { color: var(--text); text-decoration: none; border-color: var(--line-2); }
.toc .n { font-family: var(--mono); color: var(--muted); margin-left: 3px; }
section.panel { scroll-margin-top: 104px; }
section.panel > header h2 { font-size: 16px; }
section.panel > header .cnt { font-family: var(--mono); color: var(--muted); font-size: 12.5px; }
.finding { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.finding:first-of-type { border-top: 0; }
.sev { display: inline-flex; justify-content: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; border-radius: 7px; height: max-content; }
.sev-critical { color: var(--crit); background: var(--crit-bg); } .sev-high { color: var(--high); background: var(--high-bg); }
.sev-medium { color: var(--med); background: var(--med-bg); } .sev-low { color: var(--low); background: var(--low-bg); } .sev-info { color: var(--info); background: var(--info-bg); }
.finding h3 { font-size: 14.5px; font-weight: 600; }
.finding .cat { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.finding p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; }
.ev { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.ev li { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--bg-2); border-radius: 6px; padding: 4px 8px; overflow-wrap: anywhere; }
.sev-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.sev-filter button.off { opacity: .4; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 7px 8px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--surface); }
td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
tr.third td:first-child { box-shadow: inset 2px 0 0 var(--high); }
td.mono, td .mono { font-family: var(--mono); font-size: 12px; }
.tbl-wrap { overflow: auto; max-height: 560px; border-radius: 10px; border: 1px solid var(--line); }
.tbl-wrap.short { max-height: 380px; }
.chain { display: grid; gap: 0; }
.hop { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.hop .rail { display: grid; justify-items: center; grid-template-rows: 14px 1fr; }
.hop .rail i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); margin-top: 4px; }
.hop .rail s { width: 2px; background: var(--line-2); }
.hop:last-child .rail s { background: transparent; }
.hop:last-child .rail i { background: var(--accent); }
.hop .body { padding-bottom: 14px; }
.hop .body .u { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.hop .body .m { font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mini { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.mini h4 { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.mini .mono { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
pre.code { font-family: var(--mono); font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; overflow: auto; max-height: 260px; white-space: pre-wrap; word-break: break-all; margin: 6px 0 0; color: var(--text-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; display: block; cursor: zoom-in; }
.gallery figcaption { font-size: 11.5px; padding: 6px 8px; color: var(--muted); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.bar .tr { height: 8px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar .tr i { display: block; height: 100%; background: var(--accent-2); border-radius: 6px; }
.bar .tr i.third { background: var(--high); }
.bar .n { font-family: var(--mono); text-align: right; color: var(--muted); }
details.more { margin-top: 8px; }
details.more summary { cursor: pointer; color: var(--accent-2); font-size: 13px; }
.flag { font-size: 15px; }
.lightbox { position: fixed; inset: 0; background: #000d; z-index: 100; display: grid; place-items: center; padding: 20px; cursor: zoom-out; overflow: auto; }
.lightbox img { max-width: 100%; height: auto; border-radius: 8px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--surface-3); color: var(--text); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); z-index: 200; font-size: 13.5px; }
textarea.note { min-height: 70px; resize: vertical; font-size: 13.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media print {
  :root { color-scheme: light; --bg: #fff; --bg-2: #f6f8fb; --surface: #fff; --surface-2: #f2f4f8; --surface-3: #e9edf3;
          --line: #0b142822; --line-2: #0b142833; --text: #0c1322; --text-2: #333; --muted: #666; }
  body { background: #fff; font-size: 12px; }
  .top, .toc, .noprint, .actions, .sev-filter { display: none !important; }
  main { padding: 0; max-width: none; }
  .panel { break-inside: auto; box-shadow: none; }
  .finding, .mini, .hop { break-inside: avoid; }
  .tbl-wrap { max-height: none; overflow: visible; }
  th { position: static; }
  details.more { display: none; }
}

/* téléphone */
@media (max-width: 600px) {
  main { padding: 16px 16px 60px; }
  .top { padding: 10px 16px; gap: 8px; }
  .top .brand span { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 14px; }
  .chip { flex-wrap: wrap; white-space: normal; }
  .gauge { width: 110px; height: 110px; }
  .finding { grid-template-columns: 1fr; gap: 6px; }
  .bar { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 34px; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 6px; }
  .hist-tools { flex-wrap: wrap; }
  .hrow { grid-template-columns: 46px minmax(0, 1fr); } .hrow .m { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 8px; }
  .panel { padding: 14px; }
  .toc { top: 51px; overflow-x: auto; flex-wrap: nowrap; }
}
