/* ── Google Meet Style Modern Dark Layout with Pre-Meeting Lobby & Info Hub ── */

* {
  box-sizing: border-box;
}

body.meet-app {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #202124;
  color: #e8eaed;
  font-family: -apple-system, BlinkMacSystemFont, "Google Sans", "SF Pro Display", "Roboto", "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════════════
   1. Pre-meeting Green Room / Lobby Screen
   ═══════════════════════════════════════════════════════════════════════════ */
.meet-lobby-screen {
  position: fixed;
  inset: 0;
  background: #202124;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lobby-header {
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3c4043;
}

.lobby-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meet-logo-icon {
  font-size: 1.5rem;
}

.meet-logo-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}

.lobby-time {
  font-size: 0.95rem;
  color: #9aa0a6;
}

.lobby-content-grid {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}

/* Left: Camera Preview Card */
.lobby-cam-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 24px;
}

.lobby-video-card {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
  border: 2px solid #3c4043;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.lobby-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.lobby-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #171719;
  color: #9aa0a6;
  font-size: 0.9rem;
}

.cam-off-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.lobby-gaze-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  color: #81c995;
}

.lobby-cam-overlay-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #e8eaed;
}

.lobby-media-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lobby-ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: #3c4043;
  color: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lobby-ctrl-btn:hover {
  background: #4f5358;
}

.lobby-ctrl-btn.active {
  background: #8ab4f8;
  color: #202124;
}

.lobby-ctrl-btn.muted {
  background: #ea4335;
  color: #fff;
}

/* Right: Setup Card */
.lobby-setup-card {
  padding: 26px 28px;
  border-radius: 16px;
  background: #28292c;
  border: 1px solid #3c4043;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.lobby-setup-card h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #fff;
}

.setup-sub {
  margin: 0 0 18px;
  font-size: 0.86rem;
  color: #9aa0a6;
  line-height: 1.45;
}

.lobby-service-status {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(138, 180, 248, 0.22);
  border-radius: 10px;
  background: rgba(138, 180, 248, 0.08);
  color: #c2d7ff;
  font-size: 0.82rem;
  line-height: 1.45;
}

.lobby-service-status.is-ready {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.09);
  color: #9cecc9;
}

.lobby-service-status.is-error {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.09);
  color: #ffb4b4;
}

.lobby-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9aa0a6;
}

.btn-clean-text {
  background: transparent;
  border: 0;
  color: #8ab4f8;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-clean-text:hover {
  text-decoration: underline;
}

.form-row {
  display: flex;
  gap: 12px;
}

.flex-1 {
  flex: 1;
}

.meet-select,
.meet-input {
  background: #202124 !important;
  color: #ffffff !important;
  border: 1px solid #3c4043;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
}

.meet-select option {
  background: #202124 !important;
  color: #ffffff !important;
  padding: 8px;
}

.meet-textarea {
  resize: vertical;
  line-height: 1.5;
}

.meet-select:focus,
.meet-input:focus {
  outline: none;
  border-color: #8ab4f8;
  box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.25);
}

/* Multi-Source Context Box */
.context-source-box {
  background: #202124;
  border: 1px solid #3c4043;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.context-tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #3c4043;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.ctx-tab-btn {
  border: 0;
  background: transparent;
  color: #9aa0a6;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ctx-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.ctx-tab-btn.active {
  background: rgba(138, 180, 248, 0.15);
  color: #8ab4f8;
  font-weight: 600;
}

.ctx-upload-pill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 14px;
  background: #1a73e8;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ctx-upload-pill:hover {
  background: #185abc;
  transform: translateY(-1px);
}

