/* ==========================================================================
   TwitterScale v3 — D.A sobre « PartnerGrid » en sombre
   Typo Geist, cartes plates, bordures fines, chiffres en graisse moyenne,
   une seule couleur d'accent. Chargé APRÈS tokens.css et components.css.
   ========================================================================== */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090C;
  --surface: #0E1014;
  --surface-2: #121418;
  --surface-hover: #16191F;
  --surface-3: #1A1D24;
  --border: #1E2128;
  --border-strong: #2A2E37;

  --text: #EDEEF0;
  --text-2: #A1A5AE;
  --text-3: #6B707B;

  --accent: #3B6BFF;
  --accent-strong: #5580FF;
  --accent-weak: rgba(59, 107, 255, .12);
  --accent-weak-2: rgba(59, 107, 255, .2);
  --accent-text: #8EA8FF;

  --active: #34C77B;  --active-bg: rgba(52, 199, 123, .1);  --active-dot: #34C77B;
  --cred:   #A68BFA;  --cred-bg:   rgba(166, 139, 250, .1); --cred-dot:   #A68BFA;
  --warmup: #F5A524;  --warmup-bg: rgba(245, 165, 36, .1);  --warmup-dot: #F5A524;
  --danger: #F2555A;  --danger-bg: rgba(242, 85, 90, .1);   --danger-dot: #F2555A;
  --paused: #8A8F99;  --paused-bg: rgba(138, 143, 153, .1); --paused-dot: #6B707B;

  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -16px rgba(0,0,0,.75);

  --r-sm: 8px;
  --r: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font: "Geist", "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist", "Inter Tight", -apple-system, sans-serif;
}

