/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  font-family: var(--font-sans);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover:not(:disabled) {
  background: var(--color-bg);
  border-color: var(--color-text-muted);
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--color-danger-dark);
  border-color: var(--color-danger-dark);
}

.btn-success {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}

.btn-success:hover:not(:disabled) {
  background: #16a34a;
  border-color: #16a34a;
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.4rem;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background var(--transition);
  line-height: 1;
  font-family: var(--font-sans);
}

.btn-icon:hover { background: var(--color-surface-2); }
.btn-icon.danger:hover { background: rgba(244, 63, 94, 0.12); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-input.error,
.form-select.error {
  border-color: var(--color-danger);
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-select-sm {
  padding: 0.3rem 2rem 0.3rem 0.5rem;
  font-size: 0.82rem;
  width: auto;
}

.form-textarea { resize: vertical; min-height: 60px; }

.form-color {
  width: 48px;
  height: 38px;
  padding: 0.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--color-surface);
  flex-shrink: 0;
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-danger);
  margin-top: 0.3rem;
}

/* ===== FILTER PANEL ===== */
.filter-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filter-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.filter-actions { display: flex; gap: 0.5rem; }

/* ===== LIST HEADER ===== */
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.list-count { font-weight: 500; }

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.btn-sort {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

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

/* ===== EXPENSE TABLE ===== */
.expense-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.expense-table th {
  background: var(--color-bg);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.expense-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.expense-table tr:last-child td { border-bottom: none; }
.expense-table tbody tr:hover td { background: rgba(124,58,237,0.06); }

.expense-table .col-amount {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.expense-table .col-actions {
  text-align: right;
  white-space: nowrap;
  width: 80px;
}

.expense-table .col-check { width: 40px; }

.expense-table .col-date {
  white-space: nowrap;
  color: var(--color-text-secondary);
}

/* ===== CATEGORY BADGE ===== */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.category-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ===== CHECKBOX ===== */
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  backdrop-filter: blur(3px);
  animation: overlay-in 0.15s ease;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s ease;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-sm { max-width: 360px; }

@keyframes modal-in {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: 0.3rem;
  border-radius: var(--radius);
  line-height: 1;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.modal-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.modal-body { padding: 1.1rem 1.25rem; }

/* Inputs más compactos dentro del modal */
.modal .form-input,
.modal .form-select { padding: 0.4rem 0.65rem; font-size: 0.875rem; }
.modal .form-group  { margin-bottom: 0.85rem; }

.modal-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 0.75rem);
  right: 1rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  min-width: 220px;
  max-width: 320px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  pointer-events: all;
  cursor: pointer;
  font-size: 0.875rem;
  animation: toast-in 0.25s ease;
}

@keyframes toast-in {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.hiding {
  animation: toast-out 0.25s ease forwards;
}

@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(110%); opacity: 0; }
}

.toast-success { border-left: 3px solid var(--color-success); }
.toast-error   { border-left: 3px solid var(--color-danger); }
.toast-info    { border-left: 3px solid var(--color-info); }

.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-message { flex: 1; color: var(--color-text); }

/* ===== CATEGORIES VIEW ===== */
.category-add-form h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.875rem;
}

.category-form-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.category-form-row .form-input { flex: 1; min-width: 160px; }

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.category-list-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.5rem;
  transition: box-shadow var(--transition);
}

.category-list-item:hover { box-shadow: var(--shadow-md); }

.cat-color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.08);
}

.cat-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.9rem;
}

.cat-count {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  white-space: nowrap;
}

.cat-actions { display: flex; gap: 0.25rem; flex-shrink: 0; }