.ctx-pane {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.ctx-pane.active {
  display: flex;
}

.ctx-pane-hint {
  font-size: 0.74rem;
  color: #9aa0a6;
}

.lobby-action-row {
  margin-top: 6px;
}

.btn-join-meeting {
  width: 100%;
  border: 0;
  padding: 12px 24px;
  border-radius: 24px;
  background: #1a73e8;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4);
}

.btn-join-meeting:hover {
  background: #185abc;
  transform: translateY(-1px);
}

.btn-join-meeting:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. Main Google Meet Viewport (In-Meeting Stage)
   ═══════════════════════════════════════════════════════════════════════════ */
.meet-viewport {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
  padding: 12px 16px 8px;
  gap: 12px;
}

.meet-stage-area {
  flex: 1;
  display: flex;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #171719;
}

.meet-video-tile {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

sv-presenter {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #171719;
  color: #9aa0a6;
  font-size: 0.9rem;
}

.apple-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #8ab4f8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stage-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: #f28b82;
  background: #171719;
}

/* Meet Name Badge */
.tile-name-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(32, 33, 36, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.mic-icon-active {
  font-size: 0.9rem;
}

.meet-status-pill {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(52, 168, 83, 0.25);
  color: #81c995;
  font-weight: 600;
}

/* Meet Telemetry HUD Overlay */
.meet-telemetry-hud {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  background: rgba(32, 33, 36, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.hud-tele-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tele-label {
  font-size: 0.65rem;
  color: #9aa0a6;
}

.hud-tele-item strong {
  font-size: 0.88rem;
  color: #fff;
}

.meet-tag-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(52, 168, 83, 0.2);
  color: #81c995;
  border: 1px solid rgba(52, 168, 83, 0.3);
}

.meet-tag-badge.danger {
  background: rgba(234, 67, 53, 0.25);
  color: #f28b82;
  border-color: rgba(234, 67, 53, 0.4);
}

.meet-tag-badge.warning {
  background: rgba(251, 188, 4, 0.2);
  color: #fdd663;
  border-color: rgba(251, 188, 4, 0.3);
}

/* User PIP Tile */
.meet-user-pip {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 200px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.meet-user-pip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.user-pip-header {
  position: absolute;
  top: 6px;
  left: 6px;
}

.pip-gaze-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  font-size: 0.65rem;
  color: #81c995;
}

.gaze-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34a853;
  box-shadow: 0 0 6px #34a853;
}

.gaze-dot.wandering {
  background: #ea4335;
  box-shadow: 0 0 6px #ea4335;
}

.user-pip-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #e8eaed;
}

.user-name-tag {
  color: #9aa0a6;
}

/* ── Google Meet Sidebar ────────────────────────────────────────────────── */
.meet-sidebar {
  width: 380px;
  background: #28292c;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.meet-sidebar.closed {
  display: none;
}

.sidebar-tabs {
  display: flex;
  align-items: center;
  background: #202124;
  border-bottom: 1px solid #3c4043;
  padding: 4px 8px 0;
  gap: 4px;
}

.sidebar-tab {
  flex: 1;
  border: 0;
  padding: 10px 8px;
  background: transparent;
  color: #9aa0a6;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-tab:hover {
  color: #e8eaed;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-tab.active {
  color: #8ab4f8;
  border-bottom-color: #8ab4f8;
}

.sidebar-close-btn {
  border: 0;
  background: transparent;
  color: #9aa0a6;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-pane {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
}

.sidebar-pane.active {
  display: flex;
}

.pane-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pane-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pane-content-scroll h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}

.pane-sub {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #9aa0a6;
}

/* Quick Prompt Chips & Interactive Actions */
.quick-prompt-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
}
.quick-prompt-chips::-webkit-scrollbar {
  display: none;
}
.quick-chip {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8eaed;
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.quick-chip:hover {
  background: rgba(138, 180, 248, 0.2);
  border-color: #8ab4f8;
  color: #8ab4f8;
}
.quick-chip.danger {
  background: rgba(234, 67, 53, 0.15);
  border-color: rgba(234, 67, 53, 0.3);
  color: #f28b82;
}
.quick-chip.danger:hover {
  background: rgba(234, 67, 53, 0.3);
  border-color: #ea4335;
  color: #fff;
}

/* Chat Pane */
.chat-header-info {
  padding-bottom: 8px;
  border-bottom: 1px solid #3c4043;
}

.chat-header-info h3 {
  margin: 0 0 2px;
  font-size: 0.95rem;
  color: #8ab4f8;
}

.chat-header-info p {
  margin: 0;
  font-size: 0.76rem;
  color: #9aa0a6;
}

.chat-log {
  flex: 1;
  list-style: none;
  margin: 8px 0 0;
  padding: 0 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: calc(100vh - 270px);
}

.chat-log::-webkit-scrollbar {
  width: 5px;
}

.chat-log::-webkit-scrollbar-thumb {
  background: #3c4043;
  border-radius: 10px;
}

.msg {
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.msg--user {
  align-self: flex-end;
  background: #1a73e8;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.msg--failed {
  outline: 2px solid rgba(242, 139, 130, 0.75);
  outline-offset: 2px;
  opacity: 0.82;
}

.msg--assistant {
  align-self: flex-start;
  background: #303134;
  color: #e8eaed;
  border-bottom-left-radius: 2px;
}

.msg--interruption {
  align-self: center;
  width: 95%;
  background: rgba(234, 67, 53, 0.2);
  border: 1px solid rgba(234, 67, 53, 0.4);
  color: #f28b82;
  font-size: 0.82rem;
  border-radius: 10px;
}

.msg--error {
  align-self: flex-start;
  background: rgba(234, 67, 53, 0.2);
  color: #f28b82;
  font-size: 0.8rem;
}

.meet-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  background: #202124;
  padding: 6px 10px;
  border-radius: 24px;
  border: 1px solid #3c4043;
}

.meet-btn-send {
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #8ab4f8;
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.meet-btn-send:hover {
  background: #aecbfa;
}

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meet-pill-action {
  border: 0;
  padding: 10px 16px;
  border-radius: 20px;
  background: #8ab4f8;
  color: #202124;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.meet-pill-action:hover {
  background: #aecbfa;
}

.meet-pill-action.full-width {
  width: 100%;
}

/* Telemetry Cards */
.telemetry-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tele-card {
  padding: 12px;
  border-radius: 8px;
  background: #202124;
  border: 1px solid #3c4043;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tele-card-title {
  font-size: 0.74rem;
  color: #9aa0a6;
}

.tele-card strong {
  font-size: 1.15rem;
  color: #fff;
}

.tele-card p {
  margin: 0;
  font-size: 0.7rem;
  color: #80868b;
}

.tele-box {
  padding: 12px;
  border-radius: 8px;
  background: rgba(138, 180, 248, 0.08);
  border: 1px solid rgba(138, 180, 248, 0.2);
}

.tele-box h4 {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: #8ab4f8;
}

.tele-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.76rem;
  color: #9aa0a6;
  line-height: 1.45;
}

/* ── Google Meet Bottom Control Bar ─────────────────────────────────────── */
.meet-bottom-bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #202124;
}

