/* ---------- Self-hosted fonts (no request to Google: faster first paint, GDPR) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400.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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-cyrillic-400.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500.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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-cyrillic-500.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600.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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-cyrillic-600.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700.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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-cyrillic-700.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* Headings: Source Serif 4 (variable 500-700) — sober serif with a regular "f" (replaces Fraunces) */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/source-serif-4-latin.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; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/source-serif-4-latin-ext.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: 'Orbitron'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/orbitron-latin-600.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; }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/orbitron-latin-700.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; }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/orbitron-latin-800.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; }

/* ==========================================================================
   NameCheck — design system (light / dark, fully responsive)
   ========================================================================== */
:root {
  --bg: #f5f6fb;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, rgba(124,108,255,.10), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(34,211,238,.08), transparent 60%);
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --surface-3: #e9ecf5;
  --glass: rgba(255,255,255,.72);
  --border: #e3e6ef;
  --border-strong: #cfd4e2;
  --text: #0e1527;
  --text-2: #34405a;
  --muted: #69738b;
  --accent: #6c5cff;
  --accent-2: #22b8d6;
  --accent-soft: rgba(108,92,255,.10);
  --gold: #b8892f;
  --gold-soft: rgba(212,162,76,.14);
  --ok: #16a34a; --warn: #d97706; --danger: #dc2626;
  --ok-soft: rgba(22,163,74,.10); --warn-soft: rgba(217,119,6,.12); --danger-soft: rgba(220,38,38,.10);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -8px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 60px -20px rgba(30,27,75,.25);
  --radius: 16px; --radius-sm: 10px; --radius-lg: 24px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --topbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b16;
    --bg-grad: radial-gradient(1200px 600px at 85% -10%, rgba(124,108,255,.18), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(34,211,238,.10), transparent 60%);
    --surface: #0d1324; --surface-2: #121a30; --surface-3: #18213b;
    --glass: rgba(13,19,36,.72);
    --border: #1d2742; --border-strong: #2a3657;
    --text: #e9edf7; --text-2: #c2cae0; --muted: #8b96b3;
    --accent: #8b7dff; --accent-2: #3dd2ee; --accent-soft: rgba(139,125,255,.14);
    --gold: #e0b45e; --gold-soft: rgba(224,180,94,.14);
    --ok: #22c55e; --warn: #f59e0b; --danger: #f87171;
    --ok-soft: rgba(34,197,94,.12); --warn-soft: rgba(245,158,11,.14); --danger-soft: rgba(248,113,113,.13);
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070b16;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, rgba(124,108,255,.18), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(34,211,238,.10), transparent 60%);
  --surface: #0d1324; --surface-2: #121a30; --surface-3: #18213b;
  --glass: rgba(13,19,36,.72);
  --border: #1d2742; --border-strong: #2a3657;
  --text: #e9edf7; --text-2: #c2cae0; --muted: #8b96b3;
  --accent: #8b7dff; --accent-2: #3dd2ee; --accent-soft: rgba(139,125,255,.14);
  --gold: #e0b45e; --gold-soft: rgba(224,180,94,.14);
  --ok: #22c55e; --warn: #f59e0b; --danger: #f87171;
  --ok-soft: rgba(34,197,94,.12); --warn-soft: rgba(245,158,11,.14); --danger-soft: rgba(248,113,113,.13);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5 { margin: 0 0 .4em; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.display, .h1, .h2, .phead__name { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
.display { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.04; }
.h1 { font-size: clamp(2rem, 4vw, 3rem); }
.h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.h3 { font-size: 1.25rem; }
.h4 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.h5 { font-size: .92rem; }
.sub { margin-top: 1.4rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.sub .count { background: var(--surface-3); color: var(--muted); border-radius: 99px; padding: 0 .5rem; font-size: .7rem; }
.muted { color: var(--muted); }
.small { font-size: .87rem; } .xsmall { font-size: .76rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 60ch; }
.txt-danger { color: var(--danger) !important; } .txt-warn { color: var(--warn); } .txt-gold { color: var(--gold); }
.money { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--gold); }
.pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.17em; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.narrow { max-width: 640px; }
.main { flex: 1; padding-bottom: 64px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.hide-sm, .btn.hide-sm { display: none; } @media (min-width: 640px) { .hide-sm, .btn.hide-sm { display: inline-flex; } }
.no-print {}

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.glass { background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.panel { padding: 20px; min-width: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel__head h2 { margin: 0; }

/* ---------- Buttons ---------- */
.btn { --b: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .92rem/1 var(--font); padding: .72rem 1.1rem; border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform .12s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; color: var(--text); background: var(--b); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--accent), #5546e8 55%, var(--accent-2) 140%); box-shadow: 0 8px 24px -10px rgba(108,92,255,.65); }
.btn--primary:hover { box-shadow: 0 12px 30px -10px rgba(108,92,255,.8); }
.btn--ghost { background: var(--surface); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost.is-on { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.btn--light { background: #fff; color: #1e1b4b; }
.btn--lg { padding: .95rem 1.4rem; font-size: 1rem; border-radius: 14px; }
.btn--sm { padding: .55rem .85rem; font-size: .85rem; border-radius: 10px; }
.btn--xs { padding: .35rem .6rem; font-size: .78rem; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled], .is-disabled { opacity: .55; pointer-events: none; }
.iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: .15s; }
.iconbtn:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: none; animation: spin .7s linear infinite; }
.is-loading .spinner, .pill--busy .spinner { display: inline-block; }
.is-loading .btn__label { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=url], input[type=date], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 11px; padding: .7rem .85rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input:disabled { opacity: .6; }
/* a drop-down list ignores line-height: same height as a text field next to it (one line + padding + border) */
select { min-height: calc(1lh + 1.4rem + 2px); }
label { display: grid; gap: 6px; align-content: start; font-size: .87rem; font-weight: 550; color: var(--text-2); }
label.check, label.radio { display: flex; align-items: flex-start; gap: .55rem; font-weight: 500; }
.form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span2 { grid-column: span 2; } .form-grid button { justify-self: start; } }
.grid2, .grid3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }
.switch { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--border); }
.topbar__inner { height: var(--topbar-h); display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex: none; }
.brand__mark { width: 32px; height: 32px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.nav { display: none; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; font-size: .9rem; }
.nav__link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.topbar__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: inline-grid; }
@media (min-width: 1024px) { .nav { display: flex; } .nav-toggle { display: none; } .topbar__tools { margin-left: 8px; } }
/* Phones (A56 ≈ 384 px): header = logo + search + trial + menu; language / theme / sign-in move into the menu */
.nav__mobile { display: none; }
@media (max-width: 639px) {
  .topbar__inner { gap: 8px; }
  .topbar__tools { gap: 6px; }
  .topbar__tools > .lang, .topbar__tools > [data-theme-toggle] { display: none; }
  .nav.is-open .nav__mobile { display: grid; gap: 4px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
  .nav__mobile button.nav__link { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 550; font-size: .9rem; text-align: left; }
  .nav__langs { display: flex; gap: 6px; padding: 6px 12px; }
  .nav__langs a { padding: 6px 12px; border-radius: 9px; border: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: .85rem; }
  .nav__langs a[aria-current] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
  .topbar__tools .btn--sm { padding-left: 11px; padding-right: 11px; }
}
.lbl-short { display: none; }
@media (max-width: 479px) {
  .topbar .lbl-long { display: none; } .topbar .lbl-short { display: inline; }
  .topbar .logo__mark { display: none; } .topbar .logo__main { padding-left: 9px; }
}
.nav.is-open { display: flex; position: absolute; top: var(--topbar-h); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.nav__link { white-space: nowrap; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; } :root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }

/* Dropdown (details) */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dropdown > summary::-webkit-details-marker { display: none; }
.lang > summary { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .82rem; color: var(--text-2); height: 38px; }
.dropdown__menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 2px; animation: pop .14s ease; }
.dropdown__menu--right { left: auto; right: 0; }
.dropdown__menu a:not(.btn), .dropdown__menu button:not(.btn) { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; color: var(--text); font: 500 .9rem var(--font); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.dropdown__menu a:not(.btn):hover, .dropdown__menu button:not(.btn):hover { background: var(--surface-2); text-decoration: none; }
.dropdown__menu a[aria-current] { color: var(--accent); font-weight: 650; }
.dropdown__menu--form { padding: 14px; gap: 10px; width: min(330px, calc(100vw - 32px)); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 260px; overflow: auto; }
.checks label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: .83rem; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.usermenu__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: grid; gap: 2px; }
.usermenu__head small { color: var(--muted); }

/* Avatar */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--co { border-radius: 11px; background: linear-gradient(135deg, #b8892f, #e0b45e); }
.avatar--lg { width: 48px; height: 48px; font-size: 1.05rem; }
.avatar--xl { width: 84px; height: 84px; font-size: 1.6rem; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent-soft); }
.avatar--xl.avatar--co { border-radius: 20px; }
.avatar--xl .icon { width: 40%; height: 40%; }

/* Badges / tags / pills / chips */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge--lg { font-size: .9rem; padding: 6px 14px; }
.badge--low { background: var(--ok-soft); color: var(--ok); }
.badge--medium { background: rgba(234,179,8,.15); color: #a16207; }
.badge--high { background: rgba(249,115,22,.15); color: #c2410c; }
.badge--critical { background: var(--danger-soft); color: var(--danger); }
.badge--none { background: var(--surface-3); color: var(--muted); }
:root[data-theme="dark"] .badge--medium { color: #facc15; } :root[data-theme="dark"] .badge--high { color: #fb923c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge--medium { color: #facc15; } :root:not([data-theme="light"]) .badge--high { color: #fb923c; } }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: .74rem; font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.tag--critical, .tag--high, .tag--negative, .tag--convicted, .tag--charged, .tag--error { background: var(--danger-soft); color: var(--danger); }
.tag--medium, .tag--investigation, .tag--allegation, .tag--mixed, .tag--ongoing, .tag--queued, .tag--running { background: var(--warn-soft); color: var(--warn); }
.tag--low, .tag--positive, .tag--active, .tag--dismissed, .tag--acquitted, .tag--done, .tag--selfmade { background: var(--ok-soft); color: var(--ok); }
.tag--gold, .tag--inherited, .tag--global { background: var(--gold-soft); color: var(--gold); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .74rem; font-weight: 650; background: var(--surface-2); color: var(--muted); }
.pill--busy { background: var(--accent-soft); color: var(--accent); }
.pill--conf-high { background: var(--ok-soft); color: var(--ok); }
.pill--conf-medium { background: var(--warn-soft); color: var(--warn); }
.pill--conf-low { background: var(--danger-soft); color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 550 .8rem var(--font); cursor: pointer; }
.chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips--static .chip { cursor: default; background: var(--surface-2); }
.plan-chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.plan-agency { background: rgba(34,184,214,.14); color: var(--accent-2); }
.plan-business, .plan-enterprise { background: var(--gold-soft); color: var(--gold); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.flag { margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: var(--danger-soft); color: var(--danger); font-size: .68rem; font-weight: 700; text-transform: uppercase; }

/* Alerts & toasts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); margin: 12px 0; font-size: .9rem; }
.alert--error { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.alert--info { background: var(--accent-soft); border-color: transparent; }
.alert--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--text); }
.alert--warn > .icon { color: var(--warn); flex: none; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.toast { position: fixed; z-index: 90; right: 16px; bottom: 16px; left: 16px; max-width: 460px; margin-left: auto; display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: slideup .3s ease; }
.toast--success { border-left: 4px solid var(--ok); } .toast--error { border-left: 4px solid var(--danger); }
.toast--warning { border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-left: 4px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, var(--surface)); color: var(--text); font-weight: 550; }
.toast--warning > .icon { width: 22px; height: 22px; color: var(--warn); flex: none; }
.toast span { flex: 1; } .toast__x { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
@keyframes slideup { from { opacity: 0; transform: translateY(12px); } }

/* Empty states / skeleton */
.empty { display: grid; place-items: center; gap: 8px; text-align: center; padding: 34px 16px; color: var(--muted); }
.empty > .icon { width: 34px; height: 34px; opacity: .5; }
.empty--sm { padding: 18px; }
.empty--hero { padding: 80px 16px; }
.skeleton { display: grid; gap: 10px; margin-bottom: 10px; }
.skeleton span { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton .w60 { width: 60%; } .skeleton .w80 { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Landing ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(700px 380px at 75% 30%, rgba(108,92,255,.22), transparent 70%), radial-gradient(500px 300px at 95% 80%, rgba(34,211,238,.18), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } .hero { padding: 90px 0 110px; } }
.display em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero__proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-2); font-size: .9rem; }
.hero__proof .icon { color: var(--ok); }
.mock { padding: 20px; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); box-shadow: var(--shadow-lg); }
.mock__head { display: flex; align-items: center; gap: 12px; }
.mock__head small { display: block; color: var(--muted); font-size: .8rem; }
.mock__head .badge { margin-left: auto; }
.mock__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.mock__graph { width: 100%; height: auto; margin: 10px 0; }
.mock__graph line { stroke-width: 2; opacity: .8; }
.mock__graph .n-center { fill: var(--accent); filter: drop-shadow(0 0 12px rgba(108,92,255,.7)); }
.mock__graph .n-co { fill: #d4a24c; } .mock__graph .n-pep { fill: #f87171; } .mock__graph .n-fam { fill: #f472b6; } .mock__graph .n-p { fill: #60a5fa; }
.mock__graph .nodes > * { animation: float 5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.mock__graph .nodes > *:nth-child(2n) { animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-4px); } }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__kpis > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.mock__kpis small { display: block; color: var(--muted); font-size: .72rem; }
.mock__kpis strong { font-size: 1.15rem; }
.section { padding: 72px 0; }
.section--tight { padding: 28px 0 64px; }
.section--alt { background: linear-gradient(180deg, transparent, var(--surface-2) 12%, var(--surface-2) 88%, transparent); }
.section__head { text-align: center; max-width: 1120px; margin: 0 auto 38px; }
.themes { display: grid; gap: 14px; grid-template-columns: 1fr; }
/* 15 section cards + risk + example: the last two cards always complete the last row */
@media (min-width: 560px) { .themes { grid-template-columns: repeat(2, 1fr); } .theme--demo { grid-column: span 2; } }
@media (min-width: 820px) { .themes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .themes { grid-template-columns: repeat(5, 1fr); } .theme--accent { grid-column: span 2; } .theme--demo { grid-column: span 3; } }
.theme { padding: 20px; transition: transform .2s, box-shadow .2s; }
.theme:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.theme h3 { font-size: 1rem; margin-top: 12px; }
.theme__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.theme__icon .icon { width: 22px; height: 22px; }
.theme--accent { background: linear-gradient(135deg, var(--accent), #4f46e5 60%, var(--accent-2)); color: #fff; border: 0; }
.theme--accent .theme__icon { background: rgba(255,255,255,.18); color: #fff; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.cand-demo { display: grid; gap: 12px; }
.cand-demo .cand { opacity: .7; } .cand-demo .cand--ok { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.features3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features3 { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 24px; }
.feature > .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; }
.cta-band { padding: 0 0 80px; }
.cta-band__inner { border-radius: var(--radius-lg); padding: 52px 28px; text-align: center; color: #fff; background: radial-gradient(600px 300px at 20% 0%, rgba(255,255,255,.18), transparent), linear-gradient(135deg, #4f46e5, #6c5cff 50%, #0891b2); box-shadow: var(--shadow-lg); }
.cta-band__inner p { opacity: .9; max-width: 560px; margin: 0 auto 22px; }
.page-hero { padding: 56px 0 18px; }
.page-hero .lead { margin-top: 10px; max-width: none; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan { padding: 26px 22px; position: relative; display: flex; flex-direction: column; gap: 6px; }
.plan form, .plan > .btn, .plan > .plan__cta { margin-top: auto; }
.plan--featured { border: 1.5px solid var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow-lg); }
.plan--highlight { outline: 3px solid var(--gold); }
.plan--current { border: 1.5px solid var(--ok); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 14%, transparent), var(--shadow-lg); }
.plan__ribbon--current { background: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.plan__ribbon--current .icon { width: 13px; height: 13px; }
/* Plans below the subscribed one: still readable, clearly secondary */
.plan--lower { opacity: .55; filter: saturate(.3); box-shadow: none; transition: opacity .2s, filter .2s; }
.plan--lower:hover, .plan--lower:focus-within { opacity: 1; filter: none; }
.plan--lower .plan__price strong { font-size: 1.5rem; }
.btn--current { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1.5px solid color-mix(in srgb, var(--ok) 45%, transparent); cursor: default; gap: 6px; }
.btn--downgrade { color: var(--muted); background: transparent; border: 1px dashed var(--border); font-weight: 550; font-size: .86rem; }
.btn--downgrade:hover { color: var(--text-2); border-style: solid; }
.btn--upgrade-alt { color: var(--accent); background: var(--accent-soft); border: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.plan__ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan__name { font-family: var(--font-display); font-size: 1.4rem; margin: 0; }
.plan__price { margin: 8px 0 12px; display: flex; align-items: baseline; gap: 4px; }
.plan__price strong { font-size: 2.1rem; font-weight: 750; letter-spacing: -.02em; }
.plan__features { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: .9rem; }
.plan__features li { display: flex; gap: 8px; align-items: flex-start; }
.plan__features .icon { color: var(--ok); margin-top: 3px; }
.plan__features .off { color: var(--muted); } .plan__features .off .icon { color: var(--muted); }
.faq { max-width: 820px; margin: 56px auto 0; display: grid; gap: 10px; }
.faq__item { padding: 16px 18px; }
.faq__item summary { cursor: pointer; font-weight: 650; }
.faq__item p { margin: 10px 0 0; }

/* ---------- Auth ---------- */
.auth { max-width: 1060px; margin: 48px auto; padding: 0 16px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .auth { grid-template-columns: 1.05fr .95fr; } }
.auth__card { padding: 32px 28px; }
.auth__side { padding: 12px; }
.checklist { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--ok); margin-top: 3px; }

/* ---------- Dashboard ---------- */
.dash { padding-top: 28px; display: grid; gap: 20px; }
.dash__hero { padding: 26px; display: grid; gap: 22px; }
.dash__hero .bigsearch { max-width: 820px; }
.bigsearch { display: grid; gap: 12px; }
.search-page > .bigsearch { padding: 20px; margin-top: 28px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: 12px; gap: 4px; justify-self: start; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: .86rem; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg label { display: block; }
/* Large search, Google style: one rounded field, the button inside it */
.bigsearch__field { position: relative; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 6px 6px 6px 0;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 99px; box-shadow: 0 6px 24px -10px rgba(16,24,40,.25); transition: border-color .15s, box-shadow .15s; }
.bigsearch__field:hover { box-shadow: 0 10px 30px -10px rgba(16,24,40,.32); }
.bigsearch__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent), 0 10px 30px -10px rgba(108,92,255,.45); }
.bigsearch__field > .icon { position: absolute; left: 22px; color: var(--accent); width: 22px; height: 22px; }
.bigsearch__field input { flex: 1; min-width: 0; height: 52px; padding: 0 8px 0 56px; font-size: 1.12rem; border: 0; background: transparent; box-shadow: none !important; }
.bigsearch__field .btn { flex: none; height: 52px; border-radius: 99px; padding: 0 26px; font-size: 1rem; }
.bigsearch__go-ic { display: none; }
@media (max-width: 520px) {
  .bigsearch__field { min-height: 58px; }
  .bigsearch__field .btn { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .bigsearch__go-lbl { display: none; } .bigsearch__go-ic { display: inline-block; width: 20px; height: 20px; }
  .bigsearch__field input { height: 46px; font-size: 1rem; padding-left: 48px; }
  .bigsearch__field > .icon { left: 17px; }
}
.bigsearch--hero { margin: 26px 0 6px; max-width: 680px; scroll-margin-top: 120px; }
.bigsearch--hero + .hero__cta { margin-top: 14px; }
.bigsearch--hero .seg { background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.bigsearch__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bigsearch__note { margin: 0; font-size: .85rem; color: var(--muted); }
.pending-search { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin: 4px 0 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); }
.pending-search > .icon { color: var(--accent); flex: none; }
.pending-search div { display: grid; gap: 2px; }
.bigsearch__more summary { cursor: pointer; color: var(--muted); font-size: .86rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.bigsearch__more .grid3 { margin-top: 10px; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; }
.suggest a { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 9px; color: var(--text); }
.suggest a:hover, .suggest a.is-active { background: var(--surface-2); text-decoration: none; }
.suggest small { color: var(--muted); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 18px; display: grid; gap: 6px; }
.kpi__top { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: .8rem; }
.kpi__icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.kpi__icon--gold { background: var(--gold-soft); color: var(--gold); } .kpi__icon--red { background: var(--danger-soft); color: var(--danger); } .kpi__icon--cyan { background: rgba(34,184,214,.13); color: var(--accent-2); }
.kpi__value { font-size: 1.9rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.kpi__value small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.bar { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s ease; }
.dash__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .dash__grid { grid-template-columns: 1fr 1fr; } .panel--wide { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .dash__grid { grid-template-columns: 1.2fr 1.2fr .8fr; } .dash__grid > .panel:nth-child(1), .dash__grid > .panel:nth-child(2) { grid-row: span 2; } .panel--wide { grid-column: span 2; } }
.rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
/* recent lookups: 8 lines on phones; beside other panels (2-3 columns), as many whole lines as their height allows */
.panel--fill .rows > li:nth-child(n+9) { display: none; }
@media (min-width: 900px) {
  .panel--fill { display: flex; flex-direction: column; }
  .panel--fill .rows { flex: 1 1 auto; contain: size; min-height: 540px; overflow: hidden; align-content: start; }
  .panel--fill .rows > li:nth-child(n+9) { display: block; }
  .panel--fill .rows > li.is-cut { display: none; }
}
.rows--compact li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.row-link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); }
.row-link:hover { background: var(--surface-2); text-decoration: none; }
.row-link__main { display: grid; min-width: 0; flex: 1; }
.row-link__main strong, .row-link__main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-link__side { display: flex; align-items: center; gap: 10px; flex: none; }
.row-link--inline { padding: 0; } .row-link--inline span { display: grid; }
.newslist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.newslist li { padding: 10px 12px; border-radius: 10px; border-left: 3px solid transparent; display: grid; gap: 3px; }
.newslist li:hover { background: var(--surface-2); }
.newslist li.is-adverse { border-left-color: var(--danger); background: var(--danger-soft); }
.newslist a { color: var(--text); font-weight: 550; font-size: .92rem; line-height: 1.35; }
.newslist small a { font-weight: 600; color: var(--accent); font-size: inherit; }
.news-src { margin: 10px 0 0; }
.chart-box { position: relative; height: 260px; }
.chart-box--sm { height: 220px; }
.chart-box--donut { height: 240px; max-width: 320px; margin: 0 auto; width: 100%; }
.watchgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.watchcard { padding: 14px; display: grid; gap: 4px; color: var(--text); transition: transform .15s; }
.watchcard:hover { transform: translateY(-2px); text-decoration: none; border-color: var(--accent); }
.watchcard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.watchcard__foot { display: flex; gap: 12px; align-items: center; font-size: .82rem; margin-top: 6px; }
.mini-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.mini-dl dt { color: var(--muted); font-size: .76rem; } .mini-dl dd { margin: 0; font-weight: 700; font-size: 1.15rem; }
.plan-panel .btn { margin-top: 8px; }

/* ---------- Search / candidates ---------- */
.disambig-note { display: flex; gap: 14px; padding: 16px 18px; margin: 18px 0; align-items: flex-start; border-left: 4px solid var(--accent); }
.disambig-note > .icon { width: 26px; height: 26px; color: var(--accent); }
.disambig-note p { margin: 2px 0 0; }
.results-head { margin: 24px 0 12px; }
.candidates { display: grid; gap: 12px; }
.cand { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; align-items: start; }
.cand__body { min-width: 0; }
.cand__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.cand__title h2 { margin: 0; }
.cand__side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 720px) { .cand { grid-template-columns: auto 1fr auto; align-items: center; } .cand__side { grid-column: auto; flex-direction: column; align-items: flex-end; } }
.src { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; }
.src--library { background: var(--gold-soft); color: var(--gold); }
.src--wikidata { background: rgba(34,184,214,.13); color: var(--accent-2); }
.src--ai { background: var(--accent-soft); color: var(--accent); }
.facts { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--text-2); }
.facts li { display: inline-flex; align-items: center; gap: 5px; }
.facts .icon { color: var(--muted); }
.facts--lg { font-size: .92rem; margin-top: 10px; }
.match { position: relative; width: 52px; height: 52px; display: grid; place-items: center; }
.match span { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%); }
.match small { font-weight: 700; font-size: .78rem; }
.search-more { display: grid; gap: 12px; margin-top: 22px; }
.search-more__ai { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; flex-wrap: wrap; }
.search-more__ai > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.search-more__ai > div > .icon { color: var(--accent); width: 22px; height: 22px; grid-row: span 3; }
.search-more__ai p { margin: 0; }
.search-more__manual { padding: 16px 18px; }
.search-more__manual summary { cursor: pointer; display: flex; gap: 8px; align-items: center; }
.search-more__manual form { margin-top: 12px; }

/* ---------- Profile ---------- */
.phead { padding: 28px 0 8px; background: linear-gradient(180deg, var(--accent-soft), transparent); border-bottom: 1px solid var(--border); }
.phead__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1000px) { .phead__grid { grid-template-columns: 1fr auto; } }
.phead__id { display: flex; gap: 20px; align-items: flex-start; min-width: 0; }
.phead__id .eyebrow { margin-bottom: 6px; }
.phead__name { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0; line-height: 1.1; word-break: break-word; }
.phead__stats { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.stat { display: grid; gap: 4px; min-width: 150px; }
.stat small { color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat__money { font-size: 2rem; font-weight: 750; color: var(--gold); letter-spacing: -.02em; line-height: 1.1; }
.conf { height: 8px; width: 150px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.conf span { display: block; height: 100%; background: linear-gradient(90deg, var(--warn), var(--ok)); border-radius: 99px; }
.gauge { position: relative; width: 104px; height: 104px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.gauge__val { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.gauge__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.gauge__txt strong { font-size: 1.6rem; } .gauge__txt small { font-size: .7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.phead__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 14px; }
.progress { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.progress__bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s ease; }
.progress small { color: var(--muted); }
.phead__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.phead__actions .dropdown > summary.btn { list-style: none; }
.homonyms { margin-top: 0; }
.homonyms > .icon { width: 22px; height: 22px; color: var(--accent); }

.pbody { display: grid; gap: 24px; padding-top: 24px; }
@media (min-width: 1100px) { .pbody { grid-template-columns: 220px 1fr; } }
.toc { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; position: sticky; top: var(--topbar-h); z-index: 20; background: var(--bg); margin: 0 -16px; padding: 10px 16px; scrollbar-width: thin; }
@media (min-width: 1100px) { .toc { flex-direction: column; position: sticky; top: calc(var(--topbar-h) + 20px); align-self: start; margin: 0; padding: 0; background: none; max-height: calc(100vh - 100px); overflow: auto; } }
.toc__link { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-size: .87rem; font-weight: 550; white-space: nowrap; border: 1px solid var(--border); background: var(--surface); }
@media (min-width: 1100px) { .toc__link { border-color: transparent; background: none; } }
.toc__link:hover, .toc__link.is-active { background: var(--surface); color: var(--accent); text-decoration: none; border-color: var(--border); }
.toc__link span { flex: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); flex: none; }
.dot--ready { background: var(--ok); } .dot--running, .dot--queued { background: var(--accent); animation: pulse 1.2s infinite; } .dot--error { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }
.pmain { display: grid; gap: 20px; min-width: 0; }
.overview { display: grid; gap: 20px; }
@media (min-width: 1280px) { .overview { grid-template-columns: 1.6fr 1fr; } }
.graph-panel { display: flex; flex-direction: column; }
.graph { position: relative; height: 460px; border-radius: 14px; background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 70%), var(--surface-2); overflow: hidden; }
.graph:fullscreen { height: 100vh; border-radius: 0; background-color: var(--surface); }
.graph__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; }
.graph__empty .icon { width: 36px; height: 36px; opacity: .4; }
.graph__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .graph { height: 360px; } }
.news-panel { max-height: 560px; display: flex; flex-direction: column; }
.news-panel [data-news] { overflow: auto; margin: 0 -8px; padding: 0 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(220,38,38,.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(220,38,38,0); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } }

.sec { padding: 22px; scroll-margin-top: calc(var(--topbar-h) + 70px); }
.sec__head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.sec__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); flex: none; }
.sec__icon .icon { width: 22px; height: 22px; }
#sec-risk .sec__icon, #sec-adverse .sec__icon { background: var(--danger-soft); color: var(--danger); }
#sec-wealth .sec__icon, #sec-assets .sec__icon, #sec-financials .sec__icon { background: var(--gold-soft); color: var(--gold); }
.sec__title { flex: 1; min-width: 200px; }
.sec__title h2 { margin: 0 0 2px; }
.sec__tools { display: flex; gap: 6px; align-items: center; }
.sec__summary { font-size: 1.02rem; color: var(--text-2); padding: 14px 16px; background: var(--surface-2); border-radius: 12px; border-left: 3px solid var(--accent); }
.sec.is-busy { border-style: dashed; }
.sources { margin-top: 18px; font-size: .85rem; }
.sources summary { cursor: pointer; color: var(--muted); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.sources ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.sources a { word-break: break-word; }
.disclaimer { display: flex; gap: 8px; align-items: flex-start; }

/* Data display */
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dl > div { background: var(--surface); padding: 10px 14px; }
.dl dt { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dl dd { margin: 2px 0 0; font-weight: 550; word-break: break-word; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--surface-2); padding: 10px 12px; white-space: nowrap; }
.table td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: top; }
.table .td-main { font-weight: 600; }
.table--hover tbody tr:hover { background: var(--surface-2); }
.table-card { padding: 0; overflow: hidden; } .table-card .table-wrap { border: 0; border-radius: 0; }
@media (max-width: 680px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 10px 12px; border-top: 1px solid var(--border); }
  .table tr:first-child { border-top: 0; }
  .table td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .76rem; font-weight: 600; text-align: left; }
  .table td.td-main { font-size: .98rem; text-align: left; }
  .table td.td-main::before { display: none; }
}
.yes { color: var(--ok); font-weight: 650; } .no { color: var(--muted); }
.yes--warn { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.yes--warn svg { width: 14px; height: 14px; }
.sanc-related { display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm); margin: 6px 0 12px; }
.sanc-related svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.sanc-related--clear { background: var(--ok-soft); color: var(--ok); }
.sanc-related--potential { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.sanc-related--match { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.prose { max-width: 75ch; color: var(--text-2); }
.prose p { margin-bottom: .9em; }
.prose-wide { max-width: 900px; }
.bullets { padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.minikpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 18px; }
.minikpis > div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.minikpis strong { font-size: 1.35rem; font-weight: 750; }
.minikpis small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.idgrid { display: grid; gap: 18px; }
@media (min-width: 900px) { .idgrid { grid-template-columns: 1.3fr 1fr; } }
.wealth { display: grid; gap: 18px; align-items: center; margin-bottom: 8px; }
@media (min-width: 900px) { .wealth { grid-template-columns: 220px 1fr 260px; } }
.wealth__hero { display: grid; gap: 4px; padding: 18px; border-radius: 14px; background: linear-gradient(135deg, var(--gold-soft), transparent); border: 1px solid var(--gold-soft); }
.bignum { font-size: 2.3rem; font-weight: 800; color: var(--gold); letter-spacing: -.03em; line-height: 1.05; }
.split-chart { display: grid; gap: 20px; align-items: center; margin-bottom: 8px; }
@media (min-width: 800px) { .split-chart { grid-template-columns: 280px 1fr; } }
.legend-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.legend-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .88rem; }
.legend-list .mbar { grid-column: 1 / -1; }
.mbar { display: block; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.mbar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.conn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.conn { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; }
.conn:hover { background: var(--surface-2); }
.conn__dot { width: 11px; height: 11px; border-radius: 50%; margin-top: 6px; }
.conn__main { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-width: 0; }
.conn__main small { width: 100%; } .conn__main p { width: 100%; margin: 2px 0 0; color: var(--text-2); }
.strength { display: inline-flex; gap: 3px; margin-top: 6px; }
.strength i { width: 6px; height: 14px; border-radius: 2px; background: var(--surface-3); }
.strength i.on { background: var(--accent); }
.timeline { list-style: none; padding: 0 0 0 4px; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline__item { display: grid; grid-template-columns: 80px 1fr; gap: 30px; padding: 8px 0; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: 83px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline__item.cat-legal::before { border-color: var(--danger); } .timeline__item.cat-wealth::before, .timeline__item.cat-business::before { border-color: var(--gold); } .timeline__item.cat-political::before { border-color: #f87171; } .timeline__item.cat-philanthropy::before { border-color: #2dd4bf; }
.timeline__date { font-weight: 700; font-size: .85rem; color: var(--text-2); text-align: right; padding-top: 6px; font-variant-numeric: tabular-nums; }
.timeline__body { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 6px 0; }
.timeline__body p { width: 100%; margin: 2px 0 0; }
@media (max-width: 560px) { .timeline::before { left: 6px; } .timeline__item { grid-template-columns: 1fr; gap: 0; padding-left: 24px; } .timeline__item::before { left: 0; } .timeline__date { text-align: left; } }
.screening { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 14px; }
.screen { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); }
.screen > .icon { width: 24px; height: 24px; }
.screen div { display: grid; } .screen small { color: var(--muted); }
.screen--clear { background: var(--ok-soft); border-color: transparent; } .screen--clear > .icon { color: var(--ok); }
.screen--warn { background: var(--warn-soft); border-color: transparent; } .screen--warn > .icon { color: var(--warn); }
.screen--hit { background: var(--danger-soft); border-color: var(--danger); } .screen--hit > .icon { color: var(--danger); }
.sevbar, .tonebar { display: flex; border-radius: 10px; overflow: hidden; font-size: .74rem; font-weight: 700; color: #fff; margin: 10px 0; }
.sevbar > span, .tonebar > span { padding: 6px 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sev--critical { background: #dc2626; } .sev--high { background: #ea580c; } .sev--medium { background: #d97706; } .sev--low { background: #64748b; }
.tone--pos { background: #16a34a; } .tone--neu { background: #64748b; } .tone--neg { background: #dc2626; }
.adv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.adv { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); border-left-width: 4px; display: grid; gap: 4px; }
.adv--critical { border-left-color: #dc2626; } .adv--high { border-left-color: #ea580c; } .adv--medium { border-left-color: #d97706; } .adv--low { border-left-color: #94a3b8; }
.adv__head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adv p { margin: 0; color: var(--text-2); }
.family { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.person { display: flex; gap: 10px; align-items: center; }
.person div { display: grid; }
.risk { display: grid; gap: 24px; }
@media (min-width: 900px) { .risk { grid-template-columns: 1fr 1.3fr; } }
.riskscale { position: relative; height: 14px; border-radius: 99px; background: linear-gradient(90deg, #22c55e 0 20%, #eab308 20% 45%, #f97316 45% 70%, #ef4444 70%); margin: 36px 0 6px; }
.riskscale span { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 4px solid var(--c); display: grid; place-items: center; font-weight: 800; font-size: .82rem; box-shadow: var(--shadow); }
.riskscale__labels { display: flex; justify-content: space-between; }
.risk__verdict { margin-top: 18px; }
.factors { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.factors li { display: grid; gap: 4px; }
.factors__row { display: flex; justify-content: space-between; }

/* Account / admin / misc */
.page-head { padding: 28px 0 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.account-grid, .admin-grid { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 900px) { .account-grid, .admin-grid { grid-template-columns: 1fr 1fr; } }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.row-center { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pw summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.pw label { margin-bottom: 10px; }
.levels { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.level { padding: 16px; display: grid; gap: 10px; border-radius: 14px; }
.level legend { font-weight: 700; padding: 0 6px; }
.ttl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.admin-grid > section { display: grid; gap: 10px; align-content: start; }
.admin-grid + .panel, .container > .panel { margin-bottom: 20px; }
.paywall, .errorpage { margin: 70px 0; padding: 44px 28px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.paywall__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.paywall__icon .icon { width: 30px; height: 30px; }
.errorpage__code { font-family: var(--font-display); font-size: 5rem; line-height: 1; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.method-steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 40px; }
.method-step { padding: 22px; }
/* methodology: country risk scale */
.country-rules { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; color: var(--text-2); }
.country-bands td:nth-child(2) { white-space: nowrap; }
.country-bands .band-5 td:nth-child(2) { color: var(--warn); }
.country-bands .band-10 td:nth-child(2), .country-bands .band-15 td:nth-child(2) { color: var(--danger); }
.country-full { margin: 14px 0 10px; }
.country-full > summary { cursor: pointer; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.country-filter { width: 100%; max-width: 360px; margin: 4px 0 10px; }
#country-table td:first-child { width: 48px; }
.method-step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; margin-bottom: 12px; }
.prose-wide h2 { margin-top: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 44px 0 24px; }
.footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer__grid a:not(.brand) { display: block; color: var(--text-2); padding: 4px 0; font-size: .92rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .85rem; }

/* ---------- Print report ---------- */
.print-body { background: #fff; color: #0e1527; display: block; }
.report { max-width: 980px; margin: 0 auto; padding: 24px; }
.report__toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.report__cover { padding: 36px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #1e1b4b, #4f46e5 60%, #0e7490); margin-bottom: 26px; }
.report__cover h1 { font-family: var(--font-display); font-size: 2.6rem; margin: 6px 0; }
.report__cover .muted { color: rgba(255,255,255,.8); }
.report__brand { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.report__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.report__meta small { display: block; opacity: .75; font-size: .72rem; text-transform: uppercase; }
.report__meta strong { font-size: .98rem; }
.report__conf { margin: 20px 0 0; font-size: .82rem; opacity: .9; display: flex; gap: 6px; align-items: center; }
.report__toc ol { columns: 2; font-size: .9rem; }
.report__sec { padding: 20px 0; border-top: 2px solid #e3e6ef; }
.report__sec h2 { font-family: var(--font-display); font-size: 1.5rem; display: flex; gap: 10px; align-items: center; margin: 0; }
.report__sources { font-size: .74rem; color: #69738b; margin-top: 12px; }
.report__sources ol { padding-left: 18px; margin: 4px 0; }
.report__sources .url { word-break: break-all; }
.report__foot { border-top: 1px solid #e3e6ef; padding-top: 14px; margin-top: 20px; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  .no-print, .topbar, .footer, .toast { display: none !important; }
  body { background: #fff !important; font-size: 11px; }
  .report { padding: 0; max-width: none; }
  .report__cover { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report__sec { break-inside: auto; }
  .report__sec h2, .sub { break-after: avoid; }
  .table tr, .adv, .timeline__item { break-inside: avoid; }
  .card { box-shadow: none; }
  .chart-box { height: 220px; }
  a { color: inherit; }
  .table-wrap { overflow: visible; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Refinements ---------- */
@media (min-width: 1100px) {
  .toc { overflow-x: hidden; }
  .toc__link span { overflow: hidden; text-overflow: ellipsis; }
}
.dl { background: var(--surface); }
.dl > div { box-shadow: 0 0 0 .5px var(--border); }

/* ---------- Sanctions screening ---------- */
.sanc-banner { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; margin-bottom: 16px; }
.sanc-banner > .icon { width: 30px; height: 30px; flex: none; }
.sanc-banner div { display: grid; gap: 2px; }
.sanc-banner strong { font-size: 1.05rem; }
.sanc-banner--clear { background: var(--ok-soft); color: var(--ok); }
.sanc-banner--potential { background: var(--warn-soft); color: var(--warn); }
.sanc-banner--match { background: var(--danger-soft); color: var(--danger); border: 1.5px solid var(--danger); }
.sanc-banner--unavailable { background: var(--surface-2); color: var(--muted); }
.sanc-banner small { color: var(--text-2); }
.sanc-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sanc-src { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); border-top: 3px solid var(--ok); background: var(--surface); }
.sanc-src--potential { border-top-color: var(--warn); } .sanc-src--match { border-top-color: var(--danger); background: var(--danger-soft); } .sanc-src--unavailable { border-top-color: var(--border-strong); opacity: .7; }
.sanc-src__head { display: flex; justify-content: space-between; align-items: center; }
.sanc-src__flag { font-size: 1.3rem; line-height: 1; }
.sanc-src strong { font-size: .86rem; line-height: 1.3; }
.sanc-src small { font-size: .74rem; }
.sanc-foot { margin-top: 14px; }
.dl--compact { margin: 6px 0; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.dl--compact > div { padding: 6px 10px; }
/* Risk next to the header gauge */
.riskstat { display: flex; align-items: center; gap: 14px; }
.riskstat__txt { display: grid; gap: 5px; min-width: 150px; }
.riskstat__txt > small:first-child { color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.riskstat .badge { justify-self: start; }
.sanc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 650; padding: 3px 9px; border-radius: 99px; justify-self: start; text-decoration: none !important; }
.sanc-chip .icon { width: .95em; height: .95em; }
.sanc-chip--clear { background: var(--ok-soft); color: var(--ok); } .sanc-chip--potential { background: var(--warn-soft); color: var(--warn); }
.sanc-chip--match { background: var(--danger); color: #fff; } .sanc-chip--unavailable { background: var(--surface-3); color: var(--muted); }

/* ---------- LCB-FT compliance module ---------- */
.lcb-head { background: linear-gradient(180deg, var(--accent-soft), transparent); border-bottom: 1px solid var(--border); padding: 18px 0 0; }
.lcb-head .eyebrow { margin-bottom: 10px; }
.lcb-tabs { display: grid; gap: 8px; padding-bottom: 14px; }
/* Two staggered rows: daily work, then the compliance path whose tabs carry the 7 points, joined by a line */
.lcb-tabs__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lcb-tabs__row--path { padding-left: 48px; }
.lcb-tabs__label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 150px; }
.lcb-tabs__label strong { color: var(--text); letter-spacing: 0; }
.lcb-tabs__row--path a { position: relative; }
.lcb-tabs__row--path a + a { margin-left: 18px; }
.lcb-tabs__row--path a + a::before { content: ""; position: absolute; left: -20px; top: 50%; width: 18px; height: 2px; background: var(--border); }
.lcb-tabs__row--path a.is-ok + a::before { background: color-mix(in srgb, var(--ok) 60%, var(--border)); }
.lcb-tabs__row--path a.is-ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.lcb-tabs__row--path a.is-next:not(.is-active), .lcb-tabs__row a.is-next:not(.is-active) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lcb-tabs__dots { display: inline-flex; gap: 3px; }
.lcb-tabs__dots i { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 99px; font-style: normal; font-size: .7rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.lcb-tabs__dots i.is-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.lcb-tabs__dots i.is-next { border-color: var(--accent); color: var(--accent); }
.lcb-tabs__dots .icon { width: 11px; height: 11px; }
.lcb-tabs__allok { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; font-size: .84rem; margin-left: 8px; }
@media (max-width: 900px) {
  .lcb-tabs__row--path { padding-left: 16px; }
  .lcb-tabs__label { min-width: 0; width: 100%; }
  .lcb-tabs__row--path a + a { margin-left: 0; }
  .lcb-tabs__row--path a + a::before { display: none; }
}
.lcb-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px; color: var(--text-2); font-weight: 600; font-size: .86rem; white-space: nowrap; border: 1px solid var(--border); background: var(--surface); }
.lcb-tabs a:hover { background: var(--surface); text-decoration: none; }
.lcb-tabs a.is-active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.lcb-tabs__cta { color: var(--gold) !important; }
.lcb { padding-top: 22px; display: grid; gap: 20px; }
/* Verification path: step bar under the compliance tabs, guided list on the dashboard */
.lcb-steps { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 2px; }
.lcb-steps__count { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.lcb-steps__count strong { color: var(--text); }
.lcb-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; flex: 1; min-width: 0; }
.lcb-steps li { display: flex; align-items: center; flex: none; }
.lcb-steps li + li::before { content: ""; width: 18px; height: 2px; background: var(--border); margin: 0 4px; }
.lcb-steps li.is-ok + li::before { background: color-mix(in srgb, var(--ok) 55%, var(--border)); }
.lcb-steps ol a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 99px; color: var(--text-2); font-size: .8rem; font-weight: 600; text-decoration: none; }
.lcb-steps ol a:hover { background: var(--surface-2); }
.lcb-steps__dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .74rem; font-weight: 700; background: var(--surface-2); border: 1.5px solid var(--border); color: var(--muted); }
.lcb-steps__dot .icon { width: 13px; height: 13px; }
.lcb-steps .is-ok .lcb-steps__dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.lcb-steps .is-next .lcb-steps__dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lcb-steps .is-here a { background: var(--accent-soft); color: var(--accent); }
.lcb-steps__lbl { white-space: nowrap; }
/* only the current and the next step are named; the others show their name on hover */
.lcb-steps li:not(.is-here):not(.is-next) .lcb-steps__lbl { display: none; }
.lcb-steps__next { flex: none; }
.lcb-steps__all { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: .85rem; }
.lcb-intro { display: flex; gap: 14px; padding: 16px 18px; border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.lcb-intro__icon { flex: none; color: var(--accent); }
.lcb-intro h2 { margin: 0 0 4px; }
.lcb-intro p { margin: 0; }
.lcb-intro__who { margin-top: 8px; }
.lcb-intro__who summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--accent); }
.lcb-intro__who p { margin: 6px 0 0; }
.lcb-progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 4px 0 12px; }
.lcb-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 70%, var(--accent-2))); }
.lcb-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lcb-path li { display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); }
.lcb-path li.is-ok { background: color-mix(in srgb, var(--ok) 5%, transparent); }
.lcb-path li.is-next { border: 1.5px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lcb-path__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-size: .85rem; background: var(--surface-2); color: var(--muted); }
.lcb-path .is-ok .lcb-path__num { background: var(--ok); color: #fff; }
.lcb-path .is-next .lcb-path__num { background: var(--accent); color: #fff; }
/* compliance path in three phases, with "how to" for every point */
.lcb-phase + .lcb-phase { margin-top: 16px; }
.lcb-phase__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0 8px; }
.lcb-phase__head strong { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.lcb-phase.is-ok .lcb-phase__head strong { color: var(--ok); }
.lcb-how { margin-top: 4px; }
.lcb-how summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--accent); }
.lcb-how__dl { display: grid; gap: 6px; margin: 8px 0 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.lcb-how__dl div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: .84rem; }
.lcb-how__dl dt { font-weight: 600; color: var(--text-2); }
.lcb-how__dl dd { margin: 0; color: var(--text-2); }
@media (max-width: 640px) { .lcb-how__dl div { grid-template-columns: 1fr; gap: 2px; } .lcb-path li { grid-template-columns: 30px 1fr; align-items: start; } .lcb-path li > .tag, .lcb-path li > .btn { grid-column: 2; justify-self: start; } }
/* points of vigilance (client files): what someone has to do now */
.vig-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vig a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); font-size: .88rem; }
.vig a span { flex: 1; }
.vig a > .icon:first-child { flex: none; width: 18px; height: 18px; }
.vig a > .icon:last-child { flex: none; width: 14px; height: 14px; color: var(--muted); }
.vig--critical a { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.vig--critical a > .icon:first-child { color: var(--danger); }
.vig--warn a { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, var(--border)); }
.vig--warn a > .icon:first-child { color: var(--warn); }
.vig--info a > .icon:first-child { color: var(--muted); }
.vig a:hover { border-color: var(--accent); }
.vig-none { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ok); font-weight: 600; font-size: .9rem; }
.cadv__vig { display: grid; gap: 8px; margin: 12px 0; }
.lcb-tabs__badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; font-size: .68rem; font-weight: 800; background: var(--warn); color: #fff; }
.lcb-tabs__badge.is-urgent { background: var(--danger); }
/* asset freeze: reporting to the DG Trésor */
.dgt-box { padding: 16px 18px; margin: -6px 0 18px; border: 1.5px solid color-mix(in srgb, var(--danger) 45%, var(--border)); }
.dgt-box.is-done { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.dgt-box.is-done p { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--ok); }
.dgt-steps { margin: 6px 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.dgt-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.dgt-form label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; }
/* internal control cadence + files to review */
.ctrl-cadence { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ctrl-cadence__item { display: grid; gap: 3px; padding: 14px 16px; border-left: 4px solid var(--warn); }
.ctrl-cadence__item.is-ok { border-left-color: var(--ok); }
/* risk map: three-step guide, folding categories, save button always at hand */
.map-guide { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 14px 16px; margin: 0 0 18px; }
.map-guide li { display: flex; gap: 10px; align-items: flex-start; }
.map-guide li div { display: grid; gap: 2px; }
.map-guide__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; font-size: .85rem; background: var(--accent-soft); color: var(--accent); }
.map-guide li.is-ok .map-guide__n { background: var(--ok); color: #fff; }
.map-guide__n .icon { width: 14px; height: 14px; }
.map-cat > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.map-cat > summary::-webkit-details-marker { display: none; }
.map-cat > summary h2 { margin: 0; }
.map-cat[open] > summary { margin-bottom: 12px; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 16px; margin: 0 -4px; border-radius: 14px 14px 0 0; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
@media print { .sticky-save, .map-guide { display: none; } }
.lcb-path__num .icon { width: 15px; height: 15px; }
.lcb-path__txt { display: grid; gap: 2px; min-width: 0; }
.lcb-path__why { color: var(--text-2); }
.lcb-path__all { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--ok); font-weight: 600; }
@media (max-width: 640px) { .lcb-path li { grid-template-columns: 32px 1fr; } .lcb-path li > .tag { display: none; } .lcb-path li > .btn { grid-column: 2; justify-self: start; } }
.lcb-hero { padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.lcb-hero h1 { margin: 2px 0; }
.lcb-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.obligations { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.obligations li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); }
.obligations li > .icon { width: 22px; height: 22px; }
.obligations li div { display: grid; }
.obligations .is-ok { background: var(--ok-soft); border-color: transparent; } .obligations .is-ok > .icon { color: var(--ok); }
.obligations .is-ko { background: var(--warn-soft); border-color: transparent; } .obligations .is-ko > .icon { color: var(--warn); }
.lcb-form { display: grid; gap: 14px; }
.lcb-form textarea { resize: vertical; }
.factors-table td { vertical-align: top; } .factors-table textarea { min-width: 220px; } .factors-table input[type=number] { width: 80px; }
.grid4 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 14px; }
.input-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 8px; }
.proc-doc h2 { margin-top: 18px; }
.filters { display: flex; gap: 10px; padding: 12px; flex-wrap: wrap; }
.filters input[type=search] { flex: 1; min-width: 200px; }
.filters select { width: auto; }
.narrow-wide { max-width: 980px; }
.checkset { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checkset legend { font-weight: 650; font-size: .85rem; padding: 0 6px; }
.stepper { list-style: none; padding: 0; margin: 0 0 14px; display: flex; gap: 6px; overflow-x: auto; }
.stepper li { flex: 1; min-width: 110px; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: .86rem; color: var(--muted); }
.stepper li span:last-child { display: grid; }
.stepper__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); flex: none; font-size: .8rem; }
.stepper .is-done { color: var(--ok); } .stepper .is-done .stepper__dot { background: var(--ok); color: #fff; }
.stepper .is-current { background: var(--accent-soft); color: var(--accent); } .stepper .is-current .stepper__dot { background: var(--accent); color: #fff; }
.stage-form { display: grid; gap: 10px; justify-items: start; }
.lcb-grid { display: grid; gap: 20px; }
@media (min-width: 1100px) { .lcb-grid { grid-template-columns: 1fr 340px; align-items: start; } .lcb-side { position: sticky; top: calc(var(--topbar-h) + 16px); } }
.lcb-main, .lcb-side { display: grid; gap: 20px; min-width: 0; }
.party__head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.party__head .eyebrow { margin-bottom: 2px; }
.party__head h2 { margin: 0; }
.party__side { grid-column: 1 / -1; display: grid; gap: 4px; justify-items: start; }
@media (min-width: 700px) { .party__head { grid-template-columns: auto 1fr auto; } .party__side { grid-column: auto; justify-items: end; } }
.screen-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 8px; }
.checkset-stage { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-top: 10px; }
.checkset-stage > summary { cursor: pointer; font-weight: 650; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.checks-table td { vertical-align: middle; }
.checks-table .td-main small { display: block; font-weight: 400; }
.checks-table input[type=text] { min-width: 160px; padding: .45rem .6rem; }
.chk--missing .td-main { border-left: 3px solid var(--warn); } .chk--ok .td-main { border-left: 3px solid var(--ok); } .chk--na .td-main { border-left: 3px solid var(--border-strong); }
.seg--sm span { padding: 5px 10px; font-size: .78rem; }
.checklist-form { display: grid; gap: 10px; justify-items: start; margin-top: 10px; }
.checklist-form .table-wrap, .checklist-form table { width: 100%; }
.doclist { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; font-size: .88rem; }
.upload-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.upload-form select { width: auto; }
.upload-form input[type=file] { font-size: .85rem; max-width: 260px; }
.upload-form--stack { flex-direction: column; align-items: stretch; }
.party-edit { margin-top: 14px; }
.party-edit > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.party-edit form { margin-top: 12px; }
.inline-del { margin-top: 8px; }
.factor-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; font-size: .88rem; }
.factor-list small { display: block; }
.stack { display: grid; gap: 8px; margin-top: 10px; }
.vig--gel { background: #7f1d1d !important; color: #fff !important; }
details > summary.h4 { cursor: pointer; display: flex; }
.party p.small .tag, .factor-list .tag { text-transform: none; }
.hints-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 10px; }
.hints-grid label { font-size: .78rem; }
.hints-grid .span-all { grid-column: 1 / -1; }
.src--registry_fr { background: rgba(37,99,235,.12); color: #2563eb; }
.src--gleif { background: rgba(13,148,136,.12); color: #0d9488; }
.src--sanctions { background: var(--danger-soft); color: var(--danger); }

/* ---------- Network graph controls & full screen ---------- */
.graph-wrap { position: relative; flex: 1; display: flex; flex-direction: column; }
.graph-wrap .graph { flex: 1; }
.graph-zoom { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; z-index: 2; }
.graph-zoom .iconbtn { width: 34px; height: 34px; box-shadow: var(--shadow); }
.graph-close, .graph-panel__name { display: none; }
.graph-panel.is-full { position: fixed; inset: 0; z-index: 200; border-radius: 0; margin: 0; display: flex; flex-direction: column; padding: 16px 20px; }
.graph-panel.is-full .graph-close { display: inline-grid; margin-left: auto; order: 3; }
.graph-panel.is-full .graph-panel__name { display: inline; color: var(--muted); font-weight: 500; }
.graph-panel.is-full .graph-wrap { min-height: 0; }
.graph-panel.is-full .graph { height: auto; min-height: 0; }
.graph-panel.is-full [data-graph-full] { display: none; }
body.no-scroll { overflow: hidden; }
.news-panel { max-height: none; min-height: 0; }
.news-panel [data-news] { flex: 1 1 auto; min-height: 0; overflow: auto; }

/* ---------- Branding on printed / PDF exports ---------- */
.print-brand { max-width: 980px; margin: 0 auto; padding: 18px 24px 12px; display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #e3e6ef; }
.print-brand__logo { width: 38px; height: 38px; flex: none; }
.print-brand__name { display: grid; line-height: 1.15; }
.print-brand__name strong { font-family: var(--font-display); font-size: 1.25rem; }
.print-brand__name small, .print-brand__meta small { color: #69738b; font-size: .74rem; }
.print-brand__meta { margin-left: auto; display: grid; text-align: right; line-height: 1.25; max-width: 55%; }
.print-brand__meta strong { font-size: .86rem; }
/* the logo never shrinks (its "360" was cut off on phones); on narrow screens the report title goes under it */
.print-brand__name { flex: none; }
.print-brand__name .logo { justify-self: start; }
@media (max-width: 560px) { .print-brand { flex-wrap: wrap; } .print-brand__meta { margin-left: 0; text-align: left; max-width: none; } }
.print-foot { display: none; }
@media print {
  .print-brand { padding: 0 0 8px; margin-bottom: 10px; }
  .print-foot { display: block; position: fixed; bottom: 0; left: 0; right: 0; text-align: center; font-size: 9px; color: #69738b; }
}
/* The network panel sets the height of the row; Fresh news scrolls inside (height synced in JS) */
.overview { align-items: start; }
.news-panel { overflow: hidden; }
.graph-wrap .graph { flex: none; }
.graph-panel.is-full .graph-wrap { flex: 1 1 0; }
.graph-panel.is-full .graph-wrap .graph { flex: 1 1 0; height: auto; }
.jobgroups { display: grid; gap: 8px; }
.jobgroup { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.jobgroup > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; list-style: none; }
.jobgroup > summary::-webkit-details-marker { display: none; }
.jobgroup > summary::before { content: '▸'; color: var(--muted); margin-right: 6px; transition: transform .15s; }
.jobgroup[open] > summary::before { transform: rotate(90deg); }
.jobgroup__name { display: inline-flex; align-items: center; gap: 8px; flex: 1; }
.jobgroup__meta { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jobgroup .table-wrap { margin-top: 8px; }
.search-more__ai-go { display: flex; gap: 8px; align-items: center; }
.search-more__ai-go select { width: auto; }

/* ---------- Brand "360" tag ---------- */
.brand__tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 7px; font-family: var(--font); font-size: .62em; font-weight: 800; letter-spacing: .02em; line-height: 1.5; vertical-align: .32em; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.print-brand__name .brand__tag { font-size: .6em; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.locked { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border-strong); }
.locked > .icon { width: 26px; height: 26px; color: var(--muted); }
.locked p { margin: 4px 0 10px; }

/* sign-up honeypot (invisible to humans) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

/* ---------- Brand cartouche ---------- */
:root { --logo-blue: var(--accent); --font-tech: 'Orbitron', 'Inter', system-ui, sans-serif; }
.logo { display: inline-flex; align-items: stretch; border: 2px solid #5546e8; border-radius: 12px; overflow: hidden; background: #fff; line-height: 1; box-shadow: 0 8px 24px -10px rgba(108,92,255,.65); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.logo__main { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 8px; background: linear-gradient(135deg, var(--accent), #5546e8 55%, var(--accent-2) 140%); }
.logo__mark { width: 24px; height: 24px; flex: none; }
.logo__name { font-family: var(--font-tech); font-weight: 700; font-size: 1rem; letter-spacing: .05em; color: #fff; white-space: nowrap; }
.logo__tag { display: inline-flex; align-items: center; padding: 0 10px; background: #fff; color: #5546e8; font-family: var(--font-tech); font-weight: 800; font-size: 1rem; letter-spacing: .04em; }
.brand:hover .logo { box-shadow: 0 12px 30px -10px rgba(108,92,255,.8); }
.brand--footer { margin-bottom: 10px; }
.print-brand__name .logo { margin-bottom: 4px; box-shadow: none; }
@media (max-width: 420px) { .logo__name, .logo__tag { font-size: .86rem; } .logo__mark { width: 20px; height: 20px; } .logo__main { padding: 5px 8px 5px 6px; } .logo__tag { padding: 0 7px; } }

/* ---------- Cookie consent (RGPD) ---------- */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 460px; padding: 18px 18px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 6px; }
.consent__title .icon { width: 18px; height: 18px; vertical-align: -3px; color: var(--logo-blue); }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.consent__actions .btn { flex: 1; justify-content: center; }
@media (min-width: 640px) { .consent { right: auto; } }

/* CTA band: free trial + contact */
.cta-band__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.75); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.section--alt + .cta-band { padding-top: 56px; }

/* "360" tag after the NameCheck name in running text */
.brand-tag { display: inline-block; margin-left: .08em; padding: 0 .12em; border: 1px solid currentColor; border-radius: .22em; color: inherit; font-family: var(--font-tech); font-weight: 700; font-size: .58em; line-height: 1.05; letter-spacing: .02em; vertical-align: .22em; }

/* Auth: space between the submit button and the "already registered / no account" line */
.auth__card .form + p { margin-top: 22px; }
/* Homepage: sample profile button under the themes */
.themes__cta { display: flex; justify-content: center; margin-top: 30px; }
.demo-banner { align-items: center; }
.demo-banner > div { flex: 1; }

/* Homepage: sample profile as the 15th theme card */
.theme--demo { display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; border: 1.5px dashed var(--logo-blue); background: var(--surface); }
.theme--demo .theme__icon { background: var(--accent-soft); color: var(--logo-blue); }
.theme--demo p { color: var(--text-2); }
.theme--demo__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--logo-blue); }
.theme--demo:hover { transform: translateY(-3px); border-style: solid; }

/* Events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.event { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.event__date { flex: none; width: 58px; text-align: center; border-radius: 10px; padding: 6px 4px; background: var(--accent-soft); color: var(--logo-blue); display: grid; align-content: center; }
.event__date strong { font-size: 1.35rem; line-height: 1; }
.event__date small { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.event__main { display: grid; gap: 4px; min-width: 0; }
.event__tags { display: flex; gap: 6px; flex-wrap: wrap; }
/* Contacts */
.contact-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.contact { padding: 14px; display: grid; gap: 6px; align-content: start; box-shadow: none; }
.contact__head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.contact__lines { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; overflow-wrap: anywhere; }
.contact__lines .icon, .contact__src .icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--muted); }
.contact__src { color: var(--muted); overflow-wrap: anywhere; }

/* Long values in definition lists use the full row */
.dl > .dl__wide { grid-column: 1 / -1; }
.dl > .dl__wide dd { font-weight: 450; line-height: 1.55; }
/* Share menu */
.share__menu { min-width: 240px; display: grid; gap: 2px; padding: 8px; }
.share__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; text-decoration: none !important; }
.share__item:hover { background: var(--surface-2); }
.share__item[hidden] { display: none; }
.share__item .icon { width: 16px; height: 16px; color: var(--muted); }
.share__note { margin: 6px 10px 4px; font-size: .78rem; color: var(--muted); }
.share__note .icon { width: 13px; height: 13px; vertical-align: -2px; }

/* Paid sign-up: chosen plan + steps */
.plan-pick { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; margin: 12px 0 18px; padding: 14px 16px; border: 1.5px solid var(--accent); border-radius: 14px; background: var(--accent-soft); }
.plan-pick > div:first-child { display: grid; }
.plan-pick__price { text-align: right; display: grid; }
.plan-pick__price strong { font-size: 1.4rem; }
.plan-pick ul { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: .88rem; }
.plan-pick ul .icon { width: 15px; height: 15px; color: var(--ok); vertical-align: -3px; }
.plan-pick > a { grid-column: 1 / -1; }
.steps-mini { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.steps-mini li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.steps-mini li strong { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-strong); font-size: .8rem; }
.steps-mini li.is-on { color: var(--text); font-weight: 600; }
.steps-mini li.is-on strong { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Methodology: 6th card = sample profile */
.method-step--demo { display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; border: 1.5px dashed var(--accent); }
.method-step--demo:hover { border-style: solid; transform: translateY(-3px); }
.method-step--demo .method-step__n .icon { width: 16px; height: 16px; }

/* Two-factor authentication */
.security-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.security-box > div { display: grid; gap: 2px; }
.security-box .icon { width: 15px; height: 15px; vertical-align: -2px; }
.twofa-setup { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; }
@media (max-width: 640px) { .twofa-setup { grid-template-columns: 1fr; } }
.twofa-qr { width: 220px; height: 220px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; }
.twofa-qr svg { width: 100%; height: 100%; }
.twofa-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
.twofa-key { display: inline-block; margin-top: 4px; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); font-size: .95rem; letter-spacing: .08em; user-select: all; }
.otp-input { font-size: 1.35rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.recovery { columns: 2; gap: 24px; padding-left: 22px; font-size: 1.05rem; }
.recovery code { letter-spacing: .08em; }
.form--inline { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
@media print { .twofa-codes { box-shadow: none; } .topbar, .footer, .twofa-codes .row-gap { display: none !important; } }

/* Support page */
.support-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .support-grid { grid-template-columns: 1.2fr 1fr; } }
.support-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.support-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.support-links a:hover { background: var(--surface-2); }
.support-links .icon { width: 17px; height: 17px; color: var(--accent); }
.support-grid + .container .faq { margin-top: 36px; }

/* Confidential mode */
.conf-list { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 6px; }
.conf-list .icon { width: 15px; height: 15px; vertical-align: -3px; color: var(--ok); }
.conf-list li:last-child .icon { color: var(--muted); }

/* Pricing: every row (name, audience, price, each feature, button) lines up across the plan cards.
   16 rows = name + audience + price + 12 features + button — update if a feature line is added
   (every card must have the same number of feature lines). */
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-template-rows: subgrid; grid-row: span 16; row-gap: 8px; align-content: start; }
  .plan__features { display: contents; }
  .plan__features li { align-self: start; font-size: .9rem; }
  .plan__price { margin: 6px 0 8px; }
  .plan form, .plan > .btn, .plan > span.btn, .plan > .plan__cta { margin-top: 12px; align-self: end; }
}

/* Admin: cron URL */
.cron-url { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.cron-url code { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: .82rem; overflow-wrap: anywhere; }

.vat-note { margin: 18px auto 0; max-width: 820px; text-align: justify; hyphens: auto; }
.vat-note .icon { width: 15px; height: 15px; vertical-align: -3px; }

.forgot-link { margin: -6px 0 4px; text-align: right; }

/* Hero illustration: richer sample file */
.hero__visual { position: relative; }
.mock__risk { margin-left: auto; position: relative; width: 58px; text-align: center; }
.mock__risk svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.mock__risk circle { fill: none; stroke-width: 4; }
.mock__risk .trk { stroke: var(--surface-2); }
.mock__risk .val { stroke: #eab308; stroke-linecap: round; animation: riskfill 1.6s ease-out both; }
.mock__risk span { position: absolute; top: 12px; left: 0; right: 0; font-weight: 800; font-size: .95rem; }
.mock__risk small { display: block; font-size: .66rem; color: var(--muted); margin-top: -2px; }
/* label on the left of the gauge */
.mock__risk { width: auto; display: flex; align-items: center; gap: 8px; }
.mock__risk-g { position: relative; width: 58px; text-align: center; }
.mock__risk .mock__risk-lbl { max-width: 62px; margin: 0 0 12px; text-align: right; font-size: .58rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.25; }
@keyframes riskfill { from { stroke-dasharray: 0 100; } }
.mock__checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.mock__checks span { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.mock__checks .icon { width: 13px; height: 13px; }
.mock__checks .ok { background: var(--ok-soft); color: var(--ok); }
.mock__checks .warn { background: var(--warn-soft); color: var(--warn); }
.mock__graph .labels text { font-size: 10.5px; fill: var(--text-2); text-anchor: middle; font-family: var(--font); font-weight: 600; }
.mock__progress { margin-top: 12px; }
.mock__progress span { display: block; height: 5px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: fillbar 1.8s ease-out both; }
.mock__progress small { display: block; margin-top: 5px; font-size: .7rem; color: var(--muted); }
@keyframes fillbar { from { width: 8%; } to { width: 100%; } }
.mock-float { position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); max-width: 250px; animation: float 6s ease-in-out infinite; }
.mock-float small { display: block; font-size: .68rem; color: var(--muted); }
.mock-float strong { display: block; font-size: .82rem; line-height: 1.3; }
.mock-float .tag { margin-top: 4px; font-size: .66rem; }
.mock-float--news { top: -34px; left: 22%; }
.mock-float--news .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: ping 2s infinite; }
.mock-float--event { bottom: -36px; right: -18px; animation-delay: -3s; }
.mock-float__date { flex: none; width: 44px; text-align: center; border-radius: 10px; padding: 4px 0; background: var(--accent-soft); color: var(--accent); }
.mock-float__date strong { font-size: 1.15rem; line-height: 1; }
.mock-float__date small { color: var(--accent); text-transform: uppercase; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } }
@media (max-width: 640px) { .mock-float { position: static; margin-top: 10px; max-width: none; animation: none; } }
@media (prefers-reduced-motion: reduce) { .mock-float, .mock__risk .val, .mock__progress span, .mock-float--news .dot { animation: none; } }

/* ---------- Watchlist: type menu, filters, sorting ---------- */
.d-block { display: block; }
.watch { display: grid; gap: 16px; }
.watch > * { min-width: 0; }
.watch-tools { padding: 14px 16px; display: grid; gap: 12px; }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: .86rem; color: var(--muted); text-decoration: none; }
.seg a small { font-weight: 700; color: var(--muted); background: var(--surface-3); border-radius: 99px; padding: 0 7px; font-size: .74rem; }
.seg a.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg a.is-on small { background: var(--accent-soft); color: var(--accent); }
.watch-tools__grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.watch-tools__grid label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.watch-tools__grid select, .watch-tools__grid input { height: 40px; min-height: 0; font-size: .9rem; }
.watch-tools__q { position: relative; grid-column: span 2; }
.watch-tools__q > .icon { position: absolute; left: 12px; bottom: 11px; width: 18px; height: 18px; color: var(--muted); }
.watch-tools__q input { padding-left: 38px; }
.watch-tools > * { min-width: 0; }
@media (max-width: 520px) {
  .watch-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-tools__q { grid-column: 1 / -1; }
  .watch-tools .seg { display: flex; }
  .watch-tools .seg a { flex: 1; min-width: 0; justify-content: center; padding: 7px 4px; font-size: .8rem; gap: 4px; }
  .watch-tools .seg a .icon { display: none; }
}
.watch-tools__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.link-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; text-decoration: none; }
.link-chip .icon { width: 13px; height: 13px; }

/* ---------- Search by criteria (prospecting) ---------- */
.prospect { padding: 22px; margin-top: 20px; display: grid; gap: 16px; scroll-margin-top: 90px; }
.prospect__head h2 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.prospect__head p { margin: 0; }
.prospect__form { display: grid; gap: 14px; }
.prospect__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 900px) { .prospect__grid { grid-template-columns: repeat(3, 1fr); } }
.prospect__grid label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.prospect__form > .btn { justify-self: start; }
.prospect__results { display: grid; gap: 10px; border-top: 1px solid var(--border); padding-top: 16px; scroll-margin-top: 90px; }
.prospect__results h3 { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; }
.prospect__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prospect__item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; background: var(--surface); }
.prospect__item:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); text-decoration: none; }
.prospect__name { display: grid; gap: 2px; min-width: 0; }
.prospect__name small { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prospect__meta { font-size: .82rem; color: var(--text-2); min-width: 0; }
@media (max-width: 720px) { .prospect__item { grid-template-columns: 1fr auto; } .prospect__meta { grid-column: 1 / -1; grid-row: 2; } .prospect__item .tag { grid-column: 2; grid-row: 1; } .prospect__item .money { grid-row: 3; } }
.prospect__ai { display: grid; gap: 10px; justify-items: start; }
.prospect__ai p { margin: 0; }

/* ---------- Search band: large search at the top of every page ---------- */
.searchband { padding: 18px 0 6px; }
.bigsearch--band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; max-width: 980px; }
.bigsearch--band .bigsearch__field { min-height: 56px; }
.bigsearch--band .bigsearch__field input { height: 46px; }
.bigsearch--band .bigsearch__field .btn { height: 46px; }
@media (max-width: 640px) { .bigsearch--band { grid-template-columns: 1fr; } .searchband { padding-top: 12px; } }

/* ---------- Compliance advisor (dashboard card) ---------- */
.cadv { padding: 18px 20px; display: grid; gap: 14px; scroll-margin-top: 90px; }
.cadv__head { display: flex; flex-wrap: nowrap; gap: 14px; align-items: flex-start; }
.cadv__head > div { flex: 1; min-width: 0; }
.cadv__head h2 { margin: 0 0 4px; }
.cadv__head p { margin: 0; }
.cadv__head--line { align-items: center; flex-wrap: wrap; }
.cadv__head--line > div { flex: 1; min-width: 200px; }
.cadv__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.cadv__icon--ok { background: var(--ok-soft); color: var(--ok); }
.cadv--not_concerned { padding: 12px 16px; }
.cadv-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.cadv-form label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--text-2); flex: 1; min-width: 220px; max-width: 460px; }
.cadv-form--compact { margin-top: 8px; }
.cadv__edit summary { cursor: pointer; font-size: .84rem; color: var(--accent); font-weight: 600; }
.cadv__progress { display: flex; align-items: center; gap: 12px; }
.cadv__progress .lcb-progress { flex: 1; margin: 0; }
.cadv__next { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border: 1.5px solid var(--accent); border-radius: 14px; box-shadow: 0 0 0 4px var(--accent-soft); }
.cadv__next > div { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.cadv__next p { margin: 0; }
.cadv__allok { display: flex; gap: 8px; align-items: center; color: var(--ok); font-weight: 600; margin: 0; }
.cadv__tasks ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.cadv__tasks a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; background: var(--surface-2); font-size: .9rem; }
.cadv__tasks a span { flex: 1; }
.cadv__tasks a:hover { background: var(--accent-soft); }
.cadv__tasks .icon { width: 16px; height: 16px; color: var(--accent); }
.cadv__foot { display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; }

/* ---------- Profile views: all / compliance / prospecting / network ---------- */
/* Folder tabs: each view is a tab standing on the page, the active one merges into the coloured sheet below */
.pviews, .pbody { --pv: var(--accent); }
.pviews[data-active="compliance"], .pbody[data-view="compliance"] { --pv: #2563eb; }
.pviews[data-active="prospect"], .pbody[data-view="prospect"] { --pv: var(--gold); }
.pviews[data-active="network"], .pbody[data-view="network"] { --pv: #0891b2; }
.pviews { display: flex; align-items: flex-end; gap: 4px; margin: 22px 0 0; padding: 0 10px; border-bottom: 2px solid var(--pv); transition: border-color .2s; }
.pviews__tab { position: relative; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 0; padding: 9px 16px; border: 1px solid var(--border); border-bottom: 0;
  border-radius: 12px 12px 0 0; background: var(--surface-2); color: var(--muted); font: inherit; font-weight: 650; font-size: .9rem; cursor: pointer; transition: background .15s, color .15s; }
.pviews__tab[data-pview="all"] { --tc: var(--accent); }
.pviews__tab[data-pview="compliance"] { --tc: #2563eb; }
.pviews__tab[data-pview="prospect"] { --tc: var(--gold); }
.pviews__tab[data-pview="network"] { --tc: #0891b2; }
.pviews__tab .icon { width: 17px; height: 17px; color: var(--tc); }
.pviews__tab:hover { color: var(--text); background: var(--surface); }
.pviews__tab small { font-weight: 700; font-size: .72rem; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
/* the open tab: raised, in its colour, no line under it — it continues into the sheet */
/* background tabs stand ON the line (visible under them); the open tab comes forward and covers it */
.pviews__tab.is-on { z-index: 1; margin-bottom: -2px; padding-top: 12px; padding-bottom: 13px; border: 2px solid var(--tc); border-bottom: 0; color: var(--tc);
  background: color-mix(in srgb, var(--tc) 8%, var(--bg)); box-shadow: 0 -6px 14px -10px color-mix(in srgb, var(--tc) 60%, transparent); }
.pviews__tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: color-mix(in srgb, var(--tc) 8%, var(--bg)); }
.pviews__tab.is-on small { background: var(--tc); color: #fff; }
/* the sheet: the page content under the tabs carries the colour of the open view */
.pbody { background: linear-gradient(180deg, color-mix(in srgb, var(--pv) 8%, var(--bg)) 0, transparent 260px) content-box; transition: background .2s; }
@media (max-width: 700px) {   /* below ~700px the four tabs no longer fit on one line with their full labels */
  .pviews { padding: 0 2px; gap: 2px; }
  .pviews { align-items: stretch; }   /* same height for every tab, whatever wraps on two lines */
  .pviews__tab { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 4px; font-size: .74rem; text-align: center; line-height: 1.15; }
  .pviews__tab.is-on { padding-top: 8px; padding-bottom: 10px; }
  .pviews__tab small { display: none; }
}
.is-filtered { display: none !important; }
@media (min-width: 1280px) { .overview.is-single { grid-template-columns: 1fr; } }

/* ---------- Account: AI budget spacing, audit trail grouped by target ---------- */
.budget-line { margin-top: 18px; }
.audit { display: grid; gap: 6px; }
.audit__group { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.audit__group[open] { box-shadow: var(--shadow-sm); }
.audit__group summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.audit__group summary::-webkit-details-marker { display: none; }
.audit__group summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.audit__group[open] summary::before { transform: rotate(90deg); }
.audit__target { font-weight: 650; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.audit__count { font-size: .76rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.audit__events { list-style: none; margin: 0; padding: 4px 14px 12px 34px; display: grid; gap: 6px; }
.audit__events li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }

/* ---------- Watchlist: add already-consulted profiles ---------- */
.watch-add { padding: 0; }
.watch-add > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.watch-add > summary::-webkit-details-marker { display: none; }
.watch-add > summary .icon { color: var(--accent); }
.watch-add > summary small { flex-basis: 100%; padding-left: 30px; }
.watch-add__form { padding: 0 16px 16px; display: grid; gap: 10px; }
.watch-add__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.watch-add__tools .watch-tools__q { flex: 1 1 220px; position: relative; display: block; }
.watch-add__tools .watch-tools__q > .icon { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--muted); }
.watch-add__tools .watch-tools__q input { padding-left: 38px; height: 40px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 9px; background: none; font: inherit; font-weight: 600; font-size: .82rem; color: var(--muted); cursor: pointer; }
.seg button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.watch-add__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 340px; overflow: auto; }
.watch-add__list li[hidden] { display: none; }
.watch-add__list label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; }
.watch-add__list label:hover { border-color: var(--accent); }
.watch-add__list label > span { flex: 1; min-width: 0; display: grid; }
.watch-add__list label > span .icon { width: 15px; height: 15px; color: var(--muted); vertical-align: -2px; }
.watch-add__list input:checked + span strong { color: var(--accent); }
.watch-add__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- AI cost note (in-depth search, criteria search) ---------- */
.ai-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; grid-column: 1 / -1; }
.ai-note .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.ai-note strong { color: var(--text-2); font-weight: 600; }

/* In-depth search inside the empty-result box */
.empty--search { display: grid; justify-items: center; gap: 10px; }
.search-more__ai--inline { width: 100%; max-width: 720px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); text-align: left; display: grid; gap: 12px; }

/* ---------- Admin zone: platform-owner information, set apart (amber) ---------- */
.admin-zone { --az: #b45309; margin-top: 12px; padding: 18px 20px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--az) 55%, transparent);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--az) 7%, var(--surface)) 0 14px, color-mix(in srgb, var(--az) 4%, var(--surface)) 14px 28px); display: grid; gap: 14px; }
.admin-zone__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.admin-zone__head h2 { margin: 0; color: var(--az); display: flex; align-items: center; gap: 8px; }
.admin-zone__head small { color: var(--text-2); flex: 1; min-width: 200px; }
.admin-zone__btn { background: var(--az); color: #fff; }
.admin-zone__btn:hover { background: color-mix(in srgb, var(--az) 85%, #000); color: #fff; }
.admin-zone__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.admin-zone__kpi { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--az) 25%, var(--border)); }
.admin-zone__kpi small { color: var(--az); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-zone__kpi strong { font-size: 1.5rem; }
.admin-zone__kpi > span { font-size: .82rem; color: var(--muted); }
.admin-zone__kpi ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; }
.admin-zone__kpi li { display: flex; justify-content: space-between; gap: 10px; }
.admin-zone__kpi li > span:first-child { color: var(--text-2); }
/* AI web search cost per power level: aligned columns instead of a sentence that wraps */
.az-scans { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.az-scans th, .az-scans td { padding: 3px 0 3px 8px; text-align: right; white-space: nowrap; }
.az-scans th:first-child { padding-left: 0; text-align: left; font-weight: 500; color: var(--text-2); }
.az-scans thead th { font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.admin-zone__alert { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; font-size: .86rem; font-weight: 600; background: var(--warn-soft); color: var(--warn); }
.scales-table td { vertical-align: top; }
.scales-table tr.scale--due td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.scales-table tr.scale--soon td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.scale-review summary { list-style: none; cursor: pointer; }
.ai-watch { margin-top: 14px; }
.ai-watch summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.ai-watch__table td { white-space: nowrap; }
.ai-watch form { margin-top: 8px; }
.scale-review summary::-webkit-details-marker { display: none; }
.scale-review form { display: grid; gap: 6px; margin-top: 6px; min-width: 220px; }
.az-scans tbody tr + tr { border-top: 1px solid color-mix(in srgb, var(--az) 12%, var(--border)); }
.ai-note--admin { color: #b45309; }
.ai-note--admin .icon { color: #b45309; }
.ai-note--admin strong { color: #b45309; }

/* ---------- Person / company toggle inside the large search field ---------- */
.bigsearch__field.has-seg { padding-left: 6px; }
.bigsearch__field.has-seg > .icon { display: none; }
.bigsearch__field.has-seg input { padding-left: 10px; }
.seg--in { flex: none; display: inline-flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--surface-2); }
.seg--in label { display: block; }
.seg--in span { display: inline-flex; align-items: center; gap: 6px; }
.seg--in > label > span { padding: 8px 12px; border-radius: 99px; font-weight: 650; font-size: .88rem; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.seg--in > label > span:hover { color: var(--text); }
.seg--in input:checked + span { background: linear-gradient(135deg, var(--accent), #5546e8); color: #fff; box-shadow: 0 4px 12px -6px rgba(108,92,255,.7); }
.seg--in input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg--in .icon { width: 16px; height: 16px; }
.seg--in .seg__lbl { padding: 0; background: none; box-shadow: none; color: inherit; font: inherit; }   /* not the generic .seg span pill */
.seg--in input:checked + span .seg__lbl { color: #fff; }
.bigsearch--band { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) {
  .seg--in .seg__lbl { display: none; }            /* phones: icons only, the field keeps its room */
  .seg--in > label > span { padding: 9px 11px; }
}

/* Company results: founders / CEO / legal managers, each name opens a person search */
.cand__people { flex-basis: 100%; }
.cand__people span a { font-weight: 600; }


/* Phones: the in-depth search and manual-profile cards must shrink with the screen */
.search-more > * { min-width: 0; }
.search-more__ai > *, .search-more__ai-go > * { min-width: 0; max-width: 100%; }
.search-more__ai-go { flex-wrap: wrap; }
.search-more__ai-go select { flex: 1 1 200px; }
.search-more__ai-go > .btn { flex: 1 0 auto; min-width: max-content; justify-content: center; }
@media (max-width: 560px) { .search-more__ai-go > select, .search-more__ai-go > .btn { flex: 1 1 100%; } }

/* Register namesakes without birth date, folded at the bottom of the results */
.cand-weak { display: grid; gap: 12px; }
.cand-weak > summary { cursor: pointer; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--border); color: var(--text-2); font-weight: 600; font-size: .9rem; list-style: none; display: flex; align-items: center; gap: 8px; }
.cand-weak > summary::-webkit-details-marker { display: none; }
.cand-weak > summary .icon { color: var(--muted); }
.cand-weak[open] > summary { border-style: solid; }

/* Home CTA band ("Votre prochain client mérite mieux…") on phones */
@media (max-width: 560px) {
  .cta-band__inner { padding: 36px 18px; }
  .cta-band__inner h2 { font-size: 1.45rem; overflow-wrap: anywhere; }
  .cta-band__actions .btn { flex: 1 1 100%; white-space: normal; justify-content: center; text-align: center; }
}
/* The band is a card: real side margins at every width (the container's gutter is padding, painted by the gradient) */
.cta-band__inner { width: calc(100% - 32px); max-width: calc(1280px - 32px); }

/* ---------- Password fields: eye button, live rules ---------- */
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; width: 100%; }
.pw__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pw__eye:hover { color: var(--text); background: var(--surface-2); }
.pw__eye .icon { width: 18px; height: 18px; }
.pw__eye[aria-pressed="true"] { color: var(--accent); }
.pw__eye[aria-pressed="true"] .pw__slash { display: none; }
.pw-rules { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; font-weight: 500; color: var(--muted); }
.pw-rules li { display: inline-flex; align-items: center; gap: 4px; }
.pw-rules .icon { width: 13px; height: 13px; opacity: .35; }
.pw-rules li.is-ok { color: var(--ok); }
.pw-rules li.is-ok .icon { opacity: 1; }
.pw-rules.is-touched li:not(.is-ok) { color: var(--warn); }

/* Section menu on phones / tablets: arrows on the edges that can still scroll (sticky inside the scrolling row) */
.toc__arrow { display: none; }
@media (max-width: 1099px) {
  .toc__arrow:not([hidden]) { display: grid; place-items: center; position: sticky; z-index: 2; flex: none; width: 38px; align-self: stretch;
    border: 0; padding: 0; color: var(--accent); cursor: pointer; }
  /* net width 0 in the row (38 - 16 - 22): showing an arrow never changes how far the menu can scroll */
  .toc__arrow--prev { left: -16px; margin: -10px -22px -10px -16px; padding-left: 4px; background: linear-gradient(90deg, var(--bg) 55%, transparent); }
  .toc__arrow--next { right: -16px; margin: -10px -16px -10px -22px; padding-right: 4px; background: linear-gradient(270deg, var(--bg) 55%, transparent); }
  .toc { scrollbar-width: none; }   /* the arrows show that the menu scrolls */
  .toc::-webkit-scrollbar { display: none; }
  .toc__arrow .icon { width: 20px; height: 20px; }
}
@media print { .toc__arrow { display: none !important; } }

/* ---------- Work bar: running search, in front at the bottom of the screen ---------- */
.workbar { position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #4f46e5, #6c5cff 60%, #0891b2); box-shadow: 0 18px 40px -12px rgba(30, 27, 75, .55);
  transition: transform .3s, opacity .3s; }
.workbar.is-hidden { opacity: 0; transform: translate(-50%, 140%); pointer-events: none; }
.workbar.is-min .workbar__text { display: none; }
.workbar__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: wbspin .9s linear infinite; }
.workbar.is-done .workbar__icon { animation: none; border-color: #fff; background: #fff; -webkit-mask: none; position: relative; }
.workbar.is-done .workbar__icon::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #4f46e5; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.workbar__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.workbar__title { font-size: .92rem; }
.workbar__text { font-size: .8rem; opacity: .9; }
.workbar__track { height: 5px; margin-top: 4px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.workbar__track span { display: block; height: 100%; width: 4%; border-radius: inherit; background: #fff; transition: width .6s ease; }
.workbar.is-indeterminate .workbar__track span { width: 35%; animation: wbslide 1.4s ease-in-out infinite; }
.workbar__close { flex: none; align-self: flex-start; width: 26px; height: 26px; border: 0; border-radius: 8px; background: rgba(255,255,255,.15); color: #fff; font-size: 1.05rem; line-height: 1; cursor: pointer; }
.workbar__close:hover { background: rgba(255,255,255,.28); }
@keyframes wbspin { to { transform: rotate(360deg); } }
@keyframes wbslide { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .workbar__icon, .workbar.is-indeterminate .workbar__track span { animation: none; } }
@media print { .workbar { display: none !important; } }

/* ---------- Export: view tabs (same colours as the profile tabs) + section-by-section detail ---------- */
.xviews { display: flex; gap: 3px; border-bottom: 2px solid var(--border); padding: 0 2px; }
/* (doubled class: beats the generic ".dropdown__menu button" reset) */
.dropdown__menu .xviews__tab.xviews__tab { width: auto; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 7px 3px 6px; margin-bottom: -2px;
  border: 1px solid var(--border); border-bottom: 2px solid var(--border); border-radius: 10px 10px 0 0; background: var(--surface-2);
  color: var(--muted); font: inherit; font-weight: 650; font-size: .72rem; line-height: 1.15; text-align: center; cursor: pointer; }
.xviews__tab[data-xview="all"] { --tc: var(--accent); }
.xviews__tab[data-xview="compliance"] { --tc: #2563eb; }
.xviews__tab[data-xview="prospect"] { --tc: var(--gold); }
.xviews__tab[data-xview="network"] { --tc: #0891b2; }
.xviews__tab .icon { width: 16px; height: 16px; color: var(--tc); }
.xviews__tab small { font-size: .68rem; font-weight: 700; opacity: .8; }
.dropdown__menu .xviews__tab.xviews__tab:hover { color: var(--text); background: var(--surface); }
.dropdown__menu .xviews__tab.xviews__tab.is-on { border: 2px solid var(--tc); border-bottom-color: color-mix(in srgb, var(--tc) 8%, var(--surface)); color: var(--tc);
  background: color-mix(in srgb, var(--tc) 8%, var(--surface)); }
.xdetail { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.xdetail > summary { cursor: pointer; font-weight: 600; font-size: .84rem; display: flex; justify-content: space-between; gap: 8px; }
.xdetail > summary small { color: var(--muted); font-weight: 600; }
.xdetail[open] > summary { margin-bottom: 8px; }
.dropdown__menu--form:has(.xviews) { width: min(430px, calc(100vw - 32px)); }
.dropdown__menu--form button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
/* phones: the forms of the profile drop-downs open as a sheet at the bottom of the screen, never off the edge */
@media (max-width: 640px) {
  .dropdown__menu--form { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: calc(100vh - 90px);
    overflow: auto; z-index: 95; box-shadow: 0 -10px 40px -10px rgba(15, 23, 42, .45); }
  .dropdown__menu--form .checks { grid-template-columns: 1fr; max-height: none; }
}

/* Risk map: FATF lists applied automatically */
.fatf-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); display: grid; gap: 4px; }
.fatf-box p { margin: 0; }
.fatf-box .icon { width: 16px; height: 16px; color: var(--accent); vertical-align: -3px; }

/* ---------- AI level of a profile + level legend ---------- */
.ailvl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.ailvl__tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.ailvl__tag .icon { width: 13px; height: 13px; }
.ailvl__tag--eco { background: var(--surface-3); color: var(--text-2); }
.ailvl__tag--standard { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ailvl__tag--deep { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.ailvl__up { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; }
.ailvl__up:hover { text-decoration: underline; }
.ailvl__up .icon { width: 13px; height: 13px; }
.power-help { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .78rem; color: var(--text-2); }
.power-help li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; }
.power-help li.is-locked { opacity: .55; }
.search-more__upsell .icon { vertical-align: -2px; }
.search-more__upsell > div > p { grid-column: 2; }
.search-more__upsell p .icon { width: 14px; height: 14px; color: var(--muted); vertical-align: -2px; }
.dropdown__menu--form:has(.power-help) { width: min(400px, calc(100vw - 32px)); }
/* Profile column: a wide table scrolls inside its frame instead of widening the page (grid tracks default to their content's width) */
.pmain { grid-template-columns: minmax(0, 1fr); }
.pmain > *, .sec__body, .wealth > * { min-width: 0; }

/* ---------- AI power picker: toggle buttons stacked, one line each ---------- */
.pwr { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.pwr legend { padding: 0; margin-bottom: 4px; font-weight: 650; }
.pwr__opt { position: relative; display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px;
  border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.pwr__opt input { position: absolute; opacity: 0; pointer-events: none; }
.pwr__name { font-weight: 700; font-size: .86rem; }
.pwr__desc { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.pwr__desc em { font-style: normal; white-space: nowrap; }
.pwr__opt:hover { border-color: var(--border-strong); }
.pwr__opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.pwr__opt:has(input:checked) .pwr__name { color: var(--accent); }
.pwr__opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pwr__opt.is-locked { cursor: not-allowed; opacity: .55; background: var(--surface-2); }
.pwr__lock .icon { width: 14px; height: 14px; color: var(--muted); }
.search-more__ai-go .pwr { flex: 1 1 320px; }
.search-more__ai-go:has(.pwr) { align-items: flex-end; }
@media (max-width: 420px) { .pwr__opt { grid-template-columns: 78px 1fr auto; gap: 8px; padding: 8px 10px; } }
@media (max-width: 560px) {
  .search-more__ai-go:has(.pwr) { flex-direction: column; align-items: stretch; }
  .search-more__ai-go .pwr { flex: none; width: 100%; }
}
/* the action row is a div too: keep it a flex row, not the icon/text grid of ".search-more__ai > div" */
.search-more__ai > .search-more__ai-go { display: flex; grid-template-columns: none; }

/* Profile: AI sections out of date, update offered with its cost in credits */
.stale-offer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stale-offer > div { flex: 1 1 260px; min-width: 0; }
.stale-offer > .btn { flex: none; }

/* ---------- API documentation + keys ---------- */
.narrow-xl { max-width: 900px; }
.apidoc { display: grid; gap: 16px; padding-bottom: 40px; }
.apidoc pre { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); overflow-x: auto; font-size: .8rem; line-height: 1.5; }
.apidoc pre code { white-space: pre-wrap; word-break: break-word; }
.apidoc__ep h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.apidoc__ep h2 code { font-size: .9rem; overflow-wrap: anywhere; }
.apidoc__m { padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .03em; color: #fff; }
.apidoc__m--get { background: #0891b2; }
.apidoc__m--post { background: var(--accent); }
.apidoc__rules, .apidoc__flow { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.apikey-new code { overflow-wrap: anywhere; }
.apidoc__head { display: grid; gap: 8px; padding-top: 28px; }
.apidoc__head .lead { margin: 0; }

/* ---------- Phones: menus and pop-ups never leave the screen, and can be closed with a cross ---------- */
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.dropdown__menu > button.sheet-close { display: none; position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; place-items: center; padding: 0;
  border: 0; border-radius: 9px; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.dropdown__menu > button.sheet-close:hover { background: var(--surface-3); color: var(--text); }
.sheet-close .icon { width: 16px; height: 16px; }
.dropdown__menu--form > button.sheet-close { display: grid; }   /* export, refresh: forms get the cross on every screen */
.dropdown__menu--form > strong:first-of-type { padding-right: 38px; }
@media (max-width: 640px) {
  /* every pop-up of the page content opens as a sheet at the bottom of the screen, over a dimmed page */
  .main details.dropdown > .dropdown__menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; min-width: 0;
    max-height: calc(100vh - 90px); overflow: auto; z-index: 95; padding-top: 46px; box-shadow: 0 -10px 40px -10px rgba(15, 23, 42, .45); }
  .main details.dropdown[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 94; background: rgba(15, 23, 42, .38); cursor: default; }
  .main details.dropdown > .dropdown__menu > button.sheet-close { display: grid; }
  .main details.dropdown > .dropdown__menu--form > strong:first-of-type { margin-top: -32px; }
  /* top bar menus (language, account): kept under their button, inside the screen */
  .topbar .dropdown__menu { left: auto; right: 0; max-width: calc(100vw - 24px); }
  .topbar .dropdown__menu > button.sheet-close { display: none; }
}
/* Profile sections: long words, links and labels wrap inside the card instead of pushing it past the screen */
/* break-word (not anywhere): only an overflowing word breaks, table columns keep their natural width and scroll */
.sec__body { overflow-wrap: break-word; }
.adv, .adv > *, .screen, .screen > div { min-width: 0; }
.adv a { overflow-wrap: anywhere; }
/* labels of any section (case status, role, category…) wrap when they are longer than the card */
.sec__body .tag { max-width: 100%; white-space: normal; overflow-wrap: break-word; text-align: left; }
.conn-list { grid-template-columns: minmax(0, 1fr); }
.conn { grid-template-columns: auto minmax(0, 1fr) auto; }
@media (max-width: 420px) { .screening { grid-template-columns: 1fr 1fr; } .screen { padding: 10px; gap: 8px; } }
.adv-list { grid-template-columns: minmax(0, 1fr); }

.graph__list { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; color: var(--accent); white-space: nowrap; }
.graph__list .icon { width: 14px; height: 14px; }
.conn__main > * { max-width: 100%; min-width: 0; }
.conn__main a { overflow-wrap: anywhere; }

/* Pricing: flat credit price of each AI operation */
.credit-prices { margin-top: 22px; }
.credit-prices .table td:not(:first-child), .credit-prices .table th:not(:first-child) { text-align: center; white-space: nowrap; }
.credit-prices .xsmall { margin: 10px 0 0; }

/* Admin: section menu */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.admin-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .84rem; font-weight: 600; text-decoration: none; }
.admin-nav a:hover { border-color: var(--accent); color: var(--accent); }
.admin-nav .icon { width: 15px; height: 15px; }
#costs .panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Admin settings: save button in the AI levels card and a bar kept at the bottom of the screen over the form */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-save { grid-column: 1 / -1; position: sticky; bottom: 12px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .admin-save > span { display: none; } .admin-save .btn { width: 100%; justify-content: center; } }

/* Admin: section menu kept under the header */
.admin-menu { position: sticky; top: var(--topbar-h); z-index: 40; margin: 0 0 16px; border: 1px solid var(--border); border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.admin-menu > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; font-size: .9rem; }
.admin-menu > summary::-webkit-details-marker { display: none; }
.admin-menu > summary .icon { width: 17px; height: 17px; flex: none; }
.admin-menu > summary strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-menu__chev { transition: transform .2s; }
.admin-menu[open] .admin-menu__chev { transform: rotate(180deg); }
.admin-menu .admin-nav { margin: 0; padding: 4px 12px 12px; border-top: 1px solid var(--border); }
.admin-menu .admin-nav a.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.admin-grid > section, .container > section.card { scroll-margin-top: calc(var(--topbar-h) + 70px); }
#cron, #costs, #settings, #sanctions, #jobs, #orgs { scroll-margin-top: calc(var(--topbar-h) + 70px); }

/* Dismissed namesakes: check on the web, or confirm it is the same person */
.homonyms__list { display: grid; gap: 8px; padding-left: 18px; }
.homonyms__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
/* text on its own line, actions below: asking for confirmation never moves the line around */
.homonyms__list li > span:first-child { flex: 1 1 100%; min-width: 0; }
.homonyms__act { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.homonyms__act form { margin: 0; }

/* Two-step confirmation inside the page */
.ask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ask [hidden] { display: none !important; }   /* .btn sets display, which would override the hidden attribute */
.ask__confirm:not([hidden]) { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 10px; background: var(--warn-soft); }

.billing-mgr { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 8px; }
.billing-mgr .icon { width: 15px; height: 15px; vertical-align: -2px; color: var(--gold); }
.billing-mgr p { margin: 0; }

/* Account: members of the organisation */
.members { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.members__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.members__row--left { opacity: .55; }
.members__who { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.members__tags, .members__act { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.members__act form { margin: 0; }
.members__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.members__hint { grid-column: 1 / -1; }
.members__role { margin: 0; }
.members__role select { padding: 3px 8px; font-size: .8rem; border-radius: 999px; min-height: 0; width: auto; }
/* Account: delete my account */
.close-account__btn { color: var(--danger); }
.close-account .ask { display: block; }
.close-account .ask__confirm:not([hidden]) { display: grid; grid-template-columns: minmax(0, 280px) auto auto; justify-content: start; align-items: end; gap: 10px; padding: 12px 14px; margin-top: 4px; }
.close-account__confirm > .small:first-child { grid-column: 1 / -1; }
.close-account__confirm label { display: grid; gap: 4px; margin: 0; }
.close-account__confirm input { width: 100%; min-height: 0; padding: 6px 10px; }
@media (max-width: 560px) {
  .close-account .ask__confirm:not([hidden]) { grid-template-columns: 1fr 1fr; }
  .close-account__confirm label { grid-column: 1 / -1; }
}
.close-account__yes { background: var(--danger); border-color: var(--danger); }
/* Profile: correct the main name */
.rename { margin: 2px 0 6px; }
.rename summary { cursor: pointer; color: var(--muted); list-style: none; }
.rename summary::-webkit-details-marker { display: none; }
.rename__form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.rename__form input { max-width: 240px; min-width: 0; flex: 1 1 160px; padding: 4px 10px; }
/* Admin: monthly total of the AI usage table */
.usage-total td { background: var(--surface-2, rgba(127,127,127,.08)); border-top: 1px solid var(--border); }
/* Account: organisation name card (admins unfold it to rename) */
.org-card { margin: 6px 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2, transparent); }
.org-card > summary, div.org-card { display: flex; align-items: center; gap: 12px; }
.org-card > summary { cursor: pointer; list-style: none; }
.org-card > summary::-webkit-details-marker { display: none; }
.org-card__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.org-card__icon .icon { width: 20px; height: 20px; }
.org-card__body { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.org-card__body small { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.org-card__body strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.org-card__edit { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 99px; font-size: .78rem; font-weight: 650; color: var(--accent); }
.org-card__edit .icon { width: 13px; height: 13px; }
.org-card > summary:hover .org-card__edit { border-color: var(--accent); }
.org-card[open] .org-card__edit { display: none; }
.org-card__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.org-card__form input { flex: 1 1 220px; max-width: 420px; min-height: 0; padding: 7px 12px; }
.org-card__form small { flex-basis: 100%; }
/* Account: "invite your team" upsell when all seats are used */
.team-up { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 16px; margin-top: 10px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--gold) 8%, transparent)); }
.team-up__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.team-up__icon .icon { width: 22px; height: 22px; }
.team-up__text p { margin: 2px 0 0; }
@media (max-width: 560px) { .team-up { grid-template-columns: auto 1fr; } .team-up__go { grid-column: 1 / -1; justify-self: start; } }
/* Account: delete my account, folded by default */
.close-account__sum { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); }
.close-account__sum::-webkit-details-marker { display: none; }
.close-account__sum::after { content: '▾'; transition: transform .2s; }
.close-account[open] .close-account__sum::after { transform: rotate(180deg); }
.close-account[open] .close-account__sum { margin-bottom: 10px; color: var(--text); }
.close-account__sum .h5 { margin: 0; }
/* Account: subscription card — plan + status, usage meters, billing footer */
.plan-card h2 .icon { color: var(--gold); }
.plan-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 2px 0 16px; }
.plan-card__head .icon { width: 14px; height: 14px; vertical-align: -2px; }
.plan-chip--lg { font-size: .9rem; padding: 4px 14px; }
.meters { display: grid; gap: 14px; }
.meter { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 10px; }
.meter__label { font-size: .86rem; color: var(--text-2); }
.meter__value { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.meter__value strong { color: var(--text); font-size: 1rem; }
.meter__bar, .meter__hint { grid-column: 1 / -1; }
.meter__hint { font-size: .74rem; margin-top: -1px; }
.plan-card .billing-mgr { margin: 18px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.plan-card .billing-mgr .row-gap { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-card .billing-mgr .form--inline { margin-top: 4px; }
.plan-card .billing-mgr .form--inline { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.plan-card .billing-mgr .form--inline label { display: grid; gap: 4px; margin: 0; }
.plan-card .billing-mgr select { min-height: 0; padding: 6px 30px 6px 10px; }
/* Account: profile card — identity header, identity / preferences / security blocks */
.prof-card h2 .icon { color: var(--accent); }
.prof-card__head { display: flex; align-items: center; gap: 12px; margin: 2px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.prof-card__avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; font-size: 1.1rem; }
.prof-card__who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.prof-card__who strong, .prof-card__who small { overflow-wrap: anywhere; }
.prof-card__sub { margin: 16px 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prof-card__form label { margin: 0; }
.prof-card__save { display: flex; justify-content: flex-end; margin-top: 12px; }
.prof-sec { display: grid; gap: 8px; }
.prof-sec__row { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.prof-sec__row > summary, .prof-sec__row--flat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.prof-sec__row > summary { cursor: pointer; list-style: none; }
.prof-sec__row > summary::-webkit-details-marker { display: none; }
.prof-sec__row span:first-child { display: grid; gap: 2px; min-width: 0; }
.prof-sec__row strong { font-size: .9rem; }
.prof-sec__row strong .icon { width: 15px; height: 15px; vertical-align: -2px; }
.prof-sec__row small { font-size: .78rem; }
.prof-sec__row[open] > summary .btn { display: none; }
.prof-sec__pw { display: grid; gap: 10px; padding: 4px 12px 12px; }
.prof-sec__pw label { margin: 0; }
.txt-ok { color: var(--ok, #16a34a); }
/* Account: compact profile card (same height as the subscription card) */
.prof-card__head { padding: 8px 12px; margin-bottom: 12px; }
.prof-card__avatar { width: 36px; height: 36px; font-size: .95rem; }
.prof-card__grid { gap: 10px 12px; }
.prof-card__grid label { font-size: .84rem; gap: 4px; }
.prof-card__grid input, .prof-card__grid select { min-height: 0; padding: 8px 12px; font-size: .9rem; }
.prof-card__save { margin-top: 10px; }
.prof-sec { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.prof-sec__row[open] { grid-column: 1 / -1; }
.prof-sec__row > summary, .prof-sec__row--flat { padding: 8px 10px; }
.prof-sec__row strong { font-size: .84rem; }
.prof-sec__row small { font-size: .74rem; }
@media (max-width: 560px) { .prof-sec { grid-template-columns: 1fr; } }
.prof-card { display: flex; flex-direction: column; }
.prof-card .prof-sec { margin-top: auto; padding-top: 12px; }
/* Account: change of the sign-in e-mail */
.prof-card__head { flex-wrap: wrap; }
.email-edit > summary { list-style: none; cursor: pointer; }
.email-edit > summary::-webkit-details-marker { display: none; }
.email-edit > summary .icon { width: 13px; height: 13px; }
.email-edit[open] { flex-basis: 100%; order: 10; }
.email-edit[open] > summary { display: none; }
.email-edit__form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 8px 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
.email-edit__form label { margin: 0; font-size: .84rem; }
.email-edit__form input { min-height: 0; padding: 7px 11px; }
.email-edit__hint { grid-column: 1 / -1; }
.email-pending { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: -4px 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); font-size: .82rem; }
.email-pending .icon { width: 14px; height: 14px; vertical-align: -2px; }
.email-confirm__addr { font-size: 1.1rem; margin: 6px 0 16px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .email-edit__form { grid-template-columns: 1fr; } }
.email-edit__go { display: inline-flex; gap: 6px; }
/* Sign-up: "confirm your e-mail" page */
.verify-card { text-align: center; }
.verify-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.verify-card__icon .icon { width: 26px; height: 26px; }
.verify-card__addr { font-size: 1.1rem; margin: 4px 0 10px; overflow-wrap: anywhere; }
.verify-card .form { margin: 14px 0 10px; }
.verify-card__alt { margin: 0 0 12px; }
.verify-card__out { margin: 0; }
.verify-card__spam { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 10px 0 6px; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); color: var(--text); font-weight: 650; font-size: .9rem; text-align: left; }
.verify-card__spam .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--warn); }
/* E-mail change form: roomier (fields side by side, explanation, then the buttons) */
.email-edit__form { grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 8px; padding: 14px 2px 4px; }
.email-edit__form label { display: grid; gap: 6px; font-size: .86rem; }
.email-edit__form input { padding: 9px 12px; }
.email-edit__hint { order: 3; line-height: 1.5; }
.email-edit__go { order: 4; grid-column: 1 / -1; justify-content: flex-end; gap: 8px; }
@media (max-width: 560px) { .email-edit__form { grid-template-columns: 1fr; } .email-edit__go { justify-content: stretch; } .email-edit__go .btn { flex: 1; } }
.prof-sec__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.prof-sec__actions > span { display: inline-flex; gap: 8px; }
.billing-mgr__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.billing-mgr__btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.billing-mgr__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 12px; }
.billing-mgr__foot .form--inline { margin: 0 !important; }
.billing-mgr__invoices { margin-left: auto; }
.billing-mgr__invoices .icon { width: 14px; height: 14px; }
/* Account: invite a colleague */
.invite-box { margin-top: 12px; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--accent) 4%, transparent); }
.invite-box__title { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: .95rem; }
.invite-box__title .icon { width: 16px; height: 16px; color: var(--accent); }
.invite-box__fields { display: grid; grid-template-columns: 1fr 1fr 1.4fr 1fr; gap: 10px 12px; align-items: end; }
.invite-box__fields label { display: grid; gap: 6px; margin: 0; font-size: .84rem; }
.invite-box__fields input, .invite-box__fields select { width: 100%; min-height: 40px; padding: 8px 12px; box-sizing: border-box; }
.invite-box__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 12px; }
.invite-box__foot small .icon { width: 13px; height: 13px; vertical-align: -2px; }
@media (max-width: 860px) { .invite-box__fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .invite-box__fields { grid-template-columns: 1fr; } .invite-box__foot .btn { width: 100%; justify-content: center; } }
/* "check the spam folder" reminders */
.spam-warn { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); color: var(--text); font-weight: 650; font-size: .88rem; }
.spam-warn .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--warn); }
.spam-warn--inline { display: inline-flex; margin: 0; padding: 4px 10px; font-size: .78rem; font-weight: 600; border-radius: 99px; }
.spam-warn--inline .icon { width: 14px; height: 14px; }
.invite-box__notes { display: grid; gap: 6px; justify-items: start; }
/* profile header: name and e-mail keep their width, the role and "Edit" go to the next line when narrow */
.prof-card__who { flex: 1 1 200px; }
.prof-card__who small { overflow-wrap: anywhere; word-break: normal; }
/* invite a colleague: folded by default (opens again by itself after an error) */
.invite-box > summary { list-style: none; cursor: pointer; margin: 0; justify-content: space-between; }
.invite-box > summary::-webkit-details-marker { display: none; }
.invite-box > summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .2s; }
.invite-box[open] > summary::after { transform: rotate(180deg); }
.invite-box[open] > summary { margin-bottom: 12px; }
.invite-box:not([open]) { padding-top: 12px; padding-bottom: 12px; }
.invite-box > summary { font-weight: 700; }
.invite-box > summary, .org-card > summary, .close-account__sum, .email-edit > summary, .prof-sec__row > summary { user-select: none; -webkit-user-select: none; }
.prof-name { margin: 0 0 12px; }
.prof-name[open] > summary .btn { display: none; }
.prof-name .prof-sec__pw label { font-size: .84rem; }
/* contacts: where each detail was published */
.src-type { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; margin-right: 6px; border-radius: 99px; font-size: .72rem; font-weight: 650; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); white-space: nowrap; }
.src-type .icon { width: 12px; height: 12px; }
.src-type--press { background: var(--surface-3); color: var(--text-2); }
.contact__src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
/* Holdings: one card per company (long roles and sectors read well) */
.biz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 16px; }
.biz-card { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2, transparent); min-width: 0; }
.biz-card--past { opacity: .7; }
.biz-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px; }
.biz-card__head strong { overflow-wrap: anywhere; }
.biz-card__tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.biz-card__role { margin: 6px 0 0; font-size: .85rem; color: var(--text-2); overflow-wrap: anywhere; }
.biz-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 8px 0 0; font-size: .8rem; }
.biz-card__facts div { min-width: 0; }
.biz-card__facts dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; }
.biz-card__facts dd { margin: 0; overflow-wrap: anywhere; }

/* Print: logo and report cover gradients as an SVG (kept even when the browser drops background graphics) */
.print-bg { display: none; }
@media print {
  .logo__main, .report__cover { position: relative; isolation: isolate; overflow: hidden; }
  .print-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
}
/* Phones: the work bar stays at the bottom, above the home bar of the phone (safe area) and above the cookie
   banner when it shows; the page gets room underneath so the bar never hides its end */
.workbar { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 91; }
body.has-workbar { padding-bottom: 96px; }
@media (max-width: 760px) {
  .workbar { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px; gap: 10px; }
  .workbar__title { font-size: .86rem; }
}
/* Fresh news: article about the person's company or club */
.tag--about { display: inline-flex; align-items: center; gap: 3px; margin-right: 2px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 600; }
.tag--about .icon { width: 11px; height: 11px; }
/* Search: the typed name is a close spelling of the names found */
.spell-note { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--text-2); }
.spell-note .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--accent); }
/* Admin: one-off catch-up actions */
.admin-oneoff { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.admin-oneoff .btn { white-space: normal; text-align: left; }
.admin-oneoff__last { flex-basis: 100%; margin: 2px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.admin-oneoff__last .icon { width: 15px; height: 15px; color: var(--ok); }

/* Admin > organisation: controls, member actions, admin history */
.ao-controls { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ao-controls .ao-control { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ao-control > span:last-child { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ao-actions { min-width: 0; }
.ao-actions form { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.ao-log { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 680px) {
  /* member rows: label above the content (several pieces per cell), action buttons wrap */
  #members .table td { display: block; text-align: left; }
  #members .table td::before { display: block; }
  #members .table td.ao-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start; }
  #members .table td.ao-actions::before { display: none; }
}

/* ---------- Profile: sticky bar (views + actions) once the folder tabs are scrolled past ---------- */
.pstick { position: fixed; z-index: 45; left: 0; right: 0; top: var(--topbar-h); height: 54px; background: var(--surface); border-bottom: 2px solid var(--pv, var(--accent));
  box-shadow: 0 8px 20px -14px rgba(15, 23, 42, .35); transform: translateY(-120%); visibility: hidden; transition: transform .18s ease, visibility 0s linear .18s; }
/* no transform once shown: the phone sheets of the drop-downs moved inside stay fixed to the screen */
.pstick.is-shown { transform: none; visibility: visible; transition: transform .18s ease; }
.pstick[data-active="compliance"] { --pv: #2563eb; }
.pstick[data-active="prospect"] { --pv: var(--gold); }
.pstick[data-active="network"] { --pv: #0891b2; }
.pstick__inner { height: 100%; display: flex; align-items: stretch; justify-content: space-between; gap: 12px; }
/* folder tabs, as on the page: they stand on the coloured line at the bottom of the bar, the open one comes forward over it */
.pstick__views { display: flex; align-items: flex-end; gap: 4px; min-width: 0; padding: 0 4px; }
.pstick__tab { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--border); border-bottom: 0;
  border-radius: 10px 10px 0 0; background: var(--surface-2); color: var(--muted); font: inherit; font-weight: 650; font-size: .84rem; cursor: pointer;
  white-space: nowrap; transition: background .15s, color .15s; }
.pstick__tab[data-pview="all"] { --tc: var(--accent); }
.pstick__tab[data-pview="compliance"] { --tc: #2563eb; }
.pstick__tab[data-pview="prospect"] { --tc: var(--gold); }
.pstick__tab[data-pview="network"] { --tc: #0891b2; }
.pstick__tab .icon { width: 16px; height: 16px; color: var(--tc); }
.pstick__tab small { font-weight: 700; font-size: .7rem; padding: 1px 6px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.pstick__tab:hover { color: var(--text); background: var(--surface); }
.pstick__tab.is-on { z-index: 1; margin-bottom: -2px; padding-top: 9px; padding-bottom: 9px; border: 2px solid var(--tc); border-bottom: 0; color: var(--tc);
  background: color-mix(in srgb, var(--tc) 8%, var(--bg)); box-shadow: 0 -6px 14px -10px color-mix(in srgb, var(--tc) 60%, transparent); }
.pstick__tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: color-mix(in srgb, var(--tc) 8%, var(--bg)); }
.pstick__tab.is-on small { background: var(--tc); color: #fff; }
.pstick__actions { display: flex; flex: none; align-items: center; }
.pstick__actions .phead__actions { flex-wrap: nowrap; gap: 6px; }
.pstick .dropdown__menu--form { max-height: calc(100vh - var(--topbar-h) - 80px); overflow: auto; }
/* the section menu and the section anchors leave room for the bar */
.has-pstick .toc { top: calc(var(--topbar-h) + 54px); }
@media (min-width: 1100px) { .has-pstick .toc { top: calc(var(--topbar-h) + 74px); max-height: calc(100vh - 154px); } }
.pbody .sec { scroll-margin-top: calc(var(--topbar-h) + 124px); }
/* not enough room (set by profile.js after measuring, whatever the language): actions as icons only first (fit-1),
   then the views as icon + count (fit-2) */
.pstick.fit-1 .phead__actions > .btn, .pstick.fit-1 .phead__actions > details > summary.btn { font-size: 0; gap: 0; padding: 8px 9px; }
.pstick.fit-1 .phead__actions > .btn .icon, .pstick.fit-1 .phead__actions > details > summary.btn .icon { width: 18px; height: 18px; }
.pstick.fit-2 .pstick__tab span { display: none; }
.pstick.fit-2 .pstick__tab { padding: 7px 9px; gap: 5px; }
.pstick.fit-2 .pstick__tab.is-on { padding: 9px 8px; }
@media (max-width: 560px) {
  .pstick[class] .pstick__inner { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .pstick[class] .pstick__views { gap: 2px; padding: 0; }
  .pstick[class] .pstick__tab { padding: 7px 5px; gap: 2px; border-radius: 8px 8px 0 0; }
  .pstick[class] .pstick__tab.is-on { padding: 9px 4px; }
  .pstick[class] .pstick__tab .icon { width: 15px; height: 15px; }
  .pstick[class] .pstick__tab small { padding: 1px 4px; font-size: .66rem; }
  .pstick[class] .pstick__actions .phead__actions { gap: 3px; }
  .pstick[class] .pstick__actions .phead__actions > .btn, .pstick[class] .pstick__actions .phead__actions > details > summary.btn { padding: 7px 6px; }
  .pstick[class] .pstick__actions .phead__actions > .btn .icon, .pstick[class] .pstick__actions .phead__actions > details > summary.btn .icon { width: 17px; height: 17px; }
}
@media print { .pstick { display: none; } }
/* plan on quotation: the address on one line in the card's bottom padding, so the button stays aligned with the others */
.plan__cta { position: relative; display: flex; flex-direction: column; }
.plan__cta .btn .icon { width: 1em; height: 1em; }   /* same height as the other plans' buttons (text only) */
.plan__mail { position: absolute; left: 0; right: 0; top: calc(100% + 3px); margin: 0; text-align: center; font-size: .76rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Dialog (Enterprise request…) ---------- */
.modal { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .5); overflow: auto; }
.modal::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .16s ease; }
.modal__box { position: relative; padding: 24px 24px 20px; gap: 14px; }
.modal__head { display: flex; align-items: center; gap: 14px; padding-right: 44px; }
.modal__mark { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #5546e8 55%, var(--accent-2) 140%); box-shadow: 0 10px 26px -12px rgba(108,92,255,.8); }
.modal__mark svg { width: 32px; height: 32px; }
.modal__eyebrow { display: block; margin-bottom: 3px; font-size: .72rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.modal__title { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 3.2vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--text) 40%, #5546e8 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal__box p { margin: 0; }
.modal__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--text-2);
  font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal__x:hover { background: var(--surface-3); color: var(--text); }
.modal__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.modal__go small { flex: 1 1 100%; }
@media (max-width: 560px) {
  /* phones: a sheet from the bottom of the screen */
  .modal { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .modal__box { padding: 20px 16px 16px; }
  .modal__mark { width: 44px; height: 44px; border-radius: 12px; }
  .modal__mark svg { width: 27px; height: 27px; }
    .modal__go .btn { flex: 1 1 auto; justify-content: center; }
}
/* pricing: confirmation before going down to the free plan, under the button */
.plan__ask { display: grid; gap: 8px; }
.plan__ask .ask__confirm:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.plan__ask .ask__confirm > .small { flex: 1 1 100%; }
.plan--lower:has(.ask__confirm:not([hidden])) { opacity: 1; filter: none; }   /* the question is read in full colour */

/* LCB-FT read-only (plan without the module, records kept): no form that would change data, no "new file" */
.lcb-ro form[method="post"] button, .lcb-ro form[method="post"] [type="submit"], .lcb-ro a[href$="/conformite/dossiers/nouveau"], .lcb-ro [data-ro-hide] { display: none !important; }
/* the data stays readable in the forms, greyed and locked (app.js disables the fields) */
.lcb-ro form[method="post"] :is(input, select, textarea):disabled { opacity: .75; cursor: not-allowed; }
.lcb-ro-note { margin: 0 0 12px; }
.lcb-ro .sticky-save { display: none !important; }   /* "save at any time" bar: nothing to save */
.lcb-ro .card:has(> [data-ro-hide]):not(:has(> :not([data-ro-hide]))) { display: none !important; }   /* a card holding only an "add" panel */

/* Members' choice before a plan with fewer seats */
.seats__table td:not(:first-child), .seats__table th:not(:first-child) { text-align: center; width: 120px; }
.seats__opt { display: inline-flex; justify-content: center; padding: 6px; cursor: pointer; }
.seats__opt input { width: 18px; height: 18px; accent-color: var(--accent); }
.seats__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.seats__count { font-weight: 650; margin-right: auto; }
.seats__count.is-over, .seats__err { color: var(--danger); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 680px) { .seats__table td:not(:first-child) { width: auto; text-align: right; } }
/* plan change planned at the renewal */
.plan__until { margin: 0 0 6px; text-align: center; }
.plan__planned { opacity: .85; }
.plan-change__go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.plan-change__go form { margin: 0; }
