/* ============================================================
   芒果公考 · 面试招生测算工作台 —— 全局样式
   ============================================================ */
:root {
  --mango: #f59e0b;
  --mango-deep: #f97316;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --ink-3: #9ca3af;
  --bg: #f4f5f7;
  --card: #ffffff;
  --line: #e5e7eb;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --green: #10b981;
  --green-bg: #ecfdf5;
  --blue: #3b82f6;
  --blue-bg: #eff6ff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
a { color: var(--blue); text-decoration: none; }

/* ---------- 布局骨架 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex-shrink: 0; background: var(--card);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.brand-logo {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--mango), var(--mango-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; font-weight: 700;
}
.brand h1 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.brand small { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 10px; color: var(--ink-2);
  font-size: 14px; margin-bottom: 2px; text-align: left; transition: background .15s;
}
.nav-item:hover { background: #faf5eb; }
.nav-item.active { background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(249,115,22,.12)); color: var(--mango-deep); font-weight: 600; }
.nav-item .ico { font-size: 17px; width: 22px; text-align: center; }
.nav-item .badge { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; }

.sidebar-foot { padding: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ===== 嵌入态：父页面已有自己的左侧导航，隐藏本系统侧边栏与底部 tabbar ===== */
body.embedded .sidebar { display: none; }
body.embedded .mobile-tabbar { display: none; }
body.embedded .topbar { padding-left: 18px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; gap: 12px;
}
.topbar .page-title { font-size: 17px; font-weight: 700; }
.topbar .rules-tag { font-size: 11px; color: var(--mango-deep); background: #fff7ed; border: 1px solid #fed7aa; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.user-box { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--mango), var(--mango-deep)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.user-meta { line-height: 1.25; text-align: right; }
.user-meta .name { font-size: 13px; font-weight: 600; }
.user-meta .role { font-size: 11px; color: var(--ink-3); }
.icon-btn { padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13px; }
.icon-btn:hover { background: var(--bg); }

.content { padding: 22px 24px 40px; max-width: 1200px; width: 100%; }
.view { display: none; animation: fadein .2s ease; }
.view.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.card h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h3 .sub { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.muted { color: var(--ink-3); font-size: 12px; }
.gap { height: 16px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; font-weight: 500; }
.field label .req { color: var(--red); }
.form-section { border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 16px; margin-bottom: 12px; background: #fafafa; }
.form-section .sec-title { font-weight: 700; font-size: 13px; color: var(--mango-deep); margin-bottom: 12px; padding-left: 8px; border-left: 3px solid var(--mango-deep); }
.input, .select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: var(--mango); box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.input.err { border-color: var(--red); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 600;
  transition: all .15s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--mango), var(--mango-deep)); color: #fff; box-shadow: 0 2px 8px rgba(249,115,22,.3); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.95); }
.btn-green { background: var(--green); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { filter: brightness(1.05); }
.btn-small { padding: 5px 12px; font-size: 12px; border-radius: 7px; font-weight: 500; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 规则卡 ---------- */
.rules-bar {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid #fed7aa; border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.rules-bar .lock { font-size: 18px; }
.rules-bar .rule-item { font-size: 13px; color: var(--ink-2); }
.rules-bar .rule-item b { color: var(--mango-deep); }
.rules-bar .tag { background: var(--mango-deep); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 20px; margin-left: 6px; }

/* ---------- 计算结果 ---------- */
.calc-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-tile { border-radius: 11px; padding: 14px 16px; text-align: center; border: 1px solid var(--line); background: #fff; }
.stat-tile .num { font-size: 28px; font-weight: 800; line-height: 1.2; }
.stat-tile .lbl { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.stat-tile.orange { background: linear-gradient(135deg, #fff7ed, #fffbeb); border-color: #fed7aa; }
.stat-tile.orange .num { color: var(--mango-deep); }
.stat-tile.blue { background: var(--blue-bg); border-color: #bfdbfe; }
.stat-tile.blue .num { color: var(--blue); }
.stat-tile.green { background: var(--green-bg); border-color: #a7f3d0; }
.stat-tile.green .num { color: var(--green); }
.stat-tile.red { background: var(--red-bg); border-color: #fecaca; }
.stat-tile.red .num { color: var(--red); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
th, td { padding: 9px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #faf9f7; color: var(--ink-2); font-weight: 600; font-size: 12px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fdfaf3; }
td .num-b { font-weight: 700; }

/* ---------- 徽章 ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.pill-red { background: var(--red-bg); color: var(--red); border: 1px solid #fecaca; }
.pill-green { background: var(--green-bg); color: var(--green); border: 1px solid #a7f3d0; }
.pill-orange { background: #fff7ed; color: var(--mango-deep); border: 1px solid #fed7aa; }
.pill-blue { background: var(--blue-bg); color: var(--blue); border: 1px solid #bfdbfe; }
.pill-gray { background: #f3f4f6; color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- 岗位卡 ---------- */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.job-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; position: relative; transition: box-shadow .15s; }
.job-card:hover { box-shadow: var(--shadow); }
.job-card.locked-card { border-color: #fecaca; background: linear-gradient(180deg, #fff, #fff7f7); }
.job-card .jc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.job-card .jc-name { font-weight: 700; font-size: 14px; }
.job-card .jc-meta { font-size: 12px; color: var(--ink-3); }
.progress { height: 8px; border-radius: 10px; background: #f1f2f4; overflow: hidden; margin: 10px 0 8px; }
.progress > div { height: 100%; border-radius: 10px; transition: width .3s; }
.progress .p-full { background: linear-gradient(90deg, #f87171, var(--red)); }
.progress .p-ok { background: linear-gradient(90deg, var(--mango), var(--mango-deep)); }
.progress .p-low { background: linear-gradient(90deg, #34d399, var(--green)); }
.jc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.jc-foot .nums b { font-size: 15px; }

/* ---------- 进度条（看板） ---------- */
.exam-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.exam-row:last-child { border-bottom: none; }
.exam-row .et { width: 88px; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.exam-row .bar { flex: 1; height: 10px; border-radius: 10px; background: #f1f2f4; overflow: hidden; }
.exam-row .bar > div { height: 100%; border-radius: 10px; }
.exam-row .meta { width: 120px; text-align: right; font-size: 12px; color: var(--ink-2); flex-shrink: 0; }

/* ---------- 招生业绩汇总（看板：同事 + 校区） ---------- */
.perf-grid { display: flex; gap: 18px; flex-wrap: wrap; }
.perf-col { flex: 1 1 320px; min-width: 280px; }
.perf-title { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.campus-stat-list { display: flex; flex-direction: column; gap: 10px; }
.campus-stat-row { display: flex; align-items: center; gap: 10px; }
.cs-name { width: 96px; font-size: 13px; font-weight: 600; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-bar { flex: 1; height: 12px; border-radius: 10px; background: #f1f2f4; overflow: hidden; }
.cs-bar-in { height: 100%; border-radius: 10px; min-width: 6px; transition: width .3s ease; }
.cs-num { width: 52px; text-align: right; font-size: 13px; color: var(--ink-2); flex-shrink: 0; }
.cs-num b { font-size: 16px; color: var(--mango-deep); }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2); animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Toast ---------- */
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: 10px; color: #fff; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.18); animation: slidein .2s ease; display: flex; gap: 8px; align-items: flex-start; }
.toast.ok { background: #059669; }
.toast.err { background: #dc2626; }
.toast.warn { background: #d97706; }
.toast.info { background: #2563eb; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(160deg, #fff7ed 0%, #fffbeb 45%, #f4f5f7 100%); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; box-shadow: 0 10px 40px rgba(249,115,22,.12); padding: 34px 32px; }
.login-card .brand-big { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.login-card .brand-big .brand-logo { width: 48px; height: 48px; font-size: 24px; border-radius: 14px; }
.login-card h2 { font-size: 20px; font-weight: 800; }
.login-card .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 22px; }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.login-field input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; font-size: 15px; }
.login-field input:focus { border-color: var(--mango); box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.login-btn { width: 100%; padding: 12px; border-radius: 10px; background: linear-gradient(135deg, var(--mango), var(--mango-deep)); color: #fff; font-size: 15px; font-weight: 700; margin-top: 6px; }
.login-btn:hover { filter: brightness(1.05); }
.login-tip { margin-top: 16px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ---------- 员工列表 ---------- */
.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.user-row:last-child { border-bottom: none; }
.user-row .u-name { font-weight: 600; font-size: 13px; }
.user-row .u-sub { font-size: 12px; color: var(--ink-3); }
.user-row .u-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 移动端 ---------- */
.mobile-tabbar { display: none; }
@media (max-width: 860px) {
  .sidebar { display: none; }
  .mobile-tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mobile-tabbar::-webkit-scrollbar { display: none; }
  .mobile-tabbar .tab { flex: 0 0 auto; min-width: 56px; display: flex; flex-direction: column; align-items: center; padding: 7px 6px 6px; font-size: 10px; color: var(--ink-3); }
  .mobile-tabbar .tab .ico { font-size: 18px; }
  .mobile-tabbar .tab.active { color: var(--mango-deep); font-weight: 600; }
  .topbar { padding: 10px 14px; }
  .topbar .page-title { font-size: 15px; }
  .content { padding: 14px 14px 80px; }
  .user-meta { display: none; }
  .rules-tag { display: none; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .calc-result { grid-template-columns: 1fr 1fr; }
  .exam-row .et { width: 70px; }
  .exam-row .meta { width: 100px; }
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .calc-result { grid-template-columns: 1fr 1fr; }
}

/* ---------- 杂项 ---------- */
.empty { text-align: center; color: var(--ink-3); padding: 34px 0; font-size: 13px; }
.empty .big { font-size: 34px; margin-bottom: 8px; }
.flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.warn-box { background: var(--red-bg); border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 12px 14px; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.ok-box { background: var(--green-bg); border: 1px solid #a7f3d0; color: #047857; border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.copy-input { display: flex; gap: 8px; }
.copy-input input { flex: 1; }
code { background: #f3f4f6; padding: 1px 6px; border-radius: 5px; font-size: 12px; }

/* ============================================================
 * 二·B、报名三步流程 / 分班管理 / 职位表导入（升级版样式）
 * ============================================================ */
.steps { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.step { flex: 1; min-width: 130px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink-3); font-size: 13px; }
.step .step-num { width: 22px; height: 22px; border-radius: 50%; background: #e5e7eb; color: var(--ink-3); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.step.active { border-color: var(--mango-deep); color: var(--ink); background: #fff9ef; }
.step.active .step-num { background: var(--mango-deep); color: #fff; }
.step.done { border-color: #a7f3d0; color: #065f46; }
.step.done .step-num { background: var(--green); color: #fff; }

.query-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.query-bar .input, .query-bar .select { flex: 1; min-width: 160px; }

.cascade-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.job-list { display: flex; flex-direction: column; gap: 8px; }
.job-item { text-align: left; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; background: #fff; transition: all .15s; font-family: inherit; width: 100%; }
.job-item:hover { border-color: var(--mango); }
.job-item.selected { border-color: var(--mango-deep); background: #fff9ef; box-shadow: 0 0 0 2px rgba(217,119,6,.15); }
.job-item .ji-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-item .ji-name { font-weight: 700; font-size: 14px; }
.job-item .ji-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.qjob-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; background: var(--card); }
.qjob-card.locked { border-color: #fecaca; background: #fef2f2; }
.qjob-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.qjob-title { font-weight: 700; font-size: 15px; }
.qjob-meta { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.qjob-stats { display: flex; gap: 14px; margin: 10px 0; flex-wrap: wrap; font-size: 13px; }
.qjob-stats b { font-size: 15px; }

.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; margin-top: 8px; }
.cls-opt { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: all .15s; background: #fff; }
.cls-opt:hover { border-color: var(--mango); }
.cls-opt.selected { border-color: var(--mango-deep); background: #fff9ef; box-shadow: 0 0 0 2px rgba(217,119,6,.15); }
.cls-opt.full { opacity: .55; cursor: not-allowed; background: #f9fafb; }
.cls-opt.full:hover { border-color: var(--line); }
.cls-opt .c-name { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.cls-opt .c-teacher { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.cls-opt .c-campus { color: var(--mango-deep); font-size: 12px; margin-top: 2px; font-weight: 600; }
.cls-opt .c-quota { font-size: 12px; margin-top: 6px; color: var(--ink-3); }
.cls-opt .c-quota b { font-size: 13px; }

/* 分班管理：校区 → 班级的树形折叠菜单 */
.campus-list { display: flex; flex-direction: column; gap: 12px; }
.campus-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.campus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background .15s;
  user-select: none;
}
.campus-header:hover { background: #faf7f0; }
.campus-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.campus-arrow {
  font-size: 14px;
  color: var(--ink-3);
  width: 14px;
  text-align: center;
  transition: transform .2s;
}
.campus-item.open .campus-arrow { transform: rotate(0deg); }
.campus-icon { font-size: 18px; }
.campus-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
}
.campus-stats {
  font-size: 12px;
  color: var(--ink-3);
  background: #f5f6f7;
  padding: 2px 8px;
  border-radius: 10px;
}
.campus-body {
  border-top: 1px dashed var(--line);
  padding: 4px 0;
}
.class-tree-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 12px 44px;
  border-bottom: 1px dashed #f0f0f0;
}
.class-tree-row:last-child { border-bottom: none; }
.class-tree-row:hover { background: #fafbfc; }
.class-tree-icon { font-size: 16px; margin-right: 10px; color: var(--mango-deep); }
.class-tree-main { flex: 1; min-width: 0; }
.class-tree-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-1);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.class-tree-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.class-tree-actions { display: flex; align-items: center; gap: 6px; }
.class-tree-empty {
  padding: 24px 16px 24px 44px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: left;
}
.radio-dot { width: 16px; height: 16px; border: 2px solid #d1d5db; border-radius: 50%; flex-shrink: 0; }
.cls-opt.selected .radio-dot { border-color: var(--mango-deep); background: radial-gradient(circle, var(--mango-deep) 45%, transparent 52%); }

.radio-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; margin-bottom: 8px; transition: all .15s; font-size: 13px; background: #fff; }
.radio-row:hover { border-color: var(--mango); }
.radio-row.cur { border-color: var(--mango-deep); background: #fff9ef; }
.radio-row input[type=radio] { accent-color: var(--mango-deep); flex-shrink: 0; }

.enroll-done { text-align: center; padding: 26px 10px; }
.enroll-done .big-ico { font-size: 44px; }
.enroll-done h2 { margin: 10px 0 4px; color: var(--green); }
.enroll-sum { display: inline-block; text-align: left; background: #f9fafb; border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin-top: 10px; font-size: 13px; line-height: 1.9; }

.cap-badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.cap-ok { background: var(--green-bg); color: #047857; }
.cap-warn { background: #fef3c7; color: #b45309; }
.cap-full { background: var(--red-bg); color: #b91c1c; }

.upload-zone { border: 2px dashed #d1d5db; border-radius: 14px; padding: 30px 16px; text-align: center; color: var(--ink-3); cursor: pointer; transition: all .15s; background: #fafafa; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--mango-deep); background: #fff9ef; color: var(--mango-deep); }
.upload-zone .up-ico { font-size: 30px; margin-bottom: 6px; }
.upload-zone input[type=file] { display: none; }

.map-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.map-row label { min-width: 72px; font-size: 13px; color: var(--ink-3); }
.map-row .select { flex: 1; }

.import-result li { font-size: 13px; margin-bottom: 4px; }
.import-result li.ok { color: #047857; }
.import-result li.warn { color: #b45309; }

.teacher-chip { background: #f3f4f6; border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--ink-2); }

