/* ═══════════════════════════════════════════════════════════════
   QOTA COMPONENT LIBRARY
   HTML class-based building blocks for Vanilla-JS views.
   All tokens via CSS custom properties from qota-design.css.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Overline / Section Label ────────────────────────────── */
.q-overline {
  font-size: var(--q-fs-overline);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--q-ink-muted);
}

/* ─── Caption / Meta ──────────────────────────────────────── */
.q-caption {
  font-size: var(--q-fs-caption);
  color: var(--q-ink-muted);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.q-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--q-sp-2);
  padding: var(--q-sp-3) var(--q-sp-5);
  border: 0;
  border-radius: var(--q-r-pill);
  font-family: inherit;
  font-size: var(--q-fs-body);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background var(--q-dur-base) var(--q-ease),
              color var(--q-dur-base) var(--q-ease),
              transform var(--q-dur-fast) var(--q-ease),
              opacity var(--q-dur-base) var(--q-ease);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}
.q-btn:active { transform: scale(0.98); }
.q-btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* Primary — ink / dark */
.q-btn--primary {
  background: var(--q-ink);
  color: var(--q-night-ink);
  box-shadow: var(--q-shadow-md);
}
.q-btn--primary:hover { background: #000; }

/* Accent — brand forest */
.q-btn--accent {
  background: var(--q-accent);
  color: var(--q-night-ink);
  box-shadow: var(--q-shadow-md);
}
.q-btn--accent:hover { background: var(--q-accent-dk); }

/* Ghost — transparent card */
.q-btn--ghost {
  background: var(--q-card);
  color: var(--q-ink);
  border: 1px solid var(--q-line);
}
.q-btn--ghost:hover { background: var(--q-card-soft); }

/* Quiet — text only */
.q-btn--quiet {
  background: transparent;
  color: var(--q-ink-muted);
  padding-inline: var(--q-sp-3);
}
.q-btn--quiet:hover { color: var(--q-ink); }

/* Size variants */
.q-btn--sm { padding: var(--q-sp-2) var(--q-sp-4); font-size: var(--q-fs-caption); }
.q-btn--lg { padding: var(--q-sp-4) var(--q-sp-6); font-size: var(--q-fs-body-l); }
.q-btn--xl { padding: var(--q-sp-5) var(--q-sp-7); font-size: var(--q-fs-body-l); }
.q-btn--block { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   SCAN-FRAME (camera view) — Weiße Brackets in den vier Ecken
   + animierte Accent-Scan-Linie. Nutzung:
     <div class="q-scan-frame">
       …content…
       <span class="q-scan-bracket q-scan-bracket--tl"></span>
       <span class="q-scan-bracket q-scan-bracket--tr"></span>
       <span class="q-scan-bracket q-scan-bracket--bl"></span>
       <span class="q-scan-bracket q-scan-bracket--br"></span>
       <div class="q-scan-line"></div>
     </div>
   ═══════════════════════════════════════════════════════════════ */
.q-scan-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
}
.q-scan-bracket {
  position: absolute;
  width: 28px;
  height: 28px;
  border-style: solid;
  border-color: #fff;
  pointer-events: none;
}
.q-scan-bracket--tl {
  top: -6px; left: -6px;
  border-width: 3px 0 0 3px;
  border-top-left-radius: 10px;
}
.q-scan-bracket--tr {
  top: -6px; right: -6px;
  border-width: 3px 3px 0 0;
  border-top-right-radius: 10px;
}
.q-scan-bracket--bl {
  bottom: -6px; left: -6px;
  border-width: 0 0 3px 3px;
  border-bottom-left-radius: 10px;
}
.q-scan-bracket--br {
  bottom: -6px; right: -6px;
  border-width: 0 3px 3px 0;
  border-bottom-right-radius: 10px;
}
.q-scan-line {
  position: absolute;
  left: 0; right: 0;
  top: 38%;
  height: 2px;
  background: var(--q-accent);
  box-shadow: 0 0 20px var(--q-accent), 0 0 40px var(--q-accent);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   COLOR-SWATCH (create-circle accent picker)
   36x36 Kreis in Akzent-Farbe, mit optional Check-Icon im active-state.
   Variable --c hält die Farbe per Inline-Style.
   ═══════════════════════════════════════════════════════════════ */
.q-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--c, var(--q-accent));
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: box-shadow 0.15s var(--q-ease);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.q-color-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--q-card), 0 0 0 4px var(--c, var(--q-accent));
}
.q-color-swatch:not([aria-pressed="true"]) > svg {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   PILL-TABS (horizontaler Filter, z.B. Alle/Offen/Beglichen)
   ═══════════════════════════════════════════════════════════════ */
.q-pill-tabs {
  display: flex;
  gap: 6px;
  padding: 3px;
  background: var(--q-bg-soft);
  border: 1px solid var(--q-line);
  border-radius: 9999px;
}
.q-pill-tabs__tab {
  flex: 1;
  padding: 8px 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--q-ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--q-dur-fast) var(--q-ease),
              color var(--q-dur-fast) var(--q-ease),
              box-shadow var(--q-dur-fast) var(--q-ease);
}
.q-pill-tabs__tab.is-active {
  background: var(--q-card);
  color: var(--q-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Icon-only button */
.q-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--q-r-pill);
  background: transparent;
  color: var(--q-ink);
  cursor: pointer;
  transition: background var(--q-dur-fast) var(--q-ease);
}
.q-icon-btn:hover { background: var(--q-line); }
.q-icon-btn--filled { background: var(--q-card); border: 1px solid var(--q-line); }
.q-icon-btn--sm { width: 32px; height: 32px; }
.q-icon-btn--lg { width: 48px; height: 48px; }

