@charset "UTF-8";
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #23364a;
  background: #f5f6f8;
  font-synthesis: none;
  font-size: 14px;
  --navy: #142e4e;
  --blue: #244e79;
  --muted: #7b8795;
  --line: #e9edf1;
  --cream: #f8f7f4;
  --coral: #dc7c67;
  --green: #6c9f92;
  --gold: #dbb66b;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6d9cc5;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
}
p {
  line-height: 1.6;
}
strong {
  font-weight: 650;
}
small {
  font-size: 12px;
}
svg {
  flex: none;
}
button {
  border: 0;
}
input,
select,
textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: #24384e;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #afbdcc;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6284a5;
  box-shadow: 0 0 0 3px #27578410;
  outline: 0;
}
input::placeholder,
textarea::placeholder {
  color: #9aa3af;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f3f5f7;
  color: #8d9aa7;
  cursor: not-allowed;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
select {
  cursor: pointer;
  padding-right: 24px;
}
::selection {
  background: #dbe7f4;
}
button .icon {
  width: 17px;
  height: 17px;
}
.icon {
  width: 20px;
  height: 20px;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 12px;
}
.small-label,
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #7b8a99;
}
.button {
  min-height: 39px;
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  line-height: 1.3;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button.primary {
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
}
.button.primary:hover:not(:disabled) {
  background: #24496f;
}
.button.secondary {
  background: #fff;
  border: 1px solid #dfe5eb;
  color: #3f5268;
}
.button.secondary:hover:not(:disabled) {
  background: #f4f7fa;
}
.button.text {
  padding: 7px 4px;
  min-height: 30px;
  background: transparent;
  color: #375c80;
}
.button.text:hover:not(:disabled) {
  color: #102e4f;
}
.button.full {
  width: 100%;
  min-height: 48px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  color: #8090a0;
  flex: none;
}
.icon-button:hover {
  background: #eef2f6;
  color: #23496c;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  background: #edf1f5;
  color: #68809b;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge.hot {
  background: #fcece7;
  color: #c37360;
}
.badge.warm {
  background: #fbf3de;
  color: #b48c36;
}
.badge.cold {
  background: #eaf1fa;
  color: #6787ae;
}
.badge.new {
  background: #edf2fd;
  color: #6280ba;
}
.badge.contacted {
  background: #f0ecf9;
  color: #8b77b7;
}
.badge.qualified {
  background: #fff2df;
  color: #b58b46;
}
.badge.won,
.badge.active-sale {
  background: #e8f3ee;
  color: #5d9580;
}
.badge.lost,
.badge.inactive-sale {
  background: #eef0f3;
  color: #818b98;
}
.badge.demo {
  background: #eef1f7;
  color: #7d86a2;
}
.badge.demo:before {
  display: none;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: #e9eef5;
  color: #5a7593;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 10px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 3px #102e4d02;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 24px 20px;
}
.card-heading h2 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
.card-heading p {
  font-size: 11px;
  color: #8993a0;
  margin-top: 5px;
}
.subtle-pill {
  font-size: 10px;
  white-space: nowrap;
  color: #81909f;
  background: #f5f7f9;
  padding: 6px 9px;
  border-radius: 5px;
}
.empty-state {
  min-height: 190px;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  color: #5d7085;
}
.empty-state p {
  font-size: 12px;
  color: #8794a2;
  max-width: 370px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: #f1f5f8;
  border-radius: 13px;
  color: #849bb2;
}
.loading-state,
.boot-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: 12px;
  color: #8191a2;
}
.spinner {
  width: 19px;
  height: 19px;
  border: 2px solid #dce5ed;
  border-top-color: #4c7194;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 10px;
  z-index: 200;
  background: #fff;
  padding: 12px;
  border-radius: 7px;
}
.skip-link:focus {
  top: 10px;
}
.toast {
  position: fixed;
  z-index: 150;
  bottom: 26px;
  left: 50%;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 20px);
  background: #173b34;
  color: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 8px 40px #142d4c20;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: #943e3e;
}
.form-error {
  background: #fff1ef;
  color: #ab4d45;
  border: 1px solid #f4d6d0;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.6;
}
.form-error[hidden] {
  display: none;
}
.notice {
  padding: 13px 15px;
  background: #f4f6f9;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  color: #748497;
  font-size: 11px;
  line-height: 1.65;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #485c72;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}
.field small {
  font-size: 10px;
  line-height: 1.5;
  font-weight: 400;
  color: #929dab;
}
.field > span {
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-footnote {
  font-size: 11px;
  color: #94a0af;
  text-align: center;
  line-height: 1.7;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 10px;
  color: #99a4b0;
  padding: 24px 0 3px;
}
.heading-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.count-pill {
  background: #edf2f6;
  border-radius: 6px;
  color: #678199;
  padding: 4px 8px;
  font-size: 11px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ca48b;
  flex: none;
}

/* Workspace */
.workspace {
  min-height: 100vh;
}
.sidebar {
  width: 218px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  color: #9db0c5;
  display: flex;
  flex-direction: column;
  padding: 37px 17px 18px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #fff;
  width: fit-content;
  position: relative;
}
.sidebar > .brand {
  margin: 0 20px 51px;
}
.brand strong {
  font-size: 35px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}
.brand span {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
  opacity: 0.65;
}
.brand:after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -11px;
  width: 75px;
  height: 3px;
  background: linear-gradient(
    90deg,
    #db7566 0 25%,
    #e1b56d 25% 50%,
    #81ac99 50% 75%,
    #799fbe 75%
  );
  border-radius: 3px;
}
.sidebar-caption {
  font-size: 8px;
  letter-spacing: 1.2px;
  padding: 0 18px;
  margin-bottom: 15px;
  color: #617e9d;
  font-weight: 700;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  border-radius: 7px;
  padding: 12px 15px;
  font-size: 12px;
  color: #a1b2c6;
  transition: 0.15s;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}
.nav-item:hover {
  color: #fff;
  background: #ffffff07;
}
.nav-item.active {
  background: #2a4360;
  color: #fff;
}
.nav-item.active:after {
  content: "";
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b7c9d9;
}
.nav-new {
  font-size: 7px;
  letter-spacing: 0.6px;
  padding: 3px 4px;
  color: #9eaca7;
  background: #314d60;
  border-radius: 3px;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  margin: 60px 9px 24px;
  padding: 16px 13px;
  background: #ffffff04;
  border: 1px solid #ffffff09;
  border-radius: 10px;
}
.sidebar-note-icon {
  display: block;
  color: #839eb8;
  margin-bottom: 9px;
}
.sidebar-note-icon .icon {
  width: 18px;
  height: 18px;
}
.sidebar-note strong {
  display: block;
  font-size: 10px;
  color: #c0cddd;
}
.sidebar-note p {
  font-size: 10px;
  line-height: 1.75;
  color: #7390ad;
  margin-top: 7px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #ffffff0d;
  padding-top: 20px;
}
.profile .avatar {
  width: 33px;
  height: 33px;
  background: #385370;
  color: #b9cce0;
  font-size: 10px;
}
.profile > div {
  overflow: hidden;
  flex: 1;
}
.profile strong {
  display: block;
  font-size: 10px;
  color: #dce6ef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  display: block;
  font-size: 9px;
  color: #819ab4;
  margin-top: 4px;
}
.profile .logout {
  width: 25px;
  color: #859bb1;
}
.profile .logout:hover {
  background: #ffffff12;
}
.profile .logout .icon {
  width: 15px;
}
.workspace-content {
  margin-left: 218px;
  min-width: 0;
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #8e99a6;
}
.breadcrumb .icon {
  width: 11px;
  height: 11px;
  color: #a6b0bc;
}
.breadcrumb strong {
  font-weight: 500;
  color: #3f546d;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 25px;
}
.today {
  color: #85909d;
  font-size: 10px;
}
.workspace-status {
  border-left: 1px solid #e9edf2;
  padding-left: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #728492;
}
.workspace-status i {
  width: 5px;
  height: 5px;
  background: #8cae96;
  border-radius: 50%;
}
.mobile-menu {
  display: none;
}
.sidebar-dismiss {
  display: none;
}
.main-content {
  padding: 31px 34px 25px;
  max-width: 1720px;
  margin: 0 auto;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.page-heading .eyebrow {
  font-size: 9px;
  color: #9aa5b0;
  letter-spacing: 1.7px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -1px;
  color: #263b51;
  line-height: 1.25;
  margin: 8px 0 8px;
}
.page-heading p {
  font-size: 12px;
  color: #8a95a1;
}
.page-heading > .button {
  align-self: center;
  margin-top: 14px;
}
.welcome-strip {
  background: #f0f2ee;
  border: 1px solid #e6eae1;
  border-radius: 9px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 23px;
}
.welcome-strip > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.welcome-strip p {
  font-size: 11px;
  color: #7e8a7b;
}
.welcome-strip strong {
  color: #5e725d;
  font-weight: 600;
}
.welcome-sun {
  color: #94a285;
  display: flex;
}
.welcome-sun .icon {
  width: 18px;
  height: 18px;
}
.welcome-strip .subtle-pill {
  font-size: 9px;
  background: #f8f9f5;
  color: #95a08e;
}

/* Overview */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 22px;
}
.metric {
  padding: 20px 21px 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.metric:after {
  content: "";
  position: absolute;
  height: 3px;
  width: 35px;
  left: 21px;
  bottom: 0;
  border-radius: 2px 2px 0 0;
  background: currentColor;
  opacity: 0.45;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #738293;
}
.metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #eef3f9;
  color: #809abb;
}
.metric-icon .icon {
  width: 16px;
  height: 16px;
}
.metric-value {
  display: block;
  font-size: 34px;
  letter-spacing: -1.5px;
  line-height: 1.2;
  color: #263b52;
  margin-top: 11px;
  font-weight: 650;
}
.metric p {
  font-size: 9px;
  color: #9aa5b1;
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.metric.blue {
  color: #6c8bb3;
}
.metric.coral {
  color: #d18674;
}
.metric.coral .metric-icon {
  background: #fcf0eb;
  color: #d4947e;
}
.metric.gold {
  color: #c5a969;
}
.metric.gold .metric-icon {
  background: #fbf6e9;
  color: #c5aa70;
}
.metric.green {
  color: #81a38d;
}
.metric.green .metric-icon {
  background: #eff5ee;
  color: #90a991;
}
.tiny-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8ca58c;
}
.overview-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(270px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  padding: 5px 24px 25px;
}
.pipeline-stage > div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #8b96a3;
  white-space: nowrap;
}
.stage-dot {
  display: block;
  width: 6px;
  height: 6px;
  background: #8aa2cb;
  border-radius: 50%;
  flex: none;
}
.pipeline-stage.contacted .stage-dot {
  background: #b1a2ca;
}
.pipeline-stage.qualified .stage-dot {
  background: #d4b57b;
}
.pipeline-stage.won .stage-dot {
  background: #83ac9a;
}
.pipeline-stage.lost .stage-dot {
  background: #b0b6be;
}
.pipeline-stage strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 18px 0 14px;
  color: #385069;
  font-weight: 600;
}
.pipeline-stage small {
  display: block;
  font-size: 9px;
  color: #a4adb6;
  margin-top: 8px;
}
progress {
  width: 100%;
  display: block;
  height: 6px;
  appearance: none;
  border: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f0f3f7;
  color: #94abc6;
}
progress::-webkit-progress-bar {
  background: #f0f3f7;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: #94abc6;
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: #94abc6;
  border-radius: 10px;
}
.pipeline progress {
  height: 5px;
}
.pipeline progress.contacted::-webkit-progress-value {
  background: #b5a8cd;
}
.pipeline progress.qualified::-webkit-progress-value {
  background: #d6bd87;
}
.pipeline progress.won::-webkit-progress-value {
  background: #90b5a3;
}
.pipeline progress.lost::-webkit-progress-value {
  background: #bbc2cb;
}
.temperature-content {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 0 24px 24px;
}
.donut-wrap {
  position: relative;
  width: 136px;
  height: 136px;
  flex: none;
}
.donut {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.donut .hot {
  stroke: #d99783;
}
.donut .warm {
  stroke: #ddc392;
}
.donut .cold {
  stroke: #91aacc;
}
.donut .track {
  stroke: #edf1f6;
}
.donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.donut-label strong {
  font-size: 26px;
  color: #344b63;
  letter-spacing: -1px;
}
.donut-label span {
  font-size: 9px;
  color: #9ba5b0;
}
.temperature-legend {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 17px;
}
.temperature-legend > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #83909f;
}
.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #91aacc;
}
.legend-dot.hot {
  background: #d99783;
}
.legend-dot.warm {
  background: #ddc392;
}
.temperature-legend strong {
  margin-left: auto;
  color: #5a6f84;
  font-size: 12px;
}
.temperature-legend small {
  width: 27px;
  text-align: right;
  font-size: 9px;
  color: #acb3bd;
}
.overview-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 22px;
}
.recent-card {
  grid-row: span 2;
  align-self: start;
}
.overview-bottom-grid .card-heading {
  padding-bottom: 16px;
}
.region-list {
  padding: 2px 24px 23px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.region-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.region-rank {
  font-size: 10px;
  color: #b2bac4;
}
.region-row > div {
  flex: 1;
}
.region-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  margin-bottom: 8px;
  color: #7b8a9a;
}
.region-label strong {
  font-size: 10px;
  color: #637b92;
}
.region-row progress {
  height: 4px;
}
.region-row:nth-child(2) progress::-webkit-progress-value {
  background: #b2c3d4;
}
.region-row:nth-child(3) progress::-webkit-progress-value {
  background: #c6d2df;
}
.region-row:nth-child(n + 4) progress::-webkit-progress-value {
  background: #d9e1ea;
}
.performance-list {
  padding: 0 24px 8px;
}
.performance-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f5;
}
.performance-row:last-child {
  border-bottom: 0;
}
.performance-name {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.performance-name strong {
  font-size: 10px;
  color: #5f7489;
}
.performance-name small {
  font-size: 9px;
  color: #a1aab6;
}
.performance-result {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}
.performance-result strong {
  font-size: 13px;
  color: #6b927f;
}
.performance-result small {
  font-size: 8px;
  color: #a0aaa5;
}

/* Tables and filters */
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
.data-table th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #9aa6b3;
  padding: 13px 17px;
  background: #fafbfc;
  border-top: 1px solid #f1f3f6;
  border-bottom: 1px solid #eff2f6;
}
.data-table td {
  padding: 17px;
  border-bottom: 1px solid #f0f3f6;
  color: #7c8c9d;
}
.data-table th:first-child,
.data-table td:first-child {
  padding-left: 24px;
}
.data-table th:last-child,
.data-table td:last-child {
  padding-right: 20px;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fafcfd;
}
.person-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  background: transparent;
  padding: 0;
  color: inherit;
}
.person-link > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.person-link strong {
  font-size: 11px;
  color: #49627d;
  font-weight: 600;
}
.person-link small {
  font-size: 9px;
  color: #a0aab5;
}
.person-link:hover strong {
  color: #14385f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.data-table.compact td {
  font-size: 10px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.data-table.compact .badge {
  font-size: 9px;
}
.cell-detail {
  display: block;
  font-size: 9px;
  color: #a9b1bb;
  margin-top: 6px;
}
.score-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-cell > strong {
  font-size: 12px;
  color: #6d7f92;
  min-width: 21px;
}
.unassigned {
  color: #b8a17e;
  font-size: 10px;
}
.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 23px;
}
.filters select {
  font-size: 11px;
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  min-height: 38px;
  padding: 9px 11px;
}
.filters .button {
  min-height: 38px;
}
.search-input {
  position: relative;
  min-width: 230px;
  flex: 1.6;
}
.search-input > .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #9eaaba;
}
.search-input input {
  padding-left: 36px;
  font-size: 11px;
  min-height: 38px;
}
.pagination {
  padding: 17px 24px;
  border-top: 1px solid #eff2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #98a4b1;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.pagination .button {
  min-height: 30px;
  font-size: 10px;
  padding: 7px 12px;
}

