:root {
  --ink: #11182c;
  --muted: #6d7485;
  --line: #dfe3eb;
  --blue: #087bff;
  --blue-dark: #0068df;
  --navy: #101728;
  --paper: #f7f8fb;
  --white: #ffffff;
  --danger: #c62f46;
  --shadow: 0 24px 70px rgba(17, 24, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(520px, 1.1fr);
  min-height: 100vh;
}

.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 52px clamp(42px, 6vw, 92px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 14% 84%, rgba(8, 123, 255, 0.34), transparent 29%),
    linear-gradient(145deg, #11192d 0%, #0c1221 68%, #080d18 100%);
}

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

.login-intro::before {
  width: 430px;
  height: 430px;
  right: -260px;
  top: 20%;
}

.login-intro::after {
  width: 580px;
  height: 580px;
  right: -335px;
  top: 10%;
}

.brand,
.intro-copy,
.intro-footer {
  position: relative;
  z-index: 1;
}

.brand img {
  display: block;
  width: 174px;
  height: auto;
}

.intro-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  color: #72b6ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow.dark {
  margin-bottom: 16px;
  color: var(--blue);
}

.intro-copy h1 {
  max-width: 570px;
  margin: 0 0 26px;
  font-size: clamp(2.5rem, 4.2vw, 4.9rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro-copy p {
  max-width: 510px;
  margin: 0;
  color: #b5bdcc;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.intro-footer {
  margin: 0;
  color: #758096;
  font-size: 0.84rem;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  background:
    linear-gradient(rgba(17, 24, 44, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 44, 0.025) 1px, transparent 1px),
    #f8f9fb;
  background-size: 32px 32px;
}

.login-card {
  width: min(100%, 440px);
  padding: 48px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.mobile-brand {
  display: none;
}

.login-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19b36b;
  box-shadow: 0 0 0 5px rgba(25, 179, 107, 0.11);
}

.login-card h2 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: -0.045em;
}

.login-subtitle {
  margin: 9px 0 34px;
  color: var(--muted);
  line-height: 1.55;
}

.field {
  margin-bottom: 21px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.83rem;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

.input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #8a91a0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 54px;
  padding: 0 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrap input::placeholder {
  color: #a5abba;
}

.input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 123, 255, 0.1);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #777f90;
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: #f2f4f8;
}

.password-toggle svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.form-message {
  min-height: 21px;
  margin: -3px 0 12px;
  color: var(--danger);
  font-size: 0.82rem;
  line-height: 1.4;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(8, 123, 255, 0.24);
  font-weight: 750;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.primary-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 24px 0 0;
  color: #8a91a0;
  font-size: 0.74rem;
}

.security-note svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.dashboard-header > img {
  width: 145px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: right;
}

.user-menu strong,
.user-label {
  display: block;
}

.user-label {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secondary-button {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  font-weight: 700;
}

.dashboard-shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
}

