html,
body {
  background: #f4f7fb !important;
  color: #24324a !important;
}

body:not(.auth-only) {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: #24324a !important;
}

body:not(.auth-only) .app-shell {
  display: grid !important;
  grid-template-columns: var(--ds-layout-shell-sidebar) minmax(0, 1fr) !important;
  gap: var(--ds-layout-shell-gap) !important;
  min-height: 100vh !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: var(--ds-layout-shell-padding) !important;
  align-items: start !important;
  background: linear-gradient(180deg, #f8fafd 0%, #f2f5fa 100%) !important;
}

body:not(.auth-only) .sidebar {
  position: sticky !important;
  top: var(--ds-layout-shell-padding) !important;
  height: calc(100vh - (2 * var(--ds-layout-shell-padding))) !important;
  overflow-y: auto !important;
  padding: 1.35rem 1.15rem 1.1rem !important;
  background: linear-gradient(180deg, #fcfdff 0%, #f7f9fd 100%) !important;
  border-right: 1px solid rgba(226, 232, 240, 0.96) !important;
  box-shadow: inset -1px 0 0 rgba(226, 232, 240, 0.72) !important;
  backdrop-filter: none !important;
  border-radius: 1.35rem !important;
}

body:not(.auth-only) .mobile-nav-close,
body:not(.auth-only) #ux-mobile-nav-close {
  display: none !important;
}

body:not(.auth-only) .brand-block {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 3.35rem minmax(0, 1fr) !important;
  column-gap: 0.9rem !important;
  row-gap: 0.08rem !important;
  align-items: center !important;
  margin-bottom: 1rem !important;
  padding: 0 0 1.15rem !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
}

body:not(.auth-only) .brand-block::before {
  content: "" !important;
  grid-column: 1 !important;
  grid-row: 1 / span 3 !important;
  width: 3.35rem !important;
  height: 3.35rem !important;
  border-radius: 1.08rem !important;
  background: linear-gradient(135deg, #7c3aed, #6366f1 58%, #ec4899) !important;
  box-shadow: 0 16px 30px rgba(99, 102, 241, 0.22) !important;
}

body:not(.auth-only) #brand-eyebrow {
  grid-column: 2 !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.94rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body:not(.auth-only) #brand-name {
  grid-column: 2 !important;
  margin: 0.02rem 0 0 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 1.72rem !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
}

body:not(.auth-only) #brand-tagline {
  grid-column: 2 !important;
  margin: 0.18rem 0 0 !important;
  max-width: 16rem !important;
  color: #64748b !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

body:not(.auth-only) .ux-sidebar-search-wrap {
  margin-bottom: 1rem !important;
}

body:not(.auth-only) .ux-sidebar-search-wrap input {
  width: 100% !important;
  min-height: 3rem !important;
  padding: 0 1rem !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 1rem !important;
  background: #f8fafc !important;
  color: #334155 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

body:not(.auth-only) .ux-sidebar-search-wrap input::placeholder {
  color: #94a3b8 !important;
}

body:not(.auth-only) .service-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
}

body:not(.auth-only) .wedge-nav-single,
body:not(.auth-only) .wedge-nav-group {
  border: 1px solid transparent !important;
  border-radius: 1.2rem !important;
  padding: 0.2rem !important;
  background: transparent !important;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease !important;
}

body:not(.auth-only) .wedge-nav-single.active,
body:not(.auth-only) .wedge-nav-group.active {
  background: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.98) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
}

body:not(.auth-only) .wedge-primary-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  padding: 0.8rem 0.94rem !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: transparent !important;
  color: #334155 !important;
  box-shadow: none !important;
}

body:not(.auth-only) .wedge-primary-btn:hover {
  background: rgba(255, 255, 255, 0.72) !important;
}

body:not(.auth-only) .wedge-primary-btn.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.07), rgba(168, 85, 247, 0.06)) !important;
  color: #1e293b !important;
}

body:not(.auth-only) .wedge-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.55rem !important;
  height: 2.55rem !important;
  border-radius: 0.92rem !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body:not(.auth-only) .wedge-primary-btn.active .wedge-icon,
