:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1728;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --panel-line: rgba(148, 163, 184, 0.22);
  --text: #0f172a;
  --muted: #5b6b83;
  --muted-strong: #314156;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --shadow-lg: 0 28px 80px rgba(2, 6, 23, 0.42);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.14);
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(900px 540px at 10% 10%, rgba(59, 130, 246, 0.28), transparent 60%),
    radial-gradient(760px 520px at 90% 0%, rgba(147, 51, 234, 0.2), transparent 58%),
    radial-gradient(840px 560px at 70% 100%, rgba(16, 185, 129, 0.16), transparent 60%),
    linear-gradient(180deg, #08111f 0%, #0a1526 45%, #0d1628 100%);
}

.siteBackdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.siteGlow {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.45;
}

.glowA {
  top: 40px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: rgba(37, 99, 235, 0.35);
}

.glowB {
  top: -140px;
  right: -100px;
  width: 460px;
  height: 460px;
  background: rgba(139, 92, 246, 0.26);
}

.glowC {
  bottom: -140px;
  left: 45%;
  width: 420px;
  height: 420px;
  background: rgba(16, 185, 129, 0.18);
}

.gridOverlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
}

.container {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 40px;
  color: var(--text);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 20, 36, 0.84), rgba(10, 18, 32, 0.7));
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brandMark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brandMark svg {
  width: 42px;
  height: 42px;
  display: block;
}

.brandCopy {
  min-width: 0;
}

.eyebrow,
.sectionEyebrow {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.eyebrow {
  color: rgba(191, 219, 254, 0.92);
  margin-bottom: 6px;
}

.sectionEyebrow {
  color: #5f7290;
  margin-bottom: 8px;
}

.title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
  color: #f8fbff;
  letter-spacing: -0.03em;
}

.headerMeta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.headerBadge {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(37, 99, 235, 0.18);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.54);
  color: #dbe7f7;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}

.status.ok {
  color: #dcfce7;
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(20, 83, 45, 0.28);
}

.status.ok::before {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.status.bad {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(127, 29, 29, 0.28);
}

.status.bad::before {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.status.neutral::before {
  background: #94a3b8;
}

.panel {
  border: 1px solid var(--panel-line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
}

.authPanel {
  padding: 28px;
}

.authLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 420px);
  gap: 24px;
  align-items: stretch;
}

.heroPanel {
  min-width: 0;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.92), rgba(17, 24, 39, 0.88)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), transparent 45%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  display: grid;
  gap: 18px;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.25);
}

.heroPill,
.formChip,
.miniBadge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.heroPill {
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(37, 99, 235, 0.18);
}

.heroTitle {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.heroText {
  margin: 0;
  max-width: 62ch;
  color: #c6d3e6;
  font-size: 15px;
  line-height: 1.7;
}

.featureGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.featureCard {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.featureIcon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 14px;
}

.featureIcon svg {
  width: 22px;
  height: 22px;
}

.featureBlue {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.22);
}

.featurePurple {
  color: #f3e8ff;
  background: rgba(147, 51, 234, 0.2);
}

.featureGreen {
  color: #dcfce7;
  background: rgba(22, 163, 74, 0.2);
}

.featureTitle {
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 8px;
}

.featureText {
  color: #c6d3e6;
  font-size: 13px;
  line-height: 1.55;
}

.metricsRow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metricCard {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metricValue {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.metricLabel {
  font-size: 13px;
  color: #c6d3e6;
}

.authForm {
  align-self: center;
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel-strong), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-md);
}

.formChip {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.authTitle {
  font-size: 28px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.authSubtitle {
  margin-top: -4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.trustNote {
  padding-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.roleRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.roleChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  user-select: none;
}

.roleChip input {
  margin: 0;
}

.errorText {
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
}

.workspacePanel {
  padding: 28px;
}

.workspaceHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.workspaceIntro {
  max-width: 760px;
}

.workspaceTitle {
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
}

.workspaceSubtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.workspaceHighlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.highlightCard {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.92));
  box-shadow: var(--shadow-sm);
}

.highlightTitle {
  font-size: 15px;
  font-weight: 760;
  color: var(--text);
  margin-bottom: 8px;
}

.highlightText {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.fieldWithIcon {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.fieldWithIcon .input {
  width: 100%;
  min-width: 0;
  padding-right: 46px;
}

.iconBtn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.iconBtn svg {
  width: 18px;
  height: 18px;
}

.iconBtn:hover {
  background: rgba(241, 245, 249, 0.96);
  transform: translateY(calc(-50% - 1px));
}

.iconBtn:active {
  transform: translateY(-50%);
}

.iconBtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), 0 10px 24px rgba(37, 99, 235, 0.14);
}

.formRow {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92));
}

