.member-profile-link{color:#285d4c;text-decoration:underline;text-underline-offset:3px}
.member-profile-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}.member-profile-heading h2{margin:4px 0}.member-profile-heading small,.profile-help{font-size:12px;color:var(--muted)}.member-profile-heading>p{font-size:13px;color:#315c53;background:#edf3ed;border-radius:8px;padding:9px 12px}.profile-saved{padding:10px;background:#e8f3e8;border-radius:6px;color:#285d4c}
.profile-protagonist{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#f3f1e8;border:1px solid var(--line);border-radius:10px;padding:16px;margin:20px 0}.profile-protagonist h3{margin:0}.profile-protagonist p{font-size:12px;color:var(--muted);margin:4px 0}.profile-protagonist label{min-width:120px}
.character-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.character-card{padding:16px;border:1px solid #ded8cd;border-radius:10px;background:#f7f6f1}.character-card.is-owned{border-color:#91b19e;background:#f4faf5}.character-card>header{display:flex;gap:12px;align-items:center;margin-bottom:14px}.character-card h4{font-size:17px;color:#234c3b;margin:0 0 5px}.character-points{font-size:12px;color:#9b6519;font-weight:700}.character-card label{font-size:12px}.attendance .character-card select,.attendance .profile-protagonist select{box-sizing:border-box;padding:10px 30px 10px 10px;margin-bottom:10px;color:#234c3b;background:#fffdf8;border-color:#c3cdbf}.character-pet[aria-disabled=true]{opacity:.6}
/* Original sheets: 2868x1320. Use a 72px source circle, centered at x=554.
   Keep coordinates in source pixels so each portrait can be adjusted independently. */
.character-portrait{display:block;position:relative;overflow:hidden;width:64px;height:64px;flex:0 0 64px;border-radius:50%;background:#eee8d8;box-shadow:0 0 0 2px #b79c57,0 3px 7px #234c3b20}.character-portrait img{position:absolute;width:2549.333333px;height:1173.333333px;max-width:none;left:-460.444444px;top:calc(32px - var(--portrait-y) * .888888889px);pointer-events:none}
.portrait-pepe{--portrait-y:220.5}.portrait-midori{--portrait-y:359.5}.portrait-raya{--portrait-y:497.5}.portrait-forio{--portrait-y:636.5}.portrait-madore{--portrait-y:774.5}.portrait-kuresu{--portrait-y:913}.portrait-enshou{--portrait-y:1051}
.portrait-luka{--portrait-y:365}.portrait-akenia{--portrait-y:503}.portrait-brix{--portrait-y:641.5}.portrait-ryunosuke{--portrait-y:779.5}.portrait-road{--portrait-y:918}.portrait-heizu{--portrait-y:1024.5}
.profile-note{margin-top:24px;border-top:1px solid var(--line);padding-top:8px}.attendance .profile-note textarea{max-width:none;box-sizing:border-box}.profile-actions{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px;background:#fffdf8f5;border-top:1px solid var(--line)}.profile-actions button{background:#315c53;color:white}.profile-actions span{font-size:12px;color:#966013}
@media(max-width:800px){.character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.character-grid{grid-template-columns:1fr}.member-profile{padding:16px}.profile-protagonist{align-items:flex-start}.member-profile-heading>p{width:100%;box-sizing:border-box}}
.profile-protagonist{flex-wrap:wrap}
.profile-protagonist-identity{display:flex;align-items:center;gap:14px;min-width:0;flex:1 1 210px}
.character-portrait.protagonist-portrait img{width:64px;height:64px;left:0;top:0}
.profile-pet-title{display:inline-flex;align-items:center;gap:5px}.profile-pet-title>img{width:16px;height:16px;object-fit:contain}

/* Standard portraits: ownership cards only; preserve the circular crop and rim. */
.member-profile .character-card .character-portrait{border-radius:50%;overflow:hidden}
.member-profile .character-card .character-portrait>svg{display:block;width:64px;height:64px;border-radius:50%;overflow:hidden}
.member-profile .character-card[data-character-rarity="SSR"] .character-portrait{background:linear-gradient(145deg,#fff1bd,#d7b866);box-shadow:0 0 0 2px #b79c57,0 3px 7px #234c3b20}
.member-profile .character-card[data-character-rarity="SR"] .character-portrait{background:linear-gradient(145deg,#eee0fa,#b792d3);box-shadow:0 0 0 2px #9670b0,0 3px 7px #234c3b20}
