:root {
  --ink: #0d1622;
  --ink-soft: #33404f;
  --muted: #69788c;
  --line: #e7ebf2;
  --line-strong: #d6dde8;
  --canvas: #f7f6fb;
  --paper: #ffffff;
  --brand: #6b46e0;
  --brand-soft: #efeafc;
  --accent: #6b46e0;
  --violet-950: #181528;
  --violet-900: #241f3c;
  --violet-700: #5a37c9;
  --violet-600: #6b46e0;
  --violet-100: #efeafc;
  --violet-50: #f6f3fe;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcf5e3;
  --green-50: #eefbf2;
  --amber-700: #b45309;
  --amber-100: #fdefd2;
  --red-700: #dc2626;
  --red-100: #fce9e9;
  --blue-100: #e8f2ff;
  --shadow-sm: 0 8px 24px rgba(13, 22, 34, .06);
  --shadow-md: 0 22px 58px rgba(13, 22, 34, .11);
  --shadow-pop: 0 18px 50px rgba(107, 70, 224, .20);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --sidebar: 260px;
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --font-data: "Bahnschrift", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(14, 125, 90, .28);
  outline-offset: 3px;
}

.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -.04em;
}
.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--violet-600);
  box-shadow: 0 10px 24px rgba(107, 70, 224, .28);
  overflow: hidden;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 99px;
  background: rgba(255,255,255,.92);
  transform: rotate(-34deg);
}
.brand-mark::before { width: 8px; height: 20px; left: 10px; top: 14px; }
.brand-mark::after { width: 8px; height: 28px; left: 20px; top: 7px; }
.brand-name strong { color: var(--brand); font-weight: 790; }
.brand-name small {
  display: block;
  margin-top: -3px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #b3cabf; box-shadow: var(--shadow-sm); }
.btn-primary {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(13, 22, 34, .16);
}
.btn-primary:hover { border-color: var(--brand); background: var(--brand); box-shadow: var(--shadow-pop); }
.btn-green { color: #fff; border-color: var(--green-600); background: var(--green-600); }
.btn-danger { color: var(--red-700); border-color: #f1bec5; background: #fffafb; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 12px; border-radius: 10px; }
.btn-icon { width: 42px; padding: 0; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f0eef4;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-100); color: var(--green-700); }
.badge-violet { background: var(--violet-100); color: var(--violet-700); }
.badge-amber { background: var(--amber-100); color: var(--amber-700); }
.badge-red { background: var(--red-100); color: var(--red-700); }
.badge-quiet::before { display: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-700);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 9px; background: var(--green-500); }
.page-title {
  margin: 4px 0 3px;
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 780;
  letter-spacing: -.045em;
}
.page-subtitle { margin: 0; max-width: 740px; color: var(--muted); font-size: 14px; }
.section-title { margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -.025em; }
.section-title-space { margin: 9px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.data { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-44 { margin-top: 44px; }
.mt-64 { margin-top: 64px; }
.mb-18 { margin-bottom: 18px; }
.mb-24 { margin-bottom: 24px; }
.center-text { text-align: center; }
.center-copy { margin-left: auto !important; margin-right: auto !important; text-align: center; }
.page-title-small { font-size: clamp(32px, 4vw, 50px); }
.small-value { font-size: 17px !important; }
.code-block { margin: 22px 0 0; color: #d2e6db; font: 500 12px/1.85 var(--font-data); white-space: pre-wrap; }

/* Authentication */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(520px, .95fr);
  background: #fff;
}
.auth-story {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 42px clamp(34px, 6vw, 92px);
  color: white;
  background: var(--violet-950);
  overflow: hidden;
}
.auth-story::after { content: ""; position: absolute; width: 440px; height: 440px; right: -190px; bottom: -210px; border: 68px solid rgba(22,185,135,.2); border-radius: 50%; }
.auth-story .brand { color: white; }
.auth-story .brand-name small { color: #8ba0bd; }
.auth-message { position: relative; z-index: 1; max-width: 630px; margin: auto 0; }
.auth-message h1 { margin: 17px 0; font-family: var(--font-display); font-size: clamp(48px, 6vw, 80px); line-height: .97; letter-spacing: -.065em; }
.auth-message p { max-width: 540px; color: #bcd6c9; font-size: 16px; }
.auth-proof { display: flex; gap: 30px; margin-top: 34px; }
.auth-proof b { display: block; font: 750 22px var(--font-data); }
.auth-proof small { color: #9db8ac; font-size: 10px; }
.auth-form-wrap { display: grid; place-items: center; padding: 34px; background: var(--canvas); }
.auth-card { width: min(470px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.auth-card h2 { margin: 14px 0 6px; font-family: var(--font-display); font-size: 31px; letter-spacing: -.045em; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.auth-separator { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 10px; }
.auth-separator::before, .auth-separator::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-footer { margin-top: 18px; color: var(--muted); font-size: 10px; text-align: center; }

/* Launchpad */
.launch {
  min-height: 100vh;
  padding: 34px;
  background:
    radial-gradient(circle at 12% 10%, rgba(14,125,90,.11), transparent 30%),
    radial-gradient(circle at 88% 88%, rgba(22,185,135,.12), transparent 28%),
    var(--canvas);
}
.launch-nav { max-width: 1220px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.launch-main { max-width: 1220px; margin: 76px auto 0; }
.launch-copy { max-width: 870px; }
.launch-copy h1 {
  margin: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 86px);
  line-height: .96;
  font-weight: 800;
  letter-spacing: -.065em;
}
.launch-copy h1 span { color: var(--violet-600); }
.launch-copy p { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: 18px; }
.launch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.launch-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.launch-card:hover { transform: translateY(-5px); border-color: #cbc0df; box-shadow: var(--shadow-md); }
.launch-card .num { color: var(--muted); font-family: var(--font-data); font-size: 11px; letter-spacing: .12em; }
.launch-card h2 { margin: auto 0 7px; font-family: var(--font-display); font-size: 23px; letter-spacing: -.035em; }
.launch-card p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.launch-card .arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); transition: color .18s, background .18s; }
.launch-card:hover .arrow { color: #fff; background: var(--brand); }
.launch-card.is-green .arrow { background: var(--green-600); }
.launch-card.is-dark { color: white; border-color: transparent; background: var(--violet-950); }
.launch-card.is-dark p, .launch-card.is-dark .num { color: #bdb3d0; }
.launch-card.is-dark::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -68px;
  top: -60px;
  border: 28px solid rgba(22,185,135,.22);
  border-radius: 50%;
}

/* App shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  color: var(--ink-soft);
  background: var(--paper);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.sidebar .brand { padding: 0 8px 22px; color: var(--ink); }
.sidebar .brand-name strong { color: var(--brand); }
.sidebar .brand-name small { color: var(--muted); }
.workspace-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}
.workspace-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 10px; color: var(--brand); background: var(--brand-soft); font-weight: 850; font-size: 11px; }
.workspace-card b { display: block; color: var(--ink); font-size: 12px; }
.workspace-card small { display: block; color: var(--muted); font-size: 10px; }
.nav-label { margin: 15px 10px 7px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.nav-list { display: grid; gap: 2px; }
.nav-link {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 650;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.nav-link:hover { color: var(--ink); background: #eef2f9; }
.nav-link.is-active { color: var(--brand); background: var(--brand-soft); font-weight: 750; }
.nav-link.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--brand); }
.nav-link .nav-count { margin-left: auto; min-width: 21px; padding: 2px 6px; border-radius: 999px; color: #fff; background: var(--red-700); font: 700 10px var(--font-data); text-align: center; }
.sidebar-bottom { margin-top: auto; padding-top: 18px; }
.credit-card { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--canvas); }
.credit-card small { color: var(--muted); font-size: 10px; }
.credit-card strong { display: block; margin: 4px 0 9px; color: var(--ink); font: 700 23px var(--font-data); }
.credit-line { height: 5px; overflow: hidden; border-radius: 9px; background: var(--line); }
.credit-line i { display: block; width: 68%; height: 100%; background: var(--brand); }
.app-main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(232,227,240,.86);
  background: rgba(247,246,251,.88);
  backdrop-filter: blur(18px);
}
.menu-toggle { display: none; }
.breadcrumbs { color: var(--muted); font-size: 12px; }
.breadcrumbs strong { color: var(--ink); }
.top-search { position: relative; width: min(340px, 34vw); margin-left: auto; }
.top-search input { width: 100%; height: 40px; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.top-search kbd { position: absolute; right: 9px; top: 10px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--canvas); font-size: 9px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 850; }
.page { display: none; padding: 32px 34px 56px; animation: page-in .28s ease both; }
.page.is-active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* Cards and layout */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .65fr); gap: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
.card-head { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-family: var(--font-display); font-size: 16px; letter-spacing: -.025em; }
.card-head .push { margin-left: auto; }
.card-body { padding: 18px 20px; }
.card-dark { color: #fff; border: 0; background: var(--violet-950); box-shadow: var(--shadow-md); }
.card-dark .muted { color: #bcb2cd; }
.kpi { position: relative; min-height: 142px; padding: 18px; overflow: hidden; }
.kpi::after { content: ""; position: absolute; width: 80px; height: 80px; right: -35px; top: -30px; border: 16px solid var(--violet-100); border-radius: 50%; opacity: .7; }
.kpi.is-green::after { border-color: var(--green-100); }
.kpi-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.kpi-value { display: block; margin: 16px 0 7px; font: 720 31px/1 var(--font-data); letter-spacing: -.04em; }
.kpi-trend { display: flex; align-items: center; gap: 7px; color: var(--green-700); font-size: 10px; font-weight: 750; }
.kpi-trend.is-down { color: var(--red-700); }
.trust-hero { position: relative; min-height: 248px; padding: 28px; overflow: hidden; }
.trust-hero::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -80px;
  top: -120px;
  border: 46px solid rgba(22,185,135,.14);
  border-radius: 50%;
}
.trust-hero h2 { max-width: 510px; margin: 10px 0 8px; font-family: var(--font-display); font-size: 30px; line-height: 1.08; letter-spacing: -.045em; }
.trust-hero p { max-width: 540px; color: #bcd6c9; font-size: 13px; }
.trust-stats { display: flex; gap: 28px; margin-top: 28px; }
.trust-stats b { display: block; font: 700 21px var(--font-data); }
.trust-stats small { color: #a99ebd; font-size: 10px; }

/* Trust rail: signature element */
.trust-rail { position: relative; display: grid; gap: 0; padding-left: 30px; }
.trust-rail::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.rail-item { position: relative; min-height: 68px; padding: 4px 0 14px 14px; }
.rail-item::before { content: ""; position: absolute; left: -27px; top: 8px; width: 12px; height: 12px; border: 3px solid var(--paper); border-radius: 50%; background: var(--violet-600); box-shadow: 0 0 0 2px var(--violet-100); }
.rail-item.is-ok::before { background: var(--green-500); box-shadow: 0 0 0 2px var(--green-100); }
.rail-item.is-warn::before { background: #d99a2d; box-shadow: 0 0 0 2px var(--amber-100); }
.rail-item b { display: block; font-size: 12px; }
.rail-item p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.rail-time { float: right; color: var(--muted); font: 600 10px var(--font-data); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 42px; padding: 0 16px; color: var(--muted); background: #faf9fc; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { height: 58px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--violet-50); }
.subject { display: flex; align-items: center; gap: 10px; }
.subject-avatar { width: 31px; height: 31px; display: grid; place-items: center; flex: none; border-radius: 9px; color: var(--violet-700); background: var(--violet-100); font-size: 10px; font-weight: 850; }
.subject b { display: block; font-size: 12px; }
.subject small { display: block; color: var(--muted); font-size: 10px; }
.score-pill { min-width: 44px; display: inline-flex; justify-content: center; padding: 5px 8px; border-radius: 9px; background: var(--green-100); color: var(--green-700); font: 800 12px var(--font-data); }
.score-pill.is-warn { background: var(--amber-100); color: var(--amber-700); }
.score-pill.is-risk { background: var(--red-100); color: var(--red-700); }
.filterbar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-search { min-width: 280px; height: 40px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--paper); }
.chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.chip.is-active { color: var(--violet-700); border-color: #cbbdf4; background: var(--violet-50); }
.filterbar .push { margin-left: auto; }

/* Charts */
.bar-chart { height: 210px; display: flex; align-items: flex-end; gap: 12px; padding: 26px 10px 0; }
.bar-column { flex: 1; min-width: 18px; text-align: center; }
.bar-column i { display: block; width: 100%; height: var(--h, 50%); min-height: 8px; border-radius: 8px 8px 3px 3px; background: var(--line-strong); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.bar-column:hover i { background: var(--violet-100); }
.bar-column.is-current i { background: var(--brand); }
.bar-column small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.split-legend { display: flex; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.split-legend span { display: flex; align-items: center; gap: 6px; }
.split-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-600); }
.split-legend span:last-child i { background: var(--green-500); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 750; }
.field small { color: var(--muted); font-size: 10px; }
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.textarea { min-height: 92px; padding-top: 11px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--violet-600); box-shadow: 0 0 0 4px rgba(14,125,90,.1); }
.input-group { display: flex; }
.input-group .input { border-radius: 11px 0 0 11px; }
.input-group .btn { border-radius: 0 11px 11px 0; }
.option-list { display: grid; gap: 9px; }
.option-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}
.option-row.is-soon { opacity: .58; }
.option-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--violet-700); background: var(--violet-100); }
.option-row b { display: block; font-size: 12px; }
.option-row small { display: block; color: var(--muted); font-size: 10px; }
.option-price { color: var(--ink-soft); font: 700 11px var(--font-data); }
.switch { position: relative; width: 42px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: #d9d3e2; cursor: pointer; transition: background .18s ease; }
.switch::after { content: ""; position: absolute; width: 20px; height: 20px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .18s ease; }
.switch.is-on { background: var(--violet-600); }
.switch.is-on::after { transform: translateX(18px); }
.switch.is-locked { background: var(--green-500); cursor: default; }
.switch.is-locked::after { transform: translateX(18px); }
.cost-dock { position: sticky; bottom: 18px; z-index: 8; margin-top: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 16px; border: 1px solid #d8cef2; border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-md); backdrop-filter: blur(14px); }
.cost-total b { display: block; color: var(--violet-700); font: 780 25px var(--font-data); }
.cost-total small { color: var(--muted); font-size: 10px; }
.cost-dock .push { margin-left: auto; }

/* Score dossier */
.score-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; }
.score-ring {
  --score: 89;
  position: relative;
  width: 190px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--green-500) calc(var(--score) * 1%), #ece8f2 0);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 20px 45px rgba(14,157,116,.14);
}
.score-ring-small { width: 156px; }
.score-ring-small::before { width: 120px; }
.score-ring-small .score-number { font-size: 40px; }
[data-score="94"] { --score: 94; }
[data-progress="98"] { --value: 98%; }
[data-progress="96"] { --value: 96%; }
[data-progress="95"] { --value: 95%; }
[data-progress="92"] { --value: 92%; }
[data-progress="91"] { --value: 91%; }
[data-height="82"] { --h: 82%; }
[data-height="73"] { --h: 73%; }
[data-height="68"] { --h: 68%; }
[data-height="54"] { --h: 54%; }
[data-height="42"] { --h: 42%; }
[data-height="24"] { --h: 24%; }
[data-height="18"] { --h: 18%; }
.score-ring::before { content: ""; width: 148px; aspect-ratio: 1; border-radius: 50%; background: white; box-shadow: inset 0 0 0 1px var(--line); }
.score-number { position: absolute; font: 800 49px/.9 var(--font-data); letter-spacing: -.06em; }
.score-number small { display: block; margin-top: 9px; color: var(--muted); font: 700 9px var(--font-body); letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.verdict-title { margin: 6px 0; font-family: var(--font-display); font-size: 28px; letter-spacing: -.045em; }
.verdict-copy { max-width: 540px; margin: 0; color: var(--muted); font-size: 13px; }
.solvency-box { margin-top: 16px; padding: 14px; border: 1px solid #bde9db; border-radius: 13px; background: var(--green-50); color: var(--green-700); font-size: 12px; }
.category-list { display: grid; gap: 14px; margin-top: 22px; }
.category-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 34px; align-items: center; gap: 12px; font-size: 11px; }
.progress { height: 8px; overflow: hidden; border-radius: 99px; background: #ece8f2; }
.progress i { display: block; width: var(--value, 50%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet-600), var(--green-500)); }
.category-row b { font: 750 11px var(--font-data); text-align: right; }
.tablist { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #faf9fc; overflow-x: auto; }
.tab { min-height: 36px; padding: 0 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.tab.is-active { color: var(--violet-700); background: #fff; box-shadow: var(--shadow-sm); }
.tab-panel { display: none; padding-top: 18px; }
.tab-panel.is-active { display: block; }
.finding { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.finding:last-child { border-bottom: 0; }
.finding-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--green-700); background: var(--green-100); font-weight: 900; }
.finding.is-warn .finding-icon { color: var(--amber-700); background: var(--amber-100); }
.finding.is-risk .finding-icon { color: var(--red-700); background: var(--red-100); }
.finding b { display: block; font-size: 12px; }
.finding p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.finding time { color: var(--muted); font: 600 9px var(--font-data); }

/* Wizard */
.wizard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 34vw) minmax(0, 1fr);
  background: #fff;
}
.wizard-aside {
  position: relative;
  min-height: 100vh;
  padding: 38px clamp(28px, 5vw, 74px);
  color: #fff;
  background: var(--violet-950);
  overflow: hidden;
}
.wizard-aside::after { content: ""; position: absolute; width: 360px; height: 360px; left: -150px; bottom: -180px; border: 54px solid rgba(22,185,135,.18); border-radius: 50%; }
.wizard-aside .brand { color: white; }
.wizard-aside .brand-name small { color: #a99ebd; }
.wizard-promise { position: relative; z-index: 1; margin-top: clamp(70px, 15vh, 160px); }
.wizard-promise .eyebrow { color: #75e2bd; }
.wizard-promise h1 { max-width: 520px; margin: 16px 0; font-family: var(--font-display); font-size: clamp(35px, 4vw, 57px); line-height: 1; letter-spacing: -.055em; }
.wizard-promise p { max-width: 470px; color: #c4bad3; }
.wizard-assurances { display: grid; gap: 10px; margin-top: 32px; }
.assurance { display: flex; align-items: center; gap: 10px; color: #e5dff0; font-size: 12px; }
.assurance i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #76e5c0; background: rgba(22,185,135,.14); font-style: normal; font-weight: 850; }
.wizard-main { min-width: 0; display: flex; flex-direction: column; }
.wizard-top { min-height: 74px; display: flex; align-items: center; padding: 0 clamp(24px, 5vw, 76px); border-bottom: 1px solid var(--line); }
.wizard-top .agency { font-size: 12px; font-weight: 750; }
.wizard-top .secure { margin-left: auto; color: var(--green-700); font-size: 11px; font-weight: 750; }
.wizard-progress { height: 4px; background: #eeeaf3; }
.wizard-progress i { display: block; width: var(--wizard-progress, 14.28%); height: 100%; background: var(--green-500); transition: width .35s ease; }
.wizard-progress i.step-1 { width: 12.5%; }
.wizard-progress i.step-2 { width: 25%; }
.wizard-progress i.step-3 { width: 37.5%; }
.wizard-progress i.step-4 { width: 50%; }
.wizard-progress i.step-5 { width: 62.5%; }
.wizard-progress i.step-6 { width: 75%; }
.wizard-progress i.step-7 { width: 87.5%; }
.wizard-progress i.step-8 { width: 100%; }
.wizard-stage { width: min(740px, calc(100% - 48px)); margin: auto; padding: 46px 0; }
.wizard-step { display: none; animation: page-in .28s ease both; }
.wizard-step.is-active { display: block; }
.step-kicker { color: var(--violet-700); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.wizard-step h2 { max-width: 650px; margin: 8px 0 10px; font-family: var(--font-display); font-size: clamp(31px, 4vw, 46px); line-height: 1.06; letter-spacing: -.05em; }
.wizard-step > p { max-width: 620px; margin: 0 0 28px; color: var(--muted); }
.wizard-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.consent-list { display: grid; gap: 11px; }
.consent-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.consent-row input { width: 18px; height: 18px; accent-color: var(--violet-600); }
.consent-row b { display: block; font-size: 12px; }
.consent-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.doc-list { display: grid; gap: 10px; }
.doc-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 13px; background: #fff; }
.doc-card.is-done { border-style: solid; border-color: #bee8da; background: var(--green-50); }
.doc-card b { display: block; font-size: 12px; }
.doc-card small { color: var(--muted); font-size: 10px; }
.doc-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--violet-700); background: var(--violet-100); font-weight: 850; }
.identity-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.choice-card { min-height: 190px; padding: 20px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.choice-card:hover, .choice-card.is-selected { transform: translateY(-2px); border-color: #bfaef0; box-shadow: var(--shadow-md); }
.choice-visual { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 18px; color: var(--violet-700); background: var(--violet-100); font: 800 17px var(--font-data); }
.choice-card.is-green .choice-visual { color: var(--green-700); background: var(--green-100); }
.choice-card b { display: block; font-size: 14px; }
.choice-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.wizard-actions { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.wizard-actions .push { margin-left: auto; }
.analysis-orbit { position: relative; width: 190px; height: 190px; display: grid; place-items: center; margin: 16px auto 30px; }
.analysis-orbit::before, .analysis-orbit::after { content: ""; position: absolute; inset: 0; border: 1px solid #d8d0e8; border-radius: 50%; }
.analysis-orbit::after { inset: 20px; border-color: #b9efdc; }
.analysis-orbit i { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--violet-600); font: 800 20px var(--font-data); box-shadow: var(--shadow-pop); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); box-shadow: 0 22px 60px rgba(14,125,90,.33); } }

/* Admin */
.admin-shell .sidebar { background: #151124; }
.admin-shell .brand-mark { background: var(--violet-700); }
.privacy-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #c9eadf; border-radius: 13px; background: var(--green-50); color: var(--green-700); font-size: 11px; }
.privacy-banner b { color: var(--ink); }
.health-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.health-item { padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.health-item header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.health-item b { font-size: 12px; }
.health-item p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.health-item .latency { font: 700 10px var(--font-data); color: var(--green-700); }
.price-line { display: grid; grid-template-columns: minmax(180px, 1fr) 130px 120px 90px; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.price-line:last-child { border-bottom: 0; }
.price-line b { font-size: 12px; }
.price-line small { display: block; color: var(--muted); font-size: 10px; }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.metric-strip > div { padding: 14px; background: #fff; }
.metric-strip small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.metric-strip b { display: block; margin-top: 3px; font: 700 18px var(--font-data); }

/* Vision */
.vision { min-height: 100vh; background: #f8f7fb; }
.vision-nav { position: sticky; top: 0; z-index: 10; height: 76px; display: flex; align-items: center; padding: 0 5vw; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.vision-nav .nav-actions { margin-left: auto; display: flex; gap: 9px; }
.vision-main { width: min(1180px, 90vw); margin: 0 auto; padding: 60px 0 100px; }
.vision-hero { max-width: 820px; margin-bottom: 44px; }
.vision-hero h1 { margin: 14px 0; font-family: var(--font-display); font-size: clamp(45px, 7vw, 78px); line-height: .98; letter-spacing: -.065em; }
.vision-hero p { max-width: 700px; color: var(--muted); font-size: 17px; }
.solvency-card { position: relative; min-height: 420px; padding: 32px; overflow: hidden; color: white; border-radius: var(--radius-xl); background: var(--violet-950); box-shadow: var(--shadow-md); }
.solvency-card::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; bottom: -160px; border: 55px solid rgba(22,185,135,.2); border-radius: 50%; }
.solvency-card .card-logo { font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.solvency-card .card-status { margin-top: 74px; color: #77e5c0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.solvency-card h2 { margin: 8px 0; font: 760 48px/1 var(--font-display); letter-spacing: -.055em; }
.solvency-card p { color: #beb4ce; }
.solvency-id { position: absolute; left: 32px; bottom: 28px; color: #9db8ac; font: 600 12px var(--font-data); letter-spacing: .11em; }
.qr { position: absolute; z-index: 1; right: 32px; top: 32px; width: 112px; height: 112px; padding: 10px; border-radius: 16px; background: white; }
.qr-grid { width: 100%; height: 100%; background: repeating-conic-gradient(#0a2e22 0 25%, transparent 0 50%) 0 0/18px 18px; }

/* Toast */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 99; max-width: 360px; padding: 14px 16px; border-radius: 13px; color: #fff; background: var(--violet-950); box-shadow: var(--shadow-md); transform: translateY(30px); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast b { display: block; font-size: 12px; }
.toast span { color: #bcd6c9; font-size: 10px; }

@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .launch-grid { grid-template-columns: repeat(2, 1fr); }
  .health-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root { --sidebar: 250px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-105%); transition: transform .25s ease; }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); box-shadow: 20px 0 60px rgba(20,11,39,.25); }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 18px; }
  .page { padding: 26px 20px 48px; }
  .grid-main, .score-layout { grid-template-columns: 1fr; }
  .wizard-shell { grid-template-columns: 1fr; }
  .wizard-aside { min-height: auto; padding: 22px 24px 28px; }
  .wizard-promise { margin-top: 36px; }
  .wizard-promise h1 { font-size: 38px; }
  .wizard-assurances { display: none; }
  .wizard-main { min-height: 70vh; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-story { min-height: 380px; padding: 28px 24px 46px; }
  .auth-message { margin-top: 62px; }
  .auth-message h1 { font-size: 46px; }
}

@media (max-width: 640px) {
  .launch { padding: 22px 18px; }
  .launch-main { margin-top: 52px; }
  .launch-copy h1 { font-size: 46px; }
  .launch-grid, .grid-2, .grid-3, .grid-4, .form-grid, .identity-choice, .health-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .top-search { display: none; }
  .kpi { min-height: 120px; }
  .trust-stats { flex-wrap: wrap; }
  .filter-search { min-width: 100%; width: 100%; }
  .filterbar .push { margin-left: 0; }
  .option-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .option-price { grid-column: 2; }
  .cost-dock { align-items: flex-start; flex-wrap: wrap; }
  .cost-dock .push { margin-left: 0; width: 100%; }
  .cost-dock .btn { width: 100%; }
  .category-row { grid-template-columns: 1fr 34px; }
  .category-row .progress { grid-column: 1 / -1; grid-row: 2; }
  .wizard-stage { width: min(100% - 32px, 740px); padding: 34px 0; }
  .wizard-top { padding: 0 18px; }
  .wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .wizard-actions .push { margin-left: 0; }
  .wizard-actions .btn { width: 100%; }
  .price-line { grid-template-columns: 1fr 100px; }
  .price-line > :nth-child(3), .price-line > :nth-child(4) { grid-column: auto; }
  .metric-strip { grid-template-columns: 1fr; }
  .solvency-card h2 { font-size: 38px; }
  .qr { width: 84px; height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Abonnement & quotas (intégration v2 — 2026-09-06) */
.quota-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.quota-num{font:780 26px/1 var(--font-data);letter-spacing:-.04em}
.tr-right{text-align:right}
.q-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;color:var(--muted);font-size:11px;flex-wrap:wrap}
.q-over{color:var(--ink-soft);font-weight:750}
.q-over b{color:var(--violet-700);font-family:var(--font-data)}
.q-warn{color:var(--amber-700)}
.credit-card .q{display:flex;justify-content:space-between;gap:8px;margin:7px 0 3px;color:#fff;font:700 12px var(--font-data)}
.credit-card .q span{color:#bdf5e2}
.credit-card .q.bank span{color:#a9d0ff}
.kpi.is-blue::after{border-color:var(--blue-100)}
.page-actions .push{margin-left:auto}

/* ── Surveillance AML (LOT 5 monitoring) ─────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-grid .card-pad { padding: 16px 18px; }
.stat-value { display: block; margin-top: 4px; font: 800 30px/1.05 var(--font-data); color: var(--ink); }
.aml-empty { padding: 32px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 12px; color: var(--muted); font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td small { display: block; margin-top: 2px; font-size: 11px; }
.aml-decide { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.select-sm, .input-sm { min-height: 34px; padding: 0 9px; font-size: 12px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); }
.input-sm { min-width: 150px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; } }

/* ═══ ID Nixa — composants « maquette » (proto validé blanc/noir/bleu) ═══════════════ */
.nx-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.nx-stat{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-md);padding:15px 17px;box-shadow:var(--shadow-sm)}
.nx-stat .lbl{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:800;display:flex;align-items:center;gap:7px}
.nx-stat .dot{width:8px;height:8px;border-radius:50%}
.nx-stat .v{font-family:var(--font-display);font-size:28px;font-weight:770;margin-top:5px;line-height:1;color:var(--ink)}
.nx-stat .sub{font-size:11.5px;color:var(--muted);margin-top:3px}
.nx-grid2{display:grid;grid-template-columns:1.6fr 1fr;gap:18px}
.nx-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.nx-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden}
.nx-card-pad{padding:20px}
.nx-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.nx-title{font-family:var(--font-display);font-size:16px;font-weight:750;letter-spacing:-.02em;margin:0}
.nx-sec{font-family:var(--font-display);font-size:14px;font-weight:750;padding:14px 20px 6px;margin:0}
.nx-pill{font-size:11px;font-weight:800;padding:3px 9px;border-radius:999px;letter-spacing:.02em;display:inline-block}
.nx-pill.good{background:var(--green-100);color:var(--green-700)} .nx-pill.bad{background:var(--red-100);color:var(--red-700)}
.nx-pill.warn{background:var(--amber-100);color:var(--amber-700)} .nx-pill.mute{background:var(--canvas);color:var(--muted)}
.nx-pill.brand{background:var(--brand-soft);color:var(--brand)}
.nx-table{width:100%;border-collapse:collapse} .nx-tw{overflow-x:auto}
.nx-table thead th{text-align:left;padding:11px 20px;font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:800;background:var(--canvas);border-bottom:1px solid var(--line)}
.nx-table tbody td{padding:13px 20px;border-bottom:1px solid var(--line);vertical-align:middle}
.nx-table tbody tr:last-child td{border-bottom:0}
.nx-table tbody tr:hover{background:#fafbfe}
.nx-subj{display:flex;align-items:center;gap:11px}
.nx-sq{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-weight:800;font-size:12px;color:#fff;flex:none;background:var(--slate,#475569)}
.nx-subj b{font-weight:700}.nx-subj small{display:block;color:var(--muted);font-size:11.5px}
.nx-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px}
.nx-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.nx-badge.green{background:var(--green-100);color:var(--green-700)} .nx-badge.red{background:var(--red-100);color:var(--red-700)}
.nx-badge.amber{background:var(--amber-100);color:var(--amber-700)} .nx-badge.brand{background:var(--brand-soft);color:var(--brand)}
.nx-score{display:inline-flex;align-items:center;gap:8px}
.nx-score .bar{width:54px;height:6px;border-radius:4px;background:var(--line);overflow:hidden}
.nx-score .bar i{display:block;height:100%;border-radius:4px;background:var(--brand)}
.nx-link{color:var(--brand);font-weight:700;cursor:pointer}
.nx-gauge{width:130px;height:130px;border-radius:50%;flex:none;display:grid;place-items:center;position:relative}
.nx-gauge::before{content:"";position:absolute;inset:13px;border-radius:50%;background:var(--paper)}
.nx-gauge b{position:relative;font-family:var(--font-display);font-size:34px;font-weight:780;line-height:1}
.nx-gauge small{position:relative;display:block;text-align:center;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.06em}
.nx-chart{display:flex;align-items:flex-end;gap:12px;height:150px;padding:6px 4px 0}
.nx-chart .col{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;justify-content:flex-end;height:100%}
.nx-chart .bar{width:70%;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,var(--violet-600),var(--brand));min-height:5px}
.nx-chart .bar.mut{background:var(--line-strong)}
.nx-chart .cl{font-size:10.5px;color:var(--muted);font-weight:700}
.nx-rail{display:flex;flex-direction:column;gap:9px}
.nx-rail-item{display:flex;gap:11px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;align-items:flex-start}
.nx-rail-ic{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;font-weight:800;font-size:13px;color:#fff;flex:none}
.nx-rail-item b{font-size:13.5px}.nx-rail-item p{margin:2px 0 0;font-size:12px;color:var(--muted)}
.nx-kv{border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden}
.nx-kv .row{display:flex;justify-content:space-between;gap:14px;padding:11px 15px;border-bottom:1px solid var(--line);font-size:13px}
.nx-kv .row:last-child{border-bottom:0}.nx-kv .k{color:var(--muted)}
.nx-foot{display:flex;align-items:center;gap:9px;padding:15px 20px;border-top:1px solid var(--line);background:var(--canvas)}
.nx-foot .sp{flex:1}
.nx-opt{display:flex;align-items:center;gap:13px;padding:13px 16px;border:1px solid var(--line);border-radius:12px}
.nx-opt .ic{width:30px;height:30px;border-radius:8px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:800;font-size:12px;flex:none}
.nx-opt b{font-size:13.5px}.nx-opt small{display:block;color:var(--muted);font-size:11.5px}.nx-opt .pr{margin-left:auto;font-weight:800;font-size:13px}
.nx-type{border:1.5px solid var(--line-strong);border-radius:14px;padding:16px;cursor:pointer;background:var(--paper);display:flex;flex-direction:column;gap:6px;text-decoration:none;color:inherit}
.nx-type.on{border-color:var(--brand);background:var(--brand-soft)}
.nx-type .em{font-size:22px}.nx-type b{font-size:14px}.nx-type small{color:var(--muted);font-size:11.5px}
.nx-price{display:flex;align-items:baseline;gap:6px}.nx-price .n{font-family:var(--font-display);font-size:44px;font-weight:800;color:var(--brand)}
.nx-ck{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;margin:14px 0 0}
.nx-ck div{display:flex;gap:8px;font-size:13px;align-items:flex-start}.nx-ck .c{color:var(--brand);font-weight:800}
.nx-chips{display:flex;gap:8px;flex-wrap:wrap}
.nx-chip{padding:7px 13px;border-radius:999px;border:1px solid var(--line-strong);font-weight:700;font-size:12.5px;cursor:pointer;background:var(--paper);text-decoration:none;color:inherit;display:inline-block}
.nx-chip.on{background:var(--brand);border-color:var(--brand);color:#fff}
@media(max-width:900px){.nx-stats{grid-template-columns:repeat(2,1fr)}.nx-grid2,.nx-grid3{grid-template-columns:1fr}.nx-ck{grid-template-columns:1fr}}
/* nx-type sélectionnable par radio (sans JS, CSP-safe) */
.nx-type{position:relative}
.nx-type input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}
.nx-type:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}
.nx-typegrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
@media(max-width:820px){.nx-typegrid{grid-template-columns:1fr 1fr}}
