/* 丙級工業配線接線練習 — 樣式
 * 底子＝RW UI 設計系統（淺灰底、白底圓角卡片、自訂 modal），配色跟 ClassHub 協調（深藍 #173b57、青綠 #087e70、琥珀 #f6b83f）。
 * 畫布走「工作台」感：暖灰製圖格線、鍍鋅器具板、烤漆操作板、像實物的器具。
 */
:root{
  --bg:#ebe7df;            /* 頁面底：介於設計系統淺灰與 ClassHub 米色之間 */
  --panel:#ffffff;
  --ink:#172033;
  --label:#1f2937;
  --sub:#667085;
  --muted:#8a8f98;
  --divider:#e3ddd2;
  --hdr-bg:#f5f2ec;
  --hdr-fg:#374151;
  --navy:#173b57;
  --teal:#087e70;
  --teal-2:#0b9c8a;
  --mint:#dcf7ef;
  --amber:#f6b83f;
  --amber-ink:#7a4d00;
  --orange:#e8590c;
  --red:#b42318;
  --red-bg:#fee4e2;
  --sel:#dbeafe;
  --ok-1:#1ba84f; --ok-2:#0f6832;
  --cancel-1:#adb5bd; --cancel-2:#868e96;
  --stage:#d9d4c9;
  --font:-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;
  --mono:"SF Mono",ui-monospace,Menlo,Consolas,"Roboto Mono",monospace;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--label);font-family:var(--font);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
