/* =========================================================================
   VYNTRIQO DESIGN SYSTEM
   Marketing & Revenue Intelligence — Nuvareqti Systems demo
   ========================================================================= */

:root {
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --surface-2: #FAFBFD;
  --nav-bg: #10142A;
  --nav-bg-soft: #181D3B;
  --nav-text: #AEB3D1;
  --nav-text-active: #FFFFFF;

  --text: #131629;
  --muted: #5B6076;
  --muted-2: #8A8FA8;
  --border: #E4E6EF;
  --border-soft: #EEF0F6;

  --accent: #2F5CFF;
  --accent-dark: #1E44D6;
  --accent-soft: #EAF0FF;
  --accent-soft-2: #DCE6FF;

  --positive: #12966B;
  --positive-soft: #E3F7EE;
  --negative: #E0405A;
  --negative-soft: #FCE7EA;
  --warning: #B9791B;
  --warning-soft: #FBF0DC;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 20, 42, 0.07);
  --shadow-lg: 0 20px 48px rgba(16, 20, 42, 0.14);

  --font-display: 'Segoe UI Semibold', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --sidebar-w: 248px;
  --topbar-h: 68px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------------------------------------------------------------------- */
/* APP SHELL                                                              */
/* ---------------------------------------------------------------------- */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

#app-sidebar {
  background: var(--nav-bg);
  padding: 22px 16px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 22px;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3A63FF 0%, #1B2C8C 100%);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; top: 50%;
  height: 2px;
  background: rgba(255,255,255,0.85);
  transform: translateY(-50%);
}
.brand-name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 16px; line-height: 1.1; }
.brand-tagline { color: var(--nav-text); font-size: 11px; margin-top: 2px; }

.nav-main { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--nav-text);
  font-size: 13.5px; font-weight: 500;
  background: none; border: none; width: 100%; text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; }
.nav-item.active .icon { color: #fff; }

.nav-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08); }
.nav-reset { color: var(--nav-text); }
.nav-reset:hover { color: #fff; background: rgba(255,255,255,0.06); }

.main-col { display: flex; flex-direction: column; min-height: 100vh; }

#app-topbar {
  height: var(--topbar-h);
  display: flex; align-items: center;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar-spacer { flex: 1; }
.account { display: flex; align-items: center; gap: 10px; }
.account-text { text-align: right; }
.account-name { font-weight: 600; font-size: 13.5px; }
.account-title { color: var(--muted-2); font-size: 12px; }
.account-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
}

