/* 布局、组件 —— PC Arco，无底栏、无 480 窄壳 */

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.view {
  flex: 1;
  min-height: 0;
}

.view.view-shell {
  width: var(--content-width);
  max-width: calc(100% - 64px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.view.view-full {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ── 通用 ── */
.pc-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger,
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  border: 0;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.btn-primary:active:not(:disabled) {
  background: var(--color-accent-active);
}

.btn-primary:disabled,
.btn-primary.is-disabled {
  background: #94bfff;
  color: #fff;
  cursor: not-allowed;
}

.btn-lg {
  height: 40px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 500;
}

.btn-secondary,
.btn-pill {
  background: var(--color-fill);
  color: var(--color-secondary);
}

.btn-secondary:hover:not(:disabled),
.btn-pill:hover:not(:disabled) {
  background: var(--color-fill-hover);
  color: var(--color-text);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
}

.btn-danger {
  background: #fff;
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--color-red-bg);
}

.btn-danger.solid {
  background: var(--color-danger);
  color: #fff;
  border: 0;
}

.btn-danger.solid:hover:not(:disabled) {
  background: var(--color-danger-hover);
}

.hint {
  font-size: 13px;
  color: var(--color-sub);
  line-height: 1.5;
}

.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--color-sub);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  white-space: nowrap;
  background: var(--color-fill);
  color: var(--color-secondary);
}

.tag-accent {
  background: var(--color-blue-bg);
  color: var(--color-accent);
}

.tag-success {
  background: var(--color-green-bg);
  color: var(--color-success);
}

.tag-danger {
  background: var(--color-red-bg);
  color: var(--color-danger);
}

.tag-warn {
  background: var(--color-orange-bg);
  color: var(--color-warn);
}

.tag-muted {
  background: var(--color-fill);
  color: var(--color-sub);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-house,
.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-dot {
  color: var(--color-border);
  font-weight: 400;
}

.brand-side {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-sub);
}

.avatar {
  border-radius: 50%;
  background: var(--color-blue-bg);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-weight: 600;
  flex: none;
}

.field-error,
.err {
  color: var(--color-danger);
  font-size: 13px;
  min-height: 1.2em;
}

input[type='text'],
input[type='password'],
input[type='number'],
input[type='search'],
select,
textarea {
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 0 12px;
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  background: #fff;
}

textarea {
  height: auto;
  min-height: 72px;
  padding: 8px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.15);
}

table.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.pc-table thead tr {
  background: var(--color-fill);
}

table.pc-table th {
  text-align: left;
  padding: 0 16px;
  height: 44px;
  font-weight: 500;
}

table.pc-table td {
  padding: 0 16px;
  height: 52px;
  border-bottom: 1px solid var(--color-border);
}

table.pc-table tbody tr:hover {
  background: #f7f8fa;
}

/* ── 顶栏（学员） ── */
.pc-header {
  height: var(--header-h);
  flex: none;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.pc-header.hidden {
  display: none;
}

.pc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}

.brand-logo {
  height: 28px;
  width: auto;
  flex: none;
  display: block;
}

.pc-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-pill {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 400;
}

.nav-pill:hover {
  color: var(--color-accent);
}

.nav-pill.active {
  background: var(--color-blue-bg);
  color: var(--color-accent);
  font-weight: 500;
}

.pc-header-spacer {
  flex: 1;
}

.pc-class-line {
  font-size: 13px;
  color: var(--color-sub);
}

.user-wrap {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 4px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
}

.user-btn:hover,
.user-btn.open {
  background: var(--color-fill);
}

.user-btn .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.user-menu {
  position: absolute;
  right: 0;
  top: 48px;
  width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  padding: 8px;
  z-index: 30;
  animation: fadeIn 0.15s ease;
}

.user-menu-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 6px;
}

.user-menu-head .name {
  font-size: 14px;
  font-weight: 500;
}

.user-menu a,
.user-menu button.menu-item {
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--color-text);
  background: transparent;
  text-align: left;
}

.user-menu a:hover,
.user-menu button.menu-item:hover {
  background: var(--color-fill);
}

.user-menu .menu-danger {
  color: var(--color-danger);
}

.user-menu .menu-danger:hover {
  background: var(--color-red-bg);
  color: var(--color-danger);
}

.menu-sep {
  height: 1px;
  background: var(--color-border);
  margin: 6px 0;
}

/* ── 登录分栏 ── */
.login-split {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
  background: #fff;
}

