/* V2Y Accounts v3.2: no fixed widths, supports 320px+ and existing theme tokens. */
.v32-auth{width:min(100%,540px);margin:clamp(12px,4vw,48px) auto;min-width:0}
.v32-auth h1{font-size:clamp(1.45rem,3vw,1.95rem);line-height:1.2;margin:0}
.v32-auth .form-grid,.v32-account-grid .form-grid{min-width:0;max-width:100%}
.v32-auth input,.v32-account-grid input{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.v32-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;min-width:0}
.v32-account-grid>*{min-width:0;overflow-wrap:anywhere}
.v32-account-grid .v32-danger{grid-column:1/-1}
.v32-alert{border:1px solid #c98955;border-radius:10px;padding:12px}
.v32-delete-button{background:#a43d4b;color:#fff;border:1px solid #a43d4b;padding:12px 16px;border-radius:10px;min-height:44px;cursor:pointer}
.v32-auth a,.v32-account-grid a{overflow-wrap:anywhere}
.v32-auth button,.v32-account-grid button{min-height:44px}
@media(max-width:760px){.v32-account-grid{grid-template-columns:minmax(0,1fr);gap:12px}.v32-account-grid .v32-danger{grid-column:auto}}

.v312-signin{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:38px;padding:6px 12px;border:1px solid var(--border,#34414e);border-radius:10px;text-decoration:none;font-weight:600;font-size:.9rem}
@media(max-width:440px){.v312-signin{padding:6px 9px;font-size:.82rem}}

.v38-one-ui .v39-profile-heading {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.v38-one-ui .v39-profile-heading .secondary-btn { display:inline-flex; align-items:center; gap:7px; }
.v38-one-ui .v39-profile-heading .v312-icon { width:18px; height:18px; }
.v38-one-ui .v39-profile-pane { display:grid; gap:12px; min-width:0; margin-block:14px; }
.v38-one-ui .v39-profile-pane > :is(.panel,.thread-card,.v353-settings-fold) { min-width:0; margin:0; }
.v38-one-ui .v39-profile-form { width:min(100%, 640px); overflow-wrap:anywhere; }
.v38-one-ui .v39-profile-form :is(h2,h3) { margin-block:0 12px; }
.v38-one-ui .v39-profile-form h3 { margin-block-start:16px; }
.v38-one-ui .v39-profile-form :is(input,textarea,select) { max-width:100%; }
.v38-one-ui .v39-profile-form .form-grid > button { justify-self:start; }
.v38-one-ui .v39-profile-bio { white-space:pre-wrap; overflow-wrap:anywhere; }
.v38-one-ui .main .v39-profile-pane .profile-hero { padding:0; }
.v38-one-ui .v39-profile-pane .profile-cover { height:clamp(80px, 14vw, 148px); }
.v38-one-ui .v39-profile-pane .profile-cover img { height:100%; object-fit:cover; }
.v38-one-ui .v39-profile-pane .profile-identity { min-height:0; }
.v38-one-ui .v39-profile-pane .profile-meta-stats { gap:4px 12px; }
.v38-one-ui .v39-profile-pane .profile-extra h2 { margin-top:0; }
.v38-one-ui .v39-profile-pane .profile-extra .profile-badges:empty { display:none; }
.v38-one-ui .v39-profile-media { display:grid; gap:8px; margin-top:14px; }
.v38-one-ui .v39-profile-media .v353-settings-fold { margin:0; }
.v38-one-ui .v39-profile-media .profile-media-option { padding:12px; border:0; }
.v38-one-ui .v39-profile-fold-body { padding:12px 15px; }
.v38-one-ui .v39-profile-fold-body > p:first-child { margin-top:0; }
.v38-one-ui .v39-profile-fold-body > p:last-child { margin-bottom:0; }
.v38-one-ui .v39-profile-form .v39-profile-blocked { margin-block:14px 0; }
.v38-one-ui .v39-account-actions { display:flex; flex-wrap:wrap; gap:8px; }
.v38-one-ui .v39-account-actions form { margin:0; }
.v38-one-ui .v39-profile-pane .form-grid button.v32-delete-button {
  color:var(--v38-danger);
  background:var(--v38-danger-bg);
}

@media(max-width:430px) {
  .v38-one-ui .v39-profile-heading .secondary-btn { padding-inline:11px; }
  .v38-one-ui .v39-profile-heading .v312-icon { display:none; }
  .v38-one-ui .v39-profile-pane .profile-identity { gap:10px; }
  .v38-one-ui .v39-profile-pane .profile-meta-stats { margin-top:6px; }
}
