:root {
  --ink: #152a26;
  --forest: #173d35;
  --forest-deep: #0e2b25;
  --sage: #8fac88;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --gold: #cda45e;
  --muted: #61706b;
  --border: #dcd7cb;
}

html {
  font-size: 16px;
  min-height: 100%;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(205, 164, 94, 0.09), transparent 28rem),
    var(--cream);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

h1,
h2,
h3,
blockquote {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
}

a {
  color: var(--forest);
}

.site-header {
  padding-top: env(safe-area-inset-top);
  background: var(--forest-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header .navbar {
  min-height: 76px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.78);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
}

.brand-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--forest-deep);
  background: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark-small {
  width: 38px;
  height: 38px;
  font-size: 0.72rem;
}

.nav-action {
  min-width: 118px;
  border-radius: 999px;
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--forest);
  background: #f7f9f7;
  box-shadow:
    6px 7px 14px rgba(1, 18, 14, 0.23),
    inset 2px 2px 5px rgba(255, 255, 255, 0.82);
  cursor: pointer;
  list-style: none;
}

.header-icon-button::-webkit-details-marker {
  display: none;
}

.header-icon-button:hover,
.header-icon-button:focus-visible {
  color: #fff;
  background: #28584d;
}

.language-flag {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid rgba(18, 42, 36, 0.09);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(20, 40, 34, 0.17);
}

.language-menu > .header-icon-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.flag-es {
  background: linear-gradient(to bottom, #c8102e 0 25%, #ffc400 25% 75%, #c8102e 75% 100%);
}

.flag-br {
  background: #159447;
}

.flag-br::before {
  position: absolute;
  width: 21px;
  height: 21px;
  top: 5px;
  left: 5px;
  background: #ffdf38;
  content: "";
  transform: rotate(45deg);
}

.flag-br::after {
  position: absolute;
  width: 12px;
  height: 12px;
  top: 10px;
  left: 10px;
  border-radius: 50%;
  background: #2446a8;
  content: "";
}

.language-menu {
  position: relative;
}

.language-menu-panel {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 0.7rem);
  right: 0;
  width: 205px;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: #f8f7f2;
  box-shadow: 12px 16px 32px rgba(13, 39, 32, 0.24);
}

.language-menu-panel form {
  margin: 0;
}

.language-choice {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: transparent;
  font-weight: 750;
  text-align: left;
}

.language-choice:hover,
.language-choice:focus-visible,
.language-choice.active {
  color: var(--forest-deep);
  background: #e2ebe4;
}

.language-choice span:first-child {
  font-size: 1.45rem;
}

.header-logout-form {
  margin: 0;
}

.logout-icon-button svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.install-action[hidden] {
  display: none !important;
}