.login-hero {
  position: relative;
  background: linear-gradient(160deg, #0e42d2 0%, #165dff 55%, #4080ff 100%);
  color: #fff;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.login-orb.a {
  right: -120px;
  bottom: -140px;
  width: 520px;
  height: 520px;
}

.login-orb.b {
  right: 120px;
  top: -160px;
  width: 380px;
  height: 380px;
  background: rgba(255, 255, 255, 0.05);
}

.login-hero-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  position: relative;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.login-hero-brand .brand-logo {
  height: 36px;
  filter: brightness(0) invert(1);
}

.login-hero-brand .brand-house,
.login-hero-brand .brand-name {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: #fff;
}

.login-hero-brand .brand-dot {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0;
}

.login-hero-copy {
  margin-top: auto;
  position: relative;
}

.login-hero-copy h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
}

.login-hero-copy p {
  margin: 16px 0 0;
  font-size: 15px;
  opacity: 0.8;
  max-width: 460px;
  line-height: 1.7;
}

.login-hero-stats {
  margin-top: 36px;
  display: flex;
  gap: 32px;
}

.login-hero-stats .n {
  font-size: 26px;
  font-weight: 600;
}

.login-hero-stats .l {
  font-size: 12px;
  opacity: 0.75;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 64px;
}

.login-panel h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.login-panel .sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-sub);
}

.login-panel form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-panel label.lab {
  display: block;
  font-size: 14px;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

.login-panel input {
  height: 36px;
}

.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-secondary);
}

.check {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.check .box {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid #c9cdd4;
  display: grid;
  place-items: center;
  flex: none;
}

.check.on .box {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ── 学员首页 ── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.unfinished {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-left: 3px solid var(--color-warn);
}

.unfinished .bang {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-orange-bg);
  color: var(--color-warn);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}

.choice-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.choice-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.choice {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 14px 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.choice.is-selected {
  border-color: var(--color-accent);
  background: var(--color-blue-bg);
}

.choice.is-disabled {
  color: #c9cdd4;
  cursor: not-allowed;
}

.choice .t {
  font-size: 15px;
  font-weight: 500;
}

.choice .d {
  font-size: 12px;
  color: var(--color-secondary);
  margin-top: 2px;
}

.choice.is-disabled .d {
  color: inherit;
}

.choice.is-selected .corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--color-accent) transparent transparent;
}

.choice.is-selected .tick {
  position: absolute;
  top: 3px;
  right: 3px;
}

.radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #c9cdd4;
  box-sizing: border-box;
  flex: none;
  margin-top: 2px;
}

.choice.is-selected .radio-dot {
  border: 4px solid var(--color-accent);
}

.level-pills {
  display: inline-flex;
  background: var(--color-fill);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin-top: 8px;
}

.level-pills button {
  height: 28px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--color-secondary);
  border-radius: var(--radius-pill);
}

.level-pills button.is-selected {
  background: #fff;
  color: var(--color-accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.step-lab {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary);
}

.hot-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.hot-row:last-child {
  border-bottom: 0;
}

.note-box {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-secondary);
  line-height: 1.7;
  background: #f7f8fa;
  border-radius: 10px;
  padding: 10px 12px;
}

.stat-row {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.stat-row .k {
  font-size: 12px;
  color: var(--color-sub);
}

.stat-row .v {
  font-size: 24px;
  font-weight: 600;
}

/* ── 同意页 ── */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--color-secondary);
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  background: var(--color-fill-hover);
}

.consent-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 16px;
  align-items: start;
}

.cam-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1d2129;
  border-radius: 4px;
  overflow: hidden;
}

.cam-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}

.face-oval {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 230px;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
}