body:not(.auth-only) .wedge-nav-group.active .wedge-icon,
body:not(.auth-only) .wedge-nav-single.active .wedge-icon {
  background: linear-gradient(135deg, #7c3aed, #6366f1 58%, #ec4899) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.22) !important;
}

body:not(.auth-only) .wedge-copy {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  flex-direction: column !important;
  gap: 0.08rem !important;
  text-align: left !important;
}

body:not(.auth-only) .wedge-copy strong {
  color: #334155 !important;
  font-size: 1.04rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

body:not(.auth-only) .wedge-copy small {
  color: #64748b !important;
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
}

body:not(.auth-only) .wedge-nav-group .wedge-primary-btn::after {
  content: "›";
  color: #94a3b8 !important;
  font-size: 1.3rem !important;
  line-height: 1 !important;
  transition: transform 160ms ease, color 160ms ease !important;
}

body:not(.auth-only) .wedge-nav-group.active .wedge-primary-btn::after,
body:not(.auth-only) .wedge-nav-group.open .wedge-primary-btn::after {
  color: #6366f1 !important;
  transform: rotate(90deg) !important;
}

body:not(.auth-only) .wedge-nav-group .wedge-primary-btn::after {
  content: ">" !important;
  font-size: 0.98rem !important;
}

body:not(.auth-only) .wedge-subnav {
  display: none !important;
  margin: 0.24rem 0 0.2rem 2.95rem !important;
  padding: 0.1rem 0 0.2rem 0.85rem !important;
  border-left: 2px solid rgba(199, 210, 254, 0.9) !important;
  gap: 0.35rem !important;
}

body:not(.auth-only) .wedge-nav-group.active .wedge-subnav,
body:not(.auth-only) .wedge-nav-group.open .wedge-subnav {
  display: grid !important;
}

body:not(.auth-only) .wedge-child-btn {
  width: 100% !important;
  display: grid !important;
  gap: 0.15rem !important;
  padding: 0.78rem 0.92rem !important;
  border: 0 !important;
  border-radius: 0.95rem !important;
  background: transparent !important;
  color: #475569 !important;
  text-align: left !important;
  box-shadow: none !important;
}

body:not(.auth-only) .wedge-child-btn:hover {
  background: rgba(255, 255, 255, 0.84) !important;
}

body:not(.auth-only) .wedge-child-btn.active {
  background: rgba(99, 102, 241, 0.08) !important;
  color: #4f46e5 !important;
}

body:not(.auth-only) .wedge-child-label {
  color: inherit !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

body:not(.auth-only) .wedge-child-meta {
  display: block !important;
  color: #64748b !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

body:not(.auth-only) .workspace-nav-lifecycle {
  display: none !important;
}

body:not(.auth-only) .sidebar-foot {
  margin-top: auto !important;
  padding-top: 0.8rem !important;
  display: grid !important;
  gap: 0.55rem !important;
}

body:not(.auth-only) .sidebar-foot-block {
  padding: 0.15rem 0.1rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body:not(.auth-only) .sidebar-foot-block:nth-of-type(2) {
  display: none !important;
}

body:not(.auth-only) .sidebar-foot-label {
  margin-bottom: 0.28rem !important;
  color: #64748b !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

body:not(.auth-only) .sidebar-foot li,
body:not(.auth-only) .ux-recent-services {
  color: #64748b !important;
}

body:not(.auth-only) .sidebar-quick-action-btn {
  width: 100% !important;
  min-height: 3.3rem !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: linear-gradient(90deg, #6366f1, #8b5cf6 56%, #ec4899) !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.22) !important;
  transition: transform 160ms ease, box-shadow 160ms ease !important;
}

body:not(.auth-only) .sidebar-quick-action-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 34px rgba(99, 102, 241, 0.28) !important;
}

body:not(.auth-only) .main-area {
  min-width: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  background:
    radial-gradient(circle at top left, var(--ds-bg-app-glow), transparent 20rem),
    radial-gradient(circle at 82% 0%, var(--ds-bg-app-glow-alt), transparent 24rem),
    linear-gradient(180deg, var(--ds-bg-app-alt) 0%, var(--ds-bg-app) 42%, #0b0e13 100%) !important;
}

body:not(.auth-only) .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  display: block !important;
  margin: 0 !important;
  padding: 1rem 2.35rem 0.85rem !important;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(248, 250, 252, 0.95)) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(219, 227, 236, 0.92) !important;
  border-radius: 0 !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(14px) !important;
}

body:not(.auth-only) .topbar-title {
  display: none !important;
}

body:not(.auth-only) .main-area {
  min-width: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  gap: var(--ds-layout-main-gap) !important;
  align-content: start !important;
}

body:not(.auth-only) .topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(0.95rem, 1vw, 1.2rem) clamp(1rem, 1.4vw, 1.35rem) !important;
  gap: var(--ds-layout-grid-gap) !important;
  top: var(--ds-layout-shell-padding) !important;
}

body:not(.auth-only) .topbar-tools {
  display: grid !important;
  gap: 0.8rem !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  justify-self: stretch !important;
}

body:not(.auth-only) .ux-toolbar,
body:not(.auth-only) .topbar-tools > .ux-toolbar,
body:not(.auth-only) .topbar-actions-row,
body:not(.auth-only) .topbar-primary-actions,
body:not(.auth-only) .topbar-account-actions,
body:not(.auth-only) .status-cluster {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

body:not(.auth-only) .topbar-tools > .ux-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: var(--ds-layout-grid-gap) !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
}

body:not(.auth-only) .ux-toolbar-search input {
  width: 100% !important;
  min-height: 3.25rem !important;
  padding: 0 1.2rem !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 1.08rem !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 0.96rem !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 16px rgba(15, 23, 42, 0.025) !important;
}

body:not(.auth-only) .ux-toolbar-search input::placeholder {
  color: #94a3b8 !important;
}

body:not(.auth-only) .ux-toolbar-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 0.55rem !important;
}

body:not(.auth-only) .topbar-actions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.85rem !important;
  flex-wrap: wrap !important;
}

body:not(.auth-only) .topbar-primary-actions,
body:not(.auth-only) .topbar-account-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.55rem !important;
}

body:not(.auth-only) .topbar-account-actions {
  justify-content: flex-end !important;
  margin-left: auto !important;
}

body:not(.auth-only) .toolbar-btn,
body:not(.auth-only) .topbar .btn,
body:not(.auth-only) .app-select-wrap {
  min-height: 2.95rem !important;
  padding: 0 1rem !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 1rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
  color: #475569 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body:not(.auth-only) #workspace-export-btn,
body:not(.auth-only) #auth-logout-btn,
body:not(.auth-only) .sidebar .btn.primary,
body:not(.auth-only) .v0-primary-button {
  background: linear-gradient(90deg, #6366f1, #8b5cf6 58%, #06b6d4) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.18) !important;
}

body:not(.auth-only) .app-select-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
}

body:not(.auth-only) .app-select-wrap span {
  color: #94a3b8 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

body:not(.auth-only) .app-select {
  border: 0 !important;
  background: transparent !important;
  color: #1e293b !important;
  font-weight: 700 !important;
}

body:not(.auth-only) .status-cluster {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.55rem !important;
  align-items: center !important;
}

body:not(.auth-only) .status-pill,
body:not(.auth-only) .ux-badge {
  min-height: 1.9rem !important;
  padding: 0.2rem 0.68rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
  color: #64748b !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
}

body:not(.auth-only) #services-root {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding:
    var(--ds-layout-content-block)
    var(--ds-layout-content-inline)
    calc(var(--ds-layout-content-block) + 1.75rem) !important;
  display: grid !important;
  gap: var(--ds-layout-main-gap) !important;
  align-content: start !important;
  background: transparent !important;
}

body:not(.auth-only) .service-section.v0-page-shell {
  padding: 0 !important;
  background: transparent !important;
}

body:not(.auth-only) .v0-page {
  display: grid !important;
  gap: var(--ds-layout-main-gap) !important;
  max-width: none !important;
  margin: 0 !important;
}

body:not(.auth-only) .v0-page-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  justify-content: stretch !important;
  margin-bottom: 0 !important;
}

body:not(.auth-only) .v0-card {
  border-radius: 1.4rem !important;
}

body:not(.auth-only) .service-head,
body:not(.auth-only) .v0-page-header {
  align-items: flex-end !important;
  gap: 1rem !important;
  padding: clamp(1rem, 1.4vw, 1.2rem) clamp(1rem, 1.5vw, 1.35rem) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1.6rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)) !important;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.2) !important;
  backdrop-filter: blur(10px) !important;
}

body:not(.auth-only) .v0-page-header > div {
  max-width: 48rem !important;
}

body:not(.auth-only) .v0-page-chip-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  margin-bottom: 0.6rem !important;
}

