/*
 * Support Dash — design repris À L'IDENTIQUE de l'Affiliate Hub (FX affiliation),
 * à la demande du client (14/09/2026) : mêmes jetons (relevés sur le portail du
 * broker), même police Lato, même coquille (barre latérale 248 px + barre du
 * haut 56 px), mêmes tuiles, cartes, tableaux, badges et page de connexion.
 * Source : affiliate-hub/src/app/globals.css et src/components/{ui,shell}.
 */

@font-face { font-family: Lato; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/lato-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lato; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/lato-400-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Lato; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/lato-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lato; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/lato-700-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f9fafc;
  --surface: #ffffff;
  --surface-2: #f1f3f7;
  --surface-3: #e7eaf0;
  --text: #1d1d1b;
  --text-muted: #5a636e;
  --text-faint: #636d7a;
  --text-inverse: #ffffff;
  --border: #e6e9ef;
  --border-strong: #cbd2dd;
  --accent: #126aec;
  --accent-hover: #0e56c0;
  --accent-soft: #edf5ff;
  --accent-text: #0e56c0;
  --chart-1: #2f6fd0;
  --chart-2: #c05f33;
  --pos: #12664a;
  --pos-soft: #e3f0ea;
  --neg: #b02f28;
  --neg-soft: #fbe8e6;
  --warn: #8a5d05;
  --warn-soft: #f8efdc;
  --r-sm: 6px;
  --r-md: 10px;
  --shadow-2: 0 4px 16px -6px rgb(16 24 40 / 0.12);
  --font: Lato, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1116; --surface: #171a21; --surface-2: #1e222b; --surface-3: #272c37;
    --text: #e7eaf0; --text-muted: #9aa3b2; --text-faint: #8a93a3; --text-inverse: #0f1116;
    --border: #262b35; --border-strong: #39404d;
    --accent: #4d94ff; --accent-hover: #6ba6ff; --accent-soft: #14243d; --accent-text: #8fbaff;
    --chart-1: #5a95e0; --chart-2: #d4783c;
    --pos: #4cb989; --pos-soft: #10251d; --neg: #e0776b; --neg-soft: #2b1917; --warn: #d4a34a; --warn-soft: #292013;
    --shadow-2: 0 4px 20px -8px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1116; --surface: #171a21; --surface-2: #1e222b; --surface-3: #272c37;
  --text: #e7eaf0; --text-muted: #9aa3b2; --text-faint: #8a93a3; --text-inverse: #0f1116;
  --border: #262b35; --border-strong: #39404d;
  --accent: #4d94ff; --accent-hover: #6ba6ff; --accent-soft: #14243d; --accent-text: #8fbaff;
  --chart-1: #5a95e0; --chart-2: #d4783c;
  --pos: #4cb989; --pos-soft: #10251d; --neg: #e0776b; --neg-soft: #2b1917; --warn: #d4a34a; --warn-soft: #292013;
  --shadow-2: 0 4px 20px -8px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(a, button, input, select, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
:where(button, [role="button"], label[for]):not(:disabled) { cursor: pointer; }
button:disabled { cursor: not-allowed; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.i-sm { width: 14px; height: 14px; }
svg.i-xs { width: 12px; height: 12px; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }

/* ---------- marque ---------- */
.mark { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #000; }
.mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mark-b { background: linear-gradient(135deg, #1f2733, #0b0f16); color: #d6b36a; font-weight: 700; }
.mark-s { background: var(--accent); color: var(--text-inverse); font-weight: 700; }
.mark-56 { width: 56px; height: 56px; font-size: 24px; }
.mark-28 { width: 28px; height: 28px; font-size: 13px; }

/* ---------- coquille ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: 248px;
  display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border);
}
.sidebar-head { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar-brand .t1 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-brand .t2 { font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 12px 8px; }
.nav-section + .nav-section { margin-top: 20px; }
.nav-title { padding: 0 8px 8px; font-size: 12px; font-weight: 400; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-faint); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 15px; color: var(--text-muted); text-decoration: none; transition: background-color .15s, color .15s;
}
.nav-link svg { color: color-mix(in srgb, var(--accent) 70%, transparent); }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link:hover svg { color: var(--accent); }
.nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.nav-link[aria-current="page"] svg { color: var(--accent-text); stroke-width: 2.2; }
.nav-link .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot { flex-shrink: 0; border-top: 1px solid var(--border); padding: 12px 16px; }
.sidebar-foot .t1 { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 400; color: var(--text-muted); }
.sidebar-foot .t2 { margin-top: 2px; font-size: 11px; line-height: 1.6; color: var(--text-faint); }

.shell { min-height: 100dvh; display: flex; flex-direction: column; padding-left: 248px; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn.menu-btn { display: none; }
main.content { width: 100%; max-width: 1400px; margin: 0 auto; flex: 1; padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; }

.drawer-scrim { position: fixed; inset: 0; z-index: 25; background: rgb(0 0 0 / 0.45); }

@media (max-width: 1023px) {
  .shell { padding-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; max-width: 85vw; }
  .sidebar.open { transform: none; z-index: 40; }
  .btn.menu-btn { display: inline-flex; }
}
@media (max-width: 639px) {
  .topbar .theme-toggle, .user-btn .who { display: none; }
  main.content { padding: 16px 12px; }
}

/* ---------- composants ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: var(--r-sm); border: 1px solid transparent; font-size: 11px; font-weight: 400; white-space: nowrap; max-width: 100%; }
.badge-md { height: 24px; padding: 0 8px; font-size: 12px; gap: 6px; }
.badge.neutral { border-color: var(--border); background: var(--surface-2); color: var(--text-muted); }
.badge.pos { background: var(--pos-soft); color: var(--pos); }
.badge.neg { background: var(--neg-soft); color: var(--neg); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 400; text-decoration: none; white-space: nowrap; transition: background-color .15s, opacity .15s; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; }
.btn-sm { height: 32px; padding: 0 10px; gap: 6px; font-size: 12px; }
.btn-primary { border-color: transparent; background: var(--accent); color: var(--text-inverse); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger-ghost { border-color: transparent; background: transparent; color: var(--neg); }
.btn-danger-ghost:hover { background: var(--neg-soft); }
.btn-icon { width: 32px; padding: 0; justify-content: center; }

.card { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.card-head.divided { border-bottom: 1px solid var(--border); }
.card-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.card-desc { margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.card-body { padding: 16px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.input { height: 36px; width: 100%; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); padding: 0 10px; font-size: 14px; color: var(--text); transition: border-color .15s; }
.input::placeholder { color: var(--text-faint); }
.input:hover { border-color: var(--border-strong); }
select.input { padding-right: 28px; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 36px; height: 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-3); transition: background-color .15s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.theme-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); }
.theme-toggle button { width: 24px; height: 24px; display: inline-grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--text-faint); }
.theme-toggle button:hover { background: var(--surface-3); color: var(--text-muted); }
.theme-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); }

.user-btn { position: relative; }
.user-btn > button { display: flex; align-items: center; gap: 8px; height: 36px; max-width: 208px; padding: 0 6px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); text-align: left; }
.user-btn > button:hover { background: var(--surface-2); }
.avatar { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 700; }
.user-btn .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.user-btn .who b { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn .who span { font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; width: 240px; padding: 4px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-2); }
.menu-pop .head { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.menu-pop .head b { display: block; font-size: 14px; }
.menu-pop .head span { font-size: 11px; color: var(--text-faint); }
.menu-pop button { margin-top: 4px; display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; font-size: 14px; color: var(--text); text-align: left; }
.menu-pop button:hover { background: var(--surface-2); }

/* ---------- période + onglets ---------- */
.range { display: flex; flex-direction: column; gap: 8px; }
.range-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.range-row .field { width: 144px; }
.range-note { font-size: 12px; color: var(--text-muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 14px; transition: background-color .15s; }
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab[aria-selected="true"] { border-color: transparent; background: var(--accent-soft); color: var(--accent-text); }

/* ---------- tuiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile { text-align: left; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: 12px 16px; transition: background-color .15s, border-color .15s; min-width: 0; font: inherit; color: inherit; }
.tile:hover { border-color: var(--border-strong); background: var(--surface-2); }
.tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tile .lbl { display: block; font-size: 12px; font-weight: 400; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .val { display: block; margin-top: 6px; font-size: 20px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- bandeau de totaux (repris de totals-band du Hub) ---------- */
.band { display: flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.band-item { flex: 1 1 140px; min-width: 0; padding: 10px 16px; border-left: 1px solid var(--border); }
.band-item:first-child { border-left: 0; }
.band-item .lbl { display: block; font-size: 12px; color: var(--text-muted); }
.band-item .val { display: block; margin-top: 2px; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .band-item { flex-basis: 50%; border-left: 0; border-top: 1px solid var(--border); } .band-item:nth-child(-n + 2) { border-top: 0; } }

/* Ligne de mois dans le tableau des commissions */
.dt tbody tr.month-row td { background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 13px; }
.dt tbody tr.month-row:hover td { background: var(--surface-2); }

/* ---------- graphique ---------- */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.seg button { width: 32px; height: 30px; display: grid; place-items: center; border: 0; background: var(--surface); color: var(--text-muted); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.chart-wrap { padding: 16px; }
.chart-wrap svg { display: block; width: 100%; height: 260px; overflow: visible; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-axis { fill: var(--text-muted); font-size: 11px; font-family: var(--font); }
.chart-line { fill: none; stroke: var(--chart-1); stroke-width: 2; }
.chart-area { fill: var(--chart-1); opacity: .12; }
.chart-dot { fill: var(--chart-1); }
.chart-bar { fill: var(--chart-1); }
.chart-bar:hover { opacity: .8; }

/* ---------- tableau ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.toolbar .search { flex: 1 1 260px; max-width: 288px; }
.toolbar .search .input { background: var(--surface-2); border-color: var(--surface-2); font-size: 12px; }
.toolbar .spacer { flex: 1; }
.toolbar .input, .toolbar .btn { height: 32px; font-size: 12px; }
.toolbar .switch { height: 32px; font-size: 14px; }
.table-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.table-pad { padding: 16px; }
table.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.dt th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 8px 12px; font-size: 12px; font-weight: 400; color: var(--text-muted); text-align: left; white-space: nowrap; }
.dt th:first-child { border-top-left-radius: var(--r-sm); }
.dt th:last-child { border-top-right-radius: var(--r-sm); }
.dt td { border-bottom: 1px solid var(--border); padding: 8px 12px; vertical-align: middle; white-space: nowrap; color: var(--text); }
.dt tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.dt tbody tr:hover td { background: var(--surface-2); }
.dt tbody tr:last-child td { border-bottom: 0; }
.dt .r { text-align: right; }
.dt .dash { color: var(--text-faint); }
.dt .neg { color: var(--neg); }
.dt .pos { color: var(--pos); }
.dt td.name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.trader { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.copy-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 4px; background: transparent; color: var(--text-faint); }
.copy-btn:hover { background: var(--surface-3); color: var(--text); }

.pager { display: flex; align-items: center; gap: 8px; }
.pager select.input { height: 32px; width: auto; font-size: 12px; }
.pager .pos-text { min-width: 44px; text-align: center; font-size: 12px; color: var(--text); }

.empty { padding: 40px 16px; text-align: center; }
.empty b { display: block; font-size: 14px; }
.empty p { margin-top: 4px; font-size: 12px; color: var(--text-muted); max-width: 60ch; margin-inline: auto; }

/* ---------- en-tête de page (admin) ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.page-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.page-head p { margin-top: 2px; font-size: 12px; color: var(--text-muted); }

.notice { border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; }
.notice.accent { background: var(--accent-soft); color: var(--text); }
.notice.neg { background: var(--neg-soft); color: var(--neg); }
.notice code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: var(--surface); padding: 2px 6px; border-radius: 4px; }

/* ---------- dialogue ---------- */
.dialog-scrim { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / 0.45); display: grid; place-items: center; padding: 16px; }
.dialog { width: 100%; max-width: 440px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-2); }
.dialog form { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); font-size: 14px; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.choice input { accent-color: var(--accent); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 70; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: var(--r-sm); font-size: 14px; box-shadow: var(--shadow-2); }

/* ---------- connexion (reprise de /login du hub) ---------- */
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px; border-bottom: 1px solid var(--border); }
.login-top span { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.login-body { display: flex; justify-content: center; padding: 96px 20px; }
.login-col { width: 100%; max-width: 420px; }
.login-marks { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; }
.login-col h1 { text-align: center; font-size: 36px; line-height: 1.25; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.login-col h1 strong { font-weight: 700; }
.login-form { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.login-input { width: 100%; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); padding: 12px 16px; font-size: 15px; color: var(--text); transition: border-color .15s; }
.login-input::placeholder { color: var(--text-faint); }
.login-input:hover { border-color: var(--border-strong); }
.login-input:focus { border-color: var(--accent); }
.pwd { position: relative; }
.pwd .login-input { padding-right: 48px; }
.pwd button { position: absolute; inset: 0 0 0 auto; width: 48px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-faint); }
.pwd button:hover { color: var(--text-muted); }
.login-error { border-radius: var(--r-sm); background: var(--neg-soft); color: var(--neg); padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.login-submit { margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--accent); color: var(--text-inverse); padding: 12px 16px; font-size: 15px; font-weight: 700; transition: background-color .15s; }
.login-submit:hover { background: var(--accent-hover); }
.login-submit:disabled { opacity: .6; }
.login-note { margin-top: 32px; text-align: center; font-size: 14px; color: var(--text-muted); }
.login-note b { font-weight: 400; color: var(--text); }
.login-col hr { margin: 28px 0; border: 0; border-top: 1px solid var(--border); }
.login-foot { text-align: center; font-size: 12px; line-height: 1.7; color: var(--text-faint); }
@media (max-width: 640px) { .login-body { padding: 64px 20px; } .login-col h1 { font-size: 30px; } .login-top { padding: 16px 20px; } }

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