/* Heroine profile only. Shared timeline, male cards and main scene are unchanged. */
.self-profile{--self-spec-size:16px}
.self-profile>.eyebrow{display:block}
.self-profile .self-profile-heading{justify-content:flex-start;align-items:flex-start}
.self-profile .self-profile-heading h2{margin-top:0;margin-bottom:5px}
.self-profile .self-profile-photo{padding:0;border:0;min-height:0;cursor:zoom-in;overflow:hidden}
.self-profile .self-profile-lead{font-size:calc(var(--self-spec-size) + 2px);line-height:1.7;margin:0}
.self-profile .self-profile-specs{font-size:var(--self-spec-size);line-height:1.7;margin:0 0 12px}
.self-profile-row{display:flex;flex-wrap:wrap;margin:0;padding:0;gap:0}
.self-profile-item{display:inline-flex;align-items:baseline;max-width:100%;min-width:0;gap:0}
.self-profile-item>span:first-child{color:var(--muted);flex:none}
.self-profile-item>span:last-child{min-width:0;overflow-wrap:anywhere}
.self-profile-item:not(:last-child)::after{content:'｜';color:#c5a7b2;margin:0 .25em;flex:none}
.self-profile .self-profile-bonus{color:#c13452;font-weight:700}
.self-profile>.profile-debuffs{margin:0 0 12px;max-width:none;justify-content:flex-start}
@media(max-width:650px){.self-profile{--self-spec-size:14px}}

/* The profile follows its intrinsic content width; existing padding and viewport limits remain. */
dialog:has(> .self-profile){width:max-content;max-width:min(calc(100vw - 32px),95vw,960px)}
