/* МАКЕТ Google Meet prejoin — 1:1 по Desktop/66.txt (vus-rmwa-gbv) */

:root {
  --meet-bg: #fff;
  --meet-text: #1f1f1f;
  --meet-muted: #444746;
  --meet-legal: #5f6368;
  --preview-bg: rgb(32, 33, 36);
  --preview-on: rgb(232, 234, 237);
  --preview-variant: rgb(154, 160, 166);
  --ctrl-bg: rgba(60, 64, 67, 0.9);
  --ctrl-off: #ea4335;
  --primary: #0b57d0;
  --primary-hover: #0842a0;
  --primary-fg: #fff;
  --outline: #747775;
  --chip-border: #c4c7c5;
  --err: #f28b82;
  --banner-h: 36px;
  --font: "Google Sans", Roboto, Arial, Helvetica, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--meet-bg);
  color: var(--meet-text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  padding-top: var(--banner-h);
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}

/* —— МАКЕТ banner —— */
#maket-exam-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483647;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #c5221f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
  font-family: Roboto, Arial, sans-serif;
}

#maket-exam-banner .sub {
  font-weight: 500;
  font-size: 11px;
  opacity: 0.92;
  letter-spacing: 0;
}

#maket-exam-watermark {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  pointer-events: none;
  background: repeating-linear-gradient(
    -24deg,
    transparent,
    transparent 120px,
    rgba(197, 34, 31, 0.03) 120px,
    rgba(197, 34, 31, 0.03) 240px
  );
}

/* —— Top bar (66.txt: logo + Войти) —— */
.meet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  min-height: 48px;
}

.meet-brand {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
}

.meet-brand:hover {
  background: transparent;
}

.meet-logo-img {
  display: block;
  height: 3.75rem;
  width: 9.75rem;
  object-fit: contain;
}

.meet-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meet-signin-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 20px;
  cursor: pointer;
}

.meet-signin-link:hover {
  background: transparent;
}

.meet-signin-link[hidden] {
  display: none !important;
}

/* Logged-in account chip (Meet AccountChooser strip) */
.meet-account {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(100%, 420px);
}

.meet-account[hidden] {
  display: none !important;
}

.meet-account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.meet-account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7b1fa2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  user-select: none;
}

.meet-account-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.25;
}

.meet-account-email {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--meet-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.meet-account-status {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.meet-plan-btn {
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.meet-plan-btn:hover {
  background: transparent;
}

@media (max-width: 720px) {
  .meet-account {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .meet-account-email {
    max-width: 140px;
  }

  .meet-plan-btn {
    padding: 6px 14px;
    font-size: 0.8125rem;
  }
}

/* —— Shell / row (66: .S92HSc / .na9vKc / .pPAkTc / .aeo0Lb) —— */
.meet-shell {
  width: 100%;
  min-height: calc(100vh - var(--banner-h) - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 32px;
}

.meet-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
  min-height: 540px;
  gap: 0;
}

/* —— Preview column —— */
.meet-preview-wrap {
  display: inline-flex;
  flex-direction: column;
  flex-grow: 1;
  max-width: 764px;
  min-width: 0;
  align-items: stretch;
}

.meet-preview {
  border-radius: 16px;
  flex: 0 1 auto;
  margin: 1rem 0.5rem 0.5rem 1rem;
  min-width: min(448px, 100%);
  overflow: hidden;
  position: relative;
  background: var(--preview-bg);
  aspect-ratio: 16 / 9;
  max-height: 420px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
}

.meet-preview-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--preview-bg);
}

.meet-cam-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #fff;
  z-index: 1;
}

.meet-err-title {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: 0.00625em;
  font-weight: 400;
  color: #fff;
}

.meet-err-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--err);
}

.meet-err-sub {
  margin-top: 4px;
  margin-bottom: 0.875rem;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.0142857143em;
  font-weight: 400;
  color: #fff;
  max-width: 40rem;
}

.meet-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  background: #000;
  z-index: 0;
}

.meet-preview-controls {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.meet-ctrl {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--ctrl-bg);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.meet-ctrl:hover {
  background: var(--ctrl-bg);
}

.meet-ctrl.is-off {
  background: var(--ctrl-off);
}

.meet-ctrl.is-off:hover {
  background: var(--ctrl-off);
}

.meet-ctrl .ico-on {
  display: none;
}

.meet-ctrl .ico-off {
  display: block;
}

.meet-ctrl:not(.is-off) .ico-on {
  display: block;
}

.meet-ctrl:not(.is-off) .ico-off {
  display: none;
}

.meet-ctrl .material-symbols-outlined {
  font-size: 24px;
}

/* device chips under preview */
.meet-device-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 1rem 0.75rem 1rem;
  justify-content: flex-start;
}

