/* 教师工作台 · 课堂喊话：登录层 / 发送面板 / 教室接收层 */

/* ---------- 入口按钮 ---------- */
.wb-shout-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel);
  color: var(--wb-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.wb-shout-entry:hover { background: var(--wb-brand-soft); border-color: var(--wb-brand); color: var(--wb-brand); }
.wb-shout-entry:active { transform: scale(.97); }
.wb-shout-entry svg { width: 17px; height: 17px; }
.wb-shout-entry.is-live { background: var(--wb-brand); border-color: var(--wb-brand); color: #fff; }
.wb-shout-entry.is-live:hover { background: var(--wb-brand); color: #fff; filter: brightness(1.05); }
.wb-shout-entry.is-room { border-color: rgba(31, 157, 104, .45); }
.wb-shout-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wb-ok);
  box-shadow: 0 0 0 3px rgba(31, 157, 104, .16);
  cursor: pointer;
}
.wb-shout-dot[hidden] { display: none; }

/* ---------- 通用遮罩 ---------- */
.wb-shout-layer,
.wb-auth-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wb-shout-layer[hidden],
.wb-auth-layer[hidden] { display: none; }
.wb-shout-mask,
.wb-auth-mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 25, 23, .48);
  backdrop-filter: blur(3px);
}

/* ---------- 登录层 ---------- */
.wb-auth-card {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--wb-panel);
  border: 1px solid var(--wb-line);
  border-radius: 22px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 70px rgba(15, 22, 20, .28);
}
.wb-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--wb-panel-2);
  color: var(--wb-sub);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.wb-auth-close:hover { background: var(--wb-bg-soft); color: var(--wb-ink); }
.wb-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--wb-brand);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.wb-auth-brand svg { width: 18px; height: 18px; }
.wb-auth-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--wb-ink);
}
.wb-auth-sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--wb-sub);
}
.wb-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--wb-bg-soft);
  border-radius: 12px;
  margin-bottom: 16px;
}
.wb-auth-tab {
  height: 36px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--wb-ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.wb-auth-tab.is-active {
  background: var(--wb-panel);
  color: var(--wb-ink);
  box-shadow: var(--wb-shadow-sm);
}
/* 账号互通提示 */
.wb-auth-same {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--wb-brand-soft);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--wb-ink-2);
}
.wb-auth-same svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--wb-brand);
}
.wb-auth-same b {
  display: block;
  margin-bottom: 1px;
  font-weight: 600;
  color: var(--wb-ink);
}
.wb-auth-same a {
  color: var(--wb-brand);
  font-weight: 600;
  text-decoration: none;
}
.wb-auth-same a:hover { text-decoration: underline; }
.wb-auth-field { display: block; margin-bottom: 12px; }
.wb-auth-field > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wb-ink-2);
  margin-bottom: 6px;
}
.wb-auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  background: var(--wb-panel-2);
  color: var(--wb-ink);
  font-size: 15px;
  outline: none;
}
.wb-auth-field select {
  width: 100%;
  height: 44px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  background-color: var(--wb-panel-2);
  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.5l5-5' fill='none' stroke='%236b7a74' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  color: var(--wb-ink);
  font-size: 15px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.wb-auth-field input:focus, .wb-auth-field select:focus { border-color: var(--wb-brand); background-color: var(--wb-panel); }
.wb-auth-link {
  border: none;
  background: none;
  color: var(--wb-brand);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.wb-auth-msg {
  min-height: 20px;
  margin: 4px 0 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--wb-danger);
}
.wb-auth-msg.is-ok { color: var(--wb-ok); }
.wb-auth-submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 13px;
  background: var(--wb-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.wb-auth-submit:disabled { opacity: .6; cursor: default; }
.wb-auth-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--wb-sub);
}

/* 全屏教室层之上也要能弹出确认框 */
body .wb-modal-overlay { z-index: 200; }

/* ---------- 邀请码二维码 ---------- */
.wb-invite-card { text-align: center; }
.wb-invite-card h2 { margin-bottom: 16px; }
.wb-invite-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  border-radius: 14px;
  border: 1px solid var(--wb-line);
  background: #fff;
  object-fit: contain;
}
.wb-invite-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--wb-ink-2);
}
.wb-invite-text b { color: var(--wb-brand); }
.wb-invite-soft {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--wb-sub);
}

