/* منصة الشاطر — أزرار المشاركة (صفحة / قسم / كارت) */
.shr-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  font-family:inherit;font-size:13px;font-weight:700;line-height:1;letter-spacing:0;
  cursor:pointer;-webkit-tap-highlight-color:transparent;
  border:1px solid var(--line,#e6e9f2);background:#fff;color:var(--brand-600,#4a1fe0);
  padding:0;margin:0;border-radius:999px;transition:transform .12s,box-shadow .12s,background .12s,color .12s;
}
.shr-btn svg{width:15px;height:15px;display:block;flex:0 0 auto}
.shr-btn:active{transform:scale(.94)}
.shr-btn:focus-visible{outline:3px solid var(--brand-200,#cdc2ff);outline-offset:2px}

/* زرار الصفحة جنب عنوانها */
.shr-page{height:30px;padding:0 12px;margin-inline-start:10px;vertical-align:middle;
  background:var(--brand-50,#f2efff);border-color:var(--brand-100,#e6e0ff);color:var(--brand-600,#4a1fe0)}
.shr-page:hover{background:var(--brand-100,#e6e0ff)}

/* زرار القسم جنب عنوان القسم */
.shr-sec{width:26px;height:26px;margin-inline-start:8px;vertical-align:middle;
  background:#fff;border-color:var(--line,#e6e9f2);color:var(--muted,#65708a)}
.shr-sec svg{width:13px;height:13px}
.shr-sec:hover{color:var(--brand-600,#4a1fe0);border-color:var(--brand-200,#cdc2ff);background:var(--brand-50,#f2efff)}

/* زرار على ركن الكارت */
.shr-host{position:relative}
.shr-corner{position:absolute;top:8px;left:8px;z-index:6;width:26px;height:26px;
  background:rgba(255,255,255,.94);border-color:var(--line,#e6e9f2);color:var(--brand-600,#4a1fe0);
  box-shadow:0 1px 3px rgba(16,24,40,.10);backdrop-filter:saturate(1.2)}
.shr-corner svg{width:13px;height:13px}
.shr-corner:hover{background:#fff;border-color:var(--brand-200,#cdc2ff)}

/* زرار جوه الكارت نفسه (كروت المناهج) — صف لوحده من غير تراكب */
.shr-flowwrap{display:flex;justify-content:flex-start;padding:4px 10px 10px;grid-column:1/-1;width:100%;flex-basis:100%}
.shr-flow{height:28px;padding:0 12px;font-size:12px;background:#fff;border-color:var(--line,#e6e9f2);color:var(--muted,#65708a)}
.shr-flow svg{width:13px;height:13px}
.shr-flow:hover{color:var(--brand-600,#4a1fe0);border-color:var(--brand-200,#cdc2ff);background:var(--brand-50,#f2efff)}

/* ركن تاني (تحت الشمال) للكروت اللي فوقها شارة */
.shr-corner.shr-bl{top:auto;bottom:8px}

/* زرار جوه صف أزرار الكارت (الكتب/القصص) */
.shr-act{width:32px;height:32px;border-radius:10px;background:#fff;color:var(--muted,#65708a)}
.shr-act:hover{color:var(--brand-600,#4a1fe0);border-color:var(--brand-200,#cdc2ff)}

/* تنبيه النسخ */
.shr-toast{position:fixed;left:50%;bottom:calc(78px + env(safe-area-inset-bottom,0px));
  transform:translateX(-50%) translateY(8px);z-index:300;pointer-events:none;
  background:#0f172a;color:#fff;font-family:var(--font-ar,"Cairo",sans-serif);font-size:14px;font-weight:700;
  padding:11px 18px;border-radius:14px;box-shadow:0 12px 32px rgba(16,24,40,.22);
  opacity:0;transition:opacity .18s,transform .18s;max-width:calc(100% - 32px);text-align:center;line-height:1.5}
.shr-toast.on{opacity:1;transform:translateX(-50%) translateY(0)}

@media (max-width:420px){
  .shr-page{height:28px;padding:0 10px;font-size:12px;margin-inline-start:8px}
  .shr-corner{width:24px;height:24px;top:7px;left:7px}
  .shr-corner svg{width:12px;height:12px}
  .shr-sec{width:24px;height:24px}
}
@media print{.shr-btn,.shr-toast{display:none!important}}
