:root {
  font-family: Geist, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  font-weight: 400;
  --bg: #e9ecf2;
  --surface: #f7f8fb;
  --raised: #fff;
  --text: #101a34;
  --muted: #6e7890;
  --line: #1829521a;
  --accent: #2858f5;
  --soft: #e5ecff;
  --nav: #0c1429;
  --success: #12876b;
  --danger: #c34a61;
  --warning: #a06b1b;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 99px;
  cursor: pointer;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
button:hover,
.button:hover {
  background: var(--soft);
  border-color: #2858f566;
}
button.primary,
.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button.primary:hover {
  background: #1948df;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button svg,
.button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #7895ff;
  outline-offset: 3px;
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  line-height: 1.5;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--raised);
  color: var(--text);
  font-size: 13px;
  margin-top: 6px;
}
input[type="checkbox"] {
  display: inline-block;
  width: 15px;
  min-height: 15px;
  height: 15px;
  accent-color: var(--accent);
  margin: 0;
  vertical-align: middle;
}
input[type="color"] {
  padding: 4px;
  height: 42px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: var(--text);
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
  line-height: 1.7;
}
.preserve {
  white-space: pre-wrap;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-weight: 550;
  letter-spacing: -1.7px;
  line-height: 1.1;
  font-size: 38px;
  margin-bottom: 12px;
}
h2 {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 550;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font:
    600 9px/1.6 "Geist Mono",
    monospace;
  color: var(--muted);
  margin-bottom: 13px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  letter-spacing: -1px;
  color: #fff;
  flex-wrap: wrap;
}
.brand > svg {
  width: 27px;
  height: 27px;
  color: #6990ff;
}
.brand > span {
  font-weight: 300;
  margin-left: -9px;
  color: #bec5d8;
}
.brand > small {
  font: 10px/1 monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  width: 100%;
  padding-left: 36px;
  margin-top: 2px;
  color: #8191b4;
}
.layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 220px;
  height: calc(100dvh - 32px);
  border-radius: 22px;
  padding: 28px 18px 18px;
  background: var(--nav);
  color: #bbc4dc;
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.workspace {
  border: 1px solid #ffffff12;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  margin: 30px 0 26px;
}
.workspace-icon {
  display: grid;
  place-items: center;
  color: #7c9bff;
  background: #2858f529;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.workspace strong {
  display: block;
  font-size: 11px;
  color: #f1f4ff;
}
.workspace small {
  display: block;
  font-size: 9px;
  color: #8c9bbc;
  margin-top: 5px;
}
.nav-label {
  font: 9px/1.5 monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 12px 10px;
  color: #697a9d;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  padding: 12px 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.sidebar nav a svg {
  width: 17px;
  height: 17px;
  color: #8a9bbb;
}
.sidebar nav a.active {
  color: white;
  background: var(--accent);
}
.sidebar nav a.active svg {
  color: white;
}
.sidebar nav a:hover {
  background: #ffffff0d;
}
.sidebar nav a.active:hover {
  background: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
}
.portal-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  font-size: 11px;
}
.portal-link svg {
  width: 16px;
  height: 16px;
}
.profile {
  border-top: 1px solid #ffffff12;
  margin-top: 12px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile > div {
  min-width: 0;
  flex: 1;
}
.profile strong {
  font-size: 10px;
  color: white;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  display: block;
  font-size: 8px;
  color: #8998b7;
  margin-top: 4px;
}
.profile > button {
  padding: 0;
  background: none;
  min-height: 28px;
  border: 0;
  color: #a4b0ca;
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--soft);
  color: var(--accent);
  font-size: 9px;
  font-weight: 650;
  border-radius: 50%;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.layout > main {
  margin-left: 252px;
  padding: 16px 24px 0 0;
  width: calc(100% - 252px);
  min-width: 0;
}
.topbar {
  height: 58px;
  background: var(--nav);
  color: #bdc7df;
  border: 1px solid #ffffff0c;
  box-shadow: 0 10px 25px #0b14351a;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 24px;
  position: relative;
  z-index: 35;
  gap: 15px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar > div > span {
  font: 10px/1 monospace;
  letter-spacing: 0.3px;
}
.topbar strong {
  font-weight: 400;
  color: #eef2ff;
}
.topbar button[data-action="menu"] {
  display: none;
}
.topbar button[data-action="theme"] {
  color: #a8b7d8;
  background: transparent;
  border: 0;
  min-width: 30px;
  padding: 7px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff12;
  border-radius: 99px;
  background: #ffffff04;
  padding: 0 10px;
  height: 34px;
}
.global-search input {
  background: transparent;
  color: white;
  border: 0;
  margin: 0;
  min-height: 30px;
  height: 30px;
  width: 160px;
  font-size: 10px;
  padding: 4px;
}
.global-search svg {
  width: 14px;
  height: 14px;
}
.global-search kbd {
  font-size: 9px;
  color: #8b9bb9;
  border: 1px solid #ffffff1a;
  border-radius: 3px;
  padding: 1px 4px;
}
.top-actions {
  gap: 8px !important;
}
.content {
  padding: 34px 16px 20px;
  min-height: calc(100vh - 140px);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-filters {
  display: flex;
  gap: 10px;
  align-items: end;
}
.inline-filters select {
  min-width: 130px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 22px;
  border-radius: 18px;
  min-width: 0;
}
.kpi header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  gap: 10px;
}
.kpi header svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.kpi > strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 550;
  line-height: 1.2;
  margin: 18px 0 12px;
  overflow-wrap: anywhere;
}
.kpi footer {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
}
.focus-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--nav);
  color: white;
  border-radius: 20px;
  padding: 26px 30px;
  margin: 24px 0;
}
.focus-banner .eyebrow {
  color: #91a6d3;
  margin-bottom: 8px;
}
.focus-banner h2 {
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.7px;
}
.focus-banner p {
  color: #8fa0c4;
  font-size: 11px;
  margin: 0;
}
.grid {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
  align-items: start;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 24px;
  min-width: 0;
}
.grid > .panel {
  margin: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
  font-size: 14px;
}
.panel-head p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 7px 0 0;
}
.panel-body {
  padding: 20px 24px;
}
.panel-body > .table-wrap {
  margin: -20px -24px;
}
.panel-body > .table-wrap:last-child {
  margin-bottom: -20px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: normal;
}
th {
  text-align: left;
  font:
    9px/1.5 "Geist Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted);
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.5;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #2858f503;
}
td strong {
  font-weight: 550;
}
td .avatar {
  width: 25px;
  height: 25px;
  font-size: 8px;
}
.cell-small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.person {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.person > div {
  min-width: 0;
}
.text-button {
  background: none !important;
  border: 0;
  padding: 0;
  text-align: left;
  border-radius: 0;
  display: inline-flex;
  align-items: start;
  flex-direction: column;
  gap: 3px;
  white-space: normal;
  min-height: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.6;
}
.text-button:hover {
  color: var(--accent);
}
.text-button small {
  color: var(--muted);
  font-size: 9px;
}
.text-link {
  font-size: 10px;
  color: var(--accent);
}
.badge {
  display: inline-block;
  border-radius: 99px;
  font-size: 9px;
  line-height: 1.4;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
}
.badge.new,
.badge.working,
.badge.converted {
  color: var(--accent);
  background: var(--soft);
  border-color: transparent;
}
.badge.green,
.badge.won,
.badge.qualified {
  color: var(--success);
  background: #15957812;
  border-color: #15957820;
}
.badge.red,
.badge.lost,
.badge.unqualified {
  color: var(--danger);
  background: #ce516a12;
  border-color: #ce516a20;
}
.badge.amber,
.badge.not_reached,
.badge.callback {
  color: var(--warning);
  background: #c18a2712;
  border-color: #c18a2722;
}
.overdue {
  color: var(--danger);
}
.target {
  padding: 6px 0 25px;
}
.target > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 12px;
}
.target strong {
  font-weight: 500;
}
.target span {
  font-size: 11px;
}
.target small {
  color: var(--muted);
  font-size: 9px;
}
.track {
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filters > label {
  flex: 1;
  min-width: 120px;
}
.filters > .search-field {
  flex: 2;
  min-width: 220px;
}
.search-field {
  position: relative;
}
.search-field > svg {
  position: absolute;
  width: 15px;
  height: 15px;
  left: 12px;
  bottom: 13px;
  color: var(--muted);
}
.search-field input {
  padding-left: 36px;
}
.view-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.view-tabs a {
  padding: 8px 13px;
  font-size: 10px;
  border: 1px solid transparent;
  border-radius: 99px;
  color: var(--muted);
}
.view-tabs a.active {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.view-tabs > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.score {
  display: inline-grid;
  place-items: center;
  font: 11px/1 monospace;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.score.hot {
  color: var(--success);
  border-color: #14a78344;
  background: #14a78310;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.bulk-bar {
  padding: 12px 18px;
  border: 1px solid #2858f544;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  background: var(--soft);
  font-size: 11px;
}
.bulk-bar[hidden] {
  display: none;
}
.pipeline-summary {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pipeline-summary > span {
  color: var(--muted);
  font-size: 10px;
}
.pipeline-summary strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.7px;
  font-weight: 550;
  margin-bottom: 8px;
}
.info {
  display: inline-flex;
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.pipeline-board {
  display: flex;
  gap: 14px;
  overflow: auto;
  padding: 2px 0 22px;
  min-height: 460px;
  align-items: stretch;
  scroll-snap-type: x proximity;
}
.pipeline-column {
  width: 265px;
  min-width: 265px;
  border-radius: 15px;
  background: #101a3404;
  border: 1px solid var(--line);
  padding: 15px;
  scroll-snap-align: start;
}
.pipeline-column > header {
  margin-bottom: 18px;
}
.pipeline-column > header > div {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}
.pipeline-column h2 {
  font-size: 12px;
  margin: 0;
  flex: 1;
}
.pipeline-column > header > div > i,
.color-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}
.color-dot {
  margin-right: 8px;
}
.pipeline-column > header > div > span {
  font-size: 9px;
  color: var(--muted);
  background: var(--line);
  border-radius: 99px;
  padding: 3px 7px;
}
.pipeline-column > header > strong {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.pipeline-column > header > small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.deal-cards {
  display: grid;
  gap: 10px;
  min-height: 120px;
}
.deal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  cursor: grab;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.deal-card:hover {
  box-shadow: 0 6px 18px #0c15300a;
  transform: translateY(-1px);
}
.deal-card > header {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 13px;
}
.deal-card .avatar {
  width: 22px;
  height: 22px;
  font-size: 7px;
}
.deal-card h3 {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.deal-card > strong {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
.mrr {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin: 4px 0;
}
.deal-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.deal-tags .badge {
  font-size: 8px;
  padding: 3px 7px;
}
.deal-card > footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.deal-card > footer svg {
  width: 12px;
  height: 12px;
  margin-right: 3px;
}
.drag-over {
  background: var(--soft);
  border-color: var(--accent);
}
.dragging {
  opacity: 0.4;
}
.drop-hint {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  padding: 30px 5px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  align-self: start;
}
.empty {
  text-align: center;
  padding: 45px 25px;
  color: var(--muted);
}
.empty > svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 16px;
}
.empty h3 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
}
.empty p {
  font-size: 11px;
  line-height: 1.7;
  max-width: 340px;
  margin: 0 auto 18px;
}
.type-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--soft);
  color: var(--accent);
  border-radius: 8px;
  margin-right: 8px;
}
.type-icon svg {
  width: 13px;
  height: 13px;
}
.bars > div {
  margin-bottom: 20px;
}
.bars header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 10px;
}
.trend-bars {
  height: 170px;
  display: flex;
  gap: 3px;
  align-items: end;
}
.trend-bars button {
  flex: 1;
  min-width: 1px;
  min-height: 3px;
  border: 0;
  padding: 0;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
}
.trend-bars button:hover {
  opacity: 1;
}
.trend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 15px;
}
.tooltip {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 320px;
  box-shadow: 0 8px 35px #0003;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  max-height: 90dvh;
  max-width: calc(100vw - 28px);
  width: 650px;
  box-shadow: 0 30px 100px #0005;
}
dialog::backdrop {
  background: #06112680;
  backdrop-filter: blur(5px);
}
#modal {
  z-index: 100;
}
#modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
#modal > header h2 {
  margin: 0;
  font-size: 18px;
}
#modal > header button {
  padding: 8px;
  border: 0;
  background: transparent;
  min-height: 30px;
}
#modal form {
  padding: 22px 26px;
}
#modal form > label,
#modal form > .user-picker {
  margin-bottom: 18px;
}
#modal form > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 20px;
}
.full {
  grid-column: 1/-1;
}
.error,
.notice {
  padding: 14px 17px;
  background: var(--soft);
  color: var(--text);
  border: 1px solid #2858f52a;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.error {
  color: var(--danger);
  background: #c34a610c;
  border-color: #c34a6122;
}
.notice code {
  font-size: 10px;
}
.detail-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  max-height: 100dvh;
  height: 100dvh;
  max-width: 100vw;
  width: 1060px;
  border-radius: 20px 0 0 20px;
  border-right: 0;
  overflow: auto;
}
.detail-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.detail-head .eyebrow {
  margin: 0;
}
.detail-head > div {
  display: flex;
  gap: 8px;
}
.detail-body {
  padding: 30px;
}
.record-heading {
  display: flex;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}
