/* GX Analytics — design system unifié */
:root {
  --gx-red: #c8483d;
  --gx-red-dark: #aa372e;
  --gx-red-soft: #fff0ee;
  --gx-ink: #1f252a;
  --gx-ink-soft: #343c42;
  --gx-muted: #66717a;
  --gx-text-secondary: #66717a;
  --gx-text-soft: #5d6871;
  --gx-text-faint: #7a858d;
  --gx-data-label: #5a6670;
  --gx-data-value: #283037;
  --gx-bg: #eef1f3;
  --gx-panel: #fbfcfc;
  --gx-surface: #f5f7f8;
  --gx-surface-strong: #e9edef;
  --gx-line: #e3e7ea;
  --gx-line-strong: #d2d9de;
  --gx-grid: #edf0f2;
  --gx-track: #e7ebee;
  --gx-decorative: #edf0f2;
  --gx-topbar: rgba(238,241,243,.92);
  --gx-toast: rgba(255,255,255,.98);
  --gx-overlay: rgba(16,22,26,.62);
  --gx-green: #38885a;
  --gx-green-soft: #edf8f1;
  --gx-amber: #9b6a22;
  --gx-amber-soft: #fff7e8;
  --gx-radius-sm: 8px;
  --gx-radius-md: 12px;
  --gx-radius-lg: 18px;
  --gx-shadow-sm: 0 1px 2px rgba(21,27,31,.035), 0 8px 24px rgba(21,27,31,.045);
  --gx-shadow-md: 0 18px 46px rgba(21,27,31,.08);
  --sidebar: 264px;
}

[data-theme="dark"] {
  --gx-red: #e06a60;
  --gx-red-dark: #f08278;
  --gx-red-soft: rgba(224,106,96,.14);
  --gx-ink: #f2f5f6;
  --gx-ink-soft: #d7dde0;
  --gx-muted: #a5afb5;
  --gx-text-secondary: #a5afb5;
  --gx-text-soft: #b4bdc2;
  --gx-text-faint: #879299;
  --gx-data-label: #bac2c7;
  --gx-data-value: #edf1f3;
  --gx-bg: #171d21;
  --gx-panel: #20282d;
  --gx-surface: #263036;
  --gx-surface-strong: #2d383f;
  --gx-line: #344047;
  --gx-line-strong: #445159;
  --gx-grid: #303b41;
  --gx-track: #344047;
  --gx-decorative: #303b41;
  --gx-topbar: rgba(23,29,33,.92);
  --gx-toast: rgba(32,40,45,.98);
  --gx-overlay: rgba(0,0,0,.76);
  --gx-green: #72c99b;
  --gx-green-soft: rgba(114,201,155,.14);
  --gx-amber: #e0aa61;
  --gx-amber-soft: rgba(224,170,97,.12);
  --gx-shadow-sm: 0 1px 2px rgba(0,0,0,.18), 0 10px 28px rgba(0,0,0,.18);
  --gx-shadow-md: 0 24px 60px rgba(0,0,0,.30);
}

