/*
 * TPT Timing Board — visual system
 *
 * This file deliberately sits on top of the legacy inline styles in
 * index.html. Keep it linked after that block so the application can retain
 * its existing markup and behaviour while using the dashboard design.
 */

:root {
  color-scheme: light;

  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-alt: #f7f9fd;
  --line: #dce5f1;
  --line-soft: #eaf0f7;

  --ink: #071a45;
  --ink-soft: #526589;
  --ink-faint: #8796b3;

  --accent: #1563ee;
  --accent-soft: #eaf1ff;
  --accent-strong: #0b4fcf;

  --moon-lit: #071a45;
  --moon-shadow: #ffffff;

  --optimal: #16a66a;
  --optimal-bg: #e9f8f1;
  --early: #2468dc;
  --early-bg: #edf3ff;
  --late: #ef4355;
  --late-bg: #ffebee;

  --tier-reach: #ff4f5f;
  --tier-reach-bg: #fff0f2;
  --tier-momentum: #f59a2c;
  --tier-momentum-bg: #fff5e8;
  --tier-monitor: #4b6fa8;
  --tier-monitor-bg: #eef3fa;

  --icon-blue: #2c6df2;
  --icon-blue-bg: #edf3ff;
  --icon-red: #ff5664;
  --icon-red-bg: #fff0f2;
  --icon-orange: #f69a2d;
  --icon-orange-bg: #fff5e7;
  --icon-purple: #8257ec;
  --icon-purple-bg: #f2edff;
  --icon-green: #22b77b;
  --icon-green-bg: #eaf9f3;

  --navy-header: #05122c;
  --navy-nav: #071733;
  --navy-line: #142745;
  --navy-text: #f6f8ff;
  --navy-text-soft: #abb7cf;

  --shadow-xs: 0 1px 2px rgba(20, 42, 83, 0.045);
  --shadow-sm: 0 4px 12px rgba(20, 42, 83, 0.075);
  --shadow-md: 0 14px 34px rgba(20, 42, 83, 0.12);
  --shadow-lg: 0 28px 70px rgba(9, 28, 66, 0.18);
  --shadow-focus: 0 0 0 3px rgba(21, 99, 238, 0.16);

  --radius: 12px;
  --sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-pad: 38px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(72, 118, 210, 0.07), transparent 28rem),
    radial-gradient(circle at 94% 32%, rgba(118, 84, 228, 0.045), transparent 25rem),
    linear-gradient(180deg, #f7f9fd 0%, var(--bg) 36rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[role="button"],
.chip,
.lead-card,
.company-card,
.ai-pick,
.sponsor-row {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

::selection {
  background: #cfe0ff;
  color: var(--ink);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Header --------------------------------------------------------------- */

header.top {
  position: relative;
  z-index: 12;
  min-height: 72px;
  padding: 12px var(--page-pad) 11px;
  border: 0;
  background:
    radial-gradient(circle at 38% -110%, rgba(46, 111, 230, 0.26), transparent 47%),
    radial-gradient(circle at 96% 120%, rgba(69, 111, 195, 0.12), transparent 34%),
    linear-gradient(104deg, #051027 0%, #04132d 58%, #061a35 100%);
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.025);
  color: var(--navy-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}

header.top .brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 156px;
  height: 34px;
  display: block;
  flex: 0 0 156px;
  object-fit: contain;
  object-position: left center;
}

.brand-divider {
  width: 1px;
  height: 31px;
  flex: 0 0 1px;
  background: linear-gradient(180deg, transparent, rgba(194, 207, 232, 0.38), transparent);
}

.brand-product {
  min-width: 0;
}

header.top h1 {
  margin: 0;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -0.08px;
}

header.top .tagline {
  max-width: 620px;
  margin-top: 5px;
  overflow: hidden;
  color: #b8c4da;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.live-pill {
  max-width: min(610px, 52vw);
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  color: #bdc7db;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
  background: #22ca68;
  box-shadow: none;
}

.live-pill b {
  color: #19ce68;
  font-weight: 650;
  text-transform: capitalize;
}

.header-refresh {
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  outline: 0;
  background: transparent;
  color: #8795b1;
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, transform 180ms ease;
}

.header-refresh .icon {
  width: 18px;
  height: 18px;
}

.header-refresh:hover,
.header-refresh:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.header-refresh:active {
  transform: rotate(45deg);
}

.header-refresh.is-loading .icon {
  animation: header-refresh-spin 700ms linear infinite;
}

@keyframes header-refresh-spin {
  to { transform: rotate(360deg); }
}

.bell-btn {
  position: relative;
  z-index: auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #a8b5cc;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}

.bell-btn:hover,
.bell-btn:focus-visible {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.bell-btn .icon {
  width: 19px;
  height: 19px;
}

.bell-btn .bell-count {
  top: -1px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1.5px solid var(--navy-nav);
  border-radius: 10px;
  background: #2871ee;
  color: #fff;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  line-height: 13px;
}

.avatar-circle {
  position: static;
  z-index: auto;
  width: 35px;
  height: 35px;
  border: 1px solid #3656ce;
  border-radius: 50%;
  background: #0b1d4c;
  box-shadow: 0 0 0 2px rgba(14, 30, 75, 0.8);
  color: #f4f7ff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1px;
}

.avatar-circle .icon {
  width: 17px;
  height: 17px;
}

.header-chevron {
  position: static;
  z-index: auto;
  width: 14px;
  height: 14px;
  color: #9cabc4;
}

nav.main-nav {
  position: relative;
  z-index: 10;
  min-height: 48px;
  padding: 0 calc(var(--page-pad) + 1px);
  border: 0;
  border-bottom: 1px solid #172d4f;
  overflow-x: auto;
  background: linear-gradient(95deg, #06132c, #071a36 72%, #06162f);
  box-shadow: 0 8px 22px rgba(5, 18, 44, 0.08);
  display: flex;
  align-items: stretch;
  gap: 18px;
  scrollbar-width: none;
}

nav.main-nav::-webkit-scrollbar {
  display: none;
}

nav.main-nav a {
  position: relative;
  min-height: 48px;
  margin: 0;
  padding: 0 13px;
  border: 0;
  color: #c3ccde;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 480;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

nav.main-nav a:hover,
nav.main-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.025);
}

nav.main-nav a.active {
  border: 0;
  color: #ffffff;
  font-weight: 600;
}

nav.main-nav a.active::after {
  background: #2478ff;
  box-shadow: 0 -2px 10px rgba(36, 120, 255, 0.34);
}

nav.main-nav a svg,
nav.main-nav a.active svg {
  width: 18px;
  height: 18px;
  color: #9eacc5;
  opacity: 1;
}

nav.main-nav a.active svg {
  color: #3e83ff;
}

nav.main-nav a .badge {
  min-width: 37px;
  padding: 3px 7px;
  border-radius: 11px;
  background: rgba(197, 207, 225, 0.48);
  color: #f8faff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}

.nav-account {
  min-width: 126px;
  min-height: 48px;
  margin-left: auto;
  padding-left: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: none;
}

/* Reset the general nav-link geometry for the icon-only agenda control. */
nav.main-nav .nav-account .bell-btn {
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #a8b5cc;
  display: grid;
}

nav.main-nav .nav-account .bell-btn::after {
  display: none;
}

nav.main-nav .nav-account .bell-btn:hover,
nav.main-nav .nav-account .bell-btn:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

nav.main-nav .nav-account .bell-btn .icon {
  width: 19px;
  height: 19px;
  color: currentColor;
}

/* Stats --------------------------------------------------------------- */

.stats-strip {
  width: 100%;
  padding: 22px var(--page-pad) 20px;
  background: linear-gradient(180deg, rgba(231, 238, 249, 0.58), rgba(244, 247, 251, 0));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  position: relative;
  min-width: 0;
  min-height: 132px;
  padding: 19px 19px 12px;
  border: 1px solid rgba(210, 222, 238, 0.92);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(249, 251, 255, 0.98));
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas:
    "icon number"
    "icon label"
    "icon detail"
    "spark spark";
  column-gap: 14px;
  align-content: start;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: #c8d7e9;
  box-shadow: var(--shadow-md);
}

.stat::after {
  content: "";
  position: absolute;
  top: -44px;
  right: -38px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(44, 109, 242, 0.035);
  pointer-events: none;
}

.stat.red::after { background: rgba(255, 82, 98, 0.035); }
.stat.orange::after { background: rgba(246, 158, 45, 0.04); }
.stat.green::after { background: rgba(34, 183, 123, 0.04); }
.stat.purple::after { background: rgba(126, 81, 232, 0.04); }

.stat-icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 13px rgba(44, 109, 242, 0.2);
}

.stat-icon .icon {
  width: 25px;
  height: 25px;
  color: #ffffff;
  stroke-width: 1.9;
}

.stat.blue .stat-icon {
  background: linear-gradient(145deg, #5b7cff, #3565ee);
  box-shadow: 0 6px 14px rgba(61, 99, 239, 0.25);
}

.stat.red .stat-icon {
  background: linear-gradient(145deg, #ff7380, #ff5262);
  box-shadow: 0 6px 14px rgba(255, 82, 98, 0.22);
}

.stat.orange .stat-icon {
  background: linear-gradient(145deg, #ffa060, #f6a726);
  box-shadow: 0 6px 14px rgba(246, 158, 45, 0.23);
}

.stat.green .stat-icon {
  background: linear-gradient(145deg, #45c995, #2ab779);
  box-shadow: 0 6px 14px rgba(34, 183, 123, 0.22);
}

.stat.purple .stat-icon {
  background: linear-gradient(145deg, #986df4, #7750e7);
  box-shadow: 0 6px 14px rgba(126, 81, 232, 0.23);
}

.stat .n {
  grid-area: number;
  align-self: end;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.55px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat .l {
  grid-area: label;
  margin-top: 4px;
  color: #142b5b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
}

.stat .d {
  grid-area: detail;
  margin-top: 4px;
  overflow: hidden;
  color: #7385a6;
  font-size: 9.5px;
  font-weight: 450;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sparkline {
  grid-area: spark;
  align-self: end;
  width: 100%;
  height: 31px;
  margin: 6px 0 -5px;
  overflow: visible;
}

/* Main shell and controls --------------------------------------------- */

main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2px var(--page-pad) 64px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-in 180ms ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

.toolbar {
  min-height: 40px;
  margin: 0 0 16px;
  padding: 9px;
  border: 1px solid rgba(216, 226, 239, 0.96);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 18px rgba(22, 48, 91, 0.065);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: nowrap;
}

#view-dashboard > .toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto auto 212px;
}

.toolbar input[type="search"],
.toolbar input[type="text"],
.toolbar input[type="date"],
.form-row input,
.form-row select,
.reschedule-form input[type="date"],
#detail-panel input[type="date"] {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  font-family: var(--sans);
  font-size: 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.toolbar input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 9px 14px 9px 48px;
  border-radius: 9px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235b70a0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 17px 50%;
  color: var(--ink);
  font-size: 11.5px;
}

.toolbar input::placeholder,
.form-row input::placeholder {
  color: #7d8eae;
  opacity: 1;
}

.toolbar input:focus,
.form-row input:focus,
.form-row select:focus,
.reschedule-form input:focus,
#detail-panel input:focus,
.sw-table input[type="number"]:focus {
  border-color: #68a0ff;
  box-shadow: var(--shadow-focus);
}

.chip-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.chip {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(20, 42, 83, 0.055);
  color: #39517d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 520;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, border-color 120ms ease, color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: #b9c8dd;
  color: #133878;
  box-shadow: var(--shadow-sm);
}

.chip:focus-visible,
.view-toggle button:focus-visible,
.btn:focus-visible,
.bell-btn:focus-visible,
nav.main-nav a:focus-visible,
.lead-card:focus-visible,
.company-card:focus-visible,
.ai-pick:focus-visible {
  outline: 0;
  box-shadow: var(--shadow-focus);
}

.chip.active,
.chip.active[data-stage="Optimal"],
.chip.active[data-stage="Late to Engage"] {
  border-color: var(--accent);
  background: linear-gradient(135deg, #1667f0, #0758df);
  box-shadow: 0 6px 14px rgba(21, 99, 238, 0.22);
  color: #ffffff;
  font-weight: 650;
}

#stage-filters {
  gap: 10px;
}

#stage-filters .chip {
  position: relative;
  min-width: 117px;
  padding: 8px 14px 8px 28px;
}

#stage-filters .chip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--ink-faint);
}

#stage-filters .chip[data-stage="Optimal"]::before {
  background: #24b87e;
}

#stage-filters .chip[data-stage="Early to Engage"]::before {
  background: #296ee8;
}

#stage-filters .chip[data-stage="Late to Engage"]::before {
  background: #f59a35;
}

#stage-filters .chip.active::before {
  background: #ffffff;
}

#region-filters,
#companies-region-filters {
  gap: 8px;
}

#region-filters .chip,
#companies-region-filters .chip {
  min-width: 55px;
  padding-inline: 14px;
}

select#service-filter,
select.sort-select {
  min-height: 38px;
  padding: 8px 36px 8px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background-color: #ffffff;
  color: #334b77;
  box-shadow: var(--shadow-xs);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

select#service-filter {
  width: 100%;
}

select#service-filter:hover,
select.sort-select:hover {
  border-color: #bdcadd;
}

select#service-filter:focus,
select.sort-select:focus {
  border-color: #68a0ff;
  box-shadow: var(--shadow-focus);
}

/* AI recommendations -------------------------------------------------- */

.ai-suggestions-panel {
  min-height: 0;
  margin: 0 0 14px;
  padding: 14px 14px 15px;
  border: 1px solid #d5e0ef;
  border-radius: 15px;
  background:
    radial-gradient(circle at 0 0, rgba(43, 111, 241, 0.05), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.97));
  box-shadow: 0 6px 20px rgba(22, 48, 91, 0.075);
}

