/* ==========================================================================
   BankSaathi AI — Botanical Forest & Warm Cream Elderly-Accessible Design System
   Inspired by modern calm voice-first workspaces: high-contrast (>7:1),
   21px readable Indic/English typography, live karaoke word highlighting,
   58px+ touch targets, RTL-safe logical CSS, and A4 single-page print slip.
   ========================================================================== */

:root {
  --bg-cream: #f6f4ec;
  --surface-white: #ffffff;
  --surface-sage: #eef3e8;
  --surface-mint-soft: #eaf3e4;
  --forest-deep: #134530;
  --forest-pine: #0d3423;
  --forest-pill: #1d583f;
  --forest-ink: #0e281d;
  --muted-olive: #526356;
  --border-sage: #dce2d5;
  --border-input: #526356;
  --lime-accent: #cbef9a;
  --lime-hover: #bce886;
  --coral-bg: #f8ded6;
  --coral-ink: #7c2d12;
  --amber-bg: #fef3c7;
  --amber-border: #d97706;
  --crimson: #dc2626;
  --crimson-dark: #991b1b;
  --focus-ring: #b91c1c;
  --shadow-soft: 0 8px 28px rgba(19, 69, 48, 0.07);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 12px;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-cream);
  color: var(--forest-ink);
}

body {
  margin: 0;
  background-color: var(--bg-cream);
  color: var(--forest-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans", "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Telugu",
    "Noto Sans Kannada", "Noto Sans Malayalam", "Noto Sans Arabic", sans-serif;
  font-size: 1.25rem; /* 20px-21px comfortable reading scale */
  line-height: 1.55;
  text-align: start;
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 1000;
  background: var(--forest-deep);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

:where(a:any-link, button, input, textarea, select, [tabindex="0"]):focus-visible {
  outline: 3.5px solid var(--focus-ring);
  outline-offset: 3px;
}

h1[tabindex="-1"]:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   HEADER BAR
   ========================================================================== */

.site-header {
  background-color: var(--surface-white);
  border-block-end: 1.5px solid var(--border-sage);
  padding-block: 14px;
  padding-inline: 22px;
}

.header-inner {
  max-inline-size: 1260px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo svg {
  display: block;
}

.brand-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--forest-deep);
  letter-spacing: -0.02em;
}

.brand-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-olive);
  font-weight: 600;
}

.status-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 780px) {
  .status-cluster {
    justify-content: flex-start;
  }
}

.status-badge {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--surface-mint-soft);
  border: 1.5px solid #b9d8ac;
  color: var(--forest-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.status-badge-wispr {
  background-color: var(--amber-bg);
  border-color: #f59e0b;
  color: var(--forest-ink);
}

/* ==========================================================================
   MAIN CONTAINER & TYPOGRAPHY
   ========================================================================== */

.app-shell {
  flex: 1 0 auto;
  inline-size: 100%;
  max-inline-size: 1260px;
  margin-inline: auto;
  padding-block: 24px 48px;
  padding-inline: 18px;
}

.kicker-text {
  margin: 0 0 8px 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-olive);
}

h1,
h2,
h3 {
  color: var(--forest-ink);
  margin-block-start: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.25rem);
  margin-block-end: 10px;
}

h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
  margin-block-end: 10px;
}

.lead-copy,
.helper-copy {
  margin: 0 0 18px 0;
  color: #36453b;
}

/* ==========================================================================
   BUTTONS & PILLS (Accessible 58px+ primary controls, crisp rounded pills)
   ========================================================================== */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 58px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, background-color 0.14s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg-action {
  min-block-size: 60px;
  padding-inline: 26px;
}

.btn-emerald {
  background-color: var(--forest-deep);
  color: #ffffff;
  border-color: var(--forest-deep);
}

.btn-emerald:hover {
  background-color: var(--forest-pine);
}

.btn-navy {
  background-color: #0b1f3a;
  color: #ffffff;
  border-color: #0b1f3a;
}

.btn-amber {
  background-color: var(--amber-bg);
  color: var(--forest-ink);
  border-color: var(--amber-border);
}