/* Lead drawer and forms */
.modal {
  border: 1px solid #e3e8ee;
  border-radius: 15px;
  box-shadow: 0 20px 90px #102d4b30;
  max-width: calc(100vw - 30px);
  max-height: calc(100dvh - 48px);
  width: 640px;
  padding: 0;
  color: #36506a;
  background: #fff;
}
.modal::backdrop {
  background: #132c4b65;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 25px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.modal-heading h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
}
.modal-body {
  padding: 25px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #edf1f5;
}
.modal.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 520px;
  max-height: 100dvh;
  height: 100dvh;
  max-width: 100vw;
  border-radius: 14px 0 0 14px;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}
.drawer-body {
  padding: 27px;
}
.lead-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.lead-hero > .avatar {
  width: 58px;
  height: 58px;
  font-size: 19px;
  background: #edf1f6;
}
.lead-hero .eyebrow {
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #9aa7b3;
}
.lead-hero h3 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 6px 0 10px;
  color: #314b66;
}
.hero-badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.detail-score {
  border-radius: 10px;
  background: #f4f6f9;
  border: 1px solid #e9edf2;
  padding: 17px 19px;
}
.detail-score > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-score span {
  font-size: 12px;
  font-weight: 600;
  color: #748698;
}
.detail-score strong {
  font-size: 26px;
  color: #567491;
}
.detail-score strong small {
  font-size: 12px;
  color: #9cacbb;
  font-weight: 400;
  margin-left: 4px;
}
.detail-score p {
  font-size: 10px;
  color: #8d9caa;
  margin-top: 5px;
}
.detail-section {
  margin-top: 28px;
  padding-bottom: 25px;
  border-bottom: 1px solid #edf1f5;
}
.detail-section > h3 {
  font-size: 13px;
  margin-bottom: 18px;
  color: #435c74;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 25px;
  margin: 0;
}
.detail-grid dt {
  font-size: 10px;
  color: #98a4b1;
  margin-bottom: 6px;
}
.detail-grid dd {
  margin: 0;
  font-size: 12px;
  color: #61768b;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.detail-update {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.detail-update .button {
  align-self: flex-end;
}
.detail-update .field {
  font-size: 10px;
}
.detail-update select {
  font-size: 11px;
  min-height: 39px;
}
.detail-section > .notice {
  margin-bottom: 18px;
}
.breakdown {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 15px;
}
.breakdown > div > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #8292a2;
  margin-bottom: 8px;
}
.breakdown strong {
  color: #64829f;
  font-size: 10px;
}
.breakdown progress {
  height: 4px;
}
.detail-section > small {
  font-size: 9px;
}
.notes-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.notes-form textarea {
  font-size: 11px;
  min-height: 86px;
}
.notes-form .button {
  align-self: flex-end;
  font-size: 10px;
  min-height: 34px;
}
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.note {
  padding: 14px;
  background: #f8fafb;
  border-radius: 8px;
}
.note > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.note strong {
  font-size: 10px;
  color: #658098;
}
.note time {
  font-size: 9px;
  color: #a0abb6;
}
.note p {
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #7a8d9f;
  margin-top: 9px;
}
.activity-list {
  list-style: none;
  padding: 0 0 0 9px;
  margin: 0;
}
.activity-list li {
  padding: 0 0 20px 20px;
  border-left: 1px solid #e3e9ef;
  position: relative;
}
.activity-list li:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  width: 7px;
  height: 7px;
  background: #b1c3d3;
  border: 2px solid white;
  outline: 1px solid #d7e2ec;
  border-radius: 50%;
}
.activity-list li:last-child {
  padding-bottom: 0;
}
.activity-list p {
  font-size: 11px;
  color: #7b90a4;
  overflow-wrap: anywhere;
}
.activity-list small {
  font-size: 9px;
  color: #a6b0bc;
  display: block;
  margin-top: 4px;
}
.consent-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 23px 0 0;
  color: #9cadad;
}
.consent-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.consent-note p {
  font-size: 9px;
  line-height: 1.8;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px;
  background: #f7f9fb;
  border-radius: 8px;
  margin: 23px 0;
}
.check-field input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--navy);
  margin: 2px 0 0;
}
.check-field strong {
  font-size: 12px;
  display: block;
}
.check-field small {
  font-size: 10px;
  display: block;
  color: #96a2af;
  margin-top: 5px;
  line-height: 1.6;
}
.form-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}
.form-section-heading h3 {
  font-size: 13px;
}
.territory-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.territory-edit-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 30px;
  gap: 10px;
  align-items: end;
}
.territory-edit-row .field {
  font-size: 10px;
}
.territory-edit-row input {
  font-size: 11px;
}
.remove-territory {
  margin-bottom: 4px;
}
.sale-modal .form-error {
  margin-top: 18px;
}

