.profile-equipment { border:1px solid rgba(255,255,255,.18); padding:12px; }
.profile-equipment summary {
  cursor:default;
  font-size:0!important;
  font-weight:800;
  list-style:none;
  pointer-events:none;
  color:transparent!important;
}
.profile-equipment summary::-webkit-details-marker { display:none; }
.profile-equipment summary::before {
  content:'희망장비 (선택사항)';
  color:var(--wcsm-ink,#2d3439)!important;
  font-size:12px!important;
  font-weight:800;
}
/* Preferred equipment is an optional profile section, not a hidden advanced setting.
   Keep the fields visible even while the legacy <details> element is closed. */
.profile-equipment:not([open]) > p { display:block!important; }
.profile-equipment:not([open]) > fieldset { display:grid!important; }
.profile-equipment > p { font-size:11px; line-height:1.6; color:rgba(255,255,255,.7); }
.profile-equipment fieldset { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; min-width:0; margin:14px 0 0; padding:12px; border:1px solid rgba(255,255,255,.15); }
.profile-equipment legend { padding:0 5px; font-size:12px; font-weight:800; }
.profile-equipment input, .profile-equipment select { width:100%; min-width:0; }
.profile-equipment-summary { width:100%; font-size:12px; }
.profile-equipment-summary[hidden] { display:none; }
.profile-equipment-summary p { display:grid; grid-template-columns:72px minmax(0,1fr); gap:10px; padding:8px 0; margin:0; border-bottom:1px solid rgba(255,255,255,.12); text-align:left; }
.profile-equipment-summary p > strong { white-space:nowrap; }
.profile-equipment-summary span { overflow-wrap:anywhere; }
.profile-equipment-source { font-size:11px; line-height:1.5; opacity:.7; }
.equipment-stats-table td { white-space:normal; overflow-wrap:anywhere; }
body[data-ui-theme="aivora"] .profile-equipment-summary p { border-color:rgba(0,0,0,.1); }
@media(max-width:360px) { .profile-equipment fieldset { grid-template-columns:minmax(0,1fr); } }

.profile-equipment .equipment-secondary-field { grid-column:1 / -1; font-size:11px; opacity:.75; }
.profile-equipment-summary p > span { font-weight:700; }
.profile-equipment-summary .equipment-secondary-value { grid-column:2; font-size:11px; opacity:.65; overflow-wrap:anywhere; }

/* The registered-profile dashboard normally locks panel scrolling so its sponsor rail
   stays fixed. While EDIT PROFILE is open, that lock must be disabled. On mobile,
   dismissing the software keyboard otherwise restores the full viewport while the
   panel remains overflow:hidden, leaving the lower form unreachable. */
html body #app #profilePanel:has(#profileForm:not(.is-hidden)) {
  display:block!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-y:contain;
  touch-action:pan-y!important;
}
