:root{font-family:"Microsoft YaHei",Arial,sans-serif;color:#183349;background:#f4f8f6}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}.login-page{min-height:100vh;display:grid;grid-template-rows:1fr auto;background:#edf6f1}.login-shell{width:min(920px,calc(100% - 32px));margin:auto;display:grid;grid-template-columns:1fr 390px;align-items:center;gap:72px}.login-brand{display:flex;align-items:center;gap:20px}.login-brand img{width:92px}.login-brand h1{font-size:36px;margin:0 0 8px}.login-brand p{font-size:18px;color:#658074;margin:0}.login-panel{background:#fff;border:1px solid #d6e4dd;padding:32px;border-radius:8px;box-shadow:0 18px 50px rgba(31,72,57,.12)}.login-panel header span{color:#16806a;font-weight:700}.login-panel h2{font-size:26px;margin:8px 0 28px}.login-panel label{display:grid;gap:8px;margin:0 0 18px;font-weight:700}.login-panel input{height:46px;border:1px solid #bdcec6;border-radius:6px;padding:0 12px}.login-panel button,.portal-heading button,dialog button[type=submit]{width:100%;height:46px;border:0;border-radius:6px;background:#157963;color:#fff;font-weight:700;cursor:pointer}.form-error{min-height:22px;color:#c0392b;font-size:14px}.login-footer{display:flex;justify-content:center;gap:18px;padding:18px;color:#64748b;font-size:13px}.login-footer a{color:#475569}.portal-header{height:64px;background:#fff;border-bottom:1px solid #dce7e1;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.portal-header>div{display:flex;align-items:center;gap:16px}.portal-header strong{font-size:21px}.portal-header button{border:1px solid #b9ccc3;background:#fff;border-radius:5px;padding:7px 13px}.portal-main{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 64px)}.portal-main aside{background:#173d35;padding:22px 14px}.portal-main aside button{width:100%;padding:13px;border:0;border-radius:5px;background:#266354;color:#fff;text-align:left}.portal-content{padding:30px}.portal-heading{display:flex;justify-content:space-between;align-items:center}.portal-heading h1{margin:0 0 6px}.portal-heading p{margin:0;color:#708077}.portal-heading button{width:auto;padding:0 20px}.data-table{margin-top:24px;background:#fff;border:1px solid #dce7e1;border-radius:7px;overflow:hidden}.table-row{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;padding:15px 18px;border-bottom:1px solid #e6eeea}.table-row:last-child{border:0}.table-head{font-weight:700;background:#f7faf8}dialog{border:0;border-radius:8px;padding:0;width:min(480px,calc(100% - 32px));box-shadow:0 24px 80px rgba(0,0,0,.25)}dialog::backdrop{background:rgba(13,31,26,.45)}dialog form{padding:24px}dialog header,dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}dialog header button{border:0;background:transparent;font-size:25px}dialog label{display:grid;gap:7px;margin:16px 0}dialog input{height:42px;border:1px solid #bdcec6;border-radius:5px;padding:0 10px}dialog footer{justify-content:flex-end}dialog footer button{width:auto!important;padding:0 18px;height:40px;border:1px solid #b9ccc3;border-radius:5px}dialog footer button[type=submit]{border:0}@media(max-width:720px){.login-shell{grid-template-columns:1fr;gap:28px;padding:32px 0}.login-brand{justify-content:center}.login-brand h1{font-size:28px}.portal-main{grid-template-columns:1fr}.portal-main aside{display:none}.portal-content{padding:18px}.table-row{grid-template-columns:1fr 1fr}.table-row span:nth-child(n+3){display:none}}

/* ===== 作业 v2 + 密保找回（2026-10-11） ===== */
.forgot-password-entry {
  margin-top: 4px;
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 0;
  text-align: center;
}
.org-homework-row .is-overdue { color: #b91c1c; font-weight: 600; }

/* ===== 登录页端别切换（2026-10-12）===== */
.hw-book-fallback { display: block; color: #718096; font-size: 12px; margin-bottom: 6px; }
/* 学员端 / 教师端切换标签（登录页） */
.portal-tabs { display: inline-flex; gap: 0; border: 1px solid #bdcec6; border-radius: 6px; overflow: hidden; vertical-align: middle; }
.portal-tabs button { width: auto; height: 26px; line-height: 26px; padding: 0 12px; border: 0; border-radius: 0; background: #fff; color: #658074; font-size: 12px; font-weight: 700; cursor: pointer; }
.portal-tabs button + button { border-left: 1px solid #bdcec6; }
.portal-tabs button.active { background: #157963; color: #fff; }
.portal-hint { margin: -12px 0 12px; color: #658074; font-size: 12px; }
#recoveryCurrent { color: #6b7280; font-size: 13px; margin: 0 0 8px; }
#recoveryButton {
  background: none;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  margin-right: 8px;
  padding: 4px 10px;
}


/* ===== 作业 v3.1 布置表单（2026-10-12 改三步向导：步骤条 + 分页卡片，主蓝系） ===== */
dialog.dialog-wide { width: min(720px, calc(100vw - 40px)); }
dialog.dialog-wide form { padding: 20px 24px; max-height: calc(100vh - 120px); overflow: auto; }
.hw-form { display: grid; gap: 14px; }
.hw-col { display: grid; gap: 14px; min-width: 0; }
.hw-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hw-step { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border: 1px solid #dfe5ec; border-radius: 10px; background: #fff; color: #718096; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .12s; }
.hw-step i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: #e2e8f0; color: #718096; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.hw-step:hover { border-color: #1976d2; color: #1976d2; }
.hw-step.active { background: #eaf4ff; border-color: #1976d2; color: #1976d2; }
.hw-step.active i, .hw-step.done i { background: #1976d2; color: #fff; }
.hw-step-page { display: grid; gap: 14px; }
.hw-step-page[hidden] { display: none; }
.hw-book-summary { display: grid; gap: 6px; padding: 12px 14px; background: #eaf4ff; border: 1px solid #bfdbfe; border-radius: 10px; }
.hw-book-summary span { font-size: 13px; color: #15243b; }
.hw-book-summary span b { color: #1976d2; }
.hw-book-summary small { color: #718096; font-size: 12px; }
.hw-book-summary .hw-primary { justify-self: start; margin-top: 2px; }
.hw-primary { border: 0; border-radius: 8px; background: #1976d2; color: #fff; font-weight: 700; font-size: 13px; padding: 9px 18px; cursor: pointer; transition: background .12s; }
.hw-primary:hover { background: #1565c0; }
.hw-wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hw-wizard-nav .hw-primary { padding: 11px 22px; font-size: 14px; }
.hw-wizard-nav .hw-ghost { padding: 11px 18px; font-size: 13px; }
.hw-wizard-hint { color: #718096; font-size: 12px; }
.hw-card { background: var(--paper, #fff); border: 1px solid #dfe5ec; border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; box-shadow: 0 1px 3px rgba(21, 36, 59, .05); }
.hw-card-tall { max-height: 62vh; overflow: auto; }
.hw-card-wide { grid-column: 1 / -1; }
.hw-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: #15243b; padding-bottom: 8px; border-bottom: 1px solid #eef2f7; }
.hw-card h3 i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: #1976d2; color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.hw-card h3 span { font-weight: 400; font-size: 12px; color: #718096; }
.hw-label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: #15243b; }
.hw-label select, .hw-label input, .hw-label textarea { border: 1px solid #dfe5ec; border-radius: 8px; padding: 8px 10px; font: inherit; }
.hw-label select:focus, .hw-label input:focus, .hw-label textarea:focus { outline: 2px solid #eaf4ff; border-color: #1976d2; }
.hw-meta-grid { display: grid; grid-template-columns: 1fr 200px; gap: 10px; }
.hw-meta-grid .hw-label-full { grid-column: 1 / -1; }

/* chip：可点的选项就做成 chip，不再用窄下拉 */
.hw-chip-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.hw-chip-grid { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; }
.hw-chip-grid[hidden] { display: none; }
.hw-chip { position: relative; display: inline-flex; }
.hw-chip input { position: absolute; opacity: 0; pointer-events: none; }
.hw-chip span { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid #dfe5ec; border-radius: 999px; background: #fff; color: #15243b; font-size: 13px; cursor: pointer; user-select: none; transition: all .12s; }
.hw-chip span:hover { border-color: #1976d2; background: #eaf4ff; }
.hw-chip input:checked + span { background: #1976d2; border-color: #1976d2; color: #fff; font-weight: 600; }
.hw-chip-sm span { padding: 4px 10px; font-size: 12px; }
.hw-empty { color: #718096; font-size: 13px; }
.hw-note, .hw-item-row small, .hw-book-head small { color: #718096; font-size: 12px; }

/* 任务组 */
.hw-group { display: grid; gap: 7px; padding: 10px 0 2px; border-top: 1px dashed #dfe5ec; }
.hw-group > b { font-size: 13px; color: #15243b; }
.hw-item-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.hw-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hw-check input { accent-color: #1976d2; width: 15px; height: 15px; }
/* 班级详情「添加学员」批量勾选 */
.class-add-picker { border: 1px solid #dfe5ec; border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; max-height: 300px; overflow: auto; display: grid; gap: 8px; }
.class-add-picker legend { font-size: 13px; color: #718096; padding: 0 4px; }
/* 班级详情：老师/学员名单 + 操作区 */
.class-detail h4 { margin: 10px 0 6px; font-size: 13px; color: #718096; font-weight: 600; }
.class-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 1px solid #dfe5ec; border-radius: 8px; margin-bottom: 6px; }
.class-detail-row button { border: 1px solid #dfe5ec; background: #fff; color: #b91c1c; border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.class-detail-row button:hover { border-color: #b91c1c; }
/* 详情弹窗里的操作按钮组：学情是查看动作，用主蓝而不是移出本班的警示红 */
.class-detail-ops { display: inline-flex; gap: 6px; }
.class-detail-row button[data-view-report] { color: #1976d2; }
.class-detail-row button[data-view-report]:hover { border-color: #1976d2; }
.class-detail-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.class-detail-actions .class-add-entry { background: #1976d2; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.table-row.is-clickable { cursor: pointer; }
.table-row.is-clickable:hover strong { color: #1976d2; }
.hw-target { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #718096; }
.hw-target input[type="number"] { width: 60px; border: 1px solid #dfe5ec; border-radius: 6px; padding: 3px 6px; }
.hw-target select { border: 1px solid #dfe5ec; border-radius: 6px; padding: 3px 6px; }

/* 教材选单：复刻学员端「选择教材」的 grade-menu / edition-menu / volume-menu（同款新拟物样式） */
.hw-book-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hw-book-head b { color: #15243b; }
.hw-book-menu { border: 1px solid #dfe5ec; border-radius: 12px; background: #f7faf8; padding: 8px 12px 12px; }
.hw-book-menu label { position: relative; }
.hw-book-menu label input { position: absolute; opacity: 0; pointer-events: none; }
.hw-book-menu .grade-menu { display: flex; flex-wrap: wrap; gap: 12px; padding: 6px 4px 12px; }
.hw-book-menu .grade-menu label { min-width: 92px; min-height: 44px; display: grid; place-items: center; padding: 0 18px; border-radius: 10px; background: #edf2ef; color: #536578; font-size: 15px; font-weight: 900; white-space: nowrap; cursor: pointer; box-shadow: 5px 5px 10px #d7ded9, -5px -5px 10px #fff; }
.hw-book-menu .grade-menu label:hover { background: #eef5f1; }
.hw-book-menu .grade-menu label.active { background: #e4f2ec; color: #13745b; box-shadow: inset 4px 4px 8px #c2d6cd, inset -4px -4px 8px #fff; }
.hw-book-menu .edition-level { display: grid; grid-template-columns: 88px 1fr; align-items: stretch; gap: 12px; padding: 12px 4px; border-top: 1px solid #e0e8e3; border-bottom: 1px solid #e0e8e3; }
.hw-book-menu .edition-level > span { display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #536578; }
.hw-book-menu .edition-menu { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.hw-book-menu .edition-menu::-webkit-scrollbar { display: none; }
.hw-book-menu .edition-menu label { min-width: 140px; min-height: 40px; display: grid; place-items: center; padding: 0 14px; border-radius: 9px; background: #edf2ef; color: #536578; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; box-shadow: 4px 4px 9px #d7ded9, -4px -4px 9px #fff; }
.hw-book-menu .edition-menu label:hover { background: #eef5f1; }
.hw-book-menu .edition-menu label.active { background: #e4f2ec; color: #13745b; box-shadow: inset 4px 4px 8px #c2d6cd, inset -4px -4px 8px #fff; }
.hw-book-menu .volume-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 12px 4px 2px; }
.hw-book-menu .volume-menu label { min-height: 76px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 12px; border-radius: 10px; background: #edf2ef; text-align: center; cursor: pointer; box-shadow: 5px 5px 10px #d7ded9, -5px -5px 10px #fff; }
.hw-book-menu .volume-menu label:hover { background: #eef5f1; }
.hw-book-menu .volume-menu label.active { background: #e4f2ec; box-shadow: inset 4px 4px 8px #c2d6cd, inset -4px -4px 8px #fff; }
.hw-book-menu .volume-menu strong { font-size: 16px; color: #22344a; }
.hw-book-menu .volume-menu label.active strong { color: #13745b; }
.hw-book-menu .volume-menu small { color: #8291a1; font-size: 12px; }
.hw-book-menu .hw-empty { padding: 8px 4px; }
.hw-book-menu-sm .grade-menu label { min-width: 76px; min-height: 36px; font-size: 13px; padding: 0 12px; }
.hw-book-menu-sm .edition-menu label { min-width: 120px; min-height: 34px; font-size: 12px; }
.hw-book-menu-sm .volume-menu { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.hw-book-menu-sm .volume-menu label { min-height: 60px; }
.hw-unit-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hw-unit-head b { font-size: 13px; color: #15243b; }
.hw-unit-head span { margin-left: auto; display: inline-flex; gap: 6px; }

/* 工具行 / 预览 / 矩阵 */
.hw-ghost { border: 1px solid #dfe5ec; border-radius: 8px; background: #fff; color: #15243b; font-size: 12px; padding: 5px 12px; cursor: pointer; }
.hw-ghost:hover { border-color: #1976d2; background: #eaf4ff; color: #1976d2; }
.hw-tools { margin-top: 2px; }
.hw-preview { border: 1px dashed #1976d2; border-radius: 10px; padding: 10px 12px; background: #eaf4ff; font-size: 13px; }
.hw-preview ul { margin: 6px 0 0; padding-left: 18px; }
.hw-matrix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hw-cell { font-size: 12px; padding: 3px 8px; border-radius: 8px; background: #f5f7fa; border: 1px solid #dfe5ec; color: #15243b; display: inline-grid; gap: 1px; }
.hw-cell.is-done { background: #e7f4ee; border-color: #23856d; color: #23856d; }
.hw-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 860px) { .hw-steps { grid-template-columns: 1fr; } .hw-meta-grid { grid-template-columns: 1fr; } }

/* ---------- 学习详情弹窗：快照板块 + 分享（2026-10-14，rsnap-* 与 report-view.css 同构） ---------- */
.report-trace-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid #dfe5ec; display: grid; gap: 10px; }
.report-trace-title { margin: 0; font-size: 14px; color: #718096; }
.rsnap-heading { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #15243b; }
.rsnap-section { margin: 0 0 16px; }
.rsnap-section h3 { margin: 0 0 8px; font-size: 14px; color: #718096; }
.rsnap-summary { display: grid; gap: 8px; }
.rsnap-row { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border: 1px solid #dfe5ec; border-radius: 10px; background: #fff; }
.rsnap-row-name { font-weight: 700; font-size: 14px; grid-column: 1; color: #15243b; }
.rsnap-row-rate { grid-column: 2; font-size: 22px; color: #15243b; }
.rsnap-row-rate small { font-size: 13px; margin-left: 1px; }
.rsnap-row-label { grid-column: 2; grid-row: 2; color: #718096; font-size: 12px; }
.rsnap-row-weak { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: #b45309; font-size: 13px; font-weight: 600; font-style: normal; }
.rsnap-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rsnap-status-item { border: 1px solid #dfe5ec; border-radius: 10px; padding: 10px; display: grid; gap: 6px; font-size: 13px; }
.rsnap-status-item span { display: inline-flex; align-items: center; gap: 6px; color: #718096; }
.rsnap-status-item i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.rsnap-status-item.is-due i { background: #ef4444; }
.rsnap-status-item.is-learning i { background: #f59e0b; }
.rsnap-status-item.is-stable i { background: #10b981; }
.rsnap-status-item strong { font-size: 20px; color: #15243b; }
.rsnap-status-item progress { width: 100%; height: 6px; }
.rsnap-table { border: 1px solid #dfe5ec; border-radius: 10px; overflow: hidden; font-size: 13px; color: #15243b; }
.rsnap-thead, .rsnap-tr { display: grid; padding: 8px 12px; gap: 8px; align-items: center; }
.rsnap-units .rsnap-thead, .rsnap-units .rsnap-tr { grid-template-columns: 2.2fr 1fr 1fr 1fr 1.2fr; }
.rsnap-tests .rsnap-thead, .rsnap-tests .rsnap-tr { grid-template-columns: 1.6fr 1.6fr 1.6fr 1fr 1fr; }
.rsnap-thead { background: #f5f7fa; color: #718096; font-weight: 600; }
.rsnap-tr { border-top: 1px solid #dfe5ec; }
.rsnap-tr time, .rsnap-tr small { color: #718096; }
.rsnap-tr b small { display: block; font-weight: 400; }
.rsnap-tr strong { color: #17614a; }
.rsnap-note { color: #718096; font-size: 13px; margin: 0; }
.rsnap-updated { color: #718096; font-size: 12px; margin: 4px 0 0; }
.rsnap-empty { border: 1px dashed #dfe5ec; border-radius: 12px; padding: 22px; text-align: center; color: #718096; display: grid; gap: 6px; }
.rsnap-empty strong { color: #15243b; font-size: 15px; }
.rsnap-empty p { margin: 0; font-size: 13px; }
.rsnap-dialog { border: none; border-radius: 16px; padding: 0; width: min(420px, 92vw); }
.rsnap-dialog::backdrop { background: rgba(15, 30, 50, 0.45); }
.rsnap-dialog form { display: grid; }
.rsnap-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #dfe5ec; }
.rsnap-dialog h2 { margin: 0; font-size: 17px; }
.rsnap-dialog header button { border: none; background: none; font-size: 20px; cursor: pointer; color: #718096; text-decoration: none; }
.rsnap-dialog-body { padding: 16px 18px; display: grid; gap: 12px; justify-items: center; }
.rsnap-dialog footer { padding: 12px 18px; border-top: 1px solid #dfe5ec; display: flex; justify-content: flex-end; }
.rsnap-dialog footer button { padding: 8px 18px; border: 1px solid #dfe5ec; border-radius: 8px; background: #fff; cursor: pointer; }
.rsnap-dialog-note { margin: 0; color: #718096; font-size: 13px; line-height: 1.6; }
.rsnap-share-qr { min-height: 140px; display: grid; place-items: center; }
.rsnap-share-qr canvas { border: 1px solid #dfe5ec; border-radius: 8px; }
.rsnap-share-link { display: flex; gap: 6px; width: 100%; }
.rsnap-share-link input { flex: 1; padding: 8px 10px; border: 1px solid #dfe5ec; border-radius: 8px; font-size: 12px; color: #718096; min-width: 0; }
.rsnap-share-link button { padding: 8px 14px; border: 1px solid #17614a; border-radius: 8px; background: #17614a; color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
@media (max-width: 560px) {
  .rsnap-status { grid-template-columns: 1fr; }
  .rsnap-units .rsnap-thead, .rsnap-units .rsnap-tr { grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr 1fr; }
  .rsnap-tests .rsnap-thead, .rsnap-tests .rsnap-tr { grid-template-columns: 1.2fr 1.4fr 1.4fr 0.8fr 0.8fr; }
}
/* 打印：只出弹窗内容（克隆进 .print-root） */
.print-root { display: none; }
@media print {
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block !important; color: #15243b; font-size: 12pt; }
  .print-root-title { font-size: 16pt; margin: 0 0 10px; }
}
.parent-center-entry { display: block; margin-top: 10px; color: #17614a; font-size: 13px; text-align: center; text-decoration: none; }
.parent-center-entry:hover { text-decoration: underline; }

/* 完整留痕镜像在教师弹窗内的排版 */
.rsnap-error-list, .rsnap-inline-list, .rsnap-step-table, .rsnap-attention, .rsnap-findings { display: grid; gap: 7px; }
.rsnap-error-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; align-items: center; padding: 9px 11px; border: 1px solid #dfe5ec; border-radius: 8px; font-size: 13px; }
.rsnap-error-row span { color: #718096; }
.rsnap-error-row em { color: #b45309; font-style: normal; font-size: 12px; }
.rsnap-inline-list { grid-template-columns: auto 1fr; margin-bottom: 8px; font-size: 13px; }
.rsnap-inline-list span { color: #718096; }
.rsnap-trace-period { border: 1px solid #dfe5ec; border-radius: 9px; padding: 9px 11px; }
.rsnap-trace-period summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.rsnap-trace-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.rsnap-trace-facts span { padding: 5px 8px; background: #f5f7fa; border-radius: 6px; color: #718096; font-size: 12px; }
.rsnap-step-table > div, .rsnap-attention > div { display: grid; grid-template-columns: 1.5fr 2fr; gap: 8px; padding: 6px 0; border-top: 1px solid #dfe5ec; font-size: 12px; }
.rsnap-step-table em { color: #718096; font-style: normal; }
.rsnap-attention > div { grid-template-columns: 1fr 1fr auto 1fr auto; align-items: center; }
.rsnap-attention span { color: #b45309; }
.rsnap-attention em { color: #718096; font-style: normal; }
.rsnap-findings { margin-top: 10px; }
.rsnap-findings > div { border-left: 3px solid #17614a; padding: 6px 10px; }
.rsnap-findings p { margin: 3px 0 0; color: #718096; font-size: 12px; }
@media (max-width: 560px) {
  .rsnap-error-row { grid-template-columns: 1fr; gap: 3px; }
  .rsnap-attention > div { grid-template-columns: 1fr 1fr auto 1fr; }
  .rsnap-attention em { grid-column: 1 / -1; }
}

/* ===== 机构总览首页 + 点位台账（2026-10-17）=====
   侧边栏从单个按钮变成 6 项导航，先把按钮态和间距补上：
   active 用亮底，隐藏项靠 hidden 属性（.portal-nav button 的 display 会覆盖 hidden，要显式兜底）。 */
.portal-nav { display: flex; flex-direction: column; gap: 4px; }
.portal-nav button { background: #266354; }
.portal-nav button.active { background: #16806a; font-weight: 700; }
.portal-nav button[hidden] { display: none; }
.portal-nav + .portal-content .portal-heading { margin-bottom: 4px; }

/* 快捷操作条：首页顶部一行，校长不用去别的页签找人。 */
.overview-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; }
/* [hidden] 的 display:none 是 UA 样式，会被上面的 display:flex 覆盖 ——
   于是 hidden=true 的元素照样显示。这是 HTML 里凡是带 display 的类都要配的一条。 */
.overview-shortcuts[hidden], .overview-root[hidden] { display: none; }
.overview-shortcuts > span { color: #708077; font-size: 13px; }
.overview-shortcuts button { width: auto; padding: 8px 16px; border: 1px solid #b9ccc3; background: #fff; border-radius: 5px; cursor: pointer; }
.overview-shortcuts button:hover { border-color: #16806a; color: #16806a; }

/* 规模指标卡：一排 6 个，手机端折成 2 列。数字优先，标签和注解退到辅助层级。 */
.overview-root { margin-top: 20px; }
.ov-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ov-card { background: #fff; border: 1px solid #dce7e1; border-radius: 7px; padding: 14px 16px; display: grid; gap: 4px; }
.ov-card > span { color: #708077; font-size: 13px; }
.ov-card > strong { font-size: 26px; line-height: 1.2; }
.ov-card > small { color: #93a29a; font-size: 12px; }

/* 趋势图 + 待办：左宽右窄。柱子用 flex 高度百分比，最小 2% 保证 0 人那天仍看得见基线。 */
.ov-columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-top: 16px; align-items: start; }
.ov-panel { background: #fff; border: 1px solid #dce7e1; border-radius: 7px; padding: 18px 20px; margin-top: 16px; }
.ov-columns .ov-panel { margin-top: 0; }
.ov-panel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ov-panel > header h2 { margin: 0; font-size: 17px; }
.ov-panel > header span { color: #93a29a; font-size: 13px; }
.ov-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.ov-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.ov-bar i { display: block; width: 100%; background: #7fc4ad; border-radius: 3px 3px 0 0; }
.ov-bar small { color: #93a29a; font-size: 11px; margin-top: 6px; white-space: nowrap; }
.ov-bar:hover i { background: #16806a; }

/* 待办：有数的才出现。count 用等宽数字，跳动时不会左右晃。 */
.ov-todos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ov-todos li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef3f0; }
.ov-todos li:last-child { border-bottom: 0; }
.ov-todo-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-todos button { width: auto; padding: 5px 12px; border: 1px solid #b9ccc3; background: #fff; border-radius: 5px; cursor: pointer; font-size: 13px; }
.ov-todos button:hover { border-color: #16806a; color: #16806a; }

/* 老师维度列表：整行可点，网格与表头对齐。 */
.ov-teacher-row { display: grid; grid-template-columns: 1.1fr 2fr .5fr .5fr .7fr .9fr; gap: 12px; width: 100%; padding: 12px 8px; border: 0; border-bottom: 1px solid #eef3f0; background: transparent; text-align: left; cursor: pointer; align-items: center; }
.ov-teacher-head { color: #93a29a; font-size: 13px; cursor: default; }
.ov-teacher-row:not(.ov-teacher-head):hover { background: #f4f8f6; }
.ov-teacher-row strong { font-weight: 700; }
.ov-teacher-row small { color: #c0392b; margin-left: 6px; font-size: 12px; }
.ov-online { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-online > span { background: #f4f8f6; border-radius: 5px; padding: 6px 10px; display: inline-flex; gap: 6px; align-items: baseline; }
.ov-online small { color: #93a29a; font-size: 12px; }

/* 点位台账：余额在上、明细在下。规则直接印在页面上，免得每次都要问人。 */
.credit-pools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.credit-pool { display: grid; gap: 4px; }
.credit-pool > span { color: #708077; font-size: 13px; }
.credit-pool > strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.credit-pool > strong.credit-rule { font-size: 18px; }
.credit-pool > small { color: #93a29a; font-size: 12px; }
.credit-row { grid-template-columns: 1.2fr .8fr 1.4fr .5fr .8fr; }

@media (max-width: 1000px) {
  .ov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-columns { grid-template-columns: 1fr; }
  .credit-pools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-teacher-row { grid-template-columns: 1fr .5fr .5fr; }
  .ov-teacher-row > span:nth-child(2), .ov-teacher-row > span:nth-child(6) { display: none; }
}

/* 开卡弹窗里的点位预览：不够时用警示色，并把提交按钮置灰。 */
.credit-note { margin: 14px 0 0; padding: 10px 12px; background: #f4f8f6; border-radius: 5px; color: #17614a; font-size: 13px; }
.credit-note-short { background: #fdeceb; color: #a32d2d; }
.operation-result-extra { display: block; margin-top: 6px; color: #17614a; }
dialog button[type=submit]:disabled { background: #9bb5ab; cursor: not-allowed; }

/* ===== 列表工具条 + 分组（2026-10-17）===== */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; background: #fff; border-bottom: 1px solid #e6eeea; }
.list-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 260px; }
.list-search input { flex: 1; max-width: 340px; height: 36px; border: 1px solid #bdcec6; border-radius: 5px; padding: 0 12px; font-size: 14px; }
.list-search input:focus { outline: 2px solid #16806a; outline-offset: -1px; }
.list-search span { color: #93a29a; font-size: 13px; font-variant-numeric: tabular-nums; }
.list-tabs { display: flex; gap: 6px; }
.list-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #b9ccc3; background: #fff; border-radius: 5px; cursor: pointer; font-size: 14px; color: #4a5a52; }
.list-tabs button:hover { border-color: #16806a; color: #16806a; }
.list-tabs button.active { background: #16806a; border-color: #16806a; color: #fff; font-weight: 500; }
.list-tabs button small { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }

/* 分组：组头给名称和数量，组内沿用同一套表头/行样式。
   组头用浅底而不是分隔线 —— 170 行滚下去时，靠线找组头很费劲。 */
.list-group > header { display: flex; align-items: baseline; gap: 12px; padding: 12px 18px 10px; background: #f7faf8; border-top: 1px solid #e6eeea; }
.list-group:first-of-type { border-top: 0; }
.list-group > header strong { font-size: 14px; }
.list-group > header span { color: #93a29a; font-size: 13px; font-variant-numeric: tabular-nums; }
.list-group:empty { display: none; }

/* 老师 → 班级 两级折叠：默认收起，只给「N 个班」的数量，用户要哪层点哪层。 */
.list-subgroup { border-top: 1px solid #eef3f0; }
.list-subgroup > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px 11px 34px; cursor: pointer; font-size: 14px; color: #4a5a52; list-style: none; }
.list-subgroup > summary::-webkit-details-marker { display: none; }
.list-subgroup > summary::before { content: "▸"; color: #93a29a; margin-right: 8px; }
.list-subgroup[open] > summary::before { content: "▾"; }
.list-subgroup > summary span { color: #93a29a; font-size: 13px; font-variant-numeric: tabular-nums; }
.list-subgroup > summary:hover { background: #f4f8f6; }
.list-subgroup-body .table-row:first-child { border-top: 0; }

/* 总览里的老师表：班级列同样不能撑爆行高。 */
.ov-class-cell { font-size: 13px; color: #4a5a52; }
.ov-class-cell.is-empty { color: #c0392b; }

@media (max-width: 720px) {
  .list-toolbar { flex-direction: column; align-items: stretch; }
  .list-search input { max-width: none; }
  .list-tabs { overflow-x: auto; }
}

/* ===== 侧边栏重新设计（2026-10-17）=====
   从「一列纯文字按钮」改成带图标的导航项，并按「日常 / 资产」分组。
   侧边栏宽度从 220px 收到 208px —— 文字加了图标后不需要那么宽。 */
.portal-main { grid-template-columns: 208px 1fr; }
.portal-nav { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; }
.portal-nav-group { padding: 14px 12px 6px; font-size: 12px; color: #7f9b91; letter-spacing: .08em; }
.portal-nav-group:first-child { padding-top: 0; }
.portal-nav-group.is-secondary { margin-top: 10px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.portal-nav button { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 0; border-radius: 7px; background: transparent; color: #d5e6df; text-align: left; cursor: pointer; transition: background .12s ease, color .12s ease; }
.portal-nav button:hover { background: rgba(255,255,255,.09); color: #fff; }
.portal-nav button.active { background: #16806a; color: #fff; font-weight: 500; }
.portal-nav button[hidden] { display: none; }
.portal-nav button span { font-size: 14px; }

/* 图标：全部用 CSS 画，不引图片。20×20 的方形容器 + 简笔形，避免外部资源依赖。 */
.nav-ico { flex: none; width: 18px; height: 18px; position: relative; opacity: .9; }
.nav-ico::before, .nav-ico::after { content: ""; position: absolute; }
/* 总览：田字格 */
.nav-ico-grid::before { inset: 1px; background: linear-gradient(currentColor 0 0) 0 0 / 8px 8px no-repeat, linear-gradient(currentColor 0 0) 10px 0 / 8px 8px no-repeat, linear-gradient(currentColor 0 0) 0 10px / 8px 8px no-repeat, linear-gradient(currentColor 0 0) 10px 10px / 8px 8px no-repeat; border-radius: 2px; }
/* 学员：人形（头 + 肩） */
.nav-ico-user::before { width: 7px; height: 7px; left: 5.5px; top: 1px; border-radius: 50%; background: currentColor; }
.nav-ico-user::after { width: 15px; height: 8px; left: 1.5px; bottom: 1px; border-radius: 8px 8px 0 0; background: currentColor; }
/* 老师：人形 + 讲台横线 */
.nav-ico-teacher::before { width: 7px; height: 7px; left: 5.5px; top: 0; border-radius: 50%; background: currentColor; }
.nav-ico-teacher::after { left: 1px; right: 1px; bottom: 1px; height: 6px; border-bottom: 2px solid currentColor; }
/* 班级：三个竖排小方块 */
.nav-ico-class::before { width: 4px; height: 14px; left: 1px; top: 2px; border-radius: 1px; background: currentColor; }
.nav-ico-class::after { width: 4px; height: 10px; right: 1px; top: 2px; border-radius: 1px; background: currentColor; opacity: .55; }
/* 作业：书页 */
.nav-ico-book::before { left: 2px; top: 1px; bottom: 1px; width: 6px; border-radius: 1px 0 0 1px; background: currentColor; }
.nav-ico-book::after { right: 2px; top: 1px; bottom: 1px; width: 6px; border-radius: 0 1px 1px 0; background: currentColor; opacity: .55; }
/* 点位：硬币 */
.nav-ico-coin::before { inset: 2px; border-radius: 50%; border: 2px solid currentColor; }
.nav-ico-coin::after { width: 2px; height: 6px; left: 8px; top: 6px; border-radius: 1px; background: currentColor; }
/* 机构：楼栋 */
.nav-ico-org::before { left: 4px; bottom: 1px; width: 10px; height: 14px; border-radius: 2px 2px 0 0; background: currentColor; }
.nav-ico-org::after { left: 6px; top: 1px; width: 6px; height: 2px; background: currentColor; opacity: .55; }

@media (max-width: 720px) {
  .portal-main { grid-template-columns: 1fr; }
}

/* ===== 数据表格视觉优化（2026-10-17）=====
   原来：纯白行 + 1px 分隔线，行与行之间没有视觉节奏，170 行滚下去是一堵墙。
   现在：留白 + 悬停高亮 + 更克制的分隔线 + 表头吸顶，让「谁是哪一行」一眼可辨。 */
.data-table { border-radius: 10px; box-shadow: 0 1px 3px rgba(31,72,57,.05); }
.table-row { padding: 15px 20px; gap: 14px; align-items: center; transition: background .1s ease; }
.table-row:not(.table-head):not(:last-child) { border-bottom: 1px solid #f0f5f2; }
.table-row:not(.table-head):hover { background: #f7fbf9; }
/* 表头吸顶：分组后一屏能看到 170 行，没有吸顶就会完全失去列的含义。 */
.table-head { position: sticky; top: 0; z-index: 2; background: #f7faf8; color: #5f7d70; font-size: 13px; font-weight: 500; letter-spacing: .02em; border-bottom: 1px solid #e0e9e5; }
.table-row > span { min-width: 0; }
/* 姓名/主标题略加重，副信息（账号、班级）退到辅助色 —— 一眼先看到「是谁」。 */
.table-row > span:first-child strong { font-size: 15px; font-weight: 500; color: #173d35; }
.table-row > span:first-child small { display: block; margin-top: 3px; color: #93a29a; font-size: 13px; }
.org-student-row, .org-teacher-row, .org-class-row, .institution-row, .credit-row { grid-template-columns: 1.1fr .9fr 1.5fr .9fr 1.6fr; gap: 14px; }
.org-student-row button, .org-teacher-row button { border: 1px solid #d6e4dd; border-radius: 5px; background: #fff; color: #28594d; padding: 6px 10px; cursor: pointer; font-size: 13px; transition: border-color .1s ease, background .1s ease; }
.org-student-row button:hover, .org-teacher-row button:hover { border-color: #16806a; background: #eaf7f2; color: #16806a; }
.org-student-row span:last-child, .org-teacher-row span:last-child { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.class-cell { display: block; }
.class-cell strong { display: block; font-weight: 500; color: #173d35; }
.class-cell small { display: block; margin-top: 3px; color: #93a29a; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.class-cell.is-empty { color: #c0392b; font-size: 13px; }
/* 分组内的表头不吸顶 —— 它跟着组头走，吸顶会和组头打架。 */
.list-group .table-head { position: static; }

/* 操作列：5 个按钮会折成两行把行高顶高。
   次要操作（重置密码/停用启用/设到期）收进「更多」下拉，默认只留 1~2 个高频动作。 */
.row-actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.row-actions > button { white-space: nowrap; }
.row-actions-more { position: relative; }
.row-actions-more > summary { list-style: none; cursor: pointer; border: 1px solid #d6e4dd; border-radius: 5px; background: #fff; color: #28594d; padding: 6px 10px; font-size: 13px; user-select: none; }
.row-actions-more > summary::-webkit-details-marker { display: none; }
.row-actions-more > summary:hover { border-color: #16806a; color: #16806a; }
.row-actions-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 4px; min-width: 128px; padding: 6px; background: #fff; border: 1px solid #d6e4dd; border-radius: 7px; box-shadow: 0 8px 24px rgba(31,72,57,.14); }
.row-actions-menu button { width: 100%; text-align: left; white-space: nowrap; }
/* details 的展开由 open 属性控制，不用 :focus-within —— 点了菜单里的按钮后
   focus 会离开 details，:focus-within 会连带把菜单关掉，操作等于没生效。
   收起逻辑交给全局 click（portal.js 里统一关掉所有 .row-actions-more[open]）。 */

/* ===== 总览视觉升级（2026-10-17 第三轮）=====
   原来：6 个等大的白卡横排 + 两个等宽面板 —— 信息都在，但没有一个视觉重心。
   现在：主指标（在校学员）升级成深色大卡作视觉锚点，辅助指标降级为侧栏小格。
   目的是让校长一进页面先落在「我这家机构有多大、在学多少人」上。 */
.ov-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr); gap: 16px; margin-bottom: 16px; }
.ov-hero-main { background: linear-gradient(135deg, #12463b 0%, #1a6353 100%); color: #fff; border-radius: 12px; padding: 26px 30px; display: grid; align-content: center; gap: 6px; }
.ov-hero-label { font-size: 13px; color: rgba(255,255,255,.72); letter-spacing: .02em; }
.ov-hero-number { font-size: 52px; line-height: 1.05; font-weight: 500; letter-spacing: -.02em; }
.ov-hero-sub { font-size: 14px; color: rgba(255,255,255,.82); }
.ov-hero-side { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ov-hero-stat { background: #fff; border: 1px solid #dfe9e5; border-radius: 12px; padding: 18px 20px; display: grid; align-content: center; gap: 4px; }
.ov-hero-stat > span { font-size: 13px; color: #6f847b; }
.ov-hero-stat > strong { font-size: 30px; line-height: 1.1; font-weight: 500; color: #12463b; font-variant-numeric: tabular-nums; }
.ov-hero-stat > small { font-size: 12px; color: #9aaba4; }

/* 趋势面板：柱子区加浅底衬底 + 摘要行。摘要给「较前 7 天 ±%」，
   因为光看柱子读者得自己心算，看不出这周是好转还是走坏。 */
.ov-chart-summary { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: 13px; color: #6f847b; }
.ov-chart-summary strong { font-size: 18px; color: #12463b; font-weight: 500; }
.ov-chart-summary .is-up { color: #1d7a4f; }
.ov-chart-summary .is-down { color: #b4453a; }
.ov-chart { background: #fafcfb; border-radius: 9px; padding: 14px 12px 10px; }

/* 待办项加一行灰色注解：光有「已到期未续 1」不知道意味着什么，
   补上「账号已转只读」才知道该不该今天就打电话。 */
.ov-todos li { grid-template-columns: 1fr auto auto; gap: 14px; }
.ov-todo-main { display: grid; gap: 2px; min-width: 0; }
.ov-todo-label { font-size: 14px; }
.ov-todo-hint { font-size: 12px; color: #9aaba4; }
.ov-todo-count { font-size: 18px; min-width: 34px; text-align: right; }

/* 面板头部：标题左侧加一根竖条做锚点，比单纯加粗更容易扫读。 */
.ov-panel > header h2 { position: relative; padding-left: 11px; }
.ov-panel > header h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 15px; border-radius: 2px; background: #16806a; }

@media (max-width: 1100px) {
  .ov-hero { grid-template-columns: 1fr; }
  .ov-hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ov-hero-side { grid-template-columns: 1fr; }
  .ov-hero-number { font-size: 42px; }
}

/* 状态胶囊在 grid 单元格里会被拉伸成整行宽 —— 改成 inline-flex 自适应宽度。 */
.status-pill { display: inline-flex; align-items: center; justify-content: center; align-self: start; padding: 3px 10px; border-radius: 20px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.status-pill.is-active { background: #e4f4ec; color: #1d7a4f; }
.status-pill.is-disabled { background: #f1f3f2; color: #7c8a85; }
.org-class-row > span:nth-child(4), .org-student-row > span:nth-child(4) { display: grid; gap: 3px; justify-items: start; align-content: center; }

/* ============================================================
   玻璃态统一（2026-10-17）：对齐学员端主页设计语言
   深绿底 #174f44/#176b58 + 半透明白卡 rgba(255,255,255,.65)
   + backdrop-filter 模糊 + 柔和阴影 rgba(28,61,54,.08~.14) + 圆角
   参考：student-home-dashboard.css 的 .dashboard-report-summary /
   .dashboard-secondary / .dashboard-current
   ============================================================ */

/* 整页深绿渐变底，作为所有玻璃层的模糊背景。
   注意：不在这里改全局字色 —— 内容卡片（.ov-panel/.data-table 等）都是浅底，
   深色字必须保留；亮字只给顶栏/侧栏/页签这些深绿玻璃件，各自显式声明。 */
body.portal-page {
  background: linear-gradient(135deg, #0f3d33 0%, #12463b 42%, #176b58 100%);
  min-height: 100vh;
}

/* —— 顶部导航栏：深绿玻璃条 —— */
.portal-header {
  background: rgba(11, 43, 37, .42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: #eaf4f0;
}
.portal-header strong { color: #fff; }
.portal-header > div:last-child span { color: rgba(255, 255, 255, .72); }
.portal-header button {
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 8px 14px;
  color: #eaf4f0;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.portal-header button:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .34); }

/* —— 侧边导航：深绿玻璃面板 + 玻璃按钮（贴 .dashboard-secondary）—— */
.portal-main aside {
  background: rgba(13, 40, 34, .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255, 255, 255, .12);
}
.portal-nav-group { color: rgba(255, 255, 255, .5); letter-spacing: .08em; }
.portal-nav-group.is-secondary { border-top-color: rgba(255, 255, 255, .14); }
.portal-nav button {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #d5e6df;
  border-radius: 8px;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.portal-nav button:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}
.portal-nav button.active {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .44);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 16px rgba(0, 0, 0, .2);
}
.portal-nav button span { color: inherit; }
.portal-nav button .nav-ico { color: #9fe6cf; }
.portal-nav button[hidden] { display: none; }

/* —— 内容区与标题 —— */
.portal-content { padding: 26px 30px; }
.portal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.portal-heading h1 { color: #fff; font-size: 24px; margin: 0; }
.portal-heading p { color: rgba(255, 255, 255, .66); margin: 5px 0 0; font-size: 13px; }
/* 标题旁主按钮（机构管理页「新建机构」）：绿色玻璃 —— 对齐 .dashboard-primary */
.portal-heading button, #createButton {
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .4);
  background: linear-gradient(135deg, #126651, #16866c);
  color: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(18, 102, 81, .32);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.portal-heading button:hover, #createButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(18, 102, 81, .42);
  filter: brightness(1.05);
}

/* —— 列表工具条：轻玻璃条 —— */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: linear-gradient(rgba(255, 255, 255, .62), rgba(255, 255, 255, .34));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(23, 109, 88, .12);
}
.list-toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.list-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 260px; }
.list-search input {
  flex: 1;
  max-width: 340px;
  height: 38px;
  border: 1px solid rgba(23, 109, 88, .25);
  border-radius: 9px;
  padding: 0 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, .7);
  color: #173d35;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.list-search input::placeholder { color: #7fa093; }
.list-search input:focus { outline: none; border-color: #16866c; background: #fff; box-shadow: 0 0 0 3px rgba(22, 134, 108, .18); }
.list-search span { color: #6f847b; font-size: 13px; font-variant-numeric: tabular-nums; }

/* —— 分组 tab：玻璃药丸（贴 .dashboard-module 选中态）—— */
.list-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.list-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 109, 88, .22);
  background: rgba(255, 255, 255, .5);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: #176b58;
  transition: all .12s ease;
}
.list-tabs button:hover { background: rgba(255, 255, 255, .8); border-color: #16866c; color: #126651; }
.list-tabs button.active {
  background: #176b58;
  border-color: #176b58;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(23, 109, 88, .3);
}
.list-tabs button small { font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }

/* —— 工具条「新建/布置」主按钮：绿色玻璃（对齐 .dashboard-primary）—— */
.list-create {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  background: linear-gradient(135deg, #126651, #1c8a6f);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 102, 81, .34);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.list-create:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(18, 102, 81, .44); filter: brightness(1.05); }

/* —— 数据表容器：整块玻璃卡（贴 .dashboard-report-summary）—— */
.data-table {
  background: rgba(248, 250, 245, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(11, 43, 37, .22);
}
.table-row { padding: 15px 20px; gap: 14px; align-items: center; transition: background .12s ease; color: #1e3a32; }
.table-row:not(.table-head):not(:last-child) { border-bottom: 1px solid rgba(23, 109, 88, .1); }
.table-row:not(.table-head):hover { background: rgba(23, 109, 88, .07); }
.table-row > span:first-child strong { color: #173d35; }
.table-row > span:first-child small { color: #6f847b; }
.table-row.is-clickable:hover strong { color: #126651; }
.table-head { background: rgba(23, 109, 88, .08); color: #176b58; font-weight: 700; }

/* —— 行内操作：玻璃溢出菜单 —— */
.row-actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.row-actions > button {
  white-space: nowrap;
  border: 1px solid rgba(23, 109, 88, .25);
  background: rgba(255, 255, 255, .7);
  color: #176b58;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all .12s ease;
}
.row-actions > button:hover { background: #176b58; color: #fff; border-color: #176b58; }
.row-actions-more > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(23, 109, 88, .25);
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  color: #176b58;
  padding: 6px 10px;
  font-size: 13px;
  user-select: none;
  transition: all .12s ease;
}
.row-actions-more > summary::-webkit-details-marker { display: none; }
.row-actions-more > summary:hover { background: #176b58; color: #fff; border-color: #176b58; }
.row-actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: grid;
  gap: 4px;
  min-width: 128px;
  padding: 6px;
  background: rgba(248, 250, 245, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(11, 43, 37, .24);
}
.row-actions-menu button {
  width: 100%;
  text-align: left;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: #176b58;
  border-radius: 7px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  transition: background .12s ease;
}
.row-actions-menu button:hover { background: rgba(23, 109, 88, .12); }

/* —— 状态药丸 —— */
.status-pill.is-active { background: rgba(23, 109, 88, .14); color: #0f6b56; }
.status-pill.is-disabled { background: rgba(23, 109, 88, .08); color: #6f847b; }

/* —— 浅色卡内的分组头 / 总览面板：显式深字，防止继承异常 —— */
.list-group > header strong { color: #173d35; }
.ov-panel { color: #1e3a32; }
.ov-panel > header h2 { color: #173d35; }
.ov-todo-label, .ov-todo-count, .ov-teacher-row { color: #1e3a32; }

/* —— 总览卡片：玻璃化（贴 .dashboard-current / .ov-hero）—— */
.ov-hero-main {
  background: linear-gradient(135deg, #12463b 0%, #1a6353 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  border-radius: 14px;
  padding: 26px 30px;
  display: grid;
  align-content: center;
  gap: 6px;
  box-shadow: 0 14px 34px rgba(11, 43, 37, .28);
}
.ov-hero-stat {
  background: rgba(248, 250, 245, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 14px;
  padding: 18px 20px;
  display: grid;
  align-content: center;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(11, 43, 37, .16);
}
.ov-hero-stat > span { font-size: 13px; color: #6f847b; }
.ov-hero-stat > strong { font-size: 30px; line-height: 1.1; font-weight: 600; color: #12463b; font-variant-numeric: tabular-nums; }
.ov-hero-stat > small { font-size: 12px; color: #9aaba4; }

/* —— 二级页签（列表页上方 学员/老师/班级/作业）—— */
.section-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.section-tabs button {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #d5e6df;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: all .12s ease;
}
.section-tabs button:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.section-tabs button.active {
  background: rgba(255, 255, 255, .92);
  color: #126651;
  font-weight: 700;
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

/* —— 总览快捷操作按钮：绿色玻璃 —— */
.overview-shortcuts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }
.overview-shortcuts > span { color: rgba(255, 255, 255, .66); font-size: 13px; }
.overview-shortcuts button {
  width: auto;
  border: 1px solid rgba(255, 255, 255, .4);
  background: linear-gradient(135deg, #126651, #16866c);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(18, 102, 81, .3);
  transition: transform .12s ease, filter .12s ease;
}
.overview-shortcuts button:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* —— 操作结果提示条 —— */
.operation-result { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); color: #eaf4f0; }

/* —— 空状态 —— */
.empty-state { padding: 48px 20px; text-align: center; color: #6f847b; display: grid; gap: 6px; justify-items: center; }
.empty-state strong { color: #173d35; font-size: 15px; }

/* —— 机构详情面板：玻璃卡（原先无样式，依赖浅底；现补浅玻璃以保证深绿底可读）—— */
.institution-detail {
  margin-top: 18px;
  background: rgba(248, 250, 245, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 14px 34px rgba(11, 43, 37, .22);
  color: #1e3a32;
}
.institution-detail > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -22px -26px 18px;
  padding: 18px 26px;
  background: rgba(23, 109, 88, .1);
  border-bottom: 1px solid rgba(23, 109, 88, .14);
  border-radius: 16px 16px 0 0;
}
.institution-detail > header span { color: #6f847b; font-size: 13px; }
.institution-detail > header h2 { color: #173d35; margin: 0; font-size: 20px; }
.institution-detail > header button {
  border: 1px solid rgba(255, 255, 255, .4);
  background: linear-gradient(135deg, #126651, #16866c);
  color: #fff;
  border-radius: 9px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(18, 102, 81, .3);
}
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.detail-heading:first-of-type { margin-top: 8px; }
.detail-heading h3 { margin: 0; color: #173d35; font-size: 16px; }
.detail-heading h3 small { color: #6f847b; font-weight: 400; font-size: 12px; margin-left: 6px; }
.detail-heading button {
  border: 1px solid rgba(23, 109, 88, .3);
  background: rgba(255, 255, 255, .7);
  color: #176b58;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .12s ease;
}
.detail-heading button:hover { background: #176b58; color: #fff; border-color: #176b58; }
.detail-list { display: grid; gap: 8px; }
.account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border: 1px solid rgba(23, 109, 88, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .6);
  color: #1e3a32;
}
.account-row:hover { background: rgba(255, 255, 255, .85); }
.account-row strong { color: #173d35; font-size: 14px; font-weight: 600; }
.account-row small { color: #6f847b; font-size: 12px; }
.account-row button {
  border: 1px solid rgba(23, 109, 88, .3);
  background: rgba(255, 255, 255, .7);
  color: #176b58;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all .12s ease;
  margin-left: auto;
}
.account-row button:hover { background: #176b58; color: #fff; border-color: #176b58; }

/* —— 老师专属「班级管理」弹窗（2026-10-17 重做：排班 → 班级管理）—— */
#teacherManageDialog { border: none; border-radius: 18px; padding: 0; width: min(560px, 92vw); background: rgba(248,250,245,.96); box-shadow: 0 24px 70px rgba(15,61,51,.38); backdrop-filter: blur(8px); }
#teacherManageDialog::backdrop { background: rgba(15,61,51,.42); backdrop-filter: blur(2px); }
#teacherManageDialog header { background: linear-gradient(135deg,#0f3d33,#176b58); color: #fff; padding: 16px 20px; }
#teacherManageDialog header h2 { margin: 0; font-size: 17px; }
#teacherManageDialog header button { background: rgba(255,255,255,.16); color: #fff; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px; }
#teacherManageDialog footer { padding: 12px 20px; display: flex; justify-content: flex-end; }
#teacherManageDialog footer button { background: #e6eeea; color: #28594d; border: none; border-radius: 9px; padding: 7px 16px; cursor: pointer; }
.tmanage-bar { padding: 16px 20px 4px; }
.tmanage-bar button { background: linear-gradient(#126651,#16866c); color: #fff; border: none; border-radius: 10px; padding: 9px 14px; font-size: 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(23,109,88,.24); }
.tmanage-bar button:hover { filter: brightness(1.06); }
.tmanage-body { padding: 8px 20px 18px; max-height: 60vh; overflow: auto; }
.tmanage-classes { display: grid; gap: 12px; }
.tmanage-class { background: rgba(255,255,255,.85); border: 1px solid rgba(23,109,88,.18); border-radius: 12px; padding: 14px; box-shadow: 0 4px 16px rgba(28,61,54,.08); }
.tmanage-class__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tmanage-class__head strong { font-size: 15px; color: #173d35; }
.tmanage-class__head span { color: #6f847b; font-size: 13px; }
.tmanage-class__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tmanage-class__actions button { background: linear-gradient(#126651,#16866c); color: #fff; border: none; border-radius: 9px; padding: 6px 12px; font-size: 13px; cursor: pointer; box-shadow: 0 3px 10px rgba(23,109,88,.22); }
.tmanage-class__actions button:hover { filter: brightness(1.06); }
/* 班级列表页的「添加学员」按钮（原先漏套玻璃态，平铺成浏览器默认样式） */
.org-class-row button { border: 1px solid rgba(23,109,88,.25); border-radius: 9px; background: linear-gradient(#126651,#16866c); color: #fff; padding: 6px 12px; cursor: pointer; font-size: 13px; box-shadow: 0 3px 10px rgba(23,109,88,.22); }
.org-class-row button:hover { filter: brightness(1.06); color: #fff; }
/* 列表分组头（全部班级 / 某老师）改用玻璃卡底 */
.list-group > header { background: rgba(255,255,255,.55); border-radius: 10px 10px 0 0; border: 1px solid rgba(23,109,88,.12); border-bottom: none; }

