/* Adia design system v1 — tokens */
:root {
  --primary: #0958A5;
  --primary-hover: #07457F;
  --primary-container: #E8F1FB;
  --primary-container-hover: #D7E7F8;
  --surface: #FFFFFF;
  --background: #F9F9FA;
  --surface-variant: #F3F5F8;
  --on-surface: #1B2733;
  --on-surface-variant: #6E7F93;
  --faint: #9AA7B4;
  --outline: #DFE5EC;
  --outline-variant: #EEF1F5;
  --record: #FC121B;
  --record-hover: #DE0D16;
  --record-container: #FBEDEB;
  --brand-dot-blue: #0A58A5;
  --stage: #E9EBEF;
  --font: 'Open Sans', -apple-system, sans-serif;
}

@keyframes adiaBar { 0%, 100% { transform: scaleY(.28) } 50% { transform: scaleY(1) } }
@keyframes adiaCaret { 50% { opacity: 0 } }
@keyframes adiaPulse { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
@keyframes adiaSweep { 0% { transform: translateX(-110%) } 100% { transform: translateX(330%) } }
@keyframes adiaSpin { to { transform: rotate(360deg) } }

body {
  margin: 0;
  background: var(--stage);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none }
a:hover { color: var(--primary-hover) }
button, textarea, input { font-family: var(--font) }
button:disabled { cursor: default }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
[hidden] { display: none !important }

/* Phone frame: 390 × 844 on large screens, full viewport on phones */
.phone {
  width: 390px;
  height: 844px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  background: var(--background);
  border: 1px solid var(--outline);
  border-radius: 36px;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}
.phone__status { height: 58px; flex: none }
.phone__bottom { height: 18px; flex: none }

@media (max-width: 480px) {
  body { background: var(--background) }
  .phone { width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0 }
  .phone__status { height: env(safe-area-inset-top, 0px) }
  .phone__bottom { height: calc(18px + env(safe-area-inset-bottom, 0px)) }
}

/* App bar + segmented control */
.appbar {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
}
.seg {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface-variant);
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
}
.seg__btn {
  height: 28px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  font: 600 12px/1 var(--font);
  white-space: nowrap;
}
.seg__btn--dot { padding-left: 9px }
.seg__btn.is-selected { background: var(--surface); border-color: var(--outline); color: var(--primary) }
.seg__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--faint) }
.seg__btn.is-selected .seg__dot { background: var(--primary) }
.seg--block { flex: none; margin-bottom: 14px }
.seg--block .seg__btn { flex: 1; height: 36px; justify-content: center; font-size: 13px }
.seg--flush { margin-bottom: 0 }
.seg form { display: contents }
span.seg__btn { cursor: default }

/* Card */
.card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 2px 12px 8px;
  padding: 22px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  overflow: hidden;
}
.card--roomy { padding-top: 24px }
.card--chat { padding: 18px 16px 16px }

.overline {
  font: 600 11px/1 var(--font);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}
.overline--record { color: var(--record) }

/* Command bar */
.controls { flex: none; display: flex; align-items: center; gap: 9px }
.controls--spaced { padding-top: 14px }
.btn-round {
  width: 56px;
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-variant);
  color: var(--on-surface-variant);
  cursor: pointer;
  font: 700 14px/1 var(--font);
}
.btn-round:hover { background: var(--primary-container) }
.btn-round--lang { color: var(--primary) }
.btn-round--danger:hover { background: var(--record-container) }
.btn-pill {
  flex: 1;
  min-width: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  cursor: pointer;
  font: 600 15px/1 var(--font);
}
.btn-pill:hover { background: var(--primary-hover) }
.btn-pill--record { background: var(--record) }
.btn-pill--record:hover { background: var(--record-hover) }
.btn-pill__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.btn-pill--outline { width: 100%; background: var(--surface-variant); border: 1px solid var(--outline-variant); color: var(--on-surface-variant) }
.btn-pill--outline:hover { background: var(--record-container); color: var(--record) }
.btn-pill.is-loading { cursor: progress; opacity: .9 }
.controls__form { flex: 1; display: flex }
label.btn-round { box-sizing: border-box }

/* Spinner */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #FFFFFF;
  border-radius: 999px;
  animation: adiaSpin .8s linear infinite;
  box-sizing: border-box;
}
.is-loading > .spinner { display: block }
.is-loading > .icon-play, .is-loading > .pause-icon { display: none }
.stop-square { width: 14px; height: 14px; flex: none; border-radius: 3px; background: #FFFFFF }
.rec-chip {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--record-container);
}
.rec-chip__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--record); animation: adiaPulse 1.2s ease-in-out infinite }
.rec-chip__time { font: 700 14px/1 var(--font); color: var(--record); font-variant-numeric: tabular-nums }

