@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter/InterVariable-4.1.woff2") format("woff2");
}
/* Video controls and drawers share a compact, consistent layout. */
.mobile-next-icon { display: none; }

  #device-selection-modal {
    --settings-bg: #f4f8ff;
    --settings-card: #fff;
    --settings-field: #fff;
    --settings-border: #d8e5f5;
    --settings-muted: #526780;
    --settings-blue: #0066cc;
    color-scheme: light;
  }
  #device-selection-modal .device-modal-v2 { color: #142c49; }
  #device-selection-modal .deviceModalHeader { background: #fff; border-top: 4px solid #017ffe; }
  #device-selection-modal #device-title { color: #0066cc; }
  #device-selection-modal .deviceModalCloseBtn { background: #eaf3ff; color: #215581; border-color: #d8e5f5; }
  #device-selection-modal .settingsTabs { background: #eaf3ff; border-color: #d8e5f5; }
  #device-selection-modal .settingsTabs button[aria-selected="true"] { background: #0066cc; border-color: #0066cc; color: #fff; }
  #device-selection-modal .deviceModalBody { scrollbar-color: #91bbec #f4f8ff; }
  #device-selection-modal .deviceModalBody::-webkit-scrollbar-thumb { background: #91bbec; }
  #device-selection-modal :is(.deviceSettingTitle, .deviceCardLabel) { color: #142c49; }
  #device-selection-modal :is(.deviceSelect, .hotkeyCap, .genderPrefOption, .settingsMuteBtn, .hotkeyResetBtn) { color: #142c49; border-color: #bdd8f9; }
  #device-selection-modal .deviceSelect option { color: #142c49; background: #fff; }
  #device-selection-modal .deviceSelect::placeholder { color: #65768b; }
  #device-selection-modal .deviceSelectWrap::after { border-color: #0066cc; }
  #device-selection-modal .settingsSwitchTrack { background: #92a5bd; }
  #device-selection-modal .settingsSwitch input:checked + .settingsSwitchTrack { background: #017ffe; }
  #device-selection-modal :is(button, input, select, [tabindex]):focus-visible { outline-color: #0066cc; }
  #device-selection-modal #settingsPremiumBtn { background: #edf5ff; border-color: #bdd8f9; }
  #device-selection-modal #settingsPremiumBtn .deviceSettingTitle { color: #0066cc; }
  #device-selection-modal .premiumLockBadge { background: #fff0d8; color: #815000; }
  #device-selection-modal .genderPrefOption.is-selected { background: #e9f3ff; border-color: #017ffe; color: #0066cc; }
  #device-selection-modal .interestChip { background: #e9f3ff; color: #0066cc; }
  #device-selection-modal .interestChip button { color: inherit; }
  #device-selection-modal .settingsMuteBtn.is-muted { background: #fff0f1; border-color: #de9da5; color: #a12b3a; }
  #device-selection-modal .hotkeyCap.is-capturing { background: #e9f3ff; border-color: #017ffe; color: #0066cc; }
  #device-selection-modal .hotkeyCap.is-conflict { border-color: #c53d4e; color: #a12b3a; }
  #device-selection-modal .matchingChoiceCard { background: #fff; border-color: #d8e5f5; }
  #device-selection-modal .matchingChoiceCard:focus-within { border-color: #017ffe; }
  #device-selection-modal .matchingChoiceIcon { background: #e9f3ff; border-color: #c6dfff; }
  #device-selection-modal .matchingPremiumNote { background: #edf5ff; border-color: #d8e5f5; color: #36577e; }
  #device-selection-modal .deviceModalFooter { background: #fff; }
  #device-selection-modal #device-modal-cancel { background: #0066cc; border-color: #0066cc; color: #fff; }