.divider {
  margin: 6px 0 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn,
.controlBtn,
.tabBtn {
  position: relative;
  overflow: hidden;
}

.btn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
  color: var(--text);
  padding: 12px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn::after,
.controlBtn::after,
.tabBtn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-140%);
  transition: transform 420ms ease;
}

.btn:hover,
.controlBtn:hover,
.tabBtn:hover {
  transform: translateY(-1px);
}

.btn:hover::after,
.controlBtn:hover::after,
.tabBtn:hover::after {
  transform: translateX(140%);
}

.btn:active,
.controlBtn:active,
.tabBtn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.controlBtn:focus-visible,
.tabBtn:focus-visible,
.input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), 0 10px 24px rgba(37, 99, 235, 0.14);
}

.btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.primary {
  border-color: rgba(37, 99, 235, 0.34);
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.24);
}

.btn.primary:hover {
  border-color: rgba(37, 99, 235, 0.38);
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

.btn.danger {
  border-color: rgba(239, 68, 68, 0.24);
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.96), rgba(254, 202, 202, 0.92));
  color: #7f1d1d;
}

.btn.danger:hover {
  background: linear-gradient(180deg, rgba(254, 202, 202, 0.96), rgba(254, 186, 186, 0.94));
}

.btn.primary::before,
.btn.danger::before,
#tabScheduleBtn::before,
#tabJoinBtn::before,
#micBtn::before,
#camBtn::before,
#screenShareBtn::before,
#leaveBtn::before {
  content: "";
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  position: relative;
  z-index: 1;
  flex: 0 0 16px;
}

#authBtn::before,
#logoutBtn::before,
#tabScheduleBtn::before,
#tabJoinBtn::before,
#micBtn::before,
#camBtn::before,
#screenShareBtn::before,
#leaveBtn::before {
  content: "";
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  position: relative;
  z-index: 1;
  flex: 0 0 16px;
}

#authBtn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M8 11V8a4 4 0 1 1 8 0v3M7 11h10a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}

#logoutBtn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%237f1d1d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M10 17l5-5-5-5M15 12H4'/%3E%3Cpath stroke='%237f1d1d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M20 19V5'/%3E%3C/svg%3E");
}

#tabScheduleBtn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Crect x='4' y='5' width='16' height='15' rx='3' stroke='%231e3a8a' stroke-width='1.8'/%3E%3Cpath stroke='%231e3a8a' stroke-linecap='round' stroke-width='1.8' d='M8 3v4M16 3v4M4 10h16'/%3E%3C/svg%3E");
}

#tabJoinBtn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='6' width='12.5' height='12' rx='3' stroke='%230f172a' stroke-width='1.8'/%3E%3Cpath stroke='%230f172a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m16 10 4-2v8l-4-2'/%3E%3C/svg%3E");
}

#micBtn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Crect x='9' y='3.5' width='6' height='11' rx='3' stroke='%23e5e7eb' stroke-width='1.8'/%3E%3Cpath stroke='%23e5e7eb' stroke-linecap='round' stroke-width='1.8' d='M6.5 11.5a5.5 5.5 0 0 0 11 0M12 17v3M9 20h6'/%3E%3C/svg%3E");
}

#camBtn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Crect x='4' y='7' width='12' height='10' rx='3' stroke='%23e5e7eb' stroke-width='1.8'/%3E%3Cpath stroke='%23e5e7eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m16 10 4-2v8l-4-2'/%3E%3C/svg%3E");
}

#screenShareBtn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='5' width='17' height='11' rx='2.5' stroke='%23e5e7eb' stroke-width='1.8'/%3E%3Cpath stroke='%23e5e7eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M12 18v3M8.5 21h7M12 9V5m0 0 2.5 2.5M12 5 9.5 7.5'/%3E%3C/svg%3E");
}

#leaveBtn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23fee2e2' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m8 8 8 8M16 8l-8 8'/%3E%3C/svg%3E");
}

.input {
  flex: 1;
  min-width: 220px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 14px 15px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.input::placeholder {
  color: #7b8ba5;
}

.input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: rgba(241, 245, 249, 0.92);
}

.meetingInfo {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(248, 250, 252, 0.96));
  color: #12345c;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.waitingCard,
.dashboard {
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
  box-shadow: var(--shadow-sm);
}

.aiCard {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(248, 250, 252, 0.96));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.08);
  display: grid;
  gap: 14px;
}

.aiHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.aiTitle {
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -0.02em;
  color: var(--text);
}

.aiBadge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.aiBadge.good {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(220, 252, 231, 0.9);
  color: #166534;
}

.aiBadge.warn {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(254, 243, 199, 0.95);
  color: #92400e;
}

.aiBadge.bad {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(254, 226, 226, 0.95);
  color: #991b1b;
}

.aiIntroText {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-strong);
}

.aiProgressRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aiProgress {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e3a8a;
}

.aiTimer {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f172a;
}

.aiQuestion {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.6;
  color: var(--text);
}

.aiTranscript {
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.aiResponseGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: start;
}

.aiTextarea {
  width: 100%;
  min-height: 148px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 14px 15px;
  font-size: 14px;
  line-height: 1.6;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.aiTextarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), 0 10px 24px rgba(37, 99, 235, 0.14);
}

.aiTools {
  display: grid;
  gap: 10px;
}

.aiMeta {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.aiFooter {
  justify-content: space-between;
}

.aiFeedback {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(239, 246, 255, 0.9);
  color: #12345c;
  font-size: 14px;
  line-height: 1.7;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.cardHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cardTitleGroup {
  min-width: 0;
}

.miniBadge {
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.92);
}

.waitingTitle,
.dashboardTitle {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.waitingBody {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-strong);
}

.waitingMeta {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tabBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.tabBtn.active {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.94));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.dashList {
  display: grid;
  gap: 14px;
}

.dashItem {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dashLeft {
  display: grid;
  gap: 6px;
}

.dashPrimary {
  font-weight: 780;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.dashSecondary {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.dashActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  text-transform: capitalize;
}

.pill.good {
  border-color: rgba(34, 197, 94, 0.28);
  color: #166534;
  background: rgba(220, 252, 231, 0.94);
}

.pill.warn {
  border-color: rgba(245, 158, 11, 0.28);
  color: #92400e;
  background: rgba(254, 243, 199, 0.96);
}

.pill.bad {
  border-color: rgba(239, 68, 68, 0.28);
  color: #991b1b;
  background: rgba(254, 226, 226, 0.96);
}

.hidden {
  display: none;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
}

.videoCard {
  border: 1px solid rgba(226, 232, 240, 0.1);
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(30, 41, 59, 0.86), #050b14 70%);
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.56);
}

.videoCard.proctorFlagged {
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow:
    0 0 0 2px rgba(248, 113, 113, 0.5),
    0 22px 58px rgba(127, 29, 29, 0.8);
}

.videoLabel {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.proctorFlag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.96);
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  z-index: 3;
  box-shadow: 0 10px 22px rgba(127, 29, 29, 0.62);
}

video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050b14;
  object-fit: cover;
}

.remoteGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-auto-rows: minmax(200px, 1fr);
  gap: 16px;
  align-content: stretch;
}

.meetingPanel {
  padding: 0;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 28%),
    linear-gradient(180deg, #040913, #09111e 38%, #07101c 100%);
  overflow: hidden;
}

.meetingPanel:not(.hidden) {
  display: flex;
  flex-direction: column;
}

.meetingStage {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

#remoteVideos.remoteGrid {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.localCard {
  border-color: rgba(255, 255, 255, 0.1);
}

.videoOffOverlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.72);
  z-index: 3;
}

.meetingBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(18px);
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.aiHud {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  z-index: 4;
  backdrop-filter: blur(10px);
}

.aiHudIcons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(226, 232, 240, 0.92);
}

.aiHudIcon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aiHudIcon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.aiHudStatus {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.aiMeetingBar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.aiMeetingStatus {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dbeafe;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(37, 99, 235, 0.18);
}

.aiCenterOverlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 25;
}

.aiCenterOverlayText {
  width: min(860px, calc(100vw - 40px));
  padding: 22px 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  font-size: clamp(1.45rem, 3.2vw, 2.5rem);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.7);
  letter-spacing: -0.02em;
}

body.aiInterview #remoteVideos {
  display: none;
}

body.aiInterview .codePill,
body.aiInterview .meetingBarRight {
  display: none;
}

body.aiInterview #aiMeetingBar {
  display: inline-flex;
}

body.aiInterview #aiMeetingFinishBtn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 30;
}

body.aiInterview .meetingStage {
  align-items: center;
  justify-content: flex-start;
}

body.aiInterview #localCard {
  position: fixed;
  right: 18px;
  bottom: 92px;
  width: min(320px, 42vw);
  aspect-ratio: 16 / 9;
  z-index: 12;
}