.site-main {
  min-height: calc(100vh - 164px);
  min-height: calc(100dvh - 164px);
  padding-top: clamp(2.5rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.auth-page .site-main,
.menu-page .site-main {
  display: grid;
  align-items: center;
}

body.auth-page {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
}

.auth-page .site-header {
  flex: 0 0 auto;
}

.auth-page .site-main {
  width: 100%;
  min-height: 0;
  padding-top: clamp(0.75rem, 2vh, 1.5rem);
  padding-bottom: clamp(0.75rem, 2vh, 1.5rem);
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.auth-page .site-footer {
  display: none;
}

.auth-page .site-main > main,
.menu-page .site-main > main {
  width: 100%;
}

.site-footer {
  padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  color: #d2ddd9;
  background: var(--forest-deep);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #95713b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-menu {
  width: min(1080px, 100%);
  margin: clamp(2rem, 8vh, 6rem) auto;
  text-align: center;
}

.home-menu h1 {
  margin: 0 0 2.25rem;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
}

.home-menu-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.home-menu-button {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
  border: 0;
  border-radius: 30px;
  color: #fff;
  background: var(--forest);
  box-shadow:
    14px 16px 30px rgba(22, 60, 50, 0.2),
    inset 3px 3px 7px rgba(255, 255, 255, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: left;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.home-menu-button:hover,
.home-menu-button:focus-visible {
  color: #fff;
  background: var(--forest-deep);
  box-shadow:
    18px 20px 36px rgba(22, 60, 50, 0.24),
    inset 3px 3px 7px rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.home-menu-button-pending,
.home-menu-button-pending:disabled {
  justify-content: center;
  color: var(--ink);
  background: #e3e8df;
  box-shadow:
    12px 14px 26px rgba(54, 70, 63, 0.13),
    inset 3px 3px 7px rgba(255, 255, 255, 0.68);
  cursor: not-allowed;
  opacity: 0.72;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.hero-copy h1 {
  max-width: 740px;
  margin: 0 0 1.5rem;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  border-color: var(--forest);
  background: var(--forest);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--forest-deep);
  background: var(--forest-deep);
}

.hero-actions .btn {
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
}

.hero-caption {
  color: var(--muted);
  font-size: 0.9rem;
}

.verse-card {
  position: relative;
  padding: clamp(2rem, 5vw, 3.75rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px 48px 3px 3px;
  color: #edf3ef;
  background: var(--forest);
  box-shadow: 0 32px 70px rgba(14, 43, 37, 0.2);
}

.verse-card::after {
  position: absolute;
  right: -30px;
  bottom: -52px;
  content: "“";
  color: rgba(255, 255, 255, 0.06);
  font-family: Georgia, serif;
  font-size: 17rem;
  line-height: 1;
}

.verse-language {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.verse-card blockquote {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 1rem;
  color: #fff;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.25;
}

.verse-card cite,
.verse-card p {
  position: relative;
  z-index: 1;
}

.verse-card cite {
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

.verse-card p {
  margin: 0;
  color: #d8e3df;
  line-height: 1.7;
}

.verse-divider {
  width: 48px;
  height: 1px;
  margin: 2rem 0;
  background: var(--gold);
}

.feature-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(4rem, 9vw, 8rem);
  border: 1px solid var(--border);
  background: var(--border);
}

.feature-grid article,
.stat-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--paper);
}

.feature-number {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-grid h2,
.stat-card h2 {
  margin: 1rem 0 0.7rem;
  font-size: 1.45rem;
}

.feature-grid p,
.stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.auth-shell {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 10vw, 8rem);
  max-width: 1080px;
  margin: 0 auto;
}

.clay-auth {
  position: relative;
  isolation: isolate;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 44px;
  background: linear-gradient(145deg, #f0eadc, #dce9df);
  box-shadow:
    24px 24px 55px rgba(41, 64, 56, 0.18),
    -18px -18px 42px rgba(255, 255, 255, 0.82),
    inset 3px 3px 7px rgba(255, 255, 255, 0.68),
    inset -4px -4px 10px rgba(86, 117, 105, 0.09);
  overflow: hidden;
}

.clay-auth::before,
.clay-auth::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(0.2px);
}

.clay-auth::before {
  width: 190px;
  height: 190px;
  top: -72px;
  right: 24%;
  background: #d5b06e;
  box-shadow:
    inset 14px 14px 26px rgba(255, 255, 255, 0.38),
    inset -16px -16px 28px rgba(116, 79, 25, 0.16),
    14px 18px 30px rgba(75, 67, 42, 0.15);
}

.clay-auth::after {
  width: 120px;
  height: 120px;
  bottom: -42px;
  left: 38%;
  background: #91b49e;
  box-shadow:
    inset 10px 10px 20px rgba(255, 255, 255, 0.4),
    inset -12px -12px 22px rgba(39, 83, 65, 0.18),
    12px 15px 26px rgba(45, 74, 63, 0.16);
}

.clay-auth .auth-copy,
.clay-auth .auth-card {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.clay-auth .auth-card {
  border: 0;
  border-radius: 34px;
  background: linear-gradient(145deg, #fffefa, #eee8dc);
  box-shadow:
    17px 19px 34px rgba(49, 70, 61, 0.2),
    -10px -10px 24px rgba(255, 255, 255, 0.86),
    inset 2px 2px 5px rgba(255, 255, 255, 0.82),
    inset -4px -4px 9px rgba(94, 83, 62, 0.08);
}

.clay-auth .brand-mark {
  box-shadow:
    7px 8px 14px rgba(103, 75, 31, 0.23),
    -5px -5px 12px rgba(255, 248, 218, 0.72),
    inset 3px 3px 7px rgba(255, 255, 255, 0.45),
    inset -4px -4px 8px rgba(120, 80, 24, 0.14);
}

.clay-auth .form-control,
.clay-auth .form-select {
  border: 0;
  border-radius: 17px;
  background: #f7f3e9;
  box-shadow:
    inset 5px 5px 10px rgba(72, 83, 77, 0.11),
    inset -5px -5px 10px rgba(255, 255, 255, 0.86);
}

.clay-auth .auth-submit {
  border: 0;
  box-shadow:
    8px 10px 18px rgba(22, 62, 52, 0.28),
    -6px -6px 14px rgba(255, 255, 255, 0.72),
    inset 2px 2px 5px rgba(255, 255, 255, 0.24),
    inset -4px -4px 8px rgba(5, 36, 28, 0.2);
}

.clay-auth .auth-submit:active {
  transform: translateY(2px);
  box-shadow:
    inset 5px 5px 10px rgba(5, 36, 28, 0.24),
    inset -3px -3px 7px rgba(255, 255, 255, 0.18);
}

.auth-copy h1 {
  max-width: 620px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}

.auth-copy > p {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.auth-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  max-width: 530px;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-note-icon {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-size: 0.75rem;
}

.auth-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 4px 36px 4px 4px;
  background: var(--paper);
  box-shadow: 0 26px 60px rgba(37, 47, 43, 0.11);
}

.auth-card-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-card-heading h2 {
  margin: 0 0 0.25rem;
  font-size: 1.7rem;
}

.auth-card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-control {
  min-height: 50px;
  border-color: var(--border);
  border-radius: 3px;
  background: #fff;
}

.form-select {
  min-height: 50px;
  border-color: var(--border);
  border-radius: 3px;
}

.form-control:focus,
.form-check-input:focus,
.btn:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 0.22rem rgba(143, 172, 136, 0.25);
}

.auth-check {
  margin: 0.4rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 750;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  text-align: center;
}

.auth-links a,
.link-button {
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-flow {
  margin-block: 1rem;
}

.account-flow .auth-card {
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.account-flow .form-field {
  margin-bottom: 0.9rem;
}

.compact-flow {
  max-width: 980px;
}

.verification-code {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.45em;
  text-align: center;
}

.registration-language-picker {
  position: relative;
}

.registration-language-summary {
  display: grid;
  min-height: 54px;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  border-radius: 17px;
  background: #f7f3e9;
  box-shadow:
    inset 5px 5px 10px rgba(72, 83, 77, 0.11),
    inset -5px -5px 10px rgba(255, 255, 255, 0.86);
  cursor: pointer;
  list-style: none;
}

.registration-language-summary::-webkit-details-marker {
  display: none;
}

.registration-language-arrow {
  color: var(--muted);
  font-size: 1.25rem;
  transition: transform 160ms ease;
}

.registration-language-picker[open] .registration-language-arrow {
  transform: rotate(180deg);
}

.registration-language-options {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.45rem);
  right: 0;
  left: 0;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: #faf8f1;
  box-shadow: 10px 14px 28px rgba(28, 50, 42, 0.2);
}

.registration-language-option {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: transparent;
  font-weight: 750;
  text-align: left;
}

.registration-language-option:hover,
.registration-language-option:focus-visible,
.registration-language-option.active {
  color: var(--forest-deep);
  background: #e1ebe3;
}

.registration-language-option .language-flag {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.validation-summary ul {
  padding-left: 1.25rem;
}

.setup-list {
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.setup-list li {
  margin-bottom: 0.55rem;
}

.setup-list li::before {
  margin-right: 0.65rem;
  color: var(--gold);
  content: "—";
}

.dashboard-header h1,
.empty-state h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  letter-spacing: -0.045em;
}

.dashboard-header p,
.empty-state p {
  color: var(--muted);
}

.stat-grid {
  margin-top: 3rem;
}

.stat-value {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
}

.next-step-card {
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  color: #e8efec;
  background: var(--forest);
}

.next-step-card h2 {
  color: #fff;
}

.next-step-card p {
  max-width: 820px;
  margin-bottom: 0;
  color: #d2dfda;
  line-height: 1.75;
}

.settings-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.settings-shell h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  letter-spacing: -0.045em;
}

.settings-shell > div > p {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.settings-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 4px 36px 4px 4px;
  background: var(--paper);
  box-shadow: 0 26px 60px rgba(37, 47, 43, 0.11);
}

.settings-submit {
  min-height: 50px;
  border-radius: 999px;
  padding-inline: 1.5rem;
  font-weight: 750;
}

.projection-settings {
  align-items: center;
}

.projection-background-card {
  width: 100%;
}

.projection-background-preview {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 24px;
  color: #d9ddd9;
  background: #000;
  box-shadow:
    inset 5px 5px 12px rgba(0, 0, 0, 0.65),
    9px 11px 22px rgba(35, 54, 47, 0.16);
}

.projection-background-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projection-background-card small {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
}

.reset-background-form {
  margin-top: 0.85rem;
}

.bible-chat {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

body.chat-page {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
}

.chat-page .site-header {
  flex: 0 0 auto;
}

.chat-page .site-main {
  display: block;
  width: 100%;
  min-height: 0;
  padding-top: clamp(0.75rem, 2vh, 1.5rem);
  padding-bottom: clamp(0.75rem, 2vh, 1.5rem);
  flex: 1 1 auto;
  overflow: hidden;
}

.chat-page .site-main > main,
.chat-page .bible-chat {
  height: 100%;
  min-height: 0;
}

.chat-page .bible-chat {
  display: flex;
  flex-direction: column;
}

.chat-page .chat-heading {
  margin-bottom: 1rem;
  flex: 0 0 auto;
}

.chat-page .chat-panel {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.chat-page .chat-stream {
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
}

.chat-page .chat-composer,
.chat-page .voice-status {
  flex: 0 0 auto;
}

.chat-page .site-footer {
  display: none;
}

.back-to-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  margin-bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 16px;
  color: var(--forest);
  background: #e6ece3;
  box-shadow:
    6px 7px 14px rgba(55, 78, 69, 0.13),
    -4px -4px 10px rgba(255, 255, 255, 0.78),
    inset 2px 2px 4px rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.chat-utility-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.chat-utility-row .back-to-menu {
  margin-bottom: 0;
}

.back-to-menu:hover,
.back-to-menu:focus-visible {
  color: #fff;
  background: var(--forest);
}

.back-to-menu + .eyebrow {
  display: block;
}

.chat-heading {
  display: block;
  margin-bottom: 2rem;
}

.chat-heading > div {
  min-width: 0;
  max-width: 100%;
}

.chat-heading h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  letter-spacing: -0.05em;
}

.chat-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.voice-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: var(--forest);
  background: #dfeadf;
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow:
    7px 8px 16px rgba(55, 78, 69, 0.13),
    -5px -5px 12px rgba(255, 255, 255, 0.82),
    inset 2px 2px 5px rgba(255, 255, 255, 0.6);
}

.voice-badge span {
  color: #2f8a66;
}

.chat-heading-actions {
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.7rem;
}

.projection-session-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.projection-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  background: #eeeae1;
  font-size: 0.78rem;
  box-shadow:
    5px 6px 13px rgba(55, 72, 64, 0.11),
    inset 2px 2px 5px rgba(255, 255, 255, 0.7);
}

.projection-status span {
  color: #a2aaa5;
}

.projection-status.has-screens {
  color: var(--forest);
  background: #dce9df;
}

.projection-status.has-screens span {
  color: #2f996d;
}

.projection-status.has-warning {
  color: #77483d;
  background: #f2dfd8;
}

.hide-projection-button {
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--forest);
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow:
    5px 6px 12px rgba(23, 61, 51, 0.18),
    inset 2px 2px 4px rgba(255, 255, 255, 0.14);
}

.hide-projection-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.chat-panel {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 36px;
  background: linear-gradient(145deg, #eef1e8, #e2e9df);
  box-shadow:
    22px 24px 50px rgba(42, 67, 57, 0.18),
    -14px -14px 36px rgba(255, 255, 255, 0.78),
    inset 3px 3px 8px rgba(255, 255, 255, 0.64),
    inset -4px -4px 10px rgba(65, 91, 80, 0.08);
}

.chat-stream {
  display: flex;
  min-height: 380px;
  max-height: 58vh;
  padding: clamp(0.5rem, 2vw, 1.25rem);
  overflow-y: auto;
  flex-direction: column;
  gap: 1.15rem;
  scroll-behavior: smooth;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  max-width: 86%;
}

.user-message {
  align-self: flex-end;
  justify-content: flex-end;
}

.message-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: var(--forest-deep);
  background: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow:
    5px 6px 12px rgba(88, 69, 35, 0.2),
    inset 2px 2px 5px rgba(255, 255, 255, 0.4);
}

.message-bubble {
  min-width: 0;
  max-width: 100%;
  padding: 1rem 1.15rem;
  border-radius: 8px 24px 24px 24px;
  background: var(--paper);
  box-shadow:
    9px 11px 22px rgba(55, 74, 66, 0.13),
    -5px -5px 13px rgba(255, 255, 255, 0.72),
    inset 2px 2px 4px rgba(255, 255, 255, 0.75);
  overflow-wrap: anywhere;
}

.message-bubble p:last-child {
  margin-bottom: 0;
}

.user-message .message-bubble {
  border-radius: 24px 8px 24px 24px;
  color: #fff;
  background: linear-gradient(145deg, #245247, #153d34);
  box-shadow:
    9px 11px 22px rgba(22, 56, 47, 0.24),
    inset 2px 2px 5px rgba(255, 255, 255, 0.12);
}

.example-query {
  padding: 0;
  border: 0;
  color: #8c6733;
  background: transparent;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.result-summary {
  color: var(--muted);
  font-size: 0.88rem;
}

.verse-result {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.verse-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  color: var(--forest);
}

.verse-result-heading span {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  background: #eee9df;
  font-size: 0.7rem;
  font-weight: 750;
}

.verse-result p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.07rem;
  line-height: 1.65;
}

.verse-result-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.share-verse-button,
.project-verse-button,
.clear-projection-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 999px;
  color: var(--forest-deep);
  background: #e3ece4;
  box-shadow:
    5px 6px 12px rgba(52, 75, 65, 0.14),
    inset 2px 2px 5px rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 150ms ease, background 150ms ease;
}

.share-verse-button:hover,
.share-verse-button:focus-visible,
.project-verse-button:hover,
.project-verse-button:focus-visible,
.clear-projection-button:hover,
.clear-projection-button:focus-visible {
  background: #d6e5d9;
  transform: translateY(-1px);
}

.share-verse-button:disabled,
.project-verse-button:disabled,
.clear-projection-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.share-verse-button svg,
.project-verse-button svg,
.clear-projection-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.project-verse-button {
  color: #fff;
  background: var(--forest);
  box-shadow:
    5px 6px 12px rgba(23, 61, 51, 0.2),
    inset 2px 2px 5px rgba(255, 255, 255, 0.14);
}

.project-verse-button:hover,
.project-verse-button:focus-visible {
  color: #fff;
  background: var(--forest-deep);
}

.project-verse-button[aria-disabled="true"] {
  opacity: 0.62;
}

.clear-projection-button {
  width: 40px;
  min-width: 40px;
  padding: 0;
  color: #754a43;
  background: #eee3df;
}

.clear-projection-button:hover,
.clear-projection-button:focus-visible {
  color: #fff;
  background: #754a43;
}

.clear-projection-button.is-success {
  color: #fff;
  background: #39765d;
}

.clear-projection-button[aria-disabled="true"] {
  opacity: 0.62;
}

.projection-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.projection-page .site-header,
.projection-page .site-footer {
  display: none;
}

.projection-page .site-main.container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

.projection-page .site-main > main {
  min-height: 100vh;
  min-height: 100dvh;
}

.projection-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  color: #fff;
  background: #000;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.projection-waiting {
  max-width: 720px;
  color: #a9b0ad;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.projection-waiting strong {
  display: block;
  margin-bottom: 0.65rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.projection-waiting p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.projection-live-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-bottom: 1.3rem;
  border-radius: 50%;
  background: #7ec89f;
  box-shadow: 0 0 24px rgba(126, 200, 159, 0.85);
}

.projected-verse {
  width: min(1500px, 92vw);
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 700ms ease, transform 700ms ease;
}

.projection-waiting.is-visible,
.projected-verse.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.projection-waiting[hidden],
.projected-verse[hidden] {
  display: none;
}

.projected-text {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.4vw, 6rem);
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
}

.projected-verse-long .projected-text {
  font-size: clamp(2rem, 4.3vw, 4.8rem);
}

.projected-verse-very-long .projected-text {
  font-size: clamp(1.45rem, 3.1vw, 3.5rem);
}

.projected-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: clamp(1.5rem, 4vh, 3.5rem);
  color: #d5bd7b;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
}

.projected-meta span {
  color: #818784;
  font-size: 0.72em;
}

.projection-controls {
  position: fixed;
  z-index: 10;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  left: max(1rem, env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.projection-controls-visible .projection-controls,
.projection-controls:focus-within {
  opacity: 1;
  pointer-events: auto;
}

.projection-control {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid #454545;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 20, 20, 0.88);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.projection-control:hover,
.projection-control:focus-visible {
  color: #fff;
  background: #282828;
}

.projection-connection {
  position: fixed;
  right: 0;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  left: 0;
  margin: 0;
  color: #e1a9a9;
  font-size: 0.8rem;
  text-align: center;
  transition: opacity 600ms ease;
}

.projection-connection.is-connected {
  opacity: 0;
}

.loading-bubble {
  display: flex;
  gap: 0.34rem;
  min-width: 70px;
}

.loading-bubble span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  animation: chat-loading 1s infinite ease-in-out;
}

.loading-bubble span:nth-child(2) { animation-delay: 0.14s; }
.loading-bubble span:nth-child(3) { animation-delay: 0.28s; }

@keyframes chat-loading {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px auto;
  align-items: end;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.7rem;
  border-radius: 24px;
  background: #f8f5ed;
  box-shadow:
    inset 5px 5px 11px rgba(68, 82, 75, 0.11),
    inset -5px -5px 11px rgba(255, 255, 255, 0.86);
}

.chat-composer textarea {
  min-height: 48px;
  max-height: 150px;
  padding: 0.78rem 0.9rem;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  line-height: 1.45;
  scrollbar-width: none;
}

.chat-composer textarea::-webkit-scrollbar {
  display: none;
}

.microphone-button,
.send-button {
  min-height: 48px;
  border: 0;
  font-weight: 750;
}

.microphone-button {
  display: grid;
  width: 48px;
  place-items: center;
  border-radius: 18px;
  color: var(--forest);
  background: #dce9df;
  box-shadow:
    6px 7px 14px rgba(52, 78, 67, 0.17),
    -4px -4px 10px rgba(255, 255, 255, 0.8),
    inset 2px 2px 4px rgba(255, 255, 255, 0.55);
}

.microphone-button svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.microphone-button.is-listening {
  color: #fff;
  background: #bd514b;
  animation: microphone-pulse 1.2s infinite;
}

.microphone-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@keyframes microphone-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(189, 81, 75, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(189, 81, 75, 0); }
}

.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 1.2rem;
  border-radius: 18px;
  color: #fff;
  background: var(--forest);
  box-shadow:
    6px 8px 15px rgba(22, 60, 50, 0.24),
    inset 2px 2px 5px rgba(255, 255, 255, 0.15);
}

.send-button:disabled {
  opacity: 0.58;
}

.voice-status {
  min-height: 1.3rem;
  padding: 0.55rem 0.9rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.empty-state {
  max-width: 760px;
  margin: 3rem auto;
  text-align: center;
}

.empty-state .btn {
  margin-top: 1rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
}

@media (max-width: 900px) {
  .home-menu-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .auth-shell,
  .settings-shell {
    grid-template-columns: 1fr;
  }

  .verse-card,
  .auth-card {
    width: 100%;
    max-width: 650px;
  }

  .auth-shell {
    gap: 2rem;
  }

  .auth-copy h1 {
    max-width: 760px;
    font-size: clamp(2.7rem, 9vw, 4.4rem);
  }
}

@media (max-width: 700px) {
  html {
    font-size: 15px;
  }

  .site-main {
    min-height: calc(100dvh - 138px);
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .auth-page .site-main,
  .menu-page .site-main {
    align-items: start;
  }

  .site-main.container {
    --bs-gutter-x: 1.35rem;
  }

  .chat-page .site-main.container {
    --bs-gutter-x: 0.5rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .chat-page .chat-heading {
    margin-bottom: 0.4rem;
  }

  .chat-page .chat-title-block .eyebrow,
  .chat-page .chat-heading p {
    display: none;
  }

  .chat-page .chat-heading h1 {
    margin: 0;
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    line-height: 1;
  }

  .chat-page .chat-panel {
    border-radius: 21px;
  }

  .chat-page .chat-stream {
    min-height: 0;
    max-height: none;
  }

  .site-header .navbar {
    min-height: 64px;
  }

  .navbar-brand {
    font-size: 1.05rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .header-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .language-menu > .header-icon-button {
    width: 44px;
    height: 44px;
  }

  .language-flag {
    width: 30px;
    height: 30px;
  }

  .language-menu-panel {
    position: fixed;
    top: 70px;
    right: 0.75rem;
  }

  .brand-mark-small {
    width: 34px;
    height: 34px;
  }

  .feature-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .home-menu-options {
    grid-template-columns: 1fr;
  }

  .home-menu {
    margin: 1rem auto;
  }

  .home-menu h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.3rem, 12vw, 3.3rem);
  }

  .home-menu-button {
    min-height: 96px;
    padding: 1.3rem 1.4rem;
    border-radius: 24px;
    font-size: 1.45rem;
  }

  .site-footer .container {
    flex-direction: column;
  }

  .auth-shell {
    gap: 1.5rem;
  }

  .clay-auth {
    padding: 1.15rem;
    border-radius: 28px;
    box-shadow:
      12px 14px 30px rgba(41, 64, 56, 0.16),
      -8px -8px 22px rgba(255, 255, 255, 0.78),
      inset 2px 2px 6px rgba(255, 255, 255, 0.64);
  }

  .clay-auth::before {
    width: 125px;
    height: 125px;
    top: -54px;
  }

  .clay-auth::after {
    width: 78px;
    height: 78px;
  }

  .auth-copy h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(2.2rem, 12vw, 3.25rem);
  }

  .auth-copy > p {
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .auth-note {
    margin-top: 1rem;
  }

  .auth-card,
  .clay-auth .auth-card {
    min-width: 0;
    padding: 1.35rem;
    border-radius: 25px;
  }

  .auth-card-heading {
    margin-bottom: 1.25rem;
  }

  .auth-card-heading h2 {
    font-size: 1.45rem;
  }

  .auth-card-heading .brand-mark {
    width: 42px;
    height: 42px;
  }

  .form-control,
  .form-select {
    min-height: 52px;
    font-size: 16px;
  }

  .chat-heading {
    margin-bottom: 0.65rem;
  }

  .projection-session-tools {
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .chat-heading h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .chat-heading p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .back-to-menu {
    min-height: 36px;
    margin-bottom: 0;
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }

  .chat-utility-row {
    gap: 0.4rem;
    margin-bottom: 0.45rem;
  }

  .projection-session-tools {
    gap: 0.35rem;
  }

  .projection-status {
    gap: 0.3rem;
    padding: 0.42rem 0.55rem;
    font-size: 0.66rem;
    white-space: nowrap;
  }

  .hide-projection-button {
    min-height: 34px;
    padding: 0.38rem 0.55rem;
    font-size: 0.66rem;
  }

  .chat-panel {
    padding: 0.65rem;
    border-radius: 25px;
    box-shadow:
      12px 14px 30px rgba(42, 67, 57, 0.16),
      -7px -7px 20px rgba(255, 255, 255, 0.72),
      inset 2px 2px 6px rgba(255, 255, 255, 0.6);
  }

  .chat-stream {
    min-height: 280px;
    max-height: 52dvh;
    padding: 0.45rem;
    gap: 0.9rem;
  }

  .chat-message {
    gap: 0.5rem;
    max-width: 100%;
  }

  .message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .message-bubble {
    padding: 0.8rem 0.9rem;
    border-radius: 7px 18px 18px 18px;
  }

  .user-message .message-bubble {
    border-radius: 18px 7px 18px 18px;
  }

  .verse-result-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .verse-result p {
    font-size: 1rem;
  }

  .share-verse-button,
  .project-verse-button {
    min-height: 44px;
    padding: 0.65rem 0.9rem;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) 44px auto;
    gap: 0.45rem;
    padding: 0.5rem;
    border-radius: 19px;
  }

  .chat-composer textarea {
    min-width: 0;
    min-height: 44px;
    padding: 0.65rem 0.55rem;
    font-size: 16px;
  }

  .microphone-button,
  .send-button {
    min-height: 44px;
  }

  .microphone-button {
    width: 44px;
    border-radius: 15px;
  }

  .send-button {
    padding: 0.55rem 0.9rem;
    border-radius: 15px;
  }

  .voice-status {
    padding-inline: 0.55rem;
  }
}

.password-strength {
  margin-top: 0.65rem;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 2px 2px 7px rgba(42, 67, 57, 0.1), inset -2px -2px 7px rgba(255, 255, 255, 0.72);
}

.password-strength-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 59, 50, 0.12);
}

.password-strength-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #c94747;
  transition: width 220ms ease, background-color 220ms ease;
}

.password-strength[data-score="2"] .password-strength-track span { background: #d78e34; }
.password-strength[data-score="3"] .password-strength-track span { background: #c2a735; }
.password-strength[data-score="4"] .password-strength-track span { background: #55956f; }
.password-strength[data-score="5"] .password-strength-track span { background: #16855f; }

.password-strength-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.password-strength-heading strong {
  color: var(--forest-deep);
}

.password-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem 0.7rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.75rem;
}

.password-requirements li::before {
  content: "○";
  display: inline-block;
  width: 1.15rem;
  color: #b07850;
  font-weight: 800;
}

.password-requirements li.met {
  color: #237457;
}

.password-requirements li.met::before {
  content: "✓";
  color: #16855f;
}

.turnstile-box {
  display: flex;
  width: 100%;
  min-height: 65px;
  align-items: center;
  justify-content: center;
  margin: 0.8rem 0 1rem;
  overflow: hidden;
  border-radius: 14px;
}

.turnstile-box .cf-turnstile {
  width: 100%;
}

@media (max-height: 600px) and (min-width: 701px) {
  .site-main {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .auth-shell {
    gap: 1.5rem;
  }

  .auth-copy > p,
  .auth-note {
    display: none;
  }

  .auth-copy h1 {
    margin-bottom: 0;
    font-size: clamp(2.4rem, 6vw, 3.7rem);
  }

  .chat-stream {
    min-height: 240px;
    max-height: 48dvh;
  }
}

@media (max-height: 800px) and (min-width: 701px) {
  .auth-page .clay-auth {
    padding: clamp(1.25rem, 3vh, 2rem);
  }

  .auth-page .auth-copy h1 {
    margin-bottom: 0.85rem;
    font-size: clamp(2.8rem, 5vw, 4rem);
  }

  .auth-page .auth-copy > p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .auth-page .auth-note {
    margin-top: 1rem;
  }

  .auth-page .auth-card {
    padding: clamp(1.4rem, 3vh, 2rem);
  }

  .auth-page .auth-card-heading {
    margin-bottom: 1.25rem;
  }

  .auth-page .form-field {
    margin-bottom: 0.9rem;
  }

  .auth-page .auth-check {
    margin-bottom: 1rem;
  }

  .chat-page .site-main {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .chat-page .back-to-menu {
    min-height: 36px;
    margin-bottom: 0.45rem;
    padding: 0.4rem 0.75rem;
  }

  .chat-page .eyebrow {
    margin-bottom: 0.4rem;
  }

  .chat-page .chat-heading h1 {
    margin-bottom: 0;
    font-size: clamp(2.6rem, 5vw, 4.1rem);
  }

  .chat-page .chat-heading p {
    display: none;
  }
}

@media (max-width: 420px) {
  .site-main > main {
    min-width: 0;
  }

  .navbar-brand > span:last-child {
    display: none;
  }

  .install-action {
    min-width: 0;
    padding-inline: 0.75rem;
  }

  .auth-copy > p,
  .auth-note,
  .chat-heading p {
    display: none;
  }

  .auth-copy h1 {
    margin-bottom: 0;
  }

  .password-requirements {
    grid-template-columns: 1fr;
  }

  .eyebrow {
    margin-bottom: 0.6rem;
    font-size: 0.7rem;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) 42px 42px;
  }

  .microphone-button {
    width: 42px;
  }

  .send-button {
    width: 42px;
    padding: 0;
  }

  .send-button span:first-child {
    display: none;
  }

  .site-footer {
    padding-block: 1rem calc(1rem + env(safe-area-inset-bottom));
    font-size: 0.8rem;
  }

  .site-footer .container span:last-child {
    display: none;
  }
}
