/* ====== صفحة الفريق ====== */
.wrap:has(.tm:not([hidden])){display:block;padding-top:calc(22px + env(safe-area-inset-top));padding-bottom:110px}
.tm{width:100%;min-width:0;max-width:760px;margin:0 auto}
.tm[hidden]{display:none}
.tm-t{font-size:26px;font-weight:800;margin:0 2px}
.tm-seg{display:flex;background:rgba(255,255,255,.05);border-radius:14px;padding:4px;margin:14px 0 10px}
.tm-seg button{flex:1;width:auto;min-height:0;margin:0;padding:8px 0;border-radius:11px;background:none;box-shadow:none;color:#eef0ff;font-size:13px;font-weight:500;opacity:.6}
.tm-seg button.on{background:#fff;color:#12142a;opacity:1;font-weight:700}
.tm-mt{display:flex;gap:8px;margin-bottom:12px;overflow-x:auto;scrollbar-width:none}
.tm-mt button{flex:none;width:auto;min-height:0;margin:0;padding:7px 13px;border-radius:12px;background:none;border:1px solid rgba(255,255,255,.12);box-shadow:none;color:#eef0ff;font-size:12.5px;font-weight:500;opacity:.7}
.tm-mt button.on{background:rgba(143,107,255,.2);border-color:rgba(143,107,255,.55);opacity:1;font-weight:700}
.tm-card{background:#12142a;border:1px solid rgba(255,255,255,.08);border-radius:22px;padding:8px 14px}
.tm-rk{display:flex;align-items:center;gap:10px;width:100%;min-height:0;margin:0;padding:8px 0;background:none;border:0;box-shadow:none;color:#eef0ff;font-weight:400;text-align:right;border-radius:0}
.tm-no{width:16px;font-size:12px;opacity:.5;text-align:center;flex:none}
.tm-rk img,.tm-ro img,.tm-rk video,.tm-ro video{border-radius:50%;object-fit:cover;object-position:center 12%;flex:none}
.tm-rk img,.tm-rk video{width:34px;height:34px}
.tm-bx{flex:1;min-width:0}
.tm-nm{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin-bottom:5px}
.tm-nm b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-nm em{font-style:normal;font-weight:800;flex:none;font-variant-numeric:tabular-nums}
.tm-tr{height:8px;border-radius:8px;background:rgba(255,255,255,.06);overflow:hidden}
.tm-tr i{display:block;height:100%;width:0;border-radius:8px;transition:width .8s cubic-bezier(.3,0,.2,1)}
.tm-rk.top .tm-nm b:after{content:" 👑"}
.tm-note{font-size:12.5px;opacity:.5;text-align:center;margin:8px 0 0;min-height:16px}
.tm-h{display:flex;justify-content:space-between;align-items:center;font-size:15px;font-weight:700;margin:22px 2px 10px}
.tm-add{width:auto;min-height:0;margin:0;padding:7px 12px;border-radius:12px;font-size:13px;box-shadow:none}
.tm-ro{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.tm-ro:last-child{border-bottom:0}
.tm-ro img,.tm-ro video{width:44px;height:44px}
.tm-op{flex:1;min-width:0;display:flex;align-items:center;gap:12px;width:auto;min-height:0;margin:0;padding:0;background:none;border:0;box-shadow:none;color:#eef0ff;font-weight:400;text-align:right}
.tm-tx{flex:1;min-width:0}
.tm-tx b{font-size:14.5px}
.tm-tx small{display:block;font-size:12px;opacity:.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-ed{width:38px;height:38px;min-height:0;margin:0;padding:0;border-radius:11px;background:rgba(255,255,255,.06);box-shadow:none;display:grid;place-items:center;flex:none}
.tm-ed svg{width:17px;height:17px;fill:none;stroke:#eef0ff;stroke-width:1.8;stroke-linejoin:round}
.tm-empty{text-align:center;opacity:.5;font-size:13.5px;padding:18px}

/* ورقة التعديل */
.tm-shd{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.tm-shd img,.tm-shd video{width:56px;height:56px;border-radius:50%;object-fit:cover;object-position:center 12%}
.tm-shd b{font-size:18px}
.ags .tm-del{background:none;border:1px solid rgba(255,77,106,.45);color:#ff8fa3;box-shadow:none;margin-top:10px}
.ags .tm-del.sure{background:#ff4d6a;color:#fff;border-color:#ff4d6a}
body.on-team .fab{display:none}
