/* MS-SHELL-V2 skin-60-profile — REDESIGN-14 PROFILE (draft by NZ3, 15.11.2026).
   Zone: /irl/profile (Profile.php) → body.bodypage_profile. Personal details, overview, certificate-name lock,
   communications (phone/email), password & security, save row, alerts.
   Layout (grid + display:contents built by sc-profile-v10) is NOT touched: only surfaces, borders, colours,
   radii, type and touch targets. Every selector = "html.msv2 body.bodypage_profile …"; colours only via --ms-* tokens.
   Profile has no commerce action, so there is no orange button here: Save = navy primary, Change password = secondary. */

/* ── 1. Page + header ──────────────────────────────────────────────────── */
html.msv2 body.bodypage_profile{ background:var(--ms-bg)!important; }
html.msv2 body.bodypage_profile .sc-acc-head h1{ color:var(--ms-ink)!important; font-weight:700!important; letter-spacing:normal!important; }
html.msv2 body.bodypage_profile .sc-acc-head p{ color:var(--ms-muted)!important; }
html.msv2 body.bodypage_profile .sc-backhome{ color:var(--ms-navy)!important; min-height:44px; display:inline-flex; align-items:center; }
html.msv2 body.bodypage_profile .sc-backhome:hover{ text-decoration:underline; }

/* ── 2. Cards ──────────────────────────────────────────────────────────── */
html.msv2 body.bodypage_profile :is(.sc-card, .profile-modern .pwd-edit, .profile-modern .profile-card){
  background:var(--ms-surface)!important; background-image:none!important;
  border:1px solid var(--ms-border)!important;
  border-radius:var(--ms-radius-lg)!important;
  box-shadow:none!important;
  color:var(--ms-ink);
}
html.msv2 body.bodypage_profile .sc-card-hd .sc-cico{
  background:var(--ms-soft)!important; color:var(--ms-navy)!important; border-radius:var(--ms-radius)!important;
}
html.msv2 body.bodypage_profile .sc-hdtxt b{ color:var(--ms-ink)!important; font-weight:700!important; }
html.msv2 body.bodypage_profile .sc-hdtxt span{ color:var(--ms-muted)!important; font-size:13px!important; }

/* ── 3. Form fields (personal details, phone, password) ────────────────── */
html.msv2 body.bodypage_profile .profile-modern :is(label, .control-label){
  color:var(--ms-muted)!important; font-size:13px!important; font-weight:600!important;
}
html.msv2 body.bodypage_profile .profile-modern :is(input.form-control, select.form-control, textarea, .input-group input, .input-group select){
  background:var(--ms-surface)!important;
  border-color:var(--ms-border)!important;
  color:var(--ms-ink)!important;
  box-shadow:none!important;
  min-height:44px;
  font-size:15px!important;
}
html.msv2 body.bodypage_profile .profile-modern :is(input.form-control, select.form-control, textarea, .input-group input, .input-group select):focus{
  border-color:var(--ms-navy)!important;
  box-shadow:0 0 0 3px var(--ms-blue-soft)!important;
  outline:none;
}
html.msv2 body.bodypage_profile .profile-modern :is(input, select, textarea)[disabled],
html.msv2 body.bodypage_profile .profile-modern :is(input, select, textarea)[readonly]{
  background:var(--ms-soft)!important; color:var(--ms-muted)!important;
}
html.msv2 body.bodypage_profile .profile-modern .input-group-addon{
  background:var(--ms-surface)!important;
  border-color:var(--ms-border)!important;
  color:var(--ms-muted)!important;
}
/* password show/hide eye: bigger touch target, same position */
html.msv2 body.bodypage_profile .profile-modern .sc-eye{
  color:var(--ms-muted)!important; min-width:32px; min-height:32px;
  display:inline-flex; align-items:center; justify-content:center;
}
html.msv2 body.bodypage_profile .profile-modern .sc-eye:hover{ color:var(--ms-navy)!important; }
html.msv2 body.bodypage_profile .profile-modern .sc-eye:focus-visible{ outline:2px solid var(--ms-navy); outline-offset:2px; border-radius:6px; }

