/* 8.0.21-hotfix12：登入標誌維持原比例；帳號選單不溢出。 */

.xya-logo,
.lx-logo,
.au-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 36px;
  object-fit: contain;
  object-position: left center;
  align-self: flex-start;
  flex: 0 0 auto;
}
.lx-logo { height: 46px; }
.au-logo { height: 44px; }
.sb .sb-logo img,
.tn-logo img,
.side .logo img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}
.sb .sb-logo img { height: 24px; align-self: center; }
.tn-logo img { height: 30px; }
.side .logo img { max-height: 40px; height: auto; }

.acct-menu:has(.ap8) {
  width: min(300px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  max-height: min(560px, calc(100vh - 72px));
  overflow: auto;
  box-sizing: border-box;
  padding: 12px;
}
.ap8, .ap8 .ap-who, .ap8 .ap-body, .ap8 .ap-links { min-width: 0; }
.ap8 .ap-id { padding: 2px 2px 8px; }
.ap8 .ap-body { padding: 8px 0 10px; gap: 8px; border-bottom: 1px solid #e8eef6; }
.ap8 .ap-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
}
.acct-menu .ap-lang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 2px 4px;
}
.acct-menu .ap-lang-l { grid-column: 1 / -1; display: block; font-size: 12px; }
.acct-menu .ap-lg {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 6px 4px;
  border-radius: 8px;
}
.ap8 .ap-links a:not(.ap-more):not(.ap8-up),
.ap8 .ap-theme {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 8px;
  box-sizing: border-box;
}
.ap8 .ap-links svg.lc { width: 16px; height: 16px; flex: none; color: #F2309B; }
.ap8 .ap-out { margin-top: 4px; border-top: 1px solid #e8eef6; border-radius: 0; }
.ap8 .ap-out svg.lc { color: #dc2626; }
.ap8-bar { height: 8px; background: #e7edf4; }
.ap8-bar i { background: #8b9bb0; }
.ap8-bar.warn i { background: #e07a12; }
.acct-menu a.ap8-line.full {
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 10px;
  background: #fff6ee;
  border: 1px solid #ffd7b0;
}
.ap8-line.full .ap8-bar { background: #ffe4cc; }
.ap8-line.full .ap8-bar i { background: #FF791F; }
.ap8-full {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #FF791F;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ap-body > .ap8-grow { justify-self: end; padding: 0 4px; color: #F2309B; font-weight: 700; font-size: 12.5px; }
@media (max-width: 720px) {
  .acct-menu:has(.ap8) { width: auto; max-width: 100%; max-height: min(86vh, calc(100vh - 24px)); overflow: auto; }
}
@media (max-height: 720px) {
  .acct-menu:has(.ap8) { max-height: calc(100vh - 64px); overflow: auto; }
}
[data-theme=dark] .ap8-bar { background: #2a3340; }
[data-theme=dark] .ap8-bar i { background: #8aa0b8; }
[data-theme=dark] .acct-menu a.ap8-line.full { background: #3a2a22; border-color: #6a4030; }
