/* ==========================================================================
   Gateway by VentureSEA — Market Entry Execution Hub
   Premium consulting + enterprise SaaS aesthetic
   ========================================================================== */

:root {
  /* ----------------------------------------------------------------
     VentureSEA brand tokens — sourced from official brand guideline.
     Primary palette: Navy + Blue + Cyan
     Alternative palette: Orange + Light Orange
     ---------------------------------------------------------------- */
  --vsea-navy:        #1D3260; /* primary */
  --vsea-navy-deep:   #142449;
  --vsea-navy-soft:   #243d78;
  --vsea-blue:        #045DE9; /* primary blue */
  --vsea-cyan:        #09C6F9; /* bright accent */
  --vsea-orange:      #FF9122; /* alternative primary */
  --vsea-orange-soft: #FFBA49;
  --vsea-orange-tint: #FFF4E6;
  --vsea-blue-tint:   #E8EFFE;
  --vsea-cyan-tint:   #E4F8FE;

  /* Mapped tokens used across the UI ------------------------------ */
  --navy-900: #0E1B3C;
  --navy-800: var(--vsea-navy);          /* #1D3260 */
  --navy-700: #243d78;
  --navy-600: #2c4a8e;
  --navy-500: #3a5da5;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f7f9fc;

  --ink: var(--vsea-navy);
  --paper: #ffffff;
  --canvas: #f6f8fc;

  /* Action blue = brand blue */
  --blue-600: var(--vsea-blue);
  --blue-500: #2772ff;
  --blue-50:  var(--vsea-blue-tint);

  /* Functional success kept emerald-ish but biased toward brand cyan */
  --emerald-700: #0c7a52;
  --emerald-600: #129365;
  --emerald-500: #19b27b;
  --emerald-50:  #ecfaf3;

  /* Warm = brand orange */
  --amber-600: #c46a13;
  --amber-500: var(--vsea-orange);
  --amber-50:  var(--vsea-orange-tint);

  --rose-600: #e11d48;
  --rose-500: #f43f5e;
  --rose-50:  #fff1f2;

  --line: #e6eaf2;
  --line-strong: #d3d9e6;

  /* Type & motion ------------------------------------------------- */
  --font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:    0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(9, 198, 249, 0.05) 0%, transparent 60%),
    radial-gradient(50% 40% at 100% 100%, rgba(255, 145, 34, 0.04) 0%, transparent 70%),
    var(--canvas);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01';
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; }

::selection { background: rgba(4, 93, 233, 0.20); color: var(--vsea-navy); }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--vsea-navy);
}
.brand__mark {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 6px rgba(29, 50, 96, 0.15));
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--vsea-navy);
}
.brand__by {
  font-size: 11px;
  color: var(--slate-500);
  letter-spacing: 0.04em;
  margin-top: 3px;
  font-weight: 500;
}
.brand__venture { color: var(--vsea-navy); font-weight: 700; }
.brand__sea     { color: var(--vsea-orange); font-weight: 800; }

.topnav { display: flex; gap: 4px; justify-content: center; }
.topnav__link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate-600);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.topnav__link:hover { background: var(--slate-100); color: var(--ink); }

.topbar__actions { display: flex; gap: 8px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --bg: var(--paper);
  --fg: var(--ink);
  --border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 9px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  border-radius: 9px;
  transition: transform 120ms var(--ease), background 160ms var(--ease),
    border-color 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease);
  white-space: nowrap;
}
.btn:hover { box-shadow: var(--shadow-xs); border-color: var(--slate-300); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--primary {
  --bg: var(--navy-800);
  --fg: #fff;
  --border: var(--navy-800);
}
.btn--primary:hover { --bg: var(--navy-700); --border: var(--navy-700); }

.btn--secondary {
  --bg: var(--vsea-blue-tint);
  --fg: var(--vsea-blue);
  --border: rgba(4, 93, 233, 0.22);
}
.btn--secondary:hover { --bg: #dde7fd; }

.btn--ghost {
  --bg: transparent;
  --fg: var(--slate-700);
  --border: transparent;
}
.btn--ghost:hover { --bg: var(--slate-100); --border: var(--slate-100); }

.btn--sm { padding: 7px 11px; font-size: 12.5px; }
.btn--icon { padding: 9px 11px; }
.btn .plus { font-size: 14px; line-height: 1; margin-right: 2px; }

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(9, 198, 249, 0.10), transparent 55%),
    radial-gradient(80% 100% at 0% 100%, rgba(255, 145, 34, 0.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px 32px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--vsea-navy) 0%, var(--vsea-blue) 50%, var(--vsea-orange) 100%);
}