.meet-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.meet-brand-icon {
  font-size: 1.3rem;
}

.meet-info-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.meet-call-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: #e8eaed;
}

.meet-call-time {
  font-size: 0.75rem;
  color: #9aa0a6;
}

.meet-bar-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meet-ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #3c4043;
  color: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.meet-ctrl-btn:hover {
  background: #4f5358;
}

/* Mic Active / Listening = Google Blue */
.meet-ctrl-btn.active,
.meet-ctrl-btn.recording {
  background: #8ab4f8;
  color: #202124;
  box-shadow: 0 0 12px rgba(138, 180, 248, 0.5);
}

.meet-ctrl-btn.muted {
  background: #ea4335;
  color: #fff;
}

.meet-end-call-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  border-radius: 22px;
  border: 0;
  background: #ea4335;
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.meet-end-call-btn:hover {
  background: #d93025;
  transform: scale(1.03);
}

.meet-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  justify-content: flex-end;
}

/* ── Siri Soundwave Visualizer Overlay ──────────────────────────────────── */
.siri-visualizer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(138, 180, 248, 0.15);
  border: 1px solid rgba(138, 180, 248, 0.3);
  font-size: 0.78rem;
  color: #8ab4f8;
}

.siri-orb-mini {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8ab4f8;
}

.siri-wave-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.siri-wave-bars .siri-wave-bar {
  width: 3px;
  height: 10px;
  background: #8ab4f8;
  border-radius: 2px;
  animation: waveBounce 0.8s ease-in-out infinite alternate;
}

.siri-wave-bars .siri-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.siri-wave-bars .siri-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.siri-wave-bars .siri-wave-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes waveBounce {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* ── Post-Interview Diagnostic Report & Line-by-line Cards ──────────────── */
.report-modal-content {
  width: min(840px, calc(100vw - 32px));
  background: #28292c;
  color: #fff;
}

.report-modal-body {
  gap: 16px;
  overflow-y: auto;
  max-height: 70vh;
}

.report-score-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #202124;
  border: 1px solid #3c4043;
}

.grade-badge {
  font-size: 2.8rem;
  font-weight: 800;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.stat-card {
  padding: 12px;
  border-radius: 8px;
  background: #202124;
  border: 1px solid #3c4043;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-title {
  font-size: 0.72rem;
  color: #9aa0a6;
}

.stat-card strong {
  font-size: 1.2rem;
  color: #fff;
}

.stat-bar-bg {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #3c4043;
  overflow: hidden;
  margin-top: 4px;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #34a853;
  transition: width 0.8s ease;
}

.stat-bar-fill.warning {
  background: #fbbc04;
}

.report-section h4 {
  margin: 0 0 10px;
  font-size: 0.96rem;
  color: #8ab4f8;
}

.report-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: #9aa0a6;
  line-height: 1.5;
}

/* Line-by-line Cards */
.transcript-assessment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.turn-assessment-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: #202124;
  border: 1px solid #3c4043;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.turn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #9aa0a6;
}

.turn-grade-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(138, 180, 248, 0.2);
  color: #8ab4f8;
}

.turn-text-box {
  background: #28292c;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: #e8eaed;
  border-left: 3px solid #8ab4f8;
}

.turn-eval-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
}

.turn-eval-meta strong {
  color: #81c995;
}

.turn-rewrite-box {
  background: rgba(129, 201, 149, 0.1);
  border: 1px solid rgba(129, 201, 149, 0.25);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #81c995;
}

/* Modal Shared */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #3c4043;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-sub {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: #9aa0a6;
}