body:not(.auth-only) .v0-page-chip,
body:not(.auth-only) .v0-badge,
body:not(.auth-only) .v0-highlight-chip,
body:not(.auth-only) .v0-hero-kicker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 1.95rem !important;
  padding: 0.2rem 0.78rem !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

body:not(.auth-only) .v0-page-chip,
body:not(.auth-only) .v0-highlight-chip,
body:not(.auth-only) .v0-hero-kicker {
  background: rgba(125, 211, 252, 0.12) !important;
  color: #dbeafe !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
}

body:not(.auth-only) .v0-page-date {
  color: var(--ds-text-canvas-muted) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

body:not(.auth-only) .v0-page-header h3 {
  color: var(--ds-text-canvas) !important;
  font-size: 2.45rem !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

body:not(.auth-only) .v0-page-header p {
  color: var(--ds-text-canvas-muted) !important;
}

body:not(.auth-only) .v0-card-head p,
body:not(.auth-only) .v0-stat-meta,
body:not(.auth-only) .v0-list-detail,
body:not(.auth-only) .v0-card-footnote {
  color: #64748b !important;
}

body:not(.auth-only) .v0-card,
body:not(.auth-only) .v0-hero-card,
body:not(.auth-only) .v0-highlight-card,
body:not(.auth-only) .v0-stat-card,
body:not(.auth-only) .v0-action-card,
body:not(.auth-only) .v0-list-item,
body:not(.auth-only) .v0-goal-card,
body:not(.auth-only) .v0-switcher-button {
  background: linear-gradient(180deg, var(--ds-bg-card) 0%, var(--ds-bg-card-alt) 100%) !important;
  border: 1px solid rgba(219, 227, 236, 0.96) !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.035),
    0 18px 38px rgba(15, 23, 42, 0.06) !important;
}

body:not(.auth-only) .v0-card,
body:not(.auth-only) .v0-hero-card {
  padding: 1.6rem !important;
}

body:not(.auth-only) .v0-summary-card {
  position: relative !important;
}

body:not(.auth-only) .v0-summary-card::before {
  display: none !important;
  content: none !important;
}

body:not(.auth-only) .v0-hero-card {
  padding: 1.65rem !important;
}

body:not(.auth-only) .v0-stat-card,
body:not(.auth-only) .v0-list-item,
body:not(.auth-only) .v0-checklist-row {
  display: grid !important;
}

body:not(.auth-only) .v0-action-card {
  display: grid !important;
}

body:not(.auth-only) .v0-goal-grid,
body:not(.auth-only) .v0-action-grid,
body:not(.auth-only) .v0-stat-grid,
body:not(.auth-only) .v0-switcher-grid,
body:not(.auth-only) .v0-split-grid,
body:not(.auth-only) .v0-side-stack,
body:not(.auth-only) .v0-checklist-stack,
body:not(.auth-only) .v0-list-stack {
  display: grid !important;
}

body:not(.auth-only) .v0-card-head,
body:not(.auth-only) .v0-list-head,
body:not(.auth-only) .v0-list-meta,
body:not(.auth-only) .v0-highlight-footer,
body:not(.auth-only) .v0-stat-label-row {
  display: flex !important;
}

body:not(.auth-only) .v0-card-head {
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  margin-bottom: 1.05rem !important;
  padding-bottom: 0.95rem !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
}

body:not(.auth-only) .v0-overview-band {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(var(--ds-layout-grid-split-side), 1fr) !important;
  gap: var(--ds-layout-grid-gap) !important;
  align-items: stretch !important;
}

body:not(.auth-only) .v0-subnav-card {
  padding-bottom: 0.55rem !important;
}

body:not(.auth-only) .v0-goal-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ds-layout-grid-card-min)), 1fr)) !important;
  gap: var(--ds-layout-grid-gap) !important;
  margin-top: 1.35rem !important;
}

body:not(.auth-only) .v0-split-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(var(--ds-layout-grid-split-side), 1fr) !important;
  gap: var(--ds-layout-grid-gap) !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
}

body:not(.auth-only) .v0-dashboard-layout {
  align-items: start !important;
}

body:not(.auth-only) .v0-side-stack {
  gap: 1.25rem !important;
}

body:not(.auth-only) .v0-highlight-card {
  display: grid !important;
  gap: 0.95rem !important;
  padding: 1.45rem !important;
  border-radius: 1.25rem !important;
  background: linear-gradient(180deg, #fcfcfd 0%, #f7f9fd 100%) !important;
  border-color: rgba(211, 218, 255, 0.92) !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 36px rgba(91, 75, 240, 0.08) !important;
}

body:not(.auth-only) .v0-highlight-card h3,
body:not(.auth-only) .v0-hero-card h2 {
  margin: 0 !important;
  color: #1f2b45 !important;
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

body:not(.auth-only) .v0-hero-card h2 {
  font-size: 1.9rem !important;
}

body:not(.auth-only) .v0-highlight-card h3 {
  font-size: 1.35rem !important;
}

body:not(.auth-only) .v0-hero-card > p,
body:not(.auth-only) .v0-highlight-card p {
  margin: 0 !important;
  color: #5f6f86 !important;
}

body:not(.auth-only) .v0-highlight-card .v0-primary-button,
body:not(.auth-only) .v0-highlight-card .v0-inline-button {
  justify-self: start !important;
}

body:not(.auth-only) .v0-highlight-footer {
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.85rem !important;
  flex-wrap: wrap !important;
}

body:not(.auth-only) .v0-goal-card {
  display: grid !important;
  gap: 0.6rem !important;
  align-content: start !important;
  min-height: 9.2rem !important;
  width: 100% !important;
  padding: 1.15rem !important;
  border-radius: 1.25rem !important;
  text-align: left !important;
  color: #334155 !important;
}

body:not(.auth-only) .v0-goal-card:hover,
body:not(.auth-only) .v0-switcher-button:hover {
  border-color: rgba(129, 140, 248, 0.45) !important;
  background: rgba(238, 242, 255, 0.92) !important;
}

body:not(.auth-only) .v0-goal-icon,
body:not(.auth-only) .v0-action-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #7c3aed, #6366f1 60%, #ec4899) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.18) !important;
}

body:not(.auth-only) .v0-goal-icon {
  width: 2.8rem !important;
  height: 2.8rem !important;
  border-radius: 1rem !important;
  font-weight: 700 !important;
}

body:not(.auth-only) .v0-goal-card strong {
  color: #1f2b45 !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

body:not(.auth-only) .v0-goal-card p {
  color: #64748b !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
}

body:not(.auth-only) .v0-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ds-layout-grid-compact-min)), 1fr)) !important;
  gap: var(--ds-layout-grid-gap) !important;
}