.dashboard-shell > h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.dashboard-shell > p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.empty-state {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 68px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.empty-state > span {
  display: grid;
  flex: 0 0 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state h2 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.empty-state p {
  color: var(--muted);
}

@media (max-width: 850px) {
  .login-layout {
    display: block;
  }

  .login-intro {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 28px 20px;
  }

  .login-card {
    padding: 36px 28px;
  }

  .mobile-brand {
    display: block;
    margin-bottom: 42px;
  }

  .mobile-brand img {
    width: 146px;
  }
}

@media (max-width: 560px) {
  .dashboard-header {
    align-items: flex-start;
  }

  .dashboard-header > img {
    width: 118px;
  }

  .user-menu {
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-shell {
    width: min(100% - 32px, 1100px);
    padding: 70px 0;
  }

  .empty-state {
    align-items: flex-start;
  }
}

/* Hanna command center */
.dashboard-page {
  background:
    radial-gradient(circle at 80% 5%, rgba(8, 123, 255, 0.08), transparent 26%),
    #f5f7fa;
}

.dashboard-page button,
.dashboard-page a {
  -webkit-tap-highlight-color: transparent;
}

.command-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 112px;
  row-gap: 10px;
  padding: 14px clamp(22px, 4vw, 64px) 0;
  border-bottom: 1px solid rgba(17, 24, 44, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 30px rgba(17, 24, 44, 0.035);
  backdrop-filter: blur(20px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-brand a {
  display: flex;
  align-items: center;
}

.header-brand img {
  width: 126px;
  height: auto;
}

.product-name {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: #838a99;
  font-size: 0.86rem;
  font-weight: 700;
}

.primary-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  height: 42px;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a,
.primary-nav button {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 0;
  color: #747c8d;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav button:hover,
.primary-nav .is-active {
  color: var(--ink);
}

.primary-nav .is-active::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  border-radius: 3px 3px 0 0;
  content: "";
  background: var(--blue);
}

.header-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 9px;
}

.command-search {
  display: flex;
  align-items: center;
  width: 190px;
  height: 40px;
  gap: 9px;
  padding: 0 9px 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #8b92a1;
  background: #f7f8fa;
  text-align: left;
}

.command-search svg,
.icon-button svg,
.quick-create svg,
.profile-trigger > svg,
.launcher-cta svg,
.overview-card svg,
.module-launcher svg,
.command-palette svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.command-search svg {
  width: 17px;
}

.command-search span {
  flex: 1;
  font-size: 0.82rem;
}

kbd {
  padding: 3px 6px;
  border: 1px solid #d9dde5;
  border-bottom-width: 2px;
  border-radius: 6px;
  color: #8a91a0;
  background: var(--white);
  font-family: inherit;
  font-size: 0.64rem;
  font-weight: 700;
}

.quick-create {
  display: flex;
  align-items: center;
  height: 40px;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 7px 16px rgba(17, 24, 44, 0.14);
  font-size: 0.82rem;
  font-weight: 750;
}

.quick-create svg {
  width: 17px;
  stroke-width: 2;
}

.icon-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #5f6778;
  background: var(--white);
}

.icon-button:hover,
.command-search:hover {
  border-color: #cbd1dc;
  color: var(--ink);
}

.icon-button svg {
  width: 18px;
}

.notification-button > span {
  position: absolute;
  top: 5px;
  right: 4px;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 9px;
  color: var(--white);
  background: var(--blue);
  box-sizing: border-box;
  font-size: 0.55rem;
  font-weight: 850;
}

.profile-trigger {
  display: flex;
  align-items: center;
  min-width: 172px;
  height: 48px;
  gap: 10px;
  padding: 4px 9px 4px 5px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
  background: #f1f3f7;
}

.profile-avatar {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(8, 123, 255, 0.18);
  border-radius: 12px;
  color: #086de0;
  background: linear-gradient(145deg, #eef6ff, #dcecff);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.profile-avatar.large {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 0.84rem;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-copy strong,
.profile-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 0.78rem;
}

.profile-copy small {
  margin-top: 3px;
  color: #8a91a0;
  font-size: 0.66rem;
  text-transform: capitalize;
}

.profile-trigger > svg {
  width: 15px;
  color: #9aa1af;
}

.profile-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: clamp(22px, 4vw, 64px);
  z-index: 60;
  width: 290px;
  padding: 10px;
  border: 1px solid rgba(17, 24, 44, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(17, 24, 44, 0.16);
}

.notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: clamp(210px, 17vw, 270px);
  z-index: 60;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(17, 24, 44, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 60px rgba(17, 24, 44, 0.16);
}

.notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid #edf0f4;
}

.notification-popover-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.notification-popover-head > span {
  display: grid;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: #eaf4ff;
  font-size: 0.72rem;
  font-weight: 850;
}

.notification-list {
  max-height: 390px;
  overflow-y: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid #f0f2f5;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.notification-item:hover {
  background: #f7f9fc;
}

.notification-item i {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.notification-item.payment i {
  background: #e35454;
}

.notification-item.task i,
.notification-item.followup i,
.notification-item.interaction i {
  background: #f1a33b;
}

.notification-item.quote i {
  background: #7c4bd6;
}

.notification-item.document i {
  background: #c09a1d;
}

.notification-item.automation i {
  background: #25ad68;
}

.notification-item.urgent,
.notification-item.high {
  background: #fffafa;
}

.notification-item.urgent strong,
.notification-item.high strong {
  color: #a33f4e;
}

.notification-item strong,
.notification-item span {
  display: block;
}

.notification-item strong {
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.notification-item span,
.notification-item time {
  color: var(--muted);
  font-size: 0.66rem;
}

.notification-empty {
  padding: 30px 20px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.profile-popover-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.profile-popover-head strong,
.profile-popover-head span {
  display: block;
}

.profile-popover-head strong {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.profile-popover-head span {
  color: var(--muted);
  font-size: 0.74rem;
}

.profile-popover-links {
  padding: 7px 0;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
}

.profile-popover-links button,
.logout-link {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  color: #51596a;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 650;
  text-align: left;
}

.profile-popover-links button:hover,
.logout-link:hover {
  background: #f4f6f9;
}

.logout-link {
  margin-top: 7px;
  color: var(--danger);
}

.command-dashboard {
  width: min(1240px, calc(100% - 48px));
  padding: clamp(62px, 7vw, 104px) 0 90px;
}

.dashboard-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
}

.dashboard-welcome h1 {
  margin: 0 0 15px;
  font-size: clamp(2.5rem, 5.6vw, 5.2rem);
  font-weight: 620;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.dashboard-welcome p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.launcher-cta {
  display: flex;
  align-items: center;
  flex: 0 0 330px;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 40px rgba(17, 24, 44, 0.07);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.launcher-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(17, 24, 44, 0.11);
}

.launcher-cta-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  background: var(--blue);
}

.launcher-cta-icon svg {
  width: 21px;
}

.launcher-cta > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.launcher-cta strong,
.launcher-cta small {
  display: block;
}

.launcher-cta strong {
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.launcher-cta small {
  color: var(--muted);
  font-size: 0.7rem;
}

.launcher-cta .cta-arrow {
  width: 18px;
  color: #8d94a2;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr 0.9fr;
  gap: 18px;
  margin-top: clamp(54px, 7vw, 84px);
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(44px, 6vw, 68px);
}

.home-metric-card,
.home-panel {
  border: 1px solid rgba(17, 24, 44, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(17, 24, 44, 0.04);
}

.home-metric-card {
  min-height: 168px;
  padding: 22px;
  border-radius: 19px;
}

.home-metric-card.accent {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.home-metric-card.accent .card-kicker,
.home-metric-card.accent button {
  color: #aeb8ca;
}

.home-metric-card strong {
  display: block;
  margin: 26px 0 17px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1;
}

.home-metric-card button,
.home-metric-card small {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 750;
}

.home-metric-card button:hover {
  color: var(--blue);
}

.home-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.home-primary-column,
.home-secondary-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.home-panel {
  overflow: hidden;
  border-radius: 21px;
}

.home-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px 17px;
}

.home-panel-head h2,
.quick-actions-panel h2 {
  margin: 7px 0 0;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.home-panel-head > button,
.home-panel-footer {
  padding: 7px 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 800;
}

.home-panel-head > strong {
  color: #d34444;
  font-size: 1rem;
}

.home-list,
.home-activity-list {
  border-top: 1px solid #edf0f4;
}

.home-list-item,
.home-activity-item {
  display: grid;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 69px;
  padding: 13px 24px;
  border: 0;
  border-bottom: 1px solid #f0f2f5;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.home-list-item:hover,
.home-activity-item:hover {
  background: #f7faff;
}

.home-list-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-list-item:last-child,
.home-activity-item:last-child {
  border-bottom: 0;
}

.home-list-item strong,
.home-list-item span,
.home-activity-item strong,
.home-activity-item span {
  display: block;
}

.home-list-item strong,
.home-activity-item strong {
  margin-bottom: 5px;
  font-size: 0.78rem;
}

.home-list-item span,
.home-activity-item span,
.home-list-item time,
.home-activity-item time {
  color: var(--muted);
  font-size: 0.66rem;
}

.home-list-meta {
  text-align: right;
}

.home-list-meta b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.72rem;
}

.home-list-meta time.is-overdue {
  color: #d34444;
  font-weight: 800;
}

.home-activity-item {
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.home-activity-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(8, 123, 255, 0.08);
}

.home-activity-item.payment i {
  background: #25ad68;
  box-shadow: 0 0 0 5px rgba(37, 173, 104, 0.08);
}

.home-empty {
  padding: 28px 24px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.attention-panel {
  border-color: rgba(211, 68, 68, 0.14);
}

.home-panel-footer {
  width: 100%;
  padding: 15px 24px;
  border-top: 1px solid #edf0f4;
  text-align: left;
}

.quick-actions-panel {
  padding: 23px 24px 24px;
}

.home-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 19px;
}

.home-action-grid button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 11px;
  border: 1px solid #e7eaf0;
  border-radius: 13px;
  color: var(--ink);
  background: #fafbfc;
  font-size: 0.67rem;
  font-weight: 750;
  text-align: left;
}

.home-action-grid button:hover {
  border-color: #cbdcf2;
  color: var(--blue);
  background: #f5f9ff;
}

.home-action-grid button > span {
  display: grid;
  flex: 0 0 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  color: var(--blue);
  background: #eaf4ff;
  font-size: 0.7rem;
  font-weight: 900;
}

.overview-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 36px rgba(17, 24, 44, 0.04);
}

.overview-card.featured::after {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(8, 123, 255, 0.12), transparent 68%);
}

.overview-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 14px;
}

.overview-icon.blue {
  color: var(--blue);
  background: #eaf4ff;
}

.overview-icon svg {
  width: 23px;
}

.card-kicker {
  display: block;
  color: #969dab;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.overview-card h2 {
  margin: 9px 0 9px;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.overview-card p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 0.79rem;
  font-weight: 800;
}

.card-link svg {
  width: 15px;
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-card > strong {
  margin: auto 0 4px;
  font-size: 4.3rem;
  font-weight: 560;
  letter-spacing: -0.08em;
  line-height: 1;
}

.metric-card .metric-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
  color: #4d7c65;
  font-size: 0.7rem;
  font-weight: 700;
}

.metric-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25ad68;
  box-shadow: 0 0 0 5px rgba(37, 173, 104, 0.1);
}

.shortcuts-card {
  display: flex;
  flex-direction: column;
}

.shortcuts-card .card-kicker {
  margin-bottom: 26px;
}

.shortcuts-card button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #e9ecf1;
  color: var(--ink);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 720;
  text-align: left;
}

.shortcuts-card button:hover {
  color: var(--blue);
}

.shortcuts-card button svg {
  width: 16px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 13, 24, 0.48);
  backdrop-filter: blur(8px);
}

.overlay[hidden],
.profile-popover[hidden],
.notification-popover[hidden],
.notification-button > span[hidden],
.toast[hidden],
.launcher-empty[hidden] {
  display: none;
}

.module-launcher {
  width: min(880px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  padding: 32px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: #f9fafc;
  box-shadow: 0 35px 100px rgba(5, 10, 20, 0.28);
}

.launcher-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.launcher-header h2 {
  margin: 7px 0 0;
  font-size: 2rem;
  letter-spacing: -0.045em;
}

.close-button {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid #cfd8e6;
  border-radius: 11px;
  color: #344054;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 44, 0.08);
  cursor: pointer;
}

.close-button:hover {
  border-color: #b9c7da;
  color: var(--ink);
  background: #f6f8fb;
}

.close-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.launcher-search {
  position: relative;
  display: block;
  margin: 28px 0 20px;
}

.launcher-search svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 18px;
  color: #9299a7;
  transform: translateY(-50%);
}

.launcher-search input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: var(--white);
}

.launcher-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 123, 255, 0.08);
}

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