.ai-suggestions-head {
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ai-suggestions-head .htext {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.ai-suggestions-head .htext > div:last-child {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.ai-title-icon {
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 0;
  flex: 0 0 17px;
  background: transparent;
  color: #f5a623;
  display: grid;
  place-items: center;
}

.ai-title-icon .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.ai-badge {
  color: #0c2555;
  display: inline;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.2;
  white-space: nowrap;
}

.ai-subtitle {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #7485a4;
  font-size: 10px;
  font-weight: 450;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn,
.agenda-row button {
  min-height: 31px;
  padding: 7px 12px;
  border: 1px solid #bfd2fa;
  border-radius: 9px;
  outline: 0;
  background: #ffffff;
  color: #1556cf;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.btn:hover,
.agenda-row button:hover {
  transform: translateY(-1px);
  border-color: #6c9df3;
  background: #f4f8ff;
  color: #0c4ac2;
}

.btn:active,
.agenda-row button:active {
  transform: translateY(0);
}

.btn:disabled {
  transform: none;
  opacity: 0.48;
  cursor: default;
}

.btn.primary {
  border-color: var(--accent);
  background: linear-gradient(135deg, #2474f5, #0a58df);
  color: #ffffff;
  box-shadow: 0 7px 16px rgba(21, 99, 238, 0.22);
}

.btn.primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.btn.ai-refresh-btn {
  min-height: 29px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.btn.ai-refresh-btn .icon {
  width: 13px;
  height: 13px;
}

.ai-picks-list {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ai-pick {
  position: relative;
  min-width: 0;
  min-height: 185px;
  padding: 14px 15px 12px;
  border: 1px solid #dde5f0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 13% 4%, rgba(50, 112, 236, 0.035), transparent 37%),
    #fbfcff;
  box-shadow: 0 3px 10px rgba(35, 61, 105, 0.055);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.ai-pick:hover {
  transform: translateY(-3px);
  border-color: #c2d1e5;
  box-shadow: var(--shadow-md);
}

.ai-pick-top {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ai-pick-icon {
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 11px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(36, 77, 145, 0.07);
}

.ai-pick-icon .icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.ai-pick-name {
  min-width: 0;
  color: #081e4c;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.ai-pick-title {
  color: inherit;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font: inherit;
}

.ai-pick-sponsor {
  margin-top: 5px;
  color: #7184a6;
  display: block;
  font-size: 9.5px;
  font-weight: 450;
  line-height: 1.25;
}

.ai-pick-name .meta {
  display: block;
  margin-top: 5px;
  color: #7184a6;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 450;
  line-height: 1.25;
}

.ai-pick-reason {
  margin-top: 12px;
  color: #5b6f92;
  font-size: 10.25px;
  font-weight: 450;
  line-height: 1.38;
}

.ai-pick-badges {
  min-height: 24px;
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.ai-pick-badges > :last-child {
  margin-left: auto;
  color: #155edf;
}

.ai-countdown-pill {
  color: #53698f;
}

.ai-window-pill {
  margin-left: auto;
  background: transparent;
  color: #155edf;
  font-weight: 650;
}

.pill {
  padding: 2px 7px;
  border: 0;
  border-radius: 6px;
  background: #f1f4fa;
  color: #52678d;
  display: inline-block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 550;
  line-height: 1.35;
  white-space: nowrap;
}

.ai-suggestions-panel > .ai-meta {
  display: none;
}

#ai-suggestions-leads {
  min-height: 258px;
}

/* Dashboard lower region --------------------------------------------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.sidebar-stack {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.view-controls {
  min-height: 32px;
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: nowrap;
}

.view-controls .chip-group {
  gap: 7px;
}

.view-controls .chip {
  min-width: 59px;
  min-height: 30px;
  padding: 6px 13px;
  font-size: 10px;
}

.view-controls .result-count {
  order: 2;
  margin-right: 7px;
  margin-left: auto;
  color: #7183a3;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 450;
  white-space: nowrap;
}

.view-controls .chip-group {
  order: 1;
}

.view-controls select.sort-select {
  order: 3;
  width: 183px;
  min-height: 32px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.view-toggle {
  order: 4;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  display: flex;
}

.view-toggle button {
  width: 36px;
  height: 30px;
  padding: 0;
  border: 0;
  background: #ffffff;
  color: #8090ad;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease;
}

.view-toggle button + button {
  border-left: 1px solid var(--line-soft);
}

.view-toggle button:hover {
  background: #f4f7fc;
  color: var(--accent);
}

.view-toggle button.active {
  background: #eef4ff;
  color: #155bdb;
}

.view-toggle .icon {
  width: 14px;
  height: 14px;
}

.lead-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.lead-card {
  position: relative;
  min-width: 0;
  min-height: 208px;
  padding: 13px 15px 12px;
  border: 1px solid #dae4ef;
  border-left: 2px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.995), rgba(250, 252, 255, 0.98));
  box-shadow: 0 4px 12px rgba(27, 54, 98, 0.06);
  display: flex;
  align-items: stretch;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.lead-card:hover {
  transform: translateY(-3px);
  border-color: #c8d4e5;
  box-shadow: var(--shadow-md);
}

.lead-card.tier-reach-out-now {
  border-left-color: var(--tier-reach);
}

.lead-card.tier-building-momentum {
  border-left-color: var(--tier-momentum);
}

.lead-card.tier-keep-monitoring {
  border-left-color: var(--tier-monitor);
}

.lc-main {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.lc-head {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lc-head .moon-icon {
  width: 11px;
  height: 11px;
}

.lc-head .tag {
  margin-right: auto;
}

.tag {
  padding: 2px 7px;
  border: 0;
  border-radius: 6px;
  display: inline-block;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag.Low {
  background: #eff3f4;
  color: #556b69;
}

.tag.Medium {
  background: #fff4df;
  color: #b37112;
}

.tag.High {
  background: #fff1df;
  color: #d67a17;
}

.tag.Critical {
  background: #ffeaed;
  color: #f23e52;
}

.tag[data-cat="To be assessed"] {
  background: #f1edfa;
  color: #74589b;
}

.lc-score {
  min-width: 29px;
  padding: 2px 7px;
  border: 0;
  border-radius: 11px;
  background: #edf3ff;
  color: #135cd9;
  flex: none;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 720;
  line-height: 1.45;
  text-align: center;
}

.lc-score.sm {
  min-width: 26px;
  margin-left: auto;
  padding: 1px 6px;
  font-size: 8.5px;
}

.lc-title {
  margin-top: 8px;
  color: #071b49;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.36;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow-wrap: anywhere;
}

.lc-sponsor {
  margin-top: 6px;
  color: #64789d;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 9.75px;
  font-weight: 450;
}

.lc-meta {
  margin-top: 7px;
  color: #8190ab;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.lc-footer {
  min-height: 31px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #e8edf4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lc-footer .countdown {
  color: #465c82;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 550;
}

.lc-footer .countdown::before {
  content: none;
}

.lc-footer .countdown .icon {
  width: 12px;
  height: 12px;
  color: #6f83a8;
  flex: 0 0 12px;
  stroke-width: 1.9;
}

.lc-footer .optimal-count {
  color: #079965;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 650;
}

.lc-footer .optimal-count.zero {
  color: #9aa7ba;
  font-weight: 500;
}

.lc-facts {
  min-height: 18px;
  margin-top: 5px;
  padding-right: 23px;
  color: #566b90;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
}

.lc-facts > span:first-child::before {
  content: none;
}

.contact-fact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contact-fact .icon {
  width: 11px;
  height: 11px;
  color: #7587a7;
  flex: 0 0 11px;
  stroke-width: 1.9;
}

.lc-facts .fact-warn {
  color: var(--late);
}

.src-badge,
.region-badge {
  margin: 0;
  padding: 1px 6px;
  border: 0;
  border-radius: 6px;
  background: #eff3f9;
  color: #52678c;
  display: inline-block;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: nowrap;
}

.src-badge.ctgov {
  background: #edf1f7;
  color: #52647f;
}

.src-badge.fda {
  background: #edf3ff;
  color: #2a63bf;
}

.src-badge.manual {
  background: #f2edfa;
  color: #705892;
}

.region-badge.fact-good,
.agenda-facts .fact-good {
  background: var(--optimal-bg);
  color: var(--optimal);
}

.card-chevron {
  position: absolute;
  right: 13px;
  bottom: 14px;
  width: 13px;
  height: 13px;
  color: #4f6e9f;
}

.lead-card-grid.list-mode {
  grid-template-columns: 1fr;
}

.lead-card-grid.list-mode .lead-card {
  min-height: 0;
  padding: 12px 16px;
}

.lead-card-grid.list-mode .lc-main {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(150px, 1fr) auto;
  grid-template-areas:
    "head sponsor footer"
    "title meta facts";
  column-gap: 16px;
  align-items: center;
}

.lead-card-grid.list-mode .lc-head { grid-area: head; }
.lead-card-grid.list-mode .lc-title { grid-area: title; margin-top: 4px; }
.lead-card-grid.list-mode .lc-sponsor { grid-area: sponsor; margin-top: 0; }
.lead-card-grid.list-mode .lc-meta { grid-area: meta; margin-top: 0; }
.lead-card-grid.list-mode .lc-footer { grid-area: footer; min-width: 155px; margin: 0; padding: 0; border: 0; }
.lead-card-grid.list-mode .lc-facts { grid-area: facts; margin: 0; justify-content: flex-end; }

.pagination-controls {
  min-height: 38px;
  margin-top: 18px;
  text-align: center;
}

.pagination-controls .btn {
  min-height: 36px;
  padding: 9px 18px;
}

/* Sidebar panels ------------------------------------------------------ */

.panel {
  border: 1px solid #d8e2ee;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff, #fbfcff);
  box-shadow: 0 5px 16px rgba(22, 48, 91, 0.07);
}

.panel h2 {
  min-height: 46px;
  margin: 0;
  padding: 13px 15px;
  border-bottom: 1px solid #e9eef5;
  background: rgba(248, 250, 254, 0.74);
  color: #122958;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.panel h2::before { display: none; }

.panel-heading {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-heading .icon {
  width: 14px;
  height: 14px;
  color: #155ede;
  flex: 0 0 14px;
}

.panel h2 .count {
  margin-left: auto;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
}

.panel h2 a.view-all {
  margin-left: auto;
  color: #155ede;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.panel h2 a.view-all:hover {
  text-decoration: none;
  color: #073fae;
}

.agenda-row {
  min-height: 57px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf1f6;
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background-color 120ms ease;
}

.agenda-row:hover {
  background: #f9fbfe;
}

.agenda-row:last-child {
  border-bottom: 0;
}

.agenda-row .due {
  min-width: 65px;
  padding-top: 1px;
  color: #3d5279;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 550;
  line-height: 1.3;
  white-space: nowrap;
}

.agenda-row.overdue .due {
  color: var(--late);
  font-weight: 700;
}

.agenda-row .body {
  min-width: 0;
  flex: 1;
}

.agenda-row .title {
  overflow: hidden;
  color: #132a59;
  font-size: 10.5px;
  font-weight: 620;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.agenda-row .title:hover {
  color: var(--accent);
}

.agenda-row .sub {
  margin-top: 4px;
  overflow: hidden;
  color: #7787a4;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 450;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-row .actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.agenda-row .actions button {
  min-height: 28px;
  padding: 6px 8px;
  font-size: 9px;
}

.agenda-row button.dismiss:hover {
  border-color: #f2a1aa;
  background: #fff5f6;
  color: var(--late);
}

.priority-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 720;
}

.priority-badge.high {
  background: var(--late-bg);
  color: var(--late);
}

.priority-badge.medium {
  background: var(--tier-momentum-bg);
  color: #c47714;
}

.priority-badge.low {
  background: #eff3f8;
  color: #657590;
}

.agenda-facts {
  margin-top: 7px;
  color: #667b9f;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 9px;
}

.agenda-section-label {
  padding: 10px 15px 6px;
  border-bottom: 1px solid #e8edf4;
  background: #f7f9fc;
  color: #627492;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.sponsor-row {
  min-height: 55px;
  padding: 9px 13px;
  border-bottom: 1px solid #edf1f6;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.sponsor-row:last-child {
  border-bottom: 0;
}

.sponsor-row:hover {
  background: #f7faff;
}

.sponsor-row .name {
  min-width: 0;
  color: #122957;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}

.avatar-badge {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex: 0 0 24px;
  font-size: 10px;
  font-weight: 750;
}

.sponsor-row .figs {
  margin-top: 4px;
  padding-left: 31px;
  color: #687b9e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 450;
}

.sponsor-row .figs b {
  color: #079763;
  font-size: inherit;
  font-weight: 700;
}

#agenda-preview,
#sponsors-preview {
  scrollbar-color: #8c98aa transparent;
  scrollbar-width: thin;
}

#agenda-preview {
  max-height: 210px !important;
}

#agenda-preview::-webkit-scrollbar,
#sponsors-preview::-webkit-scrollbar,
#detail-panel::-webkit-scrollbar {
  width: 6px;
}

#agenda-preview::-webkit-scrollbar-thumb,
#sponsors-preview::-webkit-scrollbar-thumb,
#detail-panel::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #8c98aa;
}

/* Companies ----------------------------------------------------------- */

#view-companies > .toolbar {
  justify-content: flex-start;
}

#view-companies > .toolbar input[type="search"] {
  max-width: 520px;
}

#companies-page-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 11px 14px;
}

#companies-page-list > .tier-section-label {
  grid-column: 1 / -1;
}

.company-card {
  min-width: 0;
  min-height: 98px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #dae4ef;
  border-left: 3px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #fbfcff);
  box-shadow: 0 3px 10px rgba(27, 54, 98, 0.055);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.company-card:hover {
  transform: translateY(-3px);
  border-color: #c8d4e5;
  box-shadow: var(--shadow-md);
}

.company-card.tier-reach-out-now { border-left-color: var(--tier-reach); }
.company-card.tier-building-momentum { border-left-color: var(--tier-momentum); }
.company-card.tier-keep-monitoring { border-left-color: var(--tier-monitor); }

.company-card .cc-main {
  min-width: 0;
  flex: 1;
}

.company-card .cc-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-card .name {
  min-width: 0;
  color: #102858;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  font-size: 12.5px;
  font-weight: 680;
}

.company-card .figs {
  margin-top: 10px;
  color: #667b9f;
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 9.5px;
}

.company-card .figs b {
  color: var(--optimal);
}

.company-card .cc-research,
.contact-card .cc-contact-research {
  margin-top: 10px;
  cursor: default;
}

.cc-research-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 10px;
  font-size: 10.5px;
  color: var(--icon-purple);
  border-color: var(--icon-purple-bg);
  background: var(--icon-purple-bg);
}

.cc-research-btn:hover {
  border-color: var(--icon-purple);
  background: var(--icon-purple-bg);
  color: var(--icon-purple);
}

.cc-research-btn .icon {
  width: 13px;
  height: 13px;
}

.cc-research-body {
  margin-top: 8px;
  padding: 12px 13px;
  border: 1px solid var(--icon-purple-bg);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--icon-purple-bg) 0%, #ffffff 65%);
}

.research-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--icon-purple);
}

.research-flag .icon {
  width: 12px;
  height: 12px;
}

.research-hook {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.research-angle {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cr-label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.research-sources {
  margin-top: 10px;
}

.research-sources ul {
  margin: 5px 0 0;
  padding-left: 17px;
}

.research-sources li {
  font-size: 11px;
  margin-bottom: 3px;
}

.research-sources a {
  color: var(--accent);
  text-decoration: none;
}

.research-sources a:hover {
  text-decoration: underline;
}

.research-focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.research-focus-chips .chip {
  min-height: 24px;
  padding: 4px 10px;
  font-size: 9.5px;
}

.research-result {
  margin-top: 10px;
}

.cc-research-body .cc-research-generate {
  margin-top: 10px;
  min-height: 27px;
  padding: 5px 10px;
  font-size: 10px;
}

.tier-section-label {
  margin: 14px 0 0;
  padding: 8px 12px;
  border-radius: 7px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.tier-section-label:first-child {
  margin-top: 0;
}

.tier-section-label.tier-reach-out-now {
  background: var(--tier-reach-bg);
  color: var(--tier-reach);
}

.tier-section-label.tier-building-momentum {
  background: var(--tier-momentum-bg);
  color: #c47714;
}

.tier-section-label.tier-keep-monitoring {
  background: var(--tier-monitor-bg);
  color: var(--tier-monitor);
}

/* Agenda, forms, service-window table -------------------------------- */

#view-agenda > .toolbar,
#view-companies > .toolbar {
  margin-bottom: 16px;
}

.form-row {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.form-row input[type="text"] {
  min-width: 170px;
  flex: 1;
}

.reschedule-form {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reschedule-form input[type="date"] {
  min-height: 32px;
  padding: 6px 9px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 12px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
  color: #667896;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-align: left;
  text-transform: uppercase;
}

tbody td {
  padding: 11px 13px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
}

tbody tr:hover {
  background: #f9fbfe;
}

.sw-table td,
.sw-table th {
  padding: 11px 14px;
}

.sw-table input[type="number"] {
  width: 76px;
  min-height: 33px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.sw-cat-head {
  padding: 9px 13px;
  background: #eef3fa;
  color: #466185;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.save-hint {
  margin-left: auto;
  color: var(--optimal);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
}

/* Detail drawer ------------------------------------------------------- */

#detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(2, 12, 34, 0.48);
  backdrop-filter: blur(2px);
}

#detail-overlay.open {
  display: block;
  animation: overlay-in 160ms ease both;
}

@keyframes overlay-in {
  from { background-color: rgba(2, 12, 34, 0); }
}

#detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  width: min(560px, 100%);
  overflow-y: auto;
  border-left: 1px solid #d8e1ed;
  background: #ffffff;
  box-shadow: -18px 0 50px rgba(6, 24, 58, 0.19);
  transform: translateX(100%);
  transition: transform 200ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

#detail-overlay.open #detail-panel {
  transform: translateX(0);
}

#detail-panel .dp-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e6ebf3;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

#detail-panel .dp-close {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(248, 250, 254, 0.72);
  color: #667895;
  display: grid;
  place-items: center;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

#detail-panel .dp-close:hover,
#detail-panel .dp-close:focus-visible {
  border-color: var(--line);
  background: #f5f8fc;
  color: var(--ink);
  outline: 0;
}

#detail-panel .dp-title {
  padding-right: 35px;
  color: #0b2352;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

#detail-panel .dp-meta {
  margin-top: 8px;
  color: #7183a3;
  font-family: var(--sans);
  font-size: 10px;
}

#detail-panel section {
  padding: 18px 24px;
  border-bottom: 1px solid #e8edf4;
}

#detail-panel section h3 {
  margin: 0 0 12px;
  color: #53698d;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.contact-card,
.ai-draft {
  margin-bottom: 8px;
  padding: 11px 13px;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  background: #f8faff;
  color: var(--ink);
  font-size: 11.5px;
}

.contact-card .cname {
  color: #102857;
  font-weight: 680;
}

.contact-card .crole,
.contact-card .ccontact {
  margin-top: 3px;
  color: #64789b;
  font-family: var(--sans);
  font-size: 10px;
}

.contact-card .ccontact {
  color: #1c5cc8;
}

.contact-card.suggested {
  border-style: dashed;
  background: #fcfdff;
}

.contact-card .unverified {
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #fff3df;
  color: #b66d11;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 600;
}

.ai-draft {
  min-height: 56px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ai-draft.empty-state {
  color: #8795ad;
  font-style: italic;
}

.btn-row {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-meta,
.meta {
  color: #7183a3;
  font-family: var(--sans);
  font-size: 9.5px;
}

.service-mini {
  min-height: 35px;
  padding: 8px 0;
  border-bottom: 1px solid #edf1f6;
  color: #263e6a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 10.5px;
}

.service-mini .stage-Optimal,
.service-mini .stage-EarlytoEngage,
.service-mini .stage-LatetoEngage {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 650;
}

.service-mini .stage-Optimal { color: var(--optimal); }
.service-mini .stage-EarlytoEngage { color: var(--early); }
.service-mini .stage-LatetoEngage { color: var(--late); }

/* Classify tab ---------------------------------------------------------- */

.classify-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f6;
  flex-wrap: wrap;
}

.classify-row:last-child {
  border-bottom: 0;
}

.classify-row:hover {
  background: #f9fbfe;
}

.cr-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  color: #102858;
  font-weight: 650;
  font-size: 12.5px;
}

.cr-meta {
  flex: 1;
  min-width: 160px;
  color: #667b9f;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cr-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.cr-field-label {
  color: #8796b3;
  font-size: 9.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.cr-priority,
.cr-country {
  flex: none;
  min-width: 190px;
  max-width: 240px;
}

.cr-save {
  flex: none;
}

/* Agenda item provenance -------------------------------------------- */

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef1f7;
  color: #52678c;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.source-badge.ai-suggested {
  background: var(--icon-purple-bg);
  color: var(--icon-purple);
}

.source-badge.ai-suggested .icon {
  width: 10px;
  height: 10px;
}

.source-badge.shared {
  background: var(--icon-green-bg);
  color: var(--icon-green);
}

.source-badge.shared .icon {
  width: 10px;
  height: 10px;
}

.ai-pick-add {
  margin-top: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* General states and footer ------------------------------------------ */

.empty,
.loading {
  padding: 36px 18px;
  color: #8190a9;
  font-family: var(--sans);
  font-size: 11px;
  text-align: center;
}

.loading::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border: 2px solid #cbd6e7;
  border-top-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  vertical-align: -2px;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--page-pad) 34px;
  color: #8a98ae;
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.55;
}