button{font-family:inherit}
kbd{font-family:var(--mono);font-size:11.5px;background:#f3f4f6;border:1px solid #d1d5db;border-bottom-width:2px;border-radius:4px;padding:0 5px;color:#374151}

/* ───────── 共用元件（RW UI） ───────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:14px;font-weight:700;letter-spacing:.03em;
  padding:8px 20px;border:none;border-radius:9px;color:#fff;cursor:pointer;white-space:nowrap;
  box-shadow:0 1px 3px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.18);transition:transform .12s,filter .12s}
.btn:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.07)}
.btn:active:not(:disabled){transform:translateY(1px);filter:brightness(.94)}
.btn:disabled{opacity:.42;cursor:not-allowed}
.btn-ok{background:linear-gradient(155deg,var(--ok-1),var(--ok-2))}
.btn-cancel{background:linear-gradient(155deg,var(--cancel-1),var(--cancel-2))}
.btn-danger{background:linear-gradient(155deg,#e5484d,#a51d23)}
.chip{font-size:13px;font-weight:600;color:#374151;white-space:nowrap;background:#eef0f3;border:1px solid var(--divider);border-radius:6px;padding:3px 9px}
.st{display:inline-block;padding:1px 9px;border-radius:999px;font-size:12px;font-weight:700}
.st-ok{background:#dcfce7;color:#166534}.st-warn{background:#fef3c7;color:#854d0e}.st-bad{background:#fee2e2;color:#991b1b}.st-mute{background:#f3f4f6;color:#6b7280}
.tbl{width:100%;border-collapse:collapse;font-size:13px}
.tbl th{background:#f3f4f6;color:var(--sub);font-weight:600;position:sticky;top:0;z-index:1}
.tbl th,.tbl td{padding:6px 6px;text-align:center;border-bottom:1px solid var(--divider)}
.tbl tbody tr:hover{background:#f8fafc;cursor:pointer}
.tbl tr.sel{background:var(--sel)}

/* modal */
.modal{position:fixed;inset:0;z-index:10000;background:rgba(30,32,36,.5);display:none;align-items:center;justify-content:center;padding:20px}
.modal.show{display:flex}
.modal .box{width:min(400px,92vw);max-height:calc(100vh - 40px);display:flex;flex-direction:column;background:#fff;border-radius:16px;padding:22px 22px 18px;box-shadow:0 18px 50px rgba(0,0,0,.28);animation:pop .16s ease-out}
.modal .box.wide{width:min(760px,94vw)}
.modal .title{font-size:18px;font-weight:700;color:var(--label)}
.modal .sub{font-size:14px;color:#4b5563;margin:8px 0 16px;white-space:pre-line}
.modal .acts{display:flex;gap:10px;justify-content:flex-end;margin-top:14px;flex:none}
@keyframes pop{from{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}
/* 故障檢修機組的視窗（2026-11-27 審查）：.wait＝還在問伺服器有沒有機組，先擋住操作；0.4 秒內回來就看不到這一段（不會閃一下），比較久才淡入「準備題目中」 */
#mFaultSet.wait .set-ask,#mFaultSet:not(.wait) .set-wait{display:none}
#mFaultSet.wait{animation:fsWaitIn .2s ease-out .4s backwards}
#mFaultSet.wait .box{animation-delay:.4s;animation-fill-mode:backwards}
@keyframes fsWaitIn{from{background:transparent}}
#mFaultSet #fsNo{text-transform:uppercase;letter-spacing:.18em;font-weight:700}   /* 機組代號（同日晚）：大寫顯示、字距拉開，好對照老師發的代號；值照打的存，ui.js 送出前再轉大寫 */

/* toast */
.toasts{position:fixed;left:50%;bottom:58px;transform:translateX(-50%);z-index:11000;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.toast{background:#1f2937;color:#fff;font-size:14px;font-weight:600;padding:10px 18px;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.25);max-width:min(560px,90vw);animation:toastIn .2s ease-out}
.toast.warn{background:#8a4b00}.toast.bad{background:#a4161a}.toast.ok{background:#0f6832}.toast.info{background:#173b57}
.toast.out{opacity:0;transform:translateY(8px);transition:all .25s}
@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ───────── 載入、選單、登入 ───────── */
.view{min-height:100%}
.boot{display:flex;align-items:center;justify-content:center;height:100vh;color:var(--sub)}
.boot-in{display:flex;align-items:center;gap:10px;font-size:15px}
.spin{width:18px;height:18px;border-radius:50%;border:3px solid #cfc8bb;border-top-color:var(--teal);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.menuview{background:
  radial-gradient(1200px 500px at 85% -10%,rgba(8,126,112,.10),transparent 60%),
  linear-gradient(var(--bg),var(--bg))}
.menu-head{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1080px;margin:0 auto;padding:30px 24px 10px}
.brand{display:flex;align-items:center;gap:14px}
.brand-mark{width:52px;height:52px;flex:none;filter:drop-shadow(0 4px 10px rgba(23,59,87,.25))}
.brand h1{margin:0;font-size:26px;letter-spacing:.04em;color:var(--navy)}
.brand-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px}
.brand-by{font-size:13px;color:var(--sub);letter-spacing:.04em;white-space:nowrap}
@media (max-width:640px){   /* 2026-11-27 站名變長：手機上標題縮小、名字那欄換到下一行，不擠成「電／機一甲」 */
  .menu-head{flex-wrap:wrap;padding:22px 24px 8px;gap:10px}
  .brand{gap:12px}.brand-mark{width:44px;height:44px}
  .brand h1{font-size:20px;letter-spacing:.02em}
  .menu-head .who{width:100%}
}
.brand p{margin:2px 0 0;color:var(--sub);font-size:13.5px}
.who{font-size:13px;color:var(--sub);text-align:right}
.who b{color:var(--label)}
.menu-body{max-width:1080px;margin:0 auto;padding:6px 24px 40px}
.menu-body h2{font-size:17px;margin:26px 0 12px;display:flex;align-items:center;gap:10px;color:var(--label)}
.stage-tag{font-size:12px;font-weight:800;letter-spacing:.06em;color:#fff;background:var(--navy);border-radius:6px;padding:2px 8px}
.stage-tag.a{background:#7c5a12}
.stage-tag.in-tag{background:#0f6b5c}
/* 丙級室內配線的題目（body.in-task）：沒有監評簽名；說明裡工業配線專用的那幾句換掉 */
.in-show{display:none!important}
body.in-task li.in-show{display:list-item!important}
body.in-task .in-hide,body.in-task .btn-sign{display:none!important}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.tcard{position:relative;display:block;text-decoration:none;color:inherit;background:#fff;border-radius:14px;box-shadow:0 1px 4px rgba(0,0,0,.12);overflow:hidden;transition:transform .15s,box-shadow .15s}
.tcard:not(.off):hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(23,59,87,.16)}
.tcard .thumb{height:130px;background:#f4f2ec 50% 38%/cover no-repeat;border-bottom:1px solid var(--divider);position:relative}
.tcard .thumb::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 55%,rgba(255,255,255,.85))}
.tcard .tc-body{padding:12px 14px 14px}
.tcard .tc-no{font-size:12px;font-weight:700;color:var(--teal);letter-spacing:.04em}
.tcard .tc-title{font-size:16.5px;font-weight:800;margin:2px 0 6px;color:var(--ink)}
.tcard .tc-meta{font-size:12.5px;color:var(--sub);display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.tcard .tc-go{position:absolute;right:14px;bottom:14px;font-weight:800;color:var(--teal);font-size:14px}
.tcard.off{cursor:default;opacity:.72}
.tcard.off .thumb{filter:grayscale(1)}
.tcard .wip{position:absolute;top:12px;right:12px;z-index:1;background:#fef3c7;color:#854d0e;font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px}
.menu-foot{margin-top:30px;font-size:12px;color:var(--muted)}
/* 瀏覽人次與操作人數（2026-11-19）。類別一律 st- 開頭、名稱寫完整（器具圖形用短類別名，避免撞名）。
   首頁那一行疊在第一個標題上方的空白裡（上下 margin 相抵＝0），數字晚到也不會把卡片往下推；
   小卡的點閱數放在縮圖右下角（小卡最右下已經是「開始 ›」） */
.st-sum{margin:6px 0 -24px;line-height:18px;font-size:12px;color:var(--muted);text-align:right;letter-spacing:.02em}
.tcard .thumb .st-hits{position:absolute;right:8px;bottom:6px;z-index:1;font-size:11.5px;line-height:18px;color:var(--sub);background:rgba(255,255,255,.88);padding:0 8px;border-radius:999px;white-space:nowrap}

.gate{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:84px 20px 24px}
/* 登入頁上方網站名稱橫幅＋登入框底部署名（2026-11-23） */
.gate-bar{position:fixed;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 24px;background:var(--navy);color:#fff;box-shadow:0 2px 12px rgba(0,0,0,.18)}
.gate-mark{width:38px;height:38px;flex:none}
.gate-site{display:flex;flex-direction:column;line-height:1.35;min-width:0}
.gate-site b{font-size:18px;letter-spacing:.05em}
.gate-site small{font-size:12px;color:#c9d6e2;letter-spacing:.03em}
.gate-card p.gate-credit{margin:20px 0 0;padding-top:12px;border-top:1px solid var(--divider);font-size:12px;color:var(--muted);letter-spacing:.04em}
@media (max-width:520px){.gate-bar{padding:8px 16px;gap:10px}.gate-mark{width:32px;height:32px}.gate-site b{font-size:15px;letter-spacing:.02em}.gate-site small{display:none}}
.gate-card{width:min(440px,94vw);background:#fff;border-radius:16px;box-shadow:0 10px 40px rgba(0,0,0,.14);padding:30px 28px;text-align:center}
.gate-ico{font-size:40px}
.gate-card h2{margin:8px 0 6px;font-size:20px;color:var(--navy)}
.gate-card p{color:#4b5563;margin:0 0 18px}
.gate-acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.gate-acts a{text-decoration:none}
/* 入口登入框（2026-11-23，gl- 開頭）＋首頁右上角登出鈕 */
.gl-form{flex:1 1 100%;display:flex;flex-direction:column;gap:12px;text-align:left}
.gl-f{display:flex;flex-direction:column;gap:5px;font-size:13.5px;font-weight:700;color:var(--label)}
.gl-f input{font:inherit;font-weight:400;font-size:16px;padding:10px 12px;border:1px solid #cad3dd;border-radius:10px;background:#fff;color:var(--ink)}
.gl-f input:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(15,118,110,.16)}
.gate-card p.gl-err{min-height:1.2em;margin:0;color:#b42318;font-size:13.5px;line-height:1.5}
.gl-go{width:100%;justify-content:center;padding:11px 0;font-size:16px}
.gate-card p.gl-hint{flex:1 1 100%;margin:4px 0 0;font-size:12.5px;line-height:1.7;color:var(--sub)}
.gate-acts .gl-hint a{text-decoration:underline;color:var(--teal)}
.who-lo{margin-left:10px;font:inherit;font-size:12.5px;padding:3px 12px;border:1px solid #cad3dd;border-radius:999px;background:#fff;color:var(--sub);cursor:pointer}
.who-lo:hover{border-color:var(--navy);color:var(--navy)}
/* 訪客體驗（2026-11-23，gl-／gu- 開頭） */
.gl-or{flex:1 1 100%;display:flex;align-items:center;gap:10px;margin:4px 0 -2px;color:var(--muted);font-size:12.5px}
.gl-or::before,.gl-or::after{content:'';flex:1;height:1px;background:var(--divider)}
.gl-guest{width:100%;padding:10px 0;font-size:15px}
.gate-card p.gl-gnote{flex:1 1 100%;margin:-4px 0 0;font-size:12.5px;color:var(--sub)}
.tcard.gu-lock{cursor:pointer}
.tcard .wip.gu-tag{background:#e0ecf7;color:#173b57}
/* 登入框的學生／老師切換、驗證碼欄 */
.gl-role{display:flex;gap:6px;padding:4px;border-radius:12px;background:#eef2f6}
.gl-role button{flex:1;padding:8px 0;border:0;border-radius:9px;background:transparent;font:inherit;font-size:14px;font-weight:700;color:var(--sub);cursor:pointer}
.gl-role button.on{background:#fff;color:var(--navy);box-shadow:0 1px 3px rgba(0,0,0,.14)}
.gl-f input.gl-otp{font-size:24px;letter-spacing:.5em;text-align:center}

/* ───────── 練習畫面 ───────── */
.work{height:100vh;display:flex;flex-direction:column;overflow:hidden}
.topbar{flex:none;height:50px;display:flex;align-items:center;gap:10px;padding:0 12px;background:#fff;border-bottom:1px solid var(--divider);box-shadow:0 1px 4px rgba(0,0,0,.06);z-index:5}
.topbar .back{text-decoration:none;color:var(--sub);font-weight:700;font-size:13.5px;padding:5px 9px;border-radius:8px;white-space:nowrap}
.topbar .back:hover{background:#f3f4f6;color:var(--ink)}
/* 模擬模式（2026-11-28）：「‹ 題目」收起來，換成「放棄」（確認兩次才回題目選單） */
.topbar .sim-quit{display:none;border:1.5px solid #dc2626;background:#fff;color:#b91c1c;font-weight:700;font-size:13.5px;padding:4px 12px;border-radius:8px;white-space:nowrap;cursor:pointer}
.topbar .sim-quit:hover{background:#fef2f2}
body.pg-sim .topbar .back{display:none}
body.pg-sim .topbar .sim-quit{display:inline-block}
/* 模擬模式的暫停（2026-11-28，規格_模擬暫停.md）：topbar「放棄」旁邊；用過、不能用＝灰 */
.topbar .sim-pause{display:none;border:1.5px solid var(--navy);background:#fff;color:var(--navy);font-weight:700;font-size:13.5px;padding:4px 10px;border-radius:8px;white-space:nowrap;cursor:pointer}
.topbar .sim-pause:hover:not(:disabled){background:#eef3f8}
.topbar .sim-pause:disabled{border-color:#d0d5dd;color:#98a2b3;cursor:default}
body.pg-sim .topbar .sim-pause{display:inline-block}
body.pg-sim.sim-done .topbar .sim-pause{display:none}   /* 這一場已經交卷合格：暫停收起來（2026-11-28） */
body.sim-done .topbar .sim-quit{border-color:#0f6b5c;color:#065f46}
/* 暫停畫面：整個練習畫面藏起來（接線盤 SVG、線路圖、對照層、評分表、器具說明、對話框），只剩馬賽克（canvas）和中間的卡片 */
body.sim-paused #viewWork,body.sim-paused .modal{visibility:hidden!important}
.sp-back{position:fixed;inset:0;z-index:12000;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:16px}
.sp-mosaic{position:fixed;pointer-events:none;image-rendering:pixelated;border-radius:6px}
.sp-card{position:relative;width:100%;max-width:400px;padding:24px 24px 18px;border-radius:16px;background:#fff;text-align:center;box-shadow:0 18px 50px rgba(23,32,51,.28)}
.sp-ico{font-size:32px;line-height:1;margin-bottom:6px}
.sp-card h2{margin:0 0 8px;font-size:21px;color:var(--navy)}
.sp-time,.sp-work{margin:0 0 6px;font-size:16px;font-variant-numeric:tabular-nums}
.sp-time b{font-size:20px}
.sp-work{color:var(--sub);font-size:14px}
.sp-over{margin:0 0 6px;padding:8px 10px;border-radius:10px;background:#fff4d6;color:#7a4b00;font-weight:800}
.sp-go{margin-top:10px;min-width:150px;min-height:44px;font-size:16px}
.sp-msg{margin:10px 0 0;color:#b42318;font-weight:700;font-size:14px}
.sp-note{margin:12px 0 0;color:var(--sub);font-size:12.5px;line-height:1.5}
/* 暫停卡片的「放棄這一場」（2026-11-28 審查 4）：卡片裡確認兩次 */
.sp-quit{display:block;margin:10px auto 0;border:none;background:none;color:#b42318;font-size:13.5px;font-weight:700;text-decoration:underline;cursor:pointer;padding:6px 10px}
.sp-quit[hidden],.sp-go[hidden],.sp-ask[hidden]{display:none}
.sp-ask{margin:12px 0 0;padding:12px;border-radius:12px;background:#fff1f0;text-align:left}
.sp-ask p{margin:0 0 10px;font-size:14px;line-height:1.55;color:#5c1a14}
.sp-acts{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
@media print{.sp-back{display:none}}
.topbar .ttl{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.topbar .ttl b{font-size:15.5px;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar .ttl span{font-size:11.5px;color:var(--muted);font-family:var(--mono)}
.timer{font-family:var(--mono);font-variant-numeric:tabular-nums}
.timer.late{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.devmode{font-size:11.5px;font-weight:800;color:#7a4d00;background:repeating-linear-gradient(-45deg,#fde68a 0 8px,#fef3c7 8px 16px);border:1px solid #f0c75e;border-radius:6px;padding:2px 8px;white-space:nowrap}
.grow{flex:1}
.btn-line{background:#fff;border:1.5px dashed #9aa3ad;color:#374151;font-weight:700;font-size:13px;border-radius:9px;padding:6px 12px;cursor:pointer;white-space:nowrap}
.btn-line:hover{border-color:var(--navy);color:var(--navy)}
.btn-sign{background:#fffbeb;border:1.5px solid #f0b43a;color:#7a4d00;font-weight:800;font-size:13px;border-radius:9px;padding:6px 12px;cursor:pointer;white-space:nowrap;transition:filter .12s}
.btn-sign:hover{filter:brightness(.97)}
.btn-sign.done{background:#ecfdf5;border-color:#6ee7b7;color:#065f46;cursor:default}
.pwr{display:flex;align-items:center;gap:7px;height:34px;padding:0 12px 0 10px;border-radius:17px;border:1.5px solid #c9ced4;background:linear-gradient(#fafafa,#eceef0);cursor:pointer;font-weight:800;font-size:13px;color:#374151;white-space:nowrap}
.pwr-led{width:12px;height:12px;border-radius:50%;background:#9aa1a8;box-shadow:inset 0 1px 2px rgba(0,0,0,.35)}
.pwr-st{font-family:var(--mono);font-size:12px;color:var(--muted)}
.pwr.on{border-color:#e5484d;background:linear-gradient(#fff5f5,#ffe4e4);color:#a4161a}
.pwr.on .pwr-led{background:#ff3b30;box-shadow:0 0 0 3px rgba(255,59,48,.22),0 0 12px #ff3b30}
.pwr.on .pwr-st{color:#a4161a}
.pwr.trip{border-color:#f59e0b;background:#fffbeb;color:#7a4d00;animation:blinkB 1s steps(2) infinite}
.pwr.trip .pwr-led{background:#f59e0b}
/* 瞬間停電鈕（題目檔 blackout，室內第九題）：電源開關右邊；停電中亮著那一顆顯示倒數，其他顆停用 */
.pwr.bo{border-color:#7c8aa0;background:linear-gradient(#f1f5f9,#e2e8f0);color:#334155}
.pwr.bo .pwr-st{color:#b42318;font-weight:900}
.bo-grp{display:flex;gap:4px;flex:none}
.bo-btn{display:flex;align-items:center;gap:4px;height:34px;padding:0 10px;border-radius:9px;border:1.5px solid #f0b429;background:linear-gradient(#fffaf0,#fdecc8);color:#7a4d00;font-weight:800;font-size:12.5px;cursor:pointer;white-space:nowrap}
.bo-btn:hover:not(:disabled){border-color:#d97706;background:#fde7b0}
.bo-btn:disabled{opacity:.45;cursor:not-allowed}
.bo-btn .bo-ico{font-size:13px;line-height:1}
.bo-btn.on{border-color:#b42318;background:#b42318;color:#fff;animation:none}
.bo-btn .bo-lab{font-variant-numeric:tabular-nums}
@media (max-width:1439px){.bo-btn{padding:0 7px;font-size:12px}.bo-btn .bo-ico{display:none}}
@keyframes blinkB{50%{border-color:#fcd34d}}

.toolstrip{flex:none;min-height:42px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:5px 12px;background:var(--hdr-bg);border-bottom:1px solid var(--divider);z-index:4}
.seg{display:flex;background:#e6e1d7;border-radius:10px;padding:3px;gap:2px}
.seg button{display:flex;align-items:center;gap:0;border:none;background:none;border-radius:7px;padding:4px 10px;font-size:13px;font-weight:700;color:#5b6270;cursor:pointer;white-space:nowrap}
.seg button:hover{color:var(--ink)}
.seg button.on{background:#fff;color:var(--navy);box-shadow:0 1px 3px rgba(0,0,0,.14)}
.seg .ico{margin-right:5px;font-style:normal;font-family:var(--mono);font-size:12px;font-weight:800;min-width:16px;text-align:center;color:inherit}
/* 接線、螺絲起子、電動起子的圖示（2026-11-27 晚審查：1800 寬以下只剩圖示，原本的 ⊘ 像「禁止」、弧線不好認）：index.html 裡的 inline SVG，顏色跟著按鈕（currentColor） */
.seg .ico>svg{display:inline-block;width:16px;height:16px;vertical-align:-3px}
.seg button .tl-s{display:none}
.ico-pen::before{content:'';display:inline-block;width:5px;height:14px;background:currentColor;border-radius:2px 2px 3px 3px;transform:rotate(30deg)}
.kinds{display:flex;gap:4px}
.kind{display:flex;align-items:center;gap:6px;border:1.5px solid transparent;background:none;border-radius:8px;padding:3px 9px 3px 5px;font-size:12.5px;font-weight:700;color:#4b5563;cursor:pointer;white-space:nowrap}
.kind .sw{width:22px;height:9px;border-radius:5px;box-shadow:0 0 0 1.5px rgba(0,0,0,.35) inset}
/* 白色線材（wh55，#f2f2ee）的色塊：淺色底上要加深色框才看得到（線材選單、接線清單、提示） */
/* 接線清單（.wl .kd，第 375 行附近）、提示框（.tip .k）原本的框權重一樣又排在後面，所以這裡多寫一層讓白色的框蓋過去 */
.kind .sw[style*="#f2f2ee"],.kd[style*="#f2f2ee"],.k[style*="#f2f2ee"],.wl .kd[style*="#f2f2ee"],.tip .k[style*="#f2f2ee"]{box-shadow:0 0 0 1.5px #374151 inset}
.kind .kk{font-family:var(--mono);font-size:10.5px;color:#9aa0a6;border:1px solid #d1d5db;border-radius:3px;padding:0 3px;line-height:14px}
.kind:hover{background:#fff}
.kind.on{background:#fff;border-color:var(--navy);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.kinds.dim{opacity:.45}
.menu{display:flex}
.menu .item{background:none;border:none;cursor:pointer;position:relative;padding:4px 10px;color:#6b7280;font-size:13px;font-weight:600;white-space:nowrap}
.menu .item:hover:not(:disabled){color:#111827}
.menu .item:disabled{opacity:.4;cursor:not-allowed}
.menu .item:not(:last-child)::after{content:'';position:absolute;right:0;top:50%;transform:translateY(-50%);width:1px;height:1.15em;background:#c4c8ce}
.loose{border:1.5px solid #f3a462;background:#fff4ea;color:#9a3c05;font-size:12.5px;font-weight:800;border-radius:999px;padding:3px 11px;cursor:pointer;white-space:nowrap}
.loose:hover{background:#ffe8d4}
.loose.ok{border-color:#86efac;background:#f0fdf4;color:#166534}
.wcount{font-size:12.5px;color:var(--sub);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.zoom{display:flex;align-items:center;background:#fff;border:1px solid var(--divider);border-radius:9px;overflow:hidden}
.zoom button{border:none;background:none;min-width:28px;height:28px;font-size:16px;font-weight:700;color:#4b5563;cursor:pointer}
.zoom button:hover{background:#f3f4f6}
.zoom .fit{font-size:12.5px;padding:0 10px;border-left:1px solid var(--divider)}
.zoom span{font-family:var(--mono);font-size:12px;color:var(--sub);min-width:44px;text-align:center}
.fade{border:1.5px solid #c4c8ce;background:#fff;color:#4b5563;font-size:12.5px;font-weight:700;border-radius:8px;padding:3px 10px;cursor:pointer;white-space:nowrap}
.fade.on{background:var(--navy);border-color:var(--navy);color:#fff}
.wires-faint .w{opacity:.3}
.wires-faint .w.hl,.wires-faint .w.sel,.wires-faint .w.hov{opacity:1}
.sfx{position:relative;display:flex}
.sfxbtn{width:30px;height:28px;border-radius:8px;border:1.5px solid #c4c8ce;background:#fff;color:#374151;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.sfxbtn svg{width:19px;height:19px}
.sfxbtn .spk{fill:currentColor}
.sfxbtn .wv,.sfxbtn .x{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.sfxbtn .x{display:none}
.sfxbtn.off{color:#9aa0a6;background:#f3f4f6}
.sfxbtn.off .wv{display:none}.sfxbtn.off .x{display:inline;stroke:#b42318}
.sfxbtn:hover{border-color:var(--navy)}
.sfx-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:30;display:none;align-items:center;gap:8px;background:#fff;border:1px solid var(--divider);border-radius:10px;padding:8px 12px;box-shadow:0 8px 24px rgba(0,0,0,.16);font-size:12.5px;font-weight:700;color:#4b5563;white-space:nowrap}
.sfx-pop::before{content:'';position:absolute;left:0;right:0;top:-8px;height:8px}
.sfx:hover .sfx-pop,.sfx:focus-within .sfx-pop{display:flex}
.sfx-pop input{width:110px;accent-color:var(--navy)}
.sfx-pop b{font-family:var(--mono);min-width:36px;text-align:right}
.help{width:28px;height:28px;border-radius:50%;border:1.5px solid #c4c8ce;background:#fff;color:#4b5563;font-weight:800;cursor:pointer}

.workarea{flex:1;display:flex;min-height:0}
.stage{position:relative;flex:1;min-width:0;overflow:hidden;background:var(--stage);touch-action:none;user-select:none;-webkit-user-select:none}
.stage svg.cv{position:absolute;inset:0;width:100%;height:100%;display:block}
.stage.panning{cursor:grabbing}
.stage.tool-ohm,.stage.tool-volt,.stage.tool-pol{cursor:crosshair}
.stage.tool-screw .t{cursor:inherit}
.stage.tool-screw{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='rotate(-45 16 16)'%3E%3Crect x='13.6' y='1' width='4.8' height='3.2' fill='%23111'/%3E%3Crect x='14.6' y='3.5' width='2.8' height='12' fill='%23c9d1d9' stroke='%23333' stroke-width='.8'/%3E%3Crect x='11' y='15' width='10' height='15' rx='3.5' fill='%23e8590c' stroke='%23652' stroke-width='1'/%3E%3Cpath d='M13.5 18v9M16 18v9M18.5 18v9' stroke='%23ffb27a' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") 4 4,pointer}
.stage.tool-tester{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='rotate(-45 16 16)'%3E%3Crect x='14.7' y='0' width='2.6' height='9' fill='%23c9d1d9' stroke='%23333' stroke-width='.7'/%3E%3Crect x='12' y='8' width='8' height='22' rx='3' fill='%23173b57'/%3E%3Crect x='13.5' y='11' width='5' height='7' rx='1.5' fill='%23ffd7d3'/%3E%3C/g%3E%3C/svg%3E") 3 3,pointer}
.hintbar{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);z-index:6;max-width:calc(100% - 300px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px;font-weight:600;color:#3c4350;background:rgba(255,255,255,.88);border:1px solid rgba(0,0,0,.08);border-radius:9px;padding:5px 11px;pointer-events:none;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.hintbar:empty{display:none}
/* 器具樣式（2026-11-28，規格_器具樣式.md）：頂列的小鈕＋選樣式的視窗 */
.style-chip{border:1.5px solid #c9d3de;background:#fff;color:var(--navy);font-weight:800;font-size:13px;border-radius:9px;padding:5px 10px;cursor:pointer;white-space:nowrap}
.style-chip:hover{border-color:var(--navy)}
.style-chip[hidden]{display:none}
.style-chip.locked{opacity:.45;cursor:not-allowed}
/* PLC 廠牌（2026-12-01）：第二排工具列的鈕借 .fade（ui.js 的 _brandInit）；視窗的選項借 .sty-opt（沒有腳位小圖，多一行說明） */
.brand-chip[hidden]{display:none}
.brand-chip b{color:#0064b2}
.brand-chip.locked{opacity:.45;cursor:not-allowed}
.br-opt{gap:4px}
.br-opt:disabled{cursor:not-allowed;opacity:.6}
.br-desc{font-size:12px;color:#4b5563;text-align:center;line-height:1.45}
/* 題目頁頂列的「🚩 錯誤申報」（2026-11-28 老師）：樣式比照器具樣式那顆；放不下的寬度只留圖示（title／aria-label 有「錯誤申報」）——見下面「響應式」 */
.rp-chip{flex:none}
.fb-note.rp-note{color:#9a3412;font-weight:700}
.fb-note.rp-note[hidden]{display:none}
.fb-f select:disabled{background:#f3f4f6;color:var(--ink);opacity:1}   /* 題目頁開的申報視窗：題目鎖在這一題，字照樣看得清楚 */
.timer.wait{color:var(--muted)}   /* 作答計時還沒開始（2026-11-28 老師：對照／自由模式從接第一條線開始算）：停在 00:00:00、字淡一點（title 有說明） */
.sty-list{display:flex;flex-direction:column;gap:14px;overflow:auto}
.sty-hd b{font-size:15px;color:var(--label)}
.sty-hd span{display:block;font-size:12.5px;color:#6b7280;margin-top:2px}
.sty-opts{display:flex;gap:10px;margin-top:8px}
.sty-opt{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 8px;border:2px solid #d6dbe1;border-radius:12px;background:#fff;cursor:pointer;font:inherit}
.sty-opt.on{border-color:var(--navy);background:#eef4fb}
.sty-mini{width:96px;height:auto}
.sty-mini .sty-body{fill:#e7ebef;stroke:#9aa5b1;stroke-width:3}
.sty-mini .sty-pin{fill:#fff;stroke:#5b6673;stroke-width:2.5}
.sty-mini text{font-size:15px;font-weight:800;text-anchor:middle;fill:#1f2937}
.sty-nm{font-size:13px;font-weight:700;color:#1f2937;text-align:center}
.sty-nm em{display:block;font-style:normal;font-size:11.5px;font-weight:700;color:#0064b2}
.sty-src{margin-top:6px;font-size:12.5px;color:#4b5563}
.sty-reset{border:none;background:none;color:#0064b2;text-decoration:underline;cursor:pointer;font:inherit;padding:0 0 0 4px}
.hintbar b{color:var(--navy)}

/* 事件訊息條 */
.banner{position:absolute;left:50%;top:10px;transform:translateX(-50%);z-index:9;display:flex;align-items:center;gap:10px;max-width:min(760px,calc(100% - 24px));
  background:linear-gradient(90deg,#b42318,#d92d20);color:#fff;font-weight:800;font-size:14.5px;padding:10px 12px 10px 16px;border-radius:12px;box-shadow:0 10px 30px rgba(180,35,24,.35);animation:bannerIn .28s cubic-bezier(.2,1.4,.4,1)}
.banner.warn{background:linear-gradient(90deg,#b45309,#d97706);box-shadow:0 10px 30px rgba(180,83,9,.3)}
.banner-ico{font-size:18px}
.banner-x{border:none;background:rgba(255,255,255,.2);color:#fff;border-radius:7px;width:26px;height:26px;cursor:pointer;font-weight:800}
@keyframes bannerIn{from{transform:translate(-50%,-30px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
.result-chip{position:absolute;right:14px;top:12px;z-index:8;border:none;background:var(--navy);color:#fff;font-weight:800;font-size:13px;border-radius:999px;padding:8px 14px;cursor:pointer;box-shadow:0 6px 18px rgba(23,59,87,.35)}

/* 滑鼠提示 */
.tip{position:absolute;z-index:12;pointer-events:none;background:rgba(23,32,51,.94);color:#fff;font-size:12.5px;font-weight:600;padding:6px 10px;border-radius:8px;white-space:nowrap;box-shadow:0 6px 18px rgba(0,0,0,.25);transform:translate(14px,14px)}
.tip .k{display:inline-block;width:10px;height:10px;border-radius:3px;margin:0 4px -1px 6px;box-shadow:0 0 0 1px rgba(255,255,255,.5)}
.tip .m{color:#9fb3c8;font-weight:500}
.tip .live{color:#ff8a80}.tip .dead{color:#a7f3d0}
.tip .scr{color:#ffc58f}.tip .scr.ok{color:#86efac}

/* 內部接線圖浮卡 */
.idcard{position:absolute;z-index:11;pointer-events:none;background:#fffdf8;border:1px solid #d6cdb9;border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.22);padding:10px 12px 10px;max-width:440px;animation:pop .14s ease-out}
.idcard .ic-hd{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:1px;border-bottom:1px dashed #d6cdb9;padding-bottom:5px;margin-bottom:6px}
.idcard .ic-hd b{font-size:14.5px;color:var(--navy);white-space:nowrap}
.idcard .ic-hd em{white-space:nowrap}
.idcard .ic-hd span{font-size:12px;color:var(--sub)}
.idcard .ic-hd em{margin-left:auto;font-style:normal;font-size:11px;color:#a18b5c;letter-spacing:.06em}
.idcard .ic-note{font-size:12px;color:#4b5563;margin-top:4px;max-width:410px;white-space:normal}
.idiag{display:block;max-width:100%;height:auto}
.idiag text{font-family:var(--font)}
.d-ln{stroke:#1f2937;stroke-width:1.6;fill:none}
.d-dash{stroke:#c0392b;stroke-width:1.3;stroke-dasharray:5 4;fill:none}
.d-fill-none{fill:none}
.d-pin{fill:#fff;stroke:#1f2937;stroke-width:1.5}
.d-no{font-family:var(--mono)!important;font-size:12px;font-weight:800;fill:#173b57}
.d-c{fill:#fff;stroke:#1f2937;stroke-width:1.4}
.d-coil{fill:#fff;stroke:#1f2937;stroke-width:1.6}
.d-in{font-size:10.5px;font-weight:700;fill:#1f2937}
.d-in-sm{font-size:9px}
.d-lab{font-size:11px;fill:#4b5563}
.d-cap{font-size:11px;fill:#6b7280}
.d-box{fill:#fff;stroke:#1f2937;stroke-width:1.5}
.d-disc{fill:#2f3338;stroke:#111;stroke-width:1}
.d-pinbig{fill:#e9edf1;stroke:#9aa3ad;stroke-width:1}
.d-pinbig.coil{fill:#ffd8a8;stroke:#e8590c}
.d-pinno{font-family:var(--mono)!important;font-size:9.5px;font-weight:800;fill:#111}
.d-mush{fill:#d42d27;stroke:#7f1d1d;stroke-width:1.2}

/* 三用電表 */
.meter{position:absolute;right:14px;bottom:14px;z-index:7;width:260px;background:linear-gradient(#ffd23f,#f2b705);border-radius:16px;padding:10px 12px 12px;box-shadow:0 14px 34px rgba(0,0,0,.28),inset 0 0 0 2px rgba(0,0,0,.12)}
.meter-hd{display:flex;align-items:center;gap:8px;font-size:13px;color:#3d2c00}
.meter-mode{font-size:11.5px;font-weight:800;background:#3d2c00;color:#ffd23f;border-radius:5px;padding:1px 7px}
.meter-x{margin-left:auto;border:none;background:rgba(0,0,0,.14);color:#3d2c00;border-radius:7px;font-size:11.5px;font-weight:700;padding:3px 8px;cursor:pointer}
.lcd{margin-top:8px;height:62px;border-radius:9px;background:linear-gradient(#bcc9a6,#a9b892);box-shadow:inset 0 2px 6px rgba(0,0,0,.35);display:flex;align-items:baseline;justify-content:flex-end;padding:6px 12px 0;color:#1d2618;font-family:var(--mono)}
.lcd-v{font-size:36px;font-weight:700;letter-spacing:.02em;font-variant-numeric:tabular-nums;line-height:1.3}
.lcd-u{font-size:16px;font-weight:800;margin-left:6px}
.lcd.warn{background:linear-gradient(#ffb4a8,#f28b7d)}
.lcd.warn .lcd-v{font-size:19px;font-family:var(--font);font-weight:900;color:#5c0b05;line-height:2.4}
.lcd-note{font-size:11.5px;color:#4a3700;margin:5px 2px 6px;min-height:17px;font-weight:600}
.probes{display:flex;gap:6px}
.probe{flex:1;display:flex;align-items:center;gap:5px;background:rgba(255,255,255,.55);border-radius:8px;padding:4px 7px;font-size:11.5px;font-weight:700;color:#3d2c00;min-width:0}
.probe i{width:10px;height:10px;border-radius:50%;flex:none}
.probe.red i{background:#e03131;box-shadow:0 0 0 2px rgba(224,49,49,.25)}
.probe.black i{background:#111}
.probe b{margin-left:auto;font-family:var(--mono);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.probe.next{outline:2px solid #3d2c00}

/* 分隔條與右側面板 */
.splitter{flex:none;width:7px;cursor:col-resize;background:linear-gradient(90deg,#cfc8bb,#e2ddd3 40%,#cfc8bb);position:relative;z-index:3}
.splitter::after{content:'';position:absolute;left:2px;top:50%;width:3px;height:36px;margin-top:-18px;border-radius:2px;background:repeating-linear-gradient(#8f877a 0 2px,transparent 2px 5px)}
.splitter:hover,.splitter.drag{background:#bdb5a6}
.side{flex:none;width:340px;min-width:0;display:flex;flex-direction:column;background:#fff;overflow:hidden}
.side.collapsed{width:0!important}
.status{flex:none;display:flex;flex-wrap:wrap;gap:4px 5px;padding:8px 10px;border-bottom:1px solid var(--divider);background:#fbfaf7}
.sc{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;color:#4b5563;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:1px 8px 1px 6px;white-space:nowrap;font-variant-numeric:tabular-nums}
.sc i{width:8px;height:8px;border-radius:50%;background:#cfd4da}
.sc.on{color:#065f46;border-color:#a7f3d0;background:#ecfdf5}.sc.on i{background:#10b981;box-shadow:0 0 6px #10b981}
.sc.lit-r i{background:#ef4444;box-shadow:0 0 6px #ef4444}.sc.lit-y i{background:#f59e0b;box-shadow:0 0 6px #f59e0b}.sc.lit-g i{background:#22c55e}.sc.lit-w i{background:#fde68a}
.sc.lit-r,.sc.lit-y,.sc.lit-g,.sc.lit-w{color:#7a2e0e;border-color:#fed7aa;background:#fff7ed}
.sc.bad{color:#991b1b;border-color:#fecaca;background:#fef2f2}.sc.bad i{background:#ef4444}
.sc.warn{color:#854d0e;border-color:#fde68a;background:#fefce8}.sc.warn i{background:#f59e0b}
.sc.motor{font-size:12px}
.tabs{flex:none;display:flex;border-bottom:1px solid var(--divider);background:var(--hdr-bg)}
.tabs button{flex:1;border:none;background:none;padding:9px 4px 8px;font-size:13px;font-weight:700;color:#7b818b;cursor:pointer;border-bottom:2.5px solid transparent;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:4px}
.tabs button:hover{color:var(--ink)}
.tabs button.on{color:var(--navy);border-bottom-color:var(--navy);background:#fff}
.badge{font-size:10.5px;font-weight:800;background:#d92d20;color:#fff;border-radius:999px;padding:0 6px;line-height:16px}
.badge.mute{background:#e5e7eb;color:#4b5563}
.pane{display:none;flex:1;min-height:0;overflow:auto}
.pane.on{display:block}
.pane[data-pane="diagram"].on{display:flex}
.imgview{position:relative;flex:1;overflow:hidden;background:#f7f6f2;cursor:grab;touch-action:none}
.imgview.drag{cursor:grabbing}
.imgview img{position:absolute;left:0;top:0;transform-origin:0 0;user-select:none;-webkit-user-drag:none;max-width:none;image-rendering:auto}
.imgview-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.imgtools{position:absolute;right:8px;bottom:8px;display:flex;gap:4px;background:rgba(255,255,255,.92);border:1px solid var(--divider);border-radius:9px;padding:3px;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.imgtools button{border:none;background:none;min-width:30px;height:28px;border-radius:6px;font-weight:800;color:#4b5563;cursor:pointer;font-size:14px}
.imgtools button:hover{background:#eef0f3}
.desc{padding:12px 16px 20px;font-size:14px;line-height:1.75}
.desc h4{margin:14px 0 4px;font-size:14.5px;color:var(--navy)}
.desc h4:first-child{margin-top:2px}
.desc ol{margin:0;padding-left:22px}
.desc li{margin:3px 0}
.desc .muted{color:var(--sub);font-size:13px}
.evstats{display:flex;gap:6px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid var(--divider);position:sticky;top:0;background:#fff;z-index:1}
.evlist{list-style:none;margin:0;padding:6px 0}
.evlist li{display:flex;gap:8px;padding:6px 12px;font-size:13px;border-bottom:1px solid #f1efe9;align-items:flex-start}
.evlist .tm{font-family:var(--mono);font-size:11.5px;color:var(--muted);flex:none;width:52px;padding-top:1px}
.evlist .lv{flex:none;width:8px;height:8px;border-radius:50%;margin-top:6px;background:#9ca3af}
.evlist li.warn .lv{background:#f59e0b}
.evlist li.danger{background:#fff5f5}
.evlist li.danger .lv{background:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.18)}
.evlist li.danger .msg{color:#991b1b;font-weight:700}
.evlist .empty{color:var(--muted);justify-content:center;border:none;padding:24px}
.wlsum{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:10px 12px;font-size:12.5px;color:var(--sub);border-bottom:1px solid var(--divider)}
.wl td{font-family:var(--mono);font-size:12px;padding:5px 4px}
.wl td.k{font-family:var(--font)}
.wl td:nth-child(2),.wl td:nth-child(3){white-space:nowrap}   /* 端子編號不要被「線路圖」標籤擠成兩行 */
.wl .kd{display:inline-block;width:18px;height:7px;border-radius:4px;vertical-align:middle;margin-right:4px;box-shadow:0 0 0 1px rgba(0,0,0,.3) inset}
.wl .x{border:none;background:none;color:#b42318;font-weight:800;cursor:pointer;border-radius:5px;padding:1px 6px}
.wl .x:hover{background:#fee2e2}
.wl .lz{color:#c2410c;font-size:11px;margin-left:2px}

/* 成績單 */
.rs-head{display:flex;align-items:center;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--divider);flex:none}
.rs-stamp{width:86px;height:86px;flex:none;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:900;border:4px solid;transform:rotate(-8deg)}
.rs-stamp b{font-size:22px;letter-spacing:.1em}
.rs-stamp span{font-size:11px;letter-spacing:.12em}
.rs-stamp.pass{color:#0f6832;border-color:#1ba84f;background:#f0fdf4}
.rs-stamp.fail{color:#a4161a;border-color:#e5484d;background:#fff5f5}
.rs-score{font-size:42px;font-weight:900;font-family:var(--mono);color:var(--ink);line-height:1}
.rs-score small{font-size:15px;color:var(--sub);font-family:var(--font);font-weight:700;margin-left:4px}
.rs-meta{font-size:12.5px;color:var(--sub);margin-top:4px}
.rs-save{font-size:12.5px;margin-top:4px;font-weight:700}
.rs-save.ok{color:#0f6832}.rs-save.bad{color:#a4161a}.rs-save.mute{color:var(--sub)}
.rs-body{overflow:auto;min-height:0;padding:4px 2px 2px}
.rs-sec{margin-top:14px}
.rs-sec h4{margin:0 0 6px;font-size:14px;display:flex;align-items:center;gap:8px;color:var(--label)}
.rs-sec h4 .st{font-size:11.5px}
.rs-list{list-style:none;margin:0;padding:0}
.rs-list li{padding:6px 10px;border-radius:8px;font-size:13.5px;margin-bottom:4px;background:#f8f9fa}
.rs-list li.bad{background:#fff1f0;color:#7f1d1d}
.rs-list li.warn{background:#fffbeb;color:#713f12}
.rs-list li.ok{background:#f0fdf4;color:#14532d}
.rs-list li.link{cursor:pointer}
.rs-list li.link:hover{outline:1.5px solid var(--navy)}
/* 室內配線的成績單（ir-）：及格／不及格大字、評審表項次、缺點合計 */
.rs-stamp.ir-s3 b{font-size:18px;letter-spacing:0}
.ir-verdict{font-size:40px;font-weight:900;line-height:1;letter-spacing:.08em}
.ir-verdict.ir-pass{color:#0f6832}.ir-verdict.ir-fail{color:#a4161a}
.ir-item{display:inline-block;font-size:11.5px;font-weight:800;color:#374151;background:#e5e7eb;border-radius:5px;padding:0 6px;margin-right:7px;font-family:var(--mono)}
.ir-cnt{float:right;font-weight:900;margin-left:10px;white-space:nowrap}
.ir-tally{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin:0 0 8px;font-size:13px;color:var(--label)}
.ir-tally b{font-size:17px;font-family:var(--mono)}
.ir-tally .ir-over{color:#a4161a}
.ir-tally small{flex-basis:100%;font-size:11.5px;color:var(--sub)}
.ir-note{font-size:11.5px;font-weight:700;color:var(--sub);margin-left:auto}
.rs-list li.ir-plain{background:#f3f4f6;color:#4b5563}
.ir-ng summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--sub)}
.ir-ng p{margin:6px 0 0;font-size:12.5px;color:var(--sub)}
body.mode-fault .rs-list li.link::after{content:'在線路圖上看 ›'}
.rs-list li.link::after{content:'在畫布上標出 ›';float:right;font-size:11.5px;color:var(--navy);font-weight:700}
.tchips{display:flex;flex-wrap:wrap;gap:5px}
.tchip{font-family:var(--mono);font-size:12px;font-weight:700;border-radius:7px;padding:3px 8px;cursor:pointer;border:1px solid}
.tchip.bad{background:#fff1f0;color:#991b1b;border-color:#fecaca}
.tchip.warn{background:#fff7ed;color:#9a3412;border-color:#fed7aa}
.tchip:hover{outline:1.5px solid var(--navy)}
.rs-list .pts{float:right;font-family:var(--mono);font-weight:800;color:#b42318}
.steps{list-style:none;margin:0;padding:0;border:1px solid var(--divider);border-radius:10px;overflow:hidden}
.steps li{border-bottom:1px solid var(--divider)}
.steps li:last-child{border-bottom:none}
.steps .sh{display:flex;align-items:center;gap:8px;padding:7px 10px;font-size:13px;cursor:default}
.steps li.has .sh{cursor:pointer}
.steps li.has .sh:hover{background:#f8fafc}
.steps .mk{flex:none;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;color:#fff;background:#1ba84f}
.steps li.ng .mk{background:#e5484d}
.steps li.skip .mk{background:#9ca3af}
.steps .no{font-family:var(--mono);font-size:11.5px;color:var(--muted);flex:none}
.steps .ar{margin-left:auto;color:var(--muted);font-size:12px}
.steps .dd{display:none;margin:0;padding:4px 12px 9px 48px;font-size:12.5px;color:#7f1d1d;background:#fffafa}
.steps li.open .dd{display:block}
.steps .dd div{padding:2px 0}

/* 操作說明 */
.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 24px;overflow:auto;min-height:0;margin-top:6px}
.help-grid h4{margin:12px 0 4px;font-size:14px;color:var(--navy)}
.help-grid ul{margin:0;padding-left:18px;font-size:13.5px}
.help-grid li{margin:3px 0}
.legend{list-style:none;padding-left:0!important}
.legend li{display:flex;align-items:center;gap:8px}
.lg{width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#b9c1c9 60%,#7d8790);border:1.5px solid #59626b;flex:none}
.lg.t1{box-shadow:0 0 0 3px #12b39f}
.lg.t2{background:radial-gradient(circle at 35% 30%,#d8dde2,#6e7781 60%,#3f464d);box-shadow:0 0 0 3px #c2410c}
.lg.tl{background:#8d959d;border-color:#4b5563}
.lg.lz{box-shadow:0 0 0 3px #fb8c3c;transform:scale(1.12)}

/* ───────── 畫布（SVG） ───────── */
.cv text{font-family:var(--font);dominant-baseline:central;user-select:none}
.cv text:not([text-anchor]){text-anchor:middle}
.idiag text:not([text-anchor]){text-anchor:middle}
.cv .hit{fill:transparent;stroke:none}
.bg-grid{fill:url(#pGrid)}
/* 板子 */
.bplate{fill:url(#gPlate);stroke:#8f979e;stroke-width:1.5}
.bplate.panel{fill:url(#gPanel);stroke:#a39a85}
.plate-edge{fill:none;stroke:rgba(255,255,255,.7);stroke-width:1.5}
.plate-hole{fill:#6d747a;stroke:#4b5157;stroke-width:1}
.plate-tag{fill:#173b57}
.plate-tag-t{fill:#fff;font-size:14px;font-weight:800;letter-spacing:.12em}
.plate-sub{fill:#6b7280;font-size:11px}
.f-rail{fill:url(#gRail);stroke:#8e979f;stroke-width:1}
.rail{fill:url(#gRail);stroke:#9aa3ab;stroke-width:1}
.rail-slot{fill:#b3bbc2}
.ext-tag{fill:#6b7280;font-size:12px;font-weight:700}
/* 器具共用 */
.f-body{fill:#eef0ec;stroke:#8f969c;stroke-width:1.3}
.f-rec{fill:#d3d8dc;stroke:#aab2b9;stroke-width:1}
.f-well{fill:#c9cfd4;stroke:#9ca5ad;stroke-width:1}
.f-div{stroke:#b7bec4;stroke-width:1.2;stroke-dasharray:3 3}
.f-ab{fill:#7b8794;font-size:11px;font-weight:800;font-style:italic}
.f-abig{fill:#9aa3ad;font-size:15px;font-weight:800;font-style:italic}
.dn{fill:#1f2937;font-size:15px;font-weight:800;letter-spacing:.02em}
.dn-w{fill:#fff}
.dn-lg{font-size:19px}
.dn-sm{font-size:13px}
.ds{fill:#4b5563;font-size:10.5px;font-weight:600}
.ds-w{fill:#cbd5df}
.ds-strong{fill:#374151;font-size:11.5px;font-weight:700}
.ds-red{fill:#c0392b;font-size:11px;font-weight:700}
/* 端子台 */
.tb-mod{fill:url(#gTb);stroke:#7f8a95;stroke-width:1}
.tb-end{fill:#5f6b76}
.tb-well{fill:#aeb8c1;stroke:#7f8a95;stroke-width:.8}
.tb-mark{fill:#fff;stroke:#8d98a3;stroke-width:1}
/* NFB */
.nfb-body{fill:url(#gNfb);stroke:#15181c;stroke-width:1.4}
.nfb-rec{fill:#1b1e23;stroke:#3b4048;stroke-width:1}
.nfb-slot{fill:#101215;stroke:#3b4048;stroke-width:1}
.nfb-onoff{fill:#aab3bd;font-size:10px;font-weight:800}
.nfb-knob{cursor:pointer}
.nfb-knob .nfb-lever,.nfb-knob .nfb-tripband{transition:transform .18s cubic-bezier(.3,1.6,.5,1)}
.nfb-lever{fill:url(#gLever);stroke:#0b0c0e;stroke-width:1}
.nfb-tripband{fill:transparent}
.pos-off .nfb-lever,.pos-off .nfb-tripband{transform:translateY(28px)}
.pos-trip .nfb-lever,.pos-trip .nfb-tripband{transform:translateY(14px)}
.pos-trip .nfb-tripband{fill:#f59e0b}
.pos-on .nfb-lever{fill:#e8edf2}
.nfb-trip-t{fill:#f59e0b;font-size:10px;font-weight:900;opacity:0}
.pos-trip .nfb-trip-t{opacity:1;animation:blink 1s steps(2) infinite}
.nfb-knob:hover .nfb-lever{stroke:#2ec4b6;stroke-width:2}
/* TH-RY */
.thry-body{fill:#e3e6e2}
.thry-dial{fill:#2e6fb7;stroke:#173b57;stroke-width:1.2}
.thry-ptr{stroke:#fff;stroke-width:2.4;stroke-linecap:round}
.thry-flag{fill:#e7f6ec;stroke:#7fbf95;stroke-width:1}
.thry-flag-t{font-size:10px;font-weight:900}
.thry-flag-t.ok{fill:#1b7a3d}.thry-flag-t.trip{fill:#fff;display:none}
.is-tripped .thry-flag{fill:#f97316;stroke:#c2410c}
.is-tripped .thry-flag-t.ok{display:none}.is-tripped .thry-flag-t.trip{display:inline}
.btn-mini{cursor:pointer}
.btn-mini rect{stroke-width:1.2;filter:drop-shadow(0 1.5px 0 rgba(0,0,0,.35))}
.btn-mini.red rect{fill:#e03131;stroke:#8f1b1b}
.btn-mini.blue rect{fill:#2563eb;stroke:#1e3a8a}
.btn-mini text{fill:#fff;font-size:10.5px;font-weight:800}
.btn-mini:hover rect{filter:brightness(1.12) drop-shadow(0 1.5px 0 rgba(0,0,0,.35))}
.btn-mini:active rect{transform:translateY(1.5px);filter:none}
/* 保險絲 */
.fuse-cap{fill:#3b434c;stroke:#22272d;stroke-width:1}
.fuse-ind{fill:#cfd6dc;stroke:#59636d;stroke-width:1}
.is-blown .fuse-ind{fill:#ff3b30;stroke:#7f1d1d;filter:url(#fGlow)}
.fuse-blown-tag{display:none;cursor:pointer}
.fuse-blown-tag rect{fill:#d92d20;stroke:#fff;stroke-width:1.5}
.fuse-blown-tag text{fill:#fff;font-size:11px;font-weight:900}
.is-blown .fuse-blown-tag{display:inline;animation:blink 1.1s steps(2) infinite}
/* 保險絲拔掉（view.pulled，2026-11-25）：蓋子／保險絲管變淡（座還在），標籤「已拔出・插回」 */
.is-pulled .fuse-cap,.is-pulled .fuse-cart,.is-pulled .fuse-tube,.is-pulled .fuse-end,.is-pulled .fuse-ind{opacity:.18}
.fuse-pulled-tag{display:none;cursor:pointer}
.fuse-pulled-tag rect{fill:#b54708;stroke:#fff;stroke-width:1.5}
.fuse-pulled-tag text{fill:#fff;font-size:11px;font-weight:900}
.is-pulled:not(.is-blown) .fuse-pulled-tag{display:inline}
/* 接觸器、電驛 */
.mc-body{fill:#eceeea}
.coil-box{fill:#fff;stroke:#9aa3ab;stroke-width:1}
.mc-ext{fill:#e3e6e2;stroke:#9aa3ab;stroke-width:1.2}
.d-key{fill:#ffa94d;stroke:#7a4d00;stroke-width:1}
.mc-sub{fill:#6b7280;font-size:9px;font-weight:800;font-family:var(--mono)!important}
.mc-coil-ln{stroke:#c9a27a;stroke-width:1.4;stroke-dasharray:2 2}
.coil-zz{fill:none;stroke:#b0763a;stroke-width:1.6}
.coil-glow rect{fill:none;stroke:#f97316;stroke-width:2.5;opacity:0;filter:url(#fGlow)}
.is-coil .coil-glow rect{opacity:1}
.ind-win{fill:#1d2228;stroke:#5a636c;stroke-width:1}
.ind-car{fill:#e9edf1;stroke:#7a838c;stroke-width:1;transition:transform .12s ease-in,fill .12s}
.ind-t{font-size:9.5px;font-weight:900;transition:transform .12s ease-in}
.ind-t.off{fill:#5b6570}.ind-t.on{fill:#fff;display:none}
.is-on .ind-car,.is-on .ind-t{transform:translateY(9px)}
.is-on .ind-car{fill:#0b9c8a;stroke:#065f55}
.is-on .ind-t.on{display:inline}.is-on .ind-t.off{display:none}
.ring-on,.ring-hum,.ring-flash{fill:none;opacity:0;pointer-events:none}
.ring-on{stroke:#e03131;stroke-width:3.5;filter:url(#fGlow)}   /* 2026-11-19 使用者：器具作動的外框由綠色改成紅色 */
.is-on .ring-on{opacity:1}
.ring-hum{stroke:#f97316;stroke-width:3;stroke-dasharray:7 5}
.is-hum .ring-hum,.is-blocked .ring-hum,.is-chatter .ring-hum{opacity:1;animation:dash .5s linear infinite}
.is-hum,.is-chatter{animation:hum .09s linear infinite}
.mc-lock{display:none}
.mc-lock rect{fill:#7c2d12}
.mc-lock text{fill:#fff;font-size:10px;font-weight:800}
.is-blocked .mc-lock{display:inline}
.ring-flash{stroke:#ef4444;stroke-width:5}
.flash .ring-flash{animation:flashR .4s ease-in-out 4}
@keyframes flashR{0%,100%{opacity:0}50%{opacity:1}}
@keyframes dash{to{stroke-dashoffset:-24}}
@keyframes hum{0%{transform:translate(0,0)}25%{transform:translate(.8px,-.5px)}50%{transform:translate(-.6px,.6px)}75%{transform:translate(.5px,.4px)}}
@keyframes blink{50%{opacity:.25}}
.sock-body{fill:#3a3f46;stroke:#1d2125;stroke-width:1.3}
.sock-rec{fill:#2b2f35;stroke:#4c535b;stroke-width:1}
.relay-cover{fill:url(#gCover);stroke:#7d93a8;stroke-width:1.3}
.pin-disc{fill:#2b3036;stroke:#111;stroke-width:1}
.pin-dot{fill:#d8dee4}
.pin-dot.coil{fill:#ffa94d}
.pin-no{fill:#fff;font-size:7.5px;font-weight:800;font-family:var(--mono)!important}
.pin-key{fill:#ffa94d}
.led{fill:#5b1414;stroke:#2a0a0a;stroke-width:1}
.is-coil .led{fill:#ff3b30;filter:url(#fGlow)}
/* 燒毀 */
.ov-burnt{display:none;cursor:pointer}
.is-burnt .ov-burnt{display:inline}
.ov-char{fill:url(#gChar);stroke:#1a0f08;stroke-width:1.5}
.smoke circle{fill:rgba(90,90,90,.55);animation:smoke 2.4s ease-out infinite}
.smoke circle:nth-child(2){animation-delay:.8s}.smoke circle:nth-child(3){animation-delay:1.6s}
@keyframes smoke{0%{transform:translateY(0) scale(.6);opacity:.8}100%{transform:translateY(-46px) scale(1.8);opacity:0}}
.ov-tag{fill:#1f1b18;stroke:#ff8a65;stroke-width:1.5}
.ov-tag-t{fill:#ffccbc;font-size:11.5px;font-weight:800}
.ov-burnt:hover .ov-tag{fill:#3a2a22}
/* 操作板器具 */
.pnl-base{fill:#2f343a;stroke:#15181b;stroke-width:1.2}
.cv .plate-t{fill:#1f2937;font-size:11.5px;font-weight:800}
rect.plate{fill:#f4f1e8;stroke:#9f9584;stroke-width:1}
.bezel{fill:url(#gBezel);stroke:#59626b;stroke-width:1.2}
.pb-cap,.ems-cap{cursor:pointer}
.capg{transition:transform .08s ease-out;transform-box:fill-box;transform-origin:center}
.cap{stroke:rgba(0,0,0,.45);stroke-width:1.2}
.cap-sheen{fill:url(#gSheen);pointer-events:none}
.cap-dish{fill:rgba(0,0,0,.08);stroke:rgba(255,255,255,.25);stroke-width:1}
.is-pressed .capg{transform:scale(.86)}
.is-pressed .cap{filter:brightness(.78)}
.pb-cap:hover .cap,.ems-cap:hover .ems-head{stroke:#fff;stroke-width:2}
.ems-ring{fill:#f2c200;stroke:#8a6d00;stroke-width:1.2}
.ems-head{fill:url(#gEms);stroke:#6b1111;stroke-width:1.4}
.ems-lamp{fill:rgba(255,255,255,.12);stroke:rgba(0,0,0,.18)}
.ems-glow circle{fill:#ff5a4f;opacity:0;filter:url(#fGlowBig);transition:opacity .2s}
.is-lit .ems-glow circle{opacity:.85}.is-dim .ems-glow circle{opacity:.3}
.is-lit .ems-lamp{fill:#ffe0dc;filter:url(#fGlow)}
.is-latched .capg{transform:scale(.84)}
.is-latched .ems-head{filter:brightness(.8)}
.ems-tag{display:none}
.ems-tag rect{fill:#7f1d1d}.ems-tag text{fill:#fff;font-size:9.5px;font-weight:800}
.is-latched .ems-tag{display:inline}
.pl-glow circle{opacity:0;filter:url(#fGlowBig);transition:opacity .15s}
.pl-glow.c-r circle{fill:#ff4136}.pl-glow.c-y circle{fill:#ffc107}.pl-glow.c-g circle{fill:#2ecc71}.pl-glow.c-w circle{fill:#fffbe6}
.is-lit .pl-glow circle{opacity:.95}.is-dim .pl-glow circle{opacity:.28}
.pl-lens .lens{stroke:rgba(0,0,0,.45);stroke-width:1.2}
.pl-lens.c-r .lens{fill:#6e1d1a}.pl-lens.c-y .lens{fill:#7a5a10}.pl-lens.c-g .lens{fill:#164d2c}.pl-lens.c-w .lens{fill:#8b8b80}
.lens-hot{opacity:0;transition:opacity .15s}
.pl-lens.c-r .lens-hot{fill:url(#gLensR)}.pl-lens.c-y .lens-hot{fill:url(#gLensY)}.pl-lens.c-g .lens-hot{fill:url(#gLensG)}.pl-lens.c-w .lens-hot{fill:url(#gLensW)}
.is-lit .lens-hot{opacity:1}.is-dim .lens-hot{opacity:.38}
.lens-hl{fill:none;stroke:rgba(255,255,255,.55);stroke-width:2.5;stroke-linecap:round}
/* 崗位電源 */
.src-body{fill:url(#gSrc);stroke:#1d262e;stroke-width:1.4}
.src-well{fill:#25303a;stroke:#4b5b69;stroke-width:1}
.src-lamp{fill:#2f4a3a;stroke:#111;stroke-width:1}
.is-on .src-lamp{fill:#39ff7a;filter:url(#fGlow)}
.is-tripped .src-lamp{fill:#ff3b30;animation:blink .8s steps(2) infinite}
.src-state{fill:#cbd5df;font-size:11px;font-weight:800}
.src-sw{cursor:pointer}
.src-sw-frame{fill:#1b232b;stroke:#55687a;stroke-width:1}
.src-rocker{fill:url(#gRockerOff);stroke:#0d1115;stroke-width:1;transition:fill .1s}
.is-on .src-rocker{fill:url(#gRockerOn)}
.src-sw-t{fill:#fff;font-size:10px;font-weight:900;pointer-events:none}
.src-sw:hover .src-sw-frame{stroke:#9fd3ff}
/* 電動機 */
.m-tbox{fill:#3d4a56;stroke:#1f272e;stroke-width:1.2}
.m-body{fill:url(#gMotor);stroke:#26394a;stroke-width:1.4}
.m-fin{stroke:rgba(0,0,0,.22);stroke-width:2}
.m-brake{fill:#7a8794;stroke:#3b4652;stroke-width:1.2}
.m-brake-t{fill:#fff;font-size:10.5px;font-weight:800}
.m-flange{fill:#4c6a84;stroke:#26394a;stroke-width:1.2}
.m-shaft{fill:url(#gShaft);stroke:#56606a;stroke-width:1}
.m-feet{fill:#2f3d4a}
.m-disc{fill:#dfe5ea;stroke:#5c6b78;stroke-width:2}
.m-blade{fill:#4d6b85;stroke:#26394a;stroke-width:1}
.m-mark{fill:#ef4444}
.m-hub{fill:#9aa7b3;stroke:#3b4652;stroke-width:1}
.m-arrow{display:none}
.m-arc{fill:none;stroke:#0b9c8a;stroke-width:3;stroke-linecap:round}
.m-arrowhead{fill:#0b9c8a}
.m-rev .m-arrow.rev,.m-fwd .m-arrow.fwd{display:inline}
.m-rev .m-arc{stroke:#2563eb}.m-rev .m-arrowhead{fill:#2563eb}
.m-hum{display:none}
.m-hum text{fill:#c2410c;font-size:12px;font-weight:900}
.m-stall .m-hum{display:inline}
.m-stall .m-rotor-wrap{animation:hum .07s linear infinite}
.m-chip{fill:rgba(15,23,32,.55);stroke:rgba(255,255,255,.25)}
.m-state{fill:#fff;font-size:15px;font-weight:900;letter-spacing:.1em}
.m-fwd .m-chip{fill:#0b8f7e}.m-rev .m-chip{fill:#2563eb}.m-stall .m-chip{fill:#c2410c}
/* MY4、限時電驛 */
.pole-br{fill:none;stroke:#7b8794;stroke-width:1.2}
.pin-blank{fill:#20242a;stroke:#4c535b;stroke-width:1}
.tm-body{fill:#e9ecef;stroke:#8d98a3;stroke-width:1.3}
.tm-face{fill:#fff;stroke:#9aa3ab;stroke-width:1.2}
.tm-tick{stroke:#4b5563;stroke-width:1.3}
.tm-set{fill:#6b7280;font-size:9.5px;font-weight:800}
.tm-lcd{fill:#1d2618;stroke:#4b5563;stroke-width:1}
.tm-el{fill:#9cff9c;font-family:var(--mono)!important;font-size:12px;font-weight:800}
.tm-led-t{fill:#6b7280;font-size:8.5px;font-weight:800}
.tm-track{fill:none;stroke:#e5e7eb;stroke-width:5}
.tm-arc{fill:none;stroke:#f59e0b;stroke-width:5;transition:stroke-dasharray .1s linear}
.is-on .tm-arc{stroke:#10b981}
.tm-needle{stroke:#b42318;stroke-width:2.2;stroke-linecap:round}
.tm-hub{fill:#374151}
.tm-led{fill:#4b5563;stroke:#1f2937;stroke-width:1}
.is-coil .tm-led.pw{fill:#ffb020;filter:url(#fGlow)}
.is-on .tm-led.up{fill:#22c55e;filter:url(#fGlow)}
/* 斷電延遲型限時電驛（室內第九題）：斷電計時中蓋一塊紅色倒數牌 */
.tmo-cd{display:none;pointer-events:none}
.tmo-timing .tmo-cd{display:inline}
.tmo-cd-bg{fill:#c62828;stroke:#7f1d1d;stroke-width:1.4}
.tmo-cd-t{fill:#fff;font-size:10px;font-weight:800;text-anchor:middle}
.tmo-cd-n{fill:#fff;font-family:var(--mono)!important;font-size:21px;font-weight:900;text-anchor:middle}
.tmo-timing .tmo-cd-bg{animation:tmoPulse 1s ease-in-out infinite}
@keyframes tmoPulse{50%{fill:#e53935}}
.d-pinbig.unused{fill:#4b5563;stroke:#6b7280}
/* 限制開關 */
.ls-body{fill:#dfe4ea;stroke:#8a96a3;stroke-width:1.3}
.ls-head{fill:#6b7f93;stroke:#3d4b58;stroke-width:1.3}
.ls-pivot{fill:#3d4b58}
.ls-ctl{cursor:pointer}
.ls-rod{stroke:#c9d1d9;stroke-width:5;stroke-linecap:round}
.ls-roller{fill:#2b2f35;stroke:#9aa3ab;stroke-width:2}
.ls-push{stroke:#e8590c;stroke-width:3;stroke-linecap:round;marker-end:none}
.ls-pin{fill:#e5e7eb}
.ls-arm.a{display:none}
.sw-1 .ls-arm.a{display:inline}.sw-1 .ls-arm.n{display:none}
.ls-ctl:hover .ls-roller{stroke:#2ec4b6;stroke-width:3}
.ls-auto .ls-ctl{cursor:not-allowed}
.ls-auto .ls-ctl:hover .ls-roller{stroke:#9aa3ab;stroke-width:2}
.ls-autotag{display:none}
.ls-auto .ls-autotag{display:inline}
.ls-autotag rect{fill:#eef2f6;stroke:#9aa3ad;stroke-width:1}.ls-autotag text{fill:#4b5563;font-size:9px;font-weight:800}
.ls-auto.sw-cam .ls-autotag,.ls-auto.sw-1 .ls-autotag{display:none}
.sw-tag{display:none}
.sw-tag rect{fill:#e8590c}.sw-tag text{fill:#fff;font-size:9.5px;font-weight:800}
.sw-1 .sw-tag{display:inline}
/* 切換開關 */
.cos-pos{fill:#1f2937;font-size:13px;font-weight:900;font-family:var(--mono)!important}
.cos-ctl{cursor:pointer}
.cos-disc{fill:#2b2f35;stroke:#111;stroke-width:1.2}
.cos-bar{fill:url(#gBezel);stroke:#4b5563;stroke-width:1}
.cos-ptr{stroke:#d92d20;stroke-width:3;stroke-linecap:round}
.cos-k.p1{display:none}
.sw-1 .cos-k.p1{display:inline}.sw-1 .cos-k.p0{display:none}
.cos-ctl:hover .cos-disc{stroke:#2ec4b6;stroke-width:2.5}
/* 蜂鳴器 */
.bz-body{fill:#2f343a;stroke:#111;stroke-width:1.2}
.bz-ring{fill:none;stroke:#59626b;stroke-width:1.2}
.bz-waves path{fill:none;stroke:#e8590c;stroke-width:2.6;stroke-linecap:round;opacity:0}
.is-on .bz-waves path{animation:bzW .5s ease-out infinite}
.is-on .bz-waves path:nth-child(2),.is-on .bz-waves path:nth-child(4){animation-delay:.25s}
@keyframes bzW{0%{opacity:0}40%{opacity:1}100%{opacity:0}}
.is-on .bz-body{fill:#7c2d12}
/* 第二題：三相電動機、電熱器、PT100、溫控、比流器、電流表、切換開關、台車 */
.m-warn{display:none}
.m-warn rect{fill:#c2410c}.m-warn text{fill:#fff;font-size:11px;font-weight:900}
.m-ploss .m-warn.ploss,.m-jam .m-warn.jam{display:inline;animation:blink .8s steps(2) infinite}
.m-ploss .m-rotor-wrap,.m-jam .m-rotor-wrap{animation:hum .07s linear infinite}
.nfb-body.small{fill:url(#gNfb)}
.drum{fill:#d8dde2;stroke:#7d8791;stroke-width:1.5}
.drum-rim{fill:#a9b2ba}
.h-coil{fill:none;stroke:#7a4b2a;stroke-width:4;stroke-linecap:round;transition:stroke .4s}
.is-on .h-coil{stroke:#ff4d1f;filter:url(#fGlow)}
.is-half .h-coil{stroke:#f59e0b}
.h-glow rect{fill:#ff6a3d;opacity:0;filter:url(#fGlowBig);transition:opacity .5s}
.is-on .h-glow rect{opacity:.45}.is-half .h-glow rect{opacity:.22}
.th-tube{fill:#fff;stroke:#8f979e;stroke-width:1}
.th-bulb{fill:#e03131;stroke:#8f1b1b;stroke-width:1}
.th-fill{fill:#e03131}
.th-tick{stroke:#6b7280;stroke-width:1}
.h-lcd{fill:#1d2618;stroke:#4b5563;stroke-width:1}
.h-temp{fill:#ffb27a;font-family:var(--mono)!important;font-size:15px;font-weight:800}
.h-ploss{display:none}.h-ploss rect{fill:#c2410c}.h-ploss text{fill:#fff;font-size:10.5px;font-weight:900}
.is-ploss .h-ploss{display:inline;animation:blink .9s steps(2) infinite}
.thry-heat-bg{fill:#d6dbe0;stroke:#9aa3ab;stroke-width:.8}
.thry-heat{fill:#f59e0b}.thry-heat.lv-warm{fill:#f97316}.thry-heat.lv-hot{fill:#dc2626}
.h-hot{display:none}.h-hot rect{fill:#b42318}.h-hot text{fill:#fff;font-size:11px;font-weight:900}
.is-hot .h-hot{display:inline;animation:blink .8s steps(2) infinite}
.pt-head{fill:#3d4a56;stroke:#1f272e;stroke-width:1.2}
.pt-neck{fill:#6b7f93}
.pt-rod{fill:url(#gShaft);stroke:#56606a;stroke-width:1}
.pt-tip{fill:#9aa7b3;stroke:#56606a}
.tc-body{fill:#2b3036;stroke:#111;stroke-width:1.3}
.tc-lcd{fill:#0d1210;stroke:#4b5563;stroke-width:1}
.tc-lab{fill:#9aa3ad;font-size:10px;font-weight:800}
.tc-pv{fill:#ff4d3d;font-family:var(--mono)!important;font-size:26px;font-weight:800}
.tc-sv{fill:#4ade80;font-family:var(--mono)!important;font-size:20px;font-weight:800}
.is-err .tc-pv{fill:#ffb000;animation:blink .8s steps(2) infinite}
.tc-out{fill:#3b2a1a;stroke:#111}
.is-out .tc-out{fill:#ffb000;filter:url(#fGlow)}
.tc-btn{cursor:pointer}
.tc-btn rect{fill:#4b5563;stroke:#111;stroke-width:1}
.tc-btn text{fill:#fff;font-size:11px;font-weight:900}
.tc-btn:hover rect{fill:#087e70}
.tc-btn:active rect{fill:#065f55}
.ct-core{fill:#3b434c;stroke:#111;stroke-width:1.2}
.ct-hole{fill:#eef0ec;stroke:#111}
.ct-bar{stroke:#1f2328;stroke-width:5;stroke-linecap:round}
.is-on .ct-bar{stroke:#b45309}
.ct-open{display:none}.ct-open rect{fill:#b42318}.ct-open text{fill:#fff;font-size:10px;font-weight:900}
.is-open .ct-open{display:inline;animation:blink .8s steps(2) infinite}
.am-face{fill:#fffdf6;stroke:#59626b;stroke-width:1.2}
.am-tick{stroke:#1f2937;stroke-width:1.3}
.am-num{fill:#1f2937;font-size:9px;font-weight:700}
.am-unit{fill:#6b7280;font-size:11px;font-weight:800}
.am-needle{stroke:#b42318;stroke-width:2;stroke-linecap:round}
.am-hub{fill:#1f2937}
.am-over{display:none}.am-over rect{fill:#b42318}.am-over text{fill:#fff;font-size:9.5px;font-weight:900}
.is-over .am-over{display:inline;animation:blink .6s steps(2) infinite}
.as-plate{fill:#e9ecef;stroke:#8d98a3;stroke-width:1.2}
.as-lab{fill:#1f2937;font-size:10.5px;font-weight:900;font-family:var(--mono)!important}
.as-lab.off{font-size:9px}
.as-ctl{cursor:pointer}
.as-knob{transition:transform .15s}
.as-ctl:hover .cos-disc{stroke:#2ec4b6;stroke-width:2.5}
.sw-camtag{display:none}
.sw-camtag rect{fill:#173b57}.sw-camtag text{fill:#fff;font-size:9.5px;font-weight:800}
.sw-cam .sw-tag{display:none}
.sw-cam .sw-camtag{display:inline}
.cart-base{fill:#efece5;stroke:#b8b0a0;stroke-width:1.2}
.cart-rail{fill:#6b7280}
.cart-stop{fill:#374151}
.cart-st{fill:#173b57}
.cart-car{transition:none}
.cart-body{fill:#f6b83f;stroke:#7a4d00;stroke-width:1.5}
.cart-cam{fill:#173b57}
.cart-wheel{fill:#2b2f35;stroke:#111}
.cart-t{fill:#3d2c00;font-size:12px;font-weight:900}
.cart-dir{display:none}
.cart-dir path{fill:none;stroke:#087e70;stroke-width:3;stroke-linecap:round}
.dir-r .cart-dir.r,.dir-l .cart-dir.l{display:inline}
.cart-btn{cursor:pointer}
.cart-btn rect{fill:#fff;stroke:#8f979e;stroke-width:1.2}
.cart-btn text{fill:#173b57;font-size:11.5px;font-weight:800}
.cart-btn:hover rect{stroke:#087e70;stroke-width:2}
.cart-btn.mode rect{fill:#eef6ff}
.is-manual .cart-btn.mode rect{fill:#fff4ea;stroke:#e8590c}
.is-manual .cart-car{opacity:.35}
.cart-crash{display:none}.cart-crash rect{fill:#b42318}.cart-crash text{fill:#fff;font-size:11px;font-weight:900}
.is-crash .cart-crash{display:inline;animation:blink .8s steps(2) infinite}
.cable-floor{fill:#2b2f35}
.cable-sheath{fill:#3a4048;stroke:#1d2125;stroke-width:1}
.cable .dcount,.dcov.cable .dcount{fill:rgba(255,255,255,.8)}
/* 接地 */
.pe-bar{fill:url(#gCopper);stroke:#8a4b1c;stroke-width:1.2}
.gnd-sym{fill:none;stroke:#1f2937;stroke-width:2;stroke-linecap:round}
.gnd-plate{fill:#e7eae6;stroke:#9aa3ab;stroke-width:1.2}
.pe-ext{fill:none;stroke:#1a7f37;stroke-width:5;stroke-linecap:round}
.pe-ext-stripe{fill:none;stroke:#f2d024;stroke-width:5;stroke-dasharray:6 10;stroke-linecap:butt}
.pe-ext-arrow{fill:#c0392b}
/* 機械互鎖 */
.ilk-bar{fill:#f5f5f2;stroke:#8f969c;stroke-width:1.2}
.ilk-line{stroke:#d63031;stroke-width:1.6;stroke-dasharray:5 3}
.ilk-tri{fill:none;stroke:#d63031;stroke-width:1.8}
.ilk-t{fill:#b42318;font-size:10.5px;font-weight:800}

/* 配線槽 */
.duct-floor{fill:#7c848b;stroke:#59616a;stroke-width:1}
.duct-teeth.h{fill:url(#pTeethH)}
.duct-teeth.v{fill:url(#pTeethV)}
.duct-lid{fill:#c8ced3;stroke:#8f979e;stroke-width:1;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
.duct-rib{stroke:rgba(255,255,255,.55);stroke-width:1}
.bundle-floor{fill:#4b545c}
.bundle-wrap{fill:url(#pSpiral);stroke:#2b3137;stroke-width:1}
.dcount{fill:rgba(55,65,81,.62);font-size:10.5px;font-weight:800;dominant-baseline:central;text-anchor:middle;pointer-events:none;letter-spacing:.04em}
.bundle .dcount{fill:rgba(255,255,255,.75)}
.wires-hidden .dcount{display:none}
.L-covers{cursor:default}
.fade.cover{border-color:#8f979e;display:inline-flex;align-items:center;gap:5px}
.fade.cover b{font-size:11px;background:#e5e7eb;color:#374151;border-radius:5px;padding:0 5px}
.fade.cover.on b{background:#fff;color:#374151}
.fade.cover.on{background:#59616a;border-color:#59616a;color:#fff}
/* 線束與束帶 */
.L-ties{pointer-events:none}
.wires-faint .L-ties{opacity:.3}
.wires-hidden .L-ties{display:none}
.tie-band{fill:#f4f5f2;stroke:#8f979e;stroke-width:.8}
.tie-head{fill:#e3e6e2;stroke:#6f777e;stroke-width:.8}
.wrap-band{fill:none;stroke:url(#pWrap);stroke-linejoin:round;stroke-linecap:butt}
.fade.routing{display:inline-flex;align-items:center;gap:5px}
.fade.routing b{font-size:11px;background:#e5e7eb;color:#374151;border-radius:5px;padding:0 6px}
.fade.routing.on{background:#4b5563;border-color:#4b5563;color:#fff}
.fade.routing.on b{background:#fff;color:#374151}
/* 線材 */
.w{cursor:pointer}
.w path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.w .w-halo{stroke:rgba(255,255,255,.78)}
.w .w-hit{stroke:transparent;stroke-width:14}
.w.fixed{cursor:default}
.w.fixed .w-halo{stroke:rgba(255,255,255,.5)}
.w.hov .w-halo{stroke:#fff}
.w.hl .w-halo{stroke:#ffc533;opacity:.95}
.w.sel .w-halo{stroke:#ffb000;stroke-dasharray:none;filter:url(#fGlow)}
.w.err .w-halo{stroke:#ff3b30!important;stroke-width:12px;animation:errP .6s ease-in-out infinite}
@keyframes errP{0%,100%{opacity:1}50%{opacity:.35}}
.w.dim{opacity:.28}
.w.hl .w-halo{filter:url(#fGlow)}
.w.loose-end .w-core{stroke-dasharray:none}
.rubber{fill:none;stroke-linecap:round;pointer-events:none}
.rubber-halo{stroke:rgba(255,255,255,.85)}
.rubber-core{stroke-dasharray:9 6;animation:dash .6s linear infinite}

/* 端子編號 */
.dnames text{paint-order:stroke;stroke-linejoin:round;pointer-events:none}
.dnames .dn{stroke:rgba(255,255,255,.88);stroke-width:4px}
.dnames .dn-w{stroke:rgba(24,28,34,.9);stroke-width:4px}
.dnames .plate-t{stroke:#f4f1e8;stroke-width:3.5px}
.tl{font-family:var(--mono)!important;font-size:13.5px;font-weight:800;fill:#111827;paint-order:stroke;stroke:rgba(255,255,255,.92);stroke-width:3.4px;stroke-linejoin:round;pointer-events:none}
.tl.hl{fill:#7a4d00;stroke:#ffe8a3}
.tl-dim{opacity:.35}

/* 端子（螺絲） */
.t{cursor:pointer}
.t-hit{fill:transparent}
.t-ring{fill:none;stroke:transparent;stroke-width:3.2}
.t-prog-bg{fill:none;stroke:none;stroke-width:3.4}
.t-prog{fill:none;stroke:none;stroke-width:3.6;stroke-linecap:round;transition:stroke-dashoffset .18s}
.t-head{transition:transform .16s cubic-bezier(.3,1.6,.5,1);transform-box:fill-box;transform-origin:center}
.t-screw{fill:url(#gScrew);stroke:#4f5861;stroke-width:1.3}
.t-slot{fill:none;stroke:#3a4148;stroke-width:2;stroke-linecap:round;transition:transform .2s cubic-bezier(.3,1.7,.5,1);transform-box:view-box;transform-origin:0 0}
.t:hover .t-screw{stroke:#087e70;stroke-width:2.4}
.t.n1 .t-ring{stroke:#12b39f}
.t.n2 .t-ring{stroke:#c2410c;stroke-width:3.4}
.t.n2 .t-screw{fill:url(#gScrewDark)}
.t.lz .t-head{transform:scale(1.16);filter:drop-shadow(0 2.5px 1.5px rgba(0,0,0,.45))}
.t.lz .t-ring{stroke:#fb8c3c;stroke-dasharray:4 3}
.t.lz .t-prog-bg{stroke:rgba(251,140,60,.25)}
.t.lz .t-prog{stroke:#f76707}
.t.lz .t-screw{stroke:#c2410c}
.t.locked{cursor:not-allowed}
.t.locked .t-screw{fill:url(#gScrewDark);stroke:#3f464d}
.t.locked .t-ring{stroke:#6e7781;stroke-width:2.6}
.t.hl .t-ring{stroke:#ffc533!important;stroke-width:5;stroke-dasharray:none!important;filter:url(#fGlow)}
.t.src .t-ring{stroke:#087e70!important;stroke-width:5;stroke-dasharray:none!important;animation:flashR .9s ease-in-out infinite}
.t.tgt-ok .t-screw{stroke:#12b39f;stroke-width:3}
.t.tgt-bad .t-screw{stroke:#e03131;stroke-width:3}
.t.probe-r .t-ring{stroke:#e03131!important;stroke-width:4.5;stroke-dasharray:none!important}
.t.probe-k .t-ring{stroke:#111!important;stroke-width:4.5;stroke-dasharray:none!important}
.t.live .t-screw{stroke:#ff3b30;stroke-width:3}
.t.live .t-ring{stroke:#ff3b30!important;stroke-width:6;stroke-dasharray:none!important;filter:url(#fGlow)}
.t.just .t-ring{stroke:#22c55e!important;stroke-width:6;stroke-dasharray:none!important;animation:justT .7s ease-out}
.t.just .t-screw{fill:#bbf7d0}
.t.nudge .t-head{animation:nudge .28s ease-in-out}
.t.find .t-ring{stroke:#ff6a00!important;stroke-width:6;stroke-dasharray:none!important;animation:flashR .45s ease-in-out 6}
.stage.tool-screw .t.lz .t-head{transform:scale(1.22)}
@keyframes justT{0%{stroke-width:10;opacity:1}100%{stroke-width:5;opacity:.6}}
@keyframes nudge{0%,100%{transform:rotate(0)}25%{transform:rotate(-10deg)}75%{transform:rotate(10deg)}}

/* 疊在最上面的東西 */
.del-btn{cursor:pointer}
.del-btn circle{fill:#d92d20;stroke:#fff;stroke-width:2;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
.del-btn path{stroke:#fff;stroke-width:2.6;stroke-linecap:round}
.del-btn:hover circle{fill:#a4161a}
.probe-pin path{stroke-width:1.2}
.probe-pin.r path{fill:#e03131;stroke:#7f1d1d}
.probe-pin.k path{fill:#1f2328;stroke:#000}
.probe-pin text{fill:#fff;font-size:10px;font-weight:900}
.pend-tag rect{fill:#087e70}
.pend-tag text{fill:#fff;font-size:11px;font-weight:800}

/* ───────── 模式：接線練習／故障檢修／重播 ───────── */
body.mode-fault .wire-only,body.mode-replay .wire-only{display:none!important}
body:not(.mode-fault) .fault-only{display:none!important}
body:not(.mode-replay) .replay-only{display:none!important}
body.mode-wire .nowire-only{display:none!important}
body.mode-fault .nofault,body.replay-fault .nofault{display:none!important}
.ico-hand::before{content:'';display:inline-block;width:11px;height:13px;border:2px solid currentColor;border-radius:5px 5px 4px 4px;border-top-width:3px;transform:translateY(1px)}
.stage.tool-hand{cursor:default}
.wm-hidden .w:not(.fixed){display:none}
.wm-ghost .w:not(.fixed){opacity:.3;pointer-events:none}
.wm-ghost .w.hl:not(.fixed),.wm-ghost .w.sel:not(.fixed),.wm-ghost .w.err:not(.fixed){opacity:1}
.status.compact .sc:not(.on):not(.bad):not(.warn):not(.lit-r):not(.lit-y):not(.lit-g):not(.lit-w){display:none}
.sc-tog{border:none;background:none;font-size:11.5px;font-weight:600;color:#6b7280;cursor:pointer;padding:1px 4px;border-radius:6px;white-space:nowrap}
.sc-tog:hover{background:#eef2f6}
.sc-tog b{color:#374151}.sc-tog u{color:var(--navy);text-decoration:none;font-weight:800}
.sc-none{font-size:11.5px;color:var(--muted);display:none}
.status.sc-folded .sc,.status.sc-folded .sc-none,.status.sc-folded.compact.quiet .sc-none{display:none}
.status.sc-folded .sc-tog:not(.sc-fold){pointer-events:none;font-size:0}.status.sc-folded .sc-tog:not(.sc-fold) b{font-size:11.5px}
.sc-fold{margin-left:auto;order:99}
.status.compact.quiet .sc-none{display:inline}
.wires-hidden .t.n1 .t-ring,.wires-hidden .t.n2 .t-ring{stroke:transparent}
.wires-hidden .t.n2 .t-screw{fill:url(#gScrew)}
/* 關卡進度條 */
.stagebar{display:flex;align-items:center;gap:3px;flex-wrap:nowrap;overflow:hidden}
.sb{font-size:12px;font-weight:700;color:#8a8f98;background:#efece5;border:1px solid #e0dacd;border-radius:999px;padding:2px 9px;white-space:nowrap}
.sb.done{color:#4b5563;background:#fff}
.sb.cur{color:#fff;background:var(--navy);border-color:var(--navy);box-shadow:0 2px 6px rgba(23,59,87,.3)}
.sb.ok{color:#065f46;background:#ecfdf5;border-color:#a7f3d0}
.sb.ng{color:#991b1b;background:#fef2f2;border-color:#fecaca}
.sb.cur.ok,.sb.cur.ng{box-shadow:0 0 0 2px var(--navy)}
.sb-ar{font-style:normal;color:#b8b2a5;font-size:12px}
.stimer{font-family:var(--mono);font-variant-numeric:tabular-nums;background:#fff7e6;border-color:#f3d9a4;color:#7a4d00}
.stimer.late{background:#fee2e2;color:#991b1b;border-color:#fca5a5;animation:blinkB 1s steps(2) infinite}
.stimer.paused{background:#eef0f3;color:#6b7280;border-color:var(--divider)}
.btn-submit{background:linear-gradient(155deg,#2563eb,#173b57)}
/* 作答卡 */
.answer{flex:none;max-height:48%;overflow:auto;padding:10px 12px 12px;border-bottom:1px solid var(--divider);background:linear-gradient(#fffdf7,#fff)}
.answer h3{margin:0 0 6px;font-size:15px;color:var(--navy);display:flex;align-items:center;gap:8px}
.answer p{margin:4px 0 8px;font-size:13px;color:#374151;line-height:1.6}
.answer .muted{color:var(--sub);font-size:12.5px}
.opts{display:grid;gap:6px;margin-bottom:8px}
.opt{display:flex;align-items:center;gap:10px;text-align:left;border:1.5px solid #d6d0c3;background:#fff;border-radius:10px;padding:7px 10px;font-size:13.5px;font-weight:600;color:#1f2937;cursor:pointer}
.opt b{width:24px;height:24px;flex:none;border-radius:50%;background:#efece5;color:#374151;display:flex;align-items:center;justify-content:center;font-family:var(--mono)}
.opt:hover:not(:disabled){border-color:var(--navy)}
.opt.on{border-color:#2563eb;background:#eff6ff}.opt.on b{background:#2563eb;color:#fff}
.opt.right{border-color:#16a34a;background:#f0fdf4}.opt.right b{background:#16a34a;color:#fff}
.opt.wrong{border-color:#dc2626;background:#fef2f2}.opt.wrong b{background:#dc2626;color:#fff}
.opt:disabled{cursor:default}
.res{border-radius:10px;padding:9px 11px;font-size:13px;margin:4px 0 6px;line-height:1.55}
.res.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}
.res.ng{background:#fef2f2;border:1px solid #fecaca;color:#7f1d1d}
.res b{font-size:14px}
.res .det{margin-top:4px;color:#374151}
.res .det.muted{color:var(--sub);font-size:12px}
.seg2{display:flex;background:#e6e1d7;border-radius:10px;padding:3px;gap:3px;margin:4px 0 6px}
.seg2 button{flex:1;border:none;background:none;border-radius:7px;padding:6px 8px;font-size:14px;font-weight:800;color:#5b6270;cursor:pointer}
.seg2 button.on{background:#fff;color:#b42318;box-shadow:0 1px 3px rgba(0,0,0,.14)}
.hint2{font-size:12.5px!important;color:var(--sub)!important;margin:2px 0 6px!important}
.selbox{font-size:13px;font-weight:700;color:#1f2937;background:#f8f6f1;border:1px dashed #cfc7b6;border-radius:8px;padding:6px 9px;margin-bottom:8px}
.row2{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.row2 .btn{margin-left:auto;padding:7px 16px}
.btn.full{width:100%;margin-top:4px}
/* 過場 */
.transit{position:absolute;inset:0;z-index:20;background:rgba(23,32,51,.55);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px)}
.transit-in{background:#fff;border-radius:16px;padding:20px 26px;box-shadow:0 18px 50px rgba(0,0,0,.3);display:flex;flex-direction:column;align-items:center;gap:8px;min-width:300px}
.transit-in b{font-size:16px;color:var(--navy)}
.transit-in small{color:var(--sub);font-size:12.5px}
/* 重播 */
.replayinfo{display:flex;align-items:center;gap:8px;font-size:13px;color:#374151;white-space:nowrap;overflow:hidden}
.replayinfo b{color:var(--navy);font-size:14px}
.replayinfo .btn-line{padding:3px 10px;font-size:12.5px}
.rv{border:1px solid var(--divider);border-radius:10px;padding:7px 10px;margin-top:6px;font-size:12.5px;background:#fff}
.rv.link{cursor:pointer}
.rv.link:hover,.rv.on{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy)}
.rv-h{font-weight:800;color:#1f2937;display:flex;align-items:center}
.rv-go{margin-left:auto;font-size:11.5px;color:var(--navy)}
.rv-b{margin-top:3px;font-weight:700}
.rv-b.ok{color:#15803d}.rv-b.ng{color:#b91c1c}
.rv-d{color:#4b5563;margin-top:2px}
.rv-d.muted{color:var(--sub)}
/* 線路圖對照 */
.pg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.pg-g{stroke:#c9cdd2;stroke-width:6.5px;stroke-linecap:butt}
.pg-d{fill:#c9cdd2}
.pg-k{stroke:#111;stroke-width:5.5px;stroke-linecap:round}
.pg-k.new{animation:pgNew 1.4s ease-out}
@keyframes pgNew{0%{stroke:#12b886;stroke-width:12px}60%{stroke:#12b886;stroke-width:8px}100%{stroke:#111;stroke-width:5.5px}}
.pg-h{stroke:#f76707;stroke-width:9px;stroke-linecap:round;opacity:.9}
.pg-x{stroke:#f59f00;stroke-width:8px;stroke-linecap:round;opacity:0;animation:pgGone 1.6s ease-out}
@keyframes pgGone{0%{opacity:.55}35%{opacity:.4}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.pg-k.new,.pg-x{animation:none}}
/* 工具列：線路圖 自由｜對照 */
.pgseg{display:inline-flex;align-items:center;gap:2px;border:1.5px solid #c4c8ce;background:#fff;border-radius:8px;padding:1px 2px 1px 8px;white-space:nowrap}
.pgseg[hidden]{display:none}
.pgseg .pgl{font-size:11.5px;font-weight:700;color:#6b7280;margin-right:4px}
.pgseg button{border:none;background:none;border-radius:6px;padding:2px 8px;font-size:12.5px;font-weight:700;color:#6b7280;cursor:pointer}
.pgseg button:hover{color:var(--ink)}
.pgseg button.on{background:#111827;color:#fff}
.pgseg button:focus-visible{outline:2px solid var(--teal);outline-offset:1px}
.pgseg .pgcount{margin-left:6px;font-size:11px;font-weight:800;background:#fff;color:#111827;border-radius:5px;padding:0 6px;font-variant-numeric:tabular-nums}
.pgseg .pgcount[hidden]{display:none}
.pgseg button[data-pg="sim"].on{background:#b42318;color:#fff}   /* 模擬模式（模擬考）：紅底，一眼看得出在考 */
.pgseg button[hidden]{display:none}
.seg button.locked{opacity:.38;cursor:not-allowed;text-decoration:line-through}   /* 模擬模式禁用電動起子（點了跳提示） */
.seg button.locked .ed-n{display:none}
.pgtag{margin-top:3px;font-size:11px;font-weight:800;border-radius:6px;padding:2px 6px;text-align:left;line-height:1.35}
.pgtag small{display:block;font-weight:500;font-size:10.5px}
.pgtag.bad{background:#fff1f0;color:#991b1b}
.pgtag.wait{background:#f3f4f6;color:#4b5563}
/* 線路圖作答疊圖 */
svg.hot{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}   /* 只套在疊圖那個 svg：器具裡也有叫 hot 的小元件，不可以被撐成整片 */
.hs-hit{stroke:transparent;stroke-width:16px;vector-effect:non-scaling-stroke;stroke-linecap:round;pointer-events:none}
svg.hot.pick .hs-hit{pointer-events:stroke;cursor:pointer}
.hs-hov{stroke:#f59f00;stroke-width:7px;vector-effect:non-scaling-stroke;stroke-linecap:round;opacity:.75}
.hs-sel{stroke:#e03131;stroke-width:6px;vector-effect:non-scaling-stroke;stroke-linecap:round;opacity:.85}
.hs-sel.n1{stroke:#9c36b5}
.hs-cor{stroke:#12b886;stroke-width:11px;vector-effect:non-scaling-stroke;stroke-linecap:round;opacity:.5}
.mk-t{font-size:calc(16px / var(--s,1));font-weight:900;fill:#d92d20;dominant-baseline:central;text-anchor:middle;font-family:var(--font)}
.mk-bg{fill:rgba(255,255,255,.92);stroke:#d92d20;stroke-width:1.5px;vector-effect:non-scaling-stroke}
.mk-ln{stroke:#d92d20;stroke-width:2.6px;vector-effect:non-scaling-stroke;stroke-linecap:round}
.mk-hd{fill:#d92d20}
.mk.cor .mk-t{fill:#087f5b}.mk.cor .mk-bg{stroke:#087f5b}.mk.cor .mk-ln{stroke:#087f5b}.mk.cor .mk-hd{fill:#087f5b}
/* ───────── 響應式 ───────── */
@media (max-width:2799px){                 /* 2026-11-27 晚：原本 2100；2101～2400 工具列本來就會換行，再加模擬鈕 2560 也放不下 → 2799 以下都收；2800 以上放得下全部文字 */
  .seg button{padding:4px 8px}
  .kind{padding:3px 7px 3px 4px}
  .kind .kk{display:none}
  .kind .mm{display:none}
  .toolstrip{gap:6px 6px;padding:5px 8px}
  .seg button{padding:4px 6px}
  .menu .item{padding:4px 7px}
  .kind{padding:3px 6px 3px 4px}
  .kind .sw{width:16px}
  #btnFade{display:none}
  .rt-bundle #btnFade{display:inline-block}
}
@media (max-width:2799px){
  .topbar .ttl span{display:none}
  .seg .lbl-long,.zoom .lbl-long,.pgseg .lbl-long,.fade.routing .lbl-long{display:none}
  .pgseg{padding:1px 2px}
  .pgseg .pgl{display:none}
  .pgseg button{padding:2px 6px}
  .pgseg .pgcount{margin-left:4px;padding:0 4px}
  .kind{gap:4px}
  .zoom .fit{padding:0 8px}
  .fade{padding:3px 8px}
  .wcount{display:none}
}
@media (max-width:1439px){                 /* 1280～1366 這類寬度：歐姆、電壓、復原、重做只留符號（滑鼠移上去有說明），工具列維持一行（線槽模式多一顆線槽蓋鈕也放得下） */
  .lbl-mid{display:none}
  .seg button[data-tool="ohm"] .ico,.seg button[data-tool="volt"] .ico,.seg button[data-tool="pol"] .ico{margin-right:0}
  #btnUndo,#btnRedo{padding:4px 7px;font-size:15px}
}
/* 2026-11-27 晚（老師回報「切到對照模式縮放比例都不見」）：電動起子次數、已接段數、模擬模式鈕把 1280～1800 的工具列撐成兩排，縮放鈕掉到第二排左邊。
   1800 以下：工具鈕只留圖示（title 有說明、快捷鍵照舊）、線材藏顏色字（色塊就是顏色）、線槽蓋只留「蓋上／打開」（緊跟在「線槽」鈕後面）、「符合畫面」改圖示。
   deploy/smoke.mjs「工具列一排」量 1280～1920 × b1、b3 × 對照／自由／模擬，每個子元素的垂直中心都一樣才過。 */
.zoom .fit .fit-i{display:none;font-style:normal;font-size:15px;line-height:1}
@media (max-width:1800px){
  .seg button .tl{display:none}
  .seg button .ico{margin-right:0}
  .seg button{padding:4px 7px}
  .seg button .ed-n{margin-left:3px}
  .kind .kc{display:none}
  #btnCover .cv-l{display:none}
  .zoom .fit .fit-t,.zoom .fit .lbl-long{display:none}
  .zoom .fit .fit-i{display:inline}
  .zoom .fit{padding:0 7px}
}
@media (min-width:1366px) and (max-width:1800px){   /* 觸控裝置沒有滑鼠移上去的說明：1366 以上放得下，螺絲起子多留「起子」兩個字（跟電動起子分得清楚；smoke「工具列一排」照樣量） */
  .seg button .tl-s{display:inline;margin-left:3px}
}
@media (max-width:1500px){                 /* 筆電寬度：再擠一點，工具列維持一行（線路圖分段鈕＋已接段數） */
  .toolstrip{gap:6px 5px}
  .pgseg button{padding:2px 5px}
  .fade{padding:3px 7px}
  .zoom span{min-width:40px}
}
@media (max-width:1400px){                 /* 1280～1400：再留一點餘裕給變長的數字（電動起子剩幾個、已接幾段、未鎖緊幾個） */
  .toolstrip{gap:6px 4px}
  .kinds{gap:2px}
  .kind{padding:3px 5px 3px 4px}
}
/* 題目頁頂列的「🚩 錯誤申報」（2026-11-28）：放不下就只留圖示（title／aria-label 有「錯誤申報」）。裝置配線（b1～b7）1280 以上都放得下整顆；
   頂列比較滿的畫面：故障檢修（多一個每關倒數）、室內配線（多停電鈕）1440 以下只留圖示，乙級 e1（指定位址＋PLC 程式）1536 以下只留圖示。
   最滿的兩種（室內配線的模擬模式、乙級 e1）多了這顆時把頂列的間距收一點（.has-rp＝這顆有顯示，ui.js 的 _reportShow），題名不會比原本多擠掉。
   deploy/smoke.mjs「題目頁頂列的錯誤申報…」量 1280～1920：頂列一排、題名不比沒有這顆時多擠掉。 */
@media (max-width:1535px){
  body.p1-task .rp-chip-t{display:none}
  body.p1-task .rp-chip{padding:5px 7px}
  body.p1-task .topbar.has-rp{gap:6px}
}
@media (max-width:1439px){
  body.mode-fault .rp-chip-t,body.in-task .rp-chip-t{display:none}
  body.mode-fault .rp-chip,body.in-task .rp-chip{padding:5px 7px}
}
@media (max-width:1399px){
  body.in-task.pg-sim .topbar.has-rp{gap:6px}
  body.p1-task .topbar.has-rp{gap:5px}
  body.p1-task .rp-chip{padding:5px 4px}
}
@media (max-width:1279px){
  .rp-chip .rp-chip-t{display:none}
  .rp-chip{padding:5px 7px}
}
@media (max-width:900px){
  .work{height:auto;min-height:100vh;overflow:visible}
  .workarea{flex-direction:column}
  .stage{height:70vh;flex:none}
  .splitter{display:none}
  .side{width:auto!important;height:70vh}
  .topbar{height:auto;flex-wrap:wrap;padding:6px 10px}
  .help-grid{grid-template-columns:1fr}
}
/* ───────── 第三題、第四題新器具 ───────── */
/* 插接端子（掛接式積熱電驛的插片）：不畫螺絲 */
.t.plug .t-plugmark{fill:#c9a227;stroke:#6b5414;stroke-width:1.2}
.t.plug{cursor:not-allowed}
.plug-blade{fill:#d4b13a;stroke:#6b5414;stroke-width:1}
/* 卡式保險絲 */
.fuse-cart{fill:rgba(220,230,238,.55);stroke:#59636d;stroke-width:1.2}
.fuse-tube{fill:#f2efe6;stroke:#8a8473;stroke-width:1}
.fuse-end{fill:#b9bfc5;stroke:#6b737b;stroke-width:.8}
/* 崗位電源：調相序 */
.src-seqbtn{cursor:pointer}
.src-seqbtn rect{fill:#2b3a48;stroke:#7fa6c6;stroke-width:1.2}
.src-seqbtn text{fill:#fff;font-size:11.5px;font-weight:800}
.src-seqbtn:hover rect{stroke:#9fd3ff;fill:#334656}
.src-seq{font-size:11px;font-weight:900;display:none}
.src-seq.s-pos{fill:#86efac}.src-seq.s-neg{fill:#fca5a5}
.seq-pos .src-seq.s-pos,.seq-neg .src-seq.s-neg{display:inline}
/* 逆相防止電驛 */
.apr-cover{fill:url(#gCover);stroke:#7d93a8;stroke-width:1.3}
.apr-rst{font-size:9.5px}
.apr-led{fill:#3a2d10;stroke:#111;stroke-width:1}
.is-on .apr-led{fill:#ffb000;filter:url(#fGlow)}
.apr-st{font-size:10.5px;font-weight:800;display:none;fill:#4b5563}
.apr-off .apr-st.s-off,.apr-pos .apr-st.s-pos,.apr-neg .apr-st.s-neg,.apr-loss .apr-st.s-loss{display:inline}
.apr-pos .apr-st.s-pos{fill:#087f5b}.apr-neg .apr-st.s-neg,.apr-loss .apr-st.s-loss{fill:#c2410c}
/* 壓力開關 */
.ps-body{fill:#e9ecef;stroke:#8f969c;stroke-width:1.3}
.ps-fit{fill:#b0b8bf;stroke:#59636d}.ps-pipe{fill:#8d969e;stroke:#59636d}
.ps-lever{cursor:pointer}
.ps-track{fill:#cfd6dc;stroke:#8a96a3;stroke-width:1}
.ps-knob{fill:#173b57;stroke:#0b2235;stroke-width:1;display:none}
.ps-lt{font-size:9.5px;font-weight:800;fill:#6b7280;display:none}
.ps-st{font-size:10.5px;font-weight:800;fill:#173b57;display:none}
.ps-mt{font-size:9px;font-weight:700;fill:#6b7280;display:none}
.ps-0 .k0,.ps-1 .k1,.ps-auto .ps-mt.m1,.ps-hand .ps-mt.m0{display:inline}
.ps-1 .ps-st.k1{fill:#c2410c}
.ps-auto .ps-lever{cursor:not-allowed}
.ps-hand .ps-lever:hover .ps-track{stroke:#087e70;stroke-width:2}
/* 累積計時器 */
.hc-lcd{fill:#1d2618;stroke:#4b5563;stroke-width:1}
.hc-num{fill:#bef264;font-family:var(--mono)!important;font-size:19px;font-weight:800;letter-spacing:.04em}
.hc-unit{fill:#9aa3ad;font-size:10px;font-weight:800}
.hc-run{fill:#3f4a36;stroke:none}
.is-on .hc-run{fill:#bef264;animation:blink 1s steps(2) infinite}
.hc-btn{cursor:pointer}
.hc-btn rect{fill:#4b5563;stroke:#111;stroke-width:1}
.hc-btn text{fill:#fff;font-size:10.5px;font-weight:800}
.hc-btn:hover rect{fill:#087e70}
/* 空壓機 */
.cp-tank{fill:url(#gShaft);stroke:#4b5563;stroke-width:1.4}
.cp-foot{fill:#6b7280}
.cp-tank-t{fill:#1f2937;font-size:12px;font-weight:800}
.cp-pipe{stroke:#7b858e;stroke-width:6;fill:none}
.cp-gauge-rim{fill:#c7cdd3;stroke:#59636d;stroke-width:1.2}
.cp-gauge{fill:#fff;stroke:#59636d;stroke-width:1}
.cp-band{fill:none;stroke:#86efac;stroke-width:7;opacity:.85}
.cp-tick{stroke:#374151;stroke-width:1.4}
.cp-num{fill:#374151;font-size:9.5px;font-weight:800}
.cp-mark{fill:#087f5b;font-size:9.5px;font-weight:900}
.cp-needle{stroke:#d92d20;stroke-width:2.6;stroke-linecap:round}
.cp-hub{fill:#1f2937}
.cp-p{fill:#1f2937;font-family:var(--mono)!important;font-size:13px;font-weight:800}
.cp-chip{fill:rgba(15,23,32,.55);stroke:rgba(255,255,255,.3)}
.cp-st{fill:#fff;font-size:12.5px;font-weight:900}
.cp-run .cp-chip{fill:#2563eb}.cp-run.cp-load .cp-chip{fill:#0b8f7e}
.cp-temp{fill:#374151;font-size:11.5px;font-weight:800}
.cp-hot .cp-temp{fill:#c2410c}
.cp-warn{display:none}
.cp-warn rect{fill:#c2410c}.cp-warn text{fill:#fff;font-size:11px;font-weight:900}
.cp-safe .cp-warn.safe,.cp-heat .cp-warn.hot{display:inline;animation:blink .8s steps(2) infinite}
.cp-btn{cursor:pointer}
.cp-btn rect{fill:#fff;stroke:#8f979e;stroke-width:1.2}
.cp-bt{fill:#173b57;font-size:12px;font-weight:800}
.cp-btn:hover rect{stroke:#087e70;stroke-width:2}
.cp-use .cp-btn.use rect,.cp-heat .cp-btn.heat rect{fill:#173b57;stroke:#173b57}
.cp-use .cp-btn.use .cp-bt,.cp-heat .cp-btn.heat .cp-bt{fill:#fff}
.cp-btn.mode rect{fill:#eef6ff}
.is-manual .cp-btn.mode rect{fill:#fff7e6;stroke:#e8590c}
/* 六線電動機：Y／Δ */
.m-conn{display:none}
.m-conn rect{fill:#173b57}.m-conn text{fill:#fff;font-size:10.5px;font-weight:900}
.conn-Y .m-conn,.conn-D .m-conn{display:inline}
.conn-D .m-conn rect{fill:#087f5b}
/* 固態接觸器 */
.ssc-body{fill:#2f353b;stroke:#111;stroke-width:1.3}
.ssc-pole{stroke:#8d969e;stroke-width:2}
.ssc-cond{stroke:#ffb000;stroke-width:3;opacity:0}
.is-on .ssc-cond{opacity:.9}
.ssc-ring{fill:#20262c;stroke:#cbd5df;stroke-width:1.3}
.ssc-rt{fill:#fff;font-size:8.5px;font-weight:900}
.ssc-plate{fill:#d9dee3;stroke:#7d8790;stroke-width:1}
.ssc-led{fill:#3a1616;stroke:#111}
.is-coil .ssc-led{fill:#ff4d3d;filter:url(#fGlow)}
/* 近接開關 */
.prs-body{fill:#3a434c;stroke:#111;stroke-width:1.2}
.prs-face{fill:#e8590c;stroke:#8a3305;stroke-width:1}
.prs-lead{fill:none;stroke:#6b7280;stroke-width:2.4}
.prs-led{fill:#4a2a10;stroke:#111}
.is-lit .prs-led{fill:#ffb000;filter:url(#fGlow)}
.prs-ctl{cursor:pointer}
.prs-metal{display:none}
.prs-metal rect{fill:#c0c7ce;stroke:#59636d;stroke-width:1.2}.prs-metal text{fill:#1f2937;font-size:9px;font-weight:900}
.is-near .prs-metal{display:inline}
.ls-auto .prs-ctl,.ls-auto .phs-ctl{cursor:not-allowed}
/* 光電開關 */
.phs-body{fill:#3a434c;stroke:#111;stroke-width:1.2}
.phs-lens{fill:#1b2026;stroke:#9aa3ad;stroke-width:1.2}.phs-lens-in{fill:#7a1c1c}
.is-coil .phs-lens-in{fill:#ff4d3d}
.phs-lead{fill:none;stroke-width:2.2}
.phs-lead.c0{stroke:#8b5a2b}.phs-lead.c1{stroke:#2563eb}.phs-lead.c2{stroke:#cbd5df}.phs-lead.c3{stroke:#111}.phs-lead.c4{stroke:#9aa3ad}
.phs-beam{stroke:#ff4d3d;stroke-width:2;stroke-dasharray:3 3;opacity:0}
.is-coil .phs-beam{opacity:.8}
.is-blocked .phs-beam{opacity:.15}
.phs-led{fill:#2a2f35;stroke:#111}
.is-coil .phs-led.pw{fill:#4ade80}
.is-out .phs-led.op{fill:#ffb000;filter:url(#fGlow)}
.phs-ctl{cursor:pointer}
.phs-hand{display:none}
.phs-hand rect{fill:#f1c27d;stroke:#8a5a2b;stroke-width:1}.phs-hand text{fill:#5b3a12;font-size:8.5px;font-weight:900}
.is-blocked .phs-hand{display:inline}
/* 輸送帶 */
.cv-belt{fill:#2f353b;stroke:#111;stroke-width:1.2}
.cv-roll{fill:#9aa3ad;stroke:#4b5563}
.cv-stripe{stroke:#7b858e;stroke-width:2;stroke-dasharray:10 8}
.cv-spot{stroke:#173b57;stroke-width:3;stroke-linecap:round}
.cv-spot-t{fill:#173b57;font-size:11px;font-weight:900}
.cv-hit rect{fill:none;stroke:#ffb000;stroke-width:2.5;display:none}
.at-ls .cv-hit.h-ls rect,.at-phs .cv-hit.h-phs rect,.at-prs .cv-hit.h-prs rect{display:inline}
.cv-box{fill:#d9a066;stroke:#7a4a1c;stroke-width:1.3}
.cv-box-t{fill:#4a2a0c;font-size:9.5px;font-weight:900}
.cv-fell,.cv-stuck{display:none}
.fell-end .cv-fell.end,.fell-start .cv-fell.start{display:inline}
.cv-warn-t{fill:#c2410c;font-size:11.5px;font-weight:900}
.is-stuck .cv-stuck{display:inline;animation:blink .8s steps(2) infinite}
.cv-stuck rect{fill:#c2410c}.cv-stuck text{fill:#fff;font-size:10.5px;font-weight:900}
/* 線路圖對照：不用配的線段、補黑點、接錯太多 */
.pg-na-bg{stroke:#fff;stroke-width:6.5px;stroke-linecap:butt}
.pg-na{stroke:#b8bec5;stroke-width:2.5px;stroke-dasharray:7 6}
.pg-kd{fill:#111}
/* 端子號碼（對照模式才有；位置由 termnums.js 算，字級要跟 WiringTermNums.FONT 一樣，單位是線路圖像素、跟著縮放） */
.pg-tn-t{font:700 17px/1 Arial,"Helvetica Neue",Helvetica,sans-serif;fill:#1d4ed8;stroke:#fff;stroke-width:4px;stroke-linejoin:round;paint-order:stroke;text-anchor:middle;dominant-baseline:central}
/* 學生自己標（2026-12-02）：沒標＝灰色「?」；標了＝綠（對）／紅（錯）；選號碼的小視窗 .pg-tnp 開在線路圖框裡 */
.pg-tn-q{font:700 15px/1 Arial,"Helvetica Neue",Helvetica,sans-serif;fill:#9ca3af;stroke:#fff;stroke-width:4px;stroke-linejoin:round;paint-order:stroke;text-anchor:middle;dominant-baseline:central}
.pg-tn-me .ok{fill:#15803d}
.pg-tn-me .bad{fill:#dc2626}
.pg-tn-me .sep{fill:#6b7280}
.imgview.tn-hot{cursor:pointer}
.imgtools .tn-ans{padding:0 8px;font-size:13px;white-space:nowrap}
.imgtools .tn-ans[aria-pressed="true"]{background:#dbeafe;color:#1d4ed8}
.pg-tnp{position:absolute;z-index:4;width:max-content;max-width:min(300px,calc(100% - 12px));background:#fff;border:1px solid var(--divider);border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.18);padding:6px 8px 8px;font-size:13px;color:#1f2937;cursor:default}
.pg-tnp-h{display:flex;align-items:center;gap:6px;font-weight:700;margin-bottom:4px}
.pg-tnp-x{margin-left:auto;border:none;background:none;font-size:18px;line-height:1;width:28px;height:28px;border-radius:6px;color:#6b7280;cursor:pointer}
.pg-tnp-x:hover{background:#eef0f3}
.pg-tnp-n{color:#6b7280;margin-bottom:6px}
.pg-tnp-g{display:flex;align-items:flex-start;gap:6px;margin:3px 0}
.pg-tnp-gn{flex:0 0 4.4em;color:#6b7280;padding-top:7px;font-size:12px}
.pg-tnp-ts{display:flex;flex-wrap:wrap;gap:4px;max-width:226px}
.pg-tnp-ts button{min-width:34px;height:30px;padding:0 5px;border:1px solid #d1d5db;border-radius:7px;background:#f9fafb;font:700 14px/1 Arial,"Helvetica Neue",Helvetica,sans-serif;color:#1f2937;cursor:pointer}
.pg-tnp-ts button:hover{background:#eef2ff;border-color:#a5b4fc}
.pg-tnp-ts button.ok{background:#dcfce7;border-color:#16a34a;color:#15803d}
.pg-tnp-ts button.bad{background:#fee2e2;border-color:#dc2626;color:#b91c1c}
.pg-tnp-why{margin-top:8px;padding:6px 8px;border-radius:7px;background:#fef2f2;color:#991b1b;line-height:1.45}
.pg-tnp-f{margin-top:8px;text-align:right}
.pg-tnp-clr{border:1px solid #d1d5db;background:#fff;border-radius:7px;height:28px;padding:0 10px;font-size:12px;color:#4b5563;cursor:pointer}
.pg-tnp-clr:hover{background:#f3f4f6}
.pg-cut{position:absolute;left:12px;right:12px;top:10px;z-index:3;background:#fff7e6;border:1.5px solid #f59f00;color:#7c2d12;border-radius:10px;padding:7px 12px;font-size:13px;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.12);pointer-events:none}
.pg-cut[hidden]{display:none}
.pgseg .pgcount.cut{background:#fde68a;color:#7c2d12}
.tips{margin-top:14px;padding:10px 14px;border-radius:10px;background:#eef6ff;border:1px solid #c7dcf0}
.tips h4{margin:0 0 6px;font-size:13.5px;color:#173b57}
.tips ol{margin:0;padding-left:20px;line-height:1.7;font-size:13px}
/* 第五題：三段式選擇開關、液面控制器、電極棒、交替電驛、上水塔 */
.cos-pos3{fill:#f4f1e8}.cos-pos3.off{font-size:10.5px}
.cos-tick{stroke:#cbd5df;stroke-width:2;stroke-linecap:round}
.cos-k3{display:none}
.sw3-0 .cos-k3.k0,.sw3-1 .cos-k3.k1,.sw3-2 .cos-k3.k2{display:inline}
.cos-half{cursor:pointer}
.cos-arw{fill:#2ec4b6;font-size:11px;opacity:0;pointer-events:none}
.cos-half:hover .cos-arw{opacity:1}
.cos-ctl:hover .cos-disc{stroke:#2ec4b6;stroke-width:2.5}
@media (hover:none){.cos-arw{opacity:.75}}   /* 觸控裝置沒有滑鼠經過：左右箭頭直接顯示，看得出點哪一半往哪邊扳 */
.sw3-0 .cos-half.l .cos-arw,.sw3-2 .cos-half.r .cos-arw{display:none}
.fs-body{fill:#e9ecef;stroke:#7d8790;stroke-width:1.3}
.fs-face{fill:#f8f9fa;stroke:#adb5bd;stroke-width:1}
.fs-led{fill:#2a2f35;stroke:#111}
.is-coil .fs-led.pw{fill:#4ade80;filter:url(#fGlow)}
.is-on .fs-led.op{fill:#ff3b30;filter:url(#fGlow)}
.fs-sense{display:none}.is-sense .fs-sense{display:inline}
.fs-drop{fill:#3b82f6;stroke:#1d4ed8;stroke-width:1}
.fs-tag{display:none}.is-on .fs-tag{display:inline}
.fs-tag rect{fill:#d92d20}.fs-tag text{fill:#fff;font-size:9px;font-weight:900}
.ep-holder{fill:#495057;stroke:#212529;stroke-width:1}
.ep-rod{fill:#adb5bd;stroke:#495057;stroke-width:.8}
.ep-wet{fill:#3b82f6;opacity:0}
.wet-1 .ep-wet.w1,.wet-2 .ep-wet.w2,.wet-3 .ep-wet.w3{opacity:.85}
.mr-cover{fill:url(#gCover)}
.mr-sa,.mr-sb{fill:#3a4048}
.mr-st{font-size:10px;font-weight:900;fill:#8a939c;font-family:var(--mono)!important}
.side-a .mr-sa,.side-b .mr-sb{fill:#ffb000}
.side-a .mr-st.a,.side-b .mr-st.b{fill:#111}
.tk-wall{fill:#cfd8e3;stroke:#64748b;stroke-width:1.5}
.tk-in{fill:#f8fafc;stroke:#94a3b8;stroke-width:1}
.tk-water{fill:#60a5fa;opacity:.75}
.tk-surf{stroke:#1d4ed8;stroke-width:2}
.tk-mark{stroke:#d92d20;stroke-width:1.3;stroke-dasharray:5 4;fill:none}
.tk-mark-t{fill:#b42318;font-size:10.5px;font-weight:800}
.tk-e{fill:#173b57;font-size:11px;font-weight:900;font-family:var(--mono)!important}
.tk-pipe{fill:#9aa3ad;stroke:#4b5563;stroke-width:1}
.tk-tap{fill:#6b7280;stroke:#374151;stroke-width:1}
.tk-flow{stroke:#2563eb;stroke-width:4;stroke-dasharray:8 6;opacity:0;animation:tkflow .6s linear infinite}
.tk-arrow{fill:none;stroke:#2563eb;stroke-width:2.5;opacity:0}
.pump0 .tk-flow.in0,.pump0 .tk-arrow.in0,.pump1 .tk-flow.in1,.pump1 .tk-arrow.in1{opacity:.9}
.tk-outflow{display:none}.tk-use .tk-outflow{display:inline}.tk-use .tk-flow.out{opacity:.9}
.tk-use-t{fill:#1d4ed8;font-size:11px;font-weight:800}
@keyframes tkflow{to{stroke-dashoffset:-14}}
.tk-lv{fill:#173b57;font-size:20px;font-weight:900;font-family:var(--mono)!important}
.tk-st{fill:#4b5563;font-size:11px;font-weight:700}
.tk-warn{display:none}
.tk-over .tk-warn.over{display:inline;animation:blink .8s steps(2) infinite}
.tk-warn rect{fill:#c2410c}.tk-warn text{fill:#fff;font-size:10.5px;font-weight:900}
.tk-use .tk-btn.use rect{fill:#173b57;stroke:#173b57}.tk-use .tk-btn.use text{fill:#fff}
/* ───────── 室內配線第一題：給水源、水槽（in-）與液位控制器 61F-G1（g1-）；類別一律加前綴 ───────── */
.in-pit{fill:#dccfb4;stroke:#8a6d3b;stroke-width:1.2}
.in-leg{fill:none;stroke:#64748b;stroke-width:3}
.tk-water.in-srcw{fill:#0ea5b7}
.L-dtop:has(.devtop.d-tank.pump0) .tk-flow.in-srcflow{opacity:.9}
.in-dry .tk-flow,.in-dry .tk-arrow,.L-dtop:has(.devtop.d-tank.in-dry) .tk-flow.in-srcflow{opacity:0}
.in-dry .tk-warn.in-drywarn{display:inline;animation:blink .8s steps(2) infinite}
.g1-body{fill:#e9ecef;stroke:#7d8790;stroke-width:1.3}
.g1-face{fill:#f8f9fa;stroke:#adb5bd;stroke-width:1}
.g1-warn{fill:#c0392b;font-size:10.5px;font-weight:800}
.g1-led{fill:#2a2f35;stroke:#111}
.is-coil .g1-led.g1-pw{fill:#4ade80;filter:url(#fGlow)}
.g1-u1 .g1-led.g1-lu1,.g1-u2 .g1-led.g1-lu2{fill:#ff3b30;filter:url(#fGlow)}
.g1-lt{fill:#1f2937;font-size:11px;font-weight:800}
.g1-ls{fill:#6b7280;font-size:9px;font-weight:700}
.g1-out{fill:#e5e7eb;stroke:#cbd5e1;stroke-width:1}
.g1-st{display:none}
.g1-st text{fill:#374151;font-size:10px;font-weight:900}
.g1-run .g1-st-run,.g1-alarm .g1-st-alarm,.g1-full .g1-st-full{display:inline}
.g1-run .g1-st-run text{fill:#087e70}
.is-coil.g1-alarm .g1-st-alarm text{fill:#b42318}
/* ───────── 線路圖運作顯示（送電後；類別一律 fl- 開頭，不可用通用短名） ───────── */
svg.fl{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
svg.fl *{pointer-events:none}
.fl-ln{stroke-width:7px;stroke-linecap:round;fill:none}
.fl-ln.fl-flow{stroke:#2b8a3e}
.fl-ln.fl-live{stroke:#ffa8a8}
.fl-run{stroke:#d3f9d8;stroke-width:2.4px;stroke-linecap:round;stroke-dasharray:7 15;fill:none;animation:flRun .9s linear infinite}
@keyframes flRun{from{stroke-dashoffset:22}to{stroke-dashoffset:0}}
.fl-dot.fl-flow{fill:#2b8a3e}
.fl-dot.fl-live{fill:#ffa8a8}
/* 元件加亮：光暈＋色塊＋裁下來的線路圖（相乘：黑線還是黑、白底變色），整組放大 */
.fl-z.fl-big{transform:scale(1.15);animation:flPop .22s ease-out}
@keyframes flPop{from{transform:scale(1)}to{transform:scale(1.15)}}
.fl-tint{isolation:isolate}
.fl-img{mix-blend-mode:multiply}
.fl-glow{filter:blur(6px);opacity:.8}
.fl-rim{fill:none;stroke-width:2px}
.fl-cur .fl-halo{fill:#d3f9d8}.fl-cur .fl-glow{fill:#51cf66}.fl-cur .fl-rim{stroke:#2b8a3e}
.fl-act .fl-halo{fill:#fff3bf}.fl-act .fl-glow{fill:#fcc419}.fl-act .fl-rim{stroke:#e67700}
.fl-weak .fl-halo{fill:#ffe8cc}.fl-weak .fl-glow{display:none}.fl-weak .fl-rim{stroke:#e8590c;stroke-dasharray:5 4}
.fl-lamp-R .fl-halo{fill:#ffc9c9}.fl-lamp-R .fl-glow{fill:#ff6b6b}.fl-lamp-R .fl-rim{stroke:#e03131}
.fl-lamp-Y .fl-halo{fill:#ffec99}.fl-lamp-Y .fl-glow{fill:#fcc419}.fl-lamp-Y .fl-rim{stroke:#f08c00}
.fl-lamp-G .fl-halo{fill:#b2f2bb}.fl-lamp-G .fl-glow{fill:#51cf66}.fl-lamp-G .fl-rim{stroke:#2f9e44}
.fl-lamp-W .fl-halo{fill:#fff9db}.fl-lamp-W .fl-glow{fill:#ffe066}.fl-lamp-W .fl-rim{stroke:#adb5bd}
.fl-lamp-B .fl-halo{fill:#a5d8ff}.fl-lamp-B .fl-glow{fill:#4dabf7}.fl-lamp-B .fl-rim{stroke:#1971c2}
.fl-el.fl-weak[class*="fl-lamp-"] .fl-halo{opacity:.55}   /* 燈很暗（有電流但沒全亮）：燈色淡淡的、不放大 */
.fl-el.fl-weak[class*="fl-lamp-"] .fl-rim{stroke-dasharray:5 4}
.fl-ring{fill:none;stroke:#e67700;stroke-width:3px;stroke-dasharray:14 10}
.fl-spin{animation:flSpin 1.4s linear infinite}
@keyframes flSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.fl-run,.fl-spin,.fl-z.fl-big{animation:none}.fl-run{display:none}}
/* 工具列：運作顯示（放在「線路圖 自由｜對照」那一組的最右邊，省一個間距與外框；工具列 1280～2200 寬都要維持一行） */
.pgseg .fl-btn{display:inline-flex;align-items:center;gap:3px;margin-left:3px;padding:2px 8px 2px 6px;position:relative;color:#4b5563}
.pgseg .fl-btn::before{content:"";position:absolute;left:-3px;top:4px;bottom:4px;width:1px;background:#d5d9de}
.pgseg .fl-btn[hidden]{display:none}
.pgseg .fl-btn .fl-ico{width:13px;height:13px;fill:currentColor;flex:none}
.pgseg .fl-btn.on,.pgseg .fl-btn.on:hover{background:#2b8a3e;color:#fff}
.pgseg .fl-btn.fl-off{opacity:.45;cursor:default}
.pgseg .fl-btn.fl-off:hover{color:#4b5563}
@media (max-width:2250px){.pgseg .fl-btn .fl-long{display:none}}
@media (min-width:2101px) and (max-width:2250px){          /* 跟 2100 以下一樣把「線路圖」「已接…段」收起來，運作鈕才放得下（b3 的工具列最滿） */
  .pgseg .lbl-long{display:none}
  .pgseg{padding:1px 2px}
  .pgseg .pgl{display:none}
  .pgseg .pgcount{margin-left:4px;padding:0 4px}
}
@media (max-width:1500px){.pgseg .fl-btn{padding:2px 5px}.pgseg .fl-btn .fl-lab{display:none}}
@media (max-width:1300px){.pgseg .fl-btn{padding:2px 4px}}
/* ───── 第六題新器具：電動機斷路器（mpcb）、接觸器上掛限時電驛（tmr）、3E 電驛（e3）、電流轉換器（cvt）。類別名稱一律加前綴 ───── */
.mp-body{fill:#2f353c;stroke:#15181c;stroke-width:1.4}
.mp-face{fill:#3d444c;stroke:#1d2125;stroke-width:1}
.mp-sub{fill:#9aa4ae;font-size:9px;font-weight:800;font-family:var(--mono)!important}
.mp-dial{fill:#e9edf1;stroke:#6b7280;stroke-width:1.2}
.mp-dial-n{stroke:#1f2937;stroke-width:2;stroke-linecap:round}
.mp-st-t{font-size:10px;font-weight:900;font-family:var(--mono)!important;display:none}
.mp-st-t.off{fill:#9aa4ae}.mp-st-t.on{fill:#4ade80}.mp-st-t.mp-st-trip{fill:#fbbf24}
.pos-off .mp-st-t.off,.pos-on .mp-st-t.on,.pos-trip .mp-st-t.mp-st-trip{display:inline}
.pos-trip .mp-st-t.mp-st-trip{animation:blink 1s steps(2) infinite}
.mp-btn{cursor:pointer}
.mp-btn rect{stroke-width:1.3;filter:drop-shadow(0 2px 0 rgba(0,0,0,.45))}
.mp-btn.mp-start rect{fill:#16a34a;stroke:#0b5d2a}
.mp-btn.mp-stop rect{fill:#dc2626;stroke:#7f1d1d}
.mp-btn text{fill:#fff;font-size:14px;font-weight:900}
.mp-btn:hover rect{filter:brightness(1.15) drop-shadow(0 2px 0 rgba(0,0,0,.45))}
.mp-btn:active rect{transform:translateY(2px);filter:none}
.mp-test rect{fill:#64748b;stroke:#334155}
.mp-test text{font-size:9px}
.tmr-mod{fill:#e7ebef;stroke:#8a939c;stroke-width:1.2}
.tmr-track{fill:#cfd6dd;stroke:#9aa3ad;stroke-width:.8}
.tmr-bar{fill:#f59e0b}
.tmr-done .tmr-bar{fill:#16a34a}
.tmr-set{fill:#1f2937;font-size:10px;font-weight:800;font-family:var(--mono)!important}
.tmr-led{fill:#2a2f35;stroke:#111}
.tmr-done .tmr-led{fill:#4ade80;filter:url(#fGlow)}
.tmr-adj rect{fill:#475569;stroke:#1e293b}
.tmr-adj text{font-size:11px}
.e3-body{fill:#3a3f46;stroke:#1d2125;stroke-width:1.3}
.e3-face{fill:#eef1f4;stroke:#9aa3ad;stroke-width:1}
.e3-pl{fill:#cbd5df;font-size:8.5px;font-weight:800;font-family:var(--mono)!important}
.e3-led{fill:#2a2f35;stroke:#111}
.is-coil .e3-led.pw{fill:#4ade80;filter:url(#fGlow)}
.is-on .e3-led.op{fill:#ff3b30;filter:url(#fGlow)}
.e3-lt{fill:#4b5563;font-size:7.5px;font-weight:800}
.e3-win{fill:#0f172a;stroke:#334155;stroke-width:1}
.e3-amps{fill:#4ade80;font-size:11px;font-weight:800;font-family:var(--mono)!important}
.e3-cause{fill:#f87171;font-size:10px;font-weight:900}
.e3-track{fill:#cfd6dd;stroke:#9aa3ad;stroke-width:.6}
.e3-heat{fill:#f59e0b}
.e3-iset{fill:#1f2937;font-size:9.5px;font-weight:800}
.e3-adj rect{fill:#475569;stroke:#1e293b}
.e3-adj text{font-size:11px}
.e3-btn text{font-size:9.5px}
.cvt-body{fill:#e5e7eb;stroke:#6b7280;stroke-width:1.3}
.cvt-hole{fill:#374151;stroke:#111827;stroke-width:1.2}
.cvt-cond{stroke:#b45309;stroke-width:4;stroke-linecap:round;opacity:.85}
.is-on .cvt-cond{stroke:#f59e0b}
.cvt-win{fill:#0f172a;stroke:#334155;stroke-width:1}
.cvt-amps{fill:#4ade80;font-size:10.5px;font-weight:800;font-family:var(--mono)!important}
/* ───── 第七題新器具：電動機斷路器的輔助接點（ax-，跟著 nfb 的 pos-on／pos-trip）、閃爍電驛（fr-）。類別名稱一律加前綴 ───── */
.ax-body{fill:#e5e7eb;stroke:#6b7280;stroke-width:1.2}
.ax-t{fill:#374151;font-size:9.5px;font-weight:800}
.ax-ln{stroke:#9ca3af;stroke-width:2;stroke-dasharray:3 3}
.ax-cap{fill:#4b5563;font-size:9.5px;font-weight:700}
.ax-win{fill:#1f2937;stroke:#4b5563;stroke-width:1}
.ax-on{font-size:9.5px;font-weight:900;display:none}
.pos-on .ax-win.ax-no{fill:#14532d}
.pos-on .ax-on.ax-no{display:inline;fill:#4ade80}
.pos-trip .ax-win.ax-fno{fill:#78350f}
.pos-trip .ax-on.ax-fno{display:inline;fill:#fbbf24}
.fr-body{fill:#e9ecef;stroke:#8d98a3;stroke-width:1.3}
.fr-pw{fill:#4b5563;stroke:#1f2937;stroke-width:1}
.is-coil .fr-pw{fill:#ffb020;filter:url(#fGlow)}
.fr-win{fill:#1f2937;stroke:#4b5563;stroke-width:1}
.fr-lamp{fill:#374151;stroke:#111827;stroke-width:1}
.is-coil.fr-a .fr-lamp.fr-la,.is-coil.fr-b .fr-lamp.fr-lb{fill:#4ade80;filter:url(#fGlow)}
.fr-side{fill:#6b7280;font-size:9.5px;font-weight:800}
.fr-a .fr-side.fr-sa,.fr-b .fr-side.fr-sb{fill:#fff}
.fr-pin{fill:#6b7280;font-size:8.5px;font-weight:700;font-family:var(--mono)!important}
.fr-warn{fill:#c0392b;font-size:9.5px;font-weight:800}
.d-warn{font-size:11px;font-weight:700;fill:#c0392b}

/* ── 指針式三用電表（an-）、驗電筆圖（tp-） ── */
.lcd.an-lcd{height:auto;display:block;padding:4px 4px 3px;background:linear-gradient(#fbf7ea,#ece5cf);position:relative}
.an-dial{display:block;width:100%;height:auto}
.an-arc{fill:none;stroke:#1d2618;stroke-width:1.6}
.an-tk{stroke:#1d2618;stroke-width:1.5;fill:none}.an-tk-s{stroke-width:.9}
.an-tx{font:700 9.5px var(--mono);fill:#1d2618;text-anchor:middle}
.an-unit{font:800 13px var(--font);fill:#7a2a12;text-anchor:middle}
.an-needle{stroke:#c1121f;stroke-width:1.8;stroke-linecap:round;transform-box:view-box;transform-origin:118px 124px;transform:rotate(-50deg);transition:transform .45s cubic-bezier(.3,1.5,.5,1)}
.an-hub{fill:#1f2328}
.an-read{position:absolute;right:8px;bottom:3px;display:flex;align-items:baseline;color:#1d2618;font-family:var(--mono)}
.an-lcd .lcd-v{font-size:15px;line-height:1.2}.an-lcd .lcd-u{font-size:11px;margin-left:3px}
.lcd.an-lcd.warn{background:linear-gradient(#ffb4a8,#f28b7d)}
.lcd.an-lcd.warn .an-read{position:static;justify-content:center}
.lcd.an-lcd.warn .lcd-v{font-size:15px;line-height:1.6}
.tp-pen{display:block;margin:4px 0 2px}
.tp-tip{fill:#cfd6dd;stroke:#5b6670;stroke-width:1}
.tp-body{fill:rgba(190,225,255,.28);stroke:#9fc4e6;stroke-width:1.2}
.tp-res{fill:#8a6a3b}
.tp-spring{fill:none;stroke:#aab4bd;stroke-width:1.2}
.tp-cap{fill:#cfd6dd;stroke:#5b6670;stroke-width:1}
.tp-clip{fill:none;stroke:#aab4bd;stroke-width:1.6;stroke-linecap:round}
.tp-neon{fill:#4a3a36;stroke:#77615a;stroke-width:1}
.tp-glow{fill:#ff5a1f;opacity:0}
.tp-on .tp-neon{fill:#ff7a2e;stroke:#ffd0a8}
.tp-on .tp-glow{opacity:.55;filter:blur(4px);animation:tpFlick .5s ease-in-out infinite alternate}
@keyframes tpFlick{from{opacity:.4}to{opacity:.7}}
/* ── 觸電（sk-） ── */
body.sk-shake{animation:skShake .9s linear}
body.sk-shake::after{content:'';position:fixed;inset:0;z-index:9998;pointer-events:none;background:radial-gradient(circle,rgba(255,255,255,.75),rgba(255,214,0,.55) 40%,rgba(224,49,49,.5));animation:skFlash .9s ease-out forwards}
@keyframes skShake{0%,100%{transform:translate(0,0)}10%{transform:translate(-14px,6px)}20%{transform:translate(12px,-8px)}30%{transform:translate(-10px,-6px)}40%{transform:translate(14px,8px)}50%{transform:translate(-12px,4px)}60%{transform:translate(10px,-6px)}70%{transform:translate(-8px,6px)}80%{transform:translate(6px,-4px)}90%{transform:translate(-4px,2px)}}
@keyframes skFlash{0%{opacity:1}15%{opacity:.2}30%{opacity:.9}45%{opacity:.15}60%{opacity:.6}100%{opacity:0}}
.sk-rest{position:fixed;left:50%;top:64px;transform:translateX(-50%);z-index:9997;background:#b3261e;color:#fff;font-size:14px;font-weight:700;padding:9px 16px;border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.35);max-width:92vw;text-align:center}
.sk-rest[hidden]{display:none}
.sk-rest .sk-n{font-family:var(--mono);font-size:17px;color:#ffe066}
@media (prefers-reduced-motion:reduce){body.sk-shake{animation:none}}
/* ── 學科測驗連結（ql-）、電動起子（ed-） ── */
.ql-link{display:flex;align-items:center;gap:12px;margin:4px 0 30px;padding:12px 16px;border-radius:14px;background:linear-gradient(100deg,#0064b2,#1f7fc9);color:#fff;text-decoration:none;box-shadow:0 8px 22px rgba(0,60,120,.22);flex-wrap:wrap}
.ql-link:hover{filter:brightness(1.06)}
.ql-ico{font-size:28px;line-height:1}
.ql-txt{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:2px}
.ql-txt b{font-size:17px}
.ql-txt small{font-size:12.5px;opacity:.9;line-height:1.5}
.ql-w{font-size:13px;background:rgba(255,255,255,.16);border-radius:9px;padding:4px 10px;white-space:nowrap}
.ql-w[hidden]{display:none}
.ql-go{font-weight:800;font-size:14px;background:#fff;color:#0064b2;border-radius:9px;padding:6px 12px;white-space:nowrap}
.ed-n{margin-left:5px;font-size:11px;font-weight:800;background:#e8590c;color:#fff;border-radius:8px;padding:0 6px;min-width:18px;text-align:center;font-family:var(--mono)}
.ed-n:empty{display:none}
.ed-empty .ed-n{background:#8b949e}
.stage.tool-edriver .t{cursor:inherit}
.stage.tool-edriver{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='rotate(-45 16 16)'%3E%3Crect x='14.6' y='0' width='2.8' height='9' fill='%23c9d1d9' stroke='%23333' stroke-width='.8'/%3E%3Crect x='10' y='9' width='12' height='12' rx='3' fill='%23e8590c' stroke='%23652'/%3E%3Crect x='12.5' y='20' width='7' height='11' rx='2' fill='%23333'/%3E%3C/g%3E%3C/svg%3E") 4 4,pointer}
/* ───────── 乙級工業配線第一站（2026-11-24）：本題的頁面（p1-）、指定位址（asg-）、PLC 程式視窗（pq-）、參考圖分頁（dgp-）、
   器具外觀 PLC（plcf-）、安全電驛（srm-）、電源供應器（psu-）、2b 緊急停止（e2b-） ───────── */
.stage-tag.e-tag{background:#5b3a8c}
#cardsE .tc-meta{padding-right:52px}           /* 乙級小卡的字比較多：右下角留給「開始 ›」 */
.p1-show,.p1-show-i{display:none!important}
body.p1-task li.p1-show{display:list-item!important}
body.p1-task span.p1-show-i{display:inline!important}
body.p1-task .p1-hide{display:none!important}
.asg-chip,.pq-btn{flex:none}
.asg-chip[hidden],.pq-btn[hidden],.dgp[hidden],.asg-re[hidden],.pq-errs[hidden]{display:none!important}
.asg-chip{display:inline-flex;align-items:center;gap:7px;border:1.5px solid #c4b5fd;background:#f5f3ff;border-radius:10px;padding:3px 4px 3px 9px;white-space:nowrap;color:#4c1d95}
.asg-t{font-weight:800;font-size:11.5px;letter-spacing:.04em}
.asg-vals{display:inline-flex;gap:9px}
.asg-p{display:inline-flex;align-items:baseline;gap:3px}
.asg-k{font-size:11px;color:#6d28d9;font-weight:700}
.asg-p b{font-family:var(--mono);font-size:15px;color:#2e1065}
.asg-re{border:1px solid #a78bfa;background:#fff;color:#5b21b6;font-weight:700;font-size:11.5px;border-radius:7px;padding:3px 7px;cursor:pointer}
.asg-re:hover{background:#ede9fe}
.pq-btn{display:inline-flex;align-items:center;gap:5px;border:1.5px solid #0f6b5c;background:#ecfdf5;color:#065f46;font-weight:800;font-size:13px;border-radius:9px;padding:5px 9px;cursor:pointer;white-space:nowrap}
.pq-btn:hover{filter:brightness(.97)}
.pq-btn b{font-family:var(--mono);font-size:11.5px;background:#fee2e2;color:#991b1b;border-radius:6px;padding:1px 6px}
.pq-btn b.on{background:#d1fae5;color:#065f46}
@media (max-width:1700px){.asg-t{display:none}}
@media (max-width:1439px){.pq-btn .pq-ico{display:none}.asg-vals{gap:6px}.asg-p b{font-size:13.5px}}
/* 西門子版（PLC 廠牌切換，2026-12-01）：頂列「TIA 編輯器」鈕（借 .pq-btn 的樣子）＋同頁面板。編輯器本身的樣式在 css/s7lad.css（s7- 開頭，切到西門子才載入）。
   面板蓋在接線盤上方（#stage 裡、z-index 8：比三用電表高、比警告橫幅與提示低），編輯區至少 420px 高（教室 1280×720、1366×768 都夠） */
.tia-btn{border-color:#0b5394;background:#eef5fc;color:#0b3d6e}
.tia-btn.on{background:#0b5394;color:#fff}
.tia-btn.on b{background:#fff;color:#0b3d6e}
.tia-panel{position:absolute;left:8px;right:8px;bottom:8px;z-index:8;display:flex;flex-direction:column;height:min(calc(100% - 16px),max(472px,84%));background:#eceff2;border:1px solid #5b6b7a;border-radius:8px;box-shadow:0 12px 32px rgba(0,0,0,.32);overflow:hidden}
.tia-panel[hidden]{display:none}
.tia-hd{flex:none;display:flex;align-items:center;gap:10px;height:32px;padding:0 8px 0 12px;background:#1d3449;color:#fff;font-size:13px;white-space:nowrap}
.tia-sub{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#b8c7d6;font-size:12px}
.tia-grow{flex:1}
.tia-note{flex:none;color:#fcd34d;font-size:12px}   /* 常駐提示：還沒下載的修改只存在這台電腦（2026-12-01 審查） */
.tia-note[hidden]{display:none}
.tia-x{flex:none;border:1px solid #8ea6bd;background:#fff;color:#1d3449;border-radius:5px;font-weight:700;font-size:12px;padding:3px 10px;cursor:pointer}
.tia-x:hover{background:#e8eef4}
.tia-host{position:relative;flex:1;min-height:420px}
/* 西門子的指定位址（%I1.1）比三菱（X11）長，加上 TIA 鈕比「PLC 程式」寬：1280 寬的教室螢幕頂列放不下「交卷」→ 只在西門子版的頁面（body.p1-s7）收緊 */
@media (max-width:1439px){body.p1-s7 .asg-vals{gap:4px}body.p1-s7 .asg-p{gap:2px}body.p1-s7 .asg-p b{font-size:12.5px;letter-spacing:-.03em}body.p1-s7 .asg-chip{gap:5px;padding-left:7px}body.p1-s7 .tia-btn{padding:5px 7px}}
@media (max-width:1300px){body.p1-s7 #tiaBadge{display:none}}   /* 1280 寬還差一點：鈕上的網路數收起來（PLC 面板、狀態列照樣看得到） */
/* 老師多一顆「載入標準答案」（2026-12-01 審查：老師開西門子版 1280 寬題名剩 78px）：西門子版的頁面 1600 寬以下只寫「標準答案」（title 有全名）；三菱版不動 */
@media (max-width:1599px){body.p1-s7 #btnRef .ref-l{display:none}}
/* 動作說明分頁：示意圖、TB2 接點表、這一次的指定位址 */
.e1-scheme{display:block;width:100%;height:auto;border:1px solid var(--divider);border-radius:6px;background:#fff}
.e1-tb2{border-collapse:collapse;font-size:12.5px;margin:4px 0 8px}
.e1-tb2 th,.e1-tb2 td{border:1px solid #d6d3cc;padding:3px 8px;text-align:left}
.e1-tb2 th{background:#f3f1ec}
.e1-tb2 td:first-child{font-family:var(--mono);white-space:nowrap}
.asg-box{border:1.5px solid #c4b5fd;background:#faf8ff;border-radius:10px;padding:8px 10px;margin:0 0 12px}
.asg-box h4{margin:0 0 6px;color:#4c1d95}
.asg-tbl{border-collapse:collapse;font-size:12.5px;width:100%}
.asg-tbl th{text-align:left;font-weight:700;color:#4b5563;padding:3px 6px 3px 0}
.asg-tbl td{padding:3px 5px;white-space:nowrap}
.asg-tbl td b{font-family:var(--mono);font-size:15px;color:#2e1065}
.asg-box p{margin:6px 0 0;font-size:12px}
/* 參考圖分頁：主線路／配置圖／時序圖 */
.side.dgp-on .pane[data-pane="diagram"].on{flex-direction:column}
.dgp{display:flex;flex-wrap:wrap;gap:4px;padding:6px 8px;border-bottom:1px solid var(--divider);background:#fbfaf7;flex:none}
.dgp button{border:1px solid #d1d5db;background:#fff;border-radius:7px;padding:3px 9px;font-size:12.5px;font-weight:700;color:#4b5563;cursor:pointer;white-space:nowrap}
.dgp button.on{background:var(--navy);border-color:var(--navy);color:#fff}
/* PLC 程式視窗 */
.modal .box.pq-box{width:min(840px,96vw)}
.pq-body{display:flex;gap:20px;overflow:auto;min-height:0;margin-top:10px}
.pq-qrcol{flex:none;width:262px;text-align:center}
.pq-qr{width:252px;min-height:252px;margin:0 auto;display:flex;align-items:center;justify-content:center;border:1px solid var(--divider);border-radius:12px;background:#fff}
.pq-qr svg{width:246px;height:246px;display:block}
.pq-qr.pq-expired svg{opacity:.15}
.pq-msg{padding:16px;font-size:13.5px;font-weight:700;color:#374151;display:flex;align-items:center;gap:8px;line-height:1.5}
.pq-msg.bad{color:#a4161a}.pq-msg.mute{color:var(--sub)}
.pq-code{margin-top:8px;font-size:13px;color:var(--sub)}
.pq-code b{font-family:var(--mono);font-size:22px;letter-spacing:.14em;color:var(--ink);margin-left:4px}
.pq-left{font-size:12.5px;color:var(--sub);margin-top:2px}
.pq-left.bad{color:#a4161a;font-weight:700}
.pq-info{flex:1;min-width:0;font-size:13.5px}
.pq-lead{margin:0 0 6px;line-height:1.6}
.pq-url{margin:0 0 8px;font-family:var(--mono);font-size:11.5px;color:#6b7280;word-break:break-all}
.pq-acts{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.pq-acts a.btn-line{text-decoration:none;display:inline-block}
.pq-state{background:#f3f4f6;border-radius:9px;padding:8px 10px;line-height:1.6}
.pq-bad{color:#a4161a;font-weight:700}
.pq-live{color:#0f6b5c;font-weight:700}
.pq-errs{margin-top:8px;background:#fff7ed;border:1px solid #fed7aa;border-radius:9px;padding:8px 10px;font-size:12.5px;color:#7c2d12}
.pq-errs ul{margin:4px 0 0;padding-left:18px}
.pq-view{margin-top:8px}
.pq-view summary{cursor:pointer;font-weight:700;color:var(--navy)}
.pq-il{max-height:260px;overflow:auto;background:#0f172a;color:#e2e8f0;font-family:var(--mono);font-size:12px;line-height:1.45;padding:10px 12px;border-radius:8px;white-space:pre;margin:6px 0 0}
.pq-note{font-size:12px;color:var(--sub);margin:10px 0 0}
@media (max-width:640px){.pq-body{flex-direction:column;align-items:stretch}.pq-qrcol{width:auto}}
/* 成績單（乙級） */
.p1-alert{background:#fff1f0;border:1.5px solid #fca5a5;color:#7f1d1d;border-radius:10px;padding:10px 12px;font-size:13.5px;line-height:1.6;margin-top:12px}
.p1-alert ul{margin:4px 0 0;padding-left:18px}
.p1-why{margin:0 0 6px;font-size:13px;font-weight:700;color:#a4161a}
.p1-sub{font-size:13px;font-weight:800;color:var(--label);margin:10px 0 5px}
.p1-diff{font-size:12px;margin-top:3px;opacity:.9}
.p1-filter{display:flex;gap:4px;margin:8px 0 6px;flex-wrap:wrap}
.p1-filter button{border:1px solid #d1d5db;background:#fff;border-radius:7px;padding:3px 9px;font-size:12px;font-weight:700;color:#4b5563;cursor:pointer}
.p1-filter button.on{background:var(--navy);border-color:var(--navy);color:#fff}
.p1-tblwrap{max-height:420px;overflow:auto;border:1px solid var(--divider);border-radius:9px}
.p1-tbl{width:100%;border-collapse:collapse;font-size:12.5px}
.p1-tbl th{position:sticky;top:0;background:#f3f4f6;color:var(--sub);font-weight:700;padding:5px 6px;text-align:left;z-index:1}
.p1-tbl td{padding:5px 6px;border-top:1px solid var(--divider);vertical-align:top;line-height:1.45}
.p1-tbl td.p1-no{font-family:var(--mono);font-weight:800;white-space:nowrap;text-align:center}
.p1-tbl td.p1-no small{display:block;font-family:var(--font);font-weight:600;font-size:10.5px;color:var(--muted)}
.p1-tbl td.p1-mk{font-weight:900;text-align:center;font-size:15px}
.p1-tbl tr.p1-ok td.p1-mk{color:#15803d}
.p1-tbl tr.p1-ng td{background:#fff5f5}
.p1-tbl tr.p1-ng td.p1-mk{color:#b42318}
.p1-tbl tr.p1-skip td{color:var(--muted)}
.p1-tbl td.p1-none{text-align:center;color:var(--sub);padding:14px}
.p1-other{margin-top:8px}
.p1-other summary{cursor:pointer;font-size:12.5px;font-weight:700;color:var(--sub)}
@media (max-width:640px){
  .p1-tblwrap{max-height:none;border:none}
  .p1-tbl thead{display:none}
  .p1-tbl tr{display:block;border:1px solid var(--divider);border-radius:9px;margin-bottom:6px;padding:4px 6px;position:relative}
  .p1-tbl td{display:block;border:none;padding:2px 0}
  .p1-tbl td.p1-no{text-align:left}
  .p1-tbl td.p1-no small{display:inline;margin-left:6px}
  .p1-tbl td.p1-mk{position:absolute;right:8px;top:4px}
  .p1-tbl td:nth-child(3)::before{content:'預期：';font-weight:700;color:var(--sub)}
  .p1-tbl td:nth-child(4)::before{content:'實際：';font-weight:700;color:var(--sub)}
}
/* 器具外觀：PLC */
.plcf-body{fill:#e6e9ed;stroke:#7d8790;stroke-width:1.3}
.plcf-face{fill:#f8f9fb;stroke:#b6bec7;stroke-width:1}
.plcf-lt{fill:#374151;font-size:10px;font-weight:800;font-family:var(--mono)!important}
.plcf-led{fill:#2a2f35;stroke:#111}
.plcf-pw .plcf-lpw,.plcf-run .plcf-lrun{fill:#4ade80;filter:url(#fGlow)}
.plcf-err .plcf-lerr{fill:#ff3b30;filter:url(#fGlow);animation:plcfBlink 1s steps(2) infinite}
.plcf-proge .plcf-lprog{fill:#ff3b30;filter:url(#fGlow);animation:plcfBlink 1s steps(2) infinite}   /* PROG-E：書寫器寫進去的程式有錯（view.prog==='err'）時閃 */
@keyframes plcfBlink{50%{opacity:.35}}
.plcf-swbox{fill:#e5e7eb;stroke:#9ca3af;stroke-width:1}
.plcf-swt{fill:#374151;font-size:9.5px;font-weight:800;font-family:var(--mono)!important}
.plcf-sw{cursor:pointer}
.plcf-slot{fill:#9ca3af;stroke:#6b7280}
.plcf-knob{fill:#374151;stroke:#111}
.plcf-sw:hover .plcf-knob{fill:#1f2937;stroke:#2563eb;stroke-width:1.5}
.plcf-k-stop{display:none}
.plcf-stop .plcf-k-run{display:none}.plcf-stop .plcf-k-stop{display:inline}
.plcf-io{fill:#374151;font-size:11px;font-weight:900;font-family:var(--mono)!important}
.plcf-l rect{fill:#d5d9de;stroke:#9aa3ad;stroke-width:1}
.plcf-l text{fill:#4b5563;font-size:8.5px;font-weight:800;font-family:var(--mono)!important}
.plcf-l.plcf-on rect{fill:#ff6a3d;stroke:#b42318;filter:url(#fGlow)}
.plcf-ly.plcf-on rect{fill:#ff3b30}
.plcf-l.plcf-on text{fill:#fff}
.plcf-forcetag{display:none}
.plcf-force .plcf-forcetag{display:inline}
.plcf-forcetag rect{fill:#b45309}.plcf-forcetag text{fill:#fff;font-size:10px;font-weight:800}
.plcf-prog{cursor:pointer}
.plcf-pbox{fill:#eef6ff;stroke:#2563eb;stroke-width:1.5}
.plcf-prog:hover .plcf-pbox{fill:#dbeafe}
.plcf-pl{fill:#1e3a8a;font-size:11px;font-weight:800}
.plcf-steps{fill:#1e3a8a;font-size:18px;font-weight:900}
.plcf-noprog .plcf-steps{fill:#b42318}
.plcf-sub{fill:#4b5563;font-size:10.5px;font-weight:700}
.plcf-btn{fill:#0f6b5c}
.plcf-prog:hover .plcf-btn{fill:#0b5146}
.plcf-btnt{fill:#fff;font-size:11px;font-weight:800}
.plcf-errt{fill:#b42318;font-size:11px;font-weight:800}
.plcf-hpptag{display:none;pointer-events:none}.plcf-hpptag.plcf-hpp-on{display:inline}   /* 程式格右上角「書寫器連線中」（手機 10 秒內來過，ui.js 設 topEl._plcHpp） */
.plcf-hpptag rect{fill:#0f6b5c}.plcf-hpptag text{fill:#fff;font-size:9.5px;font-weight:800}
.plcf-hppdot{fill:#86efac;animation:plcfBlink 1.6s steps(2) infinite}
/* 西門子 S7-1200 G2（s7f-，2026-12-01，engine 的 plc_s7／plc_s7sm）：深色機殼、X80／X11 橙色接頭、X10 灰色接頭、I/O 燈綠色 */
.s7f-body{fill:#41474d;stroke:#1f2428;stroke-width:1.3}
.s7f-blk-o{fill:#ee8a2a;stroke:#a85a12;stroke-width:1}
.s7f-blk-g{fill:#a7aeb5;stroke:#6b737b;stroke-width:1}
.s7f-face{fill:#2a2f34;stroke:#15181b;stroke-width:1}
.s7f-plate{fill:#f3f4f6;stroke:#9ca3af;stroke-width:1}
.s7f-brand{fill:#19b5b0;font-size:17px;font-weight:900;letter-spacing:.1em}
.s7f-model{fill:#e5e7eb;font-size:11px;font-weight:700}
.s7f-cpu{fill:#fff;font-size:12.5px;font-weight:800}
.s7f-mlfb{fill:#9ca3af;font-size:9.5px;font-weight:700;font-family:var(--mono)!important}
.s7f-cap{fill:#d1d5db;font-size:10px;font-weight:700}
.s7f-note{fill:#cbd5e1;font-size:9.5px;font-weight:600}
.s7f-led{fill:#4a5057;stroke:#111}
.s7f-lt{fill:#e5e7eb;font-size:9.5px;font-weight:800;font-family:var(--mono)!important}
.s7f-run .s7f-lrs{fill:#3ddc84;filter:url(#fGlow)}
.s7f-stop .s7f-lrs{fill:#f5c518;filter:url(#fGlow)}
.s7f-err .s7f-lerr{fill:#ff3b30;filter:url(#fGlow);animation:plcfBlink 1s steps(2) infinite}
.s7f-coil .s7f-ldiag{fill:#3ddc84;filter:url(#fGlow)}
.s7f-nocoil .s7f-ldiag,.s7f-pol .s7f-ldiag{fill:#ff3b30;filter:url(#fGlow);animation:plcfBlink 1s steps(2) infinite}
.s7f-swbox{fill:#3a4046;stroke:#5b636b;stroke-width:1}
.s7f-swt{fill:#e5e7eb;font-size:9.5px;font-weight:800;font-family:var(--mono)!important}
.s7f-sw{cursor:pointer}
.s7f-slot{fill:#1f2428;stroke:#6b7280}
.s7f-knob{fill:#d1d5db;stroke:#111}
.s7f-sw:hover .s7f-knob{fill:#fff;stroke:#19b5b0;stroke-width:1.5}
.s7f-k-stop{display:none}
.s7f-swstop .s7f-k-run{display:none}.s7f-swstop .s7f-k-stop{display:inline}
.s7f-io{fill:#cbd5e1;font-size:10.5px;font-weight:900;font-family:var(--mono)!important}
.s7f-l rect{fill:#3a4046;stroke:#5b636b;stroke-width:1}
.s7f-l text{fill:#aeb6bf;font-size:8.5px;font-weight:800;font-family:var(--mono)!important}
.s7f-l.s7f-on rect{fill:#3ddc84;stroke:#15803d;filter:url(#fGlow)}
.s7f-l.s7f-on text{fill:#0b2e17}
.s7f-forcetag{display:none}
.s7f-force .s7f-forcetag{display:inline}
.s7f-forcetag rect{fill:#b45309}.s7f-forcetag text{fill:#fff;font-size:10px;font-weight:800}
.s7f-pbox{fill:#eef6ff;stroke:#19b5b0;stroke-width:1.5}
.s7f-pl{fill:#134e4a;font-size:11px;font-weight:800}
.s7f-steps{fill:#134e4a;font-size:17px;font-weight:900}
.s7f-noprog .s7f-steps{fill:#b42318}
.s7f-sub{fill:#4b5563;font-size:10.5px;font-weight:700}
.s7f-hint{fill:#6b7280;font-size:9.5px;font-weight:600}
.s7f-errt{fill:#fca5a5;font-size:11px;font-weight:800}
.s7f-tag{display:none;pointer-events:none}
.s7f-nocoil .s7f-tag-coil,.s7f-pol .s7f-tag-pol{display:inline}
.s7f-tag rect{fill:#b42318}.s7f-tag text{fill:#fff;font-size:10px;font-weight:800}
/* 安全電驛 */
.srm-body{fill:#f2c94c;stroke:#8a6d00;stroke-width:1.3}
.srm-face{fill:#fffbe6;stroke:#c9a227;stroke-width:1}
.srm-led{fill:#2a2f35;stroke:#111}
.srm-pw .srm-lpw,.srm-k1 .srm-lk1,.srm-k2 .srm-lk2{fill:#4ade80;filter:url(#fGlow)}
.srm-lt{fill:#374151;font-size:10px;font-weight:800;font-family:var(--mono)!important}
.srm-warn{fill:#c0392b;font-size:10px;font-weight:800}
.srm-tag{display:none}
.srm-pol .srm-tag-pol,.srm-sync .srm-tag-sync{display:inline}
.srm-tag rect{fill:#b42318}.srm-tag text{fill:#fff;font-size:9.5px;font-weight:800}
/* 電源供應器 */
.psu-body{fill:#cfd5db;stroke:#6b7480;stroke-width:1.3}
.psu-vent{stroke:#8a939c;stroke-width:3;stroke-linecap:round}
.psu-face{fill:#f3f5f7;stroke:#aab2b9;stroke-width:1}
.psu-led{fill:#2a2f35;stroke:#111}
.psu-on .psu-led{fill:#4ade80;filter:url(#fGlow)}
.psu-lt{fill:#374151;font-size:10px;font-weight:800;font-family:var(--mono)!important}
.psu-amps{fill:#065f46;font-size:12px;font-weight:800;font-family:var(--mono)!important}
.psu-tag{display:none}
.psu-ocp .psu-tag{display:inline}
.psu-tag text{fill:#b42318;font-size:10.5px;font-weight:900}
/* 2b 緊急停止、CB 的說明 */
.e2b-arrow{fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;opacity:.85}
.nfb-note{fill:#5b21b6}
/* 室內配線第二、五題（engine v1.14）：電動機端子盒旁的繞組說明（m6-）、保持電驛 kr（兩顆線圈燈、位置指示窗；kr-） */
.m6-grp{font-size:9.5px}
.kr-led{fill:#4b5563;stroke:#1f2937;stroke-width:1}
.kr-sc .kr-led.kr-lsc{fill:#ff3b30;filter:url(#fGlow)}
.kr-rc .kr-led.kr-lrc{fill:#ffb020;filter:url(#fGlow)}
.kr-lt{fill:#374151;font-size:9px;font-weight:800}
.kr-win{fill:#1f2937;stroke:#111827;stroke-width:1}
.kr-pos{display:none;font-size:10px;font-weight:900}
.kr-set .kr-pos.kr-pset{display:inline;fill:#4ade80}
.kr-reset .kr-pos.kr-preset{display:inline;fill:#e5e7eb}
.kr-warn{fill:#c0392b;font-size:9.5px;font-weight:800}
/* 室內配線第五題：↑ ↓ 指示燈燈罩上的記號（pl 的 params.mark）、昇降機的樓層線（cart 的 look:'lift'） */
.pl-mark{fill:#374151;font-size:24px;font-weight:900;pointer-events:none}
.is-lit .pl-mark{fill:#7a4d00}
.lift-floor{stroke:#173b57;stroke-width:1.5;stroke-dasharray:5 4}
/* 室內配線第八、十題（2026-11-25）：外觀上不存在的端子（不帶燈 EMS 的 X1、X2）、不帶燈的 EMS、鑰匙開關（sw 的 look:'key'）、
   警示燈閃爍（pl 的 params.flash：有電時亮 0.5 秒、熄 0.5 秒）、鐵捲門（cart 的 look:'door'） */
.t.ghost{display:none}
.phs-gnd{fill:#b8c1cc;stroke:#59626b;stroke-width:1}
.ems-dome{fill:url(#gSheen);stroke:rgba(0,0,0,.22);stroke-width:1;pointer-events:none}
.key-cyl{fill:#c9ced4;stroke:#59626b;stroke-width:1.4}
.key-face{fill:#e9ecef;stroke:#868e96;stroke-width:1}
.key-slot{fill:#343a40}
.key-bow{fill:#d4a017;stroke:#7a5a00;stroke-width:1.2}
.key-hole{fill:#f8f9fa;stroke:#7a5a00;stroke-width:.8}
.key-ctl{cursor:pointer}
.key-ctl:hover .key-cyl{stroke:#2ec4b6;stroke-width:2.5}
@keyframes plFlashGlow{0%{opacity:.95}50%{opacity:0}100%{opacity:0}}
@keyframes plFlashHot{0%{opacity:1}50%{opacity:0}100%{opacity:0}}
.is-lit .pl-glow.pl-flash circle{animation:plFlashGlow 1s step-end infinite}
.is-lit .pl-lens.pl-flash .lens-hot{animation:plFlashHot 1s step-end infinite}
.door-hole{fill:#3a3f45;stroke:#2b2f33;stroke-width:1}
.door-floor{fill:#6b7280}
.door-cur{fill:#c4ccd4;stroke:#7b8794;stroke-width:1}
.door-slat{stroke:#8a96a3;stroke-width:1.2}
.door-bar{fill:#8a96a3;stroke:#4b5563;stroke-width:1.2}
.door-handle{fill:#4b5563}
.door-box{fill:#9aa5b1;stroke:#4b5563;stroke-width:1.4}
.door-coil{fill:#b8c1cc;stroke:#4b5563;stroke-width:1.2}
.door-axle{fill:#4b5563}
.is-manual .door-mv{opacity:.45}
/* 判極性（題目 polarityTool，室內第二題）：乾電池＋三用電表直流檔。工具列按鈕、說明、電表面板的電池那一列只在 body.pol-task 出現 */
body:not(.pol-task) .pol-only{display:none!important}
.meter:not(.pol) .pol-only{display:none!important}
.meter.pol{width:320px}
.meter.pol .probe{white-space:nowrap}
.meter.pol .lcd-note{min-height:34px;line-height:1.45}
.probes.pol-only{margin-top:5px}
.probe.bat i{background:#1c7ed6;box-shadow:0 0 0 2px rgba(28,126,214,.25)}
.probe.batn i{background:#f08c00;box-shadow:0 0 0 2px rgba(240,140,0,.25)}
.t.probe-bp .t-ring{stroke:#1c7ed6!important;stroke-width:4.5;stroke-dasharray:none!important}
.t.probe-bn .t-ring{stroke:#f08c00!important;stroke-width:6;stroke-dasharray:none!important;filter:url(#fGlow)}
.bat-pin{pointer-events:none}
.bat-lead{stroke:#1f2328;stroke-width:1.6;fill:none}
.bat-body{stroke:#0b3d75;stroke-width:1.2}
.bat-nub{fill:#adb5bd;stroke:#495057;stroke-width:.8}
.bat-pin.p .bat-body{fill:#1c7ed6}
.bat-pin.n .bat-body{fill:#f08c00;stroke:#8a4b00}
.bat-pin.n .bat-nub{display:none}
.bat-pin text{fill:#fff;font-size:10.5px;font-weight:900;text-anchor:middle}
.an-stop{stroke:#495057;stroke-width:4;stroke-linecap:round}
.an-rev{font:900 11px var(--font);fill:#c1121f}
/* ── 使用後心得、錯誤申報（fb-、rp-；2026-11-27）：首頁兩張白卡（跟題目小卡同一種白底圓角），表單照登入框的輸入框 ── */
.fb-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin:-16px 0 30px}
/* 首頁：排行榜、老師後台（2026-11-27 晚；跟心得那一排同一個樣子） */
.hm-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin:-16px 0 30px}
.hm-row[hidden],.hm-btn[hidden]{display:none}
a.hm-btn{text-decoration:none}
.hm-btn.off{cursor:default;opacity:.72}
.hm-btn.off:hover{transform:none;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.hm-btn.off .fb-go{color:var(--sub)}
.fb-row[hidden]{display:none}
.fb-btn{position:relative;display:flex;align-items:center;gap:12px;min-width:0;padding:12px 16px;border:0;border-radius:14px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.12);transition:transform .15s,box-shadow .15s}
.fb-btn:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(23,59,87,.16)}
.fb-btn:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.fb-ico{font-size:26px;line-height:1;flex:none}
.fb-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.fb-txt b{font-size:16px;color:var(--navy)}
.fb-txt small{font-size:12.5px;color:var(--sub);line-height:1.5}
.fb-go{flex:none;font-weight:800;color:var(--teal);font-size:14px;white-space:nowrap}
.fb-btn.due{box-shadow:0 0 0 2px #f0b43a,0 6px 18px rgba(240,180,58,.25)}
.fb-btn.due small{color:#7a4d00;font-weight:700}
.fb-dot{position:absolute;top:10px;right:10px;width:9px;height:9px;border-radius:50%;background:#e8590c;box-shadow:0 0 0 3px #fff}
.fb-box{position:relative}
.fb-body{flex:1;min-height:0;overflow:auto;margin:0 -6px;padding:2px 6px;display:flex;flex-direction:column;gap:12px}
.fb-f{display:flex;flex-direction:column;gap:5px;font-size:13.5px;font-weight:700;color:var(--label)}
.fb-lab{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.fb-lab small{font-weight:400;color:var(--sub);font-size:12.5px}
.fb-n{margin-left:auto;font-style:normal;font-weight:600;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.fb-n.ok{color:#166534}
.fb-f textarea,.fb-f select{font:inherit;font-weight:400;font-size:15px;line-height:1.55;padding:8px 12px;border:1px solid #cad3dd;border-radius:10px;background:#fff;color:var(--ink);width:100%;box-sizing:border-box}
.fb-f textarea{resize:vertical;min-height:62px}
.fb-f textarea:focus,.fb-f select:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(15,118,110,.16)}
.fb-f .bad{border-color:#b42318}
.fb-stars{display:flex;align-items:center;gap:4px}
.fb-star{border:0;background:none;padding:0 2px;font-size:30px;line-height:1;color:#d6d0c4;cursor:pointer;transition:transform .1s}
.fb-star.on{color:#f6b83f}
.fb-star:hover{transform:scale(1.12)}
.fb-star:focus-visible{outline:2px solid var(--teal);outline-offset:1px;border-radius:6px}
.fb-say{margin-left:8px;font-size:13.5px;font-weight:700;color:var(--amber-ink)}
.fb-err{min-height:1.2em;margin:8px 0 0;color:#b42318;font-size:13.5px;line-height:1.5;flex:none}
.fb-note{margin:0;font-size:12.5px;color:var(--sub);font-weight:400}
.rp-mine{border-top:1px solid var(--divider);padding-top:10px}
.rp-mine h4{margin:0 0 8px;font-size:14px;color:var(--label)}
.rp-item{border:1px solid var(--divider);border-radius:12px;padding:9px 12px;margin-bottom:8px}
.rp-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px}
.rp-h .rp-t{margin-left:auto;color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums}
.rp-x{margin-top:4px;font-size:13.5px;white-space:pre-wrap;word-break:break-word;color:#374151}
.rp-re{margin-top:6px;font-size:13.5px;background:#ecfdf5;color:#065f46;border-radius:8px;padding:5px 10px}
.rp-pt{margin-top:6px;font-size:13.5px;font-weight:800;color:#0064b2}   /* 錯誤申報給點數（2026-11-28） */
/* 錯誤申報的照片（2026-11-28） */
.rp-ph{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.rp-ph-list{display:flex;gap:8px;flex-wrap:wrap}
.rp-ph-list:empty{display:none}
.rp-ph-it{position:relative;width:86px;height:86px;border-radius:10px;overflow:hidden;border:1px solid #d6dbe1;background:#f3f4f6}
.rp-ph-it img{width:100%;height:100%;object-fit:cover;display:block}
.rp-ph-it.busy::after{content:'處理中…';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;color:#4b5563;background:rgba(255,255,255,.7)}
.rp-ph-x{position:absolute;top:3px;right:3px;width:24px;height:24px;border-radius:50%;border:none;background:rgba(17,24,39,.72);color:#fff;font-size:14px;line-height:24px;cursor:pointer;padding:0}
.rp-ph-btns{display:flex;gap:8px;flex-wrap:wrap}
.rp-ph-btn{position:relative;display:inline-flex;align-items:center;gap:4px;border:1.5px solid #c9d3de;background:#fff;color:var(--navy);font-weight:700;font-size:13px;border-radius:9px;padding:6px 12px;cursor:pointer;font-family:inherit}
.rp-ph-btn[hidden]{display:none}
.rp-ph-btn.off{opacity:.45;pointer-events:none}
.rp-ph-in{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0)}
.fb-box.drag{outline:3px dashed #0064b2;outline-offset:-6px}
.rp-phs{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.rp-phs a{display:block;width:64px;height:64px;border-radius:8px;overflow:hidden;border:1px solid #d6dbe1;background:#f3f4f6}
.rp-phs img{width:100%;height:100%;object-fit:cover;display:block}
.rp-add{margin-top:6px;border:1.5px solid #c9d3de;background:#fff;color:var(--navy);font-weight:700;font-size:12.5px;border-radius:8px;padding:4px 10px;cursor:pointer;font-family:inherit}
.rp-empty{color:var(--muted);font-size:13px}
@media (max-height:820px){.fb-f textarea{height:66px;min-height:52px}}   /* 教室 1366×768：四格加星等一次看得完，不用捲 */
@media (max-width:640px){.fb-row{grid-template-columns:1fr;margin-top:-18px}.fb-go{display:none}.fb-star{font-size:28px}}

/* ── 作答中的評分表（selfcheck.js，2026-11-27）：右側「評分表」分頁。清單沿用成績單的 rs-sec／steps／rs-list／st，這裡只補提示列與步驟的狀態 ── */
.tabs.scheck-on button{padding:9px 1px 8px;font-size:12px;gap:2px}
.tabs.scheck-on .badge{padding:0 4px}
.scheck{padding:10px 12px 18px;font-size:13px}
.scheck-hd{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.scheck-hd b{font-size:15px;color:var(--navy)}
.scheck-tt{font-size:13px;font-weight:700;color:var(--label)}
.scheck-mode{margin-top:3px;font-size:12px;color:var(--sub)}
.scheck-hint{position:sticky;top:6px;z-index:1;margin-top:8px;padding:7px 10px;border-radius:8px;font-size:13px;line-height:1.55;font-weight:700;background:#eef4fb;color:#173b57;box-shadow:0 0 0 6px #fff}
.scheck-hint.warn{background:#fffbeb;color:#713f12}
.scheck-hint.ok{background:#f0fdf4;color:#14532d}
.scheck-hint.mute{background:#f3f4f6;color:#4b5563;font-weight:600}
.scheck .rs-sec{margin-top:12px}
.scheck-steps .sh{padding:5px 10px}
.scheck-steps .dd{padding:2px 12px 7px 48px}
.steps li.cur{background:#f5f8fc}
.steps li.cur .mk{background:var(--navy)}
.steps li.wait .mk{background:#d97706;font-size:10px}
.steps li.wait .ar{flex:none;white-space:nowrap;font-size:11.5px;color:#b45309;font-weight:700}
.steps li.did .mk{background:#64748b;font-size:9px}
.steps li.todo .mk{background:#fff;border:1.5px solid #cbd5e1}
.steps li.todo .sh{color:var(--sub)}
.scheck-oth li{display:flex;align-items:baseline;gap:6px;padding:5px 10px;margin-bottom:3px}
.scheck-oth li small{color:var(--sub);font-size:12px}
.scheck-oth .pts{margin-left:auto}
.scheck-mk{flex:none;font-weight:900}
.scheck-wait{margin:0;padding:6px 10px;border-radius:8px;background:#f3f4f6;color:var(--sub);font-size:12.5px}
.scheck-score{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.scheck-score b{font-size:24px;font-family:var(--mono);color:var(--ink);line-height:1}
.scheck-score b small{font-size:13px;font-family:var(--font);color:var(--sub);margin-left:2px}
.scheck-why{font-size:12.5px;color:var(--sub)}
.scheck-acts{margin-top:8px}
.scheck-note{margin:12px 0 0;font-size:12px;color:var(--muted)}

/* ───────── 首頁改版（2026-11-28，規格_職種權限_學科考試_學生後台.md 第五、七節）：深色項目列、職類頁、首頁兩張排行榜小卡、可以點的姓名 ─────────
   項目列比照 ClassHub 抬頭下方那一條（#2b2420 深色圓角長條、白字、滑過半透明白、選到的綠底 #2e7d4f）。
   首頁的職類（index.html #catNav）和我的後台的分頁（my.html #myTabs）共用 .hm-nav。手機寬度項目列自己左右滑，不會把整頁撐寬。 */
.cat-bar{max-width:1080px;margin:0 auto;padding:8px 24px 0}
.hm-nav{position:relative;display:flex;align-items:stretch;max-width:100%;padding:0 6px;background:#2b2420;border-radius:12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.hm-nav::-webkit-scrollbar{display:none}
/* 項目太多放不下（首頁＋7 個職種在 1100 寬以下、手機）：只有項目列左右滑；還有沒露出來的那一邊蓋一段漸層＋箭頭（.more-l／.more-r 由 ui.js、my.js 的 navEdges() 依捲動位置加） */
.hm-navwrap{position:relative;border-radius:12px;overflow:hidden}
.hm-navwrap::before,.hm-navwrap::after{position:absolute;top:0;bottom:0;z-index:1;display:none;align-items:center;width:44px;color:#fff;font-size:20px;font-weight:800;pointer-events:none}
.hm-navwrap::before{content:'‹';left:0;justify-content:flex-start;padding-left:8px;background:linear-gradient(90deg,#2b2420 35%,rgba(43,36,32,0))}
.hm-navwrap::after{content:'›';right:0;justify-content:flex-end;padding-right:8px;background:linear-gradient(270deg,#2b2420 35%,rgba(43,36,32,0))}
.hm-navwrap.more-l::before,.hm-navwrap.more-r::after{display:flex}
.hm-nav button{flex:none;height:46px;padding:0 16px;border:0;border-radius:0;background:transparent;color:#fff;font:inherit;font-size:16px;font-weight:700;white-space:nowrap;cursor:pointer}
.hm-nav button:hover{background:rgba(255,255,255,.14)}
.hm-nav button[aria-selected="true"]{background:#2e7d4f}
.hm-nav button:focus-visible{outline:2px solid #fff;outline-offset:-4px}
@media (max-width:1100px){.hm-nav button{padding:0 14px}}
@media (max-width:820px){.hm-nav{padding:0 4px}.hm-nav button{height:40px;padding:0 12px;font-size:15px}}
/* 職類頁：「術科」「學科」兩區的標題（後面拉一條線），底下的分區標題沿用原本 h2 的樣子 */
.menu-body h2.cat-h{margin:24px 0 0;gap:12px;font-size:19px;font-weight:800;letter-spacing:.1em;color:var(--navy)}
.menu-body h2.cat-h::after{content:'';flex:1;height:2px;border-radius:2px;background:linear-gradient(90deg,rgba(23,59,87,.3),rgba(23,59,87,0))}
.menu-body h3.cat-sub{font-size:17px;margin:16px 0 12px;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;color:var(--label)}
.cat-note{margin:10px 0 12px;font-size:13.5px;color:var(--sub)}
.cat-quiz{margin-top:14px}
.cat-panel .ql-link{margin:0}
/* 開發中的小卡（沒有縮圖）：淡化、虛線框、不能點（div，沒有連結，鍵盤也到不了） */
.tcard.soon{display:flex;flex-direction:column;justify-content:center;min-height:92px;background:rgba(255,255,255,.62);box-shadow:none;border:1.5px dashed #c9c2b4}
.tcard.soon .tc-body{padding:14px 92px 14px 16px}
.tcard.soon .tc-no{color:var(--muted)}
.tcard.soon .tc-title{margin:2px 0 0;color:var(--sub)}
.tcard.soon .tc-meta{margin-top:4px}
/* 首頁：左右兩張排行榜小卡（窄螢幕上下排） */
.hk-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.hk-card{display:flex;flex-direction:column;min-width:0;background:#fff;border-radius:14px;box-shadow:0 1px 4px rgba(0,0,0,.12);padding:16px 18px 14px}
.hk-card.soon{background:rgba(255,255,255,.62);box-shadow:none;border:1.5px dashed #c9c2b4}
.menu-body .hk-card h2{margin:0;gap:8px;font-size:17px;color:var(--navy)}
.hk-sub{margin:2px 0 10px;font-size:12.5px;color:var(--sub)}
.hk-body{flex:1;display:flex;flex-direction:column;min-width:0}
.hk-list{list-style:none;margin:0;padding:0}
.hk-li{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;gap:0 10px;padding:5px 6px;border-top:1px solid var(--divider);font-size:14px}
.hk-li:first-child{border-top:0}
.hk-n{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 4px;border-radius:999px;background:#eef0f3;color:var(--label);font-weight:800;font-size:13px;font-variant-numeric:tabular-nums}
.hk-li.r1 .hk-n{background:linear-gradient(155deg,#ffd76a,#e9a91b);color:#5c3b00}
.hk-li.r2 .hk-n{background:linear-gradient(155deg,#eef1f5,#b8c1cc);color:#2f3a47}
.hk-li.r3 .hk-n{background:linear-gradient(155deg,#f4cba6,#c98a4f);color:#4a2a0e}
.hk-name{min-width:0;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hk-v{font-weight:800;color:var(--navy);font-variant-numeric:tabular-nums;white-space:nowrap}
.hk-v small{font-weight:600;color:var(--sub)}
.hk-t{min-width:52px;text-align:right;font-size:13px;color:var(--sub);font-variant-numeric:tabular-nums;white-space:nowrap}
.hk-li.mine{background:#fff7df;box-shadow:inset 3px 0 0 var(--amber)}
.hk-li.hk-me{border-top:1px dashed #c9c2b4}
.hk-empty{margin:auto 0;padding:24px 8px;text-align:center;color:var(--sub)}
.hk-empty b{display:block;margin-bottom:4px;font-size:17px;color:var(--navy)}
.hk-empty.bad{color:var(--red)}
.hk-more{align-self:flex-end;margin-top:auto;padding-top:10px;font-size:14px;font-weight:800;color:var(--teal);text-decoration:none}
.hk-more:hover{text-decoration:underline}
.hk-more.off{color:var(--sub);cursor:default;text-decoration:none}
.hk-more:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-radius:4px}
@media (max-width:760px){.hk-row{grid-template-columns:minmax(0,1fr)}}
/* 首頁其餘的鈕（老師後台、心得與建議、錯誤申報）排在排行榜下面；瀏覽人次移到頁尾 */
.cat-panel .hm-row,.cat-panel .fb-row{margin:16px 0 0}
.cat-foot .st-sum{margin:28px 0 0}
.cat-foot .menu-foot{margin-top:6px}
.cat-foot .st-sum[hidden]+.menu-foot{margin-top:30px}
/* 右上角的姓名可以點（學生 → 我的後台 my.html、老師 → 老師後台）：虛線底線＋▾ */
.who-name{color:inherit;text-decoration:none;white-space:nowrap;padding-bottom:1px;border-bottom:1.5px dashed #8fa0b2;cursor:pointer}
.who-name b{color:var(--navy)}
.who-name:hover{border-bottom-style:solid;border-bottom-color:var(--navy)}
.who-name:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:4px}
.who-caret{margin-left:4px;font-size:13px;color:var(--navy)}
/* 職種權限（2026-11-28）：被老師停用的學生，首頁項目列下面一條說明 */
.cat-ban{margin:18px 0 0;padding:12px 16px;border-radius:12px;background:#fffaf0;border:1.5px solid #f0c75e;color:var(--amber-ink);font-size:14px;line-height:1.7}
.cat-ban b{margin-right:10px;padding:2px 10px;border-radius:999px;background:var(--amber);color:#5c3b00;font-size:13px;white-space:nowrap}
/* 學科區只有一張小卡：學科測驗（換電動起子）（2026-11-28 老師：學科模擬考的小卡拿掉，入口只在項目列「學科模擬考」那一頁——兩張上下排的 grid 與深藍那一張的樣式一併拿掉）；
   首頁學科模擬排行榜每一列名字後面的小字＝職種 */
.hk-tr{margin-left:8px;font-size:12px;font-weight:600;color:var(--sub)}
/* 兩層項目列（2026-11-28 老師）：項目列只剩 7 項（首頁｜學科模擬考｜各職類），桌機字級用原本的 16px（之前為了放 10 項縮成 14px 的調整拿掉了）。
   級別那一排（#catLv，項目列正下方）：比項目列輕的膠囊鈕「丙級｜乙級」，前面一個小標是職類名稱；沒被開放的級別多一個鎖。 */
.cat-lv{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.cat-lv[hidden]{display:none}
.cat-lv .lv-fam{margin-right:4px;font-size:15px;font-weight:800;color:var(--navy);letter-spacing:.06em}
.cat-lv .lv-btn{display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:0 20px;border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.cat-lv .lv-btn:hover{border-color:#2e7d4f}
.cat-lv .lv-btn[aria-selected="true"]{background:#2e7d4f;border-color:#2e7d4f;color:#fff}
.cat-lv .lv-btn.locked{color:var(--sub)}
.cat-lv .lv-btn.locked[aria-selected="true"]{background:#5b6470;border-color:#5b6470;color:#fff}
.cat-lv .lv-btn:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.cat-lv .lv-lock{font-size:12px}
/* 「學科模擬考」那一頁：每個職種一張小卡（照職類分組）、沒交的模擬考一條提示、下面學科模擬排行榜 */
.mk-open{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0 0;padding:12px 16px;border-radius:12px;background:#eef7f1;border:1.5px solid #2e7d4f;font-size:14px}
.mk-open[hidden]{display:none}
.mk-open b{color:#1f5c3a}
.mk-open span{flex:1;min-width:120px;color:var(--sub)}
/* 職類的分頁標籤（2026-11-28 老師）：樣式用級別鈕那一套（.cat-lv .lv-btn，比項目列輕一級）；手機一排放不下＝這一排自己左右滑（不換行、整頁不會左右捲） */
.mk-tabs{margin:4px 0 16px}
.mk-cards[hidden]{display:none}
@media (max-width:640px){
  .mk-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px 2px 4px}
  .mk-tabs::-webkit-scrollbar{display:none}
  .mk-tabs .lv-btn{flex:none;padding:0 16px;white-space:nowrap}
}
.mk-cards .mk-card .tc-no{font-weight:800}
.mk-card .mk-go{font-size:13.5px;font-weight:800;color:#2e7d4f}
.mk-rank{margin:26px 0 0}


/* ───── 導引動畫（js/tour.js，2026-12-02，規格_導引動畫.md）─────
   z-index 10500：蓋在對話框（.modal 10000）上面、提示（.toasts 11000）下面——示範時跳的確認框由 k.yes() 移過去亮起來，提示照樣看得到；字卡另外放 body（11200）。
   .tour-block 擋住使用者點盤面；.tour-spot 用超大的陰影把其他地方壓暗；.tour-cur 是動畫游標（不吃滑鼠）；.tour-card 是字卡。 */
.tour{position:fixed;inset:0;z-index:10500}
.tour-block{position:absolute;inset:0;background:transparent;cursor:default}
.tour.nospot .tour-block{background:rgba(15,23,42,.55)}
.tour-spot{position:fixed;border-radius:10px;box-shadow:0 0 0 9999px rgba(15,23,42,.55);outline:3px solid #ffd43b;outline-offset:0;pointer-events:none;transition:left .35s ease,top .35s ease,width .35s ease,height .35s ease}
.tour-spot.off{display:none}
.tour-cur{position:fixed;left:0;top:0;width:28px;height:28px;pointer-events:none;z-index:3;will-change:transform}
.tour-cur svg{width:28px;height:28px;display:block;filter:drop-shadow(0 2px 3px rgba(0,0,0,.45))}
.tour-cur path{fill:#fff;stroke:#111827;stroke-width:1.6;stroke-linejoin:round}
.tour-cur-t{position:absolute;left:24px;top:22px;white-space:nowrap;background:#111827;color:#ffd43b;font-size:12.5px;font-weight:800;padding:2px 8px;border-radius:999px}
.tour-cur-t:empty{display:none}
.tour-rip{position:fixed;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:3px solid #ffd43b;pointer-events:none;z-index:2;animation:tourRip .6s ease-out forwards}
@keyframes tourRip{from{transform:scale(.3);opacity:1}to{transform:scale(1.5);opacity:0}}
.tour-card{position:fixed;z-index:11200;width:min(440px,calc(100vw - 28px));max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);overflow:auto;background:#fff;border-radius:14px;box-shadow:0 18px 48px rgba(0,0,0,.35);padding:14px 16px 12px;color:var(--label);transition:left .3s ease,top .3s ease}   /* 字卡放在 body、蓋在提示（11000）上面；太高就捲動（手機橫放） */
.tour-hd{display:flex;align-items:baseline;gap:10px}
.tour-no{flex:none;font-size:12.5px;font-weight:800;color:#fff;background:var(--navy);border-radius:999px;padding:2px 9px}
.tour-t{font-size:17px;font-weight:800}
.tour-d{margin:8px 0 10px;font-size:14.5px;line-height:1.65;color:#374151}
.tour-d b{color:var(--ink)}
.tour-bar{height:4px;background:#eef0f3;border-radius:2px;overflow:hidden}
.tour-bar i{display:block;height:100%;width:0;background:#ffd43b;transition:width .1s linear}
.tour-card.paused .tour-bar i{background:#c0c6cf}
.tour-acts{display:flex;align-items:center;gap:6px;margin-top:10px;flex-wrap:wrap}
.tour-grow{flex:1}
.tour-b{border:1px solid var(--divider);background:#fff;color:#374151;font-weight:700;font-size:13.5px;border-radius:9px;padding:6px 11px;cursor:pointer}
.tour-b:disabled{opacity:.4;cursor:default}
.tour-b:hover:not(:disabled){background:#f6f4ef}
.tour-b.tour-next{background:var(--navy);border-color:var(--navy);color:#fff}
.tour-b.tour-next:hover{background:#1f4d72}
.tour-b.tour-skip{border-color:transparent;color:var(--sub)}
.tour-card.last .tour-skip{display:none}
.tour-lg{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px}
.tour-lg li{display:flex;align-items:center;gap:7px}
/* 「這一題要怎麼開始？」 */
.modal .box.tour-ask{width:min(520px,94vw)}
.tour-opts{display:flex;gap:12px;margin-top:4px}
.tour-opt{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;border:1.5px solid var(--divider);background:#fff;border-radius:12px;padding:14px 14px 12px;cursor:pointer;color:var(--label)}
.tour-opt b{font-size:16.5px}
.tour-opt small{font-size:12.5px;color:var(--sub);line-height:1.45}
.tour-opt:hover{border-color:#9aa3ad;background:#faf9f6}
.tour-opt.go{background:var(--navy);border-color:var(--navy);color:#fff}
.tour-opt.go small{color:#d3dde6}
.tour-opt.go:hover{background:#1f4d72}
.hp-tour{margin:8px 0 2px}
#hpTour[hidden]{display:none}
@media (max-width:560px){.tour-opts{flex-direction:column}}
.tour-note{display:block;margin-top:6px;font-size:12.5px;color:var(--sub)}
@media (prefers-reduced-motion:reduce){.tour-spot,.tour-card{transition:none}.tour-rip{display:none}}
/* ───────── SkillBench 體驗版（skillbench.tw/try/，js/try.js，2026-12-03，規格_SkillBench體驗版.md）：只有 html.try-mode（有 window.WiringTry）才有作用；放 <html> 是因為 ui.js 換畫面會改寫 body 的 class ───────── */
/* 不開的：項目列（首頁的排行榜、學科模擬考）、級別、職種頁的學科區（學科試考）、瀏覽人次、電動起子（要帳號） */
html.try-mode .cat-bar,html.try-mode #catLv,html.try-mode .cat-quizsec,html.try-mode #statSum,html.try-mode #toolSeg [data-tool="edriver"]{display:none!important}
.try-left{font-variant-numeric:tabular-nums;background:#fff7e6;border-color:#f3cf7a;color:#7a4d00}
.try-left.low{background:#fdecea;border-color:#f1aaa3;color:var(--red)}
.who .try-left{display:inline-block;margin-left:8px}
/* 時間到：蓋過 .modal（10000）、導引動畫（10500），在 .toasts（11000）下面 */
.try-over{position:fixed;inset:0;z-index:10900;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(17,33,48,.74)}
.try-box{width:min(420px,92vw);background:#fff;border-radius:16px;padding:26px 24px 22px;text-align:center;box-shadow:0 18px 50px rgba(0,0,0,.32);animation:pop .16s ease-out}
.try-ico{font-size:40px;line-height:1}
.try-box h2{margin:10px 0 6px;font-size:22px;color:var(--label)}
.try-box p{margin:0 0 18px;font-size:14.5px;line-height:1.6;color:#4b5563}
.try-acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.try-acts .btn{min-width:132px;text-decoration:none}
/* 題目清單上限時題目的小卡：「限時 10 分鐘」／「體驗時間已用完」 */
.try-note{margin-top:6px;font-size:12.5px;font-weight:700;color:#7a4d00}
.try-note.over{color:var(--red)}