.module-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100px;
  gap: 15px;
  padding: 17px;
  border: 1px solid #e2e6ed;
  border-radius: 17px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: #b9d8fb;
  box-shadow: 0 12px 28px rgba(17, 24, 44, 0.08);
  transform: translateY(-2px);
}

.module-card[hidden] {
  display: none;
}

.module-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
}

.module-icon svg {
  width: 23px;
}

.module-icon.users { color: #087bff; background: #eaf4ff; }
.module-icon.leads { color: #8055d8; background: #f2edff; }
.module-icon.sales { color: #db763d; background: #fff1e9; }
.module-icon.clients { color: #229276; background: #e9f8f3; }
.module-icon.finance { color: #1684a0; background: #e8f7fb; }
.module-icon.files { color: #c09a1d; background: #fff8df; }
.module-icon.settings { color: #6c7484; background: #eff1f5; }

.module-card > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.module-card strong,
.module-card small {
  display: block;
}

.module-card strong {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.module-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

.module-card em {
  position: absolute;
  top: 11px;
  right: 11px;
  padding: 4px 7px;
  border-radius: 20px;
  color: #08704c;
  background: #e8f8f1;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.launcher-empty {
  padding: 38px 0 20px;
  color: var(--muted);
  text-align: center;
}

.command-overlay {
  align-items: start;
  padding-top: min(18vh, 160px);
}

.command-palette {
  width: min(650px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(5, 10, 20, 0.3);
}

.command-input {
  position: relative;
  display: flex;
  align-items: center;
  height: 66px;
  padding: 0 18px;
  border-bottom: 1px solid #e8ebf0;
}

.command-input svg {
  width: 21px;
  color: #7e8695;
}

.command-input input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 14px;
  border: 0;
  outline: none;
  color: var(--ink);
  font-size: 1rem;
}

.command-results {
  max-height: min(58vh, 520px);
  padding: 14px;
  overflow-y: auto;
}

.command-group-label {
  display: block;
  padding: 5px 9px 9px;
  color: #979eab;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.command-results button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 11px;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.command-results button:hover,
.command-results button:focus-visible {
  background: #f3f6fa;
}

.command-result-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: #eaf4ff;
  font-size: 1.2rem;
}

.command-result-icon.grid {
  color: #7251bd;
  background: #f1edfb;
  font-size: 0.9rem;
  font-weight: 850;
}

.command-results button > span:nth-child(2) {
  flex: 1;
}

.command-results strong,
.command-results small {
  display: block;
}

.command-results strong {
  margin-bottom: 3px;
  font-size: 0.82rem;
}

.command-results small {
  color: var(--muted);
  font-size: 0.68rem;
}

.command-empty {
  padding: 22px 10px 18px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  max-width: 360px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 18px 50px rgba(17, 24, 44, 0.22);
  font-size: 0.8rem;
  font-weight: 650;
}

body.has-overlay {
  overflow: hidden;
}

.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;
}

.users-module[hidden] {
  display: none;
}

.prospects-module[hidden] {
  display: none;
}

.clients-module[hidden],
.client-detail[hidden],
.clients-directory[hidden] {
  display: none;
}

.finance-module[hidden],
.tasks-module[hidden],
.quotes-module[hidden],
.settings-module[hidden],
.reports-module[hidden],
.documents-module[hidden],
.automations-module[hidden] {
  display: none;
}

.interactions-module[hidden] {
  display: none;
}

.module-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 750;
}

.back-button:hover {
  color: var(--ink);
}

.back-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.module-page-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.module-page-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.new-user-button,
.save-user-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(8, 123, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 800;
}

.new-user-button:hover,
.save-user-button:hover:not(:disabled) {
  background: var(--blue-dark);
}

.new-user-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.users-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 46px 0 18px;
}

.users-summary article {
  padding: 20px 22px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(17, 24, 44, 0.035);
}

.users-summary span,
.users-summary strong {
  display: block;
}

.users-summary span {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.users-summary strong {
  font-size: 1.9rem;
  letter-spacing: -0.05em;
}

.users-panel {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 45px rgba(17, 24, 44, 0.045);
}

.users-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 170px;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid #e9ecf1;
}

.users-search {
  position: relative;
}

.users-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  fill: none;
  stroke: #8c93a2;
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.users-search input,
.users-toolbar select {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  font-size: 0.78rem;
}

.users-search input {
  padding: 0 14px 0 42px;
}

.users-toolbar select {
  padding: 0 34px 0 12px;
}

.users-search input:focus,
.users-toolbar select:focus,
.form-control input:focus,
.form-control select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 123, 255, 0.08);
}

.users-table-wrap {
  position: relative;
  min-height: 230px;
  overflow-x: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 790px;
}

.users-table th,
.users-table td {
  padding: 17px 18px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
}

.users-table th {
  color: #9299a7;
  background: #fbfcfd;
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.users-table tbody tr:last-child td {
  border-bottom: 0;
}

.users-table tbody tr:hover {
  background: #fbfcfe;
}

.table-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-avatar {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #086de0;
  background: #eaf4ff;
  font-size: 0.68rem;
  font-weight: 850;
}

.table-user strong,
.table-user span {
  display: block;
}

.table-user strong {
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.table-user span {
  color: var(--muted);
  font-size: 0.7rem;
}

.role-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 20px;
  font-size: 0.64rem;
  font-weight: 800;
}

.role-badge.superadmin {
  color: #6441ad;
  background: #f0ebfb;
}

.role-badge.admin {
  color: #176d9f;
  background: #e8f4fb;
}

.role-badge.user {
  color: #626b7a;
  background: #eef0f4;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
}

.status-badge.active {
  color: #227653;
  background: #e9f7f0;
}

.status-badge.active::before {
  background: #29a86c;
}

.status-badge.inactive {
  color: #8b5960;
  background: #f8ecee;
}

.status-badge.inactive::before {
  background: #c86b78;
}

.last-access {
  color: #626a7a;
  font-size: 0.72rem;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.row-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #687182;
  background: var(--white);
}

.row-action:hover {
  border-color: #bfd8f4;
  color: var(--blue);
}

.row-action.danger:hover {
  border-color: #efc5ca;
  color: var(--danger);
}

.row-action:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.row-action svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.users-loading,
.users-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.users-loading[hidden],
.users-empty[hidden] {
  display: none;
}

.users-empty {
  align-content: center;
  gap: 7px;
}

.users-empty strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.user-form-modal {
  width: min(610px, 100%);
  max-height: calc(100vh - 48px);
  padding: 30px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #fbfcfd;
  box-shadow: 0 35px 100px rgba(5, 10, 20, 0.28);
}

.module-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ghost-action-button {
  height: 44px;
  padding: 0 18px;
  border: 1px solid #dce3ee;
  border-radius: 13px;
  color: #11182c;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 35px rgba(10, 21, 45, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ghost-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 123, 255, 0.35);
  box-shadow: 0 18px 45px rgba(8, 123, 255, 0.12);
}

.user-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.user-form-header h2 {
  margin: 7px 0 7px;
  font-size: 1.8rem;
  letter-spacing: -0.045em;
}

.user-form-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.user-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.form-control.full {
  grid-column: 1 / -1;
}

.form-control > span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 750;
}

.form-control input,
.form-control select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  font-size: 0.8rem;
}

.password-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.user-form-error {
  min-height: 20px;
  margin: 16px 0 4px;
  color: var(--danger);
  font-size: 0.76rem;
}

.import-help-card,
.import-result {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #e4e9f2;
  border-radius: 15px;
  background: #f6f9fd;
  color: #5d6678;
  font-size: 0.74rem;
  line-height: 1.55;
}

.import-help-card strong,
.import-result strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 0.78rem;
}

.import-help-card p,
.import-result p {
  margin: 0 0 6px;
}

.import-help-card small {
  color: #7c8798;
}

.download-template-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid rgba(8, 123, 255, 0.24);
  border-radius: 11px;
  color: var(--blue);
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(8, 123, 255, 0.08);
}

