/* ===== Rayna mat-pro: مدیریت مطالب اساتید (دخترانه و ساده) ===== */
.mp-top{margin:6px 0 14px}
.mp-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
.mp-stat{display:flex;flex-direction:column;align-items:center;gap:0;padding:10px 6px;border-radius:20px;color:#fff;
  box-shadow:0 6px 16px rgba(255,79,154,.22);text-align:center}
.mp-stat .ic{font-size:1.5rem;line-height:1.2}.mp-stat b{font-size:1.6rem;line-height:1.2}.mp-stat small{font-size:.85rem;opacity:.95}
.mp-stat.s1{background:linear-gradient(135deg,#ff7eb6,#ff4f9a)}
.mp-stat.s2{background:linear-gradient(135deg,#c084fc,#8b5cf6)}
.mp-stat.s3{background:linear-gradient(135deg,#ffb36b,#ff7a8a)}

.mp-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.mp-btn{font:inherit;font-weight:800;font-size:.98rem;cursor:pointer;border:0;border-radius:16px;padding:10px 18px;min-height:46px;color:#fff;
  box-shadow:0 5px 14px rgba(192,132,252,.4);transition:transform .15s,box-shadow .15s}
.mp-btn:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(255,79,154,.4)}
.mp-btn:focus-visible,.mp-search input:focus-visible{outline:3px solid #c084fc;outline-offset:2px}
.mp-add{background:linear-gradient(135deg,#ff6fb1,#c084fc)}
.mp-fold{background:#fff;color:#b0306f;border:2px solid #ffd1e8;box-shadow:0 3px 10px rgba(255,126,182,.2)}
.mp-search{flex:1 1 220px;display:flex;align-items:center;gap:8px;background:#fff;border:2px solid #ffd1e8;border-radius:16px;padding:0 12px;min-height:46px}
.mp-search input{flex:1;border:0!important;outline:0;background:transparent!important;font:inherit;min-width:0;margin:0!important;box-shadow:none!important}

/* پنجره‌ها */
.mp-dlg{border:0;border-radius:24px;padding:18px 20px 22px;width:min(560px,calc(100vw - 20px));max-height:90vh;overflow:auto;
  background:#fff;box-shadow:0 20px 60px rgba(176,48,111,.35);color:#4a1d3a}
.mp-dlg::backdrop{background:rgba(74,29,58,.45);backdrop-filter:blur(3px)}
.mp-dlg[open]{animation:mpPop .2s ease-out}
@keyframes mpPop{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
.mp-dh{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.mp-dh h3{margin:0;color:#b0306f;font-size:1.2rem}
.mp-x{border:0;width:38px;height:38px;border-radius:50%;background:#ffe3f0;color:#b0306f;font-size:1rem;cursor:pointer}
.mp-x:hover{background:#ffc2dc}
.mp-hint{margin:2px 0 12px;color:#8a5a75;font-size:.9rem}
.mp-dlg form input:not([type=file]),.mp-dlg form select,.mp-dlg form textarea{width:100%;margin:6px 0;border:2px solid #ffd1e8;border-radius:14px;padding:10px 12px;font:inherit}
.mp-dlg form textarea{min-height:90px}
.mp-dlg form input:focus,.mp-dlg form select:focus,.mp-dlg form textarea:focus{outline:3px solid #e9d5ff;border-color:#c084fc}
.mp-dlg form>button:not(.sm){width:100%;margin-top:8px;border:0;border-radius:14px;min-height:46px;color:#fff;font-weight:800;cursor:pointer;
  background:linear-gradient(135deg,#ff6fb1,#c084fc)}
.mp-dlg .flist li{background:#fff0f7!important;border:1px solid #ffd1e8}
.mp-dlg .flist li[style*="margin-right:0px"]{background:#ffe3f0!important}

/* راهنما و نتیجه جستجو */
.mp-hint2{background:#fff0f7;border:2px dashed #ffb3d6;color:#b0306f;border-radius:18px;padding:12px 16px;margin:6px 0 10px;text-align:center;font-weight:700}
.mp-res{margin:4px 0 10px;color:#8a5a75;font-weight:700}

/* پوشه‌ها */
.chips{padding:6px 2px 12px!important;gap:8px!important;flex-wrap:wrap!important;overflow:visible!important}
.chip{border-color:#ffc2e0!important;color:#b0306f!important;background:#fff!important;box-shadow:0 2px 8px rgba(255,126,182,.18);transition:transform .15s,background .15s}
.chip:hover{transform:translateY(-2px);background:#fff0f7!important}
.chip.on{background:linear-gradient(135deg,#ff6fb1,#c084fc)!important;color:#fff!important;border-color:#fff!important;box-shadow:0 5px 14px rgba(192,132,252,.5)}
.chip .cn{display:inline-block;min-width:22px;margin-inline-start:6px;padding:0 7px;border-radius:12px;font-style:normal;font-size:.78rem;background:#ffe3f0;color:#b0306f}
.chip.on .cn{background:rgba(255,255,255,.3);color:#fff}

/* کارت مطلب */
.grid .card{border-right:0!important;border-top:6px solid #ff9fcf;border-radius:22px;display:flex;flex-direction:column;gap:2px;
  box-shadow:0 8px 22px rgba(255,126,182,.2)}
.grid .card .cat{background:#ffe3f0;color:#b0306f;align-self:flex-start}
.grid .card h3{color:#7a1f4d}
.grid .card .links{margin:8px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.grid .card .links a{margin:0;text-decoration:none;padding:6px 14px;border-radius:12px;background:#f3e8ff;color:#6d28d9;font-size:.88rem}
.grid .card .links a:hover{background:#e9d5ff}
.mp-foot{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin-top:10px;padding-top:10px;border-top:1px dashed #ffd1e8}
.mp-foot form{margin:0}
.mp-foot .ren{flex:1 1 150px}
.mp-foot .ren summary{cursor:pointer;display:inline-block;padding:6px 14px;border-radius:12px;background:#fff0f7;color:#b0306f;font-weight:700;font-size:.88rem;list-style:none}
.mp-foot .ren summary::-webkit-details-marker{display:none}
.mp-foot .ren form{display:flex;gap:6px;margin-top:8px}
.mp-foot .ren input{flex:1;min-width:0;border:2px solid #ffd1e8;border-radius:12px;padding:6px 10px;font:inherit}
.mp-foot button.red{border-radius:12px;padding:6px 14px;background:#ffe3ec;color:#d6285f;border:0;font-weight:700;cursor:pointer}
.mp-foot button.red:hover{background:#ffc2d4}

.emptynote{background:#fff0f7;border:2px dashed #ffb3d6;color:#b0306f;border-radius:18px;padding:18px;text-align:center;font-weight:700}
@media (max-width:640px){.mp-stat b{font-size:1.3rem}.mp-btn{flex:1 1 100%}.mp-dlg{padding:14px}}
@media (prefers-reduced-motion:reduce){.mp-dlg[open],.mp-btn,.chip{animation:none;transition:none}}
