/* LinqCRM styles (from the April build) */
:root {
  --bg: #f4f6fa;
  --bg2: #ffffff;
  --bg3: #eef1f7;
  --bg4: #e4e8f2;
  --border: rgba(0,0,0,0.07);
  --border2: rgba(0,0,0,0.13);
  --text: #0f1923;
  --text2: #4a5568;
  --text3: #94a3b8;
  --linq-blue: #1565c0;
  --linq-blue2: #1976d2;
  --linq-blue-lt: #e3f0ff;
  --linq-blue-mid: #bbdefb;
  --linq-orange: #f57c00;
  --linq-orange2: #fb8c00;
  --linq-orange-lt: #fff3e0;
  --linq-green: #2e7d32;
  --linq-green2: #43a047;
  --linq-green-lt: #e8f5e9;
  --linq-teal: #0097a7;
  --linq-teal-lt: #e0f7fa;
  --red: #c62828;
  --red-lt: #ffebee;
  --amber: #f57c00;
  --amber-lt: #fff3e0;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; overflow: hidden; height: 100vh; }

/* Layout */
.app { display: flex; height: 100vh; position: relative; }
.sidebar { width: 56px; min-width: 56px; flex-shrink: 0; position: relative; z-index: 50; }
.sidebar-inner {
  position: absolute; top: 0; left: 0; bottom: 0; width: 56px;
  background: #1a1f2e;
  display: flex; flex-direction: column; overflow: hidden;
  transition: width 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s;
  z-index: 50;
}
.sidebar-inner:hover { width: 240px; box-shadow: 6px 0 32px rgba(0,0,0,0.35); }
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* Logo area */
.logo-area {
  padding: 14px 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; gap: 10px;
  min-height: 64px; overflow: hidden; white-space: nowrap; flex-shrink: 0;
}
.logo-img {
  width: 36px; height: 36px; min-width: 36px;
  object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}
.logo-text {
  font-size: 21px; font-weight: 800; letter-spacing: -0.5px; color: #fff; line-height: 1;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.2s 0.06s, transform 0.2s 0.06s;
  white-space: nowrap; overflow: hidden;
}
.logo-text span { color: var(--linq-orange); }
.sidebar-inner:hover .logo-text { opacity: 1; transform: translateX(0); }

/* Nav sections */
.nav-section {
  padding: 16px 0 4px 16px; font-size: 9px; color: rgba(255,255,255,0.3);
  letter-spacing: 1.6px; text-transform: uppercase; font-family: var(--mono);
  white-space: nowrap; overflow: hidden;
  max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0;
  transition: max-height 0.2s, opacity 0.2s, padding 0.2s;
}
.sidebar-inner:hover .nav-section { max-height: 40px; opacity: 1; padding: 16px 0 4px 16px; }

/* Nav items */
.nav-item {
  display: flex; align-items: center;
  padding: 11px 0; margin: 2px 6px;
  border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: background 0.15s, color 0.15s;
  position: relative; overflow: hidden; white-space: nowrap;
  gap: 0;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.nav-item.active { background: linear-gradient(135deg, #6c3fc5 0%, #8b5cf6 100%); color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(108,63,197,0.45); }
.nav-item.active:hover { background: linear-gradient(135deg, #7c4fd5 0%, #9b6fff 100%); }

.nav-icon {
  width: 56px; min-width: 56px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-icon svg { width: 18px; height: 18px; }

.nav-label {
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.18s 0.07s, transform 0.18s 0.07s;
  overflow: hidden; white-space: nowrap; flex: 1;
}
.sidebar-inner:hover .nav-label { opacity: 1; transform: translateX(0); }

.nav-badge {
  margin-right: 10px; margin-left: auto;
  font-size: 10px; font-family: var(--mono); font-weight: 700;
  padding: 2px 6px; border-radius: 10px; flex-shrink: 0;
  opacity: 0; transition: opacity 0.18s;
}
.nav-badge.orange { background: var(--linq-orange); color: #fff; }
.nav-badge.blue { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.nav-badge.red { background: #ef5350; color: #fff; }
.sidebar-inner:hover .nav-badge { opacity: 1; }

/* Tooltip when collapsed */
.nav-item[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 62px; top: 50%; transform: translateY(-50%);
  background: #1a1f2e; border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-size: 12px; font-weight: 500;
  padding: 5px 11px; border-radius: 7px;
  white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity 0.15s; z-index: 200;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.3);
}
.sidebar-inner:not(:hover) .nav-item[data-tip]:hover::after { opacity: 1; }

/* Divider line between sections */
.nav-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 6px 12px; }

/* Footer */
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.07); padding: 8px 0; flex-shrink: 0; }
.sidebar-footer .nav-item { color: rgba(255,255,255,0.4); }
.sidebar-footer .nav-item:hover { color: rgba(255,255,255,0.7); }

/* Topbar */
.topbar { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); }
.page-title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; color: var(--linq-blue); }
.breadcrumb { font-size: 11px; color: var(--text3); font-family: var(--mono); margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; width: 230px; }
.search-box input { background: none; border: none; outline: none; color: var(--text); font-size: 12px; font-family: var(--font); width: 100%; }
.search-box input::placeholder { color: var(--text3); }
.search-icon { color: var(--text3); font-size: 13px; }
.btn { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border2); background: var(--bg2); color: var(--text2); font-size: 12px; font-family: var(--font); cursor: pointer; transition: all 0.15s; font-weight: 500; }
.btn:hover { background: var(--bg3); }
.btn-primary { background: var(--linq-blue); color: #fff; border-color: var(--linq-blue); font-weight: 600; }
.btn-primary:hover { background: var(--linq-blue2); border-color: var(--linq-blue2); }
.btn-orange { background: var(--linq-orange); color: #fff; border-color: var(--linq-orange); font-weight: 600; }
.btn-orange:hover { background: var(--linq-orange2); }
.btn-green { background: var(--linq-green); color: #fff; border-color: var(--linq-green); font-weight: 600; }
.btn-green:hover { background: var(--linq-green2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text3); }
.btn-ghost:hover { background: var(--bg3); color: var(--text2); border-color: var(--border); }

/* Content */
.page { display: none; flex-direction: column; height: 100%; overflow: hidden; }
.page.active { display: flex; }
.page-content { flex: 1; overflow-y: auto; padding: 22px 24px; }
.page-content::-webkit-scrollbar { width: 5px; }
.page-content::-webkit-scrollbar-track { background: transparent; }
.page-content::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* Metric cards */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.metric-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.metric-accent-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.metric-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; font-family: var(--mono); margin-bottom: 8px; }
.metric-value { font-size: 30px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; margin-bottom: 6px; }
.metric-trend { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.trend-up { color: var(--linq-green); font-weight: 600; }
.trend-dn { color: var(--red); font-weight: 600; }

/* Cards */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--bg2); }
.card-title { font-size: 13px; font-weight: 700; letter-spacing: -0.2px; color: var(--linq-blue); }
.card-sub { font-size: 10px; color: var(--text3); font-family: var(--mono); margin-top: 2px; }
.card-body { padding: 16px 18px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 20px; font-size: 10px; font-weight: 600; font-family: var(--mono); letter-spacing: 0.3px; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-hot { background: var(--red-lt); color: var(--red); }
.badge-warm { background: var(--amber-lt); color: var(--linq-orange); }
.badge-cold { background: var(--linq-blue-lt); color: var(--linq-blue); }
.badge-active { background: var(--linq-green-lt); color: var(--linq-green); }
.badge-new { background: var(--linq-teal-lt); color: var(--linq-teal); }

/* Contacts */
.contact-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-chip { padding: 5px 13px; border-radius: 20px; border: 1px solid var(--border2); background: var(--bg2); font-size: 12px; color: var(--text2); cursor: pointer; transition: all 0.15s; font-family: var(--mono); font-weight: 500; }
.filter-chip:hover { border-color: var(--linq-blue); color: var(--linq-blue); }
.filter-chip.active { background: var(--linq-blue); border-color: var(--linq-blue); color: #fff; }

.contacts-list { display: flex; flex-direction: column; }
.contact-row { display: grid; grid-template-columns: 2.5fr 2fr 1.2fr 1fr 1.5fr 110px; align-items: center; padding: 11px 16px; cursor: pointer; transition: background 0.1s; gap: 8px; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { background: var(--bg3); }
.contact-header { display: grid; grid-template-columns: 2.5fr 2fr 1.2fr 1fr 1.5fr 110px; padding: 8px 16px; gap: 8px; background: var(--bg3); border-bottom: 1px solid var(--border); }
.col-header { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.8px; font-family: var(--mono); font-weight: 600; }
.contact-info { display: flex; align-items: center; gap: 10px; }
.c-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.c-name { font-size: 13px; font-weight: 600; color: var(--text); }
.c-phone { font-size: 10px; color: var(--text3); font-family: var(--mono); }
.c-email { font-size: 12px; color: var(--text2); }
.c-policy { font-size: 11px; color: var(--text3); font-family: var(--mono); }
.score-bar { display: flex; align-items: center; gap: 8px; }
.score-track { height: 5px; flex: 1; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 3px; }
.score-num { font-size: 11px; font-family: var(--mono); font-weight: 600; min-width: 24px; }
.row-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.contact-row:hover .row-actions { opacity: 1; }
.icon-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text2); transition: all 0.15s; }
.icon-btn:hover { background: var(--linq-blue-lt); border-color: var(--linq-blue); color: var(--linq-blue); }
.icon-btn.call:hover { background: var(--linq-green-lt); border-color: var(--linq-green); color: var(--linq-green); }
.icon-btn.ai:hover { background: var(--linq-orange-lt); border-color: var(--linq-orange); color: var(--linq-orange); }

/* Pipeline */
.pipeline-cols { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.pipeline-cols::-webkit-scrollbar { height: 5px; }
.pipeline-cols::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
.pipe-col { min-width: 200px; width: 200px; flex-shrink: 0; }
.pipe-header { padding: 10px 12px; border-radius: var(--radius) var(--radius) 0 0; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pipe-count { font-size: 10px; font-family: var(--mono); padding: 2px 7px; border-radius: 10px; font-weight: 700; }
.pipe-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 6px; cursor: pointer; transition: all 0.15s; box-shadow: var(--shadow); }
.pipe-card:hover { border-color: var(--linq-blue); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.pipe-card-name { font-size: 12px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.pipe-card-meta { font-size: 10px; color: var(--text3); font-family: var(--mono); margin-bottom: 8px; }
.pipe-card-footer { display: flex; align-items: center; justify-content: space-between; }
.pipe-value { font-size: 11px; color: var(--linq-green); font-family: var(--mono); font-weight: 700; }
.pipe-days { font-size: 10px; color: var(--text3); font-family: var(--mono); }

/* Call panel */
.call-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.call-avatar-lg { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin: 0 auto 12px; background: var(--linq-blue-lt); color: var(--linq-blue); border: 3px solid var(--linq-blue-mid); }
.call-name-lg { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 4px; }
.call-status { font-size: 12px; color: var(--text3); font-family: var(--mono); }
.call-status.live { color: var(--linq-green); font-weight: 600; }
.call-timer { font-size: 30px; font-family: var(--mono); font-weight: 700; color: var(--linq-blue); margin: 14px 0; text-align: center; letter-spacing: 3px; }
.call-controls { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.call-btn { width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.15s; font-family: var(--font); }
.call-btn-green { background: var(--linq-green); color: #fff; }
.call-btn-green:hover { background: var(--linq-green2); transform: scale(1.05); }
.call-btn-red { background: var(--red); color: #fff; }
.call-btn-red:hover { background: #b71c1c; transform: scale(1.05); }
.call-btn-mute { background: var(--bg3); color: var(--text2); border: 1px solid var(--border2); }
.call-btn-mute:hover { background: var(--bg4); }
.call-notes { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-top: 14px; }
.call-notes-label { font-size: 10px; color: var(--text3); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; font-weight: 600; }
.call-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background 0.1s; }
.call-row:hover { background: var(--bg3); }
.call-type { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; font-weight: 700; }
.call-in { background: var(--linq-green-lt); color: var(--linq-green); }
.call-out { background: var(--linq-blue-lt); color: var(--linq-blue); }
.call-missed { background: var(--red-lt); color: var(--red); }
.call-contact-name { font-size: 12px; font-weight: 600; }
.call-meta { font-size: 10px; color: var(--text3); font-family: var(--mono); }
.call-duration { font-size: 11px; color: var(--text3); font-family: var(--mono); margin-left: auto; }

/* AI panel */
.ai-messages { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.ai-messages::-webkit-scrollbar { width: 3px; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--border2); }
.ai-msg { display: flex; gap: 10px; align-items: flex-start; }
.ai-msg.agent { flex-direction: row-reverse; }
.ai-avatar-sm { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.ai-av-ai { background: var(--linq-orange-lt); color: var(--linq-orange); border: 1.5px solid rgba(245,124,0,0.3); }
.ai-av-agent { background: var(--linq-blue-lt); color: var(--linq-blue); border: 1.5px solid rgba(21,101,192,0.2); }
.ai-bubble { max-width: 82%; padding: 10px 13px; border-radius: 11px; font-size: 12px; line-height: 1.6; color: var(--text); background: var(--bg3); border: 1px solid var(--border); }
.ai-msg.agent .ai-bubble { background: var(--linq-blue-lt); border-color: var(--linq-blue-mid); }
.ai-draft { background: #fff8f0; border: 1.5px solid rgba(245,124,0,0.25); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.ai-draft-label { font-size: 10px; color: var(--linq-orange); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.ai-draft-text { font-size: 12px; color: var(--text); line-height: 1.65; margin-bottom: 12px; }
.ai-draft-actions { display: flex; gap: 6px; }
.ai-input-area { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: var(--bg2); }
.ai-input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); font-size: 12px; font-family: var(--font); outline: none; resize: none; }
.ai-input:focus { border-color: var(--linq-blue); }

/* Agents */
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.agent-card-full { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.agent-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.agent-av-lg { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.agent-title { font-size: 14px; font-weight: 700; color: var(--text); }
.agent-email { font-size: 11px; color: var(--text3); font-family: var(--mono); }
.agent-plan { display: inline-flex; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-family: var(--mono); font-weight: 700; margin-top: 3px; }
.plan-pro { background: var(--linq-blue-lt); color: var(--linq-blue); }
.plan-basic { background: var(--linq-green-lt); color: var(--linq-green); }
.plan-admin { background: var(--linq-orange-lt); color: var(--linq-orange); }
.agent-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.agent-stat { background: var(--bg3); border-radius: 8px; padding: 8px 10px; text-align: center; }
.agent-stat-val { font-size: 17px; font-weight: 700; font-family: var(--mono); }
.agent-stat-lab { font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 2px; font-weight: 600; }
.agent-actions { display: flex; gap: 6px; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.settings-title { font-size: 13px; font-weight: 700; margin-bottom: 14px; color: var(--linq-blue); }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.settings-row:last-of-type { border-bottom: none; }
.settings-label { font-size: 12px; color: var(--text2); }
.settings-val { font-size: 12px; color: var(--text); font-family: var(--mono); font-weight: 500; }
.toggle { width: 38px; height: 21px; background: var(--bg4); border-radius: 11px; position: relative; cursor: pointer; border: 1.5px solid var(--border2); transition: background 0.2s; flex-shrink: 0; }
.toggle.on { background: var(--linq-green); border-color: var(--linq-green); }
.toggle::after { content: ''; width: 15px; height: 15px; border-radius: 50%; background: #fff; position: absolute; top: 1px; left: 1px; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle.on::after { transform: translateX(17px); }
.integration-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg3); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 8px; }
.int-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.int-name { font-size: 13px; font-weight: 600; color: var(--text); }
.int-status { font-size: 10px; color: var(--text3); font-family: var(--mono); margin-top: 1px; }
.int-connected { color: var(--linq-green); font-weight: 600; }

/* Activity feed */
.activity-feed { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; transition: background 0.1s; cursor: pointer; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg3); }
.activity-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.activity-body { flex: 1; min-width: 0; }
.activity-text { font-size: 12px; color: var(--text); line-height: 1.45; }
.activity-text strong { color: var(--linq-blue); font-weight: 600; }
.activity-time { font-size: 10px; color: var(--text3); font-family: var(--mono); margin-top: 2px; }
.activity-action { font-size: 11px; color: var(--linq-blue); cursor: pointer; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--linq-blue-mid); background: var(--linq-blue-lt); white-space: nowrap; font-weight: 600; transition: all 0.15s; align-self: center; }
.activity-action:hover { background: var(--linq-blue); color: #fff; }

/* Tab bar */
.tab-bar { display: flex; gap: 2px; background: var(--bg3); border-radius: var(--radius); padding: 3px; margin-bottom: 18px; width: fit-content; border: 1px solid var(--border); }
.tab { padding: 6px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text3); transition: all 0.15s; }
.tab.active { background: var(--bg2); color: var(--linq-blue); box-shadow: var(--shadow); }
.tab:not(.active):hover { color: var(--text2); }

/* Form */
.form-group { margin-bottom: 13px; }
.form-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.8px; font-family: var(--mono); margin-bottom: 5px; display: block; font-weight: 600; }
.form-input { width: 100%; background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; padding: 9px 12px; color: var(--text); font-size: 13px; font-family: var(--font); outline: none; transition: border-color 0.15s; }
.form-input:focus { border-color: var(--linq-blue); background: var(--bg2); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,25,35,0.45); display: none; align-items: flex-start; justify-content: center; z-index: 100; padding-top: 24px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-lg); width: 820px; max-height: none; overflow-y: visible; padding: 20px 24px; box-shadow: var(--shadow-md); margin-bottom: 24px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 16px; font-weight: 700; color: var(--linq-blue); }
.modal-close { background: none; border: none; color: var(--text3); font-size: 18px; cursor: pointer; padding: 3px 7px; border-radius: 5px; }
.modal-close:hover { color: var(--text); background: var(--bg3); }

/* Misc */
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.three-col { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 18px; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(21,101,192,0.35)} 50%{box-shadow:0 0 0 10px rgba(21,101,192,0)} }
.pulse { animation: pulse 2s infinite; }
@keyframes slideIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
.slide-in { animation: slideIn 0.2s ease; }

/* Intake form */
.isec { font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--linq-blue);background:var(--linq-blue-lt);border-left:3px solid var(--linq-blue);padding:5px 10px;border-radius:0 6px 6px 0;margin:16px 0 10px; }
.irow { display:flex;gap:8px;align-items:flex-end;margin-bottom:10px; }
.irow .form-group { margin-bottom:0; }
.ichk { display:flex;align-items:center;gap:5px;font-size:12px;color:var(--text2);white-space:nowrap;padding-bottom:9px; }
.ichk input[type=checkbox] { width:14px;height:14px;accent-color:var(--linq-blue);cursor:pointer; }
.ilabel { font-size:10px;color:var(--text3);text-transform:uppercase;letter-spacing:0.7px;font-family:var(--mono);font-weight:600;margin-bottom:4px;display:block; }
.iinput { background:var(--bg3);border:1px solid var(--border2);border-radius:7px;padding:7px 10px;color:var(--text);font-size:12px;font-family:var(--font);outline:none;width:100%; }
.iinput:focus { border-color:var(--linq-blue); }
.iselect { appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;padding-right:24px; }
