/* ══════════════════════════════════════════════════════════════
   Wet Paint v2 — Design System
   Palette: Black · Cyan · Lime  |  Light & Dark mode
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Structural variables — never change between themes ──────── */
:root {
  --sidebar-w:  230px;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  18px;
  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
}

/* ── Dark theme (default) ──────────────────────────────────── */
:root,
[data-theme="dark"] {
  --black:        #080D0B;
  --surface-0:    #0C1210;
  --surface-1:    #111916;
  --surface-2:    #192420;
  --surface-3:    #213029;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(0,210,180,0.3);

  --cyan:         #00CDB4;
  --cyan-dim:     rgba(0,205,180,0.12);
  --cyan-glow:    rgba(0,205,180,0.25);
  --lime:         #BAFF29;
  --lime-dark:    #BAFF29;
  --lime-dim:     rgba(186,255,41,0.1);
  --teal:         #0891B2;

  --text-1:       #EDF5F2;
  --text-2:       #8AADA6;
  --text-3:       #4D6E66;

  --danger:       #FF4D6D;
  --danger-dim:   rgba(255,77,109,0.12);
  --warn:         #FFBA49;
  --warn-dim:     rgba(255,186,73,0.12);
  --success:      #00CDB4;

  --chart-grid:   rgba(255,255,255,0.06);
  --chart-text:   #8AADA6;

  --scrollbar-thumb: #213029;
}

/* ── Light theme ───────────────────────────────────────────── */
[data-theme="light"] {
  --black:        #F0F7F4;
  --surface-0:    #E4EDEA;
  --surface-1:    #FFFFFF;
  --surface-2:    #F2F8F5;
  --surface-3:    #E4EDEA;
  --border:       rgba(0,30,20,0.09);
  --border-hover: rgba(0,160,143,0.35);

  --cyan:         #009E8A;
  --cyan-dim:     rgba(0,158,138,0.10);
  --cyan-glow:    rgba(0,158,138,0.20);
  --lime:         #5C9200;
  --lime-dark:    #4A7800;
  --lime-dim:     rgba(92,146,0,0.10);
  --teal:         #066FA1;

  --text-1:       #0C1E18;
  --text-2:       #2A4E43;
  --text-3:       #678F82;

  --danger:       #D42B55;
  --danger-dim:   rgba(212,43,85,0.10);
  --warn:         #B87600;
  --warn-dim:     rgba(184,118,0,0.10);
  --success:      #009E8A;

  --chart-grid:   rgba(0,0,0,0.06);
  --chart-text:   #678F82;

  --scrollbar-thumb: #C8D8D3;
}

/* ── Smooth theme transitions ──────────────────────────────── */
*, *::before, *::after {
  transition:
    background-color 0.2s ease,
    border-color     0.2s ease,
    color            0.18s ease,
    box-shadow       0.2s ease;
}

/* Exempt transitions that should stay instant (inputs, hovers, charts) */
input, textarea, select,
canvas,
.progress-bar,
[style*="transition"] {
  transition: none !important;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
}

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

/* ── THEME TOGGLE ──────────────────────────────────────────── */
#theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s !important;
}
#theme-toggle:hover {
  background: var(--surface-3);
  color: var(--text-1);
  border-color: var(--border-hover);
  transform: rotate(20deg);
}
[data-theme="light"] #theme-toggle { color: var(--warn); }
[data-theme="dark"]  #theme-toggle { color: #A8C4B8; }

/* ══ SIDEBAR ══════════════════════════════════════════════════ */

#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface-0);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 20px; height: 20px; }

.logo-text { line-height: 1.1; }

.logo-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.logo-tag {
  font-size: 0.62rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.sidebar-section {
  padding: 20px 12px 0;
}

.sidebar-section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
  padding: 0 8px 8px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sidebar-nav a i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav a:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

.sidebar-nav a.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0,205,180,0.15);
}

.sidebar-nav a.active i {
  color: var(--cyan);
}

.sidebar-spacer { flex: 1; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sf-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan-glow));
  border: 1.5px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  font-family: var(--font-head);
  flex-shrink: 0;
}

.sf-name { font-size: 0.82rem; font-weight: 600; color: var(--text-1); }
.sf-sub  { font-size: 0.7rem; color: var(--text-3); }

