@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600&family=JetBrains+Mono:wght@400;500&display=swap');

#crivo-shell-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 52px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #cfd9d2;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
}

#crivo-shell-header * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#crivo-shell-header .csh-inner {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#crivo-shell-header .csh-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#crivo-shell-header .csh-logo {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #171c1f;
  text-decoration: none;
}

#crivo-shell-header .csh-logo span {
  color: #005b38;
}

#crivo-shell-header .csh-separator {
  width: 1px;
  height: 20px;
  background: #cfd9d2;
}

#crivo-shell-header .csh-module-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #005b38;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#crivo-shell-header .csh-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

#crivo-shell-header .csh-nav a {
  font-size: 12px;
  font-weight: 500;
  color: #66736c;
  text-decoration: none;
  transition: color 150ms;
}

#crivo-shell-header .csh-nav a:hover {
  color: #171c1f;
}

#crivo-shell-header .csh-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#crivo-shell-header .csh-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #e3eae5;
  background: #f6faf8;
  cursor: pointer;
  transition: border-color 150ms;
}

#crivo-shell-header .csh-user:hover {
  border-color: #005b38;
}

#crivo-shell-header .csh-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #005b38, #0f766e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}

#crivo-shell-header .csh-user-name {
  font-size: 12px;
  font-weight: 500;
  color: #171c1f;
}

#crivo-shell-header .csh-btn-logout {
  font-size: 11px;
  color: #66736c;
  background: none;
  border: 1px solid #e3eae5;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 150ms, border-color 150ms;
}

#crivo-shell-header .csh-btn-logout:hover {
  color: #a93434;
  border-color: #a93434;
}

/* Sidebar */
#crivo-shell-sidebar {
  position: fixed;
  top: 52px;
  left: 0;
  bottom: 0;
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #cfd9d2;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-y: auto;
  z-index: 9998;
  padding: 0.75rem 0;
  transition: transform 250ms ease;
}

#crivo-shell-sidebar * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#crivo-shell-sidebar .css-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  color: #66736c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 1rem 0.4rem;
}

#crivo-shell-sidebar .css-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 450;
  color: #3f4944;
  text-decoration: none;
  transition: background 120ms, color 120ms;
  border-left: 2px solid transparent;
}

#crivo-shell-sidebar .css-item:hover {
  background: #eef4f0;
  color: #171c1f;
}

#crivo-shell-sidebar .css-item.active {
  background: #e1f3e8;
  color: #005b38;
  border-left-color: #005b38;
  font-weight: 550;
}

#crivo-shell-sidebar .css-item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

#crivo-shell-sidebar .css-divider {
  height: 1px;
  background: #e3eae5;
  margin: 0.5rem 1rem;
}

/* Body offset to account for shell header only — sidebar removed, each product manages its own */
body.crivo-shell-active {
  padding-top: 52px !important;
}

@media (max-width: 768px) {
  #crivo-shell-sidebar {
    transform: translateX(-100%);
  }
  body.crivo-shell-active {
    padding-left: 0 !important;
  }
}
