/* Profile reference layout; isolated from the rest of the social UI. */
.app-shell--profile .app-shell__content{width:100%;max-width:720px;margin:auto;padding:0}
.profile-v3.profile-reference{max-width:720px;margin:auto;padding:14px 16px calc(110px + env(safe-area-inset-bottom));color:#111c40}
.profile-reference .profile-v3-head{display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;align-items:center;padding:0 8px;margin:0;min-height:104px}
.profile-reference .profile-v3-avatar{width:100px;height:100px;padding:5px;border:1px solid #edf0f5;background:#fff;box-shadow:0 2px 12px #16254212}
.profile-reference .profile-v3-avatar>img,.profile-reference .profile-v3-avatar>.sp-avatar{width:100%;height:100%;object-fit:cover;border:1px solid #edf0f5;box-shadow:none}
.profile-reference .profile-v3-avatar>a{width:28px;height:28px;right:1px;bottom:0;background:#0b91ee}
.profile-reference .profile-v3-avatar>a svg{width:16px;height:16px}
.profile-reference .profile-v3-summary{min-width:0;padding:0}
.profile-reference .profile-v3-summary h1{margin:0;font:750 20px/1.25 system-ui;letter-spacing:-.65px;white-space:normal;overflow-wrap:anywhere}
.profile-reference .profile-v3-summary>p{margin:3px 0 7px;color:#838ba0;font-size:12px;line-height:1.3}
.profile-reference .profile-v3-summary>div:not(.profile-v3-title-line){color:#4d5871;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.profile-reference .profile-v3-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));margin:10px 0 12px;padding:0;border:0;border-radius:0;box-shadow:none;background:none;overflow:visible}
.profile-reference .profile-v3-stats>*{position:relative;display:grid;justify-items:center;align-content:center;min-height:40px;padding:0 4px;border:0!important;gap:3px;text-decoration:none}
.profile-reference .profile-v3-stats>*+*::before{position:absolute;content:"";width:1px;background:#e9edf3;left:0;top:4px;bottom:4px}
.profile-reference .profile-v3-stats b{margin:0;color:#101b40;font-size:20px;font-weight:750;line-height:1}
.profile-reference .profile-v3-stats small{margin:0;color:#748095;font-size:12px;line-height:1.25}
.profile-reference .profile-v3-actions{position:relative;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr) 44px;align-items:stretch;gap:6px;margin:0 0 10px;padding:0}
.profile-reference .profile-v3-actions.profile-v3-actions--own{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.profile-reference .profile-v3-actions.profile-v3-actions--own>a,.profile-reference .profile-v3-actions.profile-v3-actions--own>button{box-sizing:border-box;width:100%!important;min-width:0;height:44px;min-height:44px!important;padding:0 4px!important;font-size:clamp(10px,2.8vw,13px);line-height:1.2;white-space:nowrap}
.profile-reference .profile-v3-actions>a,.profile-reference .profile-v3-actions>button,.profile-reference .profile-v3-actions>form button,.profile-reference .profile-v3-friend-state,.profile-reference .profile-v3-more>summary{position:static;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;width:100%;min-height:44px;height:44px;margin:0;padding:0 7px;border:1px solid #e7eaf1;border-radius:9px;font:600 13px/1.2 system-ui;white-space:nowrap;text-decoration:none;box-shadow:none;cursor:pointer}
.profile-reference .profile-v3-actions .profile-v3-primary,.profile-reference .profile-v3-actions>form:first-child button{color:#fff;border-color:#0885ed;background:linear-gradient(110deg,#1093ef,#0078ec)}
.profile-reference .profile-v3-secondary,.profile-reference .profile-v3-actions .profile-v3-settings,.profile-reference .profile-v3-more>summary{background:#f6f7fb;color:#68758d}
.profile-reference .profile-v3-actions .profile-v3-settings{position:static;width:44px!important;min-height:44px!important;padding:0!important}
.profile-reference .profile-v3-actions svg{flex:0 0 auto;width:21px;height:21px}
.profile-reference .profile-v3-actions>form{margin:0;min-width:0}
.profile-reference .profile-v3-actions:has(>form+form){grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-reference .profile-v3-more{position:relative;top:auto;right:auto;margin:0;min-width:0}
.profile-reference .profile-v3-more>summary{width:44px;list-style:none}
.profile-reference .profile-v3-more>summary::-webkit-details-marker{display:none}
.profile-reference .profile-v3-more>div{top:50px}
.profile-reference .profile-v3-daily{display:grid;grid-template-columns:26px minmax(80px,1fr) auto;align-items:center;gap:9px;margin:0 0 6px;padding:11px 12px;min-height:58px;border:1px solid #e9ecf3;border-radius:9px;background:linear-gradient(110deg,#fff8fc,#f8fafc);box-shadow:none;text-decoration:none}
.profile-reference .profile-v3-daily::before,.profile-reference .profile-v3-daily::after{content:none!important;display:none!important}
.profile-reference .profile-v3-daily>.profile-v3-daily-flame{display:grid;place-items:center;width:26px;height:30px;color:#fa0870;background:none;border:0;border-radius:0}
.profile-reference .profile-v3-daily-flame svg{display:block;width:26px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.profile-reference .profile-v3-daily>span:not(.profile-v3-daily-flame){display:grid;gap:4px;min-width:0}
.profile-reference .profile-v3-daily b{font-size:13px;font-weight:700;line-height:1.2;color:#111d42}
.profile-reference .profile-v3-daily small{font-size:10px;line-height:1.2;color:#8690a1}
.profile-reference .profile-v3-daily>em{display:flex;align-items:center;gap:4px;margin:0;font-style:normal}
.profile-reference .profile-v3-daily i{display:grid;place-items:center;width:23px;height:23px;margin:0;border-radius:50%;background:#eff2f7;color:#7e899d;font:500 10px/1 system-ui}
.profile-reference .profile-v3-daily i.is-done{background:#008cf3;color:#fff}
.profile-reference .profile-v3-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0 -6px 6px;padding:0;border:0;border-bottom:1px solid #e5e9f0;overflow:visible}
.profile-reference .profile-v3-tabs>a{position:relative;display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;flex:none;min-width:0;min-height:55px;height:auto;gap:5px;margin:0;padding:7px 0 9px;color:#7b8499;white-space:normal}
.profile-reference .profile-v3-tabs>a>i{display:grid;place-items:center;height:23px;line-height:1;font-style:normal}
.profile-reference .profile-v3-tabs svg{display:block;width:23px;height:23px}
.profile-reference .profile-v3-tabs>a>span{display:block;max-width:100%;margin:0;color:inherit;font-size:10px;font-weight:500;line-height:1.2;text-align:center;white-space:normal;overflow:visible;text-overflow:clip}
.profile-reference .profile-v3-tabs>a.is-active{color:#008de8}
.profile-reference .profile-v3-tabs>a.is-active>span{color:#121a3a;font-weight:650}
.profile-reference .profile-v3-tabs>a.is-active::after{left:8px;right:8px;bottom:-1px;height:2px;border-radius:2px;background:#fa0870}
.profile-reference .profile-v3-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 -6px;padding:0}
.profile-reference .profile-v3-grid-item{min-width:0;aspect-ratio:1;border-radius:6px;overflow:hidden}
.profile-reference .profile-v3-grid-item img{width:100%;height:100%;object-fit:cover}
.profile-reference .profile-v3-grid-item>small{display:flex;align-items:center;gap:3px;left:6px;bottom:6px;font-size:11px;line-height:1}
.profile-reference .profile-v3-grid-item>small svg{width:13px;height:13px;fill:currentColor}
.profile-reference .profile-v3-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 0}
.profile-reference .profile-v3-product-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e3e9f2;border-radius:12px;background:#fff;color:#10264b;text-decoration:none}
.profile-reference .profile-v3-product-card:focus-visible{outline:2px solid #147ce5;outline-offset:2px}
.profile-reference .profile-v3-product-media{display:block;aspect-ratio:1;overflow:hidden;background:#f5f7fb}
.profile-reference .profile-v3-product-media img{display:block;width:100%;height:100%;object-fit:contain}
.profile-reference .profile-v3-product-placeholder{display:grid;place-items:center;height:100%;color:#7c8ba3}
.profile-reference .profile-v3-product-info{display:flex;flex:1;flex-direction:column;gap:7px;padding:10px}
.profile-reference .profile-v3-product-info strong{font:600 13px/1.4 system-ui;overflow-wrap:anywhere}
.profile-reference .profile-v3-product-info b{margin-top:auto;color:#147ce5;font:750 14px/1.35 system-ui;overflow-wrap:anywhere}
.profile-reference :is(a,button,summary):focus-visible{outline:2px solid #1388ec;outline-offset:3px}
.app-shell--profile .app-header__brand small{display:block;margin-top:5px;font:500 8px/1.2 system-ui;letter-spacing:0;text-align:center;color:#46516a}
.app-shell--profile .app-bottom-nav__item.is-active{color:#fa0870}
.app-shell--profile .app-bottom-nav__item.is-active::after{width:44px;height:2px;border-radius:2px;bottom:5px}
@media(max-width:767px){
 .app-shell--profile .app-fab-wrap{left:50%;right:auto;bottom:calc(var(--app-nav-height) + env(safe-area-inset-bottom) - 17px);transform:translateX(-50%)}
 .app-shell--profile .app-fab{width:46px;height:46px;border:2px solid #fff;box-shadow:0 3px 12px #fa087030}
 .app-shell--profile .app-bottom-nav__item{padding-top:17px;font-size:11px;font-weight:500}
}
@media(min-width:600px){
 .profile-v3.profile-reference{padding:18px 22px 120px}
 .profile-reference .profile-v3-head{grid-template-columns:144px minmax(0,1fr);gap:30px;min-height:144px}
 .profile-reference .profile-v3-avatar{width:144px;height:144px}
 .profile-reference .profile-v3-summary h1{font-size:26px}
 .profile-reference .profile-v3-summary>p{font-size:16px}
 .profile-reference .profile-v3-summary>div:not(.profile-v3-title-line){font-size:18px}
 .profile-reference .profile-v3-stats{margin:16px 0 20px}
 .profile-reference .profile-v3-stats b{font-size:24px}
 .profile-reference .profile-v3-stats small{font-size:16px}
 .profile-reference .profile-v3-actions{grid-template-columns:1.12fr 1fr 64px;gap:8px;margin-bottom:14px}
 .profile-reference .profile-v3-actions>a,.profile-reference .profile-v3-actions>button,.profile-reference .profile-v3-actions>form button,.profile-reference .profile-v3-more>summary{height:60px;min-height:60px;font-size:17px;border-radius:12px}
 .profile-reference .profile-v3-actions .profile-v3-settings{width:64px!important;min-height:60px!important}
 .profile-reference .profile-v3-more>summary{width:64px}
 .profile-reference .profile-v3-daily{padding:16px 20px;min-height:80px;grid-template-columns:40px 1fr auto;gap:14px}
 .profile-reference .profile-v3-daily b{font-size:18px}.profile-reference .profile-v3-daily small{font-size:14px}
 .profile-reference .profile-v3-daily i{width:32px;height:32px;font-size:13px}.profile-reference .profile-v3-daily>em{gap:8px}
 .profile-reference .profile-v3-tabs>a{min-height:76px}.profile-reference .profile-v3-tabs>a>span{font-size:13px}
 .profile-reference .profile-v3-tabs svg{width:29px;height:29px}.profile-reference .profile-v3-tabs>a>i{height:30px}
 .profile-reference .profile-v3-grid{gap:6px}
}
@media(max-width:374px){
 .profile-v3.profile-reference{padding-left:10px;padding-right:10px}
 .profile-reference .profile-v3-head{grid-template-columns:84px minmax(0,1fr);gap:12px;min-height:90px}
 .profile-reference .profile-v3-avatar{width:84px;height:84px}.profile-reference .profile-v3-summary h1{font-size:18px}
 .profile-reference .profile-v3-actions>a,.profile-reference .profile-v3-actions>button{font-size:11px;gap:4px}
 .profile-reference .profile-v3-daily{grid-template-columns:22px minmax(0,1fr) auto;gap:5px;padding:10px 7px}
 .profile-reference .profile-v3-daily i{width:19px;height:19px}.profile-reference .profile-v3-daily>em{gap:3px}
 .profile-reference .profile-v3-daily b{font-size:12px}
}


/* Incoming request actions stay on one compact row, including narrow phones. */
.profile-reference .profile-v3-actions:has(>form+form){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px 44px!important;gap:6px!important;align-items:center!important}
.profile-reference .profile-v3-actions:has(>form+form)>form{margin:0!important;width:auto!important;min-width:0!important;grid-column:auto!important;grid-row:auto!important}
.profile-reference .profile-v3-actions:has(>form+form)>form button{box-sizing:border-box;width:100%!important;height:44px!important;min-height:44px!important;padding:0 6px!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap!important;border-radius:10px!important}
.profile-reference .profile-v3-actions:has(>form+form)>.profile-v3-secondary{box-sizing:border-box;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;font-size:0!important;grid-column:auto!important;grid-row:auto!important}
.profile-reference .profile-v3-actions:has(>form+form)>.profile-v3-secondary svg{width:20px!important;height:20px!important}
.profile-reference .profile-v3-actions:has(>form+form)>.profile-v3-more{position:relative!important;top:auto!important;right:auto!important;margin:0!important;grid-column:auto!important;grid-row:auto!important}
.profile-reference .profile-v3-actions:has(>form+form)>.profile-v3-more summary{box-sizing:border-box;width:44px!important;height:44px!important;min-height:44px!important;border-radius:10px!important;padding:0!important}

