/* CrimsonCore private member studio */
.profile-main{padding-top:38px}
.profile-loading{padding:70px 0;color:var(--muted);text-align:center}
.profile-hero{position:relative;overflow:hidden;display:flex;align-items:center;gap:28px;padding:35px;border:1px solid var(--line);border-radius:20px;background:radial-gradient(ellipse at 92% 0%,rgba(240,82,104,.21),transparent 50%),linear-gradient(125deg,#1b1923,#101116);margin-bottom:22px}
.profile-large-avatar{height:116px;width:116px;object-fit:contain;border-radius:30px;border:3px solid rgba(255,255,255,.12);background:#221e2a;flex-shrink:0}
.profile-hero h1{font-size:clamp(34px,4vw,52px)}.profile-hero-name{color:#d4d1d7;font-size:17px;margin:10px 0}
.member-label{display:inline-block;color:#ffa9ba;background:#3d1c29;border:1px solid #76445a;padding:6px 12px;border-radius:20px;font-size:10px;text-transform:uppercase;letter-spacing:.09em;font-weight:700}
.profile-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}
.profile-tabs button{display:inline-block;color:#c9c6d0;cursor:pointer;background:#161720;font:600 12px/1.4 'DM Sans',sans-serif;padding:11px 16px;border:1px solid var(--line);border-radius:10px}
.profile-tabs button:hover,.profile-tabs button:focus-visible{color:#fff;border-color:var(--brand);background:#201720}
.profile-panel{scroll-margin-top:20px;border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:30px;margin-bottom:24px}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin:0 0 26px}
.section-heading h2{font-size:clamp(25px,3vw,36px)}.section-heading>p{max-width:390px;margin:0;font-size:12px;color:#a9a8b3;line-height:1.65}
.avatar-selector{background:#101116;border:1px solid #302e37;padding:23px;border-radius:14px;margin-bottom:25px}
.avatar-selector h3{font-size:17px;margin:0 0 5px}
.panel-note{font-size:12px;color:#a5a6b0;line-height:1.65;margin:6px 0 20px}
.avatar-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
.avatar-pick{display:grid;justify-items:center;gap:7px;min-width:0;border:2px solid #343440;border-radius:13px;background:#1a1b23;padding:8px 5px 9px;color:#c6c6cc;font-size:10px;font-weight:600}
.avatar-pick:hover{border-color:#cd677b}.avatar-pick[aria-pressed="true"]{border-color:#fa7189;background:#402330;color:#fff;box-shadow:0 0 0 2px #452332}
.avatar-pick:focus-visible{outline:3px solid #f88397;outline-offset:3px}
.avatar-pick img{width:100%;max-width:90px;aspect-ratio:1;border-radius:10px}
.profile-form{display:block}.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.profile-fields>div{min-width:0}.profile-fields .wide{grid-column:1/-1}
.profile-fields label{display:block;color:#ebe5eb;font-size:12px;font-weight:700;margin:0 0 9px}
.profile-fields input,.profile-fields select,.profile-fields textarea{display:block;width:100%;font:inherit;font-size:13px;color:#f8f5f8;border:1px solid #3b3a45;outline:none;border-radius:10px;background:#101116;padding:13px 15px}
.profile-fields input:focus,.profile-fields select:focus,.profile-fields textarea:focus{border-color:#e96a82}
.profile-fields textarea{resize:vertical;line-height:1.7}
.profile-fields small{display:block;margin:6px 0 0;color:#a4a4ae;font-size:10px}
.profile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:23px}
.profile-actions .status{margin:0}
.collection-heading{border-top:1px solid #373540;display:flex;justify-content:space-between;align-items:center;gap:14px;margin:27px 0 15px;padding-top:20px}
.collection-heading h3{font-size:17px}.collection-count{color:#a7a3af;font-size:11px}
.profile-collection{display:grid;gap:13px}
.member-entry{background:#191a22;border:1px solid #35343e;border-radius:12px;padding:20px;min-width:0;overflow-wrap:anywhere}
.entry-head{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:10px}
.entry-category{font-size:10px;border:1px solid #78505c;color:#ffc0cd;padding:4px 8px;border-radius:30px;text-transform:uppercase;font-weight:700;letter-spacing:.045em}
.entry-date{font-size:11px;color:#a3a3af}.member-entry h4{font:600 17px/1.4 'Space Grotesk',sans-serif;margin:0 0 10px;color:#f5f3f4}
.entry-body{font-size:13px;color:#c8c5cc;line-height:1.75;white-space:pre-line;margin:0;overflow-wrap:anywhere}
.entry-actions{display:flex;gap:10px;margin-top:15px}
.entry-actions button{color:#ddd7df;padding:8px 13px;border:1px solid #4a4652;border-radius:8px;background:transparent;font-size:11px}
.entry-actions button:hover{color:#fff;border-color:var(--brand)}
.member-entry .entry-feedback{margin:12px 0 0;padding:12px;background:#211e29;border-left:2px solid #f8798d;color:#e9d1da;font-size:12px;white-space:pre-line}
.profile-link-button{display:inline-block;text-decoration:none}.profile-link-button:hover{text-decoration:none}
.status.is-error{color:#ff9eaa}.status.is-success{color:#a4dfbb}
@media(max-width:980px){.avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:620px){.profile-main{padding-top:26px}.profile-hero{align-items:flex-start;gap:18px;padding:22px}.profile-large-avatar{width:83px;height:83px;border-radius:20px}.profile-panel{padding:21px 17px}.profile-fields{grid-template-columns:1fr;gap:18px}.profile-fields .wide{grid-column:auto}.profile-tabs{gap:7px}.profile-tabs button{padding:10px 12px}.avatar-selector{padding:16px}.avatar-grid{gap:7px}.profile-hero-name{font-size:13px}}

/* Private CrimsonCore notice inbox */
.member-notices{scroll-margin-top:22px;padding:26px;border-radius:17px;background:linear-gradient(120deg,#201720,#171720);border:1px solid #6b3c51;margin:0 0 24px}
.member-notices .section-heading{margin-bottom:15px}
.member-notices .section-heading h2{font-size:clamp(22px,2.8vw,29px)}
.member-notices .member-entry{background:#211d28}
.member-notices .notice-unread{border-color:#a34e65;background:#2b1c2a}
.member-notices .entry-body{white-space:pre-line}
@media(max-width:600px){.member-notices{padding:20px 16px}}

/* Read-only profile and true, single-panel member tabs */
.profile-main [hidden]{display:none!important}
.profile-tabs{overflow-x:auto;flex-wrap:nowrap;padding:3px 2px 8px;scrollbar-width:thin}
.profile-tabs button{flex:0 0 auto;white-space:nowrap}
.profile-tabs button[aria-selected="true"]{color:#fff;border-color:#df647c;background:linear-gradient(135deg,#492332,#2b1b2c);box-shadow:inset 0 -2px 0 #ed647f}
.profile-tabs button:focus-visible{outline:2px solid #f47c94;outline-offset:2px}
.profile-heading-actions{display:flex;gap:9px;flex-wrap:wrap}
.profile-heading-actions .ghost{font-size:12px;font-weight:700}
.profile-readonly{padding:10px 0 0}
.profile-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 24px}
.profile-summary>div{min-width:0;background:#15151d;border:1px solid #373541;border-radius:12px;padding:17px 18px}
.profile-summary>div.wide{grid-column:1/-1}
.profile-summary dt{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:#a7a4b0;font-weight:700;margin-bottom:8px}
.profile-summary dd{font-size:14px;line-height:1.6;color:#f4eff3;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
#profile-view-feedback:not(:empty){margin:0 0 15px}
#profile-editor{padding-top:5px}
@media(max-width:620px){.profile-summary{grid-template-columns:1fr}.profile-summary>div.wide{grid-column:1}.profile-tabs{margin-bottom:18px}.profile-heading-actions{width:100%}}