.sf-year-badge {
  margin-left: auto;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

/* ══ MAIN CONTENT ══════════════════════════════════════════════ */

#main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ────────────────────────────────────────────────── */

.topbar {
  height: 58px;
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.82rem;
}

.topbar-breadcrumb .current {
  color: var(--text-1);
  font-weight: 600;
}

.topbar-spacer { flex: 1; }

.year-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
}

.year-select:focus { border-color: var(--cyan); }

/* ── PAGE ──────────────────────────────────────────────────── */

.page {
  padding: 28px;
  flex: 1;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.page-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
  line-height: 1.1;
}

.page-sub {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 4px;
}

.page-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ── FLASH MESSAGES ────────────────────────────────────────── */

.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.flash.success { background: rgba(0,205,180,0.08); border-color: rgba(0,205,180,0.2); color: var(--cyan); }
.flash.danger  { background: var(--danger-dim); border-color: rgba(255,77,109,0.25); color: var(--danger); }
.flash.warning { background: var(--warn-dim); border-color: rgba(255,186,73,0.25); color: var(--warn); }
.flash.info    { background: var(--cyan-dim); border-color: var(--border-hover); color: var(--cyan); }

.flash-close { margin-left: auto; cursor: pointer; opacity: 0.6; background: none; border: none; color: inherit; }

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

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header i { color: var(--cyan); font-size: 0.9rem; }

.card-body { padding: 20px; }
.card-body-flush { padding: 0; }

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

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.kpi.income::before  { background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.kpi.expense::before { background: linear-gradient(90deg, var(--danger), #FF8FA3); }
.kpi.net::before     { background: linear-gradient(90deg, var(--lime), var(--cyan)); }
.kpi.neutral::before { background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.kpi.over::before    { background: linear-gradient(90deg, var(--danger), var(--warn)); }

.kpi:hover { border-color: var(--border-hover); }

.kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 6px;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-3);
}

.kpi-sub .up   { color: var(--cyan); }
.kpi-sub .down { color: var(--danger); }

/* ══ GRID LAYOUTS ══════════════════════════════════════════ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-65-35 { display: grid; grid-template-columns: 65fr 35fr; gap: 20px; }
.grid-35-65 { display: grid; grid-template-columns: 35fr 65fr; gap: 20px; }

/* ══ TABLES ════════════════════════════════════════════════ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.data-table thead tr {
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
}

.data-table th.r { text-align: right; }

.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.data-table td.r { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.mono { font-family: monospace; font-size: 0.78rem; }

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover td { background: var(--surface-2); }

.data-table .cat-row td {
  background: var(--surface-2);
  color: var(--text-1);
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.8rem;
  padding: 8px 16px;
}

.data-table .total-row td {
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-1);
}

/* ══ BADGES ════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-cyan    { background: var(--cyan-dim);    color: var(--cyan);    border: 1px solid rgba(0,205,180,0.2); }
.badge-lime    { background: var(--lime-dim);    color: var(--lime);    border: 1px solid rgba(186,255,41,0.2); }
.badge-danger  { background: var(--danger-dim);  color: var(--danger);  border: 1px solid rgba(255,77,109,0.2); }
.badge-warn    { background: var(--warn-dim);    color: var(--warn);    border: 1px solid rgba(255,186,73,0.2); }
.badge-muted   { background: var(--surface-3);   color: var(--text-2);  border: 1px solid var(--border); }
.badge-success { background: var(--cyan-dim);    color: var(--cyan);    border: 1px solid rgba(0,205,180,0.2); }
.badge-count   { background: var(--surface-3); color: var(--text-3); border-radius: 6px; padding: 1px 6px; font-size: 0.7rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: #041210;
}
.btn-primary:hover { background: #00B89E; color: #041210; }

.btn-lime {
  background: var(--lime);
  color: #1A2800;
}
.btn-lime:hover { background: #A8E824; color: #1A2800; }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text-1); border-color: var(--border-hover); }

.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(255,77,109,0.2);
}
.btn-danger:hover { background: rgba(255,77,109,0.2); }

.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-xs { padding: 3px 9px; font-size: 0.72rem; border-radius: 6px; }
.btn-w100 { width: 100%; justify-content: center; }

/* ══ FORM CONTROLS ═════════════════════════════════════════ */

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.form-control, .form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.form-control::placeholder { color: var(--text-3); }

.form-text { font-size: 0.72rem; color: var(--text-3); margin-top: 4px; }

/* Inline budget inputs */
.budget-input {
  width: 90px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-1);
  padding: 5px 8px;
  font-size: 0.82rem;
  text-align: right;
  font-family: var(--font-body);
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s;
}

.budget-input:focus {
  border-color: var(--cyan);
  background: var(--surface-3);
}

/* ══ PROGRESS BARS ═════════════════════════════════════════ */

.progress {
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width 0.3s ease;
}

.progress-bar.over { background: linear-gradient(90deg, var(--warn), var(--danger)); }

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

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--text-3);
  margin-bottom: 12px;
}

