@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #182535;
  --sidebar: #ffffff;
  --sidebar-dark: #e4e7ec;
  --accent: #6c3cff;
  --accent-2: #9b7cff;
  --gold: #ff9b52;
  --gold-soft: #fff0e6;
  --text: #182535;
  --muted: #667080;
  --bg: #eeeaf6;
  --card: rgba(255, 255, 255, 0.84);
  --line: #d6dbe2;
  --green: #2f8f68;
  --roadmap-panel-bg: #f8f9ff;
  --roadmap-panel-border: #e3e7f8;
  --roadmap-neutral-bg: #eff1f8;
  --roadmap-neutral-text: #666a86;
  --roadmap-line-bg: #e8ebf7;
  --roadmap-step-bg: #ffffff;
  --roadmap-step-border: #d7dbec;
  --roadmap-step-text: #6c70a0;
  --roadmap-status-progress-text: #4d3faf;
  --roadmap-status-progress-bg: rgba(128, 104, 241, 0.13);
  --roadmap-status-complete-text: #247052;
  --roadmap-status-complete-bg: rgba(47, 143, 104, 0.13);
  --roadmap-status-blocked-text: #8f3948;
  --roadmap-status-blocked-bg: rgba(214, 95, 95, 0.11);
  --roadmap-blocker-bg: #fff2f2;
  --roadmap-blocker-border: #ffdada;
  --roadmap-blocker-card-bg: linear-gradient(150deg, #fff, #fff8f8);
  --roadmap-report-bg: linear-gradient(150deg, #fff, #f5f2ff);
  --roadmap-tip-bg: linear-gradient(150deg, #fff, #f3fbf7);
  --roadmap-tip-border: #d8f0e5;
  --platform-card-surface: rgba(255, 255, 255, 0.84);
  --platform-card-border: rgba(255, 255, 255, 0.78);
  --platform-soft-surface: #f7f8fa;
  --platform-shell-bg: #eeeaf6;
  --main-panel-surface: rgba(255, 255, 255, 0.86);
  --main-panel-border: rgba(255, 255, 255, 0.76);
  --main-panel-shadow: 0 20px 50px rgba(24, 37, 53, 0.08);
  --platform-shadow: 0 20px 50px rgba(24, 37, 53, 0.08);
  --shadow: 0 20px 50px rgba(24, 37, 53, 0.08);
  --sidebar-width: 96px;
  --sidebar-expanded-width: 236px;
  --topbar-height: 92px;
  --app-gutter: clamp(18px, 1.8vw, 28px);
  --responsive-gap: clamp(12px, 1.2vw, 18px);
  color-scheme: light;
}

:root[data-theme="dark"] .demo-mode-banner {
  background: rgba(21, 22, 26, 0.84);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .signup-prompt-modal {
  background: rgba(0, 0, 0, 0.44);
}

:root[data-theme="dark"] {
  --navy: #f1f2f5;
  --sidebar: #08090c;
  --sidebar-dark: #050608;
  /* Dark mode accent and tint colors keep 30% less saturation than their light equivalents. */
  --accent: #a590eb;
  --accent-2: #a590eb;
  --gold: #d3b984;
  --gold-soft: rgba(211, 185, 132, 0.15);
  --text: #f5f5f6;
  --muted: #a4a6ad;
  --bg: #34363c;
  --card: rgba(36, 38, 43, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --green: #77c39a;
  --roadmap-panel-bg: rgba(255, 255, 255, 0.045);
  --roadmap-panel-border: rgba(255, 255, 255, 0.1);
  --roadmap-neutral-bg: rgba(255, 255, 255, 0.07);
  --roadmap-neutral-text: #d3d5dd;
  --roadmap-line-bg: rgba(255, 255, 255, 0.09);
  --roadmap-step-bg: rgba(255, 255, 255, 0.06);
  --roadmap-step-border: rgba(255, 255, 255, 0.16);
  --roadmap-step-text: #c2c5ce;
  --roadmap-status-progress-text: #e2dff9;
  --roadmap-status-progress-bg: rgba(166, 150, 236, 0.13);
  --roadmap-status-complete-text: #bff3d6;
  --roadmap-status-complete-bg: rgba(119, 195, 154, 0.13);
  --roadmap-status-blocked-text: #f5c4c4;
  --roadmap-status-blocked-bg: rgba(233, 129, 129, 0.1);
  --roadmap-blocker-bg: rgba(233, 129, 129, 0.1);
  --roadmap-blocker-border: rgba(233, 129, 129, 0.22);
  --roadmap-blocker-card-bg: linear-gradient(180deg, rgba(74, 28, 46, 0.68), rgba(42, 22, 42, 0.84));
  --roadmap-report-bg: linear-gradient(150deg, rgba(37, 38, 42, 0.98), rgba(28, 29, 32, 0.92));
  --roadmap-tip-bg: linear-gradient(150deg, rgba(27, 69, 69, 0.68), rgba(19, 36, 54, 0.84));
  --roadmap-tip-border: rgba(119, 195, 154, 0.2);
  --platform-card-surface: rgba(34, 36, 41, 0.9);
  --platform-card-border: transparent;
  --platform-soft-surface: rgba(255, 255, 255, 0.045);
  --platform-shell-bg: #34363c;
  --main-panel-surface: rgba(32, 34, 39, 0.92);
  --main-panel-border: transparent;
  --main-panel-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
  --platform-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

@property --donut-reveal {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-image:
    radial-gradient(circle at 18% 82%, rgba(145, 205, 232, 0.5), transparent 28%),
    radial-gradient(circle at 72% 18%, rgba(210, 202, 246, 0.82), transparent 34%),
    linear-gradient(135deg, #f5f4fb 0%, var(--bg) 48%, #e6e1f0 100%);
  background-size: auto;
  background-attachment: fixed;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: clip;
  transition: background 220ms ease, color 220ms ease;
}

:root[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 18% 82%, rgba(117, 127, 143, 0.22), transparent 30%),
    radial-gradient(circle at 76% 16%, rgba(165, 144, 235, 0.14), transparent 34%),
    radial-gradient(circle at 48% 44%, rgba(85, 178, 219, 0.08), transparent 38%),
    linear-gradient(135deg, #3b3d44 0%, var(--bg) 50%, #2c2e34 100%);
  background-size: auto;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sidebar,
.sidebar *,
.page-info-bar,
.page-info-bar *,
.mobile-brand,
.mobile-brand *,
.topbar-brand,
.topbar-brand *,
.brand,
.brand *,
button,
button *,
[role="button"],
[role="button"] *,
svg,
.lucide,
[class*="-icon"],
[class*="-icon"] *,
.sidebar-logo,
.sidebar-logo * {
  -webkit-user-select: none;
  user-select: none;
}

img,
svg,
.lucide {
  -webkit-user-drag: none;
  user-select: none;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  padding-top: 0;
  overflow-x: clip;
}

.sidebar {
  position: sticky;
  top: 16px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  width: 76px;
  height: calc(100vh - 44px);
  max-height: none;
  margin: 16px 0 16px 20px;
  padding: 16px 10px;
  color: #667080;
  overflow: visible;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(24, 37, 53, 0.14);
  backdrop-filter: blur(22px);
  transition: width 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.sidebar-active-indicator {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 3px;
  height: 26px;
  background: #3b414a;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(24, 37, 53, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--sidebar-indicator-x, 8px), var(--sidebar-indicator-y, 0));
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.sidebar.sidebar-indicator-tracking .sidebar-active-indicator {
  transition: opacity 160ms ease;
}

.sidebar-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  background: transparent;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
  text-decoration: none;
}

.sidebar-logo img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: contain;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  right: -22px;
  bottom: 0;
  width: 22px;
}

.sidebar:hover,
.sidebar:focus-within {
  width: 236px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 28px 78px rgba(24, 37, 53, 0.18);
}

.brand {
  padding: 0 14px 24px;
}

.brand-mark {
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
  color: var(--text);
}

.brand-line {
  margin-top: 8px;
  color: #8c8fac;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.nav-list {
  display: grid;
  justify-items: start;
  gap: 6px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 37, 53, 0.2) transparent;
}

.nav-list::-webkit-scrollbar {
  width: 4px;
}

.nav-list::-webkit-scrollbar-track {
  background: transparent;
}

.nav-list::-webkit-scrollbar-thumb {
  background: rgba(24, 37, 53, 0.18);
  border-radius: 999px;
}

.admin-nav-list {
  display: none;
}

.mentor-nav-list {
  display: none;
}

body.admin-mode:not(.admin-preview-active) .sidebar > .nav-list:not(.admin-nav-list) {
  display: none;
}

body.admin-mode:not(.admin-preview-active) .admin-nav-list {
  display: grid;
}

body.mentor-mode .sidebar > .nav-list:not(.mentor-nav-list) {
  display: none;
}

body.mentor-mode .mentor-nav-list {
  display: grid;
}

.sidebar-mode-label {
  width: 100%;
  max-width: 0;
  margin: 0 0 4px;
  padding: 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-6px);
  transition: opacity 180ms ease, max-width 220ms ease, transform 220ms ease;
}

.sidebar:hover .sidebar-mode-label,
.sidebar:focus-within .sidebar-mode-label {
  max-width: 180px;
  opacity: 1;
  transform: translateX(0);
}

.nav-group {
  position: relative;
  width: 100%;
}

.nav-group::after {
  display: none;
}

.sidebar-footer-nav {
  display: grid;
  justify-items: start;
  flex: 0 0 auto;
  gap: 6px;
  width: 100%;
  margin-top: 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  width: 100%;
  min-height: 56px;
  padding: 0 4px;
  color: #182535;
  background: transparent;
  border: 0;
  border-radius: 999px;
  text-align: left;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  transition: color 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.nav-item::before {
  content: "";
  display: none;
  background: transparent;
}

.nav-item.active::before {
  background: transparent;
  box-shadow: none;
}

.nav-item:hover {
  transform: none;
}

.nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: none;
}

.nav-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.15;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  color: #182535;
  background: transparent;
  border-color: transparent;
}

.nav-label {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-6px);
  transition: opacity 180ms ease, max-width 220ms ease, transform 220ms ease;
}

.sidebar:hover .nav-label,
.sidebar:focus-within .nav-label {
  max-width: 160px;
  opacity: 1;
  transform: translateX(0);
}

.sidebar-submenu {
  position: static;
  z-index: 1;
  display: grid;
  width: calc(100% - 52px);
  max-height: 0;
  margin: -2px 0 4px 54px;
  padding: 0;
  color: #182535;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.sidebar:hover .nav-group.submenu-open .sidebar-submenu,
.sidebar:focus-within .nav-group.submenu-open .sidebar-submenu {
  max-height: 135px;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sidebar-submenu-title {
  display: none;
}

.sidebar-submenu-title svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.sidebar-submenu-list {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 4px 0 4px 18px;
  --submenu-indicator-opacity: 0;
  --submenu-indicator-y: 0px;
}

.sidebar-submenu-list::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 4px;
  width: 2px;
  background: rgba(24, 37, 53, 0.14);
  border-radius: 999px;
}

.sidebar-submenu-list::after {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: #182535;
  opacity: var(--submenu-indicator-opacity);
  transform: translate(-0.5px, var(--submenu-indicator-y));
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.sidebar-submenu-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 8px;
  color: rgba(24, 37, 53, 0.56);
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.sidebar-submenu-item::before {
  display: none;
}

.sidebar-submenu-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 900;
}

.sidebar-submenu-item small {
  display: none;
}

.sidebar-submenu-item:hover,
.sidebar-submenu-item:focus-visible,
.sidebar-submenu-item.active {
  color: #182535;
  background: rgba(24, 37, 53, 0.06);
  outline: none;
}

.sidebar-submenu-item:hover::before,
.sidebar-submenu-item:focus-visible::before,
.sidebar-submenu-item.active::before {
  background: transparent;
}

.sidebar-notification {
  position: relative;
  width: 100%;
}

.sidebar-notification .nav-icon {
  position: relative;
}

.sidebar-notification .notification-dot {
  top: 10px;
  right: 9px;
  border-color: var(--platform-sidebar-surface);
}

.sidebar-notification .notification-dropdown {
  top: auto;
  right: auto;
  bottom: 0;
  left: calc(100% + 12px);
  transform-origin: bottom left;
}

.sidebar-profile {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.sidebar-profile .user-pill {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  min-height: 56px;
  padding: 0 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
}

.sidebar:hover .sidebar-profile .user-pill,
.sidebar:focus-within .sidebar-profile .user-pill,
.sidebar-profile .user-pill:hover,
.sidebar-profile.open .user-pill {
  background: #f7f8fa;
  border-color: transparent;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(24, 37, 53, 0.08);
}

.sidebar-profile .user-copy {
  min-width: 0;
  flex: 1;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 180ms ease, max-width 220ms ease;
}

.sidebar:hover .sidebar-profile .user-copy,
.sidebar:focus-within .sidebar-profile .user-copy {
  max-width: 140px;
  opacity: 1;
}

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

.sidebar-profile .user-copy strong {
  font-size: 12px;
  line-height: 1.2;
}

.sidebar-profile .user-copy small {
  font-size: 10px;
  line-height: 1.25;
}

.sidebar-profile .profile-chevron {
  flex: 0 0 auto;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 180ms ease, width 180ms ease;
}

.sidebar:hover .sidebar-profile .profile-chevron,
.sidebar:focus-within .sidebar-profile .profile-chevron {
  width: 17px;
  opacity: 1;
}

.sidebar-profile .profile-dropdown {
  top: auto;
  right: auto;
  bottom: 0;
  left: calc(100% + 12px);
  width: 190px;
  gap: 1px;
  padding: 8px 0 8px 20px;
  color: #182535;
  background: rgba(255, 255, 255, 0.84);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(24, 37, 53, 0.14);
  transform-origin: bottom left;
}

.sidebar-profile .profile-dropdown::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 12px;
  width: 2px;
  background: rgba(24, 37, 53, 0.14);
  border-radius: 999px;
}

.sidebar-profile .profile-dropdown button {
  min-height: 38px;
  padding: 0 10px;
  color: rgba(24, 37, 53, 0.62);
  border-radius: 10px;
  font-size: 12.5px;
}

.sidebar-profile .profile-dropdown button:hover,
.sidebar-profile .profile-dropdown button:focus-visible {
  color: #182535;
  background: rgba(24, 37, 53, 0.06);
}

.sidebar-profile .profile-menu-icon {
  width: 19px;
  height: 19px;
  color: currentColor;
  background: transparent;
  border-radius: 0;
}

.sidebar-profile .profile-menu-icon svg {
  width: 16px;
  height: 16px;
}

.sidebar-profile .logout-option {
  margin-top: 0;
  border-top: 0 !important;
  border-radius: 10px !important;
  color: rgba(138, 63, 63, 0.78) !important;
}

.sidebar-profile .logout-option:hover,
.sidebar-profile .logout-option:focus-visible {
  color: #8a3f3f !important;
  background: rgba(138, 63, 63, 0.08) !important;
}

.sidebar-profile .logout-option .profile-menu-icon {
  color: currentColor;
  background: transparent;
}

.primary-button,
.send-button {
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

.main-content {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  padding: var(--app-gutter) var(--app-gutter) 30px;
  background: transparent;
  border-left: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow-x: clip;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 46px;
}

.mobile-brand {
  display: none;
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
}

.topbar-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 12px;
}

.page-info-bar {
  position: relative;
  z-index: 1;
  display: block;
  align-items: center;
  min-height: auto;
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  isolation: auto;
}

.page-info-bar::before {
  content: "";
  display: none;
}

.page-info-bar::after {
  content: "";
  display: none;
}

.topbar-brand {
  display: grid;
  align-content: center;
  align-self: stretch;
  min-width: 0;
  padding: 0 18px 0 30px;
}

.topbar-brand .brand-mark {
  font-size: 28px;
}

.topbar-brand .brand-line {
  margin-top: 4px;
  font-size: 8px;
}

.page-info-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
  overflow: visible;
  padding: 0 0 0 28px;
}

.page-info-mark {
  display: block;
  width: clamp(72px, 6.6vw, 96px);
  height: clamp(72px, 6.6vw, 96px);
  flex: 0 0 auto;
  object-fit: contain;
}

.page-info-mark-dark {
  display: none;
}

.page-info-divider {
  display: block;
  width: 1px;
  height: 42px;
  flex: 0 0 auto;
  background: #3b414a;
  opacity: 0.82;
}

.page-info-text {
  min-width: 0;
  padding-bottom: 4px;
}

.page-info-copy.is-revealing h1,
.page-info-copy.is-revealing p {
  animation: page-info-reveal 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-info-copy.is-revealing p {
  animation-delay: 80ms;
}

@keyframes page-info-reveal {
  from {
    opacity: 0;
    clip-path: inset(-0.18em 100% -0.32em 0);
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    clip-path: inset(-0.18em 0 -0.32em 0);
    transform: translateX(0);
  }
}

.page-info-bar h1 {
  display: block;
  margin: 0;
  padding-bottom: 0.08em;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.page-info-bar p {
  display: none;
}

.ghost-button {
  min-width: 34px;
  height: 34px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px 0 7px;
  color: var(--text);
  background: #f5f3ff;
  border: 1px solid #dedaff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  color: var(--accent);
  background: #ede9ff;
  transform: translateY(-1px);
}

.theme-toggle-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
}

.theme-toggle-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .theme-toggle:hover {
  background: rgba(166, 150, 236, 0.16);
}

:root[data-theme="dark"] .theme-toggle-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-sun {
  display: grid;
}

.bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
}

.bell svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-menu {
  position: relative;
  z-index: 80;
}

.notification-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  background: #dc2626;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16);
}

.notification-menu.read .notification-dot {
  opacity: 0;
  transform: scale(0.4);
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1300;
  display: grid;
  gap: 8px;
  width: min(330px, calc(100vw - 32px));
  padding: 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 22px 56px rgba(30, 28, 93, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 180ms;
}

.notification-menu.open .notification-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 8px;
  border-bottom: 1px solid var(--line);
}

.notification-dropdown-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.notification-dropdown-header button {
  padding: 6px 8px;
  color: var(--accent);
  background: #f2efff;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
}

.notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
}

.notification-item:hover,
.notification-item:focus-visible,
.notification-dropdown-header button:hover,
.notification-dropdown-header button:focus-visible {
  background: #f2efff;
}

.notification-item span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  background: #eeeaff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 950;
}

.notification-item strong {
  align-self: end;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.25;
}

.notification-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.profile-menu {
  position: relative;
  z-index: 50;
}

.topbar-profile {
  z-index: 120;
}

.topbar-profile .user-pill {
  min-height: 44px;
  padding: 4px 9px 4px 4px;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(24, 37, 53, 0.08);
  backdrop-filter: blur(18px);
}

.topbar-profile .user-pill:hover,
.topbar-profile.open .user-pill {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(24, 37, 53, 0.12);
}

.topbar-profile .user-copy strong {
  max-width: 110px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-profile .user-copy small {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  text-align: left;
}

.user-pill:hover,
.profile-menu.open .user-pill {
  background: #f7f5ff;
  border-color: #d9d5ff;
}

.sidebar-profile .user-pill:hover,
.profile-menu.sidebar-profile.open .user-pill {
  border-color: transparent;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: #0f1117;
  border: 2px solid #0f1117;
  border-radius: 50%;
  box-shadow: none;
  box-sizing: border-box;
  font-weight: 900;
  overflow: hidden;
}

.avatar svg {
  width: 25px;
  height: 25px;
  stroke-width: 2;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.user-pill strong,
.user-pill small {
  display: block;
}

.user-pill small {
  color: var(--muted);
  font-size: 11px;
}

.profile-chevron {
  width: 17px;
  height: 17px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.profile-menu.open .profile-chevron {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1200;
  display: grid;
  gap: 4px;
  width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(30, 28, 93, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 180ms;
}

.profile-menu.open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.profile-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 7px;
  text-align: left;
  font-weight: 850;
}

.profile-dropdown button:hover,
.profile-dropdown button:focus-visible {
  background: #f0edff;
  color: var(--accent);
}

.profile-menu-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--accent);
  background: #f0edff;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
}

.profile-menu-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.logout-option {
  margin-top: 5px;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 0 7px 7px !important;
  color: #8a3f3f !important;
}

.logout-option .profile-menu-icon {
  color: #8a3f3f;
  background: #fff1f1;
}

.page {
  display: none;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-top: 9px;
  min-width: 0;
}

.demo-mode-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(24, 37, 53, 0.08);
  backdrop-filter: blur(16px);
}

.demo-mode-banner[hidden] {
  display: none;
}

.admin-preview-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(24, 37, 53, 0.08);
  backdrop-filter: blur(16px);
}

.admin-preview-banner[hidden] {
  display: none;
}

