/* Profile hub: a neutral charcoal foundation with restrained lime and KOL cyan. */
.drawer-sheet:has(.profile-hub){width:min(1000px,100vw);max-width:100vw;padding:0;background:#171717}
.drawer-sheet:has(.profile-hub)>.drawer-close{position:sticky;top:10px;float:right;margin:10px 12px -54px 0;color:#d4d4cf;background:rgba(25,25,25,.82);border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(10px)}
.drawer-sheet:has(.profile-hub)>.drawer-close:hover{border-color:rgba(185,255,78,.45);color:var(--lime)}

.profile-hub{--hub-surface:#191919;--hub-panel:#202020;--hub-raised:#262626;--hub-line:#363636;--hub-copy:#efefeb;--hub-muted:#a6a6a1;--hub-faint:#81817e;--hub-lime:var(--lime);--hub-cyan:#88dce6;--hub-cyan-line:#426169;--hub-cyan-surface:#1b272a;--ape-cutout-color:#191919;color:var(--hub-copy);min-height:100%;padding:0 30px 34px;background:#171717;font-size:13px;line-height:1.45}
.profile-hub *{min-width:0}
.profile-hub button,.profile-hub select,.profile-hub input{font:inherit}
.profile-hub button{cursor:pointer}
.profile-hub a{color:inherit}
.profile-hub button:focus-visible,.profile-hub a:focus-visible,.profile-hub select:focus-visible,.profile-hub input:focus-visible{outline:2px solid var(--hub-lime);outline-offset:3px}

.profile-hub .hub-cover{position:relative;height:122px;margin:0 -30px;overflow:hidden;border-bottom:1px solid var(--hub-line);background:radial-gradient(ellipse at 80% 120%,rgba(185,255,78,.105),transparent 56%),linear-gradient(118deg,#292929,#1b1b1b 53%,#252525)}
.profile-hub .hub-cover::before{position:absolute;inset:0;background:repeating-linear-gradient(139deg,transparent 0 69px,rgba(255,255,255,.035) 70px 71px,transparent 72px 98px);content:""}
.profile-hub .hub-cover::after{position:absolute;top:29px;right:30px;color:rgba(219,255,150,.11);content:"APED IN";font:600 48px/1 var(--serif);letter-spacing:.09em}
.profile-hub .hub-header{position:relative;display:flex;align-items:flex-end;gap:17px;min-height:110px;margin-top:-40px;padding:0 0 19px;border-bottom:1px solid var(--hub-line)}
.profile-hub .hub-identity{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:16px;flex:1}
.profile-hub .profile-avatar{display:grid;width:84px;height:84px;place-items:center;overflow:visible;flex:none;border:2px solid #5b6254;border-radius:50%;background:#292929;box-shadow:0 0 0 5px #191919,0 0 0 6px rgba(185,255,78,.12);object-fit:cover}
.profile-hub .profile-avatar.ape-avatar{border:0;box-shadow:none;background:transparent}
.profile-hub .hub-name{padding-bottom:2px}
.profile-hub .hub-name h2{display:flex;align-items:center;gap:7px;margin:0;color:var(--hub-copy);font:600 clamp(30px,4vw,39px)/1 var(--serif);letter-spacing:-.035em;overflow-wrap:anywhere}
.profile-hub .hub-handle{display:block;margin-top:4px;color:var(--hub-muted);font-size:12px;overflow-wrap:anywhere}
.profile-hub .hub-subtitle{display:block;margin-top:6px;color:var(--hub-faint);font:9px var(--mono);letter-spacing:.075em;text-transform:uppercase}
.profile-hub .hub-actions{display:flex;align-items:center;gap:6px;padding-bottom:1px}
.profile-hub .hub-actions button,.profile-hub .hub-actions a{display:inline-flex;min-height:32px;align-items:center;justify-content:center;gap:6px;border:1px solid var(--hub-line);border-radius:6px;background:var(--hub-raised);color:#d6d6d1;padding:6px 10px;font-size:11px;text-decoration:none;white-space:nowrap}
.profile-hub .hub-actions button:hover,.profile-hub .hub-actions a:hover{border-color:rgba(185,255,78,.55);color:var(--hub-lime)}
.profile-hub .hub-actions .primary,.profile-hub .hub-actions [data-primary="true"]{border-color:var(--hub-lime);background:var(--hub-lime);color:#1b230e;font-weight:700}
.profile-hub .hub-actions .primary:hover,.profile-hub .hub-actions [data-primary="true"]:hover{background:#ccff7d;color:#17200b}
.profile-hub .hub-socials{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:13px 0 17px;border-bottom:1px solid var(--hub-line)}
.profile-hub .hub-socials>a,.profile-hub .hub-socials>button{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--hub-line);border-radius:5px;background:var(--hub-panel);color:#d1d1cb;padding:5px 8px;font-size:10px;text-decoration:none}
.profile-hub .hub-socials>a:hover,.profile-hub .hub-socials>button:hover{border-color:rgba(185,255,78,.45);color:var(--hub-lime)}
.profile-hub .hub-socials .ui-icon{width:13px;height:13px}

.profile-hub .hub-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.95fr);align-items:start;gap:16px;margin-top:18px}
.profile-hub .hub-main-column,.profile-hub .hub-side-column{display:flex;flex-direction:column;gap:16px}
.profile-hub .hub-panel{border:1px solid var(--hub-line);border-radius:9px;background:var(--hub-panel);padding:15px}
.profile-hub .hub-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 11px}
.profile-hub .hub-section-title h3{margin:0;color:var(--hub-copy);font:600 20px/1 var(--serif);letter-spacing:-.015em}
.profile-hub .hub-section-title>small,.profile-hub .hub-section-title>span{color:var(--hub-faint);font:9px var(--mono);letter-spacing:.06em;text-align:right;text-transform:uppercase}

.profile-hub .hub-progression{display:flex;align-items:center;gap:12px}
.profile-hub .hub-progression>img{width:42px;height:42px;object-fit:contain;flex:none}
.profile-hub .hub-progression strong{display:block;color:#e8e8e3;font-size:12px;font-weight:600}
.profile-hub .hub-progression p{margin:3px 0 0;color:var(--hub-muted);font-size:11px}
.profile-hub .hub-progression p+*{margin-top:7px}
.profile-hub .hub-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid var(--hub-line)}
.profile-hub .hub-stats span{display:block;color:var(--hub-faint);font-size:10px}
.profile-hub .hub-stats strong{display:block;margin:1px 0;color:var(--hub-copy);font:600 24px/1 var(--serif);letter-spacing:-.02em}
.profile-hub .hub-stats small{display:block;color:var(--hub-muted);font-size:9px;line-height:1.25}

.profile-hub .hub-kol{padding:12px 14px;background:linear-gradient(130deg,#1b272a,#202020 78%);border-color:var(--hub-cyan-line)}
.profile-hub .hub-kol .hub-section-title{margin-bottom:8px}
.profile-hub .hub-kol .hub-section-title h3{color:#c4e6e8;font-size:14px}
.profile-hub .hub-kol .hub-section-title h3::before{display:inline-block;margin-right:7px;border:1px solid #4f8790;border-radius:3px;background:#18353a;color:var(--hub-cyan);content:"KOL";font:8px var(--mono);letter-spacing:.06em;padding:2px 3px;vertical-align:2px}
.profile-hub .hub-ranks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.profile-hub .hub-rank{display:grid;min-height:52px;place-items:center;border:1px solid #3c5459;border-radius:5px;background:rgba(9,25,27,.34);color:var(--hub-cyan);padding:5px;text-align:center}
.profile-hub .hub-rank:hover,.profile-hub .hub-rank[aria-expanded="true"]{border-color:#83cbd2;background:#23383c}
.profile-hub .hub-rank small{display:block;color:#a2bbc0;font:8px var(--mono);letter-spacing:.055em;text-transform:uppercase}
.profile-hub .hub-rank strong{display:block;margin-top:1px;font:600 22px/1 var(--serif);letter-spacing:-.01em}
.profile-hub .hub-kol p,.profile-hub .hub-kol .hub-note{margin:8px 0 0;color:#9fb6b9;font-size:9px;line-height:1.45}
.profile-hub .hub-kol .hub-rank.is-provisional{border-style:dashed;border-color:#58747a;color:#a6d6da}
.profile-hub .hub-kol .hub-rank.is-provisional:hover{border-color:#91d7dd;background:#223236}

.profile-hub .hub-sources{padding:14px}
.profile-hub .hub-source-row{display:flex;align-items:center;gap:10px;width:100%;border:1px solid var(--hub-line);border-radius:7px;background:#232323;color:var(--hub-copy);padding:9px;text-align:left;text-decoration:none}
.profile-hub .hub-source-row+.hub-source-row{margin-top:6px}
.profile-hub .hub-source-row:hover{border-color:rgba(185,255,78,.42);background:#262626}
.profile-hub .hub-source-open{display:flex;align-items:center;gap:10px;min-width:0;flex:1;border:0;background:transparent;color:inherit;padding:0;text-align:left}
.profile-hub button.hub-source-open{font:inherit;cursor:pointer}
.profile-hub .hub-source-row img{width:25px;height:25px;flex:none;border-radius:5px;object-fit:contain}
.profile-hub .hub-source-copy{display:grid;gap:1px;flex:1}
.profile-hub .hub-source-copy strong{font-size:11px;font-weight:600;overflow-wrap:anywhere}
.profile-hub .hub-source-copy small{color:var(--hub-muted);font-size:9px;overflow-wrap:anywhere}
.profile-hub .hub-source-status{color:var(--hub-faint);font:8px var(--mono);font-style:normal;letter-spacing:.055em;text-transform:uppercase}
.profile-hub .hub-likely-title{margin:14px 0 3px;color:#d4d4cf;font:600 10px/1.3 var(--mono);letter-spacing:.055em;text-transform:uppercase}
.profile-hub .hub-likely-note{margin:0 0 7px;color:var(--hub-faint);font-size:10px;line-height:1.4}
.profile-hub .hub-likely-source-row{border-style:dashed;border-color:#5a6256;background:#20221f}
.profile-hub .hub-likely-source-row:hover{border-color:#91aa71;background:#252820}
.profile-hub .hub-likely-status{color:#b8ca94;text-transform:none;letter-spacing:0}
.profile-hub .hub-source-cues{display:flex;align-items:center;gap:4px;color:#d3d3cd;font:10px var(--mono);white-space:nowrap}
.profile-hub .hub-source-cues::before{width:5px;height:5px;border-radius:50%;background:var(--hub-lime);box-shadow:0 0 7px rgba(185,255,78,.5);content:""}
.profile-hub .hub-sources .hub-empty{padding:4px 0;color:var(--hub-muted)}
.profile-hub .hub-connection-status{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;color:var(--hub-faint);font:9px var(--mono);letter-spacing:.055em;text-transform:uppercase}
.profile-hub .hub-connection-refresh{border:1px solid var(--hub-line);border-radius:4px;background:#222;color:var(--hub-copy);padding:3px 6px;font:9px var(--mono);letter-spacing:.04em;text-transform:uppercase}
.profile-hub .hub-connection-refresh:hover{border-color:rgba(185,255,78,.5);color:var(--hub-lime)}

.profile-hub .hub-activity{min-width:0;background:transparent;border:0;border-radius:0;padding:0}
.profile-hub .hub-activity .hub-section-title{margin:4px 0 0}
.profile-hub .hub-tabs{display:flex;align-items:flex-end;gap:17px;margin-top:13px;border-bottom:1px solid var(--hub-line)}
.profile-hub .hub-tabs button{position:relative;border:0;background:transparent;color:var(--hub-muted);padding:0 1px 9px;font-size:12px}
.profile-hub .hub-tabs button:hover,.profile-hub .hub-tabs button.active,.profile-hub .hub-tabs button[aria-selected="true"]{color:var(--hub-lime)}
.profile-hub .hub-tabs button.active::after,.profile-hub .hub-tabs button[aria-selected="true"]::after{position:absolute;right:0;bottom:-1px;left:0;height:2px;border-radius:2px 2px 0 0;background:var(--hub-lime);content:""}
.profile-hub .hub-page-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:12px 0 5px;color:var(--hub-muted);font-size:10px}
.profile-hub .hub-page-summary select{border:1px solid var(--hub-line);border-radius:4px;background:#222;color:#d6d6d0;padding:4px 6px;font-size:10px}
.profile-hub .hub-history-scope{display:flex;align-items:center;gap:5px;color:var(--hub-muted);font-size:10px}
.profile-hub .hub-calls{border-top:1px solid var(--hub-line)}
.profile-hub .hub-calls .timeline-row{grid-template-columns:minmax(0,1fr) auto;gap:7px;border-bottom-color:rgba(255,255,255,.08);padding:12px 0;color:var(--hub-muted)}
.profile-hub .hub-calls .timeline-row p{color:#cdcdc8;font-size:12px;line-height:1.5}
.profile-hub .hub-calls .timeline-row .profile-call-heading{min-width:0}
.profile-hub .hub-calls .timeline-row .profile-token-link{font-size:12px}
.profile-hub .hub-calls .timeline-row .profile-call-text{margin-top:7px;font-size:12px}
.profile-hub .hub-empty,.profile-hub .hub-loading,.profile-hub .hub-error{padding:22px 4px;color:var(--hub-muted);font-size:12px;text-align:center}
.profile-hub .hub-error{color:#efa59c}
.profile-hub .hub-pagination{display:grid;gap:10px;padding:15px 0 2px}
.profile-hub .hub-page-buttons{display:flex;align-items:center;justify-content:space-between;gap:8px}
.profile-hub .hub-page-buttons button,.profile-hub .hub-pagination form button{border:1px solid var(--hub-line);border-radius:5px;background:#222;color:#d4d4cf;padding:6px 9px;font-size:10px}
.profile-hub .hub-page-buttons button:hover,.profile-hub .hub-pagination form button:hover{border-color:rgba(185,255,78,.5);color:var(--hub-lime)}
.profile-hub .hub-page-buttons button:disabled,.profile-hub .hub-pagination form button:disabled{opacity:.38;cursor:default}
.profile-hub .hub-page-buttons span{color:var(--hub-muted);font-size:10px;text-align:center}
.profile-hub .hub-page-buttons b{color:var(--hub-copy);font-weight:600}
.profile-hub .hub-pagination form{display:flex;align-items:center;justify-content:flex-end;gap:7px;color:var(--hub-muted);font-size:10px}
.profile-hub .hub-pagination label{display:flex;align-items:center;gap:5px}
.profile-hub .hub-pagination input{width:58px;border:1px solid var(--hub-line);border-radius:4px;background:#222;color:var(--hub-copy);padding:5px 6px}

.profile-hub .hub-shelf{padding:14px}
.profile-hub .hub-shelf .hub-section-title{margin-bottom:9px}
.profile-hub .hub-shelf .achievement-showcase,.profile-hub .hub-shelf .achievement-slots{gap:6px;margin:0}
.profile-hub .hub-shelf .achievement-tile,.profile-hub .hub-shelf .achievement-slot{min-height:88px;border-color:var(--hub-line);border-radius:6px;background:#242424;padding:7px 4px;font-size:9px}
.profile-hub .hub-shelf .achievement-image{width:42px;height:42px}
.profile-hub .hub-shelf .achievement-tile small{font-size:8px}
.profile-hub .hub-claim{border-style:dashed;background:#22251d}
.profile-hub .hub-claim .hub-section-title{margin-bottom:6px}
.profile-hub .hub-claim p{margin:0;color:var(--hub-muted);font-size:11px;line-height:1.5}
.profile-hub .hub-claim button,.profile-hub .hub-claim a{display:inline-flex;align-items:center;gap:6px;margin-top:11px;border:1px solid var(--hub-lime);border-radius:5px;background:var(--hub-lime);color:#1a220d;padding:7px 10px;font-size:11px;font-weight:700;text-decoration:none}
.profile-hub .hub-about{margin:11px 0 0;color:var(--hub-muted);font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.profile-hub .hub-source-progression{color:var(--hub-faint)!important;font-size:10px!important}

@media(max-width:760px){
 .drawer-sheet:has(.profile-hub){width:100%;padding:0}
 .drawer-sheet:has(.profile-hub)>.drawer-close{top:6px;margin:7px 7px -47px 0}
 .profile-hub{padding:0 14px 25px}
 .profile-hub .hub-cover{height:97px;margin:0 -14px}
 .profile-hub .hub-cover::after{top:35px;right:13px;font-size:27px;letter-spacing:.08em}
 .profile-hub .hub-header{align-items:flex-end;flex-wrap:wrap;gap:10px;min-height:104px;margin-top:-29px;padding-bottom:14px}
 .profile-hub .hub-identity{gap:11px}
 .profile-hub .profile-avatar{width:65px;height:65px}
 .profile-hub .hub-name h2{font-size:29px}
 .profile-hub .hub-subtitle{font-size:8px}
 .profile-hub .hub-actions{width:100%;padding:0}
 .profile-hub .hub-actions .primary,.profile-hub .hub-actions [data-primary="true"]{flex:1}
 .profile-hub .hub-socials{gap:5px;padding:10px 0 14px}
 .profile-hub .hub-socials>a,.profile-hub .hub-socials>button{padding:5px 7px}
 .profile-hub .hub-grid{display:flex;flex-direction:column;align-items:stretch;gap:13px;margin-top:14px}
 .profile-hub .hub-panel{padding:14px}
 .profile-hub .hub-reputation{margin:0}.profile-hub .hub-kol{padding:11px 12px}.profile-hub .hub-sources{padding:13px}.profile-hub .hub-shelf{padding:13px}
 .profile-hub .hub-stats strong{font-size:22px}
 .profile-hub .hub-section-title h3{font-size:19px}
 .profile-hub .hub-activity .hub-section-title{margin-top:3px}
 .profile-hub .hub-tabs{gap:15px;margin-top:10px;overflow-x:auto;overflow-y:hidden}
 .profile-hub .hub-tabs button{flex:none}
 .profile-hub .hub-page-summary{padding-top:10px}
 .profile-hub .hub-calls .timeline-row{grid-template-columns:1fr;padding:11px 0}
 .profile-hub .hub-calls .timeline-row p{grid-column:1}
 .profile-hub .hub-pagination{padding-top:13px}
 .profile-hub .hub-shelf .achievement-tile,.profile-hub .hub-shelf .achievement-slot{min-height:78px}
}

@media(max-width:390px){
 .profile-hub .hub-name h2{font-size:27px}
 .profile-hub .hub-actions button,.profile-hub .hub-actions a{padding-right:8px;padding-left:8px}
 .profile-hub .hub-rank strong{font-size:20px}
 .profile-hub .hub-stats{gap:5px}
 .profile-hub .hub-stats strong{font-size:20px}
 .profile-hub .hub-page-buttons{gap:5px}
 .profile-hub .hub-page-buttons button{padding:6px 7px}
}

@media(prefers-reduced-motion:reduce){.profile-hub *{scroll-behavior:auto!important;transition:none!important}}

.profile-hub [hidden]{display:none!important}
.profile-hub .hub-cover>span{position:absolute;left:30px;top:19px;color:var(--hub-muted);font:9px var(--mono);letter-spacing:.13em}
.profile-hub .hub-avatar-slot{position:relative}
.profile-hub .profile-avatar .prestige-level-shield{width:28px;height:28px;left:-2px;right:auto;bottom:-3px}
.profile-hub .hub-level-chip{position:absolute;right:0;bottom:3px;border:1px solid #a5a5a0;border-radius:4px;background:#202020;color:#e4e4df;padding:1px 3px;font:13px/1 var(--mono);z-index:5}
.profile-hub .hub-progression{align-items:flex-start;flex-direction:column;gap:4px}
.profile-hub .hub-kol{background:var(--hub-panel);border-color:var(--hub-line)}
.profile-hub .hub-rank{min-height:43px;background:#1c1c1c;border-color:var(--hub-line)}
.profile-hub .hub-rank strong{font-size:20px;color:var(--hub-copy)}
.profile-hub .hub-rank small{color:var(--hub-muted)}
@media(max-width:760px){.profile-hub .hub-cover>span{left:18px;top:16px}.profile-hub .profile-avatar .prestige-level-shield{width:24px;height:24px;bottom:-3px}.profile-hub .hub-level-chip{font-size:11px;bottom:2px;right:-2px}}
.profile-hub .hub-claim:not(:has(p,button,input,a)){display:none}

/* Enlarged versions of the same frame and level shield used in feed avatars. */
.profile-hub .hub-progression-badges{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.profile-hub .hub-progression-badge{display:flex;align-items:center;gap:10px;min-width:0}
.profile-hub .hub-progression-badge strong{font-size:15px;display:block}
.profile-hub .hub-progression-badge small{display:block;color:var(--muted);font-size:11px;line-height:1.4;margin-top:3px}
.profile-hub .hub-rank-frame,.profile-hub .hub-rank-shield{display:block;width:56px;height:56px;object-fit:contain;flex:0 0 56px}
.profile-hub .hub-rank-frame img{width:100%;height:100%;object-fit:contain}
.profile-hub .hub-rank-base{background:var(--level-frame-color);mask:url('/ape-icon.png') center/contain no-repeat,url('/ape-face-mask.svg') center/contain no-repeat;mask-composite:exclude}
.profile-hub .hub-rank-explanation{margin:8px 0 0;font-size:12px;color:var(--muted);line-height:1.5}
@media(max-width:480px){.profile-hub .hub-progression-badges{gap:8px}.profile-hub .hub-progression-badge{gap:7px}.profile-hub .hub-rank-frame,.profile-hub .hub-rank-shield{width:44px;height:44px;flex-basis:44px}.profile-hub .hub-progression-badge strong{font-size:13px}}

@media(max-width:760px){
 .profile-hub .hub-main-column,.profile-hub .hub-side-column{display:contents}
 .profile-hub .hub-reputation{order:0}.profile-hub .hub-kol{order:1}.profile-hub .hub-sources{order:2}.profile-hub .hub-claim{order:3}.profile-hub .hub-activity{order:4}.profile-hub .hub-shelf{order:5}
}

/* Match feed identity: prestige left, level right. */
.profile-hub .hub-prestige-chip{left:-2px;right:auto}