/* Matching drawer frames keep navigation in the same place. */
#device-selection-modal .device-modal-v2,
#premiumDrawer .device-modal-v2 {
  width: min(480px, 100vw);
  min-width: 0;
  color: #182f4d;
  border-left: 1px solid #e5edf6;
  box-shadow: -16px 0 48px #10284a20;
}
#device-selection-modal .deviceModalHeader,
#premiumDrawer .deviceModalHeader {
  min-height: 80px;
  padding: 18px 24px;
  border-top: 0;
  border-bottom: 1px solid #e5edf6;
  background: #fff;
}
#device-selection-modal #device-title { color: #203b5b; font-size: 21px; letter-spacing: -.5px; }
#device-selection-modal .deviceModalCloseBtn,
#premiumDrawer .deviceModalCloseBtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #e0e9f4;
  border-radius: 12px;
  background: #f8fafd;
  color: #647c98;
  line-height: 1;
}
#device-selection-modal .settingsTabs { margin: 14px 20px 4px; }
#device-selection-modal .deviceModalBody { padding: 16px 20px 20px; }
#device-selection-modal .deviceModalFooter { padding: 16px 20px; }
#device-selection-modal #settingsAccountLink {
  background: #fff !important;
  border-color: #d8e5f5 !important;
  color: #142c49 !important;
}
#device-selection-modal #settingsAccountLink .settings-account-icon {
  background: #eaf3ff;
  border-color: #c6dfff;
  color: #2679e1 !important;
}
#device-selection-modal #settingsAccountLink .deviceSettingSub { color: #526780 !important; }
#device-selection-modal #settingsAccountLink .settings-account-arrow { color: #647c98 !important; }
@media (hover: hover) {
  #device-selection-modal #settingsAccountLink:hover { background: #f0f6ff !important; border-color: #bdd8f9 !important; }
  #device-selection-modal :is(.settingsTabs button, .deviceModalCloseBtn, .settingsMuteBtn, .hotkeyCap, .hotkeyResetBtn):hover { background: #eaf3ff; color: #215581; }
  #device-selection-modal .settingsTabs button[aria-selected="true"]:hover { background: #0059b3; color: #fff; }
}
@media (min-width: 521px) {
  :root { --desktop-bottom-h: clamp(164px, 22dvh, 200px); }
  #message-area.message-section {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr) 56px;
    grid-template-areas:
      "messages messages messages messages messages messages messages messages"
      "start stop match settings input input input input";
    gap: 8px;
    padding: 10px;
    background: #f3f7fc;
    border-top: 1px solid #e0e9f4;
  }
  #messages.messages-container {
    border: 1px solid #e0e9f4;
    border-radius: 12px;
    padding: 10px 12px;
  }
  #input-area.input-section .input-wrapper {
    height: 56px;
    border: 1px solid #d6e2f0;
    border-radius: 12px;
    background: #fff;
  }
  #input-area .message-input { height: 100%; min-height: 0; padding-inline: 14px 52px; font-size: 15px; }
  #skip-btn.button-skip,
  #video2StopTile,
  #video2PremiumTile,
  #video2SettingsTile {
    height: 56px;
    min-height: 56px;
    min-width: 0;
    align-self: center;
    border-radius: 12px;
    box-shadow: none;
    filter: none;
  }
  #skip-btn.button-skip {
    background: linear-gradient(180deg, #229cff, #057ce9);
    box-shadow: 0 3px 0 #0563bc;
  }
  #video2StopTile,
  #video2PremiumTile,
  #video2SettingsTile {
    background: #fff;
    border: 1px solid #d6e2f0;
    color: #294760;
    flex-direction: row;
    gap: 8px;
    padding: 8px;
  }
  #video2StopTile .button-label,
  #video2PremiumTile .premium-label,
  #video2SettingsTile .settings-label { color: inherit; text-shadow: none; font-size: 14px; }
  #skip-btn.button-skip .button-label { font-size: 16px; text-shadow: none; }
  #video2PremiumTile .premium-control-icon,
  #video2SettingsTile .settings-tile-icon,
  #video2SettingsTile .settings-tile-icon svg { width: 22px; height: 22px; color: inherit; fill: none; stroke: currentColor; stroke-width: 1.8; }
  #skip-btn.button-skip:disabled,
  #video2StopTile:disabled,
  #skip-btn.button-skip:disabled:hover,
  #video2StopTile:disabled:hover { background: #e5edf6; border: 1px solid #d5e0ec; box-shadow: none; filter: none; opacity: 1; cursor: default; }
  #skip-btn.button-skip:disabled .button-label,
  #video2StopTile:disabled .button-label { color: #73869c; }
  #message-area :is(#skip-btn,#video2StopTile,#video2PremiumTile,#video2SettingsTile):focus-visible { outline: 3px solid #005fca; outline-offset: 2px; }
  body.video2-dark-mode #message-area.message-section { background: #111925; border-color: #29384a; }
  body.video2-dark-mode #messages.messages-container,
  body.video2-dark-mode #input-area.input-section .input-wrapper { background: #182331; border-color: #344459; }
  body.video2-dark-mode :is(#video2StopTile,#video2PremiumTile,#video2SettingsTile):not(:disabled) { background: #223145; border-color: #405570; color: #e9f2ff; }
  body.video2-dark-mode :is(#skip-btn,#video2StopTile):disabled { background: #26313f; border-color: #344459; }
  body.video2-dark-mode :is(#skip-btn,#video2StopTile):disabled .button-label { color: #91a2b8; }
}
@media (min-width: 521px) and (hover: hover) {
  #skip-btn.button-skip:hover:not(:disabled) { background: linear-gradient(180deg, #38a7ff, #0874d8); box-shadow: 0 3px 0 #055db1; filter: none; }
  :is(#video2StopTile,#video2PremiumTile,#video2SettingsTile):hover:not(:disabled) { background: #eaf3ff; border-color: #a9c9ee; box-shadow: none; filter: none; }
  body.video2-dark-mode :is(#video2StopTile,#video2PremiumTile,#video2SettingsTile):hover:not(:disabled) { background: #2e435d; }
}
@media (min-width: 521px) and (max-width: 900px) {
  #message-area.message-section { padding: 6px; gap: 6px; }
  #video2PremiumTile, #video2SettingsTile { flex-direction: column; gap: 3px; padding: 4px 2px; }
  #video2PremiumTile .premium-label, #video2SettingsTile .settings-label { font-size: 11px; }
  #video2PremiumTile .premium-control-icon, #video2SettingsTile .settings-tile-icon,
  #video2SettingsTile .settings-tile-icon svg { width: 18px; height: 18px; }
}
@media (max-width: 520px) {
  #device-selection-modal .device-modal-v2,
  #premiumDrawer .device-modal-v2 { width: min(92vw, 400px); min-width: 0; }
  #premiumDrawer .device-modal-v2.premium-checkout-open { width: 100vw; }
  #device-selection-modal .deviceModalHeader,
  #premiumDrawer .deviceModalHeader { padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 16px; }
  #device-selection-modal .settingsTabs { margin-inline: 16px; }
  #device-selection-modal .deviceModalBody, #premiumDrawer .premium-body { padding: 16px; }
  #device-selection-modal .deviceModalFooter,
  #premiumDrawer .premium-drawer-footer { padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  #premiumDrawer .premium-hero { padding: 20px 16px; }
  #premiumDrawer .premium-headline { font-size: clamp(26px, 7.5vw, 32px); }
  #messages.messages-container { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
  #messages .message:is(.message-stranger,.message-you) { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
  #mobilePremiumBtn .premium-control-icon,
  #mobilePremiumControl svg,
  #send-btn.button-send .mobile-chat-icon,
  #send-btn.button-send .mobile-chat-icon svg { width: 30px; height: 30px; }
  #mobilePremiumControl svg { fill: currentColor; stroke: none; flex-shrink: 0; }
  #skip-btn.button-skip::before, #skip-btn.button-skip::after { content: none; }
  #skip-btn.button-skip .mobile-next-icon { display: block; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; fill: currentColor; stroke: none; color: #fff; pointer-events: none; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
  #skip-btn.button-skip:disabled .mobile-next-icon { opacity: .42; }
  #mobilePremiumBtn, #mobilePremiumControl, #send-btn.button-send, #skip-btn.button-skip { min-width: 44px; min-height: 44px; }
}
#device-selection-modal .identity-save-status { color: #526e89; }
#device-selection-modal .identity-save-status.is-error { color: #b42338; }
#video2SettingsTile .settings-tile-icon { filter: none; }
@media (max-width: 520px) {
  #messages.messages-container {
    bottom: calc(var(--mobile-control-bottom) + var(--mobile-control-size) * 2 + 24px);
  }
  #newMessagesBtn { bottom: calc(var(--mobile-control-bottom) + var(--mobile-control-size) * 2 + 24px); }
}

/* Welcome guidance belongs only to the initial screen, never an active transcript. */
body:not(.video2-initial-screen) #messages > :is(.message-policy-notice,.mobile-control-policy) { display: none; }
#messages > :is(.message-policy-notice,.mobile-control-policy) {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.5;
}
#messages > .message-policy-notice::before { content: none; }
#messages .video-welcome-title { display: block; margin-bottom: 3px; font-size: 17px; line-height: 1.3; font-weight: 700; }
#messages .video-welcome-detail { display: block; }
#messages :is(.message-policy-notice,.mobile-control-policy) a { text-underline-offset: 3px; }
@media (max-width: 520px) {
  #messages > .mobile-control-policy { color: #fff; text-align: left; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
  #messages > .mobile-control-policy a { color: inherit; }
  #messages .video-welcome-title { font-size: 18px; }
}

/* Screen typography, with native emoji and diagnostic monospace left intact. */
body.video-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
}
body.video-page :is(button,input,select,textarea) { font-family: inherit; }
#messages .message:is(.message-stranger,.message-you) { font-size: 15px; font-weight: 400; line-height: 1.45; }
#messages .message-author { font-weight: 600; }
#message-input { font-size: 16px; }
:is(#skip-btn,#video2StopTile,#video2PremiumTile,#video2SettingsTile) { font-weight: 600; }
:is(#device-selection-modal,#premiumDrawer) .deviceModalHeader h2 { font-size: 24px; font-weight: 700; }
.video2-session-timer { font-variant-numeric: tabular-nums; }
#video2SettingsTile .settings-tile-icon svg { fill: currentColor; stroke: none; }

/* A shared volume track, with a generous keyboard and pointer target. */
#peer-volume, #settings-peer-volume {
  -webkit-appearance: none;
  appearance: none;
  height: 28px; min-height: 28px; padding: 0; margin: 0; border: 0;
  background: transparent; color: #1687ee; cursor: pointer;
  --volume-rest: #d5e3f3;
}
#peer-volume { --volume-rest: rgba(255,255,255,.25); }
#peer-volume::-webkit-slider-runnable-track, #settings-peer-volume::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(to right,#1687ee 0 var(--volume-fill,100%),var(--volume-rest) var(--volume-fill,100%) 100%);
}
#peer-volume::-moz-range-track, #settings-peer-volume::-moz-range-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(to right,#1687ee 0 var(--volume-fill,100%),var(--volume-rest) var(--volume-fill,100%) 100%);
}
#peer-volume::-webkit-slider-thumb, #settings-peer-volume::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -6px;
  border: 2px solid #1687ee; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px #0003;
}
#peer-volume::-moz-range-thumb, #settings-peer-volume::-moz-range-thumb {
  width: 14px; height: 14px; border: 2px solid #1687ee;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #0003;
}
#peer-volume:focus-visible, #settings-peer-volume:focus-visible { outline: 2px solid #64b9ff; outline-offset: 4px; border-radius: 6px; }
#desktopChatStatus { display: none; }
@media (min-width: 521px) {
  #peer .peer-audio-panel {
    left: 0; right: 0; bottom: 0; width: 100%; min-height: 54px;
    padding: 8px 16px; gap: 12px; border: 0; border-radius: 0;
    background: linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,.3) 80%,transparent);
    color: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    transform: translateY(100%);
  }
  .peer-volume-field { flex: 1; min-width: 0; display: flex; align-items: center; }
  .peer-volume-heading { display: none; }
  #peerAudioControl #mute-btn { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: transparent; }
  #peerAudioControl #mute-btn:hover { background: #ffffff20; }
  #peerAudioControl #mute-btn:focus-visible, #device-settings-btn:focus-visible { outline: 2px solid #64b9ff; outline-offset: 3px; }
  #peerAudioControl.is-open .peer-audio-panel { transform: translateY(0); }
  #peerAudioControl.is-open ~ :is(.video2-session-timer,.video2-vote-panel) { bottom: 72px; }
  body:not(.video2-remote-active) #peer .peer-audio-panel { opacity: 0 !important; pointer-events: none !important; }
  #self .local-settings-overlay {
    inset: 0; width: 100%; height: 100%; max-width: none; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.4) !important; transform: none;
    transition: opacity 140ms ease;
  }
  #device-settings-btn.control-btn-settings {
    min-width: 0; height: 46px; padding: 0 18px; border-radius: 10px;
    border: 1px solid #ffffff38; background: rgba(0,0,0,.72);
    color: #fff; font-size: 14px; font-weight: 600; filter: none;
  }
  #device-settings-btn.control-btn-settings:hover { background: rgba(0,0,0,.88); }
  #remoteCountryFlag { display: none !important; }
  #desktopChatStatus:not([hidden]) {
    display: flex; flex: 0 0 auto; align-self: stretch; align-items: flex-start;
    gap: 9px; margin: 0 0 10px; padding: 8px 2px 10px;
    border-bottom: 1px solid #e7edf5; color: #526b85;
    font-size: 12px; line-height: 1.5; text-align: left;
  }
  .desktop-chat-status-dot { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: #1687ee; }
  #desktopChatStatus[data-state="connected"] .desktop-chat-status-dot { background: #239967; }
  .desktop-chat-status-copy { min-width: 0; }
  #desktopChatStatusTitle { display: block; color: #213e5b; font-size: 13px; font-weight: 600; }
  .desktop-chat-status-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 2px; }
  #desktopChatCountryFlag:not([hidden]) { display: inline-block; flex: 0 0 20px; width: 20px; height: 14px; border-radius: 2px; background-position: center; background-size: cover; background-repeat: no-repeat; }
  #desktopChatReport { border: 0; padding: 0; margin: 0 0 0 3px; border-radius: 0; background: transparent; box-shadow: none; color: #0869be; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  #desktopChatReport:focus-visible { outline: 2px solid #0874d8; outline-offset: 3px; }
  #messages:has(#desktopChatStatus:is([data-state="searching"],[data-state="connecting"]):not([hidden])) > #connectStatus { display: none !important; }
  body.video2-dark-mode #desktopChatStatus { color: #b0c2d5; border-color: #344459; }
  body.video2-dark-mode #desktopChatStatusTitle { color: #e5effb; }
  body.video2-dark-mode #desktopChatReport { color: #85c6ff; }
}
@media (min-width: 521px) and (hover: hover) and (pointer: fine) {
  body.video2-remote-active #peer:is(:hover,:focus-within) .peer-audio-panel {
    opacity: 1 !important; transform: translateY(0) !important; pointer-events: auto !important;
  }
  body.video2-remote-active #peer:is(:hover,:focus-within) :is(.video2-session-timer,.video2-vote-panel) { bottom: 72px; }
  #self:is(:hover,:focus-within) .local-settings-overlay { opacity: 1 !important; transform: translateY(0); pointer-events: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  #peer .peer-audio-panel, #self .local-settings-overlay { transition: none; }
}
@media (min-width: 521px) {
  .desktop-chat-status-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
  .desktop-chat-status-detail { margin-top: 0; }
}

