body[data-demo="crm"] {
  color: #202946;
  background:
    radial-gradient(ellipse at 75% 4%, rgba(119, 145, 255, .16), transparent 34rem),
    radial-gradient(ellipse at 96% 58%, rgba(116, 95, 220, .10), transparent 30rem),
    #f2f5fc;
}

.app-layout[data-demo-content] {
  position: relative;
  isolation: isolate;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: calc(100vh - var(--demo-bottom-height));
  max-width: none;
  margin: 0 0 var(--demo-bottom-height);
  background: transparent;
}

.sidebar {
  position: relative;
  z-index: 1;
  gap: 0;
  overflow: hidden;
  padding: 23px 15px 15px;
  color: #dce5ff;
  background:
    radial-gradient(ellipse at 0% 6%, rgba(105, 127, 245, .25), transparent 54%),
    linear-gradient(165deg, #1d2b58 0%, #171f42 56%, #141c38 100%);
  border-right: 1px solid rgba(207, 220, 255, .1);
}

.sidebar::after {
  position: absolute;
  right: -78px;
  bottom: 60px;
  width: 210px;
  height: 210px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(97, 105, 218, .16), transparent 70%);
  filter: blur(12px);
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 1px 5px 22px;
}

.sidebar-brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #7990ff, #5263d5 65%, #805dde);
  box-shadow: 0 8px 22px rgba(62, 80, 190, .34), inset 0 1px rgba(255, 255, 255, .3);
  font-family: "CREACOM Space", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.sidebar-brand-copy,
.workspace-copy,
.user-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sidebar-brand-copy strong {
  color: #fff;
  font-size: 12px;
  letter-spacing: .01em;
}

.sidebar-brand-copy strong b {
  color: #9eacff;
  font-weight: 700;
}

.sidebar-brand-copy small {
  margin-top: 4px;
  color: #99a8cf;
  font-size: 8px;
  letter-spacing: .16em;
}

.workspace-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 23px;
  padding: 10px 9px;
  border: 1px solid rgba(220, 230, 255, .12);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.workspace-avatar,
.user-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.workspace-avatar {
  width: 31px;
  height: 31px;
  color: #dfe5ff;
  background: linear-gradient(145deg, #35477f, #28365e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.workspace-copy {
  flex: 1;
  overflow: hidden;
}

.workspace-copy strong {
  overflow: hidden;
  color: #f3f5ff;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-copy small {
  margin-top: 4px;
  color: #a0aed0;
  font-size: 9px;
}

.workspace-chevron {
  color: #aeb9d8;
  font-size: 15px;
}

.side-label {
  margin: 0 0 9px;
  padding: 0 10px;
  color: #8292bc;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #bdc9e8;
  background: transparent;
  text-align: left;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.side-link:hover {
  transform: translateX(2px);
  border-color: rgba(195, 207, 255, .1);
  color: #fff;
  background: rgba(187, 200, 255, .09);
}

.side-link.active {
  border-color: rgba(172, 190, 255, .18);
  color: #fff;
  background: linear-gradient(105deg, rgba(101, 124, 234, .38), rgba(111, 121, 221, .17));
  box-shadow: inset 3px 0 #91a4ff, 0 7px 18px rgba(12, 19, 51, .12);
}

.nav-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(199, 211, 255, .09);
  border-radius: 8px;
  color: #aebeff;
  background: rgba(255, 255, 255, .055);
  font-size: 13px;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.side-link.active .nav-icon,
.side-link:hover .nav-icon {
  color: #fff;
  background: rgba(141, 160, 255, .24);
  box-shadow: 0 0 18px rgba(105, 128, 247, .18);
}

.side-text {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
}

.nav-shortcut {
  color: #7889b3;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
}

.nav-count {
  min-width: 24px;
  padding: 3px 6px;
  border: 1px solid rgba(184, 197, 255, .14);
  border-radius: 8px;
  color: #d9e0ff;
  background: rgba(128, 146, 239, .18);
  font-family: "CREACOM Mono", monospace;
  font-size: 9px;
  text-align: center;
}

.sidebar-spacer {
  flex: 1;
  min-height: 30px;
}

.sidebar-health {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 1px 20px;
  padding: 11px 10px;
  border: 1px solid rgba(139, 221, 193, .13);
  border-radius: 11px;
  background: linear-gradient(120deg, rgba(69, 154, 130, .14), rgba(255, 255, 255, .035));
}

.health-indicator,
.sync-state i,
.live-badge i {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #64d5aa;
  box-shadow: 0 0 0 4px rgba(100, 213, 170, .11), 0 0 12px rgba(100, 213, 170, .4);
}

.sidebar-health span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sidebar-health strong {
  color: #c9f3e5;
  font-size: 9px;
}

.sidebar-health small {
  margin-top: 3px;
  color: #8ea9b0;
  font-size: 8px;
}

.side-label-admin {
  margin-top: 0;
}

.reset-link {
  width: 100%;
  margin-bottom: 9px;
}

.reset-link .nav-icon {
  color: #e2b9ba;
}

.side-foot {
  display: flex;
  justify-content: space-between;
  padding: 13px 8px 0;
  border-top: 1px solid rgba(204, 216, 255, .1);
  color: #7f8eaf;
  font-family: "CREACOM Mono", monospace;
  font-size: 7px;
  letter-spacing: .08em;
}

.main-area {
  position: relative;
  z-index: 0;
  min-width: 0;
  overflow: visible;
  padding: 0 30px 20px;
  background:
    radial-gradient(ellipse at 78% 6%, rgba(177, 191, 255, .18), transparent 35rem),
    linear-gradient(150deg, rgba(248, 250, 255, .95), rgba(242, 245, 253, .95));
}

.main-area::before {
  position: absolute;
  z-index: -1;
  top: 14rem;
  right: 4%;
  width: 26rem;
  height: 20rem;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(157, 145, 245, .1), transparent 68%);
  filter: blur(18px);
}

.app-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  height: 73px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -30px 27px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(218, 225, 241, .82);
  background: rgba(255, 255, 255, .64);
  backdrop-filter: blur(18px);
}