.download-template-button:hover {
  border-color: rgba(8, 123, 255, 0.45);
  background: #f0f7ff;
}

.import-result ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.user-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #e8ebf0;
}

.cancel-button {
  height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #5f6878;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 750;
}

.save-user-button {
  height: 44px;
}

.save-user-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.pipeline-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 46px 0 18px;
}

.pipeline-summary article {
  padding: 20px 22px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 30px rgba(17, 24, 44, 0.035);
}

.pipeline-summary span,
.pipeline-summary strong {
  display: block;
}

.pipeline-summary span {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.pipeline-summary strong {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: -0.05em;
}

.pipeline-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 190px 210px;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.pipeline-toolbar select {
  width: 100%;
  height: 43px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  font-size: 0.78rem;
}

.pipeline-toolbar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 123, 255, 0.08);
}

.kanban-wrap {
  position: relative;
  min-height: 470px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(280px, 1fr));
  gap: 13px;
  padding-bottom: 18px;
  overflow-x: auto;
  cursor: grab;
  overscroll-behavior-x: contain;
  scrollbar-color: #b8c0cc transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  touch-action: pan-y;
}

.kanban-board.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.kanban-board::-webkit-scrollbar {
  height: 9px;
}

.kanban-board::-webkit-scrollbar-track {
  border-radius: 10px;
  background: transparent;
}

.kanban-board::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  background: #b8c0cc;
  background-clip: padding-box;
}

.kanban-column {
  min-height: 470px;
  padding: 12px;
  border: 1px solid rgba(17, 24, 44, 0.075);
  border-radius: 18px;
  background: rgba(238, 241, 246, 0.72);
  scroll-snap-align: start;
}

.kanban-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 5px 14px;
}

.kanban-column > header span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #545d6e;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kanban-column > header i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b94a5;
}

.kanban-column > header strong {
  display: grid;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  place-items: center;
  border-radius: 8px;
  color: #71798a;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
}

