/* Unified member identity card and tabbed account workspace. */
.profile-v179{--p-ink:var(--ink,#13313f);--p-muted:var(--muted,#74828b);--p-line:var(--line,#e0e6e8);--p-surface:var(--surface,#fff);width:100%;max-width:800px;margin:12px auto 32px;padding:0!important;box-sizing:border-box;color:var(--p-ink)}.profile-v179 *{box-sizing:border-box}.profile-v179 .profile-shell179{background:var(--p-surface);border:1px solid var(--p-line);border-radius:27px;box-shadow:0 12px 35px #173a4310;overflow:hidden}.profile-cover179{position:relative;overflow:hidden;display:flex;align-items:flex-start;justify-content:space-between;height:112px;padding:21px 26px;background:linear-gradient(110deg,#143e43,#286c63);color:#d2ebe4;font-size:9px;letter-spacing:1.6px}.profile-cover179:after{content:'';position:absolute;right:-38px;top:-110px;width:290px;height:290px;border:1px solid #ffffff20;border-radius:50%;box-shadow:0 0 0 28px #ffffff07,0 0 0 58px #ffffff06,0 0 0 90px #ffffff05;pointer-events:none}.profile-cover179>span:last-child{display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.1px;position:relative;z-index:1}.profile-cover179 svg{width:14px;height:14px}.profile-person179{display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 22px 24px}.profile-v179 .profile-avatar{width:90px!important;height:90px!important;margin:-46px 0 13px!important;border:4px solid var(--p-surface)!important;border-radius:50%!important;background:#e8f0ee!important;color:#24534e;position:relative;display:grid;place-items:center;box-shadow:0 3px 10px #173a4310;flex-shrink:0;overflow:visible!important;font-size:31px}.profile-v179 .profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.profile-v179 .verified-dot{position:absolute;right:-1px;bottom:1px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#278b79;color:white;font-size:12px;border:3px solid var(--p-surface)}.profile-person179 h1{font-size:26px!important;line-height:1.2;letter-spacing:-.65px;margin:0 0 7px!important;overflow-wrap:anywhere;max-width:100%}.profile-person179>p{font-size:12px!important;color:var(--p-muted);margin:0 0 10px!important;overflow-wrap:anywhere;max-width:100%}.profile-location179{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;font-size:10px;color:var(--p-muted)}.profile-location179 svg{width:12px;height:12px}.profile-actions179{display:flex;gap:9px;align-items:center;margin-top:17px}.profile-edit179{display:inline-flex!important;gap:7px!important;align-items:center;min-height:40px!important;border-radius:13px!important;background:#163f43!important;color:#fff!important;font-size:11px!important;padding:10px 16px!important;border:1px solid #163f43!important;box-shadow:none!important}.profile-edit179 svg{width:14px;height:14px}.profile-status179{display:flex;align-items:center;gap:6px;min-height:40px;padding:10px 12px;border:1px solid var(--p-line);border-radius:13px;font-size:10px;background:var(--p-surface)}.profile-status179 svg{width:13px;height:13px;color:#248c77}.profile-tabs179{display:flex;overflow-x:auto;gap:4px;padding:8px 16px;background:#f2f6f560;border-top:1px solid var(--p-line);border-bottom:1px solid var(--p-line);scrollbar-width:thin}.profile-tabs179>button{flex:1 0 auto;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--p-muted);padding:11px 12px;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap;min-height:41px}.profile-tabs179 svg{width:15px;height:15px}.profile-tabs179>button[aria-selected=true]{background:var(--p-surface);border-color:var(--p-line);color:var(--p-ink);box-shadow:0 2px 5px #183f4306;font-weight:650}.profile-v179 :is(button,input,a):focus-visible{outline:2px solid #378b7d;outline-offset:3px}.profile-v179 .profile-grid{display:block!important;padding:25px!important;margin:0!important;width:100%!important}.profile-v179 [hidden]{display:none!important}.profile-tab-panel179{display:grid;gap:16px;min-width:0}.profile-panel-heading179 h2{font-size:18px!important;letter-spacing:-.3px;margin:0 0 6px!important;line-height:1.3}.profile-panel-heading179 p{font-size:11px;color:var(--p-muted);line-height:1.65;margin:0}.profile-membership179,.profile-value179,.profile-device179,.profile-password179,.profile-photo-edit179{display:flex;gap:13px;align-items:center;padding:17px;border:1px solid var(--p-line);border-radius:16px;min-width:0}.profile-membership179>div,.profile-value179>div,.profile-device179>div{flex:1;min-width:0}.profile-membership179 small,.profile-value179 small,.profile-device179 small{display:block;font-size:9px;letter-spacing:1px;color:var(--p-muted);margin-bottom:6px}.profile-membership179 strong,.profile-value179 strong,.profile-device179 strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.profile-membership179 p,.profile-device179 p{font-size:11px;color:var(--p-muted);margin:5px 0 0}.profile-icon179{display:grid;place-items:center;width:38px;height:38px;background:#eff5f3;border:1px solid #e6edeb;border-radius:12px;flex-shrink:0;color:#32665e}.profile-icon179 svg{width:19px;height:19px}.profile-facts179{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-facts179>div{display:grid;justify-items:start;gap:9px;padding:16px;border-radius:15px;border:1px solid var(--p-line);background:#f7faf930}.profile-facts179 svg{width:17px;height:17px;color:#467069}.profile-facts179 small{font-size:10px;color:var(--p-muted)}.profile-facts179 strong{font-size:12px;font-weight:600}.profile-label179{font-size:9px;letter-spacing:1.3px;color:var(--p-muted);margin-top:3px}.profile-quick179{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.profile-quick179 button{position:relative;display:flex;align-items:center;gap:10px;justify-content:center;padding:16px 9px;background:transparent;border:1px solid var(--p-line);border-radius:13px;color:var(--p-ink);font-size:11px;cursor:pointer}.profile-quick179 svg{width:18px;height:18px;color:#467069}.profile-quick179 b{font-size:13px;font-weight:400;color:var(--p-muted)}.profile-footer179{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 24px;border-top:1px solid var(--p-line)}.profile-footer179>span{display:flex;gap:6px;align-items:center;font-size:10px;color:var(--p-muted)}.profile-footer179 svg{width:13px;height:13px}.profile-footer179 button{display:flex;align-items:center;gap:7px;padding:8px 0;border:0;background:transparent;color:#a44e52;font-size:11px;cursor:pointer}.profile-value179>svg{width:13px;height:13px;color:var(--p-muted)}.profile-photo-edit179{flex-wrap:wrap}.profile-edit-avatar179{width:64px;height:64px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#eef5f2;flex-shrink:0;color:#32665e;font-size:24px}.profile-edit-avatar179 img{width:100%;height:100%;object-fit:cover}.profile-photo-edit179>div{flex:1;min-width:0}.profile-photo-edit179 strong{font-size:13px}.profile-photo-edit179 p{font-size:10px;color:var(--p-muted);line-height:1.6;margin:5px 0 10px}.profile-upload179{position:relative;display:inline-flex;align-items:center;gap:6px;cursor:pointer;border:1px solid var(--p-line);border-radius:9px;padding:8px 11px;font-size:10px;background:var(--p-surface)}.profile-upload179 svg{width:13px;height:13px}.profile-upload179 input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.profile-photo-edit179>#profile-photo-status{flex-basis:100%;margin:0}.profile-dot179{width:7px;height:7px;border-radius:50%;background:#289780}.profile-password179{display:block}.profile-password-head179{display:flex;align-items:center;gap:12px}.profile-password-head179>div{flex:1;min-width:0}.profile-password-head179 strong{font-size:13px}.profile-password-head179 p{font-size:10px;color:var(--p-muted);margin:5px 0 0}.profile-password-head179 button{border:0;background:transparent;font-size:11px;color:#32665e;cursor:pointer;padding:10px}.profile-password179 form{margin-top:18px}.profile-password179 input{min-height:42px;font-size:12px;border-radius:11px}.profile-password179 label{font-size:11px}.profile-password179 .btn{font-size:11px;border-radius:12px;background:#163f43;color:#fff}.profile-v179 .photo-privacy{width:100%!important;max-width:none!important;margin:0!important;padding:16px!important;border:1px solid var(--p-line);border-radius:16px!important;box-sizing:border-box}.profile-v179 .photo-privacy-icon{display:none}.profile-v179 .photo-privacy-copy strong{font-size:13px}.profile-v179 .photo-privacy-copy p{font-size:11px;line-height:1.6}.profile-v179 .photo-privacy-form label{font-size:10px;line-height:1.65}.profile-v179 .photo-privacy-form button{background:#163f43;color:white;font-size:11px;border-radius:10px;padding:10px 14px}.profile-activity179{display:grid;gap:10px}.profile-v179 .profile-notification-link{display:flex!important;align-items:flex-start!important;gap:12px!important;padding:14px!important;border:1px solid var(--p-line)!important;border-radius:14px;background:transparent;width:100%;text-align:left;color:var(--p-ink);cursor:pointer}.profile-notice-copy179{display:grid;gap:5px;flex:1;min-width:0}.profile-notice-copy179 strong{font-size:12px;line-height:1.5}.profile-notice-copy179>span{font-size:11px;color:var(--p-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6}.profile-notice-copy179 small{font-size:9px;color:var(--p-muted)}.profile-v179 #profile-trades-host.trade-report{max-width:none!important;width:100%!important;margin:0!important;padding:16px!important;border-radius:16px!important}.profile-v179 #profile-trades-host .tr-heading{display:none}.profile-v179 .profile-receipts{width:100%!important;max-width:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}.profile-v179 .profile-receipts>.section-title{display:none}.profile-v179 .profile-receipts .empty{font-size:12px;border:1px solid var(--p-line);border-radius:14px;background:transparent;padding:28px}.profile-v179 .payment-receipt-item{padding:12px;border-radius:14px;background:#f5f9f8;border:1px solid var(--p-line)}.profile-v179 .payment-receipt-item strong{font-size:11px}.profile-v179 .receipt-download{font-size:10px;padding:8px 10px;border-radius:10px}.profile-v179 .ui-icon{flex-shrink:0}
@media(max-width:600px){.profile-v179{max-width:440px;margin:4px auto 22px}.profile-cover179{height:94px;padding:18px}.profile-cover179>span:last-child{font-size:7px;letter-spacing:.8px}.profile-person179{padding:0 17px 20px}.profile-v179 .profile-avatar{width:80px!important;height:80px!important;margin-top:-40px!important}.profile-person179 h1{font-size:23px!important}.profile-v179 .profile-grid{padding:18px!important}.profile-tabs179{padding:7px;gap:3px}.profile-tabs179>button{padding:11px;font-size:10px;gap:6px}.profile-tabs179 svg{width:14px;height:14px}.profile-panel-heading179 h2{font-size:17px!important}.profile-quick179 button{flex-direction:column;gap:7px;padding:14px 6px;font-size:10px}.profile-quick179 b{display:none}.profile-facts179{gap:9px}.profile-facts179>div{padding:13px}.profile-facts179 strong{font-size:11px}.profile-membership179,.profile-value179,.profile-device179,.profile-password179,.profile-photo-edit179{padding:14px}.profile-footer179{padding:12px 18px}}
@media(prefers-reduced-motion:no-preference){.profile-tabs179>button,.profile-quick179 button{transition:background .15s,border-color .15s}.profile-quick179 button:hover{background:#eff5f350;border-color:#a7c6bd}}
/* Compact profile entry. Each option opens its own full section. */
.profile-v180{--p-ink:var(--text);--p-muted:var(--muted);--p-line:var(--border);--p-surface:var(--surface);max-width:700px;margin:12px auto 30px;color:var(--text)}
.profile-v180[data-mode=menu]{max-width:348px}
.profile-menu180{padding:15px;border:1px solid var(--border);border-radius:19px;background:var(--surface);box-shadow:0 6px 22px color-mix(in srgb,var(--text) 7%,transparent)}
.profile-identity180{display:flex;align-items:center;gap:11px;padding-bottom:15px;border-bottom:1px solid var(--border)}
.profile-v180 .profile-identity180 .profile-avatar{width:44px!important;height:44px!important;margin:0!important;border:0!important;box-shadow:none;background:var(--surface-2)!important;color:var(--text);font-size:18px;overflow:hidden!important;flex-shrink:0}
.profile-identity180>div{display:grid;gap:3px;min-width:0;flex:1}.profile-identity180 strong{font-size:14px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-identity180>div>span{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-check180{display:grid;place-items:center}.profile-check180 svg{width:17px;height:17px;color:var(--muted)}
.profile-options180{display:grid;padding:5px 0}.profile-options180 button{display:flex;align-items:center;gap:12px;min-height:44px;width:100%;border:0;border-radius:10px;background:transparent;padding:10px 7px;color:var(--text);font:inherit;font-size:12px;text-align:left;cursor:pointer}.profile-options180 button:hover{background:var(--surface-2)}.profile-options180 svg{width:18px;height:18px;color:var(--muted)}.profile-options180 button span{flex:1}.profile-options180 b{color:var(--muted);font-size:17px;font-weight:400}
.profile-signout180{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--border);padding-top:9px}.profile-signout180>span{font-size:9px;color:var(--muted);display:flex;gap:5px;align-items:center}.profile-signout180 button{display:flex;align-items:center;gap:6px;font:inherit;font-size:10px;background:transparent;border:0;color:var(--danger);padding:8px 4px;cursor:pointer}.profile-signout180 svg{width:12px;height:12px}
.profile-detail180{padding:0;background:transparent}.profile-back180{display:inline-flex;align-items:center;gap:8px;color:var(--text);background:transparent;border:0;padding:9px 0 15px;font:inherit;font-size:12px;cursor:pointer}.profile-back180 svg{width:17px;height:17px}.profile-v180 .profile-grid{padding:0!important}.profile-v180 .profile-tab-panel179{gap:13px}.profile-v180 .profile-panel-heading179 h2{font-size:20px!important;margin-bottom:5px!important}.profile-v180 .profile-panel-heading179 p{font-size:11px}
.profile-v180 :is(.profile-membership179,.profile-value179,.profile-device179,.profile-password179,.profile-photo-edit179,.profile-facts179>div,.profile-quick179 button,.profile-notification-link){background:var(--surface)!important;border-color:var(--border)!important;border-radius:14px!important}.profile-v180 :is(.profile-icon179,.profile-edit-avatar179){background:var(--surface-2);border-color:var(--border);color:var(--muted)}.profile-v180 :is(.profile-icon179,.profile-facts179,.profile-quick179) svg{color:var(--muted)}.profile-v180 .profile-upload179{background:var(--surface-2);border-color:var(--border)}.profile-v180 .profile-password179 .btn,.profile-v180 .photo-privacy-form button{background:var(--surface-2);color:var(--text);border:1px solid var(--border)}.profile-v180 .payment-receipt-item{background:var(--surface);border-color:var(--border)}.profile-v180 .profile-dot179{background:var(--teal)}
@media(max-width:600px){.profile-v180{max-width:100%;margin:6px auto 22px}.profile-v180[data-mode=menu]{max-width:348px}.profile-menu180{padding:14px}.profile-v180 .profile-grid{padding:0!important}.profile-v180 .profile-panel-heading179 h2{font-size:18px!important}}


/* Coordinated profile glyphs; only opacity/transform animate. */
.profile-glyph181{display:grid;place-items:center;flex-shrink:0;width:31px;height:31px;border-radius:10px;background:var(--surface-2);border:1px solid var(--border);font-style:normal}.profile-options180 .profile-glyph181 svg{width:20px;height:20px;stroke-width:1.6;color:var(--text)}.profile-options180 button{min-height:46px;padding-block:7px;gap:11px}
@media(prefers-reduced-motion:no-preference){.profile-options180 button{transition:background-color 140ms,transform 110ms}.profile-options180 button:active{transform:scale(.985)}.profile-options180 button>b{transition:transform 160ms}.profile-options180 button:hover>b{transform:translateX(2px)}}

/* Account navigation stays anchored to the portrait; the current page remains visible. */
.account-anchor199{position:relative;flex:none}.account-menu199[hidden]{display:none!important}.account-menu199{position:absolute;top:calc(100% + 12px);right:0;width:min(368px,calc(100vw - 24px));max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain;padding:20px 16px 10px;border:1px solid var(--border);border-radius:22px;background:var(--surface);color:var(--text);box-shadow:0 18px 54px color-mix(in srgb,var(--text) 15%,transparent);z-index:120;text-align:left}.account-menu199>header{display:flex;align-items:center;gap:12px;padding-bottom:17px}.account-portrait199{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--surface-2);font-size:20px;font-weight:600;flex:none}.account-portrait199 img{width:100%;height:100%;object-fit:cover}.account-menu199 header>div{display:grid;gap:4px;min-width:0}.account-menu199 header strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.account-menu199 header small{font-size:12px;color:var(--muted)}.account-menu199 nav{display:grid;border-block:1px solid var(--border);padding:7px 0}.account-menu199 nav button{display:flex;align-items:center;gap:12px;width:100%;min-height:49px;border:0;background:transparent;color:inherit;border-radius:12px;padding:7px 6px;font:inherit;font-size:14px;text-align:left;cursor:pointer}.account-menu199 nav i{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--surface-2);flex:none}.account-menu199 svg{width:20px;height:20px;stroke-width:1.6}.account-menu199 nav button>span{flex:1}.account-menu199 nav b{font-size:20px;font-weight:400;color:var(--muted)}.account-menu199 button:hover{background:var(--surface-2)}.account-menu199 button:focus-visible{outline:2px solid var(--teal);outline-offset:1px}.account-menu199 footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px}.account-menu199 footer>span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.account-menu199 footer svg{width:14px;height:14px}.account-menu199 footer button{display:flex;align-items:center;gap:6px;border:0;border-radius:8px;background:transparent;color:var(--danger);font:inherit;font-size:12px;padding:10px;cursor:pointer}.topbar:has(.account-menu199:not([hidden])){z-index:130;overflow:visible}.profile-v180[data-mode=detail]{max-width:760px;margin:8px auto 24px}.profile-detail180{border:1px solid var(--border);background:var(--surface);border-radius:22px;padding:20px}.profile-v180 .profile-back180{padding-top:0}
@media(max-width:600px){.account-menu199{right:0;top:calc(100% + 8px);max-height:calc(100dvh - 110px);padding:16px 14px 8px}.profile-detail180{padding:16px;border-radius:18px}.account-menu199 nav button{min-height:48px}}
@media(prefers-reduced-motion:no-preference){.account-menu199{transform-origin:top right;animation:account-open199 170ms cubic-bezier(.2,.8,.2,1)}.account-menu199 nav button{transition:background-color 120ms}}@keyframes account-open199{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}

/* Keep the header portrait circular at every Member breakpoint. */
.member-app .topbar .header-profile-avatar{border-radius:50%;aspect-ratio:1;flex-shrink:0}.member-app .topbar .header-profile-avatar img{border-radius:50%}
/* The menu wrapper occupies the same mobile grid cell as the original trigger. */
@media(max-width:760px){.member-app .topbar .account-anchor199{grid-column:3;grid-row:1;justify-self:end}}
@media(max-width:600px){.account-menu199{width:min(368px,calc(100vw - 40px))}}
