.myles-live-widget,
.call-access-shell {
  --ink: #0f172a;
  --muted: #64748b;
  --white: #ffffff;
  --success: #16a34a;
  --line: #dbe3ef;
  --ivory: #f8fafc;
  --danger: #dc2626;
}

.myles-live-widget *,
.myles-live-widget *::before,
.myles-live-widget *::after,
.call-access-shell *,
.call-access-shell *::before,
.call-access-shell *::after {
  box-sizing: border-box;
}

.myles-live-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.myles-live-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}

.myles-live-prompt {
  max-width: min(220px, calc(100vw - 116px));
  border: 1px solid rgba(67, 57, 43, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(23, 25, 29, 0.16);
  padding: 10px 13px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.15;
}

.myles-live-bubble {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #17191d;
  box-shadow: 0 18px 42px rgba(23, 25, 29, 0.24);
  padding: 4px;
  display: block;
}

.myles-live-bubble img,
.myles-live-head img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.myles-live-bubble span {
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--success);
}

.myles-live-widget.is-ringing .myles-live-bubble {
  animation: livePulse 1.05s ease-in-out infinite;
  background: var(--success);
}

.myles-live-widget.is-ringing .myles-live-prompt {
  border-color: rgba(31, 109, 69, 0.38);
  background: #f0f8f2;
  color: #173d28;
}

.myles-live-panel {
  width: min(380px, calc(100vw - 24px));
  max-height: min(720px, calc(100dvh - 36px));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(67, 57, 43, 0.2);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(23, 25, 29, 0.18);
  padding: 14px;
}

.myles-live-hidden-media,
.myles-live-hidden-media audio {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.myles-live-head,
.active-visitor-head,
.myles-call-status {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.active-visitor-toolbar {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.active-visitor-toolbar .gold-kicker {
  margin: 0;
}

.active-visitor-direct {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.active-visitor-direct > button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(31, 109, 69, 0.28);
  background: #eff7f1;
  color: #173d28;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: none;
}

.active-visitor-direct-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 10px;
  border: 1px solid rgba(67, 57, 43, 0.18);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(23, 25, 29, 0.18);
  padding: 14px;
}

.active-visitor-direct-panel h3 {
  margin: 0;
}

.compact-direct-form {
  gap: 10px;
}

.active-visitor-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.active-visitor-tabs button {
  min-height: 38px;
  border: 1px solid rgba(67, 57, 43, 0.18);
  background: rgba(251, 248, 241, 0.86);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.active-visitor-tabs button.is-active {
  border-color: rgba(31, 109, 69, 0.34);
  background: #eff7f1;
  color: #173d28;
}

.myles-live-head img {
  width: 42px;
  height: 42px;
}

.myles-live-head div {
  min-width: 0;
  flex: 1;
}

.myles-live-head strong,
.myles-live-head span,
.myles-call-status strong,
.myles-call-status span {
  display: block;
}

.myles-live-head span,
.myles-call-status span,
.myles-live-message span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.myles-live-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
  font-weight: 950;
}

.myles-live-messages {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 4px;
}

.myles-live-message {
  display: grid;
  justify-items: start;
  gap: 3px;
}

.myles-live-message p,
.myles-live-empty {
  max-width: 86%;
  margin: 0;
  border: 1px solid rgba(67, 57, 43, 0.14);
  background: var(--ivory);
  padding: 9px 10px;
  color: var(--ink);
  line-height: 1.35;
}

.myles-live-message.is-self {
  justify-items: end;
}

.myles-live-message.is-self p {
  background: #e9f1ea;
  border-color: rgba(31, 109, 69, 0.22);
}

.myles-live-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.myles-live-compose input {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0 12px;
}

.myles-live-compose button,
.myles-live-actions button,
.myles-call-actions button,
.active-visitor-head button {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.myles-call-panel {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(37, 75, 143, 0.18);
  background: #f7f9fc;
  padding: 12px;
}

.myles-call-panel > strong,
.myles-call-panel > span {
  display: block;
}

.myles-call-panel > span {
  color: var(--muted);
  font-weight: 800;
}

.myles-call-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(37, 75, 143, 0.14);
  background: rgba(255, 255, 255, 0.72);
  padding: 9px 10px;
}

.myles-call-timer span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.myles-call-timer strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.myles-hold-spectrum {
  width: 100%;
  height: 64px;
  border: 1px solid rgba(37, 75, 143, 0.14);
  background: rgba(255, 255, 255, 0.86);
  display: block;
}

.myles-call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.myles-call-panel.is-ringing .live-answer-button {
  border: 1px solid rgba(134, 239, 172, 0.95);
  background: #16a34a;
  color: var(--white);
  animation: liveAnswerGlow 1.05s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5), 0 14px 30px rgba(22, 163, 74, 0.32);
}

.myles-call-panel.is-video .myles-call-actions,
.myles-call-panel.is-video .myles-call-status,
.myles-video-invite,
.myles-video-zoom,
.myles-video-exit {
  position: relative;
  z-index: 4;
}

.myles-video-exit {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(12, 17, 22, 0.74);
  color: var(--white);
  font-size: 1rem;
  font-weight: 950;
}

.danger-button {
  background: var(--danger) !important;
}

.myles-video-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 260px;
  overflow: hidden;
  background: #101820;
}