/* Sales */
.sales-summary {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 3px 0 23px;
  font-size: 11px;
  color: #7b8c9c;
}
.sales-summary strong {
  color: #415f7a;
  font-size: 17px;
  margin-right: 5px;
}
.sales-summary > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sales-summary > .muted {
  font-size: 10px;
  margin-left: auto;
  color: #98a6b2;
}
.sales-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}
.sale-card {
  padding: 22px;
}
.sale-header {
  display: flex;
  align-items: center;
  gap: 11px;
}
.sale-header > div {
  flex: 1;
  min-width: 0;
}
.sale-header h2 {
  font-size: 13px;
  color: #526d88;
  line-height: 1.4;
  margin-bottom: 7px;
}
.sale-header .badge {
  font-size: 9px;
}
.sale-header .icon-button {
  width: 25px;
}
.sale-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 23px 0;
  color: #91a0af;
}
.sale-contact p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.sale-contact .icon {
  width: 14px;
  height: 14px;
  color: #a2b0bd;
}
.sale-territories {
  border-top: 1px solid #eef2f5;
  padding-top: 19px;
  min-height: 110px;
}
.sale-territories .small-label {
  font-size: 8px;
  letter-spacing: 1px;
  color: #a2adba;
}
.territory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.territory-tags > span {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 6px 8px;
  font-size: 9px;
  background: #f5f7f9;
  border-radius: 5px;
  color: #8498aa;
  line-height: 1.5;
}
.territory-tags .icon {
  width: 11px;
  height: 11px;
}
.sale-territories > p {
  margin-top: 10px;
  font-size: 10px;
}
.sale-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eef2f5;
  padding-top: 18px;
  margin-top: 18px;
  gap: 8px;
}
.sale-footer > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.sale-footer strong {
  font-size: 20px;
  letter-spacing: -0.5px;
  color: #597b9c;
}
.sale-footer span {
  font-size: 9px;
  color: #9faab6;
}
.sale-footer small {
  font-size: 9px;
  color: #91a796;
}