.admin-preview-banner strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-preview-banner span {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.demo-mode-banner strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-mode-banner span {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.demo-mode-banner a {
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.page.active {
  display: block;
}

:where(
  .page,
  .card,
  .dashboard-kpi-card,
  .dashboard-chart-card,
  .maria-insights-panel,
  .chat-card,
  .admin-panel,
  .admin-summary-card,
  .mentor-card,
  .mentor-booking-panel,
  .partner-board-card,
  .partner-match-table-card,
  .partner-comparison-card,
  .roadmap-task-card,
  .settings-detail-card,
  .home-hero-card,
  .home-chart-card,
  .home-insight-card,
  .home-partners-card
) {
  min-width: 0;
}

:where(
  .dashboard-analytics-layout,
  .dashboard-analytics-main,
  .dashboard-analytics-grid,
  .dashboard-kpi-grid,
  .preview-grid,
  .shortcut-grid,
  .admin-page-shell,
  .admin-summary-grid,
  .admin-two-column,
  .mentor-dashboard-grid,
  .mentor-layout,
  .partner-match-main-grid,
  .partner-match-bottom-grid,
  .partner-pipeline-shell,
  .partner-bottom-grid,
  .roadmap-page-layout,
  .roadmap-overview-grid,
  .maria-layout,
  .settings-dashboard-layout,
  .profile-settings-layout,
  .home-grid,
  .home-metric-strip
) {
  gap: var(--responsive-gap);
  min-width: 0;
}

:where(
  .admin-table-wrap,
  .partner-match-table-card,
  .partner-board-card,
  .partner-comparison-card,
  .roadmap-progress-track
) {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

:where(.page img, .page svg, .page canvas) {
  max-width: 100%;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 500px);
  align-items: center;
  gap: 28px;
  min-height: 270px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: inherit;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  color: var(--text);
}

h2 {
  margin-bottom: 14px;
  font-size: 19px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.hero-copy > p:not(.eyebrow),
.page-heading p:not(.eyebrow),
.card p,
.section-note {
  color: var(--muted);
  line-height: 1.65;
}

.context-controls,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.combo-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 38px;
  min-height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(30, 28, 93, 0.08);
}

.combo-box:focus-within {
  border-color: #c9c2ff;
  box-shadow: 0 0 0 4px rgba(128, 104, 241, 0.12), 0 10px 25px rgba(30, 28, 93, 0.08);
}

.combo-box input {
  min-height: 42px;
  padding-right: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
}

.combo-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0 8px 8px 0;
}

.combo-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.combo-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(30, 28, 93, 0.16);
}

.combo-box.open .combo-menu {
  display: grid;
  gap: 4px;
}

.combo-option {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 7px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.combo-option:hover,
.combo-option.active {
  background: #f0edff;
  color: var(--accent);
}

.combo-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

.context-controls label {
  min-width: 210px;
}

.primary-button {
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--text), #0f1720);
  box-shadow: 0 14px 28px rgba(24, 37, 53, 0.14);
}

.secondary-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--accent);
  background: rgba(108, 60, 255, 0.08);
  border: 1px solid rgba(108, 60, 255, 0.18);
  border-radius: 8px;
  font-weight: 850;
}

.latam-visual {
  min-height: 270px;
}

.latam-visual svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.latam-map-mask-layer {
  opacity: 0.98;
}

.latam-silhouette-wash {
  fill: var(--accent);
  opacity: 0.07;
}

.latam-dotted-fill {
  fill: url(#dotGrid);
}

.map-pings {
  filter: drop-shadow(0 0 10px rgba(128, 104, 241, 0.24));
}

.ping-marker {
  opacity: 0;
  animation: pingMarkerAppear 6.8s ease-in-out infinite;
  animation-delay: var(--ping-delay, 0s);
  transform-box: fill-box;
  transform-origin: center;
}

.ping-dot {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 2.25;
  animation: pingDotPop 6.8s ease-in-out infinite;
  animation-delay: var(--ping-delay, 0s);
  transform-box: fill-box;
  transform-origin: center;
}

.ping-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.65;
  opacity: 0;
  animation: pingRing 6.8s ease-out infinite;
  animation-delay: var(--ping-delay, 0s);
  transform-box: fill-box;
  transform-origin: center;
}

.delay-1 { --ping-delay: 0.15s; }
.delay-2 { --ping-delay: 0.85s; }
.delay-3 { --ping-delay: 1.55s; }
.delay-4 { --ping-delay: 2.25s; }
.delay-5 { --ping-delay: 2.95s; }

@keyframes pingMarkerAppear {
  0%, 22% { opacity: 0; }
  30%, 82% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes pingRing {
  0%, 58% {
    opacity: 0;
    transform: scale(1);
  }
  66% {
    opacity: 0.32;
    stroke: var(--accent);
    transform: scale(1);
  }
  92%, 100% {
    opacity: 0;
    stroke: var(--gold);
    transform: scale(3.25);
  }
}

@keyframes pingDotPop {
  0%, 24% {
    transform: scale(0.72);
    fill: #fff;
    stroke: var(--accent);
    filter: drop-shadow(0 0 0 rgba(128, 104, 241, 0));
  }
  32%, 72% {
    transform: scale(1);
    fill: #fff;
    stroke: var(--accent);
    filter: drop-shadow(0 0 6px rgba(128, 104, 241, 0.28));
  }
  82% {
    transform: scale(1.14);
    fill: #fff5da;
    stroke: var(--gold);
    filter: drop-shadow(0 0 12px rgba(214, 168, 79, 0.45));
  }
  100% {
    transform: scale(0.9);
    fill: #fff8e8;
    stroke: var(--gold);
    filter: drop-shadow(0 0 0 rgba(214, 168, 79, 0));
  }
}

.shortcut-grid,
.preview-grid,
.content-grid,
.metric-grid,
.advisor-grid,
.roadmap-shell,
.chat-layout {
  display: grid;
  gap: 16px;
}

.shortcut-grid {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  margin: 18px 0;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.shortcut-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
}

.shortcut-card:hover {
  border-color: #d9d5ff;
  background: #f7f5ff;
}

.shortcut-icon,
.large-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  color: var(--accent);
  background: #f0edff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.shortcut-card span:last-child {
  font-weight: 900;
  line-height: 1.3;
}

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

.dashboard-analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.dashboard-analytics-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-kpi-card,
.dashboard-chart-card,
.maria-insights-panel {
  min-width: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(230, 229, 240, 0.9);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(30, 28, 93, 0.1);
}

.dashboard-kpi-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
}

.dashboard-kpi-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--accent);
  background: #f0edff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 0 0 8px rgba(128, 104, 241, 0.06);
}

.dashboard-kpi-card h2 {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.25;
}

.dashboard-kpi-card h2 span {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: var(--muted);
  border: 1px solid #b9b6d3;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.dashboard-kpi-card strong {
  display: block;
  margin-bottom: 4px;
  color: #5d35d7;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1;
  font-weight: 950;
}

.dashboard-kpi-card strong small {
  color: var(--text);
  font-size: 44%;
  font-weight: 900;
}

.dashboard-kpi-card p {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-kpi-card em {
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.trend-positive {
  color: var(--green);
}

.trend-neutral {
  color: var(--muted);
}

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

.dashboard-chart-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 286px;
  padding: 18px;
  overflow: hidden;
}

.dashboard-chart-heading h2 {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.25;
}

.dashboard-chart-heading p {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.country-opportunity-chart {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 210px;
}

.chart-scale {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-items: end;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.opportunity-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(34px, 1fr));
  gap: clamp(7px, 1vw, 14px);
  align-items: end;
  min-width: 0;
  min-height: 210px;
  padding-top: 22px;
  border-left: 1px solid #e0dff0;
  border-bottom: 1px solid #e0dff0;
  background:
    linear-gradient(to bottom, rgba(224, 223, 240, 0.8) 1px, transparent 1px) 0 0 / 100% 25%;
}

.opportunity-bar {
  display: grid;
  grid-template-rows: 20px 1fr 28px;
  justify-items: center;
  align-items: end;
  height: 100%;
  min-width: 0;
}

.opportunity-bar strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.opportunity-bar span {
  width: min(48px, 70%);
  min-height: 12px;
  background: linear-gradient(180deg, #5d35d7 0%, rgba(128, 104, 241, 0.58) 100%);
  border-radius: 8px 8px 2px 2px;
  box-shadow: 0 12px 22px rgba(93, 53, 215, 0.18);
}

.opportunity-bar:not(:first-child) span {
  background: linear-gradient(180deg, rgba(168, 133, 245, 0.88) 0%, rgba(168, 133, 245, 0.42) 100%);
}

.opportunity-bar em {
  color: var(--text);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.opportunity-bar:nth-child(1) { --opportunity-delay: 80ms; }
.opportunity-bar:nth-child(2) { --opportunity-delay: 170ms; }
.opportunity-bar:nth-child(3) { --opportunity-delay: 260ms; }
.opportunity-bar:nth-child(4) { --opportunity-delay: 350ms; }
.opportunity-bar:nth-child(5) { --opportunity-delay: 440ms; }

.demand-trend-chart {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 214px;
}

.demand-trend-chart svg {
  width: 100%;
  height: 100%;
  min-height: 184px;
  overflow: visible;
}

.trend-chip {
  position: absolute;
  top: 8px;
  right: 6px;
  z-index: 2;
  display: grid;
  min-width: 82px;
  padding: 9px 11px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #d9d5ff;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(30, 28, 93, 0.08);
}

.trend-chip small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.trend-point-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  display: grid;
  gap: 2px;
  min-width: 142px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(128, 104, 241, 0.24);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(30, 28, 93, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px)) scale(0.96);
  transform-origin: bottom center;
  transition: opacity 140ms ease, transform 140ms ease;
}

.trend-point-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 12px)) scale(1);
}

.trend-point-tooltip.below {
  transform: translate(-50%, 14px) scale(0.96);
  transform-origin: top center;
}

.trend-point-tooltip.visible.below {
  transform: translate(-50%, 14px) scale(1);
}

.trend-point-tooltip strong {
  color: var(--accent);
  font-size: 17px;
  line-height: 1;
}

.trend-point-tooltip small,
.trend-point-tooltip em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.trend-point-tooltip span {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.trend-grid path {
  fill: none;
  stroke: #e5e4f1;
  stroke-width: 1;
}

.trend-area {
  fill: url(#dashboardTrendFill);
}

.trend-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.trend-points circle {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 4;
  cursor: pointer;
  transition: fill 140ms ease, r 140ms ease, stroke-width 140ms ease, filter 140ms ease;
}

.trend-points circle:hover,
.trend-points circle:focus,
.trend-points circle.is-active {
  fill: var(--accent);
  outline: none;
  r: 7;
  stroke-width: 5;
  filter: drop-shadow(0 8px 10px rgba(128, 104, 241, 0.28));
}

.trend-hit-area {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
  cursor: pointer;
}

.trend-points circle:nth-child(1) { --point-delay: 550ms; }
.trend-points circle:nth-child(2) { --point-delay: 610ms; }
.trend-points circle:nth-child(3) { --point-delay: 670ms; }
.trend-points circle:nth-child(4) { --point-delay: 730ms; }
.trend-points circle:nth-child(5) { --point-delay: 790ms; }
.trend-points circle:nth-child(6) { --point-delay: 850ms; }
.trend-points circle:nth-child(7) { --point-delay: 910ms; }
.trend-points circle:nth-child(8) { --point-delay: 970ms; }
.trend-points circle:nth-child(9) { --point-delay: 1030ms; }
.trend-points circle:nth-child(10) { --point-delay: 1090ms; }
.trend-points circle:nth-child(11) { --point-delay: 1150ms; }
.trend-points circle:nth-child(12) { --point-delay: 1210ms; }

.trend-labels {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.channel-mix-layout {
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) minmax(150px, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 210px;
}

.channel-donut {
  position: relative;
  --donut-reveal: 360deg;
  display: grid;
  place-items: center;
  width: min(185px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  background: conic-gradient(#5c25d8 0 35%, #8d63ef 35% 65%, #b393f5 65% 85%, #dbc9ff 85% 100%);
  border-radius: 50%;
  box-shadow: 0 16px 30px rgba(93, 53, 215, 0.18);
}

.channel-donut::before {
  content: "";
  position: absolute;
  inset: 28%;
  z-index: 2;
  background: #fff;
  border-radius: 50%;
}

.channel-donut::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  background: conic-gradient(from -90deg, transparent 0 var(--donut-reveal), var(--card) var(--donut-reveal) 360deg);
  pointer-events: none;
}

.channel-donut span {
  position: relative;
  z-index: 3;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.channel-legend,
.cost-list,
.readiness-list,
.maria-insight-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-legend li,
.cost-list li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-size: 13px;
}

.channel-legend span,
.cost-list span {
  width: 11px;
  height: 11px;
  background: var(--dot-color);
  border-radius: 50%;
}

.channel-legend strong,
.cost-list strong {
  min-width: 0;
  overflow-wrap: break-word;
}

.channel-legend em,
.cost-list em {
  color: var(--text);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.channel-legend li:nth-child(1) { --legend-delay: 0ms; }
.channel-legend li:nth-child(2) { --legend-delay: 90ms; }
.channel-legend li:nth-child(3) { --legend-delay: 180ms; }
.channel-legend li:nth-child(4) { --legend-delay: 270ms; }

.dashboard-analytics-grid.is-animating .opportunity-bar span {
  transform-origin: bottom;
  animation: dashboard-bar-rise 820ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
  animation-delay: var(--opportunity-delay, 0ms);
}

.dashboard-analytics-grid.is-animating .opportunity-bar strong {
  animation: dashboard-value-pop 520ms ease both;
  animation-delay: calc(var(--opportunity-delay, 0ms) + 480ms);
}

.dashboard-analytics-grid.is-animating .trend-area {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: dashboard-trend-area 900ms ease-out both;
  animation-delay: 280ms;
}

.dashboard-analytics-grid.is-animating .trend-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dashboard-trend-draw 1120ms cubic-bezier(0.22, 0.72, 0.18, 1) forwards;
  animation-delay: 260ms;
}

.dashboard-analytics-grid.is-animating .trend-points circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: dashboard-point-pop 420ms ease-out both;
  animation-delay: var(--point-delay, 600ms);
}

.dashboard-analytics-grid.is-animating .trend-chip {
  animation: dashboard-chip-in 560ms ease-out both;
  animation-delay: 980ms;
}

.dashboard-analytics-grid.is-animating .trend-labels span {
  animation: dashboard-label-in 420ms ease both;
  animation-delay: 1050ms;
}

.dashboard-analytics-grid.is-animating .channel-donut {
  animation:
    dashboard-donut-reveal 1080ms cubic-bezier(0.2, 0.82, 0.2, 1) both,
    dashboard-donut-pop 780ms ease-out both;
  animation-delay: 240ms, 240ms;
}

.dashboard-analytics-grid.is-animating .channel-legend li {
  animation: dashboard-legend-in 500ms ease both;
  animation-delay: calc(760ms + var(--legend-delay, 0ms));
}

@keyframes dashboard-bar-rise {
  from {
    opacity: 0.18;
    transform: scaleY(0.03);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes dashboard-value-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboard-trend-area {
  from {
    opacity: 0;
    transform: scaleY(0.25);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes dashboard-trend-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dashboard-point-pop {
  from {
    opacity: 0;
    transform: scale(0.25);
  }

  70% {
    opacity: 1;
    transform: scale(1.18);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dashboard-chip-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboard-label-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboard-donut-reveal {
  from {
    --donut-reveal: 0deg;
  }

  to {
    --donut-reveal: 360deg;
  }
}

@keyframes dashboard-donut-pop {
  from {
    opacity: 0.65;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dashboard-legend-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.scatter-chart-shell {
  display: grid;
  grid-template-columns: 18px 42px minmax(0, 1fr);
  grid-template-rows: minmax(194px, 1fr) auto auto;
  gap: 4px 8px;
  align-items: stretch;
  min-height: 244px;
  min-width: 0;
}

.scatter-axis-title,
.scatter-y-ticks,
.scatter-x-ticks {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.scatter-axis-title {
  white-space: nowrap;
}

.y-axis-title {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scatter-y-ticks {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-rows: repeat(5, 1fr);
  align-items: center;
  padding: 13px 0 11px;
  text-align: right;
}

.scatter-chart {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  min-height: 194px;
  min-width: 0;
  overflow: hidden;
  padding: 26px 14px 16px;
  background:
    linear-gradient(to right, transparent 32%, #dcd9ee 32% 32.5%, transparent 32.5% 66%, #dcd9ee 66% 66.5%, transparent 66.5%),
    linear-gradient(to top, rgba(224, 223, 240, 0.7) 1px, transparent 1px) 0 0 / 100% 20%;
  border-left: 1px solid #d9d8ea;
  border-bottom: 1px solid #d9d8ea;
}

.scatter-x-ticks {
  display: grid;
  grid-column: 3;
  grid-row: 2;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 3px;
  text-align: center;
}

.scatter-x-ticks span:first-child {
  text-align: left;
}

.scatter-x-ticks span:last-child {
  text-align: right;
}

.x-axis-title {
  grid-column: 3;
  grid-row: 3;
  justify-self: center;
  padding-top: 2px;
}

.scatter-zone {
  position: absolute;
  top: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.scatter-zone.mass {
  left: 16%;
}

.scatter-zone.mid {
  left: 47%;
}

.scatter-zone.premium {
  left: 80%;
  color: #c94cae;
}

.scatter-point {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  transform: translate(-50%, 50%);
}

.mass-point {
  background: rgba(83, 151, 210, 0.72);
}

.mid-point {
  background: rgba(162, 120, 235, 0.66);
}

.premium-point {
  color: #fff;
  background: rgba(207, 77, 174, 0.76);
  box-shadow: 0 10px 24px rgba(207, 77, 174, 0.22);
}

.brand-goal-label {
  position: absolute;
  right: 4%;
  bottom: 30%;
  color: #5d35d7;
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
}

.readiness-list li {
  display: grid;
  grid-template-columns: 28px minmax(90px, 1fr) minmax(90px, 1.3fr) 42px 78px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-size: 13px;
}

.readiness-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--text);
  border: 1px solid #d9d5ff;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 950;
}

.readiness-list strong {
  min-width: 0;
  overflow-wrap: break-word;
}

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

.readiness-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5d35d7, #a77af6);
  border-radius: inherit;
}

.readiness-list em {
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.readiness-list small {
  color: #c87318;
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.readiness-list .muted-status {
  color: var(--muted);
}

.dashboard-focus-note {
  align-self: end;
  margin: 8px 0 0;
  padding: 12px 14px;
  color: var(--accent);
  background: #f2efff;
  border: 1px solid #ded8ff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.cost-stack {
  display: flex;
  width: 100%;
  min-height: 42px;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: 0 12px 24px rgba(30, 28, 93, 0.08);
}

.cost-stack span {
  display: grid;
  place-items: center;
  width: var(--segment-width);
  color: #fff;
  background: var(--segment-color);
  font-size: 12px;
  font-weight: 950;
}

.cost-list {
  gap: 10px;
  margin-top: 10px;
}

.total-budget {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.total-budget strong {
  color: var(--text);
  font-size: 15px;
}

.total-budget span {
  color: var(--accent);
  font-size: 22px;
  font-weight: 950;
  white-space: nowrap;
}

.maria-insights-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.maria-insights-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}

.maria-insights-heading span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  font-size: 11px;
  font-weight: 950;
}

.maria-insights-heading h2 {
  margin-bottom: 0;
  font-size: 17px;
}

.maria-insight-list {
  counter-reset: insight;
}

.maria-insight-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #ebe9f6;
}

.maria-insight-list li:last-child {
  border-bottom: 0;
}

.maria-insight-list li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  font-size: 16px;
  font-weight: 950;
}

.maria-insight-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.maria-insight-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.insight-agent-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--accent);
  background: #f0edff;
  border: 1px solid #d9d5ff;
  border-radius: 8px;
  font-weight: 950;
}

.insight-agent-button::after {
  content: ">";
  font-weight: 950;
}

.page-heading {
  display: none;
  justify-content: space-between;
  align-items: end;
  margin: 6px 0 22px;
}

.page-heading h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 38px);
}

.card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card,
.dashboard-kpi-card,
.dashboard-chart-card,
.maria-insights-panel,
.advisor-card,
.mentor-card,
.roadmap-task-card,
.settings-detail-card,
.partner-kpi-card {
  background: var(--platform-card-surface);
  border: 1px solid var(--platform-card-border);
  border-radius: 24px;
  box-shadow: var(--platform-shadow);
  backdrop-filter: blur(18px);
}

.chat-card,
.culture-card,
.metric-card,
.market-profile-card,
.next-actions-card,
.blockers-card,
.report-download-card,
.readiness-card,
.readiness-tip-card,
.roadmap-progress-card,
.warning-card,
.profile-form-card,
.about-card,
.settings-maria-card,
.settings-subnav-card,
.partner-board-card,
.partner-comparison-card,
.partner-lead-card,
.selected-card,
.mentor-booking-panel {
  background: var(--platform-card-surface);
  border: 1px solid var(--platform-card-border);
  border-radius: 24px;
  box-shadow: var(--platform-shadow);
  backdrop-filter: blur(18px);
}

.admin-page-shell {
  display: grid;
  gap: 20px;
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.admin-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2.4vw, 34px);
}

.admin-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-preview-actions.vertical {
  justify-content: stretch;
  flex-direction: column;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
}

.admin-summary-card,
.admin-panel {
  background: var(--platform-card-surface);
  border: 1px solid var(--platform-card-border);
  border-radius: 24px;
  box-shadow: var(--platform-shadow);
  backdrop-filter: blur(18px);
}

.admin-summary-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 18px;
}

.admin-summary-card span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--accent);
  background: rgba(108, 60, 255, 0.12);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 950;
}

.admin-summary-card p,
.admin-muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-summary-card strong {
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.admin-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.admin-panel {
  padding: 22px;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

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

.admin-list-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(135, 143, 156, 0.14);
  border-radius: 16px;
}

.admin-list-row > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: rgba(108, 60, 255, 0.12);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
}

.admin-list-row strong,
.admin-list-row small {
  display: block;
}

.admin-list-row small {
  color: var(--muted);
  font-size: 12px;
}

.admin-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px;
  gap: 14px;
}

.admin-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-toolbar input,
.admin-toolbar select,
.admin-table input,
.admin-table select {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(135, 143, 156, 0.22);
  border-radius: 12px;
  font: inherit;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(135, 143, 156, 0.18);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.admin-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  margin-top: 3px;
  color: var(--muted);
}

.admin-mentor-table {
  min-width: 1120px;
}

.admin-small-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--accent);
  background: rgba(108, 60, 255, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.admin-status-pill.green {
  color: #047857;
  background: rgba(16, 185, 129, 0.13);
}

.admin-status-pill.gold {
  color: #a16207;
  background: rgba(245, 158, 11, 0.15);
}

.admin-status-pill.red {
  color: #b42318;
  background: rgba(244, 63, 94, 0.14);
}

.admin-status-pill.purple {
  color: var(--accent);
  background: rgba(108, 60, 255, 0.12);
}

.mentor-workspace-shell {
  display: grid;
  gap: 18px;
}

.mentor-dashboard-hero,
.mentor-summary-card,
.mentor-panel {
  background: var(--platform-card-surface);
  border: 1px solid var(--platform-card-border);
  border-radius: 24px;
  box-shadow: var(--platform-shadow);
  backdrop-filter: blur(18px);
}

.mentor-dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
}

.mentor-dashboard-hero .eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mentor-dashboard-hero h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.mentor-dashboard-hero p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.mentor-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mentor-icon-button,
.mentor-profile-pill {
  border: 1px solid rgba(135, 143, 156, 0.18);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(24, 37, 53, 0.08);
}

.mentor-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  border-radius: 999px;
}

