.preview-account { display:inline-flex; align-items:center; gap:8px; flex-shrink:0; color:#0F172A; font:13px/1.5 "Microsoft YaHei",sans-serif; }
.preview-account[data-tone="dark"] { color:#fff; }
.preview-account .preview-account-login { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:0 16px; color:#fff; background:#0052D9; border-radius:8px; font-size:13px; font-weight:600; white-space:nowrap; }
.preview-account .preview-account-login:hover { background:#0044B5; }
.preview-account .preview-account-iconButton { position:relative; width:40px; height:40px; min-width:40px; padding:0; border:0; border-radius:8px; background:transparent; color:inherit; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.preview-account .preview-account-iconButton:hover,.preview-account .preview-account-user:hover { background:#0F172A0A; }
.preview-account[data-tone="dark"] .preview-account-iconButton:hover,.preview-account[data-tone="dark"] .preview-account-user:hover { background:#FFFFFF12; }
.preview-account .preview-account-badge { position:absolute; top:1px; right:0; min-width:16px; height:16px; padding:0 4px; background:#D92D20; border-radius:10px; color:#fff; font:10px/16px Arial,sans-serif; text-align:center; }
.preview-account .preview-account-user { display:inline-flex; align-items:center; gap:9px; min-height:44px; height:auto; padding:4px 6px; background:transparent; border:0; border-radius:8px; color:inherit; cursor:pointer; text-align:left; }
.preview-account-avatar { display:flex; align-items:center; justify-content:center; width:32px; height:32px; flex-shrink:0; background:linear-gradient(135deg,#0052D9,#6941C6); border-radius:9px; color:#fff; font-weight:600; font-size:13px; }
.preview-account-identity { display:flex; flex-direction:column; min-width:0; gap:1px; }
.preview-account-identity strong { display:block; max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:600; }
.preview-account-identity small { font-size:10px; color:#475569; white-space:nowrap; }
.preview-account[data-tone="dark"] .preview-account-identity small { color:#CBD5E1; }
.preview-account-panel { width:min(400px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); overflow:auto; background:#fff; color:#0F172A; border:1px solid #E2E8F0; border-radius:12px; padding:18px; box-shadow:0 18px 50px #0F172A26; font:13px/1.6 "Microsoft YaHei",sans-serif; }
.preview-account-panelHeading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.preview-account-panelHeading h2 { margin:0; font-size:16px; font-weight:600; }
.preview-account-messages { display:grid; gap:0; }
.preview-account-message { display:flex; align-items:flex-start; gap:10px; padding:14px 0; color:#0F172A; border-bottom:1px solid #E2E8F0; text-decoration:none; }
.preview-account-message:hover { color:#0052D9; }
.preview-account-message > span:nth-child(2) { flex:1; min-width:0; }
.preview-account-message strong { font-size:13px; font-weight:500; line-height:1.7; display:block; }
.preview-account-message small { display:block; margin-top:5px; color:#475569; font-size:11px; }
.preview-account-message svg { flex-shrink:0; margin-top:4px; }
.preview-account-dot { width:6px; height:6px; border-radius:50%; background:#0052D9; margin-top:8px; flex-shrink:0; }
.preview-account-all { display:flex; align-items:center; justify-content:center; gap:8px; color:#0052D9; padding:12px 0 0; text-decoration:none; font-weight:600; }
.preview-account-menu { display:grid; gap:4px; }
.preview-account-menu > a { display:flex; align-items:center; justify-content:space-between; min-height:42px; padding:9px 10px; color:#0F172A; text-decoration:none; border-radius:6px; }
.preview-account-menu > a:hover { background:#F1F5F9; color:#0052D9; }
.preview-account-menu button { justify-content:flex-start; color:#B42318; }
.preview-account :focus-visible,.preview-account-panel :focus-visible { outline:2px solid #0052D9; outline-offset:3px; }
@media(max-width:700px){ .preview-account{gap:2px}.preview-account .preview-account-identity,.preview-account .preview-account-user>svg{display:none}.preview-account .preview-account-iconButton{width:40px;min-width:40px;height:44px}.preview-account .preview-account-user{padding:4px}.preview-account .preview-account-login{padding:0 12px;font-size:12px;min-height:40px} }

.preview-account details{position:relative}.preview-account summary{list-style:none}.preview-account summary::-webkit-details-marker{display:none}.preview-account details>.preview-account-panel{position:fixed;top:64px;right:24px;z-index:10000}.preview-account details:not([open])>.preview-account-panel{display:none}.preview-account p{color:#475569;margin:6px 0;font-size:12px}.preview-account svg{display:block;flex-shrink:0}.preview-account-personal{padding:20px}.preview-account-personal h2{font-size:22px;margin:0 0 10px}.preview-account-personal .preview-account-message{max-width:900px;background:#fff;border:1px solid #E2E8F0;border-radius:8px;margin:10px 0;padding:16px;cursor:pointer;width:100%;text-align:left}.preview-account-panel::backdrop{background:#0F172A55}.preview-account-panel button{cursor:pointer;min-height:36px;border:1px solid #E2E8F0;border-radius:6px;background:#fff;color:#0F172A;padding:6px 12px}
@media(max-width:700px){.preview-account details>.preview-account-panel{right:12px;top:60px;width:calc(100vw - 24px)}.topbar-right{gap:8px!important}.topbar{padding-left:12px!important;padding-right:12px!important}.topbar-right>.back-front{font-size:11px}.topbar-left{min-width:0}}
