/* 後台登入（模擬）與管理員頁 — 沿用前台深色神秘風格 */
body.is-login { background: #0f0e0d; }
.lg { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 48px 16px; position: relative; overflow: hidden; color: #f3efe8;
  font-family: var(--font-body, 'Noto Sans TC', 'Microsoft JhengHei', sans-serif); }
.lg-bg { position: absolute; inset: -20%; background:
  radial-gradient(40% 35% at 70% 20%, rgba(232, 199, 122, .12), transparent 70%),
  radial-gradient(45% 40% at 20% 85%, rgba(120, 30, 20, .22), transparent 70%), #0f0e0d; animation: lg-drift 18s ease-in-out infinite alternate; }
@keyframes lg-drift { to { transform: translate3d(3%, -2%, 0) scale(1.05); } }
.lg-card { position: relative; width: min(460px, 100%); padding: 44px 36px 30px; border: 1px solid rgba(232, 199, 122, .22); border-radius: 4px;
  background: linear-gradient(180deg, rgba(28, 25, 22, .92), rgba(16, 15, 14, .96)); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: lg-in .7s cubic-bezier(.22, .8, .2, 1) both; }
@keyframes lg-in { from { opacity: 0; transform: translateY(16px); } }
.lg-sim { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #1a140a; background: #e8c77a; padding: 3px 10px; border-radius: 2px; margin-bottom: 26px; }
.lg-eyebrow { margin: 0 0 6px; font-family: var(--font-latin, 'Manrope', sans-serif); font-size: 11px; font-weight: 700; letter-spacing: .42em; color: #e8c77a; }
.lg h1 { margin: 0 0 18px; font-family: var(--font-heading, 'Noto Serif TC', serif); font-weight: 900; font-size: 30px; letter-spacing: .12em; }
.lg-lead { margin: 0 0 22px; font-size: 15px; line-height: 1.8; color: rgba(243, 239, 232, .78); }
.lg-dest { display: inline-block; margin-top: 6px; font-size: 13px; color: #e8c77a; }
.lg-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 18px; border: 1px solid #e8c77a; border-radius: 999px;
  background: transparent; color: #e8c77a; font: 700 15px/1.2 inherit; letter-spacing: .08em; cursor: pointer; transition: background .25s, color .25s; }
.lg-btn:hover, .lg-btn:focus-visible { background: #e8c77a; color: #1a140a; outline: none; }
.lg-key { font-size: 18px; }
.lg-msg, .lg-msg.warn { margin: 0 0 18px; padding: 12px 14px; font-size: 14px; line-height: 1.7; color: #f3efe8; border-left: 3px solid #e8c77a; background: rgba(232, 199, 122, .08); }
.lg-result { margin: 0 0 20px; padding: 16px 16px 6px; border: 1px solid rgba(220, 90, 70, .45); background: rgba(120, 30, 20, .18); }
.lg-result.soft { border-color: rgba(243, 239, 232, .2); background: rgba(243, 239, 232, .04); }
.lg-result h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: .06em; }
.lg-result p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; color: rgba(243, 239, 232, .85); word-break: break-word; }
.lg-small { font-size: 12px !important; color: rgba(243, 239, 232, .5) !important; }
.lg-rules { margin: 26px 0 18px; padding: 16px 0 0 18px; border-top: 1px solid rgba(243, 239, 232, .1); font-size: 12.5px; line-height: 1.8; color: rgba(243, 239, 232, .55); }
.lg-back { font-size: 13px; color: rgba(243, 239, 232, .6); text-decoration: none; } .lg-back:hover { color: #e8c77a; }

/* 模擬帳號選擇器：刻意做成中性白色卡片、沒有 Google 標誌 */
.lg-chooser { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .62); animation: lg-fade .2s both; }
@keyframes lg-fade { from { opacity: 0; } }
.ch-box { width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; color: #202124; border-radius: 10px; padding: 0 0 12px; font-family: system-ui, 'Microsoft JhengHei', sans-serif; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.ch-sim { background: #fff4d6; color: #6b4e00; font-size: 12px; padding: 8px 16px; border-radius: 10px 10px 0 0; border-bottom: 1px solid #f0dca0; }
.ch-box h2 { margin: 22px 24px 4px; font-size: 22px; font-weight: 500; }
.ch-sub { margin: 0 24px 14px; color: #5f6368; font-size: 14px; }
.ch-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e0e0e0; }
.ch-list li { border-bottom: 1px solid #e0e0e0; }
.ch-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 24px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ch-list button:hover, .ch-list button:focus-visible { background: #f5f5f5; outline: none; }
.ch-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #5b4b3a; color: #fff; font-size: 14px; }
.ch-who { flex: 1; min-width: 0; } .ch-who b { display: block; font-weight: 500; font-size: 14px; } .ch-who small { color: #5f6368; font-size: 12.5px; word-break: break-all; }
.ch-hint { flex: none; font-size: 11px; color: #6b4e00; background: #fff4d6; padding: 2px 6px; border-radius: 8px; max-width: 110px; text-align: center; }
.ch-foot { display: flex; justify-content: flex-end; padding: 12px 24px 0; }
.ch-cancel { border: 1px solid #dadce0; background: #fff; border-radius: 4px; padding: 8px 18px; font: inherit; cursor: pointer; }
.ch-cancel:hover { background: #f5f5f5; }
@media (max-width: 480px) { .lg-card { padding: 36px 22px 24px; } .ch-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .lg-bg, .lg-card, .lg-chooser { animation: none; } }

/* 後台：登入者 */
.adm-top .who { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.adm-top .who .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e8c77a; color: #1a140a; font-size: 13px; font-weight: 700; }
.adm-top .who b { display: block; font-size: 12px; line-height: 1.2; } .adm-top .who small { font-size: 11px; color: #f1d9a8; }
.tbl.users td { vertical-align: top; } .tbl.users code { font-size: 11px; color: #777; }
.tbl.users .acts { white-space: nowrap; } .tbl.users .acts .a-btn { margin: 0 4px 4px 0; }
.adm-top > b { white-space: nowrap; }
@media (max-width: 1280px) { .adm-top .tag { max-width: 150px; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 1500px) { .adm-tabs a { padding: 6px 8px; } .adm-top { gap: 8px; } .adm-top .who small { display: none; } }
@media (max-width: 1400px) { .adm-top .who > span:last-child { display: none; } }