.meet-device-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 8px 6px 10px;
  border-radius: 20px;
  border: 1px solid var(--chip-border);
  background: #fff;
  color: var(--meet-text);
  font-family: inherit;
  cursor: default;
  text-align: left;
}

.meet-device-chip .chip-ico {
  flex-shrink: 0;
  color: var(--meet-muted);
}

.meet-device-chip .chip-ico.err {
  color: #d93025;
}

.chip-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chip-title {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-link {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1rem;
}

.chip-caret {
  flex-shrink: 0;
  color: var(--meet-muted);
}

/* —— Join column (.aeo0Lb 448px) —— */
.meet-join-col {
  display: flex;
  flex-direction: column;
  flex: 0 0 448px; /* .aeo0Lb width:448px из 66.txt */
  justify-content: center;
  align-items: center;
  width: 448px;
  max-width: 100%;
  padding: 1rem 1.5rem;
  text-align: center;
  box-sizing: border-box;
}

.meet-title {
  margin: 0 0 1.25rem;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--meet-text);
}

/* outlined name field */
.meet-name-field {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-bottom: 1rem;
}

.meet-name-input {
  width: 100%;
  height: 56px;
  padding: 16px 16px 0;
  border: 1px solid var(--outline);
  border-radius: 4px;
  background: transparent;
  color: var(--meet-text);
  font-family: Roboto, Arial, sans-serif;
  font-size: 1rem;
  outline: none;
}

.meet-name-input:focus {
  border-color: var(--primary);
  border-width: 2px;
  padding: 15px 15px 0;
}

.meet-name-field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 4px;
  background: var(--meet-bg);
  color: var(--meet-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}

.meet-name-input:focus + label,
.meet-name-input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.75rem;
  color: var(--primary);
}

.meet-name-input:not(:focus):not(:placeholder-shown) + label {
  color: var(--meet-muted);
}

/* badge */
.meet-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 14.75rem;
  margin: 0.25rem 0 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fef7e0;
  color: #5f6368;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.00625rem;
  line-height: 1rem;
  text-align: left;
}

.badge-ico {
  width: 16px;
  height: 16px;
  color: #f9ab00;
  flex-shrink: 0;
}

.meet-actions {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meet-btn-primary {
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 24px;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.00625em;
  cursor: pointer;
}

.meet-btn-primary:hover {
  background: var(--primary);
  box-shadow: none;
}

.meet-btn-primary:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

.meet-other-wrap {
  width: 100%;
  max-width: 320px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.meet-other-ways {
  border: 0;
  background: transparent;
  color: #1a73e8;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.015em;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.meet-other-ways.is-concealed {
  display: none;
}

.meet-other-ways:hover {
  background: transparent;
  text-decoration: none;
}

.meet-other-ways .other-ways-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.meet-other-ways[aria-expanded="true"] .other-ways-chevron {
  transform: rotate(180deg);
}

.meet-other-ways .other-ways-chevron.is-up {
  transform: none;
}

.meet-other-panel {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.35s ease, opacity 0.28s ease, margin-top 0.28s ease;
  pointer-events: none;
}

.meet-other-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 8px;
  pointer-events: auto;
}

.meet-other-panel-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* оригинал: .Mivxre column of GM3 text buttons */
.meet-other-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.meet-text-btn {
  margin: 0.125rem 0;
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #0b57d0;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 0.75rem; /* 12px — в одну строку */
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

.meet-text-btn:hover {
  background: transparent;
}

.meet-text-btn-ico {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #0b57d0;
}

.meet-show-less {
  margin: 0.125rem auto 0;
  height: 40px;
  border: 0;
  background: transparent;
  color: #0b57d0;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: 0;
  cursor: pointer;
  padding: 0 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  align-self: center;
}

.meet-show-less:hover {
  background: transparent;
}

.meet-show-less svg {
  flex-shrink: 0;
  color: #0b57d0;
}

.meet-legal {
  margin-top: 1.5rem;
  max-width: 360px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--meet-legal);
  text-align: center;
}

.meet-legal a {
  color: var(--primary);
  text-decoration: none;
}

.meet-legal a:hover {
  text-decoration: none;
}

/* —— Mobile —— */
@media (max-width: 900px) {
  .meet-row {
    flex-direction: column;
    min-height: 0;
    gap: 8px;
  }

  .meet-preview-wrap {
    max-width: 100%;
    width: 100%;
  }

  .meet-preview {
    margin: 0.5rem;
    max-height: 42vh;
    min-width: 0;
  }

  .meet-join-col {
    width: 100%;
    max-width: 448px;
    padding: 0.5rem 1rem 1.5rem;
  }

  .meet-device-row {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .meet-title {
    font-size: 1.375rem;
  }
}

@media (max-width: 480px) {
  #maket-exam-banner .sub {
    display: none;
  }

  .meet-device-chip {
    flex: 1 1 100%;
  }
}
