/* IELTS Core Speaking Club. The call itself looks like a video-call app (dark meeting window, name labels on the
   video tiles, a toolbar with labelled buttons and a red End button), the way the IELTS Speaking test looks when it
   is taken by video call. The page around it follows the site's light and dark themes. */

.speaking-club-page {
  --zm-bg: #1c1d1f;
  --zm-bar: #141516;
  --zm-tile: #2a2b2e;
  --zm-line: #34363a;
  --zm-text: #e8e9eb;
  --zm-muted: #a1a5ad;
  --zm-blue: #0e72ed;
  --zm-blue-hover: #2b84f0;
  --zm-green: #5fd38d;
  --zm-red: #e02828;
  --sc-ink: #0f172a;
  --sc-text: #334155;
  --sc-muted: #64748b;
  --sc-line: #e3e6ec;
  --sc-card: #ffffff;
  --sc-soft: #f6f7f9;
  --sc-accent: #245bc7;
  --panel-bg: #f7f7f8;
  --panel-text: #1f2937;
  --panel-muted: #6b7280;
  --panel-line: #e5e7eb;
  --panel-card: #ffffff;
}
html[data-theme="dark"] .speaking-club-page {
  --sc-ink: #e1e2e5;
  --sc-text: #c9cbd0;
  --sc-muted: #969aa3;
  --sc-line: #3a3b3d;
  --sc-card: #262728;
  --sc-soft: #2d2e2f;
  --sc-accent: #7d9ad6;
  --panel-bg: #232427;
  --panel-text: #e1e2e5;
  --panel-muted: #a1a5ad;
  --panel-line: #3a3c40;
  --panel-card: #2c2e31;
}

.sc-container { max-width: 1240px; margin: 0 auto; padding: 24px 20px 60px; }
.speaking-club-page button { font-family: inherit; }
.sc-spin { animation: scSpin 1s linear infinite; display: inline-block; }
@keyframes scSpin { to { transform: rotate(360deg); } }

/* ---------- Page header ---------- */
.sc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sc-kicker { margin: 0; font-size: 13px; font-weight: 600; color: var(--sc-muted); }
.sc-title { margin: 4px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--sc-ink); }
.sc-sub { margin: 6px 0 0; max-width: 640px; font-size: 14.5px; line-height: 1.55; color: var(--sc-text); }
.sc-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: var(--sc-card); border: 1px solid var(--sc-line); font-size: 13px; font-weight: 600; color: var(--sc-text);
}
.sc-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa1ab; }
.sc-status.is-live .sc-status-dot { background: #22a35a; box-shadow: 0 0 0 3px rgba(34, 163, 90, 0.18); }

.sc-room-banner {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 16px; border-radius: 12px;
  background: var(--sc-card); border: 1px solid var(--sc-line); color: var(--sc-text);
}
.sc-room-banner > .material-symbols-outlined { color: var(--sc-accent); }
.sc-room-banner strong { color: var(--sc-ink); font-size: 14px; }
.sc-room-banner strong span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; margin-left: 4px; }
.sc-room-banner p { margin: 2px 0 0; font-size: 12.5px; color: var(--sc-muted); }
.sc-room-banner button {
  margin-left: auto; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--sc-line); background: transparent;
  color: var(--sc-text); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}

