/* Happy Matchbox — shared dark design system for CRM + Partner Hub */

:root {
  --bg: #0a0908;
  --bg-elevated: #121110;
  --surface: #16140f;
  --surface-2: #1c1a15;
  --surface-hover: #221f18;
  --border: #2a2620;
  --border-soft: #201d17;
  --text: #f3efe8;
  --text-dim: #b9b2a4;
  --text-faint: #7d766a;
  --accent: #e07a3f;
  --accent-strong: #f2924f;
  --accent-dim: #c96a35;
  --accent-wash: rgba(224, 122, 63, 0.14);
  --accent-wash-strong: rgba(224, 122, 63, 0.24);
  --success: #5fb489;
  --success-wash: rgba(95, 180, 137, 0.14);
  --warn: #e0b23f;
  --warn-wash: rgba(224, 178, 63, 0.14);
  --danger: #d9645a;
  --danger-wash: rgba(217, 100, 90, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 24px rgba(0,0,0,0.35);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#root { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: var(--surface);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ---------- Layout shells ---------- */
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.shell.no-sidebar { grid-template-columns: 1fr; }

.sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 22px;
}
.sidebar-brand .logo-mark { width: 26px; height: 26px; flex-shrink: 0; }
.sidebar-brand .brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.sidebar-brand .brand-sub { font-size: 11px; color: var(--text-faint); }

.nav-group { margin-bottom: 18px; }
.nav-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 0 10px 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-link svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.85; }
.nav-link:hover { background: var(--surface-hover); color: var(--text); }
.nav-link.active { background: var(--accent-wash); color: var(--accent-strong); }
.nav-link.active svg { opacity: 1; }
.nav-link .badge-count {
  margin-left: auto;
  font-size: 11px;
  background: var(--surface-2);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 1px 7px;
}
.nav-link.active .badge-count { background: var(--accent); color: #1a0f07; }

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.user-chip .who { flex: 1; }
.avatar {
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--accent-wash-strong);
  color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12.5px;
  flex-shrink: 0;
}
.user-chip .who { min-width: 0; }
.user-chip .who .name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .who .role { font-size: 11px; color: var(--text-faint); text-transform: capitalize; }

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border-soft);
  gap: 16px;
  flex-wrap: wrap;
}
.topbar h1 { font-size: 19px; }
.topbar .topbar-sub { color: var(--text-faint); font-size: 12.5px; margin-top: 2px; }
.content { padding: 28px 32px 60px; flex: 1; }
.content.narrow { max-width: 880px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-hover); border-color: var(--text-faint); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a0f07;
}
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-hover); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-danger { color: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; justify-content: center; }

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

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
}
.stat-card .stat-label { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card .stat-value { font-size: 30px; font-weight: 700; margin-top: 10px; letter-spacing: -0.02em; }
.stat-card .stat-delta { font-size: 12px; color: var(--success); margin-top: 6px; }
.stat-card .stat-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-wash);
  color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.stat-card .stat-icon svg { width: 17px; height: 17px; }