/* Responsive behaviour ---------------------------------------------- */

@media (max-width: 1240px) {
  :root {
    --page-pad: 26px;
  }

  .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #view-dashboard > .toolbar {
    grid-template-columns: minmax(280px, 1fr) auto;
  }

  #view-dashboard > .toolbar #region-filters {
    justify-self: start;
  }

  #view-dashboard > .toolbar #service-filter {
    max-width: none;
  }

  .ai-picks-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-pick {
    min-height: 160px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .lead-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --page-pad: 20px;
  }

  .live-pill {
    max-width: 42vw;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px !important;
  }

  #agenda-preview,
  #sponsors-preview {
    max-height: 310px !important;
  }

  .lead-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lead-card-grid.list-mode .lc-main {
    grid-template-columns: minmax(160px, 1.4fr) minmax(130px, 1fr);
    grid-template-areas:
      "head footer"
      "title sponsor"
      "meta facts";
  }

  #companies-page-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  header.top {
    min-height: 68px;
  }

  header.top .tagline {
    display: none;
  }

  .live-pill {
    max-width: 34vw;
  }

  nav.main-nav {
    padding-right: var(--page-pad);
    gap: 4px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-dashboard > .toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #view-dashboard > .toolbar .chip-group {
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  #view-dashboard > .toolbar .chip-group::-webkit-scrollbar {
    display: none;
  }

  .ai-suggestions-head .htext > div:last-child {
    display: block;
  }

  .ai-subtitle {
    margin-top: 2px;
  }

  .lead-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 14px;
  }

  header.top {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-logo {
    width: 140px;
    height: auto;
    flex-basis: 140px;
  }

  header.top .brand {
    gap: 10px;
  }

  .brand-divider,
  .brand-product {
    display: none;
  }

  header.top .tagline,
  .live-pill {
    display: none;
  }

  nav.main-nav {
    padding-right: var(--page-pad);
    gap: 0;
  }

  nav.main-nav a {
    padding-inline: 10px;
    font-size: 11px;
  }

  nav.main-nav a svg {
    width: 16px;
    height: 16px;
  }

  .stats-strip {
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 10px;
  }

  .stat {
    min-height: 116px;
    padding: 14px 12px 9px;
    grid-template-columns: 43px minmax(0, 1fr);
    column-gap: 9px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
  }

  .stat-icon .icon {
    width: 21px;
    height: 21px;
  }

  .stat .n {
    font-size: 19px;
  }

  .stat .l {
    font-size: 10.5px;
  }

  .stat .d {
    display: none;
  }

  .sparkline {
    height: 27px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  #view-companies > .toolbar .chip-group {
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .ai-suggestions-panel {
    padding: 12px;
  }

  .ai-suggestions-head {
    align-items: flex-start;
  }

  .ai-title-icon {
    margin-top: 2px;
  }

  .ai-subtitle {
    max-width: 250px;
    white-space: normal;
  }

  .ai-picks-list {
    grid-template-columns: 1fr;
  }

  .ai-pick {
    min-height: 0;
  }

  .view-controls {
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .view-controls .result-count {
    display: none;
  }

  .view-controls select.sort-select {
    margin-left: auto;
  }

  .lead-card-grid,
  .lead-card-grid.list-mode {
    grid-template-columns: 1fr;
  }

  .lead-card-grid.list-mode .lc-main {
    display: flex;
  }

  .lead-card-grid.list-mode .lead-card {
    min-height: 180px;
  }

  .sidebar-stack {
    display: flex !important;
    flex-direction: column;
    gap: 14px !important;
  }

  .company-card .figs {
    gap: 9px 13px;
  }

  .agenda-row:not(#agenda-preview .agenda-row) {
    flex-wrap: wrap;
  }

  .agenda-row .actions {
    width: 100%;
    padding-left: 42px;
  }

  .form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-row input,
  .form-row button,
  .form-row input[type="text"] {
    width: 100%;
    max-width: none !important;
  }

  #detail-panel .dp-head,
  #detail-panel section {
    padding-right: 18px;
    padding-left: 18px;
  }

  footer {
    font-size: 8px;
  }
}

@media (max-width: 420px) {
  nav.main-nav {
    padding-right: 14px;
  }

  .nav-account {
    min-width: 44px;
    padding-left: 2px;
    display: flex;
    gap: 0;
  }

  nav.main-nav a {
    gap: 7px;
  }

  .bell-btn,
  .avatar-circle,
  .header-chevron {
    display: none;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 106px;
  }

  .view-controls select.sort-select {
    width: 158px;
  }

  .view-toggle {
    display: none;
  }

  .agenda-row .due {
    min-width: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Auth screen ----------------------------------------------------------- */

.auth-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 12% 14%, rgba(37, 110, 240, 0.13), transparent 29rem),
    radial-gradient(circle at 88% 84%, rgba(109, 75, 223, 0.09), transparent 30rem),
    linear-gradient(145deg, #f6f8fc, #edf3fa);
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(102, 126, 166, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 126, 166, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
  pointer-events: none;
}

.auth-screen[hidden] {
  display: none;
}

#auth-display-name-row[hidden] {
  display: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  min-height: 548px;
  overflow: hidden;
  border: 1px solid rgba(207, 218, 234, 0.94);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 38px 40px 34px;
  background:
    radial-gradient(circle at 82% 16%, rgba(59, 124, 239, 0.32), transparent 15rem),
    radial-gradient(circle at 4% 104%, rgba(101, 80, 225, 0.22), transparent 21rem),
    linear-gradient(145deg, #07142f 0%, #061a3a 62%, #0a2450 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(129, 168, 237, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand-panel::before {
  top: -125px;
  right: -120px;
  width: 330px;
  height: 330px;
}

.auth-brand-panel::after {
  right: -46px;
  bottom: -118px;
  width: 270px;
  height: 270px;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-logo {
  width: 156px;
  height: 34px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.auth-product-name {
  min-height: 27px;
  padding: 6px 0 5px 14px;
  border-left: 1px solid rgba(205, 218, 241, 0.3);
  color: #d3ddef;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.4;
  letter-spacing: 0.05px;
}

.auth-brand-message {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: auto 0;
  padding: 58px 0 54px;
}

.auth-eyebrow {
  color: #75a8ff;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.auth-brand-message h1 {
  max-width: 340px;
  margin: 16px 0 15px;
  color: #ffffff;
  font-size: clamp(30px, 3.1vw, 39px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -1.15px;
}

.auth-brand-message p {
  max-width: 335px;
  margin: 0;
  color: #b7c5dd;
  font-size: 13px;
  line-height: 1.65;
}

.auth-brand-signal {
  position: relative;
  z-index: 1;
  color: #aebdd5;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}

.auth-signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d596;
  box-shadow: 0 0 0 4px rgba(52, 213, 150, 0.12), 0 0 18px rgba(52, 213, 150, 0.45);
}

.auth-form-panel {
  min-width: 0;
  padding: 58px 54px 50px;
  background:
    radial-gradient(circle at 100% 0, rgba(52, 111, 226, 0.035), transparent 17rem),
    rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-heading {
  margin-bottom: 28px;
}

.auth-form-heading > span {
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: 1.05px;
  text-transform: uppercase;
}

.auth-form-heading h2 {
  margin: 10px 0 7px;
  color: #091f4c;
  font-size: 25px;
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: -0.55px;
}

.auth-form-heading p {
  margin: 0;
  color: #7182a0;
  font-size: 12px;
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid #e6ecf5;
  border-radius: 11px;
  background: #f3f6fb;
}

.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.auth-tab.active {
  background: #ffffff;
  color: var(--accent-strong);
  box-shadow: 0 3px 9px rgba(28, 55, 99, 0.085);
}

.auth-tab:focus-visible {
  outline: 0;
  box-shadow: var(--shadow-focus);
}

#auth-form .form-row {
  margin-bottom: 12px;
}

#auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #d6e0ed;
  border-radius: 10px;
  outline: 0;
  background: #fbfcfe;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

#auth-form input:focus {
  border-color: #5d96f5;
  background: #ffffff;
  box-shadow: var(--shadow-focus);
}

#auth-form .btn.primary {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  border-radius: 10px;
  font-size: 11px;
}

#auth-error {
  min-height: 16px;
  margin-top: 12px;
  color: var(--late);
  font-size: 10px;
}

@media (max-width: 760px) {
  .auth-screen {
    align-items: flex-start;
    padding: 18px;
  }

  .auth-card {
    max-width: 500px;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: 220px;
    padding: 28px 30px 25px;
  }

  .auth-brand-message {
    margin: 34px 0 25px;
    padding: 0;
  }

  .auth-brand-message h1 {
    margin: 10px 0 0;
    font-size: 27px;
  }

  .auth-brand-message p,
  .auth-brand-signal {
    display: none;
  }

  .auth-form-panel {
    padding: 34px 30px 30px;
  }
}

@media (max-width: 430px) {
  .auth-screen {
    padding: 10px;
  }

  .auth-card {
    border-radius: 17px;
  }

  .auth-brand-panel {
    min-height: 186px;
    padding: 24px;
  }

  .auth-logo {
    width: 140px;
    height: auto;
  }

  .auth-product-name {
    display: none;
  }

  .auth-brand-message {
    margin: 31px 0 0;
  }

  .auth-brand-message h1 {
    max-width: 290px;
    font-size: 24px;
  }

  .auth-form-panel {
    padding: 29px 23px 24px;
  }

  .auth-form-heading {
    margin-bottom: 22px;
  }

  .auth-form-heading h2 {
    font-size: 22px;
  }
}

/* Header user badge / logout --------------------------------------------- */

.logout-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy-text-soft);
  flex: none;
}

.logout-btn:hover {
  border-color: var(--navy-text-soft);
  color: var(--navy-text);
}

.logout-btn .icon {
  width: 15px;
  height: 15px;
}

/* AI research notification bell ------------------------------------------ */

.ai-jobs-wrap {
  position: relative;
}

.ai-jobs-btn {
  border: 0;
  padding: 0;
  font: inherit;
}

.ai-jobs-dropdown {
  position: absolute;
  top: 46px;
  right: 0;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  z-index: 40;
}

.ai-jobs-dropdown[hidden] {
  display: none;
}

.ai-jobs-dropdown-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft, #edf1f6);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.ai-job-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft, #edf1f6);
  font-size: 11.5px;
  color: var(--ink);
}

