:root {
  --bg: #ebe6dc;
  --panel: #f0ebe2;
  --panel-alt: #ece6dc;
  --panel-border: #cfc6b8;

  --text: #2b2925;
  --muted: #746d63;
  --muted-soft: #948b7f;

  --accent-soft: #e3dccf;

  --brand-green: #29605a;
  --brand-red: #cf3838;
  --brand-red-soft: #f3d6d6;
  --brand-cream: #f8f2e8;

  --upload-accent: var(--brand-red);

  --correct: #2b2925;
  --incorrect-bg: #f3d6d6;
  --incorrect-text: var(--brand-red);

  --current-bg: #3a362f;
  --current-text: #ece6dc;

  --pending: #a89f92;

  --extra-bg: #f3d6d6;
  --extra-text: var(--brand-red);

  --shadow: rgba(48, 42, 34, 0.045);
  --shadow-strong: rgba(48, 42, 34, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea,
kbd {
  font: inherit;
}

strong,
b,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.app-layout {
  display: grid;
  align-content: start;
  gap: 10px;
}

.trainer-layout {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 14px;
  min-height: auto;
}

.field-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.seo-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.site-logo-image {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}

.site-title {
  font-family: "Zilla Slab Highlight", serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.site-title:hover {
  opacity: 0.75;
}

.source-cloud-wrap-block {
  display: grid;
  gap: 8px;
}

.genre-intro {
  margin: 0;
  padding-left: 2px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted-soft);
  font-weight: 500;
}

.source-cloud-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
}

.genre-cloud {
  display: contents;
}

.upload-button,
.genre-chip {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease,
    color 0.18s ease;
}

.upload-button:hover,
.genre-chip:hover {
  background: var(--accent-soft);
  border-color: #c4b9a7;
  transform: translateY(-1px);
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
}

.upload-button input {
  display: none;
}

.upload-accent {
  color: var(--brand-red);
  border-color: rgba(207, 56, 56, 0.35);
}

.upload-accent:hover {
  background: rgba(245, 73, 39, 0.08);
  border-color: var(--upload-accent);
}

.genre-chip {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.genre-chip-active {
  background: #e2dacd;
  border-color: #c2b6a5;
}

.genre-chip-practice {
  color: var(--brand-green);
  border-color: rgba(41, 96, 90, 0.35);
  background: rgba(41, 96, 90, 0.06);
}

.genre-chip-practice:hover {
  background: rgba(41, 96, 90, 0.12);
  border-color: var(--brand-green);
}

.genre-chip-practice.genre-chip-active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--brand-cream);
}

.status-text {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-text[hidden] {
  display: none;
}

.stage {
  display: grid;
  align-content: start;
  min-height: auto;
  padding: 0;
  position: relative;
}

.stage-intro {
  width: min(100%, 820px);
  margin: 0 auto 8px;
  padding-left: 2px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted-soft);
  text-align: left;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.005em;
  opacity: 0.95;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: #ddd4c8;
  margin: 0 auto 14px;
  width: min(100%, 820px);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--brand-green);
  border-radius: 999px;
  transition: width 0.15s ease;
}

.reward-pop {
  position: absolute;
  left: 50%;
  top: 92px;
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: none;
}

.reward-pop-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(207, 198, 184, 0.9);
  background: rgba(247, 241, 230, 0.97);
  box-shadow: 0 12px 28px rgba(48, 42, 34, 0.12);
}

.reward-pop-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.reward-pop-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.reward-pop-text strong {
  font-size: 1rem;
}

.reward-pop-text span {
  font-size: 0.84rem;
  color: var(--muted);
}

.reward-pop-drop {
  animation: reward-drop-bounce 1.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes reward-drop-bounce {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-85px) scale(0.88) rotate(-4deg);
  }
  18% {
    opacity: 1;
    transform: translateX(-50%) translateY(8px) scale(1.03) rotate(2deg);
  }
  30% {
    transform: translateX(-50%) translateY(-8px) scale(0.98) rotate(-1deg);
  }
  42% {
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  }
  68% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-26px) scale(0.96);
  }
}

.reward-pop-golden {
  animation: golden-drop 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes golden-drop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-120px) scale(0.8) rotate(-8deg);
    filter: drop-shadow(0 0 0 gold);
  }

  20% {
    opacity: 1;
    transform: translateX(-50%) translateY(10px) scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px gold);
  }

  35% {
    transform: translateX(-50%) translateY(-6px) scale(1.05) rotate(-3deg);
  }

  50% {
    transform: translateX(-50%) translateY(0) scale(1.1);
    filter: drop-shadow(0 0 16px gold);
  }

  75% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1.08);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-35px) scale(1);
    filter: drop-shadow(0 0 0 gold);
  }
}