.cam-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dev-cell {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 12px 14px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.check-sq {
  margin-top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: none;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #c9cdd4;
}

.check-row.on .check-sq {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* 面试形式分段选择：有追问 / 无追问 */
.mode-seg {
  display: flex;
  gap: 10px;
}

.mode-opt {
  flex: 1;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.mode-opt:hover {
  border-color: #94bfff;
}

.mode-opt.is-on {
  border-color: var(--color-accent);
  background: #f2f7ff;
}

.mode-opt-title {
  font-size: 14px;
  font-weight: 500;
  color: #1d2129;
}

.mode-opt.is-on .mode-opt-title {
  color: var(--color-accent);
}

.mode-opt-sub {
  font-size: 12px;
  line-height: 1.6;
  color: #86909c;
}

/* ── 面试 16:9 ── */
.iv-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  min-width: 1100px;
}

.iv-bar {
  height: 56px;
  flex: none;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.iv-title {
  font-size: 16px;
  font-weight: 600;
}

.iv-progress {
  width: 200px;
  height: 4px;
  border-radius: 10px;
  background: var(--color-border);
  overflow: hidden;
}

.iv-progress > i {
  display: block;
  height: 100%;
  background: var(--color-accent);
}

.iv-body {
  flex: 1;
  min-height: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.iv-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #1d2129;
  border-radius: 4px;
  overflow: hidden;
}

.dh-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1d2129;
}

/* 连线期占位：面试官静帧盖住黑屏，首帧到达后淡出 */
.dh-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  background: #1d2129;
  opacity: 1;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.dh-poster.is-hidden {
  opacity: 0;
}

.dh-connecting {
  position: absolute;
  z-index: 2;
  /* 落在舞台下半部：不压面试官的脸，也躲开最底部的字幕带 */
  top: auto;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  pointer-events: none;
}

.iv-stage .grad {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.7) 100%);
}

.iv-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 13px;
}

.iv-pip {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 240px;
  z-index: 4;
}

.iv-pip video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #272e3b;
  transform: scaleX(-1);
  display: block;
}

.iv-pip-status {
  margin-top: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.iv-caption {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  pointer-events: none;
}

.iv-caption .q {
  max-width: 820px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.iv-fail {
  position: absolute;
  inset: 0;
  background: rgba(29, 33, 41, 0.55);
  display: grid;
  place-items: center;
  z-index: 5;
}

.iv-fail-box,
.end-box,
.text-box {
  width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.15);
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.iv-dock {
  flex: none;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-danger);
  animation: blink 1s infinite;
}

.dh-wave {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  height: 12px;
}

.dh-wave i {
  width: 2px;
  height: 12px;
  background: #94bfff;
  transform-origin: center;
  animation: wave 0.8s ease-in-out infinite;
}

.dh-wave i:nth-child(2) {
  animation-delay: 0.15s;
}

.dh-wave i:nth-child(3) {
  animation-delay: 0.3s;
}

.dh-dots {
  display: inline-flex;
  gap: 3px;
}

.dh-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  animation: dot-blink 1.2s infinite;
}

.dh-dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.dh-dots i:nth-child(3) {
  animation-delay: 0.4s;
}

.dh-listen {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-block;
}

.dh-listen::before,
.dh-listen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-success);
}

.dh-listen::after {
  animation: breathe 1.6s ease-out infinite;
}

.ans-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--color-fill);
}

.ans-bars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  height: 18px;
}

.ans-bars i {
  width: 3px;
  height: 18px;
  background: var(--color-success);
  transform-origin: center;
  animation: wave 0.7s ease-in-out infinite;
}

.kbd {
  font-size: 11px;
  opacity: 0.7;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 0 5px;
}

.idle-chip {
  height: 36px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  color: var(--color-sub);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

.end-mask {
  position: fixed;
  inset: 0;
  background: rgba(29, 33, 41, 0.6);
  z-index: 100;
  display: grid;
  place-items: center;
}

/* ── 报告 / 历史 / 档案 / 题库 ── */
.report-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}

.score-num {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-accent);
}

.dim-bar {
  margin-top: 4px;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
  overflow: hidden;
}

.dim-bar > i {
  display: block;
  height: 100%;
  background: var(--color-accent);
  border-radius: 3px;
}

.turn-grid {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 56px 1fr 60px;
  gap: 12px;
}

.q-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}

.q-side {
  padding: 16px 8px;
  position: sticky;
  top: 84px;
}

.side-item {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  color: var(--color-secondary);
  width: 100%;
  text-align: left;
}

.side-item:hover {
  background: var(--color-fill);
}

.side-item.on {
  background: var(--color-fill);
  color: var(--color-accent);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.kv {
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 10px;
  font-size: 14px;
}

.kv .k {
  color: var(--color-sub);
}

/* ── 教师壳 ── */
.teacher-app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 1200px;
  overflow: hidden;
}

.teacher-header {
  height: 60px;
  flex: none;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}

.teacher-search {
  position: relative;
  width: 260px;
}

.teacher-search svg {
  position: absolute;
  left: 10px;
  top: 9px;
}

.teacher-search input {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: var(--color-fill);
  padding: 0 12px 0 30px;
  font-size: 13px;
  box-shadow: none;
}