.myles-video-stage video:first-child {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.myles-video-stage video:last-child {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 104px;
  height: 138px;
  border: 2px solid var(--white);
  background: #17191d;
  object-fit: cover;
  cursor: pointer;
}

.myles-video-stage.is-local-focus video:first-child {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 104px;
  height: 138px;
  border: 2px solid var(--white);
}

.myles-video-stage.is-local-focus video:last-child {
  position: static;
  width: 100%;
  height: 260px;
  border: 0;
}

.myles-video-invite {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 17, 22, 0.78);
  color: var(--white);
  padding: 10px;
}

.myles-video-invite strong,
.myles-video-invite span {
  display: block;
}

.myles-video-invite span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
}

.myles-video-mini {
  position: fixed;
  right: 18px;
  bottom: 98px;
  z-index: 122;
  width: min(210px, calc(100vw - 36px));
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: #0c1116;
  box-shadow: 0 18px 48px rgba(23, 25, 29, 0.34);
}

.myles-video-mini video:first-child,
.myles-video-mini video:last-child {
  object-fit: cover;
  cursor: pointer;
}

.myles-video-mini video:first-child {
  width: 100%;
  height: 100%;
}

.myles-video-mini video:last-child {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 54px;
  height: 74px;
  border: 2px solid var(--white);
  background: #17191d;
}

.myles-video-mini button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(12, 17, 22, 0.78);
  color: var(--white);
  font-weight: 950;
}

.myles-live-widget.is-video-call {
  inset: 0;
  z-index: 120;
}

.myles-live-widget.is-video-call .myles-live-launcher {
  display: none;
}

.myles-live-widget.is-video-call .myles-live-panel {
  width: 100vw;
  min-height: 100dvh;
  max-height: none;
  overflow: hidden;
  align-content: start;
  border: 0;
  background: #0c1116;
  color: var(--white);
  box-shadow: none;
}

.myles-live-widget.is-video-call .myles-live-head,
.myles-live-widget.is-video-call .myles-live-messages,
.myles-live-widget.is-video-call .myles-live-compose,
.myles-live-widget.is-video-call .myles-live-actions {
  display: none;
}

.myles-live-widget.is-video-call .myles-call-panel {
  min-height: 100dvh;
  border: 0;
  background: #0c1116;
}

.myles-live-widget.is-video-call .myles-video-exit {
  position: fixed;
  top: 14px;
  left: 14px;
}

.myles-live-widget.is-video-call .myles-call-status,
.call-access-shell.is-video-call .myles-call-status,
.visitors-board.is-call-focus .myles-call-panel.is-video .myles-call-status {
  padding-left: 46px;
  color: var(--white);
}

.myles-live-widget.is-video-call .myles-call-status span,
.call-access-shell.is-video-call .myles-call-status span,
.visitors-board.is-call-focus .myles-call-panel.is-video .myles-call-status span {
  color: rgba(255, 255, 255, 0.72);
}