.empty-state p { color: var(--text-3); font-size: 0.85rem; max-width: 320px; }

/* ══ CHIPS & TAGS ══════════════════════════════════════════ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-2);
}

/* ══ SECTION DIVIDER ═══════════════════════════════════════ */

.section-gap { margin-bottom: 24px; }
.section-gap-sm { margin-bottom: 16px; }

/* ══ DASHBOARD SPECIFIC ════════════════════════════════════ */

.recent-tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.recent-tx-item:last-child { border-bottom: none; }
.recent-tx-item:hover { background: var(--surface-2); }

.tx-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.tx-desc { flex: 1; min-width: 0; }
.tx-name { font-size: 0.83rem; font-weight: 500; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-meta { font-size: 0.71rem; color: var(--text-3); }
.tx-amount { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--danger); font-variant-numeric: tabular-nums; }
.tx-amount.credit { color: var(--cyan); }

/* ══ BUDGET TABLE ══════════════════════════════════════════ */

.budget-cat-header {
  background: var(--surface-2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.budget-cat-header:first-child { border-top: none; }

.budget-cat-name {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.budget-cat-icon { color: var(--cyan); font-size: 0.9rem; }
.budget-cat-total { margin-left: auto; font-size: 0.82rem; font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; }

/* ══ CONNECTION CARD ═══════════════════════════════════════ */

.connect-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.connect-status.connected {
  background: rgba(0,205,180,0.06);
  border-color: rgba(0,205,180,0.2);
  color: var(--cyan);
}

.connect-status.disconnected {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-3);
}

/* ══ INVESTMENT TABLE ══════════════════════════════════════ */

.inv-gain   { color: var(--cyan); }
.inv-loss   { color: var(--danger); }
.inv-neutral{ color: var(--text-2); }

/* ══ MORTGAGE CALC ═════════════════════════════════════════ */

.mortgage-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.mortgage-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); font-weight: 600; margin-bottom: 4px; }
.mortgage-stat-value { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--text-1); }

/* ══ ANALYTICS ═════════════════════════════════════════════ */

.merchant-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.merchant-bar:last-child { border-bottom: none; }
.merchant-name { flex: 1; font-size: 0.82rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merchant-track { flex: 2; height: 5px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.merchant-fill  { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--lime)); border-radius: 99px; }
.merchant-amount{ font-size: 0.8rem; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; min-width: 80px; text-align: right; }

/* ══ UPLOAD ZONE ═══════════════════════════════════════════ */

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.upload-zone i { font-size: 2rem; color: var(--text-3); display: block; margin-bottom: 10px; }
.upload-zone p { color: var(--text-3); font-size: 0.85rem; }
.upload-zone strong { color: var(--cyan); }

/* ══ UTILS ═════════════════════════════════════════════════ */

.text-cyan    { color: var(--cyan) !important; }
.text-lime    { color: var(--lime) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warn    { color: var(--warn) !important; }
.text-muted   { color: var(--text-3) !important; }
.text-2       { color: var(--text-2) !important; }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.fw-7         { font-weight: 700; }
.fw-6         { font-weight: 600; }
.mono         { font-variant-numeric: tabular-nums; }
.truncate     { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.row-gap { margin-bottom: 20px; }

/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 900px) {
  :root { --sidebar-w: 200px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-65-35 { grid-template-columns: 1fr; }
  .grid-35-65 { grid-template-columns: 1fr; }
}
