/* 机房课堂管理系统 全站样式 —— v3「键帽」设计语言
 * 签名元素：实体键帽 —— 按钮/导航/交互件带 3D 底边，按下时下沉
 * 色板：键盘墨 #16191F · 暖纸 #F4F3EE · 卡片白 #FFFFFF · 信号琥珀 #F5A623 · 终端绿 #34D399
 * 字体：数据与品牌用 Cascadia/Consolas 等宽（机房的世界，Windows 自带离线可用），正文系统 CJK
 * 约束：局域网离线部署，不引入任何外部资源；焦点可见；reduced-motion 适配
 */
:root {
  --ink: #16191f;
  --ink-2: #23272f;
  --paper: #f4f3ee;
  --card: #ffffff;
  --line: #e7e4da;
  --line-strong: #d6d2c4;
  --key-edge: #d9d6cc;
  --text: #1a1d21;
  --muted: #6f7480;
  --primary: #16191f;          /* 主操作 = 墨色键帽 */
  --primary-light: #f0efe9;
  --accent: #f5a623;           /* 信号琥珀：积分/高亮 */
  --accent-dark: #b45309;
  --accent-light: #fdf3e0;
  --term: #34d399;             /* 终端绿：在线/成功态（深底上使用） */
  --green: #16a34a;
  --green-bg: #ecfdf5;
  --green-line: #a7f3d0;       /* 绿系浅描边（flash/结算条等，深色皮肤可覆盖） */
  --red: #dc2626;
  --red-bg: #fef2f2;
  --red-line: #fecaca;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-line: #fde68a;
  --blue-ink: #2563eb;         /* 仅链接/信息徽章保留少量蓝 */
  --blue-bg: #eff6ff;          /* 蓝系浅底（通知横幅/flash-info，深色皮肤可覆盖） */
  --blue-line: #bfdbfe;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(26, 29, 33, .05), 0 2px 8px rgba(26, 29, 33, .05);
  --shadow-lift: 0 2px 4px rgba(26, 29, 33, .05), 0 12px 28px rgba(26, 29, 33, .10);
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "Courier New", monospace;
  --speed: .16s;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--text); min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 页面整体宽度：机房屏幕普遍较宽（1920 级），放宽到 1560 两侧留边仍从容 */
.container { width: 100%; max-width: 1560px; margin: 0 auto; padding: 24px 22px 48px; flex: 1; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px; }
h1, h2, h3, h4 { margin: 0 0 12px; letter-spacing: -.01em; }
p { line-height: 1.75; }
a { color: var(--text); text-decoration: none; }
/* 普通文字链接的悬停：不再用生硬下划线，改为琥珀色下划线 + 轻微上浮 */
a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.mt { margin-top: 16px; }
::selection { background: rgba(245, 166, 35, .3); }

/* 数据/品牌一律等宽数字 */
.statnum, .stat-mini b, .points-chip, table td b, .hero .big-points,
.navbrand, .rolebadge, .stage-title, .lesson-card .no {
  font-variant-numeric: tabular-nums;
}

/* 焦点可见 */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .45);
  border-color: var(--accent);
}