html, body { background: var(--bg); color: var(--text); font-family: var(--font); letter-spacing: -.006em; }
/* Geist n'est chargée qu'en 400 et 500 : tout ce qui demandait 600-800 s'affiche en 500, sans faux gras */
html { font-synthesis: none; }
button, input, textarea, select { font-family: var(--font); }
.mono { font-family: var(--font); font-variant-numeric: tabular-nums; }
::selection { background: rgba(59,107,255,.35); }
::-webkit-scrollbar-thumb { background: #22252D !important; background-clip: content-box !important; border: 3px solid transparent; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- composants de base (tous les menus) ---------- */
.ts-card, .ts-kpi, .ts-kpi-band, .ts-queue-card, .ts-wm-day, .ts-cal, .ts-fmt {
  background: var(--surface) !important; border-color: var(--border) !important; box-shadow: none !important;
}
.ts-kpi-cell { background: var(--surface) !important; }
.ts-card { border-radius: var(--r-lg); }
.ts-card-head { border-bottom-color: var(--border); }
.ts-card-title { font-weight: 500; }

.ts-btn { border-radius: 8px; font-weight: 500; letter-spacing: 0; transition: background .15s, border-color .15s, color .15s; }
.ts-btn-primary { background: var(--accent); color: #fff; border: 0; box-shadow: none; }
.ts-btn-primary:hover { background: var(--accent-strong); }
.ts-btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.ts-btn-secondary:hover { background: var(--surface-hover); border-color: #353A45; }
.ts-btn-ghost:hover { background: var(--surface-hover); }
.ts-btn-danger:hover { background: rgba(242,85,90,.16); }
.ts-btn-success { box-shadow: none; }

.ts-iconbtn { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent; }
.ts-iconbtn:hover { background: var(--surface-hover); }
.ts-iconbtn-badge { border-color: var(--bg); }

.ts-table thead th { background: transparent; color: var(--text-3); font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; border-bottom: 1px solid var(--border); }
.ts-table tbody td { border-bottom-color: var(--border); }
.ts-table tbody tr:hover { background: var(--surface-2); }

.ts-seg { background: transparent; border-color: var(--border-strong); border-radius: 8px; }
.ts-seg-item { border-radius: 6px; color: var(--text-3); font-weight: 500; }
.ts-seg-item:hover { color: var(--text); }
.ts-seg-item.on { background: var(--surface-3); color: var(--text); box-shadow: none; }

.ts-chip { background: transparent; border-color: var(--border-strong); }
.ts-pill { border-radius: 5px !important; font-weight: 400 !important; }
.ts-badge { font-weight: 500; }
.ts-kbd { background: var(--surface-3); border-color: var(--border-strong); box-shadow: none; }
.ts-search { background: transparent; border-color: var(--border-strong); border-radius: 8px; }
.ts-search:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,107,255,.15); }

.ts-overlay { background: rgba(4,5,8,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ts-modal { background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.ts-toast { background: var(--surface-3) !important; border: 1px solid var(--border-strong) !important; }
.ts-divider, .ts-vdivider { background: var(--border); }

.ts-page { padding: 32px 36px 56px; max-width: 1360px; }
.ts-page-title { font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.ts-page-sub { color: var(--text-2); font-size: 13.5px; }
.ts-kpi-val { font-weight: 500; letter-spacing: -.03em; }


/* ---------- version claire (switcher dans la barre du haut) ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #FAFBFC;
  --surface-hover: #F2F4F7;
  --surface-3: #EDEFF3;
  --border: #E6E8EC;
  --border-strong: #D9DCE2;
  --text: #101217;
  --text-2: #5A606C;
  --text-3: #8B909B;
  --accent: #2F5BFF;
  --accent-strong: #1E46E8;
  --accent-weak: rgba(47, 91, 255, .08);
  --accent-weak-2: rgba(47, 91, 255, .15);
  --accent-text: #2346D6;
  --active: #12925A;  --active-bg: #E8F6EF;  --active-dot: #1FA968;
  --cred:   #6D4BD8;  --cred-bg:   #F1ECFD;  --cred-dot:   #8B6CF0;
  --warmup: #B86E00;  --warmup-bg: #FDF2E0;  --warmup-dot: #F2A31B;
  --danger: #D2293A;  --danger-bg: #FDECEE;  --danger-dot: #E5384A;
  --paused: #6B7180;  --paused-bg: #F1F2F4;  --paused-dot: #9AA0AB;
  --shadow-md: 0 10px 28px -12px rgba(16,24,40,.18);
  --shadow-lg: 0 24px 56px -18px rgba(16,24,40,.28);
}
[data-theme="light"] .ts-sidebar.v3, [data-theme="light"] .ts-topbar.v3 { background: var(--bg); }
[data-theme="light"] .d3-card, [data-theme="light"] .d3-kpis, [data-theme="light"] .v3-plan, [data-theme="light"] .v3-me { box-shadow: 0 1px 2px rgba(16,24,40,.04); }
[data-theme="light"] .ts-overlay { background: rgba(16,18,23,.35); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #D5D8DE !important; background-clip: content-box !important; }
[data-theme="light"] .v3-plan-bar i { background: var(--text); }
[data-theme="light"] .d3-disc-in { box-shadow: 0 0 0 2px #fff; }

/* bascule clair / sombre */
.v3-theme { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; border: 1px solid var(--border-strong); }
.v3-theme button { width: 32px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--text-3); background: none; border: 0; cursor: pointer; transition: background .15s, color .15s; }
.v3-theme button:hover { color: var(--text); }
.v3-theme button.on { background: var(--surface-3); color: var(--text); }

/* ==========================================================================
   SHELL
   ========================================================================== */
.ts-sidebar.v3 { background: var(--bg); border-right: 1px solid var(--border); padding: 24px 16px 16px; gap: 1px; }
.v3 .ts-brand { padding: 0 10px 26px; gap: 10px; }
.v3-logo { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; overflow: hidden; }
.v3-logo img { width: 100%; height: 100%; display: block; }
.v3-brand-name { font-size: 16px; font-weight: 500; letter-spacing: -.02em; color: var(--text); }
.v3-brand-name b { font-weight: 500; }

.v3 .ts-nav-group { padding: 20px 10px 8px; font-size: 11.5px; font-weight: 400; letter-spacing: .04em; color: var(--text-3); }
.v3 .ts-nav-group:hover { color: var(--text-2); }
.v3 .ts-nav-group svg { opacity: 0; transition: opacity .15s, transform .16s; }
.v3 .ts-nav-group:hover svg { opacity: .7; }
.v3 .ts-nav-item { gap: 11px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-weight: 400; font-size: 14px; }
.v3 .ts-nav-item svg { color: var(--text-3); }
.v3 .ts-nav-item:hover { background: var(--surface-hover); color: var(--text); }
.v3 .ts-nav-item.is-active { background: var(--surface-3); color: var(--text); font-weight: 500; box-shadow: none; }
.v3 .ts-nav-item.is-active svg { color: var(--accent-text); }
.v3 .ts-nav-item.is-active::before { display: none; }
.v3 .ts-nav-create { background: transparent; color: var(--text-2); margin: 0; box-shadow: none; font-weight: 400; }
.v3 .ts-nav-create:hover { background: var(--surface-hover); color: var(--text); }
.v3 .ts-nav-create.is-active { background: var(--surface-3); color: var(--text); }
.v3 .ts-nav-count { font-family: var(--font); font-size: 11.5px; font-weight: 400; color: var(--text-3); background: transparent; border: 0; padding: 0 2px; }
.v3 .ts-nav-item.is-active .ts-nav-count { background: transparent; color: var(--text-2); }
.v3 .ts-nav-count.alert { color: var(--danger); background: transparent; }

.v3-plan { margin: 0 0 12px; padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.v3-plan-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.v3-plan-name { font-size: 14px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-plan-tag { flex: none; font-size: 12px; color: var(--text-3); }
.v3-plan-row { display: flex; justify-content: space-between; margin: 6px 0 12px; font-size: 12.5px; color: var(--text-3); }
.v3-plan-row b { font-weight: 400; color: var(--text-2); font-variant-numeric: tabular-nums; }
.v3-plan-bar { height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.v3-plan-bar i { display: block; height: 100%; border-radius: inherit; background: var(--text); transition: width .8s var(--ease); }
.v3-plan-btn { margin-top: 16px; width: 100%; height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); font: 500 13.5px var(--font); cursor: pointer; transition: background .15s; }
.v3-plan-btn:hover { background: var(--surface-hover); }
.v3-plan-btn.cta { border: 0; background: var(--accent); color: #fff; }
.v3-plan-btn.cta:hover { background: var(--accent-strong); }

.v3-me { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: background .15s; }
.v3-me:hover { background: var(--surface-hover); }
.v3-me-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 500; font-size: 12.5px; color: var(--text); background: var(--surface-3); border: 1px solid var(--border-strong); }
.v3-me b { display: block; font-size: 14px; font-weight: 500; }
.v3-me span { font-size: 12px; color: var(--text-3); }
.v3-menu { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; padding: 5px; border-radius: 10px; z-index: 60; animation: pop .16s ease; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }

.ts-topbar.v3 { height: var(--topbar-h); padding: 0 36px; gap: 10px; border-bottom: 1px solid var(--border); background: var(--bg); }
.v3-crumb { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-3); white-space: nowrap; margin-right: 8px; }
.v3-crumb b { color: var(--text); font-weight: 500; }
.v3-crumb i { width: 1px; height: 18px; background: var(--border-strong); margin: 0 6px 0 10px; }
.ts-topbar.v3 .ts-modelsel { height: 38px; border-radius: 8px; border-color: var(--border-strong); background: transparent; box-shadow: none; }
.ts-topbar.v3 .ts-modelsel span { font-weight: 400 !important; }
.ts-topbar.v3 .ts-modelsel:hover { background: var(--surface-hover); }
.ts-topbar [style*="z-index: 60"], .ts-topbar [style*="z-index: 90"] { background: var(--surface-2) !important; border-color: var(--border-strong) !important; }

@media (max-width: 860px) {
  .ts-topbar.v3 { padding: 0 12px; }
  .v3-crumb { display: none; }
  .ts-page { padding: 20px 16px 40px; }
}

/* ==========================================================================
   ACCUEIL v3 — préfixe .d3-
   ========================================================================== */
.d3 { display: flex; flex-direction: column; gap: 24px; }
.d3 button { font: inherit; }
@keyframes d3Up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes d3GrowY { from { transform: scaleY(0); } }
@keyframes d3GrowX { from { transform: scaleX(0); } }
.d3-in { animation: d3Up .45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms); }

.d3-card { position: relative; min-width: 0; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.d3-card-h { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 0; flex-wrap: wrap; }
.d3-ico { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; flex: none; color: var(--text-2); border: 1px solid var(--border-strong); }
.d3-t { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.d3-s { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.d3-big { font-size: 26px; font-weight: 500; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.d3-big small { font-size: 15px; color: var(--text-3); font-weight: 400; letter-spacing: 0; }
.d3-link { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent;
  color: var(--text); font-size: 13px; font-weight: 400; cursor: pointer; transition: background .15s; white-space: nowrap; }
.d3-link:hover { background: var(--surface-hover); }
.d3-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; border: 1px solid var(--border-strong); }
.d3-seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--text-3); font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.d3-seg button:hover { color: var(--text); }
.d3-seg button.on { background: var(--surface-3); color: var(--text); }
.d3-seg button em { font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* en-tête */
.d3-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.d3-hi { font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.d3-lede { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.d3-lede b { font-weight: 500; color: var(--text); }
.d3-quick { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.d3-qbtn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent;
  color: var(--text); font-size: 13.5px; cursor: pointer; transition: background .15s; }
.d3-qbtn svg { color: var(--text-2); }
.d3-qbtn:hover { background: var(--surface-hover); }
.d3-qbtn .n { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* bande KPI */
.d3-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 12px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.d3-kpi { position: relative; display: flex; flex-direction: column; padding: 20px; min-width: 0; border-left: 1px solid var(--border); }
.d3-kpi:first-child { border-left: 0; }
.d3-kpi-h { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.d3-kpi-v { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.d3-kpi-v small { font-size: 15px; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.d3-kpi-f { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 28px; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d3-delta { font-variant-numeric: tabular-nums; flex: none; }
.d3-delta.up { color: var(--active); }
.d3-delta.down { color: var(--danger); }
.d3-delta.flat { color: var(--text-2); }
.d3-spark { display: none; }
.d3-stack { display: flex; gap: 3px; height: 5px; margin-top: auto; }
.d3-stack i { border-radius: 3px; transform-origin: left; animation: d3GrowX .8s var(--ease) backwards; }
.d3-legend { display: flex; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.d3-legend span { display: inline-flex; align-items: center; gap: 6px; }
.d3-legend i { width: 6px; height: 6px; border-radius: 50%; }
.d3-legend b { font-weight: 400; color: var(--text-2); }
.d3-qbar { height: 5px; margin-top: auto; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.d3-kpi .d3-stack, .d3-kpi .d3-qbar { margin-top: auto; }
.d3-kpi .d3-qbar { margin-bottom: 7px; }
.d3-kpi-v + .d3-stack, .d3-kpi-v + .d3-qbar { margin-top: 28px; }
.d3-qbar i { display: block; height: 100%; border-radius: inherit; transform-origin: left; animation: d3GrowX 1s .2s var(--ease) backwards; }
.d3-unl { align-self: center; margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--accent-text); letter-spacing: 0; }

/* grilles */
.d3-g1 { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 24px; }
.d3-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* graphe — axe Y à droite, barres pleines, pointillés verticaux */
.d3-chart { --bh: 230px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 0; padding: 26px 20px 18px; margin-top: auto; }
.d3-yax { position: relative; height: var(--bh); border-left: 1px solid var(--border-strong); font-size: 12px; color: var(--text-3); }
.d3-yax span { position: absolute; left: 10px; transform: translateY(50%); font-variant-numeric: tabular-nums; }
.d3-plot { position: relative; height: var(--bh); border-bottom: 1px solid var(--border-strong); }
.d3-gl { display: none; }
.d3-goal { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--warmup); opacity: .75; z-index: 3; pointer-events: none; }
.d3-goal span { position: absolute; left: 8px; top: -20px; font-size: 12px; color: var(--warmup); }
.d3-cols { position: absolute; inset: 0 8px; display: grid; gap: 12px; align-items: end; }
.d3-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.d3-col::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--border); }
.d3-bar { position: relative; width: 100%; max-width: 34px; min-height: 3px; border-radius: 2px 2px 0 0; transform-origin: bottom; background: var(--accent);
  animation: d3GrowY .7s var(--ease) backwards; animation-delay: calc(var(--i) * 25ms + 200ms); transition: background .15s; }
.d3-col.on .d3-bar { background: var(--accent-strong); }
.d3-bar0 { position: relative; width: 60%; max-width: 20px; height: 2px; background: var(--border-strong); }
.d3-xax { display: grid; gap: 12px; margin-top: 10px; padding: 0 8px; }
.d3-xax span { text-align: center; font-size: 12px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.d3-xax span.today { color: var(--text); }
.d3-tt { position: absolute; z-index: 9; bottom: calc(100% + 8px); width: 150px; padding: 10px 12px; border-radius: 8px; pointer-events: none; background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.d3-tt.c { left: 50%; transform: translateX(-50%); } .d3-tt.l { left: 0; } .d3-tt.r { right: 0; }
.d3-tt-d { font-size: 12px; color: var(--text-3); text-transform: capitalize; }
.d3-tt-v { margin-top: 3px; font-size: 15px; font-weight: 500; }
.d3-tt-o { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-2); }

/* objectif du jour — deux disques façon PartnerGrid */
.d3-goalcard { align-items: stretch; }
.d3-disc { position: relative; width: 220px; height: 220px; margin: 22px auto 10px; border-radius: 50%; background: var(--warmup-dot); display: grid; place-items: center; }
.d3-disc-in { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface);
  display: grid; place-items: center; transition: width .9s var(--ease), height .9s var(--ease); animation: d3Pop .8s var(--ease) backwards .3s; }
@keyframes d3Pop { from { transform: translateX(-50%) scale(.2); opacity: 0; } }
.d3-disc-in b { font-size: 26px; font-weight: 500; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.d3-disc-top { position: absolute; top: 22px; left: 0; right: 0; text-align: center; font-size: 13px; color: #1A1206; font-weight: 500; }
.d3-disc.done { background: var(--active); }
.d3-goal-txt { padding: 6px 20px 20px; margin-top: auto; font-size: 14px; color: var(--text-2); }
.d3-goal-txt b { font-weight: 500; color: var(--text); }

/* listes */
.d3-list { display: flex; flex-direction: column; padding: 12px 20px 10px; }
.d3-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; border-top: 1px solid var(--border); }
.d3-row:first-child { border-top: 0; }
.d3-row:hover .d3-x b { color: var(--accent-text); }
.d3-x { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.d3-x b { font-size: 14px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.d3-x span { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.d3-time { width: 42px; flex: none; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.d3-row.next .d3-time { color: var(--accent-text); }
.d3-tag { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 400; }
.d3-tag.ok { color: var(--active); background: var(--active-bg); }
.d3-tag.sched { color: var(--accent-text); background: var(--accent-weak); }
.d3-tag.wait { color: var(--warmup); background: var(--warmup-bg); }
.d3-tag.bad { color: var(--danger); background: var(--danger-bg); }
.d3-more { align-self: flex-start; margin: 4px 0 0; border: 0; background: none; color: var(--text-2); font-size: 13px; cursor: pointer; }
.d3-more:hover { color: var(--text); }
.d3-rank { width: 16px; flex: none; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.d3-hbar { width: 64px; height: 4px; flex: none; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.d3-hbar i { display: block; height: 100%; border-radius: inherit; transform-origin: left; animation: d3GrowX .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms + 400ms); }
.d3-val { min-width: 44px; text-align: right; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.d3-todo-ico { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--c, var(--text-2)); border: 1px solid var(--border-strong); }
.d3-row.crit .d3-todo-ico { --c: var(--danger); }
.d3-row.warn .d3-todo-ico { --c: var(--warmup); }
.d3-row.info .d3-todo-ico { --c: var(--text-2); }
.d3-count { margin-left: auto; font-size: 13px; color: var(--text-3); }
.d3-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 36px 20px; text-align: center; font-size: 13px; color: var(--text-3); }
.d3-empty-art { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); border: 1px solid var(--border-strong); }
.d3-empty.ok .d3-empty-art { color: var(--active); }
.d3-empty b { color: var(--text-2); font-weight: 400; font-size: 14px; }

/* tableau comptes */
.d3-accts .d3-card-h { align-items: center; }
.d3-accts table { margin-top: 16px; }
.d3-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 780px; }
.d3-table th { text-align: left; padding: 12px 20px; font-size: 13px; font-weight: 400; color: var(--text-3); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
.d3-table td { padding: 0 20px; height: 60px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.d3-table tbody tr { cursor: pointer; transition: background .12s; }
.d3-table tbody tr:hover { background: var(--surface-2); }
.d3-table tbody tr:last-child td { border-bottom: 0; }
.d3-table .num { font-variant-numeric: tabular-nums; }
.d3-acc { display: flex; align-items: center; gap: 12px; min-width: 0; }
.d3-acc b { display: block; font-weight: 400; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d3-acc span { font-size: 12.5px; color: var(--text-3); }
.d3-sb { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger-dot); border: 2px solid var(--surface); }
.d3-pips { display: flex; align-items: center; gap: 3px; }
.d3-pips i { width: 6px; height: 12px; border-radius: 2px; background: var(--surface-3); }
.d3-pips i.on { background: var(--accent); }
.d3-pips span { margin-left: 8px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.d3-health { display: flex; align-items: center; gap: 10px; }
.d3-health .d3-hbar { width: 56px; }
.d3-health b { font-weight: 400; font-size: 13.5px; font-variant-numeric: tabular-nums; }

@media (max-width: 1240px) {
  .d3-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d3-kpi:nth-child(4) { border-left: 0; }
  .d3-kpi:nth-child(n+4) { border-top: 1px solid var(--border); }
  .d3-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .d3-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d3-kpi:nth-child(n) { border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
  .d3-kpi:nth-child(odd) { border-left: 0; }
  .d3-kpi:nth-child(-n+2) { border-top: 0; }
  .d3-g1 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .d3-hi { font-size: 22px; }
  .d3-quick { margin-left: 0; width: 100%; }
  .d3-qbtn { flex: 1; justify-content: center; padding: 0 8px; }
  .d3-g3 { grid-template-columns: minmax(0, 1fr); }
  .d3-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .d3-seg::-webkit-scrollbar { display: none; }
  .d3-accts .d3-seg { order: 5; margin-left: 0 !important; }
  .d3-kpi { padding: 14px; }
  .d3-kpi-h { white-space: normal; font-size: 12.5px; gap: 8px; line-height: 1.3; }
  .d3-kpi-h .d3-ico { display: none; }
  .d3-kpi-v { font-size: 22px; margin-top: 8px; }
  .d3-kpi-f { padding-top: 14px; font-size: 12px; white-space: normal; }
  .d3-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .d3-kpi .d3-legend { flex-wrap: wrap; row-gap: 4px; white-space: normal; }
  .d3-chart { --bh: 160px; padding: 18px 12px 14px; grid-template-columns: minmax(0, 1fr) 30px; }
  .d3-cols, .d3-xax { gap: 4px; }
  .d3-xax span:nth-child(odd):not(.today) { visibility: hidden; }
  .d3-disc { width: 180px; height: 180px; }
}
/* Objectif du jour : fenêtre d'édition */
.d3-goalcard .d3-card-h { align-items: flex-start; }
.ts-modal.d3-gm { width: min(460px, 94vw); max-height: 86vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 16px; }
.d3-gm-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.d3-gm-h .d3-big b { font-weight: 500; }
.d3-gm-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.d3-gm-chips { display: flex; gap: 6px; }
.d3-gm-chips button { width: 34px; height: 32px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.d3-gm-chips button:hover { background: var(--surface-hover); color: var(--text); }
.d3-gm-chips button.on { border-color: var(--accent); background: var(--accent-weak); color: var(--accent-text); }
.d3-gm-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 20px; }
.d3-gm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.d3-gm-row:last-child { border-bottom: 0; }
.d3-step { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; flex: none; }
.d3-step button { width: 32px; height: 100%; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 16px; cursor: pointer; }
.d3-step button:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
.d3-step button:disabled { opacity: .35; cursor: default; }
.d3-step input { width: 40px; height: 100%; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.d3-step input::-webkit-outer-spin-button, .d3-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.d3-gm-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
@media (max-width: 760px) {
  .ts-modal.d3-gm { width: 100%; max-height: 90vh; border-radius: 16px 16px 0 0; }
  .d3-gm-all { flex-direction: column; align-items: flex-start; }
  .d3-gm-f > * { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { .d3 * { animation: none !important; } }

/* ==========================================================================
   WIZARD « Créer un post » — v3
   ========================================================================== */
.ts-modal.wz-modal { max-width: 1120px; height: min(90vh, 760px); grid-template-columns: 220px minmax(0, 1fr) 400px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); }
.wz-prog { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 7; background: transparent; }
.wz-prog i { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.wz-close { top: 14px; right: 14px; }
.wz-close .ts-iconbtn { width: 34px; height: 34px; }

/* rail */
.wz-rail { padding: 22px 16px 18px; background: var(--bg); border-right: 1px solid var(--border); gap: 0; }
.wz-brand { padding: 0 4px 24px; gap: 10px; }
.wz-brand-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); box-shadow: none; }
.wz-brand-t { font-size: 15px; font-weight: 500; letter-spacing: -.015em; }
.wz-steps { position: relative; display: flex; flex-direction: column; gap: 4px; }
.wz-steps::before { content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 1px; background: var(--border-strong); }
.wz-st { position: relative; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; border-radius: 10px; color: var(--text-3); font-size: 14px; font-weight: 400; }
.wz-st.is-active { background: var(--surface-3); box-shadow: none; color: var(--text); font-weight: 500; }
.wz-st.is-done { color: var(--text-2); }
.wz-st.is-done:hover { background: var(--surface-hover); }
.wz-st-n { position: relative; z-index: 1; width: 24px; height: 24px; font-family: var(--font); font-size: 12px; font-weight: 500; background: var(--bg); color: var(--text-3); border: 1px solid var(--border-strong); }
.wz-st.is-active .wz-st-n { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-weak); }
.wz-st.is-done .wz-st-n { background: var(--text); border-color: var(--text); color: var(--bg); }
.wz-st-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wz-st-v { font-size: 12px; font-weight: 400; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.wz-rail-foot { padding: 14px 4px 0; border-top: 1px solid var(--border); gap: 8px; }
.wz-quota { font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.wz-quota .mono { font-family: var(--font); color: var(--text-2); font-variant-numeric: tabular-nums; }
.wz-quota-bar { height: 5px; background: var(--surface-3); }
.wz-quota-bar > i { background: var(--accent); }

/* flux */
.wz-flow { background: var(--surface); }
.wz-body { padding: 34px 34px 24px; gap: 22px; }
.wz-step { gap: 22px; }
.wz-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.wz-dots { display: inline-flex; gap: 4px; }
.wz-dots i { width: 16px; height: 3px; border-radius: 3px; background: var(--surface-3); transition: background .3s, width .3s; }
.wz-dots i.d { background: var(--text-3); }
.wz-dots i.a { width: 26px; background: var(--accent); }
.wz-h { font-size: 26px; font-weight: 500; letter-spacing: -.03em; margin-top: 8px; }
.wz-lbl { font-size: 13px; font-weight: 500; color: var(--text-2); }
.wz-lbl em { font-style: normal; color: var(--text-3); font-weight: 400; }

/* créatrices */
.wz-cgrid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.wz-c { position: relative; overflow: hidden; gap: 6px; padding: 22px 12px 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); transition: border-color .18s, transform .18s var(--ease), background .18s; }
.wz-c::before { content: ""; position: absolute; inset: 0 0 auto; height: 64px; background: radial-gradient(120px 60px at 50% 0%, color-mix(in srgb, var(--mc) 28%, transparent), transparent 75%); opacity: .7; transition: opacity .2s; pointer-events: none; }
.wz-c:hover { border-color: color-mix(in srgb, var(--mc) 45%, var(--border-strong)); transform: translateY(-2px); box-shadow: none; }
.wz-c:hover::before { opacity: 1; }
.wz-c.is-sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); box-shadow: 0 0 0 3px var(--accent-weak); }
.wz-c-av { position: relative; margin-bottom: 6px; }
.wz-c-av .ts-avatar { border-radius: 50% !important; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px color-mix(in srgb, var(--mc) 50%, transparent) !important; font-size: 17px !important; }
.wz-c-name { font-size: 14.5px; font-weight: 500; }
.wz-c-sub { font-size: 12.5px; color: var(--text-3); }
.wz-c-dots { display: flex; gap: 4px; margin-top: 6px; }
.wz-c-dots i { width: 6px; height: 6px; border-radius: 50%; }
.wz-c-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); transform: scale(0); transition: transform .25s var(--ease); }
.wz-c.is-sel .wz-c-check { transform: scale(1); }

/* comptes */
.wz-a { gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); transition: border-color .15s, background .15s; }
.wz-a:hover { border-color: #3A3F4B; background: var(--surface-2); }
[data-theme="light"] .wz-a:hover { border-color: #C9CDD5; }
.wz-a.is-sel { border-color: var(--accent); background: var(--accent-weak); }
.wz-a-h { font-size: 14px; font-weight: 500; }
.wz-a-sub { font-size: 12.5px; color: var(--text-3); }
.wz-radio { width: 20px; height: 20px; border: 1px solid var(--border-strong); }

/* formats */
.wz-fgrid { gap: 12px; }
.wz-f { gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); }
.wz-f:hover { border-color: #3A3F4B; transform: translateY(-2px); box-shadow: none; }
[data-theme="light"] .wz-f:hover { border-color: #C9CDD5; }
.wz-f.is-sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); box-shadow: 0 0 0 3px var(--accent-weak); }
.wz-f-ico { width: 30px; height: 30px; border-radius: 8px; }
.wz-f-mini { height: 54px; border-radius: 10px; background: var(--bg); border-color: var(--border); }
.wz-new { background: var(--accent); font-weight: 600; letter-spacing: .04em; }

/* texte */
.wz-ta { border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg); font-size: 15.5px; }
.wz-ta:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-weak); }
.wz-v { border: 1px solid var(--border-strong); border-radius: 12px; font-size: 13.5px; }
.wz-v.is-sel { border-color: var(--accent); background: var(--accent-weak); }
.wz-v-n { font-family: var(--font); font-weight: 500; border-radius: 6px; background: var(--surface-3); }

/* pied */
.wz-foot { padding: 14px 34px; border-top: 1px solid var(--border); background: var(--surface); }
.wz-foot .ts-btn-md { height: 42px; padding: 0 18px; }
.wz-foot .ts-btn-primary:disabled { opacity: 1; background: var(--surface-3); color: var(--text-3); }

/* aperçu */
.wz-pane { background: var(--bg); border-left: 1px solid var(--border); }
.wz-pane-head { padding: 22px 60px 14px 22px; }
.wz-pane-head > span:nth-child(2) { font-size: 14px !important; font-weight: 500 !important; }
.wz-seg { border-radius: 8px; border-color: var(--border-strong); background: transparent; }
.wz-seg button { height: 26px; width: 30px; padding: 0; display: grid; place-items: center; border-radius: 6px; }
.wz-seg button.on { background: var(--surface-3); box-shadow: none; }
.wz-pane-body { padding: 4px 22px 10px; display: flex; flex-direction: column; justify-content: center; }
.wz-x { border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.wz-meta { padding: 12px 22px 22px; }
.wz-meta .ts-chip { border-radius: 7px; font-size: 12px; }

@media (max-width: 1000px) {
  .ts-modal.wz-modal { grid-template-columns: minmax(0, 1fr) 340px; }
  .wz-steps { flex-direction: row; }
  .wz-steps::before { display: none; }
  .wz-st { min-height: 0; }
  .wz-st-v { display: none; }
  .wz-rail-foot { border-top: 0; }
}
@media (max-width: 860px) {
  .wz-body { padding: 22px 18px 8px; }
  .wz-cgrid { grid-template-columns: repeat(2, 1fr); }
  .wz-h { font-size: 21px; }
  .wz-foot { padding: 12px 16px; }
}

/* ==========================================================================
   FICHE COMPTE — pop-up centrale (préfixe .ad-)
   ========================================================================== */
.ts-modal.ad { max-width: 1000px; width: 100%; height: min(88vh, 720px); max-height: 92vh; display: grid; grid-template-columns: 312px minmax(0, 1fr); border-radius: 16px; overflow: hidden; padding: 0; }
.ad button { font: inherit; }

.ad-side { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 28px 22px 18px; background: var(--bg); border-right: 1px solid var(--border); overflow-y: auto; min-height: 0; }
.ad-side::before { content: ""; position: absolute; inset: 0 0 auto; height: 150px; pointer-events: none; background: radial-gradient(260px 130px at 50% 0%, color-mix(in srgb, var(--mc) 26%, transparent), transparent 75%); }
.ad-id { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ad-av { position: relative; margin-bottom: 8px; }
.ad-av .ts-avatar { border-radius: 50% !important; font-size: 21px !important; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px color-mix(in srgb, var(--mc) 55%, transparent) !important; }
.ad-av-alert { position: absolute; right: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--danger-dot); border: 3px solid var(--bg); }
.ad-handle { display: flex; align-items: center; gap: 6px; max-width: 100%; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.ad-model { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }

.ad-health { padding: 18px 16px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.ad-gauge { position: relative; width: 172px; margin: 0 auto; }
.ad-gauge svg { display: block; width: 100%; }
.ad-gauge-in { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.ad-gauge-in b { font-size: 34px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ad-gauge-in span { font-size: 12.5px; margin-top: 2px; }
.ad-signals { display: flex; flex-direction: column; margin-top: 16px; }
.ad-signals > div { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; }
.ad-signals i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ad-signals span { flex: 1; color: var(--text-2); }
.ad-signals b { font-weight: 500; font-variant-numeric: tabular-nums; }

.ad-qa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-qa > * { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font-size: 13px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.ad-qa > * svg { color: var(--text-3); transition: color .15s; }
.ad-qa > *:hover { background: var(--surface-hover); }
.ad-qa > *:hover svg { color: var(--accent-text); }
.ad-del { margin-top: auto; align-self: center; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font-size: 12.5px; cursor: pointer; transition: color .15s, background .15s; }
.ad-del:hover { color: var(--danger); background: var(--danger-bg); }

.ad-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.ad-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px 0 26px; border-bottom: 1px solid var(--border); flex: none; }
.ad-tabs { display: flex; gap: 22px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tabs button { position: relative; height: 44px; padding: 0; border: 0; background: none; color: var(--text-3); font-size: 14px; cursor: pointer; white-space: nowrap; transition: color .15s; }
.ad-tabs button:hover { color: var(--text); }
.ad-tabs button.on { color: var(--text); font-weight: 500; }
.ad-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }
.ad-x { width: 34px; height: 34px; margin-bottom: 10px; flex: none; }
.ad-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding: 24px 26px; animation: d3Up .3s var(--ease); }
.ad-foot { display: flex; align-items: center; gap: 10px; padding: 14px 26px; border-top: 1px solid var(--border); flex: none; }

.ad-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ad-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 500; }
.ad-sec-h em { font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.ad-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ad-stats > div { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.ad-stats > div:nth-child(3n+1) { border-left: 0; }
.ad-stats > div:nth-child(-n+3) { border-top: 0; }
.ad-stats span { font-size: 12.5px; color: var(--text-3); }
.ad-stats b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.ad-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ad-box { padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.ad-cad { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 104px; border-bottom: 1px solid var(--border-strong); padding-bottom: 0; margin-bottom: 22px; }
.ad-cad > div { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.ad-cad i { width: 100%; max-width: 26px; border-radius: 2px 2px 0 0; background: var(--accent-weak-2); transform-origin: bottom; animation: d3GrowY .6s var(--ease) backwards; }
.ad-cad .today i { background: var(--accent); }
.ad-cad em { font-style: normal; font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.ad-cad .today em { color: var(--text); }
.ad-cad span { position: absolute; bottom: -20px; font-size: 12px; color: var(--text-3); }
.ad-cad .today span { color: var(--text); }
.ad-lt { font-size: 13.5px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ad-ltstats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.ad-ltstats div { display: flex; flex-direction: column; gap: 2px; }
.ad-ltstats b { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ad-ltstats span { font-size: 11.5px; color: var(--text-3); }
.ad-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 104px; color: var(--text-3); font-size: 13px; }
.ad-empty.tall { min-height: 240px; }
.ad-mini { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font-size: 12.5px; font-weight: 400; cursor: pointer; }
.ad-mini:hover { background: var(--surface-hover); }
.ad-mini:disabled { opacity: .5; }

.ad-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
.ad-row-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--border-strong); color: var(--text-2); }
.ad-row b { font-size: 14px; font-weight: 500; }
.ad-row span { font-size: 12.5px; color: var(--text-3); }
.ad-alert { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--warmup-bg); color: var(--warmup); }
.ad-alert.crit { background: var(--danger-bg); color: var(--danger); }
.ad-alert b { font-size: 14px; font-weight: 500; }
.ad-alert span { font-size: 12.5px; color: var(--text-2); }

.ad-tl { display: flex; flex-direction: column; }
.ad-tl > div { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 0 0 20px 0; }
.ad-tl > div > i { position: relative; z-index: 1; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; box-shadow: 0 0 0 4px var(--surface); }
.ad-tl > div:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: -6px; width: 1px; background: var(--border-strong); }
.ad-tl b { font-size: 14px; font-weight: 500; }
.ad-tl span { font-size: 12.5px; color: var(--text-3); }
.ad-tl em { font-style: normal; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }

.ad-wm { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ad-wm > div { height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; color: var(--text-3); border: 1px solid var(--border-strong); font-variant-numeric: tabular-nums; }
.ad-wm > div.done { background: var(--warmup-bg); border-color: transparent; color: var(--warmup); }
.ad-wm > div.cur { background: var(--warmup-dot); border-color: var(--warmup-dot); color: #1A1206; font-weight: 600; box-shadow: 0 0 0 4px var(--warmup-bg); }
.ad-steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ad-steps > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-left: 1px solid var(--border); }
.ad-steps > div:first-child { border-left: 0; }
.ad-steps > div.on { background: var(--accent-weak); }
.ad-steps em { font-style: normal; font-size: 12px; color: var(--text-3); }
.ad-steps b { font-size: 14px; font-weight: 500; }
.ad-steps .on b { color: var(--accent-text); }
.ad-steps span { font-size: 12.5px; color: var(--text-3); }
.ad-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-chips button { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ad-chips button:hover { background: var(--surface-hover); color: var(--text); }
.ad-chips button.on { border-color: var(--accent); background: var(--accent-weak); color: var(--accent-text); }
.ad-note { width: 100%; flex: 1; min-height: 260px; resize: none; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); font-family: inherit; font-size: 14px; line-height: 1.55; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.ad-note:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }

@media (max-width: 860px) {
  .ts-modal.ad { display: flex; flex-direction: column; height: auto; max-height: 94vh; overflow-y: auto; border-radius: 16px 16px 0 0; }
  .ts-modal.ad > .ad-side, .ts-modal.ad > .ad-main { flex: none; }
  .ad-side { overflow: visible; border-right: 0; border-bottom: 1px solid var(--border); padding: 22px 16px 16px; gap: 16px; }
  .ad-del { margin-top: 0; }
  .ad-main { min-height: auto; }
  .ad-top { padding-left: 16px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
  .ad-body { overflow: visible; padding: 18px 16px; }
  .ad-2col { grid-template-columns: 1fr; }
  .ad-x { position: fixed; top: calc(6vh + 12px); right: 14px; z-index: 5; margin: 0; background: var(--surface); }
  .ad-foot { position: sticky; bottom: 0; background: var(--surface); padding: 12px 16px; }
}

/* ==========================================================================
   HARMONISATION DES AUTRES MENUS (Process, Planning, Réponses, Creators,
   Autorisations, Vault, Workflows, Accès) : même en-tête, mêmes cartes plates
   ========================================================================== */
/* en-têtes : le fil d'Ariane remplace les sur-titres, pas de phrase d'aide */
.pl-eyebrow, .rp-eyebrow, .cr-eyebrow, .az-eyebrow { display: none !important; }
.ts-page-title, .pl-title, .rp-title, .cr-title, .az-title { margin: 0 !important; font-size: 26px !important; font-weight: 500 !important; letter-spacing: -.03em !important; line-height: 1.2 !important; }
.pc-title { font-size: 26px !important; font-weight: 500 !important; letter-spacing: -.03em !important; }
.pc-eyebrow { font-family: var(--font); font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.ts-page-head { align-items: center; margin-bottom: 24px; }

/* boutons principaux : aplat bleu, sans dégradé ni lueur */
.cr-btn.is-primary, .pc-do { background: var(--accent) !important; box-shadow: none !important; border-radius: 8px !important; font-weight: 500 !important; }
.cr-btn.is-primary:hover, .pc-do:hover { background: var(--accent-strong) !important; box-shadow: none !important; transform: none !important; }
.cr-btn.is-primary::after { display: none !important; }
.cr-btn { border-radius: 8px !important; font-weight: 500 !important; box-shadow: none !important; }

/* cartes et panneaux : rayon 12, bordure fine, aucune ombre */
.pc-hero, .pc-card, .pc-ph, .cr-card, .cr-new, .cr-alert, .cr-photos, .cr-hero,
[class^="cr-panel"] { border-radius: 12px !important; box-shadow: none !important; }
.pc-hero::before, .pc-hero::after { display: none !important; }
.pc-hero { background: var(--surface) !important; }
.pc-ph { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.pc-ph.is-active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 14%, transparent) !important; background: color-mix(in srgb, var(--c) 5%, var(--surface)) !important; }
.pc-ph:hover, .cr-card:hover, .cr-card:focus-visible { box-shadow: none !important; }
.pc-head { background: none !important; }
.pc-head-ico { box-shadow: none !important; border-radius: 8px !important; }
.pc-ph-k { font-family: var(--font); letter-spacing: .04em; font-weight: 400; }
.pc-go { box-shadow: none !important; border-radius: 8px !important; font-weight: 500 !important; background: transparent !important; }
.pc-go:hover { box-shadow: none !important; background: var(--surface-hover) !important; }
.pc-bar > i > b { box-shadow: 0 0 0 3px var(--c) !important; }
.pc-win-badge { box-shadow: none !important; }

/* champs : même anneau de focus partout */
.cr-search:focus-within { box-shadow: 0 0 0 3px var(--accent-weak) !important; border-color: var(--accent) !important; }

/* Creators : couverture sobre quand il n'y a pas de photo */
.cr-cover:not(.n1):not(.n2):not(.n3) { height: 92px; background: radial-gradient(320px 120px at 20% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 75%), var(--surface-2) !important; border-bottom: 1px solid var(--border); }
.cr-cover::before { display: none !important; }
.cr-cover:not(.n1):not(.n2):not(.n3) .cr-cover-shade { display: none; }
.cr-cover-mono { font-size: 64px !important; bottom: -10px !important; color: color-mix(in srgb, var(--c) 22%, transparent) !important; }
.cr-card { border-radius: 12px !important; }
.cr-card:hover, .cr-card:focus-visible { transform: translateY(-2px) !important; }
.cr-card:hover .cr-av { transform: none !important; }
.cr-new { background: transparent !important; border-width: 1px !important; }
.cr-new:hover { transform: none !important; }
.cr-new-ico { border-radius: 50% !important; width: 44px !important; height: 44px !important; }
.cr-new:hover .cr-new-ico { transform: none !important; }
.cr-new-t { font-weight: 500 !important; }

/* Historique & co : la colonne principale ne doit jamais pousser la colonne latérale hors de la page */
.ts-split > * { min-width: 0; }
.ts-split > .ts-card { overflow-x: auto; }

/* ==========================================================================
   MENUS BÊTA : Hunter + Autopost (grisés « Bientôt » sauf super admin)
   ========================================================================== */
.ts-nav-item.is-soon { opacity: .45; cursor: default; }
.ts-nav-item.is-soon:hover { background: transparent !important; color: inherit; }
.v3-soon { margin-left: auto; height: 18px; padding: 0 7px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 500; color: var(--text-3); border: 1px solid var(--border-strong); white-space: nowrap; }
.v3-soon.beta { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-weak); }

.ap-kpis { margin-bottom: 18px; }
.ap-kpis .d3-kpi-f { padding-top: 14px; }
.ap-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ts-modal.hn-add { width: min(520px, 94vw); }
.hn-pick { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.hn-pick:last-child { border-bottom: 0; }
.hn-pick input { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.hn-linkbtn { border: 0; background: none; color: var(--accent-text); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; }

.ap-list { display: flex; flex-direction: column; gap: 12px; }
.ap-rule { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.ap-rule.off { opacity: .6; }
.ap-rule-h { display: flex; align-items: flex-start; gap: 14px; }
.ap-name { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.ap-sub { font-size: 13px; color: var(--text-3); }
.ap-sub b { color: var(--text-2); font-weight: 500; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ap-chips span { height: 24px; padding: 0 9px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; background: var(--surface-3); color: var(--text-2); }
.ap-chips span.t { background: transparent; border: 1px solid var(--border-strong); color: var(--text-3); }
.ap-chips .sep { width: 1px; height: 16px; padding: 0; background: var(--border-strong); margin: 0 4px; }
.ap-rule-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.ap-last { font-size: 12.5px; color: var(--text-3); }
.ap-last.err { color: var(--warmup); }
.ap-rule-f .d3-link:disabled { opacity: .45; cursor: default; }
.ap-switch { position: relative; width: 36px; height: 20px; flex: none; border-radius: 99px; border: 0; background: var(--surface-3); cursor: pointer; transition: background .15s; }
.ap-switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .18s var(--ease); }
.ap-switch.on { background: var(--accent); }
.ap-switch.on i { transform: translateX(16px); }
.ts-modal.ap-ed { width: min(540px, 94vw); }
.ap-form { display: flex; flex-direction: column; gap: 18px; padding: 18px 20px !important; }
.ap-f { display: flex; flex-direction: column; gap: 8px; }
.ap-f > span { font-size: 13px; color: var(--text-2); }
.ap-in { height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; outline: none; }
.ap-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.ap-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ap-pills button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ap-pills button:hover { background: var(--surface-hover); color: var(--text); }
.ap-pills button.on { border-color: var(--accent); background: var(--accent-weak); color: var(--accent-text); }
.ap-addslot { display: inline-flex; align-items: center; height: 32px; border-radius: 8px; border: 1px dashed var(--border-strong); overflow: hidden; }
.ap-addslot input { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 0 8px; outline: none; color-scheme: dark light; }
.ap-addslot button { width: 30px; height: 100%; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.ap-accs { max-height: 220px; overflow-y: auto; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); }

@media (max-width: 760px) {
  .ap-kpis { grid-template-columns: minmax(0, 1fr); }
  .ap-kpis .d3-kpi { border-left: 0 !important; border-top: 1px solid var(--border); }
  .ap-kpis .d3-kpi:first-child { border-top: 0; }
  .ap-rule-f > .ts-btn { width: 100%; justify-content: center; }
  .ts-page-head { flex-wrap: wrap; gap: 8px; }
}

/* ==========================================================================
   HUNTER v2 — relief, radar, podium, mur de cartes uniformes
   ========================================================================== */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hn2 { max-width: 1440px; }
/* Jetons de la DA « relief » : utilisés par Hunter, l'Accueil, Créer un post et les boutons de toute l'app */
:root, [data-theme="dark"] {
  --hn-r: 16px;
  --hn-hi: rgba(255,255,255,.07);
  --hn-panel: linear-gradient(180deg, #14171D 0%, #0E1014 100%);
  --hn-panel-b: rgba(255,255,255,.06);
  --hn-drop: 0 1px 0 rgba(0,0,0,.5), 0 16px 36px -16px rgba(0,0,0,.85);
  --hn-lift: 0 1px 0 rgba(0,0,0,.5), 0 28px 50px -18px rgba(0,0,0,.9);
  --hn-well: #090A0E;
  --hn-well-sh: inset 0 1px 3px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.045);
  --hn-key: linear-gradient(180deg, #252A34 0%, #1B1E26 100%);
  --hn-key-sh: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.7), 0 4px 10px -4px rgba(0,0,0,.7);
  --hn-hot: #FF5A4E; --hn-hot2: #FF9A3D;
  --hn-warm: #F5A524;
  --hn-cool: #7C9BFF;
  --hn-base: #8A8F99;
}
[data-theme="light"] {
  --hn-hi: rgba(255,255,255,1);
  --hn-panel: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  --hn-panel-b: rgba(16,18,23,.07);
  --hn-drop: 0 1px 2px rgba(16,18,23,.06), 0 14px 32px -16px rgba(16,18,23,.24);
  --hn-lift: 0 2px 4px rgba(16,18,23,.06), 0 26px 46px -18px rgba(16,18,23,.34);
  --hn-well: #ECEEF2;
  --hn-well-sh: inset 0 1px 3px rgba(16,18,23,.12), inset 0 0 0 1px rgba(16,18,23,.05);
  --hn-key: linear-gradient(180deg, #FFFFFF 0%, #F3F4F7 100%);
  --hn-key-sh: inset 0 1px 0 #fff, 0 0 0 1px rgba(16,18,23,.08), 0 1px 2px rgba(16,18,23,.12), 0 4px 10px -4px rgba(16,18,23,.16);
  --hn-hot: #EC3B2E; --hn-hot2: #F27A1A;
  --hn-warm: #C27400;
  --hn-cool: #2F5BFF;
  --hn-base: #6B707B;
}
.hn2 .h-hot { --heat: var(--hn-hot); }
.hn2 .h-warm { --heat: var(--hn-warm); }
.hn2 .h-cool { --heat: var(--hn-cool); }
.hn2 .h-base { --heat: var(--hn-base); }

/* ---------- boutons en relief ---------- */
.hn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--hn-key); box-shadow: var(--hn-key-sh); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .12s var(--ease), box-shadow .15s, filter .15s; flex: none; }
.hn-btn:hover { filter: brightness(1.14); }
.hn-btn:active { transform: translateY(1px); }
.hn-btn:disabled { opacity: .5; cursor: default; filter: none; transform: none; }
.hn-btn em { font-style: normal; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 99px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.hn-btn.pri { color: #fff; background: linear-gradient(180deg, #6189FF 0%, #3B6BFF 52%, #2D55DD 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.4), 0 10px 24px -8px rgba(59,107,255,.8); }
.hn-btn.pri:hover { filter: brightness(1.08); }
.hn-btn.pri em { background: rgba(255,255,255,.18); box-shadow: none; color: #fff; }
.hn-btn.sm { height: 34px; padding: 0 11px; font-size: 12.5px; }
.hn-btn.active { color: var(--accent-text); box-shadow: var(--hn-key-sh), 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
.hn-btn.danger { color: var(--danger); }
.hn-btn.grow { flex: 1; }
[data-theme="light"] .hn2 .hn-btn:not(.pri):hover { filter: brightness(.97); }

.hn-mini { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--hn-key); box-shadow: var(--hn-key-sh); color: var(--text-2); cursor: pointer; transition: transform .12s, color .15s; flex: none; text-decoration: none; }
.hn-mini:hover { color: var(--text); }
.hn-mini:active { transform: translateY(1px); }
.hn-mini.on { color: var(--accent-text); }
.hn-mini.lg { width: 34px; height: 34px; border-radius: 10px; }
.hn-mini.danger { color: var(--danger); }
.hn-mini.wide { width: auto; padding: 0 10px; font: inherit; font-size: 12px; font-weight: 500; }
.hn-mini:disabled { opacity: .45; cursor: default; }
.hn-mini.ghost { visibility: hidden; }

/* ---------- contrôles segmentés : rail creusé, onglet en relief ---------- */
.hn-seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 11px; background: var(--hn-well); box-shadow: var(--hn-well-sh); flex: none; }
.hn-seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .15s, background .15s, box-shadow .15s; }
.hn-seg button:hover { color: var(--text); }
.hn-seg button.on { color: var(--text); background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.hn-seg button em { font-style: normal; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.hn-seg.heat button.on:not(.h-base), .hn-seg.heat button.on:not(.h-base) em { color: var(--heat); }
.hn-seg.heat button.h-hot svg { color: var(--hn-hot); }

/* ---------- en-tête radar ---------- */
.hn-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 228px; gap: 32px; align-items: center; padding: 24px 28px 24px 26px; margin-bottom: 18px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 140% at 92% 50%, rgba(59,107,255,.16), transparent 60%), var(--hn-panel);
  box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.hn-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--hn-panel-b) 1px, transparent 1px), linear-gradient(90deg, var(--hn-panel-b) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(60% 110% at 92% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 110% at 92% 50%, #000, transparent 75%); }
.hn-hero-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hn-hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hn-title { display: flex; align-items: center; gap: 12px; flex: 1; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.hn-title-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7B98FF 0%, #3B6BFF 55%, #2443C2 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.18), 0 10px 22px -6px rgba(59,107,255,.75); }
.hn-hero-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hn-stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hn-stat { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--hn-well); box-shadow: var(--hn-well-sh); min-width: 0; text-align: left; font: inherit; color: inherit; }
.hn-stat span { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-stat b { font-size: 28px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--text); }
.hn-stat small { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-stat.rec { cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.hn-stat.rec:hover { transform: translateY(-2px); box-shadow: var(--hn-well-sh), 0 0 0 1px color-mix(in srgb, var(--hn-hot) 40%, transparent); }
.hn-stat.rec b.h-hot { background: linear-gradient(90deg, var(--hn-hot2), var(--hn-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hn-stat.rec b.h-warm { color: var(--hn-warm); }
.hn2 .hn-progress { display: flex; flex-direction: column; gap: 8px; }
.hn-progress-l { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hn2 .hn-bar { height: 8px; border-radius: 99px; background: var(--hn-well); box-shadow: var(--hn-well-sh); overflow: hidden; }
.hn2 .hn-bar i { position: relative; display: block; height: 100%; border-radius: inherit; overflow: hidden; background: linear-gradient(90deg, #3B6BFF, #8EA8FF); box-shadow: 0 0 14px rgba(91,130,255,.8); transition: width .4s var(--ease); }
.hn2 .hn-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: hnShine 1.2s linear infinite; }

.hn-radar { position: relative; width: 228px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(59,107,255,.12) 0%, transparent 70%); }
.hn-radar svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hn-radar .ring { fill: none; stroke: color-mix(in srgb, var(--text-3) 38%, transparent); stroke-width: .7; }
.hn-radar .ring:last-of-type { stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1; }
.hn-radar .axis { stroke: color-mix(in srgb, var(--text-3) 32%, transparent); stroke-width: .6; stroke-dasharray: 2 3; }
.hn-radar .center { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.hn-radar-sweep { position: absolute; inset: 2%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg 280deg, rgba(59,107,255,.06) 300deg, rgba(110,145,255,.5) 359deg, transparent 360deg); animation: hnSweep 4s linear infinite; }
.hn-radar.scanning .hn-radar-sweep { filter: brightness(1.7) saturate(1.3); }
.hn-radar.scanning::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1px var(--accent); animation: hnPulse 1.4s ease-out infinite; }
.hn-radar .dot { cursor: pointer; }
.hn-radar .dot .core { fill: var(--heat); transition: r .15s; }
.hn-radar .dot.h-hot .core { filter: drop-shadow(0 0 4px var(--hn-hot)); }
.hn-radar .dot .halo { fill: var(--heat); opacity: 0; transform-box: fill-box; transform-origin: center; animation: hnPing 4s linear infinite; animation-delay: var(--d); }
.hn-radar .dot:hover .core { stroke: var(--text); stroke-width: 1.4; }

/* ---------- rail des comptes ---------- */
.hn-rail-wrap { position: relative; margin: 0 -4px 14px; }
.hn-rail { display: flex; gap: 4px; overflow-x: auto; padding: 4px 8px 2px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.hn-rail::-webkit-scrollbar { display: none; }
.hn-acc { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px 0 4px; border: 0; background: none; color: var(--text-3); font: inherit; cursor: pointer; scroll-snap-align: start; }
.hn-ring { position: relative; display: block; padding: 2.5px; border-radius: 50%; background: linear-gradient(140deg, var(--heat), color-mix(in srgb, var(--heat) 25%, transparent)); transition: transform .25s var(--ease), box-shadow .25s; }
.hn-acc.h-base .hn-ring { background: var(--border-strong); }
.hn-acc.h-hot .hn-ring { background: conic-gradient(from 210deg, var(--hn-hot), var(--hn-hot2), #FFD25A, var(--hn-hot2), var(--hn-hot)); box-shadow: 0 0 18px -4px var(--hn-hot); }
.hn-ring > .hn-av { box-shadow: 0 0 0 2.5px var(--bg); }
.hn-acc:hover .hn-ring { transform: translateY(-3px) scale(1.05); }
.hn-acc.on .hn-ring { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak-2), 0 10px 22px -6px rgba(59,107,255,.85); }
.hn-acc.on .hn-acc-h, .hn-acc:hover .hn-acc-h { color: var(--text); }
.hn-acc.dead { opacity: .38; }
.hn-acc-h { max-width: 100%; padding: 0 3px; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-acc-n { position: absolute; right: -5px; bottom: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 500; color: #fff; background: var(--heat); box-shadow: 0 0 0 2.5px var(--bg); font-variant-numeric: tabular-nums; }
.hn-acc.h-warm .hn-acc-n { color: #2B1A00; }
.hn-acc.h-base .hn-acc-n { background: var(--surface-3); color: var(--text-2); }
.hn-acc.all .hn-ring { background: transparent; }
.hn-acc.all.on .hn-ring { background: var(--accent); }
.hn-av.all { width: 46px; height: 46px; background: var(--hn-key) !important; box-shadow: var(--hn-key-sh) !important; color: var(--text-2) !important; }
.hn-acc.all.on .hn-av.all { box-shadow: 0 0 0 2.5px var(--bg) !important; color: var(--accent-text) !important; }
.hn-rail-arrow { position: absolute; top: 20px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--hn-key); box-shadow: var(--hn-key-sh); color: var(--text-2); cursor: pointer; opacity: 0; transition: opacity .2s; }
.hn-rail-wrap:hover .hn-rail-arrow { opacity: 1; }
.hn-rail-arrow.l { left: -8px; } .hn-rail-arrow.r { right: -8px; }

.hn2 .hn-av { flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: hsl(var(--hue, 220) 40% 30%); color: #fff; font-weight: 500; }
[data-theme="light"] .hn2 .hn-av { background: hsl(var(--hue, 220) 55% 55%); }
.hn2 .hn-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- barre de filtres (collante) ---------- */
.hn-bar-tools { position: sticky; top: 10px; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px; margin-bottom: 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.hn2 .hn-search { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 8px 0 11px; border-radius: 10px; background: var(--hn-well); box-shadow: var(--hn-well-sh); color: var(--text-3); min-width: 160px; flex: 1; transition: box-shadow .15s; }
.hn2 .hn-search:focus-within { box-shadow: var(--hn-well-sh), 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent); }
.hn2 .hn-search input { border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; width: 100%; min-width: 0; }
.hn2 .hn-search button { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--text-2); cursor: pointer; }
.hn-reshead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 14px; scroll-margin-top: 84px; flex-wrap: wrap; }
.hn-count { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--text-3); }
.hn-count > b { font-size: 22px; font-weight: 500; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.hn-focus { align-self: center; display: inline-flex; align-items: center; gap: 7px; height: 30px; margin-left: 8px; padding: 0 5px 0 5px; border-radius: 99px; background: var(--accent-weak); color: var(--accent-text); font-size: 12.5px; font-weight: 500; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.hn-focus button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--accent) 25%, transparent); color: inherit; cursor: pointer; }
.hn-sortbox { display: flex; align-items: center; gap: 8px; color: var(--text-3); }

/* ---------- podium ---------- */
.hn-results { animation: hnIn .3s var(--ease); }
.hn-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.hn-top { position: relative; display: grid; grid-template-columns: 41% minmax(0, 1fr); min-height: 250px; border-radius: 20px; cursor: pointer; isolation: isolate; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .45s var(--ease), box-shadow .3s; animation: hnCard .5s var(--ease) both; }
.hn-top:hover { --ty: -4px; transition: transform .1s linear, box-shadow .3s; box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-lift); }
.hn-top.r2 { animation-delay: .06s; } .hn-top.r3 { animation-delay: .12s; }
.hn-top::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; padding: 1.5px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hn-top.r1::before { background: conic-gradient(from var(--ang), #FFD25A, #FF9A3D, transparent 30%, transparent 55%, #FFE7A3, #FFD25A); animation: hnSpin 6s linear infinite; }
.hn-top.r1 { box-shadow: inset 0 1px 0 var(--hn-hi), var(--hn-drop), 0 24px 60px -28px rgba(255,170,60,.55); }
.hn-top.r2::before { background: linear-gradient(140deg, rgba(220,226,240,.55), transparent 45%); }
.hn-top.r3::before { background: linear-gradient(140deg, rgba(214,140,90,.55), transparent 45%); }
.hn-top-vis { position: relative; margin: 6px; border-radius: 15px; overflow: hidden; background: var(--surface-3); isolation: isolate; }
.hn-top-vis > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hn-top:hover .hn-top-vis > img { transform: scale(1.06); }
.hn-top-vis::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.65)); pointer-events: none; }
.hn-top-vis .hn-poster { padding: 18px 14px; }
.hn-top-vis .hn-poster p { font-size: 13px; -webkit-line-clamp: 6; box-sizing: content-box; max-height: calc(1.42em * 6); }
.hn-rank { position: absolute; left: 12px; bottom: 6px; z-index: 3; font-size: 58px; font-weight: 500; line-height: 1; letter-spacing: -.06em; color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.55); }
.hn-top.r1 .hn-rank { background: linear-gradient(180deg, #FFF1C2 10%, #FFB340 90%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 12px rgba(0,0,0,.55)); }
.hn-top.r2 .hn-rank { background: linear-gradient(180deg, #FFFFFF 10%, #B9C1D3 90%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 12px rgba(0,0,0,.55)); }
.hn-top.r3 .hn-rank { background: linear-gradient(180deg, #FFD9BE 10%, #D08A5A 90%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 12px rgba(0,0,0,.55)); }
.hn-top-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 16px 10px; min-width: 0; }
.hn-top .hn-chip.big { align-self: flex-start; }
.hn-top-txt { margin: 0 0 auto; box-sizing: content-box; max-height: calc(1.45em * 4); font-size: 14px; line-height: 1.45; color: var(--text); white-space: pre-line; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.hn-meter { display: flex; flex-direction: column; gap: 6px; }
.hn-meter-bar { position: relative; height: 8px; border-radius: 99px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.hn-meter-bar i { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--heat) 35%, transparent), var(--heat)); box-shadow: 0 0 12px -2px var(--heat); }
.hn-meter-bar b { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.hn-meter-l { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hn-meter-l span:last-child { color: var(--text-2); }

/* ---------- mur de cartes ---------- */
.hn-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 16px; }
.hn-c { position: relative; display: flex; flex-direction: column; min-width: 0; container-type: inline-size; border-radius: var(--hn-r); cursor: pointer; outline: none; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .45s var(--ease), box-shadow .3s;
  animation: hnCard .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 26ms); }
.hn-c:hover, .hn-c:focus-visible { --ty: -5px; transition: transform .1s linear, box-shadow .3s; box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px color-mix(in srgb, var(--heat) 45%, var(--hn-panel-b)), var(--hn-lift); }
.hn-c-vis { position: relative; aspect-ratio: 4 / 5; margin: 5px 5px 0; border-radius: 12px; overflow: hidden; background: var(--surface-3); isolation: isolate; }
.hn-c-vis > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hn-c:hover .hn-c-vis > img { transform: scale(1.06); }
.hn-c-vis::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.32) 0%, transparent 20%, transparent 42%, rgba(0,0,0,.86) 100%); }
.hn-c-vis:has(> .hn-poster)::after { display: none; }
.hn-c-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 0 13px 12px; color: #fff; font-size: 13.5px; line-height: 1.38; font-weight: 500; text-shadow: 0 1px 10px rgba(0,0,0,.6); white-space: pre-line; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; box-sizing: content-box; max-height: calc(1.38em * 3); }
.hn-sheen { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.18), transparent 45%); opacity: 0; transition: opacity .3s; }
.hn-c:hover .hn-sheen, .hn-top:hover .hn-sheen { opacity: 1; }
.hn-poster { position: absolute; inset: 0; display: flex; align-items: center; padding: 26px 18px 20px; overflow: hidden;
  background: radial-gradient(120% 85% at 0% 0%, hsl(var(--hue) 75% 58% / .55), transparent 62%), radial-gradient(110% 90% at 100% 100%, hsl(calc(var(--hue) + 60) 80% 55% / .45), transparent 62%), #10121A; }
.hn-poster::before { content: "\201C"; position: absolute; top: -8px; left: 12px; font: 400 96px/1 Georgia, serif; color: rgba(255,255,255,.14); }
.hn-poster p { position: relative; margin: 0; color: #fff; font-size: 16px; line-height: 1.42; font-weight: 500; letter-spacing: -.01em; white-space: pre-line; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; box-sizing: content-box; max-height: calc(1.42em * 9); }
.hn-poster.big { padding: 56px 48px; } .hn-poster.big p { font-size: 26px; line-height: 1.38; -webkit-line-clamp: 14; box-sizing: content-box; max-height: calc(1.38em * 14); }
.hn-poster.big::before { font-size: 160px; left: 30px; top: 0; }

.hn-chip { position: absolute; top: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 3px; height: 25px; padding: 0 9px; border-radius: 8px; font-size: 13px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; background: rgba(12,14,20,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.12); }
.hn-chip.h-cool { background: linear-gradient(180deg, #7895FF, #3B6BFF); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 4px 14px -4px rgba(59,107,255,.85); }
.hn-chip.h-warm { color: #2B1A00; background: linear-gradient(180deg, #FFCB5C, #F59E0B); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 14px -4px rgba(245,165,36,.85); }
.hn-chip.h-hot { background: linear-gradient(135deg, #FFA048 0%, #FF4D4D 55%, #E5245A 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 0 0 1px rgba(255,120,80,.35), 0 6px 18px -4px rgba(255,77,77,.9); animation: hnGlow 2.4s ease-in-out infinite; }
.hn-chip.big { position: static; height: 36px; padding: 0 13px; gap: 5px; border-radius: 11px; font-size: 20px; letter-spacing: -.03em; }
.hn-chip.big.h-base, .hn-accm .hn-chip.h-base { color: var(--text); background: var(--hn-key); box-shadow: var(--hn-key-sh); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hn-play { position: absolute; z-index: 2; left: 50%; top: 44%; translate: -50% -50%; width: 46px; height: 46px; padding-left: 3px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(12,14,20,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 8px 24px -6px rgba(0,0,0,.6); }
.hn-play.big { top: 50%; width: 72px; height: 72px; text-decoration: none; transition: transform .2s var(--ease); }
.hn-play.big:hover { transform: scale(1.06); }
.hn-c-n { position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 25px; padding: 0 8px; border-radius: 8px; font-size: 12px; color: #fff; background: rgba(12,14,20,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.hn-c > footer { display: flex; flex-direction: column; gap: 9px; padding: 11px 12px 12px 13px; }
.hn-who { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hn2 .hn-h { min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn2 .hn-h:hover { color: var(--accent-text); }
.hn2 .hn-h.big { font-size: 15.5px; }
.hn2 .hn-ago { flex: none; margin-left: auto; font-size: 11.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hn-stats { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.hn-stats > .grow { min-width: 0; }
.hn-stats .hn-mini { width: 26px; height: 26px; border-radius: 7px; }
@container (max-width: 272px) { .hn-stats > span:nth-child(3) { display: none; } }
@container (max-width: 212px) { .hn-stats .hn-mini { display: none; } }
@container (max-width: 150px) { .hn-stats > span:nth-child(2) { display: none; } }
.hn-stats > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.hn-stats > span.v { color: var(--text); font-size: 12.5px; font-weight: 500; }
.hn-stats .hn-mini { opacity: .85; }
.hn-c:hover .hn-stats .hn-mini { opacity: 1; }
.hn-c.skel { cursor: default; animation: none; }
.hn-c.skel .hn-c-vis, .hn-c.skel footer i { background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-hover) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: hnShim 1.2s linear infinite; }
.hn-c.skel footer i { display: block; height: 10px; border-radius: 5px; }
.hn-c.skel footer i + i { width: 60%; }
.hn2 .hn-more { display: flex; justify-content: center; padding: 24px 0 4px; }
.hn2 .hn-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 20px; border-radius: 20px; background: var(--hn-well); box-shadow: var(--hn-well-sh); color: var(--text-3); font-size: 13.5px; }
.hn2 .hn-empty b { color: var(--text); font-weight: 500; font-size: 15px; }
.hn2 .hn-empty-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--hn-key); box-shadow: var(--hn-key-sh); color: var(--text-2); }

/* ---------- fenêtre de détail ---------- */
.hn-ov { padding: 24px 88px; }
.hn-det { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); width: min(1080px, 100%); height: min(700px, calc(100vh - 48px)); border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong), 0 40px 120px -24px rgba(0,0,0,.85); animation: hnPop .32s var(--ease); }
.hn-det-vis { position: relative; display: grid; place-items: center; overflow: hidden; background: #050608; }
.hn-det-vis > img { width: 100%; height: 100%; object-fit: contain; animation: hnIn .3s ease; }
.hn-det-thumbs { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(10,11,15,.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hn-det-thumbs button { width: 46px; height: 46px; border: 0; border-radius: 9px; background: center / cover no-repeat; cursor: pointer; opacity: .5; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); transition: opacity .15s, transform .15s; }
.hn-det-thumbs button:hover { opacity: .85; }
.hn-det-thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.hn-det-side { display: flex; flex-direction: column; gap: 18px; min-height: 0; padding: 22px; background: var(--hn-panel); }
.hn-det-side > header { display: flex; align-items: center; gap: 12px; }
.hn-det-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-det-ratio { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 16px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.hn-det-ratio .hn-chip.big { align-self: flex-start; }
.hn-det-text { flex: 1; min-height: 60px; overflow-y: auto; font-size: 15.5px; line-height: 1.55; white-space: pre-line; word-break: break-word; color: var(--text); }
.hn-det-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hn-det-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--hn-key); box-shadow: var(--hn-key-sh); min-width: 0; }
.hn-det-grid span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.hn-det-grid b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hn-det-acts { display: flex; gap: 8px; }
.hn-det-acts .hn-btn { height: 44px; border-radius: 12px; }
.hn-det-pos { margin-top: -8px; text-align: center; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.hn-nav { position: fixed; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--hn-key); box-shadow: var(--hn-key-sh), 0 10px 30px -8px rgba(0,0,0,.6); color: var(--text); cursor: pointer; transition: transform .15s var(--ease); }
.hn-nav:hover { transform: scale(1.08); }
.hn-nav.l { left: 22px; } .hn-nav.r { right: 22px; }

/* ---------- gestion des comptes ---------- */
.ts-modal.hn-accm { display: flex; flex-direction: column; width: min(820px, 94vw); max-width: none; max-height: min(740px, 90vh); padding: 0; border-radius: 22px; overflow: hidden; background: var(--surface); }
.hn-accm > header { display: flex; align-items: center; gap: 12px; padding: 20px 22px 14px; }
.hn-accm > header .col { flex: 1; }
.hn-accm-t { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.hn-accm-head, .hn-accm-row { display: grid; grid-template-columns: minmax(0, 1fr) 74px 74px 48px 72px 92px; align-items: center; gap: 8px; }
.hn-accm-head { padding: 8px 32px 8px 32px; font-size: 11.5px; color: var(--text-3); border-bottom: 1px solid var(--border); }
.hn-accm-list { flex: 1; overflow-y: auto; padding: 6px 12px; }
.hn-accm-row { padding: 7px 10px; border-radius: 12px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hn-accm-row:hover { background: var(--surface-hover); }
.hn-accm-row.dead { opacity: .5; }
.hn-accm-who { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hn-accm-who b { display: block; font-size: 13px; font-weight: 500; color: var(--text); }
.hn-accm-who small { display: block; font-size: 11.5px; color: var(--text-3); }
.hn-accm-acts { display: flex; justify-content: flex-end; gap: 6px; }
.hn-accm .hn-chip { position: static; height: 22px; padding: 0 7px; font-size: 12px; border-radius: 7px; }
.hn-accm > footer { display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); }

@keyframes hnCard { from { opacity: 0; translate: 0 16px; } }
@keyframes hnIn { from { opacity: 0; } }
@keyframes hnPop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
@keyframes hnSweep { to { transform: rotate(360deg); } }
@keyframes hnSpin { to { --ang: 360deg; } }
@keyframes hnPing { 0% { opacity: .6; transform: scale(.3); } 22% { opacity: 0; transform: scale(1.8); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes hnPulse { from { opacity: .8; transform: scale(.85); } to { opacity: 0; transform: scale(1.15); } }
@keyframes hnGlow { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 0 0 1px rgba(255,120,80,.5), 0 6px 26px -2px rgba(255,77,77,1); } }
@keyframes hnShim { to { background-position: -200% 0; } }
@keyframes hnShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@media (max-width: 1320px) {
  .hn-podium { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 12px; margin: -6px -4px 8px; }
  .hn-podium::-webkit-scrollbar { display: none; }
  .hn-podium > .hn-top { flex: 0 0 min(420px, 88%); scroll-snap-align: start; }
}
@media (max-width: 1100px) {
  .hn-hero { grid-template-columns: minmax(0, 1fr) 170px; gap: 20px; }
  .hn-radar { width: 170px; }
  .hn-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hn-ov { padding: 24px; }
  .hn-nav { top: auto; bottom: 34px; margin: 0; }
  .hn-nav.l { left: 34px; } .hn-nav.r { right: 34px; }
}
@media (max-width: 760px) {
  .hn-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; border-radius: 18px; }
  .hn-radar { position: absolute; top: -34px; right: -44px; width: 168px; opacity: .5; pointer-events: none; }
  .hn-title { font-size: 22px; }
  .hn-hero-acts { width: 100%; }
  .hn-hero-acts .hn-btn { flex: 1; padding: 0 8px; }
  .hn-stat { padding: 12px 13px; }
  .hn-stat b { font-size: 23px; }
  .hn-rail-arrow { display: none; }
  .hn-bar-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; top: 6px; margin-left: -4px; margin-right: -4px; }
  .hn-bar-tools::-webkit-scrollbar { display: none; }
  .hn2 .hn-search { min-width: 190px; }
  .hn-reshead { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hn-sortbox { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .hn-sortbox > svg { display: none; }
  .hn-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hn-c-vis { margin: 4px 4px 0; border-radius: 11px; }
  .hn-c-txt { padding: 0 10px 10px; font-size: 12.5px; }
  .hn-poster { padding: 20px 13px 14px; } .hn-poster p { font-size: 13.5px; }
  .hn-c > footer { gap: 7px; padding: 9px 10px 10px; }
  .hn-stats { gap: 8px; }
  .hn-chip { top: 8px; left: 8px; height: 23px; padding: 0 7px; font-size: 12px; }
  .hn-c-n { top: 8px; right: 8px; }
  .hn-top { grid-template-columns: 40% minmax(0, 1fr); min-height: 220px; }
  .hn-top-body { padding: 14px 14px 14px 8px; gap: 10px; }
  .hn-rank { font-size: 46px; }
  .hn-ov { padding: 10px; align-items: center; }
  .hn-det { grid-template-columns: minmax(0, 1fr); grid-template-rows: 42vh minmax(0, 1fr); height: calc(100dvh - 20px); border-radius: 20px; }
  .hn-det-side { padding: 16px; gap: 14px; overflow-y: auto; }
  .hn-det-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hn-det-text { flex: none; }
  .hn-nav { top: calc(10px + 21vh); bottom: auto; margin-top: -20px; width: 40px; height: 40px; }
  .hn-nav.l { left: 18px; } .hn-nav.r { right: 18px; }
  .hn-accm-head { display: none; }
  .hn-accm-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .hn-accm-row > span:nth-child(2), .hn-accm-row > span:nth-child(3), .hn-accm-row > span:nth-child(4) { display: none; }
  .hn-accm > footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hn2 *, .hn2 *::before, .hn2 *::after { animation: none !important; }
  .hn-c, .hn-top { transform: none !important; }
}

/* ==========================================================================
   DA RELIEF — boutons, onglets, Accueil, Créer un post
   ========================================================================== */
/* ---------- boutons et onglets de toute l'app ---------- */
.ts-btn { transition: transform .12s var(--ease), filter .15s, box-shadow .15s, background .15s; }
.ts-btn:active:not(:disabled) { transform: translateY(1px); }
.ts-btn-primary { border: 0; color: #fff; background: linear-gradient(180deg, #6189FF 0%, #3B6BFF 52%, #2D55DD 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.35), 0 8px 20px -8px rgba(59,107,255,.8); }
.ts-btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #6189FF 0%, #3B6BFF 52%, #2D55DD 100%); filter: brightness(1.08); }
.ts-btn-primary:disabled { background: var(--hn-well); box-shadow: var(--hn-well-sh); color: var(--text-3); opacity: 1; }
.ts-btn-secondary { border: 0; color: var(--text); background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.ts-btn-secondary:hover:not(:disabled) { border: 0; background: var(--hn-key); filter: brightness(1.14); }
[data-theme="light"] .ts-btn-secondary:hover:not(:disabled) { filter: brightness(.97); }
.ts-btn-success { border: 0; color: #fff; background: linear-gradient(180deg, #4ADE80 0%, #22C55E 50%, #15A34A 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.35), 0 8px 20px -8px rgba(34,197,94,.75); }
.ts-btn-success:hover:not(:disabled) { filter: brightness(1.06); }
.ts-iconbtn { border: 0; background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: filter .15s, transform .12s; }
.ts-iconbtn:hover { background: var(--hn-key); filter: brightness(1.14); }
.ts-iconbtn:active { transform: translateY(1px); }
[data-theme="light"] .ts-iconbtn:hover { filter: brightness(.97); }
.d3-seg, .ts-seg, .wz-seg, .v3-theme { border: 0 !important; background: var(--hn-well) !important; box-shadow: var(--hn-well-sh); padding: 3px; border-radius: 10px; }
.d3-seg button, .wz-seg button, .v3-theme button { border-radius: 7px; }
.d3-seg button.on, .ts-seg-item.on, .wz-seg button.on, .v3-theme button.on { color: var(--text); background: var(--hn-key) !important; box-shadow: var(--hn-key-sh) !important; }

/* ---------- Accueil ---------- */
.ts-page.d3 { max-width: 1440px; }
.d3-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 28px; align-items: center; padding: 24px 26px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(55% 140% at 95% 45%, rgba(59,107,255,.17), transparent 62%), var(--hn-panel);
  box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.d3-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--hn-panel-b) 1px, transparent 1px), linear-gradient(90deg, var(--hn-panel-b) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(45% 110% at 94% 50%, #000, transparent 75%); mask-image: radial-gradient(45% 110% at 94% 50%, #000, transparent 75%); }
.d3-hero-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.d3-hero .d3-head { align-items: center; }
.d3-hero .d3-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 0; border-radius: 0; background: none; overflow: visible; }
.d3-hero .d3-kpi:nth-child(4) { grid-column: span 2; }
@media (min-width: 1600px) { .d3-hero .d3-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } .d3-hero .d3-kpi:nth-child(4) { grid-column: auto; } }
.d3-hero .d3-kpi { padding: 14px 15px; border: 0 !important; border-radius: 14px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.d3-hero .d3-kpi-h { gap: 9px; font-size: 13px; color: var(--text-2); }
.d3-hero .d3-kpi-v { margin-top: 12px; font-size: 27px; }
.d3-hero .d3-kpi-f { padding-top: 14px; font-size: 12px; }
.d3-hero .d3-kpi-v + .d3-stack, .d3-hero .d3-kpi-v + .d3-qbar { margin-top: 16px; }
.d3-hero .d3-stack { height: 6px; }
.d3-hero .d3-stack i { box-shadow: 0 0 8px -1px currentColor; }
.d3-hero .d3-qbar { height: 6px; background: var(--surface-3); }
.d3 .d3-ico { width: 24px; height: 24px; border: 0; border-radius: 7px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c, #6C84FF) 80%, #fff), color-mix(in srgb, var(--c, #6C84FF) 78%, #000)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px -4px var(--c, #6C84FF); }

.d3-ring { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.d3-ring-h { align-self: stretch; display: flex; align-items: center; justify-content: space-between; min-height: 28px; font-size: 12.5px; color: var(--text-2); }
.d3-ring-g { position: relative; width: 196px; aspect-ratio: 1; }
.d3-ring-g svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.d3-ring line { stroke: var(--border-strong); stroke-width: 2; stroke-linecap: round; transition: stroke .25s; }
.d3-ring line.on { stroke: #5B9BFF; filter: drop-shadow(0 0 3px rgba(91,155,255,.9)); }
.d3-ring.done line.on { stroke: #34D399; filter: drop-shadow(0 0 3px rgba(52,211,153,.9)); }
.d3-ring .trk { fill: none; stroke: var(--hn-well); stroke-width: 15; }
.d3-ring .arc { fill: none; stroke-width: 15; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); filter: drop-shadow(0 0 7px rgba(70,130,255,.6)); }
.d3-ring.done .arc { filter: drop-shadow(0 0 7px rgba(52,211,153,.6)); }
.d3-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate; }
.d3-ring-c::before { content: ""; position: absolute; z-index: -1; width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--hn-key); box-shadow: var(--hn-key-sh), 0 14px 30px -12px rgba(0,0,0,.7); }
.d3-ring-c b { font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.d3-ring-c span { margin-top: 5px; font-size: 12px; color: var(--text-3); }
.d3-ring-f { font-size: 12.5px; color: var(--text-2); text-align: center; line-height: 1.4; }
.d3-ring-f b { color: var(--text); font-weight: 500; }
.d3-ring-f b.ok { color: var(--active); }
.d3-ring-f b.late { color: var(--warmup); }

.d3 .d3-card { border: 0; border-radius: 20px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.d3-g1.solo { grid-template-columns: minmax(0, 1fr); }
.d3 .d3-link { border: 0; background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: filter .15s, transform .12s; }
.d3 .d3-link:hover { background: var(--hn-key); filter: brightness(1.14); }
.d3 .d3-link:active { transform: translateY(1px); }
[data-theme="light"] .d3 .d3-link:hover { filter: brightness(.97); }
.d3 .d3-plot { border-bottom-color: var(--border); }
.d3 .d3-col::before { border-left-color: color-mix(in srgb, var(--border) 60%, transparent); }
.d3 .d3-bar { border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #86A3FF 0%, #3B6BFF 48%, #2344BE 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 1px 0 0 rgba(255,255,255,.08), 0 10px 20px -10px rgba(59,107,255,.85); }
.d3 .d3-bar.hit { background: linear-gradient(180deg, #7EF0BE 0%, #22C55E 50%, #14803C 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 20px -10px rgba(34,197,94,.8); }
.d3 .d3-col.on .d3-bar { filter: brightness(1.2); }
.d3 .d3-col.today .d3-bar { animation: d3Pulse 2.4s ease-in-out infinite; }
@keyframes d3Pulse { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 0 22px -2px rgba(91,130,255,.9); } }
.d3 .d3-bar0 { border-radius: 2px; }
.d3 .d3-goal { border-top: 1.5px dashed var(--warmup); opacity: 1; filter: drop-shadow(0 0 5px rgba(245,165,36,.55)); }
.d3 .d3-goal span { top: -24px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--warmup) 16%, var(--surface)); }
.d3 .d3-tt { border: 0; border-radius: 12px; background: var(--hn-key); box-shadow: var(--hn-key-sh), 0 16px 30px -12px rgba(0,0,0,.6); }
.d3 .d3-list { display: flex; flex-direction: column; gap: 2px; }
.d3 .d3-row { margin: 0 -10px; padding: 10px; border-top: 0; border-radius: 12px; transition: background .15s, transform .2s var(--ease); }
.d3 .d3-row:hover { background: var(--surface-hover); transform: translateX(2px); }
.d3 .d3-row.next { background: var(--accent-weak); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.d3 .d3-rank { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 500; color: var(--text-2); background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.d3 .d3-rank.r1 { color: #3A2500; background: linear-gradient(180deg, #FFE08A, #F2AE1C); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 10px -3px rgba(242,174,28,.75); }
.d3 .d3-rank.r2 { color: #1E2430; background: linear-gradient(180deg, #F3F6FB, #A9B2C3); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 10px -3px rgba(169,178,195,.5); }
.d3 .d3-rank.r3 { color: #2B1608; background: linear-gradient(180deg, #F7CFAE, #C27A48); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 10px -3px rgba(194,122,72,.6); }
.d3 .d3-hbar { height: 6px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.d3 .d3-hbar i { box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.d3 .d3-tag { height: 23px; border-radius: 7px; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent); }
.d3 .d3-count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-size: 12.5px; font-weight: 500; color: #fff; background: linear-gradient(180deg, #FF7A7E, #E5484D); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -5px rgba(242,85,90,.8); }
.d3 .d3-count.ok { color: var(--text-2); background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.d3 .d3-todo-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c, #8A8F99) 82%, #fff), color-mix(in srgb, var(--c, #8A8F99) 78%, #000)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 5px 12px -5px var(--c, #8A8F99); }
.d3 .d3-table th { border-color: var(--border); }
.d3 .d3-table tbody tr:hover { background: var(--surface-hover); }
.d3 .d3-pips i { background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.d3 .d3-pips i.on { background: linear-gradient(180deg, #86A3FF, #3B6BFF); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 7px rgba(91,130,255,.7); }
.d3-gm-chips button { border: 0; background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.d3-gm-chips button:hover { background: var(--hn-key); filter: brightness(1.14); }
.d3-gm-chips button.on { color: #fff; background: linear-gradient(180deg, #6189FF, #3B6BFF 55%, #2D55DD); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 14px -6px rgba(59,107,255,.8); }
.d3-step { border: 0; border-radius: 10px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.d3-step input { border-color: var(--border); }

@media (max-width: 1024px) {
  .d3-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .d3-hero-main { display: contents; }
  .d3-hero .d3-head { order: 0; }
  .d3-ring { order: 1; }
  .d3-hero .d3-kpis { order: 2; }
  .d3-ring { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 20px; align-items: center; padding-top: 4px; }
  .d3-ring-g { width: 150px; grid-row: 1 / 3; }
  .d3-ring-h { align-self: end; justify-content: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
  .d3-ring-f { align-self: start; text-align: left; }
  .d3-ring-c b { font-size: 32px; }
}
@media (max-width: 760px) {
  .d3-hero { padding: 18px 16px; border-radius: 18px; gap: 18px; }
  .d3-hero::before { display: none; }
  .d3-hero .d3-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d3-hero .d3-kpi:nth-child(4) { grid-column: auto; }
  .d3-hero .d3-kpi:last-child { grid-column: 1 / -1; }
  .d3-hero .d3-kpi-h { white-space: normal; font-size: 12.5px; }
  .d3-hero .d3-kpi-h .d3-ico { display: none; }
  .d3-quick .hn-btn { flex: 1; padding: 0 8px; }
  .d3-ring { grid-template-columns: 124px minmax(0, 1fr); }
  .d3-ring-g { width: 124px; }
  .d3-ring-c b { font-size: 27px; }
  .d3-ring-c span { font-size: 11px; }
  .d3 .d3-card { border-radius: 18px; }
}

/* ---------- Créer un post ---------- */
.ts-modal.wz-modal { border: 0; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--border-strong), 0 40px 120px -24px rgba(0,0,0,.85); }
.wz-prog { height: 3px; }
.wz-prog i { background: linear-gradient(90deg, #3B6BFF, #8EA8FF); box-shadow: 0 0 12px rgba(91,130,255,.9); border-radius: 0 3px 3px 0; }
.wz-rail { border-right: 0; background: var(--hn-panel); box-shadow: inset -1px 0 0 var(--border); }
.wz-brand-ico { color: #fff; background: linear-gradient(145deg, #7B98FF 0%, #3B6BFF 55%, #2443C2 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 18px -6px rgba(59,107,255,.75); }
.wz-steps::before { background: linear-gradient(180deg, var(--border-strong), transparent); }
.wz-st.is-active { background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.wz-st-n { border: 0 !important; background: var(--hn-well) !important; box-shadow: var(--hn-well-sh); color: var(--text-3); }
.wz-st.is-active .wz-st-n { color: #fff; background: linear-gradient(180deg, #6189FF, #3B6BFF 55%, #2D55DD) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 4px var(--accent-weak), 0 4px 12px -3px rgba(59,107,255,.8); }
.wz-st.is-done .wz-st-n { color: #06210F; background: linear-gradient(180deg, #7EF0BE, #22C55E) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 10px -4px rgba(34,197,94,.75); }
.wz-quota-bar { height: 6px; border-radius: 99px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.wz-quota-bar > i { border-radius: inherit; background: linear-gradient(90deg, #3B6BFF, #8EA8FF); box-shadow: 0 0 10px rgba(91,130,255,.7); }
.wz-flow { background: var(--surface); }
.wz-dots i { height: 4px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.wz-dots i.d { background: var(--text-3); box-shadow: none; }
.wz-dots i.a { background: linear-gradient(90deg, #3B6BFF, #8EA8FF); box-shadow: 0 0 8px rgba(91,130,255,.8); }
.wz-c { border: 0; border-radius: 18px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); transition: transform .25s var(--ease), box-shadow .25s; }
.wz-c:hover { border: 0; transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px color-mix(in srgb, var(--mc) 50%, transparent), var(--hn-lift); }
.wz-c.is-sel { border: 0; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-weak), 0 18px 40px -16px rgba(59,107,255,.6); }
.wz-c-check { background: linear-gradient(180deg, #6189FF, #3B6BFF); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px -3px rgba(59,107,255,.8); }
.wz-c-av .ts-avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--mc) 65%, transparent), 0 10px 22px -8px color-mix(in srgb, var(--mc) 70%, transparent) !important; }
.wz-a { border: 0; border-radius: 14px; background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: transform .2s var(--ease), box-shadow .2s, filter .15s; }
.wz-a:hover { border: 0; background: var(--hn-key); transform: translateY(-2px); filter: brightness(1.06); }
[data-theme="light"] .wz-a:hover { border: 0; filter: brightness(.99); }
.wz-a.is-sel { border: 0; background: var(--hn-key); box-shadow: var(--hn-key-sh), inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-weak); }
.wz-radio { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.wz-f { border: 0; border-radius: 18px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); transition: transform .25s var(--ease), box-shadow .25s; }
.wz-f:hover { border: 0; transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px color-mix(in srgb, var(--fc, var(--accent)) 45%, transparent), var(--hn-lift); }
[data-theme="light"] .wz-f:hover { border: 0; }
.wz-f.is-sel { border: 0; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-weak), 0 18px 40px -16px rgba(59,107,255,.6); }
.wz-f-ico { width: 32px; height: 32px; border-radius: 10px; color: #fff !important; background: linear-gradient(145deg, color-mix(in srgb, var(--fc, #6C84FF) 80%, #fff), color-mix(in srgb, var(--fc, #6C84FF) 78%, #000)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -5px var(--fc, #6C84FF); }
.wz-f-mini { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.wz-new { border-radius: 6px; background: linear-gradient(180deg, #6189FF, #3B6BFF); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 3px 8px -2px rgba(59,107,255,.8); }
.wz-ta { border: 0; border-radius: 16px; background: var(--hn-well); box-shadow: var(--hn-well-sh); transition: box-shadow .15s; }
.wz-ta:focus { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh), 0 0 0 2px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 24px -6px rgba(59,107,255,.6); }
.wz-v { border: 0; border-radius: 14px; background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: transform .2s var(--ease), filter .15s; }
.wz-v:hover { transform: translateY(-2px); filter: brightness(1.06); }
.wz-v.is-sel { background: var(--hn-key); box-shadow: var(--hn-key-sh), inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-weak); }
.wz-v-n { background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.wz-modal .ts-chip { border: 0 !important; background: var(--hn-key) !important; box-shadow: var(--hn-key-sh); }
.wz-pgrid .ts-photo { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); transition: transform .25s var(--ease), box-shadow .25s; }
.wz-pgrid .ts-photo:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--hn-lift); }
.wz-foot { border-top: 0; box-shadow: inset 0 1px 0 var(--border); background: var(--surface); }
.wz-pane { border-left: 0; box-shadow: inset 1px 0 0 var(--border); background: radial-gradient(70% 55% at 50% 52%, rgba(59,107,255,.14), transparent 70%), var(--bg); position: relative; }
.wz-pane::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--border-strong) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(60% 50% at 50% 52%, #000, transparent 80%); mask-image: radial-gradient(60% 50% at 50% 52%, #000, transparent 80%); opacity: .7; }
.wz-pane > * { position: relative; }
.wz-x { box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 0 0 1px var(--border-strong), 0 30px 60px -24px rgba(0,0,0,.85), 0 60px 80px -50px rgba(59,107,255,.45); transition: transform .4s var(--ease); }
.wz-pane-body:hover .wz-x { transform: translateY(-3px); }
.wz-close .ts-iconbtn { border-radius: 11px; }

/* ==========================================================================
   DA RELIEF 2 — Planning, Réponses, Vault, Équipe (+ fenêtre Inviter)
   ========================================================================== */
.ts-page.pl, .ts-page.rp, .ts-page.vt, .ts-page.az { max-width: 1440px; }

/* ---------- en-tête commun : panneau, icône brillante, compteurs creusés ---------- */
.rl-hero { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 22px 24px; margin-bottom: 18px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(55% 150% at 100% 0%, rgba(59,107,255,.15), transparent 62%), var(--hn-panel);
  box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.rl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--hn-panel-b) 1px, transparent 1px), linear-gradient(90deg, var(--hn-panel-b) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(42% 120% at 100% 0%, #000, transparent 75%); mask-image: radial-gradient(42% 120% at 100% 0%, #000, transparent 75%); }
.rl-title { margin: 0; display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.rl-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7B98FF 0%, #3B6BFF 55%, #2443C2 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.18), 0 10px 22px -6px rgba(59,107,255,.75); }
.rl-ic.sm { width: 32px; height: 32px; border-radius: 10px; }
.rl-ic.ink { background: linear-gradient(145deg, #4A505D 0%, #1A1C22 58%, #060709 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.4), 0 10px 22px -8px rgba(0,0,0,.75); }
.rl-wells { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rl-well { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 13px 15px; border-radius: 14px; background: var(--hn-well); box-shadow: var(--hn-well-sh); min-width: 0; }
.rl-well > span { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-well > b { font-size: 26px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--text); }
.rl-well.warm > b { color: var(--hn-warm); }
.rl-well.hot > b { background: linear-gradient(90deg, var(--hn-hot2), var(--hn-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rl-well.va > b { color: var(--accent-text); }
.rl-well.mgr > b { color: var(--cred); }
.pl-hero-top, .vt-hero-top, .az-hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Planning ---------- */
.pl-head.rl-hero { align-items: stretch; margin-bottom: 18px; }
.pl .pl-btn { border: 0; border-radius: 10px; font-weight: 500; color: var(--text); background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: transform .12s var(--ease), filter .15s, box-shadow .15s; }
.pl .pl-btn:hover:not(:disabled) { transform: none; filter: brightness(1.14); box-shadow: var(--hn-key-sh); border-color: transparent; }
[data-theme="light"] .pl .pl-btn:not(.is-primary):not(.is-white):hover:not(:disabled) { filter: brightness(.97); }
.pl .pl-btn:active:not(:disabled) { transform: translateY(1px); }
.pl .pl-btn.is-primary, .pl .pl-btn.is-white, .pl .pl-btn.is-primary:hover:not(:disabled), .pl .pl-btn.is-white:hover:not(:disabled) { color: #fff; background: linear-gradient(180deg, #6189FF 0%, #3B6BFF 52%, #2D55DD 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.4), 0 10px 24px -8px rgba(59,107,255,.8); }
.pl .pl-btn.is-primary:hover:not(:disabled), .pl .pl-btn.is-white:hover:not(:disabled) { filter: brightness(1.08); }
.pl .pl-btn.is-glass { color: var(--text); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pl .pl-spin.dark { color: #fff; }
.pl-icon { width: 30px; height: 30px; border-radius: 9px; color: var(--text-2); background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.pl-icon:hover { color: var(--danger); background: var(--hn-key); filter: brightness(1.12); }
.pl-type { font-weight: 500; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 30%, transparent); }

/* prochain post : panneau éclairé par la couleur du format, compte à rebours en cases creusées */
.pl-next { color: var(--text); border-radius: 20px;
  background: radial-gradient(55% 170% at 0% 50%, color-mix(in srgb, var(--t) 24%, transparent), transparent 65%), var(--hn-panel);
  box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.pl-next.is-late { background: radial-gradient(55% 170% at 0% 50%, rgba(255,78,91,.24), transparent 65%), var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px rgba(255,78,91,.32), 0 18px 40px -22px rgba(255,78,91,.7); }
.pl-next-glow { display: none; }
.pl-next::after { background-image: radial-gradient(var(--hn-panel-b) 1px, transparent 1.4px); }
.pl-next-count { border-right: 1px solid var(--border); }
.pl-next-k { font-family: var(--font); font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-3); opacity: 1; }
.pl-cd { display: flex; gap: 6px; margin: 5px 0 3px; animation: plUp .4s var(--ease-pl); }
.pl-cd-u { display: inline-flex; align-items: baseline; gap: 3px; padding: 7px 10px 8px; border-radius: 11px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.pl-cd-u b { font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.pl-cd-u i { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.pl-next.is-late .pl-cd-u b { color: var(--hn-hot); text-shadow: 0 0 14px rgba(255,78,91,.45); }
.pl-next-at, .pl-next-top span:not(.pl-type) { color: var(--text-3); opacity: 1; font-weight: 400; }
.pl-next-top b { font-weight: 500; }
.pl-next-txt { color: var(--text-2); opacity: 1; }
.pl-next .pl-type { color: var(--t); background: color-mix(in srgb, var(--t) 14%, transparent); }
.pl-next-media .pl-thumb { border: 0; box-shadow: 0 0 0 2px var(--surface), 0 12px 22px -8px rgba(0,0,0,.65); }

/* barre d'outils */
.pl-seg { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.pl-seg-pill { background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.pl-seg button { font-weight: 500; color: var(--text-3); }
.pl-seg button.is-on { color: var(--text); }
.pl-weeknav { gap: 6px; font-weight: 500; }
.pl-weeknav button { border: 0; background: var(--hn-key); box-shadow: var(--hn-key-sh); color: var(--text-2); transition: filter .15s, transform .12s; }
.pl-weeknav button:hover { color: var(--text); box-shadow: var(--hn-key-sh); filter: brightness(1.14); }
.pl-weeknav button:active { transform: translateY(1px); }
.pl-weeknav > span { height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 9px; background: var(--hn-well); box-shadow: var(--hn-well-sh); font-size: 12.5px; }
.pl-weeknav .pl-today { color: var(--accent-text); font-weight: 500; }
.pl-creators { gap: 6px; }
.pl-creators button { border: 0; background: var(--hn-key); box-shadow: var(--hn-key-sh); font-weight: 500; transition: box-shadow .2s, transform .12s; }
.pl-creators button:active { transform: translateY(1px); }
.pl-creators button.is-on { color: var(--text); box-shadow: var(--hn-key-sh), 0 0 0 1.5px var(--c, var(--accent)), 0 8px 18px -8px var(--c, var(--accent)); }
.pl-tray { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.pl-tray-l { font-weight: 500; }
.pl-chip { border: 0; font-weight: 500; background: var(--hn-key); box-shadow: inset 3px 0 0 var(--t), var(--hn-key-sh); }

/* semaine */
.pl-week { border: 0; border-radius: 20px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.pl-week-head { background: transparent; border-bottom-color: var(--border); }
.pl-wd { border-left-color: var(--border); }
.pl-wd span { font-weight: 500; }
.pl-wd b { font-weight: 500; }
.pl-wd.is-today b { color: #fff; background: linear-gradient(180deg, #6189FF 0%, #3B6BFF 55%, #2D55DD 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 14px -5px rgba(59,107,255,.85); }
.pl-wd i { font-weight: 500; background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.pl-wd.is-today i { color: var(--accent-text); background: var(--hn-key); }
.pl-col.is-today { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent) 2%, transparent)); }
.pl-col.is-over { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.pl-now { height: 2px; background: linear-gradient(90deg, #FF4E5B, #FF9A3D); box-shadow: 0 0 10px rgba(255,78,91,.8); }
.pl-ev { border: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--t) 20%, var(--surface-2)), color-mix(in srgb, var(--t) 9%, var(--surface)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px color-mix(in srgb, var(--t) 32%, transparent), 0 6px 14px -8px rgba(0,0,0,.65); }
.pl-ev:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px color-mix(in srgb, var(--t) 55%, transparent), 0 12px 24px -10px var(--t); }
.pl-ev.is-pending { outline: 1px dashed color-mix(in srgb, var(--t) 70%, transparent); outline-offset: -1px; }
.pl-ev.is-late { background: linear-gradient(180deg, color-mix(in srgb, #FF4E5B 22%, var(--surface-2)), color-mix(in srgb, #FF4E5B 9%, var(--surface))); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,78,91,.4), 0 6px 14px -8px rgba(255,78,91,.6); }
.pl-ev-bar { box-shadow: 0 0 8px var(--t); }
.pl-ev-main b { font-weight: 600; }
.pl-ev-main span { font-weight: 500; }
.pl-ev-pub { background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.pl-ev-pub:hover { color: #fff; background: linear-gradient(180deg, #6189FF, #3B6BFF 55%, #2D55DD); }

/* liste */
.pl-day-h { box-shadow: inset 0 0 0 1px var(--hn-panel-b); }
.pl-day-n { font-weight: 500; }
.pl-day-bar i { height: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.pl-item-time b { font-weight: 500; }
.pl-pill { font-weight: 500; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent); }
.pl-item-dot { border: 0; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), transparent 48%), var(--t); box-shadow: 0 0 0 4px var(--bg), 0 0 12px -1px var(--t); }
.pl-item.is-late .pl-item-dot { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), transparent 48%), #FF4E5B; }
.pl-item-card { border: 0; border-radius: 16px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.pl-item-card:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-lift); }
.pl-item.is-late .pl-item-card { box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px rgba(255,78,91,.35), var(--hn-drop); }
.pl-item-card::before { box-shadow: 0 0 10px var(--t); }
.pl-item-h { font-weight: 500; }
.pl-item-act { border-top-color: var(--border); }
.pl-strip .pl-thumb { box-shadow: 0 0 0 1px var(--hn-panel-b), 0 8px 16px -8px rgba(0,0,0,.6); }
.pl-poll span { border: 0; font-weight: 500; background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.pl-empty { border: 0; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.pl-empty b { font-weight: 500; }
.pl-empty-art span { border: 0; background: var(--hn-key); box-shadow: var(--hn-key-sh), 0 10px 20px -10px rgba(0,0,0,.6); }
.pl-empty-art span:nth-child(2) { background: linear-gradient(180deg, #6189FF, #3B6BFF 55%, #2D55DD); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 22px -8px rgba(59,107,255,.8); }

/* fenêtre « Modifier le post » */
.pl-modal-t { font-weight: 500; }
.pl-modal-f { background: transparent; }
.pl-when span, .pl-lbl { font-family: var(--font); font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.pl-when input, .pl-ta { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.pl-when input:focus, .pl-ta:focus { background: var(--hn-well); box-shadow: var(--hn-well-sh), 0 0 0 2px color-mix(in srgb, var(--accent) 65%, transparent); }

/* ---------- Réponses ---------- */
.rp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 184px; gap: 28px; align-items: center; animation: rpUp .45s var(--ease-rp); }
.rp-hero-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rp-gauge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rp-gauge .d3-ring-g { width: 158px; grid-row: auto; }
.rp-gauge .d3-ring-c b { font-size: 32px; }
.rp-gauge .d3-ring-f { font-size: 12px; color: var(--text-3); text-align: center; align-self: auto; }
.rp-gauge.warn line.on { stroke: #F5A524; filter: drop-shadow(0 0 3px rgba(245,165,36,.9)); }
.rp-gauge.warn .arc { filter: drop-shadow(0 0 7px rgba(245,165,36,.55)); }
.rp-gauge.full line.on { stroke: #FF5A4E; filter: drop-shadow(0 0 3px rgba(255,90,78,.9)); }
.rp-gauge.full .arc { filter: drop-shadow(0 0 7px rgba(255,90,78,.55)); }
.rp-gauge.unl line.on { stroke: #A78BFA; filter: drop-shadow(0 0 3px rgba(167,139,250,.9)); }
.rp-gauge.unl .arc { filter: drop-shadow(0 0 7px rgba(167,139,250,.55)); }

.rp-panel { border: 0; border-radius: 20px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.rp-lbl { font-family: var(--font); font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.rp-url { height: 56px; border: 0; border-radius: 15px; background: var(--hn-well); box-shadow: var(--hn-well-sh); transition: box-shadow .25s; }
.rp-url:focus-within { background: var(--hn-well); box-shadow: var(--hn-well-sh), 0 0 0 2px color-mix(in srgb, var(--accent) 65%, transparent), 0 0 24px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.rp-url.is-ok, .rp-url.is-ok:focus-within { box-shadow: var(--hn-well-sh), 0 0 0 1.5px color-mix(in srgb, var(--active-dot) 70%, transparent), 0 0 24px -8px var(--active-dot); }
.rp-url.is-bad { box-shadow: var(--hn-well-sh), 0 0 0 1.5px color-mix(in srgb, var(--danger-dot) 60%, transparent); }
.rp-url-ico { width: 38px; height: 38px; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #4A505D 0%, #1A1C22 58%, #060709 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.4), 0 6px 14px -6px rgba(0,0,0,.8); }
.rp-url-btn.is-paste { border: 0; font-weight: 500; background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.rp-url-btn.is-paste:hover { color: var(--text); filter: brightness(1.14); }
.rp-ok, .az-ok { background: linear-gradient(180deg, #4ADE80, #22C55E 55%, #15A34A); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 8px -1px rgba(34,197,94,.9); }
.rp-cr { border: 0; font-weight: 500; background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: transform .15s var(--ease), box-shadow .2s; }
.rp-cr:hover { transform: translateY(-1px); }
.rp-cr:active { transform: translateY(1px); }
.rp-cr.is-on { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, var(--surface-2)), color-mix(in srgb, var(--c) 8%, var(--surface))); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1.5px var(--c), 0 10px 22px -10px var(--c); }
.rp-chip { border: 0; font-weight: 500; color: var(--text-2); background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: box-shadow .2s, transform .12s, color .15s; }
.rp-chip:hover { color: var(--text); }
.rp-chip:active { transform: translateY(1px); }
.rp-chip.is-on { transform: none; color: #fff; background: linear-gradient(180deg, #6189FF 0%, #3B6BFF 52%, #2D55DD 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 2px rgba(0,0,0,.4), 0 8px 18px -8px rgba(59,107,255,.85); }
.rp-chip.is-on.is-own::before { background: #fff; }
.rp-chip.is-add { background: transparent; box-shadow: none; outline: 1px dashed var(--border-strong); outline-offset: -1px; }
.rp-free { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh), 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent); }
.rp-free button { background: linear-gradient(180deg, #6189FF, #3B6BFF 55%, #2D55DD); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.rp-seg { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.rp-seg-pill { background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.rp-seg button { font-family: var(--font); font-weight: 500; }
.rp-seg button.is-on { color: var(--text); }
.rp-go { height: 54px; border-radius: 15px; font-weight: 500; letter-spacing: -.01em; color: #fff; background: linear-gradient(180deg, #6E93FF 0%, #3B6BFF 50%, #2A4FD6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.4), 0 16px 32px -12px rgba(59,107,255,.9); transition: transform .15s var(--ease), filter .15s, box-shadow .2s; }
.rp-go:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.4), 0 22px 40px -12px rgba(59,107,255,1); }
.rp-go:active:not(:disabled) { transform: translateY(1px); }
.rp-go:disabled { filter: none; opacity: 1; color: var(--text-3); background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.rp-go.is-loading:disabled { color: #fff; background: linear-gradient(180deg, #6E93FF 0%, #3B6BFF 50%, #2A4FD6 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 30px -6px rgba(59,107,255,.9); }
.rp-go-kbd { font-weight: 500; background: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 1px 0 rgba(0,0,0,.25); }
.rp-go:disabled .rp-go-kbd { background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.rp-recent { border-top-color: var(--border); }
.rp-rec { border-radius: 11px; transition: background .15s, box-shadow .15s; }
.rp-rec:hover { background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.rp-rec-t b { font-weight: 500; }

/* scène : fond éclairé, fil X qui flotte */
.rp-stage { border: 0; border-radius: 20px; min-height: 560px; isolation: isolate;
  background: radial-gradient(70% 55% at 50% 0%, rgba(59,107,255,.16), transparent 70%), var(--hn-panel);
  box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.rp-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(var(--hn-panel-b) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 85%); mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 85%); }
.rp-stage-h { background: transparent; border-bottom: 1px solid var(--hn-panel-b); }
.rp-stage-t { font-weight: 500; }
.rp-live { background: var(--hn-well); box-shadow: var(--hn-well-sh); width: 9px; height: 9px; }
.rp-live[data-on="1"] { background: #5B8BFF; box-shadow: 0 0 10px rgba(91,139,255,.9); }
.rp-pips { display: inline-flex; gap: 4px; }
.rp-pips i { width: 18px; height: 5px; border-radius: 3px; background: var(--hn-well); box-shadow: var(--hn-well-sh); transition: background .3s, box-shadow .3s; }
.rp-pips i.done { background: #3B6BFF; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.rp-pips i.on { background: linear-gradient(90deg, #86A3FF, #3B6BFF); box-shadow: 0 0 9px rgba(91,130,255,.85); animation: rpPip 1.1s ease-in-out infinite; }
@keyframes rpPip { 50% { opacity: .55; } }
.rp-ghost { border: 0; font-weight: 500; background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: filter .15s, transform .12s; }
.rp-ghost:hover:not(:disabled) { border-color: transparent; filter: brightness(1.14); box-shadow: var(--hn-key-sh); }
.rp-ghost:active:not(:disabled) { transform: translateY(1px); }
.rp-ghost.is-on { color: var(--active); background: var(--hn-key); box-shadow: var(--hn-key-sh), 0 0 0 1.5px color-mix(in srgb, var(--active-dot) 60%, transparent); }
.rp-progress i { background: linear-gradient(90deg, #86A3FF, #3B6BFF); box-shadow: 0 0 10px rgba(91,130,255,.9); }
.rp-feed { position: relative; max-width: 660px; margin: 26px auto 30px; padding: 20px 20px 6px; border-radius: 20px; background: var(--surface);
  box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-lift); animation: rpUp .45s var(--ease-rp); }
.rp-feed:has(> .rp-empty:only-child) { background: none; box-shadow: none; animation: none; }
.rp-src-av { background: linear-gradient(145deg, #4A505D 0%, #1A1C22 58%, #060709 100%); box-shadow: 0 0 0 3px var(--surface), 0 6px 14px -6px rgba(0,0,0,.7); }
.rp-name { font-weight: 600; }
.rp-imgs { border: 0; box-shadow: 0 0 0 1px var(--hn-panel-b), 0 12px 26px -14px rgba(0,0,0,.7); }
.rp-reply-main { border: 0; }
.rp-reply:hover .rp-reply-main { background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.rp-reply.is-copied .rp-reply-main { background: color-mix(in srgb, var(--active-dot) 8%, var(--hn-well)); box-shadow: var(--hn-well-sh), 0 0 0 1.5px color-mix(in srgb, var(--active-dot) 55%, transparent), 0 0 22px -8px var(--active-dot); }
.rp-kbd { min-width: 20px; height: 20px; border: 0; border-radius: 6px; font-weight: 500; background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.rp-copy { border: 0; font-weight: 500; background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: transform .12s, filter .15s, color .15s; }
.rp-copy:hover { color: var(--accent-text); transform: translateY(-1px); box-shadow: var(--hn-key-sh); filter: brightness(1.12); }
.rp-copy.is-on { color: #fff; background: linear-gradient(180deg, #4ADE80, #22C55E 50%, #15A34A); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -8px rgba(34,197,94,.85); }
.rp-empty-art span { border: 0; background: var(--hn-key); box-shadow: var(--hn-key-sh), 0 14px 26px -12px rgba(0,0,0,.6); }
.rp-empty-art span::before, .rp-empty-art span::after { background: var(--hn-well); }
.rp-empty-art .a2 { box-shadow: var(--hn-key-sh), 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent), 0 14px 28px -10px rgba(59,107,255,.6); }
.rp-empty-art .a2::before { background: linear-gradient(180deg, #86A3FF, #3B6BFF); }
.rp-empty-t { font-weight: 500; }
.rp-err { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger-dot) 35%, transparent); }

/* ---------- Vault ---------- */
.vt-split { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 18px; align-items: start; }
.vt-rail { position: sticky; top: 16px; display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - var(--topbar-h, 64px) - 32px); transition: top .2s var(--ease); padding: 14px 10px 10px; border-radius: 20px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.vt-rail-h { display: flex; align-items: center; gap: 8px; padding: 0 6px 10px; font-size: 13px; color: var(--text-2); }
.vt-rail-h em, .vt-cr em { font-style: normal; font-variant-numeric: tabular-nums; border-radius: 99px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.vt-rail-h em { font-size: 11px; color: var(--text-3); padding: 1px 7px; }
.vt-rail-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; padding: 2px; scrollbar-width: thin; }
.vt-cr { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 9px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .15s, box-shadow .2s; flex: none; }
.vt-cr:hover { background: var(--surface-hover); }
.vt-cr.on { background: var(--hn-key); box-shadow: var(--hn-key-sh), 0 0 0 1.5px color-mix(in srgb, var(--c) 75%, transparent), 0 10px 22px -12px var(--c); }
.vt-cr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vt-cr-t b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-cr-bar { display: block; height: 4px; border-radius: 3px; background: var(--hn-well); box-shadow: var(--hn-well-sh); overflow: hidden; }
.vt-cr-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c)); box-shadow: 0 0 6px var(--c); transition: width .6s var(--ease); }
.vt-cr em { min-width: 26px; height: 22px; padding: 0 7px; display: grid; place-items: center; font-size: 12px; color: var(--text-2); }
.vt-cr.empty em { color: var(--hn-hot); }
.vt-cr.on em { color: var(--text); }
.vt-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.vt-panel { min-width: 0; padding: 14px; border-radius: 20px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.vt-panel-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 2px 4px 14px; }
.vt-panel-av { display: inline-flex; flex: none; }
.vt-panel-av .ts-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--c), 0 8px 18px -6px var(--c); }
.vt-panel-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; color: var(--text-2); background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.vt-panel-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vt-panel-t b { font-size: 15.5px; font-weight: 500; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-panel-t span { font-size: 12px; color: var(--text-3); }
.vt-tray { padding: 12px; border-radius: 15px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.vt-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; cursor: zoom-in; animation: vtIn .4s var(--ease) backwards; animation-delay: calc(var(--i) * 18ms); transition: transform .25s var(--ease); }
.vt-tile.is-selmode { cursor: pointer; }
.vt-ph { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; display: grid; place-items: center; color: var(--text-3); background: var(--hn-key); box-shadow: inset 0 0 0 1px var(--hn-panel-b), 0 1px 0 rgba(0,0,0,.35), 0 10px 22px -12px rgba(0,0,0,.85); transition: box-shadow .25s; }
.vt-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .15s; }
.vt-ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.06); background: linear-gradient(180deg, rgba(0,0,0,.42), transparent 30%, transparent 68%, rgba(0,0,0,.45)); opacity: 0; transition: opacity .2s; }
.vt-tile:hover { transform: translateY(-3px); }
.vt-tile:hover .vt-ph { box-shadow: inset 0 0 0 1px var(--hn-panel-b), var(--hn-lift); }
.vt-tile:hover .vt-ph img { transform: scale(1.05); }
.vt-tile:hover .vt-ph::after, .vt-tile.is-sel .vt-ph::after, .vt-tile.is-selmode .vt-ph::after { opacity: 1; }
.vt-tile.is-sel { transform: scale(.96); }
.vt-tile.is-sel .vt-ph { box-shadow: 0 0 0 2.5px #3B6BFF, 0 0 24px -4px rgba(59,107,255,.85); }
.vt-tile.is-sel .vt-ph img { opacity: .8; }
.vt-check { position: absolute; top: 7px; left: 7px; z-index: 2; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 7px; display: grid; place-items: center; color: #fff; cursor: pointer; background: rgba(10,12,16,.45); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85), 0 2px 6px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .15s, background .15s; }
.vt-tile:hover .vt-check, .vt-tile.is-sel .vt-check, .vt-tile.is-selmode .vt-check { opacity: 1; }
.vt-tile.is-sel .vt-check { background: linear-gradient(180deg, #6189FF, #3B6BFF 55%, #2D55DD); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px -3px rgba(59,107,255,.9); }
.vt-tag { position: absolute; left: 7px; bottom: 7px; z-index: 2; max-width: calc(100% - 14px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; color: #fff; background: rgba(10,12,16,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.vt-acts { position: absolute; top: 7px; right: 7px; z-index: 2; display: flex; gap: 5px; opacity: 0; transform: translateY(-3px); transition: opacity .15s, transform .2s var(--ease); }
.vt-tile:hover .vt-acts { opacity: 1; transform: none; }
.vt-act { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; display: grid; place-items: center; color: #fff; cursor: pointer; background: linear-gradient(180deg, rgba(64,68,78,.94), rgba(22,24,30,.94)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 10px -3px rgba(0,0,0,.7); transition: transform .12s, filter .15s; }
.vt-act:hover { filter: brightness(1.15); }
.vt-act:active { transform: translateY(1px); }
.vt-act.pri { background: linear-gradient(180deg, #6189FF, #3B6BFF 55%, #2D55DD); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px -3px rgba(59,107,255,.9); }
.vt-act.danger { background: linear-gradient(180deg, #FF7A7E, #E5484D 55%, #C42F35); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 10px -3px rgba(229,72,77,.9); }
@media (hover: none) { .vt-acts, .vt-check { opacity: 1; transform: none; } }
.vt-sk { aspect-ratio: 3 / 4; border-radius: 12px; background: var(--hn-key); box-shadow: var(--hn-key-sh); animation: vtPulse 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * 60ms); }
.vt-more { display: flex; justify-content: center; margin-top: 14px; }
.vt-void { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px; text-align: center; font-size: 14px; color: var(--text-2); }
.vt-void b { font-weight: 500; }
.vt-void.sm { padding: 22px 16px; }
.vt-panel.vt-void { padding: 50px 16px; }
.vt-void-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--text-3); background: var(--hn-key); box-shadow: var(--hn-key-sh), 0 12px 24px -12px rgba(0,0,0,.6); }
.vt:has(.vt-bulk) .vt-rail { top: 84px; max-height: calc(100vh - var(--topbar-h, 64px) - 100px); }
.vt-bulk { position: sticky; top: 10px; z-index: 30; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 10px 10px 16px; margin-bottom: 18px; border-radius: 16px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 30px -10px rgba(59,107,255,.6), var(--hn-lift); animation: vtIn .25s var(--ease); }
.vt-bulk-n { font-size: 13.5px; color: var(--text-2); }
.vt-bulk-n b { font-size: 16px; font-weight: 500; color: var(--accent-text); font-variant-numeric: tabular-nums; }
@keyframes vtIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes vtPulse { 50% { opacity: .45; } }

/* fenêtres du Vault */
.ts-modal.vt-modal { max-width: 520px; width: 100%; padding: 0; overflow: hidden; }
.vt-modal-h { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.vt-modal-t { font-size: 16px; font-weight: 500; letter-spacing: -.015em; }
.vt-modal-b { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.vt-modal-f { display: flex; align-items: center; gap: 9px; padding: 13px 18px; border-top: 1px solid var(--border); }
.vt-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.vt-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 5px; border: 0; border-radius: 99px; color: var(--text-2); background: var(--hn-key); box-shadow: var(--hn-key-sh); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: box-shadow .2s, color .15s, transform .12s; }
.vt-chip:active { transform: translateY(1px); }
.vt-chip.on { color: var(--text); box-shadow: var(--hn-key-sh), 0 0 0 1.5px var(--c), 0 8px 18px -8px var(--c); }
.vt-chip .ts-avatar { border-radius: 50% !important; }
.vt-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 16px; border-radius: 16px; text-align: center; cursor: pointer; background: var(--hn-well); box-shadow: var(--hn-well-sh); outline: 1.5px dashed color-mix(in srgb, var(--text-3) 45%, transparent); outline-offset: -8px; transition: outline-color .15s, box-shadow .2s, padding .2s; }
.vt-drop:hover, .vt-drop.is-drag { outline-color: color-mix(in srgb, var(--accent) 80%, transparent); box-shadow: var(--hn-well-sh), inset 0 0 44px -12px rgba(59,107,255,.5); }
.vt-drop-ic { width: 46px; height: 46px; margin-bottom: 8px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7B98FF 0%, #3B6BFF 55%, #2443C2 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.18), 0 10px 22px -6px rgba(59,107,255,.75); transition: transform .3s var(--ease); }
.vt-drop.is-drag .vt-drop-ic { transform: translateY(-4px) scale(1.06); }
.vt-drop b { font-size: 14px; font-weight: 500; }
.vt-drop > span:not(.vt-drop-ic) { font-size: 12px; color: var(--text-3); }
.vt-drop u { color: var(--accent-text); text-decoration: none; }
.vt-drop.has-files { padding: 16px; }
.vt-drop.has-files .vt-drop-ic { width: 36px; height: 36px; margin-bottom: 4px; border-radius: 11px; }
.vt-files-w { display: flex; flex-direction: column; gap: 9px; }
.vt-files-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.vt-files-h b { color: var(--text); font-weight: 500; }
.vt-files { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.vt-file { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--hn-well); box-shadow: 0 0 0 1px var(--hn-panel-b), 0 6px 12px -8px rgba(0,0,0,.7); animation: pop .2s ease; }
.vt-file img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-file button { position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(10,12,16,.72); cursor: pointer; }
.vt-file.more { display: grid; place-items: center; font-size: 12px; color: var(--text-2); box-shadow: var(--hn-well-sh); }
.vt-prog { display: flex; flex-direction: column; gap: 7px; }
.vt-prog-h { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--accent-text); }
.vt-prog-h b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.vt-prog-bar { height: 10px; padding: 2px; border-radius: 6px; background: var(--hn-well); box-shadow: var(--hn-well-sh); overflow: hidden; }
.vt-prog-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(180deg, #86A3FF, #3B6BFF 55%, #2D55DD); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 10px rgba(91,130,255,.8); transition: width .2s; }
.ts-modal.vt-confirm { max-width: 380px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 22px 18px; text-align: center; }
.vt-confirm > b { font-size: 16px; font-weight: 500; }
.vt-confirm > span { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.vt-confirm-ic { width: 48px; height: 48px; margin-bottom: 4px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #FF7A7E, #E5484D 55%, #C42F35); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -8px rgba(229,72,77,.85); }
.vt-confirm-ic.ok { background: linear-gradient(180deg, #4ADE80, #22C55E 55%, #15A34A); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -8px rgba(34,197,94,.85); }
.vt-confirm-f { display: flex; gap: 9px; width: 100%; margin-top: 10px; }
.vt-confirm > .vt-optim-n { font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.vt-lightbox { position: relative; max-width: 90vw; max-height: 90vh; display: flex; animation: pop .18s ease; }
.vt-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -20px rgba(0,0,0,.9); }
.vt-lightbox-load { width: 220px; height: 260px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 12px; color: var(--text-3); background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b); }
.vt-lightbox-x { position: absolute; top: -14px; right: -14px; border-radius: 50%; }

/* ---------- Équipe (Autorisations) ---------- */
.az-head.rl-hero { align-items: stretch; margin-bottom: 18px; }
.az .rl-well .az-stack { position: absolute; right: 12px; bottom: 13px; }
.az .rl-well .az-stack-i, .az .rl-well .az-stack-more { box-shadow: 0 0 0 2px var(--hn-well); }
.az-card { border: 0; border-radius: 20px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.az-card-t { font-weight: 500; }
.az-btn { border: 0; border-radius: 10px; font-weight: 500; color: var(--text); background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: transform .12s var(--ease), filter .15s, box-shadow .15s; }
.az-btn:hover:not(:disabled) { transform: none; filter: brightness(1.14); box-shadow: var(--hn-key-sh); border-color: transparent; }
.az-btn:active:not(:disabled) { transform: translateY(1px); }
.az-btn.is-primary, .az-btn.is-primary:hover:not(:disabled) { color: #fff; background: linear-gradient(180deg, #6189FF 0%, #3B6BFF 52%, #2D55DD 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.4), 0 10px 24px -8px rgba(59,107,255,.8); }
.az-btn.is-primary:hover:not(:disabled) { filter: brightness(1.08); }
.az-btn:disabled, .az-btn.is-primary:disabled { opacity: 1; color: var(--text-3); background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.az-btn.is-ok { color: var(--active); background: var(--hn-key); box-shadow: var(--hn-key-sh), 0 0 0 1.5px color-mix(in srgb, var(--active-dot) 55%, transparent); }
[data-theme="light"] .az-btn:not(.is-primary):hover:not(:disabled), [data-theme="light"] .pl-weeknav button:hover, [data-theme="light"] .rp-ghost:hover:not(:disabled) { filter: brightness(.97); }
.az-link { font-weight: 500; transition: background .15s, box-shadow .15s; }
.az-link:hover { background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.az-icon { width: 30px; height: 30px; border: 0; color: var(--text-2); background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: filter .15s, color .15s, transform .12s; }
.az-icon:hover { color: var(--text); background: var(--hn-key); filter: brightness(1.14); }
.az-icon:active { transform: translateY(1px); }
.az-icon.is-danger:hover { color: var(--danger); background: var(--hn-key); }
.az-m-act { gap: 6px; }
.az-filters { background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.az-filters button { font-weight: 500; color: var(--text-3); }
.az-filters button span { font-family: var(--font); opacity: 1; color: var(--text-3); }
.az-filters button.is-on { color: var(--text); background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.az-search { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.az-search:focus-within { border-color: transparent; background: var(--hn-well); box-shadow: var(--hn-well-sh), 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent); }
.az-members { gap: 4px; padding: 0 10px 12px; }
.az-m + .az-m { box-shadow: none; }
.az-m:hover, .az-m:hover + .az-m:hover { background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.az-m.is-self { background: color-mix(in srgb, var(--accent) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.az-m-n { font-weight: 500; }
.az-av { font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.15), 0 6px 14px -6px rgba(0,0,0,.6); }
.az-online { box-shadow: 0 0 8px var(--active-dot); }
.az-you { font-weight: 500; }
.az-badge { font-weight: 500; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent); }
.az-badge.r-super_admin { color: #3A2500; background: linear-gradient(180deg, #FFE08A, #F2AE1C); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 10px -3px rgba(242,174,28,.75); }
.az-seg { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.az-seg-pill { background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.az-seg button { font-weight: 500; }
.az-mods-btn { border: 0; transition: background .15s, box-shadow .15s; }
.az-mods-btn:hover { background: var(--hn-key); box-shadow: var(--hn-key-sh); }
.az-all { font-weight: 500; }
.az-none { font-weight: 500; }
.az-count { color: #3A2500; font-family: var(--font); font-weight: 500; background: linear-gradient(180deg, #FFD36B, #F2A51C); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 10px -4px rgba(242,165,28,.8); }
.az-cov-bar { height: 8px; padding: 2px; border-radius: 5px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.az-cov-bar i { box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.az-cov-pct { font-family: var(--font); font-weight: 500; }
.az-cov-i { border: 0; background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: transform .2s var(--ease), box-shadow .2s; }
.az-cov-i:hover { box-shadow: var(--hn-key-sh), 0 0 0 1.5px color-mix(in srgb, var(--c) 60%, transparent), 0 12px 22px -12px var(--c); }
.az-cov-i.is-empty { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh), inset 0 0 0 1px color-mix(in srgb, var(--warmup-dot) 40%, transparent); }
.az-cov-n { font-weight: 500; }
.az-cov-s.is-warn { font-weight: 500; }
.az-cov-i .az-stack-i, .az-cov-i .az-stack-more { box-shadow: 0 0 0 2px var(--surface-2); }
.az-inv { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.az-inv-ico { color: #3A2500; background: linear-gradient(180deg, #FFD36B, #F2A51C); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 14px -6px rgba(242,165,28,.8); }
.az-inv-e { font-weight: 500; }
.az-mx-col { font-weight: 500; }
.az-mx-r:nth-child(even) { background: color-mix(in srgb, var(--hn-well) 55%, transparent); }
.az-mx-c.yes { color: #fff; background: linear-gradient(180deg, #4ADE80, #22C55E 55%, #15A34A); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 10px -4px rgba(34,197,94,.8); }
.az-mx-c.no { opacity: 1; color: var(--text-3); background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.az-empty-ico { color: #fff; background: linear-gradient(145deg, #7B98FF 0%, #3B6BFF 55%, #2443C2 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 22px -6px rgba(59,107,255,.75); }
.az-empty b { font-weight: 500; }

/* fenêtres Inviter / Assigner */
.az-modal-h { border-bottom-color: var(--border); }
.az-modal-ico { width: 36px; height: 36px; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #7B98FF 0%, #3B6BFF 55%, #2443C2 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.18), 0 8px 18px -6px rgba(59,107,255,.75); }
.az-modal-t { font-weight: 500; }
.az-modal-f { background: transparent; }
.az-modal-count b { font-family: var(--font); font-weight: 500; }
.az-lbl { font-family: var(--font); font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.az-lbl span { color: #fff; font-weight: 500; background: linear-gradient(180deg, #6189FF, #3B6BFF 55%, #2D55DD); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.az-email { height: 50px; border: 0; border-radius: 14px; background: var(--hn-well); box-shadow: var(--hn-well-sh); transition: box-shadow .25s; }
.az-email:focus-within { border-color: transparent; background: var(--hn-well); box-shadow: var(--hn-well-sh), 0 0 0 2px color-mix(in srgb, var(--accent) 65%, transparent), 0 0 24px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.az-email.is-ok, .az-email.is-ok:focus-within { box-shadow: var(--hn-well-sh), 0 0 0 1.5px color-mix(in srgb, var(--active-dot) 70%, transparent), 0 0 24px -8px var(--active-dot); }
.az-role { border: 0; border-radius: 14px; padding: 13px; background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: box-shadow .2s, transform .15s var(--ease); }
.az-role:hover { transform: translateY(-1px); }
.az-role:active { transform: translateY(1px); }
.az-role.is-on { background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 18%, var(--surface-2)), color-mix(in srgb, var(--rc) 6%, var(--surface))); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1.5px var(--rc), 0 12px 26px -12px var(--rc); }
.az-role-ico { color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--rc) 75%, #fff), color-mix(in srgb, var(--rc) 82%, #000)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -6px var(--rc); }
.az-role b { font-weight: 500; }
.az-radio { width: 20px; height: 20px; border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.az-role.is-on .az-radio { background: radial-gradient(circle, #fff 0 3.5px, transparent 4px), linear-gradient(180deg, color-mix(in srgb, var(--rc) 70%, #fff), var(--rc)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 10px -1px var(--rc); }
.az-pick { border: 0; border-radius: 12px; background: var(--hn-key); box-shadow: var(--hn-key-sh); transition: box-shadow .2s, transform .12s; }
.az-pick:active { transform: translateY(1px); }
.az-pick.is-on { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--surface-2)), color-mix(in srgb, var(--c) 6%, var(--surface))); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1.5px var(--c), 0 10px 22px -12px var(--c); }
.az-pick-n { font-weight: 500; }
.az-check { border: 0; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.az-pick.is-on .az-check { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 8px -1px var(--c); }
.az-confirm-t { font-weight: 500; }

/* éléments collants : la barre du haut est hors de la zone qui défile */
.rp-panel, .az-perms { top: 16px; }
.pl-day-h { top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .rp-hero { grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; }
  .rp-gauge { display: flex; }
  .rp-gauge .d3-ring-g { width: 140px; }
  .rp-gauge .d3-ring-c b { font-size: 28px; }
}
@media (max-width: 900px) {
  .vt-split { grid-template-columns: minmax(0, 1fr); }
  .vt-rail { position: static; max-height: none; padding: 8px; }
  .vt-rail-h { display: none; }
  .vt-rail-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .vt-cr { width: auto; padding: 6px 10px 6px 6px; }
  .vt-cr-bar { display: none; }
}
@media (max-width: 760px) {
  .rl-hero { padding: 18px 16px; gap: 16px; border-radius: 18px; }
  .rl-hero::before { display: none; }
  .rl-title { font-size: 22px; gap: 10px; }
  .rl-ic { width: 34px; height: 34px; border-radius: 10px; }
  .rl-wells { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rl-well { padding: 11px 12px; }
  .rl-well > b { font-size: 22px; }
  .rl-well:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pl-hero-top > .hn-btn, .vt-hero-top > .hn-btn, .az-hero-top > .hn-btn { width: 100%; }
  .az .rl-well .az-stack { display: none; }
  .rp-hero { grid-template-columns: minmax(0, 1fr); }
  .rp-gauge { display: none; }
  .pl-next-count { border-bottom-color: var(--border); }
  .pl-cd-u b { font-size: 22px; }
  .rp-feed { margin: 14px 10px 18px; padding: 16px 14px 4px; }
  .vt-panel { padding: 10px; border-radius: 18px; }
  .vt-tray { padding: 9px; }
  .vt-grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
  .vt-rail-list { scrollbar-width: none; }
  .vt-files { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vt-bulk { padding: 10px; }
  .vt-bulk-n { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .vt-tile, .vt-sk, .rp-pips i.on, .vt-bulk { animation: none !important; } }

/* ==========================================================================
   AUTOPOST — éditeur pas à pas (coque du wizard)
   ========================================================================== */
.ts-modal.wz-modal.ap-wz { max-width: 1080px; grid-template-columns: 210px minmax(0, 1fr) 330px; }
.ap-all-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7B98FF, #3B6BFF 55%, #2443C2); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px rgba(59,107,255,.55), 0 10px 22px -8px rgba(59,107,255,.8); }
.ap-agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ap-agrid .wz-a { padding: 10px 12px; }
.ap-fcheck { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--hn-well); box-shadow: var(--hn-well-sh); transition: transform .2s var(--ease); }
.ap-fcheck.on { background: linear-gradient(180deg, #6189FF, #3B6BFF); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px -3px rgba(59,107,255,.8); animation: apPop .25s var(--ease); }
@keyframes apPop { from { transform: scale(.4); } to { transform: scale(1); } }

/* rythme */
.ap-rate { display: flex; flex-direction: column; gap: 10px; }
.ap-rate-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-key { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--hn-key); box-shadow: var(--hn-key-sh); color: var(--text); font: inherit; font-size: 20px; cursor: pointer; transition: transform .12s, filter .15s; }
.ap-key:hover:not(:disabled) { filter: brightness(1.1); }
.ap-key:active:not(:disabled) { transform: translateY(1px); }
.ap-key:disabled { opacity: .35; cursor: default; }
.ap-rate-v { min-width: 84px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.ap-rate-v b { font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; animation: apPop .2s var(--ease); }
.ap-rate-q { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 12px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.ap-rate-q button { width: 34px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font: inherit; font-size: 13px; cursor: pointer; }
.ap-rate-q button.on { background: var(--hn-key); box-shadow: var(--hn-key-sh); color: var(--text); }
.ap-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ap-presets button { display: flex; flex-direction: column; gap: 9px; padding: 11px 12px 10px; border: 0; border-radius: 14px; background: var(--hn-key); box-shadow: var(--hn-key-sh); color: var(--text-2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.ap-presets button:hover { transform: translateY(-2px); }
.ap-presets button.on { color: var(--text); box-shadow: var(--hn-key-sh), inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-weak); }
.ap-pre-dots { position: relative; height: 8px; border-radius: 4px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.ap-pre-dots i { position: absolute; top: 1px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--text-3); }
.ap-presets button.on .ap-pre-dots i { background: #8EA8FF; box-shadow: 0 0 6px rgba(91,130,255,.9); }

/* frise 7h → 24h */
.ap-tl { padding: 30px 10px 0; }
.ap-tl-track { position: relative; height: 34px; cursor: copy; touch-action: none; }
.ap-tl-rail { position: absolute; left: 0; right: 0; top: 12px; height: 10px; border-radius: 99px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.ap-tl-zone { position: absolute; top: 12px; height: 10px; border-radius: 99px; background: linear-gradient(90deg, rgba(245,165,36,.0), rgba(245,165,36,.28), rgba(245,165,36,.0)); pointer-events: none; }
.ap-tl-pin { position: absolute; top: 0; transform: translateX(-50%); width: 0; height: 34px; border: 0; padding: 0; background: none; cursor: grab; touch-action: none; }
.ap-tl-pin i { position: absolute; left: -9px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #6189FF, #3B6BFF 55%, #2D55DD); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 3px var(--surface), 0 4px 12px -2px rgba(59,107,255,.9); transition: transform .15s; }
.ap-tl-pin b { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); padding: 3px 7px; border-radius: 7px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--text); background: var(--hn-key); box-shadow: var(--hn-key-sh); font-variant-numeric: tabular-nums; }
.ap-tl-pin:hover i, .ap-tl-pin.is-drag i { transform: scale(1.2); }
.ap-tl-pin.is-drag { cursor: grabbing; z-index: 2; }
.ap-tl-pin.is-drag b { background: var(--accent); color: #fff; }
.ap-tl-ticks { position: relative; height: 18px; margin-top: 2px; }
.ap-tl-ticks span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--text-3); }
.ap-slotchips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-slotchips > span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 10px; border-radius: 10px; background: var(--hn-key); box-shadow: var(--hn-key-sh); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); }
.ap-slotchips > span button { width: 20px; height: 20px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.ap-slotchips > span button:hover { background: var(--surface-hover); color: var(--text); }
.ap-addbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.ap-addbtn.on, .ap-addbtn:hover { border-color: var(--accent); color: var(--accent-text); }
.ap-clock { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); animation: stepIn .22s var(--ease); }
.ap-clock-hours { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.ap-clock-hours button, .ap-clock-min button { height: 34px; border: 0; border-radius: 9px; background: var(--hn-well); box-shadow: var(--hn-well-sh); color: var(--text-2); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.ap-clock-hours button:hover, .ap-clock-min button:hover { color: var(--text); }
.ap-clock-hours button.on, .ap-clock-min button.on { color: #fff; background: linear-gradient(180deg, #6189FF, #3B6BFF); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px -3px rgba(59,107,255,.8); }
.ap-clock-side { width: 128px; display: flex; flex-direction: column; gap: 8px; }
.ap-clock-min { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.ap-clock-add { justify-content: center; margin-top: auto; }

/* options */
.ap-opts { display: flex; flex-direction: column; gap: 12px; }
.ap-opt { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.ap-opt:hover { transform: translateY(-3px); }
.ap-opt.on { box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-weak), 0 18px 40px -16px rgba(59,107,255,.55); }
.ap-opt b { font-size: 14px; font-weight: 600; }
.ap-opt .col span { font-size: 12px; line-height: 1.45; color: var(--text-3); }
.ap-art { width: 172px; height: 84px; flex: none; border-radius: 12px; background: var(--hn-well); box-shadow: var(--hn-well-sh); display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; transition: filter .25s, opacity .25s; }
.ap-opt:not(.on) .ap-art { filter: grayscale(1); opacity: .55; }
.ap-art-ph span { width: 42px; height: 56px; border-radius: 8px; display: grid; place-items: center; color: rgba(255,255,255,.75); margin: 0 -10px; transform: rotate(calc((var(--i) - 1) * 9deg)) translateY(calc((var(--i) - 1) * (var(--i) - 1) * 4px)); box-shadow: 0 0 0 2px var(--surface), 0 8px 16px -6px rgba(0,0,0,.6); }
.ap-art-ph span:nth-child(1) { background: linear-gradient(160deg, #B8927C, #664A3A); }
.ap-art-ph span:nth-child(2) { background: linear-gradient(160deg, #7C93B8, #3A4A66); z-index: 1; }
.ap-art-ph span:nth-child(3) { background: linear-gradient(160deg, #A07CB8, #4E3A66); }
.ap-art-ok { color: var(--text-3); }
.ap-art-ok .pl { height: 24px; padding: 0 9px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; }
.ap-art-ok .pl.wait { color: #F5A524; background: rgba(245,165,36,.14); }
.ap-art-ok .pl.ok { color: #22C55E; background: rgba(34,197,94,.15); }
.ap-art-dc { justify-content: flex-start; padding: 0 12px; align-items: flex-start; padding-top: 16px; }
.ap-art-dc .dc-av { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #5865F2; }
.ap-art-dc .dc-n { font-size: 11.5px; font-weight: 600; color: var(--text); }
.ap-art-dc .dc-n em { font-style: normal; font-size: 8.5px; padding: 1px 3px; border-radius: 3px; background: #5865F2; color: #fff; margin-left: 3px; vertical-align: 1px; }
.ap-art-dc .dc-card { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border-radius: 4px; border-left: 3px solid #3B6BFF; background: rgba(255,255,255,.04); }
.ap-art-dc .dc-card b { font-size: 10.5px; }
.ap-art-dc .dc-card i { display: block; height: 4px; border-radius: 2px; background: var(--border-strong); }
.ap-opt > .row { flex: 1; min-width: 0; align-items: center !important; }

/* nom + récap */
.ap-name-in { height: 56px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--hn-well); box-shadow: var(--hn-well-sh); color: var(--text); font: inherit; font-size: 19px; font-weight: 500; letter-spacing: -.01em; outline: none; }
.ap-name-in:focus { box-shadow: var(--hn-well-sh), 0 0 0 2px color-mix(in srgb, var(--accent) 75%, transparent); }
.ap-recap { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.ap-recap > div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; font-size: 13.5px; box-shadow: inset 0 -1px 0 var(--border); }
.ap-recap > div span { color: var(--text-3); }
.ap-recap > div b { font-weight: 500; text-align: right; }
.ap-recap > div.tot { box-shadow: none; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ap-recap > div.tot b { font-size: 16px; font-weight: 600; color: var(--accent-text); }
.ap-opt-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 14px; background: var(--hn-key); box-shadow: var(--hn-key-sh); cursor: pointer; font-size: 14px; }
.ap-opt-row b { font-weight: 500; }

/* aperçu : journée type */
.ap-pane .wz-pane-body { justify-content: flex-start; padding-top: 8px; }
.ap-day { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 4px; }
.ap-day::before { content: ""; position: absolute; left: 54px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.ap-day-row { display: flex; align-items: center; gap: 10px; animation: stepIn .3s var(--ease) both; }
.ap-day-t { width: 40px; font-size: 12.5px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.ap-day-dot { position: relative; z-index: 1; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--fc); box-shadow: 0 0 0 3px var(--bg), 0 0 10px var(--fc); }
.ap-day-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 12px; background: var(--hn-key); box-shadow: var(--hn-key-sh); font-size: 12.5px; color: var(--text-3); }
.ap-day-card .grow { color: var(--text); font-weight: 500; }
.ap-day-ic { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--fc) 80%, #fff), color-mix(in srgb, var(--fc) 78%, #000)); }
.ap-day-st { font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 99px; color: #F5A524; background: rgba(245,165,36,.14); }
.ap-day-st.ok { color: #22C55E; background: rgba(34,197,94,.15); }
.ap-pane-tot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px 20px; }
.ap-pane-tot > div { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 8px 10px; border-radius: 12px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.ap-pane-tot b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-pane-tot span { font-size: 11px; color: var(--text-3); }
.ap-pane-tot > i { font-style: normal; color: var(--text-3); }
.ap-pane-tot > div.big { background: linear-gradient(180deg, #6189FF, #3B6BFF); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -6px rgba(59,107,255,.8); }
.ap-pane-tot > div.big b, .ap-pane-tot > div.big span { color: #fff; }

@media (max-width: 1000px) {
  .ts-modal.wz-modal.ap-wz { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 860px) {
  .ap-opt .ap-art { width: 104px; height: 70px; }
  .ap-art-ok .pl { padding: 0 6px; font-size: 10.5px; }
  .ap-art-ok svg { display: none; }
  .ap-art-ph span { width: 30px; height: 40px; }
  .ap-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-clock { flex-direction: column; }
  .ap-clock-side { width: 100%; flex-direction: row; }
  .ap-clock-min { flex: 1; grid-template-columns: repeat(4, 1fr); }
  .ap-clock-add { margin-top: 0; }
  .ap-rate-q { margin-left: 0; }
  .ap-agrid { grid-template-columns: minmax(0, 1fr); }
}
.ap-allbtn { width: auto !important; padding: 0 10px; white-space: nowrap; font: inherit; font-size: 12.5px; }

/* ==========================================================================
   MENU LATÉRAL — version compacte (ordinateur)
   ========================================================================== */
@media (min-width: 901px) {
  :root { --sidebar-w: 212px; }
  .ts-sidebar.v3 { padding: 16px 10px 12px; }
  .v3 .ts-brand { padding: 0 8px 14px; }
  .v3-logo { width: 22px; height: 22px; border-radius: 6px; }
  .v3-brand-name { font-size: 15px; }
  .v3 .ts-nav-group { padding: 16px 9px 5px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
  .v3 .ts-nav-item { height: 33px; gap: 10px; padding: 0 9px; border-radius: 8px; font-size: 13.5px; }
  .v3 .ts-nav-item svg { width: 16px; height: 16px; }
  .v3 .ts-nav-count { font-size: 11px; }
  .v3 .v3-soon { font-size: 9.5px; padding: 1px 5px; }
  .v3-me { gap: 8px; padding: 7px 9px; border-radius: 10px; }
  .v3-me-av { width: 26px; height: 26px; font-size: 11.5px; }
  .v3-me b { font-size: 13.5px; }
  .v3-me span { font-size: 11px; }
}

/* usage du mois : une ligne + une barre fine */
.v3-plan { margin: 0 4px 10px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.v3-plan-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 7px; font-size: 12px; color: var(--text-3); }
.v3-plan-name { min-width: 0; font-size: 12px; font-weight: 400; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-plan-name em { font-style: normal; margin-left: 6px; padding: 1px 5px; border-radius: 4px; font-size: 10.5px; color: var(--text-3); background: var(--surface-3); }
.v3-plan-row b { font-size: 12px; font-weight: 500; color: var(--text-2); }
.v3-plan-bar { height: 3px; border-radius: 3px; background: var(--surface-3); box-shadow: none; }
.v3-plan-bar i { background: var(--accent); }
.v3-plan-btn { margin-top: 10px; height: 30px; font-size: 12.5px; border-radius: 7px; }

/* ==========================================================================
   TUTO GUIDÉ — élément encadré + carte
   ========================================================================== */
.tr-layer { position: fixed; inset: 0; z-index: 600; }
.tr-spot { position: fixed; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 2px #5B82FF, 0 0 0 6px rgba(59,107,255,.25), 0 0 32px 6px rgba(59,107,255,.45), 0 0 0 9999px rgba(4,5,9,.68); transition: left .4s var(--ease), top .4s var(--ease), width .4s var(--ease), height .4s var(--ease); }
.tr-spot.none { box-shadow: 0 0 0 9999px rgba(4,5,9,.68); animation: none; }
[data-theme="light"] .tr-spot { box-shadow: 0 0 0 2px #3B6BFF, 0 0 0 6px rgba(59,107,255,.2), 0 0 28px 4px rgba(59,107,255,.35), 0 0 0 9999px rgba(10,14,24,.45); }
.tr-card { position: fixed; display: flex; flex-direction: column; gap: 9px; padding: 16px 16px 14px; border-radius: 18px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), 0 30px 70px -20px rgba(0,0,0,.85); animation: stepIn .3s var(--ease); transition: left .4s var(--ease), top .4s var(--ease); }
.tr-card.mob { left: 10px !important; right: 10px; bottom: 12px; top: auto !important; width: auto !important; }
.tr-top { display: flex; align-items: center; gap: 9px; }
.tr-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7B98FF, #3B6BFF 55%, #2443C2); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -5px rgba(59,107,255,.9); }
.tr-menu { flex: 1; font-size: 12.5px; color: var(--text-3); }
.tr-count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tr-x { width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.tr-x:hover { background: var(--surface-hover); color: var(--text); }
.tr-t { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.tr-d { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.tr-dots { display: flex; gap: 4px; margin-top: 2px; }
.tr-dots i { flex: 1; height: 3px; border-radius: 3px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.tr-dots i.d { background: var(--text-3); box-shadow: none; }
.tr-dots i.a { background: linear-gradient(90deg, #3B6BFF, #8EA8FF); box-shadow: 0 0 8px rgba(91,130,255,.8); }
.tr-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

/* Process : grille des tutos */
.pc-tutos { margin-bottom: var(--gap, 16px); padding: 16px; border-radius: 18px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); }
.pc-tutos-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pc-tutos-t { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.pc-tutos-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pc-tuto { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 8px; border: 0; border-radius: 12px; background: var(--hn-key); box-shadow: var(--hn-key-sh); color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: transform .2s var(--ease), filter .15s; animation: stepIn .35s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
.pc-tuto:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pc-tuto > svg:last-child { color: var(--text-3); }
.pc-tuto-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--accent-text); background: var(--hn-well); box-shadow: var(--hn-well-sh); }
@media (max-width: 760px) { .pc-tutos-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   HUNTER — ce qui marche cette semaine
   ========================================================================== */
.hn-week { margin: 0 0 18px; padding: 18px; border-radius: 20px; background: var(--hn-panel); box-shadow: inset 0 1px 0 var(--hn-hi), inset 0 0 0 1px var(--hn-panel-b), var(--hn-drop); animation: stepIn .4s var(--ease); }
.hnw-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hnw-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.hnw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hn-hot); box-shadow: 0 0 0 3px rgba(255,90,78,.18), 0 0 10px rgba(255,90,78,.8); }
.hnw-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hnw-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--text); background: var(--hn-key); box-shadow: var(--hn-key-sh), inset 0 0 0 1px rgba(255,154,61,.35); }
.hnw-tag svg { color: var(--hn-hot2); }
.hnw-kpi { display: flex; align-items: center; gap: 10px; flex: none; padding: 10px 14px; border-radius: 14px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.hnw-kpi b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; background: linear-gradient(180deg, var(--hn-hot2), var(--hn-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hnw-kpi span { font-size: 11.5px; line-height: 1.35; color: var(--text-3); }
.hnw-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1.3fr; gap: 10px; }
.hnw-card { min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 13px; border-radius: 14px; background: var(--hn-well); box-shadow: var(--hn-well-sh); }
.hnw-t { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.hnw-bars { display: flex; flex-direction: column; gap: 7px; }
.hnw-bar { display: grid; grid-template-columns: 78px minmax(0, 1fr) 38px 22px; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.hnw-bl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hnw-bt { height: 7px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
[data-theme="light"] .hnw-bt { background: rgba(16,18,23,.06); }
.hnw-bt i { display: block; height: 100%; border-radius: inherit; background: var(--text-3); transition: width .7s var(--ease); }
.hnw-bar b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hnw-bar em { font-style: normal; font-size: 10.5px; color: var(--text-3); text-align: right; }
.hnw-bar.best { color: var(--text); }
.hnw-bar.best .hnw-bt i { background: linear-gradient(90deg, var(--hn-hot2), var(--hn-hot)); box-shadow: 0 0 8px rgba(255,90,78,.6); }
.hnw-bar.best b { color: var(--hn-hot2); }
.hnw-cols { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; min-height: 120px; }
.hnw-col { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--text-3); }
.hnw-col b { font-size: 10.5px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hnw-ct { flex: 1; width: 100%; max-width: 26px; display: flex; align-items: flex-end; border-radius: 7px; background: rgba(255,255,255,.04); overflow: hidden; }
[data-theme="light"] .hnw-ct { background: rgba(16,18,23,.05); }
.hnw-ct i { display: block; width: 100%; border-radius: 7px; background: var(--text-3); opacity: .7; transition: height .7s var(--ease); }
.hnw-col.best b { color: var(--hn-hot2); }
.hnw-col.best .hnw-ct i { opacity: 1; background: linear-gradient(180deg, var(--hn-hot2), var(--hn-hot)); box-shadow: 0 0 10px rgba(255,90,78,.6); }
.hnw-col.empty { opacity: .45; }
.hnw-col em { font-style: normal; white-space: nowrap; }
.hnw-top { display: flex; flex-direction: column; gap: 6px; }
.hnw-top button { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 9px; border: 0; border-radius: 11px; background: var(--hn-key); box-shadow: var(--hn-key-sh); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--ease), filter .15s; }
.hnw-top button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hnw-rk { width: 20px; height: 20px; flex: none; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #1A1206; background: #CBD2DC; }
.hnw-rk.r0 { background: linear-gradient(180deg, #FFE08A, #F5A524); }
.hnw-rk.r1 { background: linear-gradient(180deg, #F1F4F8, #AEB6C2); }
.hnw-rk.r2 { background: linear-gradient(180deg, #F3C49B, #C27A43); }
.hnw-tx { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1200px) { .hnw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hn-week { padding: 14px; }
  .hnw-h { flex-direction: column; align-items: flex-start; }
  .hnw-grid { grid-template-columns: minmax(0, 1fr); }
}
.hnw-bar.few, .hnw-col.few { opacity: .45; }
.hnw-top .hn-chip { position: static !important; inset: auto !important; transform: none !important; flex: none; }
