:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  --nav-height: 56px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
  z-index: 100;
  box-shadow: var(--shadow);
}

nav .logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.3px;
}

nav .logo span { color: var(--primary); }

nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover, nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

/* ---- Layout ---- */
.page { padding-top: var(--nav-height); min-height: 100vh; }

.page-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-header h1 { font-size: 18px; font-weight: 600; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, opacity 0.15s;
}

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

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

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

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 4px 8px;
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-gray { background: #f1f5f9; color: var(--text-muted); }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- Forms ---- */
input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 13px; }

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

/* ---- Library layout ---- */
.library-layout {
  display: flex;
  height: calc(100vh - var(--nav-height) - 57px);
}

.sidebar {
  width: 240px;
  min-width: 200px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  overflow-y: auto;
  padding: 12px 0;
  flex-shrink: 0;
}

.sidebar-title {
  padding: 4px 16px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.folder-tree { list-style: none; }

.folder-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.1s;
  user-select: none;
  font-size: 13px;
  color: var(--text);
}

.folder-item:hover { background: var(--bg); }
.folder-item.selected { background: var(--primary-light); color: var(--primary); font-weight: 500; }

.folder-item .toggle {
  width: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 10px;
  flex-shrink: 0;
}

.folder-item .icon { flex-shrink: 0; }
.folder-item .label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-item .count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 999px;
  padding: 0 6px;
  flex-shrink: 0;
}

.folder-children { padding-left: 16px; }

.doc-panel {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.doc-card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }

.doc-card .doc-icon { font-size: 28px; margin-bottom: 10px; }
.doc-card .doc-name {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.doc-card .doc-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }

/* ---- Sync bar ---- */
.sync-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sync-label { font-size: 12px; color: var(--text-muted); }
.sync-label.stale { color: var(--amber); font-weight: 500; }

/* ---- Empty state ---- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
  gap: 8px;
}
.empty .empty-icon { font-size: 40px; }
.empty p { font-size: 13px; }

/* ---- Document detail ---- */
.detail-layout {
  display: flex;
  height: calc(100vh - var(--nav-height));
}

.preview-panel {
  flex: 1;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.preview-panel iframe {
  flex: 1;
  border: none;
  width: 100%;
}

.analysis-panel {
  width: 380px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.analysis-panel-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analysis-panel-header h2 { font-size: 14px; font-weight: 600; }

.analysis-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.analysis-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }

.analysis-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.analysis-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  background: var(--bg);
  gap: 8px;
}

.analysis-item-header:hover { background: #f1f5f9; }

.analysis-item-body {
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface);
  display: none;
}

.analysis-item-body.open { display: block; }

/* ---- Task board ---- */
.board {
  display: flex;
  gap: 16px;
  padding: 20px;
  overflow-x: auto;
  align-items: flex-start;
  min-height: calc(100vh - var(--nav-height) - 57px);
}

.board-col {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
}