.myles-live-widget.is-video-call .myles-video-stage,
.call-access-shell.is-video-call .myles-video-stage,
.visitors-board.is-call-focus .myles-call-panel.is-video .myles-video-stage {
  min-height: calc(100dvh - 132px);
}

.myles-live-widget.is-video-call .myles-video-stage video:first-child,
.call-access-shell.is-video-call .myles-video-stage video:first-child,
.visitors-board.is-call-focus .myles-call-panel.is-video .myles-video-stage video:first-child {
  height: calc(100dvh - 132px);
}

.myles-live-widget.is-video-call .myles-video-stage.is-local-focus video:last-child,
.call-access-shell.is-video-call .myles-video-stage.is-local-focus video:last-child,
.visitors-board.is-call-focus .myles-call-panel.is-video .myles-video-stage.is-local-focus video:last-child {
  height: calc(100dvh - 132px);
}

.myles-live-widget.is-video-call .myles-video-stage.is-local-focus video:first-child,
.call-access-shell.is-video-call .myles-video-stage.is-local-focus video:first-child,
.visitors-board.is-call-focus .myles-call-panel.is-video .myles-video-stage.is-local-focus video:first-child {
  width: min(28vw, 160px);
  height: min(22vh, 130px);
  max-width: 160px;
  max-height: 130px;
  object-fit: cover;
}

.myles-live-widget.is-video-call .myles-call-actions,
.call-access-shell.is-video-call .myles-call-actions,
.visitors-board.is-call-focus .myles-call-panel.is-video .myles-call-actions {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 130;
  max-width: min(94vw, 620px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  justify-content: center;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 17, 22, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  padding: 9px;
}

.myles-live-widget.is-video-call .myles-video-invite,
.call-access-shell.is-video-call .myles-video-invite,
.visitors-board.is-call-focus .myles-call-panel.is-video .myles-video-invite {
  position: fixed;
  left: 50%;
  bottom: 86px;
  width: min(360px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.myles-live-widget.is-video-call .myles-video-zoom,
.call-access-shell.is-video-call .myles-video-zoom,
.visitors-board.is-call-focus .myles-call-panel.is-video .myles-video-zoom {
  position: fixed;
  top: 64px;
  right: 14px;
  bottom: auto;
  left: auto;
  width: min(180px, 44vw);
  transform: none;
}

.myles-video-zoom {
  min-height: 34px;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(12, 17, 22, 0.64);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  padding: 5px 8px;
  backdrop-filter: blur(10px);
}

.myles-video-zoom span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.myles-video-zoom input {
  min-width: 0;
  width: auto;
  flex: 1;
  accent-color: #d9ae49;
}

.myles-audio-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.myles-audio-stage div {
  border: 1px solid rgba(67, 57, 43, 0.14);
  background: rgba(255, 255, 255, 0.74);
  padding: 10px;
}

.myles-audio-stage span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.myles-audio-stage canvas {
  width: 100%;
  height: 54px;
  background: linear-gradient(90deg, rgba(31, 109, 69, 0.18), rgba(37, 75, 143, 0.14));
}

.myles-audio-stage audio {
  display: none;
}

.myles-voicemail-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(31, 109, 69, 0.2);
  background: #f3faf5;
  padding: 12px;
}

.myles-voicemail-panel > strong,
.myles-voicemail-panel > span {
  display: block;
}

.myles-voicemail-panel > span {
  color: var(--muted);
  font-weight: 800;
}

.myles-voicemail-panel form {
  display: grid;
  gap: 9px;
}

.myles-voicemail-panel input,
.myles-voicemail-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px;
  color: var(--ink);
}

.myles-voicemail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.myles-voicemail-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.3;
}

.myles-voicemail-status-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.myles-voicemail-status-row.has-playback {
  grid-template-columns: minmax(0, 1fr) auto;
}

.myles-voicemail-status-row .myles-live-error {
  margin: 0;
}

