/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --radius-lg: 0.5rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .static {
    position: static;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .table {
    display: table;
  }
}
:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #8b8b9e;
  --border: #e8e8ed;
  --hover: #f3f3f6;
  --ring: rgba(91, 91, 214, 0.12);
  --radius: 8px;
  --radius-lg: 10px;
  --accent: #5b5bd6;
  --accent-fg: #ffffff;
  --accent-light: #ededfe;
  --danger: #e5484d;
  --danger-bg: #fff0f0;
  --grant: #0d9488;
  --grant-bg: #f0fdfa;
  --rfp: #ca8a04;
  --rfp-bg: #fefce8;
  --outreach: #16a34a;
  --outreach-bg: #f0fdf4;
  --general: #64748b;
  --general-bg: #f8fafc;
  --bid: #db2777;
  --bid-bg: #fdf2f8;
  --st-not-started: #a1a1aa;
  --st-researching: #3b82f6;
  --st-qualifying: #f59e0b;
  --st-drafting: #8b5cf6;
  --st-review: #ec4899;
  --st-submitted: #10b981;
  --st-contracting: #0d9488;
  --st-won: #16a34a;
  --st-lost: #e5484d;
  --st-stalled: #f97316;
  --st-referred-out: #7c3aed;
  --st-not-applying: #71717a;
  --st-overdue: #ef4444;
  --sidebar-bg: #f8f8f7;
  --sidebar-text: #91918e;
  --sidebar-text-bright: #37352f;
  --sidebar-border: rgba(55, 53, 47, 0.09);
  --sidebar-hover: rgba(55, 53, 47, 0.04);
  --sidebar-active: rgba(55, 53, 47, 0.06);
  --sidebar-active-text: #37352f;
  --sidebar-accent: #37352f;
}
@layer base {
  html, body {
    min-height: 100dvh;
  }
  body {
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  body.drawer-open, body.modal-open {
    overflow: hidden;
  }
}
.muted {
  color: var(--muted);
}
.sm {
  font-size: 13px;
}
.label-xs {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.container {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  background: var(--card);
  overflow: hidden;
}
.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  border-right: 1px solid var(--sidebar-border);
  background: var(--sidebar-bg);
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
}
.sidebar__brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--sidebar-active-text);
  color: var(--sidebar-bg);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.sidebar__logo {
  flex-shrink: 0;
}
.sidebar__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sidebar-text-bright);
}
.sidebar__section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sidebar-text);
  padding: 12px 12px 6px;
  opacity: 0.7;
}
.sidebar__nav-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tab {
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--sidebar-text);
  font: inherit;
  cursor: pointer;
  transition: background 80ms ease, color 80ms ease;
}
.tab:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-bright);
}
.tab.is-active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
}
.view-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  text-align: left;
}
.view-tab__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.view-tab__icon {
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 80ms;
}
.tab:hover .view-tab__icon, .tab.is-active .view-tab__icon {
  opacity: 0.7;
}
.view-tab__label {
  font-size: 13px;
  font-weight: 500;
}
.tab.is-active .view-tab__label {
  color: var(--sidebar-active-text);
}
.view-tab__count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 5px;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  text-align: center;
}
.tab.is-active .view-tab__count {
  background: rgba(55, 53, 47, 0.06);
  color: var(--sidebar-active-text);
}
.sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--sidebar-border);
}
.sidebar__auth-row {
  padding: 0 4px;
}
.sidebar__footer .btn {
  width: 100%;
  justify-content: center;
}
.btn--sidebar {
  background: transparent;
  border: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  gap: 8px;
}
.btn--sidebar:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-bright);
  border-color: rgba(55, 53, 47, 0.16);
}
.btn--sidebar svg {
  opacity: 0.45;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.workspace-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px 32px;
}
.view-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.workspace-card {
  margin: 0;
  padding: 20px 24px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 0 0 1px rgba(0,0,0,0.02);
}
.workspace-card--table, .workspace-card--crm {
  padding: 0;
  overflow: hidden;
}
.workspace-card--table > .setup-banner, .workspace-card--table > .empty-state, .workspace-card--table > .pagination {
  margin: 20px;
}
.workspace-card > .muted.sm {
  margin-top: -4px;
}
.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--sidebar-text);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(55, 53, 47, 0.04);
}
.auth-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sidebar-text);
  opacity: 0.4;
}
.auth-chip--active {
  background: rgba(16, 185, 129, 0.08);
  color: #0d7a50;
}
.auth-chip--active .auth-chip__dot {
  background: #10b981;
  opacity: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 80ms ease;
}
.btn:hover {
  background: var(--hover);
  border-color: rgba(0,0,0,0.12);
}
.btn--sm {
  padding: 5px 12px;
  font-size: 13px;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(91, 91, 214, 0.25);
}
.btn--primary:hover {
  background: #4f4fc4;
  box-shadow: 0 1px 3px rgba(91, 91, 214, 0.35);
}
.btn--outline {
  background: transparent;
  border-color: rgba(0,0,0,0.1);
}
.btn--outline:hover {
  background: var(--hover);
}
.btn--ghost {
  border-color: transparent;
  background: transparent;
}
.btn--ghost:hover {
  background: var(--hover);
}
.btn--danger {
  color: var(--danger);
  border-color: #fecaca;
  background: var(--danger-bg);
}
.btn--danger:hover {
  background: #fee2e2;
}
.btn--icon {
  padding: 6px;
  border-radius: 6px;
}
.page-header {
  margin-bottom: 0;
}
.page-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.page-header p {
  margin: 4px 0 0;
  font-size: 13px;
  max-width: 64ch;
  display: none;
}
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.metric-cell {
  padding: 16px 20px;
  background: var(--card);
  position: relative;
}
.metric-cell__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-cell__value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.metric-cell__note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
}
.metric-cell--warn .metric-cell__value {
  color: #d97706;
}
.metric-cell--money .metric-cell__value {
  color: #059669;
}
.section {
  margin-bottom: 32px;
}
.view-stack > * {
  margin: 0;
}
.section__title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pipeline-bar {
  display: flex;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  gap: 2px;
  background: rgba(0,0,0,0.04);
}
.pipeline-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  border: none;
  padding: 0;
  appearance: none;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.95);
  cursor: pointer;
  transition: flex 300ms cubic-bezier(0.4, 0, 0.2, 1), filter 120ms ease, opacity 120ms ease;
}
.pipeline-seg:hover:not(:disabled) {
  filter: brightness(0.92);
}
.pipeline-seg--empty {
  opacity: 0.08;
  min-width: 4px;
}
.pipeline-seg--active {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.85);
  filter: brightness(1.05);
}
.pipeline-seg:disabled {
  cursor: default;
}
.pipeline-seg[data-s="not_started"] {
  background: var(--st-not-started);
}
.pipeline-seg[data-s="researching"] {
  background: var(--st-researching);
}
.pipeline-seg[data-s="qualifying"] {
  background: var(--st-qualifying);
}
.pipeline-seg[data-s="drafting"] {
  background: var(--st-drafting);
}
.pipeline-seg[data-s="review"] {
  background: var(--st-review);
}
.pipeline-seg[data-s="submitted"] {
  background: var(--st-submitted);
}
.pipeline-seg[data-s="contracting"] {
  background: var(--st-contracting);
}
.pipeline-seg[data-s="won"] {
  background: var(--st-won);
}
.pipeline-seg[data-s="lost"] {
  background: var(--st-lost);
}
.pipeline-seg[data-s="stalled"] {
  background: var(--st-stalled);
}
.pipeline-seg[data-s="referred_out"] {
  background: var(--st-referred-out);
}
.pipeline-seg[data-s="not_applying"] {
  background: var(--st-not-applying);
}
.pipeline-seg[data-s="overdue"] {
  background: var(--st-overdue);
}
.pipeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 14px;
}
.pipeline-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 6px;
  background: transparent;
  padding: 5px 8px;
  font: inherit;
  cursor: pointer;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  transition: all 100ms;
}
.pipeline-legend__item:hover:not(:disabled) {
  background: var(--hover);
  color: var(--text);
}
.pipeline-legend__item.is-active {
  background: var(--hover);
  color: var(--text);
  font-weight: 500;
}
.pipeline-legend__item:disabled {
  opacity: 0.3;
  cursor: default;
}
.pipeline-legend__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
}
.tbl--deadline {
  min-width: 980px;
}
.tbl--pipeline {
  min-width: 1040px;
}
#upcomingTableWrap, #pipelineTableWrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tbl th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--hover);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}
.tbl th[data-sort] {
  cursor: pointer;
}
.tbl th[data-sort]:hover {
  color: var(--text);
}
.tbl .sort-arrow {
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.3;
}
.tbl .sort-arrow.on {
  opacity: 1;
  color: var(--accent);
}
.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
}
.tbl tbody tr {
  cursor: pointer;
  transition: background 80ms;
}
.tbl tbody tr:hover {
  background: var(--hover);
}
.tbl tbody tr:last-child td {
  border-bottom: none;
}
.tbl .cell-opp {
  min-width: 280px;
  max-width: none;
}
.tbl .opp-name {
  font-weight: 600;
  color: var(--text);
}
.tbl .opp-issuer {
  font-size: 12px;
  color: var(--muted);
}
.tbl--deadline .tbl__col-opp, .tbl--pipeline .tbl__col-opp {
  width: 40%;
}
.tbl--deadline .tbl__col-type, .tbl--pipeline .tbl__col-type {
  width: 10%;
}
.tbl--deadline .tbl__col-stage, .tbl--pipeline .tbl__col-stage {
  width: 14%;
}
.tbl--deadline .tbl__col-deadline, .tbl--pipeline .tbl__col-deadline {
  width: 14%;
}
.tbl--deadline .tbl__col-economics, .tbl--pipeline .tbl__col-economics {
  width: 22%;
}
.tbl--deadline td, .tbl--pipeline td {
  padding-top: 14px;
  padding-bottom: 14px;
}
.tbl--deadline .cell-opp {
  min-width: 360px;
}
.tbl--deadline .economics-stack, .tbl--pipeline .economics-stack {
  min-width: 220px;
}
.economics-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.economics-stack__line, .economics-stack__meta, .economics-stack__note {
  display: block;
  min-width: 0;
}
.economics-stack__line {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.economics-stack__line strong {
  color: var(--muted);
  font-weight: 600;
  margin-right: 6px;
}
.economics-stack__meta, .economics-stack__note {
  font-size: 11px;
  color: var(--muted);
}
.economics-stack__note {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.economics-stack--compact .economics-stack__line, .economics-stack--compact .economics-stack__meta, .economics-stack--compact .economics-stack__note {
  font-size: 11px;
}
.economics-stack--muted .economics-stack__line, .economics-stack--muted .economics-stack__meta, .economics-stack--muted .economics-stack__note {
  color: var(--muted);
}
.tbl .opp-tags {
  display: flex;
  gap: 4px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot[data-s="not_started"] {
  background: var(--st-not-started);
}
.status-dot[data-s="researching"] {
  background: var(--st-researching);
}
.status-dot[data-s="qualifying"] {
  background: var(--st-qualifying);
}
.status-dot[data-s="drafting"] {
  background: var(--st-drafting);
}
.status-dot[data-s="review"] {
  background: var(--st-review);
}
.status-dot[data-s="submitted"] {
  background: var(--st-submitted);
}
.status-dot[data-s="contracting"] {
  background: var(--st-contracting);
}
.status-dot[data-s="won"] {
  background: var(--st-won);
}
.status-dot[data-s="lost"] {
  background: var(--st-lost);
}
.status-dot[data-s="stalled"] {
  background: var(--st-stalled);
}
.status-dot[data-s="referred_out"] {
  background: var(--st-referred-out);
}
.status-dot[data-s="not_applying"] {
  background: var(--st-not-applying);
}
.status-dot[data-s="overdue"] {
  background: var(--st-overdue);
}
.cat-pill {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.cat-pill--grant {
  background: var(--grant-bg);
  color: var(--grant);
}
.cat-pill--rfp {
  background: var(--rfp-bg);
  color: var(--rfp);
}
.cat-pill--outreach {
  background: var(--outreach-bg);
  color: var(--outreach);
}
.cat-pill--general {
  background: var(--general-bg);
  color: var(--general);
}
.cat-pill--bid {
  background: var(--bid-bg);
  color: var(--bid);
}
.tag-chip {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: var(--hover);
  color: var(--muted);
}
.role-pill {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.role-pill--prime {
  background: #dcfce7;
  color: #166534;
}
.role-pill--partner {
  background: #dbeafe;
  color: #1e40af;
}
.role-pill--sub {
  background: #fef3c7;
  color: #92400e;
}
.role-pill--fiscal_sponsor {
  background: #f3e8ff;
  color: #6b21a8;
}
.deadline-urgent {
  color: var(--danger);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ntbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ntbl__th {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.ntbl__th-icon {
  flex-shrink: 0;
  stroke: var(--muted);
  opacity: 0.6;
}
.ntbl thead tr {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(120px, 1fr) 120px 120px 100px;
}
.ntbl__row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(120px, 1fr) 120px 120px 100px;
  cursor: pointer;
  transition: background 100ms ease;
}
.ntbl__row:hover {
  background: var(--hover);
}
.ntbl__cell {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  min-width: 0;
}
.ntbl__cell--name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ntbl__cell--secondary {
  color: var(--muted);
  font-size: 13px;
}
.ntbl__cell--date {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.ntbl__cell--rich {
  white-space: normal;
}
.ntbl__th--sort {
  cursor: pointer;
  user-select: none;
  transition: color 100ms ease;
}
.ntbl__th--sort:hover {
  color: var(--text);
}
.ntbl .sort-arrow {
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.3;
}
.ntbl .sort-arrow.on {
  opacity: 1;
  color: var(--accent);
}
.pipe-list__group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pipe-list__group-count {
  font-weight: 400;
  opacity: 0.6;
}
.pipe-rows {
  display: flex;
  flex-direction: column;
}
.pipe-2l {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.04);
  background: var(--card);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 80ms ease;
}
.pipe-2l:first-child, .pipe-list__group-label + .pipe-2l {
  border-top: none;
}
.pipe-2l:hover {
  background: var(--hover);
}
.pipe-2l__top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pipe-2l__title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.pipe-2l__spacer {
  flex: 1;
}
.pipe-2l__date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.pipe-2l__date--urgent {
  color: var(--danger);
  font-weight: 600;
}
.pipe-2l__bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
}
.pipe-2l__issuer {
  font-size: 12px;
  color: var(--muted);
}
.pipe-2l__value {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.upcoming-empty, .table-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-row--shared {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  gap: 6px;
}
.filter-row__search {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.filter-row__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.filter-row__input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color 100ms, box-shadow 100ms;
}
.filter-row__input::placeholder {
  color: var(--muted);
  opacity: 0.65;
}
.filter-row__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
.select {
  padding: 7px 28px 7px 10px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: var(--card);
  font: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b9e' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  outline: none;
  transition: border-color 100ms, box-shadow 100ms;
}
.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--ring);
}
.filter-row .select {
  border-color: var(--border);
  background-color: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.filter-row .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
.input, .textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 100ms, box-shadow 100ms;
}
.input:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
.textarea {
  resize: vertical;
}
.textarea--lg {
  min-height: 100px;
}
.input-file {
  font: inherit;
  font-size: 13px;
  color: var(--muted);
}
.setup-banner {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--hover);
  font-size: 13px;
  margin-bottom: 16px;
}
.setup-banner code {
  display: inline-block;
  margin-top: 6px;
  background: var(--hover);
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 12px;
}
.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.empty-state h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.empty-state p {
  margin: 0 0 16px;
}
.locked-view {
  margin-bottom: 24px;
}
.locked-view__card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--hover);
  text-align: center;
}
.locked-view__title {
  margin: 8px 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(3px);
  z-index: 10;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100dvh;
  width: min(620px, 100%);
  padding: 28px;
  background: var(--card);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 200ms ease;
  z-index: 11;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.drawer__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.drawer__title + .muted {
  margin-top: 4px;
}
.quick-intake {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--hover);
}
.quick-intake__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.quick-intake__top p {
  margin: 2px 0 0;
}
.quick-intake__ta {
  min-height: 80px;
}
.quick-intake__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-intake__divider {
  height: 1px;
  margin: 14px 0;
  background: var(--border);
}
.email-intake-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.email-intake-list {
  display: grid;
  gap: 10px;
}
.email-intake-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.email-intake-card__label {
  font-size: 13px;
  font-weight: 600;
}
.email-intake-card__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field--full {
  grid-column: 1 / -1;
}
.field__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.docs-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.docs-section__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.resource-dock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--hover);
}
.resource-dock__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.resource-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.resource-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: background 80ms;
}
.resource-link:hover {
  background: var(--hover);
}
.resource-link__label {
  font-size: 13px;
  font-weight: 600;
}
.resource-link__meta {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.opp-next-follow-up {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.opp-next-follow-up--urgent {
  color: var(--danger);
  font-weight: 600;
}
.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: var(--hover);
  color: var(--muted);
}
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.doc-row__name {
  font-size: 13px;
  font-weight: 500;
}
.doc-row__meta {
  font-size: 12px;
  color: var(--muted);
}
.doc-row__actions {
  display: flex;
  gap: 8px;
}
.doc-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.doc-link:hover {
  text-decoration: underline;
}
.doc-delete {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--danger);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.doc-empty {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.activity-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.activity-composer {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--hover);
}
.activity-composer__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.activity-row.is-complete {
  background: var(--hover);
  opacity: 0.7;
}
.activity-row__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.activity-row__state {
  font-size: 12px;
  color: var(--muted);
}
.activity-row__state.is-urgent {
  color: var(--danger);
  font-weight: 600;
}
.activity-row__note {
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
}
.activity-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.activity-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.activity-type-pill--note {
  background: var(--hover);
  color: #4b5563;
}
.activity-type-pill--follow_up, .activity-type-pill--reminder {
  background: #dbeafe;
  color: #1d4ed8;
}
.activity-type-pill--meeting {
  background: #ede9fe;
  color: #6d28d9;
}
.activity-type-pill--win {
  background: #dcfce7;
  color: #166534;
}
.activity-type-pill--email {
  background: #fef3c7;
  color: #92400e;
}
.conversion-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.conv-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.conv-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.conv-row {
  display: grid;
  grid-template-columns: minmax(108px, auto) 44px minmax(90px, 1fr) 44px;
  align-items: center;
  gap: 10px;
}
.conv-row__label {
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.conv-row__stat, .conv-row__pct {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
}
.conv-row__pct {
  font-weight: 600;
  color: var(--text);
}
.conv-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--hover);
  overflow: hidden;
}
.conv-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 400ms ease;
}
.email-history-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.email-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.email-history-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fcfcfd;
}
.email-history-row__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.email-history-row__subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.email-history-row__time, .email-history-row__meta {
  font-size: 12px;
  color: var(--muted);
}
.email-history-row__note {
  font-size: 12px;
  color: var(--text);
  white-space: pre-wrap;
}
.follow-up-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.follow-up-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.follow-up-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.follow-up-panel__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.follow-up-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.follow-up-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.follow-up-card.is-urgent {
  border-color: #fecaca;
  background: #fffbfb;
}
.follow-up-card--win {
  border-color: #bbf7d0;
}
.follow-up-card__top, .follow-up-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.follow-up-card__title {
  font-size: 14px;
  font-weight: 600;
}
.follow-up-card__meta, .follow-up-card__date {
  font-size: 12px;
  color: var(--muted);
}
.follow-up-card__reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.follow-up-card__reason {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 600;
}
.crm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.crm-nav__tabs {
  display: flex;
  gap: 2px;
  background: var(--hover);
  border-radius: 8px;
  padding: 3px;
}
.crm-nav__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 100ms;
  white-space: nowrap;
}
.crm-nav__tab:hover {
  color: var(--text);
  background: rgba(0,0,0,0.03);
}
.crm-nav__tab.is-active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.crm-nav__tab svg {
  opacity: 0.45;
  flex-shrink: 0;
}
.crm-nav__tab.is-active svg {
  opacity: 0.7;
}
.crm-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crm-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.crm-view-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crm-view-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 100ms;
}
.crm-view-pill:hover {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.16);
}
.crm-view-pill.is-active {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.04);
}
.crm-view-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--text);
  font-size: 11px;
}
.crm-search {
  position: relative;
}
.crm-search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.crm-search__input {
  width: 180px;
  padding: 6px 10px 6px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 100ms, box-shadow 100ms, width 200ms;
}
.crm-search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
  width: 240px;
}
.crm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.crm-avatar--sm {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.crm-avatar--square {
  border-radius: 6px;
}
.crm-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.crm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.crm-table--people {
  min-width: 820px;
}
.crm-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}
.crm-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
}
.crm-table tbody tr {
  cursor: default;
  transition: background 80ms;
}
.crm-company-row {
  cursor: pointer;
}
.crm-table tbody tr:hover {
  background: var(--hover);
}
.crm-table tbody tr:last-child td {
  border-bottom: none;
}
.crm-company-row.is-expanded {
  background: var(--hover);
}
.crm-company-row.is-expanded td {
  border-bottom-color: transparent;
}
.crm-expanded-row td {
  padding: 0;
  background: var(--hover);
  border-bottom: 1px solid var(--border);
}
.crm-expand-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.crm-expand-chevron {
  transition: transform 150ms ease;
  flex-shrink: 0;
}
.crm-expand-chevron.is-open {
  transform: rotate(180deg);
}
.crm-cell-entity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.crm-table--people .crm-cell-entity {
  min-width: 220px;
  align-items: flex-start;
}
.crm-table--people .crm-cell-entity .crm-avatar {
  margin-top: 2px;
}
.crm-cell-entity__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.crm-cell-entity__name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-cell-entity__sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-cell-entity__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.crm-cell-entity__name-row .crm-cell-entity__name {
  min-width: 0;
}
.crm-person-linkedin {
  display: inline-flex;
  align-items: center;
  color: #0a66c2;
  opacity: 0.55;
  transition: opacity 100ms;
  flex-shrink: 0;
}
.crm-person-linkedin:hover {
  opacity: 1;
}
.crm-cell-entity__context {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.75;
}
.crm-cell-muted {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.crm-inline-link {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.crm-inline-link:hover {
  text-decoration: underline;
}
.crm-cell-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--hover);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.crm-cell-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.crm-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.crm-touch {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.crm-touch__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.crm-touch__label--urgent {
  color: var(--danger);
}
.crm-touch-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
  vertical-align: middle;
}
.crm-touch-dot--overdue {
  background: var(--danger);
}
.crm-touch-dot--soon {
  background: #f59e0b;
}
.crm-touch-dot--upcoming {
  background: #3b82f6;
}
.crm-touch-dot--healthy {
  background: #10b981;
}
.crm-touch--indicator .crm-touch__label {
  display: flex;
  align-items: center;
}
.crm-expanded {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.crm-expanded__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.crm-expanded__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crm-org-note {
  font-size: 13px;
  color: var(--muted);
}
.crm-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.crm-detail-panel {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
}
.crm-detail-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.crm-detail-panel__title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.crm-detail-empty {
  padding: 20px 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.crm-subtable-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.crm-subtable {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}
.crm-subtable th, .crm-subtable td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
  text-align: left;
  font-size: 12px;
}
.crm-subtable th {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.crm-subtable tbody tr:last-child td {
  border-bottom: none;
}
.crm-subtable tbody tr {
  transition: background 80ms;
}
.crm-subtable tbody tr:hover {
  background: rgba(0,0,0,0.015);
}
.crm-exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.crm-exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.crm-exp-meta__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.crm-exp-meta__dt {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.crm-exp-meta__dd {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.crm-exp-section {
  display: flex;
  flex-direction: column;
}
.crm-exp-section__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 2px;
}
.crm-exp-section__count {
  font-weight: 400;
  color: var(--muted);
}
.crm-exp-empty {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
}
.crm-exp-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.crm-exp-person:last-child {
  border-bottom: none;
}
.crm-exp-person__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.crm-exp-person__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.crm-exp-person__email {
  font-size: 12px;
  color: var(--muted);
}
.crm-exp-person__spacer {
  flex: 1;
}
.crm-exp-person__touch {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.crm-exp-opp {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 4px;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 80ms;
  border-radius: 6px;
}
.crm-exp-opp:last-child {
  border-bottom: none;
}
.crm-exp-opp:hover {
  background: rgba(0,0,0,0.02);
}
.crm-exp-opp__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.crm-exp-opp__title {
  font-size: 13px;
  font-weight: 500;
}
.crm-exp-opp__sub {
  font-size: 12px;
  color: var(--muted);
}
.crm-opportunity-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 180px;
}
.crm-opportunity-cell__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.crm-contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crm-contact-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--hover);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
}
.crm-contact-pill.is-primary {
  background: #dcfce7;
  color: #166534;
}
.crm-mini-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crm-mini-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.crm-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.crm-status-pill--to-reach-out {
  background: #eff6ff;
  color: #1d4ed8;
}
.crm-status-pill--outreach-sent {
  background: #fef3c7;
  color: #92400e;
}
.crm-status-pill--waiting {
  background: #f3f4f6;
  color: #4b5563;
}
.crm-status-pill--follow-up {
  background: #fff7ed;
  color: #c2410c;
}
.crm-status-pill--meeting-scheduled {
  background: #ede9fe;
  color: #6d28d9;
}
.crm-status-pill--active {
  background: #dcfce7;
  color: #166534;
}
.crm-status-pill--replied {
  background: #dbeafe;
  color: #1d4ed8;
}
.crm-status-pill--warm {
  background: #fef9c3;
  color: #854d0e;
}
.crm-status-pill--inactive {
  background: #f3f4f6;
  color: #6b7280;
}
.crm-audience-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}
.crm-audience-card {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 100ms;
}
.crm-audience-card:hover {
  background: var(--hover);
}
.crm-audience-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.crm-audience-card__name {
  font-weight: 600;
  font-size: 14px;
}
.crm-audience-card__desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.crm-audience-card__bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.crm-avatar-stack {
  display: flex;
  align-items: center;
}
.crm-avatar-stack .crm-avatar {
  margin-left: -6px;
  border: 2px solid var(--card);
}
.crm-avatar-stack .crm-avatar:first-child {
  margin-left: 0;
}
.crm-avatar-stack__overflow {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.crm-audience-card__meta {
  font-size: 12px;
  color: var(--muted);
}
.crm-empty {
  padding: 48px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.crm-empty__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.crm-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 960px) {
  .crm-detail-grid {
    grid-template-columns: 1fr;
  }
}
.form__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  z-index: 20;
}
.modal__card {
  width: min(400px, 100%);
  margin: auto 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.modal__card--wide {
  width: min(640px, 100%);
}
.modal__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.modal__card > .muted {
  margin: 0 0 20px;
}
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.modal__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.email-context {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--hover);
}
.email-context__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.email-context__title {
  font-size: 15px;
  font-weight: 600;
}
.email-context__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.email-context__line {
  font-size: 13px;
  color: var(--muted);
}
.email-context__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.email-context__item {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.email-notice {
  font-size: 12px;
  color: var(--muted);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 30;
}
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 150ms;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.dropzone.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.dropzone__icon {
  color: var(--muted);
  margin-bottom: 8px;
}
.dropzone__text {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}
.dropzone__browse {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
}
.dropzone p.muted {
  margin: 4px 0 0;
}
.file-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.file-preview__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
}
.file-preview__remove {
  background: none;
  border: none;
  font: inherit;
  font-size: 12px;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
}
.links-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.links-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.link-row .input {
  flex: 1;
}
.link-row__label {
  max-width: 120px;
}
.group-header td {
  padding: 10px 16px !important;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--hover) !important;
  border-bottom: 1px solid var(--border) !important;
  cursor: default !important;
}
.group-header:hover {
  background: var(--hover) !important;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--sidebar-border);
    padding: 10px 14px;
    gap: 8px;
  }
  .sidebar__brand {
    padding: 2px 4px 6px;
  }
  .sidebar__section-label {
    display: none;
  }
  .sidebar__nav-wrap {
    margin: 0 -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .sidebar__nav {
    flex-direction: row;
    flex-wrap: nowrap;
    min-width: max-content;
    gap: 4px;
  }
  .view-tab {
    flex: 0 0 auto;
    min-width: 110px;
  }
  .view-tab__icon {
    display: none;
  }
  .sidebar__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border-top: none;
    padding-top: 4px;
    margin-top: 0;
  }
  .sidebar__footer .btn, .sidebar__footer .btn--sidebar {
    width: auto;
    flex: 1 1 180px;
  }
  .sidebar__auth-row {
    padding: 0;
  }
  .workspace-header {
    padding: 20px 20px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .workspace-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .workspace-body {
    padding: 20px;
  }
  .metrics-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .pipeline-legend {
    gap: 8px;
  }
  .tbl--deadline {
    min-width: 760px;
  }
  .tbl--pipeline {
    min-width: 820px;
  }
  .tbl th, .tbl td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .tbl .cell-opp {
    min-width: 240px;
  }
  .tbl--deadline .cell-opp {
    min-width: 300px;
  }
  .tbl--deadline .economics-stack, .tbl--pipeline .economics-stack {
    min-width: 180px;
  }
  .form__grid {
    grid-template-columns: 1fr;
  }
  .activity-composer {
    grid-template-columns: 1fr;
  }
  .tbl .hide-mobile {
    display: none;
  }
  .resource-links {
    grid-template-columns: 1fr;
  }
  .follow-up-grid {
    grid-template-columns: 1fr;
  }
  .drawer {
    width: 100%;
    padding: 20px 18px;
  }
  .crm-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
  }
  .crm-nav__tabs {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 3px;
  }
  .crm-nav__tab {
    flex: 0 0 auto;
  }
  .crm-nav__actions {
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
  }
  .crm-view-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 12px;
  }
  .crm-view-pills {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .crm-view-pill {
    flex: 0 0 auto;
  }
  .crm-search {
    width: 100%;
  }
  .crm-search__input, .crm-search__input:focus {
    width: 100%;
  }
  .modal {
    padding: 16px;
  }
  .modal__card--wide {
    width: min(720px, 100%);
  }
}
@media (max-width: 540px) {
  .sidebar {
    padding: 10px 12px;
    gap: 8px;
  }
  .sidebar__nav-wrap {
    margin: 0 -12px;
    padding: 0 12px 4px;
  }
  .view-tab {
    min-width: 100px;
    padding: 6px 10px;
  }
  .view-tab__count {
    min-width: 22px;
    padding-inline: 5px;
  }
  .metrics-strip {
    grid-template-columns: 1fr 1fr;
  }
  .metric-cell {
    padding: 12px 16px;
  }
  .metric-cell__value {
    font-size: 20px;
  }
  .workspace-header {
    padding: 18px 16px 0;
  }
  .page-header {
    margin-bottom: 0;
  }
  .page-header h1 {
    font-size: 20px;
  }
  .page-header p {
    font-size: 13px;
  }
  .workspace-actions {
    display: flex;
    flex-direction: column;
  }
  .workspace-actions .btn {
    width: 100%;
  }
  .pipeline-bar {
    height: 28px;
  }
  .pipeline-legend {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    margin-right: -2px;
  }
  .pipeline-legend__item {
    flex: 0 0 auto;
  }
  .tbl--deadline {
    min-width: 620px;
  }
  .tbl--pipeline {
    min-width: 680px;
  }
  .tbl th, .tbl td {
    padding-left: 10px;
    padding-right: 10px;
  }
  .tbl .cell-opp {
    min-width: 220px;
  }
  .tbl--deadline .cell-opp {
    min-width: 240px;
  }
  .drawer {
    padding: 16px;
  }
  .drawer__top, .quick-intake__top, .links-header, .resource-dock__top, .docs-section__top, .email-intake-card__top, .crm-audience-card__top, .crm-audience-card__bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .quick-intake__top .btn, .links-header .btn, .resource-dock__top .btn {
    width: 100%;
  }
  .link-row, .doc-row {
    flex-direction: column;
    align-items: stretch;
  }
  .link-row__label {
    max-width: none;
  }
  .doc-row__actions, .share-actions, .activity-row__actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .doc-row__actions > *, .share-actions .btn, .activity-row__actions .btn {
    width: 100%;
  }
  .conv-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .conv-row__stat, .conv-row__pct {
    text-align: left;
  }
  .email-history-row__top {
    flex-direction: column;
    align-items: stretch;
  }
  .locked-view__card, .empty-state, .crm-empty {
    padding: 24px 18px;
  }
  .crm-nav__actions {
    align-items: stretch;
  }
  .crm-view-bar {
    padding: 12px 16px 10px;
  }
  .crm-table {
    min-width: 560px;
  }
  .crm-subtable {
    min-width: 420px;
  }
  .modal {
    align-items: end;
    padding: 12px;
  }
  .modal__card, .modal__card--wide {
    width: 100%;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 14px;
  }
  .modal__actions, .form__actions {
    flex-direction: column-reverse;
  }
  .modal__actions .btn, .form__actions .btn {
    width: 100%;
  }
  .workspace-body {
    padding: 16px;
  }
  .workspace-card {
    padding: 16px;
    border-radius: var(--radius-lg);
  }
  .workspace-card--table, .workspace-card--crm {
    padding: 0;
  }
  .workspace-card--table > .setup-banner, .workspace-card--table > .empty-state, .workspace-card--table > .pagination {
    margin: 16px;
  }
}
@media (max-width: 420px) {
  .sidebar__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .sidebar__footer .btn, .sidebar__footer .btn--sidebar {
    width: 100%;
    flex: none;
  }
  .workspace-actions {
    grid-template-columns: 1fr;
  }
}
