/* virtual_rounds — estilos de app (no Tailwind utility) */

body.ipr-body {
  font-family: Lato, Inter, sans-serif;
  background-color: #f8f9fa;
  color: #374151;
}

body.ipr-body input::placeholder {
  color: #9ca3af;
}

.file-picker + [type="file"] {
  display: none;
}

@media (max-width: 767px) {
  [data-dropdown-menu].notif-mobile {
    position: fixed;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 30px);
  }
}

#global-notif-badge {
  top: 8px;
  left: 28px;
}

@keyframes ipr-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ipr-fade-in {
  animation: ipr-fade-in 0.8s ease-out;
}

.ipr-hero-kicker {
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.sf-card-gradient-primary {
  background: linear-gradient(to right, rgba(20, 108, 179, 0.06), rgba(20, 108, 179, 0.02));
}

.sf-card-gradient-warning {
  background: linear-gradient(to right, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.02));
}

.sf-badge-warning {
  border-color: #f59e0b;
  color: #92400e;
  background-color: rgba(245, 158, 11, 0.08);
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

.password-requirements i,
.password-requirements .req-item {
  transition: all 0.3s ease;
}

#passwordForm input {
  background-image: none;
}

.accordion-arrow.is-open {
  transform: rotate(180deg);
}

.social-signup-fields input:not([type="hidden"]),
.social-signup-fields select,
.social-signup-fields textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  outline: none;
}

.social-signup-fields input:focus,
.social-signup-fields select:focus,
.social-signup-fields textarea:focus {
  border-color: #146cb3;
  box-shadow: 0 0 0 3px rgba(20, 108, 179, 0.2);
}

/* admin: all meetings / view tables */
.time-slot-tabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.time-slot-tabs::-webkit-scrollbar {
  display: none;
}

.time-slot-tab-btn.active {
  background-color: rgba(20, 108, 179, 0.1);
  color: #146cb3;
  border-color: rgba(20, 108, 179, 0.3);
}

.connection-line {
  position: relative;
  padding-left: 1.5rem;
  margin-left: 1.2rem;
  border-left: 2px dashed #e5e7eb;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.connection-icon {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 4px;
  color: #146cb3;
}

body.ipr-view-tables {
  background: #ffffff;
  min-height: 100vh;
}

.ipr-view-tables-page {
  min-height: 100vh;
  margin-top: 5px;
}

.meeting-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #146cb3;
}

.meeting-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.company-logo,
.participant-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 20%;
  border: 2px solid #146cb3;
  background: #fff;
}

.company-name,
.meeting-company-name {
  font-size: 35px;
  font-weight: 700;
  color: #146cb3;
}

.connection-line .connection-icon {
  color: #146cb3;
  font-size: 1.5rem;
}

.card-puntos {
  border: 1px dashed #d1d5db;
  background: #f8f9fa;
  opacity: 40%;
  border-radius: 1.5rem;
  box-sizing: border-box;
}

.card-puntos.card-puntos--transparent,
.card-puntos-header {
  background: transparent;
}

.card-puntos .sin-reunion-text,
.card-puntos .sin-reunion-icon {
  color: #9ca3af;
}

.fondo-reloj {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #10568f 0%, #146cb3 45%, #1a7fc4 100%);
  min-height: 180px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.12);
}

.fondo-reloj::before,
.fondo-reloj::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 130%;
  border-radius: 50%;
  pointer-events: none;
}

.fondo-reloj::before {
  bottom: -120px;
  height: 220px;
  background: rgba(255, 255, 255, 0.07);
  transform: rotate(-2deg);
}

.fondo-reloj::after {
  bottom: -150px;
  height: 260px;
  background: rgba(0, 0, 0, 0.08);
  transform: rotate(3deg);
}

.fondo-reloj > * {
  position: relative;
  z-index: 2;
}

