:root {
 --bg: #ffffff;
 --bg-panel: #ffffff;
 --bg-hover: #f5f6f6;
 --bg-chat: #f4ead0;
 --bg-header: #111111;
 --bg-input: #f7f1de;
 --gold: #c9a227;
 --gold-bright: #e8c547;
 --gold-dark: #8b6914;
 --gold-deep: #5c4309;
 --gold-grad: #c9a227;
 --gold-soft: #f3e4a8;
 --text: #111111;
 --text-muted: #667781;
 --text-dark: #111111;
 --sent: #f6e7b4;
 --received: #ffffff;
 --unread: #c9a227;
 --danger: #ea0038;
 --border: #ead9a0;
 --shadow: 0 1px 3px rgba(17, 17, 17, 0.1);
 font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}

* {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

button,
a,
.chat-item,
.icon-btn,
.chip,
.fab,
.user-pick,
.settings-row,
.country-btn,
.btn-primary,
[data-home],
[data-chat],
[data-filter] {
 touch-action: manipulation;
 -webkit-tap-highlight-color: rgba(201, 162, 39, 0.22);
}

html,
body,
#root {
 width: 100%;
 max-width: 100%;
 height: 100%;
 height: 100dvh;
 height: 100svh;
 height: var(--app-vh, 100dvh);
 max-height: var(--app-vh, 100dvh);
 overflow: hidden;
}

/* APK : WebView déjà réduit par le pad IME — ne pas coller à 100dvh (passe sous le clavier) */
html[data-dc-native-inset="1"],
html[data-dc-native-inset="1"] body,
html[data-dc-native-inset="1"] #root {
 height: var(--app-vh, 100%) !important;
 max-height: var(--app-vh, 100%) !important;
}

body {
 background: #ffffff;
 color: var(--text);
 overflow: hidden;
}

button,
input,
textarea {
 font: inherit;
}

button {
 cursor: pointer;
 border: none;
 background: none;
 color: inherit;
}

.app {
 height: 100%;
 width: 100%;
 max-width: 100%;
 min-height: 0;
 overflow: hidden;
 display: flex;
 justify-content: center;
 background: #d1d7db;
}

.wa-shell {
 width: min(430px, 100%);
 max-width: 100%;
 height: 100%;
 min-height: 0;
 min-width: 0;
 overflow: hidden;
 display: flex;
 flex-direction: column;
 background: #ffffff;
 position: relative;
 box-shadow: 0 0 24px rgba(11, 20, 26, 0.18);
 padding-left: env(safe-area-inset-left);
 padding-right: env(safe-area-inset-right);
 /* Navigateur / PWA : sous la barre d’état. APK : insets natifs (évite double marge). */
 padding-top: max(env(safe-area-inset-top, 0px), var(--dc-sat, 0px));
}

html[data-dc-native-inset="1"] .wa-shell {
 padding-top: 0;
}

/* Anciennes APK / WebView Android : safe-area souvent à 0 → marge minimale sous la barre d’état */
html.dc-android-app:not([data-dc-native-inset="1"]) .wa-shell {
 padding-top: max(32px, env(safe-area-inset-top, 0px), var(--dc-sat, 0px));
 background-clip: padding-box;
}

@media (max-width: 480px) {
 .app {
 background: #ffffff;
 }
 .wa-shell {
 width: 100%;
 box-shadow: none;
 }
}

.wa-shell.show-chat .wa-home,
.wa-shell.show-chat .wa-nav {
 display: none;
}

.wa-home {
 flex: 1;
 display: flex;
 flex-direction: column;
 min-height: 0;
 min-width: 0;
 max-width: 100%;
 overflow: hidden;
 position: relative;
 touch-action: pan-y;
 overscroll-behavior-x: none;
}

.app.dc-nav-in > .wa-shell > *:not(.wa-nav),
.app.dc-nav-in > .modal-backdrop {
  animation: dc-nav-in 0.28s cubic-bezier(0.22, 0.82, 0.24, 1) both;
}
.app.dc-nav-back > .wa-shell > *:not(.wa-nav),
.app.dc-nav-back > .modal-backdrop {
  animation: dc-nav-back 0.26s cubic-bezier(0.22, 0.82, 0.24, 1) both;
}
.app.dc-nav-fade > .wa-shell > *:not(.wa-nav) {
  animation: dc-nav-fade 0.2s ease both;
}