/* Rules */
.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.rules-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rule-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  padding: 0 24px 23px;
}
.rule-fields .field {
  font-size: 11px;
  color: #8796a5;
}
.rule-fields input {
  font-size: 14px;
  color: #56728e;
  max-width: 150px;
}
.rule-hint {
  display: flex;
  gap: 9px;
  align-items: center;
  grid-column: 1/-1;
}
.rule-hint p {
  font-size: 10px;
  color: #97a4af;
}
.rule-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}
.rule-save > p {
  font-size: 10px;
  color: #95a2af;
  max-width: 260px;
}
.rules-guide {
  position: sticky;
  top: 20px;
}
.rules-guide > .card {
  padding: 27px;
}
.guide-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 10px;
  background: #f3f0e9;
  color: #ad9774;
  margin-bottom: 22px;
}
.rules-guide h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
  line-height: 1.35;
  color: #3b5671;
  margin-bottom: 12px;
}
.rules-guide > .card > .muted {
  font-size: 11px;
}
.assignment-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 27px 0;
}
.assignment-steps li {
  counter-increment: step;
  padding-left: 35px;
  position: relative;
}
.assignment-steps li:before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 9px;
  border: 1px solid #e4eaf0;
  background: #f7f9fb;
  color: #98a9b9;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.assignment-steps strong {
  font-size: 11px;
  display: block;
  color: #647f98;
}
.assignment-steps p {
  font-size: 10px;
  margin-top: 6px;
  line-height: 1.8;
  color: #98a5b2;
}
.rules-guide .button.primary {
  margin-top: 20px;
  width: 100%;
  font-size: 10px;
}
.rules-note {
  display: flex;
  gap: 10px;
  color: #91a39e;
  padding: 20px 12px;
}
.rules-note .icon {
  width: 17px;
  height: 17px;
  flex: none;
}
.rules-note p {
  font-size: 10px;
  line-height: 1.8;
}
.assignment-result {
  font-size: 10px;
  color: #7e9c8c;
  margin-top: 15px;
}

