/* «استوديو مدار» — account screens, my names, the page editor with a live preview. No animations. */
.studio { display: grid; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; box-sizing: border-box; }
.studio .card { min-width: 0; }
.shead h1 { margin: 0 0 6px; font-size: 26px; }
.shead p { margin: 0 0 8px; }
.authcard { max-width: 520px; width: 100%; margin: 0 auto; display: grid; gap: 12px; box-sizing: border-box; }
.stabs { display: flex; flex-wrap: wrap; gap: 6px; }
.stabs button { font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.stabs button.on { background: linear-gradient(90deg, #ff3d6e, #ff7a1a); color: #fff; border: 0; }
.sform { display: grid; gap: 10px; }
.sform .field { display: grid; gap: 4px; }
.sform input { width: 100%; box-sizing: border-box; font-size: 16px; }
.sform button[type="submit"] { justify-self: start; font-size: 16px; padding: 11px 20px; }
.smsg:empty { display: none; }
.sgrid { display: grid; gap: 16px; max-width: 760px; width: 100%; margin: 0 auto; }
.sbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.sbar .row { gap: 6px; flex-wrap: wrap; }
.namelist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.nrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #0a070c; }
.nrow.stale { border-color: rgba(251, 191, 36, .45); }
.nrow .warn { flex-basis: 100%; }
.ninfo { display: grid; gap: 2px; min-width: 0; }
.nname { font-size: 17px; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.nacts { gap: 6px; flex-wrap: wrap; }
.ghostlink { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line2); color: var(--text); text-decoration: none; font-size: 14px; }
.ghostlink:hover { border-color: rgba(255, 122, 26, .6); }
.studio .nameinput { max-width: 420px; margin: 8px 0; }
.dangercard { border-color: rgba(248, 113, 113, .35); }
/* the settings screen: «صفحتي» on top, a heading over the account settings, and «تسجيل الخروج» last */
.mypage .needname { margin-bottom: 4px; }
.ssec { margin: 10px 4px -4px; font-size: 18px; color: var(--muted, #a8979f); }
.soutcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.soutcard p { margin: 0; flex: 1 1 240px; }
.soutcard button.signout { min-height: 44px; padding: 10px 26px; font-weight: 700; color: #ff9b93; border-color: rgba(255, 138, 128, .55); background: transparent; }
.soutcard button.signout:hover { background: rgba(255, 138, 128, .1); color: #ffb4ad; }
.mypage .namelist + h2 { margin-top: 18px; }
.sform label.inline input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; }
button.danger { background: #b4413a; color: #fff; border: 0; }
button.danger:disabled { background: #241820; color: #a8979f; }
/* editor: the form beside a sticky preview; on phones the preview is a toggle */
.editwrap { display: grid; gap: 12px; }
.ebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ebar .nname { margin-inline-end: auto; }
.ecols { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.eform { display: grid; gap: 8px; }
.eprev { position: sticky; top: calc(12px + env(safe-area-inset-top, 0px)); display: grid; gap: 8px; padding: 10px; }
.eprev iframe { width: 100%; height: calc(100vh - 120px); min-height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #07050a; }
.prevtoggle { display: none; }
.secnav { display: flex; flex-wrap: wrap; gap: 6px; }
.secnav a { font-size: 13px; color: var(--sky); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.secnav a:hover { border-color: rgba(255, 122, 26, .6); }
.savebar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; background: var(--panel, #0f0a12); border-top: 1px solid var(--line); }
.savebtn { font-size: 16px; padding: 11px 22px; background: linear-gradient(90deg, #ff3d6e, #ff7a1a); color: #fff; border: 0; }
.savebtn:disabled { background: #241820; color: #a8979f; cursor: not-allowed; }
.studioedit .mrow { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #0a070c; }
.studioedit .mrow input { max-width: none; }
.studioedit .mic { flex: 0 0 22px; display: inline-grid; place-items: center; color: var(--text); }
@media (max-width: 980px) {
  .ecols { grid-template-columns: 1fr; }
  .eprev { display: none; position: static; }
  .showprev .eprev { display: grid; order: -1; }
  .eprev iframe { height: 70vh; min-height: 420px; }
  .prevtoggle { display: inline-flex; }
}
@media (max-width: 520px) { .shead h1 { font-size: 22px; } .studio { padding: 12px 10px 32px; } }

/* the page editor (moved from the names page) */
.profedit { border-top: 1px solid var(--line); padding-top: 10px; }
.profedit summary { cursor: pointer; color: var(--sky); font-weight: 600; }
.profedit input, .profedit textarea { max-width: 520px; width: 100%; box-sizing: border-box; }
.profedit textarea { resize: vertical; background: #0a070c; border: 1px solid var(--line2); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; outline: 0; }
.profedit textarea:focus { border-color: rgba(255, 122, 26, .7); }
.profedit .ferr:empty { display: none; }
.profedit button:not(.ghost) { background: linear-gradient(90deg, #ff3d6e, #ff7a1a); color: #fff; border: 0; }
.profedit button:not(.ghost):hover { background: linear-gradient(90deg, #ff5683, #ff8d3a); }
.profedit button:disabled { opacity: 1; background: #241820 !important; color: #a8979f !important; cursor: not-allowed; }
/* profile editor: hosted picture, goal and what the page shows */
.profedit .picfield { display: grid; gap: 6px; margin: 8px 0; }
.profedit .picfield .row { align-items: center; gap: 8px; flex-wrap: wrap; }
.profedit .goalbox { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 12px; margin: 10px 0; display: grid; gap: 4px; min-width: 0; }
.profedit .goalbox legend { color: var(--sky); font-weight: 600; padding: 0 6px; }
.profedit .goalbox input { max-width: 320px; }
.profedit label.inline { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
.profedit label.inline input { width: auto; }
/* profile editor sections, platform fields with icons, link order */
.profedit .psec { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 12px; margin: 12px 0; display: grid; gap: 6px; min-width: 0; }
.profedit .psec > legend { color: var(--sky); font-weight: 700; padding: 0 6px; }
.profedit .psec select { max-width: 320px; }
.profedit .flabel { display: inline-flex; align-items: center; gap: 6px; }
.profedit .flabel .ic { color: var(--text); }
.profedit .goalbox b { color: var(--sky); }
.profedit .ordbox { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.profedit .ordbox summary { font-weight: 600; font-size: 14px; }
.profedit .ordlist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-width: 360px; }
.profedit .ordlist li { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #0a070c; }
.profedit .ordlist .oname { flex: 1; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.profedit .ordlist .obtn { padding: 4px 10px; min-width: 36px; }
.profedit .ordlist .obtn:disabled { opacity: .35; background: none !important; }
.plinks a { display: inline-flex; align-items: center; gap: 5px; }
.plinks a .ic { flex: 0 0 auto; }
/* engagement section of the profile editor: milestones, poll options, message moderation */
.profedit .elist { display: grid; gap: 6px; min-width: 0; }
.profedit .erow { display: flex; gap: 6px; align-items: center; min-width: 0; }
.profedit .erow input { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; }
.profedit .erow input.eusd { flex: 0 0 84px; width: 84px; }
.profedit label.inline input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; }
.profedit .erow .obtn, .profedit .modrow .obtn { padding: 4px 10px; min-width: 36px; }
.profedit .modrow { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #0a070c; min-width: 0; }
.profedit .modrow .mtext { overflow-wrap: anywhere; font-size: 14px; }
.profedit .modrow .row { gap: 6px; flex-wrap: wrap; align-items: center; }
.profedit .obtn:disabled { opacity: .35; }
.profedit .coverprev img { display: block; width: 100%; max-width: 360px; aspect-ratio: 3 / 1; height: auto; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.profedit .coverprev:empty { display: none; }
/* account identity: «مرحبا {display}» · @username, the username availability hint, the "complete your account" box */
.whoami { display: grid; gap: 2px; min-width: 0; }
.whoami .hello { font-size: 18px; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.whoami .uname { color: var(--sky); font-size: 14px; unicode-bidi: isolate; justify-self: start; }
.sform .uname { font-family: inherit; }
.uhint:empty { display: none; }
.needid { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border: 1px solid rgba(251, 191, 36, .45); border-radius: 12px; padding: 10px 12px; margin: 4px 0 10px; }
.needid button { font-size: 14px; padding: 8px 14px; }
/* editor fields: the label in a fixed column, every box the same width */
.profedit label.field { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 4px 12px; margin: 4px 0; }
.profedit label.field .flabel { display: inline-flex; align-items: center; gap: 6px; }
.profedit label.field input, .profedit label.field textarea, .profedit label.field select { max-width: none; width: 100%; }
.profedit label.field .ferr { grid-column: 2; }
@media (max-width: 640px) { .profedit label.field { grid-template-columns: 1fr; } .profedit label.field .ferr { grid-column: 1; } }
/* platform rows: icon, platform list, account box, ↑, ✕ */
.profedit .lrow .lsel { flex: 0 0 150px; min-width: 0; background: #0a070c; border: 1px solid var(--line2); color: var(--text); border-radius: 10px; padding: 9px 10px; font: inherit; }
.profedit .lrow input { direction: ltr; }
@media (max-width: 640px) { .profedit .lrow { flex-wrap: wrap; } .profedit .lrow .lsel { flex: 1 1 120px; } .profedit .lrow input { flex: 1 1 100%; order: 5; } }
/* the picture preview has the page's portrait shape */
.profedit .profile .avatar { flex: 0 0 60px; width: 60px; height: 80px; border-radius: 12px; }
/* the preview can be hidden on any screen: the button is always there, the form takes the whole width without it */
.prevtoggle { display: inline-flex; }
.editwrap:not(.showprev) .eprev { display: none; }
.editwrap:not(.showprev) .ecols { grid-template-columns: minmax(0, 1fr); }

/* ===== studio pass (2026-10-08): tabs, calmer cards ===== */
.stabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 3; display: flex; gap: 6px; padding: 8px 0 10px; background: var(--panel, #0f0a12); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.stabs button { flex: 0 0 auto; font: inherit; font-size: 14px; font-weight: 600; color: #cbbcc3; background: #0a070c; border: 1px solid var(--line2); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.stabs button:hover { border-color: rgba(255, 122, 26, .6); color: #fff; }
.stabs button.on { color: #fff; background: linear-gradient(90deg, #ff3d6e, #ff7a1a); border-color: #ff7a1a; }
.secnav { display: none; }
.profedit .psec { border-radius: 14px; padding: 12px 16px 16px; margin: 14px 0; background: rgba(255, 255, 255, .015); }
.profedit .psec > legend { font-size: 15.5px; font-weight: 700; color: #efe4e8; padding: 0 8px; }
.profedit .psec[hidden] { display: none; }
.profedit button.ghost.small { justify-self: start; font-size: 13px; padding: 5px 12px; color: #ff9b93; border-color: rgba(255, 138, 128, .45); }
.flink { color: var(--text); text-decoration: none; }
.flink:hover { text-decoration: underline; }

/* ===== sign-in screens (2026-10-08): energy background, brand panel beside the form ===== */
body.authbg { background: #07050a url(/studio/energy.svg) center / cover no-repeat; }
.studio.authmode { max-width: 980px; }
.authwrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: center; min-height: calc(100vh - 220px); }
.authside { display: grid; gap: 14px; color: #efe4e8; padding: 8px 4px; }
.authlogo { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; justify-self: start; }
.authlogo .pfmark { width: 44px; height: 44px; border-radius: 12px; }
.authlogo .pepwm { font-size: 30px; }
.authside h2 { margin: 0; font-size: clamp(21px, 2.45vw, 29px); line-height: 1.3; white-space: nowrap; }
.authside p { margin: 0; color: #cbbcc3; font-size: 16px; line-height: 1.8; max-width: 460px; }
.authpts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.authpts li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.authpts .pti { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 122, 26, .16); border: 1px solid rgba(255, 122, 26, .3); flex: 0 0 auto; }
.authcard { background: rgba(15, 10, 18, .92); border: 1px solid rgba(255, 122, 26, .22); border-radius: 20px; padding: 26px 26px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.authcard .sform { display: grid; gap: 12px; margin-top: 10px; }
.authcard .sform button[type="submit"] { width: 100%; font-size: 16px; padding: 12px; border-radius: 12px; background: linear-gradient(90deg, #ff3d6e, #ff7a1a); color: #fff; border: 0; margin-top: 4px; }
.authcard .sform button[type="submit"]:hover { background: linear-gradient(90deg, #ff5683, #ff8d3a); }
.authalt { display: grid; gap: 8px; justify-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: center; }
.authalt .linkbtn { font: inherit; color: var(--sky); background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; }
.authalt .linkbtn:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .authwrap { grid-template-columns: minmax(0, 1fr); gap: 18px; min-height: 0; }
  .authside { text-align: center; justify-items: center; }
  .authside h2 { font-size: 24px; white-space: normal; text-wrap: balance; }
  .authpts { justify-items: start; }
  .authlogo { justify-self: center; }
}
/* on phones the form comes first, the brand panel under it */
@media (max-width: 860px) { .authwrap > .authcard { order: -1; } .authside { padding-top: 6px; } }

/* a hidden element stays hidden whatever its own display rule */
#langBtn[hidden] { display: none !important; }

/* last line: rights and links, centred */
footer p.flinks { text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
footer p.flinks a { color: var(--muted); text-decoration: none; }
footer p.flinks a:hover { color: var(--sky); }
/* settings: who may message me, blocked list; editor: delete a message, masked words */
.sradios { display: grid; gap: 6px; margin: 4px 0 6px; }
.sradio { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.sradio:has(input:checked) { border-color: rgba(255, 122, 26, .6); background: rgba(255, 122, 26, .08); }
.sradio input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: #ff7a1a; }
.slink { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--sky); text-decoration: none; }
.slink:hover { text-decoration: underline; }
.blist { display: grid; gap: 6px; }
.brow { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 0; }
.bwho { display: grid; gap: 2px; min-width: 0; }
.bwho b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bwho code { color: var(--muted); font-size: 12.5px; }
.profedit .obtn.danger:hover { color: #ff9b93; border-color: rgba(255, 138, 128, .55); }
.profedit textarea[aria-label] { width: 100%; }
/* sign-in on wide screens: the text beside a phone showing a creator page; everything grows with the screen */
.authtext { display: grid; gap: 14px; }
.authphone { display: none; }
@media (min-width: 1500px) {
  .authside { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 34px; }
  .authphone { display: block; width: clamp(230px, 17vw, 300px); padding: 9px; border-radius: 34px; background: #140d12; border: 1px solid #3a2430; box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(255, 170, 60, .08); }
  .authphone img { display: block; width: 100%; height: auto; border-radius: 26px; }
}
@media (min-width: 1500px) {
  body.authbg .top, body.authbg footer { max-width: 1440px; }
  body.authbg .studio { max-width: 1440px; }
  body.authbg .authwrap { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 56px; min-height: 0; margin-top: 7vh; }
  body.authbg .authside h2 { font-size: 36px; }
  body.authbg .authside p, body.authbg .authpts li { font-size: 16px; }
  body.authbg .authpts li span:last-child { white-space: nowrap; }
  body.authbg .pepbrand img { width: 46px; height: 46px; }
  body.authbg .pepwm { font-size: 28px; }
}
/* field hints under the sign-up inputs: balanced lines, no single word left on its own line */
.authcard label .muted.small { text-wrap: balance; margin-bottom: 8px; }
/* no name yet: one line, the claim button, a small text link to the link card */
.needname { display: grid; justify-items: start; gap: 10px; margin: 6px 0 22px; }
.needname p { margin: 0; font-size: 17px; text-wrap: balance; }
.needname .studiobtn { margin-top: 0; }
button.textlink { background: none; border: 0; padding: 2px 0; color: var(--sky); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
button.textlink:hover { background: none; color: #ffc977; }
.card > button.textlink { display: block; margin-top: 12px; }
/* link card: the name and one button; then only the wallets that fit (Madar Wallet first) */
.linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.linkrow .nameinput { margin: 8px 0; flex: 0 1 420px; }
.linkgo { background: linear-gradient(90deg, #ff3d6e, #ff7a1a); color: #fff; border: 0; font-size: 16px; padding: 11px 20px; }
.linkgo:hover { background: linear-gradient(90deg, #ff5683, #ff8d3a); }
.linkgo:disabled { background: #241820; color: #a8979f; cursor: not-allowed; }
.wchoose { display: grid; gap: 6px; margin-top: 4px; }
.wchoose[hidden] { display: none; }
.wlist { display: flex; flex-wrap: wrap; gap: 8px; }
.wopt { display: inline-flex; align-items: center; gap: 8px; }
.wrec { font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #ff3d6e, #ff7a1a); border-radius: 999px; padding: 2px 9px; line-height: 1.5; }
/* Madar Wallet, while not installed: a small card that is itself the link */
a.mwpromo { display: grid; gap: 2px; max-width: 460px; justify-self: start; margin: 14px 0 0; margin-inline-end: auto; padding: 9px 12px; border: 1px solid rgba(255, 122, 26, .35); border-radius: 12px; background: rgba(255, 122, 26, .05); color: var(--text); text-decoration: none; font-size: 13px; line-height: 1.6; }
a.mwpromo b { color: #ffad42; font-size: 14px; }
a.mwpromo span { color: var(--muted); text-wrap: pretty; }
a.mwpromo:hover { border-color: rgba(255, 122, 26, .65); }
/* ===== settings (2026-10-09): a short menu of rows like a phone's settings; each row opens one section on its own screen.
   Wide screens: the menu is a sticky column on the start side, the open section beside it (720px at most). ===== */
.setwrap { display: grid; gap: 16px; width: 100%; max-width: 720px; margin: 0 auto; align-items: start; }
.setmenu { display: grid; gap: 14px; min-width: 0; align-content: start; }
.setmenu .shead h1 { margin: 0 0 2px; }
.setmenu .semail { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
html[dir="rtl"] .setmenu .semail { text-align: right; }
.setpanel p { text-wrap: pretty; }
.studio .card.sgroup { padding: 0; overflow: hidden; border-radius: 16px; display: grid; }
.setmenu .srow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; box-sizing: border-box; margin: 0; padding: 9px 14px; border: 0; border-radius: 0; background: none; color: var(--text); font: inherit; text-align: start; text-decoration: none; cursor: pointer; }
.setmenu .srow + .srow { border-top: 1px solid var(--line); }
.setmenu .srow:hover { background: rgba(255, 255, 255, .035); }
.setmenu .srow:focus-visible { outline: 2px solid #ff7a1a; outline-offset: -2px; }
.setmenu .srow:disabled { opacity: .6; cursor: default; }
.sic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; line-height: 1; color: #fff; }
.s-page .sic { background: linear-gradient(135deg, #ff3d6e, #ff7a1a); }
.s-account .sic { background: #3d6fd8; }
.s-privacy .sic { background: #7b5ad6; }
.s-language .sic { background: #1f9c8a; }
.s-delete .sic { background: rgba(248, 113, 113, .2); }
.s-out .sic { background: #3a2a33; font-size: 18px; }
.stx { flex: 1 1 auto; display: grid; gap: 2px; min-width: 0; }
.stx b { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.ssum { font-size: 13px; line-height: 1.5; color: var(--muted, #a8979f); overflow-wrap: anywhere; text-wrap: pretty; }
html[dir="rtl"] .ssum[dir="ltr"] { text-align: right; }
html[dir="ltr"] .ssum[dir="ltr"] { text-align: left; }
.schev { flex: 0 0 auto; color: var(--muted, #a8979f); font-size: 22px; line-height: 1; padding-inline-start: 4px; }
.s-delete b, .s-out b { color: #ff9b93; }
.setpanel { display: grid; gap: 16px; min-width: 0; align-content: start; }
.setpanel .stitle { margin: 0; font-size: 24px; }
.sback { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; color: var(--sky); text-decoration: none; font-size: 15px; font-weight: 600; }
.sback:hover { text-decoration: underline; }
.setpanel > .card > h2:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .setwrap { max-width: 1074px; grid-template-columns: 330px minmax(0, 720px); justify-content: center; gap: 24px; }
  .setmenu { position: sticky; top: calc(12px + env(safe-area-inset-top, 0px)); }
  .sback { display: none; }
  .setpanel .stitle { margin-top: 6px; }
  .setmenu .srow.on { background: rgba(255, 122, 26, .12); }
  .setmenu .srow.on b { color: #fff; }
}
@media (max-width: 899px) {
  .setwrap.hassub .setmenu { display: none; }
  .setwrap.nosub .setpanel { display: none; }
}
/* settings notes: no single word on the last line */
.studio p, .studio .muted.small { text-wrap: pretty; }
/* «الحساب»: the email and password forms are folded into one row each (title, a short line, a chevron); a tap opens them */
.studio .card.sfold { padding: 0; overflow: hidden; }
.sfold > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; box-sizing: border-box; padding: 12px 18px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.sfold > summary::-webkit-details-marker { display: none; }
.sfold > summary:hover { background: rgba(255, 255, 255, .03); }
.sfold > summary:focus-visible { outline: 2px solid #ff7a1a; outline-offset: -2px; }
.sfold > summary .stx b { font-size: 16px; }
.sfold > summary .ssum bdi { overflow-wrap: anywhere; }
.sfold > summary .schev { display: inline-block; transform: rotate(90deg); transition: transform .15s; }
.sfold[open] > summary .schev { transform: rotate(-90deg); }
.sfold[open] > summary { border-bottom: 1px solid var(--line); }
.sfold .sfbody { padding: 14px 18px 18px; }
.studio .card.soutall { display: grid; gap: 8px; justify-items: start; }
/* phones: the editor's save bar sticks above the bottom tab bar (and to the very bottom while the keyboard is open) */
@media (max-width: 599px) {
  body:has(nav.pnavbar) .savebar { bottom: calc(67px + env(safe-area-inset-bottom, 0px)); }
  body.kbd-open:has(nav.pnavbar) .savebar { bottom: 0; }
}
/* in Arabic the › glyph is mirrored (‹), so its turns go the other way: down when folded, up when open */
html[dir="rtl"] .sfold > summary .schev { transform: rotate(-90deg); }
html[dir="rtl"] .sfold[open] > summary .schev { transform: rotate(90deg); }
/* «زوار صفحتك» (2026-10-09): three numbers in a row, the note under them */
.views { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.views .vh { flex-basis: 100%; }
.vstat { display: flex; flex-direction: column; min-width: 84px; }
.vstat .vn { font-size: 22px; font-weight: 700; line-height: 1.2; }
.views .vnote { flex-basis: 100%; text-wrap: pretty; }
/* «تنبيهات البث المباشر» (2026-10-09) */
.obs .obsrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; }
.obs input { flex-basis: 100%; font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .25); color: inherit; }
.obs > .muted.small:last-child { flex-basis: 100%; }

/* the free page (/<username>) and its receiving wallet (2026-10-10) */
.ownpage { display: grid; gap: 10px; margin: 6px 0 18px; }
.ownpage .nrow { border-color: rgba(255, 122, 26, .35); }
.payout { display: grid; gap: 8px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px; background: #0a070c; }
.payout.off { border-color: rgba(251, 191, 36, .5); }
.payout p { margin: 0; }
.premium { display: grid; justify-items: start; gap: 6px; margin: 14px 0 6px; border: 1px solid rgba(255, 200, 87, .3); border-radius: 12px; padding: 12px 14px; background: linear-gradient(135deg, rgba(255, 200, 87, .07), transparent); }
.premium p { margin: 0; }

/* ===== the profile (2026-10-10): the bar's «الملف الشخصي» tab. A compact head like a phone profile: title + settings gear,
   the picture beside the name, @username and the two counts as small figures, then two compact buttons ===== */
.studio .card.profile { display: grid; gap: 14px; padding: 16px 18px; }
.phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.phead h1 { margin: 0; font-size: 18px; }
.gear { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: #c9a8ff; -webkit-tap-highlight-color: transparent; }
.gear svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.gear:focus-visible { outline: 2px solid #c9a8ff; outline-offset: 2px; }
@media (hover: hover) { .gear:hover { background: rgba(201, 168, 255, .1); border-color: rgba(201, 168, 255, .5); } }
.pid { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pavatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #15101a; border: 1.5px solid rgba(201, 168, 255, .35); color: #8d7f96; }
.pavatar svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.pavatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pwho { display: grid; gap: 1px; min-width: 0; }
.pname { font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.phandle { color: var(--muted); font-size: 13px; unicode-bidi: isolate; justify-self: start; }
.pstats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 13px; }
.pstat { color: var(--muted); white-space: nowrap; }
.pstat b { color: var(--text); font-size: 15px; }
.pacts { display: flex; flex-wrap: wrap; gap: 8px; }
.studio .pacts .pbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; box-sizing: border-box; margin: 0; padding: 6px 16px; border-radius: 10px; font-size: 13.5px; }
@media (max-width: 520px) { .pacts .pbtn { flex: 1 1 0; } }
.setmenu .sback.pback { display: inline-flex; justify-self: start; min-height: 36px; margin-bottom: 4px; }
.pname { justify-self: start; }
/* the cards under the profile: compact buttons, the same size as the profile's own */
.studio .payout button:not(.textlink):not(.ghost), .studio .premium .studiobtn { min-height: 36px; padding: 6px 16px; font-size: 13.5px; border-radius: 10px; }
.studio .premium { padding: 12px 14px; }
/* Madar Wallet card: smaller (owner 2026-10-10) */
.studio a.mwpromo { max-width: 400px; margin-top: 10px; padding: 7px 11px; border-radius: 10px; font-size: 12px; line-height: 1.55; }
.studio a.mwpromo b { font-size: 13px; }
/* the profile counts open their lists in place (owner 2026-10-10) */
.studio .pstats button.pstat { background: none; border: 0; padding: 4px 0; margin: 0; font: inherit; font-size: 13px; font-weight: 400; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; border-radius: 0; -webkit-tap-highlight-color: transparent; }
.studio .pstats button.pstat.on { color: var(--text); border-bottom-color: #c9a8ff; }
@media (hover: hover) { .studio .pstats button.pstat:hover { color: var(--text); } }
.plist { border-top: 1px solid var(--line); padding-top: 10px; }
.plist .pl { list-style: none; margin: 0; padding: 0; display: grid; max-height: 340px; overflow-y: auto; }
.plist .pl li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; }
.plist .pl li + li { border-top: 1px solid var(--line); }
.plinfo { display: grid; gap: 1px; min-width: 0; }
.plname { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; unicode-bidi: isolate; justify-self: start; overflow-wrap: anywhere; }
.plname:hover { text-decoration: underline; }
.plist p { margin: 2px 0; }
/* profile list rows: the chosen name, then «مراسلة» and «متابعة / إلغاء المتابعة» (owner 2026-10-10) */
.plist .pl li { flex-wrap: wrap; }
.plist .plname { unicode-bidi: normal; min-width: 0; flex: 1 1 120px; text-align: start; }
.placts { display: flex; gap: 6px; flex-wrap: wrap; }
.studio .placts .plbtn { display: inline-flex; align-items: center; min-height: 32px; box-sizing: border-box; margin: 0; padding: 4px 12px; border-radius: 9px; font-size: 12.5px; }
.studio .placts button.plbtn.plon { color: #ffc977; border-color: rgba(255, 200, 87, .55); }
/* «إحصائيات صفحتك» on the profile (owner 2026-10-10): number tiles, a 30-day bar chart */
.studio .card.pstatsc { display: grid; gap: 10px; padding: 16px 18px; }
.pstatsc h2 { margin: 0; font-size: 16px; }
.sttiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .sttiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sttile { display: grid; gap: 1px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #0a070c; }
.sttile b { font-size: 18px; line-height: 1.3; }
.sttile span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.sthint { margin-top: 2px; }
.stchart { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding: 4px 0; border-bottom: 1px solid var(--line); direction: ltr; }
.stchart i { flex: 1 1 0; min-width: 2px; border-radius: 3px 3px 0 0; background: rgba(201, 168, 255, .45); }
.stchart i.now { background: #ff7a1a; }
.pstatsc .vnote { font-size: 12px; }
/* the page's marks on the profile, as on the home and the creator page (owner 2026-10-10) */
.pavwrap { position: relative; flex: 0 0 auto; padding-bottom: 8px; }
.pavatar.gold { border-color: #ffd56b; box-shadow: 0 0 12px rgba(255, 213, 107, .3); }
.pname.gold { color: #ffd56b; }
.pnrow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pmarks { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.pmark { display: inline-grid; place-items: center; border-radius: 50%; font-weight: 900; line-height: 1; }
.pmark.id { width: 17px; height: 17px; font-size: 11px; background: #1d9bf0; color: #fff; box-shadow: 0 0 0 1.5px rgba(29, 155, 240, .25); }
.pmark.own { width: 14px; height: 14px; font-size: 9px; background: #ffc857; color: #1a1205; }
.prank { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); width: 30px; height: 30px; z-index: 2; }
.prank.vip { width: 22px; height: 22px; bottom: -2px; }
.prank img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .9)) drop-shadow(0 0 5px rgba(255, 190, 70, .35)); }
/* the profile head (owner 2026-10-10): the title in the middle, a larger picture */
.phead { display: grid; grid-template-columns: 36px 1fr 36px; }
.phead h1 { grid-column: 2; text-align: center; }
.phead .gear { grid-column: 3; }
.pavatar { flex-basis: 84px; width: 84px; height: 84px; }
.pavatar svg { width: 42px; height: 42px; }
.prank { width: 36px; height: 36px; bottom: -6px; }
.prank.vip { width: 26px; height: 26px; }
/* the profile's two doors (owner 2026-10-10), side by side like the Madar site's services: what each one opens */
.ptools { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.studio .ptool { display: grid; gap: 8px; align-content: start; margin: 0; padding: 12px 13px; border-radius: 14px; border: 1px solid var(--line2); background: #0a070c; color: var(--text); font: inherit; font-weight: 400; text-align: start; white-space: normal; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.studio .ptool.t-edit { border-color: rgba(255, 92, 92, .45); background: linear-gradient(160deg, rgba(255, 61, 110, .10), transparent 60%), #0a070c; }
.studio .ptool.t-manage { border-color: rgba(255, 200, 87, .4); background: linear-gradient(160deg, rgba(255, 200, 87, .08), transparent 60%), #0a070c; }
@media (hover: hover) { .studio .ptool:hover { border-color: rgba(255, 122, 26, .75); } }
.studio .ptool:focus-visible { outline: 2px solid #ff7a1a; outline-offset: 2px; }
.pth { display: flex; align-items: center; gap: 8px; }
.pth b { flex: 1 1 auto; font-size: 15px; }
.ptic { font-size: 17px; line-height: 1; }
.pth .schev { color: var(--muted); }
.ptool ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.ptool li { color: var(--muted); font-size: 12.5px; line-height: 1.5; padding-inline-start: 12px; position: relative; }
.ptool li::before { content: "•"; position: absolute; inset-inline-start: 0; color: #ff9b5a; }
.pacts { justify-content: flex-start; }
/* «المتابعون» / «أتابعهم» screens (owner 2026-10-10) */
.studio .pstats a.pstat { color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 13px; }
@media (hover: hover) { .studio .pstats a.pstat:hover { color: var(--text); } }
.studio .card.ppl { display: grid; gap: 12px; padding: 16px 18px; }
.ppl .pplback { justify-self: start; padding: 6px 12px; font-size: 13px; }
.ppl h1 { margin: 0; font-size: 20px; }
.pplcount { color: var(--muted); font-size: 15px; font-weight: 400; }
.studio input.pplsearch { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: #0a070c; color: var(--text); font: inherit; font-size: 14px; outline: 0; }
.studio input.pplsearch:focus { border-color: rgba(255, 122, 26, .6); }
.ppl .plist { border-top: 0; padding-top: 0; }
.ppl .plist .pl { max-height: none; overflow: visible; }
.plist .pl li[hidden] { display: none; }
.plist .pl li .plinfo { flex: 1 1 120px; }
/* followers screens: a magnifier opens the search; each person in a frame of their own */
.pplhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.studio .pplmag { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; margin: 0; padding: 0; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.studio .pplmag svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.studio .pplmag.on { color: #ff9b5a; border-color: rgba(255, 122, 26, .6); }
@media (hover: hover) { .studio .pplmag:hover { color: var(--text); } }
.ppl .plist .pl { gap: 8px; }
.ppl .plist .pl li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #0a070c; }
.ppl .plist .pl li + li { border-top: 1px solid var(--line); }
/* locked creator tools (no Madar name): dimmed, a lock instead of the icon; a tap opens «احجز اسمك» */
.studio .ptool.locked { opacity: .78; border-style: dashed; }
.studio .ptool.locked .ptic { filter: grayscale(.2); }
.signupsoon { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 200, 87, .35); background: rgba(255, 200, 87, .06); line-height: 1.7; }
.signupsoon b { color: #ffd56b; }

/* basic pages (an account without a Madar name, owner 2026-10-11): the name holder parts show a lock that opens the names card */
.studio .ptool li.lk { color: #8d7c84; }
.studio .ptool li.lk::before { content: none; }
.studio .ptool li.lk { padding-inline-start: 0; }
.studio button.plock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: 100%; margin: 6px 0 2px; padding: 12px 14px; border-radius: 10px; border: 1px dashed rgba(255, 200, 87, .45); background: rgba(255, 200, 87, .05); color: #eadde3; font: inherit; font-size: 14px; font-weight: 500; text-align: start; cursor: pointer; white-space: normal; }
.studio button.plock b { margin-inline-start: auto; color: #ffd98a; font-size: 13.5px; font-weight: 700; }
.studio button.plock:hover { border-color: rgba(255, 200, 87, .8); }
.studio .plockic { font-size: 15px; line-height: 1; }
.studio fieldset.psec.locked legend { opacity: .8; }
.studio button.plockrow { width: 100%; text-align: start; cursor: pointer; font: inherit; color: #eadde3; white-space: normal; background: #0a070c; border-color: rgba(255, 200, 87, .45); }
.studio button.plockrow .plh { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.studio button.plockrow .muted { line-height: 1.6; font-weight: 400; }
.studio button.plockrow .plgo { justify-self: start; color: #ffd98a; font-weight: 700; font-size: 13.5px; }
.studio button.plockrow:hover { border-color: rgba(255, 200, 87, .8); }
