/* Ultimate Profile: one character sheet with a collection beneath it. */
#page-ultimate-profile{padding:24px;height:auto;min-height:100%;overflow:visible;color:#f7e9f3}
body[data-page="ultimate-profile"] .main-content{overflow-y:auto;min-height:0}
#ultimateProfileContent{max-width:1120px;margin:0 auto;padding-bottom:24px}
.up-profile-toolbar{display:flex;align-items:center;gap:18px;margin-bottom:18px}
.up-profile-toolbar>span{margin-right:auto;letter-spacing:.2em;font-size:11px;color:#d6a1c3}
#ultimateProfileContent .up-text-action{background:none;border:0;box-shadow:none;padding:8px 0;font-size:13px;color:#cdb4c8;min-height:44px}
.up-profile-options{position:relative;z-index:5}
.up-profile-options>summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:44px;height:44px;border:1px solid #90638066;border-radius:50%;letter-spacing:2px}
.up-profile-options>summary::-webkit-details-marker{display:none}
.up-options-list{position:absolute;right:0;top:50px;min-width:180px;padding:6px;background:#211626;border:1px solid #90638088;border-radius:12px;box-shadow:0 12px 32px #0008}
#ultimateProfileContent .up-options-list button{display:block;width:100%;text-align:left;background:none;border:0;box-shadow:none;border-radius:6px;min-height:44px;padding:10px 12px;font-size:14px}
#ultimateProfileContent .up-options-list button:hover{background:#ffffff0b}
.up-profile-grid{display:grid;grid-template-columns:minmax(220px,.82fr) minmax(0,1.4fr);gap:0;border:1px solid #99658266;border-radius:24px;overflow:hidden;background:radial-gradient(ellipse at 80% 0,#52314755,transparent 65%),#130d1b}
.up-profile-portrait{position:relative;min-width:0;margin:0;background:#09070e;display:flex;flex-direction:column}
#ultimateProfileContent .up-portrait-art{display:block;position:relative;width:100%;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:zoom-in;flex:1;min-height:200px}
.up-portrait-art>img{display:block;width:100%;height:100%;max-height:540px;aspect-ratio:2/3;object-fit:contain}
.up-art-expand{position:absolute;right:12px;bottom:12px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#100918aa;color:#f5d2e6;font-size:21px}
.up-profile-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 20px;background:#1d1223}
.up-profile-caption strong{font:20px Georgia,serif}.up-avi-tier{font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:#dea5c9}
.up-profile-main{min-width:0;padding:34px;display:flex;flex-direction:column}
.up-profile-identity{padding:0;border:0;background:none}
.up-profile-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.15em;color:#ca98b9}
.up-profile-identity h1{font:clamp(32px,4vw,48px) Georgia,serif;margin:10px 0 0;overflow-wrap:anywhere}
.up-profile-panel{padding:22px;border:1px solid #86567555;border-radius:16px;background:#1b122360}
.up-profile-panel h2{font-size:17px;margin:0 0 14px}
.up-profile-muted{font-size:13px;color:#bba8c2;margin:12px 0 0;line-height:1.6}
.up-profile-bio{position:relative;padding:10px 34px 22px 0;border:0;background:none;border-radius:0;min-height:56px}
.up-profile-bio .up-section-heading{position:absolute;right:0;top:4px;margin:0}
.up-bio-copy{margin:0;color:#cbb5c8;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px}
#ultimateProfileContent .up-bio-edit{padding:0;background:none;border:0;box-shadow:none;min-height:36px;width:36px;font-size:22px;color:#dda9cc}
.up-clan-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:18px 0;border-top:1px solid #a66d9233;border-bottom:1px solid #a66d9233}
#ultimateProfileContent .up-clan-link{background:none;border:0;box-shadow:none;padding:0;min-height:32px;font-size:18px;font-weight:650;color:#f6e3ef}
.up-clan-rank{margin-left:auto;color:#c9a0bd;font-size:12px}
.up-core-stats{padding:24px 0 0;border:0;border-radius:0;background:none}
.up-core-stats h2{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:#ca98b9;font-weight:500}
.up-profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.up-profile-stats>div{display:flex;flex-direction:column;gap:9px;border-bottom:2px solid #af648f80;padding-bottom:12px}
.up-profile-stats>div+div{border-color:#9a86cb80}
.up-profile-stats strong{font-size:30px;font-weight:600}.up-profile-stats span{font-size:13px;color:#cfbacb}
.up-avi-bonuses{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:22px;padding-top:18px;border-top:1px solid #a66d9233;font-size:12px}
.up-avi-bonuses>span{flex-basis:100%;color:#bba8c2}.up-avi-bonuses strong{font-weight:600;color:#e8b8d8}
.up-profile-collections{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(220px,1fr);gap:24px;margin-top:26px}
.up-profile-collections>.up-profile-panel{border:0;border-radius:0;background:none;padding:0}
.up-profile-collections>.up-accolades{border-left:1px solid #a66d9233;padding-left:24px}
.up-section-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:16px}.up-section-heading h2{margin:0;margin-right:auto}.up-section-heading .up-profile-muted{margin:0;font-size:12px}
#ultimateProfileContent .up-section-heading button{min-height:36px;font-size:12px}
.up-profile-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.up-profile-items article{display:grid;justify-items:center;gap:7px;padding:12px;text-align:center;border:1px solid #a66d9233;border-radius:12px;background:#ffffff04;overflow-wrap:anywhere}
.up-item-art{display:block;width:100%;height:90px;object-fit:contain}.up-profile-items article strong{font-size:13px}.up-item-quantity{font-size:12px;color:#eec2dc}
.up-profile-records{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px;padding-top:16px;border-top:1px solid #a66d9233}
.up-profile-records>.up-profile-panel{border:0;background:none;padding:0;border-radius:0}
.up-profile-records summary{cursor:pointer;color:#bda6bb;font-size:13px;min-height:44px;align-content:center}
.clubs-hub .ultimate-player-link{margin:0;padding:0;min-height:32px;border:0;background:none;text-align:left;font-weight:700}.clan-roster-face{cursor:pointer}
.up-avi-view,.up-bio-editor{max-width:calc(100vw - 24px);max-height:92dvh;padding:20px;border:1px solid #bd7fa3;border-radius:18px;background:#171020;color:#f8e8f5}
.up-avi-view::backdrop,.up-bio-editor::backdrop{background:#07040bdb}
.up-avi-view>img{display:block;max-width:100%;height:calc(85dvh - 80px);object-fit:contain;margin:10px auto 0}
.up-bio-editor{width:min(480px,calc(100vw - 32px));box-sizing:border-box}.up-bio-editor h2{margin-top:0}.up-bio-editor label{display:block;margin-bottom:10px}
.up-bio-editor textarea{box-sizing:border-box;width:100%;resize:vertical;padding:12px;color:inherit;background:#0d0912;border:1px solid #a66d9280;border-radius:10px;font:inherit}
.up-editor-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
#ultimateProfileContent button:focus-visible,#ultimateProfileContent summary:focus-visible{outline:2px solid #e0adcf;outline-offset:3px}
@media(max-width:700px){
 #page-ultimate-profile{padding:14px}.up-profile-toolbar{gap:12px;margin-bottom:12px}.up-profile-toolbar>span{font-size:9px;letter-spacing:.1em}
 .up-profile-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);border-radius:18px}
 .up-profile-main{padding:18px 14px}.up-profile-identity h1{font-size:28px}.up-profile-eyebrow{font-size:9px}
 #ultimateProfileContent .up-portrait-art{flex:0;min-height:0}.up-portrait-art>img{height:auto;max-height:none}
 .up-profile-caption{padding:12px;flex-direction:column;align-items:flex-start;gap:6px}.up-profile-caption strong{font-size:16px}
 .up-profile-bio{padding-bottom:14px;padding-right:26px}.up-bio-copy{font-size:12px}
 .up-clan-row{gap:6px 10px;padding:12px 0}.up-clan-row>.up-profile-eyebrow{flex-basis:100%}.up-clan-rank{margin-left:0}
 #ultimateProfileContent .up-clan-link{font-size:15px}
 .up-core-stats{padding-top:16px}.up-profile-stats{gap:10px}.up-profile-stats span{font-size:11px}.up-profile-stats strong{font-size:24px}
 .up-avi-bonuses{margin-top:14px;padding-top:12px;gap:8px;font-size:11px}.up-profile-muted{font-size:12px}
 .up-profile-collections{grid-template-columns:1fr;gap:20px;margin-top:20px}.up-profile-collections>.up-accolades{border-left:0;padding-left:0;border-top:1px solid #a66d9233;padding-top:18px}
 .up-profile-records{gap:14px}.up-item-art{height:75px}
}
@media(max-width:380px){.up-profile-main{padding:14px 10px}.up-profile-identity h1{font-size:24px}.up-profile-stats{grid-template-columns:1fr;gap:10px}.up-profile-toolbar{gap:8px}}

/* 10.525: controls belong to the owner identity; artwork stays inside its holder. */
.up-profile-identity{position:relative;padding-right:50px}
.up-profile-identity h1{margin-top:0}
.up-profile-identity>.up-profile-options{position:absolute;top:0;right:0}
.up-profile-grid{overflow:visible}
.up-profile-portrait{border-radius:23px 0 0 23px;overflow:hidden;align-self:start}
#ultimateProfileContent .up-portrait-art{flex:none;min-height:0;overflow:hidden;aspect-ratio:2/3;box-sizing:border-box}
#ultimateProfileContent .up-portrait-art>img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;aspect-ratio:auto;transform:none}
.up-profile-caption{box-sizing:border-box;max-width:100%;flex-wrap:wrap}
.up-profile-caption strong{min-width:0;overflow-wrap:anywhere}
.up-relationship-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:16px 0;border-bottom:1px solid #a66d9233}
.up-connection-state{font-size:13px;color:#bba8c2}
.up-profile-collections>.up-showcase{grid-column:1;grid-row:1 / span 2}
.up-profile-collections>.up-companions,.up-profile-collections>.up-accolades{grid-column:2;border-left:1px solid #a66d9233;padding-left:24px}
.up-companion-empty{display:flex;gap:12px;align-items:center}
.up-companion-mark{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:1px solid #a66d9244;border-radius:50%;color:#d5a3c6;font-size:25px}
.up-companion-empty strong{font-size:13px;font-weight:500;color:#dac3d5}
.up-companion-empty p{margin-top:5px}
@media(max-width:700px){
 .up-profile-portrait{border-radius:17px 0 0 17px}
 .up-profile-identity{padding-right:32px}
 .up-profile-options>summary{width:30px;height:36px;border:0}
 .up-relationship-row{padding:12px 0;gap:6px}.up-relationship-row>.up-profile-eyebrow{flex-basis:100%}
 .up-profile-collections>.up-showcase,.up-profile-collections>.up-companions,.up-profile-collections>.up-accolades{grid-column:auto;grid-row:auto}
 .up-profile-collections>.up-companions,.up-profile-collections>.up-accolades{border-left:0;padding-left:0;border-top:1px solid #a66d9233;padding-top:18px}
}

/* Clan identity: emblem, name and admin-published message. */
.up-clan-row{flex-wrap:nowrap;align-items:center;gap:14px}
.up-profile-clan-emblem{display:block;width:48px;height:48px;flex:0 0 48px;object-fit:contain}
.up-clan-identity{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:3px}
.up-clan-name{font-size:18px;overflow-wrap:anywhere}
#ultimateProfileContent .up-clan-link{white-space:normal;text-align:left;overflow-wrap:anywhere;max-width:100%}
.up-clan-message{margin:3px 0 0;border-left:2px solid #b97ca0;padding-left:10px;color:#cdb3c6;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.up-clan-row{gap:9px}.up-profile-clan-emblem{width:36px;height:36px;flex-basis:36px}.up-clan-name{font-size:15px}.up-clan-message{font-size:12px;padding-left:7px}}

/* Keep member messages aligned below the name at every viewport width. */
.up-clan-row{align-items:flex-start}
.up-profile-clan-emblem{margin-top:3px}
.up-clan-identity{flex:1;min-width:0}
.up-clan-message{box-sizing:border-box;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
