/* Profile and account pages. Loaded after the inherited prosilver rules. */
.px-profile { display: grid; gap: 18px; }
.px-profile .panel { margin: 0; padding: 26px; min-width: 0; }
.px-profile .panel .inner::after { display: none; }
.px-profile-hero {
  background: radial-gradient(ellipse at top right, var(--px-accent-soft), transparent 65%), var(--px-surface-2);
  border-color: var(--px-border-strong);
  box-shadow: var(--px-shadow);
}
.px-profile-hero > .inner { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 30px; align-items: start; }
.px-profile .avatar-rank-container, .px-profile .profile-details { float: none; width: auto; margin: 0; }
.px-profile .avatar-rank-container { max-width: 100%; text-align: center; }
.px-profile .profile-avatar { margin-bottom: 14px; }
.px-profile .profile-avatar img { max-width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--px-border-strong); }
.px-avatar-placeholder { display: grid; place-items: center; width: 128px; height: 128px; margin: auto; border-radius: 24px; background: var(--px-accent-soft); border: 1px solid var(--px-border-strong); }
.px-avatar-placeholder .icon { font-size: 52px; color: var(--px-accent-2); }
.px-profile-rank { margin: 6px 0; color: var(--px-muted); overflow-wrap: anywhere; }
.px-profile-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 5px 11px; border: 1px solid var(--px-border); border-radius: 100px; color: var(--px-muted); font-size: 12px; }
.px-profile-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.px-profile-status.is-online { color: #83e5b1; background: rgba(83, 207, 145, .08); }
.px-profile-info > .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.px-profile .column1, .px-profile .column2 { float: none; width: auto; margin: 0; min-width: 0; }
.px-profile h3, .section-ucp .cp-main h3 { margin: 0 0 18px; padding-bottom: 12px; color: var(--px-text); font-size: 16px; text-transform: none; border-color: var(--px-border); }
.px-profile dl.details, .section-ucp .cp-main dl.details { display: grid; grid-template-columns: minmax(100px, 30%) minmax(0, 1fr); gap: 12px 18px; margin: 0; font-size: 14px; }
.px-profile dl.details dt, .section-ucp .cp-main dl.details dt,
.px-profile dl.details dd, .section-ucp .cp-main dl.details dd { float: none; clear: none; width: auto; margin: 0; padding: 0; text-align: start; overflow: visible; overflow-wrap: anywhere; min-width: 0; }
.px-profile dl.details dt, .section-ucp .cp-main dl.details dt { color: var(--px-muted); }
.px-profile dl.details dd, .section-ucp .cp-main dl.details dd { color: var(--px-text); }
.px-profile dl.details .px-profile-name { font-size: 24px; line-height: 1.35; }
.px-profile-action { display: inline-block; margin: 4px 6px 0 0; font-size: 12px; }
.px-profile-action a { display: inline-block; padding: 6px 10px; background: var(--px-accent-soft); border: 1px solid var(--px-border-strong); border-radius: 8px; }
.px-profile select { max-width: 100%; margin-bottom: 6px; }
.px-profile .px-profile-signature .postbody { float: none; width: 100%; }
.px-profile .signature { margin: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
.px-profile .signature img { max-width: 100%; height: auto; }

/* Keep phpBB's tab overflow menu and form behavior intact. */
.px-role-manager { margin-top: 18px; padding: 26px; border-color: var(--px-border-strong); }
.px-role-manager h3 { margin-top: 0; font-size: 18px; text-transform: none; }
.px-role-fields { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0; }
.px-role-fields > div { flex: 1 1 240px; min-width: 0; }
.px-role-fields label { display: block; margin-bottom: 8px; color: var(--px-text); font-weight: 650; }
.px-role-fields select { width: 100%; max-width: 100%; }
.px-role-help { color: var(--px-muted); }
.px-role-success { color: #83e5b1; }
.px-role-manager button { max-width: 100%; white-space: normal; }
.section-ucp .tabs { margin: 0 0 16px; }
.section-ucp .tabs .tab > a { margin: 3px; padding: 10px 14px; border: 1px solid var(--px-border); border-radius: 10px; color: var(--px-muted); background: var(--px-surface-2); box-shadow: none; }
.section-ucp .tabs .tab > a:hover { color: var(--px-text); background: var(--px-surface-3); }
.section-ucp .tabs .activetab > a, .section-ucp .tabs .activetab > a:hover { color: var(--px-text); border-color: var(--px-border-strong); background: var(--px-accent-soft); box-shadow: none; }
.px-cp-shell { padding: 22px; }
.px-cp-layout { display: flex; gap: 24px; align-items: flex-start; width: 100%; }
.px-cp-layout > .cp-menu { float: none; flex: 0 0 220px; width: 220px; margin: 0; min-width: 0; }
.px-cp-layout > .cp-main { float: none; flex: 1; width: auto; min-width: 0; }
.section-ucp #navigation { padding: 0; max-width: none; }
.section-ucp #navigation li { display: block; margin: 0 0 6px; }
.section-ucp #navigation a { margin: 0; padding: 11px 14px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--px-muted); overflow-wrap: anywhere; }
.section-ucp #navigation a:hover { color: var(--px-text); background: var(--px-surface-3); }
.section-ucp #navigation .active-subsection a { color: var(--px-text); background: var(--px-accent-soft); border-color: var(--px-border-strong); }
.section-ucp .cp-main h2 { margin: 0 0 18px; font-size: 24px; }
.section-ucp .cp-main .panel { padding: 20px; margin-bottom: 16px; background: rgba(255, 255, 255, .025); }
.section-ucp .cp-main label, .section-ucp .cp-main dt { color: var(--px-text); }
.section-ucp .cp-main dt span, .section-ucp .cp-main .panel p { color: #bdb8cb; }
.section-ucp .cp-main .inputbox, .section-ucp .cp-main select { max-width: 100%; }
.section-ucp .cp-mini { margin: 16px 0 0; padding: 14px; border: 1px solid var(--px-border); }
.section-ucp .cp-main .error { color: #ff9aab; }
.section-ucp .cp-main .pm, .section-ucp .cp-main .pm-message { color: var(--px-text); background: var(--px-surface-2); border-color: var(--px-border); }
.section-ucp .cp-main table.table1 thead th,
.section-ucp .cp-main .panel li.header dt,
.section-ucp .cp-main .panel li.header dd { color: var(--px-muted); border-color: var(--px-border); }
.section-ucp .cp-main .panel li.row, .section-ucp .cp-main ul.cplist { border-color: var(--px-border); }
.section-ucp .cp-main fieldset { min-width: 0; }
.section-ucp .cp-main textarea.inputbox { width: 100%; }
.section-ucp .responsive-tab .responsive-tab-link::before { border-color: var(--px-accent-2); }
.section-ucp .minitabs .tab > a { color: var(--px-muted); background: var(--px-surface-3); }
.section-ucp .minitabs .activetab > a,
.section-ucp .minitabs .tab > a:hover { color: var(--px-text); background: var(--px-accent-soft); }

@media (max-width: 900px) {
  .px-cp-layout { flex-direction: column; gap: 20px; }
  .px-cp-layout > .cp-menu, .px-cp-layout > .cp-main { flex: auto; width: 100%; }
  .section-ucp #navigation ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .section-ucp #navigation li { margin: 0; }
  .section-ucp #navigation a { padding: 9px 12px; background: rgba(255, 255, 255, .025); }
}
@media (max-width: 600px) {
  .px-profile .panel, .px-cp-shell { padding: 18px; }
  .px-profile-hero > .inner, .px-profile-info > .inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .px-profile .avatar-rank-container { justify-self: center; }
  .px-profile dl.details, .section-ucp .cp-main dl.details { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .px-profile dl.details dd, .section-ucp .cp-main dl.details dd { margin-bottom: 12px; }
  .section-ucp .cp-main .panel { padding: 14px; }
  .section-ucp .cp-main fieldset > dl > dt, .section-ucp .cp-main fieldset > dl > dd { float: none; width: auto; margin-left: 0; padding-left: 0; text-align: start; }
  .section-ucp .cp-main fieldset > dl > dd { margin-top: 8px; }
  .section-ucp .tabs .tab > a { padding: 9px 10px; }
}
