/* ===== نوارابزار مشترک ویرایشگر (مطلب + مدیریت) — استخراج از elm20/post.php ===== */
.toolbar-wrap{
    --primary:#2563eb; --primary-dark:#1d4ed8;
    --primary-bg:#eef2ff; --primary-soft:#dbeafe;
    --card:#fff; --border:#e2e8f0;
    --text:#0f172a;
    --radius-sm:10px;
    display:flex;gap:4px;flex-wrap:wrap;padding:10px 12px;
    background:var(--primary-bg);border-radius:var(--radius-sm);margin-bottom:10px;
    border:1px solid var(--border);align-items:center;
}
/* داخل کادر ABZAR صفحه مطلب، قاب دوم نمی‌خواهیم */
.ABZAR .toolbar-wrap{background:none;border:none;padding:0;margin:0;border-radius:0;}
.toolbar-wrap span:empty:not(.tb-sep){display:none}
.toolbar-wrap br{display:none}
.tb-sep{display:inline-block!important;width:1px!important;height:22px!important;background:#94a3b8!important;margin:0 6px!important;flex-shrink:0!important;border-radius:1px!important}
/* ===== OVERRIDE EXTERNAL CSS CONFLICTS ===== */
.toolbar-wrap .KLIDHA {
    padding:6px 14px !important;
    border:none !important;
    border-radius:6px !important;
    background:var(--card) !important;
    color:var(--text) !important;
    font-size:13px !important;
    cursor:pointer !important;
    font-family:'Vazir-FD',sans-serif !important;
    border:1px solid var(--border) !important;
    box-shadow:none !important;
    text-shadow:none !important;
    margin:0 !important;
    line-height:1.5 !important;
}
.toolbar-wrap .KLIDHA:hover {
    background:var(--primary) !important;
    color:#fff !important;
    border-color:var(--primary) !important;
    transform:none !important;
}
/* ===== دکمه ادامه - ظاهر گرافیکی اصلی (Klid_Adame) + کشیدنی ===== */
.toolbar-wrap .ADAM-toolbar{
    font-family:BTitrTGEBold,'Vazir-FD',Tahoma;
    color:#fff;
    background:linear-gradient(176deg,#464bda,#787ce6,#464bda);
    border:1px solid #007bff;
    padding:7px 20px;
    border-radius:6px;
    font-size:14px;
    text-shadow:0px 1px 3px coral;
    box-shadow:0px 3px 5px lightgrey;
    cursor:grab;
    transition:.13s all;
    user-select:none;
    display:inline-block;
}
.toolbar-wrap .ADAM-toolbar:hover{box-shadow:0px 3px 5px lightcoral;transform:translateY(-1px);color:yellow;background:linear-gradient(176deg,#787ce6,#464bda,#787ce6)}
.toolbar-wrap .ADAM-toolbar:active{box-shadow:0px 1px 1px black;transform:translateY(0);cursor:grabbing}
.toolbar-wrap .ADAM-toolbar.dragging{opacity:0.6;transform:scale(0.95)}
/* ===== TOOLBAR GROUPS ===== */
.tb-group{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.tb-ico{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;cursor:pointer;transition:all .18s cubic-bezier(.4,0,.2,1);flex-shrink:0;position:relative}
.tb-ico:hover{transform:translateY(-2px) scale(1.07);box-shadow:0 6px 16px rgba(0,0,0,.13);filter:brightness(1.06);z-index:1}
.tb-ico:active{transform:scale(.93);box-shadow:none}
.tb-group + .tb-group{margin-right:12px;padding-right:12px;border-right:2px solid var(--border)}
