/* Voice Exchanger web version. Copyright (c) 2026 OptimaTech Labs, LLC */
/* Nothing shows until the sign-in check answers, so signed-out visitors never glimpse the app. */
.checking body { visibility: hidden; }
.signin { display: none; }
.signed-out .signin {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 10; background: var(--bg);
}
.signin-card {
  width: min(360px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 12px; padding: 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.signin-card h1 { margin: 0; font-size: 20px; }
.signin-card p { margin: 0; }
.signin-card .mark { width: 34px; height: 34px; }
.signin-card .primary { align-self: stretch; }
.signout { position: fixed; right: 20px; top: 20px; z-index: 5; }
.signed-out .signout { display: none; }
/* The server address and key are fixed in the web version. */
.web [data-tab="settings"] { display: none; }
.side, .pagebar { -webkit-app-region: no-drag; }

/* Phones and narrow windows: sidebar becomes a top bar. */
@media (max-width: 760px) {
  body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { flex-direction: row; align-items: center; padding: 8px 12px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--side-line); }
  .brand { border: 0; margin: 0; padding: 4px; }
  .brand .product { display: none; }
  .tabs { flex-direction: row; overflow-x: auto; }
  .tabs button { white-space: nowrap; padding: 6px 8px; }
  .side-foot { display: none; }
  .shell { height: auto; min-height: 0; }
  main { padding: 16px; }
  .pagebar { padding: 14px 16px; }
  .pagehint { display: none; }
  .signout { top: auto; bottom: 12px; right: 16px; }
  .result audio, .table audio { min-width: 160px; }
  .stats { grid-template-columns: 1fr; }
}
