:root {
  --ink: #0b1220;
  --ink-soft: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e7ebf2;
  --line-strong: #d9e0ea;
  --canvas: #f5f7fb;
  --card: #ffffff;
  --brand: #1687f8;
  --brand-strong: #086bd2;
  --brand-pale: #eaf5ff;
  --navy: #0c1c35;
  --navy-soft: #132a4d;
  --success: #13a673;
  --success-pale: #e9f9f2;
  --warning: #e89b12;
  --warning-pale: #fff7e7;
  --danger: #e35353;
  --danger-pale: #fff0f0;
  --purple: #7656d6;
  --purple-pale: #f2efff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 5px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 28px rgba(27, 42, 67, 0.09);
  --shadow-lg: 0 24px 64px rgba(13, 31, 59, 0.2);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
}

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

button {
  color: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(22, 135, 248, 0.25);
  outline-offset: 2px;
}

.icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 248px;
  flex-direction: column;
  padding: 28px 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 2%, rgba(22, 135, 248, 0.18), transparent 31%),
    linear-gradient(175deg, #0d203d 0%, #0a172b 68%, #081426 100%);
  box-shadow: 10px 0 30px rgba(8, 20, 38, 0.07);
}

.sidebar::after {
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.022), 0 0 0 68px rgba(255, 255, 255, 0.015);
  content: "";
  pointer-events: none;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 7px 30px;
}

.sidebar-logo img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.sidebar-brand {
  display: grid;
  gap: 1px;
}

.sidebar-brand strong {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.5px;
}

.sidebar-brand span {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.sidebar-label {
  margin: 0 10px 10px;
  color: #60738e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-radius: 11px;
  color: #9dacc1;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(22, 135, 248, 0.22), rgba(22, 135, 248, 0.08));
  box-shadow: inset 0 0 0 1px rgba(83, 164, 255, 0.08);
}

.nav-item.active::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  background: var(--brand);
  content: "";
}

.nav-item .icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}

.nav-badge {
  min-width: 19px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 20px;
  color: #f8fbff;
  background: #e74d5d;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-tip {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sidebar-tip:hover { border-color: rgba(22, 135, 248, .35); background: rgba(22, 135, 248, .08); }

.sidebar-tip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #d8e4f3;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-tip p {
  margin: 0;
  color: #7186a2;
  font-size: 10px;
  line-height: 1.5;
}

.sidebar-profile {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 8px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #4faaff, #0668d0);
  font-size: 12px;
  font-weight: 750;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.avatar.sm {
  width: 30px;
  height: 30px;
  font-size: 10px;
}

.avatar.xs {
  width: 24px;
  height: 24px;
  font-size: 8px;
}

.avatar.green {
  background: linear-gradient(145deg, #43c495, #0f9465);
}

.avatar.orange {
  background: linear-gradient(145deg, #f6ba50, #d97c08);
}

.avatar.purple {
  background: linear-gradient(145deg, #9b83e9, #6343c7);
}

.avatar.rose {
  background: linear-gradient(145deg, #ed8299, #c23f61);
}

.profile-copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.profile-copy strong {
  overflow: hidden;
  color: #e8eef7;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy span {
  margin-top: 3px;
  color: #6f8198;
  font-size: 9px;
}

.sidebar-profile .chevron {
  margin-left: auto;
  color: #61748e;
}

.main-shell {
  min-height: 100vh;
  margin-left: 248px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid rgba(222, 228, 237, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.topbar-title {
  display: grid;
  gap: 2px;
}

.topbar-title strong {
  font-size: 15px;
  letter-spacing: -0.15px;
}

.topbar-title span {
  color: var(--muted);
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: 150ms ease;
}

.icon-button:hover {
  border-color: #ccd8e7;
  background: #f8fafc;
  transform: translateY(-1px);
}

.icon-button .icon {
  width: 17px;
  height: 17px;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #f04c5e;
}

.mobile-wordmark,
.mobile-menu,
.bottom-nav {
  display: none;
}

.page {
  max-width: 1540px;
  margin: 0 auto;
  padding: 28px 34px 48px;
  animation: pageIn 260ms ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 750;
  letter-spacing: -0.8px;
}

.page-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.heading-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #2091ff, #0876e7);
  box-shadow: 0 7px 18px rgba(22, 135, 248, 0.18);
}

.button.primary:hover {
  box-shadow: 0 9px 24px rgba(22, 135, 248, 0.25);
}

.button.secondary {
  border-color: var(--line-strong);
  background: #fff;
}

.button.secondary:hover {
  border-color: #bfcadb;
  background: #f9fbfd;
}

.button.ghost {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

.button.ghost:hover {
  color: var(--ink);
  background: #f1f4f8;
}

.button.danger {
  color: var(--danger);
  background: var(--danger-pale);
}

.button.success {
  color: #087952;
  background: var(--success-pale);
}

.button.small {
  min-height: 33px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 10px;
}

.button.wide {
  width: 100%;
}

.button .icon,
.text-button .icon {
  width: 15px;
  height: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: 180ms ease;
}

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

.stat-card::after {
  position: absolute;
  top: -26px;
  right: -21px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--stat-glow, rgba(22, 135, 248, 0.06));
  content: "";
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.stat-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--stat-color, var(--brand));
  background: var(--stat-bg, var(--brand-pale));
}

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

.trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--success);
  font-size: 9px;
  font-weight: 750;
}

.trend.down {
  color: var(--danger);
}

.stat-value {
  margin-bottom: 2px;
  font-size: 26px;
  font-weight: 760;
  letter-spacing: -0.8px;
}

.stat-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.78fr);
  gap: 18px;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 18px;
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border-bottom: 1px solid #eef1f5;
}

.card-title {
  min-width: 0;
}

.card-title h2,
.card-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 740;
  letter-spacing: -0.2px;
}

