/* ATM profile: production module, ivory editorial design. */
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-v2{background:#fbfaf7;border-radius:18px;overflow:hidden}.profile-v2 .profile-cover{height:220px}.profile-v2 .profile-cover img{width:100%;height:100%;object-fit:cover}.profile-v2 .profile-details{padding:0 32px 32px}.profile-identity{display:flex;gap:24px;align-items:center;position:relative;padding:24px 0}.profile-photo{padding:4px;border:0;background:#fbfaf7;border-radius:50%;margin-top:-82px;flex-shrink:0}.profile-photo:disabled{opacity:1;cursor:default}.profile-photo.has-story{box-shadow:0 0 0 3px #ad8ce6}.profile-v2 .profile-avatar{width:128px;height:128px;font-size:44px}.profile-heading{flex:1;min-width:0}.profile-heading h1{margin:0;font-family:ATMEditorial,Georgia,serif;font-size:34px}.profile-heading p{margin:5px 0;color:#67646d}.profile-actions{display:flex;gap:8px;flex-wrap:wrap;max-width:290px}.profile-actions button{display:inline-flex;gap:8px;align-items:center}.profile-content{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px}.profile-aside{display:flex;flex-direction:column;gap:20px}.profile-aside section{padding:24px;border:1px solid #e7e3db;border-radius:16px;background:#fff}.profile-aside h2{font-size:23px;margin:0 0 14px}.profile-v2 .profile-tabs{margin:0 0 24px;display:flex;gap:22px;border-bottom:1px solid #e7e3db}.profile-tabs button{background:transparent;color:#68646c;border:0;border-radius:0;padding:12px 0}.profile-tabs button[aria-pressed=true]{color:#222;border-bottom:2px solid #a78bd4}.profile-v2 .profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-v2 .profile-tile{border-radius:12px;min-height:160px}.profile-empty{grid-column:1/-1;background:#f0ede6;padding:40px;border-radius:16px}.profile-upload-preview{display:block;height:110px;overflow:hidden;background:#f1eee8;border-radius:12px}.profile-upload-preview img{width:100%;height:100%;object-fit:cover}.profile-media-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-v2 .profile-stats{gap:14px;justify-content:space-between}.profile-v2 .profile-stats strong{font-size:23px}.profile-v2 .profile-stats span{font-size:11px}.story-view img{max-height:60vh;object-fit:contain;width:100%}.profile-grid[hidden]{display:none}
@media(max-width:1100px){.profile-content{grid-template-columns:minmax(0,1fr) 260px}.profile-identity{flex-wrap:wrap}.profile-actions{max-width:none;width:100%}}@media(max-width:700px){.profile-v2 .profile-cover{height:160px}.profile-v2 .profile-details{padding:0 16px 20px}.profile-content{grid-template-columns:1fr}.profile-v2 .profile-avatar{width:88px;height:88px}.profile-photo{margin-top:-56px}.profile-heading h1{font-size:27px}.profile-identity{gap:14px}.profile-v2 .profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-media-fields{grid-template-columns:1fr}.profile-actions{gap:6px}}

#story-preview img{max-height:260px;max-width:100%;object-fit:contain;border-radius:12px}.profile-v2 .profile-tags{flex-wrap:wrap}.profile-heading p{overflow-wrap:anywhere}.profile-v2 .profile-tabs{overflow-x:auto}.profile-upload-preview{max-width:100%}

.profile-v2 .profile-grid{display:block}.profile-v2 .social-post{padding:20px;border-radius:16px;border:1px solid #e7e3db;margin-bottom:20px}.profile-v2 .post-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.profile-v2 .post-media>:only-child{grid-column:1/-1}.profile-v2 .post-media img{width:100%;height:220px;object-fit:cover;border-radius:10px}.profile-v2 .post-media:has(>:nth-child(3)){grid-template-columns:1.4fr 1fr}.profile-v2 .post-media:has(>:nth-child(3))>:first-child{grid-row:span 2;height:100%;min-height:260px}.profile-v2 .post-media:has(>:nth-child(3)) img{height:130px}.profile-grid[hidden]{display:none!important}

body[data-route=profile] .topbar{margin-left:238px;height:84px;padding:0 30px}body[data-route=profile] .topbar>.brand,body[data-route=profile] .header-nav{display:none}body[data-route=profile] .shell{grid-template-columns:214px minmax(0,1fr);gap:28px;padding:0 24px}body[data-route=profile] .content{padding:0}body[data-route=profile] .sidebar{margin-top:-84px;padding:0 16px 24px 0;border-right:1px solid #e7e3db;min-height:100vh;height:100vh}body[data-route=profile] .sidebar-promo{display:none}.profile-side-brand{height:205px;text-align:center;padding-top:32px}.profile-side-brand .brand{flex-direction:column;gap:10px;font-size:19px;letter-spacing:-.03em}.profile-side-brand .brand img{width:94px;height:90px}.profile-side-brand small{color:#777;margin-top:7px;display:block}.profile-search{display:flex;align-items:center;gap:14px;max-width:790px;flex:1;border-radius:28px;background:#eeece8;padding:0 18px;border:1px solid #e5e2dc}.profile-search input{border:none;background:transparent;padding:12px 0;width:100%;box-shadow:none}.profile-search .ui-icon{flex-shrink:0}body[data-route=profile] .nav a{font-size:14px;padding:12px 14px}.profile-v2{background:transparent}.profile-v2 .profile-details{padding-left:18px;padding-right:0}.profile-v2 .profile-content{grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:24px}.profile-v2 .profile-cover{height:195px;border-radius:16px}.profile-v2 .profile-heading h1{font-size:40px}.profile-v2 .profile-identity{min-height:122px}.profile-v2 .profile-actions{max-width:390px}.profile-v2 .profile-photo{margin-top:-84px}.profile-v2 .profile-tabs button[aria-pressed=true]{border:0;background:#e4d9fa;border-radius:14px;padding:10px 24px}.profile-v2 .profile-tabs a{padding:10px 0;font-size:14px}.profile-v2 .profile-tabs{padding-top:8px}.profile-v2 .profile-grid .prose{font-size:15px}.profile-v2 .profile-aside{padding-top:8px}.profile-v2 .profile-aside .prose{font-size:15px}
html[data-theme=dark] .profile-v2,html[data-theme=dark] .profile-photo{background:var(--bg)}html[data-theme=dark] .profile-aside section,html[data-theme=dark] .profile-v2 .social-post{background:var(--surface);border-color:var(--line)}html[data-theme=dark] .profile-search{background:var(--surface)}
@media(max-width:1100px){.profile-v2 .profile-heading h1{font-size:32px}.profile-v2 .profile-identity{flex-wrap:wrap}.profile-v2 .profile-content{grid-template-columns:minmax(0,1fr) 270px}}@media(max-width:900px){body[data-route=profile] .topbar{margin-left:0;padding:0 16px}body[data-route=profile] .shell{grid-template-columns:minmax(0,1fr);padding:0 16px}body[data-route=profile] .sidebar{margin-top:0;min-height:0}.profile-side-brand{display:none}.profile-v2 .profile-content{grid-template-columns:1fr}.profile-v2 .profile-details{padding:0 12px 20px}.profile-search{max-width:100%}.profile-v2 .profile-heading h1{font-size:28px}.profile-v2 .profile-cover{height:155px}.profile-v2 .profile-photo{margin-top:-65px}.profile-v2 .post-media:has(>:nth-child(3)){grid-template-columns:1fr 1fr}.profile-v2 .post-media:has(>:nth-child(3))>:first-child{min-height:200px}.profile-v2 .post-media:has(>:nth-child(3)) img{height:100px}}
.profile-v2.social-profile{max-width:none;width:100%;margin:0;border:0;border-radius:0;overflow:visible}.profile-v2 .profile-details{padding-left:18px}.profile-v2 .profile-actions .secondary{background:#e4d9fa;color:#252030;border-color:#e4d9fa}.profile-v2 .profile-identity{gap:24px}.profile-v2 .profile-content{grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr)}
@media(max-width:900px){.profile-v2 .profile-content{grid-template-columns:1fr}.profile-v2.social-profile{width:100%;margin:0}.profile-v2 .profile-details{padding-left:0;padding-right:0}.profile-v2 .profile-actions button{min-height:42px}.profile-v2 .social-post{padding:16px}}

.profile-media-fields fieldset{min-width:0;border:1px solid var(--line);border-radius:14px;padding:14px;display:grid;gap:10px}.profile-media-fields legend{font-weight:600;font-size:14px}.profile-media-fields small{font-size:12px}.profile-media-fields input[type=file]{max-width:100%;font-size:12px}

.profile-v2 .profile-cover{overflow:hidden}.profile-v2 .profile-identity{padding-top:16px;padding-bottom:14px;min-height:110px}
/* ATM v12: dark social timeline, real posts and friendships. */
.profile-v12 .profile-cover{height:clamp(180px,20vw,300px)}.profile-v12 .profile-details{padding:0 0 28px}.profile-v12 .profile-heading h1{font-size:clamp(26px,2.7vw,36px);overflow-wrap:anywhere;line-height:1.15}.profile-v12 .profile-identity{padding:20px 20px 24px;gap:20px;align-items:flex-end}.profile-v12 .profile-actions{max-width:390px;align-self:center}.profile-v12 .profile-heading p{color:var(--muted)}.profile-v12 .profile-content{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1.5fr);gap:20px;align-items:start}.profile-v12.profile-owner .profile-content{grid-template-columns:minmax(200px,.7fr) minmax(0,1.5fr) minmax(200px,.7fr)}.profile-v12 .profile-feed-column{grid-column:2;grid-row:1;min-width:0}.profile-v12 .profile-aside{grid-column:1;grid-row:1;min-width:0;padding-top:0}.profile-v12 .profile-community-column{grid-column:3;grid-row:1;min-width:0;display:grid;gap:20px}.profile-v12 .profile-aside section,.profile-v12 .profile-community-column section{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px;color:var(--ink)}.profile-v12 .profile-aside h2,.profile-v12 .profile-community-column h2{font-size:22px;margin:0 0 16px}.profile-v12 .profile-empty{background:var(--surface);color:var(--muted);border:1px solid var(--line);padding:28px;line-height:1.6}.profile-v12 .profile-tabs{border-color:var(--line);gap:6px;margin-bottom:16px;flex-wrap:wrap;overflow:visible}.profile-v12 .profile-tabs button{padding:10px 16px;color:var(--muted);border-radius:10px}.profile-v12 .profile-tabs button[aria-pressed=true]{color:var(--accent-ink);background:var(--accent);padding:10px 16px;border-radius:10px}.profile-v12 .profile-photo,.profile-v12 .profile-upload-preview{background:var(--surface)}.profile-v12 .profile-stats{flex-wrap:wrap;gap:8px}.profile-v12 .profile-stats span{color:var(--muted);min-width:60px}.profile-v12 .profile-stats strong{color:var(--ink)}.profile-v12 .profile-tags .pill{background:var(--panel);color:var(--ink);border-color:var(--line)}.profile-v12 .profile-person-row{padding:12px 0;border-bottom:1px solid var(--line)}.profile-v12 .profile-person-row:last-child{border:0}.profile-v12 .profile-person-row>a:first-child{display:flex;gap:10px;align-items:center;font-size:14px}.profile-v12 .profile-person-row .row{flex-wrap:wrap;margin-top:10px}.profile-v12 .profile-person-row .text-link{display:block;margin-top:8px;font-size:13px}.profile-v12 .widget-heading{flex-wrap:wrap;gap:8px}.profile-v12 .widget-heading a{font-size:12px}.profile-v12 .composer{background:var(--surface);border:1px solid var(--line);border-radius:14px;margin-bottom:20px;padding:18px}.profile-v12 .composer textarea{min-height:86px;resize:vertical;background:var(--panel);color:var(--ink)}.profile-v12 .composer-tools{flex-wrap:wrap;gap:10px}.profile-v12 #profile-post-file{font-size:12px;margin-top:12px;max-width:100%;color:var(--muted);background:var(--surface)}.profile-v12 .profile-story-strip{display:flex;gap:10px;overflow:auto;padding-bottom:12px;margin-bottom:8px}.profile-v12 .profile-story-strip button{padding:0;overflow:hidden;min-width:90px;width:90px;white-space:normal}.profile-v12 .profile-story-strip img{width:90px;height:100px;object-fit:cover}.profile-v12 .profile-story-strip span{display:block;padding:8px;font-size:12px}.profile-v12 .profile-photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.profile-v12 .profile-photo-gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}.profile-v12 .social-post{border-color:var(--line);background:var(--surface);color:var(--ink)}.profile-v12 .profile-actions .secondary{background:var(--panel);color:var(--ink);border-color:var(--line)}.profile-v12 :focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media(max-width:1250px){.profile-v12.profile-owner .profile-content{grid-template-columns:minmax(210px,.7fr) minmax(0,1.5fr)}.profile-v12 .profile-community-column{grid-column:1;grid-row:2}.profile-v12 .profile-feed-column{grid-row:1/span 3}}@media(max-width:760px){.profile-v12 .profile-content,.profile-v12.profile-owner .profile-content{grid-template-columns:minmax(0,1fr)}.profile-v12 .profile-feed-column,.profile-v12 .profile-aside,.profile-v12 .profile-community-column{grid-column:1;grid-row:auto}.profile-v12 .profile-feed-column{order:1}.profile-v12 .profile-aside{order:2}.profile-v12 .profile-community-column{order:3}.profile-v12 .profile-identity{padding:16px 0;align-items:center;flex-wrap:wrap;gap:14px}.profile-v12 .profile-actions{width:100%;max-width:none}.profile-v12 .profile-tabs button{padding:10px 12px}.profile-v12 .profile-aside section,.profile-v12 .profile-community-column section{padding:18px}}
/* v13: Instagram-inspired media profile in ATM's dark palette. */
.profile-v13.social-profile{max-width:1050px;margin:0 auto}.profile-v13 .profile-cover{height:110px;border-radius:14px;opacity:.75}.profile-v13 .profile-identity{padding:24px 20px;align-items:center;gap:28px}.profile-v13 .profile-photo{margin-top:-55px}.profile-v13 .profile-avatar{width:132px;height:132px}.profile-v13 .profile-heading h1{font-size:clamp(24px,2.2vw,32px);font-family:Inter,sans-serif;font-weight:600}.instagram-counts{display:flex;gap:26px;flex-wrap:wrap;margin:18px 0;color:var(--muted);font-size:14px}.instagram-counts strong{color:var(--ink);font-size:18px;margin-right:4px}.profile-v13 .profile-content,.profile-v13.profile-owner .profile-content{display:block}.profile-v13 .profile-aside{display:none}.profile-v13 .profile-feed-column{max-width:900px;margin:0 auto}.profile-v13 .profile-community-column{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:28px}.profile-v13 .profile-tabs{justify-content:center;border-top:1px solid var(--line);border-bottom:0;padding:12px 0;gap:8px}.profile-v13 .profile-tabs button{display:inline-flex;align-items:center;gap:7px;font-size:13px}.profile-v13 .profile-tabs button[aria-pressed=true]{background:var(--panel);color:var(--accent);box-shadow:inset 0 2px var(--accent);border-radius:0}.profile-v13 .profile-tabs a{font-size:13px}.profile-v13 .profile-story-strip{margin-bottom:20px}.profile-v13 .profile-story-strip button{border:0;background:transparent;min-width:88px;width:88px;padding:4px;color:var(--ink)}.profile-v13 .profile-story-strip img{width:76px;height:76px;border-radius:50%;padding:3px;border:2px solid var(--accent)}.profile-v13 .composer-head{gap:14px;align-items:center}.profile-v13 .composer textarea{min-height:72px}.profile-v13 .composer-tools{display:flex;justify-content:flex-start;gap:8px}.profile-v13 .composer-tools button{display:inline-flex;align-items:center;gap:7px;min-height:40px}.profile-v13 .composer-tools button:not([type=button]){margin-left:auto}.profile-v13 .profile-hashtags-label{display:flex;gap:14px;align-items:center;margin-top:12px;color:var(--muted);font-size:13px}.profile-v13 .profile-hashtags-label input{flex:1;min-width:0;padding:9px 12px}.profile-v13 #profile-attachment{display:flex;align-items:center;gap:10px;font-size:13px;margin-top:8px;overflow-wrap:anywhere}.instagram-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.instagram-grid[hidden]{display:none}.instagram-tile{position:relative;aspect-ratio:3/4;padding:0!important;border:0;border-radius:0;overflow:hidden;background:var(--panel);color:var(--ink);text-align:left}.instagram-tile img,.instagram-tile video{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}.instagram-tile:hover img{transform:scale(1.03)}.instagram-tile-type{position:absolute;right:12px;top:12px;background:#17161dcc;color:#fff;border-radius:6px;padding:5px;display:flex}.instagram-text-tile{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:22px;text-align:center;font-size:18px;overflow-wrap:anywhere}.instagram-text-tile>.ui-icon{width:32px;height:32px;color:var(--accent)}.instagram-grid>.profile-empty{grid-column:1/-1}.profile-clips{display:grid;gap:12px}.profile-clips video{width:100%;max-height:520px;background:#09090b;border-radius:12px}.profile-audio-clip{display:flex;gap:14px;align-items:center;text-align:left;width:100%}.profile-audio-clip span{flex:1;overflow-wrap:anywhere}.hashtag{color:var(--accent);text-decoration:none;font-weight:500}.hashtag:hover{text-decoration:underline}.tag-results-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:20px 0}.tag-results-heading h2{margin:0}#profile-detail-close{margin-bottom:16px}@media(max-width:760px){.profile-v13 .profile-identity{padding:18px 0;gap:16px}.profile-v13 .profile-avatar{width:92px;height:92px}.profile-v13 .profile-photo{margin-top:-38px}.profile-v13 .profile-cover{height:85px}.profile-v13 .profile-heading h1{font-size:22px}.instagram-counts{gap:12px;font-size:11px;margin:12px 0}.instagram-counts strong{display:block;font-size:18px}.profile-v13 .profile-actions{justify-content:flex-start}.profile-v13 .profile-community-column{grid-template-columns:1fr}.profile-v13 .profile-hashtags-label{display:block}.profile-v13 .profile-hashtags-label input{margin-top:6px;width:100%}.profile-v13 .profile-tabs{gap:3px;justify-content:flex-start}.profile-v13 .profile-tabs button{padding:10px;font-size:12px}.instagram-text-tile{padding:10px;font-size:12px;gap:10px}.instagram-tile-type{right:5px;top:5px;padding:3px}.instagram-tile-type svg{width:16px;height:16px}.profile-v13 .composer{padding:14px}.profile-v13 .composer-tools button{font-size:12px;padding:9px}.profile-v13 .composer-head .avatar{display:none}}@media(prefers-reduced-motion:reduce){.instagram-tile img{transition:none}}