.btn-crimson {
  background-color: var(--crimson);
  color: #ffffff;
  border-color: var(--crimson-dark);
}

.btn-outline {
  background-color: var(--surface-white);
  color: var(--forest-ink);
  border-color: var(--forest-deep);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 50px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.12s ease, transform 0.1s ease;
}

.btn-sage {
  background-color: var(--surface-mint-soft);
  color: var(--forest-deep);
  border-color: #c2d9b8;
}

.btn-sage:hover {
  background-color: #dcebd3;
}

.btn-sage-outline {
  background-color: var(--surface-white);
  color: var(--forest-deep);
  border-color: var(--border-sage);
}

.btn-lime {
  background-color: var(--lime-accent);
  color: #0b291b;
  border-color: #9fd85b;
}

.btn-lime:hover {
  background-color: var(--lime-hover);
}

.btn-coral {
  background-color: var(--coral-bg);
  color: var(--coral-ink);
  border-color: #eabbb0;
}

.btn-coral-sm {
  min-block-size: 46px;
  padding: 8px 14px;
  font-size: 1rem;
  background-color: var(--coral-bg);
  color: var(--coral-ink);
  border-color: #eabbb0;
}

.btn-white-outline {
  background-color: var(--surface-white);
  color: var(--forest-deep);
  border-color: var(--border-sage);
}

.btn-dark-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: 46px;
  padding: 8px 15px;
  border-radius: 10px;
  border: 1.5px solid rgba(203, 239, 154, 0.28);
  background-color: var(--forest-pill);
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-dark-pill:hover {
  background-color: #256e4f;
}

/* ==========================================================================
   VIEW 1: LANGUAGE PICKER & MODE SELECTOR
   ========================================================================== */

.welcome-card {
  background-color: var(--surface-white);
  border: 1.5px solid var(--border-sage);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  margin-block-end: 22px;
}

.mode-fieldset {
  border: 1.5px solid var(--border-sage);
  border-radius: 16px;
  padding: 14px;
  background-color: var(--bg-cream);
  margin: 0;
}

.mode-legend {
  font-weight: 800;
  font-size: 1.05rem;
  padding-inline: 8px;
  color: var(--forest-deep);
}

.mode-toggle-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-block-size: 72px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid var(--border-sage);
  background-color: var(--surface-white);
  color: var(--forest-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.mode-btn strong {
  display: block;
  font-size: 1.15rem;
}

.mode-btn small {
  display: block;
  font-size: 0.96rem;
  color: var(--muted-olive);
}

.mode-btn-active {
  background-color: var(--surface-mint-soft);
  border-color: var(--forest-deep);
  box-shadow: inset 0 0 0 1.5px var(--forest-deep);
}

.mode-icon {
  font-size: 1.9rem;
  flex-shrink: 0;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.lang-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: 120px;
  padding: 18px 16px;
  border-radius: 20px;
  border: 2.5px solid var(--forest-deep);
  background-color: var(--surface-white);
  color: var(--forest-ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.14s ease, transform 0.12s ease;
}

.lang-tile:hover {
  background-color: var(--surface-mint-soft);
  transform: translateY(-2px);
}

.lang-native {
  font-size: 1.625rem; /* 26px bold */
  font-weight: 800;
  line-height: 1.3;
}

.lang-english {
  font-size: 1.0625rem; /* 17px */
  font-weight: 700;
  color: var(--muted-olive);
}

/* ==========================================================================
   VIEW 2: SIGNATURE 2-COLUMN WORKSPACE (SIDEBAR + DEEP FOREST STAGE)
   ========================================================================== */

.hub-workspace-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

@media (max-width: 960px) {
  .hub-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar-card {
  background-color: var(--surface-white);
  border: 1.5px solid var(--border-sage);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.sidebar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 8px;
}

.mini-status-dot {
  inline-size: 9px;
  block-size: 9px;
  border-radius: 50%;
  background-color: #22c55e;
}

.segmented-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background-color: var(--bg-cream);
  border-radius: 14px;
  border: 1px solid var(--border-sage);
  margin-block-end: 14px;
}

.seg-tab {
  min-block-size: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--muted-olive);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
}

.seg-tab-active {
  background-color: var(--surface-white);
  color: var(--forest-deep);
  box-shadow: 0 2px 8px rgba(19, 69, 48, 0.08);
}

.session-pills-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 10px;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: var(--forest-deep);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.session-pill-soft {
  background-color: var(--surface-mint-soft);
  color: var(--forest-deep);
  border: 1px solid #c2d9b8;
}

.sidebar-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  min-block-size: 46px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-sage);
  background-color: var(--surface-white);
  color: var(--forest-deep);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.sidebar-action-link:hover {
  background-color: var(--bg-cream);
}