body.aiInterview #aiInterviewCard {
  width: min(980px, 100%);
  margin-top: 0;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
  box-shadow: 0 22px 64px rgba(2, 6, 23, 0.65);
}

body.aiInterview #aiInterviewCard .sectionEyebrow {
  color: rgba(191, 219, 254, 0.8);
}

body.aiInterview #aiInterviewCard .aiTitle {
  color: #f8fafc;
}

body.aiInterview #aiInterviewCard .aiProgress,
body.aiInterview #aiInterviewCard .aiTimer {
  color: rgba(191, 219, 254, 0.9);
}

body.aiInterview #aiInterviewCard .aiTimer {
  display: none;
}

body.aiInterview #aiInterviewCard .aiQuestion,
body.aiInterview #aiInterviewCard .aiTranscript,
body.aiInterview #aiInterviewCard .aiMeta,
body.aiInterview #aiInterviewCard .aiFeedback {
  background: rgba(2, 6, 23, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(226, 232, 240, 0.92);
}

body.aiInterview #aiInterviewCard .aiTextarea,
body.aiInterview #aiInterviewCard .aiResponseGrid {
  display: none;
}

body.aiInterview #aiInterviewCard .aiFooter {
  display: none;
}

body.inMeeting {
  overflow: hidden;
}

body.inMeeting .container {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.inMeeting .header,
body.inMeeting #auth,
body.inMeeting #lobby {
  display: none;
}

body.inMeeting #meeting.panel {
  position: fixed;
  inset: 0;
  border-radius: 0;
}

#meeting.presenting .meetingStage {
  flex-direction: row;
}

.presenterStage {
  flex: 1;
  min-width: 0;
  min-height: 0;
}

#meeting.presenting .presenterStage {
  display: block;
}

#meeting.presenting .presenterStage .videoCard {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

#meeting.presenting .presenterStage video {
  object-fit: contain;
  background: #050b14;
}

#meeting.presenting #remoteVideos {
  width: 336px;
  flex: 0 0 336px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

#meeting.presenting #remoteVideos .videoCard {
  min-height: 120px;
  aspect-ratio: 16 / 9;
}

.meetingBarRight {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.codePill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.58);
  color: #e2e8f0;
  font-size: 13px;
  white-space: nowrap;
}

.controlBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #e5e7eb;
  padding: 12px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.controlBtn:hover {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.28);
}

.controlBtn.off {
  border-color: rgba(239, 68, 68, 0.38);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.26);
}

.controlBtn.danger {
  border-color: rgba(239, 68, 68, 0.38);
  background: linear-gradient(180deg, #991b1b, #7f1d1d);
  color: #fee2e2;
}

.controlBtn.danger:hover {
  background: linear-gradient(180deg, #b91c1c, #991b1b);
}

.proctorOverlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
}

.proctorPanel {
  width: min(580px, 100%);
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 28px 68px rgba(2, 6, 23, 0.45);
  display: grid;
  gap: 12px;
}

.proctorTitle {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.proctorBody {
  font-size: 14px;
  color: var(--muted-strong);
  line-height: 1.6;
}

.proctorCount {
  font-size: 13px;
  color: var(--muted);
}

.proctorActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1080px) {
  .authLayout {
    grid-template-columns: 1fr;
  }

  .featureGrid,
  .metricsRow,
  .workspaceHighlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100%, calc(100% - 20px));
    margin: 18px auto 28px;
  }

  .header,
  .authPanel,
  .workspacePanel {
    padding: 18px;
    border-radius: 22px;
  }

  .header,
  .workspaceHeader,
  .cardHeader,
  .meetingBar {
    flex-direction: column;
    align-items: stretch;
  }

  .headerMeta {
    justify-content: flex-start;
  }

  .authForm,
  .heroPanel,
  .waitingCard,
  .dashboard {
    padding: 18px;
  }

  .workspaceTitle,
  .dashboardTitle,
  .waitingTitle {
    font-size: 22px;
  }

  .remoteGrid {
    grid-template-columns: 1fr;
  }

  .aiResponseGrid {
    grid-template-columns: 1fr;
  }

  #meeting.presenting .meetingStage {
    flex-direction: column;
  }

  #meeting.presenting #remoteVideos {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 560px) {
  .brand {
    align-items: flex-start;
  }

  .brandMark {
    width: 48px;
    height: 48px;
  }

  .title {
    font-size: 22px;
  }

  .heroTitle {
    font-size: 34px;
  }

  .btn,
  .tabBtn,
  .controlBtn,
  .input {
    width: 100%;
  }

  .meetingBarRight {
    width: 100%;
  }
}