/* Simple speaker labels, in the brand colors, at every viewport size. */
body.video-page #messages .message-author {
  display: inline; padding: 0; margin: 0; border: 0; border-radius: 0;
  background: transparent !important; box-shadow: none; opacity: 1;
  font-size: inherit; font-weight: 600; line-height: inherit; text-shadow: none;
}
body.video-page #messages .message-you .message-author { color: #1687ee; }
body.video-page #messages .message-stranger .message-author { color: #ff7f00; }
body.video-page #messages .message-author-icon { display: none; }
body.video-page #messages :is(.message-you,.message-stranger) {
  background: transparent !important; border: 0; border-radius: 0; box-shadow: none;
  padding: 3px 0; color: #243e56; text-shadow: none;
}
body.video-page.video2-dark-mode #messages :is(.message-you,.message-stranger) { color: #e4edf7; }
@media(max-width:520px) { body.video-page #messages :is(.message-you,.message-stranger) { color: #fff; text-shadow: 0 1px 3px #0009; } }

/* Recent connections uses the same compact row as the account entry. */
#device-selection-modal #settingsRecentConnectionsLink {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  width: 100%; min-width: 0; min-height: 64px; margin: 8px 0 0; padding: 12px;
  border: 1px solid #d6e3f1 !important; border-radius: 12px;
  background: #f7faff !important; color: #254563 !important;
  box-shadow: none !important; text-align: left; font: inherit; letter-spacing: normal;
}
#device-selection-modal #settingsRecentConnectionsLink:hover { background: #edf5ff !important; border-color: #bdd8f9 !important; }
#settingsRecentConnectionsLink .settings-account-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: #e9f2ff; color: #1687ee; }
#settingsRecentConnectionsLink .settings-account-icon svg { display: block; width: 21px; height: 21px; }
#settingsRecentConnectionsLink .deviceSettingText { flex: 1; min-width: 0; }
#settingsRecentConnectionsLink .deviceSettingTitle { color: #254563 !important; font-size: 14px; font-weight: 600; line-height: 1.35; }
#settingsRecentConnectionsLink .deviceSettingSub { color: #607891 !important; font-size: 11px; font-weight: 400; line-height: 1.4; margin-top: 3px; }
#settingsRecentConnectionsLink::after { content: ''; flex: 0 0 7px; width: 7px; height: 7px; margin-right: 4px; border: solid #748ca2; border-width: 0 1.8px 1.8px 0; transform: rotate(-45deg); }

