/* RS252 Lot D R2 — independent Tools du mur accordion and compact previews. */
.cab-comment-tools-section{min-width:0}
.cab-comment-tools-heading{width:100%;cursor:pointer;position:relative}
.cab-comment-tools-heading .cab-composer-quick-action-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cab-comment-tools-heading .cab-composer-quick-action-title{color:#1164d4;font-weight:800;font-size:.95rem}
.cab-comment-tools-heading .cab-composer-quick-action-meta{font-size:.75rem;color:#64748b;line-height:1.25}
.cab-comment-tools-new{display:inline-block;background:#1869ec;color:#fff;border-radius:14px;padding:2px 8px;font-size:.61rem;font-weight:800;vertical-align:middle;margin-left:3px}
.cab-comment-tools-chevron{font-size:1.45rem;color:#1468ec;transition:transform .2s}
.cab-comment-tools-section.is-open .cab-comment-tools-chevron{transform:rotate(180deg)}
.cab-comment-tools-section.is-open{padding:0 0 6px;border-radius:13px;border:1px solid #adcdfd;background:#f8fbff}
.cab-comment-tools-section.is-open .cab-comment-tools-heading{border:0;background:#ecf5ff;border-radius:12px 12px 0 0}
.cab-comment-tools-panel[hidden],.cab-comment-preview[hidden],.cab-comment-tools-example-line[hidden],[data-cab-example-dot][hidden]{display:none!important}
.cab-comment-tools-panel{padding:7px 12px 10px}
.cab-comment-tools-option{min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:8px 4px;cursor:pointer;border-bottom:1px solid #e0e7f1}
.cab-comment-tools-option>span{display:block;min-width:0;flex:1}
.cab-comment-tools-option strong{display:block;font-size:.75rem;line-height:1.32;color:#192b45}
.cab-comment-tools-option small{display:block;font-size:.68rem;color:#64748b;line-height:1.4;margin-top:2px}
.cab-comment-tools-switch{appearance:none;-webkit-appearance:none;flex:none;width:35px;height:21px;border-radius:20px;position:relative;background:#cbd5e1;border:1px solid #c5d0df;cursor:pointer;transition:background .2s}
.cab-comment-tools-switch:before{content:'';position:absolute;width:15px;height:15px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s}
.cab-comment-tools-switch:checked{background:#1970f6;border-color:#1970f6}
.cab-comment-tools-switch:checked:before{transform:translateX(14px)}
.cab-comment-tools-switch:focus-visible,.cab-comment-tools-select:focus-visible{outline:2px solid #297afa;outline-offset:2px}
.cab-comment-tools-select{border:1px solid #cbd9ea;border-radius:8px;background:#f8fbff;padding:5px 9px;font-size:.75rem;color:#334155;flex:none}
.cab-comment-tools-example{border:1px solid #d3e3fb;background:linear-gradient(155deg,#eef6ff,#f7faff);padding:9px;border-radius:13px;margin-top:14px}
.cab-comment-tools-example-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 2px 8px}
.cab-comment-tools-example-head strong{font-size:.73rem}.cab-comment-tools-example-head small{font-size:.62rem;color:#64748b;text-align:right}
.cab-comment-tools-example-card{padding:9px;border-radius:9px;background:rgba(58,141,255,.07)}
.cab-comment-wall-preview{min-width:0;max-width:100%;box-sizing:border-box;margin:.55rem 0 .18rem;padding:.56rem .65rem;border-radius:12px;border:1px solid rgba(55,133,232,.24);background:linear-gradient(135deg,rgba(39,134,247,.08),rgba(85,155,255,.025));box-shadow:0 3px 13px rgba(35,116,237,.08);font-size:.79rem;line-height:1.36;color:inherit;overflow:hidden}
.cab-comment-wall-preview[hidden]{display:none!important}
.cab-comment-preview-heading,.cab-comment-tools-example-title{display:flex;gap:9px;align-items:center;color:#0969e9;font-size:.76rem;margin-bottom:8px;min-width:0}
.cab-comment-preview-heading strong,.cab-comment-tools-example-title strong{flex:1;min-width:0}
.cab-comment-preview-dot{width:8px;height:8px;border-radius:50%;background:#1970f6;box-shadow:0 0 0 2px rgba(25,112,246,.1);flex:none}
.cab-comment-preview-heading-link,.cab-comment-preview-arrow{margin-left:auto;font-size:1.4rem;text-decoration:none!important;color:#1970f6!important;line-height:1}
.cab-comment-preview-line,.cab-comment-tools-example-line{display:flex;align-items:start;gap:6px;min-width:0;padding:3px 0}
.cab-comment-preview-line--reply,.cab-comment-tools-example-reply{padding-left:11px}
.cab-comment-preview-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;background:#dceafe;color:#2462b5;font-size:.68rem;font-weight:800;width:24px;height:24px;flex:0 0 24px;border:1px solid rgba(31,107,240,.15)}
.cab-comment-preview-body{min-width:0;flex:1}
.cab-comment-preview-meta,.cab-comment-tools-example-line>span:last-child{font-size:.71rem;color:#64748b;line-height:1.3}
.cab-comment-preview-meta strong,.cab-comment-tools-example-line strong{color:#24354d;font-size:.71rem}
.cab-comment-preview-text{--cab-comment-lines:2;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--cab-comment-lines);line-clamp:var(--cab-comment-lines);overflow:hidden;overflow-wrap:anywhere;line-height:1.3;color:#52637e;font-size:.73rem}
.cab-comment-preview-more{display:inline-block;color:#1468e9!important;text-decoration:none;font-weight:700;font-size:.71rem;margin-top:1px}
.cab-comment-preview-more:hover,.cab-comment-preview-more:focus-visible{text-decoration:underline}
.cab-comment-preview-reply-arrow{flex:none;color:#647ea3;font-size:1rem;line-height:24px}
.cab-comment-wall-preview .cab-comment-preview-line+.cab-comment-preview-line{margin-top:3px}
[data-theme='dark'] .cab-comment-tools-section.is-open{background:#101d33;border-color:#295c9c}
[data-theme='dark'] .cab-comment-tools-section.is-open .cab-comment-tools-heading{background:#14284b}
[data-theme='dark'] .cab-comment-tools-option{border-bottom-color:#344254}
[data-theme='dark'] .cab-comment-tools-option strong,[data-theme='dark'] .cab-comment-preview-meta strong,[data-theme='dark'] .cab-comment-tools-example-line strong{color:#e4ecff}
[data-theme='dark'] .cab-comment-tools-option small,[data-theme='dark'] .cab-comment-preview-text,[data-theme='dark'] .cab-comment-tools-heading .cab-composer-quick-action-meta{color:#aabdd8}
[data-theme='dark'] .cab-comment-tools-example{background:#13233b;border-color:#2c5483}
[data-theme='dark'] .cab-comment-tools-example-card{background:#162d4e}
[data-theme='dark'] .cab-comment-wall-preview{border-color:rgba(105,170,255,.3);background:rgba(36,113,218,.14)}
[data-theme='dark'] .cab-comment-tools-select{background:#162a45;border-color:#395476;color:#e4ecff}
@media(max-width:550px){.cab-comment-tools-option{gap:8px}.cab-comment-tools-panel{padding:7px 9px}.cab-comment-tools-heading .cab-composer-quick-action-title{font-size:.84rem}.cab-comment-tools-example-head{display:block}.cab-comment-wall-preview{padding:.5rem .58rem}}

.cab-comment-preview-avatar{overflow:hidden;position:relative}
.cab-comment-preview-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#blogComposerQuickActionsModal .cab-composer-quick-action-card:not(.cab-comment-tools-heading)::after{content:'›';font-size:1.35rem;color:#60748e;line-height:1;margin-left:auto}

/* RS252 D3 - scroll interne de la modale, y compris sur écrans très bas. */
#blogComposerQuickActionsModal.cab-composer-quick-actions-submodal {
  padding:10px; overflow-y:auto; overscroll-behavior:contain;
  align-items:safe center; min-height:0;
}
#blogComposerQuickActionsModal .cab-composer-quick-actions-dialog {
  max-height:calc(100vh - 20px); max-height:calc(100dvh - 20px);
  overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable;
  flex-shrink:0; min-height:0; max-width:100%;
}
#blogComposerQuickActionsModal .cab-composer-quick-actions-head {
  position:sticky; top:-12px; background:var(--club-post-card-bg,#fff);
  z-index:3; padding:6px 0; margin-top:-6px;
}
/* Sur petit écran l'exemple ne doit pas éclipser les réglages. */
@media (max-height:580px) {
 #blogComposerQuickActionsModal .cab-composer-quick-actions-dialog {max-height:calc(100dvh - 12px);padding:9px;}
 #blogComposerQuickActionsModal.cab-composer-quick-actions-submodal{padding:6px;}
 .cab-comment-tools-option {min-height:40px;padding:5px 3px;}
 .cab-comment-tools-example{margin-top:8px;}
}
/* RS252 D3 - résumé et actions AVANT les aperçus, et sans espaces superflus. */
.blog-post-card .blog-wall-social-summary {margin-top:3px!important;margin-bottom:0!important;padding-top:4px!important;padding-bottom:4px!important;}
.blog-post-card .blog-wall-social-actions {margin-top:0!important;margin-bottom:0!important;padding:4px 3px 2px!important;}
.blog-post-card .cab-comment-wall-preview {
 margin:4px 0 0!important; padding:5px 7px!important;
 border-radius:9px; box-shadow:0 2px 8px rgba(35,116,237,.06);
 font-size:.72rem;line-height:1.22;
}
.blog-post-card .cab-comment-preview-heading {margin-bottom:2px; gap:5px; min-height:16px; font-size:.71rem;}
.blog-post-card .cab-comment-preview-dot {width:7px;height:7px;}
.blog-post-card .cab-comment-preview-heading-link {flex:1;min-width:0;display:flex;align-items:center;gap:5px;margin-left:0;font-size:.71rem;line-height:1.1;cursor:pointer;}
.blog-post-card .cab-comment-preview-heading-link strong {flex:1;min-width:0;}
.blog-post-card .cab-comment-preview-arrow{font-size:1.2rem;line-height:.7;flex:none;}
.blog-post-card .cab-comment-preview-line{padding:1px 0;gap:5px;}
.blog-post-card .cab-comment-wall-preview .cab-comment-preview-line+.cab-comment-preview-line {margin-top:1px;}
.blog-post-card .cab-comment-preview-line--reply{padding-left:5px;}
.blog-post-card .cab-comment-preview-avatar{width:20px;height:20px;flex-basis:20px;font-size:.59rem;cursor:default;}
.blog-post-card .cab-comment-preview-avatar[data-profile-hover-trigger],
.blog-post-card .cab-comment-preview-author[data-profile-hover-trigger] {cursor:pointer;}
.blog-post-card .cab-comment-preview-avatar[data-profile-hover-trigger]:hover,
.blog-post-card .cab-comment-preview-avatar[data-profile-hover-trigger]:focus-visible {outline:2px solid #3b82f6;outline-offset:1px;}
.blog-post-card .cab-comment-preview-author[data-profile-hover-trigger]:hover {text-decoration:underline;}
.blog-post-card .cab-comment-preview-meta {font-size:.65rem;line-height:1.12;}
.blog-post-card .cab-comment-preview-meta strong {font-size:.67rem;}
.blog-post-card .cab-comment-preview-body{position:relative;}
.blog-post-card .cab-comment-preview-text{font-size:.69rem;line-height:1.17;padding-right:32px;}
.blog-post-card .cab-comment-preview-more{position:absolute;right:0;bottom:0;font-size:.67rem;line-height:1.15;margin:0;background:transparent;cursor:pointer;}
.blog-post-card :is(.cab-comment-preview-heading-link,.cab-comment-preview-more):hover{text-decoration:underline!important;}
.blog-post-card .cab-comment-preview-reply-arrow{line-height:20px;font-size:.81rem;}
@media (max-width:550px){.blog-post-card .cab-comment-wall-preview{padding:5px 6px!important;}}

/* Affordance cohérente sur toutes les vraies actions du mur et de la rubrique. */
.blog-post-card :is(.blog-wall-social-metric,.js-blog-card-reactions-summary,.js-blog-card-shares-summary,.club-social-action,.blog-post-title a,.blog-post-image-link,.cab-comment-preview-heading-link,.cab-comment-preview-more),
#blogComposerQuickActionsModal :is(button,label,input[type="checkbox"],select),
.cab-comment-preview-avatar[data-profile-hover-trigger="1"],
.cab-comment-preview-author[data-profile-hover-trigger="1"] {cursor:pointer!important;}
.cab-comment-preview-avatar[data-profile-hover-trigger="1"]:focus-visible,
.cab-comment-preview-author[data-profile-hover-trigger="1"]:focus-visible,
.cab-comment-preview-heading-link:focus-visible,
.cab-comment-preview-more:focus-visible {outline:2px solid #2477ef;outline-offset:2px;border-radius:3px;}

/* D4: native hidden attribute must override compact-link display rules. */
.cab-comment-preview-more[hidden]{display:none!important;}