.ai-job-row:last-child {
  border-bottom: none;
}

.ai-job-row .ai-job-icon {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.ai-job-row.status-pending .ai-job-icon,
.ai-job-row.status-running .ai-job-icon {
  color: var(--icon-orange);
}

.ai-job-row.status-done .ai-job-icon {
  color: var(--icon-green);
}

.ai-job-row.status-error .ai-job-icon {
  color: var(--icon-red);
}

.ai-job-row .ai-job-body {
  min-width: 0;
  flex: 1;
}

.ai-job-row .ai-job-label {
  font-weight: 650;
  color: var(--ink);
}

.ai-job-row .ai-job-status {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.ai-job-row .ai-job-dismiss {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
}

.ai-job-row .ai-job-dismiss:hover {
  color: var(--ink);
}

/* Collaboration tab ------------------------------------------------------- */

.collab-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft, #edf1f6);
}

.collab-row:last-child {
  border-bottom: none;
}

.collab-row .body {
  min-width: 0;
  flex: 1;
}

.collab-row .title {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}

.collab-row .title:hover {
  color: var(--accent);
}

.collab-row .sub {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--ink-soft);
}

.collab-row .sub b {
  color: var(--ink);
}

.collab-note {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--icon-purple-bg);
  color: var(--ink);
  font-size: 11.5px;
  font-style: italic;
}

.collab-row .actions {
  display: flex;
  gap: 8px;
  flex: none;
}

/* Share form on an agenda row --------------------------------------------- */

.share-form {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-form select,
.share-form textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  padding: 7px 9px;
}

.share-form select {
  min-height: 32px;
}

.share-form textarea {
  min-height: 32px;
  min-width: 220px;
  flex: 1;
  resize: vertical;
}

@media print {
  body {
    background: #ffffff;
  }

  header.top,
  nav.main-nav,
  .toolbar,
  .ai-refresh-btn,
  .view-toggle,
  footer,
  #detail-overlay {
    display: none !important;
  }

  .stats-strip,
  main {
    padding-right: 0;
    padding-left: 0;
  }

  .stat,
  .panel,
  .lead-card,
  .company-card,
  .ai-suggestions-panel {
    box-shadow: none;
    break-inside: avoid;
  }
}
