/* CLIK.ma - comments' photos, voice notes and emojis (js/core/clik-cm-media.js; Réglages CLIK → Commentaires, clik_cmm_*) */
:root {
  --cmm-blue: #0866ff; --cmm-blue2: #2f80ff; --cmm-violet: #7c3aed;
  --cmm-grey: #e4e6eb; --cmm-ink: #606770; --cmm-bar: #bcc0c4; --cmm-field: #f0f2f5; --cmm-line: #dadde1; --cmm-card: #fff;
}
body.night-mode { --cmm-grey: #3a3b3c; --cmm-ink: #e4e6eb; --cmm-bar: #5c5f66; --cmm-field: #3a3b3c; --cmm-line: #4a4b4d; --cmm-card: #242526; --cmm-blue: #4c9aff; }

/* ---------- the voice notes' player ---------- */
.clik-vp { display: flex; align-items: center; gap: 8px; width: min(300px, 100%); min-width: min(220px, 100%); padding: 2px 0; --p: 0%; user-select: none; -webkit-user-select: none; }
.comment-replace > .clik-vp { margin-top: 4px; }
.comment-replace > .comment-text:empty + .clik-vp, .comment-replace > .clik-vp:first-child { margin-top: 0; }
.clik-vp-audio { display: none !important; }
.clik-vp-play { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--cmm-blue2), #0647b8); box-shadow: 0 2px 6px rgba(8, 102, 255, .3); transition: transform .15s ease, box-shadow .2s ease; }
.clik-vp-play svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.clik-vp-play svg:first-child { margin-inline-start: 2px; }
[dir="rtl"] .clik-vp-play svg:first-child, .clik-vp-play svg:first-child:dir(rtl) { transform: none; }
.clik-vp-play svg + svg, .clik-vp.is-playing .clik-vp-play svg:first-child { display: none; }
.clik-vp.is-playing .clik-vp-play svg + svg { display: block; }
.clik-vp-play:hover { transform: scale(1.06); box-shadow: 0 4px 12px rgba(8, 102, 255, .38); }
.clik-vp-play:active { transform: scale(.94); }
.clik-vp-play:focus-visible, .clik-vp-rate:focus-visible, .clik-vp-wave:focus-visible { outline: 2px solid var(--cmm-blue); outline-offset: 2px; }
.clik-vp-play:focus:not(:focus-visible) { outline: 0; }
.post-comments .comment-inner:has(.clik-vp):not(#_) { min-width: min(288px, calc(100vw - 112px)); }
.clik-vp-wave { position: relative; flex: 1 1 auto; min-width: 80px; height: 32px; overflow: hidden; cursor: pointer; touch-action: none; outline: 0; border-radius: 6px; }
.clik-vp-bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 2px; pointer-events: none; }
.clik-vp-bars i { flex: 1 1 0; max-width: 4px; min-width: 1px; height: calc(var(--h, .4) * 100%); min-height: 4px; border-radius: 2px; background: var(--cmm-bar); transition: height .35s ease; }
.clik-vp-bars.is-on { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.clik-vp-bars.is-on i { background: linear-gradient(180deg, var(--cmm-blue2), var(--cmm-blue)); }
:is([dir="rtl"], [dir="rtl"] *) > .clik-vp .clik-vp-bars.is-on, [dir="rtl"] .clik-vp-bars.is-on { clip-path: inset(0 0 0 calc(100% - var(--p))); }
.clik-vp-wave::after { content: ""; position: absolute; top: 2px; bottom: 2px; inset-inline-start: var(--p); width: 2px; margin-inline-start: -1px; border-radius: 2px; background: var(--cmm-blue); opacity: 0; transition: opacity .2s; }
.clik-vp.is-playing .clik-vp-wave::after, .clik-vp.is-seeking .clik-vp-wave::after, .clik-vp-wave:focus-visible::after { opacity: 1; }
.clik-vp-time { flex: none; min-width: 34px; font-size: 12px; line-height: 1; font-weight: 600; color: var(--cmm-ink); font-variant-numeric: tabular-nums; direction: ltr; text-align: center; }
.clik-vp-rate { flex: none; height: 24px; min-width: 38px; padding: 0 8px; border: 0; border-radius: 12px; background: var(--cmm-grey); color: var(--cmm-ink); font-size: 11px; font-weight: 700; line-height: 24px; cursor: pointer; direction: ltr; }
.clik-vp-rate:hover { background: rgba(8, 102, 255, .12); color: var(--cmm-blue); }
.comment-inner .clik-vp-rate { background: rgba(0, 0, 0, .06); }
body.night-mode .comment-inner .clik-vp-rate { background: rgba(255, 255, 255, .08); }
.clik-vp.is-error .clik-vp-play { background: var(--cmm-grey); color: var(--cmm-ink); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .clik-vp.is-playing .clik-vp-play { animation: clik-vp-pulse 1.6s ease-out infinite; }
  @keyframes clik-vp-pulse { 0% { box-shadow: 0 0 0 0 rgba(8, 102, 255, .45); } 70% { box-shadow: 0 0 0 8px rgba(8, 102, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(8, 102, 255, 0); } }
  .clik-vp:not(.is-real) .clik-vp-bars i { opacity: .7; }
}

/* ---------- one to three emojis alone, big ---------- */
.comment-text.clik-cm-big { font-size: 34px; line-height: 1.15; letter-spacing: 2px; }
.comment-text.clik-cm-big .twa { width: 34px !important; height: 34px !important; margin: 0 1px; vertical-align: -6px; background-size: contain; }
.comment-text.clik-cm-big[data-n="1"] { font-size: 42px; }
.comment-text.clik-cm-big[data-n="1"] .twa { width: 42px !important; height: 42px !important; }
@media (prefers-reduced-motion: no-preference) {
  .comment-text.clik-cm-big[data-n="1"] .twa:first-child { animation: clik-cm-bigpop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes clik-cm-bigpop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- a comment's photo (the bubble) ---------- */
/* the photo's own width in px: a percentage max-width never bounds an image's max-content width, so the 800 px picture
   made the fit-content bubble 480 px wide with the 280 px photo in its corner (the owner, 29 Oct: "extra space beside the picture") */
.post-comments .comment-replace > .comment-img-box { display: block; width: fit-content; max-width: 100%; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--cmm-field); }
.post-comments .comment-replace > .comment-img-box img { display: block; max-width: min(280px, 100%); max-height: 320px; width: auto; height: auto; object-fit: cover; border-radius: 0; transition: transform .35s ease, filter .2s; }
.post-comments .comment-inner:has(> .comment-replace > .comment-img-box) { max-width: min(304px, 100%); }
.post-comments .comment-replace > .comment-img-box:hover img { transform: scale(1.03); }
.post-comments .comment-replace > .comment-img-box:focus-visible { outline: 2px solid var(--cmm-blue); outline-offset: 2px; }

/* ---------- the photo being added: shown at once, the upload's progress over it ---------- */
.comment .comment-attachments.clik-up { background: transparent; border: 0; padding: 8px 0 0; margin: 0; }
.comment .comment-attachments ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.comment .comment-attachments ul li.loading, .comment .comment-attachments ul li.item { position: relative; width: 84px; height: 84px; margin: 0; border-radius: 14px; overflow: hidden; background: var(--cmm-field); box-shadow: 0 0 0 1px var(--cmm-line) inset; }
.comment .comment-attachments ul li.item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comment .comment-attachments ul:has(> li.item) > li.loading { display: none !important; }
.comment .comment-attachments li.loading.clik-up-prev { background: var(--clik-cmup) center / cover no-repeat; box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .38); border: 0; }
/* the upload's ring and its % (clikupload.js's .clik-up-tile) drawn white over the photo */
.comment .comment-attachments li.loading.clik-up-prev.clik-up-tile::before { background: conic-gradient(#fff var(--clik-up, 0%), rgba(255, 255, 255, .3) 0); }
.comment .comment-attachments li.loading.clik-up-prev.clik-up-tile::after { color: #fff !important; opacity: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.comment .comment-attachments li.loading.clik-up-prev .progress { display: none !important; }
.comment .comment-attachments li.item .close { position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; padding: 0; margin: 0; border-radius: 50%; background: rgba(0, 0, 0, .62); color: #fff; opacity: 1; display: grid; place-items: center; font-size: 0; text-shadow: none; border: 0; }
.comment .comment-attachments li.item .close span { font-size: 0 !important; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2 2 10' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2 2 10' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.comment .comment-attachments li.item .close:hover { background: #e41e3f; }
@media (prefers-reduced-motion: no-preference) {
  .comment .comment-attachments li.item { animation: clik-up-in .35s cubic-bezier(.3, 1.4, .5, 1) both; }
  @keyframes clik-up-in { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- the voice note recorder (the core's own block hidden: its buttons are never reached) ---------- */
html.clik-cmm-rec .comment .comment-voice-notes .voice-recording-wrapper { display: none !important; }
html.clik-cmm-rec .comment .comment-voice-notes.clik-vr-on { display: block !important; padding: 0; margin: 8px 0 0; background: transparent; border: 0; }
.clik-vr { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 24px; background: var(--cmm-field); box-shadow: 0 0 0 1px var(--cmm-line) inset; --up: 0; }
.clik-vr-b { position: relative; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; display: inline-grid; place-items: center; background: var(--cmm-card); color: var(--cmm-ink); cursor: pointer; transition: transform .15s ease, background .2s ease, opacity .2s; }
.clik-vr-b svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.clik-vr-b:hover { background: rgba(8, 102, 255, .12); color: var(--cmm-blue); }
.clik-vr-b:active { transform: scale(.92); }
.clik-vr-b:focus-visible { outline: 2px solid var(--cmm-blue); outline-offset: 2px; }
.clik-vr-b.is-stop { background: #e41e3f; color: #fff; }
.clik-vr-b.is-stop:hover { background: #c4102e; color: #fff; }
.clik-vr-b.is-send { background: linear-gradient(135deg, var(--cmm-blue2), #0647b8); color: #fff; }
.clik-vr-b.is-send svg:first-child { transform: translateX(1px); }
[dir="rtl"] .clik-vr-b.is-send svg:first-child { transform: scaleX(-1) translateX(1px); }
.clik-vr-b.is-send:hover { color: #fff; box-shadow: 0 4px 12px rgba(8, 102, 255, .35); }
.clik-vr-ring { position: absolute; inset: -3px; width: calc(100% + 6px) !important; height: calc(100% + 6px) !important; transform: rotate(-90deg); pointer-events: none; opacity: 0; }
.clik-vr-ring circle { fill: none; stroke: #ffd200; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1 - 113.1 * var(--up)); transition: stroke-dashoffset .25s; }
.clik-vr[data-state="up"] .clik-vr-ring { opacity: 1; }
.clik-vr[data-state="up"] .is-send, .clik-vr[data-state="sending"] .is-send { opacity: .85; }
.clik-vr-b.js_vr-pause svg + svg { display: none; }
.clik-vr[data-state="paused"] .js_vr-pause svg:first-child { display: none; }
.clik-vr[data-state="paused"] .js_vr-pause svg + svg { display: block; }
.clik-vr-main { position: relative; flex: 1 1 auto; min-width: 0; min-height: 36px; display: grid; align-items: center; }
.clik-vr-main > * { grid-area: 1 / 1; min-width: 0; }
.clik-vr-live { display: flex; align-items: center; gap: 8px; min-width: 0; }
.clik-vr-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #e41e3f; }
.clik-vr[data-state="paused"] .clik-vr-dot { background: var(--cmm-ink); opacity: .5; }
.clik-vr-time { flex: none; font-size: 14px; font-weight: 700; color: var(--cmm-ink); font-variant-numeric: tabular-nums; direction: ltr; min-width: 34px; }
.clik-vr-wave { flex: 1 1 auto; min-width: 0; width: 100%; height: 30px; display: block; }
.clik-vr-left { flex: none; font-size: 12px; font-weight: 700; color: #e41e3f; direction: ltr; }
.clik-vr-left:empty { display: none; }
.clik-vr-take .clik-vp { width: 100%; min-width: 0; }
.clik-vr-msg { font-size: 13px; line-height: 1.35; color: var(--cmm-ink); padding-inline: 4px; }
.clik-vr-msg.is-bad { color: #e41e3f; font-weight: 600; }
.clik-vr-msg:empty { display: none; }
.clik-vr-bar { position: absolute; inset-inline: 4px; bottom: -2px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(8, 102, 255, .14); display: none; }
.clik-vr-bar i { position: absolute; inset-block: 0; width: 40%; border-radius: 2px; background: linear-gradient(90deg, #0a5cff, #f5104f, #ffd200); }
/* what each state shows */
.clik-vr .js_vr-pause, .clik-vr .js_vr-stop, .clik-vr .js_vr-retry, .clik-vr .js_vr-send, .clik-vr-live, .clik-vr-take { display: none; }
.clik-vr:is([data-state="rec"], [data-state="paused"]) :is(.js_vr-pause, .js_vr-stop) { display: inline-grid; }
.clik-vr:is([data-state="rec"], [data-state="paused"]) .clik-vr-live { display: flex; }
.clik-vr:is([data-state="up"], [data-state="ready"], [data-state="sending"], [data-state="upfail"]) .clik-vr-take { display: block; }
.clik-vr:is([data-state="up"], [data-state="ready"], [data-state="sending"]) .js_vr-send { display: inline-grid; }
.clik-vr[data-state="upfail"] .js_vr-retry { display: inline-grid; }
.clik-vr:is([data-state="up"], [data-state="ready"], [data-state="sending"], [data-state="rec"], [data-state="paused"]) .clik-vr-msg { display: none; }
.clik-vr[data-state="upfail"] .clik-vr-msg { position: absolute; inset-inline: 0; top: calc(100% + 4px); font-size: 12px; }
.clik-vr[data-state="upfail"] { margin-bottom: 20px; }
.clik-vr[data-state="prep"] .clik-vr-bar, .clik-vr[data-state="sending"] .clik-vr-bar { display: block; }
.clik-vr.is-ending .clik-vr-time { color: #e41e3f; }
@media (prefers-reduced-motion: no-preference) {
  .clik-vr { animation: clik-vr-in .28s ease both; }
  @keyframes clik-vr-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .clik-vr[data-state="rec"] .clik-vr-dot { animation: clik-vr-blink 1.1s ease-in-out infinite; }
  @keyframes clik-vr-blink { 50% { opacity: .25; transform: scale(.8); } }
  .clik-vr-bar i { animation: clik-vr-run 1.1s ease-in-out infinite; }
  @keyframes clik-vr-run { from { inset-inline-start: -40%; } to { inset-inline-start: 100%; } }
  .clik-vr[data-state="rec"] .is-stop { animation: clik-vr-stopring 1.6s ease-out infinite; }
  @keyframes clik-vr-stopring { 0% { box-shadow: 0 0 0 0 rgba(228, 30, 63, .45); } 70% { box-shadow: 0 0 0 7px rgba(228, 30, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 30, 63, 0); } }
  .clik-vr.is-want .is-send { animation: clik-vr-want .9s ease-in-out infinite; }
  @keyframes clik-vr-want { 50% { transform: scale(.9); } }
}
@media (prefers-reduced-motion: reduce) { .clik-vr-bar i { inset-inline-start: 30%; } }
/* the mic tool while it records */
.comment.clik-vr-active .x-form-tools-voice svg, .js_reply-form.clik-vr-active .x-form-tools-voice svg { color: #e41e3f; }

/* ---------- the comment photo's viewer ---------- */
html.clik-cmv-on { overflow: hidden !important; } /* html only: a body with its own overflow lets the sticky ticker slide away */
.clik-cmv { position: fixed; inset: 0; z-index: 1090; display: none; background: #0b0d12; color: #fff; overflow: hidden; touch-action: none; }
.clik-cmv.is-open { display: block; }
.clik-cmv-bg { position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(48px) saturate(1.4); opacity: .38; transform: scale(1.1); }
.clik-cmv-top { position: absolute; top: 0; inset-inline: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px; padding-top: max(8px, env(safe-area-inset-top)); background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
.clik-cmv-brand { flex: none; display: flex; align-items: center; }
.clik-cmv-brand .clik-brand { margin: 0 !important; }
.clik-cmv .clik-brand-word.is-light { display: none !important; }
.clik-cmv .clik-brand-word.is-dark { display: block !important; }
.clik-cmv-who { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 12px 4px 4px; padding-inline: 4px 12px; border-radius: 22px; background: rgba(255, 255, 255, .12); color: #fff !important; text-decoration: none !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.clik-cmv-who b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.clik-cmv-av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #333 center / cover no-repeat; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.clik-cmv-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.clik-cmv-n { font-size: 13px; font-weight: 700; padding: 0 8px; direction: ltr; opacity: .9; }
.clik-cmv-n:empty { display: none; }
.clik-cmv-b { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff !important; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, transform .15s; text-decoration: none !important; }
.clik-cmv-b:hover { background: rgba(255, 255, 255, .26); }
.clik-cmv-b:active { transform: scale(.92); }
.clik-cmv-b:focus-visible, .clik-cmv-nav:focus-visible { outline: 2px solid #4c9aff; outline-offset: 2px; }
.clik-cmv-b:focus:not(:focus-visible), .clik-cmv-nav:focus:not(:focus-visible) { outline: 0; }
.clik-cmv-pct { width: auto; min-width: 58px; padding: 0 10px; border-radius: 20px; font-size: 13px; font-weight: 700; direction: ltr; white-space: nowrap; }
.clik-cmv-x { background: rgba(255, 255, 255, .22); }
.clik-cmv-x svg { transition: transform .25s; }
.clik-cmv-x:hover svg { transform: rotate(90deg); }
.clik-cmv-stage { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 64px 72px 72px; cursor: default; }
.clik-cmv-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transform-origin: center; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .25s; cursor: zoom-in; will-change: transform; -webkit-user-drag: none; user-select: none; }
.clik-cmv.is-zoomed .clik-cmv-img { cursor: grab; border-radius: 0; }
.clik-cmv.is-dragging .clik-cmv-img { transition: none; }
.clik-cmv.is-loading .clik-cmv-img { opacity: 0; }
.clik-cmv-load { display: none; width: 68px; height: 68px; background: var(--clik-cube-load, var(--clik-cube)) center / contain no-repeat; filter: none); }
.clik-cmv.is-loading .clik-cmv-load { display: block; position: absolute; }
.clik-cmv-nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 50%; display: none; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, opacity .2s; }
.clik-cmv-nav svg { width: 24px; height: 24px; }
.clik-cmv.is-many .clik-cmv-nav { display: grid; }
.clik-cmv-nav:hover { background: rgba(255, 255, 255, .3); }
.clik-cmv-nav:disabled { opacity: .3; cursor: default; }
.clik-cmv-nav.is-prev { inset-inline-start: 12px; }
.clik-cmv-nav.is-next { inset-inline-end: 12px; }
[dir="rtl"] .clik-cmv-nav svg { transform: scaleX(-1); }
.clik-cmv-cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; max-height: 40vh; overflow: auto; padding: 32px max(16px, calc((100% - 720px) / 2)) max(16px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .72) 40%); font-size: 15px; line-height: 1.45; text-align: center; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; cursor: pointer; }
.clik-cmv-cap.is-open { -webkit-line-clamp: unset; display: block; }
.clik-cmv-cap, .clik-cmv-top { touch-action: pan-y; }
.clik-cmv-cap[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .clik-cmv.is-open { animation: clik-cmv-fade .22s ease both; }
  @keyframes clik-cmv-fade { from { opacity: 0; } to { opacity: 1; } }
  .clik-cmv.is-from .clik-cmv-img { transform: translate3d(var(--fx, 0), var(--fy, 0), 0) scale(.35) !important; opacity: .4; transition: none; }
  .clik-cmv-img.is-in { animation: clik-cmv-swap .3s ease both; }
  @keyframes clik-cmv-swap { from { opacity: 0; transform: scale(.96); } to { opacity: 1; } }
}
@media (max-width: 575px) {
  .clik-cmv-stage { padding: 60px 0 64px; }
  .clik-cmv-img { border-radius: 0; }
  .clik-cmv-who b { max-width: 34vw; }
  .clik-cmv .clik-cmv-brand .clik-brand-word:not(#_) { display: none !important; }
  .clik-cmv-who { flex: 1 1 auto; }
  .clik-cmv-who b { max-width: none; }
  .clik-cmv .js_cmv-out, .clik-cmv .js_cmv-in { display: none; }
  .clik-cmv-b { width: 36px; height: 36px; }
  .clik-cmv-pct { min-width: 52px; }
  .clik-cmv-nav { width: 40px; height: 40px; margin-top: -20px; }
  .clik-cmv-nav.is-prev { inset-inline-start: 8px; }
  .clik-cmv-nav.is-next { inset-inline-end: 8px; }
}

/* ---------- every emoji: the panel "Émojis [cube]CLIK.ma" ---------- */
.clik-cme { position: fixed; z-index: 1085; width: 360px; max-width: calc(100vw - 16px); display: none; flex-direction: column; border-radius: 16px; background: var(--cmm-card); box-shadow: 0 12px 40px rgba(0, 0, 0, .2), 0 0 0 1px var(--cmm-line); overflow: hidden; }
.clik-cme.is-open { display: flex; }
.clik-cme-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; padding-inline: 16px 8px; border-bottom: 1px solid var(--cmm-line); }
.clik-cme-t { flex: 1 1 auto; min-width: 0; margin: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; font-size: 18px; font-weight: 800; color: inherit; }
.clik-cme-t .clik-brand.is-inline { margin: 0 !important; flex: none; }
.clik-cme-x { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--cmm-grey); color: var(--cmm-ink); cursor: pointer; transition: transform .2s; }
.clik-cme-x:hover { transform: rotate(90deg); }
.clik-cme-x:focus-visible { outline: 2px solid var(--cmm-blue); outline-offset: 2px; }
.clik-cme-body { position: relative; min-height: 360px; direction: ltr; }
.clik-cme-load { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; background: var(--clik-cube-load, var(--clik-cube)) center / contain no-repeat; filter: none); }
.clik-cme emoji-picker { width: 100%; height: 360px; --border-size: 0; --background: var(--cmm-card); --input-border-radius: 20px; --input-padding: 8px 14px; --outline-color: var(--cmm-blue); --indicator-color: var(--cmm-blue); --category-emoji-size: 1.25rem; --emoji-size: 1.6rem; --num-columns: 8; }
.clik-cme emoji-picker.dark { --background: #242526; --input-border-color: #4a4b4d; --input-font-color: #e4e6eb; --button-hover-background: #3a3b3c; }
.clik-cme.is-sheet { left: 0 !important; right: 0 !important; top: auto !important; bottom: calc(45px + env(safe-area-inset-bottom)); width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; }
.clik-cme.is-sheet emoji-picker { --num-columns: 8; height: min(46vh, 360px); }
@media (prefers-reduced-motion: no-preference) {
  .clik-cme.is-open { animation: clik-cme-in .22s cubic-bezier(.2, .9, .3, 1.2) both; }
  .clik-cme.is-sheet.is-open { animation-name: clik-cme-up; }
  @keyframes clik-cme-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes clik-cme-up { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 480px) {
  .clik-cme-t { font-size: clamp(16px, 4.6vw, 20px); }
}

/* ---------- the chat: the same player in a bubble of its own, the same recorder (clik_cmm_chat) ---------- */
.clik-vp.is-chat { width: min(280px, 72vw); min-width: 0; padding: 6px 10px 6px 6px; padding-inline: 6px 10px; border-radius: 22px; background: var(--cmm-field); box-sizing: border-box; }
.conversation.right .conversation-body > div > .clik-vp.is-chat, .clik-vp.is-chat.is-me { margin-inline-start: auto; }
.clik-vp.is-chat.is-me { background: linear-gradient(135deg, var(--cmm-blue2), #0647b8); --cmm-bar: rgba(255, 255, 255, .45); }
.clik-vp.is-chat.is-me .clik-vp-play { background: #fff; color: #0866ff; box-shadow: none; }
.clik-vp.is-chat.is-me .clik-vp-bars.is-on i { background: #fff; }
.clik-vp.is-chat.is-me .clik-vp-wave::after { background: #fff; }
.clik-vp.is-chat.is-me .clik-vp-time { color: #fff; }
.clik-vp.is-chat.is-me .clik-vp-rate { background: rgba(255, 255, 255, .2); color: #fff; }
.clik-vp.is-chat .clik-vp-rate { background: rgba(0, 0, 0, .06); }
body.night-mode .clik-vp.is-chat:not(.is-me) .clik-vp-rate { background: rgba(255, 255, 255, .08); }
.conversation-body > div:has(> .clik-vp.is-chat) { display: flex; }
/* a message just sent (chat.js's own template) puts the voice note inside the coloured text bubble: the player is its own bubble */
.conversation-body > .text:has(> .clik-vp.is-chat):not(#_) { background: none !important; padding: 0 !important; box-shadow: none !important; display: flex; }
html.clik-cmm-crec .chat-voice-notes .voice-recording-wrapper { display: none !important; }
html.clik-cmm-crec .chat-voice-notes.clik-vr-on { display: block !important; padding: 8px; margin: 0; background: transparent; border: 0; }
.chat-widget.clik-vr-active .js_chat-voice-notes-toggle svg, .panel-messages.clik-vr-active .js_chat-voice-notes-toggle svg { color: #e41e3f; }

/* ---------- hold to record (touch): let go = sent, slide towards the start = cancelled ---------- */
html.clik-cmm-hold :is(.js_comment-voice-notes-toggle, .js_chat-voice-notes-toggle) { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.clik-vr-slide { display: none; flex: none; font-size: 12px; font-weight: 600; color: var(--cmm-ink); white-space: nowrap; }
.clik-vr-slide::before { content: "‹ "; font-weight: 800; }
[dir="rtl"] .clik-vr-slide::before { content: "› "; }
.clik-vr.is-hold:is([data-state="rec"], [data-state="ask"]) :is(.js_vr-pause, .js_vr-stop) { display: none !important; }
.clik-vr.is-hold:is([data-state="rec"], [data-state="paused"]) .clik-vr-slide { display: inline; }
.clik-vr.is-hold .clik-vr-main { overflow: hidden; border-radius: 18px; }
.clik-vr.is-hold .clik-vr-live { transform: translateX(var(--slide, 0)); transition: transform .08s linear; }
.clik-vr.is-hold.is-cancel { box-shadow: 0 0 0 2px #e41e3f inset; }
.clik-vr.is-hold.is-cancel .clik-vr-slide, .clik-vr.is-hold.is-cancel .js_vr-del { color: #e41e3f; }
.clik-vr.is-hold .js_vr-del { transform: scale(calc(1 + var(--k, 0))); }
.clik-vr.is-hold.is-cancel .js_vr-del { background: #e41e3f; color: #fff; transform: scale(1.12); }
@media (max-width: 380px) { .clik-vr.is-hold .clik-vr-wave { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .clik-vr.is-hold[data-state="rec"] .clik-vr-slide { animation: clik-vr-nudge 1.4s ease-in-out infinite; }
  @keyframes clik-vr-nudge { 50% { transform: translateX(-4px); } }
  [dir="rtl"] .clik-vr.is-hold[data-state="rec"] .clik-vr-slide { animation-name: clik-vr-nudge-r; }
  @keyframes clik-vr-nudge-r { 50% { transform: translateX(4px); } }
}
@media (prefers-reduced-motion: reduce) { .clik-vr.is-hold .clik-vr-live { transition: none; } }

/* ---------- a photo pasted or dropped: the box lights up while a file is over it ---------- */
.clik-drop .comment-form { position: relative; }
.clik-drop .comment-form::after { content: attr(data-drop); position: absolute; inset: -2px; z-index: 5; display: grid; place-items: center; border-radius: 20px; border: 2px dashed var(--cmm-blue);
  background: rgba(8, 102, 255, .1); color: var(--cmm-blue); font-size: 13px; font-weight: 700; pointer-events: none; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
body.night-mode .clik-drop .comment-form::after { background: rgba(76, 154, 255, .16); }
@media (prefers-reduced-motion: no-preference) {
  .clik-drop .comment-form::after { animation: clik-drop-in .18s ease both; }
  @keyframes clik-drop-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
}

/* ---------- GIFs in the comments (clik_cmm_gif): the tool, then the panel "GIF [cube]CLIK.ma" ---------- */
.x-form-tools .clik-cm-gifbtn:not(#_) { width: auto; overflow: visible; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.x-form-tools .clik-cm-gifbtn .clik-cm-giftag:not(#_) { width: 26px !important; height: 20px !important; display: block; overflow: visible; }
.clik-cm-gifbtn[aria-expanded="true"] .clik-cm-giftag, .clik-cm-gifbtn:hover .clik-cm-giftag { color: var(--cmm-blue); }
.clik-cm-gifbtn:focus-visible { outline: 2px solid var(--cmm-blue); outline-offset: 2px; border-radius: 6px; }
.clik-cmg { width: 380px; }
.clik-cmg-search { padding: 8px; }
.clik-cmg-q { width: 100%; height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--cmm-field); color: inherit; font-size: 14px; outline: 0; box-shadow: 0 0 0 1px transparent inset; transition: box-shadow .15s; }
.clik-cmg-q:focus { box-shadow: 0 0 0 2px var(--cmm-blue) inset; }
.clik-cmg-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.clik-cmg-body { position: relative; height: 360px; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 8px; scrollbar-width: thin; }
.clik-cmg-grid { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.clik-cmg-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.clik-cmg-it { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: linear-gradient(110deg, var(--cmm-field) 30%, var(--cmm-grey) 50%, var(--cmm-field) 70%) 0 0 / 300% 100%; }
.clik-cmg-it img { display: block; opacity: 0; width: 100%; height: 100%; object-fit: cover; }
.clik-cmg-it.is-in img { opacity: 1; }
.clik-cmg-it:hover img { filter: brightness(1.06); }
.clik-cmg-it:focus-visible { outline: 3px solid var(--cmm-blue); outline-offset: -3px; }
.clik-cmg-it.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; background: var(--clik-cube-load, var(--clik-cube)) center / contain no-repeat; filter: none); }
.clik-cmg-it.is-busy img { opacity: .5; }
.clik-cmg-it.is-bad { box-shadow: 0 0 0 3px #e41e3f inset; }
.clik-cmg-msg { flex: 1 0 100%; margin: 32px 0; text-align: center; font-size: 14px; color: var(--cmm-ink); }
.clik-cmg-msg.is-bad { color: #e41e3f; }
.clik-cmg-retry { margin-inline-start: 8px; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--cmm-blue); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.clik-cmg-more { display: none; height: 68px; margin: 8px auto 0; width: 68px; background: var(--clik-cube-load, var(--clik-cube)) center / contain no-repeat; filter: none); }
.clik-cmg.is-loading .clik-cmg-more { display: block; }
.clik-cmg-foot { padding: 8px; border-top: 1px solid var(--cmm-line); text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--cmm-ink); direction: ltr; }
.clik-cmg.is-sheet .clik-cmg-body { height: min(46vh, 360px); }
@media (prefers-reduced-motion: no-preference) {
  .clik-cmg-it:not(.is-in) { animation: clik-cmg-shine 1.4s linear infinite; }
  .clik-cmg-it.is-in img { animation: clik-cmg-in .3s ease both; }
  @keyframes clik-cmg-shine { to { background-position: -300% 0; } }
  @keyframes clik-cmg-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
  .clik-cmg.is-loading .clik-cmg-more { animation: clik-cube-in .66s cubic-bezier(.2, .9, .3, 1.2) both, clik-feed-cube 1.1s ease-in-out .66s infinite; }
  .clik-cmg-it:active { transform: scale(.97); }
}

/* ======================================================================================== */
/* the comment box: real round buttons, a send button that is always there (the owner, 29 Oct:
   "No send button for uploaded picture", "make those buttons on comment box modern like real buttons") */
/* ======================================================================================== */
/* the core hides the send button on a computer (d-lg-none, its click works on phones only): clik-cm-media.js sends it */
html.clik-cmm-send :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post.d-lg-none:not(#_) { display: inline-grid !important; place-items: center; }
html.clik-cmm-send :is(.js_comment-form, .js_reply-form) .comment-form:not(.is-open) .x-form-tools > li.x-form-tools-post:not(#_):not(#_) { display: none !important; }

html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form:not(#_) { container-type: inline-size; flex-wrap: wrap; align-items: center; min-height: 40px; border-radius: 20px;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s ease, background-color .2s ease; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form.is-open:not(#_) { box-shadow: inset 0 0 0 1.5px rgba(8, 102, 255, .45); }
body.night-mode :is(.js_comment-form, .js_reply-form) .comment-form.is-open:not(#_) { box-shadow: inset 0 0 0 1.5px rgba(76, 154, 255, .5); }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form > textarea:not(#_) { flex: 1 1 120px; min-width: 0; min-height: 40px; padding: 10px 12px; line-height: 20px; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form > .x-form-tools:not(#_) { flex: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 4px; position: relative; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(#_):not(#_) { flex: none; width: 32px; height: 32px; margin: 0 !important; padding: 0; border-radius: 50%; display: inline-grid; place-items: center;
  overflow: visible; cursor: pointer; color: var(--tb-fg, var(--cmm-ink)); background: var(--tb-bg, var(--cmm-grey));
  transition: transform .16s ease, background-color .18s ease, box-shadow .2s ease, color .18s ease; -webkit-tap-highlight-color: transparent; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li[style*="display: none"]:not(#_):not(#_) { display: none; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li > form.x-uploader:not(#_) { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li svg:not(.clik-cm-giftag):not(#_):not(#_) { width: 18px !important; height: 18px !important; display: block; pointer-events: none; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.clik-cm-gifbtn .clik-cm-giftag:not(#_):not(#_) { width: 22px !important; height: 17px !important; }
/* the core's file input lies over the photo button: it takes the round shape too */
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-attach:not(.clik-cm-gifbtn):not(#_):not(#_) { overflow: hidden; }
/* each tool its own colour, the circle tinted, the icon in it (the icon-button rule) */
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-attach:not(.clik-cm-gifbtn) { --tb-fg: #15803d; --tb-bg: rgba(22, 163, 74, .13); --tb-sh: rgba(22, 163, 74, .3); }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-voice { --tb-fg: #e41e3f; --tb-bg: rgba(228, 30, 63, .11); --tb-sh: rgba(228, 30, 63, .28); }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.clik-cm-gifbtn { --tb-fg: #7c3aed; --tb-bg: rgba(124, 58, 237, .12); --tb-sh: rgba(124, 58, 237, .3); }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-emoji { --tb-fg: #c26a00; --tb-bg: rgba(245, 158, 11, .17); --tb-sh: rgba(245, 158, 11, .34); }
body.night-mode :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-attach:not(.clik-cm-gifbtn) { --tb-fg: #4ade80; --tb-bg: rgba(74, 222, 128, .14); }
body.night-mode :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-voice { --tb-fg: #ff6b81; --tb-bg: rgba(255, 107, 129, .15); }
body.night-mode :is(.js_comment-form, .js_reply-form) .x-form-tools > li.clik-cm-gifbtn { --tb-fg: #b69cff; --tb-bg: rgba(167, 139, 250, .16); }
body.night-mode :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-emoji { --tb-fg: #fbbf24; --tb-bg: rgba(251, 191, 36, .15); }
@media (hover: hover) {
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):hover:not(#_):not(#_) { color: #fff; background: var(--tb-fg); box-shadow: 0 3px 10px var(--tb-sh, rgba(0, 0, 0, .2)); transform: translateY(-1px); }
  body.night-mode :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):hover:not(#_):not(#_) { color: #18191a; }
}
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:active:not(#_):not(#_) { transform: scale(.88); box-shadow: none; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:focus-visible:not(#_) { outline: 2px solid #0866ff; outline-offset: 2px; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li[aria-expanded="true"]:not(#_):not(#_),
html.clik-cmm-box .comment.clik-vr-active .x-form-tools > li.x-form-tools-voice:not(#_):not(#_), html.clik-cmm-box .js_reply-form.clik-vr-active .x-form-tools > li.x-form-tools-voice:not(#_):not(#_) { color: #fff; background: var(--tb-fg); }
html.clik-cmm-box .comment.clik-vr-active .x-form-tools-voice svg:not(#_), html.clik-cmm-box .js_reply-form.clik-vr-active .x-form-tools-voice svg:not(#_) { color: inherit; }
/* send: the CLIK blue gradient with a white arrow, grey while there is nothing to send */
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post:not(#_):not(#_) { color: #fff; background: linear-gradient(135deg, #2f80ff, #0647b8); box-shadow: 0 2px 8px rgba(8, 102, 255, .35); }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post > svg:not(#_) { width: 17px; height: 17px; margin-inline-start: 2px; }
html.clik-cmm-box [dir="rtl"] :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post > svg, html.clik-cmm-box:is([dir="rtl"]) :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post > svg { transform: scaleX(-1); }
@media (hover: hover) { html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form.has-content .x-form-tools > li.x-form-tools-post:hover:not(#_):not(#_) { box-shadow: 0 4px 14px rgba(8, 102, 255, .45); transform: translateY(-1px) scale(1.04); } }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form:not(.has-content) .x-form-tools > li.x-form-tools-post:not(#_):not(#_) { color: var(--cmm-bar); background: var(--cmm-grey); box-shadow: none; cursor: default; transform: none; }
/* a narrow box opened: the words on the whole width, the buttons under them, send at the end (Facebook's comment box) */
@container (max-width: 439px) {
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form.is-open > textarea:not(#_) { flex-basis: 100%; padding-bottom: 4px; }
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form.is-open > .x-form-tools:not(#_) { flex: 1 1 100%; padding: 0 8px 8px; }
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form.is-open .x-form-tools > li.x-form-tools-post:not(#_):not(#_) { margin-inline-start: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form.has-content .x-form-tools > li.x-form-tools-post { animation: clik-cbx-pop .32s cubic-bezier(.3, 1.6, .5, 1) both; }
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form.is-open .x-form-tools > li { animation: clik-cbx-in .22s ease-out backwards; }
}
@keyframes clik-cbx-pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@keyframes clik-cbx-in { from { opacity: .4; transform: scale(.85); } }
body.clik-cm-still :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(#_) { animation: none !important; transition: none !important; }

/* ---------- the GIF panel's ideas and the member's recent GIFs ---------- */
.clik-cmg-search:has(+ .clik-cmg-chips) { padding-bottom: 0; }
.clik-cmg-chips { display: flex; gap: 8px; padding: 8px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 8px; }
.clik-cmg-chips::-webkit-scrollbar { display: none; }
.clik-cmg-chips.is-fade-e { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.clik-cmg-chips.is-fade-s { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
.clik-cmg-chips.is-fade-s.is-fade-e { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
[dir="rtl"] .clik-cmg-chips.is-fade-e, .clik-cmg-chips.is-fade-e:dir(rtl) { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
[dir="rtl"] .clik-cmg-chips.is-fade-s:not(.is-fade-e), .clik-cmg-chips.is-fade-s:not(.is-fade-e):dir(rtl) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.clik-cmg-chip { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--cmm-field); color: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--cmm-line); transition: background-color .15s, color .15s, box-shadow .15s, transform .12s; }
.clik-cmg-chip:hover { box-shadow: inset 0 0 0 1.5px var(--cmm-violet); color: var(--cmm-violet); }
body.night-mode .clik-cmg-chip:hover { color: #b69cff; box-shadow: inset 0 0 0 1.5px #b69cff; }
.clik-cmg-chip[aria-pressed="true"] { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 2px 8px rgba(124, 58, 237, .35); }
.clik-cmg-chip:active { transform: scale(.94); }
.clik-cmg-chip:focus-visible { outline: 2px solid var(--cmm-blue); outline-offset: 2px; }
.clik-cmg-recent { margin: 0 0 8px; }
.clik-cmg-sub { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--cmm-ink); }
.clik-cmg-rrow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.clik-cmg-rrow::-webkit-scrollbar { display: none; }
.clik-cmg-rrow .clik-cmg-it { flex: none; width: auto; height: 72px; }
.clik-cmg-rrow .clik-cmg-it img { width: auto; height: 100%; }

/* ---------- a voice note that plays next by itself ---------- */
@media (prefers-reduced-motion: no-preference) {
  .clik-vp.is-next .clik-vp-play { animation: clik-vp-next .8s ease; }
  @keyframes clik-vp-next { 0% { box-shadow: 0 0 0 0 rgba(8, 102, 255, .55); } 100% { box-shadow: 0 0 0 12px rgba(8, 102, 255, 0); } }
}

/* a voice note not heard yet: a blue dot on the play button's top end corner */
.clik-vp-play { position: relative; }
.clik-vp.is-new .clik-vp-play::after { content: ""; position: absolute; top: -1px; inset-inline-end: -1px; width: 11px; height: 11px; border-radius: 50%; background: #0866ff; box-shadow: 0 0 0 2px var(--cmm-field); }
.clik-vp.is-chat.is-new .clik-vp-play::after { box-shadow: 0 0 0 2px var(--cmm-card); }
@media (prefers-reduced-motion: no-preference) { .clik-vp.is-new .clik-vp-play::after { animation: clik-vp-dot 1.8s ease-in-out 3; } @keyframes clik-vp-dot { 50% { transform: scale(.78); opacity: .8; } } }

/* ---------- "Karim écrit…" under the comment box while another member writes (clik-cm-thread.js, clik_cm_typing) ---------- */
.clik-cm-typing { display: flex; align-items: center; gap: 8px; min-height: 24px; padding-inline-start: 44px; font-size: 13px; font-weight: 600; color: var(--cmm-ink); }
.clik-cmt-av { display: inline-flex; flex: none; }
.clik-cmt-av img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--cmm-card); }
.clik-cmt-av img + img { margin-inline-start: -8px; }
.clik-cmt-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.clik-cmt-dots { display: inline-flex; gap: 3px; flex: none; padding: 6px 8px; border-radius: 12px; background: var(--cmm-field); }
.clik-cmt-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--cmm-bar); }
@media (prefers-reduced-motion: no-preference) {
  .clik-cm-typing { animation: clik-cmt-in .24s ease-out both; }
  .clik-cm-typing.is-out { animation: clik-cmt-out .2s ease-in both; }
  .clik-cmt-dots i { animation: clik-cmt-dot 1.2s ease-in-out infinite; }
  .clik-cmt-dots i:nth-child(2) { animation-delay: .15s; }
  .clik-cmt-dots i:nth-child(3) { animation-delay: .3s; }
  @keyframes clik-cmt-in { from { opacity: 0; transform: translateY(-4px); } }
  @keyframes clik-cmt-out { to { opacity: 0; transform: translateY(-4px); } }
  @keyframes clik-cmt-dot { 0%, 60%, 100% { transform: translateY(0); background: var(--cmm-bar); } 30% { transform: translateY(-3px); background: #0866ff; } }
}
body.clik-cm-still .clik-cm-typing, body.clik-cm-still .clik-cmt-dots i { animation: none !important; }

/* "Envoyé ✓" (Réglages CLIK -> clik_cmm_sent): the send button a green tick a moment, the word in the emptied field */
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post { position: relative; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form .x-form-tools > li.x-form-tools-post.is-sent:not(#_):not(#_):not(#_) { color: #fff; background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 2px 10px rgba(22, 163, 74, .4); cursor: default; transform: none; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post.is-sent > svg:not(#_) { opacity: 0; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post.is-sent::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.clik-cbx-sent { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 4px; pointer-events: none; white-space: nowrap; font-size: 13px; font-weight: 700; color: #15803d; }
.clik-cbx-sent svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
body.night-mode .clik-cbx-sent { color: #4ade80; }
.clik-cbx-sent.is-out { opacity: 0; transition: opacity .25s; }
textarea.clik-cbx-ph::placeholder { color: transparent !important; }
@media (prefers-reduced-motion: no-preference) {
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post.is-sent:not(#_) { animation: clik-cbx-sent .42s cubic-bezier(.3, 1.6, .5, 1) both; }
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post.is-sent::after { animation: clik-cbx-tick .36s .08s ease-out both; }
  .clik-cbx-sent { animation: clik-cbx-word .3s ease-out both; }
  .clik-cbx-sent svg path { stroke-dasharray: 22; animation: clik-cbx-draw .4s .05s ease-out both; }
}
@keyframes clik-cbx-sent { 0% { transform: scale(.7); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes clik-cbx-tick { from { opacity: 0; transform: scale(.3) rotate(-20deg); } }
@keyframes clik-cbx-word { from { opacity: 0; translate: 0 6px; } }
@keyframes clik-cbx-draw { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
body.clik-cm-still .clik-cbx-sent, body.clik-cm-still .clik-cbx-sent svg path, body.clik-cm-still li.x-form-tools-post.is-sent, body.clik-cm-still li.x-form-tools-post.is-sent::after { animation: none !important; }

/* "Karim écrit…" tapped (clik_cm_typing_go): the row is a button, the comment box lights a moment */
.clik-cm-typing.is-go { cursor: pointer; border-radius: 12px; }
.clik-cm-typing.is-go:hover .clik-cmt-t { text-decoration: underline; }
.clik-cm-typing.is-go:focus-visible { outline: 2px solid #0866ff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .comment-form.clik-cmt-goto { animation: clik-cmt-goto 1.2s ease-out; }
  @keyframes clik-cmt-goto { 0% { box-shadow: 0 0 0 0 rgba(8, 102, 255, .55); } 40% { box-shadow: 0 0 0 4px rgba(8, 102, 255, .35); } 100% { box-shadow: 0 0 0 0 rgba(8, 102, 255, 0); } }
}
body.clik-cm-still .comment-form.clik-cmt-goto { animation: none !important; }

/* ---------- « Annuler »: 5 s to take a comment just sent back (clik-cm-media.js undoOffer(), Réglages CLIK clik_cmm_undo) ---------- */
.comment-actions > li.clik-cm-undo-li { display: inline-flex; align-items: center; animation: clik-undo-in .22s cubic-bezier(.3, 1.4, .5, 1) backwards; }
.comment-actions > li.clik-cm-undo-li.is-out { animation: clik-undo-out .2s ease-in forwards; }
.clik-cm-undo { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 20px; margin: 0; padding: 0 8px; border: 0; border-radius: 10px; overflow: hidden;
  background: rgba(8, 102, 255, .1); color: #0866FF; font: inherit; font-size: 12px; font-weight: 700; line-height: 20px; cursor: pointer; transition: background-color .15s, transform .12s; }
.clik-cm-undo:hover { background: rgba(8, 102, 255, .18); }
.clik-cm-undo:active { transform: scale(.94); }
.clik-cm-undo:focus-visible { outline: none; box-shadow: 0 0 0 2px #0866FF; }
.clik-cm-undo:disabled { opacity: .6; cursor: default; }
.clik-cm-undo svg { flex: none; }
.clik-cm-undo-bar { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: currentColor; opacity: .55; transform-origin: left center; animation: clik-undo-bar var(--undo-ms, 5000ms) linear forwards; }
html[dir="rtl" i] .clik-cm-undo-bar { transform-origin: right center; }
body.night-mode .clik-cm-undo { background: rgba(76, 154, 255, .16); color: #4C9AFF; }
body.night-mode .clik-cm-undo:hover { background: rgba(76, 154, 255, .26); }
@keyframes clik-undo-in { from { opacity: 0; transform: scale(.7); } }
@keyframes clik-undo-out { to { opacity: 0; transform: scale(.8); } }
@keyframes clik-undo-bar { to { transform: scaleX(0); } }

/* ---------- a draft put back in its box (Réglages CLIK clik_cmm_draft) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .comment-form.clik-cmd-back { animation: clik-cmd-back 1.2s ease-out; }
  @keyframes clik-cmd-back { 0% { box-shadow: 0 0 0 0 rgba(255, 210, 0, .7); } 40% { box-shadow: 0 0 0 4px rgba(255, 210, 0, .45); } 100% { box-shadow: 0 0 0 0 rgba(255, 210, 0, 0); } }
}
@media (prefers-reduced-motion: reduce) { .comment-actions > li.clik-cm-undo-li, .comment-actions > li.clik-cm-undo-li.is-out { animation: none; } .clik-cm-undo-bar { animation: none; transform: scaleX(.5); } }
body.clik-cm-still .comment-actions > li.clik-cm-undo-li, body.clik-cm-still .comment-form.clik-cmd-back { animation: none !important; }

/* ======================================================================================== */
/* the box's tools in ONE pill, YouTube's raised look (the owner, 29 Oct: "make comment buttons look like youtube 3d
   icons compact them in one pill", "youtube style of buttons fit comment box"): the photo, voice, GIF and emoji
   tools are segments of one lit pill with thin lines between them, each icon in its own colour; send stays as it
   was, 4 px after it. The first / last SHOWN tool rounds the pill (the core hides the photo and GIF tools
   with an inline display: none once a photo is in). */
/* ======================================================================================== */
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form > .x-form-tools:not(#_):not(#_) { gap: 0; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):not(#_):not(#_):not(#_) { position: relative; width: 36px; height: 32px; border-radius: 0;
  --yt-a: #fafafa; --yt-b: #e8e8e8; --yt-ha: #ffffff; --yt-hb: #dedede; --yt-p: #d4d4d4; --yt-line: rgba(0, 0, 0, .13); --yt-hi: rgba(255, 255, 255, .9); --yt-lo: rgba(0, 0, 0, .1);
  background: linear-gradient(180deg, var(--yt-a), var(--yt-b)); color: var(--tb-fg, var(--cmm-ink));
  box-shadow: inset 0 1px 0 var(--yt-hi), inset 0 -1px 0 var(--yt-lo); transform: none; }
body.night-mode :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):not(#_):not(#_):not(#_):not(#_) { --yt-a: #434343; --yt-b: #2d2d2d; --yt-ha: #525252; --yt-hb: #383838; --yt-p: #222; --yt-line: rgba(255, 255, 255, .16); --yt-hi: rgba(255, 255, 255, .12); --yt-lo: rgba(0, 0, 0, .35); }
/* the pill's ends */
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):not([style*="display: none"]):not(li:not(.x-form-tools-post):not([style*="display: none"]) ~ li):not(#_):not(#_):not(#_) { border-start-start-radius: 16px; border-end-start-radius: 16px; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):has(+ li.x-form-tools-post):not(#_):not(#_):not(#_),
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):last-child:not(#_):not(#_):not(#_) { border-start-end-radius: 16px; border-end-end-radius: 16px; }
/* the line between two shown tools, as between YouTube's like and dislike */
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):not([style*="display: none"]) ~ li:not(.x-form-tools-post)::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; bottom: 7px; width: 1px; background: var(--yt-line); pointer-events: none; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post) svg:not(#_):not(#_) { filter: drop-shadow(0 1px 0 var(--yt-hi)); }
@media (hover: hover) {
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):hover:not(#_):not(#_):not(#_) { background: linear-gradient(180deg, var(--yt-ha), var(--yt-hb)); color: var(--tb-fg, var(--cmm-ink)); box-shadow: inset 0 1px 0 var(--yt-hi), inset 0 -1px 0 var(--yt-lo); transform: none; }
  body.night-mode :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):hover:not(#_):not(#_):not(#_) { color: var(--tb-fg); }
}
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):active:not(#_):not(#_):not(#_),
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post)[aria-expanded="true"]:not(#_):not(#_):not(#_),
html.clik-cmm-box .comment.clik-vr-active .x-form-tools > li.x-form-tools-voice:not(#_):not(#_):not(#_), html.clik-cmm-box .js_reply-form.clik-vr-active .x-form-tools > li.x-form-tools-voice:not(#_):not(#_):not(#_) {
  background: var(--yt-p); color: var(--tb-fg, var(--cmm-ink)); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18); transform: none; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):active svg:not(#_):not(#_) { transform: scale(.9); }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):focus-visible:not(#_):not(#_) { outline: 2px solid #0866ff; outline-offset: -2px; z-index: 1; }
/* send: kept as it was (the owner, 29 Oct: "keep send button as it is") - only its 4 px after the pill */
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post:not(#_):not(#_):not(#_) { margin-inline-start: 4px !important; }
@container (max-width: 439px) {
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form.is-open .x-form-tools > li.x-form-tools-post:not(#_):not(#_):not(#_) { margin-inline-start: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form.is-open .x-form-tools > li:not(.x-form-tools-post) { animation: none; }
  html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .comment-form.is-open > .x-form-tools { animation: clik-cbx-in .22s ease-out backwards; }
}

/* ======================================================================================== */
/* the pill's icons drawn like YouTube's buttons under a video (the owner, 29 Oct: "change old icons on the 3d pill to
   something more clear like Youtube icons under video"): one clean line icon per tool (photo, microphone, GIF,
   smile - .clik-ytic, drawn in __feeds_comment.form.tpl / __feeds_comment.tpl and by clik-cm-media.js), 20 px, a
   1.8 stroke, all in the pill's ink - #0f0f0f by day, #f1f1f1 at night, as on YouTube -, no coloured tint; a
   recording keeps the voice tool red. */
/* ======================================================================================== */
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):not(#_):not(#_):not(#_):not(#_) { --tb-fg: #0f0f0f; color: #0f0f0f; }
body.night-mode :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post):not(#_):not(#_):not(#_):not(#_):not(#_) { --tb-fg: #f1f1f1; color: #f1f1f1; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li:not(.x-form-tools-post) svg.clik-ytic:not(#_):not(#_):not(#_) { width: 20px !important; height: 20px !important; filter: none; color: inherit; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.clik-cm-gifbtn svg.clik-ytic.clik-cm-giftag:not(#_):not(#_):not(#_) { width: 21px !important; height: 21px !important; }
html.clik-cmm-box .comment.clik-vr-active .x-form-tools > li.x-form-tools-voice:not(#_):not(#_):not(#_):not(#_):not(#_),
html.clik-cmm-box .js_reply-form.clik-vr-active .x-form-tools > li.x-form-tools-voice:not(#_):not(#_):not(#_):not(#_):not(#_) { color: #e41e3f; }
body.night-mode .comment.clik-vr-active .x-form-tools > li.x-form-tools-voice:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_),
body.night-mode .js_reply-form.clik-vr-active .x-form-tools > li.x-form-tools-voice:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) { color: #ff6b81; }
.clik-cm-gifbtn[aria-expanded="true"] .clik-cm-giftag.clik-ytic, .clik-cm-gifbtn:hover .clik-cm-giftag.clik-ytic { color: inherit; }

/* ======================================================================================== */
/* round 8 of 29 Oct (the owner: "1 2 3 all of them"), Réglages CLIK → Commentaires:
   - « Envoi… » (clik_cmm_ring): while a comment is on its way (after 220 ms - a quick answer never flickers) a ring in the
     cube's colours turns round the send button, its arrow dimmed; "less motion": the ring still;
   - a send that failed (clik_cmm_fail): the words stay in the box, a line 8 px under it says why (offline, slow, busy,
     refused, the server) with « Réessayer » - the core's generic error window is skipped for it;
   - the tools' names (clik_cmm_tips): a dark pill 8 px under the hovered tool on a computer, as YouTube's (#clik-cmtip). */
/* ======================================================================================== */
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post.is-sending:not(#_):not(#_) { cursor: progress; }
html.clik-cmm-box :is(.js_comment-form, .js_reply-form) .x-form-tools > li.x-form-tools-post.is-sending > svg:not(#_):not(#_) { opacity: .55; }
.x-form-tools > li.x-form-tools-post > .clik-cm-sring { position: absolute; inset: -4px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, #0a5cff, #f5104f, #ffd200, #0a5cff 70%, transparent 70%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); }
@media (prefers-reduced-motion: no-preference) {
  .x-form-tools > li.x-form-tools-post > .clik-cm-sring { animation: clik-cm-sring .8s linear infinite, clik-cm-sring-in .18s ease-out backwards; }
}
@keyframes clik-cm-sring { to { transform: rotate(360deg); } }
@keyframes clik-cm-sring-in { from { opacity: 0; transform: scale(.85); } }

.clik-cm-fail:not(#_):not(#_) { margin-top: 8px !important; }
.clik-cm-fail { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 10px; border-radius: 12px; font-size: 13px; line-height: 1.35;
  color: #b42318; background: rgba(228, 30, 63, .08); border: 1px solid rgba(228, 30, 63, .22); }
[dir="rtl"] .clik-cm-fail, .clik-cm-fail:dir(rtl) { padding: 6px 10px 6px 6px; }
.js_reply-form > .clik-cm-fail { grid-column: 2 / -1; }
/* the reply box is a grid whose own 8 px row gap already stands above the line */
.js_reply-form > .clik-cm-fail:not(#_):not(#_):not(#_) { margin-top: 0 !important; }
.clik-cm-fail > svg { flex: none; }
.clik-cm-fail-t { flex: 1 1 auto; min-width: 0; }
.clik-cm-fail-t b { font-weight: 700; }
.clik-cm-fail-go { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2f80ff, #0647b8); box-shadow: 0 2px 6px rgba(8, 102, 255, .3); }
.clik-cm-fail-go svg { width: 16px; height: 16px; }
.clik-cm-fail-go:focus-visible { outline: 2px solid #0866ff; outline-offset: 2px; }
@media (hover: hover) { .clik-cm-fail-go:hover { box-shadow: 0 4px 12px rgba(8, 102, 255, .45); } }
.clik-cm-fail-go:active { transform: scale(.96); }
.clik-cm-fail.is-off { color: #8a5a00; background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .3); }
.clik-cm-fail.is-back { color: #15803d; background: rgba(22, 163, 74, .09); border-color: rgba(22, 163, 74, .28); }
body.night-mode .clik-cm-fail { color: #ff8a9b; background: rgba(255, 107, 129, .12); border-color: rgba(255, 107, 129, .28); }
body.night-mode .clik-cm-fail.is-off { color: #fbbf24; background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .3); }
body.night-mode .clik-cm-fail.is-back { color: #4ade80; background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .3); }
@media (prefers-reduced-motion: no-preference) { .clik-cm-fail { animation: clik-cm-fail-in .22s ease-out backwards; } }
@keyframes clik-cm-fail-in { from { opacity: 0; transform: translateY(-4px); } }

.clik-cmtip { position: fixed; z-index: 1100; left: 0; top: 0; max-width: 240px; padding: 6px 10px; border-radius: 8px; pointer-events: none;
  font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #fff; background: rgba(28, 28, 28, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(-3px); transition: opacity .12s ease, transform .12s ease; }
.clik-cmtip.is-up { transform: translateY(3px); }
.clik-cmtip.is-on { opacity: 1; transform: none; }
body.night-mode .clik-cmtip { background: rgba(100, 100, 100, .96); }
@media (prefers-reduced-motion: reduce) { .clik-cmtip, .clik-cmtip.is-up { transform: none; transition: opacity .12s ease; } }

/* ---------- 26 Nov (the owner, screenshot 54: a grey bar beside a squeezed field once « Ajouter des photos » opened): the field
   never shows a scroll bar and its placeholder stays on one line (« … » when the box is narrow) - a closed box in a narrow
   feed column left the words on two lines in a one-line field, and the browser drew its scroll bar there ---------- */
:is(.js_comment-form, .js_reply-form) .comment-form > textarea:not(#_) { scrollbar-width: none; }
:is(.js_comment-form, .js_reply-form) .comment-form > textarea::-webkit-scrollbar { display: none; width: 0; height: 0; }
:is(.js_comment-form, .js_reply-form) .comment-form > textarea:placeholder-shown:not(#_) { overflow: hidden; }
:is(.js_comment-form, .js_reply-form) .comment-form > textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 26 Nov (the owner's screenshot: in a narrow comment box the recorded note's « 1x » went under the send button):
   the preview's player shares the room left between the delete and send buttons - its wave shrinks first, and where even
   that is not enough the speed button steps out (the note plays at 1x; its speed is set on the posted note) ---------- */
.clik-vr-take:not(#_) { container-type: inline-size; overflow: hidden; }
.clik-vr-take .clik-vp:not(#_) { gap: 6px; }
.clik-vr-take .clik-vp-wave:not(#_) { min-width: 32px; }
@container (max-width: 179px) {
  .clik-vr-take .clik-vp-rate:not(#_) { display: none; }
}