.board-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.board-col-title {
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-col-count {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.task-cards { display: flex; flex-direction: column; gap: 10px; }

.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.task-card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }

.task-card .task-title { font-weight: 500; font-size: 13px; margin-bottom: 6px; line-height: 1.4; }
.task-card .task-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; }
.task-card .task-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.task-card .task-doc { font-size: 11px; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.task-card .task-due { font-size: 11px; color: var(--text-muted); }
.task-card .task-due.overdue { color: var(--red); }
.task-card .task-due.soon { color: var(--amber); }

.task-status-select {
  width: auto;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
}

/* ---- Snaps ---- */
.snaps-layout {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.snap-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.snap-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.snap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.snap-card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }

.snap-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.snap-card-title { font-weight: 500; font-size: 13px; line-height: 1.4; }

.snap-card-instructions {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.snap-card-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Snap detail modal */
.snap-detail-modal {
  max-width: min(680px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  gap: 0;
}

.snap-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.snap-detail-body {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.snap-instructions-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.snap-content {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 13px;
  line-height: 1.7;
}

.snap-meta {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.snap-detail-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

/* ---- Tags ---- */
.tag-filter-bar {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

#tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  user-select: none;
}

.tag-chip:hover { border-color: #94a3b8; color: var(--text); }
.tag-chip.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.task-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }

.task-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.task-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 9px;
  line-height: 1;
  color: inherit;
  opacity: 0;
  transition: opacity 0.1s;
}

.task-tag:hover .task-tag-remove { opacity: 0.6; }
.task-tag-remove:hover { opacity: 1 !important; }

/* Bulk bar */
.bulk-bar {
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  border-bottom: 1px solid #bfdbfe;
  font-size: 13px;
  flex-wrap: wrap;
}

.bulk-bar .bulk-count { font-weight: 600; color: var(--primary); flex-shrink: 0; }

.bulk-bar input {
  width: 220px;
  font-size: 12px;
  padding: 5px 10px;
}

/* Task card selection */
.task-card-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.task-checkbox {
  width: auto;
  cursor: pointer;
  accent-color: var(--primary);
}

.task-card.selected { border-color: var(--primary); background: var(--primary-light); }

/* Tag input widget (in modal) */
.tag-input-area {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 8px;
  min-height: 36px;
  cursor: text;
  background: var(--surface);
  transition: border-color 0.15s;
}

.tag-input-area:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tag-input-area input {
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  width: auto;
  min-width: 120px;
  flex: 1;
  background: transparent;
  font-size: 13px;
}

.tag-removable {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

.tag-removable button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 10px;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
}

.tag-removable button:hover { opacity: 1; }

/* ---- Templates ---- */
.templates-layout {
  display: flex;
  height: calc(100vh - var(--nav-height) - 57px);
}

.template-list {
  width: 280px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.template-row {
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-row:hover { background: var(--bg); }
.template-row.selected { background: var(--primary-light); }
.template-row .template-name { font-size: 13px; font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-row .lock { color: var(--text-muted); font-size: 12px; }

.template-detail {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.template-detail h2 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.template-detail .template-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }

.section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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

.version-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.1s;
}

.version-row:hover { border-color: #94a3b8; }
.version-row.active-version { border-color: var(--primary); background: var(--primary-light); }

.version-row .version-meta { flex: 1; min-width: 0; }
.version-row .version-num { font-size: 12px; font-weight: 600; }
.version-row .version-date { font-size: 11px; color: var(--text-muted); }
.version-row .version-preview {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 400px;
}

.prompt-editor textarea {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 12px;
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal {
  background: var(--surface);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 480px;
  padding: 24px;
}

.modal h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.task-detail-modal {
  max-width: min(600px, 92vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
}

.task-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.task-detail-header h3 { font-size: 16px; font-weight: 600; margin: 0; line-height: 1.4; }

.task-detail-body { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }

.td-section:empty { display: none; }

.td-meta { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }

.td-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: 4px;
}

.analysis-modal {
  max-width: min(860px, 92vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
}

.analysis-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.analysis-modal-body {
  overflow-y: auto;
  flex: 1;
  font-size: 13px;
  line-height: 1.7;
}

.json-view {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.6;
}

.json-row-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.json-children {
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.json-row.json-collapsed > .json-children { display: none; }

.json-empty { color: var(--text-muted); font-style: italic; }

.json-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: 12px;
  padding: 0;
  font-size: 10px;
  line-height: 1.6;
  flex-shrink: 0;
}

.json-key    { color: #0f766e; }
.json-index  { color: #94a3b8; }
.json-colon  { color: var(--text-muted); }
.json-summary { color: var(--text-muted); font-style: italic; font-size: 11px; }

.json-value  { word-break: break-word; overflow-wrap: anywhere; }
.json-string { color: #16a34a; white-space: pre-wrap; }
.json-number { color: #2563eb; }
.json-bool   { color: #9333ea; }
.json-null   { color: #94a3b8; }

.json-string-block {
  margin-top: 2px;
  max-width: 100%;
}

.json-string-text {
  color: #16a34a;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 4.8em;
  overflow: hidden;
  position: relative;
}

.json-string-block:not(.expanded) .json-string-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.6em;
  background: linear-gradient(to bottom, transparent, var(--surface));
}

.json-string-block.expanded .json-string-text {
  max-height: none;
}

.json-string-toggle {
  margin-top: 4px;
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  color: var(--blue, #2563eb);
  cursor: pointer;
}

.json-string-toggle:hover { text-decoration: underline; }

/* ---- Spinner ---- */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ---- Toast ---- */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
}

.toast {
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  box-shadow: var(--shadow-md);
  animation: slide-in 0.2s ease;
}

.toast.error { background: var(--red); }
.toast.success { background: var(--green); }

@keyframes slide-in {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