.mentor-icon-button svg {
  width: 21px;
  height: 21px;
}

.mentor-icon-button span {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  background: #e11d48;
  border: 2px solid #fff;
  border-radius: 50%;
}

.mentor-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 5px 12px 5px 5px;
  color: var(--text);
  border-radius: 999px;
}

.mentor-profile-pill .avatar,
.mentor-profile-card .avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid #111827;
  border-radius: 50%;
  background: #111827;
}

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

.mentor-profile-card .avatar {
  width: 72px;
  height: 72px;
}

.mentor-profile-pill img,
.mentor-profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mentor-profile-pill strong,
.mentor-profile-pill small {
  display: block;
  white-space: nowrap;
}

.mentor-profile-pill strong {
  font-size: 12px;
  font-weight: 950;
}

.mentor-profile-pill small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.mentor-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.mentor-summary-card {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 18px;
}

.mentor-summary-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: rgba(108, 60, 255, 0.12);
  border-radius: 16px;
  font-size: 11px;
  font-weight: 950;
}

.mentor-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.mentor-summary-card strong {
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.mentor-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.mentor-panel {
  min-width: 0;
  padding: 20px;
}

.mentor-panel-wide {
  grid-row: span 2;
}

.mentor-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.mentor-panel-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
}

.mentor-session-list,
.mentor-booking-list,
.mentor-client-list,
.mentor-review-list,
.mentor-resource-list,
.mentor-timeline,
.mentor-profile-overview {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.mentor-session-card,
.mentor-compact-row,
.mentor-timeline-item,
.mentor-review-card,
.mentor-profile-card,
.mentor-resource-list li {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(135, 143, 156, 0.15);
  border-radius: 18px;
}

.mentor-session-card,
.mentor-compact-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.mentor-session-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.mentor-session-card strong,
.mentor-compact-row strong,
.mentor-timeline-item strong,
.mentor-review-card strong,
.mentor-profile-card h3,
.mentor-resource-list li strong {
  color: var(--text);
  font-weight: 950;
}

.mentor-session-card small,
.mentor-compact-row small,
.mentor-timeline-item small,
.mentor-review-card small,
.mentor-profile-card p,
.mentor-profile-card small,
.mentor-resource-list li small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.mentor-session-card > span,
.mentor-compact-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.mentor-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--accent);
  background: rgba(108, 60, 255, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.mentor-status-pill.green {
  color: #047857;
  background: rgba(16, 185, 129, 0.13);
}

.mentor-status-pill.gold {
  color: #a16207;
  background: rgba(245, 158, 11, 0.15);
}

.mentor-status-pill.red {
  color: #b42318;
  background: rgba(244, 63, 94, 0.14);
}

.mentor-status-pill.purple {
  color: var(--accent);
  background: rgba(108, 60, 255, 0.12);
}

.mentor-timeline {
  position: relative;
}

.mentor-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 46px;
  width: 1px;
  background: rgba(108, 60, 255, 0.18);
}

.mentor-timeline-item {
  position: relative;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
}

.mentor-timeline-item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 42px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 3px solid var(--platform-card-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(108, 60, 255, 0.12);
}

.mentor-timeline-item time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.mentor-review-card p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.mentor-resource-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mentor-resource-list li,
.mentor-resource-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.mentor-resource-list li {
  grid-template-columns: 44px minmax(0, 1fr);
}

.mentor-resource-list li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
  background: rgba(108, 60, 255, 0.12);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 950;
}