/* The account entry keeps its icon on desktop as well as mobile. */
#device-selection-modal #settingsAccountLink { display:flex; align-items:center; gap:12px; }
#device-selection-modal #settingsAccountLink .settings-account-icon { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; border:0; border-radius:10px; background:#e9f2ff; color:#1687ee !important; }
#device-selection-modal #settingsAccountLink .settings-account-icon svg { display:block; width:21px; height:21px; }
#device-selection-modal #settingsAccountLink .deviceSettingText { flex:1; min-width:0; }

/* Settings controls keep their normal appearance when focused. */
#device-selection-modal :is(button,a,input,select,textarea,[tabindex]):is(:focus,:focus-visible),
#device-selection-modal .settingsSwitch input:is(:focus,:focus-visible) + .settingsSwitchTrack {
  outline: none !important; box-shadow: none !important;
}
#device-selection-modal .deviceSelect:is(:focus,:focus-visible) { border-color: #c6dcf6 !important; background: #f8fbff !important; }
#device-selection-modal .matchingChoiceCard:focus-within { border-color: #d8e5f5 !important; box-shadow: none !important; }
#device-selection-modal .deviceSelectWrap:focus-within::after { border-color: #0066cc !important; }

/* Suppress Safari's link tap flash and keep the account row neutral when pressed. */
#device-selection-modal #settingsAccountLink,
#device-selection-modal #settingsAccountLink * { -webkit-tap-highlight-color:transparent; }
#device-selection-modal #settingsAccountLink:is(:hover,:active,:focus,:focus-visible) {
  background:#f7f9fc !important; border-color:#d8e5f5 !important; color:#142c49 !important;
  box-shadow:none !important; outline:none !important;
}