.hero__breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--slate-500);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.hero__sep { color: var(--slate-300); }
.hero__current { color: var(--navy-800); font-weight: 600; }

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vsea-orange);
  background: var(--vsea-orange-tint);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}
.hero__divider { color: var(--slate-300); font-weight: 400; }
.hero__market {
  background: linear-gradient(90deg, var(--vsea-blue) 0%, var(--vsea-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 640px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate-600);
  margin: 0;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 220px));
  gap: 12px;
}

.meta-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.meta-card__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.meta-card__sub {
  font-size: 12px;
  color: var(--slate-500);
}
.meta-card__progress {
  margin-top: 8px;
  height: 6px;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
}
.meta-card__progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--vsea-blue) 0%, var(--vsea-cyan) 100%);
  border-radius: 999px;
}
.meta-card__owner { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--vsea-navy) 0%, var(--vsea-blue) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 2px rgba(255, 145, 34, 0.18);
}

/* ==========================================================================
   KPI ROW
   ========================================================================== */
.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease),
    transform 160ms var(--ease);
}
.kpi:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.kpi__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.kpi__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
}
.kpi__delta {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.kpi__delta--up { color: var(--emerald-700); background: var(--emerald-50); }
.kpi__delta--neutral { color: var(--slate-600); background: var(--slate-100); }
.kpi__delta--down { color: var(--rose-600); background: var(--rose-50); }

.kpi__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.kpi__foot { font-size: 12px; color: var(--slate-500); }

.kpi--accent {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 145, 34, 0.22), transparent 55%),
    linear-gradient(160deg, var(--vsea-navy) 0%, var(--vsea-navy-soft) 100%);
  color: #fff;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.kpi--accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--vsea-orange) 0%, var(--vsea-orange-soft) 100%);
}
.kpi--accent .kpi__label { color: rgba(255, 255, 255, 0.78); }
.kpi--accent .kpi__value { color: #fff; }
.kpi--accent .kpi__foot { color: rgba(255, 255, 255, 0.62); }
.kpi--accent .kpi__delta--up {
  background: rgba(255, 186, 73, 0.22);
  color: var(--vsea-orange-soft);
}

/* ==========================================================================
   PANEL (shared shell)
   ========================================================================== */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--line);
}
.panel__head--stack { flex-direction: column; align-items: stretch; }

.panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--vsea-navy);
  margin: 0 0 2px;
  position: relative;
  padding-left: 12px;
}
.panel__title::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 4px; height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--vsea-blue) 0%, var(--vsea-orange) 100%);
}
.panel__sub {
  font-size: 13px;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.5;
}
.panel__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--slate-50);
  font-size: 12.5px;
  color: var(--slate-500);
}

/* ==========================================================================
   PIPELINE TABLE
   ========================================================================== */
.seg {
  display: inline-flex;
  background: var(--slate-100);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.seg__btn {
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-600);
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 160ms var(--ease), color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}
.seg__btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 7px 10px;
  min-width: 260px;
  color: var(--slate-500);
}
.search:focus-within {
  border-color: var(--vsea-blue);
  box-shadow: 0 0 0 3px rgba(4, 93, 233, 0.16);
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  width: 100%;
}
.search--block { width: 100%; }

.pipeline-view { display: none; }
.pipeline-view.is-active { display: block; }

.table-wrap { overflow-x: auto; }

.ptable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.ptable thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
  background: var(--slate-50);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}
