@import url("../agent-identity-menu-v2.css?v=20261013-secondary-agent2");

/* V2 顶栏头像账户菜单 */
.account-trigger[data-account-menu-ready="true"] { padding: 0; border: 0; cursor: pointer; font: inherit; }
.account-trigger[data-account-menu-ready="true"]:hover,
.account-trigger[data-account-menu-ready="true"][aria-expanded="true"] { box-shadow: none; }
.main-nav a.has-unread { position: relative; }
.main-nav__unread { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border: 1.5px solid var(--canvas, #f5f6f8); border-radius: 50%; background: #c93632; pointer-events: none; }
.main-nav .is-current .main-nav__unread { border-color: var(--v2-nav-selected, #eef0f2); }
.account-menu {
  position: fixed;
  z-index: 80;
  width: 292px;
  padding: 7px;
  border: 1px solid color-mix(in oklch, currentColor 8%, transparent);
  border-radius: 12px;
  background: #fefeff;
  color: #25292f;
  box-shadow: 0 16px 42px rgb(23 26 31 / 14%), 0 2px 8px rgb(23 26 31 / 5%);
  font-family: Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
}
.account-menu a { color: inherit; text-decoration: none; }
.account-menu__profile,
.account-menu__more { border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.account-menu__profile { min-height: 58px; padding: 9px 10px; }
.account-menu__more { min-height: 38px; margin-top: 3px; padding: 0 10px; color: #555d68; font-size: 12px; }
.account-menu__profile:hover,
.account-menu__profile:focus-visible,
.account-menu__more:hover,
.account-menu__more:focus-visible { outline: 0; background: #f3f4f6; }
.account-menu__profile strong,
.account-menu__profile small { display: block; }
.account-menu__profile strong { color: #20242a; font-size: 13px; line-height: 20px; font-weight: 560; }
.account-menu__profile small { margin-top: 2px; color: #727a86; font-size: 10.5px; line-height: 17px; font-weight: 400; }
.account-menu svg { flex: none; width: 15px; height: 15px; color: #858d98; }
.account-menu--profile-card { width: 292px; padding: 8px; }
.account-menu__identity { min-height: 68px; padding: 9px 10px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.account-menu__avatar { width: 44px; height: 44px; border-radius: 50%; background: #eef1f4; color: #343b45; display: grid; place-items: center; font-size: 14px; font-weight: 650; }
.account-menu__identity-copy { min-width: 0; display: block; }
.account-menu__identity-copy strong,
.account-menu__identity-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__identity-copy strong { color: #20242a; font-size: 14px; line-height: 21px; font-weight: 620; }
.account-menu__identity-copy small { margin-top: 1px; color: #727a86; font-size: 11px; line-height: 17px; }
.account-menu__role { min-height: 24px; padding: 0 8px; border-radius: 999px; background: #f1f3f5; color: #555d68; display: inline-flex; align-items: center; font-size: 10.5px; white-space: nowrap; }
.account-menu__divider { height: 1px; margin: 3px 10px 5px; background: #eceef1; }
.account-menu__row { min-height: 42px; padding: 0 10px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.account-menu__row:hover,
.account-menu__row:focus-visible { outline: 0; background: #f3f4f6; }
.account-menu__row strong { color: #20242a; font-size: 12.5px; line-height: 19px; font-weight: 400; }
.global-share-trigger { width: 40px; height: 40px; margin-right: -6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #3d434b; display: grid; place-items: center; flex: 0 0 auto; cursor: pointer; transition: color 140ms ease-out, background-color 140ms ease-out; }
.global-share-trigger:hover,
.global-share-trigger[aria-expanded="true"] { background: #eef0f2; }
.global-share-trigger:focus-visible { outline: 2px solid #566f84; outline-offset: 2px; }
.global-share-trigger svg { width: 18px; height: 18px; display: block; opacity: .76; transition: opacity 140ms ease-out; }
.global-share-trigger:hover svg,
.global-share-trigger[aria-expanded="true"] svg { opacity: 1; }
.global-points-trigger { min-width: 56px; height: 30px; padding: 0 8px; border: 1px solid rgb(31 36 43 / 11%); border-radius: 999px; background: transparent; color: #626a75; display: inline-flex; align-items: center; justify-content: center; gap: 2px; flex: 0 0 auto; cursor: pointer; font: inherit; transition: border-color 140ms ease-out, background-color 140ms ease-out, color 140ms ease-out; }
.global-points-trigger:hover,
.global-points-trigger[aria-expanded="true"] { border-color: rgb(31 36 43 / 16%); background: #f3f4f6; color: #20242a; }
.global-points-trigger:focus-visible { outline: 2px solid #566f84; outline-offset: 2px; }
.global-points-trigger svg { width: 14px; height: 14px; flex: 0 0 auto; }
.global-points-trigger strong { color: inherit; font-size: 11.5px; line-height: 1; white-space: nowrap; }
.global-points-trigger strong { font-weight: 560; font-variant-numeric: tabular-nums; }
.global-points-panel { position: fixed; z-index: 82; width: 300px; padding: 8px; border: 1px solid rgb(31 36 43 / 8%); border-radius: 12px; background: #fefeff; color: #20242a; box-shadow: 0 12px 32px rgb(23 26 31 / 11%), 0 1px 4px rgb(23 26 31 / 4%); font-family: Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif; }
.global-points-panel__header { min-height: 52px; padding: 6px 8px 8px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.global-points-panel__header h2 { margin: 0; font-size: 14px; line-height: 22px; font-weight: 400; }
.global-points-panel__header h2 strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.global-points-panel__header > button { min-height: 32px; padding: 0 13px; border: 0; border-radius: 8px; background: #24282e; color: #fefeff; font: inherit; font-size: 11.5px; cursor: pointer; }
.global-points-panel__header > button:hover { background: #343940; }
.global-points-panel__header > button:focus-visible { outline: 2px solid #566f84; outline-offset: 2px; }
.global-points-panel__actions { display: grid; gap: 2px; }
.global-points-panel__actions button { width: 100%; min-height: 42px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; color: #343a43; display: flex; align-items: center; justify-content: space-between; gap: 14px; font: inherit; font-size: 12px; cursor: pointer; }
.global-points-panel__actions button:hover { background: #f3f4f6; }
.global-points-panel__actions button:focus-visible { outline: 2px solid #566f84; outline-offset: -2px; }
.global-points-panel__actions button > span { display: inline-flex; align-items: center; gap: 9px; }
.global-points-panel__actions button svg { width: 16px; height: 16px; color: #737b86; }
.global-points-panel__actions button > svg { width: 14px; height: 14px; color: #9299a2; }
.global-points-panel__subheader { min-height: 42px; display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; }
.global-points-panel__subheader h2 { margin: 0; text-align: center; font-size: 13px; line-height: 20px; font-weight: 560; }
.global-points-panel__subheader button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #555d68; display: grid; place-items: center; cursor: pointer; }
.global-points-panel__subheader button:hover { background: #f3f4f6; }
.global-points-panel__subheader button:focus-visible { outline: 2px solid #566f84; outline-offset: -2px; }
.global-points-panel__subheader svg { width: 16px; height: 16px; }
.global-points-rule-help { position: relative; justify-self: end; }
.global-points-rule-help > button { color: #7b838e; }
.global-points-rule-help > span { position: absolute; z-index: 2; top: 36px; right: 0; width: 216px; padding: 9px 10px; border: 1px solid rgb(31 36 43 / 8%); border-radius: 8px; background: #2b3036; color: #f8f9fa; box-shadow: 0 8px 20px rgb(23 26 31 / 14%); font-size: 10.5px; line-height: 17px; font-weight: 400; opacity: 0; visibility: hidden; transform: translateY(-2px); transition: opacity 120ms ease-out, transform 120ms ease-out, visibility 120ms; pointer-events: none; }
.global-points-rule-help:hover > span,
.global-points-rule-help:focus-within > span { opacity: 1; visibility: visible; transform: translateY(0); }
.global-points-panel section { margin: 12px 8px 8px; }
.global-points-panel h3 { margin: 0 0 8px; color: #3d434b; font-size: 12px; line-height: 18px; font-weight: 560; }
.global-points-panel__empty { margin: 0; padding: 11px 12px; border-radius: 8px; background: #f5f6f7; color: #727a86; font-size: 11px; line-height: 18px; }
.global-points-panel__empty--standalone { margin: 8px; text-align: center; }
.global-points-panel.is-details .global-points-panel__empty { padding: 2px 0 4px; background: transparent; }
.global-points-ledger li { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.global-points-ledger li + li { border-top: 1px solid #eff1f3; }
.global-points-ledger { margin: 0; padding: 0; list-style: none; }
.global-points-ledger li > span strong, .global-points-ledger li > span time { display: block; }
.global-points-ledger li > span strong { font-size: 11.5px; font-weight: 500; }
.global-points-ledger li > span time { color: #858d98; font-size: 10px; }
.global-points-ledger li > b { font-size: 11.5px; font-weight: 620; font-variant-numeric: tabular-nums; }
.global-points-ledger li > b.is-credit { color: #35634b; }
.global-points-ledger li > b.is-debit { color: #555d68; }
.global-share-panel { position: fixed; z-index: 82; width: 280px; padding: 18px; border: 1px solid rgb(31 36 43 / 8%); border-radius: 12px; background: #fefeff; color: #20242a; box-shadow: 0 12px 32px rgb(23 26 31 / 11%), 0 1px 4px rgb(23 26 31 / 4%); font-family: Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif; text-align: center; }
.global-share-panel__header { position: relative; padding-right: 34px; text-align: left; }
.global-share-panel__header h2,
.global-share-panel__header p,
.global-share-panel__caption { margin: 0; }
.global-share-panel__header h2 { font-size: 16px; line-height: 23px; font-weight: 600; letter-spacing: 0; }
.global-share-panel__header p { margin-top: 2px; color: #727a86; font-size: 12px; line-height: 18px; }
.global-share-panel__qr { width: 112px; height: 112px; margin: 18px auto 0; display: grid; place-items: center; color: #727a86; font-size: 11px; line-height: 16px; }
.global-share-panel__qr svg { width: 112px; height: 112px; display: block; }
.global-share-panel__qr.is-error { width: 148px; }
.global-share-panel__caption { margin-top: 6px; color: #727a86; font-size: 11px; line-height: 17px; }
.global-share-panel__copy { width: 112px; height: 34px; margin: 18px auto 4px; padding: 0 8px; border: 0; border-radius: 7px; background: #20242a; color: #fefeff; display: block; font: inherit; font-size: 12px; font-weight: 560; cursor: pointer; transition: background-color 140ms ease-out; }
.global-share-panel__copy:hover { background: #30353c; }
.global-share-panel__copy:focus-visible { outline: 2px solid #566f84; outline-offset: 2px; }
.global-share-panel__copy.is-copied { background: #35634b; }
.global-share-panel__close { position: absolute; top: -7px; right: -7px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #727a86; display: grid; place-items: center; cursor: pointer; }
.global-share-panel__close:hover { background: #f1f3f5; color: #20242a; }
.global-share-panel__close:focus-visible { outline: 2px solid #566f84; outline-offset: 2px; }
.global-share-panel__close svg { width: 16px; height: 16px; }
@media (max-width: 620px) {
  .account-menu { width: min(292px, calc(100vw - 24px)); }
  .global-share-trigger { width: 36px; height: 36px; margin-right: 0; display: grid; }
  .global-points-trigger { min-width: 52px; height: 30px; padding: 0 7px; }
  .global-points-panel { width: min(300px, calc(100vw - 24px)); }
  .global-share-panel { width: min(280px, calc(100vw - 24px)); }
}