.sidebar-divider {
  border: 0;
  border-block-start: 1.5px solid var(--border-sage);
  margin-block: 16px;
}

.demo-lead {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-block-end: 12px;
}

.demo-icon-box {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 12px;
  background-color: var(--surface-mint-soft);
  color: var(--forest-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-subhead {
  font-size: 1.15rem;
  margin: 0 0 2px 0;
}

.sidebar-subcopy {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted-olive);
  line-height: 1.4;
}

.sample-cards-stack,
.sidebar-shortcuts {
  display: grid;
  gap: 10px;
}

.sample-btn,
.shortcut-pill {
  inline-size: 100%;
  min-block-size: 50px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-sage);
  background-color: var(--bg-cream);
  color: var(--forest-ink);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  line-height: 1.35;
}

.sample-btn:hover,
.shortcut-pill:hover {
  background-color: var(--surface-mint-soft);
  border-color: var(--forest-deep);
}

.shortcut-pill-primary {
  background-color: var(--lime-accent);
  border-color: #9fd85b;
  color: #0b291b;
}

.shortcut-pill-alert {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}

.privacy-footer-note {
  margin-block-start: 16px;
  padding-block-start: 14px;
  border-block-start: 1.5px solid var(--border-sage);
  font-size: 0.88rem;
  color: var(--muted-olive);
}

.privacy-footer-note p {
  margin: 4px 0 0 0;
}

/* ==========================================================================
   DEEP BOTANICAL FOREST VOICE STAGE (#134530)
   ========================================================================== */

.forest-stage-card {
  background-color: var(--forest-deep);
  color: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(19, 69, 48, 0.22);
  margin-block-end: 22px;
}

.forest-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 18px;
}

.forest-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #b7d9c4;
}

.live-status-indicator {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ecfdf5;
}

.live-dot {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 50%;
  background-color: var(--lime-accent);
}

.live-status-indicator.is-listening .live-dot {
  background-color: #f87171;
}

.forest-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-block-end: 22px;
}

.mic-ring-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 50%;
  background-color: rgba(203, 239, 154, 0.1);
}

.mic-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(203, 239, 154, 0.22);
  pointer-events: none;
}

.mic-glow-btn {
  position: relative;
  z-index: 1;
  inline-size: 120px;
  block-size: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.35);
  background-color: var(--lime-accent);
  color: var(--forest-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.mic-glow-btn:hover {
  background-color: var(--lime-hover);
  transform: scale(1.02);
}

.mic-btn-caption {
  font-size: 0.88rem;
  line-height: 1.1;
}

.mic-ring-wrapper.is-listening .mic-glow-btn {
  background-color: var(--crimson);
  color: #ffffff;
}

.mic-ring-wrapper.is-listening .mic-pulse-ring {
  border-color: #fca5a5;
  animation: pulseRing 1.3s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.forest-hero-copy {
  flex: 1 1 280px;
}

.forest-hero-copy h1 {
  color: #ffffff;
  font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.4rem);
  margin-block-end: 8px;
}

.forest-hero-copy p {
  margin: 0;
  color: #d6ebe0;
  font-size: 1.08rem;
}

/* Floating White YOUR QUESTION Card */
.floating-question-card {
  background-color: var(--surface-white);
  color: var(--forest-ink);
  border-radius: 18px;
  padding: 18px 20px;
  margin-block-end: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.question-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-block-end: 8px;
}

.question-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted-olive);
  text-transform: uppercase;
}

.wispr-inline-status {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest-deep);
}

