/* Solar Pro Suite V1.5 — premium dark admin theme
   Reference aesthetic: Linear / Vercel / Stripe dashboards. */
:root {
  --bg-primary: #0f172a;
  --bg-surface: #1e293b;
  --bg-elevated: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #06b6d4;
  --accent-hover: #0891b2;
  --border: #334155;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius-card: 8px;
  --radius-btn: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--accent-hover); }
h1 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 13px; font-weight: 600; margin: 0 0 8px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-primary); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; color: var(--accent); }
.mono { font-family: var(--font-mono); font-size: 13px; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px; min-width: 232px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand {
  padding: 18px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
  min-height: 57px;
}
.logo-slot { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: var(--bg-surface); flex-shrink: 0; overflow: hidden; }
.logo-slot img, .sidebar-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.brand-name { font-weight: 700; font-size: 14px; color: var(--text-primary); white-space: nowrap; letter-spacing: -0.01em; }

.sidebar-nav { display: flex; flex-direction: column; padding: 10px 8px; gap: 1px; overflow-y: auto; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-secondary); padding: 8px 10px;
  border-radius: 6px; font-weight: 500; font-size: 13px;
  border-left: 2px solid transparent;
  transition: background 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.sidebar-nav a:hover { background: var(--bg-surface); color: var(--text-primary); }
.sidebar-nav a.active {
  background: var(--bg-surface); color: var(--text-primary);
  border-left-color: var(--accent);
}
.nav-icon { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; }

.sidebar-user {
  border-top: 1px solid var(--border);
  padding: 12px; display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.avatar-sm { width: 26px; height: 26px; font-size: 12px; }
.sidebar-user-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sidebar-user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 57px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-size: 15px; font-weight: 700; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  background: none; border: none; color: var(--text-secondary); cursor: pointer;
  width: 32px; height: 32px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 150ms ease, color 150ms ease;
}
.icon-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }
.icon-btn svg { width: 17px; height: 17px; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  min-width: 200px; padding: 6px; display: flex; flex-direction: column;
}
.user-menu-header { padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.user-menu-header .name { font-weight: 600; font-size: 13px; }
.user-menu-header .org { font-size: 12px; color: var(--text-muted); }
.user-menu-panel a { padding: 7px 10px; border-radius: 6px; color: var(--text-secondary); font-size: 13px; }
.user-menu-panel a:hover { background: var(--bg-elevated); color: var(--text-primary); }

.org-switcher select { max-width: 170px; padding: 5px 8px; font-size: 12px; }
.role-badge {
  background: var(--bg-elevated); color: var(--text-secondary); border-radius: 999px;
  padding: 2px 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
}
.topbar-user { color: var(--text-secondary); font-size: 13px; }
.hamburger { display: none; }

.content { padding: 24px; max-width: 1160px; width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 16px;
}
.card-flat {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 12px 16px; margin-bottom: 16px;
}
.hidden { display: none !important; }
.empty { color: var(--text-muted); padding: 8px 0; font-size: 13px; }
.muted { color: var(--text-secondary); font-size: 13px; }
.pre-wrap { white-space: pre-wrap; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow);
  padding: 16px 18px;
  transition: border-color 150ms ease;
}
.stat-card:hover { border-color: var(--bg-elevated); }
.stat-label { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat-value { font-size: 26px; font-weight: 700; margin: 4px 0 2px; letter-spacing: -0.02em; }
.stat-sub { color: var(--text-muted); font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; }
.dashboard-grid .card { margin-bottom: 0; }

/* ---------- Activity ---------- */
.activity-feed { list-style: none; margin: 0; padding: 0; }
.activity-item {
  padding: 9px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-item a { color: var(--text-primary); }
.activity-item a:hover { color: var(--accent); }
.activity-time { color: var(--text-muted); font-size: 11px; white-space: nowrap; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); font-weight: 600;
  padding: 8px 12px; border-bottom: 1px solid var(--border);
}
.table td { padding: 10px 12px; border-bottom: 1px solid rgba(51, 65, 85, 0.5); font-size: 13px; }
.table tbody tr { transition: background 150ms ease; }
.table tbody tr:last-child td { border-bottom: none; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover, .table tbody tr:hover { background: var(--bg-elevated); }
.table-scroll { overflow-x: auto; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.row-actions form { margin: 0; }

/* ---------- Badges & indicators ---------- */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: capitalize;
}
.badge-hot { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-warm { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-cold { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.badge-open { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-in_progress { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-closed { background: var(--bg-elevated); color: var(--text-secondary); }
.badge-active { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-low { background: var(--bg-elevated); color: var(--text-secondary); }
.badge-medium { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.badge-high { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-urgent { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-neutral { background: var(--bg-elevated); color: var(--text-secondary); }

.priority-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: 1px;
}
.p-low { background: var(--text-muted); }
.p-medium { background: #3b82f6; }
.p-high { background: var(--warning); }
.p-urgent { background: var(--error); }
.new-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 6px; vertical-align: 1px;
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.6);
}
.badge-new { background: rgba(6, 182, 212, 0.15); color: var(--accent); margin-left: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 7px 14px; border-radius: var(--radius-btn);
  border: 1px solid transparent; font-weight: 600; font-size: 13px;
  cursor: pointer; font-family: inherit; line-height: 1.5;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-elevated); color: var(--text-primary); }
.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger:hover { background: #dc2626; }
.btn-danger-outline { background: transparent; color: #f87171; border-color: rgba(239, 68, 68, 0.35); }
.btn-danger-outline:hover { background: rgba(239, 68, 68, 0.1); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 14px; }
.btn-block { width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: 13px; color: var(--text-secondary); }
input, select, textarea {
  font-family: inherit; font-size: 14px; color: var(--text-primary);
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-primary);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}
input[type="color"] { padding: 3px; height: 38px; }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
select option { background: var(--bg-surface); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-wide { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.checkbox-label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--text-primary); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters input, .filters select { min-width: 130px; padding: 7px 10px; font-size: 13px; }

/* ---------- Detail pages ---------- */
.detail-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; align-items: start; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.dl dt { color: var(--text-muted); }
.dl dd { margin: 0; color: var(--text-primary); }

/* ---------- Conversation bubbles ---------- */
.chat-transcript { display: flex; flex-direction: column; gap: 12px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.msg { padding: 10px 14px; border-radius: 10px; max-width: 85%; }
.msg-visitor {
  background: var(--bg-elevated); color: var(--text-primary);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.msg-assistant {
  background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--text-primary);
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.msg-system { background: transparent; border: 1px dashed var(--border); align-self: center; font-size: 12px; color: var(--text-muted); }
.msg-role { font-size: 10px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.06em; margin-bottom: 3px; font-weight: 600; }
.msg-content { white-space: pre-wrap; font-size: 13.5px; }
.msg-time { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* ---------- AI suggestions ---------- */
.replies-loading { color: var(--text-muted); font-size: 13px; }
.reply-option {
  background: var(--bg-elevated); border-left: 2px solid var(--accent);
  border-radius: 8px; padding: 14px; margin-bottom: 10px;
}
.reply-text { white-space: pre-wrap; margin-bottom: 10px; font-size: 13.5px; }
.reply-actions { display: flex; gap: 8px; }
.resolution-box {
  white-space: pre-wrap; background: var(--bg-elevated);
  border-left: 2px solid var(--accent);
  border-radius: 8px; padding: 14px; margin-bottom: 12px; font-size: 13.5px;
}
.resolution-box:empty { display: none; }
.queued-card { border-color: rgba(6, 182, 212, 0.35); }
.queued-content { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px; padding: 12px; white-space: pre-wrap; }

/* ---------- Content engine ---------- */
.content-item { background: var(--bg-elevated); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.content-item-text { white-space: pre-wrap; margin-bottom: 10px; font-size: 13.5px; }
.spinner {
  display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite; vertical-align: -2px; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.history-item { border-bottom: 1px solid var(--border); padding: 9px 0; }
.history-item summary { cursor: pointer; font-weight: 500; font-size: 13px; color: var(--text-secondary); }
.history-item summary:hover { color: var(--text-primary); }
.history-json {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 6px;
  padding: 12px; overflow-x: auto; font-size: 12px; font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* ---------- Misc ---------- */
.code-block {
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--accent); padding: 14px 16px; border-radius: 8px;
  font-size: 12.5px; font-family: var(--font-mono); overflow-x: auto; margin: 8px 0;
}
.danger-zone { border-color: rgba(239, 68, 68, 0.35); }
.danger-zone h2 { color: #f87171; }

.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.alert-error { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-success { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }

/* ---------- Auth pages ---------- */
.auth-body {
  background: var(--bg-primary);
  background-image: radial-gradient(ellipse at top, rgba(6, 182, 212, 0.08), transparent 55%);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  font-family: var(--font-body);
  color: var(--text-primary);
}
.auth-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  padding: 32px; width: 100%; max-width: 400px;
}
.auth-brand { font-weight: 700; font-size: 16px; color: var(--text-primary); margin-bottom: 18px; }
.auth-card h1 { font-size: 19px; margin: 0 0 8px; }
.auth-sub { color: var(--text-secondary); margin: 0 0 16px; font-size: 13px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.auth-divider {
  text-align: center; color: var(--text-muted); font-size: 12px; margin: 16px 0;
  display: flex; align-items: center; gap: 12px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-links { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; font-size: 13px; flex-wrap: wrap; }

/* ---------- Trial banner & limit modal ---------- */
.trial-banner {
  background: rgba(6, 182, 212, 0.1);
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--text-primary);
  padding: 9px 24px; font-size: 13px;
}
.trial-banner strong { color: var(--accent); }
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  padding: 28px; max-width: 400px; width: 100%; text-align: center;
}

/* ---------- Marketplace ---------- */
.mp-slider { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--border); }
.mp-slide { display: none; position: relative; }
.mp-slide.on { display: block; }
.mp-slide img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.mp-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
  padding: 28px 20px 16px; font-weight: 700; font-size: 16px;
}
.mp-dots { position: absolute; bottom: 10px; right: 14px; display: flex; gap: 6px; }
.mp-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(241, 245, 249, 0.4); cursor: pointer; }
.mp-dot.on { background: var(--accent); }
.mp-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.mp-cat {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; text-align: center; font-weight: 600; font-size: 13px;
  transition: border-color 150ms ease; cursor: default;
}
.mp-cat:hover { border-color: rgba(6, 182, 212, 0.5); }
.mp-cat .emoji { font-size: 22px; display: block; margin-bottom: 6px; }
.mp-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mp-product {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column; transition: border-color 150ms ease;
}
.mp-product:hover { border-color: rgba(6, 182, 212, 0.5); }
.mp-product img { width: 100%; height: 150px; object-fit: cover; background: var(--bg-primary); }
.mp-product .mp-noimg { width: 100%; height: 150px; display: flex; align-items: center; justify-content: center; font-size: 34px; background: var(--bg-primary); }
.mp-product-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.mp-product h3 { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--text-primary); margin-bottom: 4px; }
.mp-product .desc { color: var(--text-secondary); font-size: 12.5px; flex: 1; margin-bottom: 10px; }
.mp-product .price { font-weight: 700; color: var(--accent); margin-bottom: 10px; font-size: 15px; }
.mp-product-actions { display: flex; gap: 8px; }
.editable-cell { cursor: pointer; border-bottom: 1px dashed var(--border); }
.editable-cell:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .mp-products { grid-template-columns: repeat(2, 1fr); }
  .mp-categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mp-products, .mp-categories { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* Icon-only sidebar */
  .sidebar { width: 60px; min-width: 60px; }
  .brand-name, .sidebar-user-info, .sidebar-nav a span { display: none; }
  .sidebar-nav a { justify-content: center; padding: 10px; }
  .sidebar-brand { justify-content: center; padding: 14px 8px; }
  .sidebar-user { justify-content: center; flex-direction: column; gap: 8px; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .topbar-user { display: none; }
  .org-switcher { display: none; }
}

/* ---------- Toasts ---------- */
.toast-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 500;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); color: var(--text-primary);
  border-radius: 8px; padding: 11px 16px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 320px;
  opacity: 0; transform: translateY(6px); transition: opacity 200ms ease, transform 200ms ease;
}
.toast.toast-in { opacity: 1; transform: translateY(0); }
.toast.toast-error { border-left-color: var(--error); }

/* ---------- Icon buttons in table cells (e.g. "Find Email") ---------- */
.cell-icon-btn {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 2px 4px; margin-left: 6px; border-radius: 4px; line-height: 1; font-size: 13px;
  vertical-align: middle;
}
.cell-icon-btn:hover { color: var(--accent); background: var(--bg-elevated); }
.cell-icon-btn[disabled] { opacity: 0.4; cursor: default; }