.myles-stop-playback-button {
  display: grid;
  gap: 1px;
  place-items: center;
  width: 78px;
  min-height: 48px;
  padding: 6px 8px;
  line-height: 1.05;
  text-align: center;
}

.myles-stop-playback-button span {
  display: block;
}

.myles-voicemail-panel button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.7);
}

.myles-voicemail-panel audio {
  width: 100%;
}

.visitor-voicemail-audio {
  display: grid;
  gap: 6px;
  width: 100%;
}

.visitor-voicemail-audio audio {
  width: 100%;
}

.visitor-voicemail-audio a {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.call-access-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #12161b;
  padding: 18px;
}

.call-phone-frame {
  width: min(430px, 100%);
  min-height: min(820px, calc(100dvh - 36px));
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fbf8f1;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.35);
  padding: 14px;
}

.call-access-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.call-access-head img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.call-access-head strong,
.call-access-head span,
.call-access-context span {
  display: block;
}

.call-access-head span,
.call-access-context {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.call-access-context {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.call-access-context > div:first-child {
  min-width: 0;
}

.call-access-shell.is-video-call {
  padding: 0;
  place-items: stretch;
  background: #0c1116;
}

.call-access-shell.is-video-call .call-phone-frame {
  width: 100%;
  min-height: 100dvh;
  border: 0;
  background: #0c1116;
  color: var(--white);
  box-shadow: none;
}

.call-access-shell.is-video-call .call-access-chat,
.call-access-shell.is-video-call .call-access-context {
  display: none;
}

.visitors-board {
  grid-template-columns: minmax(330px, 0.9fr) minmax(440px, 1.1fr);
}

.visitors-board.is-call-focus {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.active-visitor-detail {
  max-height: calc(100vh - 210px);
  overflow: auto;
}

.visitors-board.is-call-focus .active-visitor-detail {
  max-height: none;
}

.admin-live-messages {
  max-height: 280px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.56);
}

.myles-live-error {
  margin: 0;
  color: var(--danger);
  font-weight: 850;
}

@keyframes livePulse {
  0%, 100% {
    box-shadow: 0 18px 42px rgba(23, 25, 29, 0.24), 0 0 0 0 rgba(31, 109, 69, 0.42);
  }
  50% {
    box-shadow: 0 18px 42px rgba(23, 25, 29, 0.24), 0 0 0 12px rgba(31, 109, 69, 0);
  }
}

@keyframes liveAnswerGlow {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5), 0 14px 30px rgba(22, 163, 74, 0.32);
  }

  50% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 10px rgba(22, 163, 74, 0), 0 18px 38px rgba(22, 163, 74, 0.42);
  }
}

@keyframes lightSweep {
  0%,
  100% {
    transform: translateX(-18%);
    opacity: 0.36;
  }

  50% {
    transform: translateX(18%);
    opacity: 0.62;
  }
}

@keyframes flashWash {
  0%,
  74%,
  100% {
    opacity: 0.28;
  }

  75% {
    opacity: 0.52;
  }

  77% {
    opacity: 0.3;
  }
}