.question-textarea {
  inline-size: 100%;
  border: 1.5px solid var(--border-sage);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest-ink);
  background-color: #fbfcf9;
  resize: vertical;
  margin-block-end: 12px;
}

.question-textarea:focus {
  border-color: var(--forest-deep);
  background-color: #ffffff;
}

/* Microphone Volume Meter (Screenshots 3 & 6) */
.mic-meter-strip {
  background-color: var(--surface-sage);
  border: 1.5px solid var(--border-sage);
  border-radius: 12px;
  padding: 12px 14px;
  margin-block-end: 12px;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.98rem;
  margin-block-end: 6px;
}

.meter-elapsed {
  font-variant-numeric: tabular-nums;
  color: var(--forest-deep);
}

.meter-track {
  inline-size: 100%;
  block-size: 10px;
  border-radius: 999px;
  background-color: #dce3d6;
  overflow: hidden;
  margin-block-end: 6px;
}

.meter-fill {
  inline-size: 8%;
  block-size: 100%;
  border-radius: 999px;
  background-color: #15803d;
  transition: inline-size 0.1s ease;
}

.meter-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-olive);
}

.question-actions-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.question-left-btns,
.question-right-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* User Echo Bar */
.user-echo-bar {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  margin-block-end: 14px;
  font-size: 1rem;
  color: #ecfdf5;
}

.echo-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--lime-accent);
  margin-inline-end: 8px;
}

/* Dark-Pine Spoken Reply Card (Screenshots 4 & 7) */
.spoken-reply-card {
  background-color: var(--forest-pine);
  border: 1.5px solid rgba(203, 239, 154, 0.28);
  border-radius: 18px;
  padding: 20px;
  color: #ffffff;
}

.reply-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-block-end: 12px;
}

.reply-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #b7d9c4;
  text-transform: uppercase;
}

.reply-provider-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--forest-pill);
  color: var(--lime-accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.reply-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-block-end: 16px;
}

.voice-picker-wrap {
  flex: 1 1 220px;
  min-inline-size: 210px;
}

.voice-select {
  inline-size: 100%;
  min-block-size: 46px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(203, 239, 154, 0.35);
  background-color: var(--forest-pill);
  color: #ffffff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.reply-spoken-body {
  margin: 0 0 18px 0;
  font-size: 1.32rem; /* 21px+ clear large display */
  line-height: 1.65;
  color: #f8fafc;
}

.reply-word {
  display: inline;
  border-radius: 5px;
  padding-inline: 2px;
  transition: background-color 0.08s ease, color 0.08s ease;
}

.reply-word.is-active {
  background-color: var(--lime-accent);
  color: #0b291b;
  font-weight: 800;
  padding-block: 1px;
}

.reply-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-block-start: 14px;
  border-block-start: 1px solid rgba(203, 239, 154, 0.18);
}

.read-aloud-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ecfdf5;
  cursor: pointer;
}

.read-aloud-switch input[type="checkbox"] {
  accent-color: var(--lime-accent);
  inline-size: 22px;
  block-size: 22px;
  cursor: pointer;
}

.reply-caption-hint {
  margin: 0;
  font-size: 0.9rem;
  color: #b7d9c4;
}

/* ==========================================================================
   VERIFIED CITATIONS 2-COLUMN BENTO CARDS (Screenshots 2 & 8)
   ========================================================================== */

.citations-bento-section {
  margin-block-end: 24px;
}

.citations-header-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-block-end: 14px;
}

.citations-meta {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted-olive);
}

.citations-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.citation-bento-card {
  background-color: var(--surface-white);
  border: 1.5px solid var(--border-sage);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.citation-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--surface-mint-soft);
  color: var(--forest-deep);
  font-size: 0.85rem;
  font-weight: 800;
  margin-block-end: 10px;
}

.citation-bento-title {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--forest-ink);
}

.citation-subbox {
  background-color: var(--surface-sage);
  border-radius: 12px;
  padding: 12px 14px;
  margin-block-end: 10px;
}

.citation-subbox p {
  margin: 0;
  font-size: 1rem;
  color: #243328;
}