.btn-close {
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #9aa0a6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #3c4043;
  background: #202124;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .lobby-content-grid {
    grid-template-columns: 1fr;
  }
  .meet-viewport {
    flex-direction: column;
  }
  .meet-sidebar {
    width: 100%;
    height: min(42vh, 360px);
  }
  .meet-user-pip {
    width: 140px;
    height: 100px;
  }

  .meet-bottom-bar {
    height: auto;
    min-height: 72px;
    gap: 12px;
    padding: 10px 14px;
  }

  .meet-bar-left,
  .meet-bar-right {
    min-width: 0;
  }

  .meet-call-title,
  .meet-brand-icon {
    display: none;
  }
}

.msg--thinking {
  color: #8e8e93;
  font-style: normal;
  animation: thinking-pulse 1.1s ease-in-out infinite;
}

@keyframes thinking-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.interview-progress {
  margin-top: 10px;
}

.interview-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #bdc1c6;
  font-size: 0.73rem;
}

#session-state-text {
  color: #8ab4f8;
  text-align: right;
}

.interview-progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.interview-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ab4f8, #c58af9);
  transition: width 220ms ease;
}

.chat-retry-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 10px;
  padding: 9px 10px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.1);
  color: #ffc2c2;
  font-size: 0.76rem;
}

.chat-retry-panel button {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f3f6fc;
  color: #202124;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 640px) {
  .lobby-header {
    padding: 14px 16px;
  }

  .lobby-content-grid {
    padding: 18px 14px 32px;
    gap: 20px;
  }

  .lobby-cam-section {
    position: static;
  }

  .lobby-setup-card {
    padding: 20px 16px;
  }

  .form-row {
    flex-direction: column;
  }

  .meet-logo-text {
    font-size: 0.95rem;
  }

  .meet-bottom-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .meet-bar-left {
    order: 2;
  }

  .meet-bar-center {
    order: 1;
    gap: 8px;
  }

  .meet-bar-right {
    order: 3;
  }

  .meet-end-call-btn {
    padding: 0 14px;
  }

  .meet-end-call-btn span {
    display: none;
  }
}
/* ── Seven-stage product workflow ───────────────────────────────────────── */
.workflow-screen {
  min-height: 100vh;
  padding: 48px clamp(24px, 6vw, 88px);
  color: #f7f7f8;
  background:
    radial-gradient(circle at 14% 8%, rgba(99, 102, 241, 0.25), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(14, 165, 233, 0.16), transparent 28%),
    #09090b;
  overflow-y: auto;
}