.mentor-empty-state {
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  border: 1px dashed rgba(135, 143, 156, 0.28);
  border-radius: 18px;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.mentor-profile-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.mentor-profile-card h3 {
  margin: 0;
  font-size: 21px;
}

.mentor-profile-card p {
  margin: 5px 0 0;
}

.mentor-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mentor-profile-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(108, 60, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

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

.admin-mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.admin-mini-metrics span {
  padding: 7px 10px;
  color: var(--text);
  background: rgba(108, 60, 255, 0.09);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.admin-feedback-card {
  min-height: 150px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.link-button {
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.clear-chat-button {
  min-height: 34px;
  padding: 0 12px;
  color: #8a3f3f;
  background: #fff5f5;
  border: 1px solid #ffdada;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.clear-chat-button:hover {
  color: #732f2f;
  background: #fff0f0;
}

.section-note {
  margin-bottom: 14px;
  font-size: 13px;
}

.compact-list,
.status-list,
.check-list,
.timeline-list,
.resource-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.compact-list em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.rank {
  font-weight: 900;
}

.status-list {
  display: grid;
  gap: 11px;
}

.status-list li {
  display: grid;
  grid-template-columns: 19px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.status-list.large li {
  padding: 12px;
  background: #fbfbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-list.large strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.status-list.large .badge {
  justify-self: end;
  white-space: nowrap;
}

.check {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.badge,
.soft-badge {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.required,
.soft-badge {
  color: #4b4584;
  background: #ece9ff;
}

.badge.recommended {
  color: #2d6f55;
  background: #e4f4ee;
}

.badge.progress {
  color: #906821;
  background: var(--gold-soft);
}

.mini-progress {
  height: 10px;
  margin: 10px 0 14px;
  overflow: hidden;
  background: #ecebfa;
  border-radius: 999px;
}

.mini-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: inherit;
}

.two-col {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
}

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

.metric-grid {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  margin-top: 18px;
}

.metric-card {
  padding: 16px;
  background: #fbfbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  font-size: 23px;
}

.chart-subtitle {
  margin-top: 4px;
}

.growth-chart {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.chart-y-label {
  align-self: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.bar-chart {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
  height: 210px;
  padding: 18px 4px 0;
  border-bottom: 1px solid var(--line);
}

.bar-item {
  display: grid;
  grid-template-rows: 20px minmax(0, 1fr) 30px;
  justify-items: center;
  align-items: end;
  flex: 0 1 48px;
  min-width: 42px;
  height: 100%;
}

.bar-value,
.bar-x-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.bar-fill {
  display: block;
  width: min(100%, 30px);
  min-height: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(128, 104, 241, 0.92), rgba(91, 123, 245, 0.74) 54%, rgba(7, 128, 154, 0.58));
  border: 1px solid rgba(128, 104, 241, 0.26);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 12px 24px rgba(91, 82, 190, 0.16);
  transform-origin: bottom;
}

.bar-x-label {
  align-self: start;
  margin-top: 8px;
  white-space: nowrap;
}

.bar-item:nth-child(1) { --bar-delay: 0ms; }
.bar-item:nth-child(2) { --bar-delay: 90ms; }
.bar-item:nth-child(3) { --bar-delay: 180ms; }
.bar-item:nth-child(4) { --bar-delay: 270ms; }
.bar-item:nth-child(5) { --bar-delay: 360ms; }
.bar-item:nth-child(6) { --bar-delay: 450ms; }

.growth-chart.is-animating .bar-fill {
  animation: barRise 850ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
  animation-delay: var(--bar-delay, 0ms);
}

@keyframes barRise {
  from {
    opacity: 0.28;
    transform: scaleY(0.04);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 980px) {
  .admin-summary-grid,
  .admin-two-column,
  .admin-data-grid,
  .admin-feedback-grid,
  .admin-toolbar,
  .mentor-summary-grid,
  .mentor-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-heading,
  .mentor-dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-preview-actions,
  .mentor-top-actions {
    justify-content: flex-start;
  }

  .mentor-session-card,
  .mentor-compact-row,
  .mentor-profile-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .mentor-session-card > span,
  .mentor-compact-row > span {
    white-space: normal;
  }

  .admin-preview-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .status-list.large li {
    grid-template-columns: 19px minmax(0, 1fr);
  }

  .status-list.large .badge {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-info-copy.is-revealing h1,
  .page-info-copy.is-revealing p {
    animation: none;
  }

  .growth-chart.is-animating .bar-fill {
    animation: none;
  }

  .dashboard-analytics-grid.is-animating .opportunity-bar span,
  .dashboard-analytics-grid.is-animating .opportunity-bar strong,
  .dashboard-analytics-grid.is-animating .trend-area,
  .dashboard-analytics-grid.is-animating .trend-line,
  .dashboard-analytics-grid.is-animating .trend-points circle,
  .dashboard-analytics-grid.is-animating .trend-chip,
  .dashboard-analytics-grid.is-animating .trend-labels span,
  .dashboard-analytics-grid.is-animating .channel-donut,
  .dashboard-analytics-grid.is-animating .channel-legend li {
    animation: none;
  }

  .dashboard-analytics-grid.is-animating .trend-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li,
.resource-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  line-height: 1.55;
}

.check-list li::before,
.resource-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
}

.check-list li::after,
.resource-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 5px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.warning-card {
  background: linear-gradient(150deg, #fff, var(--gold-soft));
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.timeline-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 900;
}

.timeline-list p {
  margin-bottom: 0;
  font-size: 13px;
}

.culture-card {
  min-height: 180px;
}

.culture-card .large-icon {
  margin-bottom: 18px;
}

.split-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.split-list ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.filter-bar {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.filter-bar label {
  min-width: 190px;
  flex: 1;
}

.advisor-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.advisor-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.advisor-photo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: linear-gradient(140deg, var(--navy), var(--accent));
  border-radius: 50%;
  font-weight: 900;
}

.advisor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.role-tag {
  display: inline-block;
  padding: 5px 8px;
  color: #4b4584;
  background: #f0edff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.connect-button {
  min-height: 36px;
  padding: 0 14px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.mentor-page-heading {
  margin-bottom: 22px;
}

.mentor-page-heading h1 {
  margin-bottom: 6px;
  font-family: inherit;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.1;
}

.mentor-layout {
  --mentor-panel-width: clamp(430px, 34vw, 500px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--mentor-panel-width);
  gap: 18px;
  align-items: start;
  transition: grid-template-columns 220ms linear;
}

.mentor-layout.panel-closed {
  grid-template-columns: minmax(0, 1fr);
}

.mentor-layout.panel-closed .mentor-booking-panel {
  display: none;
}

.mentor-directory,
.mentor-list {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.mentor-list {
  transition: opacity 180ms ease-out;
}

.mentor-filter-bar {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(130px, 0.9fr) minmax(132px, 0.75fr) minmax(200px, 1.2fr);
  gap: 12px;
  align-items: center;
}

.mentor-filter-bar select,
.mentor-filter-bar input,
.mentor-filter-button {
  min-height: 42px;
  color: #55577e;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #deddf0;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(30, 28, 93, 0.04);
  font-size: 13px;
  font-weight: 800;
}

.mentor-filter-button {
  padding: 0 14px;
}

.mentor-search {
  display: block;
  position: relative;
}

.mentor-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  width: 17px;
  height: 17px;
  color: #777b9f;
  pointer-events: none;
  transform: translateY(-50%);
}

.mentor-search input {
  padding-left: 42px;
}

.mentor-card {
  display: grid;
  grid-template-columns: 162px minmax(0, 1fr) minmax(196px, 212px);
  grid-template-rows: auto 1fr auto;
  column-gap: 24px;
  row-gap: 10px;
  align-items: start;
  padding: 16px;
  min-height: 182px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e0dff0;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(30, 28, 93, 0.06);
  backface-visibility: hidden;
  transform-origin: center left;
  transition: border-color 220ms ease, box-shadow 220ms ease, opacity 240ms ease, transform 280ms ease;
  will-change: opacity, transform;
}

.mentor-card.selected {
  border-color: rgba(128, 104, 241, 0.42);
  box-shadow: 0 18px 42px rgba(80, 70, 170, 0.11);
}

.mentor-card-scroll {
  opacity: 0.62;
  transform: translateY(6px);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 360ms ease,
    transform 360ms ease;
  transition-delay: var(--mentor-scroll-delay, 0ms);
}

.mentor-card-scroll.is-scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

.mentor-list.is-panel-opening {
  animation: mentor-list-fade 180ms ease-out both;
}

.mentor-list.is-panel-closing {
  animation: mentor-list-fade 180ms ease-out both;
}

@keyframes mentor-list-fade {
  from {
    opacity: 0.9;
  }

  to {
    opacity: 1;
  }
}

.mentor-photo {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  justify-self: start;
  display: grid;
  place-items: center;
  width: 148px;
  height: 150px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 27%, rgba(255, 255, 255, 0.9) 0 16px, transparent 17px),
    linear-gradient(160deg, #e9ecf8 0 36%, #afb7d2 37% 100%);
  border-radius: 8px;
}

.mentor-card-body {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 0;
}

.mentor-photo::before {
  content: "";
  position: absolute;
  inset: 54px 38px -20px;
  background: linear-gradient(145deg, #171f3e, #263a67);
  border-radius: 999px 999px 22px 22px;
}

.mentor-photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

.mentor-photo.has-image {
  background: #f6f5ff;
}

.mentor-photo.has-image::before,
.mentor-photo.has-image span {
  display: none;
}

.mentor-photo span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -34px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  font-weight: 950;
}

.mentor-photo em {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 9px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(30, 28, 93, 0.12);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.mentor-photo-blue {
  background:
    radial-gradient(circle at 50% 27%, rgba(255, 255, 255, 0.9) 0 16px, transparent 17px),
    linear-gradient(160deg, #edf3ff 0 36%, #9db1d7 37% 100%);
}

.mentor-photo-rose {
  background:
    radial-gradient(circle at 50% 27%, rgba(255, 255, 255, 0.9) 0 16px, transparent 17px),
    linear-gradient(160deg, #fff0f4 0 36%, #cba7b0 37% 100%);
}

.mentor-card-title h2 {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 4px;
  font-size: 22px;
}

.mentor-card-title p {
  margin-bottom: 0;
  color: var(--navy);
  font-weight: 850;
  line-height: 1.35;
}

.mentor-card-title strong {
  display: block;
  margin-top: 2px;
  color: #4f5278;
  font-size: 13px;
}

.verified-mark {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 10px;
}

.mentor-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
  color: #72769c;
  font-size: 12px;
  font-weight: 750;
}

.mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mentor-tag {
  padding: 6px 9px;
  color: #654bea;
  background: #f0edff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.mentor-description {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.55;
}

.mentor-card-stats {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(54px, 1fr));
  gap: 8px;
  align-self: start;
  justify-self: end;
  width: min(100%, 156px);
  padding-top: 0;
  color: #565a86;
  text-align: center;
}

.mentor-card-stats span {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: 7px 5px;
  background: #fbfaff;
  border: 1px solid #eceafb;
  border-radius: 9px;
}

.mentor-card-stats strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
}

.mentor-card-stats small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
}

.mentor-card-actions {
  grid-column: 3;
  grid-row: 3;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-self: end;
  justify-self: end;
  flex-wrap: nowrap;
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

.mentor-card-actions .connect-button,
.mentor-card-actions .mentor-details-button {
  font-size: 11px;
}

.connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 38px;
  padding: 0 12px;
  background: linear-gradient(135deg, #6f49f5, #4c2fe1);
  line-height: 1;
  white-space: nowrap;
}

.connect-button.connected {
  color: #654bea;
  background: #eee9ff;
}

.mentor-details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #deddf0;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.mentor-booking-panel {
  position: fixed;
  top: calc(var(--topbar-height) + 10px);
  right: 28px;
  z-index: 60;
  width: var(--mentor-panel-width);
  display: grid;
  gap: 10px;
  max-height: calc(100vh - var(--topbar-height) - 20px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0dff0;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(30, 28, 93, 0.08);
  font-size: 11px;
  transform-origin: top right;
  will-change: opacity, transform;
}

.mentor-booking-panel.is-opening {
  animation: mentor-panel-enter 260ms ease-out both;
}

.mentor-booking-panel.is-closing {
  animation: mentor-panel-exit 180ms ease-out both;
}

@keyframes mentor-panel-enter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mentor-panel-exit {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(14px);
  }
}

.booking-header,
.calendar-header,
.booking-profile-stats,
.meeting-details {
  display: flex;
  align-items: center;
}

.booking-header {
  justify-content: space-between;
}

.booking-header h2 {
  margin-bottom: 0;
  font-size: 14px;
}

.booking-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #656995;
  background: transparent;
  border: 0;
  font-size: 24px;
}

.booking-close svg,
.signup-prompt-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.booking-profile-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 118px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fbfbff;
  border: 1px solid #e5e4f3;
  border-radius: 10px;
}

.booking-photo {
  width: 54px;
  height: 54px;
}

.booking-photo::before,
.booking-photo em {
  display: none;
}

.booking-photo span {
  width: 38px;
  height: 38px;
  margin-top: 0;
}

.booking-profile-card h3,
.meeting-summary h3 {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.2;
}

.booking-profile-card p,
.booking-profile-card small {
  display: block;
  color: #52567d;
  font-size: 10px;
  line-height: 1.25;
}

.booking-profile-card em {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 7px;
  color: #257543;
  background: #ddf5e6;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.booking-profile-stats {
  justify-content: space-around;
  border-left: 1px solid #e0dff0;
  text-align: center;
}

.booking-profile-stats strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.booking-profile-stats small {
  color: var(--muted);
  font-size: 9px;
}

.booking-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-timezone {
  display: grid;
  gap: 5px;
}

.booking-timezone span,
.booking-controls label span,
.booking-times span,
.calendar-header span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.booking-timezone strong {
  color: var(--navy);
  font-size: 11px;
}

.booking-timezone button {
  justify-self: end;
  margin-top: -24px;
  color: #654bea;
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 900;
}

.booking-controls select {
  min-height: 36px;
  font-size: 10px;
}

.booking-calendar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 0;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 248, 255, 0.94));
  border: 1px solid #e3e2f2;
  border-radius: 12px;
}

.booking-calendar {
  min-width: 0;
  padding-right: 12px;
}

.calendar-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-header strong {
  color: var(--navy);
  font-size: 12px;
}

.calendar-month-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-month-controls button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #654bea;
  background: #fff;
  border: 1px solid #dedbf4;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(30, 28, 93, 0.05);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.calendar-month-controls button:disabled {
  color: #b3b0ca;
  background: #f4f3fa;
  box-shadow: none;
  cursor: not-allowed;
}

.calendar-month-controls button:not(:disabled):hover {
  color: #fff;
  background: #654bea;
  border-color: #654bea;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}

.calendar-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.calendar-days button {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 24px;
  color: #61658e;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 850;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.calendar-days button.is-muted {
  color: #b2b5cb;
  background: transparent;
  cursor: default;
}

.calendar-days button:not(:disabled):hover,
.booking-times button:hover {
  color: #4c2fe1;
  background: #f2efff;
}

.calendar-days button.selected {
  color: #fff;
  background: linear-gradient(135deg, #7d55f5, #4c2fe1);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(101, 75, 234, 0.25);
}

.booking-times {
  box-sizing: border-box;
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  max-width: 100%;
  max-height: 222px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-left: 12px;
  padding-right: 4px;
  border-left: 1px solid #deddea;
  scrollbar-color: #bcb4ef transparent;
  scrollbar-width: thin;
}

.booking-times::-webkit-scrollbar {
  width: 6px;
}

.booking-times::-webkit-scrollbar-thumb {
  background: #c4bdf0;
  border-radius: 999px;
}

.booking-times::-webkit-scrollbar-track {
  background: transparent;
}

.booking-times small {
  margin-top: -2px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
}

.booking-times button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 29px;
  padding: 0 6px;
  color: #565a86;
  background: #fff;
  border: 1px solid #dddaf4;
  border-radius: 7px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-times button.selected {
  color: #4c2fe1;
  border-color: #7d55f5;
  box-shadow: 0 0 0 3px rgba(125, 85, 245, 0.12);
}

.meeting-summary {
  position: relative;
  z-index: 1;
  padding: 10px;
  background: #fbfbff;
  border: 1px solid #e5e4f3;
  border-radius: 10px;
}

.meeting-details {
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
}

.meeting-details span {
  flex: 1;
  padding-right: 12px;
  border-right: 1px solid #e0dff0;
}

.meeting-details span:last-child {
  border-right: 0;
}

.meeting-details strong,
.meeting-details small {
  display: block;
}

.meeting-details strong {
  color: var(--navy);
  font-size: 11px;
}

.meeting-details small {
  color: var(--muted);
  font-size: 9px;
}

.schedule-button {
  width: 100%;
  min-height: 38px;
  color: #fff;
  background: linear-gradient(135deg, #6f49f5, #4c2fe1);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(101, 75, 234, 0.28);
  font-size: 11px;
  font-weight: 950;
}

.meeting-summary p {
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.advisor-detail-panel {
  position: relative;
  display: grid;
  gap: 10px;
}

.advisor-detail-close {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
}

.advisor-detail-hero {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: center;
  padding-right: 10px;
}

.advisor-detail-photo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
}

.advisor-detail-photo::before {
  inset: 48px 27px -16px;
}

.advisor-detail-photo em {
  display: none;
}

.advisor-detail-photo span {
  width: 34px;
  height: 34px;
  margin-top: -14px;
}

.advisor-detail-identity {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.availability-pill {
  width: fit-content;
  margin: 0;
  padding: 4px 8px;
  color: #168448;
  background: #dff8e8;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.advisor-detail-identity h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.1;
}

.advisor-detail-identity strong {
  color: var(--navy);
  font-size: 11px;
}

.advisor-detail-identity span:not(.mentor-tag) {
  color: #60638a;
  font-size: 10px;
  font-weight: 750;
}

.advisor-detail-actions {
  display: grid;
  gap: 8px;
}

.detail-primary-button,
.detail-secondary-button {
  min-height: 36px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.detail-primary-button {
  color: #fff;
  background: linear-gradient(135deg, #6f49f5, #4c2fe1);
  border: 0;
  box-shadow: 0 12px 22px rgba(101, 75, 234, 0.2);
}

.detail-secondary-button {
  color: #654bea;
  background: #fff;
  border: 1px solid rgba(101, 75, 234, 0.35);
}

.advisor-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 0;
  background: #fff;
  border: 1px solid #e0dff0;
  border-radius: 10px;
}

.advisor-detail-stats span {
  display: grid;
  gap: 3px;
  padding: 0 10px;
  border-right: 1px solid #e7e6f2;
}

.advisor-detail-stats span:last-child {
  border-right: 0;
}

.advisor-detail-stats strong {
  color: #654bea;
  font-size: 16px;
  line-height: 1;
}

.advisor-detail-stats small {
  color: #565a86;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.35;
}

.advisor-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0dff0;
  border-radius: 10px;
}

.advisor-detail-grid section {
  padding: 10px;
  border-right: 1px solid #e7e6f2;
  border-bottom: 1px solid #e7e6f2;
}

.advisor-detail-grid section:nth-child(2n) {
  border-right: 0;
}

.advisor-detail-grid section:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.advisor-detail-panel h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 12px;
}

.advisor-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.advisor-detail-pills span {
  padding: 4px 7px;
  color: #55577e;
  background: #f1effa;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
}

.market-pills span {
  background: #f7f6ff;
  border: 1px solid #ece9ff;
}

.advisor-availability-list {
  display: grid;
  gap: 9px;
}

.advisor-availability-list span {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.advisor-availability-list small {
  color: #72769c;
  font-size: 10px;
  font-weight: 850;
}

.advisor-availability-list strong {
  color: #4e5176;
  font-size: 11px;
}

.advisor-detail-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 10px;
}

.advisor-detail-copy-grid p,
.advisor-detail-copy-grid li {
  color: #4f5278;
  font-size: 10px;
  line-height: 1.35;
}

.advisor-detail-copy-grid p,
.advisor-detail-copy-grid ul {
  margin: 0;
}

.advisor-detail-copy-grid ul {
  display: grid;
  gap: 5px;
  padding: 0;
  list-style: none;
}

.advisor-detail-copy-grid li {
  position: relative;
  padding-left: 14px;
}

.advisor-detail-copy-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #654bea;
  font-weight: 900;
}

.advisor-examples {
  display: grid;
  gap: 8px;
}

.advisor-examples-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.advisor-examples-header h3 {
  margin: 0;
}

.advisor-examples-header button {
  color: #654bea;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 900;
}

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

.advisor-example-grid article {
  display: grid;
  gap: 4px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e0dff0;
  border-radius: 8px;
}

.advisor-example-grid h4 {
  margin: 0;
  color: var(--navy);
  font-size: 11px;
  line-height: 1.25;
}

.advisor-example-grid span {
  width: fit-content;
  padding: 4px 7px;
  color: #654bea;
  background: #f0edff;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 900;
}

.advisor-example-grid p {
  margin: 0;
  color: #60638a;
  font-size: 9px;
  line-height: 1.3;
}

.advisor-example-grid small {
  color: #777b9c;
  font-size: 10px;
  font-weight: 850;
}

.roadmap-shell {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.step-tracker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.step {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.step span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--accent);
  background: #fff;
  border: 2px solid #cbc6f8;
  border-radius: 50%;
  font-weight: 900;
}

.step.active {
  color: var(--text);
}

.step.active span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.current-step {
  padding: 22px;
  background: #fbfbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resources-panel {
  align-self: start;
}

.resource-list {
  display: grid;
  gap: 14px;
}

.partner-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.partner-kpi-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.partner-kpi-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--accent);
  background: #f0edff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
}

.partner-kpi-icon.blue {
  color: #2875d9;
  background: #eaf3ff;
}

.partner-kpi-icon.green {
  color: #239160;
  background: #e9f8ef;
}

.partner-kpi-icon.gold {
  color: #c47a16;
  background: #fff4df;
}

.partner-kpi-icon.purple {
  color: var(--accent);
  background: #eee9ff;
}

.partner-kpi-card p,
.partner-kpi-card em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.partner-kpi-card strong {
  display: block;
  margin: 3px 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.partner-match-toolbar {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.8fr 1fr auto auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px 18px;
}

.partner-match-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.partner-match-toolbar label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.partner-match-toolbar select,
.partner-match-toolbar input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(135, 143, 156, 0.22);
  border-radius: 8px;
  outline: 0;
}

.partner-match-search {
  position: relative;
}

.partner-match-search svg {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.partner-match-search input {
  padding-left: 38px;
}

.partner-match-action,
.partner-match-add {
  min-height: 44px;
  white-space: nowrap;
}

.partner-match-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.trend-negative {
  color: #c95c50 !important;
}

.partner-match-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.86fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.partner-match-table-card {
  min-width: 0;
  padding: 0;
  overflow-x: auto;
}

.partner-match-table {
  display: grid;
  min-width: 1040px;
}

.partner-match-row {
  display: grid;
  grid-template-columns: 32px minmax(170px, 1fr) 90px minmax(150px, 0.9fr) minmax(145px, 0.85fr) minmax(130px, 0.75fr) minmax(140px, 0.75fr) minmax(170px, 0.9fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(135, 143, 156, 0.16);
}

.partner-match-row.selected {
  background: rgba(108, 60, 255, 0.06);
}

.partner-match-head {
  min-height: 44px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.partner-match-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.partner-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.partner-cell b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #172033;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 950;
}

.partner-cell strong,
.partner-match-row small {
  display: block;
}

.partner-cell strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.partner-match-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.match-score {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #1a8d60;
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid #59d996;
  border-radius: 50%;
  font-style: normal;
  font-weight: 950;
}

.match-score.good {
  color: #2c9168;
  border-color: #8be2ba;
}

.match-score.review {
  color: #b67711;
  border-color: #f0b84f;
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.match-tags em {
  padding: 5px 8px;
  color: var(--accent);
  background: rgba(108, 60, 255, 0.1);
  border-radius: 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.partner-match-row a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.match-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.match-actions button,
.partner-match-pagination button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(135, 143, 156, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.match-actions button:first-child,
.partner-match-pagination button:first-child {
  color: var(--accent);
  background: rgba(108, 60, 255, 0.08);
  border-color: rgba(108, 60, 255, 0.18);
}

.partner-match-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 1040px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.partner-match-pagination div {
  display: flex;
  gap: 6px;
}

.partner-selected-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.partner-selected-header,
.selected-partner-profile,
.selected-partner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.partner-selected-header h2,
.partner-outreach-card h2,
.partner-activity-card h2 {
  margin: 0;
}

.partner-selected-header span {
  padding: 6px 9px;
  color: #219263;
  background: rgba(47, 143, 104, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.selected-partner-profile {
  align-items: flex-start;
}

.selected-partner-profile b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  color: #fff;
  background: #121a2c;
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
}

.selected-partner-profile h3 {
  margin: 3px 0 4px;
  color: var(--text);
}

.selected-partner-profile p,
.selected-partner-profile small {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.selected-partner-profile > strong {
  color: #25a46f;
  font-size: 32px;
  text-align: right;
}

.selected-partner-profile > strong small {
  color: #25a46f;
  font-size: 11px;
  font-weight: 900;
}

.selected-partner-info,
.selected-documents {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(135, 143, 156, 0.16);
  border-radius: 12px;
}

.selected-partner-info {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.selected-partner-info h4,
.selected-documents h4 {
  margin: 0 0 8px;
  font-size: 12px;
}

.selected-partner-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.selected-partner-info dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.selected-partner-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.selected-partner-info dd {
  margin: 0;
  color: var(--text);
  font-weight: 850;
  text-align: right;
}

.selected-documents ul,
.partner-activity-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.selected-documents li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 820;
}

.selected-documents li::before {
  content: "x";
  color: #d65f5f;
  font-weight: 950;
}

.selected-documents li.done::before {
  content: "✓";
  color: #2f8f68;
}

.selected-documents button {
  min-height: 28px;
  color: var(--accent);
  background: rgba(108, 60, 255, 0.08);
  border: 1px solid rgba(108, 60, 255, 0.18);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
}

.selected-partner-stage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.selected-partner-stage span {
  position: relative;
  min-height: 58px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.selected-partner-stage span::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(135, 143, 156, 0.35);
  border-radius: 50%;
  transform: translateX(-50%);
}

.selected-partner-stage span.active::before {
  background: var(--accent);
}

.selected-partner-stage small {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.selected-partner-actions {
  align-items: stretch;
}

.selected-partner-actions button {
  flex: 1 1 0;
  min-height: 42px;
  padding-inline: 10px;
  white-space: nowrap;
}

.partner-match-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
}

.outreach-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.outreach-workspace-grid h4 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
}

.outreach-workspace-grid p {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}

.outreach-workspace-grid aside {
  display: grid;
  align-content: start;
  gap: 10px;
}

.outreach-workspace-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.outreach-workspace-grid select {
  min-height: 40px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(135, 143, 156, 0.2);
  border-radius: 8px;
}

.attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.attachment-list span {
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(135, 143, 156, 0.16);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 820;
}

.partner-activity-card li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(135, 143, 156, 0.16);
}

.partner-activity-card li:last-child {
  border-bottom: 0;
}

.partner-activity-card b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 10px;
}

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

.partner-activity-card strong {
  color: var(--text);
  font-size: 13px;
}

.partner-activity-card small,
.partner-activity-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.partner-pipeline-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.partner-board-card {
  min-width: 0;
  overflow-x: auto;
  padding: 0;
}

.partner-pipeline-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 12px;
  min-width: 1220px;
  padding: 0;
}

.partner-column {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 420px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
  border-right: 1px solid var(--line);
}

.partner-column:last-child {
  border-right: 0;
}

.partner-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding-bottom: 4px;
}

.partner-column h2 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.partner-column header span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.partner-column.new header span,
.partner-column.reviewing header span,
.partner-column.negotiating header span {
  color: #c47a16;
}

.partner-column.meeting header span {
  color: var(--green);
}

.partner-lead-card {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(30, 28, 93, 0.07);
}

.partner-lead-card.selected-card {
  border-color: rgba(128, 104, 241, 0.38);
  box-shadow: 0 16px 32px rgba(128, 104, 241, 0.12);
}

.partner-menu {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 24px;
  height: 24px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-weight: 950;
}

.partner-lead-card h3 {
  max-width: calc(100% - 28px);
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.partner-country {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.partner-lead-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.partner-lead-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.partner-lead-card dt,
.partner-lead-card dd {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
}

.partner-lead-card dt {
  color: var(--muted);
  font-weight: 850;
}

.partner-lead-card dd {
  color: var(--text);
  text-align: right;
  font-weight: 950;
}

.partner-lead-card button:not(.partner-menu),
.add-lead-button,
.partner-insights-panel button,
.partner-comparison-table button,
.upcoming-partner-meetings .card-header button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--accent);
  background: #fff;
  border: 1px solid rgba(128, 104, 241, 0.28);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 950;
}

.partner-lead-card button:not(.partner-menu):hover,
.partner-insights-panel button:hover,
.partner-comparison-table button:hover,
.upcoming-partner-meetings .card-header button:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.add-lead-button {
  color: var(--accent);
  background: transparent;
  border-style: dashed;
}

.partner-insights-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.partner-insights-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.partner-insights-header span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--navy));
  border-radius: 50%;
  font-size: 11px;
  font-weight: 950;
}

.partner-insights-header h2,
.partner-recommendation h3,
.partner-next-actions h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.partner-recommendation {
  display: grid;
  gap: 9px;
}

.partner-recommendation p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.partner-recommendation strong {
  justify-self: end;
  color: var(--green);
  font-size: 14px;
}

.partner-score-bar {
  height: 8px;
  overflow: hidden;
  background: #eef0f6;
  border-radius: 999px;
}

.partner-score-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #4a89ff);
  border-radius: inherit;
}

.partner-next-actions {
  display: grid;
  gap: 9px;
}

.partner-next-actions label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.partner-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.partner-comparison-table {
  min-width: 850px;
}

.partner-comparison-table td:first-child {
  color: var(--accent);
  font-weight: 950;
}

.upcoming-partner-meetings ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.upcoming-partner-meetings li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.upcoming-partner-meetings li span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
  background: #f0edff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 950;
}

.upcoming-partner-meetings strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.upcoming-partner-meetings em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.roadmap-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.roadmap-main-column,
.roadmap-side-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.roadmap-side-column {
  position: sticky;
  top: 20px;
}

.roadmap-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 18px;
}

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

.profile-pill-grid span {
  min-height: 74px;
  padding: 13px;
  color: var(--text);
  background: var(--roadmap-panel-bg);
  border: 1px solid var(--roadmap-panel-border);
  border-radius: 8px;
  line-height: 1.35;
}

.profile-pill-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.roadmap-chip,
.task-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.roadmap-chip.blue,
.task-status.progress {
  color: var(--roadmap-status-progress-text);
  background: var(--roadmap-status-progress-bg);
}

.roadmap-chip.green,
.task-status.complete {
  color: var(--roadmap-status-complete-text);
  background: var(--roadmap-status-complete-bg);
}

.roadmap-chip.red,
.task-status.blocked {
  color: var(--roadmap-status-blocked-text);
  background: var(--roadmap-status-blocked-bg);
}

.task-status.todo {
  color: var(--roadmap-neutral-text);
  background: var(--roadmap-neutral-bg);
}

.readiness-card {
  display: grid;
  align-content: space-between;
  min-height: 100%;
  background: linear-gradient(150deg, var(--card), var(--roadmap-panel-bg));
}

.readiness-score {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 54px;
  line-height: 0.95;
  font-weight: 950;
}

.readiness-card p {
  margin-bottom: 18px;
  font-weight: 850;
}

.readiness-card strong {
  color: var(--text);
}

.readiness-bar {
  height: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--roadmap-line-bg);
  border-radius: 999px;
}

.readiness-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: inherit;
}

.roadmap-progress-card {
  --roadmap-progress-navy: #17145c;
  --roadmap-progress-track: rgba(23, 20, 92, 0.12);
  --roadmap-progress-glow: rgba(23, 20, 92, 0.28);
  overflow: hidden;
  margin-bottom: 18px;
}

.roadmap-progress-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(104px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 12px 2px 4px;
}

.roadmap-line {
  position: absolute;
  top: 31px;
  left: 34px;
  right: 34px;
  height: 8px;
  min-width: 720px;
  overflow: hidden;
  background: var(--roadmap-progress-track);
  border: 1px solid var(--roadmap-progress-track);
  border-radius: 999px;
}

.roadmap-line span {
  display: block;
  height: 100%;
  background: var(--roadmap-progress-navy);
  border-radius: inherit;
  box-shadow: 0 0 18px var(--roadmap-progress-glow);
}

.roadmap-progress-card.is-animating .roadmap-line span {
  animation: roadmap-line-fill 950ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.roadmap-progress-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  min-width: 104px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
}

.roadmap-progress-step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--roadmap-step-text);
  background: var(--roadmap-step-bg);
  border: 2px solid var(--roadmap-step-border);
  border-radius: 50%;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(30, 28, 93, 0.08);
}

.roadmap-progress-card.is-animating .roadmap-progress-step {
  animation: roadmap-step-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.roadmap-progress-card.is-animating .roadmap-progress-step:nth-of-type(2) {
  animation-delay: 80ms;
}

.roadmap-progress-card.is-animating .roadmap-progress-step:nth-of-type(3) {
  animation-delay: 160ms;
}

.roadmap-progress-card.is-animating .roadmap-progress-step:nth-of-type(4) {
  animation-delay: 240ms;
}

.roadmap-progress-card.is-animating .roadmap-progress-step:nth-of-type(5) {
  animation-delay: 320ms;
}

.roadmap-progress-card.is-animating .roadmap-progress-step:nth-of-type(6) {
  animation-delay: 400ms;
}

.roadmap-progress-card.is-animating .roadmap-progress-step:nth-of-type(7) {
  animation-delay: 480ms;
}

.roadmap-progress-card.is-animating .roadmap-progress-step:nth-of-type(8) {
  animation-delay: 560ms;
}

.roadmap-progress-step.complete {
  color: var(--text);
}

.roadmap-progress-step.complete span {
  color: #fff;
  background: var(--roadmap-progress-navy);
  border-color: var(--roadmap-progress-navy);
  font-size: 18px;
}

.roadmap-progress-step.active {
  color: var(--text);
}

.roadmap-progress-step.active span {
  color: #fff;
  background: var(--roadmap-progress-navy);
  border-color: var(--roadmap-progress-navy);
  box-shadow: 0 0 0 6px rgba(23, 20, 92, 0.1), 0 10px 24px rgba(23, 20, 92, 0.18);
  transform: scale(1.04);
}

@keyframes roadmap-line-fill {
  from {
    width: 0;
  }
}

@keyframes roadmap-step-rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap-progress-card.is-animating .roadmap-line span,
  .roadmap-progress-card.is-animating .roadmap-progress-step {
    animation: none;
  }
}

