/* src/styles.css */
:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --border: #cbd5e1;
  --panel-bg: #ffffff;
  --call-footer-space: 232px;
  --primary-bg: #1d4ed8;
  --primary-text: #ffffff;
  --danger-bg: #b91c1c;
  --danger-text: #ffffff;
  --focus: #f59e0b;
  --room-ornament-left: none;
  --room-ornament-right: none;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("/assets/asset-SF2H4G7P.svg");
  background-repeat: repeat;
  background-size: 560px 560px;
  opacity: 0.06;
  z-index: 0;
}
#app {
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}
h1 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0.2px;
}
h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.1px;
}
h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}
.screenSubtitle {
  color: rgba(15, 23, 42, 0.85);
}
.screen {
  min-height: 100dvh;
  display: flex;
  padding: 16px;
}
.panel {
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 18px;
  background: var(--panel-bg);
  border: 2px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
}
.tgGateScreen {
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.tgGateCard {
  max-width: 620px;
  padding: 22px;
}
.tgGateTitle {
  font-size: 28px;
  margin-bottom: 10px;
}
.tgGateText {
  font-size: 20px;
  margin: 0 0 14px;
}
.tgGateSteps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.tgGateStep {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 20px;
  line-height: 1.35;
}
.tgGateIcon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 2px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #ffffff;
  color: var(--text);
}
.tgGateIcon svg {
  fill: currentColor;
}
.tgGateNotice {
  border: 2px solid #f59e0b;
  background: #fef3c7;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.tgGateNoticeTitle {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.tgGateNoticeHint {
  font-size: 18px;
}
.tgGateActions button {
  font-size: 22px;
}
.tgGateActions button.tertiary {
  min-height: 52px;
  font-size: 18px;
  background: transparent;
  color: rgba(15, 23, 42, 0.8);
  border-color: var(--border);
}
.tgGateActions button.tertiary:hover {
  background: rgba(15, 23, 42, 0.04);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.noticeStack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 14px;
}
.callScreen .noticeStack {
  padding: 12px 16px 0;
}
.noticeCard {
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.08);
}
.noticeWarning {
  border-color: #f59e0b;
  background: #fef3c7;
}
.noticeInfo {
  border-color: #94a3b8;
  background: #f8fafc;
}
.noticeTitle {
  font-size: 20px;
  font-weight: 700;
}
.noticeHint {
  font-size: 18px;
  margin-top: 6px;
}
.noticeAction {
  margin-top: 10px;
}
.notifyPrompt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notifyPromptActions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.notifyPromptActions button {
  min-height: 56px;
  font-size: 18px;
  width: 100%;
}
.installSection {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.installButton {
  min-height: 56px;
}
.installHelpButton {
  min-height: 48px;
  font-size: 18px;
  width: 100%;
}
.installHelpCard {
  border: 2px dashed var(--border);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  font-size: 18px;
}
.iosInstallBlock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.iosInstallHint {
  font-size: 18px;
  color: rgba(15, 23, 42, 0.75);
}
.iosInstallOverlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
.iosInstallCard {
  width: min(620px, 100%);
  max-height: 100%;
  overflow: auto;
}
.iosInstallTitle {
  font-size: 26px;
  margin: 0 0 14px;
}
.iosInstallSteps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.iosInstallStep {
  display: flex;
  gap: 12px;
  font-size: 20px;
  line-height: 1.35;
  align-items: flex-start;
}
.iosInstallIcon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--text);
}
.iosInstallIcon svg {
  stroke: currentColor;
}
.iosInstallActions button {
  font-size: 22px;
}
.statusText {
  font-size: 22px;
  margin-bottom: 14px;
}
.nearbySubscription {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.nearbyLabel {
  font-size: 20px;
  font-weight: 600;
}
.brandHeader {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.brandLogo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: 0 0 auto;
  background: #ffffff;
  border: 2px solid var(--border);
}
.brandText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brandTitle {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.2px;
}
.brandSub {
  font-size: 18px;
  color: rgba(15, 23, 42, 0.75);
}
.divider {
  height: 2px;
  background: var(--border);
  margin: 16px 0;
}
.sectionTitle {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.waitList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
}
.slotItem {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(248, 250, 252, 0.92);
}
.slotName {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.slotBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  width: fit-content;
}
.slotBadgeOnline {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.slotBadgeNearby {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #facc15;
}
.emptyText {
  font-size: 20px;
  color: rgba(15, 23, 42, 0.78);
  min-height: 120px;
}
input[type=text] {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  font-size: 22px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: #ffffff;
  color: var(--text);
}
.inputLabel {
  font-size: 18px;
  font-weight: 600;
}
input[type=text]::placeholder {
  color: rgba(15, 23, 42, 0.55);
}
input[type=text]:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 2px;
  border-color: rgba(15, 23, 42, 0.8);
}
button {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  font-size: 22px;
  font-weight: 650;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
}
button:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 2px;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
button.primary {
  background: var(--primary-bg);
  color: var(--primary-text);
}
button.secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}
button.danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}
.minorRow {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.footerLinks {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}
.textLink {
  font-size: 16px;
  color: rgba(15, 23, 42, 0.72);
  text-decoration: underline;
}
.textLink:hover {
  color: rgba(15, 23, 42, 0.9);
}
.textLink:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
button.quietButton {
  width: auto;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 650;
  background: transparent;
  color: rgba(15, 23, 42, 0.72);
  border-color: transparent;
}
button.quietButton:hover {
  background: rgba(15, 23, 42, 0.04);
}
button.quietButton:disabled {
  opacity: 0.45;
}
.policyList {
  margin: 12px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.callScreen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.callBody {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(var(--call-footer-space) + env(safe-area-inset-bottom, 0px));
  position: relative;
  isolation: isolate;
}
.callFrame {
  width: min(100%, calc((100dvh - 16px - var(--call-footer-space) - env(safe-area-inset-bottom, 0px)) * 16 / 9));
  aspect-ratio: 16 / 9;
  max-width: 1200px;
  border: 2px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #000000;
  position: relative;
  z-index: 1;
}
.callFrame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.jitsiHost {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.callStatusOverlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(248, 250, 252, 0.96);
}
.callStatusOverlay[data-visible="0"] {
  display: none;
}
.callStatusOverlay[data-variant=toast] {
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
  background: transparent;
  pointer-events: none;
}
.callStatusOverlay[data-variant=toast] .callStatusCard {
  pointer-events: none;
}
.callStatusCard {
  width: 100%;
  max-width: 560px;
  background: var(--panel-bg);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.12);
}
.callStatusTitle {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}
.callStatusHint {
  font-size: 22px;
  color: rgba(15, 23, 42, 0.78);
}
.callStatusActions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.callFooter #audioOnlyBtn[data-active="1"] {
  background: rgba(29, 78, 216, 0.12);
  border-color: rgba(29, 78, 216, 0.55);
}
.callFooter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 2px solid var(--border);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.callFooter button {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  display: block;
}
.callFooterMinor {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.callFooter button.quietButton {
  width: auto;
  margin: 0;
}
#app[data-view=room] .callBody::before,
#app[data-view=room] .callBody::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: calc(var(--call-footer-space) + env(safe-area-inset-bottom, 0px));
  width: 92px;
  pointer-events: none;
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 170px auto;
  z-index: 0;
}
#app[data-view=room] .callBody::before {
  left: 0;
  background-image: var(--room-ornament-left);
}
#app[data-view=room] .callBody::after {
  right: 0;
  background-image: var(--room-ornament-right);
}
@media (max-width: 359px) {
  #app[data-view=room] .callBody {
    padding: 12px;
    padding-bottom: calc(var(--call-footer-space) + env(safe-area-inset-bottom, 0px));
  }
  #app[data-view=room] .callBody::before,
  #app[data-view=room] .callBody::after {
    display: none;
  }
}
@media (min-width: 720px) {
  #app[data-view=room] .callBody {
    padding-left: 124px;
    padding-right: 124px;
    justify-content: center;
  }
  #app[data-view=room] .callBody::before,
  #app[data-view=room] .callBody::after {
    width: 110px;
  }
}
.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}
.modalBox {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}
.modalText {
  font-size: 20px;
  margin-bottom: 14px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