.teacher-search input:focus {
  background: #fff;
  box-shadow: 0 0 0 1px var(--color-accent);
}

.teacher-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.teacher-side {
  width: var(--sidebar-w);
  flex: none;
  background: #fff;
  border-right: 1px solid var(--color-border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.side-group {
  font-size: 12px;
  color: var(--color-sub);
  padding: 10px 12px 4px;
}

.side-link {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-secondary);
  width: 100%;
  text-align: left;
  background: transparent;
}

.side-link:hover {
  background: var(--color-fill);
}

.side-link.on {
  background: var(--color-fill);
  color: var(--color-accent);
  font-weight: 500;
}

.side-link .badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--color-danger);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.side-foot {
  margin-top: auto;
  padding: 12px;
  font-size: 12px;
  color: var(--color-sub);
  line-height: 1.7;
}

.teacher-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 16px 20px 32px;
}

.crumb {
  font-size: 13px;
  color: var(--color-sub);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.work-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}

.work-hero .avatar {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.work-stats {
  display: flex;
  gap: 40px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar .grow {
  flex: 1;
}

.quota-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quota-bar .track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
  overflow: hidden;
  min-width: 80px;
}

.quota-bar .track > i {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.verdict-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  text-align: left;
  width: 100%;
}

.verdict-opt.on {
  border-color: var(--color-accent);
  background: var(--color-blue-bg);
}

.ring {
  margin-top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #c9cdd4;
  box-sizing: border-box;
  flex: none;
  display: grid;
  place-items: center;
}

.verdict-opt.on .ring {
  border-color: var(--color-accent);
}

.ring i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}

.verdict-opt.on .ring i {
  background: var(--color-accent);
}

.drawer-mask,
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(29, 33, 41, 0.6);
  z-index: 100;
  display: grid;
  place-items: center;
}

.modal-card {
  width: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.2s ease;
}

.modal-card.wide {
  width: 600px;
}

.modal-hd {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 16px;
  font-weight: 500;
}

.modal-bd {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-ft {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
}

.form-row .lab {
  font-size: 14px;
  color: var(--color-secondary);
  text-align: right;
}

.req {
  color: var(--color-danger);
  font-style: normal;
}

.drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 560px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.drawer-mask {
  display: block;
}

.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-secondary);
}

.pager .on {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #fff;
  margin-left: 8px;
}

/* ── toast / loading / 通用确认框 ── */
.toast-host {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.toast {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-toast);
  padding: 9px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.2s ease;
  color: var(--color-text);
}

.toast-ok {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-success);
  display: grid;
  place-items: center;
  flex: none;
}

/* 错误条常驻不自动消失，宿主是 pointer-events: none，这里必须收回点击 */
.toast-error {
  pointer-events: auto;
  padding-right: 8px;
}

.toast-icon-error {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-danger);
  display: grid;
  place-items: center;
  flex: none;
}

.toast-close {
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-sub);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}

.toast-close:hover {
  color: var(--color-text);
}

.loading-host {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 243, 245, 0.55);
}

.loading-host.hidden {
  display: none;
}

.loading-box {
  background: #fff;
  border-radius: 16px;
  padding: 18px 28px;
  font-size: 14px;
  color: var(--color-secondary);
  box-shadow: var(--shadow-card);
}

.modal-host {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 33, 41, 0.6);
  padding: 16px;
}

.modal-host.hidden {
  display: none;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.15);
}

.modal-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
}

.modal-content {
  font-size: 13px;
  color: var(--color-secondary);
  margin: 0 0 20px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mic-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-block;
}

.ok-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-block;
}

.dot-warn {
  background: var(--color-warn);
}

.dot-mute {
  background: #c9cdd4;
}

.dot-ok {
  background: var(--color-success);
}

.grow-svg {
  display: block;
  margin-top: 8px;
  width: 100%;
  height: 90px;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
}

.page-sub {
  font-size: 13px;
  color: var(--color-sub);
  margin-top: 2px;
}

.row-actions a + a::before,
.row-actions span.sep {
  color: var(--color-border);
  margin: 0 8px;
  content: '|';
}

.row-actions {
  white-space: nowrap;
  text-align: right;
}

.row-actions a {
  font-size: 13px;
}

.act-danger {
  color: var(--color-danger);
}

.mono {
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: 0.06em;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .home-grid,
  .consent-grid,
  .q-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .login-split {
    grid-template-columns: 1fr;
  }
  .login-hero {
    display: none;
  }
}