.ptable tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--slate-700);
}
.ptable tbody tr { transition: background 120ms var(--ease); }
.ptable tbody tr:hover { background: var(--slate-50); }
.ptable .ptable__check { width: 36px; }
.ptable .ptable__num { text-align: center; width: 56px; }
.ptable .ptable__actions { width: 56px; text-align: right; }

.lead-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lead-cell__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--vsea-navy) 0%, var(--vsea-blue) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.lead-cell__name { font-weight: 600; color: var(--ink); font-size: 13px; }
.lead-cell__title { font-size: 12px; color: var(--slate-500); }

.org-cell { font-weight: 500; color: var(--ink); }

.next-cell { font-weight: 500; color: var(--slate-700); }

/* tags & badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  white-space: nowrap;
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.badge--blue { background: var(--blue-50); color: var(--blue-600); }
.badge--emerald { background: var(--emerald-50); color: var(--emerald-700); }
.badge--amber { background: var(--amber-50); color: var(--amber-600); }
.badge--rose { background: var(--rose-50); color: var(--rose-600); }
.badge--navy { background: #e7ebf6; color: var(--navy-800); }
.badge--ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--slate-600); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--slate-400); }
.dot--emerald { background: var(--emerald-500); box-shadow: 0 0 0 3px var(--emerald-50); }
.dot--amber { background: var(--amber-500); }
.dot--blue { background: var(--vsea-blue); box-shadow: 0 0 0 3px var(--vsea-blue-tint); }
.dot--cyan { background: var(--vsea-cyan); box-shadow: 0 0 0 3px var(--vsea-cyan-tint); }
.dot--orange { background: var(--vsea-orange); box-shadow: 0 0 0 3px var(--vsea-orange-tint); }
.dot--slate { background: var(--slate-400); }

/* row action menu */
.row-actions { position: relative; }
.row-actions__btn {
  background: transparent;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--slate-500);
  display: grid;
  place-items: center;
}
.row-actions__btn:hover { background: var(--slate-100); color: var(--ink); }
.row-actions__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  min-width: 200px;
  z-index: 10;
}
.row-actions__menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font-size: 13px;
  color: var(--slate-700);
  padding: 8px 10px;
  border-radius: 7px;
}
.row-actions__menu button:hover { background: var(--slate-100); color: var(--ink); }
.row-actions__menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* stage select inline */
.stage-select {
  border: 1px solid transparent;
  background: var(--slate-100);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  padding: 5px 26px 5px 10px;
  border-radius: 999px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.stage-select:focus {
  outline: 0;
  border-color: var(--vsea-blue);
  box-shadow: 0 0 0 3px rgba(4, 93, 233, 0.16);
}

/* ==========================================================================
   KANBAN
   ========================================================================== */
.kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 12px;
  padding: 20px;
  overflow-x: auto;
}
.kcol {
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kcol__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  padding: 0 4px 6px;
  border-bottom: 1px dashed var(--line-strong);
}
.kcol__count {
  font-size: 11px;
  color: var(--slate-500);
  background: #fff;
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 999px;
}
.kcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-xs);
  cursor: grab;
  transition: box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.kcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.kcard__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kcard__name { font-size: 13px; font-weight: 600; color: var(--ink); }
.kcard__org { font-size: 12px; color: var(--slate-500); }
.kcard__row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ==========================================================================
   RECOMMENDED + NETWORK SPLIT
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
}

/* ---------- recommended cards ---------- */
.reco-grid {
  display: grid;
  gap: 14px;
  padding: 18px 20px 22px;
}
.reco {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  transition: box-shadow 160ms var(--ease), border-color 160ms var(--ease),
    transform 160ms var(--ease);
  position: relative;
}
.reco:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.reco--top {
  border-color: rgba(255, 145, 34, 0.35);
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 60%);
  box-shadow: 0 1px 0 rgba(255, 145, 34, 0.08), var(--shadow-sm);
}
.reco__rank {
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--vsea-orange) 0%, var(--vsea-orange-soft) 100%);
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(255, 145, 34, 0.32);
}
.reco__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.reco__person { display: flex; gap: 12px; align-items: center; }
.reco__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--vsea-navy) 0%, var(--vsea-blue) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(9, 198, 249, 0.18);
}
.reco__name { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.2; }
.reco__title { font-size: 12.5px; color: var(--slate-500); margin-top: 3px; }

