/* Shared surfaces and the compact panels from the supplied UI references. */
.workspace-name { border: 0; text-align: left; cursor: pointer; }
.workspace-name:hover { background: #cecffb; }
.workspace-choices { display: grid; gap: 10px; }
.workspace-choice { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; border: 1px solid #d6d7f6; background: #e8e9fc; border-radius: 12px; padding: 14px 16px; text-align: left; }
.workspace-choice:hover { background: #dcddfa; }
.workspace-choice strong, .workspace-choice small { display: block; }
.workspace-choice small { color: #6b788d; margin-top: 4px; }
.auth-mode .modal-backdrop { z-index: 210; }
:root {
  --ink: #091d42;
  --muted: #98a2b3;
  --canvas: #eff4fa;
  --card: #f8f8ff;
  --blue-soft: #e2e3fc;
  --radius: 17px;
  --shadow: 0 3px 6px rgba(9,29,66,.08), 0 12px 22px rgba(9,29,66,.12);
}

body {
  background: linear-gradient(125deg, #eff4fa 45%, #e3e4fa 100%) fixed;
}

html { scrollbar-color: #c3d5ed transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #c3d5ed; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

.card {
  background: rgba(248,248,255,.96);
  border-color: #fff;
}

.right-stack { gap: 16px; margin-top: 0; min-width: 0; }
.track { background: #e2e3fc; }

/* Status distribution: a label and counts above each full-width track. */
.pipeline-card { padding: 21px 20px 22px; }
.pipeline-card h3 { margin: 0 0 2px; font-size: 14px; line-height: 20px; }
.pipeline-card > p { margin: 0 0 16px; font-size: 12px; line-height: 16px; }
.pipeline-card .pipeline-row {
  margin-top: 12px;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  gap: 5px 12px;
  font-size: 12px;
  line-height: 16px;
}
.pipeline-card .pipeline-row:first-of-type { margin-top: 0; }
.pipeline-card .pipeline-row > span { display: flex; align-items: center; gap: 8px; }
.pipeline-card .pipeline-row strong { font-weight: 600; }
.pipeline-card .pipeline-row small { font-size: 11px; text-align: right; color: var(--muted); }
.pipeline-card .track { height: 8px; }

/* Dashboard tasks: 28px segmented control, compact rows, 42px footer. */
.tasks-card { padding: 16px 20px 0; overflow: hidden; }
.tasks-card-head { min-height: 20px; }
.tasks-card-head h3 { font-size: 14px; line-height: 20px; font-weight: 500; }
.overdue-pill {
  padding: 2px 8px;
  background: #ffe1e2;
  color: #df0000;
  font-size: 10px;
  line-height: 15px;
  font-weight: 500;
}
.overdue-pill:hover { background: #ffd1d4; }
.tasks-card .segmented {
  height: 28px;
  margin: 8px 0 16px;
  padding: 2px;
  background: #e2e3fc;
}
.tasks-card .segmented button {
  min-width: 0;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 500;
  color: #6b7585;
}
.tasks-card .segmented .active {
  background: #f3f3ff;
  color: #091d42;
  font-weight: 500;
  box-shadow: none;
}
.tasks-card .task-mini, .tasks-card .person-task-row {
  margin: 0 -20px;
  padding: 12px 20px;
  border-top: 1px solid #eff2f6;
}
.tasks-card .segmented + .task-mini,
.tasks-card .segmented + .person-task-row { margin-top: 0; }
.tasks-card .task-mini {
  min-height: 58px;
  grid-template-columns: 15px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
}
.tasks-card .task-check {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin-top: 3px;
  border: 1.4px solid #788497;
  background: transparent;
}
.tasks-card .task-check .ico { width: 10px; height: 10px; }
.tasks-card .task-check:hover { border-color: #0dbb85; }
.tasks-card .task-check:focus-visible .ico { opacity: 1; }
.tasks-card .task-copy { gap: 1px; }
.tasks-card .task-copy strong { font-size: 12px; line-height: 17px; font-weight: 500; }
.tasks-card .task-copy .task-of { font-size: 11px; line-height: 15px; color: #7d889a; }
.tasks-card .task-mini-due { padding-top: 2px; font-size: 10px; line-height: 17px; font-weight: 500; }
.tasks-card .task-mini-due.overdue { color: #f00000; }
.tasks-card .person-task-row {
  min-height: 53px;
  grid-template-columns: 28px minmax(0, 1fr) 36px 32px;
  gap: 12px;
  padding-top: 11px;
  padding-bottom: 11px;
}
.tasks-card .person-task-row .avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  font-size: 10px;
  background: #091d42;
}
.person-task-main { gap: 4px; }
.person-task-main strong { font-size: 12px; line-height: 16px; font-weight: 500; }
.person-task-main .track { height: 6px; }
.person-task-main .track i { background: #2cd39b; }
.person-stat { min-width: 0; gap: 0; justify-items: end; }
.person-stat strong { font-size: 11px; line-height: 14px; font-weight: 500; color: #091d42; }
.person-stat small { font-size: 10px; line-height: 12px; color: #98a2b3; }
.person-stat.done strong { color: #00a978; }
.tasks-card .recent-footer {
  min-height: 42px;
  padding: 11px 0 12px;
  font-size: 12px;
  line-height: 18px;
  color: #4a5668;
  border-top-color: #eff2f6;
}
.tasks-card .task-empty { padding: 24px 12px; font-size: 12px; }

/* Lead status and assignment editor. */
.lead-assignment-card .side-body { padding: 20px; }
.lead-assignment-card .side-body.stack { gap: 16px; }
.lead-assignment-card .side-label {
  color: #091d42;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
}
.lead-assignment-card .status-wrap.lg { padding: 2px 0 2px 8px; line-height: 16px; }
.lead-assignment-card .status-wrap.lg .ico { margin-left: 8px; }
.lead-assignment-card .status-new {
  isolation: isolate;
  color: #596577 !important;
  background: transparent !important;
}
.lead-assignment-card .status-new::before { content: ""; position: absolute; inset: 0 22px 0 0; border-radius: 999px; background: #e2e3fc; z-index: -1; }
.lead-assignment-card .status-new .dot { background: #9ca3b1; }
.assign-editor { gap: 8px; margin-top: 8px; }
.lead-assignment-card .assign-editor { width: 100%; margin-top: 0; }
.assign-editor .select {
  height: 40px;
  min-width: 0;
  padding: 7px 15px;
  border: 2px solid #091d42;
  border-radius: 13px;
  background: #e2e3fc;
  color: #333c4a;
  font-size: 14px;
}
.assign-editor .select:focus { background: #e2e3fc; border-color: #091d42; box-shadow: none; }
.assign-editor .quick-actions { gap: 8px; }
.assign-editor .btn {
  height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  gap: 6px;
}
.assign-editor .btn.primary { background: #091d42; border-color: #091d42; font-weight: 600; }
.assign-editor .btn:not(.primary) { background: #e2e3fc; color: #3d4756; }
.assign-editor .btn:hover { transform: none; }

/* Coverage uses the same four columns at every desktop width. */
.coverage-card { padding: 24px; }
.coverage-card h2 { display: flex; align-items: center; gap: 9px; font-size: 20px; line-height: 28px; margin: 0 0 8px; color: #050708; }
.coverage-card h2 .ico { width: 20px; height: 20px; }
.coverage-card > p { font-size: 14px; line-height: 21px; color: #7d8799; margin: 0 0 16px; }
.coverage-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 12px;
  min-height: 30px;
  margin: 0;
  align-items: center;
}
.coverage-row label { font-size: 14px; line-height: 20px; }
.coverage-row .track { height: 8px; background: #e2e3fc; }
.coverage-row strong { font-size: 14px; line-height: 20px; text-align: right; font-weight: 600; }
.coverage-row small { grid-column: auto; font-size: 12px; line-height: 18px; color: #98a2b3; }
.coverage-row.good strong { color: #00a978; }
.coverage-row.good .track i { background: #0dbb85; }
.coverage-row.warning strong { color: #eb8000; }
.coverage-row.warning .track i { background: #f9a000; }
.coverage-row.bad strong { color: #ff484d; }
.coverage-row.bad .track i { background: #ff6b73; }
.coverage-row.none strong { color: #9ba4b3; }
.coverage-card > .coverage-foot {
  border-top: 1px solid #edf1f6;
  padding-top: 16px;
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: #98a2b3;
}

button:focus-visible, a:focus-visible { outline: 2px solid #797de8; outline-offset: 3px; }
.task-check:disabled { cursor: wait; opacity: .5; }

@media (max-width: 1100px) {
  .coverage-row { grid-template-columns: 118px minmax(0, 1fr) 42px minmax(0, .9fr); }
}
@media (max-width: 760px) {
  .coverage-card { padding: 20px; }
  .coverage-row { grid-template-columns: 110px minmax(0, 1fr) 40px; min-height: 30px; }
  .coverage-row small:not(:empty) { grid-column: 1 / -1; margin: -5px 0 8px; }
  .coverage-row small:empty { display: none; }
}
@media (max-width: 420px) {
  .tasks-card .person-task-row { column-gap: 8px; grid-template-columns: 28px minmax(0, 1fr) 34px 28px; }
  .coverage-card { padding: 18px; }
  .coverage-card h2 { font-size: 18px; }
  .coverage-row { grid-template-columns: 98px minmax(0, 1fr) 36px; gap: 8px; }
  .coverage-row label, .coverage-row strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ---------------------------------------------------------------- Profile & Account */

.profile-mini { width: 100%; border: 0; background: transparent; border-radius: 12px; text-align: left; font: inherit; color: inherit; }
.profile-mini:hover { background: #e0e1f8; }

.profile-layout { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2.05fr); gap: 26px; align-items: start; }
.profile-side, .profile-main { display: grid; gap: 22px; align-content: start; }

.profile-hero { padding: 34px 24px 30px; text-align: center; border-radius: 20px; }
.profile-hero-avatar { width: 66px; height: 66px; border-radius: 18px; background: #091d42; color: #fff; display: grid; place-items: center; font-size: 21px; font-weight: 700; margin: 0 auto 16px; }
.profile-hero strong { display: block; font-size: 19px; letter-spacing: -.3px; }
.profile-hero small { display: block; margin-top: 5px; color: #8b96a7; font-size: 13px; }
.profile-role { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; padding: 5px 12px; border-radius: 999px; background: #e8eff8; color: #41506a; font-size: 12px; font-weight: 500; }
.profile-hero p { margin: 14px 0 0; color: #9aa5b4; font-size: 12px; }

.account-card { padding: 22px 24px 24px; border-radius: 20px; }
.account-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: #8794a6; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.account-row { margin-bottom: 17px; }
.account-row:last-child { margin-bottom: 0; }
.account-row label { display: block; margin-bottom: 5px; color: #8794a6; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.account-row span { display: block; color: #091d42; font-size: 14px; font-weight: 500; word-break: break-all; }
.account-row .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: #6d7889; }

.profile-section { padding: 28px; border-radius: 20px; }
.profile-section h2 { gap: 9px; margin: 0 0 4px; font-size: 17px; }
.profile-section > p { margin: 0 0 22px; color: #8b96a7; font-size: 13px; }
.profile-section .field label { margin-bottom: 9px; color: #41506a; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.profile-section .field label.caps { color: #8794a6; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-section .input, .profile-section .select { padding: 14px 15px; border-color: transparent; border-radius: 12px; background: #e9eafa; font-size: 14px; }
.profile-section .input:focus, .profile-section .select:focus { border-color: #6b70ff; background: #fff; }
.profile-section .input:disabled { color: #8b96a7; }
.profile-section .field small { display: block; margin-top: 8px; color: #9aa5b4; font-size: 12px; }
.profile-gap { margin-top: 20px; }
.profile-section .form-actions { margin-top: 24px; }
.profile-section .form-actions.end { justify-content: flex-end; }
.profile-section .btn.primary { padding: 12px 20px; border-radius: 12px; }

.profile-pass { position: relative; }
.profile-pass .input { padding-right: 44px; }
.profile-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #8b96a7; }
.profile-eye:hover { background: #dbe7f5; color: #41506a; }

.profile-check { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: #5b6676; font-size: 13px; }
.profile-check input { width: 17px; height: 17px; accent-color: #091d42; }

.notify-list { display: grid; }
.notify-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid #e7edf4; }
.notify-row strong { display: block; color: #091d42; font-size: 14px; font-weight: 600; }
.notify-row small { display: block; margin-top: 3px; color: #8b96a7; font-size: 12px; }
.notify-row.muted-row { opacity: .45; }

.switch { flex: 0 0 auto; width: 44px; height: 25px; padding: 3px; border: 0; border-radius: 999px; background: #cbd5e1; transition: background .18s; }
.switch:after { content: ""; display: block; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(9,29,66,.3); transition: transform .18s; }
.switch.on { background: #091d42; }
.switch.on:after { transform: translateX(19px); }

@media (max-width: 980px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-section { padding: 20px; }
}
.profile-section h2 + .field, .profile-section h2 + .form-grid, .profile-section h2 + .notify-list { margin-top: 22px; }
/* A saved SMTP password shows as solid dots, the way a stored value reads, while the
   field itself stays empty — blank on save means "keep the password already stored". */
.profile-section .input.has-secret::placeholder { color: #091d42; opacity: 1; }
.profile-section .input.has-secret:focus::placeholder { color: #b3bdca; }
/* Matches the reference crop: slightly shorter inputs, and less air between the
   password field, the SSL/TLS choice and the button that follows them. */
.profile-section .input, .profile-section .select { padding: 12px 15px; }
.profile-gap { margin-top: 16px; }
.profile-check { margin-top: 15px; }
.profile-check + .form-actions { margin-top: 18px; }
.form-actions.split { justify-content: space-between; align-items: center; }
.link-btn { border: 0; background: transparent; padding: 0; color: #4c4ce0; font-size: 13px; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { color: #9aa5b4; text-decoration: none; }
@media (max-width: 560px) { .form-actions.split { flex-direction: column; align-items: stretch; gap: 12px; } }
/* Pulses the Outbound Email card when something sent the reader here to fill it in. */
.profile-section.needs-attention { animation: needsAttention 1.9s ease; }
@keyframes needsAttention {
  0%   { box-shadow: 0 0 0 0 rgba(76,76,224,.45); }
  35%  { box-shadow: 0 0 0 6px rgba(76,76,224,.16); }
  100% { box-shadow: 0 0 0 0 rgba(76,76,224,0); }
}