.stage-new > header i { background: #7c8798; }
.stage-contacted > header i { background: #1689c9; }
.stage-proposal > header i { background: #8055d8; }
.stage-negotiation > header i { background: #dd8737; }
.stage-won > header i { background: #29a66d; }
.stage-lost > header i { background: #c76a78; }

.kanban-cards {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 400px;
}

.prospect-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 7px 20px rgba(17, 24, 44, 0.045);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.prospect-card:hover {
  border-color: #c5d8ed;
  box-shadow: 0 12px 28px rgba(17, 24, 44, 0.09);
  transform: translateY(-2px);
}

.prospect-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prospect-card h3 {
  margin: 0 0 5px;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.prospect-company {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.prospect-card-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.prospect-edit-button {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #e2e6ec;
  border-radius: 9px;
  color: #778091;
  background: #fafbfc;
}

.prospect-edit-button:hover {
  color: var(--blue);
  border-color: #c7dcf4;
}

.prospect-edit-button.danger:hover {
  color: var(--danger);
  border-color: #efc5ca;
  background: #fff7f8;
}

.prospect-edit-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.prospect-value {
  display: block;
  margin: 18px 0 12px;
  font-size: 1.25rem;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.prospect-probability {
  margin-bottom: 14px;
}

.prospect-probability-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #818999;
  font-size: 0.61rem;
  font-weight: 750;
}

.prospect-probability-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf0f4;
}

.prospect-probability-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.prospect-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #edf0f4;
}

.prospect-owner {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: #687182;
  font-size: 0.64rem;
}

.prospect-owner-avatar {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  color: #086de0;
  background: #eaf4ff;
  font-size: 0.53rem;
  font-weight: 850;
}

.prospect-owner span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follow-up {
  color: #7c8493;
  font-size: 0.59rem;
  white-space: nowrap;
}

.follow-up.overdue {
  color: var(--danger);
  font-weight: 800;
}

.stage-select {
  width: 100%;
  height: 34px;
  margin-top: 12px;
  padding: 0 9px;
  border: 1px solid #e1e5eb;
  border-radius: 9px;
  outline: none;
  color: #626b7b;
  background: #fafbfc;
  font-size: 0.66rem;
  font-weight: 700;
}

.stage-select:focus {
  border-color: var(--blue);
}

.pipeline-loading,
.pipeline-empty {
  display: grid;
  min-height: 390px;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.pipeline-loading[hidden],
.pipeline-empty[hidden] {
  display: none;
}

.pipeline-empty {
  align-content: center;
  gap: 8px;
  border: 1px dashed #ced4de;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.pipeline-empty strong {
  color: var(--ink);
  font-size: 1rem;
}

.pipeline-empty button {
  margin-top: 10px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
}

.prospect-form-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  padding: 30px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #fbfcfd;
  box-shadow: 0 35px 100px rgba(5, 10, 20, 0.28);
}

.prospect-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.form-control textarea {
  width: 100%;
  min-height: 105px;
  padding: 12px 13px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-control textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 123, 255, 0.08);
}

.probability-control {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.probability-control input {
  min-width: 0;
  height: auto;
  flex: 1;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--blue);
}

.probability-control output {
  min-width: 38px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 850;
  text-align: right;
}

.prospect-history {
  margin: 4px 0 20px;
  padding: 16px;
  border: 1px solid #e4e8ee;
  border-radius: 14px;
  background: #f7f9fb;
}

.prospect-history[hidden] {
  display: none;
}

.prospect-history-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #626b7b;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prospect-history-title strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #e8f3ff;
  font-size: 0.65rem;
}

.prospect-history-list {
  display: grid;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
}

.history-item {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: start;
  gap: 10px;
  color: #616a7a;
  font-size: 0.69rem;
  line-height: 1.45;
}

.history-item > i {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.history-item strong,
.history-item span {
  display: block;
}

.history-item strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.71rem;
}

.history-item time {
  color: #959ca9;
  font-size: 0.61rem;
  white-space: nowrap;
}

.clients-toolbar {
  grid-template-columns: minmax(280px, 1fr) 220px;
}

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

.client-card {
  padding: 21px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 19px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 11px 32px rgba(17, 24, 44, 0.04);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.client-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 38px rgba(17, 24, 44, 0.09);
}

.client-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-card-avatar,
.client-hero-avatar {
  display: grid;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 14px;
  color: #168067;
  background: #e7f7f1;
  font-size: 0.7rem;
  font-weight: 850;
}

.client-card h3,
.client-card p {
  margin: 0;
}

.client-card h3 {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.client-card p {
  color: var(--muted);
  font-size: 0.69rem;
}

.client-card-value {
  display: block;
  margin: 24px 0 4px;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.client-card-value-label {
  color: var(--muted);
  font-size: 0.64rem;
}

.client-card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
  color: #727b8b;
  font-size: 0.65rem;
}

.client-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 25px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.88);
}

.client-hero-avatar {
  flex-basis: 62px;
  width: 62px;
  height: 62px;
  border-radius: 17px;
  font-size: 0.9rem;
}

.client-hero h1 {
  margin: 5px 0 5px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.client-hero p {
  margin: 0;
  color: var(--muted);
}

.client-hero-value {
  margin-left: auto;
  text-align: right;
}

.client-hero-value span,
.client-hero-value strong {
  display: block;
}

.client-hero-value span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.68rem;
}

.client-hero-value strong {
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.danger-inline-button {
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid #f0c7cd;
  border-radius: 10px;
  color: var(--danger);
  background: #fff7f8;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.danger-inline-button:hover {
  border-color: #e59aa6;
  background: #fff0f2;
}

.danger-inline-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.client-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 17px;
}

.client-detail-main,
.client-detail-side {
  display: grid;
  align-content: start;
  gap: 17px;
}

.client-panel {
  padding: 22px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.9);
}

.client-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.client-panel h2 {
  margin: 6px 0 0;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.panel-add-button {
  padding: 9px 12px;
  border: 1px solid #cddff3;
  border-radius: 9px;
  color: var(--blue);
  background: #f4f9ff;
  font-size: 0.68rem;
  font-weight: 800;
}

.file-upload-button input {
  display: none;
}

.services-list,
.client-files-list,
.client-notes-list,
.client-activity-list {
  display: grid;
  gap: 10px;
}

.service-item,
.client-file-item,
.client-note-item,
.client-activity-item {
  padding: 13px;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  background: #fafbfc;
}

.service-item-head,
.client-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-item strong,
.service-item span,
.client-file-item strong,
.client-file-item span {
  display: block;
}

.service-item strong,
.client-file-item strong {
  margin-bottom: 4px;
  font-size: 0.76rem;
}

.service-item span,
.client-file-item span,
.client-note-item,
.client-activity-item {
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.5;
}

.service-value {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

.service-status {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 7px;
  border-radius: 12px;
  color: #277657;
  background: #e8f7ef;
  font-size: 0.58rem;
  font-weight: 800;
}

.client-file-item a {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.client-section-empty {
  padding: 25px 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.client-section-empty[hidden] {
  display: none;
}

.client-contact-panel .form-control {
  display: block;
  margin-bottom: 13px;
}

.client-save-button {
  width: 100%;
}

.client-note-form textarea {
  width: 100%;
  padding: 11px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  font: inherit;
  font-size: 0.75rem;
}

.client-note-form button {
  width: 100%;
  margin: 8px 0 15px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
}

.client-note-item strong,
.client-note-item time,
.client-activity-item strong,
.client-activity-item time {
  display: block;
}

.client-note-item strong,
.client-activity-item strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.69rem;
}

.client-note-item time,
.client-activity-item time {
  margin-top: 5px;
  color: #9aa1ad;
  font-size: 0.58rem;
}

.finance-overdue-card strong {
  color: var(--danger);
}

.finance-chart-panel {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.88);
}

.finance-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  min-height: 190px;
  gap: 16px;
  padding-top: 15px;
}

.finance-bar-item {
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  height: 170px;
  gap: 7px;
  text-align: center;
}

.finance-bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 125px;
  border-radius: 10px;
  background: #f2f4f7;
}

.finance-bar {
  width: min(42px, 65%);
  min-height: 4px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #2b94ff, #087bff);
}

.finance-bar-item strong {
  font-size: 0.65rem;
}

.finance-bar-item span {
  color: var(--muted);
  font-size: 0.61rem;
}

.finance-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 210px 160px 155px;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.finance-toolbar select,
.finance-toolbar > input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  font-size: 0.76rem;
}

.finance-toolbar select:focus,
.finance-toolbar > input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 123, 255, 0.08);
}