.card-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: var(--brand-strong);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.schedule-tabs {
  display: flex;
  gap: 4px;
  padding: 11px 18px 0;
}

.tab {
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.tab.active {
  color: var(--brand-strong);
  background: var(--brand-pale);
}

.schedule-list {
  padding: 7px 18px 12px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
}

.schedule-item:last-child {
  border-bottom: 0;
}

.schedule-time {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.schedule-time span {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 550;
}

.schedule-detail {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.schedule-mark {
  width: 3px;
  height: 31px;
  border-radius: 4px;
  background: var(--mark, var(--brand));
}

.schedule-copy {
  min-width: 0;
}

.schedule-copy strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-copy span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.micro-button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.micro-button:hover {
  color: var(--brand);
  border-color: #bcdcff;
  background: #f5faff;
}

.micro-button .icon {
  width: 13px;
  height: 13px;
}

.funnel-wrap {
  padding: 19px 18px 16px;
}

.funnel-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 120px;
  align-items: end;
  gap: 10px;
}

.funnel-column {
  display: grid;
  height: 100%;
  align-items: end;
  gap: 7px;
}

.funnel-value {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.funnel-bar {
  position: relative;
  width: 100%;
  min-height: 6px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #3da0ff, #0c76e0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.funnel-bar::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
  content: "";
}

.funnel-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #f0f2f5;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.attention-list {
  padding: 7px 18px 13px;
}

.attention-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer;
}

.attention-item:last-child {
  border-bottom: 0;
}

.attention-dot {
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--dot, var(--warning));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--dot, var(--warning)) 18%, transparent);
}

.attention-copy {
  min-width: 0;
}

.attention-copy strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.mini-count {
  min-width: 21px;
  padding: 3px 6px;
  border-radius: 20px;
  color: var(--muted);
  background: #f0f3f7;
  font-size: 8px;
  font-weight: 750;
  text-align: center;
}

.goal-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #10284b, #0d1b32);
}

.goal-card::after {
  position: absolute;
  right: -30px;
  bottom: -64px;
  width: 155px;
  height: 155px;
  border: 22px solid rgba(40, 145, 250, 0.09);
  border-radius: 50%;
  content: "";
}

.goal-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.goal-top span {
  color: #8fa7c5;
  font-size: 9px;
  font-weight: 650;
}

.goal-top strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  letter-spacing: -0.6px;
}

.goal-ring {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#2495ff 0 72%, rgba(255,255,255,.1) 72%);
}

.goal-ring::before {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #10233f;
  content: "";
}

.goal-ring b {
  position: relative;
  z-index: 1;
  font-size: 10px;
}

.goal-progress {
  position: relative;
  z-index: 1;
  height: 5px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.goal-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1687f8, #69b8ff);
}

.goal-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #7f95b0;
  font-size: 8px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.search-box .icon {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--faint);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  transition: 140ms ease;
}

.search-input {
  height: 42px;
  padding: 0 13px 0 39px;
  font-size: 11px;
}

.search-input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: #a4adba;
}

.search-input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #78baff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 135, 248, 0.09);
}

.filter-button {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.filter-button .icon {
  width: 15px;
  height: 15px;
}

.filter-button.active {
  color: var(--brand-strong);
  border-color: #a9d3ff;
  background: var(--brand-pale);
}

.view-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.view-switch button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--faint);
  background: transparent;
  cursor: pointer;
}

.view-switch button.active {
  color: var(--brand);
  background: var(--brand-pale);
}

.view-switch .icon {
  width: 15px;
  height: 15px;
}

.filter-chips {
  display: flex;
  gap: 7px;
  margin: -3px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}

.chip.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.lead-list {
  display: grid;
  gap: 10px;
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) minmax(135px, .8fr) minmax(150px, .85fr) minmax(125px, .7fr) minmax(135px, .75fr) auto;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: 160ms ease;
}

.lead-badge-pair { display: flex; flex-wrap: wrap; gap: 4px; }

.lead-card:hover {
  border-color: #cad9e9;
  box-shadow: 0 7px 20px rgba(28, 47, 75, 0.07);
  transform: translateY(-1px);
}

.lead-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.lead-info {
  min-width: 0;
}

