/* Core Variables & Reset */
:root {
  --optix-bg: #f8fafc;
  --optix-surface: #ffffff;
  --optix-border: #e4e7ec;
  --optix-navy: #071b45;
  --optix-text: #344054;
  --optix-muted: #667085;
  --optix-primary: #155eef;
  --optix-green: #12b76a;
  --optix-shadow: 0 8px 24px rgba(7, 27, 69, 0.04);
  --optix-radius-lg: 20px;
}

html {
  height: 100%;
  font-size: 16px;
}

body.workspace-body {
  min-height: 100%;
  margin: 0;
  display: flex;
  background: var(--optix-bg);
  color: var(--optix-text);
  font-family: "Inter", "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--optix-primary);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  box-shadow: none;
  transition: all 0.2s ease;
}

.btn-optix {
  color: #fff;
  border: 0;
  background: var(--optix-primary);
}

.btn-optix:hover {
  color: #fff;
  background: #0f4cd8;
  box-shadow: 0 6px 16px rgba(21, 94, 239, 0.16);
}

.btn-outline-optix {
  border: 1px solid var(--optix-border);
  color: var(--optix-navy);
  background: #fff;
}

.btn-outline-optix:hover {
  background: #eff4ff;
  border-color: #b2ccff;
  color: var(--optix-primary);
}

/* Sidebar Styling */
.workspace-sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  border-right: 1px solid var(--optix-border);
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.workspace-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
}

.workspace-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.optix-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--optix-navy);
  font-weight: 800;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--optix-primary);
  color: var(--optix-primary);
  flex: 0 0 auto;
}

.brand-mark span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--optix-primary);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--optix-muted);
  font-size: 0.68rem;
  font-weight: 500;
  white-space: normal;
  max-width: 170px;
}

.workspace-sidebar-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--optix-navy);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Sidebar Navigation */
.workspace-sidebar-nav {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--optix-muted);
  letter-spacing: 0.05em;
  padding-left: 0.75rem;
  margin-bottom: 0.4rem;
}

.workspace-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  color: var(--optix-navy);
  font-weight: 600;
  font-size: 0.9rem;
}

.workspace-sidebar-link:hover {
  background: #eff4ff;
  color: var(--optix-primary);
}

.workspace-sidebar-link.is-active {
  background: #eff4ff;
  color: var(--optix-primary);
  font-weight: 700;
}

.workspace-sidebar-link.is-disabled {
  color: #98a2b3;
  cursor: not-allowed;
  pointer-events: none;
}

.workspace-sidebar-link.is-disabled:hover {
  background: transparent;
}

.badge-soon {
  font-size: 0.65rem;
  font-weight: 700;
  background: #f2f4f7;
  color: #667085;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.workspace-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--optix-border);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Mobile top bar */
.workspace-mobile-header {
  height: 56px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--optix-border);
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
}

.workspace-hamburger {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.workspace-hamburger span {
  width: 18px;
  height: 2px;
  background: var(--optix-navy);
  border-radius: 999px;
}

/* Mobile Overlay */
.workspace-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 27, 69, 0.3);
  backdrop-filter: blur(2px);
  z-index: 990;
}

/* Main Content Area */
.workspace-main-wrapper {
  margin-left: 260px;
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.workspace-top-bar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--optix-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
}

.workspace-top-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--optix-navy);
  margin: 0;
  line-height: 1.2;
}