html { background: var(--gx-bg); }
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.72), transparent 34%),
    linear-gradient(145deg, #f3f5f6 0%, var(--gx-bg) 46%, #e7ebed 100%);
  color: var(--gx-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

body, button, input, select, textarea { font-weight: 400; }
strong, b { font-weight: 600; }
small { font-size: 14px; }
button, input, select, textarea { font-size: 14px; }
a { text-underline-offset: 3px; }

/* Typographie */
.brand-copy strong,
.page-title h1,
.auth-box h2,
.auth-brand-lockup h1,
.settings-section-head h2,
.card-head h2,
.site-card h3,
.settings-card h3,
.modal-head h2,
.empty-state h2,
.section-header h2,
.docs-title,
.docs-section-head h2,
.docs-main h3 { font-weight: 600; }

.brand-copy span,
.eyebrow,
.side-label,
.nav-item,
.user-info span,
.field label,
.btn,
.kpi-label,
.segment-tab,
.period-btn,
.badge,
.verification-status,
.dns-record-row > span,
.data-table th,
.site-meta,
.api-indicator { font-weight: 500; }

p,
.field small,
.kpi-sub,
.card-head p,
.settings-section-head p,
.site-domain,
.data-table td,
.bar-row,
.page-site-copy small,
.docs-main p,
.docs-main li { font-weight: 400; }

/* App shell */
.dashboard {
  grid-template-columns: var(--sidebar) minmax(0,1fr);
  background: var(--gx-bg);
}
.sidebar {
  width: var(--sidebar);
  padding: 20px 16px 18px;
  border-right: 1px solid var(--gx-line);
  background: var(--gx-panel);
  box-shadow: none;
}
.sidebar .brand {
  min-height: 68px;
  padding: 0 10px 18px;
  border-bottom: 1px solid var(--gx-line);
}
.brand { gap: 12px; }
.brand-logo,
.brand-symbol { border-radius: 10px; }
.brand-copy strong {
  font-size: 15px;
  letter-spacing: -.01em;
  text-transform: none;
}
.brand-copy span {
  margin-top: 2px;
  color: var(--gx-muted);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.side-section-head { margin-top: 16px; }
.side-label {
  padding: 12px 10px 8px;
  color: var(--gx-text-faint);
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: none;
}
.side-add {
  width: 32px;
  height: 32px;
  margin: 4px 6px 0 0;
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
  background: var(--gx-surface);
  color: var(--gx-ink);
  font-weight: 500;
}
.side-add:hover { background: var(--gx-red); border-color: var(--gx-red); color: #fff; }
.nav-list { gap: 4px; }
.nav-item {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--gx-text-secondary);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color .18s ease, color .18s ease;
}
.nav-item::before { display: none; }
.nav-item svg { width: 18px; height: 18px; opacity: .72; }
.nav-item:hover {
  background: var(--gx-surface);
  color: var(--gx-ink);
  transform: none;
}
.nav-item.is-active {
  background: var(--gx-red-soft);
  color: var(--gx-red-dark);
  font-weight: 600;
}
.nav-item.is-active svg { opacity: 1; }
.site-nav-shell,
.global-nav-list { border-color: var(--gx-line); }
.global-nav-list { margin-top: 12px; padding-top: 12px; }
.user-card {
  margin-top: 16px;
  padding: 16px 8px 0;
  border-color: var(--gx-line);
}
.user-avatar {
  border: 0;
  border-radius: 10px;
  background: var(--gx-red-soft);
  color: var(--gx-red-dark);
  font-weight: 600;
}
.user-info strong { font-size: 14px; }
.user-info span {
  margin-top: 2px;
  color: var(--gx-muted);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.logout-btn { border-radius: 8px; }

.main {
  padding: 0 clamp(22px,3.2vw,52px) 56px;
  background: var(--gx-bg);
}
.topbar {
  min-height: 104px;
  margin-bottom: 28px;
  border-bottom: 0;
  background: var(--gx-topbar);
  backdrop-filter: blur(16px);
}
.page-title .eyebrow {
  margin-bottom: 6px;
  color: var(--gx-muted);
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: none;
}
.page-title h1 {
  font-size: clamp(30px,3vw,44px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.page-site-identity {
  min-height: 62px;
  margin-top: 14px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--gx-line);
  border-radius: 14px;
  background: var(--gx-panel);
  box-shadow: var(--gx-shadow-sm);
}
.page-site-identity img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--gx-line);
  border-radius: 10px;
}
.page-site-copy strong { font-size: 15px; font-weight: 600; }
.page-site-copy small { color: var(--gx-muted); font-size: 14px; }
.top-actions { gap: 10px; }

/* Boutons et contrôles */
.btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: none; box-shadow: 0 6px 18px rgba(31,37,42,.08); }
.btn-primary { background: var(--gx-red); border-color: var(--gx-red); color: #fff; }
.btn-primary:hover { background: var(--gx-red-dark); border-color: var(--gx-red-dark); }
.btn-dark { background: var(--gx-ink); border-color: var(--gx-ink); color: var(--gx-panel); }
.btn-light { background: var(--gx-panel); border-color: var(--gx-line-strong); color: var(--gx-ink); }
.btn-light:hover { background: var(--gx-surface); border-color: var(--gx-line-strong); color: var(--gx-ink); }
.btn-danger { border-color: rgba(200,72,61,.35); border-radius: 10px; }
.btn-icon { border-radius: 10px; }
.theme-toggle::before { border-radius: 7px; }

.period-switch,
.segment-tabs {
  border: 1px solid var(--gx-line);
  border-radius: 10px;
  background: var(--gx-surface);
  overflow: hidden;
}
.period-btn,
.segment-tab,
.seo-preview-tab {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--gx-text-secondary);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.period-btn.is-active,
.segment-tab.is-active,
.seo-preview-tab.is-active {
  background: var(--gx-panel);
  color: var(--gx-ink);
  box-shadow: 0 1px 4px rgba(31,37,42,.08);
}
.segment-tabs { gap: 4px; padding: 4px; border-bottom: 1px solid var(--gx-line); }
.segment-tab { border-bottom: 0; padding: 8px 12px; }
.segment-tab.is-active { border-bottom-color: transparent; color: var(--gx-red-dark); }

.field { gap: 7px; }
.field label {
  color: var(--gx-ink-soft);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.field input,
.field select {
  min-height: 46px;
  border: 1px solid var(--gx-line-strong);
  border-radius: 10px;
  background: var(--gx-panel);
  font-weight: 400;
}
.field input:focus,
.field select:focus {
  border-color: var(--gx-red);
  box-shadow: 0 0 0 3px var(--gx-red-soft);
}
.password-toggle,
.modal-close,
.copy-btn { border-radius: 8px; }
.select-shell select { border-radius: 10px; font-weight: 500; letter-spacing: 0; }

/* Sections */
.settings-sections,
.page-sections { display: grid; gap: 24px; }
.settings-section {
  overflow: hidden;
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-lg);
  background: var(--gx-panel);
  box-shadow: var(--gx-shadow-sm);
}
.settings-section-head {
  min-height: 92px;
  grid-template-columns: 42px minmax(0,1fr) auto;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gx-line);
  background: var(--gx-surface);
}
.settings-section-head > span {
  width: 34px;
  height: 34px;
  align-self: center;
  border: 0;
  border-radius: 10px;
  background: var(--gx-panel);
  color: var(--gx-red-dark);
  font: 600 14px/1 var(--font-title);
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px var(--gx-line);
}
.settings-section-head h2 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.settings-section-head p {
  max-width: 760px;
  color: var(--gx-muted);
  font-size: 14px;
  line-height: 1.55;
}
.settings-section-head-action > .btn,
.settings-section-head-action .site-preview-actions { justify-self: end; }
.settings-section > .card,
.settings-section > .unified-section-body,
.settings-section > .settings-card,
.settings-section > .site-preview-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.unified-section-body,
.settings-card-inner,
.domain-verification-card { padding: 24px; }
.settings-section-emphasis { border-color: rgba(155,106,34,.35); }
.settings-section-emphasis .settings-section-head { background: var(--gx-amber-soft); }
.settings-section-emphasis[data-status="verified"] .settings-section-head { background: var(--gx-green-soft); }
.settings-section-danger { border-color: rgba(200,72,61,.28); }
.settings-section-danger .settings-section-head { background: var(--gx-red-soft); }

/* Cards, grilles et KPI */
.card {
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-md);
  background: var(--gx-panel);
  box-shadow: none;
}
.kpi-grid,
.grid-main,
.grid-details,
.sites-grid,
.settings-content-grid,
.settings-toggle-grid,
.dns-methods {
  gap: 16px;
  border: 0;
  background: transparent;
}
.kpi-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.kpi {
  min-height: 152px;
  padding: 22px;
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-md);
  background: var(--gx-panel);
}
.kpi::after { display: none; }
.kpi-label {
  color: var(--gx-data-label);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.kpi-value {
  margin-top: 20px;
  color: var(--gx-data-value);
  font-size: clamp(34px,3.5vw,48px);
  font-weight: 600;
}
.kpi-sub { color: var(--gx-muted); font-size: 14px; }
.kpi-icon { border-radius: 10px; background: var(--gx-surface); color: var(--gx-red-dark); }
.chart-card,
.live-card,
.hourly-card,
.table-card,
.bars-card { border-radius: var(--gx-radius-md); }
.card-head h2 { font-size: 19px; letter-spacing: -.015em; }
.card-head p { color: var(--gx-muted); }
.grid-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
.table-card,
.bars-card { min-height: 330px; padding: 24px; border: 1px solid var(--gx-line); }
.data-table th {
  color: var(--gx-data-label);
  font-size: 14px;
  letter-spacing: .01em;
  text-transform: none;
}
.data-table td { color: var(--gx-data-value); font-size: 14px; }
.data-table strong { font-weight: 600; }
.bar-row > span,
.bar-row strong { color: var(--gx-data-value); font-size: 14px; font-weight: 500; }
.bar-track { height: 6px; border-radius: 999px; }
.bar-fill { border-radius: 999px; }
.legend { color: var(--gx-muted); font-weight: 400; }
.live-card {
  border: 1px solid rgba(200,72,61,.24);
  border-radius: var(--gx-radius-md);
}

/* Sites */
.sites-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.site-card {
  padding: 22px;
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-md);
  background: var(--gx-panel);
}
.site-card::before { display: none; }
.site-card:hover {
  border-color: var(--gx-line-strong);
  background: var(--gx-panel);
  box-shadow: var(--gx-shadow-sm);
  transform: translateY(-1px);
}
.site-card.is-current {
  border-color: rgba(200,72,61,.32);
  background: var(--gx-red-soft);
}
.site-symbol { border-radius: 10px; }
.badge {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.site-card h3 { margin: 20px 0 6px; font-size: 19px; letter-spacing: -.015em; }
.site-domain { color: var(--gx-muted); }
.site-meta {
  margin-top: 20px;
  padding-top: 14px;
  color: var(--gx-muted);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

/* Configuration */
.settings-form-grid,
.settings-content-grid,
.settings-toggle-grid { gap: 16px; }
.settings-content-grid > article,
.settings-toggle-grid > * { border: 1px solid var(--gx-line); border-radius: var(--gx-radius-md); }
.settings-card h3 { font-size: 19px; letter-spacing: -.015em; }
.settings-card > p { color: var(--gx-muted); }
.radio-card,
.toggle-row,
.dns-method,
.verification-steps li {
  border-radius: var(--gx-radius-md);
}
.privacy-options,
.verification-steps,
.dns-record-grid {
  gap: 10px;
  border: 0;
  background: transparent;
}
.radio-card {
  border: 1px solid var(--gx-line);
  background: var(--gx-panel);
}
.radio-card:has(input:checked) {
  border-color: rgba(200,72,61,.34);
  border-left: 1px solid rgba(200,72,61,.34);
  border-radius: var(--gx-radius-md);
  background: var(--gx-red-soft);
  box-shadow: none;
}
.radio-card strong,
.toggle-copy strong { font-weight: 600; }
.switch-track { border-radius: 999px; }
.switch-track::after { border-radius: 50%; }
.verification-status {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.verification-message,
.domain-alert,
.legal-note,
.delete-warning {
  border-radius: var(--gx-radius-md);
}
.domain-alert {
  min-height: 76px;
  margin: -4px 0 24px;
  border-left-width: 1px;
  background: var(--gx-amber-soft);
}
.domain-alert-icon { border-radius: 10px; font-weight: 600; }
.dns-record-grid { overflow: hidden; border: 1px solid var(--gx-line); border-radius: var(--gx-radius-md); }
.dns-record-row > span { letter-spacing: 0; text-transform: none; }
.dns-record-row .copy-btn { border-radius: 0; }
.verification-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
.verification-steps li { border: 1px solid var(--gx-line); }
.verification-steps li::before { font-weight: 600; }
.dns-method { background: var(--gx-surface); }
.code-box { border-radius: var(--gx-radius-md); }
.danger-kicker { font-weight: 600; letter-spacing: .03em; text-transform: none; }

/* SEO */
.site-preview-card { border-radius: 0; }
.site-preview-facts,
.sitemap-card,
.seo-preview-stage,
.google-preview,
.bing-preview,
.og-card { border-radius: var(--gx-radius-md); }
.site-preview-facts > * { border-radius: var(--gx-radius-sm); }
.seo-preview-menu {
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--gx-line);
  border-radius: 12px;
  background: var(--gx-surface);
}
.seo-preview-tab { padding: 8px 14px; }
.preview-status,
.site-preview-facts span,
.og-card-copy span,
.google-favicon span,
.bing-favicon span { font-weight: 500; letter-spacing: 0; text-transform: none; }

/* Modales et notifications */
.modal {
  border-radius: var(--gx-radius-lg);
  box-shadow: var(--gx-shadow-md);
}
.modal-head { border-color: var(--gx-line); }
.toast { border-radius: var(--gx-radius-md); box-shadow: var(--gx-shadow-md); }

/* Login */
.auth-shell { background: var(--gx-bg); }
.auth-visual {
  padding: clamp(36px,5vw,72px);
  background:
    radial-gradient(circle at 72% 28%, rgba(200,72,61,.15), transparent 32%),
    linear-gradient(145deg,#20262b 0%,#11161a 100%);
}
.auth-brand-lockup { gap: 18px; }
.auth-brand-logo { border-radius: 16px; }
.auth-brand-lockup h1 { font-weight: 600; }
.auth-brand-lockup p { color: rgba(255,255,255,.68); font-weight: 400; }
.auth-flow-counter strong { font-weight: 600; }
.auth-flow-counter span { color: rgba(255,255,255,.62); font-weight: 400; }
.auth-foot { color: rgba(255,255,255,.52); font-weight: 500; letter-spacing: .03em; text-transform: none; }
.auth-panel { background: var(--gx-panel); }
.auth-box { width: min(100%,460px); }
.auth-box h2 { letter-spacing: -.035em; }
.auth-box > p { color: var(--gx-muted); }
.auth-access-note {
  border: 1px solid var(--gx-line);
  border-left: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-md);
  background: var(--gx-surface);
}
.auth-access-note strong { font-weight: 600; }
.auth-doc-link,
.auth-install-link { font-weight: 500; text-decoration: none; }
.api-indicator { letter-spacing: 0; text-transform: none; }

/* Documentation */
.docs-body { background: var(--gx-bg); }
.docs-topbar {
  border-bottom: 1px solid var(--gx-line);
  background: var(--gx-topbar);
  backdrop-filter: blur(16px);
}
.docs-layout { background: var(--gx-bg); }
.docs-sidebar {
  border-right: 1px solid var(--gx-line);
  background: var(--gx-panel);
}
.docs-sidebar-title {
  color: var(--gx-text-faint);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}
.docs-nav a {
  min-height: 40px;
  border-radius: 9px;
  color: var(--gx-text-secondary);
  font-weight: 500;
  text-decoration: none;
}
.docs-nav a:hover,
.docs-nav a.is-active { background: var(--gx-red-soft); color: var(--gx-red-dark); }
.docs-main { color: var(--gx-ink); }
.docs-title { letter-spacing: -.04em; }
.docs-section {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-lg);
  background: var(--gx-panel);
  box-shadow: var(--gx-shadow-sm);
}
.docs-section-head {
  padding: 24px;
  border-bottom: 1px solid var(--gx-line);
  background: var(--gx-surface);
}
.docs-section-head > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gx-line);
  border-radius: 10px;
  background: var(--gx-panel);
  color: var(--gx-red-dark);
  font-weight: 600;
  letter-spacing: 0;
}
.docs-section-head h2 { font-size: clamp(28px,3vw,40px); letter-spacing: -.03em; }
.docs-section-head p { color: var(--gx-muted); }
.docs-section > :not(.docs-section-head) { margin-left: 24px; margin-right: 24px; }
.docs-section > :last-child { margin-bottom: 24px; }
.docs-prose,
.role-grid article,
.tutorial-steps article,
.docs-callout,
.manual-code,
.faq-item,
.troubleshooting-item,
.privacy-list article,
.audience-list article {
  border-radius: var(--gx-radius-md);
}
.docs-main h3 { font-weight: 600; }
.docs-main strong { font-weight: 600; }
.docs-main p,
.docs-main li { color: var(--gx-text-secondary); }
.docs-main a.btn { text-decoration: none; }
.docs-main a:not(.btn):not(.docs-anchor) { color: var(--gx-red-dark); }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sites-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 920px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 278px; }
  .main { padding: 0 18px 44px; }
  .topbar { min-height: 92px; padding: 14px 0; }
  .settings-section-head-action > .btn,
  .settings-section-head-action .site-preview-actions { grid-column: 2; justify-self: start; }
}

