/* Profile layout: account masthead, compact identity, highlights and a 3-column gallery. */
.header-account,.profile-menu{display:none}
body[data-view="profile"] .topbar .brand,body[data-view="profile"] .topbar .preview-label,body[data-view="profile"] .topbar .desktop-search,body[data-view="profile"] .topbar .my-avatar{display:none}
body[data-view="profile"] .topbar{grid-template-columns:1fr minmax(0,auto) 1fr}
body[data-view="profile"] .header-account{display:flex;min-width:0;align-items:center;justify-content:center;gap:7px;font-size:18px;font-weight:700;letter-spacing:-.4px}
.header-account>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:340px}
.header-account svg{width:17px;height:17px}
body[data-view="profile"] .topbar .profile-menu{display:grid}
body[data-view="profile"] .topbar .profile-menu svg{width:25px;height:25px}
body[data-view="profile"] .app-layout{display:block;max-width:780px;padding:0;margin:auto;touch-action:auto}
body[data-view="profile"] .stories-panel,body[data-view="profile"] .swipe-gutter,body[data-view="profile"] .right-sidebar{display:none}
body[data-view="profile"] #main{width:100%;padding:0 0 calc(110px + env(safe-area-inset-bottom));margin:0}
.profile-page{padding-top:6px}
.profile-summary{display:grid;grid-template-columns:132px minmax(0,1fr);gap:26px;align-items:center;padding:35px 30px 15px}
.profile-photo-column{position:relative;display:flex;justify-content:center;padding-top:9px}
.profile-note{position:absolute;z-index:2;top:-25px;left:50%;transform:translateX(-50%);background:#edf0e8;border:1px solid #e1e6d8;box-shadow:0 2px 4px #00000004;border-radius:16px;width:105px;min-height:39px;max-height:56px;padding:8px 10px;font-size:11px;color:#87907d;line-height:1.25;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.profile-note:after{content:'';position:absolute;left:25px;bottom:-5px;width:10px;height:10px;background:#edf0e8;transform:rotate(45deg);border-right:1px solid #e1e6d8;border-bottom:1px solid #e1e6d8}
.profile-photo-button{position:relative;width:116px;height:116px;border-radius:50%;flex-shrink:0}
.profile-photo-circle{position:absolute;inset:0;border:1px solid var(--line);padding:3px;border-radius:50%;display:block;overflow:hidden}
.profile-photo-circle>.my-avatar{width:100%;height:100%;outline:0;border:0;border-radius:50%;font-size:33px;background:#e8e9dc;color:#7a816a}
.profile-photo-plus{position:absolute;right:-1px;bottom:1px;width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:var(--ink);color:var(--bg);border:3px solid var(--bg)}
.profile-photo-plus svg{width:19px;height:19px;stroke-width:2.1}
.profile-summary-right{min-width:0}
.profile-summary-right h1{font-size:19px;font-weight:650;line-height:1.4;letter-spacing:-.25px;margin:0 0 15px;overflow-wrap:anywhere}
.profile-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.profile-counts button{text-align:left;min-width:0;display:flex;flex-direction:column;gap:3px;align-items:flex-start;padding:0}
.profile-counts strong{font-size:20px;font-weight:700;line-height:1.3}
.profile-counts span{font-size:12px;line-height:1.4;color:#6b7462}
.profile-biography{padding:5px 30px 0}
.profile-biography>p{font-size:14px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}
.profile-links{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:15px 0 0}
.profile-links>span,.profile-links>button{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:5px 12px;border:1px solid #e1e5da;border-radius:99px;font-size:11px;font-weight:600;line-height:1.2}
.profile-links>button{color:#7c8672}
.profile-links svg{width:14px;height:14px}
.profile-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:18px 30px 14px}
.profile-main-actions>button{height:38px;border-radius:8px;background:#eef0e9;font-size:12px;font-weight:650;letter-spacing:.1px}
.profile-highlights{display:flex;align-items:flex-start;gap:24px;padding:10px 30px 21px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.profile-highlights::-webkit-scrollbar{display:none}
.highlight-item{display:flex;align-items:center;flex-direction:column;gap:8px;flex:0 0 80px;width:80px;min-width:80px;text-align:center}
.highlight-cover{position:relative;width:76px;height:76px;min-width:76px;min-height:76px;aspect-ratio:1;border:2px solid #c7cdbd;padding:3px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--bg)}
.highlight-cover>img{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);border-radius:50%;object-fit:cover}
.highlight-new{border-color:#e1e5da;padding:0}
.highlight-new svg{width:32px;height:32px;stroke-width:1.6}
.highlight-item>span:last-child{font-size:11px;line-height:1.2;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.highlight-item small{display:block;font-size:8px;font-weight:400;color:#a0a694;margin-top:3px}
.profile-media-tabs{display:grid;grid-template-columns:repeat(4,1fr);height:51px;align-items:stretch;border-bottom:1px solid var(--line);scroll-margin-top:var(--header)}
.profile-media-tabs>button{position:relative;display:grid;place-items:center;color:#919988}
.profile-media-tabs>button svg{width:24px;height:24px;stroke-width:1.8}
.profile-media-tabs>button.active{color:var(--ink)}
.profile-media-tabs>button.active:after{content:'';position:absolute;bottom:-1px;height:2px;background:var(--ink);left:21%;right:21%}
.profile-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
.profile-tile{width:100%;min-width:0;position:relative;display:block;aspect-ratio:4/5;overflow:hidden;background:var(--soft);border:0;border-radius:0;padding:0}
.profile-tile>img,.profile-tile>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.profile-tile .tile-type{position:absolute;right:9px;top:9px;color:white;filter:drop-shadow(0 1px 4px #0007)}
.tile-type svg{width:20px;height:20px}
.profile-sample-label{font-size:9px;color:#9aA18f;letter-spacing:.2px;text-align:center;padding:9px 10px}
.profile-local-note{text-align:center;font-size:10px;color:#a1a895;margin:24px 15px}
.profile-grid-panel>.empty-state{border:0;border-radius:0;background:transparent;min-height:250px;padding-top:46px}
.highlight-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.highlight-picker>label{position:relative;display:flex;flex-direction:column;gap:5px;font-size:10px;min-width:0;cursor:pointer}
.highlight-picker>label>img{height:100px;width:100%;border-radius:6px;object-fit:cover}
.highlight-picker input{position:absolute;top:5px;right:5px;accent-color:var(--ink);z-index:1}
.highlight-picker span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
@media(min-width:901px){body[data-view="profile"] .topbar{padding-left:max(28px,calc((100vw - 780px)/2));padding-right:max(28px,calc((100vw - 780px)/2))}.profile-page{border-left:1px solid var(--line);border-right:1px solid var(--line)}}
@media(max-width:600px){
 body[data-view="profile"] .topbar{grid-template-columns:44px minmax(0,1fr) 75px;padding:0 13px;border-bottom:0}
 body[data-view="profile"] .header-account{font-size:16px;justify-content:center;gap:5px}
 .header-account>span{max-width:100%}
 body[data-view="profile"] .topbar .top-actions{gap:2px}
 body[data-view="profile"] .topbar .profile-menu svg{width:25px;height:25px}
 body[data-view="profile"] .topbar .notification-btn::after{width:4px;height:4px}
 .profile-page{padding-top:8px}
 .profile-summary{grid-template-columns:94px minmax(0,1fr);gap:17px;padding:30px 16px 13px;align-items:center}
 .profile-photo-column{padding-top:9px}
 .profile-photo-button{height:90px;width:90px}
 .profile-photo-circle>.my-avatar{font-size:30px}
 .profile-note{width:78px;top:-22px;min-height:34px;max-height:47px;padding:6px 7px;font-size:10px;border-radius:13px}
 .profile-photo-plus{width:26px;height:26px;right:-2px;bottom:0;border-width:3px}
 .profile-photo-plus svg{width:18px;height:18px}
 .profile-summary-right h1{font-size:14px;line-height:1.4;margin-bottom:11px;letter-spacing:0}
 .profile-counts{gap:7px}
 .profile-counts strong{font-size:17px;line-height:1.25}
 .profile-counts span{font-size:11px;line-height:1.35;white-space:normal}
 .profile-biography{padding:3px 16px 0}
 .profile-biography>p{font-size:12px;line-height:1.55}
 .profile-links{gap:7px;margin-top:12px}
 .profile-links>span,.profile-links>button{font-size:10px;min-height:28px;padding:5px 10px}
 .profile-main-actions{padding:14px 16px 12px;gap:7px}
 .profile-main-actions>button{height:34px;border-radius:7px;font-size:11px}
 .profile-highlights{padding:7px 14px 17px;gap:17px}
 .highlight-item{width:66px;min-width:66px;flex-basis:66px;gap:7px}
 .highlight-cover{width:62px;height:62px;min-width:62px;min-height:62px;border-width:2px}
 .highlight-new svg{width:29px;height:29px}
 .highlight-item>span:last-child{max-width:66px;font-size:10px}
 .highlight-item small{font-size:7px}
 .profile-media-tabs{height:45px}
 .profile-media-tabs>button svg{height:23px;width:23px}
 .profile-sample-label{font-size:8px;padding:7px 10px}
 .profile-media-grid{gap:2px}
 .profile-tile{aspect-ratio:4/5}
}
@media(max-width:350px){.profile-summary{grid-template-columns:82px minmax(0,1fr);gap:12px;padding-left:13px;padding-right:13px}.profile-photo-button{width:79px;height:79px}.profile-counts span{font-size:10px}.profile-counts strong{font-size:16px}.profile-summary-right h1{font-size:13px}.profile-note{width:70px}}

.profile-tile.portrait-tile{aspect-ratio:9/16}