/* 细滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfcbbd; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b3ae9c; background-clip: content-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 顶部导航：键盘墨色面板 ---------- */
.topnav {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--ink);
  color: #fff; padding: 0 20px;
  border-bottom: 1px solid #2c313b;
  position: sticky; top: 0; z-index: 40;
}
.navbrand {
  color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
  padding: 15px 0; white-space: nowrap; letter-spacing: -.01em;
}
.navlinks { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.navlinks a {
  color: rgba(255, 255, 255, .78); padding: 7px 12px;
  border: 1px solid transparent; border-bottom: 2px solid transparent;
  border-radius: 8px; font-size: 14px; text-decoration: none;
  transition: background var(--speed), color var(--speed), border-color var(--speed);
}
.navlinks a:hover {
  color: #fff; text-decoration: none;
  background: #23272f; border-color: #3a404d; border-bottom-color: #14171c;
}
.navlinks a.active {
  color: #fff; background: #2c313b; font-weight: 600;
  border-color: #3a404d; border-bottom-color: var(--accent);
}
/* margin-left:auto 把用户区钉死在右上角：导航链接换行/增减（签到、积分徽标宽度等）
   都不再左右推动「退出/上课」按钮——2026-10-10 修复按钮位置漂移误触 */
.userbox { display: flex; align-items: center; gap: 10px; padding: 10px 0;
           margin-left: auto; flex-wrap: nowrap; }
.username { font-size: 14px; color: #fff; }
.rolebadge {
  font-style: normal; background: transparent; border: 1px solid #3a404d;
  color: #9aa3b2; border-radius: 6px; padding: 1px 7px; font-size: 12px; margin-left: 4px;
}
.points-chip {
  background: var(--accent); color: #1a1d21; font-family: var(--mono);
  font-weight: 700; border-radius: 8px; padding: 3px 10px; font-size: 13.5px;
  border: 1px solid #d98d0d; border-bottom-width: 3px;
}

/* ---------- 提示条 ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14.5px; border: 1px solid; }
.flash-success { background: var(--green-bg); color: #065f46; border-color: var(--green-line); }
.flash-error { background: var(--red-bg); color: #991b1b; border-color: var(--red-line); }
.flash-info { background: var(--blue-bg); color: #1e40af; border-color: var(--blue-line); }

/* ---------- 消息提醒：顶栏铃铛 + 公告横幅（v23） ---------- */
.navbell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 30px; border-radius: 8px; text-decoration: none; font-size: 16px;
  border: 1px solid transparent;
}
.navbell:hover { background: #23272f; border-color: #3a404d; text-decoration: none; }
.bell-badge {
  position: absolute; top: -5px; right: -7px; min-width: 17px; height: 17px;
  background: var(--red); color: #fff; border-radius: 999px; font-size: 11px;
  font-weight: 700; line-height: 17px; text-align: center; padding: 0 4px;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.banner-zone { width: 100%; }
.site-banner {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.site-banner .sb-icon { font-size: 17px; }
.site-banner .sb-body { flex: 1; min-width: 0; }
.site-banner .sb-body a { margin-left: 10px; white-space: nowrap; }
.site-banner .sb-text { margin-left: 10px; }
.site-banner .sb-close {
  border: none; background: transparent; cursor: pointer; font-size: 15px;
  color: inherit; opacity: .55; padding: 2px 7px; border-radius: 6px; line-height: 1.4;
}
.site-banner .sb-close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.sb-info { background: var(--blue-bg); color: #1e40af; }
.sb-success { background: var(--green-bg); color: #065f46; }
.sb-warning { background: var(--amber-bg); color: #92400e; }
.sb-info { border-bottom-color: var(--blue-line); }
.sb-success { border-bottom-color: var(--green-line); }
.sb-warning { border-bottom-color: var(--amber-line); }

/* ---------- 消息中心 /messages（v23） ---------- */
.msg-list { display: flex; flex-direction: column; }
.msg-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 10px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
  border-radius: var(--radius-sm);
}
.msg-item:last-child { border-bottom: none; }
.msg-item:hover { background: var(--primary-light); text-decoration: none; }
.msg-item .msg-icon { font-size: 20px; line-height: 1.35; }
.msg-item .msg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.msg-item .msg-title { font-weight: 400; }
.msg-item.unread .msg-title { font-weight: 700; }
.msg-item.unread { box-shadow: inset 3px 0 0 var(--accent); }
.msg-item .msg-body { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.msg-item .msg-time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 18px;
}
.card h2 { font-size: 20px; }
.card h3 { font-size: 17px; }
/* 危险区（2026-10-10 设计评审：删除课程/删除环节等破坏性操作迁离标题区，
 * 统一收进页底红调卡片；勿把破坏性按钮放回 H2/行内） */
.card.danger-zone { border-color: var(--red-line); background: var(--red-bg); box-shadow: none; }
.card.danger-zone h3 { color: #991b1b; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quicklink {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-bottom: 3px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: none;
  padding: 24px 22px; text-align: center; color: var(--text);
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed);
  text-decoration: none;
}
.quicklink:hover {
  transform: translateY(-3px);
  border-bottom-width: 3px; border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
.quicklink:active { transform: translateY(1px); }
.quicklink .ico { font-size: 36px; }
.quicklink .t { font-weight: 600; margin-top: 10px; }
.quicklink .d { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- 按钮：键帽 ---------- */
.btn {
  display: inline-block; cursor: pointer;
  background: #fff; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: 0 3px 0 var(--key-edge);
  padding: 8px 17px; font-size: 14.5px; font-family: inherit;
  text-decoration: none; line-height: 1.4; white-space: nowrap;
  transition: transform .06s, box-shadow .06s, background var(--speed), filter var(--speed);
}
/* 与输入框同高的表单行按钮（商城“上架”等）：.btn 纵向 padding 8px 比输入框的
 * 9px 矮约 2px，align-self:end 只对齐底部、顶部会差一截，加上键帽投影更显不齐 */
.btn.eq-input { padding-top: 9px; padding-bottom: 9px; }
/* 链接式按钮悬停：禁止全局 a:hover 下划线渗入（.btn:hover 的特异度须高于 a:hover） */
.btn:hover, a.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
/* :not(:where(...)) 把语义按钮（primary/success/danger/ghost）排除在外：
 * 通用悬停底色永远不得洗掉语义按钮的底色（白底白字防护，各主题同规） */
.btn:not(:where(.btn-primary, .btn-success, .btn-danger, .btn-ghost)):hover {
  background: #f7f6f1; text-decoration: none;
}
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--key-edge); }
.btn-primary {
  background: var(--ink); color: #fff;
  border-color: #0c0e12; box-shadow: 0 3px 0 #000;
}
.btn-primary:hover { background: #23272f; }
.btn-primary:active { box-shadow: 0 0 0 #000; }
.btn-success {
  background: #16a34a; color: #fff;
  border-color: #15803d; box-shadow: 0 3px 0 #0e6b34;
}
.btn-success:hover { background: #18ad4f; }
.btn-success:active { box-shadow: 0 0 0 #0e6b34; }
.btn-danger {
  background: #dc2626; color: #fff;
  border-color: #b91c1c; box-shadow: 0 3px 0 #8f1a1a;
}
.btn-danger:hover { background: #e03030; }
.btn-danger:active { box-shadow: 0 0 0 #8f1a1a; }
.btn-ghost { background: transparent; color: inherit; border: 1px solid rgba(120, 120, 110, .5); box-shadow: none; }
.btn-ghost:hover { background: rgba(0, 0, 0, .04); }
.topnav .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); box-shadow: none; }
.topnav .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 4px 10px; font-size: 13px; box-shadow: 0 2px 0 var(--key-edge); }
.btn-sm:active { box-shadow: 0 0 0 var(--key-edge); }
.btn-primary.btn-sm, .btn-danger.btn-sm, .btn-success.btn-sm { box-shadow: 0 2px 0 rgba(0, 0, 0, .55); }
.btn-block { display: block; width: 100%; text-align: center; }
/* 禁用按钮用去饱和变灰而不是降透明度：降透明度会把「浅色字+实色底」一起
 * 洗向页面底色，产生白底白字消失（历史上「关闭」按钮消失的根因）。
 * 去饱和保持字与底的相对对比，仅让整钮褪色呈灰感。 */
.btn:disabled { filter: saturate(.55) grayscale(.1); cursor: not-allowed; transform: none; }

/* ---------- 表格 ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th {
  background: #f1efe8; color: #4a4e58; font-weight: 600; white-space: nowrap;
  font-size: 13px; border-bottom: 1px solid var(--line-strong);
}
.table tbody tr { transition: background var(--speed); }
.table tbody tr:nth-child(even) { background: #fbfaf6; }
.table tbody tr:hover td { background: #f6f4ec; }
.table tbody tr:last-child td { border-bottom: none; }

.badge { display: inline-block; border-radius: 7px; padding: 2px 9px; font-size: 12.5px; white-space: nowrap; border: 1px solid transparent; font-family: var(--mono); }
.badge-success { background: var(--green-bg); color: #15803d; border-color: #bbf7d0; }
.badge-warn { background: var(--amber-bg); color: #b45309; border-color: #fde68a; }
.badge-danger { background: var(--red-bg); color: #b91c1c; border-color: #fecaca; }
.badge-muted { background: #f2f1ea; color: var(--muted); border-color: var(--line); }
.badge-info { background: var(--accent-light); color: var(--accent-dark); border-color: #f6dfae; }
.badge-on  { background: var(--green-bg); color: var(--green); border-color: #bbf7d0; }
.badge-off { background: #f2f1ea; color: var(--muted); border-color: var(--line); }
.badge-suspended { background: #f2f1ea; color: var(--muted); border-color: var(--line); border-style: dashed; }

/* 学生管理：班级筛选卡片（含在线人数） */
.class-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line-strong);
  font-size: 13.5px; line-height: 1.2; box-shadow: 0 1px 0 var(--key-edge);
  transition: transform var(--speed), border-color var(--speed), background var(--speed);
}
.chip b { font-family: var(--mono); font-size: 12.5px; color: var(--green); }
.chip:hover { text-decoration: none; border-color: var(--ink); transform: translateY(-1px); }
.chip-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-active b { color: var(--term); }

/* 文件管理：小组空间区锚点定位（页面第三卡，筛选整页跳转后落回本区，补偿 sticky 顶栏） */
#teamSpace { scroll-margin-top: 64px; }

/* 学生积分明细：左右分栏（左名单可勾选批量调整 / 右积分流水，2026-09-23）
 * 左栏固定宽、名单内部滚动——选学生不再需要整页滚到底 */
.points-split {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px; align-items: start;
}
.points-left-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin: 0 2px 8px;
}
.points-left .stu-list {
  max-height: 62vh; overflow: auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card);
}
.points-left .stu-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-bottom: 1px solid var(--line);
}
.points-left .stu-row:last-child { border-bottom: none; }
.points-left .stu-row.cur { background: var(--accent-light); }
.points-left .stu-main {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none;
}
.points-left .stu-main:hover .stu-name { color: var(--accent-dark); }
.points-left .stu-name {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 700;
}
.points-left .stu-no { font-weight: 400; margin-left: 5px; }
.points-left .stu-info {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: right;
}
.points-left .stu-pts { flex: 0 0 auto; }
.batch-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 10px; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--accent-light);
}
.batch-bar[hidden] { display: none; }   /* display:flex 会压过 hidden，需显式还原 */
.batch-bar input[type="number"], .batch-bar input[type="text"] { padding: 5px 8px; }
.points-empty { padding: 60px 10px; }

/* ---------- 管理开关行（教师端功能开关通用：打字管理 / 宠物管理等） ---------- */
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card);
}
.switch-row + .switch-row { margin-top: 10px; }
.switch-row .sw-info { min-width: 0; }
.switch-row .sw-info b { display: block; font-size: 14.5px; }
.switch-row .sw-info span {
  display: block; font-size: 12.5px; color: var(--muted);
  margin-top: 3px; line-height: 1.55;
}
.sw-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 9px;
  background: none; border: none; padding: 4px; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--muted);
}
.sw-toggle .sw-state { min-width: 3.5em; text-align: right; }
.sw-toggle .sw-pill {
  width: 44px; height: 24px; border-radius: 999px; position: relative;
  background: var(--line-strong); border: 1px solid rgba(0, 0, 0, .08);
  transition: background var(--speed);
}
.sw-toggle .sw-pill::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: left var(--speed);
}
.sw-toggle.on { color: var(--text); }
.sw-toggle.on .sw-pill { background: var(--green); border-color: var(--green); }
.sw-toggle.on .sw-pill::after { left: 22px; }
.sw-toggle:disabled { cursor: wait; filter: saturate(.55) grayscale(.1); }