body:not(.auth-only) .v0-stat-card {
  padding: 1.3rem 1.35rem !important;
  min-height: 8.6rem !important;
  align-content: start !important;
}

body:not(.auth-only) .v0-stat-label {
  color: #64748b !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body:not(.auth-only) .v0-stat-value {
  color: #1f2b45 !important;
  font-size: 3rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

body:not(.auth-only) .v0-subnav {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  padding: 0 0 0.15rem !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.98) !important;
  overflow-x: auto !important;
}

body:not(.auth-only) .v0-subnav-button {
  flex: 0 0 auto !important;
  padding: 0.9rem 0.1rem 0.8rem !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body:not(.auth-only) .v0-subnav-button:hover {
  color: #4338ca !important;
  background: transparent !important;
}

body:not(.auth-only) .v0-subnav-button.active {
  border-bottom-color: #6366f1 !important;
  background: transparent !important;
  color: #4f46e5 !important;
}

body:not(.auth-only) .v0-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ds-layout-grid-card-min)), 1fr)) !important;
  gap: var(--ds-layout-grid-gap) !important;
}

body:not(.auth-only) .v0-action-grid--marketing {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ds-layout-grid-card-min)), 1fr)) !important;
}

body:not(.auth-only) .v0-action-grid--admin {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ds-layout-grid-card-min)), 1fr)) !important;
}

body:not(.auth-only) .v0-action-grid--revenue {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ds-layout-grid-card-min)), 1fr)) !important;
}

body:not(.auth-only) .v0-action-grid--automation {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ds-layout-grid-card-min)), 1fr)) !important;
}

body:not(.auth-only) .v0-action-card {
  grid-template-columns: 1fr !important;
  row-gap: 1.15rem !important;
  padding: 1.45rem !important;
  min-height: 13rem !important;
}

body:not(.auth-only) .v0-action-card.is-primary {
  background: linear-gradient(180deg, #fdfbff 0%, #ffffff 100%) !important;
  border-color: rgba(216, 180, 254, 0.72) !important;
}

body:not(.auth-only) .v0-action-top {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: start !important;
}

body:not(.auth-only) .v0-action-icon {
  width: 3.1rem !important;
  height: 3.1rem !important;
  border-radius: 1rem !important;
  font-size: 1.2rem !important;
}

body:not(.auth-only) .v0-action-body {
  display: grid !important;
  gap: 0.45rem !important;
  padding-right: 0 !important;
  align-content: start !important;
}

body:not(.auth-only) .v0-action-kicker {
  color: #7c3aed !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

body:not(.auth-only) .v0-action-body p {
  color: #64748b !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  max-width: 30ch !important;
}

body:not(.auth-only) .v0-action-body h4 {
  margin: 0 !important;
  line-height: 1.25 !important;
}

body:not(.auth-only) .v0-action-footer {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin-top: auto !important;
  padding-top: 1rem !important;
  border-top: 1px solid rgba(226, 232, 240, 0.78) !important;
}

body:not(.auth-only) .v0-action-footer .v0-inline-button {
  min-width: 10rem !important;
}

body:not(.auth-only) .toast:not(.show) {
  display: none !important;
}

body:not(.auth-only) .toast.show {
  display: block !important;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
  border: 1px solid rgba(215, 225, 238, 0.98) !important;
  color: #1f2b45 !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12) !important;
}

body:not(.auth-only) .ux-panel,
body:not(.auth-only) .v0-dialog-shell {
  border: 1px solid rgba(215, 225, 238, 0.98) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.98)) !important;
  border-radius: 1.15rem !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16) !important;
}

body:not(.auth-only) .ux-panel header,
body:not(.auth-only) .ux-panel p,
body:not(.auth-only) .ux-panel strong,
body:not(.auth-only) .ux-panel h3,
body:not(.auth-only) .ux-panel h4,
body:not(.auth-only) .v0-dialog-shell header,
body:not(.auth-only) .v0-dialog-shell p,
body:not(.auth-only) .v0-dialog-shell strong,
body:not(.auth-only) .v0-dialog-shell h3,
body:not(.auth-only) .v0-dialog-shell h4 {
  color: #1f2b45 !important;
}

body:not(.auth-only) .ux-notification-item,
body:not(.auth-only) .ux-status-card,
body:not(.auth-only) .ux-help-card,
body:not(.auth-only) .ux-shortcut-list li,
body:not(.auth-only) .ux-status-blockers li {
  border: 1px solid rgba(215, 225, 238, 0.98) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: none !important;
}

body:not(.auth-only) .ux-notification-module {
  border: 1px solid rgba(215, 225, 238, 0.98) !important;
  background: rgba(99, 102, 241, 0.08) !important;
  color: #5b4bf0 !important;
}

body:not(.auth-only) .v0-action-body h4,
body:not(.auth-only) .v0-card-head h3,
body:not(.auth-only) .v0-card-head h4,
body:not(.auth-only) .v0-list-head strong {
  color: #1f2b45 !important;
}

body:not(.auth-only) .v0-card-head h4 {
  font-size: 1.16rem !important;
  font-weight: 700 !important;
}

body:not(.auth-only) .v0-primary-button,
body:not(.auth-only) .v0-inline-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.8rem !important;
  padding: 0.82rem 1.18rem !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 0.95rem !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

body:not(.auth-only) .v0-inline-button.is-primary,
body:not(.auth-only) .v0-highlight-footer .v0-inline-button {
  background: linear-gradient(90deg, #6366f1, #8b5cf6 58%, #06b6d4) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.18) !important;
}

body:not(.auth-only) .v0-inline-link {
  color: #6366f1 !important;
  font-weight: 700 !important;
}

body:not(.auth-only) .v0-list-item,
body:not(.auth-only) .v0-checklist-row {
  padding: 1rem 1.05rem !important;
}

body:not(.auth-only) .v0-empty-state {
  display: grid !important;
  justify-items: start !important;
  gap: 0.95rem !important;
  min-height: 12.5rem !important;
  padding: 1.5rem !important;
  border: 1px dashed rgba(203, 213, 225, 0.95) !important;
  border-radius: 1.2rem !important;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fafc 100%) !important;
}

body:not(.auth-only) .v0-empty-state.is-compact {
  min-height: 8.25rem !important;
  padding: 1.15rem !important;
}

