:root {
  --ink: #1d1930;
  --muted: #6f667a;
  --accent: #5b1a6e;
  --accent2: #843a9f;
  --orange: #f97316;
  --bg: #f9f7fb;
  --line: #e8e2ed;
  --success: #218a65;
  --danger: #cf5b51;
  --card: #fff;
  --shadow: 0 4px 16px rgba(50, 24, 67, 0.045);
  --radius: 16px;
  --space: 8px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: -0.01em;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  line-height: 1.6;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(133, 57, 158, 0.25);
  outline-offset: 2px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 254px;
  background: linear-gradient(165deg, #251531 0%, #201329 78%, #291434 100%);
  flex-shrink: 0;
  color: #fff;
  padding: 31px 17px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  height: 100vh;
  top: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 43px;
}
.brand-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #9d2b95, #e87934);
  border-radius: 13px;
  font-size: 23px;
  color: #fff;
  box-shadow: 0 7px 24px #f9731622;
}
.brand strong {
  font-size: 19px;
  letter-spacing: -0.05em;
}
.brand strong span {
  color: #ffab69;
}
.brand small {
  display: block;
  color: #b4a3c1;
  font-size: 9px;
  letter-spacing: 0.18em;
  margin-top: 4px;
  font-weight: 750;
}
.workspace-label {
  color: #857491;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 750;
  padding: 0 17px;
  margin-bottom: 12px;
}
.navigation {
  display: grid;
  gap: 4px;
}
.nav-link {
  color: #a99bb5;
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: transparent;
  text-align: left;
  font-size: 13.5px;
  font-weight: 580;
  border-radius: 10px;
  transition: 0.15s;
}
.nav-link:hover {
  background: #ffffff0d;
  color: #fff;
}
.nav-link.active {
  background: #ffffff18;
  color: #fff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--orange);
}
.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  color: #d0bfd6;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  border: 1px solid #ffffff13;
  background: #ffffff0b;
  border-radius: 13px;
  color: #d8cadf;
  padding: 14px;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 22px;
}
.sidebar-note small {
  display: block;
  color: #9885a7;
  margin: 7px 0 0 15px;
  font-size: 10.5px;
  font-weight: 400;
}
.status-dot,
.today-dot {
  width: 7px;
  height: 7px;
  background: #69c9a1;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 3px #69c9a122;
}
.sidebar-sign {
  border-top: 1px solid #ffffff19;
  padding: 17px 4px 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar-letter {
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #684178;
  font-weight: 760;
}
.sidebar-sign strong {
  font-size: 11px;
  display: block;
}
.sidebar-sign small {
  display: block;
  color: #9585a0;
  font-size: 10.5px;
  margin-top: 4px;
}
.exit-btn {
  border: 0;
  background: transparent;
  color: #9d8ca9;
  margin-left: auto;
  font-size: 19px;
}
.main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 72px;
  background: white;
  border-bottom: 1px solid #eceaf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 47px;
}
.breadcrumb {
  font-size: 12px;
  color: #93909d;
}
.breadcrumb span {
  padding: 0 11px;
  color: #ceccd2;
}
.breadcrumb strong {
  color: #4c4757;
  font-weight: 650;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 21px;
}
.today-chip {
  font-size: 11px;
  font-weight: 550;
  color: #76717f;
  background: #f9f8fa;
  border: 1px solid #eeecf0;
  border-radius: 30px;
  padding: 9px 13px;
}
.today-dot {
  background: #a76aca;
  margin-right: 8px;
  box-shadow: 0 0 0 3px #a76aca19;
}
.top-avatar {
  font-size: 10px;
  color: #5a2b69;
  background: #f2e7f5;
  height: 34px;
  width: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 790;
}
.mobile-menu {
  display: none;
}
.main-content {
  padding: 44px 48px 72px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 33px;
}
.eyebrow {
  color: #9b64aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.page-heading h1 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.045em;
  line-height: 1.25;
  font-weight: 780;
}
.page-heading p {
  margin: 10px 0 0;
  color: #888594;
  font-size: 13px;
}
.header-controls {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  border: 0;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(130deg, #643075, #78328f);
  box-shadow: 0 4px 13px #5b1a6e19;
}
.btn.primary:hover {
  filter: brightness(1.08);
}
.btn.secondary {
  background: #fff;
  color: #585262;
  border: 1px solid var(--line);
}
.btn.soft {
  background: #f2e8f5;
  color: #723587;
}
.btn.tiny {
  font-size: 11px;
  padding: 7px 10px;
}
.btn.full {
  width: 100%;
}
.input-month,
.filter-input {
  border: 1px solid #e8e5ed;
  background: #fff;
  color: #544b60;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  min-height: 39px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.metric-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 21px 22px 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7b7784;
  font-size: 11px;
  font-weight: 630;
  gap: 8px;
}
.metric-icon {
  height: 30px;
  width: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #f4e9f6;
  font-size: 18px;
}
.metric-icon.green {
  color: #188b62;
  background: #e8f7f0;
}
.metric-icon.orange {
  color: #d66e23;
  background: #fff3e9;
}
.metric-icon.blue {
  color: #5a6dbb;
  background: #edf0fc;
}
.metric-value {
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.045em;
  margin: 15px 0 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-sub {
  font-size: 11px;
  color: #9a96a0;
}
.metric-sub .positive {
  color: #259268;
  font-weight: 650;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  gap: 20px;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  padding: 23px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-title {
  font-weight: 740;
  font-size: 14px;
  letter-spacing: -0.025em;
}
.panel-sub {
  color: #9a96a4;
  margin-top: 6px;
  font-size: 11px;
}
.link-text {
  background: none;
  border: 0;
  color: #815093;
  font-size: 11px;
  font-weight: 720;
}
.list-table {
  width: 100%;
  border-collapse: collapse;
}
.list-table th {
  padding: 12px 22px;
  background: #fbfafc;
  text-align: left;
  color: #a39dab;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 750;
  border-block: 1px solid #f0edf2;
}
.list-table td {
  padding: 16px 22px;
  border-bottom: 1px solid #f2f0f4;
  font-size: 12px;
  color: #554e5e;
  vertical-align: middle;
}
.list-table tr:last-child td {
  border-bottom: 0;
}
.list-table tbody tr:hover {
  background: #fdfbfe;
}
.client-cell {
  display: flex;
  gap: 11px;
  align-items: center;
}
.client-avatar {
  display: grid;
  place-items: center;
  min-height: 34px;
  min-width: 34px;
  width: 34px;
  border-radius: 10px;
  font-weight: 750;
  font-size: 11px;
  color: #6a3980;
  background: #f4eaf5;
}
.client-avatar:nth-child(2n) {
  background: #fef2e8;
  color: #aa5f23;
}
.client-title {
  display: block;
  color: #3e3849;
  font-weight: 740;
  font-size: 12px;
}
.client-minor {
  display: block;
  color: #9b96a4;
  font-size: 10px;
  margin-top: 4px;
}
.tabular {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #3c3744;
}
.pill {
  border-radius: 6px;
  padding: 5px 7px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 680;
}
.pill.good {
  color: #1b8760;
  background: #e8f6ee;
}
.pill.bad {
  color: #c4534d;
  background: #fff0ef;
}
.pill.wait {
  color: #b8772a;
  background: #fff4e6;
}
.pill.neutral {
  color: #757084;
  background: #f4f2f5;
}
.amount-positive {
  color: #1b8760 !important;
  font-weight: 720;
}
.no-data {
  padding: 32px 22px;
  color: #9b96a3;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.progress-track {
  height: 8px;
  background: #f2eef4;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 22px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6a2d80, #c477a9);
  border-radius: 99px;
  min-width: 0;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #8c8591;
  margin-top: 10px;
  font-size: 10px;
}
.progress-labels b {
  color: #6b3a78;
  font-weight: 750;
}
.insight-tile {
  background: #fbf7fc;
  margin: 0 24px 21px;
  border-radius: 12px;
  padding: 15px;
  color: #685873;
  font-size: 11px;
  line-height: 1.6;
}
.mini-list {
  padding: 0 24px 22px;
}
.mini-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f2eff3;
}
.mini-item:last-child {
  border: 0;
}
.mini-icon {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f7eaf4;
  color: #974a92;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.mini-icon.orange {
  background: #fff1e5;
  color: #d87022;
}
.mini-text {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #5b5264;
}
.mini-text strong {
  display: block;
  font-size: 11px;
  font-weight: 730;
  color: #3c3545;
  margin-bottom: 2px;
}
.mini-meta {
  color: #a9a1ad;
  font-size: 10px;
  white-space: nowrap;
}
.section-stack {
  display: grid;
  gap: 20px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.toolbar .searchbox {
  border-radius: 10px;
  padding: 11px 14px;
  background: white;
  border: 1px solid var(--line);
  font-size: 12px;
  min-width: 225px;
  max-width: 350px;
  width: 100%;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.client-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: left;
  transition: 0.15s;
}
.client-card:hover {
  transform: translateY(-2px);
  border-color: #dbcee1;
  box-shadow: 0 12px 22px #2515310b;
}
.client-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.client-card-main {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
}
.client-card strong {
  display: block;
  font-size: 13px;
  color: #302b3a;
}
.client-card small {
  font-size: 10px;
  color: #9d96a4;
}
.client-card .label {
  font-size: 10px;
  color: #98919d;
  margin-top: 20px;
}
.client-card .value {
  font-size: 19px;
  font-weight: 750;
  color: #44334a;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.client-card-footer {
  border-top: 1px solid #f2eef3;
  margin-top: 17px;
  padding-top: 13px;
  font-size: 10.5px;
  color: #8f8794;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
}
.detail-block {
  padding: 24px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #f2eff3;
  padding: 13px 0;
  font-size: 11px;
}
.detail-row:last-child {
  border: 0;
}
.detail-row span {
  color: #aaa3ae;
}
.detail-row strong {
  text-align: right;
  color: #544b5b;
  font-weight: 670;
}
.activity-list {
  padding: 7px 24px 19px;
}
.activity-item {
  position: relative;
  padding: 17px 0 17px 27px;
  border-bottom: 1px solid #f2eff3;
}
.activity-item:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 9px;
  height: 9px;
  background: #ac82b7;
  border: 3px solid #f3e9f5;
  border-radius: 50%;
}
.activity-item h3 {
  font-size: 11.7px;
  font-weight: 740;
  margin: 0 0 8px;
  color: #4d4456;
}
.activity-item p {
  font-size: 12px;
  line-height: 1.65;
  color: #756e7a;
  margin: 0 0 9px;
  white-space: pre-wrap;
}
.activity-item small {
  font-size: 10px;
  color: #aaa4ae;
}
.empty-state {
  background: #fff;
  border: 1px dashed #e2dde7;
  border-radius: 15px;
  padding: 52px 24px;
  text-align: center;
  color: #a39ba9;
  font-size: 12px;
}
.empty-icon {
  width: 48px;
  height: 48px;
  background: #f8f0f9;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 25px;
  margin: 0 auto 15px;
  color: #a770b3;
}
.empty-state h3 {
  color: #5e5367;
  font-size: 14px;
  margin: 0 0 7px;
}
.empty-state p {
  margin: 0;
}
.split-note {
  background: #faf8fa;
  border: 1px solid #eee8f1;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 11px;
  line-height: 1.6;
  color: #83778d;
}
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-root.hidden {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #1c1423a8;
  backdrop-filter: blur(5px);
}
.modal {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: min(560px, 100%);
  max-height: calc(100vh - 35px);
  overflow: auto;
  box-shadow: 0 20px 90px #1709234a;
}
.modal-head {
  padding: 24px 28px 19px;
  border-bottom: 1px solid #eeeaf1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-head h2 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.04em;
}
.modal-close {
  border: 0;
  background: #f5f2f6;
  color: #776981;
  border-radius: 8px;
  width: 31px;
  height: 31px;
  font-size: 23px;
}
.form-fields {
  padding: 24px 28px 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field.wide {
  grid-column: 1/-1;
}
.form-field label {
  font-size: 11px;
  color: #62586c;
  font-weight: 700;
}
.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid #e6e1e8;
  padding: 12px;
  font-size: 12px;
  width: 100%;
  background: #fff;
  color: #42384a;
}
.form-field textarea {
  resize: vertical;
  min-height: 86px;
}
.form-help {
  font-size: 10px;
  color: #a59aaa;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 22px 28px;
  gap: 9px;
  border-top: 1px solid #f2eef4;
  margin-top: 18px;
}
.toast {
  display: none;
  position: fixed;
  top: 86px;
  right: 25px;
  padding: 13px 19px;
  border-radius: 10px;
  background: #302239;
  color: #fff;
  box-shadow: 0 10px 28px #1c0f2440;
  z-index: 50;
  font-size: 12px;
  max-width: 360px;
}
.toast.show {
  display: block;
}
.toast.error {
  background: #a63b42;
}
.loading-skeleton {
  padding: 40px;
  color: #9d91a4;
  font-size: 12px;
}
.small-muted {
  color: #9d94a1;
  font-size: 10px;
}
.mobile-menu {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: #5b4166;
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 20% 10%, #5f2a76 0, transparent 38%),
    linear-gradient(135deg, #24142f, #171019);
  padding: 20px;
}
.login-card {
  width: min(415px, 100%);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px #0c081044;
  padding: 42px 38px;
}
.login-logo {
  height: 48px;
  width: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #732d86, #f97316);
  color: #fff;
  font-size: 30px;
  margin-bottom: 25px;
}
.login-card h1 {
  font-size: 28px;
  letter-spacing: -0.05em;
  margin: 0 0 7px;
}
.login-card p {
  font-size: 12px;
  color: #958d9c;
  margin: 0 0 26px;
}
.login-card label {
  display: block;
  font-size: 11px;
  font-weight: 720;
  margin-bottom: 9px;
}
.login-card input {
  display: block;
  border: 1px solid #e7e1ea;
  background: #fdfbfd;
  border-radius: 10px;
  padding: 13px 14px;
  width: 100%;
  margin-bottom: 16px;
}
.login-card .btn {
  padding: 14px;
}
.login-footer {
  font-size: 10px;
  color: #aaa2ae;
  text-align: center;
  border-top: 1px solid #f0ecf2;
  padding-top: 20px;
  margin-top: 26px;
  line-height: 1.65;
}
@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main-content {
    padding: 34px 28px 60px;
  }
  .topbar {
    padding-inline: 28px;
  }
  .sidebar {
    width: 224px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: fixed;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 12px 0 32px #21112618;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-block;
  }
  .main-content {
    padding: 28px 20px 60px;
  }
  .topbar {
    height: 62px;
    padding-inline: 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric-card {
    padding: 14px;
  }
  .metric-value {
    font-size: 20px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-icon {
    width: 27px;
    height: 27px;
  }
  .clients-grid {
    grid-template-columns: 1fr;
  }
  .list-table td,
  .list-table th {
    padding: 11px 10px;
    font-size: 10px;
  }
  .list-table .hide-mobile {
    display: none;
  }
  .panel-head {
    padding: 19px 16px;
  }
  .activity-list,
  .mini-list {
    padding-inline: 16px;
  }
  .today-chip {
    display: none;
  }
  .form-fields {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .form-field.wide {
    grid-column: 1;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-footer {
    padding: 18px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
}
/* v0.2 design system: approved light workspace, purple hierarchy, orange attention. */
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sidebar {
  background: linear-gradient(155deg, #fff 0%, #faf6fd 75%, #f3eaf8 100%);
  color: var(--ink);
  border-right: 1px solid var(--line);
  width: 240px;
  padding: 28px 14px 20px;
}
.brand {
  padding: 0 5px 42px;
  gap: 5px;
}
.brand img {
  width: 67px;
  height: 51px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 6px;
}
.brand strong {
  color: var(--accent);
  font-size: 21px;
}
.brand strong span {
  color: #ed6c17;
}
.brand small {
  color: #796484;
  font-size: 8px;
  letter-spacing: 0.11em;
}
.workspace-label {
  color: #887390;
}
.nav-link {
  color: #554561;
  font-size: 13px;
  padding: 14px 16px;
  margin-bottom: 3px;
}
.nav-icon {
  color: #5e3c70;
}
.nav-link.active {
  background: linear-gradient(110deg, #5b1a6e, #762c8c);
  color: #fff;
  box-shadow: 0 4px 10px #5b1a6e16;
}
.nav-link.active .nav-icon {
  color: #fff;
}
.nav-link:hover {
  background: #f0e6f5;
  color: var(--accent);
}
.nav-link.active:hover {
  background: #6c2780;
  color: white;
}
.nav-count {
  margin-left: auto;
  background: #f97316;
  color: #fff;
  border-radius: 20px;
  min-width: 19px;
  line-height: 19px;
  text-align: center;
  font-size: 10px;
}
.nav-count:empty {
  display: none;
}
.sidebar-note {
  border: 1px solid #e8ddef;
  background: #f4edf8;
  color: #674476;
  padding: 12px;
}
.sidebar-note small {
  color: #7c6a85;
}
.sidebar-sign {
  border-color: var(--line);
}
.sidebar-sign strong {
  color: #4b335a;
}
.sidebar-sign small {
  color: #807087;
}
.avatar-letter {
  color: #fff;
}
.sidebar-sign form {
  margin-left: auto;
}
.exit-btn {
  color: #6d487d;
}
.breadcrumb {
  display: none;
}
.topbar {
  padding: 0 34px;
  gap: 25px;
  position: relative;
}
.global-search {
  position: relative;
  max-width: 560px;
  flex: 1;
}
.global-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ded5e5;
  border-radius: 10px;
  background: #fbf9fd;
  font-size: 12px;
  color: var(--ink);
}
.search-results {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 14px 40px #35164120;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  z-index: 25;
}
.search-results button {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
}
.search-results button:hover {
  background: #f5edf9;
}
.search-results small {
  display: block;
  color: #7d6c89;
  font-size: 10px;
  margin-top: 4px;
}
.search-results p {
  padding: 8px;
  font-size: 12px;
}
.main-content {
  padding: 32px 34px 65px;
  max-width: 1700px;
}
.main-wrap {
  background:
    radial-gradient(ellipse at 90% 0%, #eadcf243, transparent 420px), var(--bg);
}
.page-heading {
  margin-bottom: 26px;
  align-items: center;
}
.page-heading h1 {
  font-size: 30px;
  letter-spacing: -0.04em;
  color: #22132f;
}
.page-heading p {
  color: #786985;
  max-width: 650px;
  line-height: 1.5;
}
.eyebrow {
  color: var(--accent);
  margin-bottom: 9px;
}
.btn {
  font-size: 11px;
  padding: 11px 14px;
}
.btn.primary {
  background: linear-gradient(110deg, #5b1a6e, #8336a0);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.metric-card {
  padding: 19px;
  border-color: #e7deec;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, #fdfbff);
}
.metric-value {
  font-size: 25px;
  color: #201329;
  letter-spacing: -0.04em;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.metric-sub {
  color: #75687f;
  line-height: 1.5;
}
.metric-top {
  color: #44324f;
}
.panel {
  border-color: #e7dfed;
  border-radius: var(--radius);
}
.panel-title {
  font-size: 16px;
  color: #291836;
  line-height: 1.4;
  margin: 0;
}
.panel-sub {
  color: #7b6b87;
  font-size: 11px;
  line-height: 1.5;
}
.panel-head {
  align-items: flex-start;
  padding: 21px 22px 17px;
}
.panel-head > div {
  min-width: 0;
}
.panel-head > .btn {
  flex-shrink: 0;
}
.link-text {
  color: #743187;
  font-size: 11px;
  padding: 0;
  text-align: left;
}
.content-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  align-items: start;
}
.section-stack {
  align-content: start;
}
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.client-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 1fr);
  gap: 20px;
  align-items: start;
}
.section-spacer {
  margin-top: 22px;
}
.finance-submetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.finance-submetrics .metric-card {
  background: transparent;
  box-shadow: none;
  padding-block: 15px;
}
.finance-submetrics .metric-value {
  font-size: 22px;
}
.finance-submetrics .metric-icon {
  display: none;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  overscroll-behavior-x: contain;
}
.list-table th {
  color: #756480;
  background: #f8f4fb;
  font-size: 9px;
  white-space: nowrap;
  padding: 13px 16px;
}
.list-table td {
  padding: 16px;
  font-size: 11px;
}
.list-table .client-title {
  min-width: 110px;
}
.list-table .client-minor {
  max-width: 230px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.list-table .tabular {
  white-space: nowrap;
}
.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 100px;
}
.client-minor,
.small-muted,
.mini-meta {
  color: #7d6d89;
}
.no-data {
  color: #75677f;
}
.health-line {
  margin-top: 15px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-direction: column;
}
.health-line small {
  font-size: 10px;
}
.client-card .label,
.client-card small,
.client-card-footer {
  color: #796784;
}
.client-state {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -7px;
  margin-bottom: 19px;
}
.client-state .link-text {
  margin-left: auto;
}
.client-tabs {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid #e1d5e8;
  margin-bottom: 24px;
  overflow-x: auto;
}
.client-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #5d496c;
  padding: 13px 18px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 10px 10px 0 0;
}
.client-tabs button.active {
  background: #f0e1fa;
  border-bottom-color: #842bb0;
  color: #642082;
  font-weight: 750;
}
.detail-block {
  padding: 0 22px 22px;
}
.detail-row {
  font-size: 12px;
  line-height: 1.6;
  align-items: start;
}
.detail-row span {
  color: #73617e;
  min-width: 110px;
}
.detail-row strong {
  color: #35233f;
  overflow-wrap: anywhere;
  min-width: 0;
}
.contract-notes {
  padding-top: 16px;
  font-size: 12px;
  color: #73617e;
}
.contract-notes p {
  color: #44324f;
  white-space: pre-wrap;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.activity-list {
  padding: 0 22px 22px;
}
.activity-item {
  border: 1px solid #e6dced;
  border-radius: 12px;
  margin: 8px 0 12px 20px;
  padding: 17px 18px;
  background: #fefcff;
}
.activity-item:before {
  left: -24px;
  top: 22px;
  background: #9c78ad;
  border: 3px solid #f2e8f7;
  box-shadow: 0 0 0 1px #d6c4df;
}
.activity-item:first-child {
  background: linear-gradient(110deg, #f4e7fc, #fbf6ff);
  border-color: #dcc4ed;
}
.activity-item:not(:last-child):after {
  content: "";
  position: absolute;
  width: 1px;
  background: #d9ccdf;
  left: -17px;
  top: 36px;
  bottom: -24px;
}
.activity-item.kind-hypothesis {
  border-left: 3px solid #eda750;
}
.activity-item.kind-executed {
  border-left: 3px solid #439277;
}
.activity-item.kind-blocker {
  border-left: 3px solid #c85d53;
}
.activity-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.activity-title time {
  font-size: 12px;
  font-weight: 750;
  color: #622380;
}
.activity-item h3 {
  font-size: 11px;
  margin: 13px 0 5px;
  color: #3f254e;
}
.activity-item p {
  color: #4f3b5d;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.next-step {
  margin-top: 12px;
  background: #fff9;
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  color: #642d7b;
}
.next-step p {
  margin: 5px 0;
}
.source-detail {
  margin-top: 12px;
  font-size: 11px;
  color: #786184;
}
.source-detail summary {
  cursor: pointer;
  font-weight: 600;
}
.source-detail small {
  color: #7b6688;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.source-detail p {
  font-size: 11px;
}
.timeline-controls {
  justify-content: flex-start;
  gap: 13px;
  align-items: end;
}
.timeline-controls label {
  display: grid;
  gap: 7px;
  font-size: 10px;
  color: #6c5479;
}
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 22px;
  font-size: 10px;
  color: #776282;
  flex-wrap: wrap;
}
.pagination span {
  margin-right: auto;
}
.document-list {
  padding: 0 22px 22px;
  display: grid;
  gap: 10px;
}
.document-list a {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  color: #64287d;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 13px;
}
.document-list small {
  grid-column: 1;
  font-size: 10px;
  color: #87718f;
  overflow-wrap: anywhere;
}
.document-list b {
  grid-column: 2;
  grid-row: 1;
}
.history-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 150px;
}
.history-chart text {
  font-family: inherit;
  font-size: 10px;
  fill: #7d6987;
}
.chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 22px;
  font-size: 10px;
  color: #74278c;
}
.chart-legend span:last-child {
  color: #c65b13;
}
.chart-data {
  font-size: 10px;
  color: #785885;
  border-top: 1px solid var(--line);
}
.chart-data summary {
  padding: 13px 22px;
  cursor: pointer;
}
.update-block {
  padding: 0 22px 22px;
  font-size: 12px;
  color: #6e567d;
}
.update-block strong {
  color: #452457;
  font-size: 17px;
}
.update-block p {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.plan-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #493352;
}
.plan-item small {
  display: block;
  font-size: 10px;
  color: #81658c;
  margin-top: 7px;
}
.plan-item .progress-track {
  margin-top: 12px;
}
.progress-labels {
  flex-wrap: wrap;
  line-height: 1.7;
}
.mini-item {
  align-items: start;
  flex-wrap: wrap;
}
.mini-text > span,
.mini-text > small {
  display: block;
  color: #776280;
  margin-top: 3px;
}
.mini-text .link-text {
  margin: 3px 0;
  line-height: 1.5;
}
.mini-text p {
  font-size: 11px;
  margin: 4px 0;
}
.mini-actions {
  display: grid;
  gap: 6px;
}
.mini-item > .tabular {
  font-size: 11px;
}
.category-counts {
  padding: 0 22px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.category-counts > div {
  display: flex;
  justify-content: space-between;
  background: #f8f2fb;
  padding: 12px;
  border-radius: 9px;
  gap: 8px;
  font-size: 11px;
  color: #6c487d;
}
.empty-state {
  border: 0;
  background: transparent;
  padding: 35px 22px;
  color: #7b6588;
}
.empty-state h3 {
  color: #5b376d;
}
.empty-state p {
  font-size: 12px;
  color: #7b6588;
  max-width: 440px;
  margin: auto;
  line-height: 1.7;
}
.empty-icon {
  color: #9250b1;
  background: #f3e8fa;
}
.footnote {
  font-size: 11px;
  color: #806b8c;
  line-height: 1.7;
}
.modal-open {
  overflow: hidden;
}
.modal .wide {
  grid-column: 1/-1;
}
.receipt {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #684878;
  overflow-wrap: anywhere;
}
.receipt small {
  font-size: 10px;
  line-height: 1.8;
}
.form-help {
  color: #786580;
  line-height: 1.6;
}
.login-card .eyebrow {
  color: #733688;
}
.sidebar-note {
  box-shadow: none;
}
@media (min-width: 1600px) {
  .main-content {
    padding-inline: 50px;
  }
  .metrics-grid {
    gap: 20px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand img {
    width: 55px;
  }
  .main-content {
    padding: 28px 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .client-columns {
    grid-template-columns: minmax(0, 1.2fr) minmax(285px, 1fr);
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics-grid,
  .finance-submetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .client-tabs {
    gap: 4px;
  }
  .client-tabs button {
    padding-inline: 13px;
  }
}
@media (max-width: 950px) {
  .client-columns,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .top-actions {
    gap: 10px;
  }
  .topbar {
    gap: 14px;
  }
  .today-chip {
    display: none;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 240px;
  }
  .main-content {
    padding: 25px 20px 60px;
  }
  .topbar {
    padding-inline: 20px;
  }
  .global-search {
    max-width: none;
  }
  .top-actions .btn {
    display: none;
  }
  .page-heading h1 {
    font-size: 27px;
  }
}
@media (max-width: 560px) {
  .main-content {
    padding: 23px 14px 50px;
  }
  .topbar {
    padding-inline: 14px;
    gap: 12px;
  }
  .global-search input {
    font-size: 11px;
    padding: 10px 12px;
  }
  .top-avatar {
    width: 30px;
    height: 30px;
  }
  .page-heading {
    gap: 16px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .header-controls {
    gap: 7px;
  }
  .btn {
    padding: 10px 12px;
    font-size: 10px;
  }
  .input-month,
  .filter-input {
    font-size: 11px;
    padding: 9px;
    max-width: 100%;
  }
  .metrics-grid,
  .finance-submetrics {
    gap: 10px;
  }
  .metric-card {
    padding: 14px;
  }
  .metric-top {
    font-size: 10px;
    align-items: start;
  }
  .metric-value {
    font-size: 20px;
    margin: 12px 0 5px;
  }
  .metric-sub {
    font-size: 10px;
  }
  .metric-icon {
    min-width: 24px;
    height: 24px;
    width: 24px;
    font-size: 16px;
  }
  .panel-head {
    padding: 18px 16px 14px;
  }
  .panel-title {
    font-size: 15px;
  }
  .panel-sub {
    font-size: 10px;
  }
  .client-state .link-text {
    margin-left: 0;
  }
  .client-tabs button {
    font-size: 11px;
    padding: 12px;
  }
  .client-tabs {
    margin-bottom: 18px;
  }
  .detail-block {
    padding: 0 16px 18px;
  }
  .detail-row {
    font-size: 11px;
  }
  .activity-list {
    padding: 0 14px 16px;
  }
  .activity-item {
    padding: 14px;
    margin-left: 19px;
  }
  .activity-title time {
    font-size: 11px;
  }
  .activity-item p {
    font-size: 11px;
  }
  .mini-item {
    gap: 9px;
  }
  .mini-text {
    min-width: 100px;
  }
  .mini-actions {
    width: 100%;
    display: flex;
    padding-left: 39px;
  }
  .timeline-controls {
    gap: 10px;
  }
  .timeline-controls label {
    width: calc(50% - 5px);
  }
  .timeline-controls select,
  .timeline-controls input {
    width: 100%;
  }
  .toolbar .searchbox {
    min-width: 0;
  }
  .table-scroll .list-table {
    min-width: 660px;
  }
  .finance-submetrics .metric-value {
    font-size: 18px;
  }
  .category-counts {
    padding-inline: 16px;
  }
  .empty-state {
    padding: 27px 18px;
  }
  .empty-state p {
    font-size: 11px;
  }
  .chart-legend {
    font-size: 9px;
    gap: 9px;
  }
  .form-fields {
    gap: 14px;
  }
  .form-field label {
    font-size: 11px;
  }
  .toast {
    left: 14px;
    right: 14px;
    max-width: none;
  }
  .pagination {
    padding-inline: 14px;
  }
  .client-state {
    gap: 7px;
  }
  .detail-row strong {
    max-width: 64%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.demo-banner {
  padding: 12px 17px;
  margin-bottom: 22px;
  border: 1px solid #e9c288;
  border-radius: 10px;
  background: #fff3da;
  color: #7c4a0d;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.6;
}
@media (min-width: 1440px) {
  .overview-metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .overview-metrics .metric-value {
    font-size: 23px;
  }
  .overview-metrics .metric-card {
    padding: 17px;
  }
}
@media (min-width: 950px) and (max-width: 1439px) {
  .overview-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