/* Mobile connection notices use the same crisp, uppercase Inter treatment. */
@media (max-width:520px) {
  body.video-page :is(#peer-video-loader-text,#peer-cube-status,#connectStatus,.disconnected-text,#disconnected-subtext) {
    font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-optical-sizing:auto;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.045em;
    line-height:1.5;
    text-shadow:none !important;
    filter:none !important;
  }
  body.video-page :is(#peer-video-loader-text,#peer-cube-status) { font-size:16px; }
}

/* Keep connection labels steady; animate only a new label or visibility change. */
@media (max-width:520px) {
  #peer-video-loader, #peer-video-loader-text { opacity:1; transition:opacity 140ms ease-out; }
  #peer-video-loader.is-status-leaving, #peer-video-loader-text.is-status-leaving { opacity:0; }
  :is(#peer-video-loader-text,#peer-cube-status) .connection-title {
    animation:connection-label-enter 180ms ease-out both;
    min-height:1.5em;
  }
  :is(#peer-video-loader-text,#peer-cube-status) .loader-status-dots { letter-spacing:0; }
}
@keyframes connection-label-enter {
  from { opacity:.25; transform:translateY(3px); }
  to { opacity:1; transform:translateY(0); }
}
@media (max-width:520px) and (prefers-reduced-motion:reduce) {
  #peer-video-loader, #peer-video-loader-text { transition:none; }
  :is(#peer-video-loader-text,#peer-cube-status) .connection-title,
  :is(#peer-video-loader-text,#peer-cube-status) .loader-status-dots span,
  :is(#peer-video-loader,#peer-cube-spinner) .connection-ring { animation:none; }
}