/* Conversation */
.simulator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  height: 690px;
  min-height: 400px;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 21px 23px;
  border-bottom: 1px solid #edf1f5;
}
.chat-header > div {
  flex: 1;
}
.chat-header h2 {
  font-size: 13px;
  color: #4a6681;
  margin-bottom: 6px;
}
.chat-header p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #a1adb8;
}
.chat-brand-avatar {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 750;
  font-style: italic;
  font-size: 23px;
  width: 39px;
  height: 39px;
  border-radius: 12px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  background: #fafbfc;
  min-height: 0;
  scroll-behavior: smooth;
}
.chat-date {
  text-align: center;
  font-size: 9px;
  color: #b0b9c3;
  margin: 0 0 24px;
}
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-bottom: 16px;
}
.chat-row.user {
  justify-content: flex-end;
}
.bot-avatar {
  display: grid;
  place-items: center;
  align-self: flex-start;
  margin-top: 3px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #eaf0f5;
  color: #8b9fb3;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
  flex: none;
}
.bot-message-group {
  max-width: 85%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.chat-bubble {
  background: #fff;
  color: #71869a;
  border: 1px solid #e9eef3;
  padding: 12px 15px;
  border-radius: 12px 12px 12px 3px;
  font-size: 11px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.user > .chat-bubble {
  max-width: 80%;
  background: #25486c;
  border-color: #25486c;
  border-radius: 12px 12px 3px 12px;
  color: #edf2f8;
}
.chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.button.chat-choice {
  background: #fff;
  border: 1px solid #c8d7e5;
  border-radius: 16px;
  color: #6f8ba7;
  font-size: 10px;
  padding: 8px 12px;
  min-height: 30px;
  white-space: normal;
  text-align: left;
  line-height: 1.5;
}
.button.chat-choice:hover:not(:disabled) {
  background: #eaf1f8;
  color: #3e658a;
}
.button.chat-choice:disabled {
  opacity: 0.47;
}
.chat-typing {
  font-size: 10px;
  color: #9cacba;
  padding-left: 36px;
}
.chat-composer {
  display: flex;
  gap: 10px;
  padding: 17px 20px 12px;
}
.chat-composer input {
  font-size: 11px;
  min-height: 40px;
}
.chat-composer .send-button {
  width: 42px;
  padding: 10px;
  min-height: 40px;
  flex: none;
}
.chat-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 9px;
  color: #adb9c4;
  padding: 0 12px 16px;
}
.chat-footer .icon {
  width: 12px;
  height: 12px;
}
.chat-error {
  margin: 8px 20px 0;
}
.chat-template-card {
  background: #fff;
  border: 1px solid #e1e8ef;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #7991a6;
}
.chat-template-card strong {
  font-size: 12px;
}
.chat-template-card p {
  font-size: 11px;
}
.simulator-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.simulator-guide {
  padding: 27px;
}
.simulator-guide .eyebrow {
  font-size: 8px;
  color: #a3aebb;
}
.simulator-guide h2 {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.7px;
  color: #435e7a;
  margin-top: 15px;
}
.simulator-guide .assignment-steps {
  margin-top: 25px;
}
.simulator-placeholder {
  border: 1px dashed #d8e0e8;
  border-radius: 12px;
  padding: 27px;
  text-align: center;
  background: #f7f9fb;
}
.simulator-placeholder > .icon {
  width: 26px;
  height: 26px;
  color: #b0bdc9;
  margin-bottom: 13px;
}
.simulator-placeholder h3 {
  font-size: 12px;
  color: #8ca0b3;
}
.simulator-placeholder p {
  font-size: 10px;
  color: #a5b0bc;
  margin-top: 8px;
  line-height: 1.8;
}
.success-panel {
  padding: 25px;
  background: #f0f6f2;
  border: 1px solid #d9e8dd;
  border-radius: 12px;
}
.success-icon {
  color: #82a28d;
  display: block;
  margin-bottom: 12px;
}
.success-panel h3 {
  font-size: 15px;
  color: #5b7c65;
}
.success-panel p {
  font-size: 11px;
  color: #8b9f8f;
  margin: 10px 0 17px;
}
.success-panel .button {
  font-size: 10px;
}
.success-panel .button.text {
  display: flex;
  margin-top: 8px;
}

/* Sign in */
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  background: #fbfcfd;
}
.login-art {
  position: relative;
  overflow: hidden;
  background: #142e4e;
  padding: 55px 65px;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 720px;
}
.login-brand {
  z-index: 1;
}
.login-brand strong {
  font-size: 43px;
}
.login-brand span {
  font-size: 12px;
}
.login-copy {
  margin: auto 0;
  position: relative;
  z-index: 1;
  padding: 70px 0 100px;
}
.login-copy .eyebrow {
  font-size: 9px;
  color: #b1c1d2;
  letter-spacing: 2px;
}
.login-copy h1 {
  font-size: clamp(35px, 3.6vw, 57px);
  font-weight: 450;
  letter-spacing: -1.9px;
  line-height: 1.27;
  margin: 28px 0;
}
.login-copy h1 em {
  font-style: normal;
  color: #dcc496;
}
.login-copy p {
  font-size: 12px;
  line-height: 1.9;
  color: #99adc4;
  max-width: 305px;
}
.login-art-footer {
  font-size: 8px;
  letter-spacing: 2px;
  color: #6c87a3;
  position: relative;
  z-index: 1;
}
.paint-shapes {
  position: absolute;
  width: 400px;
  height: 500px;
  right: -105px;
  bottom: -90px;
  transform: rotate(-30deg);
  opacity: 0.82;
}
.paint-shapes i {
  position: absolute;
  display: block;
  width: 130px;
  height: 480px;
  border-radius: 150px 150px 0 0;
  transform: rotate(12deg);
  background: #799e91;
  bottom: -100px;
  right: 10px;
}
.paint-shapes i:nth-child(2) {
  background: #ddb88b;
  right: 150px;
  bottom: -180px;
  transform: rotate(7deg);
}
.paint-shapes i:nth-child(3) {
  background: #ca8772;
  right: 290px;
  bottom: -240px;
  transform: rotate(7deg);
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-form-wrap {
  width: 355px;
  max-width: 100%;
}
.login-mark {
  display: grid;
  place-items: center;
  background: #f0ede6;
  color: #b49f7b;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 25px;
}
.login-mark .icon {
  width: 22px;
  height: 22px;
}
.login-form-wrap h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  color: #2f4964;
  margin-bottom: 12px;
}
.login-form-wrap > .muted {
  font-size: 12px;
  color: #8e9eac;
  line-height: 1.8;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin-top: 34px;
}
.login-form .field {
  font-size: 11px;
  color: #687e94;
}
.login-form input {
  height: 47px;
  font-size: 12px;
  background: #fff;
}
.login-form .full {
  margin-top: 3px;
  font-size: 12px;
}
.login-form .form-footnote {
  font-size: 10px;
}
.login-security {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: #a6b1ba;
  margin-top: 42px;
  justify-content: center;
}
.login-security .icon {
  width: 14px;
  height: 14px;
  color: #9cb1a5;
}