/* ── 4. Overview rows + status pills ───────────────────────────────────── */
html.msv2 body.bodypage_profile .sc-ov-row{ border-bottom-color:var(--ms-border)!important; }
html.msv2 body.bodypage_profile .sc-ov-row .sc-ov-i{ color:var(--ms-muted)!important; }
html.msv2 body.bodypage_profile .sc-ov-row .sc-ov-k{ color:var(--ms-muted)!important; font-size:14px!important; }
html.msv2 body.bodypage_profile .sc-ov-row .sc-ov-v{ color:var(--ms-ink)!important; font-size:14px!important; }
html.msv2 body.bodypage_profile .sc-pill{
  background:var(--ms-blue-soft)!important; color:var(--ms-navy)!important;
  border:1px solid transparent!important; font-size:12px!important; font-weight:700!important;
}
html.msv2 body.bodypage_profile .sc-dot{ background:var(--ms-green)!important; }

/* ── 5. Certificate-name lock bar (amber notice) ───────────────────────── */
html.msv2 body.bodypage_profile .sc-certbar{
  background:var(--ms-amber-soft)!important; background-image:none!important;
  border:1px solid var(--ms-border)!important;
  border-radius:var(--ms-radius-lg)!important; box-shadow:none!important;
}
html.msv2 body.bodypage_profile .sc-certbar .sc-cb-ico{
  background:var(--ms-surface)!important; color:var(--ms-amber)!important; border-radius:var(--ms-radius)!important;
}
html.msv2 body.bodypage_profile .sc-certbar .sc-cb-txt b{ color:var(--ms-amber)!important; font-size:16px!important; }
html.msv2 body.bodypage_profile .sc-certbar .sc-cb-txt span{ color:var(--ms-ink)!important; }
/* "request correction" link = secondary button */
html.msv2 body.bodypage_profile .sc-certbar .sc-name-lock a{
  background:var(--ms-surface)!important; color:var(--ms-navy)!important;
  border:1px solid var(--ms-border)!important; border-radius:var(--ms-radius)!important;
  min-height:44px; box-shadow:none!important; font-weight:700!important;
}
html.msv2 body.bodypage_profile .sc-certbar .sc-name-lock a:hover{
  background:var(--ms-soft)!important; border-color:var(--ms-navy)!important;
}
/* plain lock line when the bar is not built */
html.msv2 body.bodypage_profile .profile-modern > .sc-name-lock,
html.msv2 body.bodypage_profile .profile-details .sc-name-lock{
  color:var(--ms-amber)!important;
}

/* ── 6. Communications card (phone / email) ────────────────────────────── */
html.msv2 body.bodypage_profile .sc-comm{
  background:var(--ms-surface)!important; background-image:none!important;
  border:1px solid var(--ms-border)!important;
  border-radius:var(--ms-radius-lg)!important; box-shadow:none!important;
}
html.msv2 body.bodypage_profile .sc-comm .sc-cico{ background:var(--ms-soft)!important; color:var(--ms-navy)!important; }
html.msv2 body.bodypage_profile .sc-comm .input-group-addon{ background:var(--ms-surface)!important; }
html.msv2 body.bodypage_profile .sc-addnum{
  background:var(--ms-surface)!important; color:var(--ms-navy)!important;
  border:1px solid var(--ms-border)!important; border-radius:var(--ms-radius)!important;
  min-height:44px; box-shadow:none!important; font-weight:700!important;
}
html.msv2 body.bodypage_profile .sc-addnum:hover{ background:var(--ms-soft)!important; border-color:var(--ms-navy)!important; color:var(--ms-navy)!important; }
html.msv2 body.bodypage_profile .sc-addnum svg{ color:var(--ms-navy)!important; }

