/* =====================================================================
   UNIVERSE · Social network Platform — feuille de style V2
   Noir profond, dégradé de la marque (#6848CC → #C43481 → #E82B58),
   or (#C4BC96) et pastilles de notation 7 → 1.
   Téléphone (< 768 px) · tablette (768–1099) · ordinateur (≥ 1100)
   ===================================================================== */

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Noto Sans Arabic", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-script: "Segoe Script", "Snell Roundhand", "Apple Chancery", cursive;

  --brand-1: #6848CC; --brand-2: #C43481; --brand-3: #E82B58;
  --brand: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  --brand-h: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
  --ring: #9933FF;
  --gold: #C4BC96;
  --gold-2: #E2DBB8;
  --splash-line: #FFB46A;

  --r7: #FF1A1A; --r6: #FF8C00; --r5: #FFD400; --r4: #11A311; --r3: #1652FF; --r2: #7A1A8F; --r1: #FF2E97;

  --top: 56px;
  --tab: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --side: 248px;
  --aside: 330px;
  --rs: 10px; --r: 16px; --rl: 24px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* sombre (par défaut) */
  --bg: #000;
  --bg-2: #0B0B10;
  --surface: #121218;
  --surface-2: #1B1B23;
  --surface-3: #26262F;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #F5F4F0;
  --text-2: #B4B3BD;
  --text-3: #75747F;
  --invert: #fff;
  --on-invert: #000;
  --danger: #FF5468;
  --ok: #3DDC84;
  --shadow: 0 10px 34px rgba(0, 0, 0, .55);
  --scrim: rgba(0, 0, 0, .66);
  --glass: rgba(18, 18, 24, .78);
  color-scheme: dark;
}
:root[data-mode="light"] {
  --bg: #FFFFFF;
  --bg-2: #F5F5F8;
  --surface: #FFFFFF;
  --surface-2: #F1F1F5;
  --surface-3: #E6E6EC;
  --line: rgba(10, 10, 30, .09);
  --line-2: rgba(10, 10, 30, .17);
  --text: #0E0E14;
  --text-2: #4D4D5B;
  --text-3: #8A8A98;
  --invert: #0E0E14;
  --on-invert: #fff;
  --danger: #D92D45;
  --ok: #17924F;
  --shadow: 0 10px 30px rgba(20, 20, 50, .12);
  --scrim: rgba(10, 10, 25, .45);
  --glass: rgba(255, 255, 255, .84);
  --gold: #8F8457;
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--bg); }
body { margin: 0; min-height: 100dvh; font: 400 15px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.has-layer { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; opacity: .5; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(196, 52, 129, .35); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 22px; height: 22px; flex: none; }
.muted { color: var(--text-3); font-size: 14px; }
.noscript { padding: 40px; text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-center { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.dotsep { color: var(--text-3); }
.logo-light { display: none !important; }
:root[data-mode="light"] .logo-light { display: block !important; }
:root[data-mode="light"] .logo-dark { display: none !important; }

/* ---------------------------------------------------------------- splash */
.splash { position: fixed; inset: 0; z-index: 1000; background: #000; display: grid; grid-template-rows: repeat(5, 20%); height: 100dvh; transition: opacity .5s var(--ease), visibility .5s; }
.splash.is-done { opacity: 0; visibility: hidden; }
.splash__row { display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.splash__row--logo { overflow: visible; }
.splash__row--logo img { height: 78%; max-height: 150px; width: auto; max-width: 86vw; object-fit: contain; opacity: 1; transform: none; transition: transform 1s var(--ease); }
/* 1er temps : le logo seul, au milieu de l'écran, pendant que la vidéo se prépare */
.splash.is-boot .splash__row--logo img { transform: translateY(20dvh) scale(1.08); animation: splashin .7s var(--ease) both; }
@keyframes splashin { from { opacity: 0; } }
.splash__row--video video { height: 100%; width: auto; max-width: 90vw; object-fit: contain; opacity: 0; transition: opacity .5s; }
.splash.has-video .splash__row--video video { opacity: 1; }
.splash__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.splash__frame rect { fill: none; stroke: var(--splash-line); stroke-width: 4; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 180, 106, .75)); }

/* ---------------------------------------------------------- application */
.app { min-height: 100dvh; }
.topbar { position: fixed; z-index: 40; inset: 0 0 auto; height: calc(var(--top) + var(--safe-t)); padding: var(--safe-t) 10px 0 14px; display: flex; align-items: center; justify-content: space-between; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.topbar__logo img { height: 34px; width: auto; }
.topbar__actions { display: flex; align-items: center; gap: 2px; }
.topbar__slot { display: contents; }
.topbar__me { display: grid; place-items: center; margin-inline-start: 4px; border-radius: 50%; transition: transform .15s; }
.topbar__me:active { transform: scale(.92); }
.topbar__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ring); }

.iconbtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--text); transition: background .15s, transform .15s; flex: none; }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn:active { transform: scale(.92); }
.iconbtn--danger { color: var(--danger); }
.roundbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .42); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .15s, background .15s; }
.roundbtn:active { transform: scale(.9); }
.roundbtn.is-liked { color: var(--r7); }
.badge { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand-3); color: #fff; font: 700 10.5px/18px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* barre d'onglets (téléphone) + bouton central type Telegram */
.tabbar { position: fixed; z-index: 40; inset: auto 0 0; height: calc(var(--tab) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--line); }
.tabbar__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 4px; color: var(--text-3); font: 650 9.5px/1 var(--font); letter-spacing: .06em; transition: color .15s; }
.tabbar__item .i { width: 24px; height: 24px; transition: transform .2s var(--spring); }
.tabbar__item.is-active { color: #E0409A; }
.tabbar__item.is-active span { background: var(--brand-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabbar__item.is-active .i { transform: translateY(-1px) scale(1.08); color: #E0409A; filter: drop-shadow(0 2px 6px rgba(224, 64, 154, .45)); }
.tabbar__item .badge { top: -3px; inset-inline-end: calc(50% - 22px); }
.fab { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--bg), 0 10px 26px rgba(196, 52, 129, .55); transition: transform .2s var(--spring), box-shadow .2s; }
.fab:hover { transform: translateX(-50%) scale(1.05); }
.fab:active { transform: translateX(-50%) scale(.93); }
.fab__icon { width: 30px; height: 30px; }

/* navigation latérale (tablette, ordinateur) */
.sidenav { display: none; }
.rightcol { display: none; }

.view { min-height: 100dvh; padding: calc(var(--top) + var(--safe-t)) 0 calc(var(--tab) + var(--safe-b) + 18px); transition: opacity .18s var(--ease), transform .22s var(--ease); }
.view.is-entering { opacity: 0; transform: translateY(6px); }
body[data-chrome="bare"] .topbar, body[data-chrome="bare"] .tabbar, body[data-chrome="bare"] .sidenav, body[data-chrome="bare"] .rightcol,
body[data-chrome="immersive"] .topbar, body[data-chrome="immersive"] .tabbar, body[data-chrome="immersive"] .sidenav, body[data-chrome="immersive"] .rightcol { display: none !important; }
body[data-chrome="bare"] .view, body[data-chrome="immersive"] .view { padding: 0; margin: 0 !important; max-width: none !important; }

/* ------------------------------------------------------------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 650; font-size: 14.5px; white-space: nowrap; transition: transform .15s, filter .15s, background .15s, opacity .15s; }
.btn .i { width: 19px; height: 19px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(196, 52, 129, .3); }
.btn--brand:hover { filter: brightness(1.08); }
.btn--gold { background: var(--gold); color: #17150D; }
:root[data-mode="light"] .btn--gold { background: #C4BC96; }
.btn--dark { background: var(--invert); color: var(--on-invert); }
.btn--quiet { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn--quiet:hover { background: var(--surface-3); }
.btn--quiet.is-on { background: transparent; border-color: var(--line-2); }
.btn--danger { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }
.btn--sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.linkbtn:hover { color: var(--text); }
.linkbtn--gold { color: var(--gold); letter-spacing: .08em; font-size: 13px; }
.linkbtn .i { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.chip .i { width: 17px; height: 17px; }
.chip small { color: var(--text-3); font-weight: 600; }
.chip.is-on { background: var(--invert); color: var(--on-invert); border-color: transparent; }
.chip.is-on small { color: inherit; opacity: .6; }
.chip--brand { background: var(--brand); color: #fff; border: 0; }
.chip--brand.is-on { background: var(--surface-3); color: var(--text); }
.chip--sm { height: 26px; padding: 0 10px; font-size: 12px; }
.chip--lg { height: 40px; padding: 0 16px; font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 650; font-size: 13px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .15s, background .15s; }
.pill .i { width: 18px; height: 18px; }
.pill.is-on { background: #fff; color: #000; }
.pill:active { transform: scale(.93); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg > * { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; }
.seg > * .i { width: 17px; height: 17px; }
.seg > .is-active { background: var(--invert); color: var(--on-invert); }
.seg--sm > * { height: 30px; padding: 0 12px; font-size: 13px; }
.seg--tabs { display: flex; margin: 0 0 14px; }
.seg--tabs > * { flex: 1; justify-content: center; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; background: var(--surface-3); font-size: 11.5px; font-weight: 650; letter-spacing: .02em; color: var(--text-2); }
.tag--danger { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.tag--warn { background: color-mix(in srgb, var(--r5) 20%, transparent); color: var(--r5); }
.tag--role-admin, .tag--role-moderator { background: var(--brand); color: #fff; }
.tag--state-done { color: var(--ok); }
.tag--state-planned { color: var(--r3); }
.tag--state-declined { color: var(--danger); }
.tag--state-review { color: var(--r6); }
.rolebadge { display: inline-flex; margin-top: 6px; height: 22px; padding: 0 10px; align-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--brand-2); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------- formulaires */
.form { display: grid; gap: 14px; }
.form__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field__hint { color: var(--text-3); font-weight: 400; font-size: 12px; }
.field__err { color: var(--danger); font-weight: 500; font-size: 12px; }
.field__err:empty { display: none; }
.input { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 400; transition: border-color .15s, box-shadow .15s, background .15s; }
textarea.input { resize: vertical; line-height: 1.45; }
.input:focus { outline: 0; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(196, 52, 129, .22); background: var(--surface); }
.input--sm { min-height: 34px; padding: 5px 10px; font-size: 13px; border-radius: 9px; }
.input-wrap { position: relative; display: block; }
.input-wrap .input { padding-inline-end: 50px; }
.input-wrap .iconbtn { position: absolute; inset-inline-end: 3px; top: 2px; }
.form__error { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); font-size: 13.5px; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand-2); }
.check a { color: var(--brand-2); font-weight: 600; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch > span { display: grid; gap: 2px; font-size: 14.5px; }
.switch small { color: var(--text-3); font-size: 12.5px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--surface-3); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); transition: transform .25s var(--spring); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }
[dir="rtl"] .switch input:checked + i::after { transform: translateX(-18px); }
.switch input:focus-visible + i { outline: 2px solid var(--ring); outline-offset: 2px; }
.radios { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.radios legend { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.radio { display: block; cursor: pointer; }
.radio input { position: absolute; opacity: 0; }
.radio > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; transition: border-color .15s, background .15s; }
.radio small { flex-basis: 100%; color: var(--text-3); font-size: 12.5px; padding-inline-start: 32px; }
.radio .i { width: 20px; height: 20px; color: var(--text-2); }
.radio input:checked + span { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 10%, var(--surface-2)); }
.radio input:focus-visible + span { outline: 2px solid var(--ring); }
.chipsel { display: flex; flex-wrap: wrap; gap: 8px; }
.chipsel input { position: absolute; opacity: 0; }
.chipsel span { display: inline-flex; height: 32px; align-items: center; padding: 0 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; cursor: pointer; }
.chipsel input:checked + span { background: var(--invert); color: var(--on-invert); }
.searchfield { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-3); transition: border-color .15s, box-shadow .15s; }
.searchfield:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(196, 52, 129, .2); }
.searchfield input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 15px; color: var(--text); }
.searchfield input::-webkit-search-cancel-button { display: none; }
.searchfield--lg { height: 52px; margin-bottom: 14px; }
.searchfield--lg input { font-size: 16.5px; }

/* --------------------------------------------------------------- pages */
.page { max-width: 1040px; margin: 0 auto; padding: 16px 16px 28px; }
.page--narrow { max-width: 680px; }
.page--search { max-width: 820px; }
.pagehead { margin: 6px 0 18px; }
.pagehead--tight { margin-bottom: 12px; }
.pagehead--row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pagehead__title { display: flex; align-items: center; gap: 10px; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.pagehead__title .i { width: 28px; height: 28px; color: var(--brand-2); }
.pagehead__sub { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.sectiontitle { margin: 22px 0 10px; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.sectiontitle small { color: var(--text-3); font-weight: 600; }
.card { padding: 18px; margin-bottom: 14px; border-radius: var(--rl); background: var(--surface); border: 1px solid var(--line); }
.card__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 16.5px; font-weight: 750; }
.card__title .i { color: var(--brand-2); }
.card__label { margin: 16px 0 8px; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 12px; }
.toolbar .searchfield { flex: 1 1 260px; }
.empty { display: grid; justify-items: center; gap: 12px; padding: 40px 20px; text-align: center; color: var(--text-2); }
.empty__icon { width: 46px; height: 46px; color: var(--text-3); }
.empty--page { min-height: 60vh; align-content: center; }
.empty--page h1 { font-size: 24px; color: var(--text); }
.skeleton { display: grid; gap: 12px; padding: 14px 0; }
.skeleton__row { height: 58px; border-radius: 14px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton__row:nth-child(2n) { width: 82%; }
.skeleton--cards { display: flex; gap: 10px; overflow: hidden; padding: 6px 16px; }
.skeleton--cards i { flex: none; width: 104px; height: 168px; border-radius: 18px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.home-skel { padding: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* -------------------------------------------------- avatars et personnes */
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.people { display: grid; gap: 4px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; transition: background .15s; }
.person:hover { background: var(--surface-2); }
.person__link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.person__link > span { display: grid; min-width: 0; }
.person__link b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person__link small { color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people--compact .person { padding: 6px; }

/* ----------------------------------------------- notation (pastilles 7→1) */
.r7 { --c: var(--r7); } .r6 { --c: var(--r6); } .r5 { --c: var(--r5); } .r4 { --c: var(--r4); } .r3 { --c: var(--r3); } .r2 { --c: var(--r2); } .r1 { --c: var(--r1); }
.rdot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 800 12.5px/1 var(--font); font-style: normal; color: #fff; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .65) 0 14%, transparent 42%), var(--c); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25), 0 2px 6px color-mix(in srgb, var(--c) 50%, transparent); flex: none; }
.rdot--xs { width: 10px; height: 10px; box-shadow: none; }
.rate { position: absolute; z-index: 4; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); display: grid; gap: 9px; }
.rate__btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--font); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .75) 0 12%, rgba(255, 255, 255, .15) 30%, transparent 46%), radial-gradient(circle at 50% 120%, rgba(0, 0, 0, .35), transparent 60%), var(--c);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25), inset 0 2px 3px rgba(255, 255, 255, .35), 0 4px 12px color-mix(in srgb, var(--c) 55%, transparent);
  transition: transform .2s var(--spring), box-shadow .2s, opacity .2s; }
