/* الملف العام للمزرعة ورابط الاسم. توكنات التصميم فقط (لا ألوان حرفية). */
.profile-link { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 2px; border: 0; background: none;
  color: inherit; font: inherit; font-weight: 700; text-align: start; cursor: pointer;
  text-decoration: underline dotted var(--primary); text-underline-offset: 5px; }
.profile-link .ui-icon { color: var(--primary); width: 16px; height: 16px; flex: none; }
.profile-link:focus-visible, .profile-target:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-sm); }
.profile-target { cursor: pointer; }
.chat-conv-name { font-size: var(--fs-md); }

.public-profile { display: grid; gap: 14px; align-content: start; padding: 4px 0 24px; }
.pp-hero { display: grid; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.pp-id { display: grid; gap: 6px; min-width: 0; }
.pp-id h1 { margin: 0; font: 700 var(--fs-xl)/1.35 var(--font-display); }
.pp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--muted); font: 600 var(--fs-label) var(--font-body); }
.pp-chip.ok { background: var(--primary-soft); color: var(--primary); }
.pp-chip .ui-icon { width: 14px; height: 14px; }
.pp-bio { margin: 0; line-height: 1.8; }
.pp-stats { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.pp-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pp-actions button, .pp-actions a { min-height: 48px; }
.pp-message { flex: 1 1 140px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.pp-note { margin: 0; color: var(--muted); font-size: var(--fs-label); line-height: 1.7; }
.pp-privacy { margin: 0; line-height: 1.7; }
.pp-section { display: grid; gap: 10px; }
.pp-section h2 { margin: 0; font: 700 var(--fs-md) var(--font-display); }
.pp-requests, .pp-posts { display: grid; gap: 8px; }
.pp-request-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; min-height: 56px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-align: start; cursor: pointer; }
.pp-request-row .ui-icon { margin-inline-start: auto; color: var(--muted); }
.pp-post { display: grid; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }

/* مفاتيح الخصوصية في «حسابي» */
.pp-field { display: grid; gap: 6px; }
.pp-field textarea { width: 100%; box-sizing: border-box; }
.pp-counter { text-align: end; }
.pp-switch-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; border-top: 1px solid var(--line); }
.pp-switch-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pp-switch { position: relative; flex: none; width: 56px; min-height: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.pp-switch::before { content: ""; position: absolute; inset-block: 8px; inset-inline: 0; border-radius: 16px; background: var(--surface-3); border: 1px solid var(--line); }
.pp-switch::after { content: ""; position: absolute; top: 12px; inset-inline-start: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); }
.pp-switch.on::before { background: var(--primary); border-color: var(--primary); }
.pp-switch.on::after { inset-inline-start: 28px; background: var(--on-primary); }
.pp-switch:disabled { opacity: .5; cursor: not-allowed; }
.pp-switch:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* اسم المؤلف داخل تعليق المقطع: الحاوية نفسها لا تلتقط اللمس (pointer-events: none)، فيُفعَّل على الرابط وحده */
.reel-caption .profile-link { pointer-events: auto; position: relative; z-index: 3; color: inherit; min-height: 48px; }
.reel-live-body .profile-link { pointer-events: auto; color: inherit; justify-content: center; }

/* بطاقة العرض: الزرّ الممتد (market-card-open::after) يغطي البطاقة بـz-index 1؛ اسم البائع يعلوه ليبقى قابلاً للنقر */
.market-card-seller { position: relative; z-index: 2; min-height: 48px; }
.pp-counter { direction: ltr; unicode-bidi: isolate; }