@media (max-width: 690px) {
  .main { padding-inline: 14px; }
  .kpi-grid,
  .grid-details,
  .sites-grid,
  .settings-form-grid,
  .settings-content-grid,
  .settings-toggle-grid,
  .dns-methods,
  .verification-steps { grid-template-columns: 1fr; }
  .settings-section-head {
    grid-template-columns: 36px minmax(0,1fr);
    padding: 18px;
  }
  .settings-section-head > span { width: 30px; height: 30px; }
  .settings-section-head > :nth-child(3),
  .settings-section-head-action > .btn,
  .settings-section-head-action .site-preview-actions {
    grid-column: 2;
    justify-self: start;
  }
  .unified-section-body,
  .settings-card-inner,
  .domain-verification-card { padding: 18px; }
  .page-site-identity { width: 100%; }
  .docs-section-head { padding: 20px; }
  .docs-section > :not(.docs-section-head) { margin-left: 18px; margin-right: 18px; }
  .docs-section > :last-child { margin-bottom: 18px; }
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.045), transparent 34%),
    linear-gradient(145deg, #20272c 0%, var(--gx-bg) 48%, #141a1e 100%);
}
.dashboard,
.main,
.docs-body,
.docs-layout { background: transparent; }
.view.is-view-entering { animation: fadeView .32s cubic-bezier(.2,.8,.2,1); }
.view { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .view.is-view-entering { animation: none; }
}