/* Floating action button (Scan CTA) */
.q-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: var(--q-r-pill);
  background: var(--q-ink);
  color: var(--q-night-ink);
  box-shadow: var(--q-shadow-lg);
  cursor: pointer;
  transition: transform var(--q-dur-fast) var(--q-ease);
}
.q-fab:active { transform: scale(0.95); }

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */

.q-card {
  background: var(--q-card);
  border: 1px solid var(--q-line);
  border-radius: var(--q-r-xl);
  padding: var(--q-sp-5);
}
.q-card--soft    { background: var(--q-card-soft); }
.q-card--inner   { background: var(--q-bg-soft); border-color: var(--q-line); }
.q-card--flat    { box-shadow: none; border: 0; }
.q-card--padded  { padding: var(--q-sp-6); }
.q-card--compact { padding: var(--q-sp-4); }

/* Dark hero card (dashboard balance) */
.q-hero-card {
  background: var(--q-night);
  color: var(--q-night-ink);
  border-radius: var(--q-r-xxl);
  padding: var(--q-sp-6);
  box-shadow: var(--q-shadow-hero);
  position: relative;
  overflow: hidden;
}
.q-hero-card__accent-wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 60% at 50% 0%,
    var(--q-hero-accent, var(--q-accent)) 0%,
    transparent 60%
  );
  opacity: 0.22;
  pointer-events: none;
}
.q-hero-card__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   AVATARS
   Use data-member="steffen" (etc.) to pick member colors.
   ═══════════════════════════════════════════════════════════════ */

.q-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--m-bg, var(--q-ink-muted));
  color: var(--m-fg, var(--q-night-ink));
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  user-select: none;
}
.q-avatar--xs { width: 24px; height: 24px; font-size: 10px; }
.q-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.q-avatar--md { width: 36px; height: 36px; font-size: 14px; }
.q-avatar--lg { width: 44px; height: 44px; font-size: 16px; }
.q-avatar--xl { width: 56px; height: 56px; font-size: 20px; }

/* Avatar stack (overlapping) */
.q-avatar-stack {
  display: inline-flex;
}
.q-avatar-stack > .q-avatar {
  margin-inline-end: -10px;
  box-shadow: 0 0 0 2px var(--q-card);
}
.q-avatar-stack > .q-avatar:last-child { margin-inline-end: 0; }
.q-avatar-stack--on-bg > .q-avatar { box-shadow: 0 0 0 2px var(--q-bg); }
.q-avatar-stack--on-dark > .q-avatar { box-shadow: 0 0 0 2px var(--q-night); }