.lead-info strong {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-info span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-logo {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
}

.lead-meta {
  min-width: 0;
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.meta-value {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-value.due {
  color: var(--danger);
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.badge.blue { color: #0869c8; background: #e9f4ff; }
.badge.green { color: #087852; background: #e7f8f1; }
.badge.orange { color: #a76008; background: #fff3df; }
.badge.red { color: #c83e4c; background: #ffebed; }
.badge.purple { color: #6244c5; background: #f0ecff; }
.badge.gray { color: #5b6879; background: #eef1f5; }

.temp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.lead-row-buttons {
  display: flex;
  gap: 5px;
}

.empty-state {
  padding: 50px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255,255,255,.55);
  text-align: center;
}

.empty-state .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 9px;
  color: var(--faint);
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 13px;
}

.empty-state span {
  font-size: 10px;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: 180ms ease;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-visual {
  position: relative;
  display: grid;
  height: 130px;
  place-items: center;
  overflow: hidden;
  background: var(--project-gradient);
}

.project-visual::before,
.project-visual::after {
  position: absolute;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  content: "";
}

.project-visual::before {
  right: -18px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  box-shadow: 0 0 0 24px rgba(255,255,255,.04), 0 0 0 50px rgba(255,255,255,.025);
}

.project-visual::after {
  top: -55px;
  left: -55px;
  width: 110px;
  height: 110px;
}

.project-monogram {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 18px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.project-status {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 99px;
  color: #fff;
  background: rgba(6,16,29,.3);
  font-size: 7px;
  font-weight: 750;
  backdrop-filter: blur(5px);
}

.project-body {
  padding: 16px;
}

.project-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-title h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: -.2px;
}

.project-title span {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.project-title .icon {
  width: 11px;
  height: 11px;
}

.project-price {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 740;
  color: var(--ink-soft);
}

.project-price small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 550;
}

.project-price-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.project-price-details strong {
  color: var(--brand-dark);
  font-size: 9px;
}

.calendar-grid {
  min-width: 560px;
  display: grid;
  grid-template-columns: repeat(7, minmax(76px, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.calendar-weekday {
  padding: 9px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}

.calendar-day {
  position: relative;
  min-height: 82px;
  padding: 8px;
  border: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.calendar-day:hover { background: #f7fbff; }
.calendar-day.is-empty { cursor: default; background: #fbfcfd; }
.calendar-day.is-selected { z-index: 1; background: #edf7ff; box-shadow: inset 0 0 0 2px var(--brand); }
.calendar-day > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 750;
}
.calendar-day.is-today > span { color: #fff; background: var(--brand); }
.calendar-event {
  display: block;
  margin-top: 5px;
  padding: 4px;
  overflow: hidden;
  border-radius: 5px;
  color: #0869c8;
  background: #dbeeff;
  font-size: 6px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-more { display: block; margin-top: 3px; color: var(--muted); font-size: 6px; font-style: normal; }

.calendar-toolbar {
  justify-content: space-between;
  margin-bottom: 18px;
}

.calendar-toolbar .search-box {
  width: min(620px, 100%);
  max-width: 620px;
}

.calendar-search-summary {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.calendar-month-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.calendar-scroll {
  padding: 15px;
  overflow: auto;
}

.calendar-agenda-item {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.calendar-search-results {
  display: grid;
}

.calendar-search-result {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.calendar-search-result:first-child { border-top: 0; }
.calendar-search-result:hover { background: #f7fbff; }

.calendar-search-date,
.calendar-search-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.calendar-search-date strong,
.calendar-search-copy strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-search-date small,
.calendar-search-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #eef1f5;
}

.projects-grid.list-view { grid-template-columns: 1fr; }
.projects-grid.list-view .project-card { display: grid; grid-template-columns: 220px 1fr; }
.projects-grid.list-view .project-visual { min-height: 100%; }

@media (max-width: 700px) {
  .projects-grid.list-view .project-card { display: block; }
}

.project-metric strong,
.project-metric span {
  display: block;
}

.project-metric strong {
  font-size: 11px;
}

.project-metric span {
  margin-top: 3px;
  color: var(--faint);
  font-size: 7px;
  font-weight: 650;
  text-transform: uppercase;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.detail-back:hover {
  color: var(--brand);
}

.detail-back .icon {
  width: 14px;
  height: 14px;
}

.lead-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.lead-hero::after {
  position: absolute;
  top: -130px;
  right: -70px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,135,248,.07), transparent 68%);
  content: "";
  pointer-events: none;
}

.lead-hero .avatar {
  width: 51px;
  height: 51px;
  font-size: 14px;
}

.hero-info {
  min-width: 0;
}

.hero-info h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.4px;
}

.hero-info p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.hero-info p span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-info p .icon {
  width: 11px;
  height: 11px;
}

.hero-badges {
  display: flex;
  gap: 6px;
  margin: 9px 0 0;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.hero-action {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: #fff;
  cursor: pointer;
}

.hero-action:hover {
  color: var(--brand);
  border-color: #acd5ff;
  background: var(--brand-pale);
}

.hero-action.whatsapp:hover {
  color: #11895d;
  border-color: #b0e7d3;
  background: var(--success-pale);
}

.hero-action .icon {
  width: 17px;
  height: 17px;
}

.stage-card {
  margin-bottom: 18px;
  padding: 16px 18px;
}

.qualification-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 17px;
}

.qualification-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fbff;
}

.qualification-summary span { color: var(--muted); font-size: 8px; }
.qualification-summary strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }

.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
}

.stage-head strong {
  font-size: 11px;
}

.stage-head span {
  color: var(--muted);
  font-size: 9px;
}

.stage-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}

.stage-track::-webkit-scrollbar { display: none; }

.stage-step {
  position: relative;
  display: grid;
  flex: 1 0 87px;
  justify-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 7px;
  font-weight: 650;
  text-align: center;
}

.stage-step::before {
  position: absolute;
  top: 8px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: #e9edf2;
  content: "";
}

.stage-step:first-child::before { display: none; }

.stage-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #dce2ea;
  border-radius: 50%;
  background: #fff;
}

.stage-dot .icon {
  width: 9px;
  height: 9px;
}

.stage-step.done,
.stage-step.current {
  color: var(--brand-strong);
}

.stage-step.done::before,
.stage-step.current::before {
  background: var(--brand);
}

.stage-step.done .stage-dot {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.stage-step.current .stage-dot {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-pale);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .72fr);
  gap: 18px;
}

.detail-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px 18px;
  padding: 18px;
}

.info-cell span,
.info-cell strong {
  display: block;
}

.info-cell span {
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 650;
  text-transform: uppercase;
}

.info-cell strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-description {
  margin: 0 18px 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.lead-description-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.lead-description-heading .icon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.lead-description p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.lead-description p.is-empty {
  color: var(--muted);
  font-style: italic;
}

.project-interest {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f2f5;
}

.project-interest:last-child { border-bottom: 0; }

.project-tile {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1789f7, #0b4f9c);
  font-size: 10px;
  font-weight: 750;
}

.project-interest-copy {
  min-width: 0;
}

.project-interest-copy strong {
  display: block;
  font-size: 10px;
}

.project-interest-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.project-interest .badge { margin-left: auto; }

.facebook-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.facebook-head .source-logo {
  width: 21px;
  height: 21px;
  font-size: 13px;
}

.qa-list {
  padding: 5px 18px 13px;
}

.qa-item {
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f5;
}

.qa-item:last-child { border-bottom: 0; }

.qa-question {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.qa-answer {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.enquiry-note {
  display: flex;
  gap: 8px;
  margin: 0 18px 16px;
  padding: 10px;
  border-radius: 9px;
  color: #776125;
  background: #fff9e9;
  font-size: 8px;
  line-height: 1.5;
}

.enquiry-note .icon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.next-action-card {
  padding: 17px;
  border-color: #cde3fb;
  background: linear-gradient(135deg, #fafdff, #f2f8ff);
}

.next-action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.next-action-head strong {
  font-size: 11px;
}

.action-date {
  color: var(--brand-strong);
  font-size: 9px;
  font-weight: 750;
}

.action-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.action-icon .icon { width: 16px; height: 16px; }

.action-copy strong {
  display: block;
  font-size: 10px;
}

.action-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.timeline {
  padding: 10px 18px 17px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 10px;
  padding: 10px 0;
}

.timeline-item::before {
  position: absolute;
  top: 31px;
  bottom: -10px;
  left: 12px;
  width: 1px;
  background: #e6ebf1;
  content: "";
}

.timeline-item:last-child::before { display: none; }

.timeline-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-pale);
}

.timeline-icon .icon { width: 12px; height: 12px; }

.timeline-copy strong {
  display: block;
  font-size: 9px;
}

.timeline-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.timeline-time {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 7px;
}

.booking-banner {
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #1687f8, #0568cf);
}

.booking-banner::after {
  position: absolute;
  right: -36px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  border: 25px solid rgba(255,255,255,.09);
  border-radius: 50%;
  content: "";
}

.booking-banner strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 14px;
}

.booking-banner p {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin: 6px 0 14px;
  color: rgba(255,255,255,.78);
  font-size: 9px;
  line-height: 1.5;
}

.booking-banner .button {
  position: relative;
  z-index: 1;
  color: #086bd2;
  background: #fff;
  box-shadow: 0 8px 18px rgba(5,60,117,.22);
}

.attention-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.attention-column {
  min-width: 0;
}

.attention-column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.attention-column-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--column-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--column-color) 12%, transparent);
}

.attention-task-list {
  display: grid;
  gap: 9px;
}

.attention-task {
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--column-color);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.attention-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.attention-task-top strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-task p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.attention-task-actions {
  display: flex;
  gap: 5px;
}

.deal-table {
  width: 100%;
  border-collapse: collapse;
}

.deal-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  background: #fbfcfd;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .03em;
  text-align: left;
  text-transform: uppercase;
}

.deal-table td {
  padding: 14px;
  border-bottom: 1px solid #eff2f5;
  color: var(--ink-soft);
  font-size: 10px;
}

.deal-table tr:last-child td { border-bottom: 0; }
.deal-table tr { cursor: pointer; }
.deal-table tbody tr:hover { background: #fafcff; }

.deal-customer {
  display: flex;
  align-items: center;
  gap: 9px;
}

.deal-customer strong { display: block; font-size: 10px; color: var(--ink); }
.deal-customer span { display: block; margin-top: 3px; font-size: 8px; color: var(--muted); }

.amount { font-weight: 750; color: var(--ink) !important; }

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

.more-tile {
  display: flex;
  min-height: 95px;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: 160ms ease;
}

.more-tile:hover {
  border-color: #cbd9e9;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.more-icon {
  display: grid;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  color: var(--tile-color, var(--brand));
  background: var(--tile-bg, var(--brand-pale));
}

.more-icon .icon { width: 18px; height: 18px; }

.more-copy {
  min-width: 0;
}

.more-copy strong { display: block; font-size: 11px; }
.more-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.more-tile > .icon { margin-left: auto; width: 14px; height: 14px; color: var(--faint); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 18, 34, 0.55);
  backdrop-filter: blur(4px);
  animation: fadeIn 170ms ease both;
}

@keyframes fadeIn { from { opacity: 0; } }

.modal {
  width: min(570px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: modalIn 200ms ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
}

.modal.small-modal { width: min(460px, 100%); }

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 21px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}

.modal-head h2 { margin: 0; font-size: 17px; letter-spacing: -.4px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }

.modal-close {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.modal-close .icon { width: 14px; height: 14px; }

.modal-body { padding: 19px 21px; }
.modal-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 21px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}

.form-section-title {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink-soft); font-size: 9px; font-weight: 650; }
.field label em { color: var(--danger); font-style: normal; }
.field input, .field select { height: 40px; padding: 0 11px; font-size: 10px; }
.field textarea { min-height: 75px; padding: 10px 11px; resize: vertical; font-size: 10px; }
.field-hint { color: var(--faint); font-size: 8px; line-height: 1.4; }

.import-steps {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}

.import-steps span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 9px;
}

.import-steps b {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 8px;
}

.settings-list, .template-list { display: grid; gap: 9px; }
.settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfe;
}
.settings-row > span:nth-child(2) { min-width: 0; flex: 1; }
.settings-row strong, .settings-row small { display: block; }
.settings-row strong { color: var(--ink); font-size: 9px; }
.settings-row small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.settings-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--brand); background: var(--brand-pale); }
.settings-icon .icon { width: 16px; height: 16px; }
.file-row { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.file-row > .icon { width: 15px; height: 15px; color: var(--brand); }
.template-list article { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe; }
.template-list strong { font-size: 10px; }
.template-list p { margin: 7px 0 10px; color: var(--muted); font-size: 9px; line-height: 1.55; }

.form-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.radio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.radio-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  font-size: 8px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}

.radio-card.active {
  color: var(--brand-strong);
  border-color: #90c7ff;
  background: var(--brand-pale);
}

.booking-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 16px;
  margin-bottom: 18px;
  padding: 13px;
  border-radius: 11px;
  background: #f6f8fb;
  font-size: 9px;
}

.booking-summary span { color: var(--muted); }
.booking-summary strong { font-weight: 700; text-align: right; }

.info-callout {
  display: flex;
  gap: 9px;
  margin-top: 15px;
  padding: 11px;
  border: 1px solid #cfe6ff;
  border-radius: 10px;
  color: #366384;
  background: #f1f8ff;
  font-size: 8px;
  line-height: 1.5;
}

.info-callout .icon { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; color: var(--brand); }

.toast-region {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  min-width: 270px;
  max-width: 360px;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #fff;
  background: #10213b;
  box-shadow: 0 15px 38px rgba(8,20,38,.25);
  font-size: 10px;
  font-weight: 600;
  animation: toastIn 220ms ease both;
}

.toast.success { background: #087955; }
.toast .icon { width: 16px; height: 16px; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
}

.mobile-fab { display: none; }

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr);
  background: #fff;
}

.auth-brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(38px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(38, 151, 255, .22), transparent 26%),
    radial-gradient(circle at 15% 82%, rgba(38, 151, 255, .12), transparent 30%),
    linear-gradient(145deg, #0d2445 0%, #0a182d 68%, #071425 100%);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  position: absolute;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 50%;
  content: "";
}

.auth-brand-panel::before {
  right: -190px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  box-shadow: 0 0 0 62px rgba(255,255,255,.018), 0 0 0 124px rgba(255,255,255,.012);
}

.auth-brand-panel::after {
  top: -180px;
  left: -190px;
  width: 390px;
  height: 390px;
}

.auth-wordmark {
  position: relative;
  z-index: 1;
  width: 260px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 15px 35px rgba(0,0,0,.16);
}

.auth-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-message {
  position: relative;
  z-index: 1;
  max-width: 630px;
  margin: auto 0;
  padding: 70px 0;
}

.auth-kicker,
.auth-eyebrow {
  display: block;
  margin-bottom: 15px;
  color: #53adff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.auth-message h1 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 66px);
  font-weight: 760;
  letter-spacing: -2.5px;
  line-height: 1.04;
}

.auth-message p {
  max-width: 540px;
  margin: 23px 0 0;
  color: #9eb0c8;
  font-size: 14px;
  line-height: 1.7;
}

.auth-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: #9eb0c8;
  font-size: 10px;
  font-weight: 650;
}