.finance-table td {
  font-size: 0.72rem;
}

.finance-concept strong,
.finance-concept span {
  display: block;
}

.finance-concept strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.77rem;
}

.finance-concept span {
  color: var(--muted);
  font-size: 0.64rem;
}

.payment-status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 16px;
  font-size: 0.62rem;
  font-weight: 850;
}

.payment-status.paid { color: #207452; background: #e8f7ef; }
.payment-status.pending { color: #8a6a18; background: #fff6d9; }
.payment-status.overdue { color: #a33f4e; background: #fae9ec; }
.payment-status.cancelled { color: #68717f; background: #edf0f4; }

.payment-amount {
  font-weight: 850;
  white-space: nowrap;
}

.payment-file-link {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
}

.tasks-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 170px 190px;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.tasks-toolbar select {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  font-size: 0.76rem;
}

.tasks-toolbar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 123, 255, 0.08);
}

.tasks-board {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(17, 24, 44, 0.04);
}

.tasks-viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 12px;
}

.tasks-viewbar > button,
.tasks-view-switch button {
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #626b7c;
  background: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
}

.tasks-viewbar > button:hover,
.tasks-view-switch button:hover,
.tasks-view-switch button.is-active {
  color: var(--blue);
  border-color: #bed8f7;
  background: #f2f8ff;
}

.tasks-view-switch {
  display: flex;
  gap: 6px;
}

.tasks-calendar {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.92);
}

.tasks-calendar[hidden] {
  display: none;
}

.tasks-calendar-head {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #edf0f4;
  text-align: center;
}

.tasks-calendar-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font-size: 1.1rem;
}

.tasks-calendar-head strong {
  font-size: 0.9rem;
  text-transform: capitalize;
}

