/* Roomly pre-join device check (2026-10-06) — окно roomly-precheck.js. */
html.rtpc-open { overflow: hidden; }

.rtpc {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 20, 30, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: 'Onest', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #17181b;
  animation: rtpc-in .18s ease-out;
}
@keyframes rtpc-in { from { opacity: 0; } to { opacity: 1; } }

.rtpc__dialog {
  width: min(860px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 32px 80px -24px rgba(16, 24, 40, .45);
}

.rtpc__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px 8px;
}
.rtpc__head h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.rtpc__head p { margin: 0; font-size: 14px; color: #5b6170; line-height: 1.45; }
.rtpc__x {
  margin-left: auto;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f4f6f8;
  color: #5b6170;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.rtpc__x:hover { background: #eceff3; color: #17181b; }

.rtpc__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 24px;
}

.rtpc__video {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #1c2029;
}
.rtpc__video video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.rtpc__video-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #a3a9b8;
  font-size: 14px;
}
.rtpc--novideo .rtpc__video video { display: none; }
.rtpc--novideo .rtpc__video-empty { display: flex; }

.rtpc__checks { display: flex; flex-direction: column; gap: 10px; }
.rtpc__row {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f4f6f8;
}
.rtpc__row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.rtpc__row-head b { font-weight: 600; }
.rtpc__note { font-size: 12.5px; color: #5b6170; flex-basis: 100%; padding-left: 30px; margin-top: -2px; }
.rtpc__badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6ebf2;
  color: #8b91a0;
}
.rtpc__row[data-state="ok"] .rtpc__badge { background: #eaf2fe; color: #3d7ff2; }
.rtpc__row[data-state="warn"] .rtpc__badge { background: #fdf4e1; color: #c98a0b; }
.rtpc__row[data-state="warn"] .rtpc__note { color: #9a6a08; }

.rtpc-spin {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: rtpc-spin .8s linear infinite;
}
@keyframes rtpc-spin { to { transform: rotate(360deg); } }

.rtpc__select {
  margin-top: 8px;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(16, 24, 40, .1);
  background: #fff;
  color: #17181b;
  font: inherit;
  font-size: 13px;
}
.rtpc__select:disabled { color: #8b91a0; }
.rtpc__inline { display: flex; gap: 8px; align-items: flex-end; }
.rtpc__inline .rtpc__select { flex: 1 1 auto; min-width: 0; }

.rtpc__meter {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: #e6ebf2;
  overflow: hidden;
}
.rtpc__meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8db6fb, #3d7ff2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .08s linear;
}

.rtpc__ask { margin-top: 8px; font-size: 13px; color: #5b6170; display: flex; align-items: center; gap: 6px; }
.rtpc__ask[hidden] { display: none; }

.rtpc__ghost {
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(16, 24, 40, .1);
  border-radius: 999px;
  background: #fff;
  color: #17181b;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.rtpc__ghost:hover { background: #f4f6f8; }
.rtpc__ghost--sm { height: 28px; padding: 0 12px; }

.rtpc__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 24px 22px;
}
.rtpc__skip { font-size: 13px; color: #5b6170; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.rtpc__actions { margin-left: auto; display: flex; gap: 8px; }
.rtpc__primary {
  height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #3d7ff2;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(61, 127, 242, .8);
}
.rtpc__primary:hover { background: #2f6fe0; }

/* Тёмная тема сайта */
body:not(.light-theme) .rtpc { color: #f2f4f8; }
body:not(.light-theme) .rtpc__dialog { background: #1c2029; }
body:not(.light-theme) .rtpc__head p,
body:not(.light-theme) .rtpc__note,
body:not(.light-theme) .rtpc__skip,
body:not(.light-theme) .rtpc__ask { color: #a3a9b8; }
body:not(.light-theme) .rtpc__row { background: rgba(255, 255, 255, .05); }
body:not(.light-theme) .rtpc__x,
body:not(.light-theme) .rtpc__badge { background: rgba(255, 255, 255, .08); color: #a3a9b8; }
body:not(.light-theme) .rtpc__select,
body:not(.light-theme) .rtpc__ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #f2f4f8; }
body:not(.light-theme) .rtpc__select option { color: #17181b; }
body:not(.light-theme) .rtpc__meter { background: rgba(255, 255, 255, .08); }
body:not(.light-theme) .rtpc__row[data-state="ok"] .rtpc__badge { background: rgba(61, 127, 242, .18); color: #6ea2f7; }
body:not(.light-theme) .rtpc__row[data-state="warn"] .rtpc__badge { background: rgba(240, 180, 60, .16); color: #f0b43c; }
body:not(.light-theme) .rtpc__row[data-state="warn"] .rtpc__note { color: #f0b43c; }

@media (max-width: 720px) {
  .rtpc__body { grid-template-columns: 1fr; }
  .rtpc__video { aspect-ratio: 16 / 10; }
  .rtpc__actions { width: 100%; }
  .rtpc__actions button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rtpc, .rtpc-spin, .rtpc__meter i { animation: none; transition: none; }
}