.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #8a94ad;
  font-size: 10px;
}

.breadcrumb-workspace {
  color: #7f8aa4;
  font-family: "CREACOM Mono", monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

.breadcrumb-separator {
  color: #bdc5d6;
}

.app-breadcrumb strong {
  color: #303c5d;
  font-size: 11px;
  font-weight: 700;
}

.app-topbar-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sync-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #71809c;
  font-size: 9px;
  white-space: nowrap;
}

.sync-state i {
  width: 6px;
  height: 6px;
  background: #40b98a;
}

.topbar-divider {
  width: 1px;
  height: 27px;
  background: #e3e8f2;
}

.notification-anchor {
  position: relative;
}

.notification-trigger {
  position: relative;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid #e3e8f2;
  border-radius: 11px;
  color: #586581;
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.notification-trigger:hover,
.notification-trigger[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: #b7c3fa;
  color: #4b5fc4;
  box-shadow: 0 6px 16px rgba(66, 83, 163, .12);
}

.notification-trigger svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #f7f9ff;
  border-radius: 99px;
  color: #fff;
  background: linear-gradient(135deg, #fa6681, #e64e70);
  box-shadow: 0 3px 8px rgba(215, 72, 104, .3);
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
  font-weight: 700;
}

.notification-count[hidden] {
  display: none;
}

.notifications-popover {
  position: absolute;
  top: calc(100% + 13px);
  right: -15px;
  z-index: 40;
  width: min(365px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(213, 221, 240, .9);
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 20px 55px rgba(32, 45, 88, .2), 0 3px 12px rgba(32, 45, 88, .06);
  backdrop-filter: blur(22px);
  animation: notification-in .18s ease-out;
}

.notifications-popover[hidden] {
  display: none;
}

.notifications-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 17px 13px;
  border-bottom: 1px solid #edf0f7;
}

.notifications-heading > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notifications-heading strong {
  color: #273454;
  font-size: 13px;
}

.notifications-heading span {
  color: #8290a9;
  font-size: 9px;
}

.mark-read-button {
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  color: #5267c5;
  background: #f0f3ff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  transition: background .16s ease, color .16s ease;
}

.mark-read-button:hover {
  color: #3349ad;
  background: #e4eaff;
}

.mark-read-button:disabled {
  color: #9aa4b6;
  background: #f5f6f9;
  cursor: default;
}

.notifications-list {
  display: grid;
  max-height: 340px;
  overflow: auto;
  padding: 5px 8px;
}

.notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 8px;
  align-items: start;
  gap: 10px;
  padding: 11px 9px;
  border: 0;
  border-radius: 11px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.notification-item:hover {
  transform: translateX(2px);
  background: #f5f7fd;
}

.notification-item.unread {
  background: linear-gradient(100deg, #f7f8ff, rgba(247, 248, 255, .25));
}

.notification-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: #5267ce;
  background: #edf0ff;
  font-size: 14px;
}

.notification-icon.tone-green {
  color: #258f70;
  background: #e9f8f2;
}

.notification-icon.tone-amber {
  color: #b47a2c;
  background: #fff4e4;
}

.notification-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.notification-copy strong {
  overflow: hidden;
  color: #303c5a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-copy span {
  color: #75819b;
  font-size: 9px;
  line-height: 1.45;
}

.notification-copy small {
  color: #9aa4b8;
  font-size: 8px;
}

.notification-unread-dot {
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: #6179e6;
  box-shadow: 0 0 0 3px #eef0ff;
}

.notification-item:not(.unread) .notification-unread-dot {
  visibility: hidden;
}

.notification-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border-top: 1px solid #edf0f7;
  color: #8490a8;
  background: #fafbfe;
  font-size: 8px;
}