@keyframes logoSweep {
  0% {
    transform: translateX(-100%);
  }

  46%,
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 960px) {
  .site-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .site-nav nav {
    justify-content: flex-start;
  }

  .lead-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 28px;
  }

  .site-shell:not(.is-expanded) .proposal-flow {
    margin-top: 0;
  }

  .brand-panel h1 {
    max-width: 11ch;
  }

  .planning-band {
    grid-template-columns: 1fr;
  }

	  .split-section,
	  .strategy-grid,
  .buyer-choice-grid,
  .buyer-feature-grid,
	  .market-hero,
	  .market-content,
	  .admin-board,
  .admin-stats,
  .lead-tools,
  .lead-contact-grid,
  .lead-secondary-grid,
  .seller-fact-grid,
  .lead-schedule-grid,
  .lead-row,
  .user-row,
  .admin-login-form,
  .admin-user-form,
  .email-controls {
    grid-template-columns: 1fr;
  }

  .overview-board > .admin-list {
    grid-column: 1 / -1;
  }

	  .lead-detail,
	  .analytics-detail,
    .active-visitor-detail,
	  .template-editor,
	  .content-detail,
	  .user-detail {
	    max-height: none;
	    overflow: visible;
  }

  .planning-band div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .myles-live-widget {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .myles-live-widget.is-open:not(.is-video-call) {
    top: 12px;
    align-content: end;
  }

  .myles-live-widget:not(.is-open) {
    left: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .myles-live-widget:not(.is-open):not(.is-ringing) .myles-live-prompt {
    display: none;
  }

  .myles-live-widget:not(.is-open) .myles-live-bubble {
    width: 58px;
    height: 58px;
  }

  .myles-live-panel {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }

  .myles-video-mini {
    right: 12px;
    bottom: 92px;
    width: min(180px, calc(100vw - 24px));
  }

  .myles-live-widget.is-video-call .myles-call-actions,
  .call-access-shell.is-video-call .myles-call-actions,
  .visitors-board.is-call-focus .myles-call-panel.is-video .myles-call-actions {
    bottom: 10px;
    width: calc(100vw - 20px);
    border-radius: 18px;
    padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  }

  .myles-live-widget.is-video-call .myles-video-invite,
  .call-access-shell.is-video-call .myles-video-invite,
  .visitors-board.is-call-focus .myles-call-panel.is-video .myles-video-invite {
    right: auto;
    bottom: 126px;
    left: 50%;
    width: calc(100vw - 28px);
    transform: translateX(-50%);
  }

  .myles-live-widget.is-video-call .myles-video-zoom,
  .call-access-shell.is-video-call .myles-video-zoom,
  .visitors-board.is-call-focus .myles-call-panel.is-video .myles-video-zoom {
    top: 62px;
    right: 10px;
    bottom: auto;
    left: auto;
    width: min(148px, 42vw);
    min-height: 30px;
    gap: 6px;
    padding: 4px 7px;
    transform: none;
  }

  .myles-live-widget.is-video-call .myles-video-zoom span,
  .call-access-shell.is-video-call .myles-video-zoom span,
  .visitors-board.is-call-focus .myles-call-panel.is-video .myles-video-zoom span {
    font-size: 0.56rem;
  }

  .myles-live-widget.is-video-call .myles-video-zoom input,
  .call-access-shell.is-video-call .myles-video-zoom input,
  .visitors-board.is-call-focus .myles-call-panel.is-video .myles-video-zoom input {
    max-width: 96px;
  }

  .myles-audio-stage {
    grid-template-columns: 1fr;
  }

  .myles-voicemail-grid {
    grid-template-columns: 1fr;
  }

}

.primary-button,
.ghost-button,
.wizard-actions button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  border: 0;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, #17191d, #424a52);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(44, 37, 28, 0.16);
}

.ghost-button {
  border: 1px solid rgba(67, 57, 43, 0.22);
  background: rgba(251, 248, 241, 0.86);
  color: var(--ink);
}

.live-agent-access-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Avenir, sans-serif;
  color: var(--ink);
  background: url("/background.jpg") center/cover fixed no-repeat;
}

.live-agent-access-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(10, 15, 30, 0.68);
}

.call-access-loading {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--white);
}

.call-access-loading img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.call-access-shell {
  width: 100%;
  min-height: 100vh;
  display: block;
  padding: 24px;
  background: transparent;
}