/* 可排序表头（配合 common.js 的 makeSortable） */
.th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.th-sort:hover { color: #1d4ed8; }
.th-sort.sort-active { color: #1d4ed8; }
.sort-arrow { display: inline-block; width: 12px; margin-left: 2px; font-size: 11px; }
.nowrap { white-space: nowrap; }

/* 学生管理列表：高密度表格，行内编辑不换行 */
.stu-table th, .stu-table td { padding: 7px 8px; }
.stu-table .inline-form { flex-wrap: nowrap; }
.stu-table .inline-form input { width: auto; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; color: #4a4e58; margin-bottom: 6px; font-weight: 600; }
/* input:not([type])：HTML 隐式默认类型就是 text，但 CSS 属性选择器只匹配显式属性——
   漏写 type="text" 的输入框（模板手写/JS createElement 未设 type）会回退原生样式，
   新功能页面反复踩坑（2026-11-04 补这条根治，写新页面仍应显式带 type） */
input:not([type]), input[type=text], input[type=password], input[type=number],
input[type=datetime-local], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--text);
  transition: border-color var(--speed), box-shadow var(--speed);
}
input[type=date] { min-width: 150px; }   /* 日期框给足「yyyy/mm/dd □」的宽度，勿挤压 */
/* 搜索框与文本框同一形态（此前 type=search 走浏览器默认样式，看着单薄） */
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .3);
}
input:disabled, select:disabled, textarea:disabled { background: #f2f1ec; cursor: not-allowed; opacity: .7; }
button:disabled { cursor: not-allowed; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent-dark); }
textarea { resize: vertical; min-height: 90px; }

/* 下拉选框：去原生外观、自绘键帽风箭头（居中灰在浅/深底主题上都可读）。
 * background-image 带 !important：皮肤文件对 select 用 background 简写会整图重置，
 * 这里把箭头钉住，皮肤只改底色边框 */
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237c8494' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 11px center !important;
  background-size: 12px 8px !important;
}
select:hover { border-color: var(--accent-dark); }
select[multiple] { padding-right: 12px; }
option { background: #fff; color: var(--text); }

/* ---------- 自绘下拉（pretty_select.js 全局增强） ----------
 * 原生弹出列表系统渲染改不了样式；JS 把单选未禁用的 select 藏进 .ps
 * （display:none，仍在表单里正常取值提交），视觉换成键帽风按钮 + 弹出面板。
 * 面板 fixed 挂 body（z 120，盖过弹窗 60/toast 100），变量随皮肤联动。
 * 下方放不下自动上翻；.ps-open 时按钮描边、箭头转向。 */
.ps { position: relative; display: inline-block; vertical-align: middle; }
.ps-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 100%; min-width: 0;
  padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  font-family: inherit; font-size: 1em; line-height: 1.4; text-align: left;
  cursor: pointer; transition: border-color var(--speed), box-shadow var(--speed);
}
.ps-btn:hover { border-color: var(--accent-dark); }
.ps-btn:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .3);
}
.ps-open .ps-btn { border-color: var(--accent); }
.ps-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-btn::after {
  content: ''; flex: 0 0 auto; width: 8px; height: 8px; margin-right: 2px;
  border-right: 2px solid #7c8494; border-bottom: 2px solid #7c8494;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--speed);
}
.ps-open .ps-btn::after { transform: rotate(225deg) translateY(-2px); }
.ps-panel {
  position: fixed; z-index: 120;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 140px; max-height: 320px; overflow: auto;
  padding: 5px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--paper); box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
}
.ps-panel[hidden] { display: none; }
.ps-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 11px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text);
  font-family: inherit; font-size: .95em; text-align: left; cursor: pointer;
}
.ps-opt:hover, .ps-opt:focus-visible { background: var(--accent-light); outline: none; }
.ps-opt-cur { background: var(--accent-light); color: var(--accent-dark); font-weight: 700; }
.ps-opt-cur::after { content: '✓'; margin-left: auto; font-weight: 700; }
.ps-opt-dis { color: var(--muted); cursor: not-allowed; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 150px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; padding: 6px 10px; font-size: 13.5px; }

/* 文件选择：容器按输入框规范、按钮按键帽规范（此前是浏览器原生样式，
 * 与整体风格脱节；各皮肤在 theme-*.css 中另行覆盖） */