body:not(.auth-only) .v0-empty-state--info .v0-empty-icon {
  background: rgba(14, 165, 233, 0.1) !important;
  color: #0369a1 !important;
}

body:not(.auth-only) .v0-empty-state--success .v0-empty-icon {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
}

body:not(.auth-only) .v0-empty-state--warning .v0-empty-icon {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #b45309 !important;
}

body:not(.auth-only) .v0-empty-state--danger .v0-empty-icon {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #b91c1c !important;
}

body:not(.auth-only) .v0-empty-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 0.95rem !important;
  background: rgba(99, 102, 241, 0.08) !important;
  color: #6366f1 !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}

body:not(.auth-only) .v0-empty-copy {
  display: grid !important;
  gap: 0.38rem !important;
}

body:not(.auth-only) .v0-empty-copy strong {
  color: #1f2b45 !important;
  font-size: 1.02rem !important;
}

body:not(.auth-only) .v0-empty-copy p {
  margin: 0 !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}

body:not(.auth-only) .v0-table-wrap .v0-empty-state {
  min-height: 16rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
}

body:not(.auth-only) .v0-checklist-row {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 0.9rem !important;
  align-items: center !important;
  padding-left: 0.1rem !important;
  padding-right: 0.1rem !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.auth-only) .v0-checklist-row + .v0-checklist-row {
  border-top: 1px solid rgba(226, 232, 240, 0.95) !important;
}

body:not(.auth-only) .v0-checklist-index {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.8rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

body:not(.auth-only) .v0-checklist-body {
  display: grid !important;
  gap: 0.22rem !important;
}

body:not(.auth-only) .v0-checklist-body strong {
  color: #1f2b45 !important;
}

body:not(.auth-only) .v0-checklist-body p {
  color: #64748b !important;
}

body:not(.auth-only) .v0-list-meta {
  color: #64748b !important;
}

body:not(.auth-only) .v0-list-head,
body:not(.auth-only) .v0-list-meta {
  justify-content: space-between !important;
  gap: 0.75rem !important;
  align-items: center !important;
}

body:not(.auth-only) .v0-switcher-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ds-layout-grid-panel-min)), 1fr)) !important;
  gap: var(--ds-layout-grid-gap) !important;
}

body:not(.auth-only) .v0-stat-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ds-layout-grid-compact-min)), 1fr)) !important;
  margin-top: 1rem !important;
}

body:not(.auth-only) .v0-stat-grid--compact .v0-stat-card {
  min-height: 0 !important;
  padding: 1.05rem 1.1rem !important;
  box-shadow: none !important;
  background: linear-gradient(180deg, #fdfdff 0%, #fafbfe 100%) !important;
}

body:not(.auth-only) .v0-stat-grid--compact .v0-stat-value {
  font-size: 2.15rem !important;
}

body:not(.auth-only) .v0-switcher-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 3.1rem !important;
  width: 100% !important;
  padding: 0.8rem 1rem !important;
  border-radius: 1rem !important;
  color: #475569 !important;
  font-weight: 700 !important;
}

body:not(.auth-only) .v0-mobile-only {
  display: none !important;
}

body:not(.auth-only) .v0-empty {
  padding: 1rem 0 !important;
  color: #94a3b8 !important;
}

body:not(.auth-only) .v0-table-wrap {
  border: 1px solid rgba(214, 223, 236, 0.98) !important;
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(15, 23, 42, 0.045) !important;
}

body:not(.auth-only) table {
  background: #ffffff !important;
}

body:not(.auth-only) .v0-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body:not(.auth-only) .v0-table thead,
body:not(.auth-only) thead {
  background: #f6f8fc !important;
}

body:not(.auth-only) .v0-table thead th,
body:not(.auth-only) .v0-table th,
body:not(.auth-only) .table-wrap thead th,
body:not(.auth-only) .table-wrap th,
body:not(.auth-only) th {
  background: #f6f8fc !important;
  color: #72839a !important;
}

body:not(.auth-only) .v0-table th,
body:not(.auth-only) .v0-table td,
body:not(.auth-only) th,
body:not(.auth-only) td {
  padding: 1.15rem 1.1rem !important;
}

body:not(.auth-only) .v0-table th {
  color: #64748b !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

body:not(.auth-only) .v0-table td {
  background: #ffffff !important;
  color: #2f3e55 !important;
  font-size: 0.98rem !important;
}

body:not(.auth-only) td {
  background: #ffffff !important;
  color: #2f3e55 !important;
}

body:not(.auth-only) .table-wrap td,
body:not(.auth-only) .table-wrap tbody td {
  background: #ffffff !important;
}

body:not(.auth-only) .v0-table th *,
body:not(.auth-only) .v0-table td *,
body:not(.auth-only) .table-wrap th *,
body:not(.auth-only) .table-wrap td *,
body:not(.auth-only) th *,
body:not(.auth-only) td * {
  color: inherit !important;
  opacity: 1 !important;
}

body:not(.auth-only) .v0-table tbody tr:hover,
body:not(.auth-only) .table-wrap tbody tr:hover {
  background: #f8fafc !important;
}

body:not(.auth-only) .v0-table tbody tr:hover td,
body:not(.auth-only) .table-wrap tbody tr:hover td,
body:not(.auth-only) tbody tr:hover td {
  background: #f8fafc !important;
}

body:not(.auth-only) .v0-table-subtext {
  margin-top: 0.2rem !important;
  color: #94a3b8 !important;
  font-size: 0.92rem !important;
}

body:not(.auth-only) .command-palette {
  position: fixed !important;
  inset: 0 !important;
  z-index: 140 !important;
  display: grid !important;
  place-items: start center !important;
  padding: 5rem 1rem 1rem !important;
}

body:not(.auth-only) .command-palette.hidden {
  display: none !important;
}

body:not(.auth-only) .command-palette[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:not(.auth-only) .grid.two-col,
body:not(.auth-only) .grid.two-cols,
body:not(.auth-only) .email-outlook-shell,
body:not(.auth-only) .v0-specialist-page,
body:not(.auth-only) .v0-specialist-grid-2,
body:not(.auth-only) .v0-specialist-grid,
body:not(.auth-only) .v0-module-panel,
body:not(.auth-only) .v0-card,
body:not(.auth-only) .panel {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

body:not(.auth-only) .grid.two-col,
body:not(.auth-only) .grid.two-cols,
body:not(.auth-only) .v0-specialist-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ds-layout-grid-panel-min)), 1fr)) !important;
  gap: var(--ds-layout-grid-gap) !important;
}