.digital-clock {
  font-size: 90px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  text-align: center;
  letter-spacing: 2px;
  margin-top: 10px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ipr-view-tables .time-slot-tab-btn {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: #2d2d2d;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ipr-view-tables .time-slot-tab-btn.active {
  background: #146cb3;
  color: #ffffff;
}

.break-overlay-text {
  position: fixed;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) rotate(-8deg);
  z-index: 1;
  font-size: 356px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(20, 108, 179, 0.12);
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Staff: rounds setting */
.staff-topbar--scrolled {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-color: #e5e7eb;
}

.ambient-glow {
  transition: box-shadow 0.3s ease;
}

.ambient-glow:hover {
  box-shadow: 0 10px 30px -10px rgba(20, 108, 179, 0.12);
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.slot-cell--disabled {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.ipr-toggle {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: #9ca3af;
  cursor: pointer;
  transition: background-color 0.2s ease;
  vertical-align: middle;
}

.ipr-toggle::after {
  content: "";
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background-color: #ffffff;
  transition: transform 0.2s ease;
}

.ipr-toggle-input:checked + .ipr-toggle {
  background-color: #146cb3;
}

.ipr-toggle-input:checked + .ipr-toggle::after {
  transform: translateX(1.25rem);
}

.ipr-role-toggle {
  width: 3rem;
  background-color: rgb(255 255 255 / 0.2);
}

.ipr-toggle-input:checked + .ipr-role-toggle {
  background-color: #146cb3;
}

.ipr-toggle-input:disabled + .ipr-toggle,
.ipr-toggle-input:disabled + .ipr-role-toggle {
  opacity: 0.45;
  cursor: not-allowed;
}

.ipr-form-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ipr-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  color: #374151;
}

.ipr-form-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ipr-form-input:focus {
  border-color: #146cb3;
  box-shadow: 0 0 0 2px rgb(20 108 179 / 0.2);
}

/* Focus rings / loading accents */
:focus-visible {
  outline: 2px solid #146cb3;
  outline-offset: 2px;
}

.ipr-loading {
  color: #146cb3;
}

/* Checkbox / radio accent (native controls) */
body.ipr-body input[type="checkbox"],
body.ipr-body input[type="radio"] {
  accent-color: #146cb3;
}

/* Admin control panel shell (staff-only) */
.vr-admin-shell {
  display: flex;
  min-height: calc(100dvh - 6rem);
  background: #f8f9fa;
}

.vr-admin-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  height: calc(100dvh - 6rem);
  width: 256px;
  flex-shrink: 0;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
}

.vr-admin-sidebar-brand {
  display: flex;
  height: 4rem;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 1.25rem;
}

.vr-admin-sidebar-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.5rem;
  background: #146cb3;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
}

.vr-admin-sidebar-brand-text {
  line-height: 1.2;
}

.vr-admin-sidebar-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.vr-admin-sidebar-subtitle {
  margin: 0;
  font-size: 0.6875rem;
  color: #6b7280;
}

.vr-admin-sidebar-nav {
  flex: 1;
  padding: 0.75rem;
}

.vr-admin-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vr-admin-nav + .vr-admin-nav {
  margin-top: 0.125rem;
}

.vr-admin-nav:hover,
.vr-admin-nav.is-active {
  background: #f3f4f6;
  color: #111827;
}

.vr-admin-nav.is-active {
  font-weight: 600;
  color: #146cb3;
  background: rgba(20, 108, 179, 0.08);
}

.vr-admin-nav.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.vr-admin-panel-card.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.vr-admin-panel-card.is-disabled .vr-admin-panel-card-icon {
  background: #f3f4f6;
  color: #9ca3af;
}

.vr-admin-sidebar-back {
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem;
}

.vr-admin-sidebar-back .vr-admin-nav:hover,
.vr-admin-sidebar-back .vr-admin-nav:focus-visible {
  background: rgba(20, 108, 179, 0.08);
  color: #146cb3;
  font-weight: 600;
}

.vr-admin-content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
  .vr-admin-content {
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .vr-admin-sidebar {
    display: none;
  }
}

/* Profile review dossier (admin evaluation) */
.vr-dossier {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.vr-dossier-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .vr-dossier-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }

  .vr-dossier-aside {
    position: sticky;
    top: 6rem;
  }
}

.vr-dossier-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vr-dossier-header,
.vr-dossier-executive,
.vr-dossier-section,
.vr-dossier-eval {
  padding: 1rem;
}

@media (min-width: 640px) {
  .vr-dossier-header,
  .vr-dossier-executive,
  .vr-dossier-section,
  .vr-dossier-eval {
    padding: 1.25rem;
  }
}

.vr-dossier-header-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .vr-dossier-header-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
  }
}