/* ---------- 喊话面板 ---------- */
.wb-shout-sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--wb-panel);
  border: 1px solid var(--wb-line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 22, 20, .28);
  overflow: hidden;
}
.wb-shout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 12px;
}
.wb-shout-kicker {
  margin: 0 0 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--wb-brand);
}
.wb-shout-head h2 { margin: 0; font-size: 20px; color: var(--wb-ink); }
.wb-shout-head-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--wb-sub); }
.wb-shout-head-actions { display: flex; align-items: center; gap: 6px; }
.wb-shout-icon-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel-2);
  color: var(--wb-ink-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.wb-shout-icon-btn:hover { border-color: var(--wb-brand); color: var(--wb-brand); }
.wb-shout-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: var(--wb-panel-2);
  color: var(--wb-sub);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.wb-shout-close:hover { background: var(--wb-bg-soft); color: var(--wb-ink); }

.wb-shout-classbar {
  display: flex;
  gap: 8px;
  padding: 0 22px 12px;
  overflow-x: auto;
}
.wb-shout-chip {
  flex: none;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel-2);
  color: var(--wb-ink-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.wb-shout-chip.is-active { background: var(--wb-brand); border-color: var(--wb-brand); color: #fff; }

.wb-shout-tabs {
  display: flex;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--wb-line);
}
.wb-shout-tab {
  position: relative;
  height: 40px;
  border: none;
  background: none;
  color: var(--wb-sub);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.wb-shout-tab.is-active { color: var(--wb-ink); }
.wb-shout-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--wb-brand);
}

.wb-shout-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.wb-shout-pane[hidden] { display: none; }

/* 设备状态 */
.wb-shout-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--wb-panel-2);
  border: 1px solid var(--wb-line);
  font-size: 12.5px;
  color: var(--wb-ink-2);
  line-height: 1.55;
}
.wb-shout-status i {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wb-sub);
}
.wb-shout-status.is-online i { background: var(--wb-ok); box-shadow: 0 0 0 4px rgba(31, 157, 104, .14); }
.wb-shout-status.is-offline i { background: var(--wb-warn); box-shadow: 0 0 0 4px rgba(217, 131, 36, .14); }
.wb-shout-status.is-none { background: rgba(217, 131, 36, .08); border-color: rgba(217, 131, 36, .3); color: var(--wb-warn); }
.wb-shout-status.is-none i { background: var(--wb-warn); }
.wb-shout-status b { color: inherit; }
.wb-shout-guide {
  margin-top: 12px;
  padding: 14px 15px;
  border-radius: 13px;
  border: 1px dashed rgba(217, 131, 36, .5);
  background: rgba(217, 131, 36, .06);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--wb-ink-2);
}
.wb-shout-guide h4 { margin: 0 0 6px; font-size: 13.5px; color: var(--wb-warn); }
.wb-shout-guide ol { margin: 0; padding-left: 18px; }
.wb-shout-guide li { margin: 2px 0; }
.wb-shout-guide-actions { margin-top: 10px; display: flex; gap: 8px; }

/* 发送表单 */
.wb-shout-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wb-ink-2);
}
.wb-shout-label span { font-weight: 400; color: var(--wb-sub); }
.wb-shout-stu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wb-shout-stu input {
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--wb-line);
  border-radius: 11px;
  background: var(--wb-panel-2);
  color: var(--wb-ink);
  font-size: 14px;
  outline: none;
}
.wb-shout-stu input:focus { border-color: var(--wb-brand); background: var(--wb-panel); }
.wb-shout-stu-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 2px;
}
.wb-shout-stu-chips button {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel-2);
  color: var(--wb-ink-2);
  font-size: 12px;
  cursor: pointer;
}
.wb-shout-stu-chips button.is-active { background: var(--wb-brand-soft); border-color: var(--wb-brand); color: var(--wb-brand); }
.wb-shout-textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  background: var(--wb-panel-2);
  color: var(--wb-ink);
  font-size: 14.5px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}
.wb-shout-textarea:focus { border-color: var(--wb-brand); background: var(--wb-panel); }
.wb-shout-sendrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.wb-shout-speak {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--wb-ink-2);
  cursor: pointer;
  user-select: none;
}
.wb-shout-speak input { width: 16px; height: 16px; accent-color: var(--wb-brand); }
.wb-shout-send {
  height: 44px;
  padding: 0 26px;
  border: none;
  border-radius: 12px;
  background: var(--wb-brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.wb-shout-send:disabled { opacity: .55; cursor: default; }
.wb-shout-send:active:not(:disabled) { transform: scale(.98); }

/* 发送记录 */
.wb-shout-log { margin-top: 18px; }
.wb-shout-log h4 {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--wb-sub);
  font-weight: 600;
}
.wb-shout-log-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--wb-panel-2);
  border: 1px solid var(--wb-line);
  margin-bottom: 7px;
  font-size: 12.5px;
  color: var(--wb-ink-2);
}
.wb-shout-log-item p {
  flex: 1;
  margin: 0;
  color: var(--wb-ink);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.wb-shout-log-item b { font-weight: 600; }
.wb-shout-log-state {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--wb-bg-soft);
  color: var(--wb-sub);
}
.wb-shout-log-state.is-ok { background: rgba(31, 157, 104, .12); color: var(--wb-ok); }
.wb-shout-log-state.is-warn { background: rgba(217, 131, 36, .14); color: var(--wb-warn); }

