/* ═══════════════════════════════════════════════════
   FlowMoney — Vanilla CSS
   Раздел 4.1: маппинг переменных на Telegram themeParams
   Устанавливаются через JS в app.js при инициализации SDK.
   Здесь — только дефолтные значения для браузера без SDK.
═══════════════════════════════════════════════════ */

:root {
  /* Telegram themeParams → CSS vars (перезаписываются в app.js) */
  --bg-color:         #ffffff;
  --secondary-bg-color: #f0f0f0;
  --text-color:       #222222;
  --hint-color:       #999999;
  --accent-color:     #2481cc;

  /* Фиксированные семантические цвета из спеки 4.1 */
  --danger-color:     #F87171;
  --success-color:    #10B981;

  /* Типографика */
  --font-family:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base:   16px;

  /* Радиусы */
  --radius-sm:        8px;
  --radius-md:        16px;
  --radius-lg:        24px;
  --radius-full:      9999px;

  /* Тайминг анимации — строго transform/opacity */
  --transition-base:  transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                      opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Safe Area Insets (iOS челки / домашний индикатор) */
  --safe-top:         env(safe-area-inset-top, 0px);
  --safe-bottom:      env(safe-area-inset-bottom, 0px);
  --safe-left:        env(safe-area-inset-left, 0px);
  --safe-right:       env(safe-area-inset-right, 0px);

  /* Высота нижней навигации */
  --nav-height:       60px;
  /* Минимальный паддинг снизу 8px защищает от Android gesture-bar,
     где env(safe-area-inset-bottom) возвращает 0 даже при наличии системной панели.
     JS в initTelegram перезаписывает --safe-bottom точным значением от Telegram SDK. */
  --nav-bottom-pad:   max(var(--safe-bottom), 8px);
  --nav-height-safe:  calc(var(--nav-height) + var(--nav-bottom-pad));
}

/* ═══════════════════════════════════════════════════
   Reset & Base
═══════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* pan-x pan-y разрешает скролл по обеим осям, но явно исключает pinch-zoom
     и double-tap zoom (в отличие от manipulation, которая их допускает). */
  touch-action: pan-x pan-y;
}

html {
  /* Блокируем системный зум */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow: hidden;
  height: 100dvh;
  /* Safe area для нестандартных вырезов */
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════════════════════
   Skeleton Loading (Этап 5.1 спеки)
═══════════════════════════════════════════════════ */

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--secondary-bg-color) 25%,
    color-mix(in srgb, var(--secondary-bg-color) 60%, var(--text-color) 8%) 50%,
    var(--secondary-bg-color) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite ease-in-out;
  border-radius: var(--radius-sm);
}

.skeleton-overlay {
  position: fixed;
  inset: 0;
  padding: 24px 16px;
  background: var(--bg-color);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: calc(24px + var(--safe-top));
  transition: var(--transition-base);
}

.skeleton-overlay.fade-out {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.skeleton-header {
  height: 80px;
  border-radius: var(--radius-md);
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-md);
}

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-row {
  height: 52px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════
   App Layout
═══════════════════════════════════════════════════ */

.app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.app.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Переход при показе приложения */
.app.visible {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* ═══════════════════════════════════════════════════
   Экраны (SPA)
   Переключение строго через transform/opacity —
   без анимации width/height/top/left (спека 4.2)
═══════════════════════════════════════════════════ */

.screen {
  position: absolute;
  inset: 0;
  bottom: var(--nav-height-safe);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  /* Скрытое состояние — сдвинуто вправо */
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: var(--transition-base);
  will-change: transform, opacity;
}

.screen.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.screen-content {
  min-height: 100%;
  padding: 16px 16px calc(16px + var(--nav-bottom-pad));
}

.screen-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color);
}

/* ═══════════════════════════════════════════════════
   Нижняя навигация
   "Правило одной руки" — фиксирована снизу
═══════════════════════════════════════════════════ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height-safe);
  padding-bottom: var(--nav-bottom-pad);
  background: var(--bg-color);
  border-top: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
  display: flex;
  align-items: flex-start;
  z-index: 10;
  /* Аппаратное ускорение */
  will-change: transform;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: var(--nav-height);
  color: var(--hint-color);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.18s ease, transform 0.18s ease;
  position: relative;
}

.nav-tab.active {
  color: var(--accent-color);
}

