/* 老师面板：盖住大屏的一层，纸色、规整，不花哨 */
.teacher { position: absolute; inset: 0; z-index: 85; background: rgba(40, 24, 16, 0.55); display: grid; place-items: center; }
.tp { width: 1700px; height: 960px; display: flex; flex-direction: column; border-radius: 20px; background: #fffaf1; color: var(--ink); overflow: hidden; }
.tp-head { display: flex; align-items: center; gap: 16px; padding: 22px 28px 14px; }
.tp-head b { font: 800 30px/1 var(--title); }
.tp-head span { font-size: 18px; color: var(--ink-2); }
.tp-x { margin-left: auto; height: 48px; padding: 0 24px; border-radius: 12px; border: 0; background: #5a3400; color: #fff; font: 800 20px/1 var(--sans); }
.tp-tabs { display: flex; gap: 6px; padding: 0 22px; border-bottom: 1px solid var(--paper-line); }
.tp-tabs button { height: 54px; padding: 0 22px; border: 0; background: none; font: 700 20px/1 var(--sans); color: var(--ink-2); border-bottom: 4px solid transparent; }
.tp-tabs button.on { color: var(--ink); border-bottom-color: var(--gold); }
.tp-body { flex: 1; overflow: auto; padding: 22px 28px 28px; background: #f6efe2; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.card { padding: 20px 22px; border-radius: 16px; background: #fffaf1; border: 1px solid var(--paper-line); }
.card h3 { margin: 18px 0 8px; font: 800 22px/1.2 var(--title); }
.card h3:first-child { margin-top: 0; }
.hint { margin: 4px 0 10px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.card textarea, .card input, .card select { font: 18px/1.4 var(--sans); color: var(--ink); border: 1px solid #d8c9b0; border-radius: 10px; background: #fff; padding: 8px 10px; }
.card textarea { width: 100%; resize: vertical; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.btns button, .inline button, .filebtn { height: 46px; padding: 0 18px; border-radius: 10px; border: 1px solid #d8c9b0; background: #fff; font: 700 17px/46px var(--sans); color: var(--ink); cursor: pointer; }
.btns .pri, .inline .pri, .cm .pri { background: #ffd34d; border-color: #e7b52a; color: #5a3400; }
.btns .warn { color: #a3402c; }
.filebtn input { display: none; }
.inline { display: flex; gap: 10px; }
.inline input { flex: 1; }
.mini { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid #d8c9b0; background: #fff; font: 600 15px/1 var(--sans); color: var(--ink); }
.mini.warn { color: #a3402c; }
.hnames { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hnames label { display: flex; align-items: center; gap: 8px; }
.hnames .ic { width: 26px; height: 26px; fill: var(--c); flex: none; }
.hnames input { width: 100%; }
.hcount { display: flex; flex-wrap: wrap; gap: 14px; font: 700 17px/1 var(--sans); }
.hcount span { display: flex; align-items: center; gap: 4px; }
.hcount .ic { width: 22px; height: 22px; fill: var(--c); }
.tbl { max-height: 520px; overflow: auto; margin-top: 8px; }
.tbl table, .rtbl { width: 100%; border-collapse: collapse; }
.tbl td, .rtbl td { padding: 6px 6px; border-bottom: 1px solid #efe4d2; }
.tbl .in-name { width: 150px; }
.hs { display: flex; gap: 4px; }
.hs button { width: 42px; height: 38px; border-radius: 10px; border: 2px solid transparent; background: #f4ede1; display: grid; place-items: center; }
.hs button .ic { width: 22px; height: 22px; fill: #c9b99f; }
.hs button.on { border-color: var(--c); background: #fff; }
.hs button.on .ic { fill: var(--c); }
.rtbl input { width: 100%; }
.rtbl input[type=number] { width: 90px; }
.pickgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-height: 280px; overflow: auto; }
.pickgrid button { height: 46px; border-radius: 10px; border: 1px solid #e4d6bf; background: #fff; font: 700 17px/1 var(--sans); display: flex; align-items: center; justify-content: center; gap: 6px; }
.pickgrid button em { font-style: normal; font-size: 13px; color: var(--gold-deep); }
.pickgrid button.on { background: #ffd34d; border-color: #e7b52a; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.items button { height: 70px; border-radius: 12px; border: 1px solid #e4d6bf; background: #fff3d6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.items button b { font: 700 18px/1.2 var(--sans); }
.items button span { font-size: 15px; color: var(--gold-deep); }
.items button:disabled { opacity: 0.4; }
.loglist { display: flex; flex-direction: column; gap: 4px; max-height: 640px; overflow: auto; }
.lg { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; background: #fff; font-size: 17px; }
.lg time { width: 96px; color: #9a8670; font-size: 15px; }
.lg span { flex: 1; }
.lg b { font-weight: 700; }
.lg em { width: 44px; text-align: right; font-style: normal; font-weight: 800; color: var(--gold-deep); }
.lg i { font-style: normal; font-size: 14px; color: #9a8670; }
.lg.undone { opacity: 0.45; text-decoration: line-through; }
.lg.cur { background: #fff3d6; }
.cm { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.cm b { font: 800 20px/1 var(--sans); }
.cm button { margin-left: auto; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid; font: 700 16px/1 var(--sans); }
.cl-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cl-list span { padding: 6px 10px; border-radius: 8px; background: #fff; font-size: 15px; }
.sw { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0; }
.sw button { flex: none; width: 58px; height: 32px; border-radius: 99px; border: 0; background: #d8c9b0; position: relative; }
.sw button i { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.sw button.on { background: #3cc46e; }
.sw button.on i { left: 30px; }
.sw b { display: block; font-size: 19px; }
.sw span { font-size: 15px; color: var(--ink-2); }
.seg { display: inline-flex; border-radius: 12px; overflow: hidden; border: 1px solid #d8c9b0; }
.seg button { height: 46px; padding: 0 20px; border: 0; background: #fff; font: 700 17px/1 var(--sans); }
.seg button.on { background: #ffd34d; color: #5a3400; }
.phone-qr .qr { width: 300px; height: 300px; margin: 10px 0; background: #fff; border-radius: 12px; padding: 10px; }
.phone-qr .qr svg { width: 100%; height: 100%; }
.sel { user-select: all; word-break: break-all; color: var(--ink); }
.code { font: 900 28px/1 var(--sans); letter-spacing: 4px; color: var(--gold-deep); }

/* 锁屏 */
#btnLock.on { background: #5a3400; color: #fff; }
body.locked .tools button:not(#btnLock):not(#btnHome), body.locked .tools-note { display: none; }
body.locked .chip, body.locked .grp-h { cursor: default; }
body.locked .cab-b { display: none; }
.lockbadge { position: absolute; left: 50%; top: 108px; transform: translateX(-50%); z-index: 52; display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 14px; background: rgba(60, 38, 24, 0.86); color: #fff8ea; pointer-events: none; }
.lockbadge b { font: 800 20px/1 var(--title); }
.lockbadge b::before { content: "🔒 "; }
.lockbadge span { font-size: 16px; opacity: 0.85; }
.lockbadge.shake { animation: lockShake 0.45s; }
@keyframes lockShake { 25% { transform: translateX(calc(-50% - 10px)); } 75% { transform: translateX(calc(-50% + 10px)); } }
.pinpad { position: absolute; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(30, 15, 40, 0.6); }
.pp-card { width: 440px; padding: 30px 32px; border-radius: 24px; background: #fffaf1; text-align: center; color: var(--ink); }
.pp-card > b { display: block; font: 900 30px/1.2 var(--title); }
.pp-card > span { display: block; margin-top: 6px; font-size: 17px; color: var(--ink-2); }
.pp-dots { display: flex; justify-content: center; gap: 16px; margin: 22px 0; }
.pp-dots i { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #c9b99f; }
.pp-dots i.on { background: #5a3400; border-color: #5a3400; }
.pp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pp-keys button { height: 70px; border-radius: 16px; border: 0; background: #f3ead9; font: 800 30px/1 var(--sans); color: var(--ink); }
.pp-keys button[data-k="x"], .pp-keys button[data-k="<"] { font-size: 20px; }
.pp-err { display: block; min-height: 24px; margin-top: 12px; font-style: normal; color: #a3402c; font-weight: 700; }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.st-top .btns { margin: 0; }
.st-none { margin: 12px 0; padding: 12px 16px; border-radius: 12px; background: #fde8e3; color: #8a3a26; font-size: 17px; line-height: 1.6; }
.st-none.ok { background: #e4f6ea; color: #1f7a45; }
.st-tbl { max-height: 560px; }
.st-tbl table { font-size: 16px; }
.st-tbl th { position: sticky; top: 0; background: #fffaf1; text-align: left; }
.st-tbl th button { border: 0; background: none; font: 800 15px/1 var(--sans); color: var(--ink-2); padding: 8px 4px; cursor: pointer; }
.st-tbl tr.zero td { background: #fff3ef; }
.hcount span:last-child { color: var(--ink-2); }
.lvgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 12px 0 4px; }
.lvgrid label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; background: #fff; }
.lvgrid span { font: 700 14px/1.2 var(--sans); color: var(--ink-2); text-align: center; }
.lvgrid b { font: 800 22px/1 var(--sans); }
.lvgrid input { width: 72px; text-align: center; font-weight: 800; }
/* 激活 */
.activate { position: absolute; inset: 0; z-index: 130; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, rgba(60, 30, 80, 0.75), rgba(20, 10, 30, 0.92) 75%); }
.act-card { width: 620px; padding: 40px 46px; border-radius: 28px; background: #fffaf1; text-align: center; color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); }
.act-logo { width: 84px; height: 84px; margin: 0 auto; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(150deg, #ffd96a, #f4a93a); }
.act-logo .ic { width: 48px; height: 48px; fill: #fff; }
.act-card h1 { margin: 16px 0 4px; font: 900 44px/1.2 var(--title); }
.act-sub { margin: 0 0 24px; color: var(--ink-2); font-size: 19px; }
.act-card label { display: block; text-align: left; font: 700 18px/1 var(--sans); }
.act-card input { display: block; width: 100%; height: 66px; margin-top: 10px; padding: 0 18px; border-radius: 14px; border: 2px solid #d8c9b0; background: #fff; font: 800 28px/1 var(--sans); letter-spacing: 4px; text-transform: uppercase; color: var(--ink); }
.act-err { min-height: 26px; margin-top: 10px; color: #a3402c; font-weight: 700; text-align: left; }
.act-go { width: 100%; height: 64px; border: 0; border-radius: 16px; background: #ffd34d; color: #5a3400; font: 900 24px/1 var(--title); }
.act-go:disabled { opacity: 0.6; }
.act-hint { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.act-warn { margin: -8px 0 18px; padding: 10px 14px; border-radius: 12px; background: #fde8e3; color: #8a3a26; font-weight: 700; }
.act-demo { margin-top: 18px; height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid #d8c9b0; background: #fff; font: 700 17px/1 var(--sans); color: var(--ink-2); }
.act-rec { margin: 10px 0; padding: 22px; border-radius: 18px; background: #fff3d6; border: 3px dashed #e7b52a; font: 900 46px/1 var(--sans); letter-spacing: 4px; color: #5a3400; user-select: all; }
.rec-big { margin: 6px 0 10px; padding: 16px; border-radius: 14px; background: #fff3d6; font: 900 34px/1 var(--sans); letter-spacing: 3px; color: #5a3400; text-align: center; user-select: all; }
.cloudbadge { max-width: 220px; padding: 7px 12px; border-radius: 10px; font: 700 14px/1.3 var(--sans); text-align: right; cursor: pointer; background: rgba(255, 248, 236, 0.85); color: var(--ink-2); }
.cloudbadge.ok { color: #1f7a45; }
.cloudbadge.bad { background: #fde8e3; color: #8a3a26; }
.cloudbadge.demo { background: #ffd34d; color: #5a3400; }
