/* Profile: a quiet editorial hero, crisp content grid, and shared CrewW tokens. */
body:has(.crew-profile) { background:var(--ui-bg,#0b0c10); color:var(--ui-text,#f5f0e8); }
body:has(.crew-profile) .topbar { display:none; }
body:has(.crew-profile) #main { padding:0!important; margin:0!important; }
body:has(.crew-profile) .app-shell { padding-top:0!important; }
.crew-profile { width:100%; max-width:980px; min-height:calc(100svh - var(--nav-space,100px)); margin-inline:auto; padding:0 0 var(--nav-space,100px); color:var(--ui-text,#f5f0e8); font-family:inherit; animation:cp-enter 300ms var(--ui-ease,cubic-bezier(.22,.75,.2,1)); }
.crew-profile button { font:inherit; color:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.cp-header { display:flex; align-items:center; gap:10px; min-height:76px; padding:calc(12px + env(safe-area-inset-top)) 16px 18px; }
.cp-icon { display:grid; place-items:center; flex:none; width:40px; height:42px; padding:9px; border:1px solid var(--ui-line,#ffffff12); border-radius:50%; background:var(--ui-panel,#141519); transition:transform 160ms ease,background-color 160ms ease; }
.cp-icon svg { width:23px; height:23px; }
.cp-header-actions { display:flex; gap:7px; flex:none; }
.cp-account { flex:1; min-width:0; display:flex; align-items:center; justify-content:center; gap:6px; padding:7px 0; border:0; background:none; }
.cp-account strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:clamp(16px,4vw,20px); font-weight:600; letter-spacing:-.4px; line-height:1.2; }
.cp-account svg { width:13px; height:15px; flex:none; color:var(--ui-accent,#c9ac7b); }
.cp-hero { margin:12px 14px 22px; padding:28px 0 16px; border:1px solid var(--ui-line,#ffffff12); border-radius:26px; background:linear-gradient(135deg,#c9ac7b0b,transparent 58%),var(--ui-panel,#141519); box-shadow:inset 0 1px #ffffff05,0 18px 50px #0000000d; }
.cp-summary { display:flex; align-items:center; gap:20px; padding:12px 18px 0; }
.cp-avatar-wrap { position:relative; flex:none; width:clamp(76px,21vw,110px); height:clamp(76px,21vw,110px); padding:4px; border:1px solid #c9ac7b70; border-radius:50%; box-shadow:0 0 0 5px #c9ac7b06; }
.cp-avatar { display:block; width:100%; height:100%; padding:0; border:0; border-radius:50%; overflow:hidden; background:none; }
.cp-avatar .avatar,.cp-avatar img { width:100%!important; height:100%!important; border:0!important; border-radius:50%; object-fit:cover; }
.cp-note { position:absolute; z-index:2; top:-25px; left:0; max-width:126%; min-width:96%; border:1px solid #c9ac7b22; border-radius:16px; padding:8px 10px; background:var(--ui-raised,#232429); box-shadow:inset 0 1px #ffffff08,0 5px 14px #0002; color:var(--ui-muted,#a7a39c)!important; }
.cp-note-label { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11px; line-height:16px; }
.cp-note::after,.cp-note::before { content:''; position:absolute; background:var(--ui-raised,#232429); border-radius:50%; }
.cp-note::after { width:10px; height:10px; bottom:-5px; left:13px; }
.cp-note::before { width:4px; height:4px; bottom:-12px; left:10px; }
.cp-avatar-plus { position:absolute; bottom:-1px; right:0; display:grid; place-items:center; width:27px; height:27px; padding:0; border:3px solid var(--ui-panel,#141519); border-radius:50%; background:var(--ui-accent,#c9ac7b); color:var(--ui-accent-ink,#1b1710)!important; }
.cp-avatar-plus svg { width:15px; height:15px; stroke-width:2.2; }
.cp-identity { flex:1; min-width:0; }
.cp-identity h1 { font-family:var(--ui-display-font,Georgia,'Times New Roman',serif); font-size:clamp(21px,5.2vw,30px); line-height:1.2; font-weight:500; letter-spacing:-.6px; margin:0 0 18px; overflow-wrap:anywhere; }
.cp-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.cp-stats button { display:flex; flex-direction:column; align-items:flex-start; min-width:0; min-height:44px; padding:0; border:0; background:none; }
.cp-stats button+button { border-left:1px solid var(--ui-line,#ffffff12); padding-left:10px; }
.cp-stats strong { font-size:clamp(16px,3.7vw,21px); font-weight:600; letter-spacing:-.4px; line-height:1.25; font-variant-numeric:tabular-nums; }
.cp-stats span { margin-top:4px; color:var(--ui-muted,#a7a39c); font-size:clamp(10px,2.6vw,12px); letter-spacing:.1px; line-height:1.35; }
.cp-bio { font-size:13px; line-height:21px; margin:23px 18px 14px; white-space:pre-wrap; overflow-wrap:anywhere; min-height:1px; }
.cp-bio:empty { margin-block:8px; }
.cp-bio-link { color:var(--ui-accent,#c9ac7b); }
.cp-links { display:flex; flex-wrap:wrap; gap:7px; padding:0 18px; margin-bottom:18px; }
.cp-links button { display:inline-flex; align-items:center; gap:5px; max-width:100%; min-height:30px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:4px 10px; border:1px solid var(--ui-line,#ffffff12); border-radius:9px; background:#ffffff02; color:var(--ui-muted,#a7a39c); font-size:11px; font-weight:500; }
.cp-links svg { width:13px; height:13px; }
.cp-links button>span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.cp-actions { display:flex; gap:9px; padding:0 18px; }
.cp-actions button { flex:1; min-width:0; min-height:43px; padding:10px 8px; border:1px solid var(--ui-line,#ffffff12); border-radius:13px; background:var(--ui-raised,#232429); font-size:12px; line-height:20px; font-weight:600; transition:opacity 140ms ease,transform 180ms var(--ui-ease,ease),background-color 160ms ease; }
.cp-actions button:first-child { background:var(--ui-accent,#c9ac7b); border-color:transparent; color:var(--ui-accent-ink,#1b1710); box-shadow:inset 0 1px #ffffff20; }
.cp-actions [data-follow][data-following=true] { background:var(--ui-raised,#232429); border-color:var(--ui-line,#ffffff12); color:inherit; }
.cp-tabs { --cp-tab-index:0; position:relative; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0 14px 12px; border-bottom:1px solid var(--ui-line,#ffffff12); isolation:isolate; }
.cp-tabs::after { content:''; position:absolute; z-index:1; left:0; bottom:-1px; width:25%; height:2px; border-radius:2px; background:var(--ui-accent,#c9ac7b); transform:translateX(calc(var(--cp-tab-index)*100%)) scaleX(.42); transition:transform 300ms var(--ui-spring,cubic-bezier(.22,1,.36,1)); pointer-events:none; }
.cp-tabs button { position:relative; display:flex; align-items:center; justify-content:center; gap:4px; min-height:52px; padding:10px; border:0; border-radius:12px 12px 0 0; background:none; color:var(--ui-muted,#a7a39c); transition:color 160ms ease,background-color 160ms ease; }
.cp-tabs svg { width:23px; height:23px; transition:transform 180ms var(--ui-ease,ease); }
.cp-tabs button[aria-selected=true] { background:#c9ac7b07; color:var(--ui-accent,#c9ac7b); }
.cp-tabs button[data-tab=reels][aria-selected=true] svg rect { fill:currentColor; }
.cp-tabs button[data-tab=reels][aria-selected=true] svg path { fill:var(--ui-panel,#141519); stroke:var(--ui-panel,#141519); }
.cp-tabs button[aria-selected=true] svg { transform:translateY(-1px); }
.cp-tabs small { display:flex; align-items:center; }
.cp-tabs small svg { width:12px; height:12px; }
.cp-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; min-width:0; margin-inline:14px; }
.cp-tile { position:relative; aspect-ratio:3/4; overflow:hidden; min-width:0; padding:0; border:0; border-radius:9px; background:#000; animation:cp-tile-enter 240ms ease-out both; }
.cp-reel-grid .cp-tile { aspect-ratio:9/16; }
.cp-tile img { display:block; width:100%; height:100%; object-fit:cover; transition:opacity 160ms ease,transform 350ms var(--ui-ease,ease); }
.cp-video-mark { position:absolute; top:8px; right:8px; color:#fff; filter:drop-shadow(0 1px 2px #0008); }
.cp-video-mark svg { width:17px; height:17px; }
.cp-text-tile { display:block; padding:12px; font-size:12px; overflow-wrap:anywhere; }
.cp-empty { grid-column:1/-1; margin:12px 0; padding:56px 20px; border:1px solid var(--ui-line,#ffffff12); border-radius:18px; background:var(--ui-panel,#141519); color:var(--ui-muted,#a7a39c); text-align:center; font-size:13px; line-height:1.6; }
.cp-loading { padding:72px 24px; text-align:center; color:var(--ui-muted,#a7a39c); }
.cp-photo-preview { display:block; max-width:100%; border-radius:18px; margin:auto; }
.cp-connections { max-height:60svh; overflow:auto; overscroll-behavior:contain; }
.cp-connections>button { display:flex; align-items:center; gap:12px; width:100%; min-height:70px; padding:12px 8px; border:0; border-bottom:1px solid var(--ui-line,#ffffff12); background:none; color:inherit; text-align:left; }
.cp-connections span { display:flex; flex-direction:column; gap:3px; min-width:0; }
.cp-connections small { color:var(--ui-muted,#a7a39c); }
.cp-tags { display:grid; gap:12px; max-height:50svh; overflow:auto; padding:15px 0; }
.cp-tags label { display:flex; gap:8px; align-items:center; min-height:32px; }
.cp-post-options { display:grid; gap:4px; }
.cp-post-options button { min-height:48px; padding:12px; border:0; border-radius:12px; background:transparent; color:inherit; font:inherit; text-align:left; }
.cp-post-options button:active { background:var(--ui-raised,#ffffff0b); }
.crew-profile button:active { opacity:.8; }
.cp-actions button:active,.cp-icon:active { transform:scale(.97); }
.crew-profile button:focus-visible { outline:2px solid var(--ui-accent,#c9ac7b); outline-offset:-2px; }
@keyframes cp-enter { from { opacity:.6; transform:translateY(6px); } to { opacity:1; transform:none; } }
@keyframes cp-tile-enter { from { opacity:.55; } to { opacity:1; } }
@media (hover:hover) { .cp-tile:hover img { transform:scale(1.025); } .cp-icon:hover,.cp-actions button:hover { filter:brightness(1.08); } }
@media (min-width:768px) {
  body:has(.crew-profile) .topbar { display:flex; }
  .crew-profile { padding-inline:34px; }
  .cp-header { min-height:100px; padding:24px 0; }
  .cp-hero { margin:10px 0 30px; padding:36px 0 28px; border-radius:32px; }
  .cp-summary { gap:40px; max-width:760px; padding:12px 32px 0; }
  .cp-avatar-wrap { width:142px; height:142px; padding:5px; }
  .cp-identity h1 { font-size:38px; margin-bottom:24px; }
  .cp-stats { max-width:390px; gap:22px; }
  .cp-stats button+button { padding-left:22px; }
  .cp-stats strong { font-size:24px; }
  .cp-stats span { font-size:12px; }
  .cp-bio { margin:26px 32px 16px; font-size:14px; line-height:23px; }
  .cp-links,.cp-actions { padding-inline:32px; }
  .cp-actions { max-width:560px; }
  .cp-actions button { min-height:44px; font-size:13px; }
  .cp-tabs { margin:0 0 16px; }
  .cp-tabs button { min-height:60px; }
  .cp-grid { margin-inline:0; gap:8px; }
  .cp-tile { max-height:480px; border-radius:12px; }
}
@media (max-width:360px) {
  .cp-header { gap:5px; padding-inline:12px; }
  .cp-header-actions { gap:5px; }
  .cp-icon { width:34px; height:38px; padding:8px; }
  .cp-account strong { font-size:15px; }
  .cp-hero { margin-inline:10px; border-radius:22px; }
  .cp-summary { gap:14px; padding-inline:14px; }
  .cp-avatar-wrap { width:74px; height:74px; }
  .cp-identity h1 { font-size:20px; margin-bottom:13px; }
  .cp-stats { gap:5px; }
  .cp-stats button+button { padding-left:7px; }
  .cp-stats span { font-size:9px; }
  .cp-actions,.cp-links { padding-inline:14px; }
  .cp-bio { margin-inline:14px; }
  .cp-tabs,.cp-grid { margin-inline:10px; }
}
@media (prefers-reduced-motion:reduce) {
  .crew-profile,.cp-tile { animation:none; }
  .cp-tabs::after,.cp-tabs svg,.cp-tabs button,.cp-tile img,.cp-actions button,.cp-icon { transition:none; }
}
html.crew-reduce-motion .crew-profile,html.crew-reduce-motion .cp-tile { animation:none; }
html.crew-reduce-motion .cp-tabs::after,html.crew-reduce-motion .cp-tabs svg,html.crew-reduce-motion .cp-tabs button,html.crew-reduce-motion .cp-actions button,html.crew-reduce-motion .cp-tile img { transition:none; }
