/* Foro activo ES/AR: estilos de contenido dinámico, no modifica cabecera ni franja. */

        .cme-forum-v2 #content{display:grid;gap:18px}
        .cme-forum-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:6px;border:1px solid #dce7e1;border-radius:14px;background:#f6faf8}
        .cme-forum-tabs button{min-height:42px;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:#355d51;font:850 14px/1.2 Arial,sans-serif;cursor:pointer}
        .cme-forum-tabs button:hover{background:#edf5f1;color:#0f5b47}
        .cme-forum-tabs button.on{background:#17614f;color:#fff;box-shadow:0 4px 12px rgba(23,97,79,.14)}
        .cme-forum-tabs button:focus-visible{outline:3px solid rgba(215,181,93,.45);outline-offset:2px}
        .cme-forum-nav-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch;margin:0 0 16px}
        .cme-forum-contacts-shortcut{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:54px;padding:0 16px;border:1px solid #cbdad2;border-radius:14px;background:#fff;color:#17614f;font:900 14px/1.2 Arial,sans-serif;cursor:pointer;white-space:nowrap;box-shadow:0 4px 14px rgba(5,59,46,.04)}
        .cme-forum-contacts-shortcut:hover{background:#edf6f1;border-color:#9ebfb2}
        .cme-forum-contacts-shortcut:focus-visible{outline:3px solid rgba(215,181,93,.45);outline-offset:2px}
        .cme-forum-v2 .topics{display:grid;gap:16px}
        .cme-forum-v2 .topic,.cme-forum-v2 .detail{border:1px solid #dce6e1;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(5,59,46,.05)}
        .cme-forum-v2 .topic{padding:20px}
        .cme-forum-v2 .detail{padding:22px}
        .cme-author-row{display:flex;align-items:center;gap:12px;min-width:0}
        .cme-author-meta{min-width:0}
        .cme-author-name{font-weight:900;color:#123f34;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
        .cme-author-submeta,.cme-submeta{margin-top:2px;color:#61736a;font-size:12px;line-height:1.45}
        .cme-private-message-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-top:7px;min-height:32px;padding:5px 10px;border:1px solid #bfd5cc;border-radius:999px;background:#f5faf7;color:#17614f;font:800 12px/1.2 Arial,sans-serif;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
        .cme-private-message-btn:hover{background:#eaf5ef;border-color:#8fb9a8;transform:none}
        .cme-private-message-btn:focus-visible{outline:3px solid rgba(215,181,93,.45);outline-offset:2px}
        .cme-avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;overflow:hidden;flex:0 0 auto;border:1px solid #dbe7e1;background:var(--cme-avatar-bg,#e8f2ed);color:#0f5946;font-weight:900;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
        .cme-avatar.sm{width:42px;height:42px;font-size:15px}
        .cme-avatar.md{width:48px;height:48px;font-size:17px}
        .cme-avatar.lg{width:56px;height:56px;font-size:19px}
        .cme-avatar img{width:100%;height:100%;object-fit:cover;display:block}
        .cme-owner-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;background:#edf5f0;color:#17614f;font-size:11px;font-weight:900}
        .cme-topic-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;flex-wrap:wrap}
        .cme-topic-topline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
        .cme-reply-count{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;background:#f3f8f5;color:#17614f;font-weight:900;font-size:12px;white-space:nowrap}
        .cme-status-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900}
        .cme-status-pill.pending{background:#fff3d7;color:#74551c}
        .cme-status-pill.rejected{background:#fde9ea;color:#8a3038}
        .cme-status-pill.closed{background:#edf0ef;color:#40564d}
        .cme-topic-card h3{margin:0 0 8px;font-size:23px;line-height:1.2;color:#103f34}
        .cme-topic-card .cme-topic-excerpt{margin:0;color:#5b6e66;line-height:1.65;font-size:15px}
        .cme-topic-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
        .cme-topic-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
        .cme-topic-cta{margin-top:0!important}
        .cme-topic-card:hover{transform:none;border-color:#9cc1b2}
        .cme-favorite-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 12px;border:1px solid #d7e4de;border-radius:10px;background:#fff;color:#315f52;font-weight:850;cursor:pointer}
        .cme-favorite-btn:hover{background:#f5faf7;border-color:#9ebfb2}
        .cme-favorite-btn .cme-star{font-size:18px;line-height:1;color:#91701d}
        .cme-favorite-btn.active{background:#fff9e9;border-color:#e2cb8c;color:#6c541e}
        .cme-detail-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-start}
        .cme-detail-actions{display:flex;gap:8px;flex-wrap:wrap}
        .cme-topic-main{margin-top:12px;padding:20px;border:1px solid #b9d7c9;border-radius:18px;background:linear-gradient(180deg,#f3faf6 0%,#fbf8ee 100%);box-shadow:0 8px 22px rgba(4,61,47,.06)}
        .cme-topic-main h2{margin:12px 0 10px;color:#103f34;line-height:1.22}
        .cme-topic-primary-label{display:inline-flex;align-items:center;gap:6px;margin:0 0 12px;padding:6px 10px;border:1px solid #bdd8cb;border-radius:999px;background:#e9f5ef;color:#145744;font-size:12px;font-weight:900}
        .cme-reply-card.cme-reply-author{background:linear-gradient(180deg,#fffdf8 0%,#fffaf0 100%);border-color:#ead9aa;box-shadow:0 4px 16px rgba(121,91,24,.05)}
        .cme-interaction-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:15px;padding-top:12px;border-top:1px solid rgba(23,97,79,.12)}
        .cme-interaction-bar button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:7px 10px;border:1px solid #d7e4de;border-radius:11px;background:#fff;color:#244f43;font:800 12px/1.1 Arial,sans-serif;cursor:default;box-shadow:0 2px 6px rgba(4,61,47,.03)}
        .cme-interaction-bar .cme-reaction-preview{cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}
        .cme-interaction-bar .cme-reaction-preview:hover{background:#f2f8f5;border-color:#9fc2b4;transform:none}
        .cme-interaction-bar .cme-reaction-preview.is-mine{background:#e7f3ed;border-color:#82b39f;box-shadow:inset 0 0 0 1px rgba(23,97,79,.08)}
        .cme-interaction-bar .cme-reaction-preview:disabled{opacity:.6;cursor:wait;transform:none}
        .cme-interaction-bar .cme-reaction-icon{font-size:18px;line-height:1}
        .cme-interaction-bar .cme-reaction-count{font-size:12px;color:#173f35}
        .cme-interaction-bar .cme-reaction-label{font-style:normal;color:#526a61;font-size:11px}
        .cme-interaction-bar .cme-reply-preview{margin-left:auto;padding-inline:14px;background:#f7faf8;color:#175645;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}
        .cme-interaction-bar .cme-reply-preview:hover{background:#edf6f1;border-color:#9fc2b4;transform:none}
        .cme-interaction-bar .cme-reply-preview .cme-reaction-icon{font-size:19px}
        .cme-reply-context{margin:0 0 12px;padding:12px 14px;border:1px solid #c9ded5;border-left:4px solid #17614f;border-radius:12px;background:#edf7f2;color:#264c40}
        .cme-reply-context[hidden]{display:none!important}
        .cme-reply-context-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
        .cme-reply-context-title{font-weight:900;color:#104f3f}
        .cme-reply-context-preview{margin-top:6px;color:#5d7068;font-size:13px;line-height:1.45}
        .cme-reply-context-cancel{border:0;background:transparent;color:#8b3940;font-weight:850;cursor:pointer;padding:4px 2px}
        .cme-reply-reference{display:inline-flex;align-items:center;gap:5px;margin-top:10px;padding:5px 9px;border:1px solid #cfe0d8;border-radius:999px;background:#f4faf7;color:#17614f;font:800 12px/1.2 Arial,sans-serif;cursor:pointer}
        .cme-reply-reference:hover{background:#eaf5ef;border-color:#9fc2b4}
        .cme-topic-body{margin:0;color:#3f554d;line-height:1.72;font-size:15px}
        .cme-topic-body a,.cme-reply-card p a{color:#0f654f;font-weight:800;text-decoration:underline;text-underline-offset:2px}
        .cme-forum-media{margin:14px 0 0}
        .cme-forum-media img{display:block;max-width:min(100%,680px);max-height:520px;object-fit:contain;border:1px solid #dce7e1;border-radius:14px;background:#f5f8f6}
        .cme-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 12px;color:#0f4d3d}
        .cme-replies{display:grid;gap:14px}
        .cme-reply-card{margin:0;padding:16px 18px;border:1px solid #e0ebe6;border-left:0;background:#fff;border-radius:16px;box-shadow:0 4px 16px rgba(4,61,47,.04)}
        .cme-reply-card p{margin:12px 0 0;color:#405851;line-height:1.7;font-size:15px}
        .cme-inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
        .cme-inline-actions button,.cme-detail-actions button,#back{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border-radius:10px;border:1px solid #d7e4de;background:#fff;color:#175645;font-weight:800}
        .cme-inline-actions button:hover,.cme-detail-actions button:hover,#back:hover{border-color:#94b9ab;background:#f4f9f6}
        .cme-inline-actions [data-delete-reply],.cme-detail-actions #delete-topic{color:#8f2f37;border-color:#e9d4d5}
        .cme-inline-actions [data-report-reply],.cme-detail-actions #report{color:#86621d;border-color:#ead8a8;background:#fffaf0}
        .cme-topic-empty{padding:18px;border:1px dashed #d5e4dc;border-radius:16px;background:#fbfdfc;color:#5f726a}
        .cme-topic-empty a{color:#17614f;font-weight:900}
        .cme-highlight-reply{outline:2px solid #d7b55d;outline-offset:4px}
        .cme-reply-form{margin-top:18px;background:#f5f9f7;border-radius:18px}
        .cme-reply-form h3{margin:0 0 10px;color:#0c4b3b}
        .cme-note-quiet{margin-top:12px;color:#64776f;font-size:13px}
        .cme-editor{display:grid;gap:8px}
        .cme-editor-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:7px;border:1px solid #d6e2dc;border-radius:11px;background:#fff}
        .cme-editor-tool{min-height:34px;padding:6px 10px;border:0;border-radius:8px;background:#f3f7f5;color:#204f42;font:850 13px/1.1 Arial,sans-serif;cursor:pointer}
        .cme-editor-tool:hover{background:#e9f2ee}
        .cme-editor-tool strong{font-size:15px}
        .cme-emoji-panel{padding:10px;border:1px solid #d6e2dc;border-radius:11px;background:#fff;box-shadow:0 10px 25px rgba(4,61,47,.08);max-height:250px;overflow:auto}
        .cme-emoji-panel[hidden]{display:none!important}
        .cme-emoji-grid{display:grid;grid-template-columns:repeat(10,36px);gap:4px;max-width:100%}
        .cme-emoji-grid button{width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;font-size:21px;cursor:pointer;display:flex;align-items:center;justify-content:center}
        .cme-emoji-grid button:hover{background:#eef5f1}
        .cme-inline-flag{display:inline-flex;vertical-align:-2px;width:25px;height:17px;margin:0 2px;overflow:hidden;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.14);background:#fff}
        .cme-inline-flag svg{display:block;width:100%;height:100%}
        .cme-editor-source{display:none!important}
        .cme-rich-editor{min-height:105px;padding:13px 12px;border:1px solid #cfdcd6;border-radius:11px;background:#fff;color:#243f36;font:400 15px/1.55 Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;outline:none}
        .cme-rich-editor:focus{border-color:#6d9f8d;box-shadow:0 0 0 3px rgba(23,97,79,.09)}
        .cme-rich-editor:empty::before{content:attr(data-placeholder);color:#7a8a83;pointer-events:none}
        .cme-rich-editor a{color:#0f654f;text-decoration:underline;text-underline-offset:2px;font-weight:700}
        .cme-editor-tool.active{background:#dfece6;color:#103f34;box-shadow:inset 0 0 0 1px #a8c6ba}
        .cme-editor-media{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid #dce7e1;border-radius:11px;background:#fff}
        .cme-editor-media[hidden]{display:none!important}
        .cme-editor-media img{width:72px;height:54px;object-fit:cover;border-radius:8px;border:1px solid #dce7e1}
        .cme-editor-media span{flex:1;color:#526b61;font-size:12px;font-weight:800}
        .cme-editor-media button{border:0;background:transparent;color:#8f2f37;font-weight:900;cursor:pointer}
        .cme-forum-v2 .intro,.cme-forum-v2 main>.section,.cme-forum-v2 .side,.cme-forum-v2 .cme-forum-tabs{transition:background .22s ease,border-color .22s ease,box-shadow .22s ease}
        .cme-social-category{position:relative}
        .cme-social-category::after{content:'Social';display:block;float:none;width:max-content;margin:5px auto 0 0;padding:3px 8px;border-radius:999px;background:#e8c36f;color:#24483f;font-size:9px;font-weight:900;line-height:1.2;letter-spacing:.02em}
        .cme-social-category.on::after,.cme-social-category:hover::after{background:#f1d98f;color:#24483f}
        .cme-forum-social main>.section{background:linear-gradient(180deg,#f4f9fa 0,#fff 440px)}
        .cme-forum-social .intro{background:linear-gradient(135deg,#2c6570,#173f49);box-shadow:0 12px 30px rgba(27,73,83,.14)}
        .cme-forum-social .intro p{color:#e5f0f2}
        .cme-forum-social .intro .button{background:#dfc16c;color:#263f43}
        .cme-forum-social .side{border-color:#cddfe1;background:#fbfdfd}
        .cme-forum-social .cme-forum-tabs{border-color:#cbdde0;background:#f3f8f9}
        .cme-forum-social .cme-forum-tabs button{color:#3b626a}
        .cme-forum-social .cme-forum-tabs button:hover{background:#e8f1f3;color:#214f58}
        .cme-forum-social .cme-forum-tabs button.on{background:#285f69;color:#fff;box-shadow:0 4px 12px rgba(40,95,105,.15)}
        .cme-forum-social .cats button.on{background:#285f69;border-color:#285f69}
        .cme-social-rule{display:block;margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.22);font-size:13px;line-height:1.5;color:#f0f6f7}
        @media(max-width:700px){
          .cme-topic-card h3{font-size:21px}
          .cme-topic-head,.cme-detail-head,.cme-topic-footer{display:grid}
          .cme-reply-count{justify-self:start}
          .cme-detail-actions{width:100%}
          .cme-detail-actions button,#back{width:100%}
          .cme-forum-tabs{gap:5px;padding:5px}
          .cme-forum-tabs button{padding:7px 6px;font-size:12.5px}
          .cme-forum-nav-row{grid-template-columns:1fr;gap:8px}
          .cme-forum-contacts-shortcut{width:100%;min-height:44px}
          .cme-emoji-grid{grid-template-columns:repeat(7,36px)}
          .cme-topic-controls{width:100%}
        }
      

/* Estructura bidireccional para bloques nuevos; solo dentro del foro. */
html[lang="ar"] .cme-forum-nav-row,html[lang="ar"] .cme-forum-tabs,html[lang="ar"] .cme-forum-v2 #content,html[lang="ar"] .cme-forum-v2 .cme-topic-head,html[lang="ar"] .cme-forum-v2 .cme-topic-footer,html[lang="ar"] .cme-forum-v2 .cme-replies{direction:rtl;text-align:right}
html[lang="ar"] .cme-forum-v2 .cats button,html[lang="ar"] .cme-forum-v2 .side,html[lang="ar"] .cme-forum-v2 .topic,html[lang="ar"] .cme-forum-v2 .detail,html[lang="ar"] .cme-forum-v2 .intro,html[lang="ar"] .cme-forum-v2 .form{text-align:right}
html[lang="ar"] .cme-forum-v2 .cme-topic-body,html[lang="ar"] .cme-forum-v2 .cme-reply-card p{unicode-bidi:plaintext;text-align:start}
html[lang="ar"] .cme-forum-v2 .cme-rich-editor,html[lang="ar"] .cme-forum-v2 .cme-modal textarea{direction:rtl;text-align:right}
html[lang="ar"] .cme-social-category::after{content:'اجتماعي';margin:5px 0 0 auto}
html[lang="ar"] .cme-translation-panel{border-left:0;border-right:3px solid #d7b55d}
/* Un formulario marcado como oculto nunca se muestra debido a estilos globales. */
#new[hidden], .cme-reply-context[hidden], .cme-emoji-panel[hidden]{display:none!important}