.page-content { padding: 30px 32px 64px; max-width: 1320px; width: 100%; margin: 0 auto; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-header h1 { font-size: 25px; font-weight: 700; }
.page-subtitle { color: var(--muted); margin-top: 6px; font-size: 14px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 12.5px; margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------------------------------------------------------------------- */
/* BUTTONS                                                                */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13.5px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: var(--muted-2); cursor: not-allowed; }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------------- */
/* CARDS / GRID                                                           */
/* ---------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-header h2, .card-header h3 { font-size: 15.5px; font-weight: 600; }
.card-eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; color: var(--muted-2); font-weight: 600; margin-bottom: 8px; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }
.section { margin-bottom: 22px; }

/* KPI cards */
.kpi-card { padding: 20px 22px; }
.kpi-label { color: var(--muted); font-size: 12.5px; font-weight: 500; margin-bottom: 10px; }
.kpi-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.kpi-delta { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--positive); display: flex; align-items: center; gap: 4px; }
.kpi-delta.negative { color: var(--negative); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-active { background: var(--positive-soft); color: var(--positive); }
.badge-completed { background: var(--border-soft); color: var(--muted); }
.badge-high { background: var(--negative-soft); color: var(--negative); }
.badge-medium { background: var(--warning-soft); color: var(--warning); }
.badge-low { background: var(--border-soft); color: var(--muted-2); }
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge-mql { background: var(--accent-soft); color: var(--accent-dark); }
.badge-sql { background: var(--positive-soft); color: var(--positive); }
.badge-lead { background: var(--border-soft); color: var(--muted); }

/* ---------------------------------------------------------------------- */
/* TABLES                                                                 */
/* ---------------------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted-2); font-weight: 600; padding: 0 14px 10px; border-bottom: 1px solid var(--border);
}
tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.clickable { cursor: pointer; transition: background 0.12s ease; }
tbody tr.clickable:hover { background: var(--surface-2); }
th.num, td.num { text-align: right; font-family: var(--font-mono); }
.cell-primary { font-weight: 600; }
.cell-sub { color: var(--muted-2); font-size: 12px; margin-top: 2px; }

/* ---------------------------------------------------------------------- */
/* CHARTS                                                                 */
/* ---------------------------------------------------------------------- */

.chart-wrap { width: 100%; }
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.bar-value { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.bar-shape { width: 100%; max-width: 42px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%); }
.bar-label { font-size: 11.5px; color: var(--muted-2); }

.funnel { display: flex; flex-direction: column; gap: 0; }
.funnel-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.funnel-row + .funnel-row { border-top: 1px dashed var(--border); }
.funnel-bar-track { flex: 1; height: 34px; background: var(--surface-2); border-radius: 8px; overflow: visible; position: relative; }
.funnel-bar-fill { height: 100%; min-width: 34px; background: linear-gradient(90deg, var(--accent-soft-2), var(--accent)); border-radius: 8px; }
.funnel-value { position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--fill, 30%) + 10px); font-weight: 700; font-size: 12.5px; color: var(--text); font-family: var(--font-mono); white-space: nowrap; }
.funnel-value.inside { left: auto; right: 10px; color: #fff; }
.funnel-label { width: 130px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.funnel-conv { width: 70px; text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); flex-shrink: 0; }

.attribution-bars { display: flex; flex-direction: column; gap: 14px; }
.attr-row { display: grid; grid-template-columns: 190px 1fr 90px; align-items: center; gap: 14px; }
.attr-name { font-size: 13px; font-weight: 500; }
.attr-track { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.attr-fill { height: 100%; background: var(--accent); border-radius: 6px; }
.attr-val { text-align: right; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------------- */
/* SCORE RING                                                             */
/* ---------------------------------------------------------------------- */

.score-ring-wrap { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.score-ring-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.score-ring-den { font-size: 11px; color: var(--muted-2); }

.score-bars { display: flex; flex-direction: column; gap: 14px; }
.score-bar-row { display: flex; flex-direction: column; gap: 6px; }
.score-bar-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; }
.score-bar-track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }

.reason-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.reason-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.reason-points { font-family: var(--font-mono); font-weight: 700; color: var(--positive); min-width: 34px; }

/* Light-card signal checklist (e.g. Sales Handoff Detail qualification signals) */
.signal-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.signal-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text); }
.signal-item .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--positive); flex-shrink: 0; }

/* ---------------------------------------------------------------------- */
/* AI CARD                                                                */
/* ---------------------------------------------------------------------- */

