/* 菜单只约束自身外观，字体与按钮文字颜色继承所在页面。 */
[data-tools-account] { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 0; font: inherit; color: inherit; text-align: left; z-index: 60; }
[data-tools-account] .ta-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: min(260px, calc(100vw - 32px)); padding: 6px 10px; margin: 0; color: inherit; font: inherit; line-height: 1.4; letter-spacing: normal; background: transparent; border: 1px solid currentColor; border-radius: 8px; text-decoration: none; cursor: pointer; }
.ta-avatar { position: relative; display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #e6e9dc; color: #282c20; }
.ta-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ta-nickname { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-tools-account] .ta-menu { position: absolute; top: calc(100% + 8px); right: 0; display: grid; width: 200px; max-width: calc(100vw - 16px); max-height: min(420px, calc(100dvh - 100px)); overflow-y: auto; padding: 6px; margin: 0; background: #fff; color: #282c20; border: 1px solid #d4d7c9; border-radius: 10px; box-shadow: 0 8px 24px #00000014; font: inherit; }
[data-tools-account] .ta-menu[hidden] { display: none; }
[data-tools-account] .ta-item { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; margin: 0; border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; line-height: 1.4; letter-spacing: normal; text-align: left; text-decoration: none; cursor: pointer; }
[data-tools-account] .ta-item:hover, [data-tools-account] .ta-item:focus-visible { background: #edf3e3; }
[data-tools-account] .ta-item[aria-current] { color: #487300; font-weight: 700; cursor: default; }
[data-tools-account] .ta-logout { border-top: 1px solid #d4d7c9; border-radius: 0 0 5px 5px; }
[data-tools-account] :focus-visible { outline: 2px solid #487300; outline-offset: 2px; }
[data-tools-account] button:disabled { opacity: .5; cursor: wait; }
.ta-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; }
[data-account-content][hidden] { display: none !important; }
.cm-import { margin-top: 12px; }
@media (max-width: 640px) {
  .tl-top, .cm-head { flex-wrap: wrap; }
  .ta-header-actions { gap: 12px; }
  .ta-nickname { max-width: 100px; }
}