/* ═══════════════════════════════════════════════════════════════
   CHIPS / PILLS / BADGES
   ═══════════════════════════════════════════════════════════════ */

.q-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--q-sp-1);
  padding: 4px 10px;
  border-radius: var(--q-r-pill);
  background: var(--q-bg-soft);
  color: var(--q-ink-muted);
  font-size: var(--q-fs-caption);
  font-weight: 600;
  line-height: 1;
}
.q-chip--pos { background: var(--q-accent-soft); color: var(--q-pos-ink); }
.q-chip--neg { background: var(--q-neg-soft);    color: var(--q-neg-ink); }
.q-chip--warn{ background: #F5ECD9;             color: var(--q-warn); }
.q-chip--ink { background: var(--q-ink);        color: var(--q-night-ink); }
.q-chip--ghost { background: transparent; border: 1px solid var(--q-line); color: var(--q-ink); }

/* Glass pill (for dark overlays, e.g. camera view) */
.q-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--q-sp-2);
  padding: 8px 14px;
  border-radius: var(--q-r-pill);
  background: rgba(246, 244, 238, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--q-night-ink);
  font-size: var(--q-fs-caption);
  font-weight: 500;
  border: 1px solid rgba(246, 244, 238, 0.18);
}

/* ═══════════════════════════════════════════════════════════════
   TILE ICON (settings/list-row leading icon-box)
   34x34, rounded-md (10), filled bg.
   ═══════════════════════════════════════════════════════════════ */

.q-tile-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   QUICK-ACTION TILE (3-col dashboard cards)
   Mockup spec: left-aligned, icon top + label/hint stacked below.
   Primary variant inverts to dark ink card.
   ═══════════════════════════════════════════════════════════════ */

.q-quick {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 12px;
  text-align: left;
  background: var(--q-card);
  color: var(--q-ink);
  border: 1px solid var(--q-line);
  border-radius: 20px;
  cursor: pointer;
  transition: transform var(--q-dur-fast) var(--q-ease),
              background var(--q-dur-base) var(--q-ease);
  min-height: 96px;
}
.q-quick:active { transform: scale(0.97); }
.q-quick--primary {
  background: var(--q-ink);
  color: var(--q-night-ink);
  border-color: transparent;
}
.q-quick__icon {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--q-quick-icon-bg, var(--q-accent-soft));
  color: var(--q-quick-icon-fg, var(--q-accent));
  flex-shrink: 0;
  transition: background var(--q-dur-base) var(--q-ease);
}
.q-quick--primary .q-quick__icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.q-quick__icon svg { width: 16px; height: 16px; }
.q-quick__label {
  font-family: var(--q-font-sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.2px;
  margin: 0;
}
.q-quick__hint {
  font-family: var(--q-font-sans);
  font-size: 11px;
  margin: 2px 0 0;
  color: var(--q-ink-muted);
}
.q-quick--primary .q-quick__hint { color: rgba(255, 255, 255, 0.55); }

/* ═══════════════════════════════════════════════════════════════
   LIST ROWS
   ═══════════════════════════════════════════════════════════════ */

.q-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--q-line);
}
.q-row:last-child { border-bottom: 0; }
.q-row__main { flex: 1; min-width: 0; }
.q-row__title {
  font-family: var(--q-font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--q-ink);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}