.company-avatar {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  border: 1px solid #2858f51a;
  border-radius: 15px;
  flex-shrink: 0;
}
.record-heading h1 {
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin-bottom: 6px;
}
.record-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.record-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.contact-actions,
.record-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.contact-actions .button {
  font-size: 10px;
}
.record-actions {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 6px;
}
.record-actions button {
  font-size: 10px;
  padding: 8px 12px;
}
.record-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.record-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 18px;
  padding: 20px;
}
.record-section h2 {
  font-size: 13px;
  margin-bottom: 18px;
}
.record-section p {
  font-size: 11px;
}
.owner-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.owner-line small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 4px;
}
.owner-line strong {
  font-size: 11px;
  font-weight: 500;
}
dl {
  margin: 0;
}
dl > div {
  margin-bottom: 16px;
}
dl > div:last-child {
  margin: 0;
}
dt {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 5px;
}
dd {
  font-size: 11px;
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.timeline-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.timeline-section h2 {
  font-size: 14px;
  margin: 0 0 6px;
}
.timeline-section > header p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.timeline-section > header select {
  max-width: 170px;
  font-size: 10px;
  min-height: 35px;
  margin: 0;
}
.timeline-entry {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
}
.timeline-entry:not(:last-child):before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  flex-shrink: 0;
}
.timeline-icon svg {
  width: 14px;
  height: 14px;
}
.timeline-entry.audit .timeline-icon {
  background: var(--bg);
  color: var(--muted);
}
.timeline-entry > div {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  flex: 1;
  min-width: 0;
}
.timeline-entry header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 6px;
}
.timeline-entry header strong {
  font-weight: 550;
}
.timeline-entry time {
  font-size: 8px;
  white-space: nowrap;
  color: var(--muted);
  line-height: 1.7;
}
.timeline-entry small {
  font-size: 9px;
  color: var(--muted);
}
.timeline-entry p {
  font-size: 11px;
  margin: 15px 0 0;
}
.timeline-entry footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 9px;
  margin-top: 14px;
  color: var(--muted);
}
.timeline-entry footer button {
  font-size: 9px;
  min-height: 27px;
  padding: 6px 10px;
  margin-left: auto;
}
.related-deal {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.related-deal > strong {
  font-size: 12px;
  display: block;
  margin-top: 7px;
}
.user-picker {
  position: relative;
}
.user-picker > small {
  font-size: 9px;
  display: block;
  margin-top: 6px;
}
.user-results {
  position: absolute;
  top: 67px;
  left: 0;
  right: 0;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 35px #0002;
  z-index: 20;
  padding: 6px;
  max-height: 270px;
  overflow: auto;
}
.user-results button,
.search-results button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 10px;
  padding: 10px;
  width: 100%;
  text-align: left;
}
.user-results small,
.search-results small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.user-results p {
  font-size: 11px;
  color: var(--muted);
  padding: 10px;
  margin: 0;
}
.user-results button:hover,
.search-results button:hover {
  background: var(--soft);
}
.search-results .company-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.search-results .company-avatar svg {
  width: 16px;
  height: 16px;
}
.queue-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--soft);
  border: 1px solid #2858f533;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 12px;
}
.queue-banner > div {
  display: flex;
  gap: 8px;
}
.settings-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.settings-nav a {
  border-radius: 99px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 10px;
}
.pipeline-config {
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.pipeline-config:last-child {
  border: 0;
  margin: 0;
  padding: 0;
}
.pipeline-config > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.pipeline-config > header > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.pipeline-config h3 {
  margin: 0;
}
.config-list {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.config-list h3 {
  font-size: 12px;
}
.config-list > div {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.api-docs {
  margin-top: 25px;
}
.api-docs summary {
  font-size: 12px;
  cursor: pointer;
}
.api-docs pre {
  font:
    10px/1.8 "Geist Mono",
    monospace;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  overflow: auto;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.template-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.template-grid p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
  margin: 16px 0;
}
.template-grid small {
  font-size: 10px;
  color: var(--muted);
}
.playbook-hero {
  border-radius: 20px;
  background: var(--nav);
  color: white;
  padding: 38px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.playbook-hero:after {
  content: "↗";
  position: absolute;
  right: 40px;
  top: -25px;
  font-size: 240px;
  line-height: 1;
  color: #2858f533;
  font-weight: 300;
  pointer-events: none;
}
.playbook-hero .eyebrow {
  color: #8d9fca;
}
.playbook-hero h2 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.3;
  max-width: 600px;
  font-weight: 450;
  margin-bottom: 17px;
  position: relative;
  z-index: 1;
}
.playbook-hero p {
  font-size: 12px;
  line-height: 1.8;
  color: #95a4c6;
  max-width: 600px;
  margin: 0;
  position: relative;
  z-index: 1;
}
.playbook-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 24px;
  min-height: 210px;
}
.playbook-card > span {
  font: 11px monospace;
  display: block;
  color: var(--accent);
  margin-bottom: 25px;
}
.playbook-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.playbook-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 8px/1.5 monospace;
  padding: 5px 16px 24px;
}
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  letter-spacing: -2px;
  flex-wrap: wrap;
  align-content: center;
}
.loading span {
  color: var(--accent);
}
.loading small {
  display: block;
  flex-basis: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 18px;
}
.login {
  max-width: 1200px;
  margin: auto;
  min-height: 100vh;
  padding: 45px 40px 25px;
  display: flex;
  flex-direction: column;
}
.login > .brand {
  color: var(--text);
  width: 180px;
}
.login > .brand > span {
  color: var(--muted);
}
.login-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  align-items: center;
  flex: 1;
  padding: 70px 0;
}
.login-grid > section h1 {
  font-size: 57px;
  line-height: 1.15;
  letter-spacing: -2.5px;
  margin-bottom: 25px;
  font-weight: 450;
}
.login-grid > section em {
  font-style: normal;
  color: var(--accent);
}
.login-grid > section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  max-width: 420px;
}
.login-pills {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}
.login-pills span {
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 10px;
}
.login-grid > form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 25px 60px #0c153006;
}
.login-grid > form h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
  line-height: 1.4;
}
.login-grid > form p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 25px;
}
.login-grid > form label {
  margin-bottom: 18px;
}
.login-grid > form > button {
  width: 100%;
  margin: 8px 0 20px;
  min-height: 45px;
}
.login-grid > form > small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.login-grid > form > a {
  display: block;
  font-size: 11px;
  color: var(--accent);
  margin-top: 20px;
}
.login > footer {
  font-size: 9px;
  color: var(--muted);
}
#toasts {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 10000;
  display: grid;
  gap: 8px;
  max-width: 380px;
}
.toast {
  background: var(--nav);
  color: #edf2ff;
  border: 1px solid #ffffff18;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 10px 40px #0003;
  font-size: 12px;
  line-height: 1.6;
}
.import-preview {
  margin-top: 20px;
}
[data-theme="dark"] {
  --bg: #0b1325;
  --surface: #121e35;
  --raised: #16243e;
  --text: #e4eaf9;
  --muted: #91a1c3;
  --line: #bcccf017;
  --soft: #2858f51c;
  --nav: #080f20;
  --accent: #4f78ff;
  --success: #53c4a4;
  --danger: #f18a9e;
  --warning: #e6bd70;
  color-scheme: dark;
}
[data-theme="dark"] .pipeline-column {
  background: #050c1d44;
}
[data-theme="dark"] .focus-banner,
[data-theme="dark"] .playbook-hero {
  border: 1px solid var(--line);
}
[data-theme="dark"] .badge {
  background: #25334e44;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .content {
    max-width: 1550px;
    margin: auto;
    padding: 42px 30px;
  }
  .topbar {
    margin: 0 16px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 192px;
    left: 12px;
  }
  .layout > main {
    margin-left: 218px;
    width: calc(100% - 218px);
    padding-right: 16px;
  }
  .content {
    padding: 30px 6px;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .kpi {
    padding: 18px;
  }
  .kpi > strong {
    font-size: 25px;
  }
  .login-grid {
    gap: 50px;
  }
  .login-grid > section h1 {
    font-size: 45px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    transform: translateX(-230px);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    z-index: 100;
    box-shadow: 0 20px 80px #0008;
  }
  .layout > main {
    margin-left: 0;
    width: 100%;
    padding: 12px 16px 0;
  }
  .topbar button[data-action="menu"] {
    display: inline-flex;
    background: none;
    color: #fff;
    border: 0;
    min-width: 28px;
    padding: 4px;
  }
  .topbar {
    padding: 0 14px;
  }
  .topbar > div > span {
    font-size: 9px;
  }
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .record-layout {
    grid-template-columns: 250px 1fr;
    gap: 18px;
  }
  .detail-body {
    padding: 24px;
  }
  .settings-nav {
    gap: 5px;
  }
  .login {
    padding: 30px;
  }
  .login-grid {
    gap: 35px;
  }
  .login-grid > form {
    padding: 28px;
  }
  .login-grid > section h1 {
    font-size: 40px;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 54px;
  }
  .global-search {
    display: none;
  }
  .topbar .top-actions > button.primary {
    font-size: 10px;
    padding: 8px 12px;
    min-height: 32px;
  }
  .topbar > div {
    gap: 8px;
  }
  .content {
    padding: 25px 0 10px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .page-head {
    gap: 18px;
    margin-bottom: 24px;
  }
  .page-head > .actions {
    gap: 6px;
    width: 100%;
  }
  .page-head .inline-filters {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .inline-filters > label {
    flex: 1;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .kpi {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .kpi > strong {
    font-size: 23px;
    margin: 15px 0 10px;
  }
  .kpi header {
    font-size: 9px;
    gap: 8px;
  }
  .kpi header svg {
    width: 13px;
    height: 13px;
  }
  .kpi footer {
    font-size: 8px;
  }
  .focus-banner {
    padding: 22px;
    display: block;
  }
  .focus-banner h2 {
    font-size: 20px;
  }
  .focus-banner p {
    font-size: 10px;
    line-height: 1.7;
  }
  .focus-banner button {
    margin-top: 20px;
  }
  .panel-head {
    padding: 18px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .panel-body {
    padding: 18px;
  }
  .panel-body > .table-wrap {
    margin: -18px;
  }
  .panel-body > .table-wrap:last-child {
    margin-bottom: -18px;
  }
  th {
    font-size: 8px;
    padding: 13px 14px;
  }
  td {
    padding: 14px;
    font-size: 10px;
  }
  .filters {
    gap: 10px;
  }
  .filters > label {
    min-width: calc(50% - 10px);
  }
  .filters > .search-field {
    min-width: 100%;
  }
  .view-tabs {
    gap: 3px;
  }
  .view-tabs a {
    font-size: 9px;
    padding: 7px 10px;
  }
  .view-tabs > span {
    width: 100%;
    margin: 8px 0 0;
  }
  .pipeline-summary {
    gap: 20px;
  }
  .pipeline-summary > span {
    font-size: 9px;
  }
  .pipeline-summary strong {
    font-size: 19px;
  }
  .pipeline-column {
    min-width: 255px;
    width: 255px;
  }
  .record-layout {
    grid-template-columns: 1fr;
  }
  .detail-dialog {
    border-radius: 0;
  }
  .detail-body {
    padding: 20px;
  }
  .detail-head {
    padding: 14px 20px;
  }
  .record-heading h1 {
    font-size: 23px;
  }
  .company-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .record-layout > aside {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .record-section dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 15px;
  }
  .timeline-entry header {
    flex-wrap: wrap;
    gap: 6px;
  }
  .timeline-entry header time {
    width: 100%;
  }
  .timeline-entry {
    gap: 9px;
  }
  .timeline-entry > div {
    padding: 12px;
  }
  .timeline-section > header {
    align-items: start;
  }
  .timeline-section > header select {
    max-width: 135px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .grid.three {
    grid-template-columns: 1fr;
  }
  .playbook-hero {
    padding: 26px;
  }
  .playbook-hero h2 {
    font-size: 26px;
  }
  .playbook-hero:after {
    right: -20px;
    font-size: 190px;
  }
  .playbook-card {
    min-height: 0;
  }
  .playbook-card > span {
    margin-bottom: 15px;
  }
  .queue-banner {
    display: block;
  }
  .queue-banner > div {
    margin-top: 12px;
  }
  .bulk-bar {
    flex-wrap: wrap;
  }
  .pagination {
    align-items: start;
    gap: 10px;
  }
  .pagination > span {
    max-width: 160px;
    line-height: 1.6;
  }
  .login {
    padding: 25px;
    min-height: 100dvh;
  }
  .login-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 45px 0;
  }
  .login-grid > section h1 {
    font-size: 39px;
    margin-bottom: 18px;
  }
  .login-grid > section p {
    font-size: 12px;
  }
  .login-pills {
    margin-top: 20px;
  }
  .login-grid > form {
    padding: 25px;
  }
  .login-grid > form h2 {
    font-size: 22px;
  }
  .login > .brand {
    font-size: 22px;
  }
  .login > footer {
    line-height: 1.7;
  }
  .app-footer {
    font-size: 7px;
    padding: 10px 0 20px;
  }
  .settings-nav a {
    font-size: 9px;
    padding: 7px 11px;
  }
  .pipeline-config > header {
    align-items: start;
    flex-wrap: wrap;
  }
  .pipeline-config > header > div {
    flex-wrap: wrap;
  }
  #modal > header {
    padding: 18px 20px;
  }
  #modal form {
    padding: 20px;
  }
  #toasts {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
@media print {
  .sidebar,
  .topbar,
  .app-footer,
  .actions,
  .filters,
  button,
  .settings-nav {
    display: none !important;
  }
  .layout > main {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .content {
    padding: 0;
  }
  .panel,
  .kpi,
  .playbook-card {
    break-inside: avoid;
  }
  body {
    background: white;
    color: #111;
  }
  .kpis {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .panel {
    background: white;
  }
  .detail-dialog {
    position: static;
    height: auto;
    overflow: visible;
    width: 100%;
    max-height: none;
    border: 0;
    box-shadow: none;
  }
  .detail-dialog::backdrop {
    background: none;
  }
}
