/* ============================================================
   admin-mode.css —— 管理員升權（§3.9.1）的提示條與帳號頁區塊
   ① .amode-bar：#app 的第一個子元素。刻意不吸頂——頂欄本身是 position:sticky，
      再疊一條吸頂的只會互相卡位置；路由切換會捲到頂，所以進每一頁都看得到。
   ② 帳號頁的區塊沿用 .acct-login 的 .al-sec 樣式，這裡只補徽章與色調。
   ============================================================ */

.amode-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 9px 16px;
  background: #4b3d7a;
  color: #f2eeff;
  font-size: 13.5px;
  line-height: 1.5;
  border-bottom: 2px solid var(--badge-official, #7279c6);
}

.amode-bar__tag {
  flex: 0 0 auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f2eeff;
  color: #3a2f61;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .02em;
}

.amode-bar__left { flex: 0 0 auto; font-weight: 800; font-variant-numeric: tabular-nums; }

.amode-bar__note { flex: 1 1 auto; min-width: 0; opacity: .82; }

.amode-bar__acts { flex: 0 0 auto; display: flex; gap: 8px; }

.amode-bar__btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(242, 238, 255, .55);
  border-radius: 999px;
  background: transparent;
  color: #f2eeff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.amode-bar__btn:hover { background: rgba(242, 238, 255, .14); }
.amode-bar__btn:focus-visible { outline: 2px solid #f2eeff; outline-offset: 2px; }
.amode-bar__btn[disabled] { opacity: .55; cursor: default; }
.amode-bar__btn--end { border-color: rgba(242, 238, 255, .9); }

/* 手機（375px）：說明文字換行佔滿一列，按鈕靠右不擠壓倒數。 */
@media (max-width: 560px) {
  .amode-bar { padding: 8px 12px; font-size: 13px; }
  .amode-bar__note { flex: 1 1 100%; order: 3; }
  .amode-bar__acts { order: 2; margin-left: auto; }
}

/* ---------- 帳號頁的「管理員模式」展開區 ---------- */
.acct-login .amode-sec > summary { color: var(--badge-official, #7279c6); }
.acct-login .amode-sec .auth-small { color: var(--auth-muted, #5c6f70); }

.amode-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  border-radius: 999px;
  background: #4b3d7a;
  color: #f2eeff;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

@media (prefers-reduced-motion: no-preference) {
  .amode-bar { animation: amodeIn .22s ease-out both; }
  @keyframes amodeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