.predefined-badge {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* Category inline edit */
.cat-edit-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.cat-edit-row .form-input {
  padding: 0.35rem 0.6rem;
  font-size: 0.875rem;
}

/* ===== PATRIMONIO HIGHLIGHT CARD ===== */
.stat-card-highlight {
  background: linear-gradient(135deg, #7c3aed 0%, #4f1da8 100%);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
  color: #fff;
}

.stat-card-highlight .stat-label {
  color: rgba(255,255,255,0.8);
}

.stat-card-highlight .stat-value {
  color: #fff;
}

/* ===== ACCOUNT STYLES ===== */

/* Form: 2-column row */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
}

.form-color-lg {
  width: 56px;
  height: 42px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

.label-optional {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* Accounts summary card */
.accounts-summary {
  margin-bottom: 1.25rem;
}

.accounts-summary-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.accounts-total {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  margin-top: 0.25rem;
}

.accounts-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 200px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.breakdown-amount {
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

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

/* Account card */
.account-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.625rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.account-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.acc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.acc-body {
  flex: 1;
  min-width: 0;
}

.acc-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-type {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  margin-top: 0.1rem;
}

.acc-notes {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
  flex-shrink: 0;
}

.acc-balance {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.acc-balance.negative { color: var(--color-danger); }

.acc-actions {
  display: flex;
  gap: 0.2rem;
}

/* ===== SECTION DIVIDER (income history heading) ===== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--color-border);
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

/* ===== INCOME TABLE ===== */
/* Reuses .expense-table — only override the amount color */
.income-table .income-amount {
  color: var(--color-success);
  font-weight: 700;
}

/* ==============================================
   SPLASH SCREEN
   ============================================== */

.splash-screen {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.4s ease;
}

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

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.splash-icon {
  font-size: 3.5rem;
  display: block;
  animation: splash-pulse 1.8s ease-in-out infinite;
}

.splash-name {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #a78bfa, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.splash-dots {
  display: flex;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.splash-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.3;
  animation: splash-dot 1.2s ease-in-out infinite;
}

.splash-dots span:nth-child(2) { animation-delay: 0.2s; }
.splash-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes splash-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.1); opacity: 0.85; }
}

@keyframes splash-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(-4px); }
}

/* ==============================================
   AUTH SCREEN
   ============================================== */

.auth-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(124, 58, 237, 0.08) 0%, var(--color-bg) 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.auth-logo {
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-logo-icon {
  font-size: 2.5rem;
  display: block;
}

.auth-logo-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0.25rem 0 0;
  background: linear-gradient(135deg, #a78bfa, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo-sub {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0;
}

.auth-title {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  color: var(--color-text-muted);
}

.auth-card.register {
  max-width: 460px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.label-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-google:hover {
  background: var(--color-border);
  border-color: rgba(255,255,255,0.2);
}

/* OR divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Full-width submit button */
.auth-submit-btn {
  width: 100%;
  justify-content: center;
}

/* Link-style toggle */
.auth-toggle-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  padding: 0;
  transition: opacity 0.15s;
}

.auth-toggle-link:hover {
  opacity: 0.75;
}

/* Error / success message in auth */
.auth-error {
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--color-danger);
}

/* Forgot password link */
.auth-forgot-link {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-align: right;
  display: block;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}
.auth-forgot-link:hover { color: var(--color-primary); }

/* Recovery / forgot section hint text */
.auth-recovery-hint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

/* Password strength indicator */
.password-strength {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 99px;
  overflow: hidden;
}
.strength-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.25s, background 0.25s;
  width: 0%;
}
.strength-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  min-width: 3rem;
  text-align: right;
}

/* ==============================================
   NAVBAR USER AREA
   ============================================== */

.navbar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
}

.nav-user-email {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
}

/* ===== Account balance adjustment ===== */
.account-adjust-section { border-top: 1px solid var(--color-border); padding-top: 0.85rem; margin-top: 0.25rem; }
.adjust-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.4rem;
}
.adjust-sign-toggle {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.adjust-sign-btn {
  background: none;
  border: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  transition: background var(--transition), color var(--transition);
}
.adjust-sign-btn:first-child { border-right: 1px solid var(--color-border); }
.adjust-sign-btn.active {
  background: var(--color-primary);
  color: #fff;
}
.adjust-amount-input { flex: 1; min-width: 0; }
.adjust-preview {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  min-height: 1.1em;
}
