/* ==========================================================================
 * 英语教师工作台 · 主题样式（浅米 + 草绿，参考英语教学工作台视觉）
 * ========================================================================== */
:root {
  --bg: #f7f6ef;
  --side: #eef1e4;
  --card: #fdfcf7;
  --line: #e6e3d3;
  --line2: #efece0;
  --green: #7fa25a;
  --green-d: #648441;
  --green-l: #eaf1d9;
  --green-ll: #f3f7e9;
  --txt: #343b2e;
  --sub: #8b9180;
  --warn: #c8823f;
  --red: #c25a41;
  --blue: #5a7f9e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(52, 59, 46, .04), 0 8px 24px rgba(52, 59, 46, .05);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d6d3c3; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #c3c0ad; }

/* ---------------- 登录 ---------------- */
.lg { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px;
  background: radial-gradient(1000px 600px at 12% 0%, #eef3e0 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 100%, #f0eddc 0%, transparent 55%), var(--bg); }
.lg-card { width: min(1000px, 96vw); background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 24px 60px rgba(52, 59, 46, .1); display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; }
.lg-left { padding: 40px 38px; background: linear-gradient(160deg, #f2f6e6, #fbfaf3 70%); }
.lg-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; }
.lg-brand i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--green);
  font-style: normal; font-size: 20px; box-shadow: 0 6px 16px rgba(127, 162, 90, .35); }
.lg-brand b { display: block; font-size: 15.5px; letter-spacing: .3px; }
.lg-brand small { color: var(--sub); font-size: 12px; }
.lg-left h1 { font-size: 30px; line-height: 1.35; margin: 0 0 14px; letter-spacing: .5px; }
.lg-left p { color: #6f7666; font-size: 13px; line-height: 1.85; margin: 0 0 22px; max-width: 430px; }
.lg-feats { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-feats span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #59614f;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.lg-feats i { font-style: normal; }
.lg-right { padding: 42px 34px; border-left: 1px solid var(--line2); display: flex; flex-direction: column; justify-content: center; }
.lg-right h2 { margin: 0 0 6px; font-size: 20px; }
.lg-right .sub { color: var(--sub); font-size: 12px; line-height: 1.7; margin-bottom: 20px; }
.fld { margin-bottom: 14px; }
.fld label { display: block; font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.fld input, .fld select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.fld input:focus, .fld select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(127, 162, 90, .14); }
.lg-err { color: var(--red); font-size: 12px; min-height: 18px; margin-bottom: 6px; }
.lg-tip { margin-top: 14px; font-size: 11.5px; color: #a0a494; text-align: center; }

/* ---------------- 顶栏 ---------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.top { height: 58px; display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: #fbfaf3; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.top-brand { display: flex; align-items: center; gap: 9px; flex: none; }
.top-brand i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--green);
  font-style: normal; font-size: 15px; }
.top-brand b { font-size: 14.5px; letter-spacing: .3px; }
.top-sel { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; overflow: auto; }
.sel { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 6px 0 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; color: var(--sub); flex: none; }
.sel > span { color: #a4a895; font-size: 11.5px; }
.sel select { border: 0; background: transparent; outline: none; height: 30px; padding-right: 2px; font-size: 12.5px; color: var(--txt); cursor: pointer; }
.top-right { display: flex; align-items: center; gap: 8px; flex: none; }
.store-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #7d8472;
  background: #f2f4e8; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.store-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(127,162,90,.16); }
.store-dot.err i { background: var(--red); box-shadow: 0 0 0 3px rgba(194,90,65,.16); }
.icobtn { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line);
  background: #fff; border-radius: 9px; cursor: pointer; font-size: 14px; color: #6d7463; transition: .15s; }
.icobtn:hover { border-color: var(--green); color: var(--green-d); background: var(--green-ll); }

/* ---------------- 布局 ---------------- */
.main { flex: 1; display: flex; min-height: 0; }
.side { width: 202px; flex: none; background: var(--side); border-right: 1px solid var(--line);
  padding: 14px 10px 24px; overflow: auto; }
.side-g { margin-bottom: 4px; }
.side-g > b { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 500; color: #9aa189;
  letter-spacing: .6px; padding: 12px 10px 7px; }
.side-g > b::after { content: ""; flex: 1; height: 1px; background: #dfe2d2; }
.nav-i { position: relative; display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px;
  border-radius: 10px; cursor: pointer; font-size: 13px; color: #5c6454; transition: background .15s, color .15s; }
.nav-i i { font-style: normal; font-size: 14px; width: 17px; text-align: center; opacity: .85; }
.nav-i:hover { background: rgba(255, 255, 255, .62); }
.nav-i.on { background: #fff; color: var(--green-d); font-weight: 600; box-shadow: 0 1px 2px rgba(52,59,46,.06); }
.nav-i.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--green); }
.nav-i .bdg { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.nav-add { margin: 8px 2px 0; height: 34px; border: 1px dashed #cdd3bd; border-radius: 10px; background: transparent;
  color: #8d9480; font-size: 12.5px; cursor: pointer; width: calc(100% - 4px); }
.nav-add:hover { border-color: var(--green); color: var(--green-d); background: var(--green-ll); }

.view { flex: 1; min-width: 0; overflow: auto; padding: 20px 24px 48px; }
.view-in { max-width: 1080px; margin: 0 auto; }

/* ---------------- 页头 ---------------- */
.ph { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.ph h2 { margin: 0; font-size: 21px; letter-spacing: .3px; }
.ph p { margin: 4px 0 0; color: var(--sub); font-size: 12.5px; }
.ph .sp { flex: 1; }
.ph-acts { display: flex; gap: 8px; align-items: center; flex: none; flex-wrap: wrap; }

/* ---------------- 卡片 ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 14px; }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h3 { margin: 0; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.card-h .sp { flex: 1; }
.card-h .muted { font-size: 12px; }
.muted { color: var(--sub); }
.tiny { font-size: 11.5px; }
.mt6 { margin-top: 6px; } .mt10 { margin-top: 10px; } .mt14 { margin-top: 14px; }
.mb10 { margin-bottom: 10px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp { flex: 1; }

/* 课本配置横幅 */
.tbinfo { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, #f4f7e9, #fbfaf1);
  border: 1px solid #e7ebd6; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.tbinfo .lb { font-size: 11.5px; color: #9aa189; margin-bottom: 4px; }
.tbinfo .ttl { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.tbinfo .ttl span { color: #b3b7a4; font-weight: 400; margin: 0 5px; }
.tbinfo .cnt { font-size: 11.5px; color: var(--sub); margin-top: 5px; }
.tbinfo .sp { flex: 1; }
.tbinfo .acts { display: flex; gap: 8px; flex: none; }

/* ---------------- 按钮 ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #57604e; font-size: 12.5px;
  cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--green); color: var(--green-d); background: var(--green-ll); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 3px 10px rgba(127,162,90,.28); }
.btn.primary:hover { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { height: 27px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.xs { height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 7px; }
.btn.block { width: 100%; height: 42px; border-radius: 11px; font-size: 14px; }
.btn.danger { color: var(--red); border-color: #eddad3; }
.btn.danger:hover { background: #fdf1ed; border-color: var(--red); color: var(--red); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 2px 4px; color: #7d8571; font-size: 12px; cursor: pointer; border-radius: 6px; }
.linkbtn:hover { color: var(--green-d); background: var(--green-ll); }
.linkbtn.danger:hover { color: var(--red); background: #fdf1ed; }
.ibtn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; display: grid; place-items: center; font-size: 13px; color: #6d7463; }
.ibtn:hover { border-color: var(--green); color: var(--green-d); }

/* ---------------- chip / tag ---------------- */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 6px;
  background: var(--green-l); color: #5f8235; font-size: 11.5px; white-space: nowrap; }
.chip.gray { background: #f0efe4; color: #8a8f7d; }
.chip.warn { background: #fbf0e2; color: #b57a36; }
.chip.red { background: #fceee9; color: #bd5a40; }
.chip.blue { background: #eaf1f7; color: #4f7695; }
.chip.ok { background: #e8f3dd; color: #5c8b32; }
.chip.line { background: transparent; border: 1px solid #dfe3d3; color: #7d8570; }

/* ---------------- 统计卡 ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; position: relative; box-shadow: var(--shadow); }
.stat .lb { font-size: 12px; color: #8d9382; }
.stat .nm { font-size: 23px; font-weight: 700; margin-top: 5px; letter-spacing: .5px; }
.stat .nm small { font-size: 12px; font-weight: 400; color: var(--sub); margin-left: 3px; }
.stat .ic { position: absolute; right: 12px; top: 11px; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: var(--green-ll); border: 1px solid #e7ecd8; font-size: 12px; }
.stat .ft { margin-top: 7px; font-size: 11.5px; color: #a3a894; }

/* ---------------- 计划任务卡 ---------------- */
.task { border: 1px solid var(--line2); border-radius: 13px; background: #fff; padding: 13px 14px; margin-bottom: 10px; transition: .15s; }
.task:hover { border-color: #d9dfc9; box-shadow: 0 4px 14px rgba(52,59,46,.05); }
.task.done { background: #fbfdf6; }
.task-h { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.task-h .ttl { font-size: 13.5px; font-weight: 600; }
.task-h .qty { font-size: 11.5px; color: #9aa08e; background: #f5f4ea; border-radius: 5px; padding: 1px 6px; }
.task-h .sp { flex: 1; }
.task-b { margin-top: 8px; font-size: 12px; color: #8d9382; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.task-b b { font-weight: 500; color: #6f7663; }
.task-f { margin-top: 9px; display: flex; align-items: center; gap: 8px; }
.task-f .sp { flex: 1; }
.task.done .task-h .ttl { color: #8f9682; text-decoration: line-through; text-decoration-color: #cfd6c0; }

/* ---------------- 表格 ---------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 500; color: #8d9382; font-size: 11.5px; padding: 9px 8px;
  background: #f8f7f0; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl th:first-child { border-radius: 8px 0 0 8px; }
.tbl th:last-child { border-radius: 0 8px 8px 0; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid #f2f0e4; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fbfbf4; }
.tbl .idx { color: #a8ad9c; width: 38px; }
.tbl .nm { font-weight: 500; }

/* 进度条 */
.bar { height: 5px; border-radius: 4px; background: #eeece0; overflow: hidden; min-width: 76px; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #93b06a, #7fa25a); }
.bar.thin { height: 4px; }

/* ---------------- 单元列表 ---------------- */
.unit { border: 1px solid var(--line2); border-radius: 13px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.unit-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.unit-h .u-ttl { font-size: 13.5px; font-weight: 600; }
.unit-h .u-cn { font-size: 12.5px; color: #8d9382; }
.unit-h .u-n { font-size: 11.5px; color: #9aa08e; background: #f5f4ea; border-radius: 5px; padding: 1px 6px; }
.unit-h .sp { flex: 1; }
.unit-h .ops { display: flex; gap: 6px; flex: none; }
.unit-meta { padding: 0 14px 12px; font-size: 11.5px; color: #9aa08e; }
.unit-body { border-top: 1px dashed var(--line); padding: 12px 14px; background: #fcfcf6; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.wcard { background: #fff; border: 1px solid var(--line2); border-radius: 9px; padding: 8px 10px; }
.wcard b { font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.wcard .ph2 { font-size: 11px; color: #9ba18e; margin-left: 5px; }
.wcard span { display: block; font-size: 11.5px; color: #7d8570; margin-top: 2px; }
.wcard .spk { border: 0; background: transparent; cursor: pointer; color: var(--green); font-size: 12px; padding: 0 2px; }

/* ---------------- 设置行 ---------------- */
.setrow { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line2); flex-wrap: wrap; }
.setrow:last-child { border-bottom: 0; }
.setrow > .k { width: 64px; flex: none; color: #8d9382; font-size: 12px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.pick { height: 27px; padding: 0 12px; border-radius: 8px; border: 1px solid #e2e5d6; background: #fff;
  color: #7d8570; font-size: 12px; cursor: pointer; }
.pick.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.seg { display: inline-flex; padding: 3px; background: #f2f1e6; border-radius: 9px; gap: 2px; }
.seg button { height: 26px; padding: 0 13px; border: 0; background: transparent; border-radius: 7px;
  font-size: 12px; color: #8d9382; cursor: pointer; }
.seg button.on { background: #fff; color: var(--green-d); font-weight: 600; box-shadow: 0 1px 3px rgba(52,59,46,.09); }
input[type="range"] { -webkit-appearance: none; height: 4px; border-radius: 3px; background: #e6e4d5; width: 160px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; }
.speed-v { font-size: 12px; color: #7d8570; width: 40px; }

/* ---------------- 表单 ---------------- */
.inp, .ta, .sel2 { width: 100%; height: 34px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; outline: none; font-size: 12.5px; }
.ta { height: auto; min-height: 90px; padding: 9px 11px; line-height: 1.7; resize: vertical; }
.inp:focus, .ta:focus, .sel2:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(127,162,90,.13); }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fgrid .full { grid-column: 1 / -1; }
.fl { font-size: 11.5px; color: #8d9382; margin-bottom: 5px; display: block; }
.inline-sel { height: 32px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 0 9px; font-size: 12.5px; }

/* ---------------- 列表 / 空态 ---------------- */
.lrow { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line2); }
.lrow:last-child { border-bottom: 0; }
.lrow .sp { flex: 1; }
.empty { text-align: center; padding: 34px 20px; color: #a3a894; }
.empty .ico { width: 46px; height: 46px; border-radius: 14px; background: #f5f4ea; display: grid; place-items: center;
  margin: 0 auto 10px; font-size: 20px; opacity: .8; }
.empty b { display: block; font-size: 13px; color: #7d8570; margin-bottom: 4px; font-weight: 600; }
.empty p { margin: 0 0 12px; font-size: 12px; }

/* ---------------- 网格入口 ---------------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.entry { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; cursor: pointer; box-shadow: var(--shadow); transition: .15s; text-align: left; }
.entry:hover { transform: translateY(-2px); border-color: #d5dcc4; box-shadow: 0 10px 24px rgba(52,59,46,.08); }
.entry .ei { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--green-ll); border: 1px solid #e7ecd8; font-size: 16px; flex: none; }
.entry b { display: block; font-size: 13.5px; }
.entry small { color: #9aa08e; font-size: 11.5px; }

/* 生成卡（教学教研） */
.gencard { background: #fff; border: 1px solid var(--line2); border-radius: 13px; padding: 13px 15px; margin-bottom: 11px; }
.gencard .gh { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.gencard .gi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green-ll); font-size: 15px; flex: none; }
.gencard b { font-size: 13px; }
.gencard small { display: block; color: #9aa08e; font-size: 11.5px; margin-top: 2px; }

/* 输出文档 */
.doc { background: #fffdf6; border: 1px solid #ebe7d4; border-radius: 13px; padding: 16px 18px; }
.doc h4 { margin: 0 0 8px; font-size: 14px; }
.doc h5 { margin: 14px 0 6px; font-size: 12.5px; color: #5f6a52; }
.doc p { margin: 0 0 7px; font-size: 12.5px; line-height: 1.85; color: #4a5242; }
.doc ul { margin: 0 0 8px; padding-left: 18px; font-size: 12.5px; line-height: 1.85; color: #4a5242; }
.doc li { margin-bottom: 3px; }
.doc .en { font-family: "SF Pro Text", "Segoe UI", system-ui; letter-spacing: .2px; }

/* 阅读文本 */
.reading { font-size: 13px; line-height: 2; color: #454d3d; }
.reading .en { display: block; font-family: "SF Pro Text", "Segoe UI", system-ui; color: #3c4436; }
.reading .cn { display: block; color: #969c8b; font-size: 12px; margin-top: 1px; }

/* 题目 */
.q { border: 1px solid var(--line2); border-radius: 11px; padding: 12px 14px; background: #fff; margin-bottom: 9px; }
.q .qh { font-size: 12.5px; margin-bottom: 9px; }
.q .qh b { color: #9aa08e; font-weight: 600; margin-right: 6px; }
.opt { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line2); border-radius: 9px;
  padding: 8px 11px; margin-bottom: 7px; font-size: 12.5px; cursor: pointer; background: #fff; transition: .13s; }
.opt:hover { border-color: #d5dcc4; background: #fcfcf5; }
.opt .k { width: 20px; height: 20px; border-radius: 50%; background: #f4f3e8; display: grid; place-items: center;
  font-size: 11px; color: #8d9382; flex: none; }
.opt.on { border-color: var(--green); background: var(--green-ll); }
.opt.on .k { background: var(--green); color: #fff; }
.opt.right { border-color: #a8c883; background: #f2f8e6; }
.opt.wrong { border-color: #e2b2a4; background: #fdf2ee; }

/* 分数段条形 */
.dist { display: flex; flex-direction: column; gap: 8px; }
.dist-r { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.dist-r .lb { width: 74px; color: #8d9382; flex: none; }
.dist-r .bg { flex: 1; height: 9px; border-radius: 5px; background: #f1efe3; overflow: hidden; }
.dist-r .bg > i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #a9c27f, #7fa25a); }
.dist-r .vv { width: 42px; text-align: right; color: #7d8570; }

/* 随机点名 */
.pick-stage { text-align: center; padding: 34px 20px; background: linear-gradient(150deg, #f3f7e6, #fdfcf5);
  border: 1px solid #e7ebd6; border-radius: 18px; }
.pick-stage .nm { font-size: 52px; font-weight: 700; letter-spacing: 4px; color: #4e6338; min-height: 68px; line-height: 68px; }
.pick-stage .hint { font-size: 12px; color: #9aa18b; margin-top: 6px; min-height: 20px; }
.pick-stage.rolling .nm { color: #8aa266; }

/* 提示条 */
.notice { display: flex; gap: 9px; align-items: flex-start; background: #fbf7e9; border: 1px solid #eee6cd;
  border-radius: 11px; padding: 10px 12px; font-size: 12px; color: #8a7742; line-height: 1.7; }
.notice.green { background: var(--green-ll); border-color: #e2e9cf; color: #62773f; }

/* ---------------- 弹窗 ---------------- */
.mask { position: fixed; inset: 0; background: rgba(40, 46, 34, .34); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.mask[hidden] { display: none; }
.dlg { width: min(560px, 96vw); max-height: 90vh; overflow: auto; background: var(--card);
  border-radius: 18px; box-shadow: 0 26px 70px rgba(30, 36, 24, .26); padding: 20px 22px; }
.dlg h3 { margin: 0 0 4px; font-size: 16px; }
.dlg .dlg-sub { color: var(--sub); font-size: 12px; margin-bottom: 14px; }
.dlg-f { display: flex; gap: 9px; justify-content: flex-end; margin-top: 16px; }

/* ---------------- toast ---------------- */
.toast-wrap { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 120;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #3f4736; color: #fff; border-radius: 10px; padding: 9px 16px; font-size: 12.5px;
  box-shadow: 0 10px 26px rgba(30, 36, 24, .28); animation: tin .22s ease-out; }
.toast.err { background: #a2482f; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- 打印 ---------------- */
@media print {
  .side, .top, .ph-acts, .no-print { display: none !important; }
  .view { padding: 0; overflow: visible; }
  .card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .lg-card { grid-template-columns: 1fr; }
  .lg-left { display: none; }
  .side { width: 62px; padding: 10px 6px; }
  .side-g > b { display: none; }
  .nav-i { justify-content: center; padding: 0; }
  .nav-i span, .nav-i .bdg { display: none; }
  .nav-add { display: none; }
  .view { padding: 14px 12px 40px; }
  .top-sel { display: none; }
  .top { gap: 10px; }
  .grid2, .grid3, .fgrid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