.auth-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.auth-points .icon {
  width: 15px;
  height: 15px;
  color: #45a7ff;
}

.auth-form-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 42px clamp(30px, 6vw, 90px);
  background:
    radial-gradient(circle at 100% 0%, rgba(22,135,248,.06), transparent 30%),
    #fff;
}

.auth-form-wrap {
  width: min(410px, 100%);
}

.auth-mobile-logo {
  display: none;
}

.auth-form-wrap h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -1px;
}

.auth-form-wrap > p {
  margin: 9px 0 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form .field label {
  font-size: 10px;
}

.auth-form .field input {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 12px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px !important;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-field button:hover {
  color: var(--brand);
  background: var(--brand-pale);
}

.auth-submit {
  min-height: 48px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 12px;
}

.auth-help {
  margin: 17px 0 0 !important;
  text-align: center;
}

.auth-legal {
  align-items: center;
  color: #7b8da5;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.auth-legal a {
  color: #536b88;
  text-decoration: none;
}

.auth-legal a:hover,
.auth-legal a:focus-visible {
  color: #1479d4;
  text-decoration: underline;
}

.auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
}

.auth-security .icon {
  width: 14px;
  height: 14px;
  color: var(--success);
}

.auth-error {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 11px 12px;
  border: 1px solid #ffd1d5;
  border-radius: 10px;
  color: #b93644;
  background: #fff3f4;
  font-size: 10px;
  line-height: 1.45;
}

.auth-error .icon {
  width: 15px;
  height: 15px;
}

.auth-card.auth-loading {
  display: grid;
  grid-column: 1 / -1;
  width: min(350px, calc(100% - 36px));
  place-items: center;
  align-self: center;
  justify-self: center;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.auth-loading img {
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
}

.auth-loading strong {
  font-size: 14px;
}

.auth-loading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  margin-bottom: 15px;
  border: 2px solid #dcecff;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

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

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-card { grid-template-columns: minmax(210px, 1.25fr) 1fr 1fr 1fr auto; }
  .lead-card .lead-meta:nth-of-type(4) { display: none; }
}

@media (max-width: 920px) {
  .auth-shell { grid-template-columns: minmax(320px, .85fr) minmax(390px, 1.15fr); }
  .auth-brand-panel { padding: 40px; }
  .auth-message h1 { font-size: 38px; letter-spacing: -1.5px; }
  .sidebar { width: 210px; }
  .main-shell { margin-left: 210px; }
  .sidebar-brand span, .sidebar-tip { display: none; }
  .dashboard-grid, .detail-layout { grid-template-columns: 1fr; }
  .attention-page-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar, .page { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 720px) {
  .auth-shell { display: block; min-height: 100vh; padding: 0; background: #fff; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100vh; padding: 32px 22px; }
  .auth-mobile-logo { display: block; width: 215px; margin: 0 auto 58px; }
  .auth-mobile-logo img { display: block; width: 100%; }
  .auth-form-wrap h2 { font-size: 25px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .main-shell { margin-left: 0; }
  .topbar {
    height: 62px;
    padding: 0 17px;
  }
  .topbar-title { display: none; }
  .mobile-wordmark {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-wordmark img { width: 31px; height: 31px; object-fit: contain; }
  .mobile-wordmark strong { font-size: 15px; letter-spacing: -.3px; }
  .topbar-actions .avatar { display: none; }
  .page { padding: 21px 16px 30px; }
  .page-heading { align-items: center; margin-bottom: 18px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading p { font-size: 10px; }
  .page-heading .heading-actions .button.secondary { display: none; }
  .page-heading .heading-actions .button.primary .button-label { display: none; }
  .page-heading .heading-actions .button.primary { width: 39px; height: 39px; min-height: 39px; padding: 0; border-radius: 11px; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 23px; }
  .stat-label { font-size: 9px; }
  .dashboard-grid { gap: 14px; }
  .card-header { padding: 15px; }
  .schedule-tabs { padding-right: 15px; padding-left: 15px; }
  .schedule-list { padding-right: 15px; padding-left: 15px; }
  .schedule-item { grid-template-columns: 55px 1fr auto; gap: 8px; }
  .schedule-time { font-size: 9px; }
  .schedule-copy strong { max-width: 150px; }
  .funnel-wrap { overflow-x: auto; }
  .funnel-bars, .funnel-labels { min-width: 480px; }
  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 6px 8px env(safe-area-inset-bottom);
    border-top: 1px solid #e2e7ee;
    background: rgba(255,255,255,.96);
    box-shadow: 0 -8px 25px rgba(11,18,32,.06);
    backdrop-filter: blur(16px);
  }
  .bottom-item {
    position: relative;
    display: grid;
    height: 55px;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 0;
    color: #7b8798;
    background: transparent;
    font-size: 7px;
    font-weight: 650;
    cursor: pointer;
  }
  .bottom-item.active { color: var(--brand); }
  .bottom-item .icon { width: 19px; height: 19px; }
  .bottom-item.add {
    align-self: start;
    width: 49px;
    height: 49px;
    margin: -18px auto 0;
    border: 4px solid var(--canvas);
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #2598ff, #0872de);
    box-shadow: 0 7px 18px rgba(22,135,248,.34);
  }
  .bottom-item.add .icon { width: 22px; height: 22px; stroke-width: 2.4; }
  .bottom-item.add span { position: absolute; top: 51px; color: #7b8798; white-space: nowrap; }
  .nav-alert {
    position: absolute;
    top: 7px;
    left: calc(50% + 7px);
    min-width: 14px;
    padding: 1px 4px;
    border: 1px solid #fff;
    border-radius: 10px;
    color: #fff;
    background: #e74d5d;
    font-size: 6px;
  }
  .toolbar { flex-wrap: wrap; }
  .search-box { flex-basis: calc(100% - 54px); }
  .calendar-toolbar .search-box { flex-basis: 100%; max-width: none; }
  .calendar-search-summary { width: 100%; }
  .calendar-month-actions { width: 100%; justify-content: flex-end; }
  .calendar-search-result { grid-template-columns: 72px minmax(0, 1fr); }
  .calendar-search-result .visit-status { grid-column: 2; }
  .filter-button .filter-label { display: none; }
  .filter-button { width: 42px; justify-content: center; padding: 0; }
  .view-switch { display: none; }
  .lead-card {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
  }
  .lead-card .lead-meta { display: none; }
  .lead-row-buttons { flex-direction: column; }
  .lead-row-buttons .micro-button:last-child { display: none; }
  .lead-person .avatar { width: 40px; height: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-visual { height: 120px; }
  .lead-hero { align-items: flex-start; padding: 16px; }
  .lead-hero .avatar { width: 44px; height: 44px; }
  .hero-info h1 { font-size: 17px; }
  .hero-info p span:nth-child(n+2) { display: none; }
  .hero-actions { position: absolute; right: 14px; bottom: 14px; }
  .hero-badges { padding-right: 75px; }
  .stage-card { padding: 14px; }
  .stage-head { margin-bottom: 14px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); padding: 15px; }
  .lead-description { margin: 0 15px 15px; }
  .detail-layout { gap: 14px; }
  .more-grid { grid-template-columns: 1fr; }
  .attention-page-grid { gap: 21px; }
  .deal-table thead { display: none; }
  .deal-table, .deal-table tbody, .deal-table tr, .deal-table td { display: block; }
  .deal-table tr { position: relative; padding: 14px; border-bottom: 1px solid var(--line); }
  .deal-table td { padding: 4px 0; border: 0; }
  .deal-table td:nth-child(2) { margin-top: 7px; }
  .deal-table td:nth-child(3), .deal-table td:nth-child(4), .deal-table td:nth-child(5) { display: inline-block; margin-right: 9px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal, .modal.small-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modal-head { padding: 17px 18px 14px; }
  .modal-body { padding: 17px 18px; }
  .modal-foot { padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); }
  .toast-region { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); left: 12px; }
  .toast { min-width: 0; max-width: none; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 116px; }
  .stat-head { margin-bottom: 9px; }
  .schedule-item { grid-template-columns: 48px 1fr auto; }
  .schedule-copy strong { max-width: 120px; }
  .row-actions .micro-button:nth-child(n+2) { display: none; }
  .radio-row { grid-template-columns: 1fr; }
}

.load-more-row{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 4px;color:var(--muted);font-size:10px}
.load-more-row.compact{padding:12px 16px 16px;border-top:1px solid var(--line)}
.terminal-outcome{display:flex;align-items:center;gap:10px;margin:12px 18px 16px;padding:12px 14px;border-radius:12px;border:1px solid}
.terminal-outcome .icon{width:22px;height:22px;flex:0 0 auto}.terminal-outcome span{display:grid;gap:2px}.terminal-outcome small{font-size:9px;color:var(--muted)}
.terminal-outcome.lost{background:#fff3f3;border-color:#ffd0d0;color:#c33838}.terminal-outcome.booked{background:#edfbf5;border-color:#bfeeda;color:#087a53}
.terminal-outcome .button{margin-left:auto;flex:0 0 auto}
.activity-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.activity-choice{display:grid;gap:8px;min-height:145px;padding:20px;border:1px solid var(--line);border-radius:16px;text-align:left;background:#fbfdff;color:var(--ink);cursor:pointer}.activity-choice:hover{border-color:#9bcaff;background:#f4f9ff}.activity-choice>span{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#eaf5ff;color:var(--brand)}.activity-choice.site>span{background:#e9f9f2;color:#13a673}.activity-choice strong{font-size:13px}.activity-choice small{color:var(--muted);font-size:9px;line-height:1.5}
.visit-toolbar{align-items:flex-start;flex-wrap:wrap}.visit-toolbar .search-box{min-width:280px}.visit-filters{flex:1;padding:0;border:0}.visit-register{overflow:hidden}.visit-table{min-width:980px}.table-subtext{display:block;margin-top:4px;color:var(--muted);font-size:8px}.visit-actions,.visit-inline-actions{display:flex;align-items:center;gap:6px}.micro-button.success{color:#07835b;background:#edfbf5;border-color:#c4eedc}.micro-button.danger{color:#c43d4b;background:#fff3f4;border-color:#ffd4d8}.visit-status{display:inline-flex;align-items:center;width:max-content;padding:4px 8px;border-radius:999px;color:#53657a;background:#eef1f5;font-size:8px;font-weight:750;white-space:nowrap}.visit-status.today{color:#0667c7;background:#eaf5ff}.visit-status.upcoming{color:#6742c5;background:#f2efff}.visit-status.missed{color:#c33838;background:#fff0f1}.visit-status.no-show{color:#916000;background:#fff7e7}.visit-status.completed{color:#087a53;background:#edfbf5}.visit-status.cancelled{color:#687586;background:#eef1f5}
.lead-visit-list{display:grid}.lead-visit-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:13px 16px;border-top:1px solid var(--line)}.lead-visit-row:first-child{border-top:0}.lead-visit-row>span:nth-child(2){display:grid;gap:3px}.lead-visit-row strong{font-size:10px}.lead-visit-row small{color:var(--muted);font-size:8px}.visit-row-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#e9f9f2;color:#13a673}.visit-row-icon .icon{width:17px;height:17px}
.calendar-event.site-visit{color:#087a53;background:#e9f9f2}.calendar-event.follow-up{color:#0667c7;background:#eaf5ff}.calendar-event.lead-next{color:#6742c5;background:#f2efff}.activity-type-label{display:inline-flex;width:max-content;margin-top:4px;padding:2px 6px;border-radius:999px;font-size:7px;font-style:normal;font-weight:750}.activity-type-label.site-visit{color:#087a53;background:#e9f9f2}.activity-type-label.follow-up{color:#0667c7;background:#eaf5ff}.activity-type-label.lead-next{color:#6742c5;background:#f2efff}
.visit-row-icon.follow-up{color:#1687f8;background:#eaf5ff}.visit-status.scheduled{color:#0667c7;background:#eaf5ff}.visit-status.overdue,.visit-status.missed{color:#c33838;background:#fff0f1}
.deal-detail-modal{width:min(760px,calc(100vw - 32px))}.deal-journey{padding:16px;border:1px solid var(--line);border-radius:14px;background:#fbfdff}.deal-stage-track{margin-top:16px}.deal-summary-grid{margin:12px 0 0;border:1px solid var(--line);border-radius:14px}
.stat-card.interactive{width:100%;border:1px solid transparent;text-align:left;font:inherit;cursor:pointer}.stat-card.interactive:hover,.stat-card.interactive:focus-visible{border-color:#a9d2fb;transform:translateY(-1px);box-shadow:0 12px 28px rgba(22,135,248,.12);outline:none}.stat-card.interactive .trend{pointer-events:none}
.deal-stage-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.deal-stage-tiles .stat-card{min-height:124px}.deal-stage-tiles .stat-card.selected{border-color:var(--stat-color);background:linear-gradient(135deg,var(--card),var(--stat-bg));box-shadow:0 0 0 2px color-mix(in srgb,var(--stat-color) 18%,transparent),0 12px 28px rgba(22,135,248,.12)}.deal-stage-tiles .stat-card.selected .trend{color:var(--stat-color);font-weight:800}
.info-callout.compact{padding:10px 12px}
.team-member-form{display:flex;align-items:center;gap:10px;width:100%}.team-member-form select{max-width:145px}.team-member-copy{min-width:130px;flex:1}
.switch-label{display:flex;align-items:center;gap:5px;font-size:9px;color:var(--muted);white-space:nowrap}.switch-label input{width:auto}
.check-row{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.check-row input{width:auto;margin-top:2px}.check-row span{display:grid;gap:2px}.check-row strong{font-size:10px}.check-row small{font-size:9px;color:var(--muted)}
.template-list.editable{display:grid;gap:14px}.template-edit-form{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fbfcfe}.template-edit-form textarea{min-height:105px}
.danger-text{color:#cf3f4f}.facebook-connect-button{background:#1877f2}
.report-location-card,.report-audit-card{margin-top:18px;overflow:hidden}.report-table-wrap{overflow:auto}.report-table{min-width:650px}.audit-table{min-width:930px}.audit-table td{vertical-align:top}.audit-table td:first-child{white-space:nowrap}.report-audit-card .status-pill{text-transform:capitalize}
.report-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-sm)}
.report-filter{display:grid;gap:5px}.report-filter>span,.report-group-select>span{color:var(--muted);font-size:8px;font-weight:700}.report-filter select,.report-group-select select{min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fbfdff;color:var(--ink);font:inherit;font-size:9px}
.qualification-report-card,.qualification-breakdown-card{margin-top:18px;overflow:hidden}.qualification-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:18px}.qualification-metric{display:grid;gap:5px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fbfdff}.qualification-metric span{min-height:22px;color:var(--muted);font-size:9px;font-weight:700}.qualification-metric strong{font-size:22px}.qualification-metric small{color:var(--muted);font-size:8px}.report-group-select{display:flex;align-items:center;gap:8px}
.report-finance-card,.report-deal-stage-card{margin-top:18px;overflow:hidden}.report-finance-grid{grid-template-columns:repeat(5,minmax(0,1fr));border-top:0}.report-deal-stage-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;padding:18px}.report-deal-stage{display:grid;gap:5px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fbfdff;text-align:left;color:var(--ink);cursor:pointer}.report-deal-stage:hover,.report-deal-stage:focus-visible{border-color:#9bcaff;background:#f4f9ff;outline:none}.report-deal-stage span{min-height:26px;color:var(--muted);font-size:9px;font-weight:750}.report-deal-stage strong{font-size:23px}.report-deal-stage small{color:var(--brand);font-size:8px;font-weight:750}
.facebook-icon{display:grid;place-items:center;border-radius:50%;background:#1877f2!important;color:#fff!important;font-size:18px;font-weight:800}.facebook-connections{display:grid;gap:12px}.facebook-assignee-form{display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fbfcfe}.facebook-connection-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.facebook-connection-head>span:first-child{display:grid;gap:3px}.facebook-connection-head small{font-size:9px;color:var(--muted)}.check-row.compact{padding:9px 11px}.info-callout.warning{border-color:#f4d393;background:#fff9e8;color:#8b5c00}
.facebook-mapping-help{margin:-4px 0 12px;color:var(--muted);font-size:10px;line-height:1.55}.facebook-mapping-groups{display:grid;gap:12px}.facebook-field-mapping-form{display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fbfcfe}.facebook-mapping-grid{display:grid;gap:8px}.facebook-mapping-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,.8fr);align-items:center;gap:12px;padding:9px 10px;border:1px solid #e5ebf3;border-radius:10px;background:#fff}.facebook-mapping-row>span{display:grid;min-width:0;gap:2px}.facebook-mapping-row strong{overflow:hidden;text-overflow:ellipsis;font-size:10px}.facebook-mapping-row small{overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:8px}.facebook-mapping-row select{min-width:0}
.facebook-connection-actions{justify-content:space-between}.facebook-connection-actions .danger-text{margin-left:auto}

@media (max-width: 1180px){
  .report-finance-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-deal-stage-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.report-filter-grid,.qualification-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width: 760px){
  .team-member-form{align-items:flex-start;flex-wrap:wrap}.team-member-form .team-member-copy{min-width:calc(100% - 55px)}.team-member-form select{flex:1;max-width:none}.facebook-mapping-row{grid-template-columns:1fr}
  .load-more-row{flex-direction:column}.terminal-outcome{align-items:flex-start;flex-wrap:wrap;margin:10px 12px 14px}.terminal-outcome .button{width:100%;margin-left:0}.activity-choice-grid{grid-template-columns:1fr}.activity-choice{min-height:115px}.visit-toolbar .search-box{min-width:100%;flex-basis:100%}.lead-visit-row{grid-template-columns:36px minmax(0,1fr) auto}.lead-visit-row .visit-inline-actions{grid-column:2/4}.visit-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.deal-journey{overflow-x:auto}.deal-stage-track{min-width:480px}
  .deal-stage-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-deal-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.report-filter-grid,.qualification-metric-grid,.qualification-summary{grid-template-columns:1fr 1fr}.report-group-select{align-items:flex-start;flex-direction:column}.report-group-select select{width:100%}
}

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