.citation-footer-meta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted-olive);
  margin: 10px 0 0 0;
}

.citation-cta-btn {
  inline-size: 100%;
  margin-block-start: 6px;
}

/* ==========================================================================
   VIEW 3: 5-STEP ACCOUNT OPENING FORM
   ========================================================================== */

.form-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-block-end: 16px;
}

.active-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.progress-wrapper {
  margin-block-end: 16px;
}

.progress-label {
  display: block;
  font-weight: 800;
  margin-block-end: 6px;
}

progress {
  inline-size: 100%;
  block-size: 16px;
  accent-color: var(--forest-deep);
}

.prefill-banner {
  background-color: var(--amber-bg);
  border: 2px solid var(--amber-border);
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 800;
  margin-block-end: 18px;
}

.step-audio-row {
  margin-block-end: 20px;
}

.field-label {
  display: block;
  font-weight: 800;
  margin-block-end: 4px;
}

.field-hint {
  display: block;
  font-size: 0.98rem;
  color: var(--muted-olive);
  margin-block-end: 8px;
}

.step-input {
  inline-size: 100%;
  font: inherit;
  font-size: 1.25rem;
  padding: 14px 16px;
  min-block-size: 58px;
  border: 2px solid var(--border-input);
  border-radius: 12px;
  background-color: var(--surface-white);
  color: var(--forest-ink);
  margin-block-end: 12px;
}

.step4-fieldset {
  border: 1.5px solid var(--border-sage);
  border-radius: 14px;
  padding: 16px;
  margin-block-end: 20px;
  background-color: var(--bg-cream);
}

.account-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.account-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-block-size: 100px;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid var(--forest-deep);
  background-color: var(--surface-white);
  color: var(--forest-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.account-choice-btn.is-selected {
  background-color: var(--surface-mint-soft);
  box-shadow: inset 0 0 0 2px var(--forest-deep);
}

.account-choice-btn small {
  font-size: 0.94rem;
  color: var(--muted-olive);
}

.field-error {
  margin: 0 0 12px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: #fef2f2;
  border: 2px solid var(--crimson-dark);
  color: var(--crimson-dark);
  font-weight: 800;
}

.confirm-box {
  margin-block-start: 22px;
  padding: 22px;
  border-radius: 18px;
  border: 2.5px solid var(--forest-deep);
  background-color: var(--surface-mint-soft);
}

.captured-value-display {
  margin: 0 0 12px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background-color: var(--surface-white);
  border: 2px solid var(--forest-deep);
  font-size: 1.5rem;
  font-weight: 800;
  overflow-wrap: break-word;
}

.confirm-subcopy {
  margin: 0 0 16px 0;
  font-weight: 700;
}

/* ==========================================================================
   VIEW 4: PRINTABLE BILINGUAL TELLER HELPER SHEET
   ========================================================================== */

.teller-sheet-paper {
  background-color: var(--surface-white);
  border: 2.5px solid var(--forest-deep);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  margin-block-end: 24px;
}

.sheet-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-block-end: 2.5px solid var(--forest-deep);
  padding-block-end: 16px;
  margin-block-end: 18px;
}

.sheet-kicker {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--forest-deep);
}

.sheet-ref-box {
  padding: 10px 18px;
  border: 2.5px solid var(--forest-deep);
  border-radius: 14px;
  background-color: var(--bg-cream);
  text-align: center;
}

.ref-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

.ref-code {
  font-size: 1.45rem;
  letter-spacing: 0.05em;
}

.sheet-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 22px 0;
  padding: 14px;
  background-color: var(--bg-cream);
  border: 1.5px solid var(--border-sage);
  border-radius: 12px;
}

.sheet-meta-grid dt {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--muted-olive);
}

.sheet-meta-grid dd {
  margin: 2px 0 0 0;
  font-weight: 700;
}

.teller-table {
  inline-size: 100%;
  border-collapse: collapse;
  margin-block-end: 24px;
}

.teller-table th,
.teller-table td {
  border: 2px solid var(--forest-deep);
  padding: 12px 14px;
  text-align: start;
  vertical-align: top;
}