/* ── 7. Password & security ────────────────────────────────────────────── */
html.msv2 body.bodypage_profile .sc-sec-note,
html.msv2 body.bodypage_profile .profile-modern .pwd-note{
  background:var(--ms-blue-soft)!important; background-image:none!important;
  border:1px solid var(--ms-border)!important; border-radius:var(--ms-radius)!important;
  color:var(--ms-ink)!important;
}
html.msv2 body.bodypage_profile .profile-modern .pwd-note :is(li, li b, li em, .pwd-note-head){ color:var(--ms-ink)!important; }
html.msv2 body.bodypage_profile .profile-modern .pwd-note-head i{ color:var(--ms-navy)!important; }
html.msv2 body.bodypage_profile .profile-modern .pwd-edit input{ border-color:var(--ms-border)!important; }
/* Change password = secondary action */
html.msv2 body.bodypage_profile .profile-modern .pwd-edit .pwd-action .btn{
  background:var(--ms-surface)!important; background-image:none!important;
  color:var(--ms-navy)!important;
  border:1px solid var(--ms-navy)!important;
  border-radius:var(--ms-radius)!important;
  box-shadow:none!important; min-height:44px; font-weight:700!important;
}
html.msv2 body.bodypage_profile .profile-modern .pwd-edit .pwd-action .btn:hover{ background:var(--ms-soft)!important; }

/* ── 8. Save (page primary, not commerce → navy) ───────────────────────── */
html.msv2 body.bodypage_profile .profile-modern .save-btn{
  background:var(--ms-navy)!important; background-image:none!important;
  border:1px solid var(--ms-navy)!important; color:var(--ms-surface)!important;
  border-radius:var(--ms-radius)!important; box-shadow:none!important;
  min-height:44px; font-weight:700!important;
}
html.msv2 body.bodypage_profile .profile-modern .save-btn:hover{
  background:var(--ms-navy-ink)!important; border-color:var(--ms-navy-ink)!important;
}
html.msv2 body.bodypage_profile .profile-modern .save-btn:focus-visible,
html.msv2 body.bodypage_profile .profile-modern .pwd-edit .pwd-action .btn:focus-visible{
  outline:2px solid var(--ms-orange); outline-offset:2px;
}
html.msv2 body.bodypage_profile .profile-modern .save-btn .sc-savetxt{ color:inherit!important; font-size:inherit!important; }

/* ── 9. Server messages above the form ─────────────────────────────────── */
html.msv2 body.bodypage_profile .alert.alert-success{
  background:var(--ms-green-soft)!important; color:var(--ms-green)!important;
  border:1px solid var(--ms-border)!important; border-radius:var(--ms-radius)!important;
}
html.msv2 body.bodypage_profile .alert.alert-warning{
  background:var(--ms-amber-soft)!important; color:var(--ms-amber)!important;
  border:1px solid var(--ms-border)!important; border-radius:var(--ms-radius)!important;
}
html.msv2 body.bodypage_profile .alert .close{ min-width:44px; min-height:44px; }

/* ── 10. Phones ────────────────────────────────────────────────────────── */
@media (max-width:767px){
  html.msv2 body.bodypage_profile .sc-acc-head h1{ font-size:24px!important; }
  html.msv2 body.bodypage_profile .profile-modern .pwd-edit .pwd-action .btn{ width:100%; }
  html.msv2 body.bodypage_profile .sc-certbar .sc-name-lock a{ width:100%; justify-content:center; }
  html.msv2 body.bodypage_profile .sc-addnum{ width:100%; justify-content:center; }
  html.msv2 body.bodypage_profile .profile-modern .sc-eye{ min-width:44px; min-height:44px; }
}