@media (max-width: 1400px) {
  .dashboard-analytics-layout {
    grid-template-columns: 1fr;
  }

  .maria-insights-panel {
    position: static;
  }

  .maria-insight-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .maria-insight-list li {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

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

.roadmap-task-card {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--roadmap-step-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.roadmap-task-card.complete {
  border-left-color: var(--green);
}

.roadmap-task-card.progress {
  border-left-color: var(--accent);
}

.roadmap-task-card.blocked {
  border-left-color: #d65f5f;
}

.task-card-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.task-card-header h3 {
  margin-bottom: 5px;
}

.task-card-header p {
  margin-bottom: 0;
  font-size: 12px;
}

.task-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  font-weight: 950;
}

.task-checklist,
.action-list,
.blocker-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.task-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 950;
}

.task-checklist li.done::before {
  content: "\2713";
  color: #fff;
  background: var(--green);
}

.task-checklist li.doing::before {
  content: "";
  background: var(--accent);
  box-shadow: inset 0 0 0 5px rgba(128, 104, 241, 0.22);
}

.task-checklist li.todo::before {
  background: var(--roadmap-step-bg);
  border: 2px solid var(--roadmap-step-border);
}

.task-checklist li.blocked {
  color: var(--roadmap-status-blocked-text);
}

.task-checklist li.blocked::before {
  content: "!";
  color: #fff;
  background: #d65f5f;
}

.action-list {
  counter-reset: action;
}

.action-list li {
  position: relative;
  padding: 13px 13px 13px 48px;
  background: var(--roadmap-panel-bg);
  border: 1px solid var(--roadmap-panel-border);
  border-radius: 8px;
  line-height: 1.45;
}

.action-list li::before {
  counter-increment: action;
  content: counter(action);
  position: absolute;
  left: 13px;
  top: 13px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
}

.action-list strong,
.action-list span {
  display: block;
}

.action-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.blockers-card {
  border-color: var(--roadmap-blocker-border);
  background: var(--roadmap-blocker-card-bg);
}

.blocker-list li {
  position: relative;
  padding: 12px 12px 12px 38px;
  color: var(--roadmap-status-blocked-text);
  background: var(--roadmap-blocker-bg);
  border: 1px solid var(--roadmap-blocker-border);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.blocker-list li::before {
  content: "!";
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: #d65f5f;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 950;
}

.report-download-card {
  background: var(--roadmap-report-bg);
}

.download-icon,
.tip-icon {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 16px;
  padding: 0 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  border-radius: 8px;
  font-size: 12px;
  font-weight: 950;
}

.full-button {
  width: 100%;
}

.readiness-tip-card {
  display: flex;
  gap: 16px;
  align-items: start;
  background: var(--roadmap-tip-bg);
  border-color: var(--roadmap-tip-border);
}

.readiness-tip-card .tip-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--green), var(--accent));
}

.readiness-tip-card p {
  margin-bottom: 0;
}

.maria-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.maria-chat-layout,
.settings-stack {
  display: grid;
  gap: 18px;
}

.maria-chat-layout .chat-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: clamp(660px, calc(100vh - var(--topbar-height) - 46px), 820px);
  overflow: hidden;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.maria-chat-layout .chat-card.maria-empty-mode {
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.maria-empty-mode .maria-chat-toolbar,
.maria-empty-mode > .quick-prompts,
.maria-empty-mode > .chat-form {
  display: none;
}

.maria-chat-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.settings-maria-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(17, 20, 31, 0.46);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.settings-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.settings-modal-card {
  display: grid;
  gap: 22px;
  width: min(1480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  overflow: auto;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(24, 37, 53, 0.28);
  backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 200ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.settings-modal.open .settings-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.settings-modal-open {
  overflow: hidden;
}

.settings-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
}

.settings-modal-heading h1 {
  margin: 0 0 6px;
}

.settings-modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 37, 53, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(24, 37, 53, 0.08);
}

.settings-modal-close:hover,
.settings-modal-close:focus-visible {
  color: var(--accent);
  background: #f5f2ff;
  border-color: rgba(108, 60, 255, 0.22);
}

.settings-modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

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

.settings-control-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(24, 37, 53, 0.07);
}

.settings-control-card label,
.settings-control-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-control-card strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.settings-control-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.settings-control-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: #f0edff;
  border-radius: 14px;
}

.settings-control-icon svg {
  width: 20px;
  height: 20px;
}

.settings-control-card select {
  width: min(220px, 100%);
  height: 38px;
  padding: 0 34px 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(108, 60, 255, 0.18);
  border-radius: 10px;
  font-weight: 800;
}

.settings-modal .theme-toggle {
  justify-self: end;
  min-height: 38px;
}

@media (max-width: 860px) {
  .settings-modal {
    padding: 14px;
    align-items: stretch;
  }

  .settings-modal-card {
    width: 100%;
    max-height: calc(100vh - 28px);
    padding: 18px;
    border-radius: 22px;
  }

  .settings-quick-controls,
  .settings-modal .settings-dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-control-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .settings-modal .theme-toggle {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
  }

  .settings-modal .settings-subnav-card,
  .settings-modal .settings-detail-stack {
    max-height: none;
  }
}

.settings-dashboard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.settings-modal .settings-dashboard-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  min-height: 0;
}

.settings-subnav-card {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.settings-modal .settings-subnav-card {
  position: static;
  max-height: calc(100dvh - 178px);
  overflow: auto;
}

.settings-modal .settings-detail-stack {
  max-height: calc(100dvh - 178px);
  overflow: auto;
  padding-right: 4px;
}

.settings-subnav-card button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 850;
}

.settings-subnav-card button:hover,
.settings-subnav-card button.active {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(128, 104, 241, 0.14), rgba(128, 104, 241, 0.05));
}

.settings-subnav-card span,
.settings-card-icon,
.settings-preference-list span {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #f0edff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 950;
}

.settings-subnav-card span {
  width: 28px;
  height: 28px;
}

.settings-detail-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.settings-panel {
  display: none;
  gap: 18px;
  min-width: 0;
}

.settings-panel.active {
  display: grid;
  animation: settings-panel-in 180ms ease-out both;
}

@keyframes settings-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-panel.active {
    animation: none;
  }
}

.settings-detail-card {
  display: grid;
  gap: 22px;
  min-height: 0;
  padding: 24px 28px;
}

.settings-detail-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.settings-card-title {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.settings-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 12px;
}

.settings-card-title h2 {
  margin: 2px 0 4px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.settings-card-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.settings-edit-button {
  min-width: 64px;
  min-height: 38px;
  padding: 0 18px;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(128, 104, 241, 0.45);
  border-radius: 8px;
  font-weight: 900;
}

.settings-edit-button:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

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

.settings-info-grid div {
  min-width: 0;
}

.settings-info-grid dt {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.settings-info-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.settings-action-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: rgba(128, 104, 241, 0.08);
  border: 1px solid rgba(128, 104, 241, 0.16);
  border-radius: 18px;
}

.settings-action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: rgba(128, 104, 241, 0.12);
  border-radius: 14px;
}

.settings-action-icon svg {
  width: 20px;
  height: 20px;
}

.settings-action-card strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.settings-action-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.settings-preference-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.settings-preference-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
}

.settings-preference-list li:last-child {
  border-bottom: 0;
}

.settings-preference-list span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 9px;
}

.settings-preference-list strong {
  min-width: 0;
  font-weight: 900;
}

.settings-preference-list em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

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

.settings-form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.settings-form-grid input,
.settings-form-grid select {
  width: 100%;
  min-height: 42px;
  min-width: 0;
  padding: 0 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.settings-form-grid input:focus,
.settings-form-grid select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(128, 104, 241, 0.12);
}

.settings-maria-card .primary-button {
  min-height: 38px;
  padding: 0 18px;
  white-space: nowrap;
}

.settings-report-card .maria-report-grid {
  margin-top: 2px;
}

.maria-guide-card {
  position: sticky;
  top: 20px;
}

.maria-guide-card p {
  margin-bottom: 18px;
}

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

.full-button {
  width: 100%;
  margin-top: 18px;
}

.maria-output {
  display: grid;
  gap: 18px;
}

.maria-summary-card {
  min-height: auto;
}

.chat-window.maria-chat-window {
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.chat-window.maria-chat-window.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(24px, 5vw, 64px);
  background: transparent;
  border-radius: 0;
}

.maria-chat-layout .chat-card.maria-chat-transitioning {
  animation: maria-chat-card-reveal 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chat-window.maria-chat-window.maria-chat-transitioning .message {
  animation: maria-chat-message-reveal 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chat-window.maria-chat-window.maria-chat-transitioning .message:nth-child(2) {
  animation-delay: 70ms;
}

@keyframes maria-chat-card-reveal {
  from {
    opacity: 0.76;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes maria-chat-message-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .maria-chat-layout .chat-card.maria-chat-transitioning,
  .chat-window.maria-chat-window.maria-chat-transitioning .message {
    animation: none;
  }
}

.maria-empty-state {
  display: flex;
  justify-content: center;
  width: 100%;
}

.maria-empty-content {
  width: min(940px, 100%);
  text-align: center;
}

.maria-empty-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maria-empty-content h2 {
  margin: 0 0 34px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 850;
}

.maria-empty-composer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 12px 10px 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(128, 104, 241, 0.2);
  border-radius: 999px;
  box-shadow: 0 20px 55px rgba(30, 28, 93, 0.13);
}

.maria-empty-plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  background: #f0edff;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.maria-empty-composer input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.maria-empty-composer input:focus {
  outline: none;
}

.maria-empty-composer button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: #111318;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(17, 19, 24, 0.18);
}

.maria-empty-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.maria-empty-prompts button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(128, 104, 241, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.maria-empty-prompts button:hover {
  color: var(--accent);
  background: #f0edff;
}

.maria-report-card {
  overflow: hidden;
}

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

.maria-report-grid section {
  padding: 16px;
  background: #fbfbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.maria-report-grid section:first-child {
  grid-column: 1 / -1;
}

.maria-report-grid h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.report-list,
.numbered-report-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.55;
}

.report-list {
  list-style: disc;
}

.numbered-report-list {
  list-style: decimal;
}

.maria-report-grid .status-list li {
  align-items: start;
}

.maria-report-grid .status-list p {
  margin: 4px 0 0;
  font-size: 12px;
}

.profile-settings-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-settings-menu {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.profile-settings-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-weight: 850;
}

.profile-settings-menu button:hover,
.profile-settings-menu button.active {
  color: var(--accent);
  background: #f0edff;
}

.profile-settings-menu span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
  background: #fff;
  border: 1px solid #d9d5ff;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
}

.profile-settings-main {
  display: grid;
  gap: 18px;
}

.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.profile-photo-large {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  color: #fff;
  background: #0f1117;
  border: 3px solid #0f1117;
  border-radius: 50%;
  box-sizing: border-box;
  font-size: 22px;
  font-weight: 900;
  box-shadow: none;
  overflow: hidden;
}

.profile-photo-large img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.profile-photo-row h2 {
  margin-bottom: 5px;
}

.profile-photo-row p {
  margin-bottom: 12px;
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.about-card textarea {
  margin-top: 8px;
}

.char-count {
  align-self: start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 1300;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--navy));
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(30, 28, 93, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-weight: 850;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.profile-photo-cropper-modal {
  position: fixed;
  inset: 0;
  z-index: 2480;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 37, 53, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.profile-photo-cropper-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.profile-photo-cropper-card {
  width: min(430px, 100%);
  padding: 28px;
  color: var(--text);
  background: var(--main-panel-surface);
  border: 1px solid var(--main-panel-border);
  border-radius: 26px;
  box-shadow: 0 26px 76px rgba(24, 37, 53, 0.22);
  backdrop-filter: blur(22px);
  transform: translateY(12px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-photo-cropper-modal.open .profile-photo-cropper-card {
  transform: translateY(0) scale(1);
}

.profile-photo-cropper-heading h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.profile-photo-cropper-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.profile-photo-cropper-stage {
  display: grid;
  place-items: center;
  margin: 24px 0 20px;
}

.profile-photo-cropper-viewport {
  position: relative;
  width: min(270px, 68vw);
  aspect-ratio: 1;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(108, 60, 255, 0.09) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(108, 60, 255, 0.09) 25%, transparent 25%),
    #f8f7ff;
  background-size: 22px 22px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(108, 60, 255, 0.18),
    0 22px 46px rgba(24, 37, 53, 0.18);
  cursor: grab;
  touch-action: none;
}

.profile-photo-cropper-viewport.dragging {
  cursor: grabbing;
}

.profile-photo-cropper-viewport img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: 0 0;
  will-change: transform;
}

.profile-photo-zoom-control {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.profile-photo-zoom-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-photo-zoom-control input {
  width: 100%;
  min-height: auto;
  padding: 0;
  accent-color: var(--accent);
}

.profile-photo-cropper-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

:root[data-theme="dark"] .profile-photo-cropper-modal {
  background: rgba(0, 0, 0, 0.44);
}

:root[data-theme="dark"] .profile-photo-cropper-viewport {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.signup-prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 37, 53, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.signup-prompt-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.signup-prompt-card {
  position: relative;
  width: min(440px, 100%);
  padding: 30px;
  color: var(--text);
  background: var(--main-panel-surface);
  border: 1px solid var(--main-panel-border);
  border-radius: 26px;
  box-shadow: 0 26px 76px rgba(24, 37, 53, 0.22);
  backdrop-filter: blur(22px);
  transform: translateY(12px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.signup-prompt-modal.open .signup-prompt-card {
  transform: translateY(0) scale(1);
}

.signup-prompt-close {
  display: grid;
  place-items: center;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
}

.signup-prompt-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--accent);
  background: rgba(108, 60, 255, 0.1);
  border-radius: 20px;
}

.signup-prompt-icon svg {
  width: 28px;
  height: 28px;
}

.signup-prompt-card h2 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.signup-prompt-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.signup-prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.signup-prompt-actions .primary-button,
.signup-prompt-actions .secondary-button {
  min-height: 44px;
  text-decoration: none;
}

.chat-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.chat-card {
  min-height: 560px;
}

.chat-window {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: 360px;
  max-height: 430px;
  overflow: auto;
  padding: 4px;
}

.message {
  display: block;
  flex: 0 0 auto;
  align-self: flex-start;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 13px;
  overflow-wrap: break-word;
  white-space: normal;
  word-break: break-word;
}

.message.user {
  align-self: flex-end;
  color: var(--text);
  background: #eef0f4;
}

.message.ai {
  align-self: flex-start;
  background: #fbfbff;
  border: 1px solid var(--line);
}

.message > :first-child {
  margin-top: 0;
}

.message > :last-child {
  margin-bottom: 0;
}

.message.loading,
.floating-chat-bubble.loading {
  color: var(--accent);
}

.typing-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 10px 12px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  animation: maria-dot-bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes maria-dot-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-indicator span {
    animation: none;
  }
}

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

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.quick-prompts button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.send-button {
  min-width: 76px;
  color: #fff;
  background: var(--accent);
}

.chat-form input:disabled,
.floating-chat-form input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.send-button:disabled,
.clear-chat-button:disabled,
.quick-prompts button:disabled,
.floating-chat-form button:disabled,
.floating-chat-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.side-note {
  background: linear-gradient(150deg, #fff, #f5f2ff);
}

.floating-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: max-content;
  height: 50px;
  pointer-events: none;
}

.floating-chat.open {
  width: min(480px, calc(100vw - 32px));
  height: min(690px, calc(100vh - 88px));
}

.floating-chat.hidden-on-agent-page {
  display: none;
}

.floating-chat-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(480px, calc(100vw - 32px));
  height: min(690px, calc(100vh - 88px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(119, 92, 226, 0.24);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(31, 28, 70, 0.26);
  opacity: 0;
  pointer-events: none;
  transform-origin: right bottom;
  transform: translateY(12px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-chat.open .floating-chat-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-chat.open .floating-chat-toggle {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.floating-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #7432ec 0%, #6a35e8 48%, #7b48f1 100%);
}

.floating-chat-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.floating-chat-brand span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #7432ec;
  background: #fff;
  border-radius: 50%;
}

.floating-chat-brand svg {
  width: 19px;
  height: 19px;
}

.floating-chat-header h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.floating-chat-window-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.floating-chat-window-button,
.floating-chat-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transition: background 160ms ease, transform 160ms ease;
}

.floating-chat-window-button:hover,
.floating-chat-window-button:focus-visible,
.floating-chat-close:hover,
.floating-chat-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.floating-chat-close svg,
.floating-chat-window-button svg,
.floating-chat-attach svg,
.floating-chat-form button svg,
.floating-chat-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-chat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 58px;
  background: #fff;
  border-bottom: 1px solid #e6e8ef;
}

.floating-chat-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #73788b;
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 900;
}

.floating-chat-tabs button.active {
  color: #7432ec;
}

.floating-chat-tabs button.active::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: 0;
  left: 28%;
  height: 3px;
  background: #7432ec;
  border-radius: 999px 999px 0 0;
}

.floating-chat-tabs svg {
  width: 18px;
  height: 18px;
}

.maria-agent-label {
  display: block;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.floating-chat-workspace {
  display: grid;
  grid-template-columns: 305px minmax(0, 1fr);
  min-height: 0;
  background: #fff;
}

.floating-chat-workspace[hidden] {
  display: none;
}

.floating-chat-workspace.is-slide-from-right {
  animation: floatingPaneFromRight 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.floating-chat-workspace.is-slide-from-left {
  animation: floatingPaneFromLeft 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes floatingPaneFromRight {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatingPaneFromLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

.floating-team-workspace .floating-chat-sidebar {
  border-right: 0;
}

.floating-team-workspace .floating-chat-conversation {
  display: none;
}

.floating-team-workspace.show-thread .floating-chat-sidebar {
  display: none;
}

.floating-team-workspace.show-thread .floating-chat-conversation {
  display: grid;
}

.floating-chat-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 12px;
  background: #fff;
  border-right: 1px solid #e6e8ef;
}

.floating-chat-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  color: #a2a7b6;
  background: #fff;
  border: 1px solid #dfe3ec;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(29, 31, 48, 0.04);
  font-size: 14px;
  font-weight: 750;
}

.floating-chat-search svg {
  width: 18px;
  height: 18px;
}

.floating-chat-thread-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  margin-top: 10px;
  overflow-y: auto;
}

.floating-chat-thread {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 9px;
  color: #313548;
  background: transparent;
  border: 0;
  border-radius: 12px;
  text-align: left;
}

.floating-chat-thread.active {
  background: linear-gradient(135deg, rgba(116, 50, 236, 0.13), rgba(116, 50, 236, 0.04));
  box-shadow: inset 0 0 0 1px rgba(116, 50, 236, 0.1);
}

.floating-chat-thread strong {
  display: block;
  overflow: hidden;
  color: #202436;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-chat-thread small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #70778a;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-chat-thread em {
  align-self: start;
  color: #7d8294;
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
}

.floating-thread-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: #1f2435;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(31, 36, 53, 0.16);
  font-size: 13px;
  font-weight: 950;
}

.floating-thread-avatar.maria,
.floating-thread-avatar.purple {
  background: linear-gradient(135deg, #7432ec, #8d5cf4);
}

.floating-chat-conversation {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: #fff;
}

.floating-maria-workspace .floating-chat-conversation {
  grid-template-rows: minmax(0, 1fr) auto;
}

.floating-chat-contact {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid #e6e8ef;
}

.floating-team-workspace .floating-chat-contact {
  grid-template-columns: 34px 44px minmax(0, 1fr) 24px;
}

.floating-thread-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #6e7486;
  background: #f5f6fa;
  border: 1px solid #e0e4ee;
  border-radius: 50%;
}

.floating-thread-back svg {
  width: 18px;
  height: 18px;
}

.floating-chat-contact strong {
  display: block;
  color: #202436;
  font-size: 15px;
  font-weight: 950;
}

.floating-chat-contact small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #6e7486;
  font-size: 12px;
  font-weight: 780;
}

.floating-chat-contact small span {
  width: 7px;
  height: 7px;
  background: #2fbd68;
  border-radius: 50%;
}

.floating-chat-contact > svg {
  width: 22px;
  height: 22px;
  color: #6e7486;
}

.floating-chat-messages,
.floating-team-messages {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px;
  background: #fff;
}

.floating-chat-message {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  height: auto;
  max-height: none;
}

.floating-chat-message.assistant {
  justify-content: flex-start;
}

.floating-chat-message.user {
  justify-content: flex-end;
}