/* Индикатор активной вкладки */
.nav-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: var(--transition-base);
}

.nav-tab:active {
  transform: scale(0.92);
}

.nav-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

/* ═══════════════════════════════════════════════════
   Виджет дневного бюджета
═══════════════════════════════════════════════════ */

.budget-widget {
  text-align: center;
  padding: 24px 16px 16px;
}

.budget-label {
  font-size: 13px;
  color: var(--hint-color);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.budget-amount {
  font-size: 42px;
  font-weight: 700;
  color: var(--success-color);
  line-height: 1;
  /* Плавная смена цвета при приближении к 0 */
  transition: color 0.4s ease;
  /* Предотвращаем скачок при смене цвета */
  will-change: color;
}

.budget-amount.warning {
  color: color-mix(in srgb, var(--danger-color) 60%, var(--success-color));
}

.budget-amount.danger {
  color: var(--danger-color);
}

/* ═══════════════════════════════════════════════════
   Карусель категорий
   scroll-snap-type: x mandatory (спека 3.1)
═══════════════════════════════════════════════════ */

.category-carousel-wrap {
  overflow: hidden;
  margin: 0 -16px;
}

.category-carousel {
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-carousel::-webkit-scrollbar {
  display: none;
}

.category-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.category-item:active {
  transform: scale(0.92);
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 2.5px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.category-item.selected .category-icon {
  border-color: var(--accent-color);
  transform: scale(1.08);
}

.category-name {
  font-size: 11px;
  color: var(--hint-color);
  max-width: 60px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-item.selected .category-name {
  color: var(--accent-color);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   Дисплей суммы
═══════════════════════════════════════════════════ */

.numpad-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  min-height: 72px;
}

.amount-display {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-color);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.amount-currency {
  font-size: 22px;
  font-weight: 500;
  color: var(--hint-color);
}

/* ═══════════════════════════════════════════════════
   Кастомный нампад
   Жестко в нижней трети экрана (спека 3.1)
═══════════════════════════════════════════════════ */

.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 8px;
}

.numpad-key {
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--secondary-bg-color);
  color: var(--text-color);
  font-size: 22px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, background-color 0.1s ease;
  user-select: none;
  -webkit-user-select: none;
}

.numpad-key:active,
.numpad-key.pressed {
  transform: scale(0.93);
  background: color-mix(in srgb, var(--secondary-bg-color) 70%, var(--text-color) 15%);
}

.numpad-key--action {
  background: color-mix(in srgb, var(--accent-color) 15%, transparent);
  color: var(--accent-color);
}

/* ═══════════════════════════════════════════════════
   Кнопка "Добавить"
═══════════════════════════════════════════════════ */

.btn-add {
  width: 100%;
  height: 52px;
  margin-top: 12px;
  border-radius: var(--radius-lg);
  background: var(--accent-color);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition-base), background-color 0.15s ease;
  will-change: transform, opacity;
}

.btn-add:disabled {
  opacity: 0.35;
  transform: none;
  cursor: default;
}

.btn-add:not(:disabled):active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════
   Аналитика — Donut Chart
═══════════════════════════════════════════════════ */

.donut-container {
  padding: 8px 0 16px;
}

.donut-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.donut-svg {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  /* Hardware-accelerated layer for smooth segment transitions */
  will-change: transform;
}

.donut-segment {
  -webkit-tap-highlight-color: transparent;
}

.donut-legend {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.donut-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.donut-legend-name {
  font-size: 13px;
  color: var(--text-color);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-legend-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--hint-color);
  font-variant-numeric: tabular-nums;
}

.donut-empty {
  text-align: center;
  color: var(--hint-color);
  font-size: 14px;
  padding: 40px 0;
}

/* ═══════════════════════════════════════════════════
   Аналитика — Timeline
═══════════════════════════════════════════════════ */

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-empty {
  text-align: center;
  color: var(--hint-color);
  font-size: 14px;
  padding: 32px 0;
}

.timeline-day-group {
  margin-bottom: 4px;
}

.timeline-day-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--hint-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 0 6px;
}

/* Outer container: clipping box for swipe reveal */
.timeline-item {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  border-bottom: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
}

/* Inner flex row — this is what slides on swipe */
.timeline-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  background: var(--bg-color);
  position: relative;
  z-index: 1;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