input[type=file] {
  width: 100%; max-width: 480px; padding: 8px; font-size: 14px; font-family: inherit;
  background: var(--paper); color: var(--muted);
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--speed), box-shadow var(--speed), background var(--speed);
}
input[type=file]:hover { border-color: var(--accent); color: var(--text); }
input[type=file]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .3);
}
input[type=file]::file-selector-button,
input[type=file]::-webkit-file-upload-button {
  -webkit-appearance: button; appearance: button;
  display: inline-block; cursor: pointer; margin: 0 12px 0 0;
  background: #fff; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: 0 3px 0 var(--key-edge);
  padding: 8px 16px; font-size: 14px; font-family: inherit; line-height: 1.4;
  transition: transform .06s, box-shadow .06s, background var(--speed);
}
input[type=file]::file-selector-button:hover,
input[type=file]::-webkit-file-upload-button:hover { background: #f7f6f1; }
input[type=file]::file-selector-button:active,
input[type=file]::-webkit-file-upload-button:active {
  transform: translateY(3px); box-shadow: 0 0 0 var(--key-edge);
}

/* ---------- 返回链接：胶囊形次级导航（页面左上角统一形态） ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; margin-bottom: 16px;
  background: var(--card); color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px;
  box-shadow: 0 1px 0 var(--key-edge);
  font-size: 13.5px; text-decoration: none; white-space: nowrap;
  transition: transform var(--speed), border-color var(--speed),
              color var(--speed), box-shadow var(--speed);
}
.back-link::before { content: "←"; font-size: 14px; line-height: 1; }
.back-link:hover {
  color: var(--text); border-color: var(--muted);
  transform: translateX(-2px); text-decoration: none; box-shadow: var(--shadow);
}
.back-link:active { transform: translateX(0); }


details.box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 12px; background: #fbfaf6; }
details.box summary { cursor: pointer; font-weight: 600; }

/* ---------- 统计 ---------- */
.statnum { font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--ink); }
.statlabel { color: var(--muted); font-size: 13.5px; }

/* ---------- 打字练习 ---------- */
.statsbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.stat-mini {
  background: #fff; border: 1px solid var(--line-strong); border-bottom-width: 3px;
  border-radius: var(--radius-sm); padding: 8px 16px;
  min-width: 92px; text-align: center;
}
.stat-mini b { font-family: var(--mono); font-size: 20px; display: block; color: var(--ink); }
.stat-mini span { font-size: 12px; color: var(--muted); }

