/* V497 — frame picker: stable equal-size cards instead of displaced labels. */
body[data-oct30-preview="1"] .v497-frame-grid{
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,172px),1fr))!important;
  align-items:stretch!important;gap:14px!important;margin:18px 0 20px!important;
}
body[data-oct30-preview="1"] .v497-frame-grid > .ui-frame-choice-v406{
  box-sizing:border-box!important;position:relative!important;display:flex!important;
  flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
  gap:9px!important;min-width:0!important;min-height:245px!important;
  padding:15px 12px 14px!important;overflow:hidden!important;
  border-radius:18px!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-frame-choice-group-head{
  width:100%!important;flex:0 0 43px!important;display:flex!important;
  flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:2px!important;line-height:1.3!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-frame-choice-group-head b,
body[data-oct30-preview="1"] .v497-frame-grid > .ui-frame-choice-v406 > b{
  display:block!important;font-size:13px!important;line-height:1.35!important;
  text-align:center!important;overflow-wrap:anywhere!important;margin:0!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-frame-choice-group-head small{
  display:block!important;line-height:1.25!important;font-size:12px!important;
}
body[data-oct30-preview="1"] .v497-frame-grid > .ui-frame-choice-v406 > b{
  min-height:43px!important;order:-1!important;display:grid!important;place-items:center!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-avatar-shell{
  order:1!important;width:108px!important;height:108px!important;min-width:108px!important;
  flex:0 0 108px!important;margin:0 auto!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-frame-image{
  width:100%!important;height:100%!important;object-fit:contain!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-frame-selected-mark{
  display:none!important;position:absolute!important;top:8px!important;right:8px!important;
  left:auto!important;z-index:10!important;padding:3px 7px!important;
  font-size:10px!important;line-height:1.25!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-frame-choice-v406.is-selected > .ui-frame-selected-mark{
  display:inline-flex!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-variant-swatch-row{
  order:2!important;display:flex!important;flex-wrap:wrap!important;
  justify-content:center!important;align-items:center!important;gap:6px!important;
  min-height:32px!important;width:100%!important;margin:0!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-variant-swatch{
  display:inline-flex!important;position:relative!important;cursor:pointer!important;
  align-items:center!important;justify-content:center!important;
  padding:0!important;min-width:0!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-variant-swatch input[type=radio]{
  position:absolute!important;width:1px!important;height:1px!important;
  margin:0!important;opacity:0!important;pointer-events:none!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-variant-swatch span{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;height:auto!important;min-height:27px!important;
  padding:4px 8px!important;box-sizing:border-box!important;
  border-radius:999px!important;font-size:11px!important;font-weight:700!important;
  line-height:1.15!important;background:rgba(148,163,184,.11)!important;
  color:var(--text,#f8fafc)!important;border:1px solid rgba(148,163,184,.42)!important;
  box-shadow:none!important;white-space:nowrap!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-variant-swatch:has(input:checked) span{
  border-color:#f59e0b!important;background:rgba(245,158,11,.17)!important;
  color:var(--text,#f8fafc)!important;box-shadow:0 0 0 1px rgba(245,158,11,.32)!important;
}
body[data-oct30-preview="1"] .v497-frame-grid .ui-variant-swatch:focus-within span{
  outline:2px solid #f59e0b!important;outline-offset:2px!important;
}
/* Mobile public/student profile only. Desktop visuals intentionally unchanged. */
@media(max-width:680px){
  body .public-profile-hero{min-height:0!important;padding:18px!important;gap:12px!important}
  body .public-profile-hero > .public-profile-avatar{
    --v492-profile-size:132px!important;width:132px!important;height:132px!important;
    min-width:132px!important;min-height:132px!important;
    max-width:132px!important;max-height:132px!important;flex:0 0 132px!important;
  }
  body .public-profile-hero > .public-profile-avatar.oct15-avatar-shell > .oct15-frame-overlay{
    width:100%!important;height:100%!important;
  }
  body[data-oct30-preview="1"] .v497-frame-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-oct30-preview="1"] .v497-frame-grid > .ui-frame-choice-v406{
    min-height:219px!important;padding:13px 7px 11px!important;gap:7px!important;
  }
  body[data-oct30-preview="1"] .v497-frame-grid .ui-avatar-shell{
    width:88px!important;height:88px!important;min-width:88px!important;flex-basis:88px!important;
  }
  body[data-oct30-preview="1"] .v497-frame-grid .ui-frame-choice-group-head{flex-basis:47px!important}
  body[data-oct30-preview="1"] .v497-frame-grid .ui-variant-swatch span{
    font-size:10px!important;padding:4px 6px!important;
  }
}