.ai-card {
  background: linear-gradient(155deg, #10142A 0%, #1B2560 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid #232A54;
}
.ai-card::before {
  content: "";
  position: absolute; top: -60px; right: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(63,99,255,0.45), transparent 70%);
}
.ai-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; position: relative; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #C8D3FF; }
.ai-card h3 { font-size: 18px; color: #fff; }
.ai-metrics { display: flex; gap: 32px; margin-bottom: 18px; position: relative; }
.ai-metric-label { font-size: 11.5px; color: #9FA9E0; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.ai-metric-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.ai-summary { color: #D3D9F5; line-height: 1.6; font-size: 13.5px; margin-bottom: 18px; position: relative; max-width: 640px; }
.ai-signals-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #9FA9E0; margin-bottom: 10px; font-weight: 600; }
.ai-signals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-bottom: 20px; position: relative; }
.ai-signal-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #E3E7FA; }
.ai-signal-item .icon { width: 14px; height: 14px; margin-top: 3px; color: #7FA0FF; }
.ai-recommend { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md); padding: 16px 18px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ai-recommend-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #9FA9E0; margin-bottom: 4px; }
.ai-recommend-text { font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------------- */
/* TIMELINE                                                               */
/* ---------------------------------------------------------------------- */

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -26px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 3px solid var(--accent-soft); }
.timeline-item.strong .timeline-dot { background: var(--positive); border-color: var(--positive-soft); }
.timeline-date { font-size: 11.5px; color: var(--muted-2); font-family: var(--font-mono); margin-bottom: 3px; }
.timeline-label { font-weight: 600; font-size: 13.5px; }
.timeline-detail { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------------------------------------------------------------------- */
/* JOURNEY BUILDER                                                        */
/* ---------------------------------------------------------------------- */

.journey-canvas { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 18px 10px 6px; }
.journey-node {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 20px;
  font-size: 13.5px; font-weight: 600;
  min-width: 260px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.journey-node:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); cursor: pointer; }
.journey-node.trigger { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 999px; }
.journey-node.decision { background: var(--surface-2); border-style: dashed; border-radius: 10px; transform: none; }
.journey-node.wait { background: var(--border-soft); color: var(--muted); font-weight: 500; border-style: dotted; }
.journey-node.action.highlight { border-color: var(--positive); box-shadow: 0 0 0 3px var(--positive-soft); }
.journey-connector { width: 2px; height: 26px; background: var(--border); position: relative; }
.journey-branch { display: flex; align-items: center; gap: 8px; }
.journey-branch-label { font-size: 11px; font-weight: 700; color: var(--positive); background: var(--positive-soft); padding: 2px 8px; border-radius: 999px; margin: 4px 0; }
.journey-preview-node { border: 1.5px dashed var(--accent); background: var(--accent-soft); color: var(--accent-dark); animation: pulseIn 0.4s ease; }
@keyframes pulseIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* ---------------------------------------------------------------------- */
/* FILTERS / FORM CONTROLS                                                */
/* ---------------------------------------------------------------------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.filter-select, .filter-search {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; color: var(--text);
  font-family: inherit;
}
.filter-search { min-width: 220px; }
.filter-select:focus, .filter-search:focus { border-color: var(--accent); }

/* ---------------------------------------------------------------------- */
/* MISC COMPONENTS                                                        */
/* ---------------------------------------------------------------------- */

.detail-list { display: flex; flex-direction: column; gap: 12px; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-key { color: var(--muted); }
.detail-val { font-weight: 600; text-align: right; }

.stat-strip { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.stat-cell { flex: 1; padding: 18px 20px; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: none; }
.stat-cell-label { font-size: 11.5px; color: var(--muted-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.stat-cell-value { font-family: var(--font-display); font-size: 19px; font-weight: 700; }

.contact-card-row { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--border-soft); cursor: pointer; border-radius: var(--radius-sm); transition: background 0.12s ease; }
.contact-card-row:hover { background: var(--surface-2); }
.contact-card-row:last-child { border-bottom: none; }
.contact-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); font-size: 13px; flex-shrink: 0; }
.contact-meta { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; font-size: 13.5px; }
.contact-sub { color: var(--muted-2); font-size: 12px; margin-top: 1px; }
.contact-score { text-align: right; }
.contact-score-num { font-family: var(--font-mono); font-weight: 700; font-size: 15px; }

.profile-header { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.profile-avatar { width: 62px; height: 62px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); font-size: 21px; flex-shrink: 0; }
.profile-name { font-size: 22px; font-weight: 700; font-family: var(--font-display); }
.profile-role { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

.empty-hint { color: var(--muted-2); font-size: 13px; text-align: center; padding: 30px 0; }

/* Toast */
#toast-container { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #10142A; color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Processing / success states */
.state-panel { text-align: center; padding: 50px 20px; }
.state-spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); margin: 0 auto 20px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-check { width: 56px; height: 56px; border-radius: 50%; background: var(--positive-soft); color: var(--positive); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.state-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.state-body { color: var(--muted); font-size: 13.5px; }

/* Modal / slide-over */
.modal-overlay { position: fixed; inset: 0; background: rgba(16,20,42,0.55); z-index: 70; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.overlay { position: fixed; inset: 0; background: rgba(16,20,42,0.45); z-index: 60; display: none; align-items: stretch; justify-content: flex-end; }
.overlay.open { display: flex; }
.slide-panel { width: 480px; max-width: 92vw; background: var(--surface); height: 100%; box-shadow: var(--shadow-lg); overflow-y: auto; animation: slideIn 0.25s ease; }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0.6; } to { transform: translateX(0); opacity: 1; } }
.slide-panel-inner { padding: 26px 26px 50px; }
.slide-close { display: flex; justify-content: flex-end; margin-bottom: 6px; }

.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* CTA banner on Home */
.start-demo-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 20px; margin-bottom: 22px;
}
.start-demo-copy { font-size: 13px; color: var(--muted); }
.start-demo-copy strong { color: var(--text); }

/* Responsive */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .app-shell { grid-template-columns: 1fr; }
  #app-sidebar { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