/* Delete action panel — sits behind the content, revealed on left-swipe */
.swipe-action-delete {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 130px;
  background: var(--danger-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(40%);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.timeline-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.timeline-item-info {
  flex: 1;
  min-width: 0;
}

.timeline-item-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-item-time {
  font-size: 12px;
  color: var(--hint-color);
}

.timeline-item-amount {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Pending-sync indicator dot */
.sync-pending {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hint-color);
  margin-left: 4px;
  flex-shrink: 0;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

/* ═══════════════════════════════════════════════════
   Настройки бюджетов
═══════════════════════════════════════════════════ */

.budget-settings {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.budget-setting-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.budget-setting-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.budget-setting-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
}

.limit-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
  font-variant-numeric: tabular-nums;
}

.budget-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.budget-progress-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--text-color) 10%, transparent);
  overflow: hidden;
}

.budget-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--success-color);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1), background 0.4s ease;
  will-change: width;
}

.budget-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--hint-color);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent-color) 25%, var(--secondary-bg-color));
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-color) 40%, transparent);
  cursor: grab;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-color);
  border: none;
  cursor: grab;
}

/* ═══════════════════════════════════════════════════
   Экран настроек — секции и выбор валюты
═══════════════════════════════════════════════════ */

.settings-section {
  margin-bottom: 32px;
}

.settings-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--hint-color);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.currency-select-wrap {
  position: relative;
}

.currency-select {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 16px;
  border-radius: var(--radius-md);
  background-color: var(--secondary-bg-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: var(--text-color);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.limit-value--tap {
  touch-action: manipulation;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, opacity 0.15s ease;
  background: color-mix(in srgb, var(--accent-color) 12%, transparent);
}

.limit-value--tap:active {
  transform: scale(0.91);
  opacity: 0.65;
}

/* ═══════════════════════════════════════════════════
   Шторка: ввод лимита бюджета
═══════════════════════════════════════════════════ */

.budget-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.budget-modal.open {
  pointer-events: auto;
}

.budget-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.budget-modal.open .budget-modal-backdrop {
  opacity: 1;
}

.budget-modal-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 12px 16px calc(24px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.budget-modal.open .budget-modal-sheet {
  transform: translateY(0);
}

.budget-modal-handle {
  width: 36px;
  height: 4px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--text-color) 20%, transparent);
  margin: 0 auto 16px;
}

.budget-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.budget-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-color);
}

.budget-modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--secondary-bg-color);
  color: var(--hint-color);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  touch-action: manipulation;
}

.budget-modal-close:active {
  transform: scale(0.88);
}

.budget-modal-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 20px;
}

.budget-modal-amount {
  font-size: 44px;
  font-weight: 700;
  color: var(--text-color);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  min-width: 1ch;
}

.budget-modal-currency {
  font-size: 24px;
  font-weight: 500;
  color: var(--hint-color);
}

.btn-save-limit {
  width: 100%;
  height: 52px;
  margin-top: 12px;
  border-radius: var(--radius-lg);
  background: var(--accent-color);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition-base), background-color 0.15s ease;
  will-change: transform, opacity;
  touch-action: manipulation;
}

.btn-save-limit:active {
  transform: scale(0.97);
  opacity: 0.88;
}

/* ═══════════════════════════════════════════════════
   Конвертер валют
═══════════════════════════════════════════════════ */

.converter-widget {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 12px 12px;
  background: var(--secondary-bg-color);
  border-radius: var(--radius-md);
}

.converter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.converter-amount-btn {
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent-color);
  padding: 4px 0;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.15s ease;
}

.converter-amount-btn:active {
  opacity: 0.55;
}

.converter-amount-result {
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--hint-color);
  text-align: left;
  padding: 4px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--hint-color) 30%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.converter-currency-select {
  flex-shrink: 0;
  width: auto;
  min-width: 84px;
  padding: 7px 28px 7px 10px;
  border-radius: var(--radius-sm);
  background-color: color-mix(in srgb, var(--accent-color) 10%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  color: var(--text-color);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.converter-swap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  align-self: center;
  margin: 0 auto;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent-color) 14%, transparent);
  color: var(--accent-color);
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.22s ease, opacity 0.15s ease;
}

.converter-swap-btn:active {
  transform: rotate(180deg);
  opacity: 0.65;
}