.floating-chat-bubble {
  display: block;
  flex: 0 1 auto;
  width: auto;
  max-width: 85%;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 9px 11px;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

.floating-chat-message.assistant .floating-chat-bubble {
  color: #4f5565;
  background: #f1f2f5;
  border: 0;
}

.floating-chat-message.user .floating-chat-bubble {
  color: #3a2e5f;
  background: #eee6ff;
}

.floating-chat-message.user .floating-chat-bubble,
.floating-chat-message.assistant .floating-chat-bubble {
  height: auto;
  min-height: 0;
  padding-block: 9px;
  line-height: 1.45;
}

.floating-chat-bubble ul,
.floating-chat-bubble ol {
  margin: 7px 0 0;
  padding-left: 17px;
  white-space: normal;
}

.floating-chat-bubble li {
  margin: 3px 0;
}

.floating-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #eef0f5;
}

.floating-chat-actions button {
  min-height: 28px;
  padding: 0 9px;
  color: #7432ec;
  background: #f8f5ff;
  border: 1px solid #e1d9ff;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 850;
}

.floating-chat-actions button:hover {
  color: var(--accent);
  background: #f0edff;
}

.floating-chat-actions .clear-chat-button {
  color: #8a3f3f;
  background: #fff5f5;
  border-color: #ffdada;
}

.floating-chat-actions .clear-chat-button:hover {
  color: #732f2f;
  background: #fff0f0;
}

.floating-chat-form {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border-top: 1px solid #e6e8ef;
  box-shadow: 0 -8px 24px rgba(24, 28, 46, 0.05);
}

.floating-chat-panel[data-floating-mode="chats"]:not(.team-thread-open) .floating-chat-form {
  display: none;
}

.floating-chat-form input {
  min-height: 50px;
  padding: 0 14px;
  color: #252a3a;
  background: #fff;
  border: 1px solid #dfe3ec;
  border-radius: 14px;
  box-shadow: none;
}

.floating-chat-attach,
.floating-chat-form button {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 0;
}

.floating-chat-attach {
  width: 42px;
  height: 42px;
  color: #646b7e;
  background: transparent;
  border-radius: 50%;
}