body:not(.auth-only) #email-section .email-outlook-shell {
  grid-template-columns: minmax(var(--ds-layout-grid-split-side), 0.95fr) minmax(0, 1.15fr) !important;
  gap: var(--ds-layout-grid-gap) !important;
}

body:not(.auth-only) #automation-section .v0-split-grid.v0-dashboard-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(min(100%, var(--ds-layout-grid-split-side)), 0.82fr) !important;
  gap: var(--ds-layout-grid-gap) !important;
}

body:not(.auth-only) .command-palette-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.18) !important;
  backdrop-filter: blur(8px) !important;
}

body:not(.auth-only) .command-palette-card {
  position: relative !important;
  z-index: 1 !important;
  width: min(52rem, calc(100vw - 2rem)) !important;
  display: grid !important;
  gap: 0.85rem !important;
  padding: 1.1rem !important;
  border: 1px solid rgba(226, 232, 240, 0.98) !important;
  border-radius: 1.35rem !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16) !important;
}

body:not(.auth-only) .command-palette-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 0.75rem !important;
  align-items: center !important;
}

body:not(.auth-only) .command-palette-head input,
body:not(.auth-only) .v0-command-input {
  min-height: 3.15rem !important;
  padding: 0 1rem !important;
  border: 1px solid rgba(226, 232, 240, 0.98) !important;
  border-radius: 1rem !important;
  background: #f8fafc !important;
}

/* ------------------------------------------------------------
   Phase 1 Product OS shell bridge
   ------------------------------------------------------------ */

:root {
  --uh-text: var(--ds-text-body);
  --uh-muted: var(--ds-text-muted);
  --uh-surface: var(--ds-bg-card);
  --uh-border: var(--ds-border);
  --uh-accent: var(--ds-accent);
}

body:not(.auth-only) .app-shell {
  background: linear-gradient(180deg, var(--ds-bg-app-alt) 0%, var(--ds-bg-app) 100%) !important;
  background-image: none !important;
}

body:not(.auth-only) .sidebar,
body:not(.auth-only) .topbar,
body:not(.auth-only) .topbar-tools > .ux-toolbar,
body:not(.auth-only) .command-palette-card,
body:not(.auth-only) .v0-command-surface,
body:not(.auth-only) .v0-dialog-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95)) !important;
  border: 1px solid var(--ds-border) !important;
  box-shadow: var(--ds-shadow-card) !important;
  backdrop-filter: blur(12px) !important;
}

body:not(.auth-only) .sidebar {
  background: linear-gradient(180deg, var(--ds-bg-sidebar) 0%, #f7f9fc 100%) !important;
  border-right: 1px solid var(--ds-border) !important;
  box-shadow: var(--ds-shadow-card) !important;
}

body:not(.auth-only) .brand-block {
  border-bottom: 1px solid var(--ds-border) !important;
}

body:not(.auth-only) .brand-block::before {
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%) !important;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.16) !important;
}

body:not(.auth-only) #brand-name {
  color: var(--ds-text) !important;
  -webkit-text-fill-color: var(--ds-text) !important;
}

body:not(.auth-only) #brand-tagline,
body:not(.auth-only) #brand-eyebrow,
body:not(.auth-only) .wedge-copy small,
body:not(.auth-only) .wedge-child-meta,
body:not(.auth-only) .sidebar-foot-label {
  color: var(--ds-text-muted) !important;
}

body:not(.auth-only) .wedge-nav-single.active,
body:not(.auth-only) .wedge-nav-group.active {
  background: var(--ds-bg-card) !important;
  border-color: var(--ds-border) !important;
  box-shadow: var(--ds-shadow-card) !important;
}

body:not(.auth-only) .wedge-primary-btn.active {
  background: var(--ds-bg-subtle) !important;
  color: var(--ds-text) !important;
}

body:not(.auth-only) .wedge-icon {
  background: var(--ds-bg-subtle) !important;
  color: var(--ds-text-muted) !important;
  box-shadow: none !important;
}

body:not(.auth-only) .wedge-primary-btn.active .wedge-icon,
body:not(.auth-only) .wedge-nav-group.active .wedge-icon,
body:not(.auth-only) .wedge-nav-single.active .wedge-icon {
  background: rgba(2, 132, 199, 0.12) !important;
  color: var(--ds-accent-strong) !important;
  box-shadow: none !important;
}

body:not(.auth-only) .sidebar-quick-action-btn,
body:not(.auth-only) #workspace-export-btn,
body:not(.auth-only) #auth-logout-btn,
body:not(.auth-only) .sidebar .btn.primary,
body:not(.auth-only) .v0-primary-button {
  background: var(--ds-accent) !important;
  color: #ffffff !important;
  border-color: var(--ds-accent) !important;
  box-shadow: var(--ds-shadow-accent) !important;
}

body:not(.auth-only) .topbar {
  top: 0.75rem !important;
  padding: 0.9rem 1rem !important;
  background: var(--ds-bg-topbar) !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-radius-lg) !important;
  box-shadow: var(--ds-shadow-card) !important;
}

body:not(.auth-only) .ux-toolbar-search input,
body:not(.auth-only) .app-select,
body:not(.auth-only) .ux-sidebar-search-wrap input,
body:not(.auth-only) .command-palette-head input,
body:not(.auth-only) .v0-command-input {
  background: var(--ds-bg-card) !important;
  color: var(--ds-text-body) !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-radius-md) !important;
  box-shadow: none !important;
}

body:not(.auth-only) .v0-command-input::placeholder {
  color: var(--ds-text-soft) !important;
}

body:not(.auth-only) #services-root {
  background: transparent !important;
}

body:not(.auth-only) .v0-subnav,
body:not(.auth-only) .crm-tab-row,
body:not(.auth-only) .accounting-tab-row,
body:not(.auth-only) .inventory-tab-row,
body:not(.auth-only) .email-tab-row,
body:not(.auth-only) .video-tab-row,
body:not(.auth-only) .social-tab-row,
body:not(.auth-only) .logs-tab-row,
body:not(.auth-only) .phone-tab-row,
body:not(.auth-only) .comm-tab-row,
body:not(.auth-only) .storage-tab-row,
body:not(.auth-only) .mock-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.25rem !important;
  padding: 0.25rem !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-radius-md) !important;
  background: var(--ds-bg-subtle) !important;
  overflow-x: auto !important;
}