.tasks-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tasks-calendar-weekday {
  padding: 10px;
  border-bottom: 1px solid #edf0f4;
  color: #8b93a1;
  background: #fafbfc;
  font-size: 0.6rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.tasks-calendar-day {
  min-height: 118px;
  padding: 10px;
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
}

.tasks-calendar-day:nth-child(7n) {
  border-right: 0;
}

.tasks-calendar-day.is-muted {
  background: #fafbfc;
}

.tasks-calendar-day > time {
  display: block;
  margin-bottom: 8px;
  color: #6d7584;
  font-size: 0.65rem;
  font-weight: 850;
}

.tasks-calendar-day.is-today > time {
  color: var(--blue);
}

.calendar-task {
  display: block;
  width: 100%;
  margin-bottom: 5px;
  padding: 6px 7px;
  overflow: hidden;
  border: 0;
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  color: #445066;
  background: #eef6ff;
  font-size: 0.58rem;
  font-weight: 750;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-task.urgent,
.calendar-task.high {
  border-left-color: #d75151;
  background: #fff0f1;
}

.calendar-task.completed {
  border-left-color: #7b8794;
  color: #8d95a2;
  background: #f1f3f5;
  text-decoration: line-through;
}

.task-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 140px 90px 110px auto;
  align-items: center;
  gap: 18px;
  min-height: 91px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf0f4;
}

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

.task-complete-button {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #cfd5df;
  border-radius: 8px;
  color: transparent;
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.task-complete-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.task-item.is-completed .task-complete-button {
  color: var(--white);
  border-color: #25ad68;
  background: #25ad68;
}

.task-item.is-completed .task-main strong {
  color: #8b93a1;
  text-decoration: line-through;
}

.task-main strong,
.task-main span,
.task-assignee strong,
.task-assignee span {
  display: block;
}

.task-main strong {
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.task-main span,
.task-assignee span {
  color: var(--muted);
  font-size: 0.64rem;
}

.task-assignee strong {
  margin-bottom: 4px;
  font-size: 0.7rem;
}

.task-priority,
.task-due {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 14px;
  font-size: 0.61rem;
  font-weight: 850;
}

.task-priority.low { color: #527168; background: #eaf4f1; }
.task-priority.medium { color: #6c5d20; background: #fff6d9; }
.task-priority.high { color: #9a5824; background: #fff0df; }
.task-priority.urgent { color: #a33f4e; background: #fae9ec; }

.task-due {
  color: #596274;
  background: #f0f2f6;
}

.task-due.overdue {
  color: #a33f4e;
  background: #fae9ec;
}

.task-due.today {
  color: #1769b0;
  background: #e7f3ff;
}

.task-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.module-icon.tasks {
  color: #6f55c7;
  background: #eee9ff;
}

.module-icon.quotes {
  color: #087bff;
  background: #e7f3ff;
}

.module-icon.reports {
  color: #1e7c59;
  background: #e8f7ef;
}

.module-icon.interactions {
  color: #7c4bd6;
  background: #f0eaff;
}

.module-icon.automation {
  color: #087bff;
  background: #eaf4ff;
}

.export-report-button {
  text-decoration: none;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.report-panel {
  padding: 22px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(17, 24, 44, 0.04);
}

.report-wide {
  grid-column: 1 / -1;
}

.report-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  min-height: 220px;
  padding-top: 16px;
}

.report-bar-group {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-width: 0;
}

.report-bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  min-height: 160px;
  padding: 9px;
  border-radius: 12px;
  background: #f3f5f8;
}

.report-bar {
  width: 28px;
  min-height: 4px;
  border-radius: 8px 8px 3px 3px;
  background: var(--blue);
}

.report-bar.pending {
  background: #f1b84b;
}

.report-bar-label {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
}

.report-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 13px;
  background: #fbfcfd;
}

.report-row strong,
.report-row span {
  display: block;
}

.report-row strong {
  margin-bottom: 4px;
  font-size: 0.76rem;
}

.report-row span {
  color: var(--muted);
  font-size: 0.63rem;
}

.report-row b {
  white-space: nowrap;
  font-size: 0.78rem;
}

.report-funnel {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.funnel-step {
  display: grid;
  gap: 7px;
}

.funnel-step-head {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
}

.funnel-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}

.funnel-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #087bff, #5aa7ff);
}

.report-empty {
  padding: 20px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.automations-summary .dark-card {
  color: var(--white);
  background: var(--ink);
}

.automations-summary .dark-card span,
.documents-summary .dark-card span {
  color: rgba(255, 255, 255, 0.68);
}

.documents-summary .dark-card {
  color: var(--white);
  background: var(--ink);
}

.documents-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.documents-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 190px;
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.documents-toolbar select {
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.76rem;
}

.documents-panel {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(17, 24, 44, 0.04);
}

.documents-list {
  display: grid;
}

.document-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f4;
}

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

.document-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #80631e;
  background: #fff6d9;
  font-size: 0.62rem;
  font-weight: 900;
}

.document-item.payment .document-icon {
  color: #1769b0;
  background: #e7f3ff;
}

.document-copy strong,
.document-copy span,
.document-copy p {
  display: block;
}

.document-copy strong {
  margin-bottom: 5px;
  font-size: 0.82rem;
}

.document-copy span,
.document-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.document-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 130px;
}

.document-actions span {
  color: var(--muted);
  font-size: 0.62rem;
}

.document-actions a {
  padding: 8px 11px;
  border: 1px solid #dbe1ea;
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.68rem;
  font-weight: 850;
  text-decoration: none;
}

.document-actions a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.automations-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  margin-top: 18px;
}

.automation-panel {
  min-height: 280px;
  padding: 22px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(17, 24, 44, 0.04);
}

.automation-rules-list,
.automation-events-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.automation-rule-card,
.automation-event-item {
  padding: 14px;
  border: 1px solid #edf0f4;
  border-radius: 15px;
  background: #fbfcfd;
}

.automation-rule-card strong,
.automation-rule-card span,
.automation-event-item strong,
.automation-event-item span,
.automation-event-item p {
  display: block;
}

.automation-rule-card strong,
.automation-event-item strong {
  margin-bottom: 6px;
  font-size: 0.78rem;
}

.automation-rule-card span,
.automation-event-item span,
.automation-event-item p {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.55;
}

.automation-rule-card span {
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.automation-event-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.automation-event-time {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 850;
  white-space: nowrap;
}

.interactions-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 170px 190px;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.interactions-toolbar select {
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.76rem;
}

.interactions-panel {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(17, 24, 44, 0.04);
}

.interaction-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f4;
}

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

.interaction-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: #e7f3ff;
  font-size: 0.74rem;
  font-weight: 900;
}

