/* Account workspace. Scoped to user pages; uses the site's existing font tokens. */
.fxm-account-page{--account-ink:#272e42;--account-muted:#687286;--account-line:#e7e9f1;--account-purple:var(--color-primary,#4f34d9);min-height:100vh;padding:106px 0 64px;background:#f7f8fc;color:var(--account-ink);font-family:var(--font-family-body);font-size:14px;line-height:1.6}
.fxm-account-page *{box-sizing:border-box}
.fxm-account-page :is(h1,h2,h3,p,span,a,button,label,input,textarea,dt,dd,summary){font-family:inherit;font-style:normal}
.fxm-account-page :is(h1,h2,h3){font-family:var(--font-family-heading);color:var(--account-ink)}
.fxm-account-page .hidden,.fxm-account-page [hidden]{display:none!important}
.fxm-account-page svg{flex-shrink:0;stroke-width:1.8}
.fxm-account-page :is(a,button,input,textarea,summary):focus-visible{outline:3px solid #b6a7f4;outline-offset:3px}
.fxm-account-page button{cursor:pointer}
.fxm-account-page button:disabled{cursor:wait;opacity:.55}
.fxm-account-wrap{max-width:1360px;margin:0 auto;padding:0 32px}
.fxm-account-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:12px;color:var(--account-muted);margin-bottom:24px}
.fxm-account-breadcrumb a:hover{color:var(--account-purple)}
.fxm-account-breadcrumb>span[aria-hidden]{color:#b4bac8}
.fxm-account-layout{display:grid;grid-template-columns:208px minmax(0,1fr);align-items:start;gap:28px}
.fxm-account-sidebar{position:sticky;top:96px;display:flex;flex-direction:column;background:#fff;border:1px solid var(--account-line);border-radius:14px;padding:20px 10px 14px;min-height:540px}
.fxm-account-nav-label{font-size:12px;color:var(--account-muted);margin:0 14px 16px;font-weight:500}
.fxm-account-nav{display:flex;flex-direction:column;gap:6px}
.fxm-account-nav-item{position:relative;display:flex;align-items:center;gap:13px;padding:12px 14px;min-height:46px;border-radius:8px;color:#485269;font-size:14px;line-height:1.5;transition:color .16s,background .16s}
.fxm-account-nav-item:hover{background:#f7f6fc;color:var(--account-purple)}
.fxm-account-nav-item[aria-current=page]{color:var(--account-purple);background:#f1edff;font-weight:600}
.fxm-account-nav-item[aria-current=page]:before{content:"";position:absolute;left:-10px;top:10px;bottom:10px;width:3px;background:var(--account-purple);border-radius:0 3px 3px 0}
.fxm-account-nav-divider{margin-top:20px}
.fxm-account-nav-divider:after{content:"";position:absolute;left:12px;right:12px;top:-13px;border-top:1px solid var(--account-line)}
/* A distinct, bottom-aligned exit action; the arrow moves without shifting the label. */
.fxm-account-sidebar-footer{position:relative;margin-top:auto;padding:32px 4px 0}
.fxm-account-sidebar-footer:before{content:"";position:absolute;top:15px;left:4px;right:4px;height:1px;background:var(--account-line)}
.fxm-account-logout{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:50px;padding:12px 16px;border:1px solid #c12b37;border-radius:10px;background:#cf303d;background-image:linear-gradient(115deg,#ffffff09,transparent 65%);color:#fff;font-size:14px;font-weight:500;line-height:1.5;text-align:left;box-shadow:inset 0 1px 0 #ffffff0d,0 3px 7px #b728381a;transition:background-color .2s,border-color .2s,box-shadow .2s,transform .2s}
.fxm-account-logout>span{min-width:0;overflow-wrap:anywhere}
.fxm-account-logout>svg{width:20px;height:20px;overflow:visible;color:#fff;transition:color .2s}
.fxm-account-logout>svg path:nth-child(n+2){transition:transform .2s}
@media(hover:hover){
  .fxm-account-logout:hover:not(:disabled){background-color:#b92432;border-color:#ac202d;box-shadow:inset 0 1px 0 #ffffff12,0 5px 12px #b7283826;transform:translateY(-1px)}
  .fxm-account-logout:hover:not(:disabled)>svg{color:#fff}
  .fxm-account-logout:hover:not(:disabled)>svg path:nth-child(n+2){transform:translateX(2px)}
}
.fxm-account-page .fxm-account-logout:focus-visible{outline:3px solid #e99099;outline-offset:3px;border-color:#ac202d}
.fxm-account-logout:active:not(:disabled){transform:translateY(0);background-color:#a81f2b;box-shadow:inset 0 2px 4px #00000018}
.fxm-account-page .fxm-account-logout:disabled{opacity:1;background:#ac626b;border-color:#ac626b;color:#fff;box-shadow:none;transform:none}
.fxm-account-logout:disabled>svg{color:#fce9eb}
.fxm-account-content{min-width:0}
.fxm-account-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;min-height:66px}
.fxm-account-heading h1{font-size:28px;line-height:1.25;letter-spacing:-.035em;font-weight:700;margin:0 0 8px}
.fxm-account-heading p{font-size:14px;line-height:1.6;color:var(--account-muted);margin:0}
.fxm-account-card{background:#fff;border:1px solid var(--account-line);border-radius:14px;padding:24px;box-shadow:0 2px 6px #272e4202;min-width:0}
.fxm-account-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.fxm-account-card-heading h2{display:flex;align-items:center;gap:9px;font-size:17px;line-height:1.45;font-weight:600;margin:0}
.fxm-account-card-heading h2>svg{color:var(--account-purple)}
.fxm-account-card-heading p{font-size:12px;color:var(--account-muted);margin:5px 0 0}
.fxm-account-link{display:inline-flex;align-items:center;gap:8px;color:var(--account-purple);font-size:13px;font-weight:500;flex-shrink:0;text-decoration:none}
.fxm-account-link:hover{text-decoration:underline;text-underline-offset:4px}
.fxm-account-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;border:1px solid transparent;border-radius:9px;padding:10px 17px;font-size:13px;font-weight:500;line-height:1.5;transition:background .18s,border-color .18s,box-shadow .18s;text-align:center;flex-shrink:0}
.fxm-account-button-primary{color:#fff;background:var(--account-purple);box-shadow:0 3px 8px #4f34d914}
.fxm-account-button-primary:hover{background:#4225c5;box-shadow:0 4px 12px #4f34d92b}
.fxm-account-button-secondary{background:#fff;color:#4d5670;border-color:#e0e3ed}
.fxm-account-button-secondary:hover{border-color:#b6a7f4;color:var(--account-purple);background:#faf9ff}
.fxm-account-button-danger{color:#bc344b;background:#fff;border-color:#edd9de}
.fxm-account-button-danger:hover{background:#fff4f5}
.fxm-account-welcome{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:24px;min-height:150px;margin-bottom:20px;padding:28px}
.fxm-account-welcome,.fxm-account-edit-banner{background-color:#faf8ff;background-image:var(--fxm-img-profile-texture, url('../images/account/profile-texture.svg')),linear-gradient(105deg,#fff 14%,#faf8ff 48%,#eee7fc 86%,#e9effa 100%);background-repeat:no-repeat;background-position:right center;background-size:auto 100%,100% 100%;border-color:#e5def2}
.fxm-account-avatar{position:relative;flex-shrink:0;display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:#7657d5;color:#fff;border:4px solid #fff;outline:1px solid #eee9fb;font-family:var(--font-family-heading);font-size:36px;line-height:1;overflow:hidden}
.fxm-account-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#f2eefe}
.fxm-account-welcome-copy{flex:1;min-width:0}
.fxm-account-welcome h2{font-size:24px;line-height:1.35;font-weight:600;letter-spacing:-.025em;margin:0 0 9px;overflow-wrap:anywhere}
.fxm-account-welcome-copy>p{font-size:12px;color:var(--account-muted);margin:9px 0 0}
.fxm-account-identity{display:flex;align-items:center;flex-wrap:wrap;column-gap:16px;row-gap:6px;font-size:13px;color:var(--account-muted);overflow-wrap:anywhere}
.fxm-account-verified{display:inline-flex;align-items:center;gap:6px;color:#138762;font-size:12px;line-height:1.5}
.fxm-account-overview-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:20px;margin-bottom:20px}
.fxm-account-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 28px;margin:0}
.fxm-account-fields>div{min-width:0}
.fxm-account-fields dt{font-size:12px;color:var(--account-muted);margin-bottom:5px}
.fxm-account-fields dd{font-size:14px;font-weight:400;margin:0;overflow-wrap:anywhere;line-height:1.7}
.fxm-account-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.fxm-account-chips>span{display:inline-flex;background:#f3f4f9;color:#4e5870;padding:3px 11px;border-radius:20px;font-size:12px;line-height:1.6}
.fxm-account-fields .fxm-account-bio{grid-column:1/-1;border-top:1px solid var(--account-line);padding-top:18px}
.fxm-account-bio dd{white-space:pre-wrap}
.fxm-account-security .fxm-account-card-heading{margin-bottom:10px}
.fxm-account-security-row{display:flex;align-items:center;gap:10px;min-height:51px;border-bottom:1px solid #eef0f6;font-size:13px;color:#46516b}
.fxm-account-security-row:hover{color:var(--account-purple)}
.fxm-account-security-row>span:first-of-type{flex:1;min-width:0}
.fxm-account-status{padding:2px 7px;border-radius:5px;font-size:12px;white-space:nowrap}
.fxm-account-chevron{transform:rotate(180deg)}
.fxm-account-device{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;background:#f6f7fb;border-radius:7px;font-size:11px;margin:16px 0 14px;color:#5a647a}
.fxm-account-device>span:last-child{margin-left:auto;color:#138762}
.fxm-account-device-dot{width:7px;height:7px;border-radius:50%;background:#28b58a}
.fxm-account-following{margin-bottom:20px}
.fxm-account-brokers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.fxm-account-broker{position:relative;min-width:0;border:1px solid var(--account-line);border-radius:10px;background:#fff;transition:border-color .18s,box-shadow .18s}
.fxm-account-broker:hover{border-color:#c8bfee;box-shadow:0 4px 14px #35206408}
.fxm-account-broker-link{display:flex;align-items:center;gap:14px;padding:18px 38px 18px 14px;min-height:90px;min-width:0}
.fxm-account-broker-logo{position:relative;display:grid;place-items:center;flex-shrink:0;width:56px;height:56px;border-radius:10px;background:#f7f7fb;color:var(--account-purple);font-size:24px;font-weight:600;overflow:hidden}
.fxm-account-broker-logo img{position:absolute;width:100%;height:100%;object-fit:contain;background:white}
.fxm-account-broker-copy{min-width:0}
.fxm-account-broker h3{font-size:14px;line-height:1.4;font-weight:600;margin:0 0 5px;overflow-wrap:anywhere}
.fxm-account-broker p{font-size:11px;line-height:1.6;color:var(--account-muted);margin:0;overflow-wrap:anywhere}
.fxm-account-broker-mark,.fxm-account-broker-remove{position:absolute;right:9px;top:12px;color:var(--account-purple)}
.fxm-account-broker-remove{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;border:0;background:transparent;right:5px;top:8px}
.fxm-account-broker-remove:hover{background:#fff0f2;color:#be334c}
.fxm-account-following[data-preview=false] .fxm-account-brokers{grid-template-columns:repeat(2,minmax(0,1fr))}
.fxm-account-following[data-preview=false] .fxm-account-broker-link{min-height:100px}
.fxm-account-following[data-preview=false] .fxm-account-broker-logo{width:64px;height:64px;border-radius:12px;font-size:26px}
/* My favorites: brokers/news tab switch, underline style to match the activity tabs. */
[data-fxm-favorites-tabs]{gap:6px!important;border-bottom:1px solid var(--account-line);padding-bottom:0;overflow-x:auto}
[data-fxm-favorites-tab]{background:transparent!important;box-shadow:none!important;border:0;border-radius:0;color:var(--account-muted);padding:12px 16px;white-space:nowrap;font-size:13px;flex-shrink:0;font-weight:500;transition:color .16s}
[data-fxm-favorites-tab]:hover{color:#4d5670}
[data-fxm-favorites-tab][aria-selected=true]{color:var(--account-purple)!important;box-shadow:inset 0 -2px var(--account-purple)!important;font-weight:600}
/* Favorited news: a single-column row (long titles and cover photos don't fit the compact broker grid). */
.fxm-news-favorites-list{display:grid;gap:12px}
.fxm-news-favorite-row{position:relative;min-width:0;display:flex;align-items:center;gap:14px;padding:14px 46px 14px 14px;border:1px solid var(--account-line);border-radius:10px;background:#fff;transition:border-color .18s,box-shadow .18s}
.fxm-news-favorite-row:hover{border-color:#c8bfee;box-shadow:0 4px 14px #35206408}
.fxm-news-favorite-row__link{display:flex;align-items:center;gap:14px;min-width:0;flex:1;text-decoration:none;color:inherit}
.fxm-news-favorite-row__thumb{position:relative;flex-shrink:0;width:72px;height:54px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#f2effb,#eae5f9)}
.fxm-news-favorite-row__thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff;transition:transform .35s ease}
.fxm-news-favorite-row:hover .fxm-news-favorite-row__thumb img{transform:scale(1.06)}
.fxm-news-favorite-row__copy{min-width:0;flex:1}
.fxm-news-favorite-row__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:600;line-height:1.5;color:var(--account-ink);margin:0 0 5px;overflow-wrap:anywhere}
.fxm-news-favorite-row__meta{display:block;font-size:11px;color:var(--account-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fxm-news-favorite-row__remove{position:absolute;right:6px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:32px;height:32px;border-radius:7px;border:0;background:transparent;color:var(--account-purple)}
.fxm-news-favorite-row__remove svg{fill:currentColor}
.fxm-news-favorite-row__remove:hover{background:#fff0f2;color:#be334c}
.fxm-news-favorite-row__remove:disabled{opacity:.55;cursor:wait}
@media(max-width:600px){.fxm-news-favorite-row{padding:12px 44px 12px 12px;gap:10px}.fxm-news-favorite-row__thumb{width:58px;height:44px}}
.fxm-account-empty{text-align:center;padding:32px 16px;color:var(--account-muted)}
.fxm-account-empty-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#f2effb;color:#8068c5;margin:0 auto 16px}
.fxm-account-empty h3{font-size:14px;font-weight:500;margin:0 0 6px}
.fxm-account-empty p{font-size:12px;margin:0 0 18px;line-height:1.8}
.fxm-account-empty .fxm-account-link{display:block;width:fit-content;margin:12px auto 0;font-size:12px}
.fxm-account-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:100px;color:var(--account-muted);font-size:13px}
.fxm-account-spinner{height:17px;width:17px;border-radius:50%;border:2px solid #e4def7;border-top-color:var(--account-purple);animation:fxm-account-spin .8s linear infinite}
@keyframes fxm-account-spin{to{transform:rotate(360deg)}}
.fxm-account-inline-error{font-size:12px;color:#b6324e;margin-top:14px}
.fxm-account-details{padding:0 24px}
.fxm-account-details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;min-height:54px;color:#657087}
.fxm-account-details>summary::-webkit-details-marker{display:none}
.fxm-account-details>summary>svg{transform:rotate(-90deg);transition:transform .2s}
.fxm-account-details[open]>summary{border-bottom:1px solid var(--account-line);margin-bottom:24px;color:var(--account-ink)}
.fxm-account-details[open]>summary>svg{transform:rotate(90deg)}
.fxm-account-details .fxm-account-fields{padding-bottom:24px;grid-template-columns:repeat(3,minmax(0,1fr))}
.fxm-account-joined{font-size:12px;color:var(--account-muted);padding:0 0 20px}
/* Existing forms keep all API hooks, with the same surface and control treatment. */
.fxm-account-subpage{min-width:0}
.fxm-account-subpage [class*="rounded-[26px]"]{border-radius:14px;border-color:var(--account-line);box-shadow:none}
.fxm-account-subpage [class*="rounded-2xl"]{border-radius:10px}
.fxm-account-subpage :is(input,textarea){background:#fff;border-color:#dfe3ec;font-size:14px;line-height:1.6;min-width:0}
.fxm-account-subpage :is(input,textarea):focus{border-color:#9a86e4;box-shadow:0 0 0 3px #4f34d910}
.fxm-account-subpage :is(button,a)[class*="rounded-full"]{border-radius:8px}
.fxm-account-subpage button[type=submit]{background:var(--account-purple);box-shadow:none;transform:none;min-height:44px;font-size:14px}
.fxm-account-subpage button[type=submit]:hover{background:#4225c5}
.fxm-account-subpage .font-ui-light{font-weight:400}
.fxm-account-subpage h2{font-size:17px;font-weight:600;letter-spacing:-.02em}
.fxm-account-subpage [data-fxm-edit-avatar-pick]>div{border-radius:50%;box-shadow:none;border:1px solid var(--account-line)}
.fxm-account-subpage [data-fxm-edit-avatar-pick]{margin:4px}
.fxm-account-subpage [data-fxm-edit-readonly]{overflow-wrap:anywhere}
.fxm-account-subpage [data-fxm-edit-locales] button,.fxm-account-subpage [data-fxm-edit-regions] button{border-radius:7px;font-size:13px;padding:8px 13px}
.fxm-account-subpage [data-fxm-edit-locales] button[data-active="1"],.fxm-account-subpage [data-fxm-edit-regions] button[data-active="1"]{background:#f2edff;border-color:#c7b8f0;color:var(--account-purple)}
.fxm-account-subpage [data-fxm-sec-status]{display:flex;align-items:center;gap:12px;flex-wrap:wrap;text-align:left;border-radius:10px;box-shadow:none;border-color:var(--account-line)}
.fxm-account-subpage [data-fxm-sec-status]>div{margin:0;background:#f4f2fb!important;color:var(--account-purple)}
.fxm-account-subpage [data-fxm-sec-status]>span{margin:0;font-size:12px}
.fxm-account-subpage [data-fxm-security-form]{max-width:620px}
.fxm-account-subpage [data-fxm-sec-verify-panel]>div{flex-wrap:wrap}
.fxm-account-subpage [data-fxm-activity-tabs]{gap:6px;border-bottom:1px solid var(--account-line);padding-bottom:0;overflow-x:auto}
.fxm-account-subpage [data-fxm-activity-tab]{background:transparent!important;box-shadow:none;border:0;border-radius:0;color:var(--account-muted);padding:12px 16px;white-space:nowrap;font-size:13px;flex-shrink:0}
.fxm-account-subpage [data-fxm-activity-tab][aria-selected=true]{color:var(--account-purple);box-shadow:inset 0 -2px var(--account-purple);font-weight:600}
.fxm-account-page [data-fxm-profile-alert]{margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid #e7e0fa;background:#f6f3ff;border-radius:9px;font-size:12px;color:#615377}
@media(min-width:1500px){.fxm-account-wrap{max-width:1424px}.fxm-account-sidebar{min-height:600px}}
@media(max-width:1150px){.fxm-account-wrap{padding:0 24px}.fxm-account-layout{grid-template-columns:184px minmax(0,1fr);gap:22px}.fxm-account-card{padding:20px}.fxm-account-overview-grid{grid-template-columns:1fr}.fxm-account-security-row{min-height:47px}.fxm-account-brokers{grid-template-columns:repeat(2,minmax(0,1fr))}.fxm-account-welcome{gap:16px}.fxm-account-details{padding:0 20px}.fxm-account-details .fxm-account-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:960px){.fxm-account-page{padding-top:88px;padding-bottom:36px}.fxm-account-wrap{padding:0 16px}.fxm-account-breadcrumb{margin-bottom:16px;font-size:11px;gap:8px}.fxm-account-layout{display:block}.fxm-account-sidebar{position:static;min-height:0;padding:6px;margin-bottom:24px;border-radius:10px;display:flex;overflow-x:auto;scrollbar-width:thin}.fxm-account-nav-label{display:none}.fxm-account-nav{flex-direction:row;gap:4px}.fxm-account-nav-item{white-space:nowrap;font-size:12px;min-height:42px;gap:7px;padding:10px 12px}.fxm-account-nav-item svg{width:16px;height:16px}.fxm-account-nav-item[aria-current=page]:before,.fxm-account-nav-divider:after{display:none}.fxm-account-nav-divider{margin:0}.fxm-account-heading{margin-bottom:18px;align-items:flex-start}.fxm-account-heading h1{font-size:25px}.fxm-account-heading p{font-size:13px}.fxm-account-heading{flex-wrap:wrap;gap:12px}.fxm-account-welcome{flex-wrap:wrap;padding:22px 20px;gap:16px}.fxm-account-avatar{width:66px;height:66px;font-size:28px}.fxm-account-welcome h2{font-size:21px}.fxm-account-welcome-copy{min-width:calc(100% - 90px)}.fxm-account-welcome>.fxm-account-button{margin-left:82px}.fxm-account-identity{font-size:12px}.fxm-account-fields{gap:20px}.fxm-account-brokers,.fxm-account-following[data-preview=false] .fxm-account-brokers{grid-template-columns:1fr}.fxm-account-card-heading{gap:12px;margin-bottom:18px}.fxm-account-card-heading h2{font-size:16px}.fxm-account-card-heading p{font-size:11px}.fxm-account-card-heading .fxm-account-link{font-size:12px}.fxm-account-broker-link{padding:16px 44px 16px 16px;min-height:82px}.fxm-account-broker h3{font-size:14px}.fxm-account-broker p{font-size:12px}.fxm-account-subpage [class*="p-16"]{padding:40px 20px}.fxm-account-subpage [class*="p-8"],.fxm-account-subpage [class*="p-6"]{padding:20px}.fxm-account-subpage [data-fxm-profile-edit-form]>div:last-child{flex-wrap:wrap}.fxm-account-subpage [data-fxm-edit-readonly]{max-width:55%}.fxm-account-subpage [data-fxm-sec-verify-panel] input{width:100%}.fxm-account-subpage [data-fxm-session]>div{flex-wrap:wrap}.fxm-account-subpage [data-fxm-activity-tab]{padding:12px;font-size:12px}}
@media(max-width:390px){.fxm-account-fields,.fxm-account-details .fxm-account-fields{grid-template-columns:1fr}.fxm-account-welcome>.fxm-account-button{margin-left:0}.fxm-account-identity{column-gap:8px}.fxm-account-heading h1{font-size:23px}.fxm-account-card{padding:18px}.fxm-account-details{padding:0 18px}}
@media(prefers-reduced-motion:reduce){.fxm-account-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Live account sessions reuse the account cards and type scale. */
.fxm-sessions-panel .fxm-account-card-heading{margin-bottom:18px}
.fxm-sessions-count{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:6px;background:#f1edff;color:var(--account-purple);font-size:12px}
.fxm-sessions-list{display:grid;gap:14px}
.fxm-session{min-width:0;padding:20px;border:1px solid var(--account-line);border-radius:10px;background:#fff}
.fxm-session[data-current=true]{border-color:#d9d0f3;background:#fcfbff}
.fxm-session-top{display:flex;align-items:center;gap:12px}
.fxm-session-icon{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:10px;background:#f2effa;color:#765cc0}
.fxm-session-title{min-width:0;flex:1}
.fxm-session-title h3{font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere;margin:0 0 3px}
.fxm-session-title p{font-size:12px;color:var(--account-muted);margin:0}
.fxm-session-current{flex-shrink:0;margin:0}
.fxm-session-details{display:grid;grid-template-columns:.8fr 1fr 1fr;gap:18px;margin:18px 0 0;padding-top:16px;border-top:1px solid var(--account-line)}
.fxm-session-details dt{font-size:11px;color:var(--account-muted);margin-bottom:5px}
.fxm-session-details dd{font-size:12px;color:#4c576d;margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.fxm-sessions-feedback{font-size:13px;color:#25836c;margin:18px 0 0;padding:12px 14px;border-radius:8px;background:#edf8f4;overflow-wrap:anywhere}
.fxm-sessions-feedback.is-error{color:#b52b3c;background:#fff2f4}
.fxm-sessions-note{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.8;color:var(--account-muted);margin:18px 2px 0}
.fxm-sessions-note>svg{margin-top:2px;color:#9585b8}
.fxm-sessions-dialog{width:min(440px,calc(100% - 32px));max-height:calc(100vh - 32px);overflow:auto;margin:auto;padding:28px;border:1px solid var(--account-line);border-radius:14px;background:#fff;box-shadow:0 20px 70px #25203926;color:var(--account-ink)}
.fxm-sessions-dialog::backdrop{background:#201a364f;backdrop-filter:blur(3px)}
.fxm-sessions-dialog h2{font-size:20px;margin:0 0 12px;line-height:1.4}
.fxm-sessions-dialog p{font-size:14px;line-height:1.8;color:var(--account-muted);margin:0}
.fxm-sessions-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:24px}
.fxm-sessions-confirm-button{background:#cf303d;color:#fff;border-color:#c12b37}
.fxm-sessions-confirm-button:hover{background:#b92432}
@media(max-width:640px){.fxm-session{padding:16px}.fxm-session-top{flex-wrap:wrap}.fxm-session-current{order:3}.fxm-session-action{order:4;margin-left:auto}.fxm-session-title{flex-basis:calc(100% - 56px)}.fxm-session-details{grid-template-columns:1fr;gap:12px}.fxm-session-details>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px}.fxm-session-details dt{margin:0}.fxm-sessions-dialog{padding:22px}}

/* Match the compact account navigation on tablet widths. */
@media(max-width:960px){body:has(.fxm-account-page) .fxm-site-header>div:has(>.fxm-header-end){grid-template-columns:auto minmax(0,1fr)}body:has(.fxm-account-page) .fxm-site-header>div>div:has(>nav){display:none}}

/* A decorated profile cover with a quiet, separate form surface. */
.fxm-account-page{background-image:radial-gradient(ellipse 680px 300px at 92% 100px,#eae5f76b,transparent 75%),radial-gradient(ellipse 440px 520px at 0 460px,#edf2f86b,transparent 80%)}
.fxm-account-subpage .fxm-account-edit-card{padding:0;overflow:hidden;border-color:#e5def2}
.fxm-account-edit-banner{position:relative;isolation:isolate;min-height:164px;padding:32px;margin:0;border-bottom:1px solid #e5def2}
.fxm-account-edit-banner>div.min-w-0{max-width:480px}
.fxm-account-edit-banner>div.min-w-0>p:first-child{font-size:16px;font-weight:600;color:#34284e}
.fxm-account-edit-banner .fxm-account-avatar{outline:4px solid #ffffff8c;box-shadow:0 8px 24px #6e51ae12}
.fxm-account-edit-card [data-fxm-profile-edit-form]{padding:28px 32px 32px}
@media(max-width:960px){
  .fxm-account-sidebar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;overflow:visible;align-items:center}
  .fxm-account-nav{min-width:0;overflow-x:auto;scrollbar-width:thin;scroll-padding-inline:6px;padding:2px 0}
  .fxm-account-nav-item{flex-shrink:0}
  .fxm-account-sidebar-footer{margin:0;padding:0}
  .fxm-account-sidebar-footer:before{display:none}
  .fxm-account-logout{width:auto;max-width:160px;white-space:normal;margin:0;min-height:44px;padding:10px 13px;gap:10px;border-radius:8px;font-size:12px;box-shadow:inset 0 1px 0 #ffffff0d}
  .fxm-account-logout>svg{width:17px;height:17px}
  .fxm-account-subpage .fxm-account-edit-card{padding:0}
  .fxm-account-edit-banner{min-height:148px;padding:24px 20px;background-size:auto 100%,100% 100%}
  .fxm-account-edit-card [data-fxm-profile-edit-form]{padding:24px 20px}
}
@media(max-width:480px){
  .fxm-account-logout{max-width:130px;padding:10px 11px;gap:8px}
  .fxm-account-welcome{background-size:auto 72%,100% 100%;background-position:right bottom,center}
  .fxm-account-edit-banner{gap:16px;background-size:auto 88%,100% 100%;background-position:right bottom,center}
}

/* My exposures: owner rows reuse the account card surface and type scale. */
.fxm-exposures-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid var(--account-line)}
.fxm-exposures-tabs button{min-height:34px;padding:6px 14px;border:1px solid #e0e3ed;border-radius:999px;background:#fff;color:#5a647a;font-size:12px;line-height:1.5;transition:border-color .16s,color .16s,background .16s}
.fxm-exposures-tabs button:hover{border-color:#b6a7f4;color:var(--account-purple)}
.fxm-exposures-tabs button[aria-selected=true]{border-color:#8c74f7;background:#f2edff;color:var(--account-purple);font-weight:600}
.fxm-exposures-list{display:grid;gap:12px}
.fxm-exposure-row{position:relative;min-width:0;padding:16px 18px;border:1px solid var(--account-line);border-radius:10px;background:#fff;transition:border-color .18s,box-shadow .18s}
.fxm-exposure-row:hover{border-color:#cfc6ee;box-shadow:0 4px 14px #35206408}
/* Stretched title link so the whole card is one click target; only published rows render an <a>. */
.fxm-exposure-row-title a::after{content:'';position:absolute;inset:0;z-index:1}
.fxm-exposure-row-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:8px}
.fxm-exposure-badge{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:#f1edff;color:var(--account-purple);font-size:11px;line-height:1.7;white-space:nowrap}
.fxm-exposure-badge[data-status=pending_review]{background:#fff6e3;color:#8a5a11}
.fxm-exposure-badge[data-status=published]{background:#eaf7f0;color:#13704f}
.fxm-exposure-badge[data-status=rejected]{background:#fff0f2;color:#ac2a3d}
.fxm-exposure-badge[data-status=offline]{background:#f1f2f6;color:#5b6478}
.fxm-exposure-row-code{font-size:11px;color:var(--account-muted);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fxm-exposure-row-broker{min-width:0;margin-left:auto;font-size:12px;color:#4d5670;overflow-wrap:anywhere}
.fxm-exposure-row-title{font-size:15px;line-height:1.5;font-weight:600;margin:0 0 6px;overflow-wrap:anywhere}
.fxm-exposure-row-title a:hover{color:var(--account-purple);text-decoration:underline;text-underline-offset:3px}
.fxm-exposure-row-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--account-muted);overflow-wrap:anywhere}
.fxm-exposure-row-reject{margin:10px 0 0;padding:9px 12px;border-radius:8px;background:#fff6f7;color:#a3273a;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.fxm-exposure-row .fxm-account-link{margin-top:10px;font-size:12px}
.fxm-exposures-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--account-line);font-size:12px;color:var(--account-muted)}
.fxm-exposures-pager{display:flex;align-items:center;gap:10px}
.fxm-exposures-pager .fxm-account-button{min-height:34px;padding:6px 14px;font-size:12px}
/* My mediations: same row shell; a case waiting on the user gets an accent edge. */
.fxm-mediation-row{position:relative;min-width:0;padding:16px 18px;border:1px solid var(--account-line);border-radius:10px;background:#fff;transition:border-color .18s,box-shadow .18s}
.fxm-mediation-row:hover{border-color:#cfc6ee;box-shadow:0 4px 14px #35206408}
.fxm-mediation-row.is-waiting{border-color:#d9cffc;box-shadow:inset 3px 0 0 var(--account-purple)}
.fxm-mediation-badge{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:#f1edff;color:var(--account-purple);font-size:11px;line-height:1.7;white-space:nowrap}
.fxm-mediation-badge[data-group=waiting]{background:var(--account-purple);color:#fff}
.fxm-mediation-badge[data-group=resolved]{background:#eaf7f0;color:#13704f}
.fxm-mediation-badge[data-group=unresolved]{background:#fff0f2;color:#ac2a3d}
.fxm-mediation-badge[data-group=closed]{background:#f1f2f6;color:#5b6478}
.fxm-mediation-row .fxm-exposure-row-meta .is-overdue{color:#be123c;font-weight:600}
.fxm-mediation-row-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-top:10px}
/* Stretched title link covers the whole mediation card; "查看详情" stays above via z-index. */
.fxm-mediation-row .fxm-exposure-row-title a::after{content:'';position:absolute;inset:0;z-index:1}
.fxm-mediation-row-foot .fxm-account-link{position:relative;z-index:2}
.fxm-mediation-row-hint{font-size:12px;color:var(--account-purple)}
.fxm-mediation-row-foot .fxm-account-link{margin-left:auto;font-size:12px}
@media(max-width:600px){
  .fxm-exposures-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
  .fxm-exposures-tabs button{flex-shrink:0}
  .fxm-exposure-row,.fxm-mediation-row{padding:14px}
  .fxm-exposure-row-broker{margin-left:0;flex-basis:100%}
  .fxm-exposures-footer{justify-content:center}
}

/* My reviews: same row shell as exposures/mediations, plus rating stars and own-review actions. */
.fxm-reviews-mine-list{display:grid;gap:12px}
.fxm-review-mine-row{position:relative;min-width:0;padding:18px 20px;border:1px solid var(--account-line);border-radius:10px;background:#fff;transition:border-color .18s,box-shadow .18s}
.fxm-review-mine-row:hover{border-color:#c8bfee;box-shadow:0 4px 14px #35206408}
/* Stretched broker link makes the whole review card clickable; action buttons sit above via z-index. */
.fxm-review-mine-broker a::after{content:'';position:absolute;inset:0;z-index:1}
.fxm-review-mine-broker{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.fxm-review-mine-broker img{width:28px;height:28px;border-radius:7px;object-fit:contain;background:#f7f7fb;flex-shrink:0}
.fxm-review-mine-broker a,.fxm-review-mine-broker>span:first-of-type{font-size:14px;font-weight:600;color:var(--account-ink);overflow-wrap:anywhere}
.fxm-review-mine-broker a:hover{color:var(--account-purple);text-decoration:underline;text-underline-offset:3px}
.fxm-review-mine-status{display:inline-flex;align-items:center;margin-left:auto;padding:3px 10px;border-radius:999px;background:#f1edff;color:var(--account-purple);font-size:12px;line-height:1.6;white-space:nowrap;flex-shrink:0}
.fxm-review-mine-status[data-status=hidden]{background:#fff6e3;color:#8a5a11}
.fxm-review-mine-status[data-status=deleted]{background:#f1f2f6;color:#5b6478}
.fxm-review-mine-rate{display:inline-flex;align-items:center;gap:3px;margin-bottom:8px}
.fxm-review-mine-rate svg.is-on{color:#f5a524}
.fxm-review-mine-rate svg.is-off{color:#dcd8ea}
.fxm-review-mine-rate-score{margin-left:4px;font-size:12.5px;font-weight:600;color:#8a5a11}
.fxm-review-mine-content{margin:0 0 10px;font-size:14px;line-height:1.75;color:rgba(39,46,66,.82);overflow-wrap:anywhere}
.fxm-review-mine-note{margin:0 0 10px;padding:8px 10px;border-radius:8px;background:#f7f6fb;color:var(--account-muted);font-size:12.5px;line-height:1.7;overflow-wrap:anywhere}
.fxm-review-mine-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--account-muted)}
.fxm-review-mine-anon-badge{display:inline-flex;align-items:center;padding:1px 8px;border-radius:999px;background:#f3f4f9;color:#4e5870}
.fxm-review-mine-actions{position:relative;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}
.fxm-review-mine-actions button{padding:3px 11px;border:1px solid #e0e3ed;border-radius:999px;background:#fff;color:#5a647a;font-size:12px;font-weight:500;transition:border-color .16s,color .16s}
.fxm-review-mine-actions button:hover{border-color:#b6a7f4;color:var(--account-purple)}
.fxm-review-mine-actions button.is-danger:hover{border-color:#e9a3b2;color:#be334c}
.fxm-review-mine-actions button:disabled{opacity:.55;cursor:wait}
.fxm-reviews-mine-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--account-line);font-size:12px;color:var(--account-muted)}
.fxm-reviews-mine-pager{display:flex;align-items:center;gap:10px}
.fxm-reviews-mine-pager .fxm-account-button{min-height:34px;padding:6px 14px;font-size:12px}
@media(max-width:600px){
  .fxm-review-mine-row{padding:14px}
  .fxm-review-mine-broker{flex-wrap:wrap}
  .fxm-review-mine-status{margin-left:0}
  .fxm-reviews-mine-footer{justify-content:center}
}

/* ---------- H5 (≤767px): sticky chip nav, icon-only sign-out, tighter cards ---------- */
@media (max-width: 767.98px) {
  .fxm-account-page { padding-top: calc(var(--fxm-m-header, 60px) + 12px); padding-bottom: 28px; }
  .fxm-account-wrap { padding: 0 12px; }
  .fxm-account-breadcrumb { margin-bottom: 10px; padding-inline: 4px; }
  .fxm-account-sidebar {
    position: sticky;
    top: var(--fxm-m-header, 60px);
    z-index: 30;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 -12px 16px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid var(--account-line);
    border-radius: 0;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
  }
  .fxm-account-nav { gap: 6px; padding: 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .fxm-account-nav::-webkit-scrollbar { display: none; }
  .fxm-account-nav-item { min-height: 34px; padding: 6px 12px; border: 1px solid #ebe8f5; border-radius: 999px; font-size: 12.5px; }
  .fxm-account-nav-item[aria-current=page] { border-color: transparent; }
  .fxm-account-nav-item svg { width: 15px; height: 15px; }
  .fxm-account-logout { width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; justify-content: center; border-color: #f8cdd2; border-radius: 50%; background: #fff1f2; color: #cf303d; box-shadow: none; }
  .fxm-account-logout > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fxm-account-logout > svg { width: 16px; height: 16px; }
  .fxm-account-heading { margin-bottom: 14px; padding-inline: 4px; }
  .fxm-account-heading h1 { font-size: 22px; }
  .fxm-account-heading p { font-size: 12.5px; }
  .fxm-account-card { padding: 16px; border-radius: 16px; }
  .fxm-exposures-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fxm-exposures-tabs::-webkit-scrollbar { display: none; }
  .fxm-exposures-tabs button { flex: 0 0 auto; }
}