body:not(.auth-only) .v0-subnav-button,
body:not(.auth-only) .crm-tab-row .btn,
body:not(.auth-only) .accounting-tab-row .btn,
body:not(.auth-only) .inventory-tab-row .btn,
body:not(.auth-only) .email-tab-row .btn,
body:not(.auth-only) .video-tab-row .btn,
body:not(.auth-only) .social-tab-row .btn,
body:not(.auth-only) .logs-tab-row .btn,
body:not(.auth-only) .phone-tab-row .btn,
body:not(.auth-only) .comm-tab-row .btn,
body:not(.auth-only) .storage-tab-row .btn,
body:not(.auth-only) .mock-tabs button {
  flex: 0 0 auto !important;
  padding: 0.72rem 0.95rem !important;
  border: 0 !important;
  border-radius: calc(var(--ds-radius-md) - 0.125rem) !important;
  background: transparent !important;
  color: var(--ds-text-muted) !important;
  box-shadow: none !important;
}

body:not(.auth-only) .v0-subnav-button.active,
body:not(.auth-only) .crm-tab-row .btn.active,
body:not(.auth-only) .accounting-tab-row .btn.active,
body:not(.auth-only) .inventory-tab-row .btn.active,
body:not(.auth-only) .email-tab-row .btn.active,
body:not(.auth-only) .video-tab-row .btn.active,
body:not(.auth-only) .social-tab-row .btn.active,
body:not(.auth-only) .logs-tab-row .btn.active,
body:not(.auth-only) .phone-tab-row .btn.active,
body:not(.auth-only) .comm-tab-row .btn.active,
body:not(.auth-only) .storage-tab-row .btn.active,
body:not(.auth-only) .mock-tabs button.active {
  background: var(--ds-bg-card) !important;
  color: var(--ds-text) !important;
  box-shadow: var(--ds-shadow-card) !important;
}

body:not(.auth-only) .v0-table,
body:not(.auth-only) .table-wrap table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 0.25rem !important;
  background: transparent !important;
}

body:not(.auth-only) .v0-table thead,
body:not(.auth-only) .table-wrap thead {
  background: transparent !important;
}

body:not(.auth-only) .v0-table thead th,
body:not(.auth-only) .v0-table th,
body:not(.auth-only) .table-wrap thead th,
body:not(.auth-only) .table-wrap th {
  border: 0 !important;
  background: transparent !important;
  color: var(--ds-text-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

body:not(.auth-only) .v0-table td,
body:not(.auth-only) .table-wrap td {
  background: var(--ds-bg-card) !important;
  border: 1px solid var(--ds-border) !important;
  border-style: solid none !important;
  color: var(--ds-text-body) !important;
}

body:not(.auth-only) .v0-table td:first-child,
body:not(.auth-only) .table-wrap td:first-child {
  border-left-style: solid !important;
  border-top-left-radius: var(--ds-radius-sm) !important;
  border-bottom-left-radius: var(--ds-radius-sm) !important;
}

body:not(.auth-only) .v0-table td:last-child,
body:not(.auth-only) .table-wrap td:last-child {
  border-right-style: solid !important;
  border-top-right-radius: var(--ds-radius-sm) !important;
  border-bottom-right-radius: var(--ds-radius-sm) !important;
}

body:not(.auth-only) .v0-table tbody tr:hover td,
body:not(.auth-only) .table-wrap tbody tr:hover td {
  background: var(--ds-bg-subtle) !important;
}

body:not(.auth-only) .ux-offline-banner.v0-inline-alert {
  position: fixed !important;
  left: 50% !important;
  bottom: 1rem !important;
  transform: translateX(-50%) !important;
  z-index: 960 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
  max-width: min(42rem, calc(100vw - 2rem)) !important;
}

body:not(.auth-only) .ux-offline-banner.v0-inline-alert.hidden,
body:not(.auth-only) .ux-offline-banner.v0-inline-alert[hidden] {
  display: none !important;
}

body:not(.auth-only) .ux-offline-banner.v0-inline-alert .btn {
  margin-left: auto !important;
}

body:not(.auth-only) .inline-tip.v0-inline-alert {
  margin: 0.35rem 0 1rem !important;
}

body:not(.auth-only) .ux-mobile-fab {
  background: linear-gradient(135deg, #0284c7, #06b6d4) !important;
  border: 1px solid transparent !important;
  color: #ffffff !important;
  box-shadow: 0 18px 36px rgba(2, 132, 199, 0.22) !important;
}

body:not(.auth-only) .ux-mobile-context-sheet.v0-dialog-shell {
  left: 0.8rem !important;
  right: 0.8rem !important;
  bottom: calc(var(--ux-mobile-tabbar-height) + env(safe-area-inset-bottom) + 0.55rem) !important;
  padding: 0.88rem !important;
  border-radius: 1.4rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.99)) !important;
  border: 1px solid var(--ds-border) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

body:not(.auth-only) .ux-mobile-context-sheet.v0-dialog-shell .eyebrow,
body:not(.auth-only) .ux-mobile-context-sheet.v0-dialog-shell .subtle {
  color: var(--ds-text-muted) !important;
}

body:not(.auth-only) .ux-mobile-context-sheet-handle {
  background: rgba(148, 163, 184, 0.5) !important;
}

body:not(.auth-only) .ux-mobile-context-action {
  display: grid !important;
  gap: 0.2rem !important;
  width: 100% !important;
  padding: 0.88rem 0.95rem !important;
  border-radius: 1rem !important;
  text-align: left !important;
  background: #ffffff !important;
  border: 1px solid var(--ds-border) !important;
  color: var(--ds-text) !important;
  box-shadow: none !important;
}

body:not(.auth-only) .ux-mobile-context-action span {
  color: var(--ds-text-muted) !important;
}

body:not(.auth-only) .ux-mobile-context-action.is-primary {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.18) !important;
}

body:not(.auth-only) .command-palette-list {
  display: grid !important;
  gap: 0.55rem !important;
  max-height: min(60vh, 34rem) !important;
  overflow: auto !important;
}

body:not(.auth-only) .command-palette-item {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 0.9rem 1rem !important;
  border: 1px solid rgba(226, 232, 240, 0.98) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  color: #1f2b45 !important;
  text-align: left !important;
}

body:not(.auth-only) .command-palette-item.is-selected,
body:not(.auth-only) .command-palette-item:hover {
  border-color: rgba(129, 140, 248, 0.5) !important;
  background: rgba(238, 242, 255, 0.88) !important;
}

body:not(.auth-only) .command-palette-item-main {
  display: grid !important;
  gap: 0.18rem !important;
}

body:not(.auth-only) .command-palette-item-main small,
body:not(.auth-only) .command-palette-helper {
  color: #64748b !important;
}

body:not(.auth-only) .command-palette-item-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 1.8rem !important;
  padding: 0.1rem 0.65rem !important;
  border-radius: 999px !important;
  background: rgba(99, 102, 241, 0.1) !important;
  color: #4338ca !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

body:not(.auth-only) .v0-goal-card {
  min-height: 9.25rem !important;
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.05) !important;
}