.paragraph-display {
  width: min(100%, 820px);
  min-height: 320px;
  margin: 0 auto;
  padding: 34px 36px;
  border-radius: 24px;
  background: #eee8de;
  border: 1px solid var(--panel-border);
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  line-height: 2;
  letter-spacing: 0.01em;
  color: var(--muted);
  cursor: text;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px var(--shadow);
}

.paragraph-display-loading::before {
  content: "Preparing your paragraph...";
  opacity: 0.6;
}

.stage-footer {
  width: min(100%, 820px);
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.progress-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.progress-meta strong {
  font-size: 1rem;
  font-weight: 600;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.toolbar button {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  transition:
    color 0.15s ease,
    opacity 0.15s ease,
    transform 0.12s ease;
}

.toolbar button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.toolbar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.toolbar kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid rgba(43, 41, 37, 0.12);
  border-radius: 999px;
  background: rgba(43, 41, 37, 0.03);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.toolbar button:hover kbd {
  color: var(--text);
  border-color: rgba(43, 41, 37, 0.18);
  background: rgba(43, 41, 37, 0.05);
}

.sound-toggle-active {
  color: var(--text) !important;
}

.sound-toggle-active::before {
  content: "●";
  display: inline-block;
  margin-right: 2px;
  font-size: 0.82rem;
}

#practice-mode-toggle.sound-toggle-active {
  color: var(--brand-green) !important;
}

#practice-mode-toggle.sound-toggle-active::before {
  content: "●";
  color: var(--brand-green);
}

.char-correct {
  color: var(--correct);
}

.char-incorrect {
  color: var(--incorrect-text);
  background: var(--incorrect-bg);
  border-radius: 4px;
}

.char-current {
  background: var(--current-bg);
  color: var(--current-text);
  border-radius: 4px;
}

.char-pending {
  color: var(--pending);
}

.char-extra {
  color: var(--extra-text);
  background: var(--extra-bg);
  border-radius: 4px;
}

.typing-panel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#typing-input {
  position: absolute;
  left: -9999px;
}

#typing-input:focus,
.paragraph-display:focus {
  outline: none;
  border-color: #b8ab98;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 0 4px rgba(185, 173, 156, 0.2),
    0 10px 24px var(--shadow);
}

.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(43, 41, 37, 0.08);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.legal-layout {
  width: min(100%, 820px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.legal-backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease, transform 0.12s ease;
}

.legal-backlink:hover {
  color: var(--text);
  transform: translateX(-1px);
}

.legal-card {
  padding: 32px 36px;
  border-radius: 24px;
  background: #eee8de;
  border: 1px solid var(--panel-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px var(--shadow);
}

.legal-header {
  margin-bottom: 24px;
}

.legal-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--text);
}

.legal-updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-section + .legal-section {
  margin-top: 28px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text);
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 12px 0 16px;
  padding-left: 22px;
}

.legal-section li {
  margin-bottom: 10px;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.contact-card-soft {
  background: #f4efe6;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 18px 20px;
  margin-top: 10px;
}

.contact-email {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Auth / Tomatype land */
.auth-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.auth-page-layout {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.auth-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(320px, 520px);
  align-items: center;
  gap: 34px;
  min-height: 680px;
  padding: 34px;
  border-radius: 36px;
  background: linear-gradient(180deg, #efe8de 0%, #e8e1d6 100%);
  border: 1px solid rgba(207, 198, 184, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 24px 50px rgba(48, 42, 34, 0.08);
  overflow: hidden;
}

.auth-welcome-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-content: center;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid rgba(207, 198, 184, 0.95);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(48, 42, 34, 0.04);
}

.auth-brand-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.auth-welcome-panel h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.1vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 10ch;
}

.auth-welcome-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 34ch;
}

.auth-mini-features {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.auth-mini-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
}

.auth-mini-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #e14646 0%, #c93434 100%);
  box-shadow: 0 0 0 5px rgba(207, 56, 56, 0.12);
}

.auth-tomato-hero-wrap {
  width: min(100%, 300px);
  display: grid;
  place-items: center;
  margin-top: 10px;
}

.auth-tomato-hero {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  object-fit: contain;
}

.auth-card {
  position: relative;
  z-index: 1;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-left: 1px solid rgba(43, 41, 37, 0.12);
  border-radius: 0;
  padding: 0 0 0 34px;
  margin-left: 10px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.auth-card .legal-header {
  margin: 0 0 18px;
  text-align: left;
}

.auth-card .legal-eyebrow {
  margin: 0 0 10px;
}

.auth-card .legal-header h1 {
  margin: 0 0 12px;
}

.auth-card .legal-updated {
  margin: 0;
  max-width: 28ch;
}

.auth-form-centered {
  display: grid;
  justify-items: start;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-support-text {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
  text-align: left;
}

.auth-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 41, 37, 0.18);
  padding-bottom: 2px;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.auth-link:hover {
  opacity: 0.75;
  border-color: rgba(43, 41, 37, 0.35);
}

.auth-note {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(207, 56, 56, 0.08);
  color: var(--brand-red);
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-note-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-red);
}