/* folder-card grid (Knowledge Base pattern) */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.folder-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
  position: relative;
}
.folder-card:hover { border-color: var(--accent-dim); background: var(--surface-2); transform: translateY(-1px); }
.folder-card .folder-icon-stack {
  width: 62px; height: 50px;
  border-radius: 10px;
  background: linear-gradient(155deg, #2a2620, #1c1a15);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.folder-card .folder-icon-stack svg { width: 26px; height: 26px; }
.folder-card .folder-name { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.folder-card .folder-meta { font-size: 12px; color: var(--text-faint); }
.folder-card .integration-badges { position: absolute; top: 16px; right: 16px; display: flex; gap: 4px; }
.integration-badge {
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: var(--text-dim);
}

/* Table */
.table-wrap { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data-table { min-width: 480px; }
table.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 600;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}
.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { cursor: pointer; transition: background 0.12s ease; }
.data-table tbody tr:hover { background: var(--surface-2); }
.row-title { font-weight: 600; }
.row-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: capitalize;
}
.badge-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-success { background: var(--success-wash); color: var(--success); }
.badge-warn { background: var(--warn-wash); color: var(--warn); }
.badge-danger { background: var(--danger-wash); color: var(--danger); }
.badge-neutral { background: var(--surface-2); color: var(--text-dim); }
.badge-accent { background: var(--accent-wash); color: var(--accent-strong); }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.helper-text { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

/* States */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
}
.empty-state .empty-icon { width: 40px; height: 40px; margin: 0 auto 14px; opacity: 0.5; }
.empty-state h3 { color: var(--text-dim); font-size: 15px; margin-bottom: 6px; }
.error-banner {
  background: var(--danger-wash);
  border: 1px solid rgba(217,100,90,0.35);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.spinner {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center-spinner { display: flex; align-items: center; justify-content: center; padding: 60px 0; }

/* Auth screens */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 0%, rgba(224,122,63,0.08), transparent 60%), var(--bg);
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 26px; }
.auth-logo .logo-mark { width: 30px; height: 30px; }
.auth-logo .brand-name { font-size: 16px; font-weight: 700; }
.auth-card h2 { font-size: 19px; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--text-faint); font-size: 13px; margin-bottom: 24px; }
.divider-row { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--text-faint); font-size: 12px; }
.divider-row::before, .divider-row::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-success { text-align: center; padding: 8px 0; }
.auth-success .check-circle {
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--success-wash); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