@media (min-width: 1550px) {
  .sidebar {
    width: 235px;
  }
  .workspace-content {
    margin-left: 235px;
  }
  .main-content {
    padding: 36px 44px;
  }
  .topbar {
    padding: 0 44px;
  }
  .metrics {
    gap: 23px;
  }
  .overview-bottom-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  }
  .metric {
    padding: 23px 25px;
  }
  .metric-value {
    font-size: 39px;
  }
  .pipeline {
    padding-top: 15px;
    padding-bottom: 30px;
  }
  .temperature-content {
    padding-top: 7px;
  }
  .data-table.compact td {
    padding-top: 23px;
    padding-bottom: 23px;
  }
  .sales-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 198px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace-content {
    margin-left: 198px;
  }
  .sidebar > .brand {
    margin-left: 18px;
  }
  .nav-item {
    padding: 12px 13px;
    font-size: 11px;
    gap: 11px;
  }
  .main-content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metric {
    padding: 17px 16px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-icon {
    width: 26px;
    height: 26px;
  }
  .metric p {
    font-size: 8px;
  }
  .overview-main-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 18px;
  }
  .pipeline {
    padding-left: 19px;
    padding-right: 19px;
    gap: 10px;
  }
  .pipeline-stage > div {
    font-size: 8px;
    gap: 4px;
  }
  .pipeline-stage strong {
    font-size: 22px;
  }
  .card-heading {
    padding-left: 19px;
    padding-right: 19px;
  }
  .card-heading h2 {
    font-size: 13px;
  }
  .card-heading p {
    font-size: 9px;
  }
  .temperature-content {
    padding-left: 17px;
    padding-right: 17px;
    gap: 14px;
  }
  .donut-wrap {
    width: 115px;
    height: 115px;
  }
  .temperature-legend {
    gap: 14px;
  }
  .temperature-legend > div {
    font-size: 9px;
    gap: 6px;
  }
  .temperature-legend small {
    font-size: 8px;
    width: 23px;
  }
  .overview-bottom-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(255px, 1fr);
    gap: 18px;
  }
  .data-table.compact td,
  .data-table.compact th {
    padding-left: 12px;
    padding-right: 12px;
  }
  .data-table.compact .person-link {
    gap: 8px;
  }
  .data-table.compact .avatar {
    width: 29px;
    height: 29px;
    font-size: 9px;
  }
  .data-table.compact .person-link strong {
    font-size: 10px;
  }
  .data-table.compact td {
    font-size: 9px;
  }
  .data-table.compact th:first-child,
  .data-table.compact td:first-child {
    padding-left: 19px;
  }
  .data-table.compact td:last-child,
  .data-table.compact th:last-child {
    padding: 8px 8px 8px 0;
  }
  .sales-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rules-layout,
  .simulator-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(265px, 1fr);
    gap: 18px;
  }
  .rules-guide > .card,
  .simulator-guide {
    padding: 23px;
  }
  .rule-save {
    flex-wrap: wrap;
  }
  .login-art {
    padding: 45px;
  }
  .login-panel {
    padding: 35px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 182px;
  }
  .workspace-content {
    margin-left: 182px;
  }
  .sidebar > .brand {
    margin-left: 14px;
  }
  .brand strong {
    font-size: 30px;
  }
  .brand span {
    font-size: 9px;
  }
  .sidebar-caption {
    font-size: 7px;
    padding-left: 14px;
  }
  .nav-item {
    font-size: 10px;
    gap: 9px;
    padding: 12px;
  }
  .nav-item .icon {
    width: 16px;
    height: 16px;
  }
  .sidebar-note {
    margin-left: 2px;
    margin-right: 2px;
    padding: 13px 10px;
  }
  .sidebar-note strong {
    font-size: 9px;
  }
  .sidebar-note p {
    font-size: 9px;
  }
  .main-content {
    padding: 24px 21px;
  }
  .topbar {
    padding: 0 21px;
  }
  .today {
    font-size: 9px;
  }
  .topbar-right {
    gap: 15px;
  }
  .overview-main-grid {
    grid-template-columns: 1fr;
  }
  .temperature-content {
    gap: 35px;
  }
  .temperature-legend {
    max-width: 260px;
    width: 100%;
  }
  .temperature-content {
    padding: 0 30px 24px;
  }
  .donut-wrap {
    width: 120px;
    height: 120px;
  }
  .temperature-legend > div {
    font-size: 11px;
  }
  .temperature-legend strong {
    font-size: 13px;
  }
  .temperature-legend small {
    font-size: 10px;
  }
  .overview-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .recent-card {
    grid-column: 1/-1;
    grid-row: auto;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 13px;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-top > span:first-child {
    max-width: 82px;
    line-height: 1.6;
  }
  .metric-icon {
    width: 24px;
    height: 24px;
  }
  .metric p {
    font-size: 8px;
    line-height: 1.65;
    min-height: 25px;
  }
  .metric:after {
    left: 13px;
  }
  .welcome-strip .subtle-pill {
    display: none;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading > .button {
    font-size: 10px;
  }
  .pipeline {
    padding: 8px 22px 25px;
  }
  .pipeline-stage > div {
    font-size: 10px;
  }
  .pipeline-stage strong {
    font-size: 27px;
  }
  .card-heading h2 {
    font-size: 14px;
  }
  .card-heading p {
    font-size: 10px;
  }
  .rules-layout,
  .simulator-layout {
    grid-template-columns: 1fr;
  }
  .rules-guide {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }
  .simulator-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .simulator-guide h2 {
    font-size: 20px;
  }
  .simulator-guide {
    padding: 22px;
  }
  .simulator-placeholder {
    padding: 22px;
  }
  .chat-panel {
    height: 640px;
  }
  .sales-summary > .muted {
    display: none;
  }
  .page-footer {
    font-size: 9px;
    line-height: 1.6;
  }
  .data-table.compact td {
    font-size: 11px;
  }
  .data-table.compact .person-link strong {
    font-size: 12px;
  }
  .data-table.compact th {
    font-size: 10px;
  }
  .data-table.compact .person-link small {
    font-size: 10px;
  }
  .login-copy h1 {
    font-size: 39px;
  }
  .login-art {
    padding: 37px;
  }
  .login-panel {
    padding: 32px;
  }
  .login-copy p {
    max-width: 235px;
  }
  .paint-shapes {
    right: -150px;
    opacity: 0.65;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 210px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: none;
    padding: 28px 17px 18px;
    visibility: hidden;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 15px 0 40px #12345730;
    visibility: visible;
  }
  .sidebar-dismiss {
    display: inline-flex;
    position: absolute;
    right: 9px;
    top: 10px;
    color: #9db0c5;
  }
  .sidebar > .brand {
    margin-bottom: 44px;
  }
  .nav-item {
    font-size: 12px;
    gap: 12px;
  }
  .sidebar-caption {
    font-size: 8px;
  }
  .sidebar-note {
    margin-top: 30px;
  }
  .sidebar-note p {
    font-size: 10px;
  }
  .workspace-content {
    margin-left: 0;
  }
  .topbar {
    height: 59px;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .mobile-menu {
    display: inline-flex;
    margin-left: -6px;
  }
  .mobile-menu > .icon {
    width: 19px;
    height: 19px;
    color: #658099;
  }
  .breadcrumb {
    gap: 8px;
  }
  .breadcrumb > span {
    display: none;
  }
  .breadcrumb > .icon {
    display: none;
  }
  .breadcrumb strong {
    font-size: 11px;
  }
  .topbar-right {
    gap: 10px;
  }
  .today {
    font-size: 9px;
  }
  .workspace-status {
    padding-left: 12px;
    font-size: 9px;
  }
  .main-content {
    padding: 24px 18px 22px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 290px;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 10px 12px;
    min-height: 36px;
    gap: 6px;
  }
  .welcome-strip {
    padding: 12px;
    margin-bottom: 18px;
  }
  .welcome-strip p {
    font-size: 10px;
  }
  .metrics {
    gap: 12px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 17px 15px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-top > span:first-child {
    max-width: 110px;
  }
  .metric-value {
    font-size: 30px;
  }
  .metric p {
    font-size: 8px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric p {
    min-height: 0;
    margin-top: 10px;
  }
  .metric-top > span:first-child {
    max-width: none;
  }
  .metric-icon {
    width: 27px;
    height: 27px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric:after {
    left: 15px;
  }
  .overview-main-grid,
  .overview-bottom-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
  .overview-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .temperature-card .card-heading {
    padding-bottom: 8px;
  }
  .temperature-content {
    padding-bottom: 20px;
    justify-content: center;
  }
  .temperature-legend {
    max-width: 280px;
  }
  .page-footer {
    flex-direction: column;
    gap: 5px;
    padding-top: 0;
  }
  .filters {
    padding: 0 18px 20px;
    gap: 9px;
  }
  .search-input {
    min-width: 100%;
    flex-basis: 100%;
  }
  .filters select {
    min-width: calc(50% - 9px);
    max-width: none;
  }
  .filters .button.primary {
    flex: 1;
  }
  .filters .button.text {
    flex: 1;
  }
  .leads-card .card-heading {
    align-items: flex-start;
  }
  .leads-card .card-heading > .small-text {
    font-size: 9px;
    max-width: 130px;
    line-height: 1.7;
    text-align: right;
  }
  .pagination {
    padding: 17px 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .pagination > span {
    width: 100%;
    text-align: center;
  }
  .sales-grid {
    gap: 16px;
  }
  .sale-card {
    padding: 18px;
  }
  .sale-header {
    gap: 9px;
  }
  .sale-header > .avatar {
    width: 35px;
    height: 35px;
    font-size: 11px;
  }
  .sale-header h2 {
    font-size: 11px;
  }
  .sale-header .badge {
    font-size: 8px;
  }
  .sale-contact p {
    font-size: 9px;
  }
  .sale-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .sale-territories {
    min-height: 120px;
  }
  .rules-layout {
    gap: 20px;
  }
  .rule-save {
    padding: 4px;
    flex-wrap: nowrap;
  }
  .rule-save .button {
    font-size: 10px;
  }
  .rule-save > p {
    font-size: 9px;
    max-width: 210px;
  }
  .login-page {
    display: block;
    background: #fbfcfd;
  }
  .login-art {
    min-height: 0;
    height: 220px;
    padding: 30px 35px;
  }
  .login-brand strong {
    font-size: 33px;
  }
  .login-brand span {
    font-size: 10px;
  }
  .login-copy {
    padding: 0;
    margin-top: 34px;
  }
  .login-copy .eyebrow {
    font-size: 8px;
  }
  .login-copy h1 {
    font-size: 26px;
    letter-spacing: -0.7px;
    margin: 13px 0;
    line-height: 1.3;
  }
  .login-copy h1 br {
    display: none;
  }
  .login-copy h1 em {
    display: block;
  }
  .login-copy p,
  .login-art-footer {
    display: none;
  }
  .paint-shapes {
    width: 260px;
    height: 300px;
    right: -105px;
    bottom: -150px;
    opacity: 0.5;
  }
  .paint-shapes i {
    height: 330px;
    width: 80px;
    right: 0;
  }
  .paint-shapes i:nth-child(2) {
    right: 90px;
    bottom: -115px;
  }
  .paint-shapes i:nth-child(3) {
    right: 180px;
    bottom: -140px;
  }
  .login-panel {
    padding: 37px 30px;
  }
  .login-form-wrap {
    width: 380px;
  }
  .login-mark {
    display: none;
  }
  .login-form-wrap h2 {
    font-size: 24px;
  }
  .login-form {
    margin-top: 29px;
    gap: 21px;
  }
  .login-security {
    margin-top: 28px;
  }
  .modal {
    max-height: calc(100dvh - 25px);
  }
  .modal-body {
    padding: 22px;
  }
  .modal-heading {
    padding: 17px 22px;
  }
  .modal.drawer {
    border-radius: 0;
  }
  .drawer-body {
    padding: 23px;
  }
}
@media (max-width: 480px) {
  .main-content {
    padding: 22px 15px;
  }
  .topbar {
    padding: 0 15px;
  }
  .today {
    font-size: 8px;
  }
  .workspace-status {
    font-size: 8px;
    padding-left: 9px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 24px;
    letter-spacing: -0.8px;
  }
  .page-heading p {
    max-width: 245px;
    font-size: 10px;
  }
  .page-heading > .button {
    font-size: 0;
    min-width: 37px;
    height: 37px;
    padding: 10px;
    margin-top: 23px;
    gap: 0;
  }
  .page-heading > .button .icon {
    width: 17px;
    height: 17px;
  }
  .page-heading > .button:focus-visible {
    font-size: 10px;
    gap: 6px;
  }
  .welcome-strip {
    padding: 11px;
  }
  .welcome-strip p {
    font-size: 9px;
    line-height: 1.7;
  }
  .welcome-sun .icon {
    width: 16px;
    height: 16px;
  }
  .metrics {
    gap: 11px;
  }
  .metric {
    padding: 15px;
  }
  .metric-top {
    font-size: 9px;
    gap: 5px;
  }
  .metric-icon {
    width: 25px;
    height: 25px;
  }
  .metric-icon .icon {
    width: 14px;
    height: 14px;
  }
  .metric-value {
    font-size: 30px;
    margin-top: 11px;
  }
  .metric p {
    font-size: 8px;
    line-height: 1.6;
  }
  .overview-main-grid {
    gap: 17px;
  }
  .card-heading {
    padding: 20px 18px 18px;
    gap: 10px;
  }
  .card-heading h2 {
    font-size: 13px;
  }
  .card-heading p {
    font-size: 9px;
  }
  .card-heading .subtle-pill {
    font-size: 8px;
    padding: 5px 7px;
  }
  .pipeline {
    padding: 4px 18px 21px;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .pipeline-stage > div {
    font-size: 8px;
    white-space: normal;
    line-height: 1.6;
    min-height: 25px;
    align-items: flex-start;
  }
  .stage-dot {
    width: 4px;
    height: 4px;
    margin-top: 4px;
  }
  .pipeline-stage strong {
    font-size: 23px;
    margin: 11px 0;
  }
  .pipeline-stage small {
    font-size: 7px;
    line-height: 1.6;
  }
  .temperature-content {
    padding: 0 23px 21px;
    gap: 27px;
  }
  .donut-wrap {
    width: 122px;
    height: 122px;
  }
  .temperature-legend {
    gap: 15px;
  }
  .temperature-legend > div {
    font-size: 10px;
  }
  .temperature-legend strong {
    font-size: 12px;
  }
  .temperature-legend small {
    font-size: 8px;
  }
  .overview-bottom-grid {
    grid-template-columns: 1fr;
  }
  .recent-card {
    grid-column: auto;
  }
  .data-table.compact {
    min-width: 440px;
  }
  .data-table.compact td {
    font-size: 10px;
    padding-top: 17px;
    padding-bottom: 17px;
  }
  .data-table.compact .person-link strong {
    font-size: 10px;
  }
  .data-table.compact .person-link small {
    font-size: 9px;
  }
  .data-table.compact th {
    font-size: 9px;
  }
  .recent-card .card-heading .button.text {
    font-size: 9px;
    gap: 5px;
  }
  .recent-card .button.text .icon {
    width: 14px;
  }
  .regions-card .region-list {
    padding: 3px 19px 22px;
  }
  .performance-list {
    padding: 0 19px 10px;
  }
  .performance-name strong {
    font-size: 11px;
  }
  .performance-name small {
    font-size: 10px;
  }
  .performance-result small {
    font-size: 9px;
  }
  .sales-grid {
    grid-template-columns: 1fr;
  }
  .sale-card {
    padding: 22px;
  }
  .sale-header > .avatar {
    width: 43px;
    height: 43px;
    font-size: 13px;
  }
  .sale-header h2 {
    font-size: 14px;
  }
  .sale-header .badge {
    font-size: 10px;
  }
  .sale-contact p {
    font-size: 11px;
  }
  .sale-territories {
    min-height: 95px;
  }
  .territory-tags > span {
    font-size: 10px;
  }
  .sale-footer {
    flex-direction: row;
    align-items: center;
  }
  .sale-footer span {
    font-size: 10px;
  }
  .sale-footer small {
    font-size: 10px;
  }
  .sales-summary {
    font-size: 10px;
    gap: 18px;
    padding-bottom: 20px;
  }
  .sales-summary strong {
    font-size: 17px;
  }
  .rule-fields {
    padding: 0 18px 20px;
    gap: 16px;
  }
  .rule-fields .field {
    font-size: 10px;
  }
  .rule-fields input {
    font-size: 13px;
  }
  .rule-save {
    flex-direction: column;
    align-items: stretch;
  }
  .rule-save p {
    max-width: none;
    text-align: center;
    font-size: 10px;
  }
  .rules-guide > .card {
    padding: 24px;
  }
  .rules-guide h2 {
    font-size: 25px;
  }
  .rules-guide .button.primary {
    font-size: 11px;
  }
  .simulator-sidebar {
    display: flex;
  }
  .chat-panel {
    height: calc(100dvh - 235px);
    min-height: 485px;
  }
  .chat-header {
    padding: 17px;
  }
  .chat-header h2 {
    font-size: 11px;
  }
  .chat-brand-avatar {
    width: 33px;
    height: 33px;
    font-size: 21px;
  }
  .chat-header p {
    font-size: 8px;
  }
  .chat-header .badge {
    font-size: 8px;
  }
  .chat-messages {
    padding: 20px 14px;
  }
  .chat-bubble {
    font-size: 11px;
    padding: 11px 13px;
  }
  .bot-message-group {
    max-width: 88%;
  }
  .bot-avatar {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }
  .chat-row {
    gap: 7px;
  }
  .chat-composer {
    padding: 14px 14px 11px;
  }
  .chat-footer {
    font-size: 8px;
  }
  .simulator-guide {
    padding: 25px;
  }
  .simulator-guide h2 {
    font-size: 24px;
  }
  .simulator-placeholder {
    padding: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-heading {
    padding: 16px 20px;
  }
  .modal-heading h2 {
    font-size: 15px;
  }
  .territory-edit-row {
    grid-template-columns: 1fr 28px;
    align-items: start;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    padding: 12px;
  }
  .territory-edit-row > .field:first-child {
    grid-column: 1;
  }
  .territory-edit-row > .field:nth-child(2) {
    grid-row: 2;
    grid-column: 1;
  }
  .remove-territory {
    grid-row: 1;
    grid-column: 2;
  }
  .modal-actions {
    gap: 8px;
  }
  .modal-actions .button {
    font-size: 10px;
    padding: 10px 12px;
    white-space: normal;
  }
  .drawer-body {
    padding: 22px;
  }
  .detail-grid {
    gap: 18px;
  }
  .lead-hero h3 {
    font-size: 21px;
  }
  .detail-update .form-grid {
    grid-template-columns: 1fr;
  }
  .detail-section > h3 {
    font-size: 13px;
  }
  .detail-grid dd {
    font-size: 12px;
  }
  .drawer .modal-heading h2 {
    font-size: 14px;
  }
  .toast {
    font-size: 11px;
    padding: 12px 15px;
    width: max-content;
    bottom: 18px;
  }
  .login-art {
    height: 205px;
    padding: 28px;
  }
  .login-copy {
    margin-top: 30px;
  }
  .login-copy h1 {
    font-size: 24px;
  }
  .login-panel {
    padding: 32px 28px;
  }
  .login-form-wrap h2 {
    font-size: 23px;
  }
  .login-form-wrap > .muted {
    font-size: 11px;
  }
  .login-form {
    gap: 20px;
  }
  .login-form .field {
    font-size: 11px;
  }
  .login-security {
    font-size: 8px;
  }
  .confirm-modal .modal-actions {
    flex-direction: column-reverse;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
