:root {
  --bg: #0a0b0d;
  --panel: #101216;
  --panel-2: #15181e;
  --line: #23272f;
  --line-soft: #1a1e25;
  --text: #e9ecf1;
  --muted: #8a93a3;
  --dim: #5d6572;
  --amber: #ffb020;
  --amber-dim: #3a2c10;
  --red: #ff3b30;
  --green: #22c55e;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, #16191f 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; color: inherit; text-align: left; }
.hidden { display: none !important; }

/* ---------------- Lobby ---------------- */
.lobby {
  position: fixed; inset: 0; z-index: 50;
  display: flex; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(700px 400px at 50% 0%, #1b2028 0%, transparent 65%),
    var(--bg);
  padding: 24px;
}
.lobby-card {
  width: min(460px, 100%);
  margin: auto;
  background: linear-gradient(180deg, #12151a, #0d0f13);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px 22px;
  box-shadow: 0 40px 80px -40px #000, inset 0 1px 0 #ffffff08;
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--amber), #e08900);
  color: #1a1200; font: 700 16px/1 var(--mono); letter-spacing: .5px;
  margin-bottom: 20px;
}
.lobby h1 {
  font-size: 22px; margin: 0 0 6px; letter-spacing: -.2px; font-weight: 650;
}
.lobby h1 span { color: var(--dim); font-weight: 500; font-size: 13px; margin-left: 6px; letter-spacing: .4px; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; line-height: 1.6; }

.field { display: block; margin-bottom: 20px; }
.field > span { display: block; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); margin-bottom: 9px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #0a0c0f; border: 1px solid var(--line); color: var(--text);
  font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: #4b3a15; box-shadow: 0 0 0 3px #ffb02018; }

.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }
.role-chip {
  text-align: left; padding: 9px 12px; border-radius: 10px;
  background: #0a0c0f; border: 1px solid var(--line); color: var(--muted);
  font-size: 13px; transition: .15s;
}
.role-chip em { display: block; font-style: normal; color: var(--dim); font-size: 11px; margin-top: 3px; }
.role-chip.active { border-color: var(--amber); color: var(--text); background: #1a1408; }
.role-chip.active em { color: #a98a4a; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 12px; text-align: center; border-radius: 999px; font-size: 12px;
  background: #0a0c0f; border: 1px solid var(--line); color: var(--muted);
}
.chip.on { border-color: #4a3a14; background: #1c1608; color: var(--amber); }

.enter {
  text-align: center;
  width: 100%; margin-top: 6px; padding: 14px; border-radius: 11px; border: 0;
  background: linear-gradient(180deg, var(--amber), #e39400);
  color: #1a1200; font-size: 14px; font-weight: 650; letter-spacing: .3px;
}
.enter:disabled { opacity: .5; }
.enter.director {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-weight: 550; margin-top: 8px;
}
.enter.director:hover { border-color: #4b3a15; color: var(--amber); }
.tiny { color: var(--dim); font-size: 11px; line-height: 1.6; margin: 14px 0 0; }
.field > span small { text-transform: none; letter-spacing: .2px; color: var(--dim); }

/* 席位网格：仿专业通话面板的编号键 */
.seat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
@media (max-width: 520px) { .seat-grid { grid-template-columns: repeat(4, 1fr); } }
.seat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 9px 2px 7px; border-radius: 10px; cursor: pointer;
  background: #0a0c0f; border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s, background .15s, transform .05s;
}
.seat:active { transform: scale(.97); }
.seat b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.seat span {
  font-size: 10px; color: var(--dim); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 3px;
}
.seat:not(.taken):hover { border-color: #4b3a15; }
.seat.picked { border-color: var(--amber); background: #1a1408; }
.seat.picked b { color: var(--amber); }
.seat.picked span { color: #a98a4a; }
.seat.taken { opacity: .42; cursor: not-allowed; background: #0d0f12; }
.seat.taken b { color: var(--dim); }
.seat.taken span { color: #6b7280; }
.admin-link { text-align: right; margin-top: 6px; }
.admin-link a { color: var(--dim); text-decoration: none; border-bottom: 1px dashed #3a4150; }
.admin-link a:hover { color: var(--amber); }

/* ---------------- App shell ---------------- */
.app { height: 100%; display: flex; flex-direction: column; }
.topbar {
  height: 58px; flex: 0 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-soft);
  background: #0b0d10cc; backdrop-filter: blur(8px);
}
.brand { font: 650 13px/1 var(--mono); letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.brand i { font-style: normal; color: var(--dim); font-size: 10px; letter-spacing: 1px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.tally {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--dim);
  font: 600 10.5px/1 var(--mono); letter-spacing: 1.6px;
}
.tally span { width: 8px; height: 8px; border-radius: 2px; background: #2a2f38; }
.tally.on { border-color: #5a1512; background: #1e0a09; color: #ff8b84; }
.tally.on span { background: var(--red); box-shadow: 0 0 10px var(--red); animation: tallyPulse 1.6s infinite; }
@keyframes tallyPulse { 50% { opacity: .45; } }

.meta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.stat b { font: 600 12px/1 var(--mono); color: var(--text); }
.stat span { font-size: 9.5px; letter-spacing: 1px; color: var(--dim); text-transform: uppercase; }
.me { display: flex; align-items: center; gap: 8px; padding-left: 18px; border-left: 1px solid var(--line-soft); font-size: 12px; }
.me em { font-style: normal; color: var(--dim); font-size: 10px; }

.grid {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: 268px minmax(360px, 1fr) 300px;
  gap: 1px; background: var(--line-soft);
}
.panel { background: var(--bg); padding: 18px; overflow-y: auto; }
.panel h2 {
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--dim); margin: 0 0 14px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: baseline;
}
.panel h2 small { font-size: 9.5px; letter-spacing: .6px; color: #404754; text-transform: none; }

/* Channels */
.ch-list { display: grid; gap: 6px; }
.ch-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 9px; background: var(--panel);
  border: 1px solid transparent; transition: .15s;
}
.ch-item.sub { border-color: #3b2f12; background: #161205; }
.ch-item .n { font-size: 12.5px; }
.ch-item .h { font-size: 10.5px; color: var(--dim); margin-top: 3px; }
.ch-item .cnt { font: 600 10px/1 var(--mono); color: var(--dim); padding: 3px 6px; border-radius: 4px; background: #0a0c0f; }
.ch-item.sub .cnt { color: var(--amber); }
.ch-item:hover { border-color: var(--line); }

.producer-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.tool {
  width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 7px;
  border-radius: 9px; background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; align-items: center;
}
.tool em { font: 600 9px/1 var(--mono); letter-spacing: 1px; color: var(--dim); font-style: normal; }
.tool:hover { border-color: #333a45; color: var(--text); }
.tool.active { border-color: #5a1512; background: #1c0a09; color: #ff8b84; }
.tool.active em { color: #ff6b62; }
.tool.danger.active { border-color: var(--red); }

.legend { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.legend p { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: 11px; color: var(--dim); }
.legend .k {
  font: 600 9.5px/1 var(--mono); padding: 4px 7px; border-radius: 4px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  min-width: 34px; text-align: center; font-style: normal;
}

/* Stage */
.stage {
  position: relative; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; gap: 26px;
}
.pgm-label { text-align: center; }
.pgm-label span { display: block; font: 600 9.5px/1 var(--mono); letter-spacing: 3px; color: var(--dim); margin-bottom: 8px; }
.pgm-label b { font-size: 15px; font-weight: 600; letter-spacing: .4px; }

.ptt {
  position: relative; width: 216px; height: 216px; border-radius: 50%;
  border: 1px solid #2c3138;
  background: radial-gradient(circle at 50% 35%, #1b1f26, #0d0f13 70%);
  color: var(--text); display: grid; place-items: center;
  box-shadow: inset 0 1px 0 #ffffff10, 0 24px 60px -30px #000;
  transition: transform .08s, box-shadow .2s, border-color .2s;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.ptt .ring {
  position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid transparent; transition: .2s;
}
.ptt { text-align: center; }
.ptt-inner b { display: block; font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.ptt-inner small { display: block; font: 600 9px/1 var(--mono); letter-spacing: 2.6px; color: var(--dim); margin-top: 9px; }
.ptt:hover { border-color: #3a414b; }
.ptt.on {
  border-color: var(--red); transform: scale(.985);
  background: radial-gradient(circle at 50% 35%, #2a1211, #140706 70%);
  box-shadow: inset 0 0 40px #ff3b3022, 0 0 0 6px #ff3b3012, 0 24px 60px -30px #000;
}
.ptt.on .ring { border-color: #ff3b3055; animation: pttRing 1.4s infinite; }
.ptt.on .ptt-inner b { color: #ff6b62; }
.ptt.on .ptt-inner small { color: #a33; }
@keyframes pttRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.16); opacity: 0; } }
.ptt.latched { border-color: var(--amber); }
.ptt.latched .ptt-inner b { color: var(--amber); }

.meter-wrap { width: min(420px, 80%); }
.meter {
  height: 10px; border-radius: 5px; background: #0d0f13;
  border: 1px solid var(--line); overflow: hidden; position: relative;
}
.meter i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #1e7a46, #4ade80 55%, var(--amber) 82%, var(--red));
  transition: width .06s linear;
}
.meter-labels { display: flex; justify-content: space-between; margin-top: 6px; font: 500 9px/1 var(--mono); color: #3f4653; }

.hint { font-size: 11.5px; color: var(--dim); text-align: center; letter-spacing: .2px; }

.stage-roster { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 560px; }
.stage-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 6px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--muted);
}
.stage-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3a424e; margin: 0 2px 0 4px;
}
.stage-chip.talk { border-color: #2f5c3f; color: var(--text); background: #0c1710; }
.stage-chip.talk .dot { background: #4ade80; box-shadow: 0 0 8px #4ade80; }

/* Roster */
.roster-list { display: grid; gap: 5px; }
.person {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px; background: var(--panel);
  border: 1px solid transparent; transition: .12s;
}
.person.talk { border-color: #2f5c3f; background: #0c1710; }
.person .av {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  font: 600 10px/1 var(--mono); background: #1b1f26; color: var(--muted);
}
.person.talk .av { background: #14351f; color: #4ade80; }
.person .nm { font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.person .nm i { font: 600 8px/1 var(--mono); letter-spacing: .6px; color: var(--dim); border: 1px solid var(--line); padding: 2px 4px; border-radius: 3px; font-style: normal; }
.person .nm i.prod { color: var(--amber); border-color: #4a3a14; }
.person .nm i.lst { color: #93c5fd; border-color: #2c4a72; }
.person .nm i.mte { color: #ff9089; border-color: #5a2a28; }
.person .sub { font-size: 10px; color: var(--dim); margin-top: 2px; }
.person .bars { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.person .bars b { width: 3px; height: 5px; background: #333b47; border-radius: 1px; transition: height .08s; }
.person.talk .bars b { background: #4ade80; }
.call-btn {
  text-align: center;
  border: 1px solid var(--line); background: #0a0c0f; color: var(--dim);
  font-size: 10px; padding: 4px 7px; border-radius: 5px;
}
.call-btn:hover { color: var(--text); border-color: #3a414b; }
.call-btn.on { color: var(--amber); border-color: #4a3a14; background: #1a1408; }

.self-test { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

/* Tally mode */
body.onair .stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 2px #ff3b3040, inset 0 0 90px #ff3b3014;
}

@media (max-width: 1080px) {
  .grid { grid-template-columns: 220px 1fr; }
  .roster { display: none; }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .channels { display: none; }
  .stage { padding: 16px; gap: 18px; }
  .ptt { width: 168px; height: 168px; }
  .topbar { gap: 8px; padding: 0 12px; height: 54px; }
  .brand i { display: none; }
  .tally { padding: 4px 8px; font-size: 9.5px; letter-spacing: 1px; gap: 5px; }
  .meta { gap: 10px; }
  .stat:nth-child(2) { display: none; }
  .stat span { display: none; }
  .me { padding-left: 10px; gap: 6px; font-size: 11px; }
  .me em { display: none; }
  .exit { margin-right: 0; padding: 4px 9px; }
}
@media (max-width: 440px) {
  .brand { font-size: 11.5px; letter-spacing: 1px; gap: 6px; }
  .tally { letter-spacing: .5px; }
  .stat:nth-child(1) { display: none; }
  .stat b { font-size: 11px; }
}

/* 媒体未连通提示 / 自动播放拦截开关 */
.media-warn {
  margin: 10px 0 2px; padding: 7px 12px; border-radius: 8px;
  background: #3a2a10; border: 1px solid #6b4d15; color: #f0b44c;
  font-size: 11.5px; line-height: 1.5; text-align: center;
}
.media-warn.hidden { display: none; }
.unmute {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 99; padding: 11px 20px; border-radius: 999px;
  background: var(--amber, #f0b44c); color: #1a1206; border: 0;
  font: 600 13px/1 var(--sans, sans-serif); cursor: pointer;
  box-shadow: 0 8px 24px #00000066;
}

/* 右上角退出（清除记住的身份） */
.exit {
  padding: 5px 11px; border-radius: 7px; margin-right: 4px;
  background: transparent; border: 1px solid #333b47; color: #98a2b3;
  font: 500 11.5px/1 var(--sans, sans-serif); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.exit:hover { color: #ff6b62; border-color: #5a2a28; background: #2a1614; }

/* 麦克风开关：开 / 关 两个按钮，按下的保持高亮 */
.mic-switch { display: flex; gap: 16px; align-items: stretch; }
.mic-btn {
  width: 152px; height: 134px; border-radius: 18px;
  border: 1px solid #2c3138; background: #0f1216; color: #798394;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.mic-btn b { font: 700 32px/1 var(--sans, sans-serif); letter-spacing: 3px; }
.mic-btn small { font: 500 9.5px/1 var(--mono, monospace); letter-spacing: 1.5px; opacity: .7; }
.mic-btn:hover { border-color: #3d4756; color: #9aa4b4; }
.mic-btn:active { transform: scale(.985); }
.mic-btn:disabled { opacity: .38; cursor: not-allowed; }

#mic-on.active {
  background: radial-gradient(circle at 50% 32%, #3c1310 0%, #1b0a09 72%);
  border-color: #ff3b30; color: #ff6b62;
  box-shadow: 0 0 0 1px #ff3b3026, 0 12px 34px #ff3b301f;
}
#mic-off.active {
  background: linear-gradient(#181d24, #11151a);
  border-color: #4c586a; color: #d3dae4;
  box-shadow: inset 0 0 0 1px #ffffff08;
}

.mic-state {
  display: flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--sans, sans-serif); color: #8b95a5;
}
.mic-state .led { width: 8px; height: 8px; border-radius: 50%; background: #3a424e; transition: background .16s, box-shadow .16s; }
.mic-state.open { color: #ff9089; }
.mic-state.open .led { background: #ff3b30; box-shadow: 0 0 10px #ff3b30; }

@media (max-width: 760px) {
  .mic-switch { gap: 12px; }
  .mic-btn { width: 132px; height: 118px; border-radius: 16px; }
  .mic-btn b { font-size: 27px; }
}

/* 总控分路静音：主区横排调音台 */
.master-panel {
  width: 100%; max-width: 680px; margin: 26px auto 0; padding: 16px 18px 14px;
  border: 1px solid #232a33; border-radius: 14px; background: #0c0f13;
}
.master-panel.hidden { display: none; }
.master-panel h4 {
  margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline;
  gap: 6px 10px; flex-wrap: wrap;
}
.master-panel h4 .t { font: 600 12px/1.2 var(--sans, sans-serif); color: #c9d1dc; letter-spacing: 1px; white-space: nowrap; }
.master-panel h4 .d { font: 400 10.5px/1.4 var(--sans, sans-serif); color: #5d6878; }
.master-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
@media (max-width: 760px) {
  .master-panel { margin-top: 18px; padding: 12px 12px 10px; }
  .master-grid { grid-template-columns: repeat(2, 1fr); }
}
.mch {
  border: 1px solid #232a33; border-radius: 9px; background: #0f1216;
  padding: 8px 8px 7px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, background .15s;
}
.mch-top { display: flex; align-items: center; gap: 6px; }
.mch .no { font: 600 9px/1 var(--mono, monospace); color: #5d6878; letter-spacing: 1px; flex: 0 0 auto; }
.mch .nm { flex: 1 1 auto; min-width: 0; font: 500 11.5px/1.2 var(--sans, sans-serif); color: #c9d1dc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mch-meta { display: flex; align-items: center; gap: 5px; }
.mch-meta .tag {
  font: 600 8.5px/1 var(--mono, monospace); color: #7f8b9c; letter-spacing: .5px;
  border: 1px solid #2a323d; border-radius: 4px; padding: 3px 4px;
  white-space: nowrap; overflow: hidden; max-width: 62px; text-overflow: ellipsis;
}
.chsel {
  flex: 1 1 auto; min-width: 0; padding: 2px 1px; border-radius: 5px;
  background: #0a0c0f; border: 1px solid #2a323d; color: #98a2b3;
  font: 500 10px/1 var(--mono, monospace); outline: none;
}
.mch-keys { display: flex; gap: 4px; }
.mch-keys .k {
  flex: 1 1 0; padding: 5px 0; border-radius: 5px; cursor: pointer;
  border: 1px solid #2c3138; background: #0a0c0f; color: #798394;
  font: 600 10.5px/1 var(--sans, sans-serif);
  -webkit-tap-highlight-color: transparent; transition: .12s;
}
.mch-keys .k:active { transform: scale(.97); }
.mch-keys .k:disabled { opacity: .32; cursor: not-allowed; }
.mch-keys .k.on { background: #14351f; border-color: #22c55e88; color: #4ade80; }
.mch-keys .k.warn { background: #16233a; border-color: #3b82f688; color: #93c5fd; }
.mch-keys .solo.on { background: #241636; border-color: #a855f7aa; color: #d8b4fe; }
.mch-keys .cue.on { background: #2a2208; border-color: #f59e0baa; color: #fbbf24; }
.mch.is-muted { border-color: #ff3b3044; background: #150b0a; }
.mch.is-muted .nm { color: #ff9089; }
.mch.is-listen { border-color: #3b82f644; background: #0a1018; }
.mch.is-listen .nm { color: #93c5fd; }
.mch .talkdot { width: 6px; height: 6px; border-radius: 50%; background: #2a303a; flex: 0 0 auto; }
.mch.is-talking { border-color: #22c55e88; background: #0b1a11; }
.mch.is-talking .talkdot { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.master-empty { grid-column: 1 / -1; text-align: center; color: #5d6878; font: 400 11px/1.6 var(--sans, sans-serif); padding: 8px 0; }

/* 本人发言权（只听模式） */
.self-perm { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.perm-btn {
  padding: 6px 12px; border-radius: 7px; cursor: pointer;
  border: 1px solid #2c3138; background: #0f1216; color: #98a2b3;
  font: 500 11.5px/1 var(--sans, sans-serif); transition: .15s;
}
.perm-btn.on { background: #16233a; border-color: #3b82f688; color: #93c5fd; }
.perm-btn:disabled { opacity: .45; cursor: not-allowed; }
.self-perm #perm-hint { font: 400 10.5px/1.4 var(--sans, sans-serif); color: #5d6878; }

/* 被静音 / 只听 / 被喂话 提示条 */
.notes { width: 100%; max-width: 680px; margin: 12px auto 0; display: grid; gap: 6px; }
.notes.hidden { display: none; }
.note { padding: 7px 12px; border-radius: 8px; font-size: 11.5px; line-height: 1.5; text-align: center; }
.note.red   { background: #3c1310; border: 1px solid #ff3b3055; color: #ff9089; }
.note.blue  { background: #101d31; border: 1px solid #3b82f655; color: #93c5fd; }
.note.amber { background: #2a2208; border: 1px solid #f59e0b55; color: #fbbf24; }

/* 频道有人说话 */
.ch-item.busy { border-color: #2f5c3f; background: #0c1710; }
.ch-item.busy .n::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 6px #4ade80; margin-right: 6px; vertical-align: middle;
}

/* 被导播静音的本人提示 */
.forced-note {
  margin: 10px 0 2px; padding: 7px 12px; border-radius: 8px;
  background: #3c1310; border: 1px solid #ff3b3055; color: #ff9089;
  font-size: 11.5px; line-height: 1.5; text-align: center;
}

/* 微信环境提示 */
.wx-tip {
  display: flex; flex-direction: column; gap: 3px;
  background: #3a2a08; border: 1px solid #a8790a66; border-radius: 9px;
  padding: 9px 11px; margin: 0 0 14px;
}
.wx-tip.hidden { display: none; }
.wx-tip b { font: 600 12px/1.3 var(--sans, sans-serif); color: #ffd76e; }
.wx-tip span { font: 400 11px/1.55 var(--sans, sans-serif); color: #d8b465; }

/* 麦克风失败引导层 */
#mic-guide {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 22px;
  background: #000000d0; backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
#mic-guide.hidden { display: none; }
.mg-card {
  width: min(400px, 100%); background: #14181e;
  border: 1px solid #2c3138; border-radius: 14px;
  padding: 20px 18px 16px; box-shadow: 0 20px 60px #000a;
}
.mg-ico {
  width: 34px; height: 34px; border-radius: 50%;
  background: #3c1310; border: 1px solid #ff3b3055; color: #ff6b62;
  display: grid; place-items: center; font: 700 18px/1 var(--sans, sans-serif);
  margin-bottom: 10px;
}
.mg-card h3 { margin: 0 0 10px; font: 600 15px/1.3 var(--sans, sans-serif); color: #e6e9ef; }
.mg-card ol { margin: 0; padding-left: 19px; color: #a8b1c0; font-size: 12.5px; line-height: 1.95; }
.mg-card .mg-note {
  margin: 11px 0 0; font-size: 11.5px; line-height: 1.6; color: #f5c451;
  background: #3a2a0866; border-radius: 7px; padding: 8px 10px;
}
.mg-ok {
  width: 100%; margin-top: 15px; padding: 11px; border: 0; border-radius: 9px;
  background: #1f6feb; color: #fff; font: 600 13px/1 var(--sans, sans-serif); cursor: pointer;
}