/* AI command bar view */
.ai-shell { display: flex; flex-direction: column; min-height: calc(100vh - 0px); }
.ai-command-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.ai-command-bar input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--text);
  padding: 0;
}
.ai-command-bar input:focus { border: none; background: transparent; }
.ai-command-bar input::placeholder { color: var(--text-faint); font-style: italic; }
.ai-send-btn {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--accent);
  color: #1a0f07;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; flex-shrink: 0;
}
.ai-suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 12px; margin-bottom: 26px; }
.ai-suggestion-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-dim);
}
.ai-suggestion-card:hover { border-color: var(--accent-dim); color: var(--text); }
.ai-suggestion-card .future-tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px; display: block; }
.ai-answer-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  flex: 1;
}
.ai-answer-panel .ai-q { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.ai-answer-panel .ai-a { font-size: 15px; line-height: 1.7; color: var(--text-dim); }
.ai-answer-panel .ai-a strong { color: var(--text); }

/* Inbox / email */
.inbox-layout { display: grid; grid-template-columns: 260px 320px 1fr; gap: 0; height: calc(100vh - 65px); }
.inbox-col { border-right: 1px solid var(--border-soft); overflow-y: auto; }
.inbox-col:last-child { border-right: none; }
.account-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
}
.account-item:hover { background: var(--surface-2); }
.account-item.active { background: var(--accent-wash); }
.provider-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.provider-icon.google { background: #2b2a1f; color: #eab34a; }
.provider-icon.microsoft { background: #1f2733; color: #6aa6e8; }
.provider-icon.imap { background: #241f2c; color: #b992e8; }
.account-item .acct-info { min-width: 0; flex: 1; }
.account-item .acct-email { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-item .acct-status { font-size: 11px; color: var(--text-faint); }
.unread-pill { background: var(--accent); color: #1a0f07; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; min-width: 18px; text-align: center; }

.thread-item { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); cursor: pointer; }
.thread-item:hover { background: var(--surface-2); }
.thread-item.active { background: var(--accent-wash); }
.thread-item .thread-subject { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.thread-item .thread-preview { font-size: 12px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-item .thread-time { font-size: 11px; color: var(--text-faint); margin-top: 4px; }

.message-bubble { max-width: 640px; margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border-soft); }
.message-bubble.outbound { margin-left: auto; background: var(--accent-wash); border-color: rgba(224,122,63,0.3); }
.message-bubble .msg-meta { font-size: 11.5px; color: var(--text-faint); margin-bottom: 6px; }
.message-bubble .msg-body { font-size: 13.5px; white-space: pre-wrap; }

/* Modal (compose) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 560px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-soft);
}
.modal-header h3 { font-size: 15px; }
.modal-body { padding: 20px; }
.modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-top: 1px solid var(--border-soft);
}
.icon-btn {
  width: 30px; height: 30px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: none; color: var(--text-dim); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
.compose-to-line { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); margin-bottom: 12px; }
.compose-to-line label { font-size: 12.5px; color: var(--text-faint); width: 40px; }
.compose-to-line input { border: none; background: transparent; flex: 1; padding: 4px; }
.compose-body-input { border: none; background: transparent; width: 100%; min-height: 160px; resize: vertical; padding: 0; font-size: 13.5px; }
.compose-toolbar { display: flex; gap: 8px; padding-top: 10px; }

/* Kanban */
.kanban-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.kanban-col { background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 14px; min-height: 200px; }
.kanban-col-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); margin-bottom: 12px; display: flex; justify-content: space-between; }
.kanban-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; cursor: pointer; }
.kanban-card:hover { border-color: var(--accent-dim); }
.kanban-card .k-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.kanban-card .k-meta { display: flex; justify-content: space-between; align-items: center; }

/* Timeline (Partner journey) */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -32px; top: 2px;
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.timeline-item.past .timeline-dot { background: var(--success); box-shadow: 0 0 0 2px rgba(95,180,137,0.4); }
.timeline-item.future .timeline-dot { background: var(--surface-2); box-shadow: 0 0 0 2px var(--border); }
.timeline-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 18px 20px; }
.timeline-card .t-date { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.timeline-card h3 { font-size: 15px; margin-bottom: 8px; }
.timeline-card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }

/* Comments */
.comment-list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.comment-item { display: flex; gap: 10px; }
.comment-item .comment-body-wrap { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; flex: 1; }
.comment-item .comment-author { font-size: 12.5px; font-weight: 600; margin-bottom: 3px; }
.comment-item .comment-text { font-size: 13px; color: var(--text-dim); }
.comment-item .comment-time { font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.comment-input-row { display: flex; gap: 10px; margin-top: 14px; }
.comment-input-row textarea { flex: 1; min-height: 42px; resize: vertical; }

/* Tabs / breadcrumb */
.tab-row { display: flex; gap: 4px; border-bottom: 1px solid var(--border-soft); margin-bottom: 22px; }
.tab-item { padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-faint); cursor: pointer; border-bottom: 2px solid transparent; }
.tab-item.active { color: var(--text); border-bottom-color: var(--accent); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-faint); margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: 0.5; }

/* Mobile drawer */
.mobile-topbar { display: none; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); background: var(--bg-elevated); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 90; }
.drawer-panel { position: fixed; top: 0; left: 0; bottom: 0; width: 260px; background: var(--bg-elevated); z-index: 91; padding: 20px 14px; overflow-y: auto; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-topbar { display: flex; }
  .content { padding: 20px 16px 50px; }
  .topbar { padding: 14px 16px; }
  .inbox-layout { grid-template-columns: 1fr; height: auto; }
  .kanban-board { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

.link-btn { background: none; border: none; color: var(--accent-strong); cursor: pointer; font-size: 13px; font-weight: 600; padding: 0; }
.text-faint { color: var(--text-faint); }
.text-dim { color: var(--text-dim); }
.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}
.flex-row{display:flex;align-items:center;gap:10px}
.flex-between{display:flex;align-items:center;justify-content:space-between}
.section-title{font-size:15px;font-weight:700;margin-bottom:16px}
.pill-tab-row{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}
.pill-tab{padding:7px 14px;border-radius:999px;font-size:12.5px;font-weight:600;background:var(--surface-2);color:var(--text-dim);cursor:pointer;border:1px solid var(--border-soft)}
.pill-tab.active{background:var(--accent-wash);color:var(--accent-strong);border-color:rgba(224,122,63,0.35)}