@media (max-width: 1180px) {
  body:not(.auth-only) .app-shell {
    grid-template-columns: 1fr !important;
    padding: 0.65rem !important;
  }

  body:not(.auth-only) .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(22rem, calc(100vw - 1.25rem)) !important;
    height: auto !important;
    z-index: 1200 !important;
  }

  body:not(.auth-only) .mobile-nav-close,
  body:not(.auth-only) #ux-mobile-nav-close {
    display: inline-flex !important;
  }

  body:not(.auth-only) .topbar {
    padding: 0.95rem 1rem !important;
  }

  body:not(.auth-only) .topbar-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.75rem !important;
  }

  body:not(.auth-only) #active-service-label,
  body:not(.auth-only) #active-service-title {
    display: none !important;
  }

  body:not(.auth-only) .topbar-tools > .ux-toolbar,
  body:not(.auth-only) .topbar-actions-row {
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
  }

  body:not(.auth-only) .ux-toolbar-actions,
  body:not(.auth-only) .topbar-account-actions {
    justify-content: flex-start !important;
  }

  body:not(.auth-only) #services-root {
    padding: 1rem 1rem 7rem !important;
  }

  body:not(.auth-only) .v0-overview-band,
  body:not(.auth-only) .v0-stat-grid,
  body:not(.auth-only) .v0-action-grid,
  body:not(.auth-only) .v0-split-grid,
  body:not(.auth-only) .v0-goal-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  body:not(.auth-only) .topbar {
    padding: 0.85rem !important;
    gap: 0.75rem !important;
  }

  body:not(.auth-only) .topbar-title {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "label toggle"
      "title title" !important;
    align-items: center !important;
    gap: 0.32rem 0.6rem !important;
    margin-bottom: 0 !important;
  }

  body:not(.auth-only) #active-service-label {
    display: block !important;
    grid-area: label;
    margin: 0 !important;
  }

  body:not(.auth-only) #active-service-title {
    display: block !important;
    grid-area: title;
    margin: 0 !important;
    white-space: normal !important;
    line-height: 1.16 !important;
  }

  body:not(.auth-only) .topbar-tools,
  body:not(.auth-only) .topbar-tools > .ux-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }

  body:not(.auth-only) .topbar-actions-row,
  body:not(.auth-only) .topbar-primary-actions,
  body:not(.auth-only) .topbar-account-actions,
  body:not(.auth-only) .status-cluster {
    display: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    pointer-events: none !important;
  }

  body:not(.auth-only) .ux-toolbar-actions {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }

  body:not(.auth-only) .ux-toolbar-actions .toolbar-btn,
  body:not(.auth-only) #ux-mobile-nav-toggle {
    width: auto !important;
  }
}

@media (max-width: 760px) {
  body:not(.auth-only) .wedge-copy strong {
    font-size: 1.1rem !important;
  }

  body:not(.auth-only) .wedge-copy small,
  body:not(.auth-only) .wedge-child-meta {
    font-size: 0.86rem !important;
  }

  body:not(.auth-only) .topbar-actions-row,
  body:not(.auth-only) .topbar-primary-actions,
  body:not(.auth-only) .topbar-account-actions {
    gap: 0.55rem !important;
  }

  body:not(.auth-only) .toolbar-btn,
  body:not(.auth-only) .topbar .btn,
  body:not(.auth-only) .app-select-wrap {
    width: 100% !important;
    justify-content: center !important;
  }

  body:not(.auth-only) .v0-mobile-only {
    display: grid !important;
  }

  body:not(.auth-only) .v0-mobile-hide {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   Phase 1 wedge accent utilities
   ------------------------------------------------------------ */

body:not(.auth-only) .glow-emerald,
body:not(.auth-only) .glow-amber,
body:not(.auth-only) .glow-pink,
body:not(.auth-only) .glow-cyan {
  position: relative !important;
  overflow: hidden !important;
}

body:not(.auth-only) .glow-emerald::before,
body:not(.auth-only) .glow-amber::before,
body:not(.auth-only) .glow-pink::before,
body:not(.auth-only) .glow-cyan::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 3px !important;
}

body:not(.auth-only) .glow-emerald::before {
  background: var(--ds-accent-emerald) !important;
}

body:not(.auth-only) .glow-amber::before {
  background: var(--ds-accent-amber) !important;
}

body:not(.auth-only) .glow-pink::before {
  background: var(--ds-accent-pink) !important;
}

body:not(.auth-only) .glow-cyan::before {
  background: var(--ds-accent-cyan) !important;
}

body:not(.auth-only) :is(#revenue-section, #crm-section, #sales-section, #leadintel-section) .v0-page-chip,
body:not(.auth-only) :is(#revenue-section, #crm-section, #sales-section, #leadintel-section) .service-head .eyebrow {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #047857 !important;
}

body:not(.auth-only) :is(#operations-section, #inventory-section, #accounting-section) .v0-page-chip,
body:not(.auth-only) :is(#operations-section, #inventory-section, #accounting-section) .service-head .eyebrow {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #b45309 !important;
}

body:not(.auth-only) :is(#marketing-section, #video-section, #social-section, #bi-section) .v0-page-chip,
body:not(.auth-only) :is(#marketing-section, #video-section, #social-section, #bi-section) .service-head .eyebrow {
  background: rgba(236, 72, 153, 0.1) !important;
  color: #be185d !important;
}

body:not(.auth-only) :is(#admin-section, #platform-section, #integrations-section, #automation-section, #agents-section, #logs-section, #security-section, #support-section, #help-section, #features-section, #portal-section) .v0-page-chip,
body:not(.auth-only) :is(#admin-section, #platform-section, #integrations-section, #automation-section, #agents-section, #logs-section, #security-section, #support-section, #help-section, #features-section, #portal-section) .service-head .eyebrow {
  background: rgba(6, 182, 212, 0.1) !important;
  color: #0f766e !important;
}