.notification-footer .health-indicator {
  width: 5px;
  height: 5px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0 4px 3px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  color: #4c5fc1;
  background: linear-gradient(145deg, #e0e6ff, #cfd8ff);
  box-shadow: 0 2px 8px rgba(62, 79, 156, .14);
}

.user-copy strong {
  color: #35405d;
  font-size: 9px;
}

.user-copy small {
  margin-top: 3px;
  color: #8893a9;
  font-size: 8px;
}

.user-chevron {
  margin-left: 2px;
  color: #8994ab;
  font-size: 13px;
}

.page-head {
  align-items: center;
  margin-bottom: 23px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6879c8;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
  letter-spacing: .12em;
}

.eyebrow-mark {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, #7389f4, #9b76e8);
  box-shadow: 0 0 10px rgba(110, 128, 234, .45);
  transform: rotate(45deg);
}

.eyebrow-divider {
  color: #c1c9da;
}

.page-head h1 {
  margin: 9px 0 5px;
  color: #202c4c;
  font-family: "CREACOM Space", "Manrope", sans-serif;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -.055em;
}

.page-head p {
  color: #7b87a0;
  font-size: 11px;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.period-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid #e1e6f2;
  border-radius: 10px;
  color: #66738f;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 3px 10px rgba(48, 63, 117, .035);
  font-size: 9px;
  white-space: nowrap;
}

.period-chip span {
  color: #7383cc;
  font-size: 13px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid rgba(111, 128, 235, .28);
  border-radius: 10px;
  background: linear-gradient(115deg, #5269df, #685fd2 72%, #765dce);
  box-shadow: 0 7px 17px rgba(76, 91, 195, .23), inset 0 1px rgba(255, 255, 255, .24);
  font-size: 10px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.12);
  box-shadow: 0 11px 23px rgba(76, 91, 195, .3), inset 0 1px rgba(255, 255, 255, .26);
}

.primary-btn:active {
  transform: translateY(0);
}

.stats-grid {
  gap: 13px;
  margin-bottom: 17px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 15px 16px 13px;
  border: 1px solid rgba(222, 228, 242, .88);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(250, 251, 255, .87));
  box-shadow: 0 6px 20px rgba(50, 67, 117, .055), inset 0 1px rgba(255, 255, 255, .9);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat-card::before {
  position: absolute;
  top: -64px;
  right: -45px;
  width: 145px;
  height: 145px;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--stat-glow), transparent 70%);
  filter: blur(2px);
  transition: transform .25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(172, 186, 239, .75);
  box-shadow: 0 13px 27px rgba(50, 67, 117, .11), inset 0 1px #fff;
}

.stat-card:hover::before {
  transform: scale(1.25);
}

.stat-revenue {
  --stat-color: #5269d8;
  --stat-glow: rgba(107, 132, 250, .2);
}

.stat-opportunities {
  --stat-color: #1b9876;
  --stat-glow: rgba(83, 201, 164, .17);
}

.stat-conversion {
  --stat-color: #c38232;
  --stat-glow: rgba(245, 185, 90, .2);
}