/* Play / pause glyphs */
.pause-icon { display: flex; gap: 3px; flex: none }
.pause-icon > span { width: 4px; height: 16px; border-radius: 2px; background: currentColor }
.pause-icon--sm { gap: 2.5px }
.pause-icon--sm > span { width: 3px; height: 12px }
.icon-play { flex: none }
.is-playing .icon-play, :not(.is-playing) > .pause-icon { display: none }

/* Waveforms */
.wave { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px }
.wave__bar { flex: 1; border-radius: 999px }
.wave--live { height: 54px }
.wave--live .wave__bar { transform-origin: center; animation: adiaBar 1.05s ease-in-out infinite }
.wave--player { flex: none; height: 44px; gap: 2px }
.wave--seek { cursor: pointer }
.wave--meter .wave__bar { animation: none; transform: scaleY(.1); transition: transform .08s linear }

/* 01 · Idle */
.hero { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 0 6px }
.hero__title { margin: 0; font: 700 29px/1.2 var(--font); color: var(--on-surface); letter-spacing: -.02em; text-wrap: pretty }
.hero__alt { margin: 0; font: 600 15px/1.3 var(--font); color: var(--faint) }
.hero__title--sm { font-size: 26px }
.hero__spaced { margin-top: 22px }
.hero__hint { margin: 10px 0 0; max-width: 276px; font: 400 15px/1.6 var(--font); color: var(--on-surface-variant); text-wrap: pretty }

/* 01 · Recording */
.recording { flex: 1; min-height: 0; display: flex; flex-direction: column }
.rec-panel {
  flex: none;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: var(--background);
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
}
.rec-panel--muted { height: 76px }
.rec-panel__time { flex: none; font: 700 14px/1 var(--font); color: var(--on-surface); font-variant-numeric: tabular-nums }
.recording__label { flex: none; padding: 16px 2px 8px }
.live-text { margin: 0; padding: 0 2px; font: 400 16px/1.62 var(--font); color: var(--on-surface); text-wrap: pretty }
.caret {
  display: inline-block;
  width: 2px;
  height: 16px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--primary);
  animation: adiaCaret 1s step-end infinite;
}

/* 02 · Result */
.chips { flex: none; display: flex; flex-wrap: wrap; gap: 6px }
.chip {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface-variant);
  color: var(--on-surface-variant);
  font: 600 12px/1 var(--font);
  font-variant-numeric: tabular-nums;
}
.chip--primary { background: var(--primary-container); color: var(--primary) }
.chip__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand-dot-blue) }
.result { flex: 1; min-height: 0; padding: 20px 2px 0; overflow: auto }
.result__title { margin-bottom: 12px }
.result__text { margin: 0; font: 400 17px/1.66 var(--font); color: var(--on-surface); text-wrap: pretty }
.toast {
  flex: none;
  min-height: 30px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--primary-container);
  color: var(--primary);
  font: 600 12px/1.35 var(--font);
  box-sizing: border-box;
}
.toast > span:first-child { display: flex; flex: none }
.toast--error { background: var(--record-container); color: var(--record) }
.toast--float {
  position: absolute;
  z-index: 10;
  left: 24px;
  right: 24px;
  bottom: 96px;
  margin: 0;
  padding: 8px 12px;
  box-shadow: 0 6px 20px rgba(27, 39, 51, .08);
}
@media (max-width: 480px) { .toast--float { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) } }
.actions { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 14px }
.action {
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  background: var(--background);
  color: var(--primary);
  cursor: pointer;
}
.action:hover { background: var(--primary-container) }
.action__label { font: 600 11px/1.1 var(--font); color: var(--on-surface-variant); text-align: center }

/* 03 · Text to speech */
.screen-title { flex: none; display: flex; flex-direction: column; gap: 3px; padding: 0 2px }
.screen-title__main { margin: 0; font: 700 22px/1.25 var(--font); color: var(--on-surface); letter-spacing: -.015em; text-wrap: pretty }
.screen-title__alt { font: 600 13px/1.3 var(--font); color: var(--faint) }
.tts-input {
  flex: 1;
  min-height: 0;
  margin: 16px 0 0;
  padding: 0 2px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font: 400 17px/1.66 var(--font);
  color: var(--on-surface);
}
.tts-input::placeholder { color: var(--faint) }
.counter {
  flex: none;
  display: flex;
  justify-content: flex-end;
  padding: 8px 2px 14px;
  font: 400 12px/1 var(--font);
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.player {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 12px;
  background: var(--background);
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
}
.player__times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 600 11px/1 var(--font);
  color: var(--on-surface-variant);
  font-variant-numeric: tabular-nums;
}
.player__total { color: var(--faint) }
.player__download {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
  font: 600 11px/1 var(--font);
}
.rate-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 4px 7px }
.rate-head__alt { font: 600 11px/1 var(--font); color: var(--on-surface-variant) }
.voice-btn {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px 0 8px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  background: var(--surface-variant);
  cursor: pointer;
}
.voice-btn:hover { background: var(--primary-container) }
.voice-btn__avatar {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--primary);
  font: 700 15px/1 var(--font);
}
.voice-btn__name { font: 600 14px/1 var(--font); color: var(--on-surface); white-space: nowrap }