@keyframes dc-nav-in {
  from {
    transform: translate3d(22%, 0, 0);
    opacity: 0.55;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes dc-nav-back {
  from {
    transform: translate3d(-14%, 0, 0);
    opacity: 0.55;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes dc-nav-fade {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app.dc-nav-in > .wa-shell > *:not(.wa-nav),
  .app.dc-nav-in > .modal-backdrop,
  .app.dc-nav-back > .wa-shell > *:not(.wa-nav),
  .app.dc-nav-back > .modal-backdrop,
  .app.dc-nav-fade > .wa-shell > *:not(.wa-nav) {
    animation: none !important;
  }
}

.wa-top {
 min-height: 56px;
 height: auto;
 padding: 8px 8px 8px 16px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 position: relative;
 min-width: 0;
 max-width: 100%;
 flex-shrink: 0;
 box-sizing: border-box;
}

.wa-brand {
 font-size: 22px;
 font-weight: 700;
 color: var(--gold);
 letter-spacing: -0.02em;
}

.login-brand {
 display: block;
 text-align: center;
 font-size: 28px;
 margin: 8px 0 28px;
}

.wa-brand span {
 color: var(--gold);
}

.menu-dismiss {
 position: absolute;
 inset: 0;
 z-index: 20;
 background: transparent;
 border: none;
 padding: 0;
 cursor: default;
}

.wa-menu {
 position: absolute;
 top: 48px;
 right: 10px;
 background: #fff;
 border-radius: 4px;
 box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
 padding: 8px 0;
 min-width: min(230px, calc(100vw - 24px));
 max-width: calc(100vw - 16px);
 z-index: 30;
}

.wa-menu button {
 width: 100%;
 text-align: left;
 padding: 13px 20px;
 font-size: 16px;
 color: #111;
}

.wa-menu button:hover {
 background: #f5f5f5;
}

.menu-switch {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
}

.menu-dot {
 width: 10px;
 height: 10px;
 border-radius: 50%;
 background: var(--gold);
 flex-shrink: 0;
}

.wa-sub {
 font-size: 20px;
 font-weight: 600;
 flex: 1;
}

.settings-list {
 padding: 8px 0 24px;
}

.settings-row {
 display: flex;
 align-items: center;
 gap: 16px;
 padding: 16px;
 width: 100%;
 text-align: left;
 min-width: 0;
 max-width: 100%;
}

.settings-row > div {
 min-width: 0;
 overflow-wrap: anywhere;
}

.settings-row p {
 color: var(--text-muted);
 font-size: 14px;
 margin-top: 2px;
}

.settings-btn {
 width: calc(100% - 32px);
 margin: 8px 16px;
 padding: 14px;
 text-align: left;
 font-size: 16px;
 border-radius: 8px;
 background: var(--bg-hover);
}

.search-wrap {
 padding: 4px 16px 10px;
}

.search.pill {
 border: none;
 border-radius: 999px;
 background: #f0f2f5;
 padding: 10px 16px;
}

.chips {
 display: flex;
 gap: 8px;
 padding: 0 16px 8px;
 overflow-x: auto;
}

.chip {
 flex-shrink: 0;
 padding: 6px 13px;
 border-radius: 999px;
 background: #fff;
 color: #54656f;
 font-size: 14px;
 font-weight: 500;
 border: 1px solid #e9edef;
}

.chip.on {
 background: var(--gold-soft);
 color: var(--gold-dark);
 border-color: var(--gold-soft);
 font-weight: 600;
}

.chat-list {
 flex: 1;
 overflow-y: auto;
 padding-bottom: 88px;
 touch-action: pan-y;
 -webkit-overflow-scrolling: touch;
 overscroll-behavior: contain;
}

.wa-top.select-mode {
 background: var(--bg-header);
 color: #fff;
}

.wa-top.select-mode .wa-sub {
 color: #fff;
 flex: 1;
}

.wa-top.select-mode .icon-btn {
 color: #fff;
}

.chat-item {
 width: 100%;
 max-width: 100%;
 display: grid;
 grid-template-columns: 56px minmax(0, 1fr);
 gap: 12px;
 padding: 10px 16px;
 text-align: left;
 border-bottom: none;
 align-items: center;
 touch-action: manipulation;
}

.chat-item.selecting {
 grid-template-columns: 28px 56px minmax(0, 1fr);
}

.chat-item.picked {
 background: rgba(201, 162, 39, 0.16);
}

.chat-check {
 width: 22px;
 height: 22px;
 border-radius: 50%;
 border: 2px solid #8696a0;
 display: grid;
 place-items: center;
 color: #111;
}

.chat-check.on {
 background: #c9a227;
 border-color: #c9a227;
}

.chat-item.channel-row {
 grid-template-columns: 56px minmax(0, 1fr);
 gap: 14px;
 padding: 11px 16px;
}

.ch-ava-wrap {
 position: relative;
 display: inline-grid;
 place-items: center;
 width: 49px;
 height: 49px;
 flex-shrink: 0;
}

.ch-ava-wrap .avatar.wa {
 width: 49px;
 height: 49px;
}

.ch-ava-badge {
 position: absolute;
 right: -1px;
 bottom: -1px;
 width: 18px;
 height: 18px;
 border-radius: 50%;
 background: #25d366;
 color: #fff;
 display: grid;
 place-items: center;
 border: 2px solid #fff;
 box-sizing: border-box;
}

.ch-ava-badge svg {
 width: 10px;
 height: 10px;
 stroke: #fff;
 color: #fff;
}

.ch-ava-badge.intro {
 width: 26px;
 height: 26px;
 right: 2px;
 bottom: 2px;
 border-width: 3px;
}

.ch-ava-badge.intro svg {
 width: 14px;
 height: 14px;
}

.channel-row .mute-ic {
 display: inline-grid;
 place-items: center;
 color: #8696a0;
}

.channel-row .mute-ic svg {
 width: 16px;
 height: 16px;
}

.chip.find-channels {
 background: transparent;
 color: #027eb5;
 font-weight: 500;
 padding: 4px 2px;
}

.ch-feed-head .icon-btn.muted {
 color: #8696a0;
}

.ch-intro-ava {
 position: relative;
 display: inline-block;
 margin-bottom: 6px;
}

.ch-intro-tip {
 margin-top: 4px;
 font-size: 13px;
 color: #667781;
 max-width: 28em;
 line-height: 1.35;
}

.ch-follow-hero {
 padding-top: 20px;
}

.ch-follow-info-head {
 position: sticky;
 top: 0;
 z-index: 4;
 background: #fff;
 gap: 10px;
}

.ch-follow-info-head .ch-info-title {
 min-width: 0;
}

.ch-follow-info-head .ch-info-compact {
 display: none;
 flex: 1;
 min-width: 0;
 align-items: center;
 gap: 10px;
}

.ch-follow-info-head .ch-info-compact strong {
 font-size: 17px;
 font-weight: 600;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.ch-follow-info-head.is-compact .ch-info-title {
 display: none;
}

.ch-follow-info-head.is-compact .ch-info-compact {
 display: flex;
}

.ch-follow-settings .ch-media-row {
 align-items: center;
}

.ch-follow-settings .ch-media-row .muted-count {
 margin-left: auto;
 display: inline-flex;
 align-items: center;
 gap: 4px;
 color: #667781;
 flex-shrink: 0;
}

.ch-desc .muted,
.ch-desc p.muted {
 color: #667781;
}

.channel-preview-sheet {
 position: absolute;
 inset: 0;
 z-index: 20;
 background: rgba(11, 20, 26, 0.45);
 display: grid;
 place-items: end center;
 padding: 0 12px calc(12px + env(safe-area-inset-bottom));
}

.channel-preview-card {
 position: relative;
 width: min(100%, 420px);
 background: #fff;
 border-radius: 18px;
 padding: 28px 20px 20px;
 text-align: center;
 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.channel-preview-close {
 position: absolute;
 top: 8px;
 right: 8px;
 color: #54656f;
}

.channel-preview-card .avatar.wa,
.channel-preview-card .ch-ava-wrap {
 width: 88px;
 height: 88px;
 margin: 0 auto 10px;
}

.channel-preview-card .avatar.wa {
 font-size: 32px;
}

.channel-preview-card h2 {
 font-size: 22px;
 font-weight: 700;
 color: #111b21;
 margin: 0 0 4px;
 word-break: break-word;
}

.channel-preview-meta {
 color: #667781;
 font-size: 14px;
 margin: 0 0 10px;
}

.channel-preview-desc {
 font-size: 14.5px;
 line-height: 1.4;
 color: #111b21;
 margin: 0 0 10px;
 max-height: 6.5em;
 overflow: auto;
}

.channel-preview-hint {
 font-size: 12.5px;
 color: #667781;
 line-height: 1.35;
 margin: 0 0 16px;
}

.channel-preview-follow {
 width: 100%;
 border: 0;
 border-radius: 24px;
 background: var(--gold);
 color: #111;
 font-weight: 700;
 font-size: 16px;
 padding: 12px 16px;
 cursor: pointer;
}

.chat-item.suggest .chip.follow {
 min-width: 36px;
 width: 36px;
 height: 36px;
 border-radius: 50%;
 padding: 0;
 display: grid;
 place-items: center;
 font-size: 22px;
 line-height: 1;
 font-weight: 500;
 background: #f0f2f5;
 color: #111;
}

.chat-item.suggest {
 grid-template-columns: 56px minmax(0, 1fr) auto;
}

.chat-item .preview {
 min-width: 0;
 padding-top: 2px;
}

.chat-item .title {
 font-weight: 500;
 font-size: 16.5px;
 color: #111b21;
 flex: 1;
 min-width: 0;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.chat-item.has-unread .title {
 font-weight: 700;
}

.chat-item time {
 font-size: 12px;
 color: var(--text-muted);
 flex-shrink: 0;
}

.chat-item time.unread {
 color: #1fa855;
 font-weight: 600;
}

.chat-item .bottom {
 display: flex;
 justify-content: space-between;
 gap: 8px;
 margin-top: 2px;
}

.badges {
 display: flex;
 align-items: center;
 gap: 6px;
}

.pin {
 color: var(--text-muted);
 font-size: 13px;
}

.badge {
 min-width: 20px;
 height: 20px;
 padding: 0 6px;
 border-radius: 999px;
 background: var(--gold);
 color: #111;
 font-size: 11.5px;
 font-weight: 700;
 display: grid;
 place-items: center;
 line-height: 1;
}

.fab {
 position: absolute;
 right: 16px;
 bottom: 84px;
 width: 56px;
 height: 56px;
 border-radius: 16px;
 background: var(--gold);
 color: #111;
 display: grid;
 place-items: center;
 box-shadow: 0 4px 10px rgba(11, 20, 26, 0.26);
 z-index: 5;
}

.wa-nav {
 display: grid;
 grid-template-columns: repeat(4, minmax(0, 1fr));
 padding: 4px 4px max(8px, env(safe-area-inset-bottom));
 border-top: 1px solid #e9edef;
 background: #fff;
 flex-shrink: 0;
 z-index: 8;
 position: relative;
 min-width: 0;
 max-width: 100%;
}

.wa-nav button {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 3px;
 font-size: 11px;
 color: #111b21;
 min-height: 56px;
 min-width: 0;
 max-width: 100%;
 overflow: hidden;
 touch-action: manipulation;
 font-weight: 400;
}

.wa-nav button.on {
 color: #111b21;
 font-weight: 600;
}

.nav-ic {
 position: relative;
 width: 66px;
 height: 32px;
 display: grid;
 place-items: center;
 border-radius: 16px;
}

.wa-nav button.on .nav-ic {
 background: var(--gold-soft);
}

.nav-badge {
 position: absolute;
 top: -2px;
 right: 8px;
 min-width: 16px;
 height: 16px;
 padding: 0 4px;
 border-radius: 999px;
 background: var(--gold);
 color: #111;
 font-size: 10px;
 font-style: normal;
 display: grid;
 place-items: center;
}

.nav-dot {
 position: absolute;
 top: 4px;
 right: 14px;
 width: 8px;
 height: 8px;
 border-radius: 50%;
 background: var(--gold-bright);
}

.tab-empty {
 flex: 1;
 display: grid;
 place-items: center;
 text-align: center;
 padding: 32px;
 color: var(--text-muted);
}

.icon-row {
 display: flex;
 gap: 2px;
}

.icon-btn {
 width: 42px;
 height: 42px;
 border-radius: 50%;
 color: #54656f;
 display: grid;
 place-items: center;
}

.icon-btn:hover {
 background: var(--bg-hover);
 color: var(--text);
}

.search {
 display: flex;
 align-items: center;
 gap: 10px;
 color: var(--text-muted);
}

.search input {
 flex: 1;
 background: none;
 border: none;
 color: var(--text);
 outline: none;
 font-size: 16px;
}

.chat-item .top {
 display: flex;
 justify-content: space-between;
 gap: 8px;
 align-items: baseline;
}

.chat-item .snippet {
 color: var(--text-muted);
 font-size: 14px;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 display: flex;
 align-items: center;
 gap: 4px;
 min-width: 0;
}

.chat-item .snippet .sn-mic,
.chat-item .snippet .sn-media {
 display: inline-flex;
 align-items: center;
 flex: 0 0 auto;
 color: var(--text-muted);
}
.chat-item .snippet .sn-mic svg {
 width: 14px;
 height: 14px;
}

.chat-item .snippet.status-react {
 gap: 6px;
}

.sn-status-react {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 min-width: 0;
 color: var(--text-muted);
}

.chat-item.has-unread .sn-status-react {
 color: #3b4a54;
}

.sn-status-ic {
 flex-shrink: 0;
 width: 16px;
 height: 16px;
 color: #667781;
}

.chat-item.has-unread .sn-status-ic {
 color: #54656f;
}

.sn-status-emo {
 font-size: 15px;
 line-height: 1;
}

.chat-item .snippet.live-activity {
 color: var(--gold-dark);
 font-weight: 600;
}

.chat-item.has-unread .snippet {
 color: #3b4a54;
 font-weight: 500;
}

.chat-item.has-unread .snippet.live-activity {
 color: var(--gold-dark);
 font-weight: 600;
}

.typing-live-text {
 padding-right: 0 !important;
 color: var(--gold-dark) !important;
 font-weight: 500;
}

.sn-ticks {
 color: #8696a0;
 flex-shrink: 0;
 display: inline-flex;
}

.sn-ticks.read {
 color: #53bdeb;
}

.sn-ticks svg {
 width: 14px;
 height: 14px;
}

.empty-list {
 padding: 48px 24px;
 text-align: center;
 color: var(--text-muted);
 line-height: 1.5;
}

.phone-hits-label {
 margin: 10px 16px 4px;
 font-size: 14px;
 font-weight: 500;
 color: var(--text-muted);
}

.chat {
 flex: 1;
 display: flex;
 flex-direction: column;
 min-height: 0;
 min-width: 0;
 max-width: 100%;
 overflow-x: hidden;
 background: var(--bg-chat);
 position: relative;
}

/* Login */
.login {
 height: 100%;
 min-height: 0;
 max-width: 100%;
 overflow-x: hidden;
 overflow-y: auto;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: flex-start;
 background: #ffffff;
 padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
 -webkit-overflow-scrolling: touch;
}

html:has(body.legal-doc),
body.legal-doc {
 height: auto;
 min-height: 100%;
 overflow: auto;
}

body.legal-doc .login {
 height: auto;
 display: block;
 padding: 24px 16px 48px;
}

body.legal-doc .login-card h1 {
 font-size: 22px;
 margin: 8px 0 16px;
 color: var(--gold-dark);
}

body.legal-doc .login-card p {
 margin: 0 0 12px;
 line-height: 1.5;
 font-size: 15px;
 color: #111b21;
}

.login-card {
 width: min(440px, 100%);
 max-width: 100%;
 background: #ffffff;
 border-radius: 0;
 padding: 8px 8px 28px;
 box-shadow: none;
 border: none;
}

.archive-row {
 width: 100%;
 display: flex;
 align-items: center;
 gap: 16px;
 padding: 12px 16px;
 text-align: left;
 color: #111b21;
 font-size: 16px;
 font-weight: 500;
}

.archive-row .count {
 margin-left: auto;
 color: #667781;
 font-size: 14px;
}

.archive-ico {
 width: 40px;
 text-align: center;
 color: #667781;
}

.logo {
 display: none;
}

.brand-logo {
 width: min(160px, 46%);
 height: auto;
 display: block;
 margin: 0 auto 12px;
}

.brand-logo.sm {
 width: 140px;
 margin-bottom: 8px;
}

.flag {
 width: 32px;
 height: 22px;
 object-fit: cover;
 border-radius: 3px;
 flex-shrink: 0;
 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
 background: #eee;
}

.login h1:not(.wa-brand) {
 position: absolute;
 width: 1px;
 height: 1px;
 overflow: hidden;
 clip: rect(0 0 0 0);
}

.wordmark {
 font-size: 12px;
 letter-spacing: 0.02em;
}

.wordmark .gold {
 color: var(--gold);
}

.login p.lead {
 text-align: center;
 color: var(--text-muted);
 margin: 8px 0 28px;
 line-height: 1.45;
}

.field {
 display: flex;
 flex-direction: column;
 gap: 6px;
 margin-bottom: 14px;
}

.field label {
 font-size: 13px;
 color: var(--text-muted);
}

.field input {
 background: var(--bg-input);
 border: 1px solid transparent;
 color: var(--text);
 border-radius: 8px;
 padding: 12px 14px;
 outline: none;
}

.field input:focus {
 border-color: var(--gold);
}

.password-wrap {
 position: relative;
 display: flex;
 align-items: stretch;
 width: 100%;
 max-width: 100%;
}

.password-wrap input {
 flex: 1;
 min-width: 0;
 padding-right: 84px;
}

.password-toggle {
 position: absolute;
 right: 8px;
 top: 50%;
 transform: translateY(-50%);
 border: 0;
 background: transparent;
 color: var(--gold-dark, #8a6d12);
 font-size: 13px;
 font-weight: 650;
 padding: 8px 6px;
 cursor: pointer;
 touch-action: manipulation;
}

.btn-primary {
 width: 100%;
 margin-top: 8px;
 background: var(--gold);
 color: #111;
 font-weight: 650;
 border-radius: 24px;
 padding: 12px 16px;
}

.btn-primary:disabled {
 opacity: 0.55;
 cursor: not-allowed;
}

.btn-secondary {
 width: 100%;
 margin-top: 8px;
 background: transparent;
 color: var(--text);
 font-weight: 650;
 border-radius: 24px;
 padding: 12px 16px;
 border: 1.5px solid var(--border, rgba(0, 0, 0, 0.18));
}

#auth-back-choice {
 display: grid;
 place-items: center;
 width: 40px;
 height: 40px;
 margin: 0 0 4px -4px;
 color: var(--gold-dark, #5c4309);
}

#auth-error:not(:empty) {
 margin-top: 12px;
 padding: 10px 12px;
 border-radius: 10px;
 background: rgba(234, 0, 56, 0.08);
 font-weight: 600;
}

.error {
 color: var(--danger);
 font-size: 13px;
 margin-top: 10px;
 text-align: center;
}

.hint {
 margin-top: 18px;
 font-size: 12px;
 color: var(--text-muted);
 text-align: center;
 line-height: 1.5;
}

.legal-check {
 display: flex;
 flex-wrap: nowrap;
 align-items: flex-start;
 gap: 10px;
 margin: 16px 0 8px;
 text-align: left;
 font-size: 13px;
 color: #3d4a52;
 line-height: 1.45;
 min-width: 0;
 max-width: 100%;
}

.legal-check input {
 margin-top: 3px;
 flex-shrink: 0;
 width: 18px;
 height: 18px;
}

.legal-check span,
.legal-check strong,
.legal-check a {
 min-width: 0;
 overflow-wrap: break-word;
 word-break: normal;
 hyphens: none;
}

.legal-check span {
 flex: 1 1 auto;
 white-space: normal;
}

.legal-check a {
 color: var(--gold-dark);
 font-weight: 600;
}

.wa-title {
 text-align: center;
 font-size: 22px;
 font-weight: 500;
 margin: 4px 0 10px;
 color: var(--gold-dark);
}

.wa-lead {
 text-align: center;
 color: var(--text-muted);
 font-size: 14px;
 line-height: 1.5;
 margin-bottom: 22px;
}

.country-btn {
 width: 100%;
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 12px 4px 10px;
 border-bottom: 1px solid var(--gold);
 color: var(--text);
 margin-bottom: 8px;
}

.country-btn .left {
 display: flex;
 align-items: center;
 gap: 10px;
 min-width: 0;
 overflow: hidden;
}

.country-btn .left span {
 min-width: 0;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.phone-row {
 display: flex;
 align-items: center;
 gap: 10px;
 border-bottom: 1px solid var(--gold);
 padding: 8px 4px 10px;
 margin-bottom: 18px;
}

.phone-row .dial {
 color: var(--gold-dark);
 font-weight: 600;
 flex-shrink: 0;
}

.phone-row input {
 flex: 1 1 auto;
 min-width: 0;
 width: 0;
 background: transparent;
 border: none;
 color: var(--text);
 outline: none;
 font-size: 17px;
 letter-spacing: 0.04em;
}

.otp-row {
 display: flex;
 justify-content: center;
 gap: 8px;
 margin: 18px 0 12px;
}

.otp-row input {
 width: 42px;
 height: 50px;
 text-align: center;
 font-size: 22px;
 font-weight: 600;
 background: var(--bg-input);
 border: 1px solid var(--border);
 border-radius: 8px;
 color: var(--text);
 outline: none;
}

.otp-row input:focus {
 border-color: var(--gold);
}

.otp-timer {
 text-align: center;
 color: var(--text-muted);
 font-size: 13px;
 margin: 8px 0 4px;
}

.link-btn {
 display: block;
 width: 100%;
 text-align: center;
 color: var(--gold);
 padding: 10px;
 font-size: 14px;
}

.confirm-box {
 background: var(--bg-input);
 border: 1px solid var(--border);
 border-radius: 12px;
 padding: 20px 18px 12px;
 margin-top: 8px;
}

.confirm-box p {
 text-align: center;
 line-height: 1.45;
 margin-bottom: 8px;
}

.confirm-box .number {
 text-align: center;
 font-size: 18px;
 font-weight: 600;
 color: var(--gold-dark);
 margin-bottom: 6px;
}

.confirm-box .intl {
 text-align: center;
 font-size: 13px;
 color: var(--text-muted);
 margin-bottom: 16px;
}

.confirm-actions {
 display: flex;
 justify-content: flex-end;
 gap: 8px;
}

.confirm-actions button {
 padding: 10px 14px;
 border-radius: 8px;
 font-weight: 600;
 color: var(--gold);
}

.confirm-actions .ok {
 background: var(--gold-grad);
 color: var(--text-dark);
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(88vw, 340px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.sms-toast {
 position: fixed;
 top: 16px;
 left: 50%;
 transform: translateX(-50%);
 width: min(360px, calc(100% - 24px));
 background: #ffffff;
 border: 1px solid var(--border);
 border-radius: 14px;
 padding: 12px 14px;
 box-shadow: var(--shadow);
 z-index: 30;
 cursor: pointer;
 text-align: left;
}

.sms-toast .sms-app {
 font-size: 11px;
 color: var(--gold);
 letter-spacing: 0.06em;
 text-transform: uppercase;
 margin-bottom: 4px;
}

.sms-toast strong {
 display: block;
 margin-bottom: 4px;
}

.grecaptcha-badge,
.grecaptcha-logo {
  position: fixed !important;
  left: -10000px !important;
  bottom: 0 !important;
  pointer-events: none !important;
}

.sms-toast p {
 color: var(--text-muted);
 font-size: 13px;
 line-height: 1.4;
}

.country-list {
 max-height: 320px;
 overflow-y: auto;
 margin-top: 8px;
}

.country-item {
 width: 100%;
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 10px 6px;
 text-align: left;
 border-bottom: 1px solid var(--border);
}

.country-item:hover {
 background: var(--bg-hover);
}

.country-item .dial {
 margin-left: auto;
 color: var(--text-muted);
}

.photo-pick {
 position: relative;
 width: 88px;
 height: 88px;
 border-radius: 50%;
 margin: 0 auto 18px;
 background: var(--bg-input);
 border: 2px dashed var(--gold-dark);
 display: grid;
 place-items: center;
 overflow: hidden;
 color: var(--gold);
}

.photo-file {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 opacity: 0;
 margin: 0;
 padding: 0;
 border: 0;
 cursor: pointer;
 z-index: 3;
 font-size: 72px;
}

.photo-hint {
 text-align: center;
 font-size: 13px;
 color: var(--gold-dark);
 margin: -8px 0 16px;
}

.photo-pick.has-photo {
 border-style: solid;
 border-color: var(--gold);
}

.photo-pick img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.avatar img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: center;
 border-radius: 50%;
 display: block;
 background: inherit;
}

.login-card.wide {
 width: min(480px, 100%);
}

/* Chat */
.chat {
 flex: 1;
 display: flex;
 flex-direction: column;
 min-width: 0;
 min-height: 0;
 max-width: 100%;
 overflow-x: hidden;
 background: var(--bg-chat);
 position: relative;
}

.chat-header {
 min-height: 60px;
 height: auto;
 padding: 6px 4px 6px 2px;
 display: flex;
 align-items: center;
 gap: 2px;
 background: var(--bg-header);
 color: #fff;
 z-index: 20;
 overflow: visible;
 min-width: 0;
 max-width: 100%;
 border-bottom: 1px solid var(--border);
 flex-shrink: 0;
 box-sizing: border-box;
}

.chat-header .icon-btn {
 color: #fff;
 flex-shrink: 0;
}

.chat-header .icon-btn:hover {
 background: rgba(255, 255, 255, 0.12);
 color: #fff;
}

.chat-header .who-btn {
 flex: 1;
 min-width: 0;
 display: flex;
 align-items: center;
 gap: 8px;
 text-align: left;
 color: #fff;
}

.bubble-img,
.bubble-video {
 display: block;
 width: 100%;
 /* Taille type WhatsApp : large dans la bulle, pas une vignette */
 max-width: min(360px, calc(100vw - 48px), 90%);
 max-height: min(520px, 65vh);
 height: auto;
 object-fit: contain;
 border-radius: 8px;
 margin: 0 0 2px;
 background: #111;
}

button.bubble-img.wait,
.bubble-img.wait {
 display: grid;
 place-items: center;
 gap: 6px;
 min-height: 200px;
 width: min(320px, calc(100vw - 56px));
 max-width: 100%;
 border: 0;
 padding: 28px 16px;
 color: #fff;
 background: linear-gradient(160deg, #2a2a2a, #111);
 cursor: pointer;
 font: inherit;
}

.bubble-img.wait span {
 font-size: 28px;
 line-height: 1;
}

.bubble-img.wait em {
 font-style: normal;
 font-size: 12px;
 opacity: 0.85;
}

.bubble-img.wait.loading em::after {
 content: "";
}

.bubble-video-wait {
 padding: 28px 16px;
 text-align: center;
 color: #fff;
 font-size: 14px;
}

.bubble:has(.bubble-img):not(.sticker-only),
.bubble:has(.bubble-video):not(.sticker-only),
.bubble:has(.vid-card):not(.sticker-only),
.bubble:has(.bubble-media-btn):not(.sticker-only) {
 max-width: min(372px, 92%);
 padding: 3px 3px 4px;
}

.vid-card {
 position: relative;
 display: block;
 width: min(320px, calc(100vw - 56px));
 aspect-ratio: 3 / 4;
 max-height: min(480px, 62vh);
 overflow: hidden;
 border-radius: 8px;
 background: #111;
 margin: 0 0 2px;
}

.bubble.mine .vid-card {
 outline: 2px solid var(--gold);
 outline-offset: -2px;
}

.vid-poster,
.vid-el {
 display: block;
 width: 100%;
 height: 100%;
 object-fit: cover;
 background: #111;
}

.vid-poster.wait {
 display: grid;
 place-items: center;
 color: #fff;
 font-size: 28px;
}

.vid-play {
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translate(-50%, -50%);
 width: 56px;
 height: 56px;
 border-radius: 50%;
 background: rgba(0, 0, 0, 0.45);
 color: #fff;
 display: grid;
 place-items: center;
 z-index: 2;
}

.vid-close,
.vid-cancel,
.vid-save {
 position: absolute;
 width: 28px;
 height: 28px;
 border-radius: 50%;
 background: rgba(0, 0, 0, 0.55);
 color: #fff;
 display: grid;
 place-items: center;
 z-index: 3;
}

.vid-close {
 top: 8px;
 left: 8px;
}

.vid-save {
 top: 8px;
 right: 8px;
}

.vid-cancel {
 bottom: 8px;
 left: 8px;
}

.vid-card.vid-loading::after {
 content: "";
 position: absolute;
 inset: 0;
 background: rgba(0, 0, 0, 0.35);
 z-index: 4;
}

.vid-card.vid-loading::before {
 content: "";
 position: absolute;
 left: 50%;
 top: 50%;
 width: 28px;
 height: 28px;
 margin: -14px 0 0 -14px;
 border: 2px solid rgba(255, 255, 255, 0.35);
 border-top-color: #fff;
 border-radius: 50%;
 animation: vid-spin 0.7s linear infinite;
 z-index: 5;
}

@keyframes vid-spin {
 to {
  transform: rotate(360deg);
 }
}

.vid-dur {
 position: absolute;
 right: 8px;
 bottom: 6px;
 color: #fff;
 font-size: 12px;
 font-weight: 600;
 text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
 z-index: 2;
}

.vid-dur em {
 font-style: normal;
 font-weight: 600;
}

.vid-progress {
 position: absolute;
 left: 50%;
 bottom: 28px;
 transform: translateX(-50%);
 color: #fff;
 font-size: 13px;
 font-weight: 600;
 text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
 z-index: 2;
 white-space: nowrap;
}

.vid-once {
 position: absolute;
 top: 8px;
 right: 8px;
 color: #fff;
 z-index: 2;
}

.vid-once-gone {
 display: flex;
 align-items: center;
 gap: 8px;
 color: var(--text-muted);
 padding: 12px 8px;
 font-size: 14px;
}

.once-locked {
 display: flex;
 align-items: center;
 gap: 12px;
 min-width: 168px;
 max-width: 240px;
 padding: 12px 14px;
 border-radius: 12px;
 background: rgba(17, 27, 33, 0.06);
 color: #111b21;
 text-align: left;
 border: 0;
}

.bubble.mine .once-locked {
 background: rgba(92, 67, 9, 0.12);
}

.once-locked-ic {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 flex-shrink: 0;
 background: rgba(17, 27, 33, 0.08);
 color: #111b21;
}

.once-locked-ic svg {
 width: 22px;
 height: 22px;
}

.once-locked-txt {
 display: flex;
 flex-direction: column;
 gap: 2px;
 min-width: 0;
}

.once-locked-txt strong {
 font-size: 15px;
 font-weight: 600;
}

.once-locked-txt em {
 font-style: normal;
 font-size: 13px;
 color: #667781;
}

.bubble-media-btn {
 position: relative;
 display: block;
 padding: 0;
 border: 0;
 background: transparent;
}

.bubble-media-btn.once-mine .bubble-img {
 display: block;
}

.photo-once-badge {
 position: absolute;
 top: 8px;
 right: 8px;
 min-width: 22px;
 height: 22px;
 padding: 0 5px;
 border-radius: 999px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 background: rgba(17, 27, 33, 0.72);
 color: #fff;
 font-size: 12px;
 font-weight: 700;
 line-height: 1;
 z-index: 2;
 pointer-events: none;
}

.vid-card .photo-once-badge,
.vid-once.photo-once-badge {
 top: 8px;
 right: 8px;
}

.se-view-once {
 position: relative;
}

.se-once-1 {
 position: absolute;
 right: -2px;
 bottom: -2px;
 min-width: 14px;
 height: 14px;
 padding: 0 3px;
 border-radius: 999px;
 background: #fff;
 color: #111;
 font-size: 10px;
 font-weight: 800;
 line-height: 14px;
 text-align: center;
}

.se-view-once.on .se-once-1 {
 background: var(--gold, #c9a227);
 color: #111;
}

.vid-card.uploading .vid-play {
 opacity: 0.85;
}

.deleted-msg {
 display: flex;
 align-items: center;
 gap: 6px;
 font-style: italic;
 color: var(--text-muted);
}

.se-filmstrip-wrap {
 position: relative;
 z-index: 8;
 flex-shrink: 0;
 padding: 0 8px 8px;
 pointer-events: auto;
}

.se-filmstrip {
 position: relative;
 z-index: 1;
 display: flex;
 gap: 2px;
 overflow-x: auto;
 padding: 0;
 pointer-events: auto;
}

.se-film-loading {
 color: rgba(255, 255, 255, 0.55);
 font-size: 18px;
 padding: 16px 8px;
}

.se-frame {
 padding: 0;
 border: 0;
 background: #111;
 flex: 0 0 auto;
 height: 54px;
}

.se-frame img {
 display: block;
 height: 54px;
 width: auto;
}

.se-trim {
 position: absolute;
 left: 8px;
 right: 8px;
 top: 0;
 height: 54px;
 z-index: 3;
 pointer-events: none;
 --trim-l: 0%;
 --trim-r: 100%;
}

.se-trim-shade {
 position: absolute;
 top: 0;
 bottom: 0;
 background: rgba(0, 0, 0, 0.55);
 pointer-events: none;
}

.se-trim-shade-l {
 left: 0;
 width: var(--trim-l);
}

.se-trim-shade-r {
 left: var(--trim-r);
 right: 0;
}

.se-trim-handle {
 position: absolute;
 top: 0;
 bottom: 0;
 width: 14px;
 margin-left: -7px;
 background: #fff;
 border-radius: 3px;
 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
 pointer-events: auto;
 touch-action: none;
 z-index: 4;
}

.se-trim-handle::after {
 content: "";
 position: absolute;
 left: 5px;
 top: 14px;
 bottom: 14px;
 width: 4px;
 border-left: 1px solid #bbb;
 border-right: 1px solid #bbb;
}

.se-trim-l {
 left: var(--trim-l);
}

.se-trim-r {
 left: var(--trim-r);
}

.se-mention-row {
 display: flex;
 align-items: center;
 gap: 10px;
 width: 100%;
 text-align: left;
}

.se-vid-play {
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translate(-50%, -50%);
 width: 64px;
 height: 64px;
 border-radius: 50%;
 background: rgba(0, 0, 0, 0.4);
 color: #fff;
 display: grid;
 place-items: center;
 z-index: 6;
 pointer-events: auto;
}

.se-vid-meta {
 position: absolute;
 left: 10px;
 bottom: 10px;
 display: flex;
 align-items: center;
 gap: 8px;
 background: rgba(0, 0, 0, 0.45);
 color: #fff;
 border-radius: 16px;
 padding: 4px 10px 4px 4px;
 font-size: 13px;
 z-index: 6;
 pointer-events: auto;
}

.se-mute {
 width: 28px;
 height: 28px;
 border-radius: 50%;
 color: #fff;
 display: grid;
 place-items: center;
}

.se-status-mute {
 padding-right: 4px;
}

.se-hd {
 font-size: 11px;
 font-weight: 800;
 letter-spacing: 0.3px;
}

.se-round.on .se-hd {
 color: inherit;
}

.se-quality-sheet {
 position: absolute;
 inset: 0;
 z-index: 40;
 background: rgba(0, 0, 0, 0.45);
 display: flex;
 align-items: flex-end;
}

.se-quality-card {
 width: 100%;
 background: #fff;
 color: #111;
 border-radius: 18px 18px 0 0;
 padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
 box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
}

.se-quality-card h3 {
 margin: 0 0 4px;
 font-size: 18px;
 font-weight: 700;
}

.se-quality-card > p {
 margin: 0 0 14px;
 font-size: 13px;
 color: #667781;
 line-height: 1.35;
}

.se-quality-opt {
 width: 100%;
 display: flex;
 align-items: center;
 gap: 12px;
 text-align: left;
 border: 0;
 background: transparent;
 padding: 12px 4px;
 color: inherit;
}

.se-quality-copy {
 flex: 1;
 min-width: 0;
 display: flex;
 flex-direction: column;
 gap: 2px;
}

.se-quality-copy strong {
 font-size: 16px;
 font-weight: 600;
}

.se-quality-copy small {
 font-size: 13px;
 color: #667781;
 line-height: 1.3;
}

.se-quality-radio {
 width: 22px;
 height: 22px;
 border-radius: 50%;
 border: 2px solid #cfd4d8;
 flex: 0 0 auto;
 position: relative;
}

.se-quality-opt.on .se-quality-radio {
 border-color: #25d366;
}

.se-quality-opt.on .se-quality-radio::after {
 content: "";
 position: absolute;
 inset: 3px;
 border-radius: 50%;
 background: #25d366;
}

.se-send-to {
 color: #fff;
 font-size: 16px;
 font-weight: 500;
 max-width: calc(100% - 72px);
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.se-at.on {
 background: #fff;
 color: #111;
}

.bubble-sticker {
 display: block;
 width: auto;
 height: auto;
 max-width: 118px;
 max-height: 118px;
 object-fit: contain;
 background: transparent;
 border-radius: 0;
 margin: 0 auto 2px;
}
.bubble-sticker.wait {
 width: 56px;
 height: 56px;
 border-radius: 50%;
 border: 2px solid rgba(102, 119, 129, 0.25);
 border-top-color: #667781;
 animation: statusSpin 0.75s linear infinite;
 background: transparent;
}

.bubble.sticker-only {
 background: transparent !important;
 box-shadow: none;
 padding: 0;
 max-width: 128px;
}

.bubble.sticker-only .meta-only {
 text-align: right;
 padding: 0 4px;
 margin: 0;
}

.bubble.sticker-only .meta {
 color: #667781;
 text-shadow: 0 1px 1px rgba(255, 255, 255, 0.55);
}
.msg-fav-star {
 display: inline-block;
 margin-right: 4px;
 font-size: 11px;
 line-height: 1;
 color: #8696a0;
 vertical-align: 0;
}
.bubble.sticker-only .msg-fav-star {
 color: #667781;
}

img[data-ph]:not([src]) {
 display: none;
}

.info-actions {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 8px;
 padding: 0 16px 16px;
}

.create-photo {
 padding: 8px 16px 0;
 text-align: center;
}

.create-photo .photo-pick {
 margin: 0 auto 8px;
}

.blocked-banner {
 margin: 0;
 padding: 10px 16px;
 background: #fff5f5;
 color: #ea0038;
 font-size: 13px;
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 6px;
}

.blocked-banner button {
 background: #ea0038;
 color: #fff;
 border: 0;
 border-radius: 16px;
 padding: 6px 14px;
 font-weight: 700;
}

.info-hero .created {
 color: #667781;
 font-size: 13px;
}

.info-screen .info-name {
 font-size: 22px;
 font-weight: 700;
}

.info-screen textarea {
 width: min(320px, 100%);
 border: 1px solid #eee;
 border-radius: 8px;
 padding: 8px 10px;
 outline: none;
}

.info-actions button {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 6px;
 padding: 12px;
 border-radius: 12px;
 background: #f5f5f5;
 font-size: 13px;
}

.broadcast-create,
.broadcast-send {
 padding: 8px 16px 24px;
}

.broadcast-create input,
.broadcast-create textarea,
.broadcast-send textarea {
 width: 100%;
 border: 1px solid var(--border);
 border-radius: 10px;
 padding: 10px 12px;
 margin: 8px 0;
 outline: none;
}

.broadcast-send textarea {
 resize: vertical;
 min-height: 100px;
}

.hint {
 color: var(--text-muted);
 font-size: 13px;
 margin: 8px 0;
}

.chat-header .who {
 min-width: 0;
 flex: 1;
 color: #fff;
}

.chat-header strong {
 display: block;
 font-weight: 600;
 color: #fff;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.chat-header .wa-sub {
 color: #fff;
 margin: 0;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.chat-header .status {
 font-size: 13px;
 color: rgba(255, 255, 255, 0.75);
}

.messages {
 flex: 1;
 min-width: 0;
 max-width: 100%;
 overflow-x: hidden;
 overflow-y: auto;
 padding: 18px 7% 12px;
 background: #efeae2;
 -webkit-overflow-scrolling: touch;
 overscroll-behavior: contain;
 overflow-anchor: auto;
 contain: layout;
 -webkit-user-select: none;
 user-select: none;
 -webkit-touch-callout: none;
}

/* Ancrage navigateur : évite les sauts quand un média charge au-dessus */
.messages .bubble-row,
.messages .day-sep,
.messages .unread-sep {
 overflow-anchor: auto;
}

.day-sep {
 display: flex;
 justify-content: center;
 margin: 10px 0 14px;
}

.day-sep span {
 background: #ffffff;
 color: #54656f;
 font-size: 12.5px;
 padding: 6px 12px;
 border-radius: 8px;
 border: 1px solid var(--border);
}

.unread-sep {
 display: flex;
 justify-content: center;
 margin: 10px 0 14px;
 width: 100%;
}

.unread-sep span {
 background: #e9edef;
 color: #54656f;
 font-size: 12.5px;
 font-weight: 500;
 padding: 6px 14px;
 border-radius: 8px;
 border: none;
 box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
}

/* Flèche bas + badge non lus (WhatsApp) */
.chat-jump-fab {
 position: absolute;
 right: 14px;
 bottom: calc(72px + env(safe-area-inset-bottom, 0px));
 z-index: 35;
 width: 42px;
 height: 42px;
 border: none;
 border-radius: 50%;
 background: #fff;
 color: #54656f;
 box-shadow: 0 1px 3px rgba(11, 20, 26, 0.18), 0 2px 8px rgba(11, 20, 26, 0.12);
 display: grid;
 place-items: center;
 padding: 0;
 cursor: pointer;
}

.chat-jump-fab[hidden] {
 display: none !important;
}

.chat-jump-fab:active {
 transform: scale(0.96);
}

.chat-jump-badge {
 position: absolute;
 top: -4px;
 left: -4px;
 min-width: 20px;
 height: 20px;
 padding: 0 5px;
 border-radius: 999px;
 /* Même or que les pastilles non lus / nouveaux messages DamieChat */
 background: var(--unread, var(--gold, #c9a227));
 color: #fff;
 font-size: 11px;
 font-weight: 700;
 line-height: 20px;
 text-align: center;
 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.chat-jump-badge[hidden] {
 display: none !important;
}

html.kb-open .chat-jump-fab {
 bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.sys-sep span {
 background: #fff8e1;
 color: #5c4309;
 font-weight: 600;
 text-align: center;
 max-width: 92%;
 line-height: 1.35;
}

.sys-sep[data-sys-act] span {
 cursor: pointer;
}

.messages,
.bubble-row {
 direction: ltr;
}

.bubble-row {
 display: flex;
 width: 100%;
 max-width: 100%;
 margin-bottom: 8px;
 touch-action: pan-y;
 -webkit-user-select: none;
 user-select: none;
 -webkit-touch-callout: none;
 justify-content: flex-start;
 align-items: flex-end;
}

/* Série du même auteur : un peu plus serré, comme WhatsApp */
.bubble-row.tight {
 margin-bottom: 3px;
}

.bubble-row.mine {
 justify-content: flex-end;
}

.bubble-row.mine > .bubble,
.bubble-row.mine > .bubble-stack {
 margin-left: auto;
 margin-inline-start: auto;
}

.bubble-row.has-face {
 gap: 8px;
 padding-left: 4px;
 align-items: flex-end;
}

.msg-face {
 flex: 0 0 28px;
 width: 28px;
 height: 28px;
 padding: 0;
 margin: 0 0 2px;
 border: 0;
 background: transparent;
 display: grid;
 place-items: center;
 align-self: flex-end;
 cursor: pointer;
}

.msg-face.spacer {
 visibility: hidden;
 pointer-events: none;
}

.msg-face .avatar,
.msg-face .avatar.xs {
 width: 28px;
 height: 28px;
 font-size: 11px;
 border: 0;
 box-shadow: none;
}

.msg-face .avatar img {
 border-radius: 50%;
 object-fit: cover;
}

.bubble {
 max-width: min(78%, 720px);
 min-width: 0;
 padding: 6px 9px 5px 9px;
 border-radius: 7.5px;
 position: relative;
 box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
 overflow-wrap: anywhere;
 word-break: break-word;
 -webkit-user-select: none;
 user-select: none;
 -webkit-touch-callout: none;
}

.bubble-row.has-face .bubble-stack {
 max-width: min(78%, 720px);
}

.bubble-row.has-face .bubble {
 max-width: 100%;
}

.bubble,
.bubble * {
 -webkit-user-select: none !important;
 user-select: none !important;
 -webkit-touch-callout: none !important;
}

.bubble.mine {
 background: var(--sent);
 border-top-right-radius: 2px;
}

.bubble.theirs {
 background: var(--received);
 border-top-left-radius: 2px;
}

.bubble .sender {
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 gap: 6px;
 width: 100%;
 font-size: 12.8px;
 font-weight: 600;
 margin: 0 0 3px;
 padding: 0;
 text-align: left;
 background: none;
 border: 0;
 cursor: pointer;
 line-height: 1.2;
}

.bubble .sender .sender-name {
 font-style: italic;
 font-weight: 600;
}

.bubble .sender .sender-phone {
 font-style: normal;
 font-weight: 400;
 font-size: 12px;
 color: #667781;
 letter-spacing: 0;
}

.bubble p {
 white-space: pre-wrap;
 word-break: break-word;
 line-height: 1.35;
 font-style: normal;
}

.bubble .meta {
 float: right;
 margin: -2px 0 0 8px;
 display: flex;
 align-items: center;
 gap: 3px;
 color: #667781;
 font-size: 11px;
}

.ticks {
 display: inline-flex;
}

.ticks.read {
 color: #53bdeb;
}

.ticks.pending {
 opacity: 0.55;
 font-size: 11px;
}

.ticks.fail {
 appearance: none;
 border: 0;
 background: transparent;
 color: #ea0038;
 font-weight: 700;
 font-size: 13px;
 line-height: 1;
 padding: 0 2px;
 cursor: pointer;
}

.wa-contact-card {
 background: #fff;
 border-radius: 18px;
 margin: 18px auto 16px;
 padding: 22px 18px 16px;
 max-width: 340px;
 text-align: center;
 box-shadow: 0 1px 3px rgba(11, 20, 26, 0.08);
}

.group-intro-card {
 background: #fff;
 border-radius: 18px;
 margin: 18px auto 8px;
 padding: 22px 18px 18px;
 max-width: 340px;
 text-align: center;
 box-shadow: 0 1px 3px rgba(11, 20, 26, 0.08);
}

.group-intro-photo {
 display: inline-block;
 margin-bottom: 12px;
 background: none;
 border: 0;
 padding: 0;
}

.group-intro-name {
 display: block;
 width: 100%;
 font-size: 20px;
 font-weight: 700;
 color: #111b21;
 background: none;
 border: 0;
 padding: 0;
 cursor: pointer;
 font-family: inherit;
}

.group-intro-meta {
 color: #667781;
 font-size: 13.5px;
 line-height: 1.4;
 margin: 8px 8px 0;
}

.group-intro-desc {
 color: #54656f;
 font-size: 13.5px;
 line-height: 1.4;
 margin: 10px 8px 0;
}

.creator-pill {
 background: #c9a227;
 color: #fff;
}

.wa-cc-photo {
 display: inline-block;
 margin-bottom: 12px;
}

.wa-cc-phone {
 font-size: 20px;
 font-weight: 600;
 letter-spacing: 0.2px;
}

.wa-cc-name {
 color: #667781;
 margin-top: 4px;
 font-size: 15px;
}

.wa-cc-meta {
 color: #667781;
 font-size: 13.5px;
 line-height: 1.35;
 margin: 10px 8px 16px;
}

.wa-cc-acts {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 10px;
}

.wa-cc-block,
.wa-cc-add {
 border-radius: 24px;
 padding: 10px 8px;
 font-size: 15px;
 font-weight: 600;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
}

.wa-cc-block {
 color: #e53935;
 border: 1px solid #f5c2c0;
}

.wa-cc-add {
 color: #1f8b4c;
 border: 1px solid #cde9d6;
}

.attach-sheet {
 padding: 14px 14px 18px;
 background: #fff;
 border-radius: 18px 18px 0 0;
 box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
 position: relative;
 z-index: 40;
}

.attach-grid {
 display: grid;
 grid-template-columns: repeat(4, minmax(0, 1fr));
 gap: 14px 8px;
}

.attach-sheet button,
.attach-grid button {
 background: transparent;
 border-radius: 0;
 padding: 0;
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 8px;
 font-size: 12px;
 color: #54656f;
}

.attach-ic {
 width: 52px;
 height: 52px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 color: #fff;
}

.attach-ic svg {
 width: 24px;
 height: 24px;
}

.attach-ic.doc { background: #7f66ff; }
.attach-ic.gallery { background: #007bfc; }
.attach-ic.camera { background: #ff2e74; }
.attach-ic.audio { background: #ffbc38; }
.attach-ic.video { background: #ff3b5c; }
.attach-ic.contact { background: #0faaff; }
.attach-ic.location { background: #1daa61; }
.attach-ic.sticker { background: #02a698; }

.sticker-bar {
 display: flex;
 gap: 6px;
 overflow-x: auto;
 padding: 8px 10px;
 background: #efeae2;
}

.sticker-bar button {
 font-size: 28px;
 padding: 4px;
}

.call-miss {
 text-align: left;
 background: #fff;
 min-width: 210px;
 user-select: none;
 -webkit-user-select: none;
 touch-action: manipulation;
}

.call-info-row {
 padding: 12px 20px 8px;
}

.call-info-row strong {
 display: block;
 font-size: 16px;
}

.call-info-row span {
 display: block;
 color: #667781;
 font-size: 13px;
 margin-top: 4px;
}

.call-miss strong {
 display: block;
 font-size: 15px;
}

.call-miss span {
 display: block;
 color: #667781;
 font-size: 13px;
}

.composer {
 padding: 6px 8px max(10px, env(safe-area-inset-bottom));
 display: flex;
 flex-wrap: nowrap;
 align-items: flex-end;
 gap: 6px;
 background: #efeae2;
 border-top: 0;
 min-width: 0;
 max-width: 100%;
 overflow: visible;
 position: relative;
 z-index: 30;
 flex-shrink: 0;
 margin: 0;
}

.composer-input {
 flex: 1;
 min-width: 0;
 display: flex;
 align-items: flex-end;
 gap: 2px;
 background: #ffffff;
 border-radius: 24px;
 min-height: 48px;
 padding: 0 6px 0 4px;
}

.composer-input .icon-btn {
 color: #54656f;
 flex-shrink: 0;
}

.composer textarea {
 flex: 1;
 min-width: 0;
 resize: none;
 max-height: 160px;
 background: transparent;
 border: none;
 color: var(--text);
 padding: 13px 8px 13px 6px;
 outline: none;
 line-height: 1.4;
 font-size: 16px;
}

.composer textarea:focus {
 border-color: transparent;
}

.send {
 width: 48px;
 height: 48px;
 border-radius: 50%;
 background: var(--gold);
 color: #111;
 display: grid;
 place-items: center;
 flex-shrink: 0;
}

.send:disabled {
 opacity: 0.38;
 pointer-events: none;
}

.composer-mic {
 flex-shrink: 0;
 color: #54656f;
}

.emoji-bar {
 display: flex;
 gap: 4px;
 padding: 0 16px 8px;
 background: #ffffff;
 overflow-x: auto;
}

.emoji-bar button {
 font-size: 20px;
 padding: 2px 4px;
 border-radius: 6px;
}

.emoji-bar button:hover {
 background: var(--bg-hover);
}

.composer-sticker-btn {
 color: #54656f;
 flex-shrink: 0;
}

.composer-sticker-btn[aria-pressed="true"] {
 color: var(--gold);
}

.composer-emoji-btn-ic {
 color: #54656f;
 flex-shrink: 0;
}

.composer-emoji-btn-ic[aria-pressed="true"] {
 color: var(--gold);
}

/* Comme WhatsApp : coque = zone visible au-dessus du clavier, composeur collé en bas */
html.kb-open #root,
html.kb-open .app,
html.kb-open .wa-shell {
 height: var(--app-vh, calc(100dvh - var(--kb-inset, 0px))) !important;
 max-height: var(--app-vh, calc(100dvh - var(--kb-inset, 0px))) !important;
}

/* Navigateur / PWA : épingler #root sur le visualViewport (offsetTop + height) */
html.kb-open:not([data-dc-native-inset="1"]) #root {
 position: fixed !important;
 top: var(--vv-top, 0px) !important;
 left: 0;
 right: 0;
 width: 100%;
 bottom: auto !important;
 overflow: hidden;
}

html.kb-open .wa-shell {
 /* Pas de padding-bottom en plus de --app-vh (évite le trou au-dessus du clavier) */
 padding-bottom: 0 !important;
 box-sizing: border-box;
}

html[data-dc-native-inset="1"] .app,
html[data-dc-native-inset="1"] .wa-shell,
html[data-dc-native-inset="1"].kb-open #root,
html[data-dc-native-inset="1"].kb-open .app,
html[data-dc-native-inset="1"].kb-open .wa-shell {
 /* APK : hauteur = zone utile WebView (--app-vh = innerHeight) */
 height: var(--app-vh, 100%) !important;
 max-height: var(--app-vh, 100%) !important;
}

html[data-dc-native-inset="1"].kb-open #root {
 position: relative !important;
 top: auto !important;
}

html.kb-open .chat,
html.kb-open .actus .chat {
 padding-bottom: 0;
 min-height: 0;
 flex: 1 1 auto;
 overflow: hidden;
 display: flex;
 flex-direction: column;
}

html.kb-open .messages {
 padding-bottom: 12px;
 min-height: 0;
 flex: 1 1 auto;
}

html.kb-open .composer,
html.kb-open #composer,
html.kb-open #thread-composer {
 position: relative;
 bottom: 0;
 z-index: 50;
 flex-shrink: 0;
 /* Plus de safe-area sous le composeur : le clavier est déjà en dessous */
 padding-bottom: 6px;
 transform: translateZ(0);
}

.composer-emoji-panel {
 background: #fff;
 border-top: 1px solid var(--border);
 max-height: min(42vh, 280px);
 overflow: auto;
 padding: 8px 10px 10px;
}

.composer-emoji-grid {
 display: grid;
 grid-template-columns: repeat(8, minmax(0, 1fr));
 gap: 2px;
}

.composer-emoji-btn {
 font-size: 22px;
 line-height: 1.2;
 padding: 6px 2px;
 border: 0;
 background: transparent;
 border-radius: 8px;
}

.composer-emoji-btn:active {
 background: #f0f2f5;
}

.placeholder {
 flex: 1;
 display: grid;
 place-items: center;
 background:
 radial-gradient(800px 300px at 50% 20%, rgba(212, 175, 55, 0.12), transparent),
 #ffffff;
 color: var(--text-muted);
 text-align: center;
 padding: 32px;
 border-bottom: 6px solid var(--gold);
}

.placeholder h2 {
 color: var(--text);
 font-weight: 300;
 font-size: 32px;
 margin: 12px 0 8px;
}

.placeholder p {
 max-width: 420px;
 line-height: 1.5;
}

.avatar {
 width: 52px;
 height: 52px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 font-weight: 650;
 color: #0a0a0a;
 flex-shrink: 0;
 position: relative;
 text-transform: uppercase;
 overflow: hidden;
 background-size: cover;
 background-position: center;
}

.avatar.xl,
.avatar.lg {
 overflow: hidden;
}

.avatar.sm {
 width: 40px;
 height: 40px;
 font-size: 14px;
}

.avatar.md {
 width: 56px;
 height: 56px;
 font-size: 20px;
}

.avatar.lg {
 width: 56px;
 height: 56px;
 font-size: 20px;
}

.avatar.xl {
 width: 64px;
 height: 64px;
 font-size: 22px;
}

.avatar.wa {
 width: 56px;
 height: 56px;
 font-size: 20px;
 overflow: hidden;
}

.avatar.status {
 width: 36px;
 height: 36px;
 font-size: 13px;
 overflow: hidden;
 border: 2px solid #fff;
}

.dot {
 position: absolute;
 right: 0;
 bottom: 0;
 width: 11px;
 height: 11px;
 border-radius: 50%;
 background: var(--gold);
 border: 2px solid var(--bg-header);
}

.modal-backdrop {
 position: fixed;
 inset: 0;
 background: rgba(0, 0, 0, 0.55);
 display: grid;
 place-items: center;
 z-index: 20;
 padding: 16px;
}

.modal {
 width: min(460px, 100%);
 max-width: 100%;
 /* Hauteur bornée pour que .modal-body puisse vraiment scroller */
 height: min(88dvh, 100%);
 max-height: min(88dvh, 100%);
 background: var(--bg-panel);
 border-radius: 12px;
 overflow: hidden;
 display: flex;
 flex-direction: column;
 box-shadow: var(--shadow);
 min-width: 0;
 min-height: 0;
}

.modal header {
 padding: 16px 18px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 background: var(--gold-grad);
 color: var(--text-dark);
 flex-shrink: 0;
}

.tabs {
 display: flex;
 border-bottom: 1px solid var(--border);
}

.tabs button {
 flex: 1;
 padding: 12px;
 color: var(--text-muted);
 border-bottom: 3px solid transparent;
}

.tabs button.active {
 color: var(--gold);
 border-bottom-color: var(--gold);
}

.user-pick {
 width: 100%;
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 10px 16px;
 text-align: left;
}

.user-pick:hover,
.user-pick.selected {
 background: var(--bg-hover);
}

.modal .search-wrap {
 flex-shrink: 0;
}

/* Liste Nouvelle discussion : scroll tactile obligatoire */
.modal-body {
 flex: 1 1 auto;
 min-height: 0;
 max-height: none;
 overflow-x: hidden;
 overflow-y: auto;
 -webkit-overflow-scrolling: touch;
 overscroll-behavior: contain;
 touch-action: pan-y;
}

/* Lignes annuaire : autoriser le pan vertical (sinon manipulation bloque le défilement) */
.modal-body .chat-item,
.modal-body .member-row,
.modal-body .dir-user-row,
.modal-body .user-pick,
.modal-body [data-start-user] {
 touch-action: pan-y;
 -webkit-user-select: none;
 user-select: none;
}

.modal-foot {
 padding: 12px 16px 16px;
 display: flex;
 gap: 8px;
}

.wa-page {
 font-size: 22px;
 font-weight: 700;
 color: #111;
}

.actus-body {
 flex: 1;
 min-width: 0;
 max-width: 100%;
 overflow-x: hidden;
 overflow-y: auto;
 padding: 0 0 110px;
}

.section-title {
 font-size: 18px;
 font-weight: 700;
 padding: 8px 16px 10px;
}

.section-head {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding-right: 16px;
}

.status-row {
 display: flex;
 gap: 8px;
 overflow-x: auto;
 padding: 0 16px 18px;
 scrollbar-width: none;
}

.status-row::-webkit-scrollbar {
 display: none;
}

.wa-status-tile {
 flex: 0 0 108px;
 width: 108px;
 height: 172px;
 border-radius: 14px;
 overflow: hidden;
 position: relative;
 background: #1a1408;
 text-align: left;
 padding: 0;
 flex-shrink: 0;
}

.wa-status-cover {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: contain;
 object-position: center;
 display: block;
 background: #1a1408;
}

.wa-status-fallback {
 position: absolute;
 inset: 0;
 display: grid;
 place-items: center;
 padding: 12px 8px 40px;
 color: #fff;
 font-size: 13px;
 font-weight: 600;
 text-align: center;
 line-height: 1.25;
 background: linear-gradient(180deg, var(--gold-bright), var(--gold-dark));
}

.wa-status-fallback.audio {
 padding-bottom: 36px;
}

.wa-status-audio-ic {
 width: 42px;
 height: 42px;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.22);
 display: grid;
 place-items: center;
 color: #fff;
}

.wa-status-audio-ic svg {
 width: 22px;
 height: 22px;
}

.wa-status-shade {
 position: absolute;
 inset: auto 0 0;
 height: 58%;
 background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
 pointer-events: none;
}

.wa-status-face {
 position: absolute;
 left: 8px;
 top: 10px;
 width: 36px;
 height: 36px;
 z-index: 2;
}

.wa-status-empty {
 position: absolute;
 inset: 0;
 background: #ece5dd;
}

.wa-status-tile.mine.empty {
 background: #ece5dd;
}

.wa-status-tile.mine.empty .wa-status-label {
 color: #111b21;
 text-shadow: none;
}

.wa-status-tile.mine.empty .wa-status-shade {
 display: none;
}

.wa-status-face.unseen .avatar.status {
 box-shadow: 0 0 0 2px var(--gold-bright);
}

.wa-status-face.seen .avatar.status {
 box-shadow: 0 0 0 2px #cfcfcf;
}

.wa-status-label {
 position: absolute;
 left: 8px;
 right: 8px;
 bottom: 8px;
 z-index: 2;
 color: #fff;
 font-size: 12px;
 font-weight: 700;
 line-height: 1.2;
 text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
 overflow: hidden;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
}

.wa-status-tile-wrap {
 position: relative;
 flex: 0 0 108px;
 width: 108px;
 height: 172px;
 flex-shrink: 0;
}

.wa-status-tile-wrap .wa-status-tile {
 width: 100%;
 height: 100%;
 flex: none;
}

.status-plus,
.status-plus-btn {
 position: absolute;
 left: 26px;
 bottom: -2px;
 width: 18px;
 height: 18px;
 border-radius: 50%;
 background: var(--gold-bright);
 color: #fff;
 font-size: 16px;
 line-height: 16px;
 text-align: center;
 font-weight: 700;
 border: 2px solid #fff;
 z-index: 4;
}

.status-plus-btn {
 left: 26px;
 top: 30px;
 bottom: auto;
 padding: 0;
 display: grid;
 place-items: center;
 cursor: pointer;
}

.actus .fab.mini {
 bottom: 156px;
 width: 48px;
 height: 48px;
 border-radius: 14px;
 background: #fff;
 color: #3d3d3d;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.actus .fab.cam {
 bottom: 84px;
 border-radius: 16px;
}

/* Ne jamais mettre width/height à 0 : WebView Android ignore alors input.click() */
.dc-pickers {
 position: fixed;
 left: 0;
 top: 0;
 width: 48px;
 height: 48px;
 overflow: hidden;
 opacity: 0.01;
 z-index: 2147483000;
 pointer-events: none;
}
.dc-pickers input {
 position: absolute;
 left: 0;
 top: 0;
 width: 48px;
 height: 48px;
 opacity: 0.01;
 font-size: 16px;
 /* Désarmé par défaut — armHiddenPicker active brièvement, sinon Retour = galerie */
 pointer-events: none;
}

.status-create-screen {
 position: absolute;
 inset: 0;
 z-index: 30;
 display: flex;
 flex-direction: column;
 background: #fff;
 min-height: 0;
}

.status-create-top {
 flex-shrink: 0;
 border-bottom: 1px solid #e9edef;
}

.status-create-top .wa-sub {
 flex: 1;
 font-size: 18px;
 font-weight: 600;
 color: #111b21;
 margin: 0;
}

.status-create-actions {
 display: flex;
 justify-content: space-around;
 gap: 8px;
 padding: 16px 12px 10px;
 flex-shrink: 0;
}

.status-create-actions button {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 8px;
 min-width: 64px;
 background: none;
 border: 0;
 color: #111b21;
 font-size: 12px;
 font-weight: 500;
}

.status-act-ic {
 width: 52px;
 height: 52px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 color: #fff;
}

.status-act-ic.text { background: #25d366; }
.status-act-ic.gallery { background: #53bdeb; }
.status-act-ic.camera { background: #ff6b9d; }
.status-act-ic.audio { background: #f5a623; }
.status-act-ic.video { background: #7c4dff; }

.status-create-hint {
 margin: 8px 16px 12px;
 font-size: 13px;
 color: #667781;
 text-align: center;
}

.status-create-hint.sticky {
 margin-top: auto;
 padding-bottom: 12px;
}

.status-gal-head {
 display: flex;
 align-items: center;
 padding: 4px 14px 10px;
 flex-shrink: 0;
}

.status-gal-album {
 display: inline-flex;
 align-items: center;
 gap: 4px;
 background: none;
 border: 0;
 font-size: 16px;
 font-weight: 600;
 color: #111b21;
 padding: 0;
}

.status-gal-album svg {
 width: 16px;
 height: 16px;
 transform: rotate(90deg);
}

.status-gal-grid {
 flex: 1;
 min-height: 0;
 overflow-y: auto;
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 2px;
 padding: 0 2px 88px;
 align-content: start;
 -webkit-overflow-scrolling: touch;
}

.status-gal-tile {
 position: relative;
 aspect-ratio: 1;
 padding: 0;
 border: 0;
 background: #e9edef;
 overflow: hidden;
}

.status-gal-tile img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
}

.status-gal-tile.camera {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 6px;
 background: #1f2c34;
 color: #fff;
 font-size: 13px;
 font-weight: 500;
}

.status-gal-cam-ic {
 width: 44px;
 height: 44px;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.12);
 display: grid;
 place-items: center;
}

.status-gal-tile.on {
 outline: 3px solid #c9a227;
 outline-offset: -3px;
}

.status-gal-check {
 position: absolute;
 top: 8px;
 right: 8px;
 width: 22px;
 height: 22px;
 border-radius: 50%;
 background: #c9a227;
 color: #111;
 display: grid;
 place-items: center;
}

.status-gal-dur {
 position: absolute;
 left: 6px;
 bottom: 6px;
 font-size: 11px;
 color: #fff;
 text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.status-gal-empty {
 grid-column: 1 / -1;
 min-height: 140px;
 margin: 8px;
 border: 1px dashed #c5c9cd;
 border-radius: 12px;
 background: #f6f7f8;
 color: #667781;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 6px;
 padding: 20px;
 text-align: center;
}

.status-gal-empty strong {
 color: #111b21;
 font-size: 15px;
}

.status-gal-empty span {
 font-size: 13px;
}

.status-gal-send {
 position: absolute;
 right: 16px;
 bottom: calc(18px + env(safe-area-inset-bottom, 0px));
 z-index: 4;
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 12px 18px;
 border: 0;
 border-radius: 999px;
 background: #c9a227;
 color: #111;
 font-weight: 700;
 font-size: 14px;
 box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.status-text-screen {
 position: absolute;
 inset: 0;
 z-index: 40;
 display: flex;
 flex-direction: column;
 color: #fff;
}

.status-text-top {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 8px;
 padding: 10px 12px calc(10px + env(safe-area-inset-top, 0px));
}

.status-text-actions {
 display: flex;
 align-items: center;
 gap: 8px;
 margin-left: auto;
}

.status-text-close {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 border: 0;
 background: rgba(0, 0, 0, 0.28);
 color: #fff;
 display: grid;
 place-items: center;
}

.status-text-done {
 border: 0;
 border-radius: 20px;
 padding: 10px 16px;
 background: #fff;
 color: #111b21;
 font-weight: 700;
 font-size: 15px;
}

.status-text-tool {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 border: 0;
 background: rgba(0, 0, 0, 0.28);
 color: #fff;
 display: grid;
 place-items: center;
 font-weight: 700;
}

.status-text-tool .se-aa {
 font-size: 15px;
 letter-spacing: -0.4px;
}

.status-text-send {
 width: 44px;
 height: 44px;
 border-radius: 50%;
 border: 0;
 background: #fff;
 color: #111b21;
 display: grid;
 place-items: center;
}

.status-text-screen textarea {
 flex: 1;
 width: 100%;
 border: 0;
 outline: none;
 resize: none;
 background: transparent;
 color: #fff;
 font-size: 28px;
 font-weight: 600;
 line-height: 1.3;
 text-align: center;
 padding: 24px 20px 16px;
}

.status-text-screen textarea::placeholder {
 color: rgba(255, 255, 255, 0.55);
}

.status-text-fonts,
.status-text-colors {
 display: flex;
 gap: 10px;
 justify-content: center;
 align-items: center;
 flex-wrap: nowrap;
 overflow-x: auto;
 padding: 8px 16px 18px;
 -webkit-overflow-scrolling: touch;
}

.status-font-dot,
.status-color-dot {
 flex: 0 0 auto;
 width: 44px;
 height: 44px;
 border-radius: 50%;
 border: 2px solid rgba(255, 255, 255, 0.35);
 background: rgba(0, 0, 0, 0.28);
 color: #fff;
 font-size: 15px;
 font-weight: 700;
}

.status-font-dot.on {
 background: #fff;
 color: #111;
 border-color: #fff;
}

.status-color-dot.on {
 box-shadow: 0 0 0 3px #fff;
 border-color: transparent;
}

.status-stage.text-only .status-text-body,
.status-stage.text-only > p {
 margin: 0;
 padding: 24px 22px;
 font-size: 28px;
 font-weight: 650;
 line-height: 1.3;
 text-align: center;
 color: #fff;
 word-break: break-word;
}

.status-voice-dock {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 72px;
 z-index: 20;
 padding: 0 8px 8px;
}

.status-composer {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 72px;
 background: #fff;
 border-top: 1px solid var(--border);
 padding: 12px 16px;
 z-index: 8;
}

.status-composer textarea {
 width: 100%;
 border: 1px solid var(--border);
 border-radius: 10px;
 padding: 10px;
 resize: none;
 outline: none;
}

.status-composer-actions {
 display: flex;
 justify-content: flex-end;
 gap: 8px;
 margin-top: 8px;
}

.actus .chat-list.channels {
 flex: none;
 overflow: visible;
 padding-bottom: 8px;
}

.comm-body {
 flex: 1;
 overflow-y: auto;
}

.comm-new {
 width: 100%;
 display: grid;
 grid-template-columns: 56px 1fr;
 gap: 14px;
 align-items: center;
 padding: 10px 16px 14px;
 text-align: left;
}

.comm-new > span:last-child {
 font-size: 17px;
 color: #111;
}

.comm-new-ico {
 width: 52px;
 height: 52px;
 border-radius: 12px;
 background: #e9edef;
 color: #667781;
 display: grid;
 place-items: center;
 position: relative;
}

.comm-plus {
 position: absolute;
 right: -3px;
 bottom: -3px;
 width: 22px;
 height: 22px;
 border-radius: 50%;
 background: var(--gold-bright);
 color: #fff;
 font-size: 16px;
 line-height: 18px;
 text-align: center;
 font-weight: 700;
 border: 2px solid #fff;
}

.comm-block {
 border-top: 1px solid #e9edef;
 padding: 4px 0 2px;
}

.comm-head {
 display: flex;
 align-items: center;
 gap: 14px;
 padding: 12px 16px 10px;
 width: 100%;
 text-align: left;
}

.comm-logo {
 width: 52px;
 height: 52px;
 border-radius: 12px;
 display: grid;
 place-items: center;
 font-weight: 700;
 font-size: 16px;
 color: #fff;
 flex-shrink: 0;
 overflow: hidden;
}

.comm-logo img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.comm-head h3 {
 font-size: 16.5px;
 font-weight: 600;
 color: #111;
 line-height: 1.3;
 overflow: hidden;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
}

.comm-megaphone {
 width: 52px;
 height: 52px;
 border-radius: 12px;
 background: var(--gold-soft);
 color: var(--gold);
 display: grid;
 place-items: center;
}

.comm-group {
 padding-left: 16px;
}

.snippet.italic {
 font-style: italic;
}

.comm-see-all {
 display: flex;
 align-items: center;
 gap: 4px;
 padding: 12px 16px 16px;
 color: #667781;
 font-size: 15px;
}

.comm-see-all svg {
 width: 16px;
 height: 16px;
}

.comm-composer {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 72px;
 background: #fff;
 border-top: 1px solid var(--border);
 padding: 16px 16px 18px;
 z-index: 8;
}

.comm-composer h2 {
 font-size: 18px;
 margin-bottom: 6px;
}

.comm-composer p {
 font-size: 14px;
 color: var(--text-muted);
 margin-bottom: 12px;
}

.comm-composer input,
.comm-composer textarea {
 width: 100%;
 border: 1px solid var(--border);
 border-radius: 10px;
 padding: 10px 12px;
 outline: none;
}

.comm-composer textarea,
#edit-channel-desc {
 min-height: 280px;
 resize: vertical;
 line-height: 1.45;
}

.channel-desc-label {
 display: block;
 margin: 12px 0 6px;
 font-size: 13px;
 font-weight: 600;
 color: #667781;
}

.comm-composer.channel-create {
 position: absolute;
 inset: 0;
 z-index: 12;
 overflow: hidden;
 padding: 0;
 border: none;
 background: #fff;
 display: flex;
 flex-direction: column;
 bottom: 0;
 color: var(--text);
}

.comm-composer.channel-create .icon-btn {
 color: var(--gold-dark);
}

.channel-create-top {
 height: 56px;
 flex-shrink: 0;
 display: flex;
 align-items: center;
 gap: 4px;
 padding: 0 8px 0 4px;
 border-bottom: 1px solid var(--border);
}

.channel-create-top h1 {
 font-size: 20px;
 font-weight: 500;
 color: var(--gold-dark);
}

.channel-create-body {
 flex: 1;
 min-height: 0;
 overflow: auto;
 padding: 28px 24px 12px;
 display: flex;
 flex-direction: column;
 align-items: stretch;
}

.channel-create-avatar {
 position: relative;
 width: 104px;
 height: 104px;
 margin: 0 auto 36px;
 border-radius: 50%;
 background: var(--gold);
 display: grid;
 place-items: center;
 overflow: visible;
 cursor: pointer;
}

.channel-create-default {
 display: grid;
 place-items: center;
 width: 100%;
 height: 100%;
 pointer-events: none;
}

.channel-create-default svg {
 fill: #fff;
}

.channel-create-avatar img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 border-radius: 50%;
 display: block;
}

.channel-create-cam {
 position: absolute;
 right: -2px;
 bottom: -2px;
 width: 32px;
 height: 32px;
 border-radius: 50%;
 background: var(--gold-dark);
 display: grid;
 place-items: center;
 box-shadow: 0 0 0 3px #fff;
 pointer-events: none;
}

.comm-composer.channel-create #channel-name {
 width: 100%;
 border: none;
 border-bottom: 1px solid var(--border);
 border-radius: 0;
 background: transparent;
 padding: 10px 0 12px;
 font-size: 16px;
 color: var(--text);
 outline: none;
}

.comm-composer.channel-create #channel-name::placeholder {
 color: var(--gold-dark);
 opacity: 0.55;
}

.comm-composer.channel-create #channel-name:focus {
 border-bottom-color: var(--gold);
}

.comm-composer.channel-create #channel-desc {
 width: 100%;
 min-height: 108px;
 max-height: none;
 flex: none;
 resize: none;
 margin-top: 18px;
 border: 1px solid var(--border);
 border-radius: 10px;
 background: var(--gold-soft);
 padding: 14px 16px;
 font-size: 16px;
 line-height: 1.45;
 color: var(--text);
 outline: none;
}

.comm-composer.channel-create #channel-desc:focus {
 border-color: var(--gold);
}

.comm-composer.channel-create #channel-desc::placeholder {
 color: var(--gold-dark);
 opacity: 0.55;
}

.comm-composer.channel-create .hint {
 color: var(--gold-dark);
}

.channel-create-foot {
 flex-shrink: 0;
 padding: 12px 20px calc(18px + env(safe-area-inset-bottom));
}

.channel-create-submit {
 width: 100%;
 height: 48px;
 border: none;
 border-radius: 24px;
 background: var(--gold);
 color: #111;
 font-size: 16px;
 font-weight: 600;
}

.channel-create-submit:active {
 background: var(--gold-dark);
 color: #fff;
}

.channel-create-submit:disabled,
#create-comm-group:disabled {
 opacity: 0.6;
 pointer-events: none;
}

#create-group,
#create-channel,
#create-community,
#create-comm-group {
 touch-action: manipulation;
}

.comm-composer.channel-create .error {
 margin: 12px 0 0;
 text-align: left;
}

.comm-create {
 height: 100%;
 background: #fff;
 display: flex;
 flex-direction: column;
 position: relative;
}

.comm-create-body {
 flex: 1;
 min-height: 0;
 overflow: auto;
 padding: 8px 0 88px;
}

.comm-examples-link {
 display: block;
 width: 100%;
 padding: 10px 24px 18px;
 text-align: left;
 background: none;
 color: var(--gold);
 font-size: 15px;
}

.comm-examples-link strong {
 font-weight: 600;
}

.comm-create-avatar {
 position: relative;
 width: 96px;
 height: 96px;
 margin: 4px auto 0;
 border-radius: 22px;
 background: #e6e6e6;
 display: grid;
 place-items: center;
 overflow: visible;
 cursor: pointer;
 color: #b9b9b9;
}

.comm-create-avatar.has-photo {
 overflow: visible;
}

.comm-create-avatar img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 border-radius: 22px;
 display: block;
}

.comm-create-avatar.sm {
 width: 52px;
 height: 52px;
 margin: 0;
 flex-shrink: 0;
}

.comm-create-avatar.sm svg {
 width: 28px;
 height: 28px;
}

.comm-create-badge {
 position: absolute;
 right: -4px;
 bottom: -4px;
 width: 28px;
 height: 28px;
 border-radius: 50%;
 background: var(--gold);
 display: grid;
 place-items: center;
 box-shadow: 0 0 0 3px #fff;
 pointer-events: none;
}

.comm-create-change {
 display: block;
 text-align: center;
 color: #111b21;
 font-size: 15px;
 margin: 14px 0 18px;
 cursor: pointer;
}

.comm-field {
 position: relative;
 margin: 0 24px;
}

.comm-field input {
 width: 100%;
 border: 1.5px solid #8696a0;
 border-radius: 8px;
 padding: 16px 14px 12px;
 font-size: 16px;
 color: #111b21;
 background: #fff;
 outline: none;
}

.comm-field:focus-within input,
.comm-field.has input {
 border-color: var(--gold);
}

.comm-field label {
 position: absolute;
 left: 12px;
 top: -8px;
 background: #fff;
 padding: 0 6px;
 font-size: 13px;
 color: #667781;
 pointer-events: none;
}

.comm-field:focus-within label,
.comm-field.has label {
 color: var(--gold);
}

.comm-count {
 display: block;
 text-align: right;
 color: #8696a0;
 font-size: 12px;
 padding: 6px 26px 0 0;
}

.comm-desc-box {
 margin: 16px 24px 0;
 background: #f0f2f5;
 border-radius: 12px;
 padding: 14px 14px 8px;
}

.comm-desc-box textarea {
 width: 100%;
 border: none;
 background: transparent;
 resize: none;
 min-height: 108px;
 font-size: 16px;
 line-height: 1.4;
 color: #111b21;
 outline: none;
}

.comm-desc-box .comm-count {
 padding: 4px 2px 0;
}

.comm-create .error {
 margin: 12px 24px 0;
 text-align: left;
}

.comm-examples-body {
 padding: 12px 20px 24px;
 overflow: auto;
}

.comm-examples-lead {
 color: #667781;
 font-size: 14px;
 line-height: 1.4;
 margin-bottom: 18px;
}

.comm-example {
 display: flex;
 gap: 14px;
 align-items: flex-start;
 padding: 14px 0;
 border-bottom: 1px solid #e9edef;
}

.comm-example strong {
 display: block;
 font-size: 16px;
 font-weight: 500;
 color: #111b21;
}

.comm-example p {
 color: #667781;
 font-size: 14px;
 line-height: 1.35;
 margin-top: 4px;
}

.group-create {
 position: absolute;
 inset: 0;
 z-index: 16;
 background: #fff;
 display: flex;
 flex-direction: column;
}

.group-create-name {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 12px 12px 14px 16px;
 border-bottom: 1px solid #e9edef;
}

.group-create-cam {
 width: 46px;
 height: 46px;
 flex-shrink: 0;
 border-radius: 50%;
 background: var(--gold);
 color: #fff;
 display: grid;
 place-items: center;
 overflow: hidden;
 cursor: pointer;
}

.group-create-cam svg {
 width: 22px;
 height: 22px;
 stroke: #fff;
}

.group-create-cam img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.group-create-name #group-name {
 flex: 1;
 min-width: 0;
 border: 1.5px solid var(--gold);
 border-radius: 10px;
 padding: 10px 12px;
 font-size: 16px;
 background: #fff;
 outline: none;
}

.group-create-name #group-name::placeholder {
 color: #8696a0;
}

.group-create-emos {
 display: flex;
 flex-wrap: wrap;
 gap: 4px;
 padding: 8px 12px;
 border-bottom: 1px solid #e9edef;
}

.group-create-emos button {
 font-size: 22px;
 padding: 4px;
}

.group-create-row {
 border-bottom: 1px solid #e9edef;
}

.group-create-ic {
 color: #8696a0;
 flex-shrink: 0;
 margin-left: auto;
}

.group-create-members {
 flex: 1;
 min-height: 0;
 background: #f0f2f5;
 padding: 16px 16px 88px;
 overflow: auto;
}

.group-create-count {
 color: #667781;
 font-size: 14px;
 margin-bottom: 14px;
}

.group-create-people {
 display: flex;
 flex-wrap: wrap;
 gap: 16px 18px;
}

.group-add-person {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 6px;
 width: 64px;
 background: none;
 color: #667781;
 font-size: 13px;
}

.group-add-ic {
 width: 52px;
 height: 52px;
 border-radius: 50%;
 background: var(--gold);
 color: #fff;
 display: grid;
 place-items: center;
}

.group-add-ic svg {
 stroke: #fff;
 width: 26px;
 height: 26px;
}

.group-add-person.member .avatar {
 width: 52px;
 height: 52px;
}

.group-add-person.member span {
 max-width: 64px;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
 color: #111b21;
 font-size: 12px;
}

.group-create-fab {
 position: absolute;
 right: 16px;
 bottom: calc(16px + env(safe-area-inset-bottom));
 width: 56px;
 height: 56px;
 border-radius: 16px;
 background: var(--gold);
 color: #fff;
 display: grid;
 place-items: center;
 box-shadow: 0 4px 12px rgba(11, 20, 26, 0.22);
 z-index: 20;
}
.group-create-fab:disabled {
 opacity: 0.55;
}

.group-create-fab svg {
 width: 26px;
 height: 26px;
 stroke: #fff;
 stroke-width: 2.6;
}

.group-perms {
 position: absolute;
 inset: 0;
 background: #fff;
 /* Au-dessus du FAB ✓ (z-index 20) : sinon le check crée le forum pendant Autorisations */
 z-index: 40;
 display: flex;
 flex-direction: column;
 overflow: auto;
 padding-bottom: env(safe-area-inset-bottom);
}

.gp-label {
 padding: 18px 24px 6px;
 color: #667781;
 font-size: 14px;
}

.gp-row {
 display: flex;
 align-items: flex-start;
 gap: 18px;
 padding: 12px 16px 16px;
 width: 100%;
 text-align: left;
 background: none;
}

.gp-row .row-ic {
 width: 24px;
 color: #8696a0;
 margin-top: 2px;
 flex-shrink: 0;
}

.gp-text {
 flex: 1;
 min-width: 0;
}

.gp-text strong {
 display: block;
 font-size: 16px;
 font-weight: 400;
 color: #111b21;
}

.gp-text p {
 color: #667781;
 font-size: 14px;
 line-height: 1.35;
 margin-top: 4px;
}

.gp-more {
 color: var(--gold);
 font-size: 14px;
 font-weight: 500;
 background: none;
 margin-top: 8px;
 padding: 0;
}

.gp-help {
 color: #667781;
 font-size: 14px;
 line-height: 1.4;
 margin-top: 8px;
}

.perm-switch {
 width: 52px;
 height: 32px;
 border-radius: 16px;
 background: #e9edef;
 position: relative;
 flex-shrink: 0;
 margin-top: 2px;
}

.perm-knob {
 position: absolute;
 top: 2px;
 left: 2px;
 width: 28px;
 height: 28px;
 border-radius: 50%;
 background: #fff;
 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
 display: grid;
 place-items: center;
 color: #8696a0;
}

.perm-knob svg {
 width: 14px;
 height: 14px;
}

.perm-switch.on {
 background: var(--gold);
}

.perm-switch.on .perm-knob {
 left: 22px;
 color: var(--gold);
}

.join-req-acts {
 display: flex;
 flex-direction: column;
 gap: 6px;
 padding-right: 8px;
}

.join-req-acts button {
 background: #f0f2f5;
 border-radius: 8px;
 padding: 6px 10px;
 font-size: 13px;
}

.join-req-acts button.danger {
 color: var(--danger);
}

.join-req-banner {
 display: flex;
 align-items: center;
 gap: 12px;
 width: 100%;
 padding: 10px 14px;
 border: 0;
 border-bottom: 1px solid var(--border);
 background: #fff8e1;
 color: #1c1c1c;
 text-align: left;
 cursor: pointer;
 position: relative;
 z-index: 3;
}

.day-sep.sys-sep.join-req-sys {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 8px;
}

.day-sep.sys-sep.join-req-sys .join-req-icon-acts.inline {
 display: flex;
 gap: 10px;
 justify-content: center;
}

.join-req-banner-text {
 flex: 1;
 min-width: 0;
 display: flex;
 flex-direction: column;
 gap: 2px;
}

.join-req-banner-text strong {
 font-size: 14px;
 font-weight: 600;
 line-height: 1.25;
}

.join-req-banner-text span {
 font-size: 12.5px;
 color: #667781;
}

.join-req-banner-cta {
 flex-shrink: 0;
 color: #027eb5;
 font-size: 14px;
 font-weight: 600;
}

.chat-item.member-row.join-req-row {
 grid-template-columns: minmax(0, 1fr) auto;
 gap: 10px;
}

.join-req-row .who-btn {
 width: 100%;
}

.join-req-row .who-btn .preview {
 flex: 1;
 min-width: 0;
}

.join-req-row .join-req-icon-acts {
 display: flex;
 align-items: center;
 gap: 8px;
 padding-right: 4px;
 flex-shrink: 0;
}

.join-req-icon {
 width: 36px;
 height: 36px;
 border-radius: 50%;
 border: 0;
 display: grid;
 place-items: center;
 cursor: pointer;
 position: relative;
 z-index: 2;
 pointer-events: auto;
 -webkit-tap-highlight-color: transparent;
}

.join-req-icon.reject {
 background: #f0f2f5;
 color: #54656f;
}

.join-req-icon.accept {
 background: #25d366;
 color: #fff;
}

.join-req-icon:disabled {
 opacity: 0.55;
}

.share-qr {
 width: min(180px, 56vw);
 height: auto;
 aspect-ratio: 1;
 max-width: 100%;
 margin: 12px auto 4px;
 display: block;
 background: #fff;
}

.ephem-backdrop {
 position: absolute;
 inset: 0;
 z-index: 40;
 background: rgba(11, 20, 26, 0.45);
 display: grid;
 place-items: center;
 padding: 24px 22px;
}

.ephem-card {
 width: min(320px, 100%);
 background: #fff;
 border-radius: 8px;
 padding: 20px 4px 10px;
 box-shadow: 0 12px 40px rgba(11, 20, 26, 0.28);
}

.ephem-card h2 {
 font-size: 20px;
 font-weight: 500;
 color: #111b21;
 padding: 0 20px;
}

.ephem-lead {
 color: #667781;
 font-size: 14.5px;
 line-height: 1.4;
 padding: 10px 20px 12px;
}

.ephem-opt {
 display: flex;
 align-items: center;
 gap: 18px;
 width: 100%;
 padding: 14px 20px;
 background: none;
 text-align: left;
 font-size: 16px;
 color: #111b21;
}

.ephem-radio {
 width: 22px;
 height: 22px;
 border-radius: 50%;
 border: 2px solid #8696a0;
 flex-shrink: 0;
 display: grid;
 place-items: center;
}

.ephem-opt.on .ephem-radio {
 border-color: var(--gold);
}

.ephem-opt.on .ephem-radio::after {
 content: "";
 width: 12px;
 height: 12px;
 border-radius: 50%;
 background: var(--gold);
}

.group-create .error {
 text-align: left;
 margin-top: 16px;
}

.channel-pick-sheet {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 14;
 margin: 0;
 background: #fff;
 border: 1px solid var(--border);
 border-radius: 18px 18px 0 0;
 padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
 box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.16);
 max-height: 62%;
 overflow: auto;
}

.channel-pick-handle {
 width: 42px;
 height: 4px;
 border-radius: 4px;
 background: #d1d7db;
 margin: 4px auto 12px;
}

.channel-pick-facts {
 list-style: none;
 margin: 10px 0 4px;
 display: flex;
 flex-direction: column;
 gap: 10px;
}

.channel-pick-facts li {
 font-size: 14px;
 line-height: 1.35;
 color: #111;
}

.channel-pick-facts span {
 display: block;
 font-size: 12px;
 font-weight: 600;
 color: #667781;
 margin-bottom: 2px;
}

.channel-pick-hero {
 display: flex;
 align-items: center;
 gap: 12px;
 width: 100%;
 border: 0;
 background: transparent;
 text-align: left;
 color: inherit;
 padding: 0;
 cursor: pointer;
}

.channel-pick-hero strong {
 display: block;
 font-size: 16px;
}

.channel-pick-hero p,
.channel-pick-meta {
 font-size: 13px;
 color: #667781;
 margin-top: 2px;
}

.channel-pick-desc {
 margin: 10px 0 6px;
 font-size: 14px;
 line-height: 1.4;
 max-height: 7.5em;
 overflow: auto;
}

.channel-pick-acts {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 margin-top: 10px;
}

.channel-pick-acts button {
 background: #f6f1de;
 border-radius: 18px;
 padding: 8px 12px;
 font-size: 13px;
 font-weight: 600;
}

.chat-item.channel-row.selecting {
 grid-template-columns: 28px 56px 1fr;
}

.call-quick {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 padding: 6px 8px 14px;
 text-align: center;
}

.call-quick button {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 8px;
 font-size: 12.5px;
 color: #111;
}

.call-quick-ico {
 width: 56px;
 height: 56px;
 border-radius: 50%;
 background: #f0f0f0;
 color: #111;
 display: grid;
 place-items: center;
}

.call-quick-ico svg {
 width: 22px;
 height: 22px;
}

.calls-body {
 flex: 1;
 overflow-y: auto;
 padding-bottom: 88px;
}

.appels .section-title {
 font-size: 16px;
 font-weight: 700;
 padding: 4px 16px 8px;
}

.call-item {
 width: 100%;
 display: grid;
 grid-template-columns: 56px 1fr 42px;
 gap: 12px;
 align-items: center;
 padding: 10px 16px;
 text-align: left;
 cursor: pointer;
}

.call-item .preview {
 min-width: 0;
}

.call-item .title {
 font-weight: 500;
 font-size: 16px;
 color: #111;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.call-item .title.missed {
 color: #f15c6d;
}

.call-alias {
 font-size: 13.5px;
 color: #667781;
 margin-top: 1px;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.call-meta {
 display: flex;
 align-items: center;
 gap: 6px;
 margin-top: 2px;
 font-size: 13.5px;
 color: #667781;
}

.call-action {
 width: 42px;
 height: 42px;
 color: #667781;
 display: grid;
 place-items: center;
}

.call-action svg {
 width: 22px;
 height: 22px;
}

.call-sheet {
 position: absolute;
 inset: 0;
 background: #fff;
 z-index: 9;
 display: flex;
 flex-direction: column;
}

.call-sheet .field select,
.call-sheet input,
.call-sheet select {
 width: 100%;
 background: var(--bg-input);
 border: 1px solid transparent;
 border-radius: 8px;
 padding: 12px 14px;
 outline: none;
}

.pad-display {
 min-height: 72px;
 text-align: center;
 font-size: 32px;
 font-weight: 400;
 letter-spacing: 0.04em;
 padding: 18px 16px 8px;
}

.pad-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 12px 8px;
 padding: 8px 40px;
 justify-items: center;
}

.pad-key {
 width: 72px;
 height: 72px;
 border-radius: 50%;
 background: #f0f0f0;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 1px;
}

.pad-key strong {
 font-size: 28px;
 font-weight: 400;
 line-height: 1;
}

.pad-key small {
 font-size: 10px;
 letter-spacing: 0.16em;
 color: #667781;
}

.pad-actions {
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 28px;
 padding: 22px 16px 32px;
}

.pad-call {
 width: 64px;
 height: 64px;
 border-radius: 50%;
 background: var(--gold-bright);
 color: #fff;
 display: grid;
 place-items: center;
}

.call-overlay {
 position: absolute;
 inset: 0;
 background:
  radial-gradient(800px 400px at 50% 30%, rgba(201, 162, 39, 0.12), transparent),
  #111b21;
 color: #fff;
 z-index: 22;
 display: flex;
 flex-direction: column;
 min-height: 0;
}

.call-top {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 10px 12px 6px;
}

.call-who {
 flex: 1;
 min-width: 0;
 text-align: center;
}

.call-who strong {
 display: block;
 font-size: 17px;
 font-weight: 600;
}

.call-who span {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 4px;
 font-size: 12px;
 color: rgba(255, 255, 255, 0.7);
}

.call-who-phone,
.call-peer-phone {
 display: block;
 margin: 6px 0 0;
 font-size: 15px;
 font-weight: 500;
 letter-spacing: 0.02em;
 color: rgba(255, 255, 255, 0.92);
 font-style: normal;
}

.call-peer-phone {
 margin-top: 10px;
 text-align: center;
 font-size: 16px;
}

.call-who svg {
 width: 12px;
 height: 12px;
}

.call-round {
 width: 42px;
 height: 42px;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.12);
 color: #fff;
 display: grid;
 place-items: center;
 flex-shrink: 0;
}

.call-round.ghost {
 visibility: hidden;
 pointer-events: none;
}

.call-round.on {
 background: #fff;
 color: #111;
}

/* Barre d’appel réduit (comme WhatsApp) */
.call-pip {
 position: absolute;
 top: max(8px, env(safe-area-inset-top, 0px));
 left: 10px;
 right: 10px;
 z-index: 40;
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 8px;
 border-radius: 14px;
 background: #1f2c34;
 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.wa-shell.call-mini > .chat,
.wa-shell.call-mini > .wa-home,
.wa-shell.call-mini > .actus,
.wa-shell.call-mini > .calls-home {
 padding-top: 72px;
}

.call-pip-main {
 flex: 1;
 min-width: 0;
 display: flex;
 align-items: center;
 gap: 10px;
 text-align: left;
 color: #fff;
 background: transparent;
 border: 0;
 padding: 2px 4px;
}

.call-pip-who {
 flex: 1;
 min-width: 0;
 display: flex;
 flex-direction: column;
 gap: 2px;
}

.call-pip-who strong {
 font-size: 15px;
 font-weight: 600;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.call-pip-who span {
 font-size: 12px;
 color: #25d366;
}

.call-pip-ico {
 color: rgba(255, 255, 255, 0.75);
 flex-shrink: 0;
 display: grid;
 place-items: center;
}

.call-pip-hang {
 width: 42px;
 height: 42px;
 border-radius: 50%;
 background: #e11d48;
 color: #fff;
 display: grid;
 place-items: center;
 flex-shrink: 0;
 transform: rotate(135deg);
}

.call-stage {
 flex: 1;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 min-height: 0;
 padding: 8px 16px 12px;
}

.call-face .avatar,
.call-overlay .avatar.xl {
 width: 168px;
 height: 168px;
 font-size: 52px;
 border: 4px solid rgba(255, 255, 255, 0.12);
}

.call-timer {
 margin-top: 14px;
 font-size: 15px;
 color: rgba(255, 255, 255, 0.8);
}

.call-flash {
 margin-top: 6px;
 font-size: 13px;
 color: var(--gold-bright);
 text-align: center;
}

.call-videos {
 position: relative;
 width: 100%;
 flex: 1;
 min-height: 180px;
 display: grid;
 gap: 6px;
 background: #000;
 border-radius: 16px;
 overflow: hidden;
}

.call-videos.many {
 grid-template-columns: 1fr 1fr;
}

.call-videos .call-remote {
 width: 100%;
 height: 100%;
 object-fit: cover;
 background: #000;
}

.call-videos #call-local-video {
 position: absolute;
 right: 10px;
 bottom: 10px;
 width: 28%;
 max-width: 140px;
 aspect-ratio: 3 / 4;
 border-radius: 12px;
 object-fit: cover;
 z-index: 2;
 background: #111;
}

.call-local-hidden,
.call-overlay:not(.video) video.call-remote,
.call-overlay:not(.video) audio.call-remote-audio,
.call-persist-audio {
 position: fixed;
 left: 0;
 bottom: 0;
 width: 1px;
 height: 1px;
 opacity: 0.01;
 pointer-events: none;
 z-index: -1;
}

.call-pad {
 display: grid;
 grid-template-columns: 1fr 1fr 1fr;
 gap: 18px 10px;
 margin: 0 18px calc(18px + env(safe-area-inset-bottom));
 padding: 22px 16px 18px;
 background: #1c252c;
 border-radius: 28px;
}

.call-act {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 8px;
 color: #fff;
 background: transparent;
 font-size: 12px;
}

.call-ico {
 width: 56px;
 height: 56px;
 border-radius: 50%;
 background: #2a3942;
 color: #fff;
 display: grid;
 place-items: center;
}

.call-act svg {
 width: 24px;
 height: 24px;
}

.call-act span {
 max-width: 90px;
 line-height: 1.2;
 text-align: center;
}

.call-act.on .call-ico,
.call-act.warn .call-ico {
 background: #fff;
 color: #111;
}

.call-act.hang .call-ico {
 background: #ea0038;
 color: #fff;
}

.call-act.hang svg {
 transform: rotate(135deg);
}

.call-more,
.call-add-sheet {
 position: absolute;
 left: 12px;
 right: 12px;
 bottom: calc(132px + env(safe-area-inset-bottom));
 background: #fff;
 color: #111;
 border-radius: 16px;
 z-index: 24;
 overflow: hidden;
 max-height: 42%;
}

.call-more button,
.call-add-row {
 width: 100%;
 text-align: left;
 padding: 14px 18px;
 background: #fff;
 font-size: 16px;
}

.call-add-head {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 12px 14px;
}

.call-add-sheet {
 overflow-y: auto;
}

.call-add-row {
 display: flex;
 align-items: center;
 gap: 10px;
}

.hang-up {
 width: 64px;
 height: 64px;
 border-radius: 50%;
 background: #e53935;
 color: #fff;
 display: grid;
 place-items: center;
 transform: rotate(135deg);
 margin-top: 24px;
}

.appels .fab {
 bottom: 84px;
 border-radius: 16px;
 background: var(--gold-bright);
 color: #fff;
 box-shadow: 0 4px 10px rgba(11, 20, 26, 0.26);
}

.call-schedule-actions {
 display: flex;
 flex-direction: column;
 gap: 10px;
 margin-top: 16px;
}

.call-schedule-actions .btn-primary {
 margin-top: 0;
}

.call-schedule-actions .close-call-view {
 padding: 10px;
 color: #667781;
}

.status-view {
 position: relative;
 flex: 1;
 display: flex;
 flex-direction: column;
 background: #000;
 color: #fff;
 min-height: 0;
 overflow: hidden;
}

.status-progress {
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 z-index: 8;
 display: flex;
 gap: 4px;
 padding: 8px 10px 0;
}

.status-progress i {
 flex: 1;
 height: 3px;
 border-radius: 2px;
 background: rgba(255, 255, 255, 0.25);
 overflow: hidden;
 position: relative;
}

.status-progress i.done {
 background: #fff;
}

.status-progress i.on::after {
 content: "";
 position: absolute;
 inset: 0;
 background: #fff;
 transform: scaleX(0);
 transform-origin: left center;
 animation: statusFill var(--status-dur, 5s) linear forwards;
}

.status-view.paused .status-progress i.on::after {
 animation-play-state: paused;
}

@keyframes statusFill {
 from { transform: scaleX(0); }
 to { transform: scaleX(1); }
}

.status-view header {
 position: absolute;
 top: 16px;
 left: 0;
 right: 0;
 z-index: 8;
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 8px 4px 18px 4px;
 background: linear-gradient(rgba(0, 0, 0, 0.5), transparent);
}

.status-view header .icon-btn {
 color: #fff;
 flex-shrink: 0;
}

.status-view header .icon-btn:hover {
 background: rgba(255, 255, 255, 0.12);
 color: #fff;
}

.status-view .who {
 flex: 1;
 min-width: 0;
}

.status-view .who strong {
 display: block;
 font-size: 16px;
 font-weight: 500;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.status-view .who .status {
 font-size: 13px;
 font-weight: 400;
 opacity: 0.9;
 margin-top: 1px;
}

.status-menu {
 top: 52px;
 left: auto;
 right: 8px;
 width: 252px;
 min-width: 252px;
 border-radius: 12px;
 padding: 6px 0;
 z-index: 20;
}

.status-dock {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
 background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
}

.status-reply-bar {
 flex: 1;
 display: flex;
 align-items: center;
 gap: 4px;
 min-width: 0;
 background: #111;
 border-radius: 28px;
 padding: 4px 8px 4px 4px;
}

.status-reply-pill {
 flex: 1;
 text-align: left;
 color: #fff;
 font-size: 16px;
 padding: 12px 16px;
 background: transparent;
}

.status-emo {
 width: 42px;
 height: 42px;
 font-size: 24px;
 line-height: 1;
 display: grid;
 place-items: center;
 flex-shrink: 0;
}

.status-heart {
 width: 48px;
 height: 48px;
 border-radius: 50%;
 border: 1.5px solid rgba(255, 255, 255, 0.85);
 color: #fff;
 display: grid;
 place-items: center;
 flex-shrink: 0;
 background: transparent;
}

.status-heart svg {
 width: 22px;
 height: 22px;
}

.status-stage {
 position: relative;
 flex: 1;
 min-height: 0;
 overflow: hidden;
 background: #000;
 display: grid;
 place-items: center;
 padding: 0;
}

.status-stage.text-only {
 padding: 24px;
 background: #1a1408;
}

.status-stage.audio-only {
 background: #c9a227;
}

.status-audio-stage {
 position: relative;
 z-index: 1;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 16px;
 color: #fff;
 width: 100%;
 padding: 24px;
 box-sizing: border-box;
}

.status-audio-ico {
 width: 88px;
 height: 88px;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.16);
 display: grid;
 place-items: center;
}

.status-audio-ico svg {
 width: 36px;
 height: 36px;
}

.status-audio-dur {
 font-size: 15px;
 font-weight: 600;
 letter-spacing: 0.02em;
 margin: 0;
 color: rgba(255, 255, 255, 0.95);
}

.status-audio-screen {
 position: fixed;
 inset: 0;
 z-index: 80;
 display: flex;
 flex-direction: column;
 color: #fff;
 background: #c9a227;
}

.status-audio-top {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 8px;
}

.status-audio-round {
 width: 42px;
 height: 42px;
 border: 0;
 border-radius: 50%;
 background: rgba(0, 0, 0, 0.28);
 color: #fff;
 display: grid;
 place-items: center;
}

.status-audio-round svg {
 width: 20px;
 height: 20px;
}

.status-audio-stage-wrap {
 flex: 1;
 min-height: 0;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 18px;
 padding: 12px 20px 8px;
}

.status-audio-card,
.status-audio-view-card {
 display: flex;
 align-items: center;
 gap: 14px;
 width: min(92vw, 360px);
 padding: 14px 18px 14px 14px;
 border-radius: 18px;
 background: rgba(0, 0, 0, 0.18);
 box-sizing: border-box;
}

.status-audio-ava {
 position: relative;
 flex: 0 0 auto;
}

.status-audio-ava .avatar.lg {
 width: 64px;
 height: 64px;
 font-size: 22px;
}

.status-audio-mic-badge {
 position: absolute;
 right: -2px;
 bottom: -2px;
 width: 22px;
 height: 22px;
 border-radius: 50%;
 background: #fff;
 color: #111;
 display: grid;
 place-items: center;
 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.status-audio-mic-badge svg {
 width: 12px;
 height: 12px;
}

.status-audio-wave-col {
 flex: 1;
 min-width: 0;
 display: flex;
 flex-direction: column;
 gap: 8px;
}

.status-audio-timer {
 font-size: 14px;
 font-weight: 600;
}

.status-audio-dots {
 font-size: 22px;
 letter-spacing: 0.18em;
 line-height: 1;
 color: rgba(255, 255, 255, 0.85);
 white-space: nowrap;
 overflow: hidden;
}

.status-audio-wave {
 display: flex;
 align-items: flex-end;
 gap: 2px;
 height: 28px;
}

.status-audio-wave i {
 display: block;
 width: 3px;
 border-radius: 2px;
 background: rgba(255, 255, 255, 0.75);
}

.status-audio-wave.live i {
 background: rgba(255, 255, 255, 0.9);
 animation: voiceBar 0.9s ease-in-out infinite;
}

.status-audio-wave.live i:nth-child(2n) { animation-delay: 0.1s; }
.status-audio-wave.live i:nth-child(3n) { animation-delay: 0.2s; }
.status-audio-wave.live i:nth-child(5n) { animation-delay: 0.35s; }

.status-audio-colors {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 8px;
 max-width: 320px;
}

.status-audio-bottom.is-recording {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
}

.status-audio-rec-acts {
  width: 100%;
}

.status-audio-bottom {
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
 background: #0b0b0b;
}

.status-audio-tabs {
 flex: 1;
 min-width: 0;
 display: flex;
 align-items: center;
 gap: 4px;
 padding: 4px;
 border-radius: 999px;
 background: rgba(255, 255, 255, 0.08);
}

.status-audio-tabs button {
 flex: 1;
 border: 0;
 background: transparent;
 color: rgba(255, 255, 255, 0.72);
 font-size: 13px;
 font-weight: 600;
 padding: 10px 6px;
 border-radius: 999px;
}

.status-audio-tabs button.on {
 background: rgba(255, 255, 255, 0.18);
 color: #fff;
}

.status-audio-rec,
.status-audio-send {
 flex: 0 0 auto;
 width: 56px;
 height: 56px;
 border: 0;
 border-radius: 50%;
 background: #111;
 color: #fff;
 display: grid;
 place-items: center;
 box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.status-audio-rec svg,
.status-audio-send svg {
 width: 24px;
 height: 24px;
}

.status-audio-send {
 background: var(--gold, #c9a227);
 color: #111;
}

.status-audio-send:disabled {
 opacity: 0.55;
}

.status-blur {
 position: absolute;
 inset: -48px;
 background-size: cover;
 background-position: center;
 filter: blur(32px) saturate(1.15);
 transform: scale(1.08);
 opacity: 0.7;
 pointer-events: none;
}

.status-media {
 position: relative;
 z-index: 1;
 max-width: 100%;
 max-height: 100%;
 width: auto;
 height: auto;
 object-fit: contain;
 object-position: center;
 display: block;
}

.status-spin {
 position: absolute;
 z-index: 4;
 width: 34px;
 height: 34px;
 border: 3px solid rgba(255, 255, 255, 0.22);
 border-top-color: #fff;
 border-radius: 50%;
 animation: statusSpin 0.75s linear infinite;
 pointer-events: none;
}

@keyframes statusSpin {
 to { transform: rotate(360deg); }
}

.status-retry-btn {
 position: relative;
 z-index: 4;
 border: 0;
 border-radius: 999px;
 padding: 10px 18px;
 background: #c9a227;
 color: #1a1408;
 font-weight: 700;
 font-size: 14px;
}

.status-react-flash {
 position: absolute;
 left: 50%;
 bottom: 28%;
 z-index: 12;
 font-size: 72px;
 line-height: 1;
 transform: translateX(-50%);
 animation: statusReactFly 1.05s cubic-bezier(0.22, 0.82, 0.24, 1) both;
 pointer-events: none;
 filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

@keyframes statusReactFly {
 0% { transform: translateX(-50%) translateY(36px) scale(0.35); opacity: 0; }
 18% { transform: translateX(-50%) translateY(0) scale(1.2); opacity: 1; }
 55% { transform: translateX(-50%) translateY(-48px) scale(1.05); opacity: 1; }
 100% { transform: translateX(-50%) translateY(-140px) scale(0.75); opacity: 0; }
}

.status-stage p {
 font-size: 22px;
 text-align: center;
 line-height: 1.35;
 text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.chip.follow {
 background: #fff;
 color: #1a7a43;
 border: 1.5px solid var(--gold-bright);
 font-weight: 600;
 padding: 6px 14px;
}

.section-head .chip {
 background: #fff;
 border: 1.5px solid var(--gold);
 color: var(--gold-dark);
}

.explore-box {
 padding: 8px 0 24px;
 border-top: 1px solid #eee;
}

.explore-box h3 {
 padding: 12px 16px 4px;
 font-size: 18px;
 font-weight: 700;
}

.explore-lead {
 padding: 0 16px 10px;
 color: var(--text-muted);
 font-size: 13px;
 line-height: 1.4;
}

.explore-box .chat-item {
 align-items: center;
}

.channel-suggest-open {
 display: flex;
 align-items: center;
 gap: 12px;
 flex: 1;
 min-width: 0;
 border: 0;
 background: transparent;
 text-align: left;
 color: inherit;
 padding: 0;
 cursor: pointer;
}

.invite-card-who {
 display: block;
 width: 100%;
 border: 0;
 background: transparent;
 text-align: left;
 color: inherit;
 padding: 0;
 cursor: pointer;
}

.invite-card-who strong {
 display: block;
 font-size: 15px;
}

.channel-row .pin {
 color: var(--gold-dark);
 display: inline-flex;
}

.avatar.xl img,
.avatar.lg img,
.avatar.md img,
.avatar.wa img,
.avatar.status img,
.avatar img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: center;
 border-radius: 50%;
 display: block;
 background: inherit;
}

.info-hero {
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 padding: 12px 16px 8px;
 gap: 8px;
}

.info-hero .avatar.xl {
 width: 120px;
 height: 120px;
 font-size: 42px;
}

.info-hero strong {
 font-size: 22px;
 font-weight: 700;
 color: #111;
}

.info-hero .admin-pill {
 display: inline-block;
 margin-top: 2px;
}

.info-hero p {
 color: var(--text-muted);
 font-size: 15px;
}

.info-name {
 width: min(320px, 100%);
 text-align: center;
 font-size: 18px;
 font-weight: 600;
 border: none;
 border-bottom: 1px solid #eee;
 padding: 6px;
}

.info-screen .settings-list {
 flex: 1;
 min-height: 0;
 overflow-x: hidden;
 overflow-y: auto;
 -webkit-overflow-scrolling: touch;
 overscroll-behavior: contain;
}

.perm-row {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 12px 16px;
 gap: 12px;
}

.perm-opts {
 display: flex;
 gap: 6px;
}

.perm-opts button {
 border: 1px solid #e6e6e6;
 background: #fff;
 border-radius: 16px;
 padding: 6px 12px;
 font-size: 13px;
}

.perm-opts button.on {
 background: var(--gold);
 border-color: var(--gold);
 color: #111;
}

.chat-item.member-row {
 display: grid;
 grid-template-columns: 44px minmax(0, 1fr) auto;
 gap: 12px;
 align-items: center;
 flex-wrap: nowrap;
 padding: 9px 16px;
 background: #fff;
}

.chat-item.member-row .preview {
 padding-top: 0;
}

.chat-item.member-row .title {
 font-size: 16.5px;
 font-weight: 400;
 color: #111b21;
}

.chat-item.member-row .snippet {
 color: #667781;
 font-size: 14px;
}

.gm-ava {
 display: grid;
 place-items: center;
 width: 40px;
 height: 40px;
 flex-shrink: 0;
}

.gm-ava .avatar.sm {
 width: 40px;
 height: 40px;
}

.gm-ava.unseen,
.gm-ava.seen {
 padding: 2px;
 border-radius: 50%;
}

.gm-ava.unseen {
 background: var(--gold);
}

.gm-ava.seen {
 background: #cfcfcf;
}

.gm-ava.unseen .avatar.sm,
.gm-ava.seen .avatar.sm {
 width: 36px;
 height: 36px;
 font-size: 13px;
 border: 2px solid #fff;
}

.admin-pill {
 flex-shrink: 0;
 font-size: 11.5px;
 font-weight: 500;
 line-height: 1.2;
 color: var(--gold-dark);
 background: #f4ead0;
 border-radius: 14px;
 padding: 5px 10px;
 white-space: nowrap;
}

.gm-screen {
 background: #fff;
}

.gm-search-head {
 background: #fff !important;
 color: #111 !important;
 border-bottom: 1px solid #f0f0f0;
 gap: 0;
}

.gm-search-head .icon-btn {
 color: #54656f !important;
}

.gm-search-head .icon-btn:hover {
 background: #f5f6f6;
 color: #111 !important;
}

.gm-search {
 flex: 1;
 min-width: 0;
 padding-right: 12px;
}

.gm-search input {
 width: 100%;
 border: 0;
 background: transparent;
 font-size: 18px;
 color: #111;
 outline: none;
}

.gm-search input::placeholder {
 color: #667781;
}

.gm-list {
 padding: 4px 0 24px;
 background: #fff;
}

.section-title.gm-open {
 width: 100%;
 text-align: left;
}

.gm-see-all {
 display: block;
 width: 100%;
 padding: 14px 16px 18px;
 text-align: left;
 background: none;
 border: 0;
 color: #027a5a;
 font-size: 16px;
 font-weight: 500;
 cursor: pointer;
}

.gm-see-all:active {
 background: #f5f6f6;
}

.gm-list {
 flex: 1;
 min-height: 0;
 overflow-y: auto;
 -webkit-overflow-scrolling: touch;
}

.member-row .who-btn {
 display: flex;
 align-items: center;
 gap: 12px;
 flex: 1;
 min-width: 0;
 background: none;
 border: 0;
 text-align: left;
 padding: 0;
}

.member-acts {
 display: flex;
 gap: 8px;
 width: 100%;
 padding: 0 12px 8px 64px;
}

.member-acts button {
 border: 0;
 background: none;
 color: var(--gold);
 font-size: 13px;
 padding: 0;
}

.member-acts button.danger,
.settings-btn.danger,
.settings-row.danger,
.settings-row.danger strong,
.settings-row.danger .row-ic {
 color: #d32f2f;
}

.ch-follow-who {
 display: flex;
 align-items: center;
 gap: 10px;
 min-width: 0;
 flex: 1;
 background: none;
 border: 0;
 padding: 0;
 color: inherit;
 text-align: left;
 cursor: pointer;
}

.ch-follow-who .wa-sub {
 flex: 1;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.ch-follow-settings .settings-row {
 align-items: flex-start;
}

.ch-follow-settings .settings-row .wa-switch {
 margin-left: auto;
 flex-shrink: 0;
 margin-top: 2px;
}

.ch-follow-settings .settings-row .row-ic {
 flex-shrink: 0;
 margin-top: 2px;
}

.ch-follow-settings .settings-row > div:not(.row-ic) {
 flex: 1;
 min-width: 0;
}

.ch-solid-ic {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 background: #111;
 color: #fff;
 display: grid;
 place-items: center;
 flex-shrink: 0;
}

.ch-solid-ic svg {
 stroke: #fff;
 width: 20px;
 height: 20px;
}

.ch-admin-pill {
 font-size: 12px;
 line-height: 1;
 background: #e7fce3;
 color: #027a4c;
 padding: 5px 8px;
 border-radius: 4px;
 flex-shrink: 0;
}

/* Infos chaîne admin : une seule page scroll type WhatsApp */
.ch-admin-sheet {
 background: #fff;
}
.ch-admin-sheet .settings-list {
 background: #fff;
 overflow-y: auto;
 -webkit-overflow-scrolling: touch;
 flex: 1;
 min-height: 0;
}
.ch-admin-sheet .ch-follow-info-head .ch-info-compact {
 display: none;
}
.ch-admin-sheet .ch-follow-info-head.is-compact .ch-info-compact {
 display: flex;
}
.ch-admin-sheet .ch-follow-info-head.is-compact .ch-header-spacer {
 display: none;
}
.ch-admin-sheet .ch-hero-ring {
 box-shadow: 0 0 0 3px #c9a227;
}
.ch-admin-sheet .ch-solid-ic {
 background: #c9a227;
}
.ch-admin-sheet .ch-see-all strong {
 color: var(--gold-bright, #c9a227);
 font-weight: 600;
}
.ch-admin-sheet .ch-media-block {
 padding-bottom: 6px;
 border-bottom: 1px solid #e9edef;
 margin-bottom: 2px;
}
.ch-admin-sheet .ch-media-row {
 margin-bottom: 0;
 border-bottom: 0;
}
.ch-admin-sheet .ch-follow-count {
 background: transparent;
 margin-top: 2px;
 border-top: 1px solid #e9edef;
 padding-top: 16px;
}
.ch-media-strip {
 display: flex;
 gap: 6px;
 padding: 4px 16px 12px;
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 scrollbar-width: none;
}
.ch-media-strip::-webkit-scrollbar {
 display: none;
}
.ch-strip-tile {
 position: relative;
 flex: 0 0 72px;
 width: 72px;
 height: 72px;
 border-radius: 10px;
 overflow: hidden;
 border: 0;
 padding: 0;
 background: #f0f2f5;
 display: grid;
 place-items: center;
 color: #667781;
}
.ch-strip-tile img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}
.ch-strip-tile.link {
 text-decoration: none;
}
.ch-strip-dur {
 position: absolute;
 left: 6px;
 bottom: 5px;
 font-size: 11px;
 font-weight: 600;
 color: #fff;
 text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
 display: inline-flex;
 align-items: center;
 gap: 3px;
}
.ch-strip-dur svg {
 width: 12px;
 height: 12px;
 stroke: #fff;
}

.ch-invite-link-sheet .ch-invite-help {
 padding: 8px 16px 4px;
 margin: 0;
}
.ch-invite-link-sheet .settings-row .ch-solid-ic {
 background: #c9a227;
}

.ch-follow-count {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 14px 12px 6px 16px;
 color: #667781;
 font-size: 14.5px;
}

.ch-follow-count .icon-btn {
 color: #54656f;
}

.ch-follow-hint {
 padding: 8px 28px 18px;
 color: #667781;
 font-size: 14.5px;
 line-height: 1.45;
 text-align: center;
}

.ch-follow-settings .settings-row.ch-follower-row {
 align-items: center;
}

.ch-follower-row p {
 color: #667781;
 font-size: 13.5px;
 margin: 2px 0 0;
}

.ch-see-all {
 justify-content: center;
}

.ch-see-all strong {
 font-weight: 400;
}

.ch-header-spacer {
 flex: 1;
}

.ch-desc-name {
 font-weight: 700;
 font-size: 16px;
 margin: 0 0 6px;
}

.ch-stats-head {
 align-items: center;
}

.ch-stats-info {
 color: #667781;
 width: 32px;
 height: 32px;
}

.composer.locked {
 justify-content: center;
 color: var(--text-muted);
 font-size: 14px;
 padding: 14px 16px;
}
.composer.locked.left-forum {
 flex-direction: column;
 gap: 10px;
 text-align: center;
}
.left-forum-del {
 appearance: none;
 border: 0;
 background: transparent;
 color: #e53935;
 font: inherit;
 font-weight: 600;
 font-size: 14px;
 padding: 4px 8px;
 cursor: pointer;
}

.channel-chat {
 background: #efeae2;
 min-width: 0;
 max-width: 100%;
 overflow-x: hidden;
}

.ch-intro {
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 width: 100%;
 max-width: 100%;
 margin: 0 0 8px;
 padding: 22px 16px 18px;
 background: #fff;
 gap: 6px;
 color: #111;
 border: 0;
 box-sizing: border-box;
}
.ch-intro .avatar.xl {
 width: 96px;
 height: 96px;
 font-size: 36px;
 margin-bottom: 6px;
}
.ch-intro h2 {
 font-size: 22px;
 font-weight: 700;
 line-height: 1.2;
 color: #111;
 max-width: 100%;
 word-break: break-word;
}
.ch-intro-meta {
 font-size: 14px;
 color: #667781;
}
.ch-intro-desc {
 font-size: 14px;
 line-height: 1.4;
 color: #111;
 max-width: 36em;
}
.ch-intro-desc.muted {
 color: #667781;
}

.ch-feed-head {
 background: #fff;
 position: relative;
 color: #111;
}
.chat-header.ch-feed-head .icon-btn {
 color: #54656f;
}
.chat-header.ch-feed-head .icon-btn:hover {
 background: #f0f2f5;
 color: #111;
}
.chat-header.ch-feed-head .who-btn,
.chat-header.ch-feed-head strong {
 color: #111;
}
.chat-header.ch-feed-head .status {
 color: #667781;
}

.ch-head-photo {
 position: relative;
 display: inline-block;
}

.ch-plus {
 position: absolute;
 right: -2px;
 bottom: -2px;
 width: 14px;
 height: 14px;
 border-radius: 50%;
 background: var(--gold-bright);
 color: #fff;
 font-size: 11px;
 line-height: 14px;
 text-align: center;
 border: 2px solid #fff;
}

.ch-menu {
 right: 8px;
 top: 52px;
 z-index: 30;
 max-height: min(70vh, 480px);
 overflow-y: auto;
}

.ch-composer {
 background: #efeae2;
}

.ch-composer .composer-input {
 background: #ffffff;
}

.ch-composer textarea {
 background: transparent;
 border-radius: 0;
 padding: 12px 4px;
}

.ch-mic {
 width: 46px;
 height: 46px;
 border-radius: 50%;
 background: #111;
 color: #fff;
 display: grid;
 place-items: center;
 flex-shrink: 0;
}

.ch-photo,
.ch-photo-btn {
 width: 100%;
 max-height: 280px;
 object-fit: cover;
 border-radius: 8px;
 margin-bottom: 6px;
 display: block;
}

.ch-photo-btn {
 padding: 0;
 overflow: hidden;
}

.ch-photo-btn .ch-photo {
 margin: 0;
}

button.ch-photo.wait,
.ch-photo.wait {
 display: grid;
 place-items: center;
 gap: 6px;
 min-height: 180px;
 border: 0;
 padding: 24px 12px;
 color: #fff;
 background: linear-gradient(160deg, #2a2a2a, #111);
 cursor: pointer;
 font: inherit;
}

.ch-photo.wait span {
 font-size: 28px;
}

.ch-photo.wait em {
 font-style: normal;
 font-size: 12px;
 opacity: 0.85;
}

.ch-info-actions {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 padding: 8px 12px 18px;
 text-align: center;
}

.ch-info-actions.three {
 grid-template-columns: repeat(3, 1fr);
 max-width: 360px;
 margin: 0 auto;
}

.ch-info-actions.two {
 grid-template-columns: repeat(2, 1fr);
 max-width: 240px;
 margin: 0 auto;
}

.ch-info-actions.one {
 grid-template-columns: 1fr;
 max-width: 140px;
 margin: 0 auto;
}

.msg-phone,
.msg-link {
 color: #027eb5;
 background: none;
 border: 0;
 padding: 0;
 margin: 0;
 font: inherit;
 display: inline;
 cursor: pointer;
 text-align: left;
 text-decoration: none;
 word-break: break-all;
 touch-action: manipulation;
}

.invite-msg,
.link-card {
 touch-action: manipulation;
}

.bubble.mine .msg-phone,
.bubble.mine .msg-link {
 color: #027eb5;
}

.msg-phone:hover,
.msg-link:hover {
 text-decoration: underline;
}

.ch-stats-head {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 8px 16px 10px;
 gap: 8px;
}

.ch-stats-head > div {
 flex: 1;
 min-width: 0;
}

.ch-stats-head h3 {
 font-size: 16px;
 font-weight: 600;
 line-height: 1.25;
}

.ch-stats {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 10px;
 padding: 0 16px 16px;
}

.ch-stat {
 border: 1px solid #e9edef;
 border-radius: 16px;
 padding: 16px 14px;
}

.ch-stat strong {
 display: block;
 font-size: 22px;
 font-weight: 700;
 margin-bottom: 4px;
}

.ch-stat span {
 color: #667781;
 font-size: 14px;
}

.ch-fwd-label {
 display: inline-flex;
 align-items: center;
 gap: 4px;
 color: #667781;
 font-size: 12.5px;
 padding-left: 6px;
}

.ch-round {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 8px;
 font-size: 12px;
 color: #111;
}

.ch-round span {
 width: 52px;
 height: 52px;
 border-radius: 50%;
 border: 1px solid #e6e6e6;
 display: grid;
 place-items: center;
 color: #111;
}

.ch-round.on span {
 background: #f0f0f0;
}

.ch-desc {
 padding: 4px 16px 16px;
 font-size: 15px;
 line-height: 1.45;
}

.ch-admin-sheet .ch-desc {
 border-top: 1px solid #e9edef;
 margin-top: 4px;
 padding-top: 14px;
}

.ch-admin-sheet .ch-stats-head {
 padding-top: 4px;
}

.ch-admin-sheet .ch-follow-hint {
 border-top: 1px solid #e9edef;
 margin-top: 4px;
 padding-top: 16px;
}

.ch-desc .created,
.created {
 color: #667781;
 font-size: 13px;
 margin-top: 8px;
}

.see-more {
 color: var(--gold-bright);
 font-size: 14px;
 font-weight: 600;
 background: none;
 border: 0;
 padding: 0;
}

.see-more.inline {
 display: inline;
}

.link-card {
 display: block;
 margin-top: 8px;
 padding: 10px 12px;
 background: #f6f6f6;
 border-radius: 10px;
 color: #667781;
 text-decoration: none;
 font-size: 13px;
}
.link-card strong {
 display: block;
 margin-top: 2px;
 color: #111b21;
 font-size: 14px;
 font-weight: 600;
}

.link-host {
 display: inline-flex;
 align-items: center;
 gap: 6px;
}

.wa-switch {
 width: 44px;
 height: 26px;
 border-radius: 13px;
 background: #e0e0e0;
 position: relative;
 flex-shrink: 0;
}

.wa-switch::after {
 content: "";
 position: absolute;
 top: 2px;
 left: 2px;
 width: 22px;
 height: 22px;
 border-radius: 50%;
 background: #fff;
 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wa-switch.on {
 background: var(--gold-bright);
}

.wa-switch.on::after {
 left: 20px;
}

.settings-row .row-ic {
 width: 28px;
 color: #667781;
}

.muted-count {
 color: #667781;
 display: inline-flex;
 align-items: center;
 gap: 4px;
}

.react-pill,
.fwd-count {
 border: 1px solid #eee;
 background: #fff;
 border-radius: 14px;
 padding: 3px 8px;
 font-size: 13px;
 color: #54656f;
 display: inline-flex;
 align-items: center;
 gap: 4px;
}

.messages.channel-feed {
 padding: 10px 12px 16px;
 display: flex;
 flex-direction: column;
 gap: 14px;
 min-width: 0;
 max-width: 100%;
 overflow-x: hidden;
}

.channel-post,
.channel-post.in,
.channel-post.out {
 display: flex;
 flex-direction: column;
 align-items: center;
 width: 100%;
 gap: 6px;
 user-select: none;
 -webkit-user-select: none;
 touch-action: pan-y;
}

.channel-post.selected {
 background: rgba(0, 168, 132, 0.1);
 margin: 0 -12px;
 padding: 8px 12px;
 border-radius: 10px;
}

.channel-bubble,
.messages.channel-feed .bubble.mine.channel-bubble,
.messages.channel-feed .bubble.theirs.channel-bubble {
 width: min(92%, 100%);
 max-width: 100%;
 background: #fff;
 color: #111b21;
 border-radius: 10px;
 border-top-left-radius: 10px;
 border-top-right-radius: 10px;
}

.ch-quote,
.ch-reply-banner {
 display: flex;
 align-items: stretch;
 gap: 0;
 width: 100%;
 background: rgba(11, 20, 26, 0.06);
 border: 0;
 border-radius: 8px;
 padding: 0;
 margin: 0 0 6px;
 text-align: left;
 overflow: hidden;
 cursor: pointer;
}

.ch-quote-accent {
 width: 4px;
 flex-shrink: 0;
 background: var(--gold);
}

.ch-quote-copy {
 flex: 1;
 min-width: 0;
 padding: 6px 8px;
}

.ch-quote-copy strong,
.ch-reply-banner strong {
 display: block;
 font-size: 13px;
 color: var(--gold-dark);
 font-weight: 700;
}

.ch-quote-copy span,
.ch-reply-banner span {
 display: block;
 font-size: 13px;
 color: #667781;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.ch-quote-thumb {
 width: 52px;
 height: 52px;
 object-fit: cover;
 flex-shrink: 0;
}

.ch-quote-doc {
 width: 52px;
 display: grid;
 place-items: center;
 color: #667781;
 flex-shrink: 0;
}

.bubble.mine .ch-quote {
 background: rgba(0, 0, 0, 0.08);
}

.bubble.status-reply {
 min-width: 210px;
 max-width: min(86%, 320px);
 padding-top: 6px;
}

.bubble.status-reply .ch-quote.status-quote {
 margin-bottom: 4px;
}

.bubble .status-react-emo {
 font-size: 42px;
 line-height: 1.15;
 padding: 2px 8px 4px;
 margin: 0;
 display: flex;
 align-items: flex-end;
 justify-content: space-between;
 gap: 10px;
}

.bubble .status-react-emo .meta {
 font-size: 11px;
 align-self: flex-end;
 margin-left: auto;
 padding-left: 8px;
}

.voice-draft-bar {
 display: flex;
 align-items: center;
 gap: 8px;
 margin: 0 10px 6px;
 padding: 8px 10px;
 background: #fff8e7;
 border: 1px solid rgba(201, 162, 39, 0.35);
 border-radius: 14px;
 color: #5c4a12;
 font-size: 13px;
}
.voice-draft-bar span {
 flex: 1;
 min-width: 0;
}
.voice-draft-bar .send {
 width: 36px;
 height: 36px;
}
.voice-draft-bar .icon-btn,
.voice-draft-bar button {
 border: 0;
 background: transparent;
 color: inherit;
}

.composer-stack {
 flex: 1;
 min-width: 0;
 display: flex;
 flex-direction: column;
 background: #fff;
 border-radius: 16px;
 overflow: hidden;
}

.composer-stack .composer-input {
 background: transparent;
 border-radius: 0;
}

.ch-reply-banner {
 margin: 0;
 border-radius: 0;
 background: #f0f2f5;
 cursor: default;
}

.ch-reply-banner #clear-chat-reply {
 width: 36px;
 flex-shrink: 0;
 color: #667781;
 display: grid;
 place-items: center;
}

.doc-card {
 display: flex;
 align-items: center;
 gap: 10px;
 width: 100%;
 max-width: 260px;
 padding: 10px 12px;
 margin-bottom: 4px;
 background: rgba(11, 20, 26, 0.05);
 border: 0;
 border-radius: 10px;
 text-align: left;
 color: inherit;
}

.bubble.mine .doc-card {
 background: rgba(0, 0, 0, 0.06);
}

.doc-ic {
 width: 42px;
 height: 42px;
 border-radius: 10px;
 background: #c9a227;
 color: #111;
 display: grid;
 place-items: center;
 position: relative;
 flex-shrink: 0;
}

.doc-ic i {
 position: absolute;
 bottom: 2px;
 font-size: 8px;
 font-style: normal;
 font-weight: 800;
}

.doc-meta {
 min-width: 0;
}

.doc-meta strong {
 display: block;
 font-size: 14px;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.doc-meta em {
 display: block;
 font-size: 12px;
 font-style: normal;
 color: #667781;
}

.doc-card {
 cursor: pointer;
 -webkit-tap-highlight-color: transparent;
}

.doc-viewer {
 position: absolute;
 inset: 0;
 z-index: 60;
 display: flex;
 flex-direction: column;
 background: #0b141a;
 color: #fff;
}

.doc-viewer-head {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 8px 10px;
 padding-top: max(8px, env(safe-area-inset-top, 0px));
 background: #1f2c34;
}

.doc-viewer-head .icon-btn {
 color: #fff;
}

.doc-viewer-title {
 flex: 1;
 min-width: 0;
}

.doc-viewer-title strong {
 display: block;
 font-size: 15px;
 font-weight: 600;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.doc-viewer-body {
 flex: 1;
 min-height: 0;
 display: grid;
 place-items: center;
 background: #0b141a;
 overflow: auto;
}

.doc-viewer-img {
 max-width: 100%;
 max-height: 100%;
 object-fit: contain;
}

.doc-viewer-frame {
 width: 100%;
 height: 100%;
 border: 0;
 background: #fff;
}

.doc-viewer-empty {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 12px;
 padding: 28px 22px;
 text-align: center;
}

.doc-viewer-empty p {
 color: #aebac1;
 font-size: 14px;
 max-width: 280px;
}

.doc-viewer-empty .btn-primary {
 margin-top: 4px;
}

.swipe-reply-ic {
 position: absolute;
 left: -4px;
 top: 50%;
 transform: translate(-12px, -50%);
 opacity: 0;
 color: #54656f;
 pointer-events: none;
}

.bubble-row {
 position: relative;
}

.bubble-row.swiping .swipe-reply-ic {
 opacity: 1;
}

.chat-header.select-mode {
 background: var(--bg-header);
}

.chat-header.select-mode .wa-sub {
 flex: 1;
 font-size: 20px;
 color: #fff;
 margin: 0;
}

.bubble-row.selecting,
.bubble-row.picked {
 background: transparent;
 margin-left: -8px;
 margin-right: -8px;
 padding-left: 8px;
 padding-right: 8px;
}

.bubble-row.picked {
 background: rgba(53, 120, 229, 0.18);
 border-radius: 0;
}
.bubble-row.picked .bubble.sticker-only {
 position: relative;
}
.bubble-row.picked .bubble.sticker-only::after {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: 12px;
 background: rgba(37, 211, 102, 0.28);
 pointer-events: none;
 z-index: 2;
}
.bubble-row.picked .bubble.sticker-only::before {
 content: "✓";
 position: absolute;
 left: 50%;
 top: 42%;
 transform: translate(-50%, -50%);
 width: 36px;
 height: 36px;
 border-radius: 10px;
 background: #25d366;
 color: #fff;
 font-size: 22px;
 font-weight: 700;
 line-height: 36px;
 text-align: center;
 z-index: 3;
 pointer-events: none;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.msg-check {
 display: none !important;
}

.msg-select-more {
 right: 8px;
 top: 48px;
}

.chat-header.select-mode {
 position: relative;
}

.chat-header.select-mode .icon-btn.on {
 color: var(--gold-bright);
}

.bubble.deleted,
.deleted-msg {
 font-style: italic;
 color: #667781;
}

.msg-delete-sheet {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 8;
 background: #fff;
 border-radius: 16px 16px 0 0;
 box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
 padding: 8px 0 calc(12px + env(safe-area-inset-bottom));
 display: flex;
 flex-direction: column;
}

.msg-delete-sheet button {
 padding: 14px 20px;
 text-align: left;
 font-size: 16px;
 background: transparent;
}

.msg-delete-sheet button[data-del-scope] {
 color: #e53935;
}

.section.chat,
.chat {
 position: relative;
}

.emoji-sticker-tab {
 flex: 0 0 auto;
 display: flex;
 align-items: center;
 gap: 6px;
 padding: 8px 12px !important;
 font-size: 13px !important;
 background: #c9a227 !important;
 color: #111 !important;
 border-radius: 16px;
}

.ch-select-head {
 background: #fff;
 gap: 4px;
}

.ch-select-head strong {
 flex: 1;
 font-size: 18px;
}

.channel-post-meta {
 display: flex;
 justify-content: flex-end;
 align-items: center;
 gap: 8px;
 margin-top: 4px;
 font-size: 11px;
 color: var(--gold-dark);
}

.ch-views {
 display: inline-flex;
 align-items: center;
 gap: 3px;
}

.channel-post-acts,
.ch-fwd-label {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 6px;
 width: min(92%, 440px);
 max-width: 92%;
 box-sizing: border-box;
 padding-left: 4px;
}

.react-chip,
.react-add,
.post-del {
 border: 1px solid #eee;
 background: #fff;
 border-radius: 14px;
 padding: 3px 8px;
 font-size: 13px;
 color: #54656f;
}

.react-chip.on {
 background: var(--sent);
 border-color: var(--gold);
}

.post-del {
 color: #d32f2f;
 border-color: transparent;
 background: none;
 padding: 3px 4px;
}

.react-bar {
 display: flex;
 align-items: center;
 gap: 2px;
 background: #fff;
 border: 1px solid #e9edef;
 border-radius: 24px;
 padding: 5px 6px;
 box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.react-bar button {
 font-size: 22px;
 line-height: 1;
 padding: 4px 5px;
 background: transparent;
 border: 0;
}

.react-bar button.on {
 background: var(--gold-soft);
 border-radius: 50%;
}

.react-bar .react-more,
.msg-react-float .react-more {
 width: 30px;
 height: 30px;
 padding: 0;
 border-radius: 50%;
 background: #e9edef;
 color: #54656f;
 display: grid;
 place-items: center;
 flex: 0 0 auto;
}

.react-bar .react-more span,
.msg-react-float .react-more span {
 font-size: 20px;
 font-weight: 500;
 line-height: 1;
 color: #54656f;
}

.msg-react-float {
 position: absolute;
 z-index: 20;
 display: flex;
 align-items: center;
 gap: 1px;
 background: #fff;
 border: 1px solid #e9edef;
 border-radius: 28px;
 padding: 6px 7px;
 box-shadow: 0 6px 20px rgba(11, 20, 26, 0.22);
 pointer-events: auto;
}

.msg-react-float button {
 font-size: 24px;
 line-height: 1;
 padding: 4px 5px;
 background: transparent;
 border: 0;
}

.msg-react-float button.on {
 background: #f0f2f5;
 border-radius: 50%;
}

.bubble-stack {
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 max-width: min(78%, 720px);
 min-width: 0;
}

.bubble-stack .bubble {
 max-width: 100%;
}

.bubble-row.mine .bubble-stack {
 align-items: flex-end;
}

.msg-react-bar {
 margin: 0 0 6px;
 z-index: 3;
}

.msg-reacts {
 display: flex;
 flex-wrap: wrap;
 gap: 4px;
 margin-top: -10px;
 padding: 0 2px;
 position: relative;
 z-index: 2;
}

.bubble-row.mine .msg-reacts {
 justify-content: flex-end;
}

.msg-react-pill {
 border: 1px solid #e9edef;
 background: #fff;
 border-radius: 14px;
 padding: 3px 8px;
 font-size: 15px;
 line-height: 1.25;
 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.msg-react-pill.on {
 border-color: #d1d7db;
 background: #fff;
}

.msg-react-backdrop {
 position: absolute;
 inset: 0;
 z-index: 14;
 background: rgba(11, 20, 26, 0.32);
}

.msg-react-emoji-sheet,
.msg-react-detail-sheet {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 15;
 background: #fff;
 border-radius: 18px 18px 0 0;
 box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
 padding: 4px 0 calc(12px + env(safe-area-inset-bottom));
 max-height: 62%;
 display: flex;
 flex-direction: column;
}

.msg-react-emoji-sheet h3,
.msg-react-detail-sheet h3 {
 font-size: 18px;
 font-weight: 700;
 padding: 4px 16px 10px;
}

.msg-react-emoji-grid {
 display: grid;
 grid-template-columns: repeat(8, 1fr);
 gap: 2px;
 padding: 0 8px 8px;
 overflow-y: auto;
 -webkit-overflow-scrolling: touch;
}

.msg-react-emoji-btn {
 font-size: 26px;
 line-height: 1.2;
 padding: 8px 2px;
 background: transparent;
 border: 0;
 border-radius: 10px;
}

.msg-react-emoji-btn:active {
 background: #f0f2f5;
}

.msg-react-tabs {
 display: flex;
 gap: 8px;
 padding: 0 16px 12px;
 overflow-x: auto;
}

.msg-react-tab {
 flex: 0 0 auto;
 border: 0;
 background: #f0f2f5;
 border-radius: 18px;
 padding: 6px 12px;
 font-size: 15px;
 line-height: 1.2;
 color: #111;
}

.msg-react-tab.on {
 background: #dcf8c6;
}

.msg-react-tab.add {
 width: 40px;
 height: 34px;
 padding: 0;
 display: grid;
 place-items: center;
}

.msg-react-tab-add-ic {
 font-size: 16px;
}

.msg-react-people {
 overflow-y: auto;
 padding: 0 8px 8px;
 -webkit-overflow-scrolling: touch;
}

.msg-react-person {
 display: flex;
 align-items: center;
 gap: 12px;
 width: 100%;
 text-align: left;
 padding: 10px 8px;
 background: transparent;
 border: 0;
 border-radius: 10px;
 color: #111;
}

.msg-react-person.mine:active {
 background: #f0f2f5;
}

.msg-react-person:disabled {
 opacity: 1;
}

.msg-react-person-text {
 flex: 1;
 min-width: 0;
 display: flex;
 flex-direction: column;
 gap: 2px;
}

.msg-react-person-text strong {
 font-size: 16px;
 font-weight: 600;
}

.msg-react-person-text span {
 font-size: 13px;
 color: #667781;
}

.msg-react-person-emo {
 font-size: 22px;
 line-height: 1;
}

.msg-react-empty {
 padding: 20px 16px;
 color: #667781;
 font-size: 14px;
 text-align: center;
}

.invite-box {
 padding: 0 0 8px;
}

.invite-card {
 margin: 0 16px 10px;
 padding: 12px;
 border: 1px solid #eee;
 border-radius: 12px;
 display: flex;
 flex-direction: column;
 gap: 10px;
}

.invite-card.owner {
 border-color: var(--gold);
 background: #fffbeb;
}

.invite-card p {
 color: #667781;
 font-size: 13px;
 margin-top: 2px;
}

.invite-acts {
 display: flex;
 gap: 8px;
}

.status-reply {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
 background: rgba(0, 0, 0, 0.55);
}

.status-reply input {
 flex: 1;
 border: 0;
 border-radius: 24px;
 padding: 12px 16px;
 background: #111;
 color: #fff;
}

.status-reply input::placeholder {
 color: rgba(255, 255, 255, 0.7);
}

.status-reply .send {
 background: var(--gold-bright);
 color: #fff;
}

.status-views {
 text-align: center;
 padding: 10px;
 color: #fff;
 background: rgba(0, 0, 0, 0.35);
}

.comm-empty h2 {
 font-size: 18px;
 margin: 8px 0;
}

.comm-empty-state {
 flex: 1;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 padding: 24px 28px 40px;
 text-align: center;
 overflow: auto;
}

.comm-empty-state h2 {
 font-size: 20px;
 font-weight: 600;
 color: #111b21;
 margin: 18px 0 10px;
}

.comm-empty-state > p {
 color: #667781;
 font-size: 14.5px;
 line-height: 1.45;
 max-width: 340px;
 margin: 0 0 8px;
}

.comm-illu {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 10px;
 width: 168px;
 margin: 0 auto;
}

.comm-illu-card {
 aspect-ratio: 1;
 border-radius: 18px;
 background: #f3e4a8;
 color: var(--gold-dark);
 display: grid;
 place-items: center;
 font-size: 22px;
 font-weight: 700;
}

.comm-illu-card svg {
 width: 28px;
 height: 28px;
 fill: currentColor;
 color: var(--gold-dark);
}

.comm-illu-card.mega {
 background: #e8f5e9;
 color: #2e7d32;
}

.comm-illu-card.calc {
 background: #e3f2fd;
 color: #1565c0;
}

.comm-wide-btn {
 width: min(100%, 320px);
 margin-top: 18px;
 border-radius: 24px;
 padding: 14px 20px;
 font-size: 16px;
 font-weight: 600;
}

.comm-intro {
 height: 100%;
 background: #fff;
 display: flex;
 flex-direction: column;
}

.comm-intro-top {
 display: flex;
 align-items: center;
 padding: 8px 8px 0;
}

.comm-intro-body {
 flex: 1;
 overflow: auto;
 padding: 24px 28px 16px;
 text-align: center;
}

.comm-intro-body h1 {
 font-size: 22px;
 font-weight: 600;
 color: #111b21;
 margin: 22px 0 12px;
}

.comm-intro-body > p {
 color: #667781;
 font-size: 15px;
 line-height: 1.45;
 margin: 0 0 12px;
}

.comm-intro-foot {
 padding: 12px 24px calc(18px + env(safe-area-inset-bottom, 0px));
}

.comm-creating-overlay {
 position: absolute;
 inset: 0;
 background: rgba(17, 27, 33, 0.35);
 display: grid;
 place-items: center;
 z-index: 20;
}

.comm-creating-card {
 background: #fff;
 border-radius: 16px;
 padding: 28px 32px;
 min-width: 220px;
 text-align: center;
 box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.comm-creating-card p {
 margin: 16px 0 0;
 font-size: 15px;
 font-weight: 500;
 color: #111b21;
}

.comm-creating-spin {
 width: 42px;
 height: 42px;
 margin: 0 auto;
 border-radius: 50%;
 border: 3px solid #f3e4a8;
 border-top-color: var(--gold);
 animation: comm-spin 0.8s linear infinite;
}

@keyframes comm-spin {
 to { transform: rotate(360deg); }
}

.comm-home {
 display: flex;
 flex-direction: column;
 background: #f0f2f5;
}

.comm-home-body {
 flex: 1;
 overflow: auto;
 padding: 8px 0 96px;
 background: #f0f2f5;
}

.comm-home-hero {
 display: flex;
 align-items: center;
 gap: 12px;
 margin: 0 0 8px;
 padding: 14px 16px;
 background: #fff;
}

.comm-home-name {
 display: block;
 font-size: 17px;
 font-weight: 600;
 color: #111b21;
 line-height: 1.25;
}

.comm-home .info-hero strong,
.comm-home strong {
 font-size: inherit;
 font-weight: inherit;
}

.comm-home-meta {
 color: #667781;
 font-size: 13.5px;
 margin-top: 2px;
 font-weight: 400;
}

.comm-section-label {
 font-size: 13px;
 font-weight: 500;
 color: #667781;
 padding: 10px 16px 6px;
 margin: 0;
}

.comm-home-hint {
 color: #8696a0;
 font-size: 13px;
 line-height: 1.4;
 padding: 4px 16px 12px;
 margin: 0;
 font-weight: 400;
}

.comm-members-link {
 display: block;
 width: 100%;
 text-align: left;
 background: #fff;
 border: 0;
 border-top: 1px solid #e9edef;
 padding: 14px 16px;
 margin-top: 8px;
 color: #667781;
 font-size: 14.5px;
 font-weight: 400;
}

.comm-home-foot {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 0;
 padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
 background: #fff;
 border-top: 1px solid #e9edef;
}

.comm-home-foot .comm-wide-btn {
 width: 100%;
 margin-top: 0;
}

.comm-info-menu {
 right: 8px;
 top: 48px;
}

.comm-add-forum,
.comm-edit-box {
 margin: 8px 16px 20px;
 padding: 12px;
 background: #fff;
 border-radius: 12px;
}

.comm-home .comm-group {
 background: #fff;
 margin: 0;
 padding-left: 16px;
 border: 0;
 border-radius: 0;
}

.comm-home .comm-group .title {
 font-size: 16px;
 font-weight: 500;
}

.empty-ico {
 color: var(--gold);
 margin-bottom: 8px;
}

.comm-logo.lg {
 width: 56px;
 height: 56px;
 border-radius: 12px;
 display: grid;
 place-items: center;
 font-size: 20px;
 color: #fff;
 overflow: hidden;
 flex-shrink: 0;
}

.comm-logo.lg img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

@media (max-width: 860px) {
 .messages {
 padding: 12px 12px 8px;
 }

 .bubble {
 max-width: 88%;
 }
}

.se {
 position: relative;
 flex: 1;
 display: flex;
 flex-direction: column;
 background: #000;
 color: #fff;
 min-height: 0;
}

.se-top {
 position: relative;
 z-index: 8;
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 8px 10px 6px;
 gap: 10px;
 pointer-events: auto;
}

.se-tools {
 display: flex;
 gap: 8px;
 overflow-x: auto;
 flex-shrink: 1;
 max-width: 100%;
}

.se-round {
 width: 42px;
 height: 42px;
 border-radius: 50%;
 background: rgba(30, 30, 30, 0.92);
 color: #fff;
 display: grid;
 place-items: center;
 flex-shrink: 0;
 pointer-events: auto;
 position: relative;
 z-index: 2;
}

.se-round.on {
 background: #fff;
 color: #111;
}

.se-aa {
 font-size: 15px;
 font-weight: 700;
 letter-spacing: -0.4px;
}

.se-stage {
 flex: 1;
 display: flex;
 flex-direction: column;
 min-height: 0;
 align-items: stretch;
}

.se-media-wrap {
 position: relative;
 flex: 1;
 min-height: 0;
 overflow: hidden;
 background: #000;
 display: grid;
 place-items: center;
 container-type: size;
 touch-action: none;
}

.se-blur {
 position: absolute;
 inset: -48px;
 background-size: cover;
 background-position: center;
 filter: blur(32px) saturate(1.15);
 transform: scale(1.08);
 opacity: 0.65;
 pointer-events: none;
}

.se-media {
 position: relative;
 z-index: 1;
 max-width: 100%;
 max-height: 100%;
 width: auto;
 height: auto;
 object-fit: contain;
 object-position: center;
 display: block;
}

/* Premier reflet vidéo (WebView : <video> reste souvent noir tant que non lu) */
.se-vid-still {
 z-index: 2;
 pointer-events: none;
}
#se-preview-video.se-media {
 z-index: 1;
}

.se-media-wrap.deg90 .se-media,
.se-media-wrap.deg270 .se-media {
 max-width: 100cqh;
 max-height: 100cqw;
}

.se-draw,
.se-draw-img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: contain;
 z-index: 2;
}

.se-draw {
 z-index: 5;
 touch-action: none;
 object-fit: fill;
}

.se.drawing .se-draw {
 cursor: crosshair;
}

.se-draw-img {
 z-index: 2;
 pointer-events: none;
}

.se.drawing {
 background: #000;
}

.se.drawing .se-stage {
 padding: 0;
}

.se.drawing .se-media-wrap {
 border-radius: 0;
}

.se-draw-top {
 display: flex;
 align-items: flex-start;
 justify-content: space-between;
 gap: 12px;
 padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 8px;
 position: relative;
 z-index: 12;
}

.se-draw-done {
 border: 0;
 border-radius: 999px;
 background: rgba(255, 255, 255, 0.16);
 color: #fff;
 font-size: 15px;
 font-weight: 600;
 padding: 10px 16px;
}

.se-draw-top-actions {
 display: flex;
 align-items: flex-start;
 gap: 10px;
}

.se-draw-pen-col {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 10px;
}

.se-draw-pen.on {
 background: var(--draw-ink, #34c759);
 color: #111;
}

.se-draw-spectrum {
 position: relative;
 width: 28px;
 height: min(42vh, 280px);
 border-radius: 999px;
 padding: 4px 0;
 display: flex;
 flex-direction: column;
 gap: 0;
 overflow: hidden;
 background: linear-gradient(
  180deg,
  #ffffff 0%,
  #ff3b30 10%,
  #ff9500 22%,
  #ffcc00 34%,
  #34c759 46%,
  #00c7be 56%,
  #007aff 68%,
  #5856d6 80%,
  #af52de 90%,
  #ff2d55 100%
 );
 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
 touch-action: none;
}

.se-draw-spectrum.dim {
 opacity: 0.35;
 pointer-events: none;
}

.se-draw-swatch {
 flex: 1;
 width: 100%;
 border: 0;
 background: transparent !important;
 opacity: 0;
 padding: 0;
 min-height: 12px;
}

.se-draw-knob {
 position: absolute;
 left: 50%;
 top: var(--knob, 50%);
 width: 18px;
 height: 18px;
 border-radius: 50%;
 transform: translate(-50%, -50%);
 border: 2px solid #fff;
 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
 pointer-events: none;
}

.se-draw-brushes {
 display: flex;
 align-items: center;
 justify-content: space-evenly;
 gap: 8px;
 padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
 background: #0b0b0b;
 position: relative;
 z-index: 12;
}

.se-draw-brush {
 width: 56px;
 height: 56px;
 border: 0;
 border-radius: 50%;
 background: transparent;
 color: rgba(255, 255, 255, 0.88);
 display: grid;
 place-items: center;
}

.se-draw-brush.on {
 background: rgba(255, 255, 255, 0.16);
 color: #fff;
}

.se-draw-brush svg {
 display: block;
}

.se-filters-btn {
 color: #fff;
 font-size: 16px;
 padding: 10px 0 8px;
 background: transparent;
}

.se-caption-row {
 position: relative;
 z-index: 8;
 display: flex;
 align-items: center;
 gap: 8px;
 margin: 4px 12px 8px;
 background: #1a1a1a;
 border-radius: 24px;
 padding: 4px 6px 4px 14px;
 pointer-events: auto;
}

.se-caption-row input {
 flex: 1;
 border: 0;
 background: transparent;
 color: #fff;
 padding: 10px 0;
 outline: none;
}

.se-caption-row input::placeholder {
 color: rgba(255, 255, 255, 0.55);
}

.se-at {
 width: 36px;
 height: 36px;
 border-radius: 50%;
 color: #fff;
 font-size: 18px;
 font-weight: 600;
}

.se-bottom {
 position: relative;
 z-index: 8;
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 6px 14px calc(12px + env(safe-area-inset-bottom));
 pointer-events: auto;
}

.se-privacy {
 color: #fff;
 font-size: 15px;
 background: transparent;
}

.se-send {
 width: 52px;
 height: 52px;
 border-radius: 50%;
 background: var(--gold);
 color: #fff;
 display: grid;
 place-items: center;
 pointer-events: auto;
 position: relative;
 z-index: 2;
}

.se-send:disabled {
 opacity: 0.5;
}

.se-sending-mask {
 position: absolute;
 inset: 0;
 z-index: 40;
 display: grid;
 place-items: center;
 background: rgba(0, 0, 0, 0.55);
 color: #fff;
 font-size: 16px;
 font-weight: 600;
 pointer-events: all;
}

.se-sheet {
 display: flex;
 flex-wrap: wrap;
 gap: 6px;
 padding: 8px 12px;
 background: rgba(0, 0, 0, 0.55);
}

.se-sheet button {
 background: #2a2a2a;
 color: #fff;
 border-radius: 18px;
 padding: 8px 12px;
 font-size: 14px;
}

.se-sheet button.on {
 background: #fff;
 color: #111;
}

.se-sheet.stickers button {
 font-size: 26px;
 background: transparent;
 padding: 4px;
}

.se-filters {
 display: flex;
 gap: 8px;
 overflow-x: auto;
 padding: 8px 12px;
}

.se-filters button {
 flex-shrink: 0;
 background: #2a2a2a;
 color: #fff;
 border-radius: 16px;
 padding: 8px 14px;
}

.se-filters button.on {
 background: #fff;
 color: #111;
}

.se-colors {
 display: flex;
 justify-content: center;
 gap: 10px;
 padding: 8px;
}

.se-dot {
 width: 22px;
 height: 22px;
 border-radius: 50%;
 border: 2px solid rgba(255, 255, 255, 0.35);
}

.se-dot.on {
 outline: 2px solid #fff;
 outline-offset: 2px;
}

.se-privacy-note {
 color: #ddd;
 font-size: 14px;
 padding: 4px 8px;
}

.st-overlay {
 position: absolute;
 z-index: 4;
 transform: translate(-50%, -50%);
 cursor: grab;
 max-width: none;
 text-align: center;
 text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
 touch-action: none;
}

.st-handle {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #c9a227;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  z-index: 7;
  cursor: nwse-resize;
  touch-action: none;
  opacity: 0.35;
}

.st-overlay.on .st-handle {
  opacity: 1;
}

.st-handle.st-rotate {
  right: -8px;
  top: -8px;
  bottom: auto;
  cursor: grab;
  background: #c9a227;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

.st-handle.st-resize-x {
  right: -8px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.st-handle.st-resize-y {
  right: auto;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.st-overlay.shape.on,
.st-overlay.sticker.on {
  outline: 1px dashed rgba(255, 255, 255, 0.55);
  outline-offset: 6px;
}

.se.cropping {
  background: #000;
}

.se.cropping .st-overlay,
.se.cropping .se-music-chip {
  visibility: hidden;
  pointer-events: none;
}

.se.cropping .se-stage {
  padding: 0;
}

.se.cropping .se-media-wrap {
  touch-action: none;
  cursor: grab;
  background: #000;
  border-radius: 0;
}

.se.cropping .se-media {
  max-width: 100%;
  max-height: 100%;
}

.se-crop-frame {
  position: absolute;
  z-index: 6;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
  touch-action: none;
}

.se-crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.85) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.85) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(to right, transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.85) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.85) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.85) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.85) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(to bottom, transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.85) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.85) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}

.se-crop-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
}

.se-crop-corner::before,
.se-crop-corner::after {
  content: "";
  position: absolute;
  background: #fff;
}

.se-crop-corner.tl { left: -2px; top: -2px; cursor: nwse-resize; }
.se-crop-corner.tr { right: -2px; top: -2px; cursor: nesw-resize; }
.se-crop-corner.bl { left: -2px; bottom: -2px; cursor: nesw-resize; }
.se-crop-corner.br { right: -2px; bottom: -2px; cursor: nwse-resize; }

.se-crop-corner.tl::before,
.se-crop-corner.tr::before,
.se-crop-corner.bl::before,
.se-crop-corner.br::before {
  height: 3.5px;
  width: 18px;
}

.se-crop-corner.tl::after,
.se-crop-corner.tr::after,
.se-crop-corner.bl::after,
.se-crop-corner.br::after {
  width: 3.5px;
  height: 18px;
}

.se-crop-corner.tl::before { left: 0; top: 0; }
.se-crop-corner.tl::after { left: 0; top: 0; }
.se-crop-corner.tr::before { right: 0; top: 0; }
.se-crop-corner.tr::after { right: 0; top: 0; }
.se-crop-corner.bl::before { left: 0; bottom: 0; }
.se-crop-corner.bl::after { left: 0; bottom: 0; }
.se-crop-corner.br::before { right: 0; bottom: 0; }
.se-crop-corner.br::after { right: 0; bottom: 0; }

.se-crop-mid {
  position: absolute;
  z-index: 2;
  background: #fff;
}

.se-crop-mid.t,
.se-crop-mid.b {
  left: 50%;
  width: 18px;
  height: 3.5px;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.se-crop-mid.l,
.se-crop-mid.r {
  top: 50%;
  width: 3.5px;
  height: 18px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.se-crop-mid.t { top: -2px; }
.se-crop-mid.b { bottom: -2px; }
.se-crop-mid.l { left: -2px; }
.se-crop-mid.r { right: -2px; }

.se-crop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #0b0b0b;
  color: #25d366;
  font-size: 17px;
  font-weight: 600;
}

.se-crop-bar button {
  background: transparent;
  border: 0;
  color: #25d366;
  font-size: 17px;
  font-weight: 600;
  padding: 8px 4px;
  min-width: 72px;
}

.se-crop-bar .se-crop-rotate {
  min-width: 48px;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 6px;
}

.se-crop-bar .se-crop-rotate svg {
  width: 26px;
  height: 26px;
}

.se-fonts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 12px 2px;
}

.se-font {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 7px 12px;
  font-size: 13px;
}

.se-font.on {
  background: #c9a227;
  color: #111;
  border-color: #c9a227;
}

.st-overlay.sticker {
 font-size: 56px;
 background: none;
 line-height: 1;
}

.st-overlay.sticker.img {
 padding: 0;
 background: none;
}

.st-overlay.sticker.img img {
 width: 88px;
 height: 88px;
 display: block;
 pointer-events: none;
}

.st-overlay.shape {
 padding: 0;
 background: none;
}

.st-overlay.shape .shape-box {
 width: 88px;
 height: 88px;
 display: block;
}

.st-overlay.shape .shape-svg {
 width: 100%;
 height: 100%;
 display: block;
 pointer-events: none;
 overflow: visible;
}

.st-overlay.text {
 font-weight: 700;
 line-height: 1.2;
}

.st-overlay.on .st-overlay-text {
 outline: 1px dashed rgba(255, 255, 255, 0.7);
}

.st-overlay-text {
 min-width: 8ch;
 outline: none;
}

.st-overlay-text:empty::before {
 content: attr(data-placeholder);
 opacity: 0.55;
 font-weight: 600;
}

.st-overlay.view {
 pointer-events: none;
}

.se-music-chip {
 position: absolute;
 top: 12px;
 left: 12px;
 z-index: 5;
 background: rgba(0, 0, 0, 0.55);
 color: #fff;
 border-radius: 16px;
 padding: 6px 12px;
 font-size: 13px;
}

.music-picker {
 position: absolute;
 inset: 0;
 z-index: 40;
 background: #0b141a;
 display: flex;
 flex-direction: column;
 color: #e9edef;
}

.music-pick-top {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 10px 12px 4px;
}

.music-pick-top .icon-btn {
 color: #e9edef;
}

.music-search {
 flex: 1;
 background: #202c33 !important;
 color: #e9edef;
 padding: 8px 14px !important;
}

.music-search svg {
 color: #8696a0;
 flex-shrink: 0;
}

.music-search input {
 background: transparent;
 color: #e9edef !important;
 width: 100%;
 border: none;
 outline: none;
 font-size: 16px;
}

.music-search input::placeholder {
 color: #8696a0;
}

.music-tabs,
.music-sub {
 display: flex;
 gap: 8px;
 padding: 8px 16px;
 overflow-x: auto;
}

.music-chip {
 flex-shrink: 0;
 padding: 6px 14px;
 border-radius: 999px;
 background: #202c33;
 color: #e9edef;
 border: none;
 font-size: 14px;
 font-weight: 500;
}

.music-chip.on {
 background: #fff;
 color: #111b21;
}

.music-list {
 flex: 1;
 overflow-y: auto;
 padding: 4px 0 24px;
}

.music-row {
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 8px 16px;
}

.music-row.on {
 background: rgba(255, 255, 255, 0.04);
}

.music-cover {
 width: 48px;
 height: 48px;
 border-radius: 8px;
 position: relative;
 border: none;
 color: #fff;
 flex-shrink: 0;
 overflow: hidden;
 display: flex;
 align-items: center;
 justify-content: center;
}

.music-cover.none {
 background: #202c33;
 font-size: 20px;
}

.music-cover-letter {
 font-size: 18px;
 font-weight: 700;
 opacity: 0.4;
}

.music-play {
 position: absolute;
 inset: 0;
 display: flex;
 align-items: center;
 justify-content: center;
 background: rgba(0, 0, 0, 0.38);
 font-size: 13px;
}

.music-meta {
 flex: 1;
 min-width: 0;
 background: none;
 border: none;
 color: inherit;
 text-align: left;
 display: flex;
 flex-direction: column;
 gap: 2px;
 padding: 0;
}

.music-meta strong {
 font-size: 16px;
 font-weight: 500;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.music-meta span {
 font-size: 13px;
 color: #8696a0;
}

.music-star {
 background: none;
 border: none;
 color: #8696a0;
 font-size: 22px;
 width: 36px;
 line-height: 1;
}

.music-star.on {
 color: #fff;
}

.music-go {
 width: 36px;
 height: 36px;
 border-radius: 50%;
 border: none;
 background: #202c33;
 color: #e9edef;
 font-size: 18px;
 flex-shrink: 0;
}

.music-empty {
 padding: 32px 16px;
 text-align: center;
 color: #8696a0;
}

.sticker-picker {
 position: absolute;
 inset: 0;
 z-index: 40;
 background: #0b141a;
 display: flex;
 flex-direction: column;
 color: #e9edef;
}

.sticker-picker.in-chat {
 position: absolute;
 inset: auto 0 0 0;
 height: min(52vh, 480px);
 z-index: 26;
 border-top: 1px solid #222e35;
 box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.28);
}

.stk-top {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 10px 12px 6px;
}

.stk-top .icon-btn {
 color: #e9edef;
}

.stk-search {
 flex: 1;
 background: #202c33 !important;
 padding: 8px 14px !important;
}

.stk-search input {
 background: transparent;
 color: #e9edef !important;
 width: 100%;
 border: none;
 outline: none;
 font-size: 16px;
}

.stk-toggle {
 display: flex;
 align-self: center;
 background: #202c33;
 border-radius: 999px;
 padding: 3px;
 margin: 4px 0 8px;
}

.stk-toggle button {
 width: 64px;
 height: 32px;
 border: none;
 border-radius: 999px;
 background: transparent;
 color: #8696a0;
 display: grid;
 place-items: center;
}

.stk-toggle button.on {
 background: #fff;
 color: #111b21;
}

.stk-chips {
 padding: 0 16px 8px;
}

.stk-body {
 flex: 1;
 overflow-y: auto;
 padding: 0 12px 12px;
}

.stk-label {
 color: #8696a0;
 font-size: 13px;
 margin: 14px 4px 8px;
}

.stk-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 8px;
}

.stk-thumb {
 background: none;
 border: none;
 padding: 0;
}

.stk-thumb {
 position: relative;
}

.stk-thumb img {
 width: 100%;
 aspect-ratio: 1;
 object-fit: contain;
 background: transparent;
 border-radius: 8px;
 display: block;
}

.stk-thumb.sel img {
 outline: 3px solid var(--gold-bright);
 outline-offset: 1px;
}

.stk-fav-mark {
 position: absolute;
 top: 4px;
 right: 4px;
 color: #ffcc00;
 font-size: 14px;
 text-shadow: 0 1px 2px #000;
}

.stk-thumb.create {
 background: #202c33;
 border-radius: 12px;
 aspect-ratio: 1;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 4px;
 color: #e9edef;
 font-size: 11px;
 padding: 8px;
 text-align: center;
}

.stk-create-ic {
 font-size: 22px;
}

.stk-select-bar {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 10px 14px;
 background: #202c33;
}

.stk-select-bar.suggest {
 background: #1f3b2c;
 border-top: 1px solid rgba(37, 211, 102, 0.35);
 border-bottom: 1px solid rgba(37, 211, 102, 0.2);
}

.stk-select-bar img {
 width: 52px;
 height: 52px;
 border-radius: 10px;
 object-fit: cover;
 background: #111b21;
 flex: 0 0 52px;
}

.stk-select-copy {
 flex: 1;
 min-width: 0;
 display: flex;
 flex-direction: column;
 gap: 2px;
}

.stk-select-copy strong {
 font-size: 14px;
 color: #e9edef;
 font-weight: 600;
}

.stk-select-copy span {
 font-size: 12px;
 color: #8696a0;
}

.stk-send-btn {
 flex: 0 0 auto;
 width: 42px;
 height: 42px;
 border: 0;
 border-radius: 50%;
 background: #25d366;
 color: #fff;
 display: grid;
 place-items: center;
 cursor: pointer;
 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.stk-send-btn svg {
 width: 20px;
 height: 20px;
}

.stk-fav-btn {
 background: #111b21;
 color: #fff;
 border: none;
 border-radius: 18px;
 padding: 8px 12px;
 font-size: 13px;
}

.stk-shapes {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 10px 8px;
 padding: 4px 4px 8px;
}

.stk-shape {
 background: none;
 border: none;
 padding: 8px;
 min-height: 88px;
 display: grid;
 place-items: center;
}

.stk-shape .shape-svg {
 width: 92px;
 height: 78px;
}

.stk-empty {
 color: #8696a0;
 font-size: 13px;
 padding: 8px 4px 16px;
}

.stk-packs {
 display: flex;
 gap: 8px;
 padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
 overflow-x: auto;
 background: #111b21;
 border-top: 1px solid #222e35;
}

.stk-pack {
 width: 44px;
 height: 44px;
 border-radius: 12px;
 border: none;
 background: #202c33;
 font-size: 22px;
 flex-shrink: 0;
}

.stk-pack.on {
 outline: 2px solid #fff;
}

.emoji-grid {
 display: flex;
 flex-wrap: wrap;
 gap: 6px;
 padding: 8px 4px 20px;
}

.stk-emoji {
 font-size: 28px;
 background: none;
 border: none;
 padding: 6px;
}

.sticker-bar.packs {
 background: #111b21;
}

.sticker-bar.packs button {
 width: 56px;
 height: 56px;
 padding: 0;
 flex-shrink: 0;
}

.sticker-bar.packs img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 border-radius: 10px;
}

.status-caption {
 position: absolute;
 left: 12px;
 right: 12px;
 bottom: 12px;
 z-index: 5;
 text-align: center;
 font-size: 15px;
 text-shadow: 0 1px 6px #000;
}

.avatar.xs {
 width: 28px;
 height: 28px;
 font-size: 11px;
 border: 2px solid #111;
}

.status-owner-face {
 position: relative;
 background: transparent;
 padding: 0;
 flex-shrink: 0;
}

.status-owner-face .status-face-plus {
 position: absolute;
 right: -2px;
 bottom: -2px;
 width: 16px;
 height: 16px;
 border-radius: 50%;
 background: var(--gold-bright);
 color: #fff;
 font-size: 13px;
 line-height: 15px;
 font-weight: 700;
 border: 2px solid #111;
}

.mine-status-dock {
 padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
 background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.status-more {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 width: 100%;
 color: #fff;
 background: rgba(20, 20, 20, 0.82);
 border-radius: 22px;
 padding: 8px 14px;
 margin-bottom: 10px;
 font-size: 15px;
}

.status-more-faces {
 display: flex;
 align-items: center;
}

.status-more-faces .avatar {
 margin-left: -8px;
}

.status-more-faces .avatar:first-child {
 margin-left: 0;
}

.mine-status-acts {
 display: flex;
 align-items: center;
 gap: 8px;
}

.mine-pill {
 display: flex;
 align-items: center;
 gap: 8px;
 background: rgba(20, 20, 20, 0.88);
 color: #fff;
 border-radius: 22px;
 padding: 10px 16px;
 font-size: 15px;
}

.mine-pill svg {
 width: 18px;
 height: 18px;
}

.mine-share {
 margin-left: auto;
 width: 44px;
 height: 44px;
 border-radius: 50%;
 background: rgba(20, 20, 20, 0.88);
 color: #fff;
 display: grid;
 place-items: center;
}

.status-sheet {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 0;
 max-height: 62%;
 overflow-y: auto;
 background: #fff;
 color: #111;
 border-radius: 18px 18px 0 0;
 padding: 8px 16px 20px;
 z-index: 12;
}

.status-sheet-handle {
 width: 36px;
 height: 4px;
 border-radius: 2px;
 background: #d0d0d0;
 margin: 6px auto 12px;
}

.status-sheet h3 {
 font-size: 18px;
 margin-bottom: 4px;
}

.status-sheet-lead,
.status-sheet-empty {
 color: #667781;
 font-size: 14px;
 margin-bottom: 12px;
}

#close-status-boost {
 width: 100%;
 margin-top: 8px;
 padding: 12px 16px;
 border-radius: 24px;
 background: #f0f2f5;
 color: #111;
 font-weight: 650;
}

.status-viewer-row {
 display: flex;
 align-items: center;
 gap: 12px;
 width: 100%;
 text-align: left;
 padding: 8px 0;
 background: transparent;
 color: #111;
 font-size: 16px;
}

.status-viewer-row .avatar {
 flex-shrink: 0;
}

.status-viewer-row .avatar img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 border-radius: 50%;
 display: block;
}

.status-viewer-row .who {
 min-width: 0;
}

.status-viewer-row .who strong {
 display: block;
 font-weight: 650;
}

.status-viewer-row .who .status {
 color: #667781;
 font-size: 13px;
}

.ch-overlay {
 z-index: 12;
}

.ch-media-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 2px;
 padding: 2px;
 overflow: auto;
}

.ch-media-tile {
 aspect-ratio: 1;
 overflow: hidden;
 background: #f0f2f5;
 display: grid;
 place-items: center;
}

.ch-media-tile img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.ch-media-tile.link {
 flex-direction: column;
 gap: 6px;
 color: var(--gold);
 font-size: 12px;
 padding: 8px;
 text-align: center;
}

.ch-lightbox {
 position: absolute;
 inset: 0;
 z-index: 20;
 background: #000;
 display: grid;
 place-items: center;
}

.ch-lightbox img {
 max-width: 100%;
 max-height: 100%;
 object-fit: contain;
}

.chat-media-view {
 position: fixed;
 inset: 0;
 z-index: 80;
 background: #000;
 display: flex;
 flex-direction: column;
 color: #fff;
}

.chat-media-view-head {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: max(10px, env(safe-area-inset-top)) 12px 10px;
 background: rgba(0, 0, 0, 0.72);
}

.chat-media-view-title {
 flex: 1;
 min-width: 0;
}

.chat-media-view-title strong {
 font-size: 16px;
 font-weight: 600;
}

.chat-media-view-head .icon-btn {
 color: #fff;
}

.chat-media-view-body {
 flex: 1;
 min-height: 0;
 display: grid;
 place-items: center;
 padding: 8px 0 max(12px, env(safe-area-inset-bottom));
}

.chat-media-view-el {
 max-width: 100%;
 max-height: 100%;
 width: auto;
 height: auto;
 object-fit: contain;
 background: #000;
}

video.chat-media-view-el {
 width: 100%;
 height: 100%;
}

.bubble-media-btn {
 display: block;
 padding: 0;
 border: 0;
 background: transparent;
 width: 100%;
 max-width: min(360px, calc(100vw - 48px), 90%);
 cursor: zoom-in;
}

.bubble-media-btn .bubble-img {
 max-width: 100%;
 margin: 0;
}

.ch-draft-photo {
 display: flex;
 align-items: flex-start;
 gap: 8px;
 padding: 8px 12px 0;
 background: #efeae2;
}

.ch-draft-photo img {
 width: 72px;
 height: 72px;
 object-fit: cover;
 border-radius: 8px;
}

.ch-hero-photo {
 display: inline-block;
 position: relative;
}

.ch-hero-photo .avatar {
 position: relative;
}

.ch-hero-photo .ch-plus {
 width: 28px;
 height: 28px;
 font-size: 18px;
 line-height: 24px;
 right: 4px;
 bottom: 4px;
}

.post-del {
 min-width: 28px;
}

.voice-bar {
  align-items: center;
}

.voice-bar-wa {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: #f0f2f5;
}

.voice-bar-wa.ch-composer {
  background: #f0f2f5;
}

.voice-bar-wa .voice-live {
  width: 100%;
  flex: none;
}

.voice-paused-live {
  gap: 8px;
}

.voice-preview-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #111b21;
  background: transparent;
}

.voice-preview-btn svg {
  width: 22px;
  height: 22px;
}

.voice-rec-acts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.voice-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 0;
}

.voice-round.del {
  background: #fde8ec;
  color: #ea0038;
}

.voice-round.send,
.voice-round.ch-mic {
  background: var(--gold);
  color: #111;
}

.voice-round svg {
  width: 22px;
  height: 22px;
}

.voice-mid-btn {
  flex: 1;
  min-width: 0;
  height: 48px;
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  border: 0;
}

.voice-mid-btn.pause {
  background: #e9edef;
  color: #111b21;
}

.voice-mid-btn.resume {
  background: #d9fdd3;
  color: #111b21;
}

.voice-mid-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.voice-bar-wa.is-paused .voice-wave i {
  animation: none;
  background: #54656f;
}

.status-voice-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
}

.status-voice-dock .voice-bar-wa {
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
}

.voice-live {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 24px;
  min-height: 48px;
  padding: 0 14px;
}

.voice-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ea0038;
  flex-shrink: 0;
  animation: voice-blink 1s ease-in-out infinite;
}

@keyframes voice-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

#voice-timer {
  font-variant-numeric: tabular-nums;
  color: #111b21;
  min-width: 36px;
}

.voice-note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  max-width: 100%;
  margin-bottom: 2px;
}

.voice-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.voice-track {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  touch-action: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.voice-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.voice-note.active .voice-knob {
  width: 16px;
  height: 16px;
  background: var(--gold-bright);
}

.voice-speed {
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.08);
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.voice-speed[hidden] {
  display: none !important;
}

.bubble.mine .voice-speed {
  background: rgba(92, 67, 9, 0.14);
  color: var(--gold-deep);
}

#voice-dock-speed {
  min-width: 40px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--gold);
  color: #111;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

#voice-dock-speed[hidden] {
  display: none !important;
}

#voice-dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  background: #111;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

#voice-dock[hidden] {
  display: none !important;
  pointer-events: none !important;
}

#voice-dock-toggle,
#voice-dock-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--gold);
  color: #111;
}

#voice-dock-close {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.voice-dock-text {
  flex: 1;
  min-width: 0;
}

.voice-dock-text strong,
.voice-dock-text span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-dock-text span {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 1px;
}

.voice-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bubble.theirs .voice-play {
  background: var(--gold);
}

.voice-wave {
  flex: 1;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.voice-wave i {
  width: 3px;
  border-radius: 2px;
  background: #54656f;
  display: block;
}

.voice-wave i.on {
  background: var(--gold);
}

.bubble.mine .voice-wave i {
  background: rgba(92, 67, 9, 0.28);
}

.bubble.mine .voice-wave i.on {
  background: var(--gold-deep);
}

.voice-wave.live i {
  background: var(--gold);
  animation: voice-eq 0.9s ease-in-out infinite;
}

.voice-wave.live i:nth-child(2n) { animation-delay: 0.1s; }
.voice-wave.live i:nth-child(3n) { animation-delay: 0.2s; }
.voice-wave.live i:nth-child(5n) { animation-delay: 0.35s; }

@keyframes voice-eq {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.voice-dur {
  font-size: 12px;
  color: #667781;
  min-width: 28px;
}

.voice-bar .icon-btn {
  color: #ea0038;
}

.invite-logo {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  margin: 8px auto 12px;
  background: #d1d7db;
}

.invite-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.invite-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: rgba(17, 27, 33, 0.04);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 6px;
  border: 0;
  cursor: pointer;
}

.bubble.mine .invite-msg {
  background: rgba(0, 0, 0, 0.06);
}

.invite-msg img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #d1d7db;
}

.invite-msg-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.invite-msg-txt em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c9a227;
}

.invite-msg-txt strong {
  font-size: 16px;
  line-height: 1.25;
}

.invite-msg-txt span {
  font-size: 13px;
  color: #667781;
}

.invite-msg-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #3b4a54 !important;
}

.share-invite-hero {
  text-align: center;
  padding: 8px 20px 12px;
}

.share-invite-hero strong {
  display: block;
  font-size: 20px;
}

.share-invite-hero p {
  color: #667781;
  margin-top: 4px;
}

.share-invite-url {
  font-size: 12px;
  word-break: break-all;
  margin: 8px 0 !important;
}

.share-invite-sheet .chat-list {
  padding-bottom: 24px;
}

.share-invite-sheet {
  z-index: 32;
  overflow-y: auto;
}

/* Transfert WhatsApp : flèche à côté photo/vidéo/lien */
.bubble-row.has-fwd {
  gap: 6px;
  align-items: center;
}
.media-fwd-btn {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #54656f;
  box-shadow: 0 1px 4px rgba(11, 20, 26, 0.18);
  display: grid;
  place-items: center;
  padding: 0;
  align-self: center;
  z-index: 2;
}
.media-fwd-btn svg {
  width: 18px;
  height: 18px;
}
.bubble-row.selecting .media-fwd-btn,
.bubble-row.picked .media-fwd-btn {
  display: none;
}
.msg-share-sheet .chat-list {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
/* Transférer : format WhatsApp — avatar | nom+numéro à côté | case à droite */
.chat-item.share-pick {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}
.chat-item.share-pick .avatar,
.chat-item.share-pick .avatar.wa {
  width: 49px;
  height: 49px;
  grid-column: 1;
}
.chat-item.share-pick .share-pick-meta {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.chat-item.share-pick .share-pick-meta .title {
  font-size: 16px;
  font-weight: 500;
  color: #111b21;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-item.share-pick .share-pick-meta .snippet {
  font-size: 13.5px;
  color: #667781;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-item.share-pick .share-pick-check {
  grid-column: 3;
  width: 24px;
  height: 24px;
  color: #8696a0;
  display: grid;
  place-items: center;
  justify-self: end;
}
.chat-item.share-pick.on {
  background: rgba(201, 162, 39, 0.1);
}
.chat-item.share-pick.on .share-pick-check {
  color: var(--gold, #c9a227);
}
.msg-share-send {
  position: absolute;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--gold, #c9a227);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(11, 20, 26, 0.28);
  z-index: 40;
}
.msg-share-send:disabled {
  opacity: 0.65;
}
.msg-share-send svg {
  width: 22px;
  height: 22px;
}
.msg-share-send-n {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111b21;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.channel-post.has-fwd {
  display: flex;
  align-items: center;
  gap: 6px;
}
.channel-post.has-fwd .channel-bubble {
  flex: 1;
  min-width: 0;
}
.channel-post .ch-post-fwd {
  position: static;
  flex: 0 0 34px;
}

.invite-qr-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0 auto;
  display: block;
}

.share-qr-lg {
  width: 260px;
  height: 260px;
}

.invite-link-acts {
  margin-bottom: 8px;
}

.invite-qr-hero {
  text-align: center;
  padding: 24px 20px 40px;
}

.invite-qr-hero .gp-help {
  margin: 12px 16px 0;
}

.add-member-backdrop {
  padding: 0;
  background: #fff;
  place-items: stretch;
  z-index: 30;
}

.add-member-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  position: relative;
}

.add-member-list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 88px;
}

.pick-circle {
  width: 22px;
  height: 22px;
  border: 2px solid #8696a0;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
}

.user-pick.selected .pick-circle {
  background: var(--gold);
  border-color: var(--gold);
}

.user-pick.selected .pick-circle svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 3;
}

.new-contact-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.new-contact-body input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 12px 4px;
  font-size: 16px;
  outline: none;
  background: transparent;
}

.add-member-modal .group-create-fab {
  position: absolute;
}

#recaptcha-container,
.grecaptcha-badge,
.grecaptcha-logo,
iframe[src*="recaptcha"],
iframe[title*="reCAPTCHA"] {
  display: none !important;
}

html.dc-contrast {
  filter: contrast(1.18);
}

html.dc-motion *,
html.dc-motion *::before,
html.dc-motion *::after {
  animation: none !important;
  transition: none !important;
}

.settings-home {
  overflow-y: auto;
  background: #fff;
}

.settings-home .wa-top {
  background: #fff;
  color: #111b21;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 6;
}

.settings-home .icon-btn {
  color: #111b21;
}

.settings-home.is-hub .wa-top {
  background: transparent;
}

.settings-home.is-hub .settings-hub-title {
  opacity: 0;
  pointer-events: none;
}

.settings-row {
  background: #fff;
  color: #111b21;
}

.settings-row strong {
  font-size: 17px;
  font-weight: 400;
  color: #111b21;
}

.settings-hero {
  position: relative;
  padding: 72px 16px 28px;
  margin-top: -56px;
  text-align: center;
  background-color: #f3ead0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(201, 162, 39, 0.22), transparent 36%),
    radial-gradient(circle at 86% 12%, rgba(201, 162, 39, 0.16), transparent 34%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23c9a227' stroke-width='1.2' opacity='0.28'><circle cx='18' cy='22' r='6'/><path d='M40 18h14M40 24h10'/><path d='M78 20c8 0 12 8 8 14'/><rect x='96' y='14' width='12' height='12' rx='2'/><path d='M12 70h16l-8 12z'/><circle cx='58' cy='72' r='7'/><path d='M86 66c10 4 12 16 4 22'/><path d='M20 104c6-10 20-10 24 0'/><path d='M70 100h22'/></g></svg>");
  background-size: auto, auto, 160px 160px;
}

.settings-home.is-hub .settings-list {
  background: #fff;
  border-radius: 24px 24px 0 0;
  margin-top: -10px;
  position: relative;
  z-index: 1;
}

.settings-bubble {
  display: inline-block;
  max-width: 70%;
  margin: 0 auto 10px;
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: #111b21;
  box-shadow: 0 1px 3px rgba(17, 27, 33, 0.12);
}

.settings-avatar {
  display: inline-grid;
  place-items: center;
  background: none;
  position: relative;
}

.settings-avatar .avatar.xl {
  width: 96px;
  height: 96px;
  font-size: 36px;
  box-shadow: 0 0 0 4px #fff;
}

.settings-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 10px auto 0;
  background: none;
  color: #111b21;
}

.settings-id strong {
  font-size: 22px;
  font-weight: 500;
}

.settings-id span {
  color: #667781;
  font-size: 15px;
}

.settings-caret {
  font-size: 14px;
  color: #667781;
}

.settings-online {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1daa61;
  margin-left: 6px;
  vertical-align: middle;
}

.settings-search {
  background: #fff;
}

.settings-foot {
  padding: 28px 24px 40px;
  color: #667781;
}

.settings-foot p {
  font-size: 15px;
  font-weight: 600;
  color: #111b21;
}

.settings-qr {
  text-align: center;
  padding: 24px 20px;
}

.settings-list.pad {
  padding: 12px 16px 24px;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-swatch {
  height: 64px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 12px;
  color: #111;
}

.wall-photo-preview {
 margin: 4px 16px 8px;
 border-radius: 12px;
 overflow: hidden;
 border: 1px solid #e9edef;
 max-height: 140px;
}

.wall-photo-preview img {
 display: block;
 width: 100%;
 height: 140px;
 object-fit: cover;
}

.messages.has-wall-photo {
 background-attachment: local;
}

.theme-swatch.on {
  border-color: var(--gold);
}

.grecaptcha-badge,
.grecaptcha-logo {
  position: fixed !important;
  left: -10000px !important;
  bottom: 0 !important;
  pointer-events: none !important;
}

.prof-hero {
  padding: 8px 16px 4px;
}

.prof-photo {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.prof-photo .photo-file {
  border-radius: 50%;
}

.prof-photo .avatar.xl {
  width: 128px;
  height: 128px;
  font-size: 44px;
}

.prof-cam {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(17, 27, 33, 0.25);
}

.prof-cam svg {
  width: 18px;
  height: 18px;
}

.prof-banner {
  margin: 8px 16px 12px;
  background: #f6ecd0;
  border-radius: 16px;
  padding: 14px 8px 14px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  color: #111b21;
}

.prof-banner strong {
  font-size: 16px;
  font-weight: 600;
}

.prof-banner p {
  margin-top: 4px;
  font-size: 14px;
  color: #3d4a52;
  line-height: 1.35;
}

.prof-inline {
  color: var(--gold-dark);
  font-weight: 600;
  background: none;
  padding: 0;
  display: inline;
  font-size: inherit;
}

.prof-empty {
  color: var(--gold-dark) !important;
}

.prof-hint {
  padding: 16px 16px 8px;
  color: #667781;
  font-size: 14px;
  line-height: 1.4;
}

.prof-edit {
  position: relative;
  min-height: calc(100% - 56px);
  padding-bottom: 88px;
}

.prof-input {
  width: calc(100% - 32px);
  margin: 8px 16px;
  padding: 12px 0;
  border: none;
  border-bottom: 2px solid var(--gold);
  font-size: 17px;
  background: transparent;
  color: #111b21;
}

.prof-input:focus {
  outline: none;
}

.prof-count {
  text-align: right;
  padding: 0 16px;
  color: #667781;
  font-size: 13px;
}

.prof-at {
  display: flex;
  align-items: center;
  margin: 8px 16px;
  border-bottom: 2px solid var(--gold);
}

.prof-at span {
  color: #667781;
  font-size: 17px;
  padding-right: 4px;
}

.prof-at .prof-input {
  width: 100%;
  margin: 0;
  border: none;
}

.prof-add {
  color: #667781;
  margin-left: auto;
}

.prof-page .settings-row p {
  font-size: 15px;
}

.devices-page {
  padding-bottom: 24px;
}

.devices-hero {
  text-align: center;
  padding: 16px 20px 8px;
}

.devices-art {
  width: 220px;
  height: 120px;
  margin: 0 auto 8px;
  display: block;
}

.devices-count {
  color: #667781;
  font-size: 14px;
  margin: 0 0 12px;
}

.devices-flash {
  margin: 0 16px 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e7f8ef;
  color: #0a6b3c;
  font-size: 14px;
  line-height: 1.4;
}

.devices-connect {
  background: var(--gold);
  color: #111;
  border: none;
  border-radius: 24px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
}

.devices-connect:disabled {
  opacity: 0.45;
}

.devices-empty {
  padding: 8px 16px 16px;
}

.devices-connect-page {
  padding: 16px;
}

.devices-lead {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.pc-pair {
  text-align: center;
  margin: 0 0 16px;
}

.pc-pair .share-qr {
  width: min(180px, 56vw);
  height: auto;
  aspect-ratio: 1;
  max-width: 100%;
  margin: 12px auto;
  display: block;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
}

.pc-pair-code {
  font-size: clamp(18px, 7vw, 28px);
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #111;
  margin: 8px 0;
  overflow-wrap: anywhere;
}

img,
video,
canvas,
iframe {
  max-width: 100%;
}

.login-card,
.login-card.wide,
#login-form {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.otp-row {
  flex-wrap: wrap;
}

.otp-row input {
  width: min(42px, 12vw);
  height: min(50px, 12vw + 8px);
}

.chat-item .preview,
.chat-item .snippet,
.who,
.wa-sub {
  min-width: 0;
  max-width: 100%;
}

.modal-backdrop {
  max-width: 100%;
  overflow: hidden;
  /* Ne pas bloquer le scroll vertical du .modal-body */
  touch-action: manipulation;
}

.modal-backdrop .modal-body {
  touch-action: pan-y;
}

@media (min-height: 740px) {
  .login {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .wa-title {
    font-size: 20px;
  }
  .wa-lead {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .brand-logo {
    width: min(120px, 42%);
  }
  .composer {
    gap: 4px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .send,
  .composer-mic {
    width: 44px;
    height: 44px;
  }
  .wa-nav button {
    font-size: 10px;
  }
}

@media (max-height: 560px) {
  .login {
    justify-content: flex-start;
  }
  .brand-logo {
    width: min(96px, 36%);
    margin-bottom: 6px;
  }
  .wa-lead {
    margin-bottom: 10px;
  }
  .photo-pick {
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
  }
}