.rate__btn:hover:not(:disabled) { transform: scale(1.1); }
.rate__btn:active:not(:disabled) { transform: scale(.88); }
.rate__btn:disabled { opacity: .55; }
.rate__btn.is-mine { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c), 0 6px 18px color-mix(in srgb, var(--c) 70%, transparent); }
.rate__btn--sm { width: 36px; height: 36px; font-size: 14px; }
.rate__pulse { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--c, #fff); animation: pulse .8s var(--ease) forwards; pointer-events: none; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.rate__float { position: absolute; inset-inline-end: 54px; top: 0; font: 900 34px/1 var(--font); color: var(--c); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); animation: floatup .9s var(--ease) forwards; pointer-events: none; }
@keyframes floatup { from { transform: translateY(0) scale(.6); opacity: 0; } 25% { opacity: 1; transform: translateY(-10px) scale(1.1); } to { transform: translateY(-46px) scale(1); opacity: 0; } }
.scale { display: grid; gap: 8px; }
.scale li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.scale--wide { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 10px; }
.spectrum { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 12px 0 8px; }
.spectrum span { background: var(--c); min-width: 3px; transition: flex-grow .6s var(--ease); }

/* ======================================================== fil vertical */
.scroller { height: calc(100dvh - var(--top) - var(--safe-t) - var(--tab) - var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.view--accueil, .view--videos, .view--userposts, .view--publication, .view--enregistres, .view--statut { padding-bottom: calc(var(--tab) + var(--safe-b)); }
.feed { position: relative; }
.post { position: relative; height: calc(100dvh - var(--top) - var(--safe-t) - var(--tab) - var(--safe-b)); scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; color: #fff; isolation: isolate; display: flex; flex-direction: column; }
/* média en haut, panneau d'informations en dessous (comme le design d'origine) */
.post__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; isolation: isolate; }
.post__bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) brightness(.5) saturate(1.3); transform: scale(1.1); z-index: -1; }
.post__media { position: absolute; inset: 0; display: grid; place-items: center; }
.post__media img, .post__media video { width: 100%; height: 100%; object-fit: cover; }
@media (min-aspect-ratio: 3/4) { .post__media img, .post__media video { object-fit: contain; } }
.post__text { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px 66px 40px 26px; }
.post__text p { font: 700 clamp(22px, 5.4vw, 32px)/1.3 var(--font-serif); text-align: center; overflow-wrap: anywhere; }
.post__text a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); }
.post__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #fff; }
.post__play .i { width: 74px; height: 74px; opacity: 0; transform: scale(.7); transition: opacity .2s, transform .25s var(--spring); filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .5)); }
.post.is-paused .post__play .i { opacity: .9; transform: none; }
.post__sound { position: absolute; z-index: 4; top: 12px; inset-inline-start: 12px; }
.post__progress { position: absolute; z-index: 4; inset: auto 0 0; height: 3px; background: rgba(255, 255, 255, .2); }
.post__progress i { display: block; height: 100%; width: 0; background: var(--brand-h); }
.post .rate { gap: 7px; inset-inline-end: 8px; top: auto; bottom: 14px; transform: none; }
.post .rate__btn { width: 38px; height: 38px; font-size: 15px; }
.post__panel { flex: none; display: grid; gap: 7px; padding: 10px 12px 22px; background: linear-gradient(180deg, #050507, #000); border-top: 1px solid rgba(255, 255, 255, .06); }
.post__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.post__score { display: inline-flex; align-items: stretch; height: 30px; border-radius: 9px; overflow: hidden; box-shadow: 0 4px 14px rgba(43, 64, 255, .25); flex: none; }
.post__scorelabel { display: grid; place-items: center; padding: 0 9px; background: linear-gradient(135deg, #2B40FF, #1A22B8); color: #FFE14D; font: 800 11.5px/1 var(--font); letter-spacing: .06em; }
.post__scoreval { display: grid; place-items: center; min-width: 32px; padding: 0 9px; background: linear-gradient(135deg, #E82B8A, #C43481); color: #FFE14D; font: 900 15px/1 var(--font); }
.post__actions { display: flex; align-items: center; gap: 5px; }
.act { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px 0 4px; border-radius: 9px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); color: #fff; font: 700 13px/1 var(--font); transition: background .15s, transform .15s; }
.act:active { transform: scale(.94); }
.act__ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.act__ico .i { width: 17px; height: 17px; }
.act--share .act__ico { background: linear-gradient(135deg, #3D8BFF, #1E4FD8); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.act--save .act__ico { color: #fff; }
.act--save.is-on .act__ico { color: var(--gold-2); }
.act--comment .act__ico { color: #fff; }
.act--more { padding: 0 3px; }
.act--more .act__ico { width: 22px; }
.post__line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.post__user { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; flex: none; }
.post__user .avatar { box-shadow: 0 0 0 2px #000, 0 0 0 3.5px var(--ring); }
.post__short { color: rgba(255, 255, 255, .72); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.post__more { flex: none; height: 24px; padding: 0 9px; border-radius: 7px; background: rgba(255, 255, 255, .1); font: 800 11px/1 var(--font); letter-spacing: .1em; color: #fff; }
.post__follow { margin-inline-start: auto; flex: none; }
.post__caption { font-size: 14px; line-height: 1.45; max-height: 22vh; overflow: auto; color: rgba(255, 255, 255, .92); }
.post__caption a, .comment__body a, .acct__bio a, .ccap a { color: #C9A6FF; font-weight: 600; }
.post__date { font-size: 12.5px; color: rgba(255, 255, 255, .6); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.post::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--brand-h); opacity: .7; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.feedtabs { position: sticky; top: 0; z-index: 6; height: 0; display: flex; justify-content: center; transition: opacity .2s; }
.feedtabs.is-hidden { opacity: 0; pointer-events: none; }
.feedtabs__inner { margin-top: 10px; display: flex; gap: 2px; height: 38px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.feedtabs button { padding: 0 16px; border-radius: 999px; color: rgba(255, 255, 255, .7); font-weight: 700; font-size: 13.5px; }
.feedtabs button.is-active { background: #fff; color: #000; }
.feedback { position: sticky; top: 0; z-index: 7; height: 0; padding-inline-start: 12px; }
.feedback .roundbtn { margin-top: 12px; }
.feed__end { min-height: 60%; scroll-snap-align: start; display: grid; justify-items: center; align-content: center; gap: 12px; padding: 40px 24px; text-align: center; color: var(--text-2); }
.feed__end > .i { width: 54px; height: 54px; color: var(--brand-2); }
.feed__end h2 { font-size: 21px; color: var(--text); }
.feed__loader { display: grid; place-items: center; height: 120px; scroll-snap-align: end; }
.menu { display: grid; padding: 4px 0 8px; }
.menu > * { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-radius: 12px; font-size: 15.5px; font-weight: 550; text-align: start; transition: background .15s; }
.menu > *:hover { background: var(--surface-2); }
.menu .is-danger { color: var(--danger); }

/* ============================================================ accueil */
.home { scroll-snap-align: start; padding: 14px 0 6px; }
.home__hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px 14px; }
.home__kicker { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home__title { font-size: 26px; line-height: 1.15; font-weight: 850; letter-spacing: -.02em; }
.home__me .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring); }
.home__block { margin: 4px 0 16px; }
.home__blockhead { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 10px; }
.home__blockhead h2 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.home__blockhead a { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 650; color: var(--brand-2); }
.home__blockhead a .i { width: 16px; height: 16px; }
[dir="rtl"] .home__blockhead a .i, [dir="rtl"] .setrow > .i:last-child, [dir="rtl"] .choose__go, [dir="rtl"] .home__down .i { transform: scaleX(-1); }
.stories { display: flex; gap: 10px; padding: 2px 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.stories > li { flex: none; scroll-snap-align: start; }
.story { position: relative; display: block; width: 104px; height: 170px; border-radius: 18px; overflow: hidden; background: var(--surface-2); color: #fff; text-align: start; transition: transform .2s var(--ease); }
.story:active { transform: scale(.96); }
.story__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
span.story__bg { display: grid; place-items: center; padding: 10px; font-size: 12px; line-height: 1.3; text-align: center; overflow: hidden; }
.story:hover .story__bg { transform: scale(1.05); }
.story__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 35%, transparent 55%, rgba(0, 0, 0, .75)); }
.story__ring { position: absolute; top: 8px; inset-inline-start: 8px; padding: 2px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.story.is-unseen .story__ring { background: conic-gradient(var(--brand-1), var(--brand-2), var(--brand-3), var(--ring), var(--brand-1)); }
.story__ring .avatar { width: 38px; height: 38px; border: 2px solid #000; }
.story__ring.is-me { background: var(--gold); }
.story__name { position: absolute; inset: auto 8px 8px; font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.story__count { position: absolute; top: 10px; inset-inline-end: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(0, 0, 0, .55); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.story__plus { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); box-shadow: 0 0 0 3px #000; }
.story__plus .i { width: 20px; height: 20px; }
.chips { padding: 0; }
.home > .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 16px 16px; }
.home > .chips::-webkit-scrollbar { display: none; }
.perfs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: 10px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.perfs::-webkit-scrollbar { display: none; }
.perfs > li { scroll-snap-align: start; }
.perf { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px; height: 150px; border-radius: 20px; overflow: hidden; color: #fff; background: var(--surface-2); isolation: isolate; }
.perf__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.perf__text { display: grid; place-items: center; padding: 18px; font: 700 15px/1.3 var(--font-serif); text-align: center; }
.perf__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .78)); }
.perf__label { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 10px; border-radius: 999px; background: var(--brand); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.perf--creator .perf__label { background: var(--gold); color: #15130B; }
.perf--status .perf__label { background: linear-gradient(135deg, var(--ring), var(--brand-2)); }
.perf__who { order: 2; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.perf__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf__who .avatar { box-shadow: 0 0 0 2px #fff; }
.perf__score { order: 1; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--gold-2); }
.perf__score b { font-size: 20px; color: #fff; letter-spacing: 0; }
.home__share { margin: 16px; padding: 16px; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-1) 22%, var(--surface)), color-mix(in srgb, var(--brand-3) 18%, var(--surface))); border: 1px solid var(--line); }
.home__share > div { display: grid; gap: 2px; }
.home__share small { color: var(--text-2); font-size: 13px; }
.home__share .btn { letter-spacing: .1em; font-weight: 800; }
.home__down { display: flex; margin: 0 auto 8px; align-items: center; gap: 4px; color: var(--text-3); font-size: 13px; font-weight: 650; }
.home__down .i { transform: rotate(90deg); width: 18px; height: 18px; }

/* ============================================================ statuts */
.slist { display: grid; gap: 2px; margin-bottom: 8px; }
.slist__title { margin: 18px 0 6px; font-size: 12.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.srow { width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; text-align: start; transition: background .15s; }
.srow:hover { background: var(--surface-2); }
.srow__ring { position: relative; padding: 3px; border-radius: 50%; background: var(--surface-3); flex: none; }
.srow__ring.is-unseen, .srow__ring.is-mine { background: conic-gradient(var(--brand-1), var(--brand-2), var(--brand-3), var(--ring), var(--brand-1)); }
.srow__thumb { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--bg); display: grid; place-items: center; font-size: 8px; overflow: hidden; text-align: center; }
.srow__text { display: grid; }
.srow__text small { color: var(--text-3); font-size: 13px; }
.srow__me { position: relative; }
.srow__plus { position: absolute; inset-inline-end: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 2.5px var(--bg); }
.srow__plus .i { width: 15px; height: 15px; }
.fabs { position: fixed; z-index: 30; inset-inline-end: 18px; bottom: calc(var(--tab) + var(--safe-b) + 22px); display: grid; gap: 12px; justify-items: center; }
.minifab { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); box-shadow: var(--shadow); }
.minifab--brand { width: 56px; height: 56px; background: var(--brand); color: #fff; }
.sthumb { display: grid; place-items: center; text-align: center; overflow: hidden; color: #fff; line-height: 1.2; }
.sbg-ink { background: linear-gradient(160deg, #1D1B2E, #07070C); }
.sbg-dawn { background: linear-gradient(160deg, #FF9A62, #E82B58 60%, #6848CC); }
.sbg-ocean { background: linear-gradient(160deg, #1CB5E0, #0B3A8C); }
.sbg-forest { background: linear-gradient(160deg, #3BB27A, #0C4A3A); }
.sbg-ember { background: linear-gradient(160deg, #F7B733, #C2410C); }
.sbg-violet { background: linear-gradient(160deg, #9933FF, #3B1F7A); }
.sbg-gold { background: linear-gradient(160deg, #E2DBB8, #8F8457); color: #15130B; }
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font); }
.font-mono { font-family: var(--font-mono); }
.font-script { font-family: var(--font-script); }
.tstyle-ink { background: linear-gradient(160deg, #1D1B2E, #07070C); color: #fff; }
.tstyle-dawn { background: linear-gradient(160deg, #FF9A62, #E82B58 60%, #6848CC); color: #fff; }
.tstyle-ocean { background: linear-gradient(160deg, #1CB5E0, #0B3A8C); color: #fff; }
.tstyle-forest { background: linear-gradient(160deg, #3BB27A, #0C4A3A); color: #fff; }
.tstyle-ember { background: linear-gradient(160deg, #F7B733, #C2410C); color: #fff; }
.tstyle-violet { background: linear-gradient(160deg, #9933FF, #3B1F7A); color: #fff; }
.tstyle-paper { background: #F4EFE3; color: #1A1712; }

/* visionneuse */
.viewer { position: relative; width: 100%; height: 100%; background: #000; display: grid; place-items: center; }
.viewer__frame { position: relative; width: 100%; height: 100%; max-width: 480px; overflow: hidden; background: #000; color: #fff; }
@media (min-width: 768px) { .viewer__frame { height: min(94dvh, 860px); border-radius: 22px; } }
.viewer__stage { position: absolute; inset: 0; display: grid; place-items: center; }
.viewer__stage img, .viewer__stage video { width: 100%; height: 100%; object-fit: contain; }
.viewer__text { position: absolute; inset: 0; display: grid; place-items: center; padding: 80px 26px 150px; font-size: clamp(22px, 6vw, 30px); font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.viewer__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .55), transparent 20%, transparent 62%, rgba(0, 0, 0, .8)); }
.viewer__bars { position: absolute; z-index: 3; top: calc(8px + var(--safe-t)); inset-inline: 10px; display: flex; gap: 4px; }
.viewer__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.viewer__bars b { display: block; height: 100%; width: 0; background: #fff; }
.viewer__head { position: absolute; z-index: 4; top: calc(18px + var(--safe-t)); inset-inline: 8px; display: flex; align-items: center; gap: 2px; }
.viewer__head a { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.viewer__head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.viewer__head span { display: grid; line-height: 1.2; min-width: 0; }
.viewer__head small { color: rgba(255, 255, 255, .75); font-size: 12px; }
.viewer__head .iconbtn { color: #fff; }
.viewer__head .iconbtn:hover { background: rgba(255, 255, 255, .12); }
.viewer__tap { position: absolute; z-index: 2; top: 80px; bottom: 150px; width: 34%; }
.viewer__tap--prev { inset-inline-start: 0; }
.viewer__tap--next { inset-inline-end: 0; width: 66%; }
.viewer__caption { position: absolute; z-index: 3; inset: auto 16px 150px; text-align: center; font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.viewer__foot { position: absolute; z-index: 4; inset: auto 0 0; padding: 0 12px calc(14px + var(--safe-b)); display: grid; gap: 12px; }
.viewer__rate { display: flex; justify-content: center; gap: 8px; }
.viewer__reply { display: flex; align-items: center; gap: 8px; }
.viewer__reply input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .35); color: #fff; outline: 0; }
.viewer__reply input::placeholder { color: rgba(255, 255, 255, .7); }
.viewer__owner { display: flex; justify-content: space-around; padding: 10px; border-radius: 18px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(12px); }
.viewer__owner > * { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }

/* création de statut */
.sc { position: relative; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto auto; color: #fff; transition: background .3s; }
.sc__top { display: flex; justify-content: space-between; padding: calc(12px + var(--safe-t)) 14px 0; }
.sc__tools { display: flex; gap: 8px; }
.sc__stage { display: grid; place-items: center; padding: 20px; min-height: 0; }
.sc__text { width: 100%; max-width: 640px; background: none; border: 0; outline: 0; resize: none; text-align: center; color: #fff; font-size: clamp(24px, 6vw, 38px); font-weight: 700; line-height: 1.3; }
.sc__text::placeholder { color: rgba(255, 255, 255, .55); }
.sc__media { width: 100%; max-width: 520px; height: 100%; max-height: 70dvh; display: grid; place-items: center; }
.sc__media img, .sc__media video { max-height: 70dvh; border-radius: 16px; object-fit: contain; }
.sc__caption { padding: 0 16px 10px; }
.sc__caption input { width: 100%; height: 46px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .45); color: #fff; outline: 0; }
.sc__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px calc(16px + var(--safe-b)); }
.sc__gallery { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(0, 0, 0, .4); font-weight: 650; }
.sc__gallery.is-pulse { animation: glow 1.4s ease-in-out 3; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); } }
.sc__counter { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.sc__send { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.sc__send:disabled { background: rgba(255, 255, 255, .25); opacity: 1; }
.sc__progress { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sc__progress circle { fill: none; stroke: #fff; stroke-width: 4; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .2s; }
.sc__palette { position: absolute; z-index: 3; top: calc(64px + var(--safe-t)); inset-inline: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sc__palette button { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.sc__palette button.is-on { box-shadow: 0 0 0 3px #fff; transform: scale(1.1); }

/* ============================================================ créer */
.choose { display: grid; gap: 10px; padding-bottom: 6px; }
.choose__item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.choose__item:hover { border-color: var(--line-2); }
.choose__item:active { transform: scale(.98); }
.choose__art { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none; }
.choose__art--post { background: var(--brand); }
.choose__art--status { background: linear-gradient(135deg, var(--ring), var(--brand-3)); }
.choose__text { flex: 1; display: grid; }
.choose__text small { color: var(--text-3); font-size: 13px; }
.choose__go { color: var(--text-3); }
.pc { min-height: 100dvh; max-width: 760px; margin: 0 auto; }
.pc__step { min-height: 100dvh; display: flex; flex-direction: column; }
.pc__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(8px + var(--safe-t)) 10px 8px; }
.pc__bar--over { position: absolute; z-index: 3; inset: 0 0 auto; color: #fff; }
.pc__title { font-size: 17px; font-weight: 750; }
.pc__drop { flex: 1; margin: 12px 16px; border-radius: 26px; border: 2px dashed var(--line-2); display: grid; justify-items: center; align-content: center; gap: 12px; padding: 30px; text-align: center; transition: border-color .2s, background .2s; }
.pc__drop.is-over { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 8%, transparent); }
.pc__drop h2 { font-size: 21px; }
.pc__drop p { color: var(--text-2); max-width: 380px; }
.pc__art { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 12px 30px rgba(196, 52, 129, .4); }
.pc__art .i { width: 38px; height: 38px; }
.pc__textpost { display: flex; align-items: center; gap: 14px; margin: 0 16px calc(16px + var(--safe-b)); padding: 14px; border-radius: 18px; background: var(--surface-2); text-align: start; }
.pc__textpost > span:nth-child(2) { flex: 1; display: grid; }
.pc__textpost small { color: var(--text-3); }
.pc__aa { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--invert); color: var(--on-invert); font: 800 19px/1 var(--font-serif); }
.pc__edit { position: relative; background: #000; }
.pc__preview { flex: 1; display: grid; place-items: center; min-height: 0; }
.pc__preview img, .pc__preview video { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
.pc__upload { color: #fff; font-size: 12.5px; font-weight: 650; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .5); }
.pc__textedit { width: min(92vw, 460px); aspect-ratio: 9 / 14; border-radius: 22px; display: grid; place-items: center; padding: 26px; }
.pc__textedit textarea { width: 100%; background: none; border: 0; outline: 0; resize: none; text-align: center; color: inherit; font: 700 24px/1.3 var(--font-serif); }
.pc__tools { padding: 12px 16px calc(14px + var(--safe-b)); display: grid; gap: 10px; color: #fff; }
.pc__cover { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
.pc__cover input { accent-color: var(--brand-2); }
.pc__styles { display: flex; gap: 10px; justify-content: center; }
.pc__styles button { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.pc__styles button.is-on { box-shadow: 0 0 0 3px #fff; }
.pc__form { display: grid; gap: 16px; padding: 6px 16px calc(20px + var(--safe-b)); }
.pc__row { display: flex; gap: 12px; }
.pc__capwrap { position: relative; flex: 1; }
.pc__capwrap textarea { width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); resize: none; outline: 0; }
.pc__capwrap textarea:focus { border-color: var(--brand-2); }
.pc__count { position: absolute; inset-inline-end: 10px; bottom: 8px; font-size: 11.5px; color: var(--text-3); }
.pc__thumb { width: 96px; height: 140px; border-radius: 12px; overflow: hidden; background: var(--surface-3); flex: none; }
.pc__thumb img, .pc__thumb video { width: 100%; height: 100%; object-fit: cover; }
.pc__thumbtext { width: 100%; height: 100%; display: grid; place-items: center; padding: 8px; font-size: 10px; text-align: center; }
.pc__progress { position: relative; height: 26px; border-radius: 13px; background: var(--surface-3); overflow: hidden; }
.pc__progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brand-h); transition: width .25s; }
.pc__progress span { position: relative; display: grid; place-items: center; height: 100%; font-size: 12px; font-weight: 700; }

/* ======================================================= commentaires */
.comments-wrap { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.comments__caption .ccap { display: flex; gap: 10px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.comments { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 16px; padding: 4px 0 12px; }
.comment { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; }
.comment__main { min-width: 0; }
.comment__who { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.comment__who a { font-weight: 700; }
.comment__who small { color: var(--text-3); }
.comment__tag { font-size: 10.5px; font-weight: 750; padding: 1px 7px; border-radius: 6px; background: var(--brand); color: #fff; }
.comment__body { font-size: 14.5px; overflow-wrap: anywhere; }
.comment__tools { display: flex; gap: 14px; margin-top: 3px; }
.comment__tools button { font-size: 12.5px; font-weight: 650; color: var(--text-3); }
.comment__like { display: grid; justify-items: center; color: var(--text-3); font-size: 11px; }
.comment__like .i { width: 18px; height: 18px; }
.comment__like.is-on { color: var(--r7); }
.comment__replies { grid-column: 2 / -1; display: grid; gap: 12px; margin-top: 4px; }
.composer { position: relative; display: flex; align-items: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.composer__reply { flex-basis: 100%; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }
.composer textarea { flex: 1; min-height: 42px; max-height: 160px; padding: 10px 14px; border-radius: 21px; border: 1px solid var(--line); background: var(--surface-2); resize: none; outline: 0; line-height: 1.35; }
.composer textarea:focus { border-color: var(--brand-2); }
.sendbtn, .chat__send { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.sendbtn .i, .chat__send .i { width: 19px; height: 19px; }
[dir="rtl"] .sendbtn .i, [dir="rtl"] .chat__send .i { transform: scaleX(-1); }

/* ============================================================ couches */
#layers { position: relative; z-index: 200; }
.layer { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.layer__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .22s var(--ease); backdrop-filter: blur(2px); }
.layer.is-in .layer__scrim { opacity: 1; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 88dvh; display: flex; flex-direction: column; padding: 8px 18px calc(18px + var(--safe-b)); border-radius: 26px 26px 0 0; background: var(--surface); box-shadow: var(--shadow); transform: translateY(100%); transition: transform .32s var(--ease); }
.sheet--tall { height: 82dvh; }
.layer.is-in .sheet { transform: none; }
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 6px; flex: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0 10px; flex: none; }
.sheet__title { font-size: 17.5px; font-weight: 750; }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sheet--tall .sheet__body { display: flex; flex-direction: column; }
.sheet__sub { margin: 18px 0 8px; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.layer--dialog { align-items: center; padding: 20px; }
.dialog { position: relative; width: 100%; max-width: 400px; padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); transform: scale(.94); opacity: 0; transition: transform .22s var(--spring), opacity .18s; }
.layer.is-in .dialog { transform: none; opacity: 1; }
.dialog__text { font-size: 16px; margin-bottom: 18px; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.layer--full { align-items: stretch; }
.layer--full > :not(.layer__scrim) { position: relative; width: 100%; height: 100dvh; opacity: 0; transform: scale(.98); transition: opacity .22s, transform .25s var(--ease); }
.layer--full.is-in > :not(.layer__scrim) { opacity: 1; transform: none; }
.layer--full .layer__scrim { background: #000; }
.layer--drawer { justify-content: flex-start; align-items: stretch; }
.drawer { position: relative; width: min(86vw, 360px); height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; background: var(--bg); border-inline-end: 1px solid var(--line); transform: translateX(-100%); transition: transform .3s var(--ease); padding: calc(18px + var(--safe-t)) 18px calc(18px + var(--safe-b)); }
[dir="rtl"] .drawer { transform: translateX(100%); }
.layer--drawer.is-in .drawer { transform: none; }
.drawer__id { display: grid; justify-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer__avatar { width: 96px; height: 96px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--ring); }
.drawer__name { font-size: 20px; font-weight: 800; }
.drawer__stats { width: 100%; border-collapse: collapse; font-size: 12.5px; letter-spacing: .08em; }
.drawer__stats td { padding: 5px 0; color: var(--text-2); }
.drawer__stats td:nth-child(2) { width: 24px; text-align: center; color: var(--text-3); }
.drawer__stats td:last-child { text-align: end; color: var(--gold); }
.drawer__stats b { font-size: 15px; color: var(--text); }
.drawer__id .btn--lg { letter-spacing: .12em; font-weight: 800; }
.drawer__id .btn--gold { letter-spacing: .12em; font-weight: 800; }
.drawer__nav { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer__nav > * { display: flex; align-items: center; gap: 14px; padding: 11px 8px; border-radius: 12px; font-weight: 600; text-align: start; }
.drawer__nav > *:hover { background: var(--surface-2); }
.drawer__nav .i { color: var(--text-2); }
.drawer__prefs { display: grid; gap: 8px; padding-top: 14px; }
.drawer__prefs .seg { display: flex; }
.drawer__prefs .seg > * { flex: 1; justify-content: center; padding: 0 6px; }
.drawer__row { display: flex; align-items: center; gap: 14px; padding: 11px 8px; border-radius: 12px; font-weight: 600; text-align: start; }
.drawer__row:hover { background: var(--surface-2); }
.drawer__row--danger { color: var(--danger); }
.toasts { position: fixed; z-index: 300; left: 50%; bottom: calc(var(--tab) + var(--safe-b) + 58px); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 11px 18px; border-radius: 999px; background: var(--invert); color: var(--on-invert); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: toastin .3s var(--spring); transition: opacity .3s, transform .3s; }
.toast--error { background: var(--danger); color: #fff; }
.toast.is-out { opacity: 0; transform: translateY(10px); }
@keyframes toastin { from { opacity: 0; transform: translateY(14px) scale(.95); } }

/* langue : panneau compact au centre, beaucoup d'air autour */
.langpick { display: grid; place-items: center; padding: max(24px, var(--safe-t)) 20px max(24px, var(--safe-b)); background: radial-gradient(120% 70% at 50% 0%, rgba(104, 72, 204, .22), transparent 60%), #000; color: #fff; overflow-y: auto; }
.langpick__box { width: 100%; max-width: 360px; display: grid; justify-items: center; gap: 6px; }
.langpick__logo { width: 168px; height: auto; margin-bottom: 14px; }
.langpick__title { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.langpick__hint { color: rgba(255, 255, 255, .5); font-size: 12px; text-align: center; margin-bottom: 14px; }
.langpick__list { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.langpick__item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); font-size: 14px; font-weight: 600; transition: border-color .15s, transform .15s, background .15s; }
.langpick__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langpick__item:hover { border-color: var(--brand-2); background: rgba(255, 255, 255, .08); }
.langpick__item:active { transform: scale(.97); }
.langpick__item small { color: var(--gold); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; flex: none; }
.langpick__item.is-current { background: linear-gradient(135deg, rgba(104, 72, 204, .4), rgba(232, 43, 88, .32)); border-color: transparent; }

/* partage */
.share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; padding: 6px 0 4px; }
.share__item { display: grid; justify-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); text-align: center; }
.share__item > span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); transition: transform .15s; }
.share__item:hover > span { transform: scale(1.06); }
.share__item[data-ch="whatsapp"] > span { background: #25D366; color: #fff; }
.share__item[data-ch="facebook"] > span { background: #1877F2; color: #fff; }
.share__item[data-ch="x"] > span { background: #000; color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.share__item[data-ch="telegram"] > span { background: #2AABEE; color: #fff; }
.share__item[data-ch="native"] > span { background: var(--brand); color: #fff; }
.steps { display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; flex: none; }
.pushask { display: grid; justify-items: center; gap: 12px; text-align: center; }
.pushask__icon { width: 46px; height: 46px; color: var(--brand-2); }

/* analyse */
.insights__big { display: grid; justify-items: center; margin-bottom: 14px; }
.insights__big b { font-size: 44px; font-weight: 900; background: var(--brand-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.insights__big span { color: var(--text-2); font-size: 13.5px; }
.bars { display: grid; gap: 7px; margin-bottom: 16px; }
.bars__row { display: grid; grid-template-columns: auto 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bars__track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.bars__fill { display: block; height: 100%; width: 0; background: var(--c); border-radius: 5px; transition: width .7s var(--ease); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.kpis > div { padding: 12px; border-radius: 14px; background: var(--surface-2); }
.kpis dt { font-size: 11.5px; color: var(--text-3); }
.kpis dd { margin: 2px 0 0; font-size: 19px; font-weight: 800; }
.tip { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 16%, transparent); font-size: 14px; }
.tip .i { color: var(--gold); }

/* ============================================================ compte */
.acct { max-width: 760px; padding-top: 10px; }
.acct__back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; font-size: 15px; color: var(--text); }
.acct__back b { font-weight: 750; }
[dir="rtl"] .acct__back .i { transform: scaleX(-1); }
.acct__card { position: relative; border-radius: var(--rl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); padding-bottom: 16px; }
.acct__cover { position: relative; height: 170px; background: var(--brand); }
.acct__cover img { width: 100%; height: 100%; object-fit: cover; }
.acct__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .45)); }
.acct__coveredit { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; }
.acct__id { display: flex; align-items: flex-end; gap: 14px; padding: 0 16px; margin-top: -48px; position: relative; z-index: 2; }
.acct__avatarwrap { position: relative; flex: none; }
.acct__avatar { display: block; padding: 3px; border-radius: 50%; background: var(--surface); }
.acct__avatar.has-status { background: conic-gradient(var(--brand-1), var(--brand-2), var(--brand-3), var(--ring), var(--brand-1)); }
.acct__avatar img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); }
.acct__avataredit { position: absolute; inset-inline-end: 2px; bottom: 4px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 3px var(--surface); }
.acct__avataredit .i { width: 18px; height: 18px; }
.acct__names { min-width: 0; align-self: flex-start; padding-top: 56px; }
.acct__name { font-size: 24px; line-height: 1.15; font-weight: 850; letter-spacing: -.01em; overflow-wrap: anywhere; }
.acct__handle { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 15px; }
.editbtn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.editbtn .i { width: 16px; height: 16px; }
.acct__bio { padding: 12px 16px 0; font-size: 14.5px; color: var(--text-2); white-space: pre-line; }
.acct__link { display: flex; align-items: center; gap: 6px; margin: 14px 16px 0; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.acct__link input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text-2); font-size: 13px; }
.copybtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--invert); color: var(--on-invert); }
.copybtn .i { width: 17px; height: 17px; }
.acct__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px 0; }
.acct__actions .linkbtn--gold { margin-inline-start: auto; }
.acct__stats { width: 100%; margin: 16px 0 6px; border-collapse: collapse; font-size: 13px; letter-spacing: .12em; }
.acct__stats tr { cursor: pointer; transition: background .15s; }
.acct__stats tr:hover { background: var(--surface-2); }
.acct__stats td { padding: 11px 6px; border-bottom: 1px solid var(--line); color: var(--text-2); font-weight: 650; }
.acct__stats td:nth-child(2) { width: 30px; text-align: center; color: var(--text-3); }
.acct__stats td:last-child { text-align: end; font-size: 17px; font-weight: 850; color: var(--text); letter-spacing: 0; }
.acct__score { padding: 16px; margin: 10px 0 0; border-radius: var(--rl); background: var(--surface); border: 1px solid var(--line); }
.acct__scoretitle { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 750; letter-spacing: .12em; color: var(--text-2); }
.acct__scoretitle b { font-size: 34px; letter-spacing: -.02em; background: var(--brand-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acct__scoretitle small { color: var(--gold); font-size: 11.5px; }
.acct__extra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.acct__extra > div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.acct__extra dt { font-size: 11.5px; color: var(--text-3); }
.acct__extra dd { margin: 0; font-size: 18px; font-weight: 800; }
.acct__section { margin-top: 14px; padding: 16px; border-radius: var(--rl); background: var(--surface); border: 1px solid var(--line); }
.acct__section--light { background: #fff; color: #0E0E14; border-color: transparent; }
.acct__section--light .muted { color: #6E6E7A; }
.acct__section--light .btn--dark { background: #0E0E14; color: #fff; }
.acct__sectionhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.acct__sectionhead h2 { font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.scircles { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.scircles::-webkit-scrollbar { display: none; }
.scircle { display: grid; justify-items: center; gap: 6px; width: 96px; text-align: center; }
.scircle__ring { padding: 3px; border-radius: 50%; background: conic-gradient(var(--brand-1), var(--brand-2), var(--brand-3), var(--ring), var(--brand-1)); }
.scircle__img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; font-size: 9px; padding: 6px; }
.scircle__meta { display: grid; font-size: 11.5px; line-height: 1.35; color: #4D4D5B; }
.scircle__meta b { color: #0E0E14; font-size: 12.5px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 14px; overflow: hidden; }
.grid > .skeleton { grid-column: 1 / -1; }
.grid__empty { grid-column: 1 / -1; }
.tile { position: relative; aspect-ratio: 3 / 4; background: var(--surface-2); overflow: hidden; }
.tile__link { position: absolute; inset: 0; display: block; color: #fff; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile__text { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; font: 700 12.5px/1.3 var(--font-serif); text-align: center; overflow: hidden; }
.tile__kind { position: absolute; top: 7px; inset-inline-end: 7px; width: 18px; height: 18px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.tile__score { position: absolute; inset-inline-start: 7px; bottom: 6px; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.tile__by { position: absolute; inset-inline-end: 7px; bottom: 6px; font-size: 11px; font-weight: 650; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__bye { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 16px; border-radius: var(--rl); border: 1px solid var(--line); }

/* recadrage */
.cropper { display: flex; flex-direction: column; background: #000; color: #fff; }
.cropper__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(8px + var(--safe-t)) 10px 8px; }
.cropper__head .iconbtn { color: #fff; }
.cropper__head h2 { font-size: 16px; }
.cropper__stage { flex: 1; display: grid; place-items: center; min-height: 0; }
.cropper__stage canvas { touch-action: none; cursor: grab; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.cropper__tools { display: flex; align-items: center; gap: 12px; padding: 14px 20px; }
.cropper__tools input { flex: 1; accent-color: var(--brand-2); }
.cropper__hint { text-align: center; color: rgba(255, 255, 255, .6); font-size: 13px; padding-bottom: calc(14px + var(--safe-b)); }
.cropper__bar { height: 4px; background: rgba(255, 255, 255, .2); }
.cropper__bar i { display: block; height: 100%; width: 0; background: var(--brand-h); transition: width .2s; }

/* ============================================================ messagerie */
.inbox { display: grid; height: calc(100dvh - var(--top) - var(--safe-t) - var(--tab) - var(--safe-b)); }
.view--messages { padding-bottom: calc(var(--tab) + var(--safe-b)); }
.inbox__list { overflow-y: auto; padding: 12px 12px 20px; }
.inbox__list .searchfield { margin-bottom: 10px; }
.inbox__chat { display: none; min-height: 0; }
.inbox.is-open .inbox__list { display: none; }
.inbox.is-open .inbox__chat { display: flex; }
.convs { display: grid; gap: 2px; }
.conv { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 16px; transition: background .15s; }
.conv:hover, .conv.is-active { background: var(--surface-2); }
.conv__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.conv__top { display: flex; justify-content: space-between; gap: 8px; }
.conv__top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__top small { color: var(--text-3); font-size: 12px; flex: none; }
.conv__last { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13.5px; }
.conv__last span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.has-unread .conv__last { color: var(--text); font-weight: 600; }
.conv__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font: 800 11px/20px var(--font); font-style: normal; text-align: center; }
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.chat__head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.chat__who { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat__avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ring); }
.chat__who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.chat__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--text-3); margin-inline-end: 4px; }
.chat__dot.is-online { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
[dir="rtl"] .chat__back .i { transform: scaleX(-1); }
.chat__stream { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; margin: 0; list-style: none; }
.chat__hello { margin: auto; color: var(--text-3); }
.chat__placeholder { margin: auto; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--text-2); padding: 30px; }
.bubble { position: relative; max-width: min(78%, 460px); align-self: flex-start; display: grid; gap: 6px; padding: 9px 12px 7px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); animation: bubblein .25s var(--ease); }
.bubble.is-mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, #5B3FC4, #B12E78); color: #fff; }
@keyframes bubblein { from { opacity: 0; transform: translateY(6px); } }
.bubble__text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.bubble__link { font-weight: 700; text-decoration: underline; }
.bubble__time { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 11px; opacity: .65; }
.bubble__time .i { width: 15px; height: 15px; }
.pin { display: flex; gap: 10px; align-items: center; padding: 6px; padding-inline-end: 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); border-inline-start: 3px solid var(--gold); }
:root[data-mode="light"] .bubble:not(.is-mine) .pin { background: rgba(0, 0, 0, .06); }
.pin__thumb { width: 46px; height: 62px; border-radius: 8px; object-fit: cover; flex: none; font-size: 8px; padding: 3px; }
.pin__txt { display: grid; gap: 2px; min-width: 0; }
.pin__label { font-size: 12.5px; font-weight: 750; color: var(--gold-2); }
.bubble:not(.is-mine) .pin__label { color: var(--gold); }
.pin__preview { font-size: 12.5px; opacity: .8; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pin--expired { opacity: .7; font-style: italic; }
.notechip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--c, rgba(255, 255, 255, .2)); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .2); }
.notechip .i { width: 14px; height: 14px; }
.notechip b { font-size: 15px; letter-spacing: 0; }
.notechip--like { background: var(--r7); }
.chat__composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px); border-top: 1px solid var(--line); }
.chat__composer textarea { flex: 1; min-height: 44px; max-height: 160px; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface-2); resize: none; outline: 0; line-height: 1.35; }
.chat__composer textarea:focus { border-color: var(--brand-2); }

@media (max-width: 767px) {
  body:has(.inbox.is-open) .topbar, body:has(.inbox.is-open) .tabbar { display: none; }
  body:has(.inbox.is-open) .view { padding: var(--safe-t) 0 var(--safe-b); }
  body:has(.inbox.is-open) .inbox { height: calc(100dvh - var(--safe-t) - var(--safe-b)); }
  body:has(.inbox.is-open) .toasts { bottom: 90px; }
}

/* ======================================================== notifications */
.notifs { display: grid; gap: 2px; }
.notif { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 16px; transition: background .15s; }
.notif:hover { background: var(--surface-2); }
.notif.is-unread { background: color-mix(in srgb, var(--brand-2) 10%, transparent); }
.notif__who { position: relative; flex: none; }
.notif__sys { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.notif__kind { position: absolute; inset-inline-end: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--brand-2)); color: #fff; font: 800 11px/1 var(--font); font-style: normal; box-shadow: 0 0 0 2.5px var(--bg); }
.notif__kind .i { width: 13px; height: 13px; }
.notif__kind--follow { --c: var(--r3); } .notif__kind--message { --c: var(--r4); } .notif__kind--status_like { --c: var(--r7); } .notif__kind--moderation { --c: var(--r6); }
.notif__body { flex: 1; min-width: 0; display: grid; }
.notif__text { font-size: 14.5px; line-height: 1.4; }
.notif__body small { color: var(--text-3); font-size: 12.5px; }
.notif__thumb { width: 46px; height: 60px; border-radius: 10px; object-fit: cover; flex: none; font-size: 8px; padding: 3px; }
.pushbanner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-1) 25%, var(--surface)), color-mix(in srgb, var(--brand-3) 20%, var(--surface))); font-size: 14px; }
.pushbanner span { flex: 1; }

/* ============================================================ paramètres */
.setrow { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-radius: 14px; text-align: start; transition: background .15s; }
.setrow:hover { background: var(--surface-2); }
.setrow > span { flex: 1; display: grid; min-width: 0; }
.setrow small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.setrow > .i:first-child { color: var(--text-2); }
.setrow > .i:last-child { color: var(--text-3); width: 18px; }
.setrow--danger { color: var(--danger); }
.setrow--danger .i { color: var(--danger) !important; }
.settings .seg { display: flex; }
.settings .seg > * { flex: 1; justify-content: center; }
.settings__prefs { margin-top: 4px; }
.pushstate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.pushstate > span:nth-child(2) { flex: 1; display: grid; min-width: 160px; }
.pushstate small { color: var(--text-3); font-size: 12.5px; }
.pushstate__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); }
.pushstate__dot.is-on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.pushstate__dot.is-denied { background: var(--danger); }
.settings__ver { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 10px; }

/* ============================================================ suggestions */
.suggs { display: grid; gap: 10px; }
.sugg { display: flex; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.vote { display: grid; justify-items: center; align-content: start; gap: 0; width: 52px; padding: 6px 0; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); flex: none; transition: background .15s; }
.vote b { font-size: 16px; }
.vote.is-on { background: var(--brand); color: #fff; border-color: transparent; }
.sugg__main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.sugg__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sugg__meta small { color: var(--text-3); font-size: 12px; }
.sugg h3 { font-size: 16px; }
.sugg p { color: var(--text-2); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.sugg__note { display: flex; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px !important; }
.sugg__note .i { width: 18px; height: 18px; color: var(--brand-2); }

/* ============================================================ à propos / auth */
.about__logo { width: min(70vw, 320px); height: auto; margin: 10px auto 14px; }
.about__lead { text-align: center; font-size: 17px; color: var(--text-2); margin-bottom: 20px; }
.about p { color: var(--text-2); }
.about__foot { text-align: center; margin: 16px 0; }
.auth { min-height: 100dvh; display: grid; }
.auth__brand { display: grid; justify-items: center; align-content: center; gap: 14px; padding: calc(40px + var(--safe-t)) 24px 10px; text-align: center; }
.auth__brand img { width: min(70vw, 300px); height: auto; }
.auth__brand p { color: var(--text-2); max-width: 380px; }
.auth__dots { display: flex; gap: 6px; }
.auth__dots .rdot { width: 22px; height: 22px; font-size: 11px; animation: dotin .5s var(--spring) both; }
.auth__dots li:nth-child(2) { animation-delay: .05s; } .auth__dots li:nth-child(3) { animation-delay: .1s; } .auth__dots li:nth-child(4) { animation-delay: .15s; } .auth__dots li:nth-child(5) { animation-delay: .2s; } .auth__dots li:nth-child(6) { animation-delay: .25s; } .auth__dots li:nth-child(7) { animation-delay: .3s; }
@keyframes dotin { from { opacity: 0; transform: translateY(8px) scale(.6); } }
.auth__panel { width: 100%; max-width: 460px; margin: 0 auto; padding: 18px 20px calc(24px + var(--safe-b)); display: grid; gap: 18px; align-content: start; }
.auth__title { font-size: 25px; font-weight: 850; letter-spacing: -.01em; }
.auth__form .btn--lg { margin-top: 4px; }
.auth__switch { text-align: center; color: var(--text-2); font-size: 14.5px; }
.auth__switch a { color: var(--brand-2); font-weight: 700; }
.auth__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding-top: 6px; }
.auth__foot .seg > * { padding: 0 10px; }
.auth--center { place-items: center; padding: 20px; }
.session { text-align: center; justify-items: center; }
.session__logo { width: 220px; height: auto; margin-bottom: 8px; }
.session__avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--ring); }
.session__blocked { display: grid; justify-items: center; gap: 10px; }
.session__blocked h1 { font-size: 22px; }

/* ============================================================ administration */
.admin { max-width: 1100px; }
.admin__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin__tabs::-webkit-scrollbar { display: none; }
.admin__tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px 12px 0 0; color: var(--text-2); font-weight: 650; font-size: 14px; white-space: nowrap; }
.admin__tabs a .i { width: 18px; height: 18px; }
.admin__tabs a.is-active { color: var(--text); }
.admin__tabs a.is-active::after { content: ""; position: absolute; inset: auto 10px -5px; height: 3px; border-radius: 2px; background: var(--brand-h); }
.admin__tabs .badge { position: static; box-shadow: none; }
.kpis--admin { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 16px; }
.kpis--admin > .kpi { background: var(--surface); }
.kpi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
a.kpi:hover { border-color: var(--line-2); transform: translateY(-1px); }
.kpi .i { grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--surface-2); color: var(--brand-2); }
.kpi span { font-size: 12px; color: var(--text-3); }
.kpi b { font-size: 22px; font-weight: 850; }
.kpi.is-alert { border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.kpi.is-alert .i { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.chart { width: 100%; height: 190px; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-dasharray: 4 6; }
.chart__area { fill: url(#g-brand); opacity: .14; }
.chart__line { fill: none; stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.chart__line--posts { stroke: var(--brand-2); }
.chart__line--users { stroke: var(--gold); stroke-dasharray: 6 5; }
.chart__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }
.legend__posts::before { background: var(--brand-2); }
.legend__users::before { background: var(--gold); }
.reports { display: grid; gap: 10px; margin-top: 12px; }
.report { display: flex; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: opacity .25s, transform .25s; }
.report.is-out { opacity: 0; transform: translateX(20px); }
.report__media { position: relative; flex: none; }
.mthumb { width: 84px; height: 112px; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font-size: 11px; padding: 6px; overflow: hidden; color: var(--text-2); text-align: center; }
.mthumb--gone .i { color: var(--text-3); }
.report__count { position: absolute; top: -6px; inset-inline-end: -6px; display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; }
.report__count .i { width: 13px; height: 13px; }
.report__main { flex: 1; min-width: 0; display: grid; gap: 8px; align-content: start; }
.report__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.report__meta small { color: var(--text-3); font-size: 12px; }
.report__text { font-size: 14px; overflow-wrap: anywhere; }
.report__reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.report__details { font-size: 13px; color: var(--text-2); font-style: italic; }
.report__owner { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; }
.report__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ausers { display: grid; gap: 10px; }
.auser { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.auser__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.auser__id > span { display: grid; min-width: 0; }
.auser__id small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auser__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.auser__meta small { color: var(--text-3); font-size: 12px; }
.auser__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hist { display: grid; gap: 8px; }
.hist li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.hist small { color: var(--text-3); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mcard { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.mcard .mthumb { width: 100%; height: 180px; border-radius: 0; }
.mcard.is-hidden .mthumb { filter: grayscale(1) brightness(.5); }
.mcard.is-hidden::before { content: ""; position: absolute; z-index: 1; top: 8px; inset-inline-start: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px rgba(0, 0, 0, .4); }
.mcard__info { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px 0; font-size: 13px; }
.mcard__info small { color: var(--text-3); }
.mcard__actions { display: flex; justify-content: flex-end; padding: 2px 4px 4px; }
.tablewrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: start; padding: 10px 12px; background: var(--surface-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }

/* panneaux (colonne de droite) */
.panel { padding: 16px; margin-bottom: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.panel__title { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.panel--idea { background: linear-gradient(140deg, color-mix(in srgb, var(--brand-1) 20%, var(--surface)), color-mix(in srgb, var(--brand-3) 14%, var(--surface))); }
.panel--idea p { color: var(--text-2); font-size: 14px; margin-bottom: 12px; }
.panel__icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 6px; }
.rightcol__foot { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--text-3); padding: 0 6px; }

/* ===================================================== tablette (≥ 768) */
@media (min-width: 768px) {
  :root { --top: 0px; --tab: 0px; }
  .topbar, .tabbar { display: none; }
  .sidenav { display: flex; flex-direction: column; position: fixed; z-index: 40; inset: 0 auto 0 0; width: 84px; padding: 16px 12px; border-inline-end: 1px solid var(--line); background: var(--bg); overflow-y: auto; scrollbar-width: none; }
  [dir="rtl"] .sidenav { inset: 0 0 0 auto; }
  .sidenav__logo { display: grid; place-items: center; height: 46px; margin-bottom: 14px; overflow: hidden; }
  .sidenav__mark { width: 40px; height: 40px; }
  .sidenav__links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sidenav__links > a[data-nav] { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; height: 50px; border-radius: 14px; color: var(--text-2); font-weight: 600; transition: background .15s, color .15s; }
  .sidenav__links > a[data-nav]:hover { background: var(--surface-2); color: var(--text); }
  .sidenav__links > a[data-nav].is-active { color: var(--text); background: var(--surface-2); }
  .sidenav__links > a[data-nav].is-active .i { color: var(--brand-2); }
  .sidenav__links > a[data-nav] .i { width: 25px; height: 25px; }
  .sidenav__links > a[data-nav] span { display: none; }
  .sidenav__links .badge { top: 6px; inset-inline-end: 8px; }
  .sidenav__create { width: 54px; height: 54px; margin: 12px auto; padding: 0; border-radius: 50%; }
  .sidenav__create span { display: none; }
  .sidenav__me { display: grid; place-items: center; margin-top: 6px; }
  .sidenav__me span { display: none; }
  .view { margin-inline-start: 84px; padding: 0 0 30px; }
  .scroller { height: 100dvh; }
  .view--accueil, .view--videos, .view--userposts, .view--publication, .view--enregistres, .view--statut, .view--messages { padding-bottom: 0; }
  .post { height: 100dvh; max-width: 520px; margin: 0 auto; }
  .feed { background: var(--bg); }
  .post { border-radius: 0; }
  .inbox { height: 100dvh; grid-template-columns: 340px 1fr; }
  .inbox__list { display: block !important; border-inline-end: 1px solid var(--line); }
  .inbox__chat { display: flex; }
  .chat__back { display: none; }
  .fabs { bottom: 26px; }
  .toasts { bottom: 30px; }
  .layer { align-items: center; padding: 20px; }
  .layer--full, .layer--drawer { padding: 0; }
  .sheet { border-radius: 26px; transform: translateY(24px) scale(.97); opacity: 0; transition: transform .26s var(--ease), opacity .2s; max-height: 86dvh; }
  .layer.is-in .sheet { transform: none; opacity: 1; }
  .sheet__grip { display: none; }
  .page { padding: 28px 28px 40px; }
  .home__share { margin: 16px; }
  .perfs { grid-auto-columns: minmax(240px, 1fr); }
  .acct__cover { height: 220px; }
  .acct__avatar img { width: 128px; height: 128px; }
  .acct__id { margin-top: -60px; }
  .acct__names { padding-top: 68px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .auth { grid-template-columns: 1fr 1fr; align-items: center; }
  .auth--center { grid-template-columns: 1fr; }
  .auth__brand { padding: 40px; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  :root[data-mode] .sidenav__logo img.logo-dark, :root[data-mode] .sidenav__logo img.logo-light { display: none !important; }
}

/* ===================================================== ordinateur (≥ 1100) */
@media (min-width: 1100px) {
  .sidenav { width: var(--side); padding: 22px 16px; }
  .sidenav__logo { justify-content: start; place-items: start; height: 52px; padding-inline-start: 8px; }
  .sidenav__mark { display: none; }
  .sidenav__logo img { height: 46px; width: auto; }
  .sidenav__links > a[data-nav] { justify-content: flex-start; padding: 0 14px; }
  .sidenav__links > a[data-nav] span { display: inline; }
  .sidenav__links .badge { position: static; margin-inline-start: auto; box-shadow: none; }
  .sidenav__create { width: 100%; height: 50px; border-radius: 999px; margin: 14px 0; }
  .sidenav__create span { display: inline; }
  .sidenav__me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; margin-top: auto; }
  .sidenav__me:hover { background: var(--surface-2); }
  .sidenav__me span { display: grid; min-width: 0; }
  .sidenav__me b, .sidenav__me small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidenav__me small { color: var(--text-3); font-size: 12.5px; }
  .view { margin-inline-start: var(--side); }
  .post { border-radius: 22px; height: calc(100dvh - 28px); margin: 14px auto; max-width: min(calc((100dvh - 28px) * .5625), 520px); }
  .post.is-video .post__media video { object-fit: cover; }
  .feed__end { min-height: 40vh; }
  .home { max-width: 760px; margin: 0 auto; }
  .chips { flex-wrap: wrap; }
  .inbox { grid-template-columns: 380px 1fr; }
}
@media (min-width: 1300px) {
  .rightcol { display: block; position: fixed; inset: 0 0 0 auto; width: var(--aside); padding: 22px 20px; overflow-y: auto; border-inline-start: 1px solid var(--line); scrollbar-width: thin; }
  [dir="rtl"] .rightcol { inset: 0 auto 0 0; }
  .view { margin-inline-end: var(--aside); }
  body[data-page="messages"] .view, body[data-page^="admin"] .view { margin-inline-end: 0; }
  body[data-page="messages"] .rightcol, body[data-page^="admin"] .rightcol { display: none; }
}

/* ======================================================= préférences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (hover: none) { .tile:hover img, .story:hover .story__bg { transform: none; } }

/* contenus des membres : sens d'écriture déduit du texte (arabe dans une interface française, etc.) */
span.story__bg, .post__text p, .post__caption, .post__short, .bubble__text, .pin__preview, .comment__body, .notif__text, .sthumb, .acct__bio, .viewer__text, .viewer__caption, .sugg p, .report__text, .tile__text { unicode-bidi: plaintext; }

/* ======================================================= visiteurs */
.story--join { display: grid; place-items: center; background: linear-gradient(160deg, rgba(104, 72, 204, .35), rgba(232, 43, 88, .25)); border: 1px dashed rgba(255, 255, 255, .25); }
.story--join .story__plus { position: static; transform: none; margin-bottom: 26px; }
.story--join .story__name { text-align: center; white-space: normal; }
.joincard { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 8px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-1) 22%, var(--surface)), color-mix(in srgb, var(--brand-3) 16%, var(--surface))); border: 1px solid var(--line); }
.joincard > span { flex: 1; display: grid; }
.joincard small { color: var(--text-2); font-size: 13px; }
.joincard > .i:first-child { color: var(--brand-2); }
.loginask { display: grid; justify-items: center; gap: 14px; text-align: center; padding-bottom: 4px; }
.loginask__icon { width: 46px; height: 46px; color: var(--brand-2); }
.loginask p { color: var(--text-2); max-width: 340px; }
.loginask__actions { width: 100%; display: grid; gap: 8px; }
.auth__guest { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--text-2); font-weight: 650; font-size: 14px; }
.auth__guest .i { width: 17px; height: 17px; }
[dir="rtl"] .auth__guest .i { transform: scaleX(-1); }
.drawer__logo { width: 190px; height: auto; margin: 6px 0 2px; }
.drawer__lead { color: var(--text-2); text-align: center; font-size: 14px; margin-bottom: 4px; }
.sidenav__join { margin-top: -4px; }
.is-guest .comments-wrap .composer { display: none !important; }
.composer__login { margin-top: 10px; flex: none; }
@media (min-width: 768px) and (max-width: 1099px) { .sidenav__join { display: none; } }

/* ======================================================= accueil (design d'origine, raffiné) */
.home2 { scroll-snap-align: start; padding: 0 0 26px; background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--surface-2) 70%, var(--bg)) 100%); }
:root[data-mode="light"] .home2 { background: linear-gradient(180deg, #fff 0%, #f4f4f6 55%, #e9e9ed 100%); }
.sbar { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 6px; padding: 10px 8px 10px 10px; border-radius: 0 0 16px 16px; background: var(--surface); box-shadow: 0 10px 24px rgba(0, 0, 0, .14), 0 1px 0 var(--line); }
.sbar__list { flex: 1; min-width: 0; display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px; }
.sbar__list::-webkit-scrollbar { display: none; }
.sbar__list > li { flex: none; scroll-snap-align: start; }
.tile2 { position: relative; display: block; width: 68px; height: 104px; border-radius: 13px; overflow: hidden; background: #111; color: #fff; isolation: isolate; box-shadow: 0 4px 12px rgba(0, 0, 0, .22); transition: transform .2s var(--ease); }
.tile2:active { transform: scale(.95); }
.tile2__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
span.tile2__bg { display: grid; place-items: center; padding: 6px; font-size: 9px; line-height: 1.2; text-align: center; overflow: hidden; }
.tile2__bg--brand { background: var(--brand); }
.tile2__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .78)); }
.tile2__ring { position: absolute; top: 5px; inset-inline-start: 5px; padding: 2px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.tile2.is-unseen .tile2__ring { background: conic-gradient(#FFB21E, #F7882F, #FFD25A, #FFB21E); }
.tile2__ring .avatar { width: 30px; height: 30px; border: 2px solid #000; display: block; }
.tile2__name { position: absolute; inset: auto 3px 7px; font: 800 11.5px/1 var(--font); letter-spacing: .02em; text-transform: uppercase; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.tile2--me { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #C43481, 0 6px 14px rgba(196, 52, 129, .35); margin: 4px 2px; height: 96px; width: 64px; }
.tile2__add { position: absolute; top: 6px; inset-inline-start: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); box-shadow: 0 0 0 2px #fff; }
.tile2__add .i { width: 15px; height: 15px; }
.sbar__saved { flex: none; display: grid; place-items: center; width: 42px; height: 72px; border-radius: 21px; background: #000; color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12); transition: transform .15s; }
.sbar__saved:active { transform: scale(.94); }
.sbar__saved .i { width: 22px; height: 22px; }
.hchips { display: flex; justify-content: center; flex-wrap: nowrap; gap: 8px; padding: 22px 10px 4px; }
.hchip { flex: 0 1 auto; min-width: 0; white-space: nowrap; height: 30px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 6px; background: #000; color: #fff; font: 600 clamp(11px, 3.3vw, 13.5px)/1 var(--font); letter-spacing: .01em; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .1); transition: transform .15s, background .15s; }
.hchip:hover { background: linear-gradient(135deg, #1b1b22, #000); }
.hchip:active { transform: scale(.95); }
:root[data-mode="dark"] .hchip { background: #15151c; border: 1px solid rgba(255, 255, 255, .12); }
.home2__title { margin: 16px 12px 14px; text-align: center; font: 500 19px/1.2 var(--font); letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }
.best { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 12px; }
.best__card { position: relative; display: block; aspect-ratio: 5 / 6; border-radius: 13px; overflow: hidden; background: #111; color: #fff; isolation: isolate; box-shadow: 0 10px 22px rgba(0, 0, 0, .22); transition: transform .25s var(--ease); }
.best__card:hover { transform: translateY(-2px); }
.best__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .5s var(--ease); }
.best__card:hover .best__img { transform: scale(1.05); }
span.best__img, .best__text { display: grid; place-items: center; padding: 10px; font: 700 12px/1.25 var(--font-serif); text-align: center; overflow: hidden; }
.best__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55) 68%, rgba(0, 0, 0, .82)); }
.best__txt { position: absolute; inset: auto 4px 8px; display: grid; justify-items: center; gap: 1px; text-align: center; }
.best__label { font: 800 clamp(9.5px, 2.7vw, 11.5px)/1.15 var(--font); letter-spacing: .01em; text-transform: uppercase; max-width: 100%; overflow-wrap: anywhere; }
.best__value { font: 300 25px/1 var(--font); letter-spacing: -.01em; }
.best__value small { font-size: 12.5px; font-weight: 400; letter-spacing: 0; opacity: .9; }
.best__empty { grid-column: 1 / -1; text-align: center; color: var(--text-3); }
.home2__pitch { margin: 22px auto 0; max-width: 520px; padding: 0 18px; text-align: center; font: 400 17.5px/1.45 var(--font); color: var(--text-2); }
.home2__share { display: flex; align-items: center; gap: 10px; margin: 30px auto 6px; height: 54px; padding: 0 44px; border-radius: 999px; background: linear-gradient(100deg, #4652E6 0%, #8A3FD8 45%, #E82B58 100%); color: #fff; font: 800 18px/1 var(--font); letter-spacing: .03em; box-shadow: 0 10px 28px rgba(70, 82, 230, .4), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s, box-shadow .2s; }
.home2__share:hover { box-shadow: 0 14px 34px rgba(70, 82, 230, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.home2__share:active { transform: scale(.97); }
.home2__share .i { width: 20px; height: 20px; opacity: .85; }
@media (min-width: 768px) { .home2 { max-width: 760px; margin: 0 auto; } .tile2 { width: 78px; height: 118px; } .tile2--me { width: 74px; height: 110px; } }

/* barre du haut et barre d'onglets : toujours noires, comme le design d'origine */
.topbar, .tabbar { background: rgba(0, 0, 0, .94); border-color: rgba(255, 255, 255, .06); color: #fff; }
.topbar .iconbtn, .tabbar__item { color: #fff; }
.tabbar__item:not(.is-active) { color: rgba(255, 255, 255, .78); }
.topbar .logo-dark { display: block !important; }
.topbar .logo-light { display: none !important; }
.topbar .iconbtn:hover { background: rgba(255, 255, 255, .1); }
.topbar__actions { gap: 0; }
.topbar .topbar__me { margin-inline: 4px; }


/* ======================================================= V2.6 */
/* barre du haut */
.topbar__me { padding: 0; border: 0; background: none; cursor: pointer; }
.badge--inline { position: static; margin-inline-start: auto; box-shadow: none; }
.tabbar .fab__icon { width: 30px; height: 30px; transform: translateX(-1px); }

/* panneau latéral (d'après la capture) */
.drawer { background: #121212; color: #fff; }
.drawer__id { gap: 6px; padding: 18px 0 20px; border-bottom: 0; }
.drawer__photo { display: block; border-radius: 50%; }
.drawer__avatar { width: 104px; height: 104px; box-shadow: 0 0 0 5px #fff, 0 10px 26px rgba(0, 0, 0, .5); }
.drawer__name { margin-top: 14px; font: 400 clamp(30px, 9vw, 40px)/1.05 var(--font); letter-spacing: .01em; text-transform: uppercase; color: #fff; text-align: center; overflow-wrap: anywhere; }
.drawer__stats { margin-top: 8px; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.drawer__stats tr { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.drawer__stats td { padding: 12px 8px; color: #fff; }
.drawer__stats td:nth-child(2) { color: rgba(255, 255, 255, .6); }
.drawer__stats td:last-child { color: #fff; }
.drawer__stats b { font-size: 16px; color: #fff; }
.drawer__account { display: grid; place-items: center; width: 100%; height: 56px; margin-top: 30px; border-radius: 6px; background: linear-gradient(100deg, #4652E6 0%, #8A3FD8 45%, #F0273C 100%); color: #0d0d14; font: 800 21px/1 var(--font); letter-spacing: .02em; box-shadow: 0 10px 24px rgba(70, 82, 230, .3); }
.drawer__quit { width: 100%; height: 54px; margin-top: 26px; border-radius: 6px; border: 0; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .78); font: 500 21px/1 var(--font); letter-spacing: .04em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 16px rgba(0, 0, 0, .35); transition: background .15s, color .15s; }
.drawer__quit:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.drawer__nav { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 6px; }
.drawer__nav > *, .drawer__row { color: #fff; }

/* réglages rapides */
.qs { display: grid; gap: 4px; }
.qs__row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-radius: 14px; text-align: start; color: var(--text); transition: background .15s; }
.qs__row:hover { background: var(--surface-2); }
.qs__row > span { flex: 1; display: grid; min-width: 0; }
.qs__row small { color: var(--text-3); font-size: 12.5px; }
.qs__row > .i:first-child { color: var(--brand-2); }
.qs__go { color: var(--text-3); width: 18px !important; }
.qs__row--static:hover { background: none; }
.qs .seg { display: flex; margin: 0 6px 6px; }
.qs .seg > * { flex: 1; justify-content: center; }
.qs__ver { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 6px; }

/* couleur d'accent */
:root[data-accent="ocean"] { --brand-1: #1C6DD0; --brand-2: #1597BB; --brand-3: #13C4A3; --ring: #1597BB; }
:root[data-accent="sunset"] { --brand-1: #F2541B; --brand-2: #F2884B; --brand-3: #F7B32B; --ring: #F2884B; }
:root[data-accent="emerald"] { --brand-1: #0F9B6E; --brand-2: #22C55E; --brand-3: #A3E635; --ring: #22C55E; }
:root[data-accent="gold"] { --brand-1: #8F7A2E; --brand-2: #C4A94D; --brand-3: #E9D58A; --ring: #C4A94D; }
:root[data-accent="rose"] { --brand-1: #DB2777; --brand-2: #EC4899; --brand-3: #F9A8D4; --ring: #EC4899; }
.accents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.accent { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.accent.is-on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.accent__dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.accent__dot--universe { background: linear-gradient(135deg, #6848CC, #C43481, #E82B58); }
.accent__dot--ocean { background: linear-gradient(135deg, #1C6DD0, #1597BB, #13C4A3); }
.accent__dot--sunset { background: linear-gradient(135deg, #F2541B, #F2884B, #F7B32B); }
.accent__dot--emerald { background: linear-gradient(135deg, #0F9B6E, #22C55E, #A3E635); }
.accent__dot--gold { background: linear-gradient(135deg, #8F7A2E, #C4A94D, #E9D58A); }
.accent__dot--rose { background: linear-gradient(135deg, #DB2777, #EC4899, #F9A8D4); }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.langs__item { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.langs__item small { color: var(--gold); font-weight: 800; letter-spacing: .08em; font-size: 10.5px; }
.langs__item.is-on { background: var(--invert); color: var(--on-invert); }
.mailfield { display: flex; align-items: stretch; }
.mailfield .input { border-start-end-radius: 0; border-end-end-radius: 0; }
.mailfield b { display: grid; place-items: center; padding: 0 12px; border-radius: 0 12px 12px 0; background: var(--surface-3); color: var(--text-2); font-weight: 700; font-size: 14px; border: 1px solid var(--line); border-inline-start: 0; }

/* accueil */
.best__img--empty { background: linear-gradient(160deg, #2a2a35, #0d0d12); }
.best__img--locked { filter: blur(10px) brightness(.8); transform: scale(1.1); }
.sbar__guest { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--text-3); font-size: 13px; font-weight: 600; white-space: nowrap; }
.sbar__guest .i { width: 18px; height: 18px; }

/* publication : pastilles fines comme le modèle, légende sur plusieurs lignes, vues */
.post .rate { gap: 6px; inset-inline-end: 7px; bottom: 12px; }
.post .rate__btn { width: 31px; height: 31px; font-size: 13.5px; font-weight: 800; border: 1.5px solid rgba(0, 0, 0, .35);
  background: radial-gradient(circle at 33% 28%, rgba(255, 255, 255, .85) 0 10%, rgba(255, 255, 255, .25) 26%, transparent 45%), var(--c);
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .35); }
.post .rate__btn.is-mine { transform: scale(1.12); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c), 0 4px 10px rgba(0, 0, 0, .4); }
.post__line { justify-content: space-between; }
.post__short { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.post__short .post__more { display: inline-grid; place-items: center; vertical-align: middle; margin-inline-start: 4px; }
.post__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.post__views { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.post__views .i { width: 15px; height: 15px; }
.post__date { padding: 0; }
@media (max-width: 370px) {
  .act { padding: 0 6px 0 3px; gap: 3px; font-size: 12px; }
  .act__ico { width: 20px; height: 20px; }
  .post__scorelabel { padding: 0 6px; font-size: 10.5px; }
  .post__scoreval { min-width: 26px; padding: 0 7px; font-size: 14px; }
  .post__panel { padding-inline: 8px; }
}
.tile__views { position: absolute; inset-inline-end: 7px; top: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 11px; font-weight: 700; color: #fff; }
.tile__views .i { width: 13px; height: 13px; }
.tile__kind { top: auto; bottom: 26px; }

/* compte */
.acct__visits { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 16px 0; padding: 10px; border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.acct__visits b { font-size: 18px; letter-spacing: 0; color: var(--text); }
.acct__visits .i { width: 18px; height: 18px; color: var(--brand-2); }
.btn--logout { background: color-mix(in srgb, var(--brand-3) 12%, transparent); color: var(--brand-3); border: 1px solid color-mix(in srgb, var(--brand-3) 30%, transparent); margin-inline-start: auto; }
.btn--logout:hover { background: var(--brand-3); color: #fff; }
.acct__sscore { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; color: var(--text-2); }
.acct__sscore b { font-size: 30px; letter-spacing: -.01em; background: var(--brand-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acct__status .acct__extra { margin: 0 0 14px; }
.srows { display: grid; gap: 8px; margin-bottom: 12px; }
.srow2 { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--surface-2); text-align: start; transition: background .15s; }
.srow2:hover { background: var(--surface-3); }
.srow2__ring { padding: 2.5px; border-radius: 14px; background: conic-gradient(var(--brand-1), var(--brand-2), var(--brand-3), var(--ring), var(--brand-1)); flex: none; }
.srow2__img { width: 54px; height: 72px; border-radius: 12px; object-fit: cover; border: 2px solid var(--surface); font-size: 8px; padding: 3px; display: grid; place-items: center; overflow: hidden; }
.srow2__body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.srow2__body small { color: var(--text-3); font-size: 12px; }
.srow2__nums { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.srow2__nums b { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.srow2__nums .i { width: 16px; height: 16px; color: var(--brand-2); }
.srow2__go { color: var(--text-3); width: 18px !important; }
.ptabs { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--text-2); }
.ptab--main { margin-inline-end: auto; height: 38px; padding: 0 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.ptab.is-active { background: var(--brand); color: #fff; border-color: transparent; }
.ptabs__new { flex: none; width: 34px; padding: 0; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 26px 0 8px; padding: 16px 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.legal a { color: var(--text-2); font-weight: 600; }
.legal a:hover { color: var(--text); text-decoration: underline; }
.legal p { flex-basis: 100%; text-align: center; color: var(--text-3); font-size: 12px; margin-top: 6px; }
.legaldoc .card p { color: var(--text-2); line-height: 1.6; }

/* visionneuse de statuts plein écran (modèle fourni) */
.layer--full > .sv { max-width: none; }
.sv { position: relative; width: 100%; height: 100dvh; display: flex; flex-direction: column; background: #000; color: #fff; overflow: hidden; }
.sv__time { height: 5px; background: rgba(255, 255, 255, .12); flex: none; margin-top: var(--safe-t); }
.sv__time i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #22C55E, #4ADE80); border-radius: 0 3px 3px 0; box-shadow: 0 0 10px rgba(34, 197, 94, .6); }
.sv__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 4px; flex: none; }
.sv__count { flex: none; min-width: 44px; text-align: center; margin-inline-end: 4px; font: 900 34px/1 var(--font); color: #22C55E; text-shadow: 0 0 18px rgba(34, 197, 94, .45); font-variant-numeric: tabular-nums; }
.sv.is-paused .sv__count { color: #FACC15; }
.sv__meta { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; }
.sv__score { font: 900 18px/1 var(--font); color: #22C55E; letter-spacing: .02em; white-space: nowrap; }
.sv__replies { display: inline-flex; align-items: center; gap: 6px; color: #fff; font: 600 15px/1 var(--font); letter-spacing: .03em; white-space: nowrap; }
.sv__replies .i { width: 18px; height: 18px; color: #fff; }
.sv__tools { display: flex; gap: 2px; }
.sv__ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.sv__ico .i { width: 19px; height: 19px; }
.sv__ico.is-on { color: #FF4D6D; }
.sv__ico[data-ssave].is-on { color: #FACC15; }
.sv__row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px; flex: none; }
.sv__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sv__who img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #22C55E; }
.sv__who span { display: grid; line-height: 1.15; min-width: 0; }
.sv__who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv__who small { color: rgba(255, 255, 255, .6); font-size: 11.5px; }
.sv__me { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; background: #0b0b0b; border: 1px solid rgba(255, 255, 255, .12); font-size: 22px; font-weight: 400; }
.sv__me b { font-weight: 800; }
.sv__stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.sv__stage img, .sv__stage video { width: 100%; height: 100%; object-fit: contain; }
.sv__text { width: 100%; height: 100%; display: grid; place-items: center; padding: 30px 64px 30px 24px; font-size: clamp(22px, 6vw, 32px); font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.sv__caption { padding: 8px 16px 0; text-align: center; font-size: 15px; flex: none; }
.sv__rate { position: absolute; z-index: 3; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); display: grid; gap: 9px; }
.sv__rbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #000; font: 600 16px/1 var(--font); border: 1px solid rgba(0, 0, 0, .25); box-shadow: 0 3px 8px rgba(0, 0, 0, .45); transition: transform .15s var(--spring); }
.sv__rbtn[data-srate="5"], .sv__rbtn[data-srate="6"], .sv__rbtn[data-srate="7"], .sv__rbtn[data-srate="1"] { color: #fff; }
.sv__rbtn:active { transform: scale(.88); }
.sv__rbtn.is-mine { background: #000; color: #fff; font-weight: 900; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0, 0, 0, .6); }
.sv__tap { position: absolute; z-index: 1; top: 120px; bottom: 150px; width: 28%; }
.sv__tap--prev { inset-inline-start: 0; }
.sv__tap--next { inset-inline-end: 64px; }
.sv__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid rgba(255, 255, 255, .12); flex: none; }
.sv__arrow { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px; color: #fff; }
.sv__arrow .i { width: 30px; height: 30px; stroke-width: 3; }
[dir="rtl"] .sv__arrow .i { transform: scaleX(-1); }
.sv__next { display: inline-grid; }
.sv__thumb { width: 30px; height: 42px; border-radius: 7px; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, .7); font-size: 6px; display: grid; place-items: center; overflow: hidden; }
.sv__close { height: 46px; padding: 0 16px; border: 1.5px solid #fff; background: #000; color: #fff; font: 600 17px/1 var(--font); letter-spacing: .02em; }
.sv__reply { display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(14px + var(--safe-b)); flex: none; }
.sv__reply[hidden] { display: none !important; }
.sv__reply input { flex: 1; min-width: 0; height: 52px; padding: 0 22px; border-radius: 26px; border: 1.5px solid #1F5E2E; background: #3a3a3a; color: #fff; font-size: 17px; font-style: italic; outline: 0; }
.sv__reply input::placeholder { color: rgba(255, 255, 255, .55); }
.sv__send { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; flex: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.sv__send .i { width: 28px; height: 28px; }

/* messagerie (fluidité et lisibilité type WhatsApp) */
.chat__stream { scroll-behavior: smooth; }
.daysep { align-self: center; margin: 8px 0 4px; }
.daysep span { display: inline-block; padding: 4px 12px; border-radius: 8px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; }
.bubble__kind { font-size: 11px; font-weight: 600; text-transform: lowercase; letter-spacing: .02em; opacity: .65; }
.bubble__note { justify-self: start; display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 14px; border-radius: 12px; background: var(--c); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.bubble__note b { font: 900 34px/1 var(--font); }
.bubble__note small { font-weight: 800; opacity: .85; }
.bubble__text--soft { font-style: italic; opacity: .85; }
.bubble__text a { color: inherit; text-decoration: underline; word-break: break-all; }
.bubble.is-pending { opacity: .75; }
.bubble.is-failed { box-shadow: 0 0 0 2px var(--danger); }
.bubble__ticks { display: inline-flex; margin-inline-start: 2px; }
.bubble__ticks.is-read { color: #53BDEB; opacity: 1; }
.pin { color: inherit; text-decoration: none; }
a.pin:hover { filter: brightness(1.1); }
.pin__open { font-size: 12px; font-weight: 700; opacity: .85; text-decoration: underline; }
.lp { margin-top: 2px; }
.lp__card { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .2); color: inherit; text-decoration: none; overflow: hidden; }
:root[data-mode="light"] .bubble:not(.is-mine) .lp__card, .comment .lp__card { background: var(--surface-2); }
.lp__img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.lp__txt { display: grid; gap: 2px; min-width: 0; }
.lp__txt small { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.lp__txt b { font-size: 13.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lp__txt span { font-size: 12.5px; opacity: .8; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.sv__meta { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-start; gap: 12px; overflow: hidden; }
.sv__meta > * { flex: none; }
@media (max-width: 430px) { .sv__head { gap: 8px; padding-inline: 10px; } .sv__count { font-size: 28px; min-width: 34px; } .sv__meta { gap: 8px; } .sv__score, .sv__replies { font-size: 14px; } .sv__replies svg { width: 16px; height: 16px; } .sv__ico { width: 34px; } }
/* Visionneuse de statuts sur grand écran : format téléphone centré, fond noir autour */

/* Écrans courts : tout le bloc d'accueil reste visible au-dessus de la barre de navigation */
@media (max-height: 720px) and (max-width: 699px) {
  .home2__title { margin: 10px 12px 8px; font-size: 16px; }
  .home2__pitch { margin-top: 12px; font-size: 15px; }
  .home2__share { margin-top: 14px; height: 46px; font-size: 16px; }
}
@media (max-width: 380px) { .sv__ico { width: 30px; } .sv__head { gap: 6px; } }
.sbar__guest, .sbar__guest * { white-space: normal !important; text-overflow: clip !important; line-height: 1.3; }

/* ============================================================ V2.7 */
/* chargement : un indicateur plutôt qu'une page vide */
.loading { display: grid; place-items: center; gap: 10px; min-height: 160px; padding: 28px; color: var(--text-3); }
.view > .loading { min-height: 60vh; }
.loading__ring { width: 34px; height: 34px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--brand-2) 20%, transparent); border-top-color: var(--brand-2); border-right-color: var(--brand-3, var(--brand-2)); animation: spin .75s linear infinite; }
.loading small { font-size: 13px; }
.spinner--sm { width: 18px; height: 18px; border-width: 2px; }
.grid > .loading, .srows > .loading { grid-column: 1 / -1; min-height: 120px; }

/* pastilles de notation : couleurs franches du modèle (7 rouge en haut → 1 rose), petite taille,
   ma note = fond noir et chiffre blanc */
.rate__btn, .post .rate__btn {
  width: 32px; height: 32px; font: 800 14px/1 var(--font); color: #fff; text-shadow: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 88%, #000) 100%);
  border: 2px solid color-mix(in srgb, var(--c) 70%, #000);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35); }
.rate__btn.r5 { color: #000; }
.rate__btn:disabled { opacity: 1; }
.rate__btn.is-mine, .post .rate__btn.is-mine { background: #000; color: #fff; border-color: var(--c); transform: none; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, .5); }
.rate { gap: 7px; }
.post .rate { gap: 6px; }

/* icône partager : même traitement que commentaire et enregistrement */
.act--share .act__ico { background: none; box-shadow: none; color: #fff; }

/* relation entre comptes */
.rel { white-space: nowrap; }
.chip.rel--follow { background: linear-gradient(100deg, var(--brand-1), var(--brand-3, var(--brand-2))); color: #fff; border-color: transparent; }
.chip.rel--follower { background: color-mix(in srgb, var(--brand-2) 18%, transparent); color: #fff; border: 1px solid color-mix(in srgb, var(--brand-2) 60%, transparent); }
.chip.rel--following { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.chip.rel--friends { background: rgba(34, 197, 94, .18); color: #4ADE80; border: 1px solid rgba(34, 197, 94, .5); }
.people .chip.rel--follower, .people .chip.rel--following { color: var(--text); }

/* visionneuse : statut en plein écran, informations posées par-dessus */
.sv { display: block; }
.sv__stage { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sv__stage img, .sv__stage video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sv__text { padding: 120px 64px 200px 24px; }
.sv__text p { margin: 0; }
.sv__top { position: absolute; z-index: 3; inset: 0 0 auto 0; padding-bottom: 18px; background: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .35) 70%, transparent); pointer-events: none; }
.sv__top > * { pointer-events: auto; }
.sv__head .sv__ico { margin-inline-start: auto; }
.sv__meta { flex: 1 1 auto; }
.sv__me { height: 38px; padding: 0 14px; font-size: 18px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.sv__me b { color: var(--c); }
.sv__caption { position: absolute; z-index: 3; inset-inline: 16px 64px; bottom: 200px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .5); text-align: start; }
.sv__rate { z-index: 3; }
.sv__bottom { position: absolute; z-index: 3; inset: auto 0 0 0; padding-top: 30px; background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .45) 70%, transparent); }
.sv__tools { display: flex; justify-content: flex-end; gap: 6px; padding: 0 14px 4px; }
.sv__tools .sv__ico { width: 42px; height: 42px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .18); }
.sv__tools .sv__ico .i { width: 21px; height: 21px; }
.sv__tools .sv__ico[hidden] { display: none; }
.sv__reply { padding: 6px 14px 8px; }
.sv__reply input { height: 46px; font-size: 16px; background: rgba(40, 40, 40, .85); }
.sv__send { width: 50px; height: 50px; }
.sv__send .i { width: 24px; height: 24px; }
.sv__nav { border-top: 0; padding: 2px 14px calc(8px + var(--safe-b)); }
.sv__close { height: 40px; font-size: 15px; background: rgba(0, 0, 0, .6); }
.sv__stage .loading { color: #fff; }

/* page Statuts : grand bouton de lecture de tous les statuts */
.spage .pagehead { margin-bottom: 14px; }
.splay { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 16px; width: 100%; padding: 18px; border-radius: 22px; text-align: start; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand-1) 85%, #000) 0%, transparent 60%), linear-gradient(115deg, #4652E6 0%, #8A3FD8 50%, #E82B58 100%);
  box-shadow: 0 14px 34px rgba(138, 63, 216, .35), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s var(--spring); }
.splay:active { transform: scale(.98); }
.splay:disabled { opacity: .6; }
.splay__stack { display: flex; }
.splay__pic { width: 46px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .85); margin-inline-start: -22px; background: #111; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.splay__pic:first-child { margin-inline-start: 0; }
.splay__pic img, .splay__pic .sthumb { width: 100%; height: 100%; object-fit: cover; font-size: 6px; }
.splay__pic--empty .i { width: 22px; height: 22px; }
.splay__btn { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #8A3FD8; box-shadow: 0 0 0 8px rgba(255, 255, 255, .18), 0 10px 24px rgba(0, 0, 0, .3); animation: splaypulse 2.2s ease-in-out infinite; }
.splay__btn .i { width: 30px; height: 30px; margin-inline-start: 4px; }
@keyframes splaypulse { 50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .3); } }
.splay__text { display: grid; gap: 4px; min-width: 0; }
.splay__text b { font: 900 18px/1.15 var(--font); letter-spacing: .03em; }
.splay__text small { font-size: 13px; opacity: .9; }
@media (max-width: 420px) { .splay { grid-template-columns: auto 1fr; } .splay__stack { display: none; } }
.screate { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.screate__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 14.5px; }
.screate__btn--brand { background: color-mix(in srgb, var(--brand-2) 22%, var(--surface-2)); border-color: color-mix(in srgb, var(--brand-2) 45%, transparent); }
.screate__btn .i { width: 20px; height: 20px; }
.srow__new { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; background: #22C55E; color: #fff; font: 800 12px/1 var(--font); font-style: normal; }

/* page compte : boutons compacts */
.acct__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: 650 13px/1 var(--font); white-space: nowrap; }
.abtn .i { width: 16px; height: 16px; }
.abtn--brand { background: linear-gradient(100deg, var(--brand-1), var(--brand-3, var(--brand-2))); border-color: transparent; color: #fff; }
.abtn--logout { color: var(--text-2); margin-inline-start: auto; }
.abtn--logout .i { color: #F87171; }
.abtn--icon { width: 34px; padding: 0; }
.abtn.rel--following, .abtn.rel--follower { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.abtn.rel--friends { background: rgba(34, 197, 94, .16); border-color: rgba(34, 197, 94, .45); color: #22C55E; }

/* sections compte : menus en icônes + titre du contenu */
.itabs { display: flex; gap: 6px; padding: 4px; margin: 14px 0 10px; border-radius: 14px; background: var(--surface-2); }
.itab { flex: 1; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--text-3); transition: background .15s, color .15s; }
.itab .i { width: 21px; height: 21px; }
.itab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.itab:first-child.is-active { background: linear-gradient(100deg, var(--brand-1), var(--brand-3, var(--brand-2))); color: #fff; }
.ihead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 10px; }
.ihead h2 { margin: 0; font: 800 14px/1.2 var(--font); letter-spacing: .08em; color: var(--text-2); }
.ihead__new { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(100deg, var(--brand-1), var(--brand-3, var(--brand-2))); color: #fff; }
.ihead__new[hidden] { display: none; }
.ihead__new .i { width: 18px; height: 18px; }
.srow2w { display: flex; align-items: center; gap: 4px; }
.srow2w .srow2 { flex: 1; min-width: 0; }
.srow2__more { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.srow2__more:hover { background: var(--surface-2); }
.srows__none { padding: 10px 4px; }

/* statistiques (statut ou publication) */
.stx__totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 14px; }
.stx__totals div { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.stx__totals b { font: 900 20px/1 var(--font); }
.stx__totals small { font-size: 11.5px; color: var(--text-3); }
.stx__group { margin-bottom: 12px; }
.stx__group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; }
.stx__group h3 .i { width: 17px; height: 17px; color: var(--brand-2); }
.stx__group h3 small { color: var(--text-3); font-weight: 600; }
.stx__x { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.stx__n { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.stx__none { margin: 2px 0 6px 25px; font-size: 13px; }
.stx + .menu { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }

/* messagerie : écrire à soi-même ; commentaire en cours d'envoi */
.selfnote { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin: 4px 0 8px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line); text-align: start; color: var(--text); }
.selfnote span { display: grid; flex: 1; min-width: 0; }
.selfnote small { color: var(--text-3); font-size: 12.5px; }
.selfnote > .i { width: 18px; height: 18px; color: var(--text-3); }
.comment.is-pending { opacity: .6; }
.selfnote[hidden] { display: none; }

/* ============================================================ V2.8 */
/* fil : une seule publication à l'écran, comme TikTok */
.scroller { scroll-snap-type: y mandatory; scroll-behavior: auto; }
.home2 { min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.post { scroll-snap-align: start; scroll-snap-stop: always; }
.feed__end { min-height: 100%; scroll-snap-stop: always; }
.feed__loader { position: absolute; inset: auto 0 0 0; height: 64px; pointer-events: none; }
.inbox__chat > .loading, .view > .loading { min-height: 50vh; }

/* compte : relation sous l'identifiant */
.acct__rel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.relbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; font: 700 13px/1 var(--font); color: #fff; background: linear-gradient(100deg, var(--brand-1), var(--brand-3, var(--brand-2))); }
.relbtn--on { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.relbtn--friend { background: rgba(34, 197, 94, .16); color: #22C55E; border: 1px solid rgba(34, 197, 94, .45); }
.relbtn .i { width: 15px; height: 15px; }
.relbadge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 700 12px/1 var(--font); color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 14%, transparent); }

/* page Statuts : trois boutons centrés */
.spage2 { min-height: calc(100dvh - var(--top) - var(--safe-t) - var(--tab) - var(--safe-b)); display: grid; align-content: center; justify-items: center; gap: 18px; padding: 24px 18px; }
.splay2 { width: min(100%, 420px); display: grid; justify-items: center; gap: 8px; padding: 30px 20px 26px; border-radius: 28px; color: #fff; text-align: center;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand-1) 85%, #000) 0%, transparent 60%), linear-gradient(115deg, #4652E6 0%, #8A3FD8 50%, #E82B58 100%);
  box-shadow: 0 16px 38px rgba(138, 63, 216, .38), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s var(--spring); }
.splay2:active { transform: scale(.97); }
.splay2__btn { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #8A3FD8; margin-bottom: 6px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .16), 0 12px 26px rgba(0, 0, 0, .3); animation: splaypulse 2.2s ease-in-out infinite; }
.splay2__btn .i { width: 40px; height: 40px; margin-inline-start: 5px; }
.splay2 b { font: 900 20px/1.15 var(--font); letter-spacing: .04em; }
.splay2 small { font-size: 13.5px; opacity: .9; }
.screate2 { width: min(100%, 420px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.screate2__btn { display: grid; justify-items: center; gap: 10px; padding: 20px 10px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-align: center; }
.screate2__btn span { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); }
.screate2__btn--media span { background: color-mix(in srgb, var(--brand-2) 25%, var(--surface-3)); color: #fff; }
.screate2__btn .i { width: 24px; height: 24px; }
.screate2__btn b { font-size: 14px; }

/* visionneuse : sans flèches ni FERMER (on glisse) ; aperçu du suivant sous le nom ;
   enregistrer / partager centrés au-dessus du champ de réponse */
.sv__row2 { align-items: flex-start; }
.sv__whobox { display: grid; gap: 8px; min-width: 0; }
.sv__nextprev { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 4px 10px 4px 4px; border-radius: 12px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .15); color: #fff; }
.sv__nextprev[hidden] { display: none; }
.sv__nextprev small { font-size: 12px; font-weight: 700; }
.sv__nextprev .i { width: 16px; height: 16px; }
.sv__tools { justify-content: center; gap: 18px; padding-bottom: 8px; }
.sv__bottom { padding-bottom: calc(10px + var(--safe-b)); }
.sv__caption { bottom: 150px; }

/* ============================================================ V2.9 */
/* page Statuts : boutons compacts, espace aéré */
.spage2 { gap: 14px; padding: 28px 20px; }
.splay2 { width: min(100%, 340px); gap: 6px; padding: 18px 18px 16px; border-radius: 22px; box-shadow: 0 10px 26px rgba(138, 63, 216, .3), inset 0 1px 0 rgba(255, 255, 255, .25); }
.splay2__btn { width: 54px; height: 54px; margin-bottom: 4px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .16), 0 8px 18px rgba(0, 0, 0, .28); }
.splay2__btn .i { width: 26px; height: 26px; margin-inline-start: 3px; }
.splay2 b { font-size: 15.5px; }
.splay2 small { font-size: 12.5px; }
.screate2 { width: min(100%, 340px); gap: 10px; }
.screate2__btn { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; text-align: start; }
.screate2__btn span { width: 36px; height: 36px; border-radius: 11px; }
.screate2__btn .i { width: 19px; height: 19px; }
.screate2__btn b { font-size: 13px; line-height: 1.25; }
/* compte : « SCORE » écrit en toutes lettres */
.srow2__score { font-size: 11.5px; letter-spacing: .06em; color: var(--text-3); }
.srow2__score i { font-style: normal; font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: 0; }
/* accueil visiteur : statuts visibles, lecture réservée aux membres */
.is-guest .tile2 { cursor: pointer; }

/* ============================================================ V3.0 */
/* faux écrans de chargement (même forme que la page à venir) */
@keyframes skshine { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.skp { --sk: color-mix(in srgb, var(--text) 9%, transparent); --sk2: color-mix(in srgb, var(--text) 16%, transparent); }
.skp__bar, .skp__title, .skp__card, .skp__row i, .skp__media, .skp__dots b { background: linear-gradient(90deg, var(--sk) 0%, var(--sk2) 50%, var(--sk) 100%); background-size: 200% 100%; animation: skshine 1.3s linear infinite; }
.skp--post { height: calc(100dvh - var(--top) - var(--safe-t) - var(--tab) - var(--safe-b)); display: flex; flex-direction: column; background: #000; }
.skp--post .skp__media { position: relative; flex: 1; background-color: #0d0d10; }
.skp__dots { position: absolute; inset-inline-end: 8px; bottom: 14px; display: grid; gap: 6px; background: none; animation: none; }
.skp__dots b { width: 32px; height: 32px; border-radius: 50%; }
.skp__panel { display: grid; gap: 9px; padding: 12px 12px 22px; }
.skp__bar { display: block; height: 12px; border-radius: 6px; width: 70%; }
.skp__bar--s { width: 40%; height: 22px; }
.skp__bar--m { width: 55%; }
.skp--page { padding: 18px 16px; display: grid; gap: 14px; }
.skp__title { height: 28px; width: 46%; border-radius: 8px; }
.skp__card { height: 150px; border-radius: 18px; }
.skp__row { display: flex; align-items: center; gap: 12px; }
.skp__row i { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.skp__row .skp__bar { width: 60%; }
@media (min-width: 1024px) { .skp--post { height: 100dvh; max-width: min(calc((100dvh - 28px) * .5625), 520px); margin: 0 auto; } }
/* écran bloqué pendant une publication */
.blocker { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: grid; transition: opacity .25s; }
.blocker > .skp { position: absolute; inset: 0; height: 100dvh; }
.blocker.is-out { opacity: 0; pointer-events: none; }
.blocker__msg { position: absolute; inset: auto 0 calc(30px + var(--safe-b)) 0; margin: auto; width: min(86%, 340px); display: grid; justify-items: center; gap: 10px; padding: 16px; border-radius: 18px; background: rgba(0, 0, 0, .72); color: #fff; backdrop-filter: blur(8px); }
.blocker__msg b { font-size: 14px; }
.blocker__bar { display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.blocker__bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-1), var(--brand-3)); transition: width .3s; }
/* publications ouvertes par-dessus la recherche */
.plv { position: relative; width: 100%; height: 100dvh; background: #000; }
.plv__body { height: 100%; }
.plv .scroller, .plv .post { height: 100dvh; }
.plv__back { position: absolute; z-index: 20; top: calc(10px + var(--safe-t)); inset-inline-start: 10px; background: rgba(0, 0, 0, .5); color: #fff; }
@media (min-width: 1024px) { .plv .post { height: calc(100dvh - 28px); } }
/* #/connexion : compte Juliemo, « OUVRIR MA SESSION » / « DÉCONNECTER » */
.conn { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-b)); background: var(--bg); }
.conn__card { width: min(100%, 400px); display: grid; justify-items: center; gap: 12px; text-align: center; }
.conn__logo { width: 210px; height: auto; margin-bottom: 6px; }
.conn__title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.conn__id { width: 100%; display: grid; justify-items: center; gap: 12px; padding: 22px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.conn__mail { margin: 0; font-size: 17px; font-weight: 800; word-break: break-all; }
.conn__avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand-2); }
.conn__name { margin: 0; font-size: 15px; color: var(--text-2); }
.conn__lead { margin: 2px 0; font-size: 14px; color: var(--text-2); }
.conn__btn { width: 100%; min-height: 52px; display: grid; place-items: center; border-radius: 14px; font: 800 15px/1 var(--font); letter-spacing: .06em; text-decoration: none; }
.conn__btn--main { background: linear-gradient(100deg, #4652E6 0%, #8A3FD8 45%, #E82B58 100%); color: #fff; box-shadow: 0 10px 26px rgba(70, 82, 230, .35); }
.conn__btn--main:disabled { opacity: .8; }
.conn__btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.conn__manage, .conn__guest { font-size: 13.5px; color: var(--text-2); }
.conn__guest { color: var(--text-3); }
.conn__wait { margin: 0; color: var(--text-2); }
.conn__err { margin: 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger, #e5484d) 14%, transparent); color: var(--text); font-size: 14px; }
.conn__blocked { width: 100%; display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--danger, #e5484d) 50%, transparent); }
.conn .loading__ring { margin: 6px auto; }
.conn__tag { margin: 0 0 4px; display: grid; gap: 4px; font: 800 17px/1.25 var(--font); color: var(--text); }
.conn__tag span { font-weight: 500; font-size: 14.5px; color: var(--text-2); }
.conn__id .conn__mail { margin-top: 2px; }
/* publication : la légende n'est plus affichée (gain de place) ; « Voir plus » ouvre les commentaires avec le texte */
.post__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.post__who .post__user { min-width: 0; }
.post__who .post__user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post__seemore { flex: none; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font: 700 12px/1.4 var(--font); }
.post__nodesc { flex: none; font-size: 12px; color: rgba(255, 255, 255, .5); font-style: italic; }
/* visionneuse : « Avant » sous « Suivant » */
.sv__nextprev--back { padding: 4px 4px 4px 10px; }
.sv__nextprev--back[hidden] { display: none; }
/* compte : relation sous le prénom et le nom */
.acct__names .acct__rel { margin-top: 4px; }

/* ============================================================ V4.0 */
/* visionneuse : flèches seules (avant / suivant) ; gestes gérés par la page (haut, bas, gauche, droite) */
.sv__stage { touch-action: none; }
.sv__arrows { display: inline-flex; gap: 8px; }
.sv__arrowbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.sv__arrowbtn[hidden] { display: none; }
.sv__arrowbtn .i { width: 20px; height: 20px; }
[dir="rtl"] .sv__arrowbtn .i { transform: scaleX(-1); }
/* grilles : « SCORE » écrit en toutes lettres */
.tile__score small { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; opacity: .85; margin-inline-end: 4px; }
/* compte : SCORE GLOBAL plus grand */
.acct__scoretitle { font-size: 17px; letter-spacing: .1em; }
.acct__scoretitle b { font-size: 46px; }
.acct__scoretitle small { font-size: 14px; }
/* bio vide : invitation */
.acct__bio--empty { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; color: var(--text-2); font-size: 14px; text-align: start; }
.acct__bio--empty .i { width: 16px; height: 16px; color: var(--brand-2); flex: none; }
.acct__bio--none { color: var(--text-3); font-style: italic; }
/* contact WhatsApp */
.legal__wa { display: inline-flex; align-items: center; gap: 6px; color: #25D366 !important; font-weight: 700; }
.legal__wa .i { width: 16px; height: 16px; }
/* messagerie : photos / vidéos, réponses, émojis, lu */
.mmedia { position: relative; display: block; width: min(260px, 62vw); max-height: 340px; padding: 0; border-radius: 14px; overflow: hidden; background: #000; }
.mmedia img, .mmedia video { display: block; width: 100%; height: 100%; max-height: 340px; object-fit: cover; }
.mmedia video { object-fit: contain; background: #000; }
.mmedia__prog { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 13px; }
.bubble.has-media { padding: 5px 5px 6px; }
.bubble.has-media .bubble__kind, .bubble.has-media .bubble__text, .bubble.has-media .bubble__time, .bubble.has-media .quote { margin-inline: 7px; }
.quote { display: grid; gap: 1px; padding: 6px 10px; border-inline-start: 3px solid var(--brand-2); border-radius: 8px; background: rgba(0, 0, 0, .18); color: inherit; text-align: start; font-size: 13px; }
.quote b { font-size: 12px; }
.quote span { opacity: .85; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bubble__reply { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: -38px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text-2); opacity: 0; transition: opacity .15s; }
.bubble.is-mine .bubble__reply { inset-inline-end: auto; inset-inline-start: -38px; }
.bubble:hover .bubble__reply, .bubble__reply:focus-visible { opacity: 1; }
@media (pointer: coarse) { .bubble__reply { opacity: .55; } }
.bubble__reply .i { width: 15px; height: 15px; transform: scaleX(-1); }
.bubble { transition: transform .15s; }
.bubble.is-flash { box-shadow: 0 0 0 3px var(--brand-2); }
.chat__replybar { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; }
.chat__replybar .quote { flex: 1; }
.chat__replybar[hidden], .emojis[hidden], .chat__seen[hidden] { display: none !important; }
.emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px; max-height: 190px; overflow-y: auto; padding: 8px 10px; border-top: 1px solid var(--line); }
.emojis button { height: 38px; font-size: 22px; border-radius: 8px; }
.emojis button:hover { background: var(--surface-2); }
.chat__tool { width: 40px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); font-size: 21px; }
.chat__tool .i { width: 22px; height: 22px; }
.chat__seen { margin: 0; padding: 2px 16px 0; text-align: end; font-size: 11.5px; color: var(--text-3); }
.chat__seen.is-read { color: #53BDEB; }
.zoomer { position: relative; width: 100%; height: 100dvh; display: grid; place-items: center; background: #000; cursor: zoom-out; }
.zoomer img { max-width: 100%; max-height: 100dvh; object-fit: contain; }
/* espace d'administration */
.admin__live { margin-bottom: 14px; }
.admin__h3 { margin: 16px 0 6px; font-size: 14px; color: var(--text-2); }
.admin__online { max-height: 320px; overflow-y: auto; }
.mcard__text { margin: 4px 0 0; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.topbar__admin { color: var(--gold, #F5C518); }
.abtn--admin { color: var(--gold, #F5C518); }
@media (max-width: 699px) { .admin__live .kpis--admin { grid-template-columns: repeat(2, 1fr); } }

/* V4.1 · conversation « Moi » épinglée, aperçus du lecteur de statuts */
.conv--pinned { background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 6px; }
.conv__pin { width: 15px; height: 15px; margin-inline-end: 5px; vertical-align: -2px; color: var(--brand-2); }
.selfnote b { display: inline-flex; align-items: center; }
.sv__nextprev { padding: 4px 8px 4px 4px; }
.sv__nextprev--back { padding: 4px 4px 4px 8px; }
.sv__nextprev .i { width: 20px; height: 20px; stroke-width: 2.4; }

/* V4.1 · page Contact */
.contactpg__lead { color: var(--text-2); margin: 0 0 14px; line-height: 1.5; }
.cmeans { display: flex; gap: 14px; align-items: flex-start; }
.cmeans__ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.cmeans__ico .i { width: 24px; height: 24px; }
.cmeans--wa .cmeans__ico { background: #25d366; border-color: #25d366; color: #fff; }
.cmeans__body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.cmeans__body p { margin: 0; }
.cmeans__body .card__title { margin: 0; }
.cmeans__num { font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.cmeans__only { display: flex; align-items: center; gap: 6px; }
.cmeans__only .i { width: 14px; height: 14px; flex: none; }
.btn--wa { background: #25d366; color: #fff; border-color: #25d366; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn--wa:hover { filter: brightness(1.06); }
.btn--wa .i { width: 20px; height: 20px; }
.conv__top b .conv__pin, .selfnote b .conv__pin { display: inline-block; flex: none; }
.conv--pinned .conv__top b { display: inline-flex; align-items: center; min-width: 0; }

/* V4.2 · veille de l'expérience utilisateur (#/admin/experience) */
.topbar__admin { position: relative; }
.topbar__admin.has-dot::after { content: ''; position: absolute; top: 7px; inset-inline-end: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--bg); }
.uxhead { display: flex; gap: 20px; align-items: center; }
.uxhead__txt { display: grid; gap: 6px; min-width: 0; }
.uxhead__txt .card__title { margin: 0; }
.uxhead__txt p { margin: 0; }
.uxhead__lead { color: var(--text-2); font-size: 14px; line-height: 1.45; }
.uxhead__txt .btn { justify-self: start; display: inline-flex; gap: 6px; align-items: center; }
.uxscore { --tone: var(--ok); position: relative; flex: none; width: 112px; height: 112px; display: grid; place-items: center; }
.uxhead--good .uxscore { --tone: #8BC34A; }
.uxhead--watch .uxscore { --tone: #FFB020; }
.uxhead--bad .uxscore { --tone: var(--danger); }
.uxscore svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.uxscore__bg { fill: none; stroke: var(--surface-2); stroke-width: 9; }
.uxscore__fg { fill: none; stroke: var(--tone); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .6s; }
.uxscore b { font-size: 34px; font-weight: 850; line-height: 1; margin-top: 10px; }
.uxscore small { color: var(--text-3); font-size: 12px; margin-top: -22px; }
.uxkpis .uxk { grid-template-columns: 1fr; }
.uxk__trend { font-size: 12px; font-weight: 700; color: var(--text-3); }
.uxk__trend.is-up { color: var(--ok); }
.uxk__trend.is-down { color: var(--danger); }
.uxnote { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); margin: 0 0 16px; }
.uxnote .i { flex: none; width: 18px; height: 18px; }
.uxlist { display: grid; gap: 12px; margin-bottom: 18px; }
.uxlist .sectiontitle { margin: 6px 0 0; }
.uxok { display: flex; gap: 10px; align-items: center; padding: 16px; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--text-2); margin: 0; }
.uxok .i { color: var(--ok); }
.uxa { --sev: var(--brand-1); position: relative; display: grid; gap: 10px; padding: 16px 16px 14px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: opacity .2s, transform .2s; }
.uxa::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--sev); }
.uxa--critical { --sev: var(--danger); }
.uxa--warning { --sev: #FFB020; }
.uxa--info { --sev: #4C8DFF; }
.uxa.is-acked { opacity: .72; }
.uxa.is-out { opacity: 0; transform: translateX(16px); }
.uxa__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.uxa__head small { margin-inline-start: auto; color: var(--text-3); font-size: 12px; }
.uxa__sev { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--sev); }
.uxa__sev .i { width: 15px; height: 15px; }
.tag--new { background: color-mix(in srgb, var(--brand-2) 18%, transparent); color: var(--brand-2); }
.uxa__title { margin: 0; font-size: 17px; line-height: 1.3; }
.uxa__finding { margin: 0; color: var(--text-2); line-height: 1.5; font-size: 14.5px; }
.uxa__advice { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.uxa__advice b { display: flex; gap: 6px; align-items: center; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.uxa__advice b .i { width: 15px; height: 15px; color: #FFB020; }
.uxa__advice p { margin: 0; line-height: 1.5; font-size: 14.5px; }
.uxa__foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.uxa__foot .btn { display: inline-flex; gap: 6px; align-items: center; }
.uxa__foot .btn .i { width: 16px; height: 16px; }
.uxfunnels { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.uxf { display: grid; grid-template-columns: 140px 1fr 52px; gap: 4px 12px; align-items: center; }
.uxf small { grid-column: 1 / -1; }
.uxf__name { font-weight: 700; font-size: 14px; }
.uxf__bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.uxf__bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); }
.uxf b { text-align: end; }
.uxtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.uxtable th { text-align: start; font-size: 12px; color: var(--text-3); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.uxtable td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.uxtable td.is-warn { color: #FFB020; font-weight: 700; }
.uxtable td.is-bad { color: var(--danger); font-weight: 700; }
.uxresolved { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.uxresolved li { display: flex; gap: 10px; align-items: center; }
.uxresolved li span:nth-child(2) { flex: 1; min-width: 0; text-decoration: line-through; color: var(--text-2); }
.uxa__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #4C8DFF; }
.uxa__dot--critical { background: var(--danger); }
.uxa__dot--warning { background: #FFB020; }
.uxprivacy { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 8px; }
.uxprivacy .i { flex: none; width: 15px; height: 15px; margin-top: 2px; }
@media (max-width: 560px) {
  .uxhead { flex-direction: column; align-items: flex-start; }
  .uxf { grid-template-columns: 1fr 52px; }
  .uxf__name { grid-column: 1 / -1; }
}

.uxhead__verdict { display: block; font-style: normal; font-size: 14px; font-weight: 800; color: var(--tone-c, var(--ok)); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.uxhead--good { --tone-c: #8BC34A; } .uxhead--watch { --tone-c: #FFB020; } .uxhead--bad { --tone-c: var(--danger); }
@media (max-width: 560px) {
  .uxhead { display: grid; grid-template-columns: 84px 1fr; gap: 14px 16px; align-items: center; }
  .uxscore { width: 84px; height: 84px; }
  .uxscore b { font-size: 26px; margin-top: 6px; }
  .uxscore small { margin-top: -16px; font-size: 11px; }
  .uxhead__txt { display: contents; }
  .uxhead__txt .card__title { grid-column: 2; }
  .uxhead__txt > p, .uxhead__txt .btn { grid-column: 1 / -1; }
  .uxa { padding: 14px 14px 12px 18px; }
  .uxa__title { font-size: 16px; }
}
.uxhead__txt .card__title { flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.kpis--admin.uxkpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (max-width: 560px) { .uxhead__verdict { flex-basis: 100%; margin-top: 2px; } }