/* 04 · Waxtaan */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column }
.chat-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 0 16px }
.chat-head__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px }
.chat-head__title {
  font: 700 17px/1.2 var(--font);
  color: var(--on-surface);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-head__title--lg { font-size: 19px; letter-spacing: -.015em }
.chat-head__meta { font: 400 11px/1.2 var(--font); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.btn-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  background: var(--surface-variant);
  color: var(--primary);
  cursor: pointer;
}
.btn-icon:hover { background: var(--primary-container) }
.btn-icon--muted { color: var(--on-surface-variant) }
.btn-icon--tonal { border: none; background: var(--primary-container) }
.btn-icon--tonal:hover { background: var(--primary-container-hover) }

.messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.empty { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 0 6px }
.empty__title { margin: 0; font: 700 24px/1.2 var(--font); color: var(--on-surface); letter-spacing: -.015em; text-wrap: pretty }
.empty__hint { margin: 0; max-width: 264px; font: 400 15px/1.6 var(--font); color: var(--on-surface-variant); text-wrap: pretty }

.bubble--adia {
  align-self: flex-start;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 12px 14px;
  background: var(--surface-variant);
  border-radius: 14px 14px 14px 4px;
}
.bubble__text { margin: 0; font: 400 15px/1.55 var(--font); color: var(--on-surface); text-wrap: pretty }
.bubble--me { align-self: flex-end; max-width: 84%; display: flex; flex-direction: column; align-items: flex-end; gap: 7px }
.bubble__note { min-width: 214px; padding: 12px 14px; background: var(--primary); border-radius: 14px 14px 4px 14px; box-sizing: border-box }
.bubble__text--on-primary { color: #FFFFFF }
.bubble__translation { margin: -4px 0 0; padding: 0 6px; font: 400 12px/1.45 var(--font); font-style: italic; color: var(--faint); text-wrap: pretty }
.bubble--adia .bubble__translation { padding: 0 }
.bubble--me .bubble__translation { text-align: right }
.bubble__caption { margin: 0; padding: 0 6px; font: 400 14px/1.5 var(--font); color: var(--on-surface-variant); text-align: right; text-wrap: pretty }

.voice-note { display: flex; align-items: center; gap: 10px }
.voice-note .wave { gap: 2px; height: 22px }
.bubble__note .voice-note .wave { height: 24px }
.voice-note__play {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  cursor: pointer;
}
.voice-note__play:hover { background: var(--primary-hover) }
.bubble__note .voice-note__play { background: #FFFFFF; color: var(--primary) }
.bubble__note .voice-note__play:hover { background: var(--primary-container) }
.voice-note__dur { flex: none; font: 600 11px/1 var(--font); color: var(--on-surface-variant); font-variant-numeric: tabular-nums }
.bubble__note .voice-note__dur { color: rgba(255, 255, 255, .88) }

.composer { flex: none; display: flex; align-items: center; gap: 9px; padding-top: 14px }
.composer__field {
  flex: 1;
  min-width: 0;
  height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--surface-variant);
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  box-sizing: border-box;
}
.composer__text { display: none; font: 400 15px/1 var(--font); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.composer__input {
  width: 100%;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  font: 400 15px/1.2 var(--font);
  color: var(--on-surface);
}
.composer__input::placeholder { color: var(--faint) }
.composer.is-listening .composer__input, .composer.is-busy .composer__input { display: none }
.composer.is-listening .composer__text, .composer.is-busy .composer__text { display: block }
.composer__icon { display: none; align-items: center; justify-content: center }
.composer[data-mode="mic"] .composer__icon--mic,
.composer[data-mode="send"] .composer__icon--send,
.composer[data-mode="stop"] .composer__icon--stop { display: flex }
.composer.is-busy .spinner { display: block }
.composer.is-busy .composer__text { color: var(--primary) }
.composer__mic {
  width: 56px;
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  cursor: pointer;
}
.sweep { display: none; height: 4px; border-radius: 999px; background: var(--record-container); overflow: hidden }
.sweep > div { width: 34%; height: 100%; border-radius: 999px; background: var(--record); animation: adiaSweep 1.4s ease-in-out infinite }
.composer.is-listening .composer__text { color: var(--record) }
.composer.is-listening .composer__mic { background: var(--record) }
.composer.is-listening .sweep, .composer.is-busy .sweep { display: block }
.composer.is-busy .sweep, .sweep--primary { background: var(--primary-container) }
.composer.is-busy .sweep > div, .sweep--primary > div { background: var(--primary) }
.sweep--block { display: block; flex: 1 }

.conv-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.conv {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  background: var(--background);
  cursor: pointer;
}
.conv:hover { background: var(--primary-container) }
.conv.is-active { background: var(--primary-container); border-color: var(--primary) }
.conv__avatar {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  box-sizing: border-box;
}
.conv__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px }
.conv__top { display: flex; align-items: baseline; gap: 8px }
.conv__title { flex: 1; min-width: 0; font: 600 15px/1.25 var(--font); color: var(--on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.conv__time { flex: none; font: 400 11px/1.2 var(--font); color: var(--faint); white-space: nowrap }
.conv__preview { display: block; max-height: 38px; overflow: hidden; font: 400 13px/1.45 var(--font); color: var(--on-surface-variant) }
.conv__tags { display: flex; align-items: center; gap: 6px }
.tag {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--outline-variant);
  border-radius: 8px;
  background: var(--surface);
  color: var(--on-surface-variant);
  font: 600 11px/1 var(--font);
  box-sizing: border-box;
}
.tag--primary { border-color: var(--primary); background: var(--primary); color: #FFFFFF }

/* Tab bar: 4 tabs, no labels */
.tabbar { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 34px }
.tab {
  width: 44px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
}
.tab:hover { color: var(--primary) }
.tab.is-active { width: 64px; background: var(--primary); color: #FFFFFF }

/* 05 · Settings */
.settings { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 22px; padding: 20px 2px 16px; overflow-y: auto }
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--background);
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
}
.profile__text { min-width: 0; display: flex; flex-direction: column; gap: 4px }
.profile__name { font: 600 15px/1.2 var(--font); color: var(--on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.profile__email { font: 400 13px/1.2 var(--font); color: var(--on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.setting { display: flex; flex-direction: column; gap: 10px }
.setting__head { display: flex; align-items: center; justify-content: space-between; gap: 8px }
.setting__hint { font: 600 11px/1 var(--font); color: var(--on-surface-variant) }
.balance { font: 700 22px/1.25 var(--font); color: var(--on-surface); letter-spacing: -.015em; font-variant-numeric: tabular-nums }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px }
.chip-btn {
  height: 36px;
  border: 1px solid var(--outline-variant);
  border-radius: 10px;
  background: var(--surface-variant);
  color: var(--on-surface-variant);
  cursor: pointer;
  font: 600 13px/1 var(--font);
}
.chip-btn:hover { background: var(--primary-container) }
.chip-btn.is-selected { background: var(--primary-container); border-color: var(--primary); color: var(--primary) }

/* Sign in / sign up */
.card--auth { margin-bottom: 18px; overflow-y: auto }
.auth { flex: 1; display: flex; flex-direction: column; gap: 22px; min-height: min-content }
.auth__intro { display: flex; flex-direction: column; gap: 9px; padding: 8px 6px 0 }
.auth__intro .hero__hint { margin-top: 2px }
.auth__fields { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px }
.auth__fields .toast { margin: 0; padding: 8px 12px }
.auth__footer { flex: none; display: flex; flex-direction: column; gap: 14px }
.auth__footer .btn-pill { flex: none; width: 100% }
.auth__switch { margin: 0; text-align: center; font: 400 13px/1.4 var(--font); color: var(--on-surface-variant) }
.auth__switch a { font-weight: 600 }
.field { display: flex; flex-direction: column; gap: 8px }
.field__input {
  height: 52px;
  padding: 0 18px;
  background: var(--surface-variant);
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  outline: none;
  box-sizing: border-box;
  font: 400 15px/1 var(--font);
  color: var(--on-surface);
}
.field__input:focus { background: var(--surface); border-color: var(--primary) }
.field--error .field__input { border-color: var(--record) }
.field--error .overline { color: var(--record) }
.field__note { padding: 0 18px; font: 400 12px/1.35 var(--font); color: var(--record) }
.field__note--muted { color: var(--faint) }

/* Design system reference page */
.ds-page { padding: 32px 24px 64px; overflow-x: auto }
.ds-page > div { margin: 0 auto }
.ds-page__back { width: 1040px; margin: 0 auto 16px; font: 600 13px/1.2 var(--font) }
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
