/* 由 tools/admin-keys-build.cjs 從 ../redesign-preview/admin-keys/ak.css 產生，請改來源後重跑。 */
/* 老師後台管理鍵（放在右上裝置列「闖關計時」左邊；和裝置列同樣白底圓角、深綠字） */
.ak-keys{display:flex;align-items:center;gap:8px;margin-right:2px}
.ak-key{height:48px;padding:0 14px;display:flex;align-items:center;gap:6px;border:0;border-radius:15px;background:linear-gradient(#fff,#F1F6EE);box-shadow:0 4px 0 #A9C99A,0 6px 10px rgba(30,70,30,.15);color:#2A4A30;font:900 16px/1 "Park","GenSenRounded","Microsoft JhengHei",sans-serif;white-space:nowrap;cursor:pointer}
.ak-key svg{width:26px;height:26px;flex:none;stroke:#2A4A30;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}/* 和右側功能鍵同樣的線條圖示 */
.ak-key:active{transform:translateY(3px);box-shadow:0 1px 0 #A9C99A}
@media(max-height:700px),(max-width:1100px){.ak-key{height:42px;padding:0 10px;font-size:14px}.ak-key svg{width:23px;height:23px}}
/* 首頁綠外框裡「XXXX，歡迎來到 FUN 學奇機！」：往左一個字、白色、不要粗體（2026-10-11 使用者）。字級＝--wf（2026-10-11 使用者選「縮小 2 級」＝16px）；小螢幕兩行時再小 2px */
body.hg-dev-on .topbar #where{font-size:var(--wf,16px)!important;color:#fff!important;font-weight:400!important;font-family:"Microsoft JhengHei","PingFang TC","Noto Sans TC",sans-serif!important;/* 網站圓體 Park 只有粗體，歡迎字改用一般粗細的字型 */margin-left:calc(22px - 1em)!important;/* 原本左邊空 22px，往左一個字（20px） */flex:0 1 auto!important;min-width:0!important;white-space:nowrap;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(30,70,30,.35)}
/* 全站不用「改密碼」（2026-10-11 使用者）：原本導覽列的改密碼鍵收起來 */
#password-btn{display:none!important}
/* LOGO 不能被擠扁；空間不夠時管理鍵只留圖示（ak.js 自動加 .ak-compact，滑鼠移上去有完整名稱） */
body.hg-dev-on .topbar #brand-slot,body.zc-dev-on .topbar #brand-slot,body.mc-dev-on .topbar #brand-slot{flex:0 0 auto!important}
.ak-keys.ak-compact .ak-key span{display:none}.ak-keys.ak-compact .ak-key{width:52px;padding:0;justify-content:center}
body.ak-small.hg-dev-on .topbar #where{font-size:calc(var(--wf,16px) - 2px)!important;margin-left:calc(22px - 1em)!important;white-space:normal!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}/* 小螢幕放不下：分成兩行 *//* 位置維持「往左一個字（20px）」 */
/* 阿桀老師帳號：首頁不顯示歡迎字（空間留給後台鍵） */
body.ak-admin.hg-dev-on .topbar #where{display:none!important}