/* ---------- The meeting window (dark in both themes) ---------- */
.zm-window { background: var(--zm-bg); color: var(--zm-text); border-radius: 14px; overflow: hidden; border: 1px solid #2a2b2e; }
.zm-tile { position: relative; background: var(--zm-tile); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 0; }
.zm-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.zm-video.is-mirrored { transform: scaleX(-1); }
.zm-video.is-hidden { display: none !important; }
.zm-avatar-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.zm-avatar {
  width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #3b5bdb; color: #fff; font-size: 34px; font-weight: 600;
}
.zm-avatar.is-partner { background: #6b4fbb; }
.zm-name {
  position: absolute; left: 10px; bottom: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 4px;
  max-width: calc(100% - 20px); padding: 3px 9px 3px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.62);
  font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zm-name .material-symbols-outlined { font-size: 15px; color: var(--zm-green); }
.zm-name .material-symbols-outlined.is-muted { color: #ff6b6b; }
.zm-name-role { color: #c7cad0; }
/* Whoever is speaking gets a green frame, as in a video call */
.zm-tile.is-speaking::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--zm-green); border-radius: 10px; pointer-events: none; z-index: 5; }

.zm-tool {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; padding: 6px 8px;
  border: 0; border-radius: 8px; background: transparent; color: var(--zm-text); cursor: pointer; position: relative;
}
.zm-tool:hover { background: rgba(255, 255, 255, 0.08); }
.zm-tool .material-symbols-outlined { font-size: 24px; }
.zm-tool-label { font-size: 11.5px; color: #d5d7db; white-space: nowrap; }
.zm-tool.is-off .material-symbols-outlined { color: #ff6b6b; }
.zm-tool[aria-pressed="true"]#scChatToggleBtn .material-symbols-outlined,
.zm-tool[aria-pressed="true"]#scPanelToggleBtn .material-symbols-outlined { color: #7fb2ff; }
.zm-dot { position: absolute; top: 4px; right: 18px; width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; }
.zm-dot[hidden] { display: none; }

.zm-light-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 8px; border: 0;
  background: #ffffff; color: #111827; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.zm-light-btn:hover { background: #e5e7eb; }

/* ---------- 1. Join screen ---------- */
.zm-join { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; padding: 22px; align-items: center; }
.zm-tile-preview { aspect-ratio: 16 / 10; }
.zm-media-start {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center; color: #cfd2d7;
}
.zm-media-start[hidden] { display: none; }
.zm-media-start > .material-symbols-outlined { font-size: 34px; color: #7d828b; }
.zm-media-start p { margin: 0; font-size: 13.5px; }
.zm-join-tools { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.zm-meter { display: flex; align-items: center; gap: 6px; color: var(--zm-muted); }
.zm-meter .material-symbols-outlined { font-size: 18px; }
.zm-meter-track { width: 90px; height: 6px; border-radius: 999px; background: #3a3c40; overflow: hidden; }
.zm-meter-fill { height: 100%; width: 0; background: var(--zm-green); transition: width .08s linear; }
.zm-checks { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.zm-check { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; background: #26272a; font-size: 11.5px; color: #c7cad0; }

.zm-meta { margin: 0; font-size: 12.5px; color: var(--zm-muted); }
.zm-join-title { margin: 6px 0 4px; font-size: 24px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.zm-join-facts { margin: 0 0 16px; font-size: 13.5px; color: #c7cad0; }
.zm-field-label { margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--zm-muted); }
.zm-choice { display: flex; gap: 6px; flex-wrap: wrap; }
.zm-choice-btn {
  padding: 7px 12px; border-radius: 8px; border: 1px solid #3d3f44; background: transparent; color: #c7cad0;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.zm-choice-btn:hover { border-color: #5a5d63; color: #fff; }
.zm-choice-btn.active { background: #2f3135; border-color: #6b6f76; color: #fff; }
.zm-join-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 20px; padding: 12px;
  border: 0; border-radius: 9px; background: var(--zm-blue); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.zm-join-btn:hover { background: var(--zm-blue-hover); }
.zm-join-btn:disabled { opacity: .75; cursor: progress; }
.zm-link-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 8px;
  border: 0; background: transparent; color: #7fb2ff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.zm-link-btn .material-symbols-outlined { font-size: 18px; }
.zm-link-btn:hover { color: #a9caff; }
.zm-invite { margin-top: 10px; padding: 12px; border-radius: 10px; background: #26272a; border: 1px solid var(--zm-line); }
.zm-invite[hidden] { display: none; }
.zm-invite p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: #c7cad0; }
.zm-invite p strong { color: #fff; }
.zm-invite-copy { display: flex; gap: 8px; }
.zm-invite-copy input {
  flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid #3d3f44; background: #1c1d1f;
  color: #e8e9eb; font: inherit; font-size: 12.5px;
}
.zm-invite-copy button {
  padding: 0 14px; border-radius: 8px; border: 0; background: var(--zm-blue); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.zm-message { margin: 12px 0 0; padding: 9px 12px; border-radius: 8px; background: #3a2a1c; border: 1px solid #5a4029; color: #f2c99a; font-size: 13px; line-height: 1.5; }
.zm-message[hidden] { display: none; }

/* Under the join window */
.sc-below { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.sc-card { background: var(--sc-card); border: 1px solid var(--sc-line); border-radius: 14px; padding: 18px 20px; }
.sc-card-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--sc-ink); }
.sc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.sc-steps li { display: flex; gap: 10px; }
.sc-step-n {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sc-soft); border: 1px solid var(--sc-line); font-size: 12px; font-weight: 700; color: var(--sc-ink);
}
.sc-steps strong { display: block; font-size: 13.5px; color: var(--sc-ink); }
.sc-steps p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--sc-muted); }
.sc-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sc-numbers div { display: flex; flex-direction: column; gap: 2px; }
.sc-numbers strong { font-size: 22px; font-weight: 700; color: var(--sc-ink); font-variant-numeric: tabular-nums; }
.sc-numbers span { font-size: 12px; color: var(--sc-muted); }
.sc-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--sc-line); font-size: 13px; line-height: 1.5; color: var(--sc-muted); }

/* ---------- Top bar (waiting room and meeting) ---------- */
.zm-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--zm-muted); }
.zm-room { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-room .material-symbols-outlined { font-size: 17px; color: var(--zm-green); }
.zm-topbar-time { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.zm-topbar-time.is-warning { color: #ffb4a8; }
.zm-topbar-side { justify-self: end; white-space: nowrap; }

/* ---------- 2. Waiting room ---------- */
.zm-waiting-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 70px 24px 80px; }
.zm-waiting-icon { font-size: 40px; color: #8a8f98; }
.zm-waiting-body h2 { margin: 18px 0 8px; font-size: 21px; font-weight: 600; color: #fff; }
.zm-waiting-body > p { margin: 0; max-width: 480px; font-size: 14px; line-height: 1.55; color: #c7cad0; }
.zm-ai { margin-top: 22px; max-width: 460px; padding: 14px 16px; border-radius: 10px; background: #26272a; border: 1px solid var(--zm-line); }
.zm-ai p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: #c7cad0; }
.zm-leave-btn {
  margin-top: 26px; padding: 9px 22px; border-radius: 8px; border: 1px solid #4a4c51; background: transparent;
  color: #ff8f8f; font-size: 14px; font-weight: 600; cursor: pointer;
}
.zm-leave-btn:hover { background: rgba(224, 40, 40, 0.12); border-color: var(--zm-red); }

/* ---------- 3. Meeting ---------- */
.zm-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 8px; padding: 0 8px;
  height: clamp(440px, calc(100vh - 230px), 700px);
}
.zm-gallery { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; min-height: 0; }
.zm-stage.panel-hidden { grid-template-columns: minmax(0, 1fr); }
.zm-stage.panel-hidden .zm-panel { display: none; }
.zm-stage.panel-hidden .zm-gallery { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
.zm-connecting {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: rgba(20, 21, 22, 0.7); color: #cfd2d7; font-size: 14px; font-weight: 600; pointer-events: none;
}
.zm-connecting[hidden] { display: none; }
.zm-connecting .material-symbols-outlined { font-size: 30px; color: #8a8f98; }
/* Shown only when the browser would not start the partner's sound by itself. */
.zm-sound-btn {
  position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center;
  gap: 8px; padding: 9px 16px; border: 0; border-radius: 999px; background: #fff; color: #141516; font-size: 13.5px;
  font-weight: 700; cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.zm-sound-btn[hidden] { display: none; }
.zm-sound-btn .material-symbols-outlined { font-size: 20px; }

.zm-panel {
  display: flex; flex-direction: column; min-height: 0; border-radius: 10px; overflow: hidden;
  background: var(--panel-bg); color: var(--panel-text);
}
.zm-panel-head { padding: 14px 16px 10px; }
.zm-panel-kicker { margin: 0; font-size: 11.5px; font-weight: 600; color: var(--panel-muted); }
.zm-panel-title { margin: 2px 0 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--panel-text); }
.zm-parts { display: flex; gap: 2px; margin: 0 16px; padding: 3px; border-radius: 9px; background: var(--panel-line); }
.zm-parts .sc-part-tab {
  flex: 1; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--panel-muted);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.zm-parts .sc-part-tab.active { background: var(--panel-card); color: var(--panel-text); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1); }
.zm-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 16px; font-size: 13.5px; line-height: 1.55; }
.zm-label { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; color: var(--panel-muted); }
.zm-info { margin: 0 0 12px; color: var(--panel-text); }
.zm-tip { margin: 12px 0 0; font-size: 12.5px; color: var(--panel-muted); }
.zm-script {
  margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid #0e72ed; border-radius: 0 8px 8px 0;
  background: var(--panel-card); color: var(--panel-text); font-style: italic;
}
.zm-questions { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.zm-questions li { padding: 2px 4px; border-radius: 6px; }
.zm-questions li.is-current { background: rgba(14, 114, 237, 0.1); color: var(--panel-text); font-weight: 600; }
.zm-questions li.is-done { color: var(--panel-muted); }
.zm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.zm-btn, .zm-btn-primary {
  padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--panel-line); background: var(--panel-card); color: var(--panel-text);
}
.zm-btn:hover { border-color: var(--panel-muted); }
.zm-btn-primary { background: var(--zm-blue); border-color: var(--zm-blue); color: #fff; }
.zm-btn-primary:hover { background: var(--zm-blue-hover); }
.zm-btn:disabled, .zm-btn-primary:disabled { opacity: .5; cursor: default; }
.zm-btn-small { padding: 5px 10px; font-size: 12px; margin-top: 4px; }
.zm-cue { margin: 0 0 12px; padding: 12px 14px; border-radius: 8px; background: var(--panel-card); border: 1px solid var(--panel-line); }
.zm-cue-topic { margin: 0 0 8px; font-weight: 700; color: var(--panel-text); }
.zm-cue-say { margin: 0 0 4px; color: var(--panel-muted); }
.zm-cue ul { margin: 0; padding-left: 18px; }
.zm-p2clock { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--panel-card); border: 1px solid var(--panel-line); }
.zm-p2clock-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--panel-muted); }
.zm-p2clock-head strong { font-size: 18px; color: var(--panel-text); font-variant-numeric: tabular-nums; }
.zm-p2clock-track { height: 5px; margin-top: 6px; border-radius: 999px; background: var(--panel-line); overflow: hidden; }
.zm-p2clock-bar { height: 100%; width: 0; background: #f5a623; transition: width .3s linear; }
.zm-p2clock-bar.is-speech { background: #22a35a; }
.zm-p2clock-hint { margin: 6px 0 0; font-size: 12px; color: var(--panel-muted); }
.zm-notes-label { display: block; margin: 0 0 4px; font-size: 11.5px; font-weight: 700; color: var(--panel-muted); }
.zm-notes {
  width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--panel-line);
  background: var(--panel-card); color: var(--panel-text); font: inherit; font-size: 13px; resize: vertical;
}

.zm-chat { border-top: 1px solid var(--panel-line); display: flex; flex-direction: column; max-height: 42%; }
.zm-chat[hidden] { display: none; }
.zm-chat-messages { flex: 1; overflow-y: auto; padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.zm-chat-msg strong { margin-right: 4px; color: var(--panel-text); }
.zm-chat-msg.is-hint { color: var(--panel-muted); font-size: 12px; }
.zm-chat-msg.is-self strong { color: #0e72ed; }
.zm-chat-form { display: flex; gap: 6px; padding: 8px 12px 12px; }
.zm-chat-form input {
  flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--panel-line);
  background: var(--panel-card); color: var(--panel-text); font: inherit; font-size: 13px;
}
.zm-chat-form button { width: 36px; border-radius: 8px; border: 0; background: var(--zm-blue); color: #fff; cursor: pointer; }
.zm-chat-form button .material-symbols-outlined { font-size: 18px; }

.sc-end-confirm {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 8px 8px 0; padding: 10px 14px; border-radius: 10px; background: #2a2b2e; color: #e8e9eb; font-size: 13.5px; font-weight: 600;
}
.sc-end-confirm[hidden] { display: none; }
.sc-end-confirm button {
  padding: 7px 14px; border-radius: 8px; border: 1px solid #4a4c51; background: transparent; color: #e8e9eb;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.sc-end-confirm button.is-danger { background: var(--zm-red); border-color: var(--zm-red); color: #fff; }

.zm-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 6px 14px;
  background: var(--zm-bar);
}
.zm-toolbar-group { display: flex; gap: 2px; }
.zm-end-btn {
  padding: 8px 18px; border-radius: 8px; border: 0; background: var(--zm-red); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.zm-end-btn:hover { background: #f03b3b; }

/* ---------- 4. Feedback card ---------- */
.sc-modal-overlay {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 17, 20, 0.6);
}
.sc-modal-card {
  width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 22px 18px;
  border-radius: 14px; background: var(--sc-card); color: var(--sc-text); border: 1px solid var(--sc-line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25); text-align: left;
}
.sc-modal-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--sc-ink); }
.sc-feedback-note { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--sc-muted); }
.sc-feedback-note[hidden] { display: none; }
.sc-modal-sub { margin: 8px 0 12px; font-size: 14px; color: var(--sc-text); }
.sc-modal-sub strong { color: var(--sc-ink); }
.sc-stars-row { display: flex; gap: 4px; margin-bottom: 14px; }
.sc-star-btn { border: 0; background: transparent; padding: 0 2px; font-size: 28px; line-height: 1; color: #d1d5db; cursor: pointer; }
.sc-star-btn.active { color: #f5a623; }
html[data-theme="dark"] .sc-star-btn { color: #4a4c51; }
html[data-theme="dark"] .sc-star-btn.active { color: #e0a33a; }
.sc-field-label { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--sc-muted); }
.sc-select {
  width: 100%; margin-bottom: 14px; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--sc-line);
  background: var(--sc-card); color: var(--sc-ink); font: inherit; font-size: 14px;
}
.sc-praise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.sc-praise-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--sc-line);
  background: transparent; color: var(--sc-text); font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
}
.sc-praise-btn .material-symbols-outlined { font-size: 18px; color: var(--sc-muted); }
.sc-praise-btn.selected { border-color: var(--sc-accent); background: rgba(36, 91, 199, 0.08); color: var(--sc-ink); }
.sc-praise-btn.selected .material-symbols-outlined { color: var(--sc-accent); }
.sc-modal-actions { display: flex; gap: 8px; }
.sc-btn-quiet, .sc-btn-primary { flex: 1; padding: 10px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.sc-btn-quiet { border: 1px solid var(--sc-line); background: transparent; color: var(--sc-text); }
.sc-btn-primary { border: 1px solid var(--zm-blue); background: var(--zm-blue); color: #fff; }
.sc-btn-primary:hover { background: var(--zm-blue-hover); }
.sc-report-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; padding: 0; border: 0; background: none;
  color: var(--sc-muted); font-size: 12.5px; cursor: pointer;
}
.sc-report-link .material-symbols-outlined { font-size: 15px; }
.sc-report-link:hover { color: #dc2626; }
.sc-report-box { margin-top: 10px; }
.sc-report-box[hidden] { display: none; }
.sc-report-box label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--sc-muted); }
.sc-report-box textarea {
  width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--sc-line);
  background: transparent; color: var(--sc-ink); font: inherit; font-size: 13.5px; resize: vertical;
}
.sc-report-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.sc-report-status { font-size: 12.5px; color: var(--sc-muted); }
.sc-report-actions button {
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--sc-line); background: transparent; color: var(--sc-ink);
  font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .zm-join { grid-template-columns: minmax(0, 1fr); }
  .sc-below { grid-template-columns: minmax(0, 1fr); }
  .zm-stage { grid-template-columns: minmax(0, 1fr); height: auto; }
  .zm-gallery { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .zm-gallery .zm-tile { aspect-ratio: 4 / 3; }
  .zm-panel { max-height: 520px; }
  .zm-stage.panel-hidden .zm-gallery .zm-tile { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .sc-container { padding: 16px 12px 40px; }
  .sc-title { font-size: 23px; }
  .zm-join { padding: 14px; gap: 16px; }
  .zm-tile-preview { aspect-ratio: 4 / 3.4; }
  .zm-media-start { padding: 16px 16px 44px; }
  .zm-media-start p { font-size: 13px; }
  .zm-checks { margin-left: 0; }
  .sc-steps { grid-template-columns: minmax(0, 1fr); }
  .sc-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .zm-topbar { grid-template-columns: 1fr auto; }
  .zm-topbar-side { display: none; }
  /* Phone: the two tiles side by side, and the toolbar stays on screen while the task card is scrolled */
  .zm-gallery .zm-tile, .zm-stage.panel-hidden .zm-gallery .zm-tile { aspect-ratio: 3 / 4; }
  .zm-avatar { width: 60px; height: 60px; font-size: 24px; }
  .zm-name { font-size: 11.5px; left: 6px; bottom: 6px; }
  .zm-toolbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 4px; border-top: 1px solid #2a2b2e;
  }
  .zm-meeting { padding-bottom: 72px; }
  .sc-end-confirm { position: fixed; left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 51; margin: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
  .zm-tool { min-width: 0; padding: 6px 5px; }
  .zm-tool-label { font-size: 10px; }
  .zm-toolbar #scNextTopicBtn { display: none; }
  .zm-end-btn { padding: 8px 12px; }
  .zm-waiting-body { padding: 48px 18px 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-spin { animation: none; }
}