/* 空班级 */
.wb-shout-empty { padding: 8px 0 2px; }
.wb-shout-empty h3 { margin: 0 0 6px; font-size: 16px; color: var(--wb-ink); }
.wb-shout-empty p { margin: 0 0 16px; font-size: 12.5px; line-height: 1.7; color: var(--wb-sub); }
.wb-shout-inline {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.wb-shout-inline input {
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--wb-line);
  border-radius: 11px;
  background: var(--wb-panel-2);
  color: var(--wb-ink);
  font-size: 14px;
  outline: none;
}
.wb-shout-inline input:focus { border-color: var(--wb-brand); background: var(--wb-panel); }
.wb-shout-inline .wb-btn { flex: none; }

/* 班级设置 */
.wb-shout-card {
  border: 1px solid var(--wb-line);
  border-radius: 14px;
  padding: 14px 15px;
  margin-bottom: 12px;
  background: var(--wb-panel-2);
}
.wb-shout-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.wb-shout-card-head h4 { margin: 0; font-size: 13.5px; color: var(--wb-ink); }
.wb-shout-card p { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--wb-sub); }
.wb-shout-code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
}
.wb-shout-code b {
  font-size: 24px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--wb-ink);
  font-variant-numeric: tabular-nums;
}
.wb-shout-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--wb-line);
  font-size: 12.5px;
  color: var(--wb-ink-2);
}
.wb-shout-member:first-of-type { border-top: none; }
.wb-shout-member span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-shout-member i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--wb-brand);
  background: var(--wb-brand-soft);
  padding: 2px 7px;
  border-radius: 999px;
}
.wb-shout-member button {
  border: none;
  background: none;
  color: var(--wb-danger);
  font-size: 12px;
  cursor: pointer;
}
.wb-shout-hint { margin-top: 8px; font-size: 11.5px; color: var(--wb-sub); line-height: 1.6; }

/* ---------- 教室选择 / 登记弹窗 ---------- */
.wb-shout-rooms { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-shout-log-item .wb-shout-log-room {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--wb-brand);
}
.wb-shout-dialog-layer { z-index: 110; }
.wb-shout-dialog { width: min(460px, 100%); }
.wb-shout-dialog h2 { margin: 0 0 6px; }
.wb-room-code-big {
  margin: 6px 0 2px;
  text-align: center;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--wb-brand);
  font-variant-numeric: tabular-nums;
}
.wb-room-info {
  margin: 4px 0 16px;
  border: 1px solid var(--wb-line);
  border-radius: 14px;
  overflow: hidden;
}
.wb-room-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  border-top: 1px solid var(--wb-line);
}
.wb-room-info-row:first-child { border-top: none; }
.wb-room-info-row span { flex: none; color: var(--wb-sub); }
.wb-room-info-row b { font-weight: 600; color: var(--wb-ink); text-align: right; word-break: break-all; }
.wb-room-info-row b.is-ok { color: var(--wb-ok); }
.wb-room-info-row b.is-warn { color: var(--wb-warn); }
.wb-room-info-code { letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.wb-room-select {
  max-width: 64%;
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--wb-line);
  border-radius: 9px;
  background-color: var(--wb-panel-2);
  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.5l5-5' fill='none' stroke='%236b7a74' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  color: var(--wb-ink);
  font-size: 12.5px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.wb-room-alert-hint {
  margin: -6px 0 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--wb-sub);
}
.wb-room-info-actions { display: flex; gap: 8px; margin-bottom: 12px; }

/* 班级设置里的教室列表 */
.wb-shout-room-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--wb-line);
}
.wb-shout-room-row:first-of-type { border-top: none; }
.wb-shout-room-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wb-sub);
}
.wb-shout-room-dot.is-online { background: var(--wb-ok); box-shadow: 0 0 0 3px rgba(31, 157, 104, .14); }
.wb-shout-room-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wb-shout-room-main b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wb-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-shout-room-main span { font-size: 11.5px; color: var(--wb-sub); }
.wb-shout-room-row em { flex: none; font-style: normal; font-size: 11.5px; color: var(--wb-sub); }
.wb-shout-room-act {
  flex: none;
  height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel-2);
  color: var(--wb-ink-2);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.wb-shout-room-act:hover { border-color: var(--wb-brand); color: var(--wb-brand); }
