/* Independent identity component: intrinsic height, wrapping text and a bounded level badge. */
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity193{grid-column:1/-1!important;grid-row:1!important;display:grid!important;grid-template-columns:minmax(150px,24%) minmax(0,1fr) minmax(64px,24%)!important;grid-template-rows:auto!important;align-items:center!important;gap:10px 14px!important;position:relative!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;padding:10px 14px!important;border:1px solid #c7ac7d66!important;border-radius:8px!important;background:linear-gradient(110deg,#b28b5120,transparent 48%),#101923f2!important;box-shadow:inset 0 1px #ffe8c626,0 5px 16px #0003!important;overflow:visible!important;isolation:isolate}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity193::before,:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity193::after{display:none!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-copy193{grid-column:2!important;grid-row:1!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;text-align:center!important;align-self:center!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-copy193 h2{display:block!important;font:700 clamp(22px,2.1vw,30px)/1.16 RpgDisplay184,system-ui!important;color:#f7eddf!important;margin:0!important;padding:0!important;max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;letter-spacing:normal!important;text-transform:none!important;text-shadow:none!important;height:auto!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-meta193{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:3px 10px!important;margin:4px 0 0!important;padding:0!important;min-width:0!important;max-width:100%!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-meta193 span{font:600 12px/1.35 RpgDisplay184,system-ui!important;color:#c3cbd1!important;margin:0!important;padding:0!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;letter-spacing:normal!important;text-transform:none!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-level193{grid-column:3!important;grid-row:1!important;display:grid!important;place-items:center!important;justify-self:end!important;align-self:center!important;min-width:64px!important;width:64px!important;height:64px!important;margin:0!important;padding:0!important;line-height:1!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-level193 .level-badge186{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;flex:0 0 64px!important;min-width:64px!important;max-width:64px!important;width:64px!important;min-height:64px!important;max-height:64px!important;height:64px!important;box-sizing:border-box!important;margin:0!important;padding:0!important;gap:2px!important;overflow:visible!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-level193 .level-badge186>svg{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:visible!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-level193 .level-label186{font:600 7px/1.1 RpgDisplay184,system-ui!important;letter-spacing:.1em!important;color:#dcc59c!important;text-shadow:none!important;margin:0!important;padding:0!important;white-space:nowrap!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-level193 .level-number186{font:700 24px/1 RpgDisplay184,system-ui!important;letter-spacing:normal!important;color:#fff1d8!important;text-shadow:none!important;margin:0!important;padding:0!important;white-space:nowrap!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193{grid-column:1!important;grid-row:1!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;position:relative!important;z-index:30;min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193:empty{display:none!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193 .dash-profile-switch{min-width:0!important;max-width:100%!important;flex:1 1 120px!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193 select{box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;height:32px!important;min-height:32px!important;padding:4px 24px 4px 8px!important;font:600 12px/1.3 RpgDisplay184,system-ui!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193 .overview-family190{flex:0 0 auto;max-width:100%!important}
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193 .overview-family190>summary{min-height:32px!important;height:32px!important;padding:5px 9px!important;max-width:100%!important;white-space:normal!important}
@media(min-width:1000px){
 :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .journey181.journey189{grid-template-rows:auto 8px minmax(0,1fr) minmax(0,1.1fr) auto!important}
 :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .identity193{padding:8px 14px!important;gap:8px 12px!important}
 :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .identity-copy193 h2{font-size:clamp(22px,2vw,28px)!important}
 @container overview190 (max-height:560px){
  :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .journey181.journey189{grid-template-rows:auto 4px minmax(0,1fr) minmax(0,1.05fr) auto!important}
  :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .identity193{padding:6px 12px!important}
  :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .identity-copy193 h2{font-size:24px!important}
  :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .identity-meta193{margin-top:3px!important}
  :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .identity-meta193 span{font-size:11px!important}
 }
 @container overview190 (max-height:460px){
  :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .journey181.journey189{grid-template-rows:auto 0 minmax(0,1fr) minmax(0,1fr) auto!important}
  :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .identity193{padding:5px 10px!important}
  :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .identity-copy193 h2{font-size:22px!important}
  :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .identity-meta193 span{font-size:10px!important}
  :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .journey181 .journey-panel181{padding:5px!important}
  :root body#sensei-app.tactical166 #root#root .app.online47.fit-overview190 #content .rpg184.overview189.overview190.overview192.overview193 .journey-details189>section{padding:7px 10px!important}
 }
}
@media(max-width:999px){
 :root body#sensei-app.tactical166 #root#root .app.online47:has(.overview193) .main.scene188::before{display:none!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey181.journey189{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity193{grid-column:1/-1!important;grid-row:1!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-avatar181{grid-column:1/-1!important;grid-row:2!important;min-width:0!important;width:100%!important;max-width:560px!important;justify-self:center!important;margin:0 auto!important;border:1px solid #c3a57855!important;border-radius:9px!important;overflow:hidden!important;background:var(--scene-fill192,#101923)!important;box-shadow:0 7px 20px #0004!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-art181{height:var(--avatar-height193,clamp(420px,calc(100svh - 230px),680px))!important;min-height:0!important;width:100%!important;max-width:none!important;margin:0!important;background-image:var(--scene-portrait193,var(--scene188))!important;background-size:cover!important;background-position:50% 100%!important;background-repeat:no-repeat!important;background-color:var(--scene-fill192,#101923)!important;border-radius:0!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey181[data-scene-photo193=false] .journey-art181{background-size:contain!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-edit181{padding:8px!important;background:#101923!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-edit181 button{min-height:36px!important;height:36px!important;padding:6px 14px!important;font-size:13px!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-cards181{grid-column:1!important;grid-row:3!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-grade181{grid-column:1!important;grid-row:4!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-xp181{grid-column:2!important;grid-row:3!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-rewards181{grid-column:2!important;grid-row:4!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-details189{grid-row:5!important;grid-column:1/-1!important}
}
@media(max-width:760px){
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity193{grid-template-columns:minmax(0,1fr) 56px!important;padding:12px!important;gap:10px!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-copy193{grid-column:1!important;grid-row:1!important;text-align:left!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-copy193 h2{font-size:25px!important;text-align:left!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-meta193{justify-content:flex-start!important;margin-top:4px!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-meta193 span{font-size:12px!important;text-align:left!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-level193{grid-column:2!important;grid-row:1!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193{grid-column:1/-1!important;grid-row:2!important;flex-wrap:nowrap!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193 .dash-profile-switch{flex:1 1 auto!important;max-width:none!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193 .overview-family190{flex:0 0 auto!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193 select{height:36px!important;min-height:36px!important;font-size:13px!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193 .overview-family190>summary{height:36px!important;min-height:36px!important;font-size:12px!important}
}
@media(max-width:600px){
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-cards181{grid-column:1/-1!important;grid-row:3!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-grade181{grid-column:1/-1!important;grid-row:4!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-xp181{grid-column:1/-1!important;grid-row:5!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-rewards181{grid-column:1/-1!important;grid-row:6!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .journey-details189{grid-row:7!important}
}
/* Editor preview follows the same desktop / portrait compositions as the overview. */
body.avatar-theme188 .preview-layout193{display:flex!important;justify-content:flex-end;gap:8px;margin:0 0 8px;padding:0}
body.avatar-theme188 .preview-layout193 button{min-height:34px!important;padding:6px 14px!important;border:1px solid #b99b6e66!important;border-radius:5px!important;background:#172534!important;color:#e9edf0!important;font:600 13px/1.3 RpgDisplay184,system-ui!important}
body.avatar-theme188 .preview-layout193 button[aria-pressed=true]{background:#9c4c3b!important;border-color:#dfb58b!important;color:#fff0de!important}
body.avatar-theme188 .stage[data-layout193=wide][data-camera=full] .stage-art{height:auto!important;min-height:0!important;aspect-ratio:16/10!important;background-image:var(--scene188)!important;background-size:contain!important;background-position:center!important}
body.avatar-theme188 .stage[data-layout193=mobile]{width:100%!important;max-width:360px!important;margin-inline:auto!important}
body.avatar-theme188 .stage[data-layout193=mobile][data-camera=full] .stage-art{height:auto!important;min-height:0!important;aspect-ratio:2/3!important;background-image:var(--scene-portrait193,var(--scene188))!important;background-size:cover!important;background-position:center bottom!important}
body.avatar-theme188 .stage[data-layout193=mobile][data-camera=full] .stage-art[data-scene-photo193=false]{background-size:contain!important}
/* The family dropdown belongs above the avatar and the other isolated grid items. */
:root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview193 .identity193:has(.overview-family190[open]){z-index:40}
@media(max-width:760px){
 /* Anchor below the identity panel, keeping the summary available to close it. */
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .identity-controls193,
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .overview-family190{position:static!important}
 :root body#sensei-app.tactical166 #root#root .app.online47 #content .rpg184.overview189.overview190.overview192.overview193 .overview-family190>.family160{position:absolute!important;inset:calc(100% + 8px) 0 auto!important;width:100%!important;max-height:min(60dvh,560px)!important;box-sizing:border-box}
}