.workspace-top-subtitle {
  font-size: 0.72rem;
  color: var(--optix-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.workspace-top-bar-right {
  display: flex;
  gap: 0.75rem;
}

.workspace-content {
  flex-grow: 1;
  padding: 1.5rem;
}

.workspace-footer {
  flex-shrink: 0;
  padding: 0.75rem 0;
}

.workspace-footer a:hover {
  text-decoration: underline;
}

/* Dashboard-specific content styles */
.workspace-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(21, 94, 239, 0.14);
  background: #eff4ff;
  color: var(--optix-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.44rem 0.78rem;
}

.workspace-hero {
  max-width: 100%;
  margin-bottom: 1.5rem;
  text-align: left;
  padding: 0;
}

.workspace-hero h1 {
  margin: 0.25rem 0 0.35rem;
  color: var(--optix-navy);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.workspace-hero p {
  color: var(--optix-muted);
  font-size: 0.9rem;
  margin: 0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .workspace-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.workspace-card {
  background: #fff;
  border: 1px solid var(--optix-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--optix-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.workspace-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(7, 27, 69, 0.08);
  border-color: #b2ccff;
}

.workspace-card h2 {
  color: var(--optix-navy);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
}

.workspace-card p {
  color: var(--optix-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.workspace-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--optix-green);
  display: inline-block;
  margin-right: 0.45rem;
}

.workspace-dot.is-locked {
  background: #98a2b3;
}

/* Placeholder card for internal pages */
.workspace-placeholder-card {
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--optix-border);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: var(--optix-shadow);
  text-align: left;
  margin: 0;
}

.workspace-placeholder-card h2 {
  color: var(--optix-navy);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.workspace-placeholder-card p {
  color: var(--optix-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.workspace-placeholder-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Responsive Rules */
@media (max-width: 991.98px) {
  body.workspace-body {
    padding-top: 56px; /* offset for mobile top bar */
  }

  .workspace-sidebar {
    transform: translateX(-100%);
    box-shadow: 15px 0 35px rgba(7, 27, 69, 0.15);
    z-index: 1100;
  }

  .workspace-sidebar.is-open {
    transform: translateX(0);
  }

  .workspace-main-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .workspace-content {
    padding: 1.5rem 1rem;
  }
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: #f8fafc;
  color: var(--optix-navy);
  border: 1px solid var(--optix-border);
  padding: 0.22rem 0.55rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}

.workspace-profile-details {
  border-top: 1px solid var(--optix-border);
  border-bottom: 1px solid var(--optix-border);
  padding: 0.75rem 0;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Choice Chips selection styles */
.profile-chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.profile-choice-chip {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.profile-choice-chip:hover {
  background-color: #f5f8ff !important;
  border-color: #b2ccff !important;
  color: var(--optix-primary) !important;
}

.profile-chip-input:checked + .profile-choice-chip {
  background-color: #eff4ff !important;
  border-color: var(--optix-primary) !important;
  color: var(--optix-primary) !important;
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--optix-primary);
}

.profile-choice-check {
  display: inline-block;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.2s ease;
  font-weight: bold;
}

.profile-chip-input:checked + .profile-choice-chip .profile-choice-check {
  width: 12px;
  margin-right: 2px;
  opacity: 1;
}

/* Profile Initials Avatar */
.profile-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #dbe8ff;
  color: var(--optix-primary);
  border: 2px solid #b2ccff;
  user-select: none;
}

.profile-avatar--individual {
  border-radius: 50%;
}

.profile-avatar--business {
  border-radius: 10px;
}

/* +N more / Show less interactive buttons */
.chip-more-btn {
  font-size: 0.72rem;
  font-weight: 700;
  background: #eff4ff;
  color: var(--optix-primary);
  border: 1px solid #b2ccff;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.4;
}

.chip-more-btn:hover {
  background: #dbe8ff;
  box-shadow: 0 0 0 2px #b2ccff;
}

.chip-more-btn:focus-visible {
  outline: 2px solid var(--optix-primary);
  outline-offset: 2px;
}

.chip-less-btn {
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--optix-muted);
  border: 1px solid var(--optix-border);
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease;
  line-height: 1.4;
}

.chip-less-btn:hover {
  background: #e4e7ec;
  color: var(--optix-navy);
}

.chip-less-btn:focus-visible {
  outline: 2px solid var(--optix-primary);
  outline-offset: 2px;
}

/* More menu upward positioning */
[data-profile-more-dropdown] [data-more-menu] {
  top: auto !important;
  bottom: calc(100% + 6px) !important;
  right: 0 !important;
}
/* Profile Wizard & Edit Styles */
.profile-wizard-container {
  max-width: 800px;
  margin: 0 auto;
}

.profile-edit-container {
  max-width: 1050px;
  margin: 0 auto;
}

.profile-wizard-stepper {
  background: #fff;
  border: 1px solid var(--optix-border);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.profile-wizard-stepper-inner {
  display: flex;
  justify-content: space-between;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.profile-wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  text-align: center;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  transition: all 0.2s ease;
}

/* Connector line styles */
.profile-wizard-step::after {
  content: "";
  position: absolute;
  top: 12px; /* Center of the 24px step num */
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--optix-border);
  z-index: 1;
  transition: background-color 0.2s ease;
}

.profile-wizard-step:last-child::after {
  display: none;
}

.profile-wizard-step.completed::after {
  background-color: var(--optix-primary);
}

.profile-wizard-step-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--optix-muted);
  border: 2px solid var(--optix-border);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}

.profile-wizard-step-label {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--optix-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Stepper state behaviors */
.profile-wizard-step.completed {
  cursor: pointer;
}

.profile-wizard-step.completed .profile-wizard-step-num {
  background: #eff4ff;
  border-color: var(--optix-primary);
  color: var(--optix-primary);
  font-size: 0; /* Hide the number */
}

.profile-wizard-step.completed .profile-wizard-step-num::after {
  content: "✓";
  font-size: 0.85rem;
  font-weight: bold;
}

.profile-wizard-step.completed .profile-wizard-step-label {
  color: var(--optix-navy);
}

.profile-wizard-step.completed:hover .profile-wizard-step-num {
  background: var(--optix-primary);
  border-color: var(--optix-primary);
  color: #fff;
}

.profile-wizard-step.completed:hover .profile-wizard-step-num::after {
  color: #fff;
}

.profile-wizard-step.completed:hover .profile-wizard-step-label {
  color: var(--optix-primary);
}

.profile-wizard-step[aria-current="step"] {
  outline: none;
}

.profile-wizard-step[aria-current="step"] .profile-wizard-step-num {
  background: var(--optix-primary);
  border-color: var(--optix-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.15);
}

.profile-wizard-step[aria-current="step"] .profile-wizard-step-label {
  color: var(--optix-primary);
  font-weight: 700;
}

.profile-wizard-step-content {
  border: none;
  padding: 0;
  margin: 0;
}

/* Selection Cards (Profile Type, Working Styles, Capabilities) */
.profile-wizard-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .profile-wizard-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profile-selection-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1.5px solid var(--optix-border);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
  height: 100%;
}

.profile-selection-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.profile-selection-input:focus-visible + .profile-selection-card {
  outline: 2px solid var(--optix-primary);
  outline-offset: 2px;
}

.profile-selection-input:checked + .profile-selection-card {
  border-color: #b2ccff;
  background: #eff4ff;
  box-shadow: 0 2px 8px rgba(21, 94, 239, 0.05);
}

.profile-selection-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.profile-selection-indicator {
  width: 20px;
  height: 20px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  transition: all 0.2s ease;
}

.profile-selection-indicator-radio {
  border-radius: 50%;
}

.profile-selection-input:checked + .profile-selection-card .profile-selection-indicator {
  border-color: var(--optix-primary);
  background: var(--optix-primary);
}

.profile-selection-input:checked + .profile-selection-card .profile-selection-indicator::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  display: block;
  line-height: 1;
}

.profile-selection-input:checked + .profile-selection-card .profile-selection-indicator-radio {
  border-color: var(--optix-primary);
  background: #fff;
}

.profile-selection-input:checked + .profile-selection-card .profile-selection-indicator-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--optix-primary);
  border-radius: 50%;
  display: block;
}

.profile-selection-title {
  font-weight: 700;
  color: var(--optix-navy);
  font-size: 1.05rem;
}

.profile-selection-desc {
  font-size: 0.85rem;
  color: var(--optix-muted);
  line-height: 1.4;
  padding-left: calc(20px + 0.75rem);
}

/* Edit Sections Sticky Navigation */
.profile-edit-sticky-nav {
  position: sticky;
  top: 16px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--optix-border);
  border-radius: 100px;
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  transition: top 0.3s ease;
}

