/* VerseBlock profile layout polish v2; additive overrides only. */
body[data-vb-profile-page="public"] main.page,
body[data-vb-profile-page="settings"] main.page {
  box-sizing: border-box;
  width: min(100% - 32px, 1120px);
  max-width: 1120px;
  margin-inline: auto;
  padding-top: clamp(18px, 3vw, 32px);
  padding-bottom: clamp(28px, 4vw, 52px);
}
body[data-vb-profile-page="public"] main.page > *,
body[data-vb-profile-page="settings"] main.page > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
body[data-vb-profile-page="public"] main.page img,
body[data-vb-profile-page="settings"] main.page img {
  max-width: 100%;
}
body[data-vb-profile-page="public"] main.page :where(h1,h2,h3,h4,p,small,strong,span,a,button,label) {
  overflow-wrap: anywhere;
}
body[data-vb-profile-page="public"] main.page :where(button,a),
body[data-vb-profile-page="settings"] main.page :where(button,a) {
  max-width: 100%;
}
body[data-vb-profile-page="settings"] main.page form {
  min-width: 0;
  max-width: 100%;
}
body[data-vb-profile-page="settings"] main.page form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) {
  box-sizing: border-box;
  max-width: 100%;
}
body[data-vb-profile-page="settings"] main.page form :where(label,fieldset,section,article,div) {
  min-width: 0;
}
body[data-vb-profile-page="settings"] main.page input[type="file"] {
  display: block;
  max-width: 100%;
}
@media (max-width: 720px) {
  body[data-vb-profile-page="public"] main.page,
  body[data-vb-profile-page="settings"] main.page {
    width: calc(100% - 24px);
    padding-top: 16px;
  }
  body[data-vb-profile-page="public"] main.page :where(.grid,.stats,.stats-grid,.profile-grid,.player-grid),
  body[data-vb-profile-page="settings"] main.page :where(.grid,.settings-grid,.account-grid,.appearance-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* Detected profile/stat grids: equal-height responsive cards. */
body[data-vb-profile-page="public"] main.page .banner-grid,
body[data-vb-profile-page="public"] main.page .profile-details-grid,
body[data-vb-profile-page="public"] main.page .profile-highlight-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap:clamp(10px, 1.7vw, 18px); align-items:stretch; min-width:0; width:100%; }


/* Detected profile identity / hero blocks. */
body[data-vb-profile-page="public"] main.page .generated-banner,
body[data-vb-profile-page="public"] main.page .profile-hero-banner,
body[data-vb-profile-page="public"] main.page .public-banner { display:flex; flex-flow:row wrap; align-items:center; justify-content:space-between; gap:clamp(12px,2vw,22px); min-width:0; max-width:100%; box-sizing:border-box; }


/* Detected profile cards and statistics: prevent overflow and uneven alignment. */
body[data-vb-profile-page="public"] main.page .competitive-card,
body[data-vb-profile-page="public"] main.page .profile-detail-card,
body[data-vb-profile-page="public"] main.page .progress-card { min-width:0; max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; align-self:stretch; }


/* Detected profile image wrappers */
body[data-vb-profile-page="public"] main.page .avatar,
body[data-vb-profile-page="public"] main.page .public-avatar { min-width:0; max-width:100%; box-sizing:border-box; flex-shrink:0; }

body[data-vb-profile-page="public"] main.page .avatar img,
body[data-vb-profile-page="public"] main.page .public-avatar img { display:block; max-width:100%; object-fit:cover; }


/* Detected settings wrappers */
body[data-vb-profile-page="settings"] main.page .settings-layout { min-width:0; max-width:100%; width:100%; box-sizing:border-box; }


/* Detected settings control grids */
body[data-vb-profile-page="settings"] main.page .banner-grid,
body[data-vb-profile-page="settings"] main.page .custom-theme-grid,
body[data-vb-profile-page="settings"] main.page .file-grid,
body[data-vb-profile-page="settings"] main.page .password-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:clamp(12px,1.8vw,20px); align-items:start; min-width:0; }