.wb-shout-room-act.is-danger:hover { border-color: var(--wb-danger); color: var(--wb-danger); }

/* 收到喊话的弹框 */
.wb-room-alert {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 14, 12, .74);
  backdrop-filter: blur(4px);
  animation: wb-room-fade .2s ease-out;
}
.wb-room-alert[hidden] { display: none; }
@keyframes wb-room-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wb-room-alert-card {
  width: min(760px, 100%);
  padding: clamp(26px, 4vw, 48px);
  border-radius: 28px;
  background: linear-gradient(160deg, #245244 0%, #173028 100%);
  border: 1px solid rgba(111, 223, 168, .35);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  text-align: left;
  animation: wb-room-in .3s cubic-bezier(.2, .8, .3, 1);
}
.wb-room-alert-kicker {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: #9db3a7;
}
.wb-room-alert-stu {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(111, 223, 168, .16);
  color: #9fe9c3;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 600;
}
.wb-room-alert-text {
  margin: 0 0 26px;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.45;
  font-weight: 500;
  color: #fdfbf3;
  word-break: break-word;
}
.wb-room-alert-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.wb-room-alert-btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid rgba(243, 240, 228, .24);
  background: transparent;
  color: #cfdcd3;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.wb-room-alert-btn:hover { background: rgba(243, 240, 228, .1); }
.wb-room-alert-btn.is-primary {
  border: none;
  background: #6fdfa8;
  color: #10241c;
}
.wb-room-alert-btn.is-primary:hover { filter: brightness(1.06); }

/* 上课时的右下角小窗提醒（不朗读） */
.wb-room-mini {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: min(340px, calc(100vw - 32px));
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--wb-panel);
  border: 1px solid var(--wb-line);
  border-left: 4px solid var(--wb-brand);
  box-shadow: 0 18px 50px rgba(15, 22, 20, .26);
  animation: wb-room-mini-in .24s cubic-bezier(.2, .8, .3, 1);
}
.wb-room-mini[hidden] { display: none; }
@keyframes wb-room-mini-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.wb-room-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.wb-room-mini-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--wb-brand);
}
.wb-room-mini-close {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 7px;
  background: var(--wb-panel-2);
  color: var(--wb-sub);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.wb-room-mini-close:hover { background: var(--wb-bg-soft); color: var(--wb-ink); }
.wb-room-mini-stu {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--wb-brand-soft);
  color: var(--wb-brand);
  font-size: 12px;
  font-weight: 600;
}
.wb-room-mini-text {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--wb-ink);
  word-break: break-word;
  max-height: 4.8em;
  overflow-y: auto;
}
.wb-room-mini-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wb-room-mini-count { font-size: 11.5px; color: var(--wb-sub); }
.wb-room-mini-ok {
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: var(--wb-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.wb-room-mini-ok:hover { filter: brightness(1.05); }

@media (max-width: 720px) {
  .wb-room-mini {
    right: 12px;
    left: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: auto;
  }
}

@media (max-width: 720px) {
  .wb-shout-entry { padding: 0 11px; height: 36px; }
  .wb-shout-entry span { display: none; }
  .wb-shout-layer, .wb-auth-layer { padding: 0; align-items: flex-end; }
  .wb-auth-card, .wb-shout-sheet {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .wb-auth-card { padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
  .wb-shout-head { padding: 18px 18px 10px; }
  .wb-shout-classbar, .wb-shout-tabs { padding-left: 18px; padding-right: 18px; }
  .wb-shout-body { padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- 账号入口 / 账号弹窗 ---------- */
.wb-user-entry span {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-user-entry.is-account {
  border-color: rgba(31, 157, 104, .45);
  color: var(--wb-brand);
}
@media (max-width: 720px) {
  .wb-user-entry span { display: inline; max-width: 76px; }
}

.wb-account-who {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  margin: 0 0 18px;
  border-radius: 14px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel-2);
}
.wb-account-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wb-brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.wb-account-mail {
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--wb-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-account-pwd h3 {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--wb-sub);
}
.wb-account-logout {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(201, 74, 74, .36);
  background: transparent;
  color: var(--wb-danger);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.wb-account-logout:hover { background: rgba(201, 74, 74, .08); }