.fitscore {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.fitscore__bar {
  width: 80px;
  height: 6px;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
}
.fitscore__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vsea-blue) 0%, var(--vsea-cyan) 100%);
}
.fitscore__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--vsea-navy);
  font-variant-numeric: tabular-nums;
}
.fitscore__label { font-size: 10px; color: var(--slate-500); letter-spacing: 0.05em; text-transform: uppercase; }

.reco__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reco__why {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--slate-600);
  background: var(--slate-50);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.reco__why strong { color: var(--ink); font-weight: 600; }

.reco__next {
  font-size: 12.5px;
  color: var(--slate-700);
}
.reco__next strong { color: var(--ink); font-weight: 600; }

.reco__actions { display: flex; gap: 8px; }
.reco__actions .btn { flex: 1; }

/* ---------- network ---------- */
.netbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.filters select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 9px;
  padding: 9px 32px 9px 12px;
  font-size: 13px;
  color: var(--slate-700);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filters select:focus {
  outline: 0;
  border-color: var(--vsea-blue);
  box-shadow: 0 0 0 3px rgba(4, 93, 233, 0.16);
}

.netbar__bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
}
.netbar__bulk-label { font-size: 13px; color: var(--slate-700); }
.netbar__bulk-actions { display: flex; gap: 8px; }

.net-list {
  max-height: 540px;
  overflow-y: auto;
}

.netrow {
  display: grid;
  grid-template-columns: 32px minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 120ms var(--ease);
}
.netrow:last-child { border-bottom: 0; }
.netrow:hover { background: var(--slate-50); }
.netrow.is-selected { background: #f3f7ff; }

.netrow__check { display: grid; place-items: center; }
.netrow__person { display: flex; gap: 10px; align-items: center; min-width: 0; }
.netrow__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--vsea-navy) 0%, var(--vsea-blue) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.netrow__name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.netrow__title { font-size: 12px; color: var(--slate-500); }
.netrow__org { font-size: 13px; color: var(--ink); font-weight: 500; }
.netrow__org-sub { font-size: 11.5px; color: var(--slate-500); }
.netrow__market { font-size: 12.5px; color: var(--slate-600); }

.relevance {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.relevance__num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--vsea-navy);
  font-variant-numeric: tabular-nums;
}
.relevance__bar {
  width: 60px;
  height: 4px;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
}
.relevance__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vsea-blue) 0%, var(--vsea-cyan) 100%);
  border-radius: 999px;
}

.netrow__actions { display: flex; gap: 6px; }

input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--slate-300);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background 120ms, border-color 120ms;
}
input[type='checkbox']:hover { border-color: var(--slate-500); }
input[type='checkbox']:checked {
  background: var(--navy-800);
  border-color: var(--navy-800);
}
input[type='checkbox']:checked::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ==========================================================================
   OUTBOUND CHAT
   ========================================================================== */
.outbound__sla {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-700);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--vsea-orange-tint);
  border: 1px solid rgba(255, 145, 34, 0.28);
}
.outbound__sla strong { color: var(--vsea-orange); font-weight: 700; }
.outbound__sla .dot--emerald { background: var(--vsea-orange); box-shadow: 0 0 0 3px rgba(255, 145, 34, 0.18); }

.outbound__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.chat {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  min-height: 480px;
}

.chat__stream {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  background:
    radial-gradient(80% 50% at 0% 0%, rgba(9, 198, 249, 0.06), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(255, 145, 34, 0.04), transparent 70%),
    #fff;
}

.bubble {
  max-width: 82%;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate-700);
  box-shadow: var(--shadow-xs);
}
.bubble--vsea {
  align-self: flex-start;
  border-color: rgba(4, 93, 233, 0.18);
  background: var(--vsea-blue-tint);
  color: var(--slate-800);
}
.bubble--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--vsea-navy) 0%, var(--vsea-navy-soft) 100%);
  border-color: var(--vsea-navy);
  color: #fff;
}
.bubble__meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  margin-bottom: 6px;
}
.bubble--user .bubble__meta { color: rgba(255, 255, 255, 0.7); justify-content: flex-end; }
.bubble strong { color: inherit; font-weight: 600; }