.interaction-icon.whatsapp { color: #188b5a; background: #e8f7ef; }
.interaction-icon.meeting { color: #7c4bd6; background: #f0eaff; }
.interaction-icon.note { color: #80631e; background: #fff6d9; }
.interaction-icon.email { color: #1769b0; background: #e7f3ff; }

.interaction-copy strong,
.interaction-copy span,
.interaction-copy p {
  display: block;
}

.interaction-copy strong {
  margin-bottom: 5px;
  font-size: 0.84rem;
}

.interaction-copy p {
  margin: 8px 0;
  color: #555f70;
  font-size: 0.74rem;
  line-height: 1.55;
}

.interaction-copy span,
.interaction-meta {
  color: var(--muted);
  font-size: 0.64rem;
}

.interaction-meta {
  text-align: right;
  white-space: nowrap;
}

.interaction-follow-up {
  display: inline-flex;
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 12px;
  color: #a33f4e;
  background: #fae9ec;
  font-size: 0.59rem;
  font-weight: 850;
}

.interaction-task-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: #5b6474;
  font-size: 0.74rem;
  font-weight: 750;
}


.quotes-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 190px;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.quotes-toolbar select {
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
}

.quote-status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 15px;
  font-size: 0.62rem;
  font-weight: 850;
}

.quote-status.draft { color: #667080; background: #edf0f4; }
.quote-status.sent { color: #1769b0; background: #e7f3ff; }
.quote-status.accepted { color: #207452; background: #e8f7ef; }
.quote-status.rejected { color: #a33f4e; background: #fae9ec; }

.quote-contact strong,
.quote-contact span {
  display: block;
}

.quote-contact strong {
  margin-bottom: 4px;
  font-size: 0.76rem;
}

.quote-contact span {
  color: var(--muted);
  font-size: 0.64rem;
}

.quote-form-modal {
  width: min(1040px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  padding: 30px;
  overflow-y: auto;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(8, 13, 24, 0.24);
}

.quote-items-editor {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #e8ebf0;
  border-radius: 17px;
  background: #fafbfc;
}

.quote-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.quote-items-head h3 {
  margin: 5px 0 0;
  font-size: 0.95rem;
}

.quote-items-head button {
  padding: 8px 11px;
  border: 1px solid #c9ddf5;
  border-radius: 9px;
  color: var(--blue);
  background: #f2f8ff;
  font-size: 0.67rem;
  font-weight: 800;
}

.quote-item-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 90px 140px 120px 34px;
  align-items: end;
  gap: 9px;
  margin-top: 9px;
}

.quote-item-row label span {
  display: block;
  margin-bottom: 6px;
  color: #697284;
  font-size: 0.61rem;
  font-weight: 750;
}

.quote-item-row input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}

.quote-item-amount {
  height: 40px;
  padding: 12px 8px;
  font-size: 0.7rem;
  font-weight: 850;
  text-align: right;
}

.quote-item-remove {
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  border: 0;
  border-radius: 9px;
  color: var(--danger);
  background: #fae9ec;
}

.quote-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 22px;
  margin-top: 20px;
}

.quote-bottom-grid .form-control + .form-control {
  margin-top: 12px;
}

.quote-total-box {
  align-self: start;
  padding: 18px;
  border-radius: 16px;
  color: var(--white);
  background: var(--ink);
}

.quote-total-box > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  color: #b8c1d0;
  font-size: 0.7rem;
}

.quote-total-box strong {
  color: var(--white);
}

.quote-total-box .grand-total {
  margin-top: 7px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: var(--white);
  font-size: 0.9rem;
}

.settings-panel {
  margin-top: 44px;
}

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

.settings-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(17, 24, 44, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(17, 24, 44, 0.04);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 1120px) {
  .primary-nav {
    display: flex;
  }

  .command-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-actions {
    justify-content: flex-end;
  }

  .command-search {
    width: 150px;
  }

  .overview-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .home-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-workspace {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  }

  .shortcuts-card {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .pipeline-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .quotes-toolbar {
    grid-template-columns: 1fr;
  }

  .tasks-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .task-item {
    grid-template-columns: auto minmax(0, 1fr) 90px 110px auto;
  }

  .tasks-calendar-day {
    min-height: 90px;
    padding: 6px;
  }

  .calendar-task {
    padding: 5px;
    font-size: 0.52rem;
  }

  .task-assignee {
    display: none;
  }
}

@media (max-width: 780px) {
  .command-header {
    min-height: 66px;
    grid-template-rows: auto;
    padding: 0 16px;
  }

  .primary-nav {
    display: none;
  }

  .header-brand img {
    width: 108px;
  }

  .product-name,
  .command-search,
  .profile-copy,
  .profile-trigger > svg {
    display: none;
  }

  .profile-trigger {
    min-width: 0;
    width: 42px;
    height: 42px;
    padding: 2px;
  }

  .profile-avatar {
    width: 38px;
    height: 38px;
  }

  .profile-popover {
    right: 16px;
  }

  .notification-popover {
    right: 16px;
  }

  .dashboard-welcome {
    align-items: stretch;
    flex-direction: column;
  }

  .launcher-cta {
    flex-basis: auto;
    width: min(100%, 380px);
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .home-workspace {
    grid-template-columns: 1fr;
  }

  .shortcuts-card {
    grid-column: auto;
  }

  .overview-card {
    min-height: 230px;
  }

  .module-launcher {
    padding: 24px;
  }

  .module-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .users-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .users-search {
    grid-column: 1 / -1;
  }

  .pipeline-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline-toolbar .users-search {
    grid-column: 1 / -1;
  }

  .client-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .quick-create {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .quick-create span {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .home-metrics {
    grid-template-columns: 1fr;
  }

  .home-metric-card {
    min-height: 145px;
  }

  .home-action-grid {
    grid-template-columns: 1fr;
  }

  .home-activity-item {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .home-activity-item time {
    grid-column: 2;
  }

  .command-dashboard {
    width: min(100% - 32px, 1240px);
    padding-top: 58px;
  }

  .dashboard-welcome h1 {
    font-size: 2.75rem;
  }

  .dashboard-welcome p {
    font-size: 0.95rem;
  }

  .launcher-cta {
    width: 100%;
  }

  .overlay {
    align-items: end;
    padding: 0;
  }

  .module-launcher {
    width: 100%;
    max-height: 88vh;
    padding: 24px 18px 28px;
    border-radius: 24px 24px 0 0;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .command-overlay {
    align-items: start;
    padding: 80px 12px 0;
  }

  .command-palette {
    border-radius: 17px;
  }

  .users-summary {
    grid-template-columns: 1fr 1fr;
  }

  .users-summary article:last-child {
    grid-column: 1 / -1;
  }

  .users-toolbar {
    grid-template-columns: 1fr;
  }

  .users-search {
    grid-column: auto;
  }

  .user-form-modal {
    width: 100%;
    max-height: 92vh;
    padding: 24px 18px;
    border-radius: 24px 24px 0 0;
  }

  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .form-control.full {
    grid-column: auto;
  }

  .pipeline-summary {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline-toolbar {
    grid-template-columns: 1fr;
  }

  .pipeline-toolbar .users-search {
    grid-column: auto;
  }

  .kanban-board {
    grid-template-columns: repeat(6, minmax(265px, 82vw));
  }

  .prospect-form-modal {
    width: 100%;
    max-height: 92vh;
    padding: 24px 18px;
    border-radius: 24px 24px 0 0;
  }

  .prospect-form-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .clients-toolbar {
    grid-template-columns: 1fr;
  }

  .client-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .client-hero-value {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .finance-chart {
    gap: 7px;
  }

  .finance-bar-item strong {
    font-size: 0.55rem;
  }

  .finance-toolbar {
    grid-template-columns: 1fr;
  }

  .quote-form-modal {
    width: 100%;
    max-height: 92vh;
    padding: 22px 16px;
    border-radius: 24px 24px 0 0;
  }

  .quote-item-row {
    grid-template-columns: 1fr 80px 110px 34px;
  }

  .quote-item-row label:first-child {
    grid-column: 1 / -1;
  }

  .quote-item-amount {
    display: none;
  }

  .quote-bottom-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .automations-grid {
    grid-template-columns: 1fr;
  }

  .interactions-toolbar {
    grid-template-columns: 1fr;
  }

  .documents-toolbar {
    grid-template-columns: 1fr;
  }

  .document-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .document-actions {
    grid-column: 2;
    justify-items: start;
  }

  .interaction-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .interaction-meta {
    grid-column: 2;
    text-align: left;
  }

  .report-bars {
    gap: 7px;
  }

  .report-bar {
    width: 18px;
  }

  .tasks-toolbar {
    grid-template-columns: 1fr;
  }

  .task-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .task-priority {
    grid-column: 2;
  }

  .task-due {
    grid-column: 2;
  }

  .task-actions {
    grid-column: 3;
    grid-row: 1;
  }
}