/* One visible border/focus treatment per control; retain native country/phone handlers. */
html.msv2 #ms-frame .profile-modern .save-btn :is(span,i,svg){color:inherit!important}
html.msv2 #ms-frame .profile-modern .save-btn{color:var(--ms-surface)!important}
html.msv2 #ms-frame .profile-modern .input-group:has(>select[name="item[country]"]){display:block!important;border:0!important;border-radius:0!important;padding:0!important;background:none!important;box-shadow:none!important}
html.msv2 #ms-frame .profile-modern .input-group:has(>select[name="item[country]"])>.input-group-addon{display:none!important}
html.msv2 #ms-frame .profile-modern select[name="item[country]"]{width:100%!important;min-width:0!important;height:46px!important;min-height:46px!important;border:1px solid var(--ms-border)!important;border-radius:8px!important;padding:8px 12px!important;box-sizing:border-box!important;background:var(--ms-surface)!important}
html.msv2 #ms-frame .profile-modern select[name="item[country]"]:focus{border-color:var(--ms-navy)!important;outline:2px solid var(--ms-navy)!important;outline-offset:2px!important;box-shadow:none!important}
html.msv2 #ms-frame .profile-modern .field-phone:has(>.code-phone>input),html.msv2 #ms-frame .profile-modern .field-phones:has(>.code-phone>input){display:block!important;border:0!important;padding:0!important;background:none!important}
html.msv2 #ms-frame .profile-modern .field-phone>.code-phone:has(>input),html.msv2 #ms-frame .profile-modern .field-phones>.code-phone:has(>input){display:flex!important;align-items:center!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:46px!important;height:46px!important;margin:0!important;padding:0!important;border:1px solid var(--ms-border)!important;border-radius:8px!important;box-sizing:border-box!important;box-shadow:none!important}
html.msv2 #ms-frame .profile-modern .code-phone>input.form-control{min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;border:0!important;border-radius:7px!important;outline:none!important;box-shadow:none!important;background:transparent!important;box-sizing:border-box!important}
html.msv2 #ms-frame .profile-modern .code-phone:has(>input):focus-within{border-color:var(--ms-navy)!important;outline:2px solid var(--ms-navy)!important;outline-offset:2px!important;box-shadow:none!important}
html.msv2 #ms-frame .profile-modern .field-phone>input.form-control{height:44px!important;min-height:44px!important;border:0!important;outline:none!important;box-shadow:none!important;margin:0!important;border-radius:0 7px 7px 0!important;box-sizing:border-box!important}
html.msv2 #ms-frame .profile-modern .field-phone:has(>input):focus-within{border-color:var(--ms-navy)!important;outline:2px solid var(--ms-navy)!important;outline-offset:2px!important;box-shadow:none!important}

/* LMSV2-NIGHT-07 (PLAYERS MacAir4, 16.11.2026): profile page to the 16.11 mock-up - private preview only (html.msv2). */
@layer ms-typography {
  /* Save button printed "Change password Save changes": the PHP label span (BtnSave, wrongly "Change password" in English)
     sits next to the JS label .sc-savetxt. Keep one label: the icon span stays, the BtnSave span is hidden. */
  html.msv2 body.bodypage_profile .profile-modern .save-btn > span:not(.sc-savetxt):not(:has(svg)){display:none!important}
  /* mock-up scale: controls and buttons 44px (h1 stays with the shared skin-99 typography: 20px/600) */
  html.msv2 body.bodypage_profile #ms-frame .profile-modern :is(input,select).form-control:not([type=checkbox]):not([type=radio]){height:44px!important;min-height:44px!important}
  html.msv2 body.bodypage_profile #ms-frame .profile-modern :is(.save-btn,.pwd-edit .btn){height:44px!important;min-height:44px!important}
}
@layer ms-typography {
  /* password eye button: re-centred for the 44px field (it was placed for the old 48px one) */
  html.msv2 body.bodypage_profile #ms-frame .profile-modern .pwd-edit .sc-eye{top:6px!important;bottom:6px!important}
}
@media (max-width:900px){
  @layer ms-typography {
    /* phone: the eye keeps its 44px tap target and fills the field; password fields get air between them
       (each label sits in its own .pwd-col, so the gap goes on the column) */
    html.msv2 body.bodypage_profile #ms-frame .profile-modern .pwd-edit .sc-eye{top:0!important;bottom:0!important}
    html.msv2 body.bodypage_profile #ms-frame .profile-modern .pwd-edit .pwd-col + .pwd-col{margin-top:12px!important}
  }
}