.workflow-topbar {
  max-width: 1240px;
  margin: 0 auto 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.workflow-topbar.compact { align-items: center; margin-bottom: 28px; }
.workflow-topbar h1 { margin: 6px 0 8px; font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -0.055em; }
.workflow-topbar.compact h1 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.workflow-topbar p { margin: 0; color: #a1a1aa; font-size: 1rem; }
.workflow-eyebrow { color: #a5b4fc; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }

.workflow-primary,
.workflow-secondary,
.workflow-link {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.workflow-primary { color: #fff; background: linear-gradient(135deg, #6366f1, #2563eb); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25); }
.workflow-secondary { color: #f4f4f5; background: #27272a; }
.workflow-link { color: #a5b4fc; background: transparent; padding-inline: 0; }
.workflow-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }

.profile-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}
.profile-card {
  position: relative;
  padding: 24px;
  border: 1px solid #27272a;
  border-radius: 24px;
  color: inherit;
  text-align: left;
  background: linear-gradient(160deg, rgba(39,39,42,.92), rgba(15,15,18,.96));
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.profile-card:hover { transform: translateY(-6px); border-color: #818cf8; }
.profile-avatar { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 24px; font-size: 2.6rem; background: linear-gradient(135deg, #4338ca, #0ea5e9); }
.profile-card h2 { margin: 18px 0 5px; font-size: 1.2rem; }
.profile-card p, .profile-card small { margin: 0; color: #a1a1aa; }
.profile-sparkline { height: 38px; margin-top: 18px; display: flex; align-items: end; gap: 4px; }
.profile-sparkline i { flex: 1; min-height: 5px; border-radius: 4px 4px 1px 1px; background: #6366f1; }
.quick-continue-card { max-width: 1240px; margin: 0 auto 26px; padding: 18px 22px; border: 1px solid rgba(129,140,248,.45); border-radius: 18px; background: rgba(49,46,129,.22); }
.quick-continue-card button { float: right; }

.wizard-layout { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.wizard-step-nav { display: flex; flex-direction: column; gap: 8px; }
.wizard-step-button { padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; color: #a1a1aa; text-align: left; background: transparent; }
.wizard-step-button.active { color: #fff; border-color: #4f46e5; background: rgba(79,70,229,.18); }
.wizard-step-button.complete::after { content: ' ✓'; color: #34d399; }
.wizard-card { padding: 28px; border: 1px solid #27272a; border-radius: 24px; background: rgba(24,24,27,.92); }
.wizard-profile-basics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.wizard-profile-basics label, .wizard-pane label { display: grid; gap: 8px; color: #d4d4d8; font-size: .84rem; font-weight: 700; }
.wizard-pane h2 { margin: 0 0 8px; }
.wizard-pane p { color: #a1a1aa; line-height: 1.65; }
.wizard-file-zone { margin: 18px 0; padding: 30px; border: 1px dashed #52525b; border-radius: 18px; text-align: center; background: #111113; }
.wizard-file-zone input { max-width: 100%; }
.wizard-detected { margin-top: 14px; padding: 12px 14px; border-radius: 12px; color: #a7f3d0; background: rgba(6,78,59,.35); }
.wizard-actions { margin-top: 26px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.wizard-step-count { padding: 8px 12px; border-radius: 999px; color: #c7d2fe; background: rgba(79,70,229,.22); }

.history-toolbar, .history-workspace { max-width: 1240px; margin-inline: auto; }
.history-toolbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.history-filter-group { display: flex; gap: 10px; }
.view-switch { display: flex; padding: 4px; border-radius: 12px; background: #18181b; }
.view-switch button { border: 0; border-radius: 9px; padding: 8px 12px; color: #a1a1aa; background: transparent; cursor: pointer; }
.view-switch button.active { color: #fff; background: #3f3f46; }
.history-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.progress-card, .history-preview, .history-row { border: 1px solid #27272a; background: rgba(24,24,27,.9); }
.progress-card { margin-bottom: 14px; padding: 18px 20px; border-radius: 18px; }
.progress-card > div { display: flex; justify-content: space-between; }
#progress-chart { width: 100%; height: 120px; overflow: visible; }
.history-list { display: grid; gap: 10px; }
.history-list.grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.history-row { padding: 16px; border-radius: 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px; cursor: pointer; }
.history-row:hover, .history-row.active { border-color: #6366f1; }
.history-row h3 { margin: 0 0 6px; }
.history-row p { margin: 0; color: #a1a1aa; font-size: .82rem; }
.history-score { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 1.1rem; font-weight: 800; background: #4f46e5; }
.history-preview { position: sticky; top: 20px; align-self: start; min-height: 300px; padding: 22px; border-radius: 18px; }
.history-preview h2 { margin-top: 0; }
.history-preview ul { padding-left: 20px; color: #d4d4d8; line-height: 1.6; }
.history-empty-state, .history-empty-preview { padding: 44px 18px; color: #a1a1aa; text-align: center; }

.warmup-toggle { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #3c4043; border-radius: 12px; color: #e8eaed; background: #202124; }
.warmup-toggle input { width: 18px; height: 18px; }
.warmup-toggle span { display: grid; gap: 2px; }
.warmup-toggle small { color: #9aa0a6; }
.interviewer-panel { position: absolute; top: 18px; right: 18px; z-index: 12; display: flex; flex-direction: column; gap: 7px; }
.interviewer-persona { padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fff; font-size: .73rem; background: rgba(17,17,20,.76); backdrop-filter: blur(12px); }
.interviewer-persona.active { border-color: #8ab4f8; box-shadow: 0 0 0 2px rgba(138,180,248,.18); }
.report-radar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radar-dimension { padding: 12px; border-radius: 12px; background: #202124; }
.radar-dimension span { display: flex; justify-content: space-between; font-size: .78rem; color: #bdc1c6; }
.radar-dimension i { display: block; height: 6px; margin-top: 8px; border-radius: 99px; background: #8ab4f8; }

@media (max-width: 820px) {
  .workflow-screen { padding: 28px 18px; }
  .workflow-topbar { align-items: flex-start; flex-direction: column; }
  .wizard-layout, .history-workspace { grid-template-columns: 1fr; }
  .wizard-step-nav { flex-direction: row; overflow-x: auto; }
  .wizard-step-button { white-space: nowrap; }
  .wizard-profile-basics, .report-radar { grid-template-columns: 1fr; }
  .history-preview { position: static; }
  .history-toolbar { align-items: stretch; flex-direction: column; }
  .history-filter-group { flex-direction: column; }
}

/* ── IntAIview professional interface system ───────────────────────────── */
:root {
  --int-bg: #1c1c1e;
  --int-panel: #242426;
  --int-panel-hover: #2a2a2c;
  --int-border: #2e2e30;
  --int-border-strong: #3a3a3c;
  --int-blue: #4a7cff;
  --int-green: #34c759;
  --int-amber: #f59e0b;
  --int-red: #ef4444;
  --int-text: #ffffff;
  --int-body: #d1d1d6;
  --int-muted: #8e8e93;
  --int-placeholder: #636366;
}

* { background-image: none !important; text-shadow: none !important; }

html, body, button, input, select, textarea {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "Noto Sans TC", sans-serif;
}

body.meet-app { color: var(--int-body); background: var(--int-bg); font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "Noto Sans TC", sans-serif; font-weight: 400; }
.brand-lockup, .lobby-logo { display: flex; align-items: center; gap: 10px; }
.brand-home { width: fit-content; color: inherit; text-decoration: none; }
.brand-home:hover .brand-word { opacity: .82; }
.brand-word { color: var(--int-text); font-size: 21px; font-weight: 600; letter-spacing: -0.045em; }
.brand-word > span { color: var(--int-blue); }
.brand-word-small { font-size: 16px; }
.brand-powered { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--int-border-strong); border-radius: 6px; color: var(--int-muted); background: var(--int-panel); font-size: 10px; font-weight: 500; white-space: nowrap; }

.workflow-screen { color: var(--int-body); background: var(--int-bg); }
.workflow-topbar h1, .wizard-pane h2, .history-preview h2 { color: var(--int-text); font-weight: 600; letter-spacing: -0.035em; }
.workflow-topbar h1 { font-size: clamp(2rem, 4vw, 3.15rem); }
.workflow-eyebrow { color: var(--int-muted); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }

.workflow-primary, .btn-join-meeting, .meet-pill-action.active { min-height: 40px; padding: 10px 16px; border: 0; border-radius: 8px; color: #fff; background: var(--int-blue); box-shadow: 0 1px 2px rgba(0,0,0,.3); font-weight: 500; }
.workflow-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.workflow-primary:hover, .btn-join-meeting:hover, .meet-pill-action.active:hover { transform: none; filter: brightness(1.05); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.workflow-secondary, .meet-pill-action, .quick-chip, .ctx-upload-pill { min-height: 40px; padding: 9px 16px; border: 1px solid var(--int-border-strong); border-radius: 8px; color: var(--int-body); background: transparent; box-shadow: none; font-weight: 500; }
.workflow-link, .btn-clean-text { color: var(--int-muted); font-weight: 500; }
.workflow-link:hover, .btn-clean-text:hover { color: var(--int-body); background: var(--int-panel-hover); }

.profile-card, .quick-continue-card, .wizard-card, .progress-card, .history-preview, .history-row { border: 1px solid var(--int-border); border-radius: 10px; background: var(--int-panel); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.profile-card:hover, .history-row:hover, .history-row.active { transform: none; border-color: var(--int-border-strong); background: var(--int-panel-hover); }
.profile-avatar { width: 64px; height: 64px; border: 1px solid var(--int-border-strong); border-radius: 10px; color: var(--int-body); background: #2a2a2c; font-size: 18px; font-weight: 600; }
.profile-sparkline i { background: var(--int-blue); }
.wizard-step-button { border-radius: 8px; color: var(--int-muted); }
.wizard-step-button span { display: inline-block; width: 26px; color: var(--int-placeholder); font-variant-numeric: tabular-nums; }
.wizard-step-button.active { color: var(--int-body); border-color: var(--int-border-strong); background: var(--int-panel); }
.wizard-step-button.complete::after { color: var(--int-green); }
.wizard-file-zone { border-color: var(--int-border-strong); border-radius: 10px; background: #202022; }
.wizard-detected { border: 1px solid rgba(52,199,89,.25); border-radius: 8px; color: #7ddf98; background: rgba(52,199,89,.05); }
.view-switch { border: 1px solid var(--int-border); border-radius: 8px; background: var(--int-panel); }
.view-switch button { border-radius: 6px; }
.view-switch button.active { background: var(--int-panel-hover); }
.history-score { border-radius: 8px; background: var(--int-blue); }

.meet-lobby-screen, .meet-viewport, .meet-bottom-bar { color: var(--int-body); background: var(--int-bg); }
.lobby-header { height: 64px; padding: 0 28px; border-bottom: 1px solid var(--int-border); background: var(--int-bg); }
.lobby-content-grid { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0; gap: 28px; align-items: start; }
.lobby-video-card, .lobby-setup-card, .context-source-box, .warmup-toggle { border: 1px solid var(--int-border); border-radius: 10px; background: var(--int-panel); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.lobby-video-card { overflow: hidden; }
.lobby-setup-card { padding: 28px; }
.lobby-setup-card h2 { margin: 0 0 8px; color: var(--int-text); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.setup-sub { color: var(--int-muted); font-size: 14px; line-height: 1.55; }
.lobby-service-status { min-height: auto; margin: 18px 0 22px; padding: 0 0 0 14px; border: 0; color: var(--int-muted); background: transparent; font-size: 13px; position: relative; }
.lobby-service-status::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--int-amber); }
.lobby-service-status.is-ready { color: var(--int-green); background: transparent; border: 0; }
.lobby-service-status.is-ready::before { background: var(--int-green); }
.lobby-service-status.is-error { color: #f87171; background: transparent; border: 0; }
.lobby-service-status.is-error::before { background: var(--int-red); }
.form-group label, .lobby-form label { color: var(--int-muted); font-size: 12px; font-weight: 500; }
.meet-input, .meet-select { min-height: 40px; border: 1px solid var(--int-border); border-radius: 8px; color: var(--int-body); background: #202022; box-shadow: none; font-weight: 400; }
.meet-input:focus, .meet-select:focus { border-color: #5b8def; box-shadow: 0 0 0 1px #5b8def; }
.meet-input::placeholder { color: var(--int-placeholder); }
.warmup-toggle { min-height: 64px; padding: 10px 14px; }
.warmup-toggle strong { color: var(--int-body); font-weight: 500; }
.warmup-toggle small { color: var(--int-muted); }
.warmup-toggle input { accent-color: var(--int-blue); }

.context-disclosure { margin-top: 4px; }
.context-disclosure > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; color: var(--int-body); font-size: 13px; font-weight: 500; cursor: pointer; list-style: none; }
.context-disclosure > summary::-webkit-details-marker { display: none; }
.context-disclosure > summary span { color: var(--int-muted); font-size: 12px; font-weight: 400; }
.context-source-box { padding: 16px; }
.context-tabs-nav { border-bottom: 1px solid var(--int-border); gap: 20px; }
.ctx-tab-btn { padding: 10px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; color: var(--int-muted); background: transparent; font-weight: 500; }
.ctx-tab-btn.active { color: var(--int-body); border-bottom-color: var(--int-blue); background: transparent; }
.ctx-upload-pill { margin-left: auto; min-height: 34px; padding: 7px 11px; }
.lobby-action-row { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.btn-test-interviewer { min-height: 40px; padding: 9px 16px; border: 1px solid var(--int-border-strong); border-radius: 8px; color: var(--int-body); background: transparent; font: inherit; font-weight: 500; cursor: pointer; }
.btn-test-interviewer:hover { background: var(--int-panel-hover); }
.btn-test-interviewer:disabled { color: var(--int-placeholder); cursor: wait; }
.btn-join-meeting { width: 100%; height: 40px; }
.btn-join-meeting:disabled { color: var(--int-muted); background: #2a2a2c; opacity: 1; }
.lobby-gaze-hud, .pip-gaze-badge { top: 14px; left: 14px; padding: 6px 9px; border: 1px solid var(--int-border); border-radius: 6px; color: var(--int-green); background: rgba(42,42,44,.92); font-size: 11px; }
.gaze-dot, .status-dot, .status-with-dot::before { width: 6px; height: 6px; border-radius: 50%; background: var(--int-green); }
.status-with-dot { display: inline-flex; align-items: center; gap: 7px; }
.status-with-dot::before { content: ""; flex: 0 0 auto; }
.lobby-cam-overlay-footer { color: var(--int-muted); background: rgba(28,28,30,.82); }
.lobby-media-controls { gap: 10px; }
.lobby-ctrl-btn { width: 44px; height: 44px; border: 1px solid var(--int-border); background: var(--int-panel-hover); box-shadow: none; }
.lobby-ctrl-btn:hover { background: #303033; transform: none; }
.lobby-ctrl-btn.active { color: var(--int-body); background: var(--int-panel-hover); box-shadow: none; }
.lobby-ctrl-btn.muted { color: #f87171; background: var(--int-panel-hover); box-shadow: none; }

.meet-stage-area { padding: 12px 12px 8px; background: var(--int-bg); }
.meet-viewport.presenter-prewarm { position: fixed !important; inset: 0 auto auto 0 !important; z-index: -1 !important; width: 640px !important; height: 360px !important; display: flex !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden !important; }
.meet-viewport.presenter-prewarm .meet-sidebar { display: none !important; }
.fallback-interviewer { position: absolute; inset: 0; z-index: 1; display: grid; place-items: end center; overflow: hidden; background: #1a1a1a; }
.fallback-interviewer[hidden] { display: none; }
.fallback-interviewer img { max-width: 78%; max-height: 92%; object-fit: contain; transform-origin: 55% 70%; }
.fallback-interviewer.speaking img { animation: interviewer-gesture 2.4s ease-in-out infinite; }
.fallback-mouth { position: absolute; left: 50%; top: 38%; width: 12px; height: 2px; border-radius: 50%; background: #4b2727; transform: translateX(-50%); opacity: .8; }
.fallback-interviewer.speaking .fallback-mouth { animation: interviewer-mouth .18s ease-in-out infinite alternate; }
@keyframes interviewer-mouth { to { height: 9px; transform: translateX(-50%) scaleX(.8); } }
@keyframes interviewer-gesture { 50% { transform: rotate(-1.2deg) translateY(-3px); } }
.meet-viewport.preview-mode .meet-sidebar,
.meet-viewport.preview-mode .meet-user-pip { display: none; }
.meet-viewport.preview-mode .meet-stage-area { width: 100%; padding: 20px; }
.meet-video-tile { border: 1px solid var(--int-border); border-radius: 10px; background: #151516; }
.meet-user-pip { border: 1px solid var(--int-border); border-radius: 10px; box-shadow: none; }
.meet-sidebar { border-left: 1px solid var(--int-border); background: var(--int-panel); box-shadow: none; }
.gaze-dot, .gaze-dot.wandering { box-shadow: none; }
.sidebar-tabs { border-bottom: 1px solid var(--int-border); background: var(--int-panel); }
.sidebar-tab { color: var(--int-muted); background: transparent; }
.sidebar-tab.active { color: var(--int-body); background: transparent; border-bottom-color: var(--int-blue); }
.chat-header-info h3 { color: var(--int-body); font-weight: 600; }
.chat-header-info p { color: var(--int-muted); }
.interview-progress-track { height: 2px; background: var(--int-border); }
.interview-progress-bar { background: var(--int-blue); box-shadow: none; }
.meet-telemetry-hud { display: flex; align-items: center; gap: 22px; padding: 9px 12px; border: 1px solid var(--int-border); border-radius: 8px; background: rgba(36,36,38,.92); box-shadow: none; }
.hud-tele-item { display: flex; align-items: baseline; gap: 7px; }
.hud-tele-item .tele-label { color: var(--int-muted); font-size: 11px; }
.hud-tele-item strong { color: var(--int-body); font-size: 13px; }
.meet-tag-badge, .tile-name-badge, .interviewer-persona { border: 1px solid var(--int-border); border-radius: 6px; background: rgba(42,42,44,.92); box-shadow: none; }
.meet-tag-badge.success { color: var(--int-body); background: rgba(42,42,44,.92); }
.tile-name-badge { padding: 7px 10px; }
.meet-status-pill { color: var(--int-green); }

.msg { border-radius: 10px; }
.msg--assistant { color: var(--int-body); background: #2a2a2c; }
.msg--user { color: #fff; background: #354e86; }
.msg--interruption, .msg--error { border: 1px solid rgba(239,68,68,.45); color: #f87171; background: rgba(239,68,68,.04); }
.quick-prompt-chips { gap: 6px; }
.quick-chip { min-height: 30px; padding: 6px 10px; color: var(--int-muted); font-size: 11px; }
.quick-chip:hover { color: var(--int-body); border-color: var(--int-border-strong); background: var(--int-panel-hover); }
.quick-chip.danger { color: #f87171; border-color: rgba(239,68,68,.35); background: transparent; }
.meet-chat-input-bar { border: 1px solid var(--int-border); border-radius: 8px; background: var(--int-panel); }
.meet-chat-input-bar .meet-input { border: 0; background: transparent; }
.meet-btn-send { width: 36px; height: 36px; border-radius: 50%; background: var(--int-blue); box-shadow: none; }

.meet-bottom-bar { height: 64px; border-top: 1px solid var(--int-border); }
.meet-ctrl-btn { width: 40px; height: 40px; border: 1px solid var(--int-border); background: var(--int-panel-hover); box-shadow: none; }
.meet-ctrl-btn:hover { background: #303033; }
.meet-ctrl-btn.active, .meet-ctrl-btn.recording { color: var(--int-body); background: #343438; box-shadow: none; }
.meet-ctrl-btn.muted, .meet-end-call-btn { color: #fff; background: var(--int-red); box-shadow: none; }
.meet-end-call-btn { height: 40px; border-radius: 8px; }
.stage-loading { color: var(--int-muted); background: var(--int-bg); }
.loading-ring { width: 72px; height: 72px; display: grid; place-items: center; border: 2px solid var(--int-border); border-top-color: var(--int-blue); border-radius: 50%; }
.loading-ring span { color: var(--int-body); font-size: 13px; font-variant-numeric: tabular-nums; }

.tele-card, .tele-box, .stat-card, .turn-assessment-card, .radar-dimension { border: 1px solid var(--int-border); border-radius: 10px; background: var(--int-panel); box-shadow: none; }
.stat-bar-bg { background: var(--int-border); }
.stat-bar-fill { background: var(--int-blue); }
.stat-bar-fill.warning { background: var(--int-amber); }
.apple-modal-content { border: 1px solid var(--int-border); border-radius: 10px; background: var(--int-panel); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.apple-modal-overlay { background: rgba(15,15,16,.72); backdrop-filter: blur(4px); }
.apple-segmented { border-radius: 8px; background: #202022; }
.apple-segment-tab { border-radius: 6px; color: var(--int-muted); }
.apple-segment-tab.active { color: var(--int-body); background: var(--int-panel-hover); box-shadow: none; }
.apple-grid-card { border: 1px solid var(--int-border); border-radius: 10px; background: #202022; box-shadow: none; }
.apple-grid-card.selected { border-color: var(--int-blue); background: var(--int-panel-hover); box-shadow: none; }
.apple-grid-card-icon { color: var(--int-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; }

@media (max-width: 980px) {
  .lobby-content-grid { width: min(720px, calc(100% - 28px)); padding: 20px 0; }
  .lobby-setup-card { padding: 22px; }
  .meet-telemetry-hud { gap: 12px; }
}