/* Navigation et composants partagés */
.topbar,
.docs-topbar {
  background: transparent !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  backdrop-filter: blur(22px) saturate(1.08);
}
.topbar { border-bottom-color: transparent; }
.docs-topbar { border-bottom-color: var(--gx-line); }

.settings-section.is-collapsible > .settings-section-head {
  position: relative;
  padding-right: 76px;
  cursor: pointer;
  user-select: none;
}
.section-collapse-toggle {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--gx-line);
  border-radius: 10px;
  background: var(--gx-panel);
  color: var(--gx-text-secondary);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .2s ease;
}
.section-collapse-toggle:hover {
  border-color: var(--gx-line-strong);
  background: var(--gx-surface-strong);
  color: var(--gx-ink);
}
.section-collapse-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform .22s ease;
}
.settings-section.is-collapsed .section-collapse-toggle svg { transform: rotate(-90deg); }
.settings-section.is-collapsed > .settings-section-head { border-bottom-color: transparent; }
.settings-section.is-collapsed { box-shadow: none; }

.auth-visual {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-image:
    linear-gradient(var(--gx-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--gx-grid) 1px, transparent 1px);
  background-size: 34px 34px;
  color: #1f252a;
}
.auth-visual::before,
.auth-visual::after { display: none; }
.auth-brand-lockup,
.auth-foot,
.auth-grid-mark { position: relative; z-index: 1; }
.auth-brand-lockup h1 { color: #1f252a; }
.auth-brand-lockup p { color: #66717a; }
.auth-foot { color: #7a858d; }
.auth-grid-mark {
  width: min(34vw, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  border: 1px solid #e3e7ea;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 80px rgba(31,37,42,.08);
}
.auth-grid-mark img {
  width: clamp(76px,8vw,118px);
  height: auto;
  opacity: .92;
}
.auth-shell.is-entering *,
.auth-shell.is-entering *::before,
.auth-shell.is-entering *::after { animation: none !important; }

[data-theme="dark"] .auth-visual {
  background-color: #171d21;
  background-image:
    linear-gradient(#303b41 1px, transparent 1px),
    linear-gradient(90deg, #303b41 1px, transparent 1px);
  color: #f2f5f6;
}
[data-theme="dark"] .auth-brand-lockup h1 { color: #f2f5f6; }
[data-theme="dark"] .auth-brand-lockup p { color: #a5afb5; }
[data-theme="dark"] .auth-foot { color: #879299; }
[data-theme="dark"] .auth-grid-mark {
  border-color: #344047;
  background: rgba(32,40,45,.84);
  box-shadow: 0 24px 80px rgba(0,0,0,.26);
}

@media (max-width: 760px) {
  .settings-section.is-collapsible > .settings-section-head { padding-right: 62px; }
  .section-collapse-toggle { right: 14px; width: 34px; height: 34px; }
}


/* v1.7.4 — page SEO en sections et aperçus continus */
#viewSeo .unified-section-body { padding: 0; }
.seo-meta-card,
.seo-social-meta { background: var(--gx-panel); }
.seo-meta-rows { border-top: 1px solid var(--gx-line); }
.seo-meta-row {
  display: grid;
  grid-template-columns: minmax(190px, .42fr) minmax(0, 1.58fr);
  align-items: start;
  gap: 28px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gx-line);
}
.seo-meta-row:last-child { border-bottom: 0; }
.seo-meta-label strong,
.seo-meta-label span { display: block; }
.seo-meta-label strong { color: var(--gx-ink); font-weight: 600; }
.seo-meta-label span { margin-top: 5px; color: var(--gx-muted); line-height: 1.5; }
.seo-meta-value {
  min-width: 0;
  color: var(--gx-text-secondary);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.seo-meta-url { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); }
.seo-favicon-value { display: flex; align-items: center; gap: 14px; }
.seo-favicon-value .favicon-frame { width: 46px; height: 46px; }
.seo-favicon-value > strong { font-weight: 500; }
.seo-meta-group + .seo-meta-group { border-top: 1px solid var(--gx-line); }
.seo-meta-group-head { padding: 22px; }
.seo-meta-group-head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.seo-meta-group-head p { margin: 6px 0 0; color: var(--gx-muted); line-height: 1.55; }
#viewSeo .sitemap-card { margin: 0; border: 0; }
.seo-preview-list {
  display: grid;
  gap: 0;
  background: var(--gx-panel);
}
.seo-preview-list .platform-preview {
  max-width: none;
  margin: 0;
  padding: 24px;
  border-bottom: 1px solid var(--gx-line);
}
.seo-preview-list .platform-preview:last-child { border-bottom: 0; }
.seo-preview-list .preview-panel-head { margin-bottom: 16px; }
.seo-preview-list .search-result-preview { max-width: 760px; }
.seo-preview-list .social-card-preview { margin-left: 0; }
#viewSeo .preview-tags-block {
  margin: 0;
  border: 0;
}
@media (max-width: 720px) {
  .seo-meta-row { grid-template-columns: 1fr; gap: 10px; padding: 17px 18px; }
  .seo-preview-list .platform-preview { padding: 18px; }
  .seo-preview-list .social-card-preview { margin: 0 auto; }
}

/* v1.7.5 — rythme, padding et lisibilité globale */
.topbar {
  min-height: auto;
  padding: 22px 0 24px;
  margin-bottom: 32px;
  align-items: center;
  row-gap: 18px;
}
.page-title {
  min-width: 0;
  padding-block: 2px;
}
.page-title .eyebrow { margin-bottom: 8px; }
.page-title h1 { line-height: 1.08; }
.page-site-identity {
  margin-top: 16px;
  padding: 10px 18px 10px 10px;
}
.top-actions,
.topbar-theme-toggle { align-self: center; }
.domain-alert {
  padding: 18px 20px;
  gap: 16px;
}
.settings-section-head {
  min-height: 104px;
  padding: 24px 28px;
  gap: 18px;
}
.settings-section-head h2 { margin-bottom: 7px; }
.settings-section-head p { line-height: 1.65; }
.unified-section-body,
.settings-card-inner,
.domain-verification-card { padding: 28px; }
.card-head { margin-bottom: 24px; }
.card-head p { line-height: 1.65; }
.seo-meta-row { padding: 22px 26px; }
.seo-meta-label span,
.seo-meta-value { line-height: 1.7; }

@media (max-width: 920px) {
  .topbar {
    padding: 18px 0 20px;
    margin-bottom: 24px;
  }
}

@media (max-width: 690px) {
  .topbar {
    padding: 16px 0 18px;
    gap: 14px;
  }
  .page-title { padding-block: 4px; }
  .page-site-identity {
    margin-top: 14px;
    padding: 9px 12px 9px 9px;
  }
  .settings-section-head {
    min-height: 0;
    padding: 20px 18px;
    gap: 14px;
  }
  .unified-section-body,
  .settings-card-inner,
  .domain-verification-card { padding: 20px 18px; }
  .seo-meta-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }
}

/* Header d’interface aligné sur la documentation */
.topbar {
  min-height: 86px;
  margin-bottom: 32px;
  padding: 16px 0;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--gx-line);
  background: transparent !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  backdrop-filter: blur(22px) saturate(1.08);
}
.page-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}
.topbar-brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}
.page-title-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}
.page-title .eyebrow {
  margin: 0;
  color: var(--gx-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}
.page-title h1 {
  margin: 0;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.page-site-identity {
  min-height: 0;
  margin: 3px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.page-site-identity img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.page-site-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.25;
}
.page-site-copy strong,
.page-site-copy small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.page-site-copy strong {
  color: var(--gx-text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.page-site-copy small {
  color: var(--gx-muted);
  font-size: 14px;
  font-weight: 400;
}
.topbar-theme-toggle,
.top-actions { align-self: center; }

@media (max-width: 920px) {
  .topbar {
    min-height: 82px;
    padding: 14px 0;
    margin-bottom: 24px;
    gap: 14px;
  }
  .topbar-brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .page-title { gap: 10px; }
  .top-actions { padding-top: 2px; }
}

@media (max-width: 690px) {
  .topbar {
    padding: 12px 0 14px;
    row-gap: 12px;
  }
  .topbar-brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .page-title h1 { font-size: 19px; }
  .page-site-copy { display: grid; gap: 1px; }
  .page-site-copy strong,
  .page-site-copy small { max-width: min(56vw, 280px); }
}


/* GX Analytics 1.7.8 — header unique et connexion minimale */
.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  grid-template-rows: 82px minmax(0, 1fr);
  grid-template-areas:
    "topbar topbar"
    "sidebar main";
  background: var(--gx-bg);
}
.topbar {
  grid-area: topbar;
  position: sticky;
  inset: 0 0 auto;
  z-index: 80;
  width: 100%;
  min-height: 82px;
  margin: 0;
  padding: 12px clamp(18px, 2.6vw, 38px);
  display: grid;
  grid-template-columns: minmax(220px, var(--sidebar)) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  border-bottom: 1px solid var(--gx-line);
  background: transparent;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.topbar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}
.topbar-brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.topbar-brand-copy strong {
  overflow: hidden;
  color: var(--gx-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.topbar-brand-copy small {
  color: var(--gx-text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}
.page-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}
.page-title-copy { min-width: 0; }
.page-title .eyebrow {
  margin: 0 0 3px;
  color: var(--gx-text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.page-title h1 {
  margin: 0;
  overflow: hidden;
  color: var(--gx-ink);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.page-site-identity {
  margin-top: 5px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.page-site-identity img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.page-site-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.page-site-copy strong,
.page-site-copy small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.page-site-copy strong { color: var(--gx-ink-soft); font-size: 14px; font-weight: 500; }
.page-site-copy small { color: var(--gx-text-secondary); font-size: 14px; font-weight: 400; }
.topbar-theme-toggle { margin: 0; }
.top-actions { justify-self: end; }
.sidebar {
  grid-area: sidebar;
  position: sticky;
  inset: auto;
  top: 82px;
  z-index: 50;
  width: auto;
  height: calc(100vh - 82px);
  padding: 20px 18px;
  align-self: start;
}
.sidebar > .side-section-head:first-child { margin-top: 0; }
.main {
  grid-area: main;
  grid-column: auto;
  min-width: 0;
  padding: 32px clamp(20px, 3.4vw, 54px) 60px;
  background: transparent;
}

.auth-visual {
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 72px);
}
.auth-visual::before,
.auth-visual::after { display: none; }
.auth-brand-simple {
  position: relative;
  inset: auto;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.auth-brand-simple .auth-brand-logo {
  width: 88px;
  height: 88px;
  margin: 0;
}
.auth-brand-simple h1 {
  margin: 0;
  color: var(--gx-inverse);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
}
.auth-beta-label {
  color: var(--gx-red-dark);
  letter-spacing: .03em;
  text-transform: none;
}
.auth-box h2 { margin-bottom: 24px; }

@media (max-width: 1050px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "topbar"
      "main";
  }
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "menu brand theme"
      "title title title"
      "actions actions actions";
    min-height: 0;
    padding-block: 12px;
    gap: 10px 14px;
  }
  .mobile-menu { grid-area: menu; display: inline-grid; }
  .topbar-brand { grid-area: brand; }
  .page-title { grid-area: title; padding-top: 8px; border-top: 1px solid var(--gx-line); }
  .topbar-theme-toggle { grid-area: theme; justify-self: end; }
  .top-actions { grid-area: actions; justify-self: stretch; width: 100%; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    top: 0;
    z-index: 90;
    width: min(312px, 88vw);
    height: 100vh;
    padding-top: 22px;
  }
  .main { grid-column: auto; padding-top: 26px; }
}

@media (max-width: 690px) {
  .topbar { padding-inline: 14px; }
  .topbar-brand-copy small { display: none; }
  .topbar-brand-logo { width: 36px; height: 36px; flex-basis: 36px; }
  .page-title h1 { font-size: 20px; }
  .page-site-copy { display: grid; gap: 1px; }
  .top-actions { overflow-x: auto; padding-bottom: 2px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 210px; padding: 32px 20px; }
  .auth-brand-simple .auth-brand-logo { width: 68px; height: 68px; }
  .auth-brand-simple h1 { font-size: 34px; }
}

/* Header unifié : structure stable, contexte unique et noms longs maîtrisés */
.dashboard {
  grid-template-rows: 88px minmax(0, 1fr);
}

.topbar {
  min-height: 88px;
  height: 88px;
  margin: 0;
  padding: 12px clamp(18px, 2.4vw, 36px);
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: clamp(22px, 3vw, 46px);
  row-gap: 0;
  border-bottom: 1px solid var(--gx-line);
  background: transparent !important;
  -webkit-backdrop-filter: blur(22px) saturate(118%);
  backdrop-filter: blur(22px) saturate(118%);
}

.mobile-menu { display: none; }

.topbar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  object-fit: contain;
}

.topbar-brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.topbar-brand-copy strong,
.topbar-brand-copy small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar-brand-copy strong {
  color: var(--gx-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
}

.topbar-brand-copy small {
  color: var(--gx-text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.topbar-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.page-title {
  min-width: max-content;
  padding: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

.page-title .eyebrow {
  margin: 0;
  color: var(--gx-text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.page-title h1 {
  margin: 0;
  color: var(--gx-ink);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.page-site-identity {
  min-width: 0;
  max-width: min(42vw, 520px);
  margin: 0;
  padding: 2px 0 2px clamp(16px, 2vw, 28px);
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-left: 1px solid var(--gx-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-site-identity img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  object-fit: contain;
}

.page-site-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.page-site-copy strong,
.page-site-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-site-copy strong {
  color: var(--gx-ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.page-site-copy small {
  color: var(--gx-text-secondary);
  font-size: 14px;
  font-weight: 400;
}

.topbar-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.topbar-theme-toggle,
.top-actions {
  margin: 0;
  align-self: center;
}

.top-actions {
  min-width: 0;
  justify-self: auto;
}

.sidebar {
  top: 88px;
  height: calc(100vh - 88px);
}

.main {
  padding-top: 32px;
}

@media (max-width: 1120px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "topbar"
      "main";
  }

  .topbar {
    height: auto;
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "menu brand theme"
      "context context context"
      "actions actions actions";
    padding: 12px 18px 14px;
    gap: 12px 14px;
  }

  .mobile-menu {
    grid-area: menu;
    display: inline-grid;
  }

  .topbar-brand { grid-area: brand; }
  .topbar-context {
    grid-area: context;
    padding-top: 12px;
    border-top: 1px solid var(--gx-line);
  }

  .topbar-controls { display: contents; }
  .topbar-theme-toggle {
    grid-area: theme;
    justify-self: end;
  }
  .top-actions {
    grid-area: actions;
    width: 100%;
    justify-self: stretch;
  }

  .page-site-identity {
    max-width: min(58vw, 560px);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    top: 0;
    z-index: 90;
    width: min(312px, 88vw);
    height: 100vh;
    padding-top: 22px;
  }

  .main { padding-top: 26px; }
}

@media (max-width: 690px) {
  .topbar {
    padding-inline: 14px;
  }

  .topbar-brand-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .topbar-brand-copy small { display: none; }

  .topbar-context {
    display: grid;
    gap: 12px;
  }

  .page-title {
    min-width: 0;
  }

  .page-title h1 {
    overflow: hidden;
    font-size: 22px;
    text-overflow: ellipsis;
  }

  .page-site-identity {
    width: 100%;
    max-width: none;
    padding: 0;
    border-left: 0;
  }

  .page-site-identity img {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .page-site-copy strong,
  .page-site-copy small {
    max-width: calc(100vw - 86px);
  }

  .top-actions {
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

/* Header : ligne de base commune pour tous les contenus */
@media (min-width: 1121px) {
  .topbar {
    align-items: end;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .topbar-brand,
  .topbar-context,
  .topbar-controls {
    min-height: 44px;
    align-items: flex-end;
  }

  .topbar-brand-logo,
  .page-site-identity img {
    align-self: flex-end;
  }

  .topbar-brand-copy,
  .page-title,
  .page-site-copy {
    min-height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .topbar-brand-copy,
  .page-title,
  .page-site-copy,
  .topbar-brand-copy strong,
  .topbar-brand-copy small,
  .page-title .eyebrow,
  .page-title h1,
  .page-site-copy strong,
  .page-site-copy small {
    margin-top: 0;
    margin-bottom: 0;
  }

  .topbar-brand-copy strong,
  .page-title h1,
  .page-site-copy strong {
    line-height: 1.08;
  }

  .topbar-brand-copy small,
  .page-title .eyebrow,
  .page-site-copy small {
    line-height: 1.15;
  }

  .page-site-identity {
    min-height: 44px;
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 0;
  }

  .topbar-theme-toggle,
  .top-actions {
    align-self: flex-end;
  }
}

/* Login identity: centered on the full visual panel */
.auth-visual {
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  min-height: 100vh;
}
.auth-brand-simple {
  width: min(100%, 560px);
  margin: 0 auto !important;
  align-self: center;
  justify-self: center;
  place-self: center;
}

/* Live activity: opaque readable text in both themes */
.live-card .card-head p { color: #c8d0d5; }
.live-total span { color: #dbe1e5; }
.live-row span { color: #d1d9de; }
.live-row strong { color: #ffffff; }
.live-empty { color: #c1c9ce; }

/* SEO previews: enforce platform-readable colors in the light theme */
html:not([data-theme="dark"]) .google-result-preview,
html:not([data-theme="dark"]) .search-result-preview {
  background: #ffffff;
  color: #202428;
}
html:not([data-theme="dark"]) .google-source strong,
html:not([data-theme="dark"]) .google-source span,
html:not([data-theme="dark"]) .bing-source,
html:not([data-theme="dark"]) .search-result-preview p {
  color: #4f5960;
}
html:not([data-theme="dark"]) .google-result-preview p,
html:not([data-theme="dark"]) .social-card-copy p,
html:not([data-theme="dark"]) .social-card-copy span {
  color: #535d64;
}
html:not([data-theme="dark"]) .social-card-copy strong { color: #202428; }

@media (max-width: 760px) {
  .auth-visual { min-height: 42vh; }
}


/* Legal access links */
.auth-legal-links {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gx-text-faint);
  font-size: 14px;
  font-weight: 400;
}
.auth-legal-links a,
.sidebar-legal-links a { color: var(--gx-text-secondary); font-weight: 400; text-decoration: none; }
.auth-legal-links a:hover,
.sidebar-legal-links a:hover { color: var(--gx-ink); text-decoration: underline; text-underline-offset: 3px; }
.sidebar-legal-links {
  padding: 14px 10px 0;
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--gx-line);
  font-size: 14px;
}

/* Login identity: readable in both themes */
html:not([data-theme="dark"]) .auth-brand-simple h1 { color: #1f252a; }
[data-theme="dark"] .auth-brand-simple h1 { color: #f2f5f6; }


/* Interface mobile stable : les changements de vue ne déplacent plus le contenu par animation. */
@media (max-width: 900px) {
  .view.is-view-entering,
  .data-updated,
  .settings-section,
  .settings-section > *,
  .section-collapse-toggle,
  .section-collapse-toggle svg {
    animation: none !important;
  }

  .view.is-view-entering {
    opacity: 1 !important;
    transform: none !important;
  }

  .section-collapse-toggle,
  .section-collapse-toggle svg {
    transition: none !important;
  }
}