.teller-table thead th {
  background-color: var(--forest-deep);
  color: #ffffff;
}

.teller-field-local {
  display: block;
  font-size: 0.96rem;
  color: var(--muted-olive);
  margin-block-start: 4px;
}

.checklist-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-block-end: 18px;
}

.checklist-col {
  border: 1.5px solid var(--forest-deep);
  border-radius: 14px;
  padding: 16px;
  background-color: var(--surface-mint-soft);
}

.visual-checklist {
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.visual-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
}

.sheet-privacy-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted-olive);
  border-block-start: 1.5px dashed var(--border-sage);
  padding-block-start: 12px;
}

/* ==========================================================================
   NATIVE DIALOGS (TRANSCRIBING PROGRESS & WISPR FLOW TRANSCRIPT IMPORT)
   ========================================================================== */

dialog:not([open]) {
  display: none;
}

dialog {
  max-inline-size: 640px;
  inline-size: calc(100% - 28px);
  border: 2px solid var(--border-sage);
  border-radius: 22px;
  padding: 28px;
  background-color: var(--surface-white);
  color: var(--forest-ink);
  box-shadow: 0 24px 64px rgba(19, 69, 48, 0.25);
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background-color: rgba(19, 69, 48, 0.65);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.transcribing-modal-inner {
  text-align: center;
}

.spinner-ring {
  inline-size: 52px;
  block-size: 52px;
  margin: 12px auto 16px auto;
  border-radius: 50%;
  border: 4px solid var(--surface-sage);
  border-top-color: var(--forest-deep);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.transcribe-progress-track {
  inline-size: 100%;
  block-size: 8px;
  border-radius: 999px;
  background-color: var(--surface-sage);
  overflow: hidden;
  margin-block: 16px;
}

.transcribe-progress-bar {
  inline-size: 48%;
  block-size: 100%;
  border-radius: 999px;
  background-color: var(--forest-deep);
  animation: slideProgress 1.4s ease-in-out infinite alternate;
}

@keyframes slideProgress {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(108%);
  }
}

.transcribe-keep-open-box {
  background-color: var(--bg-cream);
  border: 1.5px solid #e7dfc4;
  border-radius: 14px;
  padding: 14px;
  text-align: start;
}

.transcribe-keep-open-box p {
  margin: 4px 0 0 0;
  font-size: 0.96rem;
  color: var(--muted-olive);
}

.dialog-actions {
  margin-block-start: 12px;
}

/* ==========================================================================
   FOOTER & ACCESSIBILITY MEDIA QUERIES
   ========================================================================== */

.site-footer {
  background-color: var(--forest-deep);
  color: #d6ebe0;
  text-align: center;
  padding: 16px 18px;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mic-ring-wrapper.is-listening .mic-pulse-ring,
  .spinner-ring,
  .transcribe-progress-bar {
    animation: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .btn-pill,
  .btn-dark-pill,
  .lang-tile,
  .welcome-card,
  .sidebar-card,
  .forest-stage-card,
  .teller-sheet-paper,
  dialog {
    border: 2px solid CanvasText;
    background-color: Canvas;
    color: CanvasText;
  }
  .reply-word.is-active {
    outline: 2px solid Highlight;
  }
}

/* ==========================================================================
   DEDICATED SINGLE-PAGE A4 PRINT STYLESHEET
   ========================================================================== */

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body {
    background-color: #ffffff;
    color: #000000;
    font-size: 11.5pt;
    line-height: 1.38;
  }

  .no-print,
  .site-header,
  .site-footer,
  dialog {
    display: none !important;
  }

  .app-shell {
    max-inline-size: none;
    padding: 0;
  }

  .teller-sheet-paper {
    border: 2px solid #000000;
    border-radius: 0;
    box-shadow: none;
    padding: 14px;
    margin: 0;
    page-break-inside: avoid;
  }

  .teller-table th,
  .teller-table td {
    padding: 7px 10px;
    border: 1.5px solid #000000;
  }

  .teller-table thead th {
    background-color: #134530 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .checklist-col {
    background-color: #ffffff;
    border: 1.5px solid #000000;
    padding: 10px;
  }
}
