/* 万象之因 · 纯白极简（设计稿 A）。主色 --brand 由网站设置注入。 */
:root {
  --brand: #0066CC;
  --brand-tint: color-mix(in srgb, var(--brand) 8%, #FFFFFF);
  --bg: #FFFFFF;
  --gray: #F5F5F7;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --line: #E5E5EA;
  --line-soft: #F0F0F2;
  --field-line: #D2D2D7;
  --track: #E8E8ED;
  --warn: #B25000;
  --danger: #C4271C;
  --ok-bg: #E3F1E6;
  --ok: #1E6B34;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
          "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.gray { background: var(--gray); }
a { color: var(--brand); text-decoration: none; }
a:hover { opacity: .85; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }

/* 页面骨架：手机优先，电脑上居中一列 */
.page { max-width: 560px; margin: 0 auto; padding: 56px 20px 40px; display: flex; flex-direction: column; gap: 14px; }
.page.wide { max-width: 760px; }
.page.flush { padding-top: 0; }
.page > * { min-width: 0; }

.topbar { height: 52px; margin: 8px -8px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.topbar .back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.topbar .title { font-size: 14px; color: var(--muted); }
.topbar .spacer { width: 44px; }

.head { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.date { font-size: 13px; color: var(--muted); }
h1, .h1 { font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: .5px; }
.h1-lg { font-size: 34px; }
.sub { font-size: 14px; color: var(--muted); }
.section-label { margin: 14px 4px 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); }
.warn { color: var(--warn); }
.danger-text { color: var(--danger); }
.small { font-size: 13px; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* 卡片与分组列表 */
.card { background: var(--bg); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
body:not(.gray) .card { box-shadow: var(--shadow); }
.card.flat { box-shadow: none; background: var(--gray); }
.group { background: var(--bg); border-radius: 16px; padding: 0 18px; display: flex; flex-direction: column; }
body:not(.gray) .group { border: 1px solid var(--line); }
.group > .item { min-height: 58px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.group > .item:last-child { border-bottom: 0; }
.group > .item.stack { flex-direction: column; align-items: stretch; gap: 8px; }
.item .grow { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item .meta { font-size: 13px; color: var(--muted); text-align: right; }
.chev { flex-shrink: 0; color: var(--muted); }

/* 按钮 */
button, .btn {
  font: inherit; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-size: 16px; font-weight: 600;
  background: var(--text); color: #FFFFFF; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.btn.block, button.block { width: 100%; height: 54px; font-size: 17px; }
.btn.brand, button.brand { background: var(--brand); }
.btn.plain, button.plain { background: var(--bg); color: var(--text); font-weight: 400; border: 1px solid var(--line); }
body.gray .btn.plain, body.gray button.plain { border-color: transparent; }
.btn.danger, button.danger { background: var(--bg); color: var(--danger); font-weight: 400; border: 1px solid var(--line); }
.pill { height: 34px; padding: 0 16px; border-radius: 17px; font-size: 14px; font-weight: 600; background: var(--brand); color: #FFFFFF; display: inline-flex; align-items: center; flex-shrink: 0; }
.pill.outline { background: transparent; border: 1px solid var(--field-line); color: var(--text); }
.link-btn { background: none; color: var(--brand); height: auto; padding: 0; font-weight: 400; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid-2 .btn, .grid-3 .btn, .grid-2 button, .grid-3 button { width: 100%; padding: 0 8px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 10px; background: var(--gray); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.brand { background: var(--brand-tint); color: var(--brand); }
.tag.warn { background: #FBEFE3; color: var(--warn); }
.tag.danger { background: #FBE9E7; color: var(--danger); }

/* 表单 */
label, .label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input[type=search], input:not([type]), select, textarea {
  font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 12px;
  background: var(--bg); color: var(--text); font-size: 16px; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); }
input[type=file] { font: inherit; font-size: 14px; }
.field { display: flex; flex-direction: column; }
.field + .field { margin-top: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.errorlist { list-style: none; margin: 0 0 6px; padding: 0; color: var(--danger); font-size: 14px; }
form p { margin: 14px 0; }
.helptext { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.notice { background: var(--brand-tint); color: var(--text); border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.notice.warn { background: #FBEFE3; color: var(--warn); }
.notice.danger { background: #FBE9E7; color: var(--danger); }

/* 选择按钮（课程、来源） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--field-line); background: var(--bg); font-size: 15px; color: var(--text); cursor: pointer; }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: #FFFFFF; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 进度条 */
.bar { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 2px; background: var(--brand); }

/* 老师端：学员详情里的操作记录，只是描述，字比课程小 */
.group.log .item { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 2px; padding-top: 11px; padding-bottom: 11px; }
.group.log .what { font-size: 14px; color: var(--text); }
.group.log .when, .group.log .detail { font-size: 12px; color: var(--muted); }

/* 登录（验证码、密码、停用提示共用；手机上铺满，电脑上是灰底中间一张卡片） */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.brandmark { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: 2px; color: var(--text); }
.brandmark img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.login-shell { min-height: 100vh; min-height: 100dvh; max-width: 440px; margin: 0 auto; padding: 56px 28px 32px; display: flex; flex-direction: column; }
.login { display: flex; flex-direction: column; margin-top: 48px; }
.login h1 { font-size: 32px; }
.login .sub { margin-top: 10px; font-size: 15px; line-height: 1.6; }
.login .sub a { margin-left: 6px; }
.login form { margin-top: 36px; display: flex; flex-direction: column; }
.login-back { width: 36px; height: 36px; margin: -8px 0 18px -8px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.login-field { display: flex; align-items: center; gap: 10px; height: 44px; border-bottom: 1px solid var(--field-line); transition: border-color .15s; }
/* 每个框前面有给读屏用的隐藏 label，两个框不相邻，所以用 ~ 不用 + */
.login-field ~ .login-field { margin-top: 20px; }
.login-field:focus-within { border-bottom-color: var(--text); }
.login-field.invalid { border-bottom-color: var(--danger); }
.login-field input { flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 0; padding: 0; background: transparent; font-size: 20px; outline: none; }
.login-field input::placeholder { color: #AEAEB2; letter-spacing: 0; }
.login-field .clear, .login-field .eye { flex: none; width: 36px; height: 36px; padding: 0; background: none; border: 0; color: #C7C7CC; display: flex; align-items: center; justify-content: center; }
.login-field .eye { color: var(--muted); }
/* 密码隐藏时眼睛上有一道斜线，点开显示后斜线消失 */
.login-field .eye[aria-pressed="true"] .slash { display: none; }
.field-error { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--danger); }
.login .hint { margin-top: 12px; font-size: 13px; }
.login .submit { margin-top: 28px; }
.login-note { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #FBEFE3; color: var(--warn); font-size: 14px; line-height: 1.6; }
.otp { position: relative; margin-top: 4px; }
.otp-boxes { display: none; }
.js .otp-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; border: 0; }
.js .otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-boxes span { height: 56px; border: 1px solid var(--field-line); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; background: var(--bg); }
.otp-boxes span.on { border: 2px solid var(--brand); }
.field-error ~ .hint { display: none; }
.otp:has(+ .field-error) .otp-boxes span { border-color: var(--danger); color: var(--danger); }
.js .js-wait { display: none; }
html:not(.js) .js-only { display: none; }
.resend { margin-top: 20px; font-size: 14px; }
.resend .link-btn { font-size: 14px; }
.login-methods { margin: 24px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.login-methods a { color: var(--brand); }
.login .step { margin-top: 10px; font-size: 14px; color: var(--muted); }
.login-field .get { flex: none; height: 32px; padding: 0 0 0 14px; margin-left: 8px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; color: var(--brand); font-size: 15px; font-weight: 400; }
.login-field .get:disabled { color: var(--muted); }
.login-links { margin-top: 20px; display: flex; justify-content: space-between; font-size: 14px; }
.login-links a { color: var(--brand); }
.login-links a.muted, .login-links .link-btn.muted { color: var(--muted); }
.login-links .link-btn { font-size: 14px; }
.login form.login .step { margin-top: 10px; font-size: 14px; color: var(--muted); }
.login-field .get { flex: none; height: 32px; padding: 0 0 0 14px; margin-left: 8px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; color: var(--brand); font-size: 15px; font-weight: 400; }
.login-field .get:disabled { color: var(--muted); }
.login-links { margin-top: 20px; flex-direction: row; }
.login-alt { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.login-foot { margin-top: auto; padding-top: 40px; font-size: 13px; line-height: 1.8; text-align: center; }
.login-foot p { margin: 0; }
.login-foot a { color: var(--brand); }
.login-foot a.muted { color: var(--muted); }
.login-center { align-items: center; text-align: center; }
.login-icon { width: 60px; height: 60px; border-radius: 50%; background: #FBE9E7; color: var(--danger); display: flex; align-items: center; justify-content: center; margin: 24px 0 22px; }
.login-contact { width: 100%; margin-top: 28px; padding: 14px 16px; border-radius: 14px; background: var(--gray); display: flex; flex-direction: column; gap: 4px; font-size: 15px; text-align: left; }
.login-contact .muted { font-size: 13px; }
.login-center .btn.block { margin-top: 24px; }
@media (min-width: 768px) {
  body.login-page { background: var(--gray); }
  .login-shell { max-width: none; padding: 28px 36px 28px; align-items: center; }
  .login-brand { align-self: flex-start; }
  .login { width: 420px; margin: auto 0; padding: 44px 44px 40px; background: var(--bg); border-radius: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.06); }
  .login h1 { font-size: 28px; }
  .login-foot { margin-top: 0; padding-top: 28px; font-size: 12px; }
  .login-contact { background: var(--gray); }
}

/* 学员：课程卡片 */
.course-card { display: flex; flex-direction: column; border-radius: 20px; background: var(--bg); box-shadow: var(--shadow); overflow: hidden; color: var(--text); }
.course-card .cover { height: 150px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; background: var(--gray); }
.course-card .cover .eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--muted); }
.course-card .cover .name { font-size: 30px; font-weight: 700; letter-spacing: 2px; }
.course-card.dark .cover { background: var(--text); color: #FFFFFF; }
.course-card.dark .cover .eyebrow { color: #A1A1A6; }
.course-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spread.base { align-items: baseline; }
.strong { font-size: 15px; font-weight: 600; }
.row-link { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; font-size: 14px; }

/* 学员：课程页 */
.resume { padding: 18px 20px; border-radius: 18px; background: var(--gray); display: flex; align-items: center; gap: 16px; color: var(--text); }
.resume .play { width: 44px; height: 44px; border-radius: 22px; background: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.resume .grow { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex-grow: 1; }
.resume .k { font-size: 12px; color: var(--muted); }
.resume .v { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapters { display: flex; flex-direction: column; padding: 0 4px; }
.chapter { min-height: 56px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.chapter:last-child { border-bottom: 0; }
.chapter .t { flex-grow: 1; font-size: 15px; min-width: 0; }
.chapter.done .t { color: var(--muted); }
.chapter .d { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.chapter.current { margin: 0 -12px; padding: 0 12px; border-radius: 12px; background: var(--brand-tint); border-bottom-color: transparent; min-height: 60px; }
.chapter.current .t { font-weight: 600; }
.chapter.current .d { color: var(--brand); }
.chapter svg { flex-shrink: 0; }

/* 学员：播放页（只有视频区是黑色） */
.player-page { max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.player-page .topbar { margin: 8px 4px 0; }
.video-box { background: #000000; width: 100%; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: #D1D1D6; font-size: 14px; }
.video-box video { width: 100%; height: 100%; display: block; background: #000000; }
@media (min-width: 760px) { .video-box { border-radius: 14px; overflow: hidden; } }
.player-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px 0; font-size: 13px; color: var(--muted); }
.player-tools select { width: auto; padding: 6px 30px 6px 12px; font-size: 13px; border-radius: 10px; background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; }
.player-tools label { margin: 0; display: inline; }
#playback-message:empty { display: none; }
#playback-message { padding: 10px 24px 0; font-size: 14px; color: var(--muted); }
.lesson { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.lesson h1 { font-size: 26px; line-height: 1.3; }
.notes { margin: 28px 24px 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.notes h2 { font-size: 15px; font-weight: 600; color: var(--muted); }
.notes .text { font-size: 16px; line-height: 1.8; }
.next { margin: 32px 20px 0; padding: 18px 20px; border-radius: 18px; background: var(--gray); display: flex; align-items: center; gap: 16px; color: var(--text); }
.next .grow { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.next .go { width: 40px; height: 40px; border-radius: 20px; background: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
dialog { width: min(440px, calc(100% - 32px)); padding: 24px; border: 0; border-radius: 18px; color: inherit; background: var(--bg); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog h2 { font-size: 19px; margin-bottom: 10px; }
dialog .actions { margin-top: 18px; }
dialog .actions button { flex: 1; }
.secondary { background: var(--gray); color: var(--text); }

/* 学员：我的 */
.avatar { width: 52px; height: 52px; border-radius: 26px; background: var(--text); color: #FFFFFF; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile { margin: 8px 4px 12px; display: flex; align-items: center; gap: 14px; }
.profile .grow { display: flex; flex-direction: column; gap: 4px; }
.profile .name { font-size: 18px; font-weight: 600; }
.signout { width: 100%; height: 56px; border-radius: 16px; background: var(--bg); color: var(--danger); font-weight: 400; margin-top: 16px; }

/* 底部导航 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.tabbar nav { max-width: 560px; margin: 0 auto; display: flex; justify-content: space-around; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 72px; font-size: 11px; color: var(--muted); }
.tabbar a[aria-current=page] { color: var(--brand); }

/* 老师端 */
.stat { font-size: 28px; font-weight: 700; color: var(--warn); }
.stat small { font-size: 14px; font-weight: 500; margin-left: 2px; }
.dot { width: 10px; height: 10px; border-radius: 5px; background: var(--danger); flex-shrink: 0; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex-grow: 1; }
.search-row button { height: auto; padding: 0 18px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.filters a { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--bg); color: var(--text); font-size: 14px; display: flex; align-items: center; }
.filters a[aria-current=true] { background: var(--text); color: #FFFFFF; }
.preview-person { padding: 14px 0; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.preview-person:last-child { border-bottom: 0; }
.preview-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.copybox { white-space: pre-wrap; background: var(--gray); border-radius: 12px; padding: 14px; font-size: 15px; line-height: 1.7; }
.pager { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 0 4px; }

/* 旧页面（问答、知识库等）沿用的通用样式 */
main.legacy { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; display: flex; flex-direction: column; gap: 14px; }
main.legacy .card { box-shadow: none; border: 1px solid var(--line); }
main.legacy h2 { font-size: 19px; }
.eyebrow { font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.badge { display: inline-block; background: var(--gray); border-radius: 10px; padding: 2px 9px; font-size: 13px; }
.row { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
summary { cursor: pointer; font-weight: 600; }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .row { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 900px) {
  .page { padding-top: 72px; }
}
body:has(.tabbar) .page, body:has(.tabbar) main.legacy { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.legacy-head { max-width: 760px; margin: 0 auto; padding: 20px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legacy-head nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.legacy-head form { margin: 0; }
.legacy-head .link-btn { font-size: 14px; }

/* 老师和助教：初始密码 */
.pw-box { display: flex; align-items: center; gap: 8px; background: var(--gray); border-radius: 12px; padding: 4px 14px; margin-top: 6px; }
.pw-box input { flex: 1; min-width: 0; height: 46px; border: 0; padding: 0; background: transparent; font-family: ui-monospace, Menlo, monospace; font-size: 19px; letter-spacing: 1px; color: var(--text); }
.pw-box .link-btn { font-size: 14px; flex-shrink: 0; }

/* 设置首页：每项前面的小图标 */
.set-icon { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.item .set-name { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 7px; vertical-align: -2px; }
.copybox { overflow-wrap: anywhere; }

/* 课程页上传：横幅、进度、弹窗、批量清单 */
.upload-banner { display: flex; align-items: center; gap: 10px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); display: inline-block; flex-shrink: 0; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.upload-progress.paused .bar > i { background: var(--warn); }
dialog.sheet-dialog { max-height: 90vh; overflow-y: auto; }
dialog.sheet-dialog .field { margin-top: 12px; }
.pick { width: 100%; height: auto; padding: 18px; border: 1.5px dashed var(--field-line); border-radius: 14px; background: var(--gray); color: var(--brand); font-weight: 600; }
.picked { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.picked .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--text); color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.picked .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.picked .nm b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picked .nm small { font-size: 12px; color: var(--muted); }
.batch-list { border: 1px solid var(--line); margin-top: 10px; }
.batch-row { gap: 8px; }
.batch-row .num { width: 22px; text-align: center; flex-shrink: 0; }
.batch-row .grow input { height: 38px; font-size: 14px; }
.batch-row .moves { display: flex; gap: 10px; flex-shrink: 0; }
.batch-row .moves .link-btn { font-size: 17px; }
.batch-row .moves .link-btn:disabled { opacity: .3; }
.batch-row .grow { flex: 1; min-width: 0; }
.batch-row .grow input { width: 100%; }
dialog.sheet-dialog .actions button.brand { flex: 2; }
.actions [data-abandon] { font-size: 13px; }

/* 学习明细（老师端） */
.watch-list { list-style: none; margin: 6px 0 0; padding: 0; }
.watch-list li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.heat { display: flex; gap: 1px; height: 18px; margin-top: 4px; }
.heat > i { flex: 1; min-width: 1px; background: var(--brand); border-radius: 1px; }
