/* 帳號面板（開發部檔）：入口在作者設定彈窗的 .settings-grid 第一格，面板是壓在它上面的覆蓋層。 */
/* 入口鈕插在作者的 .settings-grid 裡，直接繼承他的按鈕樣式，不另外定義 */
.tw-account-overlay {
  position: absolute; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  background: #070b13bd; padding: 16px;
}
.tw-account-overlay[hidden] { display: none; }
body:has(#menu:not(.hidden),#meta:not(.hidden)) .tw-account-overlay{inset:auto;left:var(--lobby-frame-x);top:var(--lobby-frame-y);transform:translate(-50%,-50%);width:var(--lobby-frame-width);height:auto;aspect-ratio:var(--lobby-frame-ratio);padding:8px}
@media(max-width:430px){body:has(#menu:not(.hidden),#meta:not(.hidden)) .tw-account-overlay{inset:var(--tw-safe-top) var(--tw-safe-right) var(--tw-safe-bottom) var(--tw-safe-left);transform:none;width:auto;height:auto;aspect-ratio:auto}}
.tw-account-sheet {
  width: min(560px, 100%); max-height: 100%; overflow: auto; touch-action: pan-y; overscroll-behavior: contain;
  border: 1px solid #797285; border-radius: 15px; background: #242734; color: #f0e8d4; padding: 20px 22px;
  box-shadow: 0 20px 100px #0007; font-size: 13px; line-height: 1.7;
}
.tw-account-sheet h2 { font-size: 22px; margin: 0; }
.tw-account-sheet h3 { font-size: 13px; color: #e3c181; margin: 16px 0 6px; }
.tw-account-sheet p { margin: 4px 0; color: #a5a6ad; font-size: 12px; }
.tw-account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tw-account-head button { font-size: 12px; padding: 7px 11px; }
.tw-account-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tw-account-badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #30313e; border: 1px solid #666173; }
.tw-account-badge.registered { background: #2a3b31; border-color: #acd9ba; color: #acd9ba; }
.tw-account-id { font-family: ui-monospace, monospace; font-size: 11px; color: #c2bdc9; user-select: text; -webkit-user-select: text; }
.tw-account-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #3a3648; }
.tw-account-row:last-child { border-bottom: 0; }
.tw-account-row b { font-size: 14px; }
.tw-account-row small { display: block; color: #a5a6ad; font-size: 11px; }
.tw-account-row button { min-width: 84px; font-size: 12px; padding: 8px 12px; }
/* 供應商那排（使用 Google 登入／使用 Apple 登入／已綁定／解除／尚未連接）字數不同，固定寬度才會對齊 */
.tw-account-row button[data-provider] { width: 168px; min-width: 168px; text-align: center; white-space: nowrap; }
.tw-account-sheet button:disabled { opacity: .4; }
.tw-account-msg { min-height: 18px; font-size: 12px; color: #e3c181; margin-top: 8px; }
.tw-account-msg.error { color: #e3999b; }
.tw-account-danger { margin-top: 18px; padding-top: 12px; border-top: 1px solid #514b5f; }
.tw-account-danger button.danger { background: #402932; border-color: #e3999b; color: #ffd6d7; }
.tw-account-confirm { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.tw-account-confirm input { flex: 1; min-width: 120px; padding: 8px 10px; border-radius: 8px; border: 1px solid #666173; background: #161923; color: #f0e8d4; font: inherit; }
.tw-account-legal { margin-top: 14px; font-size: 11px; color: #9996a1; display: flex; gap: 12px; flex-wrap: wrap; }
.tw-account-legal a { color: #b894df; }

.tw-account-profile b { font-size: 16px; }
.tw-account-profile small + small { color: #e3c181; }
.tw-account-sheet button.primary { background: #e3c181; border-color: #e3c181; color: #26252d; }