.stat-advisors {
  --stat-color: #8160c9;
  --stat-glow: rgba(166, 127, 234, .19);
}

.stat-card-head,
.stat-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stat-card-head > span:first-child {
  color: #74809b;
  font-size: 9px;
}

.stat-card-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--stat-color) 12%, white);
  border-radius: 9px;
  color: var(--stat-color);
  background: color-mix(in srgb, var(--stat-color) 9%, white);
  font-size: 14px;
  font-weight: 700;
}

.stat-card strong {
  position: relative;
  z-index: 1;
  margin: 7px 0 9px;
  color: var(--stat-color);
  font-family: "CREACOM Space", "Manrope", sans-serif;
  font-size: clamp(22px, 2vw, 27px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
}

.stat-card-foot {
  justify-content: flex-start;
  gap: 8px;
}

.stat-card-foot small {
  color: #71809b;
  font-size: 8px;
}

.stat-note {
  margin-left: auto;
  padding: 3px 5px;
  border-radius: 5px;
  color: color-mix(in srgb, var(--stat-color) 84%, #536078);
  background: color-mix(in srgb, var(--stat-color) 8%, white);
  font-family: "CREACOM Mono", monospace;
  font-size: 7px;
  letter-spacing: .04em;
}

.content-grid {
  grid-template-columns: minmax(0, 1.38fr) minmax(290px, .92fr);
  gap: 15px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 17px 17px 15px;
  border: 1px solid rgba(222, 228, 242, .9);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(251, 252, 255, .91));
  box-shadow: 0 7px 24px rgba(45, 62, 112, .055), inset 0 1px rgba(255, 255, 255, .9);
}

.panel::before {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 230px;
  height: 180px;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(143, 159, 241, .08), transparent 70%);
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel h2,
.panel-head h2 {
  color: #2b3859;
  font-size: 12px;
  font-weight: 700;
}

.panel-record-count {
  padding: 4px 6px;
  border: 1px solid #e7eaf4;
  border-radius: 6px;
  color: #8590a8;
  background: #f8f9fd;
  font-family: "CREACOM Mono", monospace;
  font-size: 7px;
  white-space: nowrap;
}

.panel-sub {
  color: #8994aa;
  font-size: 9px;
}

.search-wrap {
  position: relative;
  display: flex;
  width: 185px;
  align-items: center;
}

.search-wrap > span {
  position: absolute;
  left: 10px;
  z-index: 1;
  color: #8490ac;
  font-size: 17px;
  pointer-events: none;
}

.toolbar .search-input {
  max-width: 100%;
  padding: 8px 10px 8px 29px;
  border-color: #e4e8f2;
  border-radius: 9px;
  background: rgba(249, 250, 254, .92);
  font-size: 9px;
}

.sale-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid #edf0f6;
  border-radius: 9px;
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
}