.q-row__meta {
  font-family: var(--q-font-sans);
  font-size: 12.5px;
  color: var(--q-ink-muted);
  margin-top: 2px;
}
.q-row__amount {
  font-family: var(--q-font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--q-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.q-row__amount--pos { color: var(--q-pos-ink); }
.q-row__amount--neg { color: var(--q-neg-ink); }
.q-row__share {
  font-family: var(--q-font-sans);
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
  text-align: right;
}
.q-row__share--pos { color: var(--q-accent); }
.q-row__share--neg { color: #9B3030; }
.q-row__right { text-align: right; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   FORM FIELDS
   ═══════════════════════════════════════════════════════════════ */

.q-field {
  display: flex;
  flex-direction: column;
  gap: var(--q-sp-2);
}
.q-field__label {
  font-size: var(--q-fs-overline);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--q-ink-muted);
}
.q-input {
  width: 100%;
  padding: var(--q-sp-3) 0;
  border: 0;
  border-bottom: 1.5px solid var(--q-line-2);
  background: transparent;
  color: var(--q-ink);
  font-size: var(--q-fs-body-l);
  font-weight: 500;
  outline: none;
  transition: border-color var(--q-dur-base) var(--q-ease);
}
.q-input:focus { border-bottom-color: var(--q-accent); }
.q-input::placeholder { color: var(--q-ink-faint); }

.q-input--boxed {
  padding: var(--q-sp-3) var(--q-sp-4);
  background: var(--q-bg-soft);
  border: 1px solid var(--q-line);
  border-radius: var(--q-r-md);
}
.q-input--boxed:focus { border-color: var(--q-accent); background: var(--q-card); }

/* Segmented toggle */
.q-segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--q-bg-soft);
  border: 1px solid var(--q-line);
  border-radius: var(--q-r-md);
}
.q-segmented > button {
  flex: 1;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  border-radius: var(--q-r-sm);
  font-size: var(--q-fs-caption);
  font-weight: 600;
  color: var(--q-ink-muted);
  cursor: pointer;
  transition: background var(--q-dur-fast), color var(--q-dur-fast);
}
.q-segmented > button.is-active {
  background: var(--q-card);
  color: var(--q-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ═══════════════════════════════════════════════════════════════
   SLIDERS (Split allocation)
   ═══════════════════════════════════════════════════════════════ */

.q-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--q-bg-soft);
  border-radius: var(--q-r-pill);
  outline: none;
}
.q-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--q-ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(14, 14, 12, 0.25);
  transition: transform var(--q-dur-fast) var(--q-ease);
}
.q-slider::-webkit-slider-thumb:active { transform: scale(1.15); }
.q-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--q-ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(14, 14, 12, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════════ */

.q-progress {
  position: relative;
  width: 100%;
  height: 4px;
  background: var(--q-bg-soft);
  border-radius: var(--q-r-pill);
  overflow: hidden;
}
.q-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--q-progress-value, 0%);
  background: var(--q-accent);
  border-radius: var(--q-r-pill);
  transition: width var(--q-dur-slow) var(--q-ease);
}

/* ═══════════════════════════════════════════════════════════════
   TAB BAR (bottom navigation) — Mockup-spec
   - Pill-rectangle container (radius 22) with center FAB rising above
   - Sits in absolute position inside the .max-w-md body container
   ═══════════════════════════════════════════════════════════════ */

.q-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 6px 10px calc(20px + var(--q-safe-bottom));
  background: linear-gradient(to top,
    var(--q-bg) 0%,
    var(--q-bg) 60%,
    rgba(244, 242, 237, 0) 100%);
  pointer-events: none;
  transition: opacity 0.25s var(--q-ease), transform 0.25s var(--q-ease);
}
.q-tabbar.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.q-tabbar.is-hidden .q-tabbar__inner {
  pointer-events: none;
}
.q-tabbar__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  padding: 4px;
  background: var(--q-card);
  border: 1px solid var(--q-line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(14, 14, 12, 0.05),
              0 2px 6px rgba(14, 14, 12, 0.04);
}
.q-tabbar__btn {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--q-ink-faint);
  border-radius: 18px;
  cursor: pointer;
  font-family: var(--q-font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1px;
  transition: color var(--q-dur-base) var(--q-ease);
}
.q-tabbar__btn:active { transform: scale(0.96); }
.q-tabbar__btn.is-active {
  color: var(--q-ink);
  font-weight: 600;
}
.q-tabbar__btn--fab {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: var(--q-tabbar-accent, var(--q-accent));
  color: #fff;
  margin: 0 4px;
  border: 4px solid var(--q-bg);
  transform: translateY(-14px);
  box-shadow: 0 8px 20px var(--q-tabbar-accent-shadow,
                           rgba(31, 95, 63, 0.4));
  transition: background var(--q-dur-base) var(--q-ease),
              box-shadow var(--q-dur-base) var(--q-ease),
              transform var(--q-dur-fast) var(--q-ease);
}
.q-tabbar__btn--fab:active {
  transform: translateY(-12px) scale(0.96);
}