#google-signin-button {
  min-height: 44px;
  width: 100%;
}

#auth-message {
  min-height: 24px;
  text-align: left;
}

.inline-tomato {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  margin-left: 4px;
}

.stage-pill-evolve {
  animation: stage-pill-pop 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes stage-pill-pop {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 rgba(48, 42, 34, 0);
  }
  35% {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(48, 42, 34, 0.14);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 18px rgba(48, 42, 34, 0.08);
  }
}

@media (max-width: 900px) {
  .paragraph-display,
  .progress-track,
  .stage-footer,
  .stage-intro {
    width: 100%;
  }

  .site-logo-link {
    justify-self: start;
    justify-content: flex-start;
    width: fit-content;
  }

  .auth-stage {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding: 28px 20px;
  }

  .auth-welcome-panel {
    justify-items: center;
    text-align: center;
  }

  .auth-welcome-panel h1,
  .auth-welcome-panel p {
    max-width: none;
  }

  .auth-tomato-hero-wrap {
    justify-self: center;
  }

  .auth-card {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    min-height: auto;
    border-left: 0;
    padding: 0;
    text-align: center;
  }

  .auth-card .legal-header,
  .auth-card .legal-eyebrow,
  .auth-support-text,
  #auth-message {
    text-align: center;
  }

  .auth-card .legal-updated {
    max-width: none;
  }

  .auth-form-centered {
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 1rem));
    padding: 12px 0 20px;
  }

  .site-header {
    margin-bottom: 14px;
  }

  .site-logo-image {
    height: 48px;
  }

  .genre-intro {
    font-size: 0.84rem;
  }

  .genre-chip {
    font-size: 13px;
    padding: 10px 12px;
  }

  .source-cloud-wrap {
    gap: 8px 10px;
  }

  .stage {
    min-height: auto;
  }

  .stage-intro {
    margin-bottom: 7px;
    padding-left: 1px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .reward-pop {
    top: 78px;
  }

  .reward-pop-card {
    gap: 10px;
    padding: 10px 14px;
  }

  .reward-pop-image {
    width: 28px;
    height: 28px;
  }

  .reward-pop-text strong {
    font-size: 0.92rem;
  }

  .reward-pop-text span {
    font-size: 0.78rem;
  }

  .stage-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .progress-meta {
    justify-content: space-between;
  }

  .toolbar {
    justify-content: flex-start;
    gap: 16px;
  }

  .toolbar button {
    gap: 6px;
  }

  .toolbar kbd {
    font-size: 0.74rem;
  }

  .paragraph-display {
    min-height: 240px;
    padding: 24px 20px;
    font-size: 1.05rem;
    line-height: 1.9;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .legal-card {
    padding: 24px 20px;
  }

  .legal-layout {
    width: 100%;
  }

  .legal-header h1 {
    font-size: 1.8rem;
  }

  .auth-page-shell {
    padding: 16px 0;
  }

  .auth-page-layout {
    width: 100%;
  }

  .auth-stage {
    border-radius: 28px;
    padding: 24px 18px 28px;
    gap: 20px;
  }

  .auth-welcome-panel {
    gap: 14px;
  }

  .auth-brand-badge {
    margin: 0 auto;
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    padding: 8px 12px;
  }

  .auth-welcome-panel h1 {
    font-size: 1.95rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 12ch;
    margin: 0 auto;
  }

  .auth-welcome-panel p {
    max-width: 26ch;
    margin: 0 auto;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .auth-mini-features {
    width: min(100%, 260px);
    gap: 10px;
    margin: 2px auto 0;
    justify-items: stretch;
  }

  .auth-mini-feature {
    justify-content: flex-start;
    text-align: left;
    font-size: 0.95rem;
  }

  .auth-tomato-hero-wrap {
    width: 100%;
    margin-top: 2px;
  }

  .auth-tomato-hero {
    max-width: 120px;
  }

  .auth-card {
    margin-top: 2px;
  }

  .auth-card .legal-header {
    margin-bottom: 14px;
  }

  .auth-card .legal-header h1 {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .auth-card .legal-updated,
  .auth-support-text {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 26ch;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-note {
    width: min(100%, 320px);
    margin: 0 auto;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .auth-form-centered {
    gap: 14px;
  }

  .auth-form {
    display: grid;
    gap: 16px;
    max-width: 440px;
    width: 100%;
  }

  .auth-form label {
    display: grid;
    gap: 8px;
  }

  .auth-form input {
    padding: 12px 14px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: #fffaf4;
    color: var(--text);
  }

  #google-signin-button {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .auth-form button,
  #logout-button {
    width: fit-content;
    padding: 12px 16px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--text);
    font-weight: 600;
  }
}