.sale-row:hover {
  transform: translateX(2px);
  border-bottom-color: transparent;
  background: linear-gradient(100deg, #f5f7ff, rgba(246, 248, 255, .35));
}

.sale-row:last-child {
  border-bottom: 0;
}

.sale-name {
  color: #34415f;
  font-size: 10px;
  font-weight: 700;
}

.sale-meta {
  margin-top: 4px;
  color: #8a95ac;
  font-size: 8px;
}

.sale-amount {
  color: #34415f;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sale-amount small {
  margin-top: 4px;
  color: #8490a6;
  font-size: 8px;
}

.badge {
  padding: 4px 7px;
  font-size: 8px;
}

.badge::before {
  width: 4px;
  height: 4px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid #d7f0e5;
  border-radius: 8px;
  color: #278665;
  background: linear-gradient(120deg, #effbf6, #f5fcf9);
  font-family: "CREACOM Mono", monospace;
  font-size: 7px;
  letter-spacing: .04em;
}

.live-badge i {
  width: 5px;
  height: 5px;
  background: #39b884;
}

.advisor-row {
  gap: 9px;
  padding: 10px 2px;
  border-bottom-color: #edf0f6;
}

.avatar {
  width: 33px;
  height: 33px;
  border: 1px solid rgba(112, 132, 229, .12);
  border-radius: 11px;
  color: #5268c8;
  background: linear-gradient(145deg, #f0f2ff, #e3e8ff);
  box-shadow: inset 0 1px #fff;
}

.advisor-details b {
  color: #3a4765;
  font-size: 9px;
}

.advisor-details small {
  color: #8a95aa;
  font-size: 8px;
}

.progress {
  height: 5px;
  margin-top: 6px;
  background: #edf0f8;
}

.progress span {
  background: linear-gradient(90deg, #6279e6, #8875df);
  box-shadow: 0 0 8px rgba(101, 119, 220, .25);
}

.insight {
  position: relative;
  overflow: hidden;
  gap: 9px;
  margin-top: 13px;
  padding: 11px;
  border: 1px solid #e4e9ff;
  border-radius: 12px;
  color: #5667aa;
  background: linear-gradient(120deg, rgba(239, 242, 255, .96), rgba(247, 245, 255, .88));
}

.insight-icon {
  position: relative;
  z-index: 1;
  color: #7382dc;
  font-size: 17px;
}

.insight-info-icon {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(115, 130, 220, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  font-family: "CREACOM Space", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.insight b,
.insight p {
  position: relative;
  z-index: 1;
}

.insight b {
  color: #485b9e;
  font-size: 9px;
}

.insight p {
  margin-top: 4px;
  color: #7c87ad;
  font-size: 8px;
  line-height: 1.5;
}

.insight-glow {
  position: absolute;
  top: -35px;
  right: -25px;
  width: 110px;
  height: 90px;
  border-radius: 50%;
  background: rgba(164, 146, 245, .13);
  filter: blur(20px);
}

.pipeline {
  gap: 10px;
}

.pipeline-col {
  border-color: #e7eaf4;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(247, 249, 255, .96), rgba(242, 245, 252, .9));
}

.pipeline-col h3 {
  padding: 3px 1px 8px;
  border-bottom: 1px solid #e9edf6;
  color: #697694;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
  letter-spacing: .02em;
}

.pipeline-item {
  border-color: #e7eaf4;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(40, 56, 103, .055);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.pipeline-item:hover {
  transform: translateY(-2px);
  border-color: #cad3fa;
  box-shadow: 0 8px 18px rgba(40, 56, 103, .1);
}

.pipeline-item b {
  color: #374461;
  font-size: 9px;
}

.pipeline-item span {
  color: #8590a7;
  font-size: 8px;
}

.pipeline-item p {
  color: #445372;
  font-size: 10px;
  font-weight: 700;
}

.pipeline-item select {
  width: 100%;
  padding: 6px 7px;
  border: 1px solid #e5e9f3;
  border-radius: 7px;
  color: #67738c;
  background: #fafbfe;
  font-size: 8px;
}

.report-bars {
  border-bottom-color: #e5e9f3;
}

.report-bar {
  background: linear-gradient(180deg, #9c8ae9, #6077e3);
  box-shadow: 0 4px 10px rgba(93, 111, 213, .18);
  transition: filter .2s ease, transform .2s ease;
}

.report-bar:hover {
  transform: translateY(-4px);
  filter: saturate(1.25);
}

.report-legend {
  color: #77839b;
}

.empty-state {
  color: #8490a7;
}

.empty-state strong {
  color: #3b4867;
}

.demo-footer {
  padding: 20px 2px 4px;
  color: #929cb0;
  font-family: "CREACOM Mono", monospace;
  font-size: 7px;
  letter-spacing: .025em;
}

.toast {
  border: 1px solid rgba(255, 255, 255, .13);
  background: linear-gradient(120deg, #26355c, #35335e);
  box-shadow: 0 13px 35px rgba(25, 34, 69, .25);
}

.demo-modal {
  border-color: #e2e7f2;
  box-shadow: 0 30px 90px rgba(22, 32, 68, .28);
}

.demo-modal h2 {
  color: #283654;
  font-family: "CREACOM Space", "Manrope", sans-serif;
}

.notification-trigger:focus-visible,
.mark-read-button:focus-visible,
.notification-item:focus-visible,
.side-link:focus-visible,
.primary-btn:focus-visible {
  outline: 3px solid rgba(103, 126, 234, .32);
  outline-offset: 2px;
}

@keyframes notification-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 850px) {
  .app-layout[data-demo-content] {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .sidebar {
    align-items: center;
    padding-right: 8px;
    padding-left: 8px;
  }

  .sidebar-brand {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
  }

  .sidebar-brand-copy,
  .workspace-copy,
  .workspace-chevron,
  .side-label,
  .side-text,
  .sidebar-health,
  .side-foot,
  .nav-shortcut {
    display: none;
  }

  .workspace-card {
    justify-content: center;
    width: 100%;
    padding: 8px 4px;
  }

  .sidebar-nav {
    width: 100%;
  }

  .side-link {
    justify-content: center;
    padding: 0;
  }

  .nav-icon {
    width: 34px;
    height: 34px;
  }

  .nav-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 17px;
    padding: 2px 3px;
    border-radius: 6px;
    font-size: 7px;
  }

  .side-label-admin {
    display: none;
  }

  .reset-link {
    justify-content: center;
  }

  .main-area {
    padding-right: 22px;
    padding-left: 22px;
  }

  .app-topbar {
    margin-right: -22px;
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .9fr);
  }
}

@media (max-width: 760px) {
  .sync-state,
  .topbar-divider,
  .user-copy,
  .user-chevron {
    display: none;
  }

  .user-chip {
    padding: 0;
  }

  .page-head {
    align-items: flex-start;
  }

  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .period-chip {
    display: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .panel-team {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr);
    column-gap: 18px;
  }

  .panel-team .panel-head {
    grid-column: 1 / -1;
  }

  .panel-team .insight {
    align-self: stretch;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .app-layout[data-demo-content] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    margin-bottom: calc(var(--demo-bottom-height) + 12px);
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    min-width: 0;
    flex-direction: row;
    justify-content: space-between;
    gap: 7px;
    padding: 7px 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(207, 220, 255, .1);
  }

  .sidebar::after,
  .sidebar-brand,
  .workspace-card,
  .sidebar-spacer,
  .sidebar-health,
  .side-label-admin,
  .side-foot {
    display: none;
  }

  .side-label {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .side-link {
    display: inline-flex;
    width: auto;
    min-height: 38px;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 8px;
    white-space: nowrap;
  }

  .nav-icon {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }

  .side-link .side-text {
    display: inline;
    font-size: 8px;
  }

  .nav-count {
    position: static;
    min-width: 17px;
    padding: 2px 4px;
  }

  .reset-link {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 7px;
  }

  .reset-link .side-text {
    display: none;
  }

  .main-area {
    padding: 0 13px 18px;
  }

  .app-topbar {
    height: 59px;
    margin: 0 -13px 21px;
    padding: 0 13px;
  }

  .app-breadcrumb {
    gap: 7px;
  }

  .breadcrumb-workspace {
    font-size: 7px;
  }

  .app-breadcrumb strong {
    font-size: 9px;
  }

  .app-topbar-tools {
    gap: 9px;
  }

  .notifications-popover {
    position: fixed;
    top: 68px;
    right: 12px;
  }

  .page-head {
    gap: 13px;
    margin-bottom: 17px;
  }

  .page-head h1 {
    font-size: 25px;
  }

  .page-head p {
    max-width: 36rem;
    font-size: 10px;
  }

  .heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .heading-actions .primary-btn {
    width: 100%;
  }

  .stats-grid {
    gap: 8px;
    margin-bottom: 11px;
  }

  .stat-card {
    padding: 11px 10px;
    border-radius: 12px;
  }

  .stat-card-head > span:first-child {
    font-size: 8px;
  }

  .stat-card-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .stat-card strong {
    margin: 6px 0;
    font-size: 21px;
  }

  .stat-card-foot small {
    font-size: 7px;
  }

  .stat-note {
    display: none;
  }

  .content-grid {
    gap: 10px;
  }

  .panel {
    padding: 13px 11px;
    border-radius: 13px;
  }

  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .panel-title-line {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .panel h2,
  .panel-head h2 {
    font-size: 11px;
  }

  .search-wrap {
    width: 100%;
  }

  .toolbar {
    width: 100%;
  }

  .sale-row {
    padding-right: 3px;
    padding-left: 3px;
  }

  .sale-meta {
    max-width: 215px;
    line-height: 1.4;
  }

  .sale-amount {
    font-size: 9px;
  }

  .panel-team {
    display: block;
  }

  .panel-team .insight {
    margin-top: 11px;
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .pipeline-col h3 {
    grid-column: 1 / -1;
  }

  .pipeline-item {
    min-width: 0;
    margin: 0;
  }

  .demo-footer {
    gap: 7px;
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .side-link,
  .notification-trigger,
  .stat-card,
  .stat-card::before,
  .sale-row,
  .pipeline-item,
  .primary-btn,
  .notification-item {
    transition: none;
  }

  .notifications-popover {
    animation: none;
  }
}

.sidebar-brand-copy small {
  font-size: 9px;
}

.workspace-copy strong {
  font-size: 12px;
}

.workspace-copy small,
.sidebar-health small {
  font-size: 10px;
}

.side-label {
  font-size: 9px;
}

.side-text {
  font-size: 12px;
}

.nav-shortcut,
.side-foot {
  font-size: 9px;
}

.nav-count {
  font-size: 10px;
}

.sidebar-health strong {
  font-size: 10px;
}

.app-breadcrumb {
  font-size: 12px;
}

.breadcrumb-workspace {
  font-size: 10px;
}

.app-breadcrumb strong {
  font-size: 12px;
}

.sync-state {
  font-size: 11px;
}

.notifications-heading strong {
  font-size: 14px;
}

.notifications-heading span,
.mark-read-button {
  font-size: 10px;
}

.notification-copy strong {
  font-size: 12px;
}

.notification-copy span {
  font-size: 10px;
}

.notification-copy small,
.notification-footer {
  font-size: 9px;
}

.user-copy strong {
  font-size: 11px;
}

.user-copy small {
  font-size: 9px;
}

.eyebrow {
  font-size: 9px;
}

.page-head h1 {
  font-size: clamp(28px, 2.4vw, 38px);
}

.page-head p {
  font-size: 14px;
}

.period-chip {
  font-size: 11px;
}

.primary-btn {
  font-size: 12px;
}

.stat-card-head > span:first-child {
  font-size: 11px;
}

.stat-card strong {
  font-size: clamp(24px, 2.1vw, 32px);
}

.stat-card-foot small {
  font-size: 10px;
}

.stat-note {
  font-size: 8px;
}

.panel h2,
.panel-head h2 {
  font-size: 14px;
}

.panel-record-count {
  font-size: 8px;
}

.panel-sub {
  font-size: 11px;
}

.toolbar .search-input {
  font-size: 11px;
}

.sale-row {
  padding-top: 14px;
  padding-bottom: 14px;
}

.sale-name {
  font-size: 12px;
}

.sale-meta {
  font-size: 10px;
}

.sale-amount {
  font-size: 12px;
}

.sale-amount small {
  font-size: 9px;
}

.badge {
  font-size: 9px;
}

.live-badge {
  font-size: 8px;
}

.advisor-row {
  padding-top: 11px;
  padding-bottom: 11px;
}

.advisor-details b {
  font-size: 11px;
}

.advisor-details small {
  font-size: 9px;
}

.advisor-row > small {
  color: #5c6983;
  font-size: 11px;
}

.insight b {
  font-size: 11px;
}

.insight p {
  font-size: 10px;
}

.pipeline-col h3 {
  font-size: 9px;
}

.pipeline-item b {
  font-size: 11px;
}

.pipeline-item span {
  font-size: 10px;
}

.pipeline-item p {
  font-size: 12px;
}

.pipeline-item select {
  font-size: 10px;
}

.demo-footer {
  font-size: 8px;
}

body[data-demo="crm"] .demo-top .sound-btn,
body[data-demo="crm"] .demo-top .back-btn,
body[data-demo="crm"] .demo-top .timer-pill {
  font-size: 12px;
}

body[data-demo="crm"] .demo-top .timer-pill strong {
  font-size: 14px;
}

@media (max-width: 560px) {
  .side-link .side-text {
    font-size: 10px;
  }

  .page-head h1 {
    font-size: 28px;
  }

  .page-head p {
    font-size: 12px;
  }

  .panel h2,
  .panel-head h2 {
    font-size: 13px;
  }

  .sale-name {
    font-size: 11px;
  }

  .sale-meta {
    font-size: 9px;
  }

  .demo-footer {
    font-size: 8px;
  }
}

@media (min-width: 851px) and (max-width: 1100px) {
  .stat-card strong {
    font-size: 22px;
  }
}