/* ═══════════════════════════════════════════════════════════════
   SCRIM / MODAL
   ═══════════════════════════════════════════════════════════════ */

.q-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(14, 14, 12, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--q-dur-base) var(--q-ease);
}
.q-scrim.is-open { opacity: 1; pointer-events: auto; }

.q-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 61;
  width: min(92%, 420px);
  background: var(--q-card);
  border-radius: var(--q-r-xl);
  padding: var(--q-sp-6);
  box-shadow: var(--q-shadow-hero);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--q-dur-base) var(--q-ease),
              transform var(--q-dur-base) var(--q-ease);
}
.q-modal.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Bottom sheet (slides from bottom) */
.q-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  background: var(--q-card);
  border-top-left-radius: var(--q-r-xxl);
  border-top-right-radius: var(--q-r-xxl);
  padding: var(--q-sp-5) var(--q-sp-5) calc(var(--q-sp-5) + var(--q-safe-bottom));
  box-shadow: var(--q-shadow-hero);
  transform: translateY(100%);
  transition: transform var(--q-dur-slow) var(--q-ease);
}
.q-sheet.is-open { transform: translateY(0); }
.q-sheet__handle {
  width: 40px;
  height: 4px;
  margin: 0 auto var(--q-sp-4);
  background: var(--q-line-2);
  border-radius: var(--q-r-pill);
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════════════ */

.q-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--q-sp-8) var(--q-sp-5);
  text-align: center;
}
.q-empty__icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--q-sp-4);
  color: var(--q-accent);
  background: var(--q-accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.q-empty__title {
  font-family: var(--q-font-display);
  font-size: var(--q-fs-h3);
  font-weight: 500;
  color: var(--q-ink);
  margin-bottom: var(--q-sp-2);
}
.q-empty__text {
  font-size: var(--q-fs-body);
  color: var(--q-ink-muted);
  max-width: 320px;
}

/* ═══════════════════════════════════════════════════════════════
   AMOUNT DISPLAY
   ═══════════════════════════════════════════════════════════════ */

.q-amount {
  font-family: var(--q-font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1;
  color: var(--q-ink);
  letter-spacing: -0.02em;
}
.q-amount--display { font-size: var(--q-fs-display); }
.q-amount--h1      { font-size: var(--q-fs-h1); }
.q-amount--h2      { font-size: var(--q-fs-h2); }
.q-amount--h3      { font-size: var(--q-fs-h3); }
.q-amount--body    { font-size: var(--q-fs-body-l); }
.q-amount__cent {
  font-size: 0.5em;
  opacity: 0.5;
  margin-inline-start: 2px;
}
.q-amount__currency {
  font-size: 0.5em;
  opacity: 0.5;
  margin-inline-start: 2px;
}
.q-amount--pos { color: var(--q-pos-ink); }
.q-amount--neg { color: var(--q-neg-ink); }
.q-amount--on-dark { color: var(--q-night-ink); }

/* ═══════════════════════════════════════════════════════════════
   DOTS PAGINATION
   ═══════════════════════════════════════════════════════════════ */

.q-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.q-dots__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--q-r-pill);
  background: var(--q-line-2);
  transition: width var(--q-dur-base) var(--q-ease),
              background var(--q-dur-base) var(--q-ease);
}
.q-dots__dot.is-active { width: 22px; background: var(--q-ink); }
.q-dots--on-dark .q-dots__dot { background: rgba(246,244,238,0.25); }
.q-dots--on-dark .q-dots__dot.is-active { background: var(--q-night-ink); }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes q-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.q-fade-in { animation: q-fade-in var(--q-dur-base) var(--q-ease) both; }

@keyframes q-slide-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.q-slide-up { animation: q-slide-up var(--q-dur-slow) var(--q-ease) both; }