.practice-wrap {
  border: 2px solid var(--line-strong); border-radius: var(--radius);
  padding: 22px; position: relative; background: #fff;
  box-shadow: 0 4px 0 var(--line);
}
.practice-wrap:focus-within, .practice-wrap.typing {
  border-color: var(--accent);
  box-shadow: 0 4px 0 rgba(245, 166, 35, .5), 0 0 0 3px rgba(245, 166, 35, .18);
}
.practice-hint { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

.practice-text {
  font-family: var(--mono);
  font-size: 21px; line-height: 2.2; letter-spacing: .5px;
  text-align: center;
  max-height: 320px; overflow-y: auto; overflow-x: hidden; padding: 4px 2px; transition: filter .3s;
  user-select: none; -webkit-user-select: none;
}
.pt-line { white-space: pre-wrap; min-height: 1em; overflow-wrap: anywhere; }
.ch { border-radius: 3px; padding: 0 1px; color: #475569; position: relative; }
.ch.sp { color: #94a3b8; }
.ch.correct { color: var(--green); }
.ch.correct.sp { color: #86efac; }
.ch.wrong { color: #fff; background: var(--red); }
.ch.hint { background: #fef3c7; box-shadow: 0 0 0 2px #f59e0b inset; color: #92400e; }
.ch.cursor::before {
  content: ""; position: absolute; left: -2px; top: 6%; height: 88%;
  border-left: 2.5px solid var(--accent); animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 中文打字（lang=zh）：IME 宿主输入框 ---------- */
.zh-input {
  display: block; width: 100%; margin-top: 14px; font-size: 20px;
  padding: 10px 14px; border: 2px solid var(--line-strong);
  border-radius: var(--radius); transition: border-color .15s, background .15s;
}
.zh-input:focus { outline: none; border-color: var(--accent); }
.zh-input.wrong-pending { border-color: var(--red); background: var(--red-bg); }
.zh-input:disabled { background: var(--green-bg); border-color: var(--green); }

/* ---------- 输入法模拟器（第 22 课互动教程） ---------- */
.zh-sim {
  border: 2px solid var(--line-strong); border-radius: var(--radius);
  background: var(--card); padding: 18px; box-shadow: 0 4px 0 var(--line);
}
.zh-sim.shake { animation: zh-shake .3s; }
@keyframes zh-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.zh-sim-out {
  min-height: 40px; padding: 6px 4px 10px; margin-bottom: 10px;
  font-size: 22px; letter-spacing: 2px; color: var(--ink);
  border-bottom: 2px dashed var(--line-strong); overflow-wrap: anywhere;
}
.zh-sim-ime {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 12px;
  background: var(--card);
}
.zh-sim-pill {
  min-width: 44px; height: 36px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--card); font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.zh-sim-pill.zh { background: var(--green); border-color: var(--green); color: #fff; }
.zh-sim-comp {
  font-family: var(--mono); font-size: 18px; padding: 2px 8px;
  background: var(--accent-light); border-radius: 6px; display: none;
}
.zh-sim-comp.show { display: inline-block; }
.zh-sim-comp.mismatch { background: var(--red-bg); color: var(--red); }
.zh-sim-cand { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 16px; }
.zh-sim-cand:empty { display: none; }
.zh-sim-cand-item { padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.zh-sim-cand-item.first { font-weight: 700; border-color: var(--accent); background: var(--accent-light); }
.zh-sim-cand-page { color: var(--muted); font-size: 12px; }
.zh-sim-hint { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.zh-sim-steps { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ---------- 虚拟键盘（与键帽语言同源） ---------- */
.kb { display: flex; flex-direction: column; gap: 7px; margin: 18px auto 6px; max-width: 880px; }
.kb-row { display: flex; gap: 7px; justify-content: center; }
.key {
  min-width: 46px; height: 46px; border: 1px solid #b8b4a6; border-bottom-width: 4px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 15px; font-weight: 600; color: #334155;
  position: relative; background: #fff; flex: 1; transition: transform .08s, background .12s;
}
.key .sub { position: absolute; top: 2px; left: 5px; font-size: 10.5px; color: #94a3b8; font-weight: 400; }
.key .main { margin-top: 6px; }
.key-space { min-width: 260px; }
.key.home { border-top: 3px solid var(--accent); }
.key.active {
  background: var(--accent) !important; color: #1a1d21 !important;
  transform: translateY(2px) scale(1.08);
  box-shadow: 0 3px 10px rgba(245, 166, 35, .55);
}
.key.active .sub { color: rgba(26, 29, 33, .75); }
.key.shift-active { background: var(--ink) !important; color: #fff !important; transform: translateY(2px); }
.key.active .main, .key.shift-active .main { margin-top: 0; }

.f-L5 { background: #ffe4e6; } .f-L4 { background: #fef3c7; }
.f-L3 { background: #dcfce7; } .f-L2 { background: #e0f2fe; }
.f-R2 { background: #ede9fe; } .f-R3 { background: #fae8ff; }
.f-R4 { background: #ffe4e6; } .f-R5 { background: #fef9c3; }
.f-TH { background: #f1f5f9; }
.f-AUX { background: #e2e8f0; }
.key-aux {
  background: #e2e8f0 !important; color: #64748b; font-size: 12px; font-weight: 500;
}

.kb-legend { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.lg-item { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.lg-item i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0, 0, 0, .1); }

/* ---------- 进度条 ---------- */
.pbar { height: 10px; background: #e9e6dc; border-radius: 999px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #fbc658); border-radius: 999px; transition: width .4s; }
.pbar.green i { background: linear-gradient(90deg, var(--green), #4ade80); }

/* ---------- 教程理论 ---------- */
.theory { font-size: 15px; }
.theory h4 { margin: 18px 0 8px; color: var(--ink); border-left: 4px solid var(--accent); padding-left: 10px; }
.finger-table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0; }
.finger-table th, .finger-table td { border: 1px solid var(--line); padding: 7px 12px; text-align: left; }
.finger-table th { background: #f1efe8; }

.lesson-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-bottom-width: 3px;
  border-radius: var(--radius-sm); margin-bottom: 10px;
  background: #fff; transition: border-color var(--speed), box-shadow var(--speed), transform var(--speed);
}
.lesson-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.lesson-card .no { font-family: var(--mono); font-size: 22px; font-weight: 700; color: #c9c5b7; min-width: 44px; }
.lesson-card.done .no { color: var(--green); }
.lesson-card .info { flex: 1; }
.lesson-card .info .t { font-weight: 600; }
.lesson-card .info .d { color: var(--muted); font-size: 13px; margin-top: 2px; }
.stage-title { margin: 26px 0 12px; font-size: 17px; color: var(--ink); }

/* ---------- 游戏 ---------- */
.room-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }
.players-panel .player-row { padding: 10px 6px; border-bottom: 1px dashed var(--line); }
.players-panel .p-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.players-panel .p-name { font-weight: 600; }
.players-panel .me-tag { color: var(--accent-dark); font-size: 12px; margin-left: 4px; }
.players-panel .p-wpm { color: var(--muted); font-size: 12.5px; }
.players-panel .p-done { color: var(--green); font-weight: 700; }
.props-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.prop-btn {
  border: 1px solid var(--line-strong); border-bottom-width: 3px; background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 14px; cursor: pointer; font-size: 14px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.prop-btn:hover:not(:disabled) { background: var(--primary-light); }
.prop-btn:disabled { opacity: .45; cursor: not-allowed; }
.prop-btn .cnt { background: var(--accent); color: #1a1d21; border-radius: 999px; font-size: 12px; padding: 0 7px; }

.overlay {
  position: fixed; inset: 0; background: rgba(16, 18, 22, .85); z-index: 60;
  display: none; align-items: center; justify-content: center; flex-direction: column; color: #fff;
}
.overlay.show { display: flex; }
.countdown-num { font-family: var(--mono); font-size: 110px; font-weight: 800; color: var(--accent); animation: pop .9s infinite; }
@keyframes pop { 0% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.results-panel {
  background: #fff; color: var(--text); border-radius: 16px; padding: 28px 34px;
  min-width: 420px; max-width: 90vw; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

/* 道具视觉效果 */
@keyframes jamflash {
  0%, 100% { background: #fff; transform: translate(0, 0); }
  25% { background: var(--red-bg); transform: translate(-4px, 2px); }
  50% { background: #fff; transform: translate(4px, -2px); }
  75% { background: var(--red-bg); transform: translate(-3px, -2px); }
}
.fx-jam { animation: jamflash .35s linear 9; }
.fx-blur { filter: blur(5px); }

/* ---------- 商店 ---------- */
.prop-card { text-align: center; padding: 24px 16px; display: flex; flex-direction: column; }
.prop-card .ico { font-size: 44px; }
.prop-card .price { color: var(--amber); font-weight: 700; font-size: 17px; font-family: var(--mono); }
.prop-card .owned { color: var(--muted); font-size: 13px; margin: 6px 0 12px; }
.prop-card .btn { align-self: center; margin-top: auto; }
.prop-desc {
  color: var(--muted); font-size: 13px; line-height: 1.6;
  min-height: 42px; margin: 6px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.prop-badges { min-height: 24px; display: flex; justify-content: center; align-items: center; gap: 6px; margin-bottom: 4px; }

/* ---------- 登录页：暗色机房舞台（签名场景） ---------- */
.login-wrap {
  display: flex; justify-content: center; position: relative;
  margin: -24px calc(50% - 50vw) -48px; width: 100vw;
  padding: 10vh 16px 56px;
  background:
    linear-gradient(180deg, rgba(22, 25, 31, .82), rgba(22, 25, 31, .94)),
    repeating-linear-gradient(0deg, transparent 0 62px, rgba(255, 255, 255, .05) 62px 64px),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(255, 255, 255, .05) 92px 94px),
    var(--ink);
  border-bottom: 1px solid #2c313b;
}
.login-card {
  width: 400px; max-width: 94vw; text-align: center;
  border: 1px solid var(--line); border-bottom: 4px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  position: relative; z-index: 1;
}
.login-logo { font-size: 52px; }
.login-card h1 { letter-spacing: -.01em; }
.login-card h1::after {
  content: "▌"; color: var(--accent); margin-left: 4px;
  animation: blink 1.1s step-end infinite;
}
.login-form { text-align: left; margin-top: 18px; }
.login-form .btn-primary { width: 100%; padding: 11px 17px; font-size: 15.5px; }

/* ---------- 首页 hero：墨色控制台 ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(255, 255, 255, .04) 92px 94px),
    var(--ink);
  color: #fff; border-radius: var(--radius); padding: 26px 30px; margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  border: 1px solid #2c313b; border-bottom: 4px solid #0c0e12;
}
.hero h2 { margin: 0 0 6px; }
.hero p { color: #9aa3b2; margin: 0; }
.hero .big-points { font-family: var(--mono); font-size: 40px; font-weight: 800; color: var(--accent); }

/* ---------- toast ---------- */
#toastBox { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: rgba(22, 25, 31, .95); color: #fff; padding: 11px 22px; border-radius: 10px;
  font-size: 14.5px; opacity: 0; transform: translateY(10px); transition: all .3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); max-width: 88vw;
  border: 1px solid #3a404d; border-bottom: 3px solid var(--accent);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-bottom-color: var(--term); }
.toast.error { border-bottom-color: var(--red); }

/* ---------- 题目/作答 ---------- */
.typebox { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0; background: #fbfaf6; }

/* 多提交位两列网格（2026-10-10 设计评审：提交栏过长，1390px 宽度足够两列；
 * 间距交给 grid gap，槽内 typebox 归零外距；窄屏回退单列） */
.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; align-items: start; }
.slot-grid .typebox { margin: 0; }
@media (max-width: 900px) { .slot-grid { grid-template-columns: 1fr; } }
.qblock { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.qblock .qb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qblock .qb-head b { flex: 1; line-height: 1.6; }
.qblock .qb-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.opt-list { list-style: none; padding: 0; margin: 8px 0; }
.opt-list li { padding: 5px 10px; border-radius: 7px; }
.opt-list li.opt-correct { background: var(--green-bg); color: var(--green); font-weight: 600; }
.ans-key { background: var(--green-bg); color: var(--green); padding: 1px 8px; border-radius: 6px; }
.opt-pick {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid var(--line); border-bottom-width: 3px; border-radius: var(--radius-sm); margin: 6px 0;
  cursor: pointer; font-size: 15px; transition: background var(--speed), border-color var(--speed);
}
.opt-pick:hover { background: var(--primary-light); border-color: var(--accent); }
.opt-pick input { width: 18px; height: 18px; }
.short-answer { white-space: pre-wrap; background: #f8fafc; border-left: 4px solid var(--accent); border-radius: 6px; padding: 10px 14px; line-height: 1.7; min-height: 20px; }
.short-answer.mine { border-left-color: var(--amber); }
/* 测验详解回顾卡（公布后）：内容字号统一走 --quiz-fs，页面 A－/A＋ 调节、
 * localStorage 记忆（同作品墙 --wall-fs 的做法）；解析比题干再小一点、
 * 颜色用 --ink-2（比 --muted 深，投屏可读，皮肤各自定义深色值） */
#quizReview { --quiz-fs: 16px; }
#quizReview .qb-head b { font-size: var(--quiz-fs); }
#quizReview .mt { font-size: var(--quiz-fs); }
#quizReview .q-explain { font-size: calc(var(--quiz-fs) * .9); color: var(--ink-2); line-height: 1.85; margin: 8px 0 0; }
.qr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qr-head .quiz-fs { margin-left: auto; }
.quiz-fs { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 400; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .room-layout { grid-template-columns: 1fr; }
  .practice-text { font-size: 18px; }
}
@media (max-width: 600px) {
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .navlinks { order: 3; width: 100%; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 分页条 ---------- */
.pagerbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 2px 0;
  font-size: 13px;
  color: var(--muted);
}
.pagerbar .pg-info b { color: var(--text); font-family: var(--mono); }
.pagerbar .pg-size { display: inline-flex; align-items: center; gap: 6px; }
/* min-width 必须给足：自绘下拉的按钮（标签+箭头+内边距）比原生框宽，
 * 太窄时标签被 overflow 挤没，看起来像空框（看不到当前每页条数） */
.pagerbar .pg-per { padding: 4px 8px; font-size: 13px; width: auto; min-width: 76px; }
.pagerbar .pg-nav { display: inline-flex; gap: 8px; margin-left: auto; }
.pagerbar .pg-disabled { opacity: .45; pointer-events: none; }

/* ---------- 课程流程（v6 重构）：流程时间线 / 类型选择卡 / 作品墙 ---------- */
.flow-list { display: flex; flex-direction: column; gap: 10px; }
.flow-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 14px;
}
.flow-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.flow-current { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-light); }
.flow-no {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-weight: 700; font-size: 15px;
}
.flow-current .flow-no { background: var(--accent); color: var(--ink); }
.flow-item .info { flex: 1; min-width: 0; }
.flow-item .t { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flow-item .d { color: var(--muted); font-size: 13px; margin-top: 2px; }
.flow-ops { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* 上移/下移为悬浮微操作（2026-10-10 设计评审：行内按钮收敛，编辑是唯一主操作）：
 * 行内不常驻删除按钮——删除在环节编辑页底部危险区；触屏设备无 hover 常显 */
.flow-ops .flow-mini { opacity: 0; transition: opacity var(--speed); }
.flow-item:hover .flow-mini, .flow-item:focus-within .flow-mini { opacity: 1; }
@media (hover: none) { .flow-ops .flow-mini { opacity: 1; } }

.typegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.typecard {
  display: flex; flex-direction: column; gap: 3px; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; background: var(--card); transition: all var(--speed);
}
.typecard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.typecard:has(input:checked) { border-color: var(--accent); background: var(--accent-light); }
.typecard input { position: absolute; opacity: 0; }
.typecard .tc-ico { font-size: 20px; line-height: 1.2; }
.typecard .tc-name { font-weight: 700; font-size: 14px; }
.typecard .tc-desc { color: var(--muted); font-size: 12px; line-height: 1.5; }

.wall-list { display: flex; flex-direction: column; gap: 10px; }
.wall-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; background: var(--paper);
}
.wall-mine { border-color: var(--accent); background: var(--accent-light); }
.wall-item .w-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.wall-item .w-text { margin-top: 6px; line-height: 1.75; white-space: pre-wrap; }
.wall-item .w-extra { margin-top: 4px; color: var(--muted); font-size: 13px; }
.wall-item .w-ops { margin-top: 8px; display: flex; gap: 6px; }

@media (max-width: 900px) {
  .typegrid { grid-template-columns: repeat(2, 1fr); }
  .flow-item { flex-wrap: wrap; }
  .flow-ops { width: 100%; justify-content: flex-start; }
}

/* ---------- 文本收集/实操提交：作品墙（横排行卡）/ 多框字段 ----------
 * 一张作品占一行：作者固定在左、正文居中自适应、互动与信息固定在右；
 * 长文按行数截断（点击正文可展开/收起）、图片定高——行高稳定，
 * 轮询刷新与内容长短不再引起卡片跳动（v11 弃用多列瀑布流）。
 * 时间/点赞等元信息用固定 12px 小字（.w-meta），不随「投屏字号」缩放。 */
.card-grid { display: flex; flex-direction: column; gap: 10px; }
.sub-card {
  display: flex; align-items: stretch; gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 10px 14px;
  font-size: var(--wall-fs, 14.5px);
}
/* 左：作者区（固定宽，姓名/班级/在线/选项徽标；姓名跟随投屏字号） */
.sub-card .w-who {
  flex: 0 0 150px; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  font-size: calc(var(--wall-fs, 14.5px) * .94);
  border-right: 1px dashed var(--line); padding-right: 12px;
}
.sub-card .w-who b { line-height: 1.4; }
.sub-card .w-who .muted { font-size: 12px; }   /* 班级固定小字 */
/* 中：正文区（多字段/图片与说明纵向堆叠：字段上下排、图片居中在上）
 * 文本截断 3 行（.w-field 2 行）/ 图片定高 128px */
.sub-card-body {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.sub-card-body .w-media, .sub-card-body .wall-file { align-self: center; }
.wall-thumb {
  display: block; height: 128px; width: auto; max-width: 300px;
  object-fit: contain; border-radius: 8px;
  border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--shadow);
}
.sub-card .w-text {
  flex: 0 1 auto; min-width: 0;
  line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  cursor: pointer;
}
.sub-card.w-open .w-text, .sub-card.w-open .w-field { -webkit-line-clamp: unset; cursor: zoom-in; }
.sub-card .w-field {
  flex: 0 1 auto; min-width: 0;
  margin: 0; padding: 6px 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  cursor: pointer;
}
.sub-card .w-fl { font-size: 12px; }
/* 右：互动与信息区（点赞按钮 + 固定小字元信息，不随投屏字号） */
.sub-card .w-side {
  flex: 0 0 auto; max-width: 200px;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 6px; text-align: right;
}
.sub-card .w-meta {
  font-size: 12px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* 作品墙工具栏（搜索 / 班级筛选 / 排序 / 仅在线 / 投屏字号） */
.wall-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.wall-toolbar input[type="search"] { width: 240px; max-width: 100%; }
.wall-toolbar select { width: auto; }
.wall-fs { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }

/* 作品墙右下角跳顶/跳底悬浮组：长墙免滚屏；竖排贴角落，少占行卡右侧互动区；
 * ghost 底 + 投影保证浮在卡片上仍可辨（各主题下用变量，不硬编码颜色） */
.wall-jump {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; flex-direction: column; gap: 8px;
}
.wall-jump .btn {
  background: var(--card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.wall-jump .btn:hover { background: rgba(0, 0, 0, .04); }   /* 与 .btn-ghost:hover 同款（位置在其后，需显式写回） */
.wall-jump .btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--key-edge); }
.sub-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.w-field .w-fl {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-light); border-radius: 6px;
  padding: 1px 8px; margin-right: 8px; vertical-align: baseline;
}

/* 实操作品墙按学生合并（2026-09-23）：卡内每个提交位一个 .w-item 条目，
 * 2026-09-29 定稿：条目 = 网格的一格（整行平分 4 份、超出换行），
 * 内部 标题徽标/简介各占一行在上、媒体居中在下；边框大小一致 */
.sub-card .w-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-width: 0;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card);
}
.sub-card .w-item-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sub-card .w-item-media { display: flex; justify-content: center; width: 100%; }
.sub-card .w-item .w-media { max-width: 100%; }
.sub-card .w-item .wall-thumb {
  height: auto; max-height: 130px; max-width: 100%;
}
/* 预览/附件胶囊：不逐字换行（截断显示），保证文件名整齐；
   flex:0 0 auto 防被 flex 兄弟（overflow:hidden 会让 min-width 塌成 0）挤压 */
.sub-card .w-item .wall-file {
  display: block; max-width: 100%; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.sub-card .w-item .w-text {
  font-size: 13px; line-height: 1.6; color: var(--muted);
  -webkit-line-clamp: 2;
}
.sub-card .w-item.w-open .w-text { -webkit-line-clamp: unset; }
.sub-card-body.w-items {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  align-items: stretch;
}
/* 作者区两行小组（2026-09-29）：离线+批阅状态一行，班级+点赞数一行 */
.sub-card .w-who-top { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sub-card .w-who-sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sub-card .w-who .w-like { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sub-card .w-who [data-like] { align-self: flex-start; }
/* upload 卡的环节级批阅动作（2026-10-15 定稿）：评语/时间留作者区，
 * 点评/删除 + ±5 + 积分徽标整卡一份挂右侧互动区（与 collect 墙同构），
 * 评语与提交时间为固定 12px 小字（不随投屏字号），评语最多 3 行截断 */
/* 点评/删除 与 +5/-5（2026-09-29 视觉优化）：统一 2 列等宽网格，
 * 上下两行严格对齐；upload/collect 均挂右侧互动区 */
.sub-card .w-acts-row, .sub-card .w-quick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%;
}
.sub-card .w-acts-row .btn, .sub-card .w-quick .btn {
  padding: 4px 6px; font-size: 13px; line-height: 1.6;
  white-space: nowrap; text-align: center;
}
.sub-card .w-who .w-meta { align-self: stretch; }

/* 环节已获积分徽标（v25）：挂右侧互动区底部（±5 之下，与 collect 墙同构）；
 * 固定 13px 不随投屏字号，amber 与「已发积分」徽标同色系 */
.sub-card .w-points {
  font-size: 13px; font-weight: 700; line-height: 1.6;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: 8px;
  padding: 2px 10px;
  white-space: nowrap;
}

/* 窄屏：行卡改纵向堆叠（作者条置顶） */
@media (max-width: 900px) {
  .sub-card { flex-wrap: wrap; }
  .sub-card .w-who {
    flex: 1 1 100%; flex-direction: row; align-items: center; flex-wrap: wrap;
    border-right: none; border-bottom: 1px dashed var(--line);
    padding-right: 0; padding-bottom: 8px;
  }
  .sub-card .sub-card-body { flex: 1 1 100%; }
  .sub-card .w-side { flex: 1 1 100%; flex-direction: row; align-items: center; max-width: none; }
  .sub-card .sub-card-body.w-items { grid-template-columns: repeat(2, 1fr); }
  .points-split { grid-template-columns: 1fr; }
}

/* 实操作品墙：图片直接渲染 + 非图片附件胶囊 */
/* 环节说明插图（教师插入的 <img>）：限制在合理尺寸内，不撑破版面也不显小 */
.desc-img {
  display: block; max-width: min(100%, 560px); max-height: 320px;
  margin: 8px 0; border-radius: 8px; border: 1px solid var(--line-strong);
  object-fit: contain; background: var(--bg);
}
/* 随堂测验「暂存」悬浮按钮：固定右下角，随时保存作答进度 */
.quiz-save-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22); font-size: 15px;
}

/* 随堂测验题目分析（2026-09-29）：逐题正确率 + 选项分布条；
 * 讲评模式（.qa-present）大字号一次一题，适合投屏 */
.qa-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qa-title { margin: 8px 0; font-size: 16px; font-weight: 600; line-height: 1.6; }
.qa-row { display: flex; align-items: center; gap: 10px; margin: 5px 0; }
.qa-opt { flex: 0 0 auto; max-width: 340px; }
.qa-opt-correct { font-weight: 700; color: var(--green); }
.qa-track {
  flex: 1 1 auto; height: 14px; min-width: 60px;
  background: var(--primary-light); border-radius: 7px; overflow: hidden;
}
.qa-track i { display: block; height: 100%; border-radius: 7px; }
.qa-track .qa-good { background: var(--green); }
.qa-track .qa-bad { background: var(--red); }
.qa-n { flex: 0 0 52px; text-align: right; }
.qa-card.qa-hard { border-color: var(--red-line); box-shadow: 0 0 0 1px var(--red-line); }
.qa-card.qa-easy { border-color: var(--green-line); }
.qa-sample {
  margin: 4px 0; padding: 6px 12px; background: var(--primary-light);
  border-radius: 8px; font-size: 13.5px; line-height: 1.6;
}
/* 得分分布直方图 */
.qa-hist { display: flex; gap: 18px; align-items: flex-end; }
.qa-hcol { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qa-htrack {
  width: 56px; height: 90px; display: flex; align-items: flex-end;
  background: var(--primary-light); border-radius: 8px; overflow: hidden;
}
.qa-htrack i { display: block; width: 100%; background: var(--accent); }
/* 讲评模式：隐藏非当前题，字号放大 */
.qa-present .qa-card { display: none; }
.qa-present .qa-card.qa-cur { display: block; }
.qa-present .qa-title { font-size: 30px; }
.qa-present .qa-head { font-size: 20px; }
.qa-present .qa-row { font-size: 22px; margin: 10px 0; }
.qa-present .qa-track { height: 26px; border-radius: 13px; }
.qa-present .qa-sample { font-size: 20px; }
.qa-present .muted.small { font-size: 16px; }
.wall-img-wrap { margin-top: 4px; text-align: center; }
.wall-img {
  display: block; max-width: 100%; max-height: 340px; margin: 0 auto;
  border-radius: 10px; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); object-fit: contain; background: #fff;
}
a.wall-img:hover, .wall-img-wrap a:hover { text-decoration: none; }
.wall-file {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--primary-light); border: 1px solid var(--line-strong);
  font-size: 13.5px; color: var(--text); word-break: break-all;
}

/* 返回链接在行内容器（弹层、顶栏）中不占额外下边距 */
.overlay .back-link, .results-panel .back-link { margin-bottom: 0; }

/* ---------- 课堂推进实时看板：列宽固定防错位（2026-09-22） ----------
 * 学生陆续进入时「正在此环节的学生」列变长会顶开行高，右侧操作按钮跟着
 * 跳动易误点——列宽固定 + 名单列限 3 行（悬停可见完整名单）+ 前端按行
 * 增量更新（teacher_live.js），行高与按钮位置保持稳定 */
.board-table { table-layout: fixed; }
.board-table th:nth-child(1) { width: 44px; }
.board-table th:nth-child(2) { width: 26%; }
.board-table th:nth-child(3) { width: 86px; }
.board-table th:nth-child(5) { width: 250px; }
.board-names {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere; line-height: 1.7;
}
/* 操作列：固定两列网格，各行按钮对齐不乱折行；推进/当前按钮独占整行（.op-goto） */
.board-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.board-ops .btn { text-align: center; }
.board-ops .op-goto { grid-column: 1 / -1; }

/* ---------- 小组空间（v22 云盘化）：工具栏 / 面包屑 / 上传队列 / 冲突弹窗 ---------- */
.ts-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px;
}
.ts-toolbar .btn { cursor: pointer; }
/* 拖拽悬停高亮（drop 时 JS 加 .drop-on） */
#spaceApp.drop-on {
  outline: 2px dashed var(--accent); outline-offset: -6px;
}
/* 面包屑：组名 / 子文件夹… */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 4px 0 12px; font-size: 14.5px;
}
.crumbs a { color: var(--blue-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumb-sep { color: var(--muted); }
/* 上传队列面板 */
.ts-q-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}
#tsQRefresh { margin-left: auto; }
.ts-q-row {
  display: flex; align-items: center; gap: 12px; padding: 6px 0;
  border-top: 1px solid var(--line); font-size: 13.5px;
}
.ts-q-row:first-child { border-top: 0; }
.ts-q-name {
  flex: 1 1 240px; min-width: 160px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; word-break: break-all;
}
.ts-bar {
  flex: 0 0 180px; height: 10px; border-radius: 6px; overflow: hidden;
  background: var(--primary-light); border: 1px solid var(--line-strong);
}
.ts-bar i {
  display: block; height: 100%; width: 0;
  background: var(--green); transition: width .18s ease;
}
.ts-q-state { flex: 0 0 130px; text-align: right; }
.ts-q-state.ok-text { color: var(--green); }
.ts-q-state.err-text { color: var(--red); }
/* 冲突弹窗 */
.ts-mask {
  position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(22, 25, 31, .5);
}
.ts-mask[hidden] { display: none; }
.ts-modal {
  width: 640px; max-width: 100%; max-height: 80vh; display: flex;
  flex-direction: column; margin: 0; box-shadow: var(--shadow-lift);
}
.ts-modal h3 { margin: 0 0 4px; }
#tsConfList { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.ts-conf-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; background: var(--primary-light);
}
.ts-conf-name {
  flex: 1 1 auto; min-width: 0; font-size: 13.5px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; word-break: break-all;
}
.ts-conf-opts { display: flex; gap: 12px; font-size: 13px; white-space: nowrap; }
.ts-conf-opts label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ts-conf-quick {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-top: 4px; border-top: 1px solid var(--line);
}
.ts-modal-ops {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px;
}

/* ---------- 课程进度矩阵（仪表盘）+ 下钻页（v24） ---------- */
.pm-summary { cursor: pointer; font-weight: 700; }
.pm-summary .small { font-weight: 400; }
.progress-matrix .pm-course-col {
  max-width: 220px; min-width: 120px; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pm-na { color: var(--line-strong); }
.pcell { position: relative; }
.pm-glyph {
  display: inline-block; min-width: 26px; padding: 2px 9px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
}
/* 文字绿用 #15803d（与 .badge-success 同基准：var(--green) 在浅底上不够 4.5:1） */
.pcell[data-state="done"] .pm-glyph { color: #15803d; background: var(--green-bg); }
.pcell[data-state="undone"] .pm-glyph { color: var(--muted); }
/* 手动角标绑在绿勾徽标右上角（绑格子上离 ✓ 太远，看不出标记的是哪格） */
.pcell[data-manual="1"] .pm-glyph { position: relative; }
.pcell[data-manual="1"] .pm-glyph::after {
  content: ''; position: absolute; top: -2px; right: -2px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}
.pm-wrap { position: relative; display: inline-block; }
.pm-pin {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  margin-left: 3px;
  width: 24px; height: 24px; line-height: 1; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--card); color: var(--text); cursor: pointer;
  font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity var(--speed);
}
.pcell:hover .pm-pin { opacity: 1; pointer-events: auto; }
.pm-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pm-radio { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.pm-bar-line { display: flex; align-items: center; gap: 8px; }
.pm-bar {
  flex: 0 0 120px; height: 8px; border-radius: 4px;
  background: var(--line); overflow: hidden;
}
.pm-bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.pm-ok { color: #15803d; }

/* ---------- 居中模态弹窗（uiConfirm/uiAlert/uiPrompt，替代原生弹窗） ---------- */
.ui-dialog-mask {
  position: fixed; inset: 0; z-index: 1000; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(22, 25, 31, .5);
}
.ui-dialog-mask[hidden] { display: none; }
.ui-dialog {
  width: 420px; max-width: 100%; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 22px 22px 18px;
  animation: uiDlgIn var(--speed) ease;
}
@keyframes uiDlgIn {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.ui-dialog-msg {
  white-space: pre-line; line-height: 1.6; font-size: 14.5px;
  color: var(--text); word-break: break-word;
  max-height: 56vh; overflow-y: auto;
}
.ui-dialog-input { width: 100%; margin-top: 12px; }
.ui-dialog-ops {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px;
}
.ui-dialog-ops .btn { min-width: 76px; }
