/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Base */
  --bg:        #f4f5f7;
  --surface:   #ffffff;
  --surface2:  #f0f1f3;
  --surface3:  #e4e5e8;
  --border:    #e2e4e9;
  --border2:   #c8cbd2;

  /* Text */
  --text:      #111318;
  --text2:     #3d4352;
  --muted:     #7a8299;

  /* Accent — Indigo */
  --accent:    #4f46e5;
  --accent-2:  #6366f1;
  --accent-bg: rgba(79,70,229,.07);
  --accent-text: #3730a3;

  /* Status */
  --green:     #16a34a;
  --green-bg:  rgba(22,163,74,.09);
  --yellow:    #d97706;
  --yellow-bg: rgba(217,119,6,.09);
  --red:       #dc2626;
  --red-bg:    rgba(220,38,38,.09);
  --blue:      #2563eb;
  --blue-bg:   rgba(37,99,235,.09);

  /* Sizing */
  --radius:    8px;
  --radius-lg: 12px;
  --sidebar-w: 268px;
  --header-h:  52px;

  /* Typography */
  --font:      'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'JetBrains Mono', monospace;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 1px 4px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09), 0 8px 32px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.08);
}

/* ── BASE RESETS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; font-size: 13px; cursor: pointer; transition: all .15s; }
input, select, textarea { font-family: inherit; font-size: 13px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--text); color: #fff;
  padding: 8px 18px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600; z-index: 9999;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  white-space: nowrap; box-shadow: var(--shadow-md);
  letter-spacing: .01em;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