.call-access-head {
  width: min(1180px, 100%);
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.call-access-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.call-access-head img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.call-access-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.call-access-context,
.call-access-main,
.call-access-chat {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.call-access-context {
  display: grid;
  gap: 12px;
  padding: 16px;
  color: var(--ink);
}

.call-access-card {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.call-access-card:last-of-type {
  border-bottom: 0;
}

.call-access-card strong {
  overflow-wrap: anywhere;
}

.call-access-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.call-access-kicker,
.call-access-nav-form label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-access-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.call-access-chat {
  display: grid;
  gap: 12px;
  padding: 12px;
  box-shadow: none;
}

.call-access-chat .myles-live-messages {
  max-height: 330px;
}

.call-access-error {
  width: min(1180px, 100%);
  margin: 0 auto 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.call-access-nav-form {
  display: grid;
  gap: 10px;
}

.call-access-nav-form div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.call-access-nav-form button,
.call-access-nav-form input {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.call-access-nav-form button {
  background: #f8fafc;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.call-access-nav-form input {
  width: 100%;
  padding: 0 10px;
}

.call-access-main .myles-call-panel {
  width: 100%;
  min-height: auto;
  box-shadow: none;
}

.call-access-main .myles-audio-stage,
.call-access-main .myles-video-stage {
  width: 100%;
}

.call-access-shell.has-video-call .call-access-grid {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

.call-access-shell.has-video-call .myles-call-panel.is-video {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: #0c1116;
  color: var(--white);
}

.call-access-shell.has-video-call .myles-call-status span {
  color: rgba(255, 255, 255, 0.72);
}

.call-access-shell.has-video-call .myles-video-stage {
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  height: clamp(280px, 42vh, 420px);
  border-radius: 12px;
  background: #070b10;
}

.call-access-shell.has-video-call .myles-video-stage video:first-child {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070b10;
}

.call-access-shell.has-video-call .myles-video-stage video:last-child {
  right: 10px;
  bottom: 10px;
  width: clamp(82px, 12vw, 132px);
  height: clamp(108px, 16vw, 168px);
  border-radius: 10px;
}

.call-access-shell.has-video-call .myles-call-actions {
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .call-access-shell {
    padding: 14px;
  }

  .call-access-head,
  .call-access-grid {
    grid-template-columns: 1fr;
  }

  .call-access-head {
    align-items: flex-start;
  }

  .call-access-shell.has-video-call .call-access-grid {
    grid-template-columns: 1fr;
  }

  .call-access-shell.has-video-call .myles-video-stage {
    min-height: 340px;
    height: min(54vh, 460px);
  }
}

/* ABSG live video layout: keep controls visible and video boxes stable. */
.myles-live-widget.is-video-call,
.call-access-shell.is-video-call {
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.myles-live-widget.is-video-call .myles-live-panel {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  display: block;
  padding: 0;
  overflow: hidden;
}

.myles-live-widget.is-video-call .myles-call-panel.is-video,
.call-access-shell.is-video-call .myles-call-panel.is-video {
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  overflow: hidden;
  background: #0c1116;
}

.myles-live-widget.is-video-call .myles-call-status,
.call-access-shell.is-video-call .myles-call-status {
  min-width: 0;
  padding: 0 48px;
}

.myles-live-widget.is-video-call .myles-call-status strong,
.call-access-shell.is-video-call .myles-call-status strong {
  overflow-wrap: anywhere;
}

.myles-live-widget.is-video-call .myles-video-stage,
.call-access-shell.is-video-call .myles-video-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #070b10;
}

.myles-live-widget.is-video-call .myles-video-stage video:first-child,
.call-access-shell.is-video-call .myles-video-stage video:first-child,
.myles-live-widget.is-video-call .myles-video-stage.is-local-focus video:last-child,
.call-access-shell.is-video-call .myles-video-stage.is-local-focus video:last-child {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #070b10;
}

.myles-live-widget.is-video-call .myles-video-stage video:last-child,
.call-access-shell.is-video-call .myles-video-stage video:last-child,
.myles-live-widget.is-video-call .myles-video-stage.is-local-focus video:first-child,
.call-access-shell.is-video-call .myles-video-stage.is-local-focus video:first-child {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: clamp(92px, 18vw, 180px);
  height: clamp(122px, 24vw, 220px);
  max-width: none;
  max-height: none;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  object-fit: cover;
  background: #17191d;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.myles-live-widget.is-video-call .myles-call-actions,
.call-access-shell.is-video-call .myles-call-actions {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 5;
  width: min(100%, 640px);
  max-width: none;
  max-height: none;
  margin: 0 auto;
  overflow: visible;
  transform: none;
  justify-content: center;
  border-radius: 18px;
  background: rgba(12, 17, 22, 0.84);
  backdrop-filter: blur(14px);
}

.myles-live-widget.is-video-call .myles-call-actions button,
.call-access-shell.is-video-call .myles-call-actions button {
  flex: 1 1 118px;
  max-width: 170px;
  min-height: 44px;
}

.myles-live-widget.is-video-call .myles-video-exit,
.call-access-shell.is-video-call .myles-video-exit {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  left: max(14px, env(safe-area-inset-left, 0px));
  z-index: 8;
}

.myles-live-widget.is-video-call .myles-video-invite,
.call-access-shell.is-video-call .myles-video-invite {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 116px;
  z-index: 6;
  width: min(360px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.myles-live-widget.is-video-call .myles-video-zoom,
.call-access-shell.is-video-call .myles-video-zoom {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  z-index: 8;
}

.myles-live-widget.is-video-call .myles-video-zoom {
  top: max(72px, calc(env(safe-area-inset-top, 0px) + 72px));
}

.call-access-shell.is-video-call .myles-video-zoom {
  top: max(14px, env(safe-area-inset-top, 0px));
}

.call-access-shell.is-video-call {
  display: block;
  padding: 0;
  background: #0c1116;
}

.call-access-shell.is-video-call .call-access-head,
.call-access-shell.is-video-call .call-access-context,
.call-access-shell.is-video-call .call-access-chat {
  display: none;
}

.call-access-shell.is-video-call .call-access-grid,
.call-access-shell.is-video-call .call-access-main {
  width: 100%;
  height: 100dvh;
  max-width: none;
  margin: 0;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 620px) {
  .myles-live-widget.is-video-call .myles-call-panel.is-video,
  .call-access-shell.is-video-call .myles-call-panel.is-video {
    gap: 8px;
    padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  }

  .myles-live-widget.is-video-call .myles-call-status,
  .call-access-shell.is-video-call .myles-call-status {
    padding: 0 42px;
  }

  .myles-live-widget.is-video-call .myles-video-stage,
  .call-access-shell.is-video-call .myles-video-stage {
    border-radius: 10px;
  }

  .myles-live-widget.is-video-call .myles-video-stage video:last-child,
  .call-access-shell.is-video-call .myles-video-stage video:last-child,
  .myles-live-widget.is-video-call .myles-video-stage.is-local-focus video:first-child,
  .call-access-shell.is-video-call .myles-video-stage.is-local-focus video:first-child {
    right: 8px;
    bottom: 8px;
    width: clamp(78px, 26vw, 112px);
    height: clamp(104px, 34vw, 148px);
    border-radius: 10px;
  }

  .myles-live-widget.is-video-call .myles-call-actions,
  .call-access-shell.is-video-call .myles-call-actions {
    width: 100%;
    gap: 6px;
    padding: 7px;
  }

  .myles-live-widget.is-video-call .myles-call-actions button,
  .call-access-shell.is-video-call .myles-call-actions button {
    flex-basis: calc(50% - 6px);
    max-width: none;
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.66rem;
  }
}

/* Defensive override: call-access pages must keep admin controls visible even if an older script adds is-video-call. */
.call-access-shell.is-video-call {
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100dvh !important;
  display: grid !important;
  place-items: start stretch !important;
  overflow: auto !important;
  padding: 18px !important;
}

.call-access-shell.is-video-call .call-access-head {
  display: flex !important;
}

.call-access-shell.is-video-call .call-access-context,
.call-access-shell.is-video-call .call-access-chat {
  display: grid !important;
}

.call-access-shell.is-video-call .call-access-grid {
  width: min(1180px, 100%) !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) !important;
  gap: 16px !important;
  margin: 0 auto !important;
}

.call-access-shell.is-video-call .call-access-main {
  height: auto !important;
  display: grid !important;
  gap: 14px !important;
  padding: 16px !important;
}

.call-access-shell.is-video-call .myles-call-panel.is-video {
  height: auto !important;
  min-height: auto !important;
  grid-template-rows: auto auto auto !important;
}

.call-access-shell.is-video-call .myles-call-actions {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}

@media (max-width: 860px) {
  .call-access-shell.is-video-call .call-access-grid {
    grid-template-columns: 1fr !important;
  }
}