.chat__composer {
  border-top: 1px solid var(--line);
  padding: 14px 20px 18px;
  background: #fff;
}
.chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.chip {
  background: var(--slate-100);
  border: 1px solid transparent;
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.chip:hover { background: var(--blue-50); color: var(--blue-600); }
.chat__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.chat__input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 8px 8px 12px;
  transition: border-color 160ms, box-shadow 160ms;
}
.chat__input-row:focus-within {
  border-color: var(--vsea-blue);
  box-shadow: 0 0 0 3px rgba(4, 93, 233, 0.16);
}
.chat__input-row textarea {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  line-height: 1.5;
  resize: none;
  padding: 6px 0;
}
.chat__hint { margin: 8px 2px 0; font-size: 11.5px; color: var(--slate-500); }

/* ---------- brief preview ---------- */
.brief {
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
}
.brief__head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.brief__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 6px 0 0;
  color: var(--vsea-navy);
  line-height: 1.25;
}
.brief__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--vsea-orange);
  text-transform: uppercase;
}
.brief__list {
  margin: 0;
  padding: 8px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.brief__row {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.brief__row:last-child { border-bottom: 0; }
.brief__row dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 4px;
}
.brief__row dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--slate-800);
  line-height: 1.5;
}
.brief__actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.brief__actions .btn { flex: 1; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.page__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 8px 8px;
  font-size: 12.5px;
  color: var(--slate-500);
}
.page__foot-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page__foot-right { display: flex; gap: 18px; }
.page__foot-right a { color: var(--slate-500); }
.page__foot-right a:hover { color: var(--ink); }
.dot-sep { color: var(--slate-300); }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid;
  place-items: center;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  animation: fade 200ms var(--ease);
}
.modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  width: min(560px, calc(100vw - 32px));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop 220ms var(--ease);
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.modal__head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  color: var(--navy-900);
}
.modal__close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: var(--slate-500);
  font-size: 22px;
  line-height: 1;
}
.modal__close:hover { background: var(--slate-100); color: var(--ink); }
.modal__body { padding: 20px 22px; font-size: 13.5px; color: var(--slate-700); line-height: 1.6; }
.modal__body label { display: block; font-size: 12px; font-weight: 600; color: var(--slate-600); margin-bottom: 6px; }
.modal__body textarea, .modal__body select, .modal__body input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13.5px;
  background: #fff;
  resize: vertical;
}
.modal__body textarea:focus, .modal__body select:focus, .modal__body input:focus {
  outline: 0;
  border-color: var(--vsea-blue);
  box-shadow: 0 0 0 3px rgba(4, 93, 233, 0.16);
}
.modal__body .form-grid { display: grid; gap: 14px; }
.modal__contact {
  display: flex; gap: 12px; align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--slate-50);
  margin-bottom: 14px;
}
.modal__foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--slate-50);
}

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}
.toast {
  background: linear-gradient(135deg, var(--vsea-navy) 0%, var(--vsea-navy-soft) 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: pop 220ms var(--ease);
  max-width: 360px;
  border-left: 3px solid var(--vsea-orange);
}
.toast .dot--emerald { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.toast--leave { animation: fadeOut 180ms var(--ease) forwards; }

/* ==========================================================================
   MOTION
   ========================================================================== */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(6px); } }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kanban { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
  .hero__row { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .outbound__grid { grid-template-columns: 1fr; }
  .chat { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 768px) {
  .topnav { display: none; }
  .topbar__inner { grid-template-columns: auto 1fr; }
  .topbar__actions .btn--ghost { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__meta { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel__head { flex-direction: column; align-items: stretch; }
  .page { padding: 20px 16px 40px; }
  .hero { padding: 22px; }
  .hero__title { font-size: 28px; }
}
