/* Only shared account controls and their popovers. Product navigation and body layouts are untouched. */
[data-ts-account-legacy],html body header .ts-feedback-entry,html body .nav .ts-feedback-entry,html body .sitehead .ts-feedback-entry,html body #topsight-invite-mobile{display:none!important}
#ts-account-controls{--uc-bg:#fff;--uc-ink:#29272c;--uc-muted:#837c88;--uc-line:#e6e2e8;--uc-soft:#f6f4f7;--uc-red:#a6203b;--uc-tint:#f8ecf0;display:flex!important;align-items:center!important;gap:12px!important;margin-left:auto!important;flex:0 0 auto!important;min-width:0;position:relative;font:14px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--uc-ink)}
.uc-portal{--uc-bg:#fff;--uc-ink:#29272c;--uc-muted:#837c88;--uc-line:#e6e2e8;--uc-soft:#f6f4f7;--uc-red:#a6203b;--uc-tint:#f8ecf0;box-sizing:border-box;font:12px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--uc-ink)}
html[data-theme=dark] #ts-account-controls,html[data-theme=dark] .uc-portal{--uc-bg:#28272d;--uc-ink:#f0ecf1;--uc-muted:#b4abb8;--uc-line:#49434d;--uc-soft:#333037;--uc-red:#eea0b4;--uc-tint:#432b35}
#ts-account-controls[hidden],.uc-portal[hidden],#ts-account-message[hidden]{display:none!important}
#ts-account-controls *,body>.uc-portal *{box-sizing:border-box}
#ts-account-controls #ts-account-trigger{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-width:0!important;width:auto!important;min-height:40px!important;height:40px!important;margin:0!important;padding:3px 4px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--uc-ink)!important;box-shadow:none!important;font:400 14px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif!important;white-space:nowrap!important;cursor:pointer!important}
#ts-account-controls #ts-account-trigger:hover{background:var(--uc-soft)!important}
#ts-account-controls .uc-avatar{display:grid!important;place-items:center!important;flex:none!important;width:31px!important;height:31px!important;border-radius:50%!important;background:var(--uc-tint)!important;color:var(--uc-red)!important;font-size:11px!important;font-weight:500!important}
#ts-account-controls .uc-name{max-width:104px;overflow:hidden;text-overflow:ellipsis;font:inherit;white-space:nowrap}
#ts-account-controls .uc-separator{height:20px;width:1px;flex:none;background:var(--uc-line)}
#ts-account-controls #ts-account-theme{min-height:38px!important;height:38px!important;padding:7px 10px!important;border:0!important;border-radius:8px!important;background:var(--uc-soft)!important;color:var(--uc-ink)!important;font-size:13px!important;gap:7px!important;box-shadow:none!important}
#ts-account-controls svg,body>.uc-portal svg{display:block;width:15px;height:15px;min-width:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
#ts-account-controls #ts-account-trigger>svg{width:13px;height:13px;min-width:13px;color:var(--uc-muted)}
#ts-account-controls #ts-account-trigger::before,#ts-account-controls #ts-account-trigger::after,body>.uc-portal button::before,body>.uc-portal button::after{content:none!important}
body>#ts-account-menu{position:fixed;z-index:10050;width:244px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto;margin:0;padding:5px 8px;background:var(--uc-bg);border:1px solid var(--uc-line);border-radius:10px;box-shadow:0 8px 25px #37202c12;text-align:left}
body>#ts-account-menu .uc-item,body>.uc-flyout .uc-item{display:flex;align-items:center;justify-content:flex-start;gap:10px;position:relative;width:100%;min-height:30px;height:auto;margin:0;padding:4px 10px;border:0;border-radius:5px;background:transparent;color:var(--uc-ink);font:400 12px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:normal;text-align:left;white-space:nowrap;box-shadow:none;cursor:pointer}
body>#ts-account-menu .uc-item:hover,body>#ts-account-menu .uc-item[aria-expanded=true],body>.uc-flyout .uc-item:hover,body>.uc-flyout .uc-sub-link:hover{background:var(--uc-soft);color:var(--uc-ink)}
body>#ts-account-menu .uc-item>svg:first-child,body>.uc-flyout .uc-item>svg:first-child{color:var(--uc-muted)}
body>#ts-account-menu .uc-item>svg:last-child:not(:first-child){margin-left:auto;width:11px;height:11px;min-width:11px;color:var(--uc-muted)}
body>#ts-account-menu .uc-item-label{font:inherit;line-height:inherit;white-space:nowrap}
body>#ts-account-menu .uc-item>small{margin-left:auto;font:400 11px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;color:var(--uc-muted)}
body>#ts-account-menu .uc-break{height:0;padding:0;border:0;border-top:1px solid var(--uc-line);margin:3px 4px;background:none}
body>.uc-flyout{position:fixed;z-index:10051;min-width:0;max-width:calc(100vw - 20px);margin:0;padding:7px;background:var(--uc-bg);border:1px solid var(--uc-line);border-radius:12px;box-shadow:0 12px 32px #29273218;text-align:left}
body>#ts-account-token{padding:16px 18px}
body>#ts-account-token .uc-token-label{display:block;color:var(--uc-muted);font:400 12px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}
body>#ts-account-token .uc-token-value{display:block;margin:7px 0 0;color:var(--uc-ink);font:600 18px/1.55 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
body>#ts-account-token .uc-token-status{display:block;margin:7px 0 0;color:var(--uc-ink);font:400 13px/1.6 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;white-space:normal}
body>#ts-account-token .uc-retry{display:inline-block;width:auto;min-height:30px;margin:5px 0 0;padding:3px 0;border:0;background:none;color:var(--uc-red);font:400 12px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;cursor:pointer}
body>.uc-flyout .uc-sub-link{display:flex;align-items:center;min-height:30px;padding:5px 10px;border:0;border-radius:5px;background:transparent;color:var(--uc-ink);text-decoration:none;font:400 12px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;white-space:nowrap}
#ts-account-controls button:focus-visible,body>.uc-portal button:focus-visible,body>.uc-portal a:focus-visible{outline:2px solid var(--uc-red);outline-offset:2px}
#ts-account-message{position:fixed;z-index:40000;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 28px);padding:10px 16px;border:1px solid #ddd5df;border-radius:9px;background:#fff;color:#29272c;box-shadow:0 8px 30px #35202c18;font:13px/1.6 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}
html[data-theme=dark] #ts-account-message{background:#29262e;color:#f0ecf1;border-color:#504653}
@media(max-width:600px){#ts-account-controls{gap:8px!important}#ts-account-controls #ts-account-trigger{gap:6px!important;font-size:13px!important}#ts-account-controls .uc-avatar{width:28px!important;height:28px!important}#ts-account-controls .uc-name{max-width:72px}#ts-account-controls #ts-account-theme{padding:7px 8px!important;font-size:12px!important;gap:5px!important}body>#ts-account-token .uc-token-value{font-size:17px}}
@media(max-width:380px){#ts-account-controls .uc-name{max-width:56px}#ts-account-controls{gap:6px!important}}
@media(pointer:coarse){body>#ts-account-menu .uc-item,body>.uc-flyout .uc-sub-link,body>.uc-flyout .uc-item{min-height:44px}#ts-account-controls #ts-account-trigger,#ts-account-controls #ts-account-theme{min-height:42px!important;height:42px!important}}
@media print{#ts-account-controls,.uc-portal,#ts-account-message{display:none!important}}

/* Forum avatars are the single source for the shared account picture. */
#ts-account-controls .uc-avatar.uc-avatar-image{background:transparent!important;overflow:hidden!important}
#ts-account-controls .uc-avatar>img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;border-radius:50%!important;object-fit:cover!important;margin:0!important;padding:0!important}
#ts-account-controls .uc-avatar>svg{width:17px!important;height:17px!important;min-width:17px!important}