.profile-edit-tabs {
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.profile-edit-tabs::-webkit-scrollbar {
  display: none;
}

.profile-edit-tab {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: transparent;
  color: var(--optix-muted);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border-bottom: none !important;
}

.profile-edit-tab:hover {
  background: #f1f5f9;
  color: var(--optix-navy);
}

.profile-edit-tab.active {
  background: #eff4ff;
  color: var(--optix-primary) !important;
  font-weight: 700;
}

.profile-edit-section.workspace-card {
  scroll-margin-top: 92px;
  border-color: var(--optix-border);
  box-shadow: var(--optix-shadow);
  transform: none !important; /* Disables hover vertical displacement inside edit flow */
  margin-bottom: 1.75rem !important;
}

.profile-edit-section.workspace-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--optix-shadow);
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .profile-edit-sticky-nav {
    top: 72px; /* clears fixed mobile top bar (56px) plus 16px gap */
    border-radius: 16px;
  }
  .profile-edit-section.workspace-card {
    scroll-margin-top: 148px; /* mobile offset: 72px top + 60px nav + 16px padding */
  }
}

@media (max-width: 768px) {
  .profile-wizard-stepper-inner {
    display: none;
  }
  .profile-wizard-stepper-mobile {
    display: block !important;
  }
  .profile-wizard-progress {
    height: 6px;
    background-color: #f2f4f7;
    border-radius: 999px;
    overflow: hidden;
  }
  .profile-wizard-progress-bar {
    height: 100%;
    background-color: var(--optix-primary);
    border-radius: 999px;
    transition: width 0.3s ease;
  }
}