.vr-dossier-header-identity {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.vr-dossier-avatars {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
}

.vr-dossier-avatar {
  object-fit: cover;
  background: #f3f4f6;
}

.vr-dossier-avatar-photo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vr-dossier-avatar-logo {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 2px solid #fff;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vr-dossier-avatar-placeholder {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  background: rgba(20, 108, 179, 0.1);
  color: #146cb3;
  font-size: 1.5rem;
  font-weight: 700;
}

.vr-dossier-company {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.vr-dossier-rep {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: #374151;
}

.vr-dossier-activity,
.vr-dossier-location {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.vr-dossier-meta-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.vr-dossier-meta-list dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.vr-dossier-meta-list dd {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.vr-dossier-header-actions,
.vr-dossier-eval-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.vr-dossier-card-header {
  margin-bottom: 0.75rem;
}

.vr-dossier-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #146cb3;
}

.vr-dossier-card-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

.vr-dossier-card-lead {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.vr-dossier-exec-grid {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

@media (min-width: 640px) {
  .vr-dossier-exec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vr-dossier-exec-grid > div {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.vr-dossier-exec-grid dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.vr-dossier-exec-grid dd {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.vr-dossier-fields {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .vr-dossier-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vr-dossier-fields--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem 0.75rem;
    align-items: start;
  }
}

.vr-dossier-fields--compact .vr-dossier-media {
  width: 5rem;
  height: 5rem;
}

.vr-dossier-field-label {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9ca3af;
}

.vr-dossier-field-value {
  margin: 0;
  font-size: 0.95rem;
  color: #111827;
  line-height: 1.55;
  white-space: pre-wrap;
}

.vr-dossier-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 7rem;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.vr-dossier-media-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.vr-dossier-subsection {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #eef2f7;
}

.vr-dossier-subsection:first-of-type {
  margin-top: 0.5rem;
}

.vr-dossier-subsection-title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #146cb3;
}

.vr-readonly-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vr-readonly-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(20, 108, 179, 0.35);
  background: rgba(20, 108, 179, 0.1);
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #146cb3;
}

.vr-dossier-map {
  margin-top: 1.5rem;
}

.vr-dossier-map-frame {
  width: 100%;
  height: 14rem;
  border: 0;
  border-radius: 1rem;
  background: #f3f4f6;
}

.vr-dossier-map-caption {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.vr-dossier-eval-status {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.vr-dossier-eval-status dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.vr-dossier-eval-status dd {
  margin: 0.25rem 0 0;
}

.vr-dossier-eval-complete {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.vr-dossier-observations {
  min-height: 7rem;
  resize: vertical;
}

.vr-dossier-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

.vr-dossier-rejection-box {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.vr-btn-reject {
  border: 0;
  background: #dc2626;
  color: #fff;
  transition: background-color 0.15s ease;
}

.vr-btn-reject:hover {
  background: #b91c1c;
}

.vr-btn-reject:disabled {
  cursor: not-allowed;
  background: #d1d5db;
  color: #6b7280;
}

/* Flujo de videollamada */
[data-meeting-page] main {
  min-height: calc(100vh - 4rem);
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 192, 139, 0.12), transparent 30rem),
    #f4fbf4;
}

.meeting-flow {
  --meeting-primary: #006c4d;
  --meeting-accent: #00a879;
  --meeting-surface: #fff;
  --meeting-muted: #5f6d64;
  --meeting-border: #dce7df;
  min-height: calc(100vh - 4rem);
  padding: 2rem;
  color: #18201b;
}

.meeting-flow .hidden {
  display: none !important;
}

.meeting-pre-state {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.meeting-pre-header {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.meeting-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--meeting-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meeting-pre-header h1,
.meeting-device-panel h2,
.meeting-participant-panel h2 {
  margin: 0;
  color: #162019;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.meeting-pre-header p,
.meeting-device-panel p,
.meeting-waiting p,
.meeting-participant-panel p {
  color: var(--meeting-muted);
}

.meeting-countdown {
  margin-top: 0.75rem;
  color: var(--meeting-accent);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.meeting-pre-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(19rem, 0.8fr);
  gap: 1.5rem;
}

.meeting-preview-card,
.meeting-device-panel,
.meeting-stage,
.meeting-participant-panel {
  border: 1px solid var(--meeting-border);
  border-radius: 1.75rem;
  background: var(--meeting-surface);
  box-shadow: 0 1.5rem 4rem rgba(22, 45, 30, 0.08);
}

.meeting-preview-card {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  background: #15211a;
}

.meeting-preview-card video,
.meeting-remote-video video,
.meeting-local-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meeting-preview-card video {
  position: absolute;
  inset: 0;
  transform: scaleX(-1);
}

.meeting-camera-off {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  color: #fff;
  text-align: center;
}

.meeting-camera-off svg {
  width: 3rem;
  height: 3rem;
  margin: auto;
}

.meeting-preview-label,
.meeting-local-video > span {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.35rem 0.75rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.meeting-audio-meter {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  height: 2.5rem;
}

.meeting-audio-meter span {
  width: 0.3rem;
  height: 100%;
  border-radius: 999px;
  background: #44dfa7;
  transform: scaleY(0.08);
  transform-origin: bottom;
  transition: transform 80ms linear;
}

.meeting-device-panel,
.meeting-participant-panel {
  padding: 1.75rem;
}

.meeting-device-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meeting-device-panel h2 {
  font-size: 1.6rem;
  letter-spacing: -0.025em;
}

.meeting-device-field label,
.meeting-company-detail h3 {
  display: block;
  margin-bottom: 0.4rem;
  color: #46554b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-device-field select {
  width: 100%;
  border: 1px solid var(--meeting-border);
  border-radius: 0.8rem;
  background: #f7faf8;
  padding: 0.8rem 0.9rem;
}

.meeting-device-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--meeting-border);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
}

.meeting-device-toggle span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.meeting-device-toggle input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--meeting-primary);
}

.meeting-secondary-button,
.meeting-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.meeting-secondary-button {
  background: #e8f0e9;
  color: var(--meeting-primary);
}

.meeting-primary-button {
  margin-top: 1rem;
  background: var(--meeting-primary);
  color: #fff;
}

.meeting-device-feedback {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.8rem;
}

.meeting-call-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  grid-template-rows: minmax(34rem, calc(100vh - 12rem)) auto;
  gap: 1.25rem;
  width: min(1440px, 100%);
  margin: 0 auto;
}

.meeting-stage {
  position: relative;
  grid-column: 1;
  overflow: hidden;
  background: #142019;
}

.meeting-remote-video {
  position: absolute;
  inset: 0;
}

.meeting-remote-video video {
  position: absolute;
  inset: 0;
}

.meeting-remote-video audio {
  display: none;
}

.meeting-waiting {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  max-width: 100%;
  padding: 2rem;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle, #263b2f, #142019 70%);
}

.meeting-waiting h2 {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.meeting-waiting p {
  max-width: 32rem;
  color: #c6d3ca;
}

.meeting-waiting-icon {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-content: center;
  border-radius: 50%;
  background: rgba(68, 223, 167, 0.15);
  color: #44dfa7;
}

[data-state="CONNECTING_TO_ROOM"] .meeting-waiting-icon svg {
  animation: meeting-spin 1.2s linear infinite;
}

@keyframes meeting-spin {
  to {
    transform: rotate(360deg);
  }
}

.meeting-local-video {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  width: min(28%, 18rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 1rem;
  background: #263b2f;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
}

.meeting-time-remaining {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.5rem 0.8rem;
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.meeting-participant-panel {
  grid-column: 2;
  overflow-y: auto;
}

.meeting-participant-panel h2 {
  font-size: 2rem;
}

.meeting-company-logo {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  object-fit: cover;
}

.meeting-representative {
  margin: 0.5rem 0 1rem;
}

.meeting-category {
  display: inline-block;
  border-radius: 999px;
  background: #d1e6ef;
  padding: 0.35rem 0.75rem;
  color: #374a51;
  font-size: 0.78rem;
  font-weight: 800;
}

.meeting-company-detail {
  margin-top: 1.75rem;
}

.meeting-company-detail p {
  line-height: 1.65;
}

.meeting-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.meeting-controls button {
  display: inline-flex;
  min-width: 3.25rem;
  height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: #e2eae3;
  color: #26342b;
}

.meeting-controls button.is-off {
  background: #39453e;
  color: #fff;
}

.meeting-controls button.is-active {
  background: var(--meeting-accent);
  color: #fff;
}

.meeting-controls .meeting-end-button {
  width: auto;
  padding: 0 1.2rem;
  background: #ba1a1a;
  color: #fff;
}

.meeting-state-banner {
  position: fixed;
  top: 5rem;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  background: #2b322e;
  padding: 0.7rem 1rem;
  color: #fff;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .meeting-flow {
    padding: 1rem;
  }

  .meeting-pre-grid,
  .meeting-call-state {
    grid-template-columns: 1fr;
  }

  .meeting-preview-card {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .meeting-call-state {
    grid-template-rows: minmax(28rem, 65vh) auto auto;
  }

  .meeting-stage,
  .meeting-participant-panel {
    grid-column: 1;
  }

  .meeting-participant-panel {
    grid-row: 2;
  }

  .meeting-controls {
    grid-row: 3;
  }
}

@media (max-width: 520px) {
  .meeting-flow {
    padding: 0.75rem;
  }

  .meeting-pre-header {
    margin-bottom: 1rem;
  }

  .meeting-call-state {
    grid-template-rows: minmax(25rem, 62vh) auto auto;
  }

  .meeting-local-video {
    width: 40%;
  }

  .meeting-controls {
    position: sticky;
    bottom: 0.5rem;
    z-index: 10;
    flex-wrap: wrap;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.6rem;
    backdrop-filter: blur(0.75rem);
  }
}
