:root {
  --bg: #0B0E14;
  --bg-soft: #131720;
  --card: #191D25;
  --card-hover: #20252F;
  --line: #2A313C;
  --text: #E6EDF3;
  --text-dim: #8B949E;
  --accent: #3C8AF1;
  --accent-2: #2E6FD0;
  --accent-soft: rgba(60,138,241,.16);
  --ok: #3FB950;
  --warn: #D29922;
  --danger: #F85149;
  --danger-soft: rgba(248,81,73,.14);
  --purple: #A471F8;
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
#app { height: 100%; position: relative; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:disabled { opacity: .55; cursor: not-allowed; }
input, select { font-family: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2A313C; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

.view { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* ============ 登录 ============ */
.login {
  align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(60,138,241,.18), transparent 60%),
    radial-gradient(700px 420px at 90% 110%, rgba(164,113,248,.12), transparent 60%);
  overflow-y: auto;
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.login-logo {
  width: 72px; height: 72px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  font-size: 26px; font-weight: 800; letter-spacing: 1px; color: #fff;
}
.login-title { text-align: center; font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.login-sub { text-align: center; font-size: 12.5px; color: var(--text-dim); margin-bottom: 22px; }

/* ============ 通用表单 ============ */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.field input[type="text"], .field input[type="password"], .field select {
  width: 100%; height: 44px; padding: 0 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 15px; outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field.compact { margin-bottom: 10px; }
.field.compact select { height: 36px; font-size: 13px; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; }

.btn-primary {
  width: 100%; height: 48px; margin-top: 6px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 16px; font-weight: 600;
  transition: filter .15s;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  height: 44px; padding: 0 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px; color: #C9D1D9;
  white-space: nowrap; transition: .15s;
}
.btn-ghost:hover { border-color: #3D4653; background: var(--card-hover); }
.btn-ghost.wide { width: 100%; margin-top: 8px; height: 42px; }
.btn-ghost.danger { color: var(--danger); border-color: rgba(248,81,73,.4); }

.btn-link { font-size: 12.5px; color: var(--accent); padding: 5px 8px; border-radius: 6px; }
.btn-link:hover { background: var(--accent-soft); }

.hint { min-height: 18px; margin-top: 10px; font-size: 12.5px; color: var(--warn); text-align: center; line-height: 1.5; }

/* ============ 顶栏 ============ */
.topbar {
  flex: none; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  gap: 12px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-center { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-dim); }
.brand-mini { font-size: 19px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(120deg, #58A6FF, #A471F8);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.user-name { font-size: 13.5px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-badge {
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: var(--bg-soft); color: var(--text-dim); border: 1px solid var(--line);
}
.role-badge.owner { background: var(--purple); color: #fff; border-color: transparent; }
.role-badge.admin { background: var(--accent); color: #fff; border-color: transparent; }

.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 0 0 rgba(248,81,73,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(248,81,73,.6); }
  70% { box-shadow: 0 0 0 8px rgba(248,81,73,0); }
  100% { box-shadow: 0 0 0 0 rgba(248,81,73,0); }
}
.room-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.net-badge { padding: 3px 9px; border-radius: 20px; background: rgba(63,185,80,.14); color: var(--ok); font-size: 11px; }
.net-badge.warn { background: rgba(210,153,34,.14); color: var(--warn); }
.net-badge.bad { background: var(--danger-soft); color: var(--danger); }
.timer { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

/* ============ 大厅 ============ */
.lobby-main {
  flex: 1; overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(320px, 400px);
  grid-template-rows: auto auto;
  gap: 32px 40px;
  padding: 40px 40px 60px;
  max-width: 1200px; margin: 0 auto; width: 100%;
  align-content: start;
}
.lobby-hero h1 { font-size: 38px; line-height: 1.25; font-weight: 700; letter-spacing: -.5px; margin-bottom: 16px; }
.lobby-hero p { color: var(--text-dim); font-size: 14.5px; line-height: 1.75; max-width: 480px; }
.join-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.rooms-wrap { grid-column: 1 / -1; }
.rooms-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.room-list { display: flex; flex-direction: column; gap: 8px; }
.room-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
  cursor: pointer; transition: .15s;
}
.room-row:hover { border-color: var(--accent); background: var(--card-hover); }
.room-row .rid { font-family: ui-monospace, Menlo, monospace; font-size: 16px; font-weight: 600; }
.room-row .rtitle { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.room-row .rgo { font-size: 13px; color: var(--accent); white-space: nowrap; }
.room-row .rgo.locked { color: var(--warn); }
.empty-note { font-size: 13px; color: var(--text-dim); padding: 14px 2px; }

/* ============ 会议室 ============ */
.meeting { background: #080A0F; }
.stage { flex: 1; display: flex; min-height: 0; }
.grid {
  flex: 1; display: grid; gap: 10px; padding: 12px;
  align-content: center; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: minmax(150px, 1fr);
  overflow-y: auto; min-height: 0;
}
.tile {
  position: relative; border-radius: 12px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  min-height: 140px; transition: border-color .2s;
}
.tile.speaking { border-color: var(--ok); box-shadow: 0 0 0 2px rgba(63,185,80,.3); }
.tile-video { position: absolute; inset: 0; }
.tile-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.local .tile-video video { transform: scaleX(-1); }
.tile.screen .tile-video video { transform: none; object-fit: contain; }
.tile-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12px; z-index: 1; }
.avatar {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--purple));
}
.tile-info {
  position: absolute; left: 8px; bottom: 8px; right: 8px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #fff;
  background: rgba(0,0,0,.55); border-radius: 8px;
  padding: 4px 9px; backdrop-filter: blur(8px);
  width: fit-content; max-width: calc(100% - 16px);
}
.tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-mute { flex: none; }
.tile-quality { flex: none; font-size: 10px; color: var(--warn); }

.controls {
  flex: none; height: 84px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--bg-soft); border-top: 1px solid var(--line);
  padding: 0 16px;
}
.ctrl {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 58px; padding: 6px 4px; border-radius: 12px;
  transition: .15s;
}
.ctrl:hover { background: var(--card); }
.ctrl-icon { font-size: 21px; line-height: 1; }
.ctrl-text { font-size: 10.5px; color: var(--text-dim); }
.ctrl.on .ctrl-text { color: var(--text); }
.ctrl.off .ctrl-icon { opacity: .45; }
.ctrl.off .ctrl-text { color: var(--danger); }
.ctrl.active { background: var(--accent-soft); }
.ctrl.active .ctrl-text { color: var(--accent); }
.ctrl.danger .ctrl-icon { filter: grayscale(.1); }
.ctrl.danger:hover { background: var(--danger-soft); }

/* ============ 侧栏 ============ */
.panel {
  width: 340px; flex: none; display: flex; flex-direction: column;
  border-left: 1px solid var(--line); background: var(--bg);
  transition: margin-right .2s;
}
.panel.collapsed { margin-right: -340px; }
.panel-tabs { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0 8px; height: 46px; flex: none; }
.tab { padding: 6px 12px; font-size: 13px; color: var(--text-dim); border-radius: 8px; position: relative; }
.tab.active { color: var(--text); background: var(--card); }
.tab-close { margin-left: auto; font-size: 14px; color: var(--text-dim); padding: 6px 10px; }
.unread {
  position: absolute; top: 0; right: 0;
  background: var(--danger); color: #fff; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 8px;
}
.panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pane { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px; }
.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-item { font-size: 13px; line-height: 1.55; }
.chat-item.system { color: var(--text-dim); font-size: 12px; text-align: center; }
.chat-who { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.who { font-size: 11.5px; color: var(--accent); font-weight: 600; }
.chat-who time { font-size: 10px; color: #5A6270; }
.chat-text { color: var(--text); word-break: break-word; }
.chat-input-row { display: flex; gap: 8px; margin-top: 10px; }
.chat-input-row input {
  flex: 1; height: 38px; padding: 0 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 19px; color: var(--text); font-size: 14px; outline: none;
}
.btn-send { padding: 0 16px; border-radius: 19px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }

.member-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.member-row:hover { background: var(--card); }
.member-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--purple));
}
.member-name { flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-tag { font-size: 11px; color: var(--text-dim); }
.member-hand { font-size: 12px; }
.member-kick {
  font-size: 11px; color: var(--danger); padding: 3px 8px; border-radius: 6px;
  border: 1px solid rgba(248,81,73,.35);
}
.panel-actions { padding-top: 10px; border-top: 1px solid var(--line); margin-top: 8px; display: flex; flex-direction: column; }

/* ============ 管理后台 ============ */
.admin { background: var(--bg); }
.admin-title { font-size: 17px; font-weight: 700; }
.admin-tabs {
  flex: none; display: flex; gap: 6px; padding: 10px 16px;
  border-bottom: 1px solid var(--line); overflow-x: auto;
}
.atab { padding: 7px 14px; font-size: 13px; color: var(--text-dim); border-radius: 8px; white-space: nowrap; }
.atab.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.admin-body { flex: 1; overflow-y: auto; padding: 18px 16px 40px; }
.apane { max-width: 1080px; margin: 0 auto; }
.section-title { font-size: 12.5px; color: var(--text-dim); font-weight: 600; margin: 22px 0 10px; letter-spacing: .3px; }
.section-title:first-child { margin-top: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.stat-value { font-size: 24px; font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.stat-label { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }

.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.toolbar input {
  flex: 1; height: 40px; padding: 0 12px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px; outline: none;
}
.toolbar .btn-ghost { height: 40px; }

.online-detail { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.online-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.online-group h4 { font-size: 12.5px; color: var(--text-dim); font-weight: 600; margin-bottom: 8px; }
.online-user {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  border-top: 1px solid rgba(42,49,60,.6); font-size: 13px;
}
.online-user:first-of-type { border-top: none; }
.online-user .ou-name { flex: 1; }
.online-user .ou-id { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--text-dim); }
.online-user button {
  font-size: 11.5px; padding: 4px 10px; border-radius: 6px;
  background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(248,81,73,.3);
}

.user-list, .audit-list { display: flex; flex-direction: column; gap: 8px; }
.user-row, .audit-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px;
}
.user-row .u-main { flex: 1; min-width: 0; }
.user-row .u-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.user-row .u-id { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.user-row .u-meta { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; }
.user-row .u-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.user-row .u-actions button {
  font-size: 11.5px; padding: 5px 10px; border-radius: 6px;
  background: var(--bg-soft); border: 1px solid var(--line); color: #C9D1D9;
}
.user-row .u-actions button.danger { color: var(--danger); border-color: rgba(248,81,73,.3); }
.audit-row { font-size: 12.5px; }
.audit-row .a-time { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.audit-row .a-action { color: var(--accent); font-weight: 600; min-width: 110px; }
.audit-row .a-detail { flex: 1; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.system-info { display: flex; flex-direction: column; gap: 8px; }
.sys-row {
  display: flex; justify-content: space-between; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px;
}
.sys-row span:first-child { color: var(--text-dim); }
.sys-row span:last-child { font-family: ui-monospace, Menlo, monospace; font-size: 12px; text-align: right; word-break: break-all; }

/* ============ Toast / Modal ============ */
.toast-wrap {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 999; pointer-events: none;
}
.toast {
  background: rgba(0,0,0,.88); color: #fff; font-size: 13px;
  padding: 10px 18px; border-radius: 12px; max-width: 80vw;
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08);
  animation: toastIn .2s ease-out;
}
.toast.error { background: rgba(248,81,73,.94); }
.toast.ok { background: rgba(63,185,80,.94); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-wrap {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  width: 100%; max-width: 420px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.modal h3 { font-size: 17px; margin-bottom: 10px; }
.modal p { font-size: 13px; color: var(--text-dim); line-height: 1.7; white-space: pre-wrap; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-actions button { padding: 9px 18px; border-radius: 9px; font-size: 14px; }
.modal-actions .cancel { background: var(--bg-soft); border: 1px solid var(--line); color: #C9D1D9; }
.modal-actions .confirm { background: var(--accent); color: #fff; font-weight: 600; }
.modal-actions .confirm.danger { background: var(--danger); }

.resume-audio {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center;
}
.resume-audio button {
  background: var(--accent); color: #fff; padding: 14px 24px;
  border-radius: 12px; font-size: 15px; font-weight: 600;
}

/* ============ 移动端 ============ */
@media (max-width: 860px) {
  .lobby-main { grid-template-columns: 1fr; padding: 22px 18px 50px; gap: 22px; }
  .lobby-hero h1 { font-size: 26px; }
  .join-card { order: 2; }
  .rooms-wrap { order: 3; }
  .topbar-center .net-badge { display: none; }
  .user-name { max-width: 80px; }
  .panel { position: absolute; right: 0; top: 56px; bottom: 84px; width: min(86vw, 340px); z-index: 20;
           box-shadow: -20px 0 40px rgba(0,0,0,.5); }
  .panel.collapsed { margin-right: 0; transform: translateX(100%); }
  .controls { height: 74px; gap: 4px; padding: 0 6px; overflow-x: auto; justify-content: flex-start; }
  .ctrl { min-width: 50px; }
  .ctrl-text { font-size: 9.5px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); grid-auto-rows: minmax(120px,1fr); }
  .user-row { flex-wrap: wrap; }
  .user-row .u-actions { width: 100%; }
  .audit-row .a-detail { white-space: normal; }
}

/* 登录页：单输入框 */
.code-field { margin-bottom: 14px; }
.code-field input {
  width: 100%; height: 56px; padding: 0 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 20px;
  letter-spacing: 6px;
  text-align: center;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.code-field input::placeholder { letter-spacing: 1px; font-size: 15px; color: #5A6270; }
.code-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.link-subtle {
  display: block; width: 100%; margin-top: 14px;
  font-size: 12px; color: #5A6270; text-align: center;
  padding: 6px;
}
.link-subtle:hover { color: var(--text-dim); }
.advanced-box { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }


/* ===== 屏幕共享：共享内容占主画面，摄像头缩成小窗 ===== */
.grid.sharing {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  padding: 12px;
}
.grid.sharing .tile.screen {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  background: #000;
}
/* 共享时其它瓦片变成右下角小窗 */
.grid.sharing .tile:not(.screen) {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 180px;
  height: 120px;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
  border-color: rgba(255,255,255,.18);
  cursor: pointer;
}
.grid.sharing .tile:not(.screen) .tile-info { font-size: 10px; padding: 2px 6px; left: 4px; bottom: 4px; right: 4px; }
.grid.sharing .tile:not(.screen) .avatar { width: 30px; height: 30px; font-size: 13px; }
/* 多个小窗堆叠 */
.grid.sharing .tile:not(.screen):nth-of-type(2) { bottom: 20px; right: 20px; }
.grid.sharing .tile:not(.screen):nth-of-type(3) { bottom: 150px; right: 20px; }
.grid.sharing .tile:not(.screen):nth-of-type(4) { bottom: 280px; right: 20px; }
.grid.sharing .tile:not(.screen):nth-of-type(5) { bottom: 410px; right: 20px; }

/* 共享瓦片上的标签更明显 */
.tile.screen .tile-info {
  background: rgba(60,138,241,.85);
  font-weight: 600;
}
.tile.screen .tile-video video { object-fit: contain; background: #000; }

/* 共享按钮激活态更醒目 */
.ctrl.active .ctrl-icon { filter: none; }
#btn-screen.active { background: var(--accent-soft); }
#btn-screen.active .ctrl-text { color: var(--accent); }
#btn-screen.active .ctrl-icon { animation: screenPulse 2s infinite; }
@keyframes screenPulse {
  0%,100% { opacity: 1; }
  50% { opacity: .55; }
}


/* 游客徽章 */
.role-badge.guest { background: var(--bg-soft); color: var(--text-dim); border-color: var(--line); }

/* 待审核 */
.wait-head {
  font-size: 11.5px; color: var(--warn); font-weight: 600;
  padding: 8px 4px 4px; letter-spacing: .3px;
}
.wait-row { background: rgba(210,153,34,.08); border: 1px solid rgba(210,153,34,.25); }
.wait-time { font-size: 10.5px; color: var(--warn); margin-left: 6px; }
.btn-approve {
  font-size: 11.5px; padding: 4px 10px; border-radius: 6px;
  background: rgba(63,185,80,.16); color: var(--ok);
  border: 1px solid rgba(63,185,80,.35);
}
.btn-reject {
  font-size: 11.5px; padding: 4px 10px; border-radius: 6px;
  background: var(--danger-soft); color: var(--danger);
  border: 1px solid rgba(248,81,73,.3);
  margin-left: 4px;
}
/* 入会时长 */
.member-duration {
  font-size: 10.5px; color: var(--text-dim);
  margin-left: 6px; font-family: ui-monospace, Menlo, monospace;
}