.floating-chat-send {
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(135deg, #7432ec, #6a35e8);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(116, 50, 236, 0.28);
}

.floating-chat-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 148px;
  height: 50px;
  padding: 0 18px;
  color: #fff;
  background: #121252;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(18, 18, 82, 0.26);
  pointer-events: auto;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.floating-chat-toggle:hover,
.floating-chat-toggle:focus-visible {
  background: #1d1d68;
  box-shadow: 0 20px 42px rgba(18, 18, 82, 0.32);
  transform: translateY(-2px);
}

.footer {
  padding: 28px 0 4px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

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

.card,
.dashboard-kpi-card,
.dashboard-chart-card,
.maria-insights-panel,
.advisor-card,
.mentor-card,
.roadmap-task-card,
.settings-detail-card,
.partner-kpi-card {
  background: var(--platform-card-surface);
  border: 1px solid var(--platform-card-border);
  border-radius: 24px;
  box-shadow: var(--platform-shadow);
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .page-info-bar {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .main-content {
  background: transparent;
  border-left: 0;
  box-shadow: none;
}

:root[data-theme="dark"] .page-info-bar::before {
  display: none;
  background: transparent;
}

:root[data-theme="dark"] .page-info-bar::after {
  display: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

:root[data-theme="dark"] .sidebar {
  color: #a6a8af;
  background: rgba(5, 6, 8, 0.97);
  border-color: transparent;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .nav-item {
  color: #a6a8af;
}

:root[data-theme="dark"] .nav-list {
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

:root[data-theme="dark"] .nav-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
}

:root[data-theme="dark"] .nav-item:hover,
:root[data-theme="dark"] .nav-item.active {
  color: #f4f2ff;
  background: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .nav-item.active::before {
  background: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .sidebar-active-indicator {
  background: #c8ccd4;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .nav-icon {
  color: inherit;
  border-color: transparent;
  background: transparent;
}

:root[data-theme="dark"] .nav-item.active .nav-icon,
:root[data-theme="dark"] .nav-item:hover .nav-icon {
  color: #f5f5f6;
}

:root[data-theme="dark"] .sidebar-submenu {
  color: #f5f5f6;
  background: transparent;
  border: 0;
  box-shadow: none;
}

:root[data-theme="dark"] .sidebar-submenu-list::before {
  background: rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .sidebar-submenu-list::after {
  background: #ffffff;
}

:root[data-theme="dark"] .sidebar-submenu-item {
  color: rgba(245, 245, 246, 0.58);
}

:root[data-theme="dark"] .sidebar-submenu-item:hover,
:root[data-theme="dark"] .sidebar-submenu-item:focus-visible,
:root[data-theme="dark"] .sidebar-submenu-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .sidebar-submenu-item:hover::before,
:root[data-theme="dark"] .sidebar-submenu-item:focus-visible::before,
:root[data-theme="dark"] .sidebar-submenu-item.active::before {
  background: transparent;
}

:root[data-theme="dark"] .sidebar-profile .profile-dropdown {
  color: #f5f5f6;
  background: rgba(5, 6, 8, 0.97);
  border: 0;
}

:root[data-theme="dark"] .sidebar-profile .profile-dropdown::before {
  background: rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .sidebar-profile .profile-dropdown button {
  color: rgba(245, 245, 246, 0.62);
  background: transparent;
}

:root[data-theme="dark"] .sidebar-profile .profile-dropdown button:hover,
:root[data-theme="dark"] .sidebar-profile .profile-dropdown button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
}

:root[data-theme="dark"] .sidebar-profile .logout-option {
  color: rgba(246, 205, 205, 0.82) !important;
}

:root[data-theme="dark"] .sidebar-profile .logout-option:hover,
:root[data-theme="dark"] .sidebar-profile .logout-option:focus-visible {
  color: #f9dada !important;
  background: rgba(246, 205, 205, 0.1) !important;
}

:root[data-theme="dark"] .admin-preview-banner,
:root[data-theme="dark"] .admin-summary-card,
:root[data-theme="dark"] .admin-panel,
:root[data-theme="dark"] .mentor-dashboard-hero,
:root[data-theme="dark"] .mentor-summary-card,
:root[data-theme="dark"] .mentor-panel {
  background: var(--platform-card-surface);
  border-color: var(--platform-card-border);
  box-shadow: var(--platform-shadow);
}

:root[data-theme="dark"] .mentor-icon-button,
:root[data-theme="dark"] .mentor-profile-pill,
:root[data-theme="dark"] .mentor-session-card,
:root[data-theme="dark"] .mentor-compact-row,
:root[data-theme="dark"] .mentor-timeline-item,
:root[data-theme="dark"] .mentor-review-card,
:root[data-theme="dark"] .mentor-profile-card,
:root[data-theme="dark"] .mentor-resource-list li,
:root[data-theme="dark"] .mentor-empty-state {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .mentor-profile-pill .avatar,
:root[data-theme="dark"] .mentor-profile-card .avatar {
  border-color: #f4f2ff;
}

:root[data-theme="dark"] .mentor-icon-button span {
  border-color: var(--sidebar);
}

:root[data-theme="dark"] .admin-list-row,
:root[data-theme="dark"] .admin-toolbar input,
:root[data-theme="dark"] .admin-toolbar select,
:root[data-theme="dark"] .admin-table input,
:root[data-theme="dark"] .admin-table select {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .admin-table th,
:root[data-theme="dark"] .admin-table td {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .page-info-mark-light {
  display: none;
}

:root[data-theme="dark"] .page-info-mark-dark {
  display: block;
}

:root[data-theme="dark"] .sidebar-profile .user-pill,
:root[data-theme="dark"] .topbar-profile .user-pill,
:root[data-theme="dark"] .profile-dropdown,
:root[data-theme="dark"] .notification-dropdown,
:root[data-theme="dark"] .combo-box,
:root[data-theme="dark"] .combo-menu,
:root[data-theme="dark"] select,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea {
  color: var(--text);
  background: rgba(7, 8, 10, 0.96);
  border-color: transparent;
}

:root[data-theme="dark"] .sidebar-profile .user-pill {
  background: transparent;
}

:root[data-theme="dark"] .avatar,
:root[data-theme="dark"] .profile-photo-large {
  background: #0f1117;
  border-color: #ffffff;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #858890;
}

:root[data-theme="dark"] .sidebar-profile .user-pill:hover,
:root[data-theme="dark"] .sidebar:hover .sidebar-profile .user-pill,
:root[data-theme="dark"] .sidebar:focus-within .sidebar-profile .user-pill,
:root[data-theme="dark"] .sidebar-profile.open .user-pill,
:root[data-theme="dark"] .topbar-profile .user-pill:hover,
:root[data-theme="dark"] .topbar-profile.open .user-pill,
:root[data-theme="dark"] .user-pill:hover,
:root[data-theme="dark"] .profile-menu.open .user-pill,
:root[data-theme="dark"] .profile-dropdown button:hover,
:root[data-theme="dark"] .profile-dropdown button:focus-visible,
:root[data-theme="dark"] .notification-item:hover,
:root[data-theme="dark"] .notification-item:focus-visible,
:root[data-theme="dark"] .notification-dropdown-header button:hover,
:root[data-theme="dark"] .notification-dropdown-header button:focus-visible,
:root[data-theme="dark"] .combo-option:hover,
:root[data-theme="dark"] .combo-option.active {
  color: #f5f5f6;
  background: rgba(166, 150, 236, 0.14);
  border-color: rgba(166, 150, 236, 0.28);
}

:root[data-theme="dark"] .sidebar-profile .user-pill:hover,
:root[data-theme="dark"] .sidebar:hover .sidebar-profile .user-pill,
:root[data-theme="dark"] .sidebar:focus-within .sidebar-profile .user-pill,
:root[data-theme="dark"] .profile-menu.sidebar-profile.open .user-pill {
  border-color: transparent;
}

:root[data-theme="dark"] .profile-menu-icon,
:root[data-theme="dark"] .notification-item span,
:root[data-theme="dark"] .shortcut-icon,
:root[data-theme="dark"] .large-icon,
:root[data-theme="dark"] .dashboard-kpi-icon,
:root[data-theme="dark"] .tip-icon {
  color: #e2dff9;
  background: rgba(166, 150, 236, 0.13);
  box-shadow: inset 0 0 0 8px rgba(166, 150, 236, 0.04);
}

:root[data-theme="dark"] .notification-dot {
  border-color: rgba(31, 32, 36, 0.96);
  box-shadow: 0 0 0 4px rgba(213, 94, 94, 0.16);
}

:root[data-theme="dark"] .settings-modal {
  background: rgba(7, 8, 12, 0.62);
}

:root[data-theme="dark"] .settings-modal-card,
:root[data-theme="dark"] .settings-control-card {
  color: var(--text);
  background: linear-gradient(180deg, rgba(37, 38, 42, 0.96), rgba(27, 28, 31, 0.94));
  border-color: transparent;
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .settings-modal-close {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .settings-modal-close:hover,
:root[data-theme="dark"] .settings-modal-close:focus-visible {
  color: #e2dff9;
  background: rgba(166, 150, 236, 0.14);
  border-color: rgba(166, 150, 236, 0.28);
}

:root[data-theme="dark"] .settings-control-icon {
  color: #e2dff9;
  background: rgba(166, 150, 236, 0.13);
}

:root[data-theme="dark"] .notification-dropdown-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .notification-dropdown-header h2,
:root[data-theme="dark"] .notification-item strong {
  color: #f4f2ff;
}

:root[data-theme="dark"] .notification-dropdown-header button {
  color: #e2dff9;
  background: rgba(166, 150, 236, 0.14);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .shortcut-grid,
:root[data-theme="dark"] .dashboard-kpi-card,
:root[data-theme="dark"] .partner-kpi-card,
:root[data-theme="dark"] .dashboard-chart-card,
:root[data-theme="dark"] .maria-insights-panel,
:root[data-theme="dark"] .advisor-card,
:root[data-theme="dark"] .mentor-card,
:root[data-theme="dark"] .mentor-booking-panel,
:root[data-theme="dark"] .booking-profile-card,
:root[data-theme="dark"] .advisor-detail-panel,
:root[data-theme="dark"] .roadmap-task-card,
:root[data-theme="dark"] .partner-lead-card,
:root[data-theme="dark"] .readiness-card,
:root[data-theme="dark"] .floating-chat-panel {
  color: var(--text);
  background: linear-gradient(180deg, rgba(37, 38, 42, 0.96), rgba(27, 28, 31, 0.94));
  border-color: transparent;
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .shortcut-card:hover,
:root[data-theme="dark"] .mentor-card.selected,
:root[data-theme="dark"] .profile-settings-menu button.active,
:root[data-theme="dark"] .profile-settings-menu button:hover,
:root[data-theme="dark"] .settings-subnav-card button.active,
:root[data-theme="dark"] .settings-subnav-card button:hover {
  color: #f5f5f6;
  background: rgba(166, 150, 236, 0.12);
  border-color: rgba(166, 150, 236, 0.24);
}

:root[data-theme="dark"] .dashboard-kpi-card h2 span,
:root[data-theme="dark"] .status-badge,
:root[data-theme="dark"] .tag,
:root[data-theme="dark"] .role-tag,
:root[data-theme="dark"] .advisor-pill,
:root[data-theme="dark"] .advisor-detail-chip,
:root[data-theme="dark"] .mentor-badge,
:root[data-theme="dark"] .advisor-language {
  color: #e2dff9;
  background: rgba(166, 150, 236, 0.12);
  border-color: rgba(166, 150, 236, 0.2);
}

:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .certificate-item,
:root[data-theme="dark"] .culture-tip,
:root[data-theme="dark"] .maria-report-section,
:root[data-theme="dark"] .maria-report-grid section,
:root[data-theme="dark"] .status-list.large li,
:root[data-theme="dark"] .filter-bar,
:root[data-theme="dark"] .trend-chip,
:root[data-theme="dark"] .trend-point-tooltip,
:root[data-theme="dark"] .mentor-card-stats span,
:root[data-theme="dark"] .mentor-photo-badge,
:root[data-theme="dark"] .booking-calendar-grid,
:root[data-theme="dark"] .calendar-month-controls button,
:root[data-theme="dark"] .calendar-days button,
:root[data-theme="dark"] .booking-times button,
:root[data-theme="dark"] .detail-secondary-button,
:root[data-theme="dark"] .advisor-detail-stats,
:root[data-theme="dark"] .advisor-detail-grid,
:root[data-theme="dark"] .advisor-detail-grid section,
:root[data-theme="dark"] .advisor-example-grid article,
:root[data-theme="dark"] .advisor-example-card,
:root[data-theme="dark"] .current-step,
:root[data-theme="dark"] .step span,
:root[data-theme="dark"] .roadmap-progress-step span,
:root[data-theme="dark"] .profile-settings-menu span,
:root[data-theme="dark"] .settings-subnav-card span,
:root[data-theme="dark"] .settings-card-icon,
:root[data-theme="dark"] .settings-preference-list span,
:root[data-theme="dark"] .roadmap-profile-pill,
:root[data-theme="dark"] .partner-column,
:root[data-theme="dark"] .partner-kpi-icon,
:root[data-theme="dark"] .upcoming-partner-meetings li span,
:root[data-theme="dark"] .meeting-summary,
:root[data-theme="dark"] .demo-access {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: transparent;
}

:root[data-theme="dark"] .mentor-filter-bar select,
:root[data-theme="dark"] .mentor-filter-bar input,
:root[data-theme="dark"] .mentor-filter-button,
:root[data-theme="dark"] .settings-form-grid input,
:root[data-theme="dark"] .settings-form-grid select {
  color: var(--text);
  background: rgba(31, 32, 36, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .partner-lead-card button:not(.partner-menu),
:root[data-theme="dark"] .add-lead-button,
:root[data-theme="dark"] .partner-insights-panel button,
:root[data-theme="dark"] .partner-comparison-table button,
:root[data-theme="dark"] .upcoming-partner-meetings .card-header button {
  color: #e2dff9;
  background: rgba(31, 32, 36, 0.92);
  border-color: rgba(166, 150, 236, 0.24);
}

:root[data-theme="dark"] .partner-score-bar {
  background: rgba(255, 255, 255, 0.09);
}

:root[data-theme="dark"] .partner-match-toolbar select,
:root[data-theme="dark"] .partner-match-toolbar input,
:root[data-theme="dark"] .outreach-workspace-grid select {
  color: var(--text);
  background: rgba(31, 32, 36, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .partner-match-row.selected {
  background: rgba(166, 150, 236, 0.1);
}

:root[data-theme="dark"] .partner-match-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .match-score,
:root[data-theme="dark"] .match-actions button,
:root[data-theme="dark"] .partner-match-pagination button,
:root[data-theme="dark"] .selected-partner-info,
:root[data-theme="dark"] .selected-documents,
:root[data-theme="dark"] .attachment-list span {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .match-tags em {
  color: #e2dff9;
  background: rgba(166, 150, 236, 0.13);
}

:root[data-theme="dark"] .partner-activity-card li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .calendar-days button.is-muted {
  color: #6f7279;
  background: transparent;
}

:root[data-theme="dark"] .calendar-days button.selected,
:root[data-theme="dark"] .calendar-day.is-selected,
:root[data-theme="dark"] .booking-times button.selected,
:root[data-theme="dark"] .step.active span {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

:root[data-theme="dark"] .roadmap-progress-step.complete span {
  color: #fff;
  background: var(--roadmap-progress-navy);
  border-color: var(--roadmap-progress-navy);
}

:root[data-theme="dark"] .roadmap-progress-step.active span {
  color: #fff;
  background: var(--roadmap-progress-navy);
  border-color: var(--roadmap-progress-navy);
}

:root[data-theme="dark"] .mentor-tag,
:root[data-theme="dark"] .market-pills span,
:root[data-theme="dark"] .advisor-example-grid span,
:root[data-theme="dark"] .connect-button.connected {
  color: #e2dff9;
  background: rgba(166, 150, 236, 0.12);
  border-color: rgba(166, 150, 236, 0.2);
}

:root[data-theme="dark"] .task-checklist li.todo::before {
  background: #202124;
  border-color: rgba(255, 255, 255, 0.18);
}

:root[data-theme="dark"] .profile-pill-grid span,
:root[data-theme="dark"] .action-list li {
  color: var(--text);
  background: var(--roadmap-panel-bg);
  border-color: var(--roadmap-panel-border);
}

:root[data-theme="dark"] .roadmap-chip.blue,
:root[data-theme="dark"] .task-status.progress {
  color: var(--roadmap-status-progress-text);
  background: var(--roadmap-status-progress-bg);
}

:root[data-theme="dark"] .task-status.todo {
  color: var(--roadmap-neutral-text);
  background: var(--roadmap-neutral-bg);
}

:root[data-theme="dark"] .roadmap-chip.green,
:root[data-theme="dark"] .task-status.complete {
  color: var(--roadmap-status-complete-text);
  background: var(--roadmap-status-complete-bg);
}

:root[data-theme="dark"] .readiness-card {
  background: linear-gradient(150deg, var(--card), var(--roadmap-panel-bg));
}

:root[data-theme="dark"] .readiness-bar {
  background: var(--roadmap-line-bg);
}

:root[data-theme="dark"] .task-checklist li.doing::before {
  background: var(--accent);
  box-shadow: inset 0 0 0 5px rgba(166, 150, 236, 0.24);
}

:root[data-theme="dark"] .task-checklist li.blocked {
  color: var(--roadmap-status-blocked-text);
}

:root[data-theme="dark"] .blocker-list li,
:root[data-theme="dark"] .roadmap-chip.red,
:root[data-theme="dark"] .task-status.blocked {
  color: var(--roadmap-status-blocked-text);
  background: var(--roadmap-status-blocked-bg);
  border-color: var(--roadmap-blocker-border);
}

:root[data-theme="dark"] .dashboard-kpi-card strong,
:root[data-theme="dark"] .total-budget strong,
:root[data-theme="dark"] .advisor-detail-stats strong,
:root[data-theme="dark"] .readiness-card strong {
  color: #c4baf3;
}

:root[data-theme="dark"] .primary-button,
:root[data-theme="dark"] .send-button,
:root[data-theme="dark"] .connect-button,
:root[data-theme="dark"] .schedule-button,
:root[data-theme="dark"] .floating-chat-form button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px rgba(128, 116, 221, 0.24);
}

:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .link-button,
:root[data-theme="dark"] .quick-prompts button,
:root[data-theme="dark"] .floating-chat-actions button,
:root[data-theme="dark"] .mentor-details-button,
:root[data-theme="dark"] .calendar-day,
:root[data-theme="dark"] .booking-time-button {
  color: #e5e5e7;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .quick-prompts button:hover,
:root[data-theme="dark"] .floating-chat-actions button:hover,
:root[data-theme="dark"] .calendar-day:hover,
:root[data-theme="dark"] .booking-time-button:hover,
:root[data-theme="dark"] .booking-time-button.active {
  color: #fff;
  background: rgba(166, 150, 236, 0.18);
  border-color: rgba(166, 150, 236, 0.36);
}

:root[data-theme="dark"] .clear-chat-button,
:root[data-theme="dark"] .floating-chat-actions .clear-chat-button {
  color: #f5c4c4;
  background: rgba(233, 129, 129, 0.1);
  border-color: rgba(233, 129, 129, 0.22);
}

:root[data-theme="dark"] .message.ai,
:root[data-theme="dark"] .floating-chat-message.assistant .floating-chat-bubble {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
}

:root[data-theme="dark"] .floating-chat-messages,
:root[data-theme="dark"] .floating-chat-actions,
:root[data-theme="dark"] .floating-chat-form {
  background: rgba(20, 21, 24, 0.96);
}

:root[data-theme="dark"] .floating-chat-header {
  background: linear-gradient(135deg, #7432ec 0%, #6a35e8 48%, #7b48f1 100%);
}

:root[data-theme="dark"] .floating-chat-panel,
:root[data-theme="dark"] .floating-chat-tabs,
:root[data-theme="dark"] .floating-chat-workspace,
:root[data-theme="dark"] .floating-chat-sidebar,
:root[data-theme="dark"] .floating-chat-conversation,
:root[data-theme="dark"] .floating-chat-contact,
:root[data-theme="dark"] .floating-chat-messages,
:root[data-theme="dark"] .floating-chat-actions,
:root[data-theme="dark"] .floating-chat-form {
  color: #202436;
  background: #fff;
}

:root[data-theme="dark"] .floating-chat-panel {
  border-color: rgba(119, 92, 226, 0.24);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .floating-chat-tabs,
:root[data-theme="dark"] .floating-chat-contact,
:root[data-theme="dark"] .floating-chat-form {
  border-color: #e6e8ef;
}

:root[data-theme="dark"] .floating-chat-sidebar {
  border-right-color: #e6e8ef;
}

:root[data-theme="dark"] .floating-chat-search,
:root[data-theme="dark"] .floating-chat-form input {
  color: #252a3a;
  background: #fff;
  border-color: #dfe3ec;
}

:root[data-theme="dark"] .floating-chat-tabs button,
:root[data-theme="dark"] .floating-chat-thread small,
:root[data-theme="dark"] .floating-chat-thread em,
:root[data-theme="dark"] .floating-chat-contact small {
  color: #70778a;
}

:root[data-theme="dark"] .floating-chat-tabs button.active,
:root[data-theme="dark"] .floating-chat-actions button {
  color: #7432ec;
}

:root[data-theme="dark"] .floating-chat-thread strong,
:root[data-theme="dark"] .floating-chat-contact strong {
  color: #202436;
}

:root[data-theme="dark"] .floating-chat-actions button {
  background: #f8f5ff;
  border-color: #e1d9ff;
}

:root[data-theme="dark"] .floating-chat-message.assistant .floating-chat-bubble {
  color: #4f5565;
  background: #f1f2f5;
}

:root[data-theme="dark"] .floating-chat-message.user .floating-chat-bubble {
  color: #3a2e5f;
  background: #eee6ff;
}

:root[data-theme="dark"] .floating-chat-attach {
  color: #646b7e;
  background: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .floating-chat-send {
  color: #fff;
  background: linear-gradient(135deg, #7432ec, #6a35e8);
  box-shadow: 0 10px 24px rgba(116, 50, 236, 0.28);
}

:root[data-theme="dark"] .chat-window.maria-chat-window.is-empty {
  background: transparent;
}

:root[data-theme="dark"] .maria-empty-composer,
:root[data-theme="dark"] .maria-empty-prompts button {
  color: var(--text);
  background: rgba(31, 32, 36, 0.84);
  border-color: transparent;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .maria-empty-composer button {
  color: #fff;
  background: #050608;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .channel-donut::before {
  background: #202124;
}

:root[data-theme="dark"] .scatter-chart {
  background:
    linear-gradient(to right, transparent 32%, rgba(255, 255, 255, 0.12) 32% 32.5%, transparent 32.5% 66%, rgba(255, 255, 255, 0.12) 66% 66.5%, transparent 66.5%),
    linear-gradient(to top, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 20%;
  border-left-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .opportunity-bars,
:root[data-theme="dark"] .growth-chart-area,
:root[data-theme="dark"] .readiness-track,
:root[data-theme="dark"] .roadmap-line {
  background: var(--roadmap-progress-track);
  border-color: var(--roadmap-step-border);
}

:root[data-theme="dark"] .roadmap-line {
  background: var(--roadmap-progress-track);
  border-color: var(--roadmap-progress-track);
}

:root[data-theme="dark"] .warning-card,
:root[data-theme="dark"] .blockers-card,
:root[data-theme="dark"] .roadmap-task-card.blocked {
  background: var(--roadmap-blocker-card-bg);
  border-color: var(--roadmap-blocker-border);
}

:root[data-theme="dark"] .readiness-tip-card {
  background: var(--roadmap-tip-bg);
  border-color: var(--roadmap-tip-border);
}

:root[data-theme="dark"] .report-download-card,
:root[data-theme="dark"] .side-note {
  background: var(--roadmap-report-bg);
}

:root[data-theme="dark"] .calendar-day.is-selected {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

:root[data-theme="dark"] .booking-times {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.home-workspace-shell {
  --home-ink: #182535;
  --home-muted: #667080;
  --home-panel: rgba(255, 255, 255, 0.9);
  --home-panel-strong: rgba(255, 255, 255, 0.94);
  --home-line: rgba(135, 143, 156, 0.22);
  --home-orange: #6c3cff;
  --home-orange-soft: #eeeaff;
  --home-purple: #8b70ff;
  --home-purple-soft: #ece7ff;
  --home-market-pink: #f9a8d4;
  --home-market-pink-soft: rgba(249, 168, 212, 0.18);
  --home-ease-blue: #38bdf8;
  --home-ease-blue-soft: rgba(56, 189, 248, 0.16);
  --home-green: #12945f;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - var(--topbar-height) - 38px);
  padding: 0;
  color: var(--home-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-mini-rail {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 20px 12px;
  background: #fff;
  border: 1px solid rgba(232, 235, 240, 0.95);
  border-radius: 28px;
  box-shadow: 12px 18px 42px rgba(24, 37, 53, 0.1);
}

.home-cluster-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 5px;
  margin-bottom: 16px;
}

.home-cluster-mark span {
  width: 9px;
  height: 9px;
  background: var(--home-ink);
  border-radius: 50%;
}

.home-cluster-mark span:nth-child(5) {
  grid-column: 1 / -1;
  justify-self: center;
}

.home-mini-rail button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--home-ink);
  background: transparent;
  border: 0;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 950;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.home-mini-rail button:hover,
.home-mini-rail button.active {
  color: var(--home-ink);
  background: var(--home-orange-soft);
  box-shadow: inset 0 0 0 1px rgba(108, 60, 255, 0.2), 0 12px 24px rgba(108, 60, 255, 0.16);
  transform: translateY(-1px);
}

.home-mini-rail-spacer {
  min-height: 260px;
}

.home-workspace-main {
  min-width: 0;
}

.home-wordmark {
  color: #0f1720;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-wordmark span {
  display: inline-grid;
  place-items: center;
  width: 0.92em;
  height: 0.92em;
  margin: 0 0.04em;
  color: transparent;
  background: var(--home-orange);
  border-radius: 50%;
  vertical-align: -0.05em;
}

.home-title-divider {
  width: 1px;
  height: 34px;
  background: rgba(24, 37, 53, 0.18);
}

.home-workspace-topbar strong {
  color: var(--home-ink);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 850;
}

.home-workspace-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.home-workspace-actions button,
.home-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 950;
}

.home-avatar {
  color: #fff;
  background: linear-gradient(135deg, #6c3cff, #9b7cff);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.55fr) minmax(360px, 0.95fr);
  gap: 18px;
}

.home-hero-card,
.home-chart-card,
.home-insight-card,
.home-partners-card {
  background: var(--home-panel);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(24, 37, 53, 0.08);
  backdrop-filter: blur(18px);
}

.home-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  min-height: 420px;
  padding: 42px 36px 22px;
  background: var(--main-panel-surface);
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  align-self: start;
  max-width: 430px;
}

.home-hero-copy p {
  margin: 0 0 14px;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 760;
}

.home-hero-copy h2 {
  margin: 0 0 18px;
  color: var(--home-ink);
  font-size: clamp(36px, 4.1vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.home-hero-copy span {
  display: block;
  max-width: 360px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.6;
}

.home-plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 240px;
  height: 56px;
  margin-top: 28px;
  padding: 0 23px 0 32px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 850;
  box-shadow: 0 16px 32px rgba(24, 37, 53, 0.08);
}

.home-plan-button b {
  color: var(--home-orange);
  font-size: 28px;
  line-height: 1;
}

.home-metric-strip {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
  margin-top: 8px;
}

.home-metric-strip article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 16px 15px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(24, 37, 53, 0.1);
}

.home-metric-strip span {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 950;
}

.home-metric-strip span.purple {
  color: var(--home-purple);
  background: var(--home-purple-soft);
}

.home-metric-strip span.orange {
  color: var(--home-orange);
  background: var(--home-orange-soft);
}

.home-metric-strip small {
  color: var(--home-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.home-metric-strip strong {
  color: var(--home-ink);
  font-size: 34px;
  line-height: 1;
}

.home-metric-strip em {
  color: var(--home-purple);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.home-side-stack {
  display: grid;
  gap: 18px;
}

.home-chart-card,
.home-insight-card,
.home-partners-card {
  padding: 26px;
}

.home-card-heading,
.home-partners-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-card-heading h2,
.home-insight-title h2,
.home-partners-header h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: 18px;
}

.home-card-heading span {
  color: #8c95a3;
  font-size: 12px;
}

.home-card-heading button {
  min-height: 34px;
  padding: 0 14px;
  color: #fff;
  background: var(--home-ink);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.home-score-info {
  position: relative;
  flex: 0 0 auto;
}

.home-score-trigger {
  position: relative;
  z-index: 2;
}

.home-score-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(286px, calc(100vw - 48px));
  padding: 14px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(135, 143, 156, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(24, 37, 53, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 160ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.home-score-popover strong {
  display: block;
  margin-bottom: 6px;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 900;
}

.home-score-popover p,
.home-score-popover small {
  margin: 0;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.45;
}

.home-score-popover small {
  display: block;
  margin-top: 8px;
  font-weight: 800;
}

.home-score-info:hover .home-score-popover,
.home-score-info:focus-within .home-score-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.home-line-chart {
  position: relative;
}

.home-line-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.home-chart-grid path {
  stroke: rgba(24, 37, 53, 0.1);
  stroke-width: 1;
}

.home-chart-line {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.home-chart-line.market {
  stroke: url(#homeMarketPotentialGradient);
}

.home-chart-line.ease {
  stroke: url(#homeEaseEntryGradient);
}

.home-chart-guide {
  stroke: rgba(24, 37, 53, 0.2);
  stroke-dasharray: 3 4;
  transition: x1 180ms ease, x2 180ms ease;
}

.home-chart-active {
  fill: #fff;
  stroke-width: 4;
  filter: drop-shadow(0 4px 9px rgba(24, 37, 53, 0.16));
  transition: cx 180ms ease, cy 180ms ease, stroke 180ms ease;
}

.home-chart-active.market {
  stroke: var(--home-market-pink);
}

.home-chart-active.ease {
  stroke: var(--home-ease-blue);
}

.home-chart-points circle {
  opacity: 0.82;
  transform-box: fill-box;
  transform-origin: center;
  transition: r 160ms ease, opacity 160ms ease;
}

.home-chart-points .market {
  fill: var(--home-market-pink);
}

.home-chart-points .ease {
  fill: var(--home-ease-blue);
}

.home-chart-hit-areas circle {
  fill: transparent;
  cursor: pointer;
  outline: none;
}

.home-chart-hit-areas circle:focus-visible {
  stroke: rgba(24, 37, 53, 0.28);
  stroke-width: 1.5;
}

.home-chart-tooltip {
  position: absolute;
  z-index: 12;
  min-width: 156px;
  padding: 10px 12px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(135, 143, 156, 0.18);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(24, 37, 53, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -110%) scale(0.98);
  transition: opacity 150ms ease, transform 170ms ease;
}

.home-chart-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -118%) scale(1);
}

.home-chart-tooltip strong,
.home-chart-tooltip span {
  display: block;
}

.home-chart-tooltip strong {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 950;
}

.home-chart-tooltip span {
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.45;
}

.home-chart-card.is-animating .home-chart-line {
  animation: home-chart-line-draw 1100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-chart-card.is-animating .home-chart-line.ease {
  animation-delay: 160ms;
}

.home-chart-card.is-animating .home-chart-points circle,
.home-chart-card.is-animating .home-chart-active {
  animation: home-chart-point-pop 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-chart-card.is-animating .home-chart-points circle:nth-child(2),
.home-chart-card.is-animating .home-chart-points circle:nth-child(6) {
  animation-delay: 120ms;
}

.home-chart-card.is-animating .home-chart-points circle:nth-child(3),
.home-chart-card.is-animating .home-chart-points circle:nth-child(7) {
  animation-delay: 220ms;
}

.home-chart-card.is-animating .home-chart-points circle:nth-child(4),
.home-chart-card.is-animating .home-chart-points circle:nth-child(8) {
  animation-delay: 320ms;
}

@keyframes home-chart-line-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes home-chart-point-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.home-chart-labels,
.home-chart-legend {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 780;
}

.home-chart-labels {
  position: relative;
  justify-content: flex-start;
  height: 18px;
  margin-top: 2px;
}

.home-chart-labels span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.home-chart-labels [data-home-label="Mexico"] {
  left: 17.14%;
}

.home-chart-labels [data-home-label="Chile"] {
  left: 43.81%;
}

.home-chart-labels [data-home-label="Brazil"] {
  left: 73.81%;
}

.home-chart-labels [data-home-label="Colombia"] {
  left: 95.24%;
}

.home-chart-legend {
  justify-content: center;
  margin-top: 12px;
}

.home-chart-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
}

.home-chart-legend i.market {
  background: var(--home-market-pink);
}

.home-chart-legend i.ease {
  background: var(--home-ease-blue);
}

.home-insight-card {
  position: relative;
  overflow: hidden;
  min-height: 214px;
}

.home-insight-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.home-insight-title span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--home-purple);
  background: var(--home-purple-soft);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 950;
}

.home-insight-card p {
  max-width: 380px;
  margin: 0 0 22px;
  color: var(--home-ink);
  font-size: 14px;
  line-height: 1.55;
}

.home-budget-row {
  display: flex;
  align-items: end;
  gap: 14px;
}

.home-budget-row small {
  display: block;
  color: var(--home-muted);
  font-size: 12px;
}

.home-budget-row strong {
  display: block;
  color: var(--home-ink);
  font-size: 28px;
  line-height: 1;
}

.home-budget-row em {
  padding: 5px 10px;
  color: var(--home-purple);
  background: var(--home-purple-soft);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.home-globe {
  position: absolute;
  right: 30px;
  bottom: 20px;
  width: 102px;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 55% 52%, rgba(139, 112, 255, 0.36), transparent 34%),
    radial-gradient(circle at 48% 50%, transparent 54%, rgba(139, 112, 255, 0.2) 55% 58%, transparent 59%),
    rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(139, 112, 255, 0.18);
  border-radius: 50%;
}

.home-partners-card {
  grid-column: 1 / -1;
}

.home-partners-filter {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 850;
}

.home-partners-filter span {
  color: var(--home-muted);
  white-space: nowrap;
}

.home-partners-filter select {
  min-width: 94px;
  padding: 0 22px 0 0;
  color: var(--home-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
  font-weight: 900;
}

.home-partner-table {
  display: grid;
  gap: 8px;
}

#homePartnerRows {
  display: grid;
  gap: 8px;
}

.home-partner-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(160px, 0.7fr) minmax(240px, 1fr) minmax(140px, 0.7fr);
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
}

.home-partner-head {
  min-height: 30px;
  padding-top: 0;
  padding-bottom: 0;
  color: var(--home-muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 800;
}

.home-partner-row > span {
  min-width: 0;
}

.home-partner-row > span:first-child,
.home-partner-row > span:nth-child(2),
.home-partner-row > span:nth-child(3) {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-partner-row b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--home-ink);
  border-radius: 12px;
  font-size: 17px;
}

.home-partner-row strong,
.home-partner-row small {
  display: block;
}

.home-partner-row strong {
  color: var(--home-ink);
  font-size: 15px;
}

.home-partner-row small {
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 700;
}

.home-partner-row em {
  color: var(--home-ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 820;
}

.home-partner-row em.green {
  color: var(--home-green);
}

.home-partner-row em.purple {
  color: var(--home-purple);
}

.home-partner-row em.orange {
  color: var(--home-orange);
}

.home-partner-row .score {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
}

.home-partner-row .score.orange {
  border: 3px solid #ffa552;
}

.home-partner-row .score.purple {
  border: 3px solid #b497ff;
}

.home-momentum {
  display: grid;
  gap: 4px;
  width: 150px;
}

.home-sparkline {
  display: block;
  width: 150px;
  height: 38px;
  overflow: visible;
}

.home-sparkline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 8px rgba(24, 37, 53, 0.08));
}

.home-sparkline circle {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 2.5;
  opacity: 0.96;
  transform-origin: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.home-sparkline circle:hover,
.home-sparkline circle:focus {
  opacity: 1;
  transform: scale(1.22);
}

.home-momentum.orange {
  color: var(--home-orange);
}

.home-momentum.purple {
  color: var(--home-purple);
}

.home-momentum strong {
  color: currentColor;
  font-size: 12px;
  font-weight: 900;
}

.home-partner-empty {
  min-height: 76px;
  padding: 18px;
  color: var(--home-muted);
  background: rgba(255, 255, 255, 0.52);
  border: 1px dashed rgba(135, 143, 156, 0.28);
  border-radius: 18px;
  font-weight: 800;
}

:root[data-theme="dark"] .home-workspace-shell {
  --home-ink: #eef0f4;
  --home-muted: #aeb4bf;
  --home-panel: rgba(58, 60, 66, 0.84);
  --home-panel-strong: rgba(66, 68, 75, 0.9);
  --home-line: rgba(255, 255, 255, 0.12);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .home-mini-rail,
:root[data-theme="dark"] .home-workspace-actions button,
:root[data-theme="dark"] .home-plan-button,
:root[data-theme="dark"] .home-partners-filter,
:root[data-theme="dark"] .home-metric-strip article,
:root[data-theme="dark"] .home-partner-row,
:root[data-theme="dark"] .home-partner-row .score {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
}

:root[data-theme="dark"] .home-metric-strip article {
  background: rgba(48, 49, 54, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .home-hero-card,
:root[data-theme="dark"] .home-chart-card,
:root[data-theme="dark"] .home-insight-card,
:root[data-theme="dark"] .home-partners-card {
  border-color: transparent;
}

:root[data-theme="dark"] .home-hero-card {
  background: var(--main-panel-surface);
  box-shadow: var(--main-panel-shadow);
}

:root[data-theme="dark"] .home-avatar {
  background: linear-gradient(135deg, #7b59e2, #a590eb);
}

.home-hero-card,
.home-chart-card,
.home-insight-card,
.home-partners-card,
.shortcut-grid,
.content-grid > .card,
.maria-chat-layout > .card,
.profile-settings-layout > .card,
.profile-settings-main > .card,
.partner-pipeline-shell > .card,
.partner-bottom-grid > .card,
.roadmap-overview-grid > .card,
.roadmap-side-column > .card,
.dashboard-kpi-card,
.dashboard-chart-card,
.maria-insights-panel,
.advisor-card,
.mentor-card,
.mentor-booking-panel,
.roadmap-progress-card,
.roadmap-task-card,
.market-profile-card,
.readiness-card,
.next-actions-card,
.blockers-card,
.report-download-card,
.readiness-tip-card,
.profile-settings-menu,
.profile-form-card,
.about-card,
.settings-modal-card,
.partner-kpi-card,
.partner-board-card,
.partner-comparison-card,
.upcoming-partner-meetings {
  background: var(--main-panel-surface);
  border-color: var(--main-panel-border);
  box-shadow: var(--main-panel-shadow);
}

:root[data-theme="dark"] .home-hero-card,
:root[data-theme="dark"] .home-chart-card,
:root[data-theme="dark"] .home-insight-card,
:root[data-theme="dark"] .home-partners-card,
:root[data-theme="dark"] .shortcut-grid,
:root[data-theme="dark"] .content-grid > .card,
:root[data-theme="dark"] .maria-chat-layout > .card,
:root[data-theme="dark"] .profile-settings-layout > .card,
:root[data-theme="dark"] .profile-settings-main > .card,
:root[data-theme="dark"] .partner-pipeline-shell > .card,
:root[data-theme="dark"] .partner-bottom-grid > .card,
:root[data-theme="dark"] .roadmap-overview-grid > .card,
:root[data-theme="dark"] .roadmap-side-column > .card,
:root[data-theme="dark"] .dashboard-kpi-card,
:root[data-theme="dark"] .dashboard-chart-card,
:root[data-theme="dark"] .maria-insights-panel,
:root[data-theme="dark"] .advisor-card,
:root[data-theme="dark"] .mentor-card,
:root[data-theme="dark"] .mentor-booking-panel,
:root[data-theme="dark"] .roadmap-progress-card,
:root[data-theme="dark"] .roadmap-task-card,
:root[data-theme="dark"] .market-profile-card,
:root[data-theme="dark"] .readiness-card,
:root[data-theme="dark"] .next-actions-card,
:root[data-theme="dark"] .blockers-card,
:root[data-theme="dark"] .report-download-card,
:root[data-theme="dark"] .readiness-tip-card,
:root[data-theme="dark"] .profile-settings-menu,
:root[data-theme="dark"] .profile-form-card,
:root[data-theme="dark"] .about-card,
:root[data-theme="dark"] .settings-modal-card,
:root[data-theme="dark"] .partner-kpi-card,
:root[data-theme="dark"] .partner-board-card,
:root[data-theme="dark"] .partner-comparison-card,
:root[data-theme="dark"] .upcoming-partner-meetings {
  background: var(--main-panel-surface);
  border-color: var(--main-panel-border);
  box-shadow: var(--main-panel-shadow);
}

.maria-chat-layout > .chat-card.maria-empty-mode,
:root[data-theme="dark"] .maria-chat-layout > .chat-card.maria-empty-mode {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .home-score-popover,
:root[data-theme="dark"] .home-chart-tooltip {
  background: rgba(42, 43, 47, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .home-wordmark,
:root[data-theme="dark"] .home-cluster-mark span,
:root[data-theme="dark"] .home-mini-rail button,
:root[data-theme="dark"] .home-workspace-actions button,
:root[data-theme="dark"] .home-plan-button {
  color: var(--home-ink);
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 96px;
  }

  .app-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .dashboard-kpi-grid,
  .partner-kpi-grid,
  .partner-match-kpi-grid,
  .dashboard-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-match-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-mix-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .latam-visual {
    max-width: 560px;
  }

  .shortcut-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .preview-grid,
  .two-col,
  .chat-layout,
  .roadmap-shell,
  .roadmap-page-layout,
  .profile-settings-layout,
  .maria-layout,
  .settings-maria-layout,
  .settings-dashboard-layout,
  .partner-pipeline-shell,
  .partner-match-main-grid,
  .partner-match-bottom-grid,
  .partner-bottom-grid,
  .mentor-layout {
    grid-template-columns: 1fr;
  }

  .partner-selected-panel {
    order: -1;
  }

  .roadmap-side-column {
    position: static;
  }

  .mentor-booking-panel {
    position: static;
    right: auto;
    z-index: auto;
    width: auto;
    max-height: none;
    overflow: visible;
  }

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

  .maria-guide-card {
    position: static;
  }

  .settings-subnav-card {
    position: static;
  }

  .partner-insights-panel {
    position: static;
  }

  .advisor-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .home-workspace-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    border-radius: 0;
  }

  .home-grid,
  .home-hero-card {
    grid-template-columns: 1fr;
  }

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

  .home-partner-row {
    grid-template-columns: minmax(210px, 1.15fr) minmax(120px, 0.65fr) minmax(170px, 0.95fr) minmax(120px, 0.65fr);
    gap: 12px;
  }

  .home-momentum,
  .home-sparkline {
    width: 120px;
  }
}

@media (max-width: 860px) {
  :root {
    --topbar-height: 112px;
  }

  .app-shell {
    display: block;
    padding-top: 0;
  }

  .sidebar {
    position: relative;
    top: auto;
    transform: none;
    z-index: auto;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 16px;
    overflow: visible;
    border-radius: 0;
  }

  .sidebar:hover,
  .sidebar:focus-within {
    width: auto;
  }

  .sidebar-active-indicator {
    display: none;
  }

  .brand,
  .sidebar-logo {
    display: none;
  }

  .nav-list,
  .sidebar-footer-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-list {
    flex: 0 0 auto;
    overflow-y: hidden;
    overscroll-behavior: auto;
  }

  .sidebar-footer-nav {
    margin-top: 8px;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    padding: 0 12px;
    white-space: nowrap;
  }

  .nav-group {
    flex: 0 0 auto;
    width: auto;
  }

  .sidebar-submenu {
    width: calc(100% - 52px);
  }

  .nav-label,
  .sidebar:hover .nav-label,
  .sidebar:focus-within .nav-label {
    max-width: 160px;
    opacity: 1;
    transform: none;
  }

  .sidebar-profile {
    width: min(280px, 100%);
    margin-top: 12px;
    padding-top: 0;
  }

  .sidebar-notification .notification-dropdown {
    top: calc(100% + 8px);
    bottom: auto;
    left: 0;
    width: min(330px, calc(100vw - 32px));
    transform-origin: top left;
  }

  .sidebar-profile .profile-dropdown {
    top: calc(100% + 8px);
    bottom: auto;
    left: 0;
    width: min(220px, calc(100vw - 32px));
    transform-origin: top left;
  }

  .main-content {
    padding: 18px 16px 16px;
  }

  .page-info-bar {
    min-height: auto;
    height: auto;
    margin-bottom: 9px;
    padding: 0;
  }

  .page-info-bar::after {
    display: none;
  }

  .topbar-brand {
    display: none;
  }

  .page-info-copy {
    padding: 0;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .page-info-bar h1 {
    font-size: clamp(27px, 7vw, 36px);
  }

  .mobile-brand {
    display: none;
  }

  .shortcut-grid,
  .preview-grid,
  .dashboard-kpi-grid,
  .partner-kpi-grid,
  .partner-match-kpi-grid,
  .partner-match-toolbar,
  .dashboard-analytics-grid,
  .maria-insight-list,
  .advisor-grid,
  .metric-grid,
  .step-tracker,
  .form-grid,
  .roadmap-overview-grid,
  .roadmap-task-grid,
  .maria-report-grid,
  .settings-info-grid,
  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .selected-partner-info,
  .outreach-workspace-grid,
  .selected-partner-stage {
    grid-template-columns: 1fr;
  }

  .selected-partner-profile,
  .selected-partner-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-detail-card {
    padding: 20px;
  }

  .settings-detail-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-detail-card-header .primary-button,
  .settings-edit-button {
    width: 100%;
  }

  .settings-preference-list li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .settings-preference-list em {
    grid-column: 2;
    text-align: left;
  }

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

  .upcoming-partner-meetings li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .upcoming-partner-meetings em {
    grid-column: 2;
    white-space: normal;
  }

  .maria-report-grid section:first-child {
    grid-column: auto;
  }

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

  .mentor-card {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 18px;
    row-gap: 10px;
  }

  .mentor-photo {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 118px;
    height: 128px;
  }

  .mentor-card-body {
    grid-column: 2;
    grid-row: 1;
  }

  .mentor-card-stats,
  .mentor-card-actions {
    grid-column: 2;
    justify-self: start;
    justify-content: flex-start;
  }

  .mentor-card-stats {
    grid-row: 2;
  }

  .mentor-card-actions {
    grid-row: 3;
    align-self: start;
    width: max-content;
    flex-wrap: nowrap;
  }

  .booking-calendar-grid,
  .booking-controls,
  .advisor-detail-hero,
  .advisor-detail-copy-grid {
    grid-template-columns: 1fr;
  }

  .booking-calendar {
    padding-right: 0;
    padding-bottom: 12px;
  }

  .booking-times {
    max-height: 190px;
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid #deddea;
    border-left: 0;
  }

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

  .home-workspace-shell {
    display: block;
  }

  .home-mini-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding: 12px;
  }

  .home-mini-rail-spacer {
    display: none;
  }

  .home-workspace-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .home-workspace-actions {
    margin-left: 0;
  }

  .home-hero-card,
  .home-chart-card,
  .home-insight-card,
  .home-partners-card {
    padding: 20px;
    border-radius: 22px;
  }

  .home-metric-strip,
  .home-partner-row,
  .home-partner-head {
    grid-template-columns: 1fr;
  }

  .home-partner-head {
    display: none;
  }

  .home-partner-row {
    align-items: start;
  }
}

@media (max-width: 560px) {
  :root {
    --topbar-height: 136px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .page-info-bar {
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
  }

  .page-info-bar p {
    font-size: 12px;
  }

  .dashboard-kpi-card {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 15px;
  }

  .dashboard-kpi-icon {
    width: 48px;
    height: 48px;
  }

  .dashboard-chart-card,
  .maria-insights-panel {
    padding: 15px;
  }

  .country-opportunity-chart {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .opportunity-bars {
    gap: 6px;
  }

  .opportunity-bar span {
    width: min(34px, 74%);
  }

  .trend-labels {
    font-size: 8px;
  }

  .scatter-chart-shell {
    grid-template-columns: 14px 34px minmax(0, 1fr);
    min-height: 252px;
  }

  .scatter-axis-title,
  .scatter-y-ticks,
  .scatter-x-ticks {
    font-size: 9px;
  }

  .scatter-chart {
    min-height: 200px;
    padding: 24px 8px 14px;
  }

  .brand-goal-label {
    right: 3%;
    font-size: 11px;
  }

  .readiness-list li {
    grid-template-columns: 28px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .readiness-track {
    grid-column: 2 / -1;
  }

  .readiness-list small {
    grid-column: 2 / -1;
    text-align: left;
  }

  .total-budget {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-copy,
  .profile-chevron {
    display: none;
  }

  .sidebar-profile .user-copy,
  .sidebar-profile .profile-chevron {
    display: block;
  }

  .context-controls label,
  .context-controls .primary-button,
  .filter-bar label {
    width: 100%;
  }

  .shortcut-grid {
    padding: 10px;
  }

  .advisor-card {
    grid-template-columns: 1fr;
  }

  .mentor-filter-bar,
  .mentor-card,
  .booking-profile-card,
  .advisor-detail-grid,
  .advisor-example-grid {
    grid-template-columns: 1fr;
  }

  .advisor-detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .advisor-detail-stats span:nth-child(2n) {
    border-right: 0;
  }

  .advisor-detail-stats span:nth-child(-n + 2) {
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e6f2;
  }

  .advisor-detail-stats span:nth-child(n + 3) {
    padding-top: 12px;
  }

  .advisor-detail-grid section,
  .advisor-detail-grid section:nth-child(2n),
  .advisor-detail-grid section:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #e7e6f2;
  }

  .advisor-detail-grid section:last-child {
    border-bottom: 0;
  }

  .mentor-card-stats,
  .mentor-card-actions {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }

  .mentor-card-body {
    grid-column: 1;
    grid-row: auto;
  }

  .mentor-card-stats {
    width: 100%;
  }

  .meeting-details {
    flex-direction: column;
    align-items: stretch;
  }

  .mentor-card-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    align-items: center;
    justify-content: stretch;
  }

  .mentor-card-actions .mentor-details-button,
  .mentor-card-actions .connect-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .mentor-photo {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
    height: 180px;
  }

  .booking-profile-stats {
    border-left: 0;
    border-top: 1px solid #e0dff0;
    padding-top: 12px;
  }

  .meeting-details span {
    border-right: 0;
    border-bottom: 1px solid #e0dff0;
    padding: 0 0 10px;
  }

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

  .maria-empty-composer {
    grid-template-columns: 36px minmax(0, 1fr);
    border-radius: 22px;
  }

  .maria-empty-composer button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .message {
    max-width: 100%;
  }

  .split-list {
    grid-template-columns: 1fr;
  }

  .profile-pill-grid {
    grid-template-columns: 1fr;
  }

  .task-card-header {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .task-status {
    grid-column: 2;
    justify-self: start;
  }

  .profile-photo-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .toast {
    top: 16px;
    right: 16px;
  }

  .floating-chat {
    right: 16px;
    bottom: 16px;
  }

  .floating-chat.open {
    width: calc(100vw - 32px);
    height: calc(100vh - 88px);
  }

  .floating-chat-panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 88px);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .floating-chat-header {
    min-height: 58px;
    padding-inline: 14px;
  }

  .floating-chat-header h2 {
    font-size: 17px;
  }

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

  .floating-team-workspace.show-thread .floating-chat-sidebar {
    display: none;
  }

  .floating-chat-messages {
    min-height: 0;
  }

  .floating-chat-form {
    grid-template-columns: 38px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 12px;
  }

  .floating-chat-toggle {
    min-width: 136px;
    height: 48px;
    padding: 0 16px;
  }
}

@media (max-width: 700px) {
  .settings-action-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .settings-action-card .settings-edit-button {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .floating-team-workspace.show-thread .floating-chat-sidebar {
    display: none;
  }
}

@media (max-width: 1540px) and (min-width: 861px) {
  :root {
    --app-gutter: clamp(18px, 1.45vw, 24px);
    --responsive-gap: 14px;
  }

  .page-info-copy {
    gap: 24px;
    padding-left: 22px;
  }

  .page-info-mark {
    width: clamp(66px, 5.8vw, 88px);
    height: clamp(66px, 5.8vw, 88px);
  }

  .page-info-bar h1 {
    font-size: clamp(31px, 2.8vw, 44px);
  }

  .dashboard-kpi-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .dashboard-kpi-icon {
    width: 52px;
    height: 52px;
  }

  .dashboard-chart-card,
  .maria-insights-panel {
    padding: 16px;
  }
}

@media (max-width: 1360px) and (min-width: 861px) {
  :root {
    --app-gutter: clamp(16px, 1.4vw, 22px);
  }

  .page-info-copy {
    gap: 20px;
    padding-left: 18px;
  }

  .page-info-divider {
    height: 36px;
  }

  .page-info-bar h1 {
    font-size: clamp(30px, 2.7vw, 40px);
  }

  .dashboard-kpi-grid,
  .admin-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-analytics-layout,
  .admin-two-column,
  .mentor-dashboard-grid,
  .partner-match-main-grid,
  .partner-match-bottom-grid,
  .partner-bottom-grid,
  .roadmap-page-layout,
  .maria-layout,
  .settings-maria-layout,
  .settings-dashboard-layout,
  .profile-settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .roadmap-side-column,
  .partner-insights-panel,
  .settings-subnav-card {
    position: static;
  }

  .partner-selected-panel {
    order: -1;
  }

  .partner-match-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partner-match-action,
  .partner-match-add {
    width: 100%;
  }

  .mentor-booking-panel {
    position: static;
    width: auto;
    max-height: none;
  }
}

@media (max-width: 1180px) and (min-width: 861px) {
  :root {
    --app-gutter: 18px;
    --responsive-gap: 13px;
  }

  .page-info-copy {
    gap: 16px;
    padding-left: 14px;
  }

  .page-info-mark {
    width: 62px;
    height: 62px;
  }

  .page-info-divider {
    height: 32px;
  }

  .page-info-bar h1 {
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.18;
  }

  .dashboard-kpi-grid,
  .partner-kpi-grid,
  .partner-match-kpi-grid,
  .roadmap-task-grid,
  .settings-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-analytics-grid,
  .preview-grid,
  .advisor-grid,
  .metric-grid,
  .maria-report-grid,
  .mentor-filter-bar,
  .roadmap-overview-grid,
  .settings-form-grid,
  .settings-quick-controls,
  .profile-settings-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar,
  .partner-match-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shortcut-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .home-partner-row,
  .home-partner-head {
    grid-template-columns: minmax(200px, 1.1fr) minmax(108px, 0.62fr) minmax(150px, 0.88fr) minmax(108px, 0.62fr);
  }

  .partner-match-table {
    min-width: 980px;
  }

  .partner-match-pagination {
    min-width: 980px;
  }

  .partner-pipeline-board {
    min-width: 1080px;
  }

  .admin-mentor-table {
    min-width: 980px;
  }
}

@media (max-width: 1040px) and (min-width: 861px) {
  :root {
    --sidebar-width: 88px;
    --app-gutter: 16px;
  }

  .sidebar {
    top: 12px;
    width: 72px;
    height: calc(100vh - 24px);
    margin: 12px 0 12px 12px;
    padding: 12px 8px;
    border-radius: 24px;
  }

  .sidebar:hover,
  .sidebar:focus-within {
    width: 228px;
  }

  .nav-item {
    min-height: 50px;
  }

  .nav-icon {
    width: 44px;
    height: 44px;
  }

  .nav-icon svg {
    width: 22px;
    height: 22px;
  }

  .sidebar-logo {
    width: 46px;
    height: 46px;
    margin-bottom: 4px;
  }

  .sidebar-logo img {
    width: 38px;
    height: 38px;
  }

  .page-info-copy {
    padding-left: 10px;
  }

  .page-info-mark {
    width: 56px;
    height: 56px;
  }

  .dashboard-analytics-grid,
  .preview-grid,
  .roadmap-overview-grid,
  .maria-report-grid,
  .settings-quick-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-kpi-grid,
  .admin-summary-grid,
  .partner-kpi-grid,
  .partner-match-kpi-grid,
  .roadmap-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-partner-row,
  .home-partner-head {
    grid-template-columns: minmax(0, 1fr) 110px 150px 110px;
  }
}

@media (max-height: 820px) and (min-width: 861px) {
  .sidebar {
    top: 10px;
    gap: 7px;
    height: calc(100vh - 20px);
    margin-top: 10px;
    margin-bottom: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .sidebar-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 2px;
  }

  .sidebar-logo img {
    width: 36px;
    height: 36px;
  }

  .nav-list {
    gap: 4px;
  }

  .sidebar-footer-nav {
    gap: 4px;
  }

  .nav-item {
    min-height: 46px;
  }

  .nav-icon {
    width: 40px;
    height: 40px;
  }

  .nav-icon svg {
    width: 21px;
    height: 21px;
  }

  .sidebar-profile .user-pill {
    min-height: 48px;
  }

  .main-content {
    padding-top: 18px;
  }
}

@media (max-height: 720px) and (min-width: 861px) {
  .sidebar {
    top: 8px;
    gap: 6px;
    height: calc(100svh - 16px);
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px 8px;
    border-radius: 24px;
  }

  .sidebar-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .sidebar-logo img {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .nav-list,
  .sidebar-footer-nav {
    gap: 3px;
  }

  .nav-item {
    min-height: 40px;
    gap: 10px;
    padding: 0 3px;
  }

  .nav-icon {
    width: 36px;
    height: 36px;
  }

  .nav-icon svg {
    width: 19px;
    height: 19px;
  }

  .sidebar-submenu {
    margin-left: 48px;
  }

  .sidebar:hover .nav-group.submenu-open .sidebar-submenu,
  .sidebar:focus-within .nav-group.submenu-open .sidebar-submenu {
    max-height: 108px;
  }

  .sidebar-submenu-item {
    min-height: 32px;
  }

  .sidebar-profile .user-pill {
    min-height: 42px;
    gap: 8px;
  }
}

@media (max-height: 620px) and (min-width: 861px) {
  .sidebar {
    top: 6px;
    height: calc(100svh - 12px);
    margin-top: 6px;
    margin-bottom: 6px;
    padding: 7px 8px;
  }

  .sidebar-logo {
    width: 36px;
    height: 36px;
  }

  .sidebar-logo img {
    width: 30px;
    height: 30px;
  }

  .nav-item {
    min-height: 36px;
  }

  .nav-icon {
    width: 32px;
    height: 32px;
  }

  .nav-icon svg {
    width: 18px;
    height: 18px;
  }

  .sidebar-profile .user-pill {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ping-marker,
  .ping-dot,
  .ping-ring,
  .home-chart-card.is-animating .home-chart-line,
  .home-chart-card.is-animating .home-chart-points circle,
  .home-chart-card.is-animating .home-chart-active {
    animation: none;
  }

  .floating-chat-panel {
    transition: none;
  }

  .floating-chat-workspace.is-slide-from-left,
  .floating-chat-workspace.is-slide-from-right {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .profile-dropdown,
  .notification-dropdown {
    transition: none;
  }

  .mentor-layout {
    transition: none;
  }

  .mentor-booking-panel,
  .mentor-booking-panel.is-opening,
  .mentor-booking-panel.is-closing,
  .mentor-list.is-panel-opening,
  .mentor-list.is-panel-closing,
  .mentor-card-scroll {
    animation: none;
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
