/* Yappy Character Profiles v97 — universal/custom inheritance UI */
.ycp97-mode-row{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  margin:4px 0 10px!important;
  padding:11px 12px!important;
  border:1px solid var(--divider)!important;
  border-radius:12px!important;
  background:rgba(118,118,128,.06)!important;
}
.ycp97-mode-row .info-row-copy{flex:1;min-width:0}
.ycp97-mode-row .info-row-copy strong{display:block;font-size:15px;line-height:19px}
.ycp97-mode-row .info-row-copy small{display:block;margin-top:2px;font-size:11.5px;line-height:15px;color:var(--text-sub)}
.ycp97-mode-row input[data-ycp97-toggle]{
  -webkit-appearance:none;
  appearance:none;
  width:46px;
  height:28px;
  min-width:46px;
  border:0;
  border-radius:999px;
  background:#d1d1d6;
  position:relative;
  outline:none;
  transition:background .18s ease;
  cursor:pointer;
}
.ycp97-mode-row input[data-ycp97-toggle]::after{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  left:2px;
  top:2px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.28);
  transition:transform .18s ease;
}
.ycp97-mode-row input[data-ycp97-toggle]:checked{background:#34c759}
.ycp97-mode-row input[data-ycp97-toggle]:checked::after{transform:translateX(18px)}
html[data-theme="dark"] .ycp97-mode-row{background:rgba(118,118,128,.12)!important}

/* Generic fallback surface used automatically by future apps until they register
   a native Profile / Contact Info renderer. */
.ycn97-surface{display:flex!important;flex-direction:column!important;min-height:0!important}
.ycn97-surface>.navbar{flex:0 0 auto}
.ycn97-surface>.screen-body{flex:1 1 0;min-height:0;overflow-y:auto;padding-bottom:32px}
.ycn97-surface .profile-header>.avatar{margin:0 auto}
.ycn97-edit{
  display:grid!important;
  place-items:center!important;
  color:var(--link)!important;
}
.ycn97-edit svg{width:20px!important;height:20px!important}


/* v98 — character avatar aspect lock.
   Character/profile photos must never inherit non-square image geometry from
   surrounding app surfaces. Keep the crop visually square and cover-fill it
   without stretching the source pixels. */
#overlay-root #ac-pic .avatar,
#overlay-root #ycn97-avatar .avatar,
.ycn97-surface .avatar{
  aspect-ratio:1 / 1!important;
  flex:none!important;
  overflow:hidden!important;
  border-radius:50%!important;
}
#overlay-root #ac-pic .avatar img,
#overlay-root #ycn97-avatar .avatar img,
.ycn97-surface .avatar img{
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
}