/* Services Empty State */
.empty-state-premium {
  background: #fff;
  border: 1px solid var(--optix-border);
  border-radius: 16px;
  padding: 2.4rem 1.75rem;
  text-align: center;
  margin: 1.5rem auto;
  max-width: 520px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f2f6ff;
  color: #2a5bd7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.empty-state-title {
  color: var(--optix-navy);
  font-weight: 800;
  font-size: 1.28rem;
  margin-bottom: 0.6rem;
}

.empty-state-description {
  color: var(--optix-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.4rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 560px));
  gap: 1.1rem;
  justify-content: start;
  align-items: start;
}

/* Service Card */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #fff;
  border: 1px solid var(--optix-border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem 1rem;
  box-shadow: 0 3px 12px rgba(7, 27, 69, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--optix-shadow);
  border-color: #c9d9ff;
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.service-card__title {
  color: var(--optix-navy);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.15rem 0 0;
}

.service-card__taxonomy {
  color: var(--optix-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0;
}

.service-card__taxonomy-sep {
  color: #b6bdc9;
}

.service-card__summary {
  color: var(--optix-text);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0.1rem 0 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.service-card__meta-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.6rem;
  align-items: baseline;
}

.service-card__meta-label {
  color: var(--optix-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.service-card__meta-value {
  color: var(--optix-text);
  font-size: 0.85rem;
  margin: 0;
  min-width: 0;
}

.service-card__coverage-detail {
  display: block;
  color: var(--optix-muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Delivery chips */
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f4f6fa;
  border: 1px solid var(--optix-border);
  color: var(--optix-text);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

.service-chip--muted {
  background: transparent;
  color: var(--optix-muted);
  border-style: dashed;
}

/* Pricing */
.service-card__pricing {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--optix-border);
}

.service-card__price {
  color: var(--optix-navy);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-card__price-title {
  color: var(--optix-text);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.service-card__price-caption {
  color: var(--optix-muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.service-card__price-more {
  color: var(--optix-muted);
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.35rem;
  cursor: default;
}

.service-card__footer {
  margin-top: auto;
  padding-top: 0.6rem;
  color: var(--optix-muted);
  font-size: 0.76rem;
}

/* Status badges */
.service-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--optix-border);
  background: #f4f6fa;
  color: var(--optix-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-status-badge--active {
  background: #e6f6ec;
  border-color: #b7e2c6;
  color: #1a7f43;
}

.service-status-badge--draft {
  background: #eef1f6;
  border-color: #d7dde8;
  color: #4a5568;
}

.service-status-badge--paused {
  background: #fff5e6;
  border-color: #f4d9a8;
  color: #9a6a12;
}

.service-status-badge--archived {
  background: #f1f2f4;
  border-color: #d9dce1;
  color: #6b7280;
}

.service-status-badge--review {
  background: #eaf1ff;
  border-color: #c2d6ff;
  color: #1746b3;
}

.service-status-badge--restricted {
  background: #fdeceb;
  border-color: #f5c4c0;
  color: #b42318;
}

/* Compact success banner */
.service-success-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1.1rem;
  border: 1px solid #b7e2c6;
  background: #e6f6ec;
  color: #1a7f43;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.service-success-banner__icon {
  flex-shrink: 0;
}

.service-success-banner__text {
  min-width: 0;
}

.service-success-banner .btn-close {
  margin-left: 0.35rem;
  padding: 0.35rem;
  font-size: 0.6rem;
}

/* Inline managed-under context */
.services-managed-under {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--optix-muted);
}

.services-managed-under__text strong {
  color: var(--optix-navy);
  font-weight: 700;
}

.services-managed-under__link {
  color: var(--optix-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.services-managed-under__link::before {
  content: "·";
  margin-right: 0.5rem;
  color: #b6bdc9;
}

/* Archived card treatment */
.service-card--archived {
  background: #fbfbfc;
  border-style: dashed;
}

.service-card--archived .service-card__title,
.service-card--archived .service-card__price {
  color: var(--optix-muted);
}

/* Management menu */
.service-card__menu {
  position: relative;
  flex-shrink: 0;
}

.service-card__menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--optix-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.service-card__menu-trigger:hover,
.service-card__menu-trigger:focus-visible {
  background: #f4f6fa;
  color: var(--optix-navy);
  border-color: var(--optix-border);
  outline: none;
}

.service-card__menu-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.18);
}

.service-card__menu-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  min-width: 190px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--optix-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(7, 27, 69, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.service-card__menu-form {
  margin: 0;
}

.service-card__menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--optix-text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.service-card__menu-item:hover,
.service-card__menu-item:focus-visible {
  background: #f4f6fa;
  color: var(--optix-navy);
  outline: none;
}

.service-card__menu-item--danger {
  color: #b42318;
}

.service-card__menu-item--danger:hover,
.service-card__menu-item--danger:focus-visible {
  background: #fdeceb;
  color: #b42318;
}

/* Archive confirmation modal */
.service-archive-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.service-archive-modal[hidden] {
  display: none;
}

.service-archive-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 69, 0.45);
}

.service-archive-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(7, 27, 69, 0.28);
}

.service-archive-modal__title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-archive-modal__description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.service-archive-modal__target {
  color: var(--optix-navy);
  font-weight: 600;
}

.service-archive-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.has-open-modal {
  overflow: hidden;
}

/* Services pages */
.services-page-label {
  color: var(--optix-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.services-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.services-page-header__lead {
  min-width: 0;
  flex: 1;
}

.services-page-title {
  line-height: 1.25;
}

.services-page-helper {
  max-width: 680px;
}

.services-page-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.services-profile-context {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--optix-border);
  border-radius: 14px;
  background: #fff;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 3px 12px rgba(7, 27, 69, 0.04);
}

.services-profile-context__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e7efff;
  color: #1746b3;
  border: 1px solid #c9d9ff;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}

.services-profile-context__name {
  color: var(--optix-navy);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.services-profile-context__meta {
  color: var(--optix-muted);
  font-size: 0.77rem;
  line-height: 1.1;
}

.services-profile-context__link {
  color: var(--optix-primary);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.empty-state-premium--services {
  max-width: 560px;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.services-empty-points {
  list-style: disc;
  margin: 0 auto 1.25rem;
  text-align: left;
  max-width: 360px;
  color: var(--optix-text);
  font-size: 0.88rem;
  line-height: 1.45;
  padding-left: 1.1rem;
}

.services-empty-points li + li {
  margin-top: 0.35rem;
}

/* Create Service */
.service-create-shell {
  max-width: 900px;
  margin: 0 auto;
}

.service-create-form .workspace-card {
  border-radius: 16px;
  border-color: var(--optix-border);
  box-shadow: 0 8px 24px rgba(7, 27, 69, 0.04);
}

.service-autocomplete {
  position: relative;
}

.service-autocomplete.is-parent-empty .form-control {
  border-color: #d0d5dd;
  background: #fcfcfd;
}

.service-autocomplete__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(7, 27, 69, 0.12);
  z-index: 50;
  overflow: hidden;
  max-height: min(260px, 46vh);
  overflow-y: auto;
  overflow-x: hidden;
}

.service-autocomplete__list {
  display: flex;
  flex-direction: column;
}

.service-autocomplete__option {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
  color: var(--optix-text);
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}

.service-autocomplete__option:last-child {
  border-bottom: 0;
}

.service-autocomplete__option:hover,
.service-autocomplete__option.is-active {
  background: #eef4ff;
}

.service-autocomplete__option.is-selected {
  background: #f5f8ff;
}

.service-autocomplete__option:focus-visible {
  outline: 2px solid #6f99ff;
  outline-offset: -2px;
}

.service-autocomplete__option-label {
  color: var(--optix-navy);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.service-autocomplete__option-meta {
  color: var(--optix-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.service-autocomplete__state {
  padding: 0.68rem 0.78rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.service-autocomplete__state--loading {
  color: var(--optix-muted);
}

.service-autocomplete__state--no-results {
  color: #475467;
}

.service-autocomplete__state--error {
  color: #b42318;
}

.service-owner-card {
  border: 1px solid var(--optix-border);
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(7, 27, 69, 0.04);
}

.service-owner-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.service-owner-summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.service-owner-summary__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e7efff;
  color: #1848b8;
  border: 1px solid #c9d9ff;
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-owner-summary__name {
  color: var(--optix-navy);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
}

.service-owner-summary__meta {
  color: var(--optix-muted);
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.service-owner-summary__extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.service-owner-options {
  border-top: 1px solid var(--optix-border);
  padding-top: 0.9rem;
}

.service-owner-options__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.service-owner-option__card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--optix-border);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  background: #fff;
  min-height: 72px;
  transition: all 0.2s ease;
}

.service-owner-option__card:hover {
  border-color: #c4d6ff;
  background: #f8fbff;
}

[data-owner-option-input]:focus-visible + .service-owner-option__card {
  outline: 2px solid #6f99ff;
  outline-offset: 2px;
}

.service-owner-option__card.is-selected {
  border-color: #9dbbff;
  background: #edf3ff;
  box-shadow: inset 0 0 0 1px #9dbbff;
}

.service-owner-option__avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e7efff;
  color: #1848b8;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-owner-option__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-owner-option__name {
  color: var(--optix-navy);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-owner-option__meta,
.service-owner-option__location {
  color: var(--optix-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.service-owner-option__state {
  margin-left: auto;
  color: #125ecf;
  font-size: 0.73rem;
  font-weight: 700;
  opacity: 0;
}

.service-owner-option__card.is-selected .service-owner-option__state {
  opacity: 1;
}

.service-wizard-stepper {
  border: 1px solid var(--optix-border);
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem 1rem;
}

.service-wizard-stepper-desktop {
  display: flex;
  align-items: flex-start;
}

.service-wizard-step {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  flex: 1;
  text-align: center;
  color: var(--optix-muted);
  cursor: default;
}

.service-wizard-step::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--optix-border);
  z-index: 1;
}

.service-wizard-step:last-child::after {
  display: none;
}

.service-wizard-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--optix-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--optix-muted);
  font-size: 0.76rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.service-wizard-step-label {
  margin-top: 0.5rem;
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
}

.service-wizard-step.completed {
  cursor: pointer;
}

.service-wizard-step.completed::after {
  background: var(--optix-primary);
}

.service-wizard-step.completed .service-wizard-step-num {
  border-color: var(--optix-primary);
  background: #eff4ff;
  color: var(--optix-primary);
}

.service-wizard-step[aria-current="step"] .service-wizard-step-num {
  border-color: var(--optix-primary);
  background: var(--optix-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.15);
}

.service-wizard-step[aria-current="step"] .service-wizard-step-label {
  color: var(--optix-primary);
  font-weight: 700;
}

.service-step-content {
  border: 0;
  margin: 0;
  padding: 0;
}

.service-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

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

.service-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.service-pricing-options {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.service-pricing-option {
  border: 1px solid var(--optix-border);
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem 1rem 1rem;
  box-shadow: 0 4px 14px rgba(7, 27, 69, 0.03);
}

.service-pricing-option.is-primary {
  border-color: #b2ccff;
  background: #f8fbff;
}

.service-pricing-option__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.service-pricing-option__title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.service-pricing-option__title {
  color: var(--optix-navy);
  font-weight: 700;
}

.service-pricing-option__primary-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c9d9ff;
  background: #edf3ff;
  color: #1746b3;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
}

.service-pricing-option__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.service-pricing-option__actions .btn {
  min-height: 34px;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

.service-preview-pricing-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.service-preview-pricing-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border: 1px solid #e7ebf2;
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.7rem;
}

.service-preview-pricing-item strong {
  color: var(--optix-navy);
  font-size: 0.84rem;
}

.service-preview-pricing-item span {
  color: var(--optix-text);
  font-size: 0.82rem;
  line-height: 1.35;
}

.service-preview-primary {
  color: #1746b3;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.35rem;
}

.service-choice-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62px;
  border: 1px solid var(--optix-border);
  border-radius: 12px;
  padding: 0.7rem 2rem 0.7rem 0.8rem;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.service-choice-card:hover {
  border-color: #c4d6ff;
  background: #f8fbff;
}

.service-choice-input:focus-visible + .service-choice-card {
  outline: 2px solid #6f99ff;
  outline-offset: 2px;
}

.service-choice-card.is-selected {
  border-color: #9dbbff;
  background: #edf3ff;
  box-shadow: inset 0 0 0 1px #9dbbff;
}

.service-choice-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  color: #165ecf;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.service-choice-title {
  color: var(--optix-navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.service-choice-desc {
  color: var(--optix-muted);
  font-size: 0.75rem;
  line-height: 1.3;
  margin-top: 0.3rem;
}

.service-choice-card--pricing {
  min-height: 86px;
}

.service-coverage-box {
  border: 1px solid var(--optix-border);
  border-radius: 14px;
  background: #fbfcff;
  padding: 0.9rem;
}

.service-preview-card {
  border: 1px solid var(--optix-border);
  border-radius: 14px;
  background: #fcfdff;
  padding: 1rem;
}

.service-preview-list {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.55rem 0.9rem;
  margin: 0;
}

.service-preview-list dt {
  color: var(--optix-muted);
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0;
}

.service-preview-list dd {
  color: var(--optix-text);
  font-size: 0.86rem;
  margin: 0;
}

.service-publish-hint {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.service-publish-hint__item {
  border: 1px solid var(--optix-border);
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.service-publish-hint__item strong {
  color: var(--optix-navy);
  font-size: 0.84rem;
}

.service-publish-hint__item span {
  color: var(--optix-muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.service-wizard-mobile-progress {
  height: 6px;
  border-radius: 999px;
  background: #edf1f7;
  overflow: hidden;
}

.service-wizard-mobile-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--optix-primary);
  transition: width 0.25s ease;
}

/* Top bar profile switcher */
.workspace-profile-switcher {
  min-width: 220px;
}

.workspace-profile-switcher__trigger {
  border: 1px solid var(--optix-border);
  background: #fff;
  border-radius: 14px;
  padding: 0.4rem 0.55rem 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-shadow: 0 4px 14px rgba(7, 27, 69, 0.05);
  min-width: 230px;
}

.workspace-profile-switcher__trigger:hover,
.workspace-profile-switcher__trigger:focus-visible {
  border-color: #b9ceff;
  background: #f8fbff;
}

.workspace-profile-switcher__label {
  color: var(--optix-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  font-weight: 700;
}

.workspace-profile-switcher__identity {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.workspace-profile-switcher__avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e7efff;
  border: 1px solid #c9d9ff;
  color: #1848b8;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workspace-profile-switcher__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.workspace-profile-switcher__copy strong {
  color: var(--optix-navy);
  font-size: 0.78rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 145px;
}

.workspace-profile-switcher__copy small {
  color: var(--optix-muted);
  font-size: 0.67rem;
  line-height: 1.1;
}

.workspace-profile-switcher__chevron {
  margin-left: auto;
  color: var(--optix-muted);
  font-size: 0.75rem;
}

.workspace-profile-switcher__menu {
  width: min(320px, 88vw);
  border-radius: 14px;
  background: #fff;
}

.workspace-profile-switcher__form + .workspace-profile-switcher__form {
  margin-top: 0.25rem;
}

.workspace-profile-switcher__item {
  width: 100%;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 11px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
}

.workspace-profile-switcher__item:hover,
.workspace-profile-switcher__item:focus-visible {
  border-color: #c7d8ff;
  background: #f5f8ff;
}

.workspace-profile-switcher__item.is-selected {
  border-color: #9dbbff;
  background: #edf3ff;
}

.workspace-profile-switcher__item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e7efff;
  color: #1848b8;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workspace-profile-switcher__item-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.workspace-profile-switcher__item-copy strong {
  color: var(--optix-navy);
  font-size: 0.8rem;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-profile-switcher__item-copy small {
  color: var(--optix-muted);
  font-size: 0.67rem;
}

.workspace-profile-switcher__item-check {
  margin-left: auto;
  color: #1859d1;
  font-size: 0.8rem;
  font-weight: 800;
}

.workspace-profile-switcher__create {
  display: block;
  border-radius: 10px;
  padding: 0.5rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--optix-primary);
}

.workspace-profile-switcher__create:hover {
  background: #f5f8ff;
}

@media (max-width: 1199.98px) {
  .workspace-profile-switcher__trigger {
    min-width: 190px;
  }

  .workspace-profile-switcher__copy strong {
    max-width: 115px;
  }
}

@media (max-width: 991.98px) {
  .services-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .services-page-header__actions {
    justify-content: flex-start;
  }

  .service-owner-options__list,
  .service-choice-grid,
  .service-pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-pricing-option__header {
    flex-direction: column;
    align-items: stretch;
  }

  .service-pricing-option__actions {
    justify-content: flex-start;
  }

  .service-choice-grid--single {
    grid-template-columns: 1fr;
  }

  .service-preview-list {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .service-preview-list dt {
    margin-top: 0.4rem;
  }

  .service-publish-hint {
    grid-template-columns: 1fr;
  }

  .service-wizard-stepper-desktop {
    display: none;
  }

  .service-wizard-stepper-mobile {
    display: block !important;
  }
}

/* Help Requests (Workspace) */
.requests-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.requests-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.requests-status-filter {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.requests-status-filter:hover,
.requests-status-filter.is-active {
  border-color: #b2ccff;
  background: #eff4ff;
  color: #155eef;
}

.requests-list {
  display: grid;
  gap: 0.85rem;
}

.request-card {
  padding: 1rem 1.1rem;
}

.request-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.request-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #071b45;
  font-weight: 700;
}

.request-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  color: #667085;
  font-size: 0.86rem;
}

.request-card__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.request-card__label {
  display: block;
  margin-bottom: 0.15rem;
  color: #98a2b3;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.request-card__detail strong {
  color: #071b45;
  font-size: 0.92rem;
  font-weight: 650;
}

.request-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.request-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #f8fafc;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.request-status-badge--open {
  border-color: #b2ccff;
  background: #eff4ff;
  color: #155eef;
}

.request-status-badge--progress {
  border-color: #f7d48b;
  background: #fff8eb;
  color: #b54708;
}

.request-status-badge--closed {
  border-color: #a6f4c5;
  background: #ecfdf3;
  color: #027a48;
}

.request-status-badge--cancelled {
  border-color: #d0d5dd;
  background: #f2f4f7;
  color: #475467;
}

.requests-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.requests-pagination__info {
  color: #667085;
  font-size: 0.9rem;
  font-weight: 600;
}

.requests-empty-state {
  max-width: 42rem;
}

.request-details-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.request-details-grid {
  display: grid;
  gap: 0.9rem;
}

.request-details-description {
  white-space: pre-wrap;
  color: #344054;
  line-height: 1.55;
}

.request-details-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.request-details-list > div {
  display: grid;
  gap: 0.15rem;
}

.request-details-list dt {
  margin: 0;
  color: #98a2b3;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.request-details-list dd {
  margin: 0;
  color: #071b45;
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .request-card__body {
    grid-template-columns: 1fr;
  }

  .requests-page-header__actions,
  .request-details-header__actions {
    width: 100%;
  }

  .requests-page-header__actions .btn,
  .request-details-header__actions .btn {
    width: 100%;
  }
}



.request-card__status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.request-card__body--wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.request-status-badge--new {
  background: rgba(0, 95, 115, 0.1);
  color: #005f73;
}

.request-status-badge--viewed {
  background: rgba(73, 80, 87, 0.1);
  color: #495057;
}

.request-status-badge--interested,
.request-status-badge--contacted {
  background: rgba(25, 135, 84, 0.12);
  color: #146c43;
}

.request-status-badge--declined {
  background: rgba(220, 53, 69, 0.12);
  color: #b02a37;
}

.request-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

@media (max-width: 991.98px) {
  .request-card__body--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-card__status-stack {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .request-card__body--wide {
    grid-template-columns: 1fr;
  }

  .request-action-row,
  .request-action-row form,
  .request-action-row .btn {
    width: 100%;
  }
}
