/* ==========================================================================
   IR COMMAND CENTER — SETTINGS
   Canonical page-owned stylesheet
   ========================================================================== */

/* 01 — DESIGN TOKENS */
:root {
  /* Palette */
  --st-purple: #6c4cf5;
  --st-purple-2: #8068f6;
  --st-purple-soft: #f3f0ff;
  --st-text: #272a3c;
  --st-muted: #7f8498;
  --st-line: #e5e7ef;
  --st-soft: #fafafe;
  --st-success: #118b5d;
  --st-danger: #b4233b;
  --st-warning: #9a640e;

  /* Typography — same readable scale used by Contacts / Feedback */
  --st-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --st-font-xs: 10px;
  --st-font-sm: 11px;
  --st-font-md: 12px;
  --st-font-body: 13px;
  --st-font-lg: 14px;
  --st-font-xl: 16px;
  --st-font-2xl: 18px;
  --st-font-3xl: 20px;
  --st-font-4xl: 24px;
  --st-font-stat: 20px;
  --st-font-title: 30px;

  /* Typography — weights */
  --st-weight-medium: 500;
  --st-weight-semibold: 600;
  --st-weight-bold: 700;
  --st-weight-extrabold: 800;
  --st-weight-black: 800;

  /* Summary / KPI typography — shared visual rhythm with Feedback + Shareholding */
  --st-stat-label-size: var(--st-font-xs);
  --st-stat-label-weight: var(--st-weight-extrabold);
  --st-stat-value-size: var(--st-font-stat);
  --st-stat-value-weight: var(--st-weight-extrabold);
  --st-stat-value-line: 1;

  /* Drawer / modal typography — same hierarchy used across Contacts and Feedback */
  --st-overlay-title-size: var(--st-font-3xl);
  --st-overlay-section-title-size: var(--st-font-lg);
  --st-overlay-body-size: var(--st-font-body);
  --st-overlay-control-size: var(--st-font-body);
  --st-overlay-subtitle-size: var(--st-font-md);
  --st-overlay-meta-size: var(--st-font-sm);
  --st-overlay-helper-size: var(--st-font-sm);
  --st-overlay-button-size: var(--st-font-md);

  --st-overlay-title-weight: var(--st-weight-extrabold);
  --st-overlay-section-title-weight: var(--st-weight-extrabold);
  --st-overlay-body-weight: var(--st-weight-semibold);
  --st-overlay-label-weight: var(--st-weight-bold);
  --st-overlay-meta-weight: var(--st-weight-semibold);
  --st-overlay-helper-weight: var(--st-weight-medium);
  --st-overlay-button-weight: var(--st-weight-bold);
  --st-overlay-eyebrow-weight: var(--st-weight-extrabold);

  /* Typography — line heights */
  --st-line-1: 1;
  --st-line-1-2: 1.2;
  --st-line-1-25: 1.25;
  --st-line-1-3: 1.3;
  --st-line-1-35: 1.35;
  --st-line-1-4: 1.4;
  --st-line-1-45: 1.45;
  --st-line-1-5: 1.5;
  --st-line-1-55: 1.55;
  --st-line-1-65: 1.65;
  --st-line-1-7: 1.7;

  /* Tracking */
  --st-track-tight: -.15px;
  --st-track-title: -.5px;
  --st-track-stat: -.7px;
  --st-track-label: .55px;
  --st-track-wide: .7px;
  --st-track-eyebrow: .8px;

  /* Component sizing */
  --st-control-h: 40px;
  --st-control-h-sm: 36px;
  --st-control-h-xs: 30px;
  --st-icon-control: 34px;
  --st-drawer-width: 650px;
  --st-dialog-width: 520px;
  --st-api-dialog-width: 620px;
  --st-guide-dialog-width: 760px;
  --st-radius-sm: 10px;
  --st-radius-md: 14px;
  --st-radius-lg: 18px;
  --st-section-gap: 18px;
}

/* 02 — PAGE SHELL + TABS */
.client-admin-shell {
  display: grid;
  gap: 18px;
  font-family: var(--st-font-family);
  color: var(--st-text);
}
.client-admin-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px;
  background: #f5f3ff;
  border: 1px solid #e9e4ff;
  border-radius: 14px;
  width: max-content;
  max-width: 100%;
}
.client-admin-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: var(--st-font-md);
  font-weight: var(--st-weight-extrabold);
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.client-admin-tab.is-active {
  background: #fff;
  color: #5b3df5;
  box-shadow: 0 3px 12px rgba(76,51,204,.10);
}
.client-admin-panel {
  display: none;
}
.client-admin-panel.is-active {
  display: block;
}

/* 03 — CLIENT ACCESS OVERVIEW + TABLE */
.client-admin-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.client-admin-stat {
  background: #fff;
  border: 1px solid #e7e5f4;
  border-radius: 16px;
  padding: 14px 15px;
  box-shadow: 0 7px 22px rgba(52,45,110,.045);
}
.client-admin-stat span {
  display: block;
  color: #8a93a8;
  font-size: var(--st-stat-label-size);
  font-weight: var(--st-stat-label-weight);
  letter-spacing: var(--st-track-label);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.client-admin-stat strong {
  display: block;
  color: #272a3d;
  font-size: var(--st-stat-value-size);
  line-height: var(--st-stat-value-line);
  font-weight: var(--st-stat-value-weight);
  letter-spacing: var(--st-track-tight);
}
.client-admin-card {
  background: #fff;
  border: 1px solid #e7e5f4;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(52,45,110,.05);
  overflow: hidden;
}
.client-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #edf0f6;
  flex-wrap: wrap;
}
.client-admin-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}
.client-admin-search {
  position: relative;
  display: block;
  flex: 1;
  max-width: 440px;
  height: var(--st-control-h);
  min-height: var(--st-control-h);
  align-self: center;
}
.client-admin-search i,.client-admin-search svg.lucide-search {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  margin: 0;
  color: #94a3b8;
  z-index: 2;
  pointer-events: none;
}
.client-admin-search input,.client-admin-select {
  height: var(--st-control-h);
  border: 1px solid #dde3ee;
  border-radius: 11px;
  background: #fff;
  color: #263247;
  font: inherit;
  font-size: var(--st-font-md);
  outline: none;
  box-sizing: border-box;
}
.client-admin-search input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 12px 0 35px;
}
.client-admin-search input:focus,.client-admin-select:focus {
  border-color: #a89bf8;
  box-shadow: 0 0 0 3px rgba(108,84,246,.08);
}

/* 08 — SHARED / SUPPORTING */
.client-admin-select {
  padding: 0 10px;
  min-width: 124px;
}

/* 05 — CLIENT DRAWER + PERMISSIONS */
.client-admin-primary {
  height: var(--st-control-h);
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg,#7657f6,#6440e7);
  color: #fff;
  padding: 0 13px;
  font-size: var(--st-overlay-button-size);
  line-height: var(--st-line-1);
  font-weight: var(--st-overlay-button-weight);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.client-admin-primary i {
  width: 15px;
  height: 15px;
}

/* 02 — PAGE SHELL + TABS */
.client-admin-table-wrap {
  overflow: auto;
}
.client-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}
.client-admin-table th {
  padding: 10px 12px;
  background: #fafafe;
  color: #8993a9;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-extrabold);
  letter-spacing: var(--st-track-wide);
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid #e9edf4;
  white-space: nowrap;
}
.client-admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #eff2f7;
  vertical-align: middle;
  font-size: var(--st-font-md);
  color: #41506a;
}
.client-admin-table tr:hover td {
  background: #fcfbff;
}

/* 03 — CLIENT ACCESS OVERVIEW + TABLE */
.client-company-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.client-company-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg,#f1edff,#e5dcff);
  color: #6847ec;
  display: grid;
  place-items: center;
  font-size: var(--st-font-md);
  font-weight: var(--st-weight-black);
  flex: none;
}
.client-company-cell strong {
  display: block;
  color: #182236;
  font-size: var(--st-font-md);
  font-weight: var(--st-weight-extrabold);
}
.client-company-cell small {
  display: block;
  color: #9aa4b8;
  font-size: var(--st-font-xs);
  margin-top: 2px;
}
.client-login-id {
  font-weight: var(--st-weight-bold);
  color: #3d4b63;
  white-space: nowrap;
}
.client-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-black);
}
.client-status.active {
  background: #eafaf2;
  color: #118b5d;
}
.client-status.inactive {
  background: #f2f4f8;
  color: #7b8495;
}
.client-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.client-presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-extrabold);
  color: #64748b;
}
.client-presence.online {
  color: #118b5d;
  background: #eafaf2;
  border-radius: 999px;
  padding: 5px 8px;
}
.client-presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(17,139,93,.10);
}
.client-presence-time {
  white-space: nowrap;
  color: #526078;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-bold);
}
.client-modules-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e4defd;
  background: #faf8ff;
  color: #6847ec;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-extrabold);
}
.client-peer-badge {
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-extrabold);
  color: #667085;
}

/* 04 — CONTACT SCOPE CONTROLS */
.client-contact-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-black);
  white-space: nowrap;
  border: 1px solid #e4e7ef;
  background: #f8fafc;
  color: #64748b;
}
.client-contact-scope-badge.restricted {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6847ec;
}
.client-contact-scope-intro {
  font-size: var(--st-overlay-helper-size);
  line-height: var(--st-line-1-5);
  font-weight: var(--st-overlay-helper-weight);
  color: #7d879a;
  margin: 0 0 10px;
}
.client-contact-scope-body {
  display: grid;
  gap: 10px;
  margin-top: 11px;
}
.client-contact-scope-body.is-hidden {
  display: none;
}
.client-contact-scope-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid #e7e2ff;
  background: #faf8ff;
  color: #6c5bc5;
  border-radius: 10px;
  padding: 8px 9px;
  font-size: var(--st-overlay-meta-size);
  line-height: var(--st-line-1-45);
  font-weight: var(--st-overlay-meta-weight);
}
.client-contact-scope-note i {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
}
.client-contact-scope-warning {
  display: none;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a5a13;
  border-radius: 10px;
  padding: 9px;
  font-size: var(--st-overlay-meta-size);
  line-height: var(--st-line-1-5);
  font-weight: var(--st-overlay-meta-weight);
}
.client-contact-scope-warning.is-show {
  display: block;
}
.client-contact-access-card {
  border: 1px solid #e7eaf2;
  border-radius: 14px;
  background: #fbfcff;
  overflow: hidden;
}
.client-contact-access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
}
.client-contact-access-head strong {
  font-size: var(--st-overlay-body-size);
  line-height: var(--st-line-1-25);
  font-weight: var(--st-overlay-label-weight);
  color: #344054;
}
.client-contact-access-head span {
  font-size: var(--st-overlay-helper-size);
  line-height: var(--st-line-1-3);
  font-weight: var(--st-overlay-helper-weight);
  color: #98a2b3;
}
.client-contact-category-list {
  display: grid;
}
.client-contact-category {
  background: #fff;
  border-bottom: 1px solid #edf0f5;
}
.client-contact-category:last-child {
  border-bottom: 0;
}
.client-contact-category-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
}
.client-contact-category-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.client-contact-category-check {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #7657f6;
  flex: none;
  cursor: pointer;
}
.client-contact-category-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.client-contact-category-copy strong {
  font-size: var(--st-overlay-body-size);
  line-height: var(--st-line-1-25);
  font-weight: var(--st-overlay-label-weight);
  color: #3b465a;
}
.client-contact-category-copy small {
  font-size: var(--st-overlay-helper-size);
  line-height: var(--st-line-1-3);
  font-weight: var(--st-overlay-helper-weight);
  color: #98a2b3;
}
.client-contact-category.is-all .client-contact-category-copy strong {
  color: #6546e6;
}
.client-contact-category-toggle {
  width: 30px;
  height: 30px;
  border: 1px solid #e2e6ef;
  border-radius: 9px;
  background: #fff;
  color: #7c879b;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: .16s ease;
}
.client-contact-category-toggle:hover {
  border-color: #cfc5ff;
  color: #6546e6;
  background: #faf8ff;
}
.client-contact-category-toggle i {
  width: 15px;
  height: 15px;
  transition: transform .16s ease;
}
.client-contact-category.is-open .client-contact-category-toggle i {
  transform: rotate(180deg);
}
.client-contact-category-sectors {
  display: none;
  padding: 0 10px 10px 34px;
}
.client-contact-category.is-open .client-contact-category-sectors {
  display: block;
}
.client-contact-sector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}
.client-contact-sector-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #e1e6ef;
  border-radius: 9px;
  background: #fff;
  color: #5d687b;
  font-size: var(--st-overlay-meta-size);
  line-height: var(--st-line-1-2);
  font-weight: var(--st-overlay-label-weight);
  cursor: pointer;
  user-select: none;
}
.client-contact-sector-chip input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #7657f6;
}
.client-contact-sector-chip:has(input:checked) {
  border-color: #cfc5ff;
  background: #f6f3ff;
  color: #6546e6;
}
.client-contact-category.is-all .client-contact-sector-chip {
  opacity: .58;
  cursor: not-allowed;
  background: #f8f7ff;
}
.client-contact-category.is-all .client-contact-sector-chip input {
  pointer-events: none;
}
.client-contact-sector-help {
  margin: 7px 0 0;
  font-size: var(--st-overlay-helper-size);
  line-height: var(--st-line-1-4);
  font-weight: var(--st-overlay-helper-weight);
  color: #98a2b3;
}
.client-contact-sector-help strong {
  color: #6e58d9;
}

/* 05 — CLIENT DRAWER + PERMISSIONS */
.client-admin-action {
  height: 30px;
  border: 1px solid #dddff0;
  border-radius: 9px;
  background: #fff;
  color: #505a70;
  padding: 0 9px;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-extrabold);
  cursor: pointer;
}
.client-admin-action:hover {
  border-color: #aa9cf8;
  color: #6546e6;
  background: #faf9ff;
}
.client-empty {
  padding: 42px 20px;
  text-align: center;
  color: #8c96aa;
  font-size: var(--st-font-md);
}
.client-admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21,25,43,.30);
  backdrop-filter: blur(2px);
  z-index: 120000;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
}
.client-admin-overlay.is-open {
  display: flex;
}
.client-admin-drawer {
  width: min(650px,100%);
  height: 100%;
  background: #fff;
  box-shadow: -25px 0 70px rgba(20,21,39,.18);
  display: flex;
  flex-direction: column;
}
.client-admin-drawer-head {
  padding: 18px 20px 15px;
  border-bottom: 1px solid #ebedf4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.client-admin-kicker {
  font-size: var(--st-font-xs);
  line-height: var(--st-line-1);
  letter-spacing: var(--st-track-eyebrow);
  text-transform: uppercase;
  color: #7657f6;
  font-weight: var(--st-overlay-eyebrow-weight);
  margin-bottom: 5px;
}
.client-admin-drawer-head h2 {
  font-size: var(--st-overlay-title-size);
  line-height: var(--st-line-1-2);
  font-weight: var(--st-overlay-title-weight);
  letter-spacing: var(--st-track-tight);
  color: #172033;
  margin: 0;
}
.client-admin-drawer-head p {
  font-size: var(--st-overlay-subtitle-size);
  line-height: var(--st-line-1-4);
  font-weight: var(--st-overlay-meta-weight);
  color: #8b95a8;
  margin: 5px 0 0;
}
.client-admin-close {
  width: 34px;
  height: 34px;
  border: 1px solid #e0e4ee;
  background: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #64748b;
}
.client-admin-close i {
  width: 17px;
}
.client-admin-drawer-body {
  padding: 18px 20px 28px;
  overflow: auto;
  display: grid;
  gap: 17px;
}
.client-admin-section {
  border: 1px solid #e8ebf2;
  border-radius: 15px;
  padding: 14px;
}
.client-admin-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}
.client-admin-section-title h3 {
  font-size: var(--st-overlay-section-title-size);
  line-height: var(--st-line-1-25);
  font-weight: var(--st-overlay-section-title-weight);
  margin: 0;
  color: #263247;
}
.client-admin-section-title span {
  font-size: var(--st-overlay-helper-size);
  line-height: var(--st-line-1-35);
  font-weight: var(--st-overlay-helper-weight);
  color: #99a3b5;
}
.client-admin-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.client-admin-field {
  display: grid;
  gap: 5px;
}
.client-admin-field.full {
  grid-column: 1/-1;
}
.client-admin-field label {
  font-size: var(--st-overlay-meta-size);
  line-height: var(--st-line-1-2);
  text-transform: uppercase;
  letter-spacing: var(--st-track-label);
  color: #8b95a8;
  font-weight: var(--st-overlay-label-weight);
}
.client-admin-field input,.client-admin-field select {
  height: var(--st-control-h);
  border: 1px solid #dfe4ed;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  color: #263247;
  font-family: var(--st-font-family);
  font-size: var(--st-overlay-control-size);
  line-height: var(--st-line-1-4);
  font-weight: var(--st-overlay-body-weight);
  outline: none;
}
.client-admin-field input:focus,.client-admin-field select:focus {
  border-color: #a99bf9;
  box-shadow: 0 0 0 3px rgba(108,84,246,.07);
}
.client-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #edf0f5;
  border-radius: 11px;
  padding: 10px 11px;
}
.client-toggle-row strong {
  display: block;
  font-size: var(--st-overlay-body-size);
  line-height: var(--st-line-1-25);
  font-weight: var(--st-overlay-label-weight);
  color: #354158;
}
.client-toggle-row small {
  display: block;
  font-size: var(--st-overlay-helper-size);
  line-height: var(--st-line-1-35);
  font-weight: var(--st-overlay-helper-weight);
  color: #9aa3b4;
  margin-top: 2px;
}
.client-switch {
  position: relative;
  width: 39px;
  height: 22px;
  display: inline-block;
  flex: none;
}
.client-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.client-switch span {
  position: absolute;
  inset: 0;
  background: #d9deea;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;
}
.client-switch span:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.16);
  transition: .2s;
}
.client-switch input:checked+span {
  background: #7657f6;
}
.client-switch input:checked+span:before {
  transform: translateX(17px);
}
.client-modules-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.client-module-card {
  border: 1px solid #e9ebf3;
  border-radius: 11px;
  padding: 9px 10px;
  display: grid;
  gap: 7px;
}
.client-module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.client-module-top strong {
  font-size: var(--st-overlay-body-size);
  line-height: var(--st-line-1-25);
  font-weight: var(--st-overlay-label-weight);
  color: #38455d;
}
.client-module-perms {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: var(--st-overlay-meta-size);
  line-height: var(--st-line-1-3);
  font-weight: var(--st-overlay-meta-weight);
  color: #7f899c;
}
.client-module-perms label {
  display: flex;
  gap: 4px;
  align-items: center;
}
.client-module-perms input {
  accent-color: #7657f6;
}
.client-module-visibility {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.client-module-visibility small {
  font-size: var(--st-overlay-meta-size);
  line-height: var(--st-line-1-2);
  font-weight: var(--st-overlay-label-weight);
  color: #6f7a90;
  white-space: nowrap;
}
.client-module-card.is-hidden {
  background: #fafbfe;
  border-style: dashed;
}
.client-module-card.is-hidden .client-module-top>strong {
  color: #7d879a;
}
.client-module-card.is-hidden .client-module-visibility small {
  color: #a0a8b8;
}
.client-module-helper {
  margin-left: auto;
  color: #8791a4;
  font-size: var(--st-overlay-helper-size);
  line-height: var(--st-line-1-3);
  font-weight: var(--st-overlay-helper-weight);
}

/* 08 — SHARED / SUPPORTING */
.client-admin-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

/* 05 — CLIENT DRAWER + PERMISSIONS */
.client-admin-secondary {
  height: 37px;
  border: 1px solid #dde2ec;
  border-radius: 10px;
  background: #fff;
  color: #58657b;
  padding: 0 12px;
  font-size: var(--st-overlay-button-size);
  line-height: var(--st-line-1);
  font-weight: var(--st-overlay-button-weight);
  cursor: pointer;
}
.client-password-box {
  display: grid;
  gap: 10px;
}
.client-password-options {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.client-password-options input {
  height: var(--st-control-h);
  border: 1px solid #dfe4ed;
  border-radius: 10px;
  padding: 0 10px;
  font-family: var(--st-font-family);
  font-size: var(--st-overlay-control-size);
  line-height: var(--st-line-1-4);
  font-weight: var(--st-overlay-body-weight);
  outline: none;
}
.client-password-result {
  display: none;
  border: 1px solid #cfeede;
  background: #f0fbf6;
  border-radius: 11px;
  padding: 10px;
}
.client-password-result.is-show {
  display: block;
}
.client-password-result span {
  display: block;
  font-size: var(--st-overlay-meta-size);
  line-height: var(--st-line-1-2);
  text-transform: uppercase;
  font-weight: var(--st-overlay-label-weight);
  color: #479270;
  margin-bottom: 4px;
}
.client-password-result code {
  font-size: var(--st-overlay-body-size);
  line-height: var(--st-line-1-4);
  color: #125b3f;
  font-weight: var(--st-overlay-label-weight);
  word-break: break-all;
}
.client-copy-btn {
  margin-top: 7px;
  height: 29px;
  border: 1px solid #bfe3d1;
  border-radius: 8px;
  background: #fff;
  color: #277456;
  padding: 0 8px;
  font-size: var(--st-overlay-meta-size);
  line-height: var(--st-line-1);
  font-weight: var(--st-overlay-label-weight);
  cursor: pointer;
}
.client-admin-alert {
  display: none;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: var(--st-overlay-meta-size);
  line-height: var(--st-line-1-4);
  font-weight: var(--st-overlay-label-weight);
}
.client-admin-alert.is-show {
  display: block;
}
.client-admin-alert.error {
  background: #fff1f2;
  color: #b4233b;
  border: 1px solid #fecdd3;
}
.client-admin-alert.success {
  background: #effbf5;
  color: #16734f;
  border: 1px solid #c9eddb;
}

/* 08 — SHARED / SUPPORTING */
.client-admin-loading {
  padding: 36px;
  text-align: center;
  color: #8c96aa;
  font-size: var(--st-font-md);
}

/* 05 — CLIENT DRAWER + PERMISSIONS */
.client-admin-modal-center {
  position: fixed;
  inset: 0;
  background: rgba(21,25,43,.32);
  backdrop-filter: blur(2px);
  z-index: 120100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.client-admin-modal-center.is-open {
  display: flex;
}
.client-admin-dialog {
  width: min(520px,100%);
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 30px 90px rgba(20,21,39,.22);
  overflow: hidden;
}
.client-admin-dialog-head {
  padding: 16px 18px;
  border-bottom: 1px solid #eceff5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.client-admin-dialog-body {
  padding: 16px 18px 19px;
  display: grid;
  gap: 12px;
}

/* 06 — VAL.AI API MANAGEMENT */
.vai-api-hero-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.vai-api-hero-icon i,.vai-api-hero-icon svg {
  width: 20px;
  height: 20px;
}
.vai-api-hero-copy {
  min-width: 0;
}
.vai-api-security {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.vai-api-endpoint-copy {
  min-width: 0;
}
.vai-api-copy:hover {
  border-color: #aa9cf8;
  color: #6546e6;
  background: #faf9ff;
}
.vai-api-copy i,.vai-api-copy svg {
  width: 12px;
  height: 12px;
}
.vai-api-stat-icon i,.vai-api-stat-icon svg {
  width: 13px;
  height: 13px;
}
.vai-api-card {
  border: 1px solid #e7e5f4;
  border-radius: 17px;
  background: #fff;
  overflow: hidden;
}
.vai-api-search i,.vai-api-search svg.lucide-search {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #94a3b8;
  z-index: 2;
  pointer-events: none;
}
.vai-api-search input {
  display: block;
  width: 100%;
  padding: 0 12px 0 34px;
}
.vai-api-search input:focus,.vai-api-select:focus {
  border-color: #a89bf8;
  box-shadow: 0 0 0 3px rgba(108,84,246,.08);
}
.vai-api-generate i,.vai-api-generate svg {
  width: 14px;
  height: 14px;
}
.vai-api-table-wrap {
  overflow: auto;
}
.vai-api-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}
.vai-api-table tr:hover td {
  background: #fcfbff;
}
.vai-api-company {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 210px;
}
.vai-api-company-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f1edff;
  color: #6847ec;
}
.vai-api-company-icon i,.vai-api-company-icon svg {
  width: 13px;
  height: 13px;
}
.vai-api-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.vai-api-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}
.vai-api-action:hover {
  border-color: #aa9cf8;
  color: #6546e6;
  background: #faf9ff;
}
.vai-api-action.danger:hover {
  border-color: #fecdd3;
  color: #b4233b;
  background: #fff7f8;
}
.vai-api-empty {
  padding: 48px 20px;
  text-align: center;
  color: #8d96a8;
}
.vai-api-empty span {
  width: 42px;
  height: 42px;
  margin: 0 auto 9px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f2efff;
  color: #7657f6;
}
.vai-api-empty span i,.vai-api-empty span svg {
  width: 18px;
  height: 18px;
}
.vai-api-modal {
  position: fixed;
  inset: 0;
  z-index: 120300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(21,25,43,.34);
  backdrop-filter: blur(2px);
}
.vai-api-modal.is-open {
  display: flex;
}
.vai-api-dialog {
  width: min(620px,100%);
  max-height: min(760px,calc(100vh - 36px));
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(20,21,39,.22);
}
.vai-api-dialog-head {
  padding: 17px 18px 14px;
  border-bottom: 1px solid #eceff5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.vai-api-kicker {
  font-size: var(--st-font-xs);
  letter-spacing: var(--st-track-wide);
  text-transform: uppercase;
  color: #7657f6;
  font-weight: var(--st-weight-black);
  margin-bottom: 5px;
}
.vai-api-dialog-head h2 {
  margin: 0;
  color: #172033;
  font-size: var(--st-font-2xl);
}
.vai-api-dialog-head p {
  margin: 5px 0 0;
  color: #8b95a8;
  font-size: var(--st-font-sm);
  line-height: var(--st-line-1-45);
}
.vai-api-close {
  width: 33px;
  height: 33px;
  border: 1px solid #e0e4ee;
  background: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #64748b;
}
.vai-api-close i,.vai-api-close svg {
  width: 16px;
  height: 16px;
}
.vai-api-dialog-body {
  padding: 16px 18px 19px;
  display: grid;
  gap: 13px;
}
.vai-api-alert {
  display: none;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-bold);
  line-height: var(--st-line-1-45);
}
.vai-api-alert.is-show {
  display: block;
}
.vai-api-alert.error {
  background: #fff1f2;
  color: #b4233b;
  border: 1px solid #fecdd3;
}
.vai-api-alert.success {
  background: #effbf5;
  color: #16734f;
  border: 1px solid #c9eddb;
}
.vai-api-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.vai-api-field {
  display: grid;
  gap: 5px;
}
.vai-api-field.full {
  grid-column: 1/-1;
}
.vai-api-field label {
  font-size: var(--st-font-xs);
  text-transform: uppercase;
  letter-spacing: var(--st-track-label);
  color: #8b95a8;
  font-weight: var(--st-weight-black);
}
.vai-api-field input,.vai-api-field select {
  height: var(--st-control-h);
  box-sizing: border-box;
  border: 1px solid #dfe4ed;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  color: #263247;
  font: inherit;
  font-size: var(--st-font-md);
  outline: none;
}
.vai-api-field input:focus,.vai-api-field select:focus {
  border-color: #a99bf9;
  box-shadow: 0 0 0 3px rgba(108,84,246,.07);
}
.vai-api-help {
  color: #929bad;
  font-size: var(--st-font-xs);
  line-height: var(--st-line-1-45);
}
.vai-api-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.vai-api-secondary {
  height: 36px;
  border: 1px solid #dde2ec;
  border-radius: 10px;
  background: #fff;
  color: #58657b;
  padding: 0 12px;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-extrabold);
  cursor: pointer;
}
.vai-company-picker {
  position: relative;
}
.vai-company-picker input {
  width: 100%;
  padding-right: 36px;
}
.vai-company-picker-chevron {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #8e94a6;
  pointer-events: none;
}
.vai-company-picker-chevron i,.vai-company-picker-chevron svg {
  width: 14px;
  height: 14px;
}
.vai-company-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  display: none;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #e0dcf3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(45,35,95,.15);
}
.vai-company-menu.is-open {
  display: block;
}
.vai-company-option {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
}
.vai-company-option:hover {
  background: #f6f3ff;
}
.vai-company-option strong {
  display: block;
  color: #374157;
  font-size: var(--st-font-sm);
}
.vai-company-option small {
  display: block;
  margin-top: 2px;
  color: #9aa3b5;
  font-size: var(--st-font-xs);
}
.vai-company-option span {
  color: #7657f6;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-extrabold);
}
.vai-api-secret {
  display: none;
  border: 1px solid #d7cef9;
  border-radius: 14px;
  background: #faf8ff;
  padding: 13px;
}
.vai-api-secret.is-show {
  display: block;
}
.vai-api-secret-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
}
.vai-api-secret-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #ece7ff;
  color: #6847ec;
  flex: none;
}
.vai-api-secret-icon i,.vai-api-secret-icon svg {
  width: 14px;
  height: 14px;
}
.vai-api-secret-head strong {
  display: block;
  color: #443d66;
  font-size: var(--st-font-sm);
}
.vai-api-secret-head small {
  display: block;
  margin-top: 2px;
  color: #817a9b;
  font-size: var(--st-font-xs);
  line-height: var(--st-line-1-4);
}
.vai-api-secret-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 7px;
}
.vai-api-secret-row code {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1dcf5;
  border-radius: 9px;
  background: #fff;
  color: #433c61;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: var(--st-font-xs);
  overflow: auto;
  white-space: nowrap;
}
.vai-api-warning {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 9px;
  color: #9a6717;
  font-size: var(--st-font-xs);
  line-height: var(--st-line-1-45);
}
.vai-api-warning i,.vai-api-warning svg {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
}
.vai-api-shell {
  display: grid;
  gap: 12px;
}
.vai-api-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #e5e1f5;
  background: linear-gradient(135deg,#fbfaff 0%,#f7f4ff 100%);
  padding: 14px 16px;
  border-radius: 15px;
}
.vai-api-hero-icon {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: #ece7ff;
  color: #6847ec;
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 12px;
}
.vai-api-hero-copy h2 {
  margin: 0;
  color: #20273a;
  line-height: var(--st-line-1-25);
  font-weight: var(--st-weight-black);
  font-size: var(--st-font-xl);
  letter-spacing: var(--st-track-tight);
}
.vai-api-hero-copy p {
  margin: 4px 0 0;
  color: #737d92;
  margin-top: 3px;
  max-width: 720px;
  font-size: var(--st-font-md);
  line-height: var(--st-line-1-45);
}
.vai-api-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ded8fa;
  border-radius: 999px;
  background: #fff;
  color: #6656b4;
  font-weight: var(--st-weight-extrabold);
  white-space: nowrap;
  min-height: 29px;
  padding: 0 9px;
  font-size: var(--st-font-xs);
  gap: 6px;
}
.vai-api-chip i,.vai-api-chip svg {
  width: 12px;
  height: 12px;
}
.vai-api-endpoint {
  display: grid;
  align-items: center;
  border: 1px solid #e8eaf1;
  border-radius: 13px;
  background: #fff;
  grid-template-columns: minmax(0,1fr) auto;
  padding: 10px 12px;
  gap: 12px;
}
.vai-api-endpoint-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vai-api-method {
  height: 27px;
  min-width: 45px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eee9ff;
  color: #6645e7;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-black);
  letter-spacing: var(--st-track-label);
}
.vai-api-endpoint-copy span {
  display: block;
  color: #929bad;
  font-weight: var(--st-weight-black);
  letter-spacing: var(--st-track-label);
  text-transform: uppercase;
  font-size: var(--st-font-xs);
  margin-bottom: 3px;
}
.vai-api-endpoint-copy code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #384158;
  font-size: var(--st-font-md);
  font-weight: var(--st-weight-extrabold);
}
.vai-api-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 0 8px;
  border-radius: 8px;
  background: #f6f7fb;
  color: #677188;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-extrabold);
  white-space: nowrap;
}
.vai-api-auth-badge i,.vai-api-auth-badge svg {
  width: 11px;
  height: 11px;
}
.vai-api-endpoint-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vai-api-copy {
  border: 1px solid #dddff0;
  border-radius: 9px;
  background: #fff;
  color: #5b667c;
  font-weight: var(--st-weight-extrabold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 33px;
  padding: 0 10px;
  font-size: var(--st-font-xs);
}
.vai-api-test {
  border-color: #d9d2fb;
  color: #6647df;
  background: #fbfaff;
}
.vai-api-test.is-testing {
  pointer-events: none;
  opacity: .7;
}
.vai-api-test.is-ok {
  border-color: #bdebd5;
  background: #f0fbf6;
  color: #168357;
}
.vai-api-test.is-error {
  border-color: #fecdd3;
  background: #fff7f8;
  color: #b4233b;
}
.vai-api-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.vai-api-stat {
  position: relative;
  border: 1px solid #e7e5f4;
  background: #fff;
  min-height: 72px;
  padding: 11px 13px;
  border-radius: 14px;
}
.vai-api-stat .label {
  color: #8b94a8;
  font-size: var(--st-stat-label-size);
  font-weight: var(--st-stat-label-weight);
  letter-spacing: var(--st-track-label);
  text-transform: uppercase;
}
.vai-api-stat strong {
  display: block;
  color: #272a3d;
  line-height: var(--st-stat-value-line);
  font-weight: var(--st-stat-value-weight);
  margin-top: 4px;
  font-size: var(--st-stat-value-size);
  letter-spacing: var(--st-track-tight);
}
.vai-api-stat small {
  display: block;
  color: #98a1b2;
  margin-top: 5px;
  font-size: var(--st-font-xs);
}
.vai-api-stat-icon {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f3f0ff;
  color: #7657f6;
  right: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
}
.vai-api-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f6;
  flex-wrap: wrap;
  padding: 11px 12px;
}
.vai-api-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}
.vai-api-search {
  position: relative;
  display: block;
  flex: 1;
  height: var(--st-control-h);
  width: 350px;
  max-width: 350px;
}
.vai-api-search input,.vai-api-select {
  height: var(--st-control-h);
  box-sizing: border-box;
  border: 1px solid #dde3ee;
  border-radius: 11px;
  background: #fff;
  color: #263247;
  font: inherit;
  outline: none;
  font-size: var(--st-font-md);
}
.vai-api-select {
  padding: 0 10px;
  min-width: 138px;
}
.vai-api-generate {
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg,#7657f6,#6440e7);
  color: #fff;
  font-weight: var(--st-weight-black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: var(--st-control-h);
  min-width: 154px;
  justify-content: center;
  padding: 0 15px;
  font-size: var(--st-font-md);
  box-shadow: 0 5px 14px rgba(100,64,231,.13);
}
.vai-api-generate:hover {
  filter: brightness(.985);
  transform: translateY(-1px);
}
.vai-api-table th {
  background: #fafafe;
  color: #8993a9;
  letter-spacing: var(--st-track-wide);
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid #e9edf4;
  white-space: nowrap;
  padding: 10px 11px;
  font-size: var(--st-font-xs);
}
.vai-api-table td {
  padding: 11px;
  border-bottom: 1px solid #eff2f7;
  vertical-align: middle;
  color: #41506a;
  font-size: var(--st-font-sm);
}
.vai-api-company strong {
  display: block;
  max-width: 235px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #263247;
  font-size: var(--st-font-md);
}
.vai-api-company small {
  display: block;
  margin-top: 2px;
  color: #9aa3b5;
  font-size: var(--st-font-xs);
}
.vai-api-prefix {
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  color: #59657b;
  background: #f7f8fb;
  border: 1px solid #e8eaf0;
  border-radius: 7px;
  padding: 4px 6px;
  white-space: nowrap;
  font-size: var(--st-font-xs);
}
.vai-api-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-weight: var(--st-weight-black);
  padding: 5px 9px;
  font-size: var(--st-font-xs);
  border: 1px solid transparent;
}
.vai-api-status.active {
  border-color: #c6f0dc;
  background: #eafaf2;
  color: #0d8a59;
}
.vai-api-status.disabled {
  border-color: #f8dfaf;
  background: #fff8e9;
  color: #9a640e;
}
.vai-api-status.revoked {
  border-color: #fecdd3;
  background: #fff1f3;
  color: #b4233b;
}
.vai-api-status.expired {
  border-color: #dfe3ea;
  background: #f4f5f8;
  color: #6b7280;
}
.vai-api-usage strong {
  display: block;
  color: #3e4a60;
  font-size: var(--st-font-sm);
}
.vai-api-usage small {
  display: block;
  margin-top: 2px;
  color: #9aa3b5;
  font-size: var(--st-font-xs);
}
.vai-api-progress {
  width: 100%;
  max-width: 110px;
  height: 4px;
  margin-top: 5px;
  border-radius: 999px;
  background: #edeff4;
  overflow: hidden;
}
.vai-api-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#856cff,#6745e8);
  min-width: 0;
}
.vai-api-action {
  border: 1px solid #dddff0;
  border-radius: 8px;
  background: #fff;
  color: #5a6579;
  padding: 0 8px;
  font-weight: var(--st-weight-extrabold);
  cursor: pointer;
  height: 30px;
  font-size: var(--st-font-xs);
}
.vai-api-card.is-empty .vai-api-table thead {
  display: none;
}
.vai-api-card.is-empty .vai-api-empty {
  padding: 24px 20px 26px;
}
.vai-api-card.is-empty .vai-api-empty span {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.vai-api-empty strong {
  display: block;
  color: #4b5569;
  font-size: var(--st-font-md);
}
.vai-api-empty small {
  display: block;
  margin-top: 4px;
  font-size: var(--st-font-xs);
}
.vai-api-empty-action {
  margin-top: 11px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: #7354ed;
  color: #fff;
  padding: 0 12px;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vai-api-empty-action i,.vai-api-empty-action svg {
  width: 12px;
  height: 12px;
}
.vai-api-guide-dialog {
  width: min(760px,100%);
}
.vai-api-guide-body {
  gap: 12px;
}
.vai-api-guide-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #e2dcfb;
  border-radius: 11px;
  background: #faf8ff;
}
.vai-api-guide-note>span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #ece7ff;
  color: #6847ec;
}
.vai-api-guide-note>span i,.vai-api-guide-note>span svg {
  width: 14px;
  height: 14px;
}
.vai-api-guide-note strong {
  display: block;
  color: #453d66;
  font-size: var(--st-font-sm);
}
.vai-api-guide-note small {
  display: block;
  margin-top: 2px;
  color: #7e7896;
  font-size: var(--st-font-xs);
  line-height: var(--st-line-1-45);
}
.vai-api-contract-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
}
.vai-api-contract-grid>div {
  padding: 9px 10px;
  border: 1px solid #e8e9ef;
  border-radius: 10px;
  background: #fff;
}
.vai-api-contract-grid span {
  display: block;
  color: #99a1b1;
  font-size: var(--st-font-xs);
  font-weight: var(--st-weight-black);
  letter-spacing: var(--st-track-label);
  text-transform: uppercase;
}
.vai-api-contract-grid strong {
  display: block;
  margin-top: 3px;
  color: #414b60;
  font-size: var(--st-font-xs);
}
.vai-api-guide-section {
  border: 1px solid #e6e8ef;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}
.vai-api-guide-section-head {
  height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eceef3;
}
.vai-api-guide-section-head strong {
  color: #4a5468;
  font-size: var(--st-font-sm);
}
.vai-api-guide-section pre {
  margin: 0;
  max-height: 190px;
  overflow: auto;
  padding: 12px;
  background: #171a24;
  color: #f4f3ff;
  font: var(--st-font-xs)/var(--st-line-1-65) ui-monospace,SFMono-Regular,Menlo,monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.vai-api-guide-section pre code {
  font: inherit;
  color: inherit;
}
.vai-api-guide-foot {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #7e8798;
  font-size: var(--st-font-xs);
  line-height: var(--st-line-1-5);
}
.vai-api-guide-foot i,.vai-api-guide-foot svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 1px;
  color: #7657f6;
}

/* 05 — CLIENT DRAWER + PERMISSIONS */
.client-rag-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.client-rag-mode {
  position: relative;
  display: block;
}
.client-rag-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.client-rag-mode>span {
  display: block;
  min-height: 76px;
  padding: 11px;
  border: 1px solid #e2e6ef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: .16s ease;
}
.client-rag-mode strong {
  display: block;
  color: #344054;
  font-size: var(--st-font-sm);
}
.client-rag-mode small {
  display: block;
  margin-top: 4px;
  color: #8b95a8;
  font-size: var(--st-font-xs);
  line-height: var(--st-line-1-45);
}
.client-rag-mode input:checked+span {
  border-color: #b9adfb;
  background: #f7f4ff;
  box-shadow: inset 0 0 0 1px #d7d0ff;
}
.client-rag-mode input:checked+span strong {
  color: #6545e8;
}
.client-rag-mode-note {
  margin-top: 8px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 8px 9px;
  border: 1px solid #e7e2ff;
  border-radius: 10px;
  background: #faf8ff;
  color: #695ac0;
  font-size: var(--st-font-xs);
  line-height: var(--st-line-1-45);
}
.client-rag-mode-note svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 1px;
}

/* 09 — STATIC MARKUP HELPERS */
.client-admin-shell, .client-admin-shell * { box-sizing: border-box; }
.client-admin-tab-icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.client-admin-workspace-note { line-height: var(--st-line-1-7); }
.client-admin-stack { display: grid; gap: 8px; margin-top: 11px; }
.client-admin-footer-actions.is-spaced { margin-top: 11px; }
.client-password-result.session-saved { background: #f8f7ff; border-color: #dfd9ff; }
.client-password-result.session-saved > span { color: #6650c8; }
.client-admin-create-title { margin: 0; font-size: var(--st-font-2xl); color: #172033; }
.vai-api-help.is-spaced { margin-top: 10px; }
.vai-api-modal-actions.is-spaced-lg { margin-top: 13px; }
.vai-api-modal-actions.is-spaced { margin-top: 12px; }
.client-user-name { color: #39465c; }
.client-sector-empty { font-size: var(--st-font-xs); color: #98a2b3; }
.client-sector-spacer { width: 15px; flex: none; }
.client-category-empty { padding: 12px; font-size: var(--st-font-xs); color: #98a2b3; }
.client-empty.is-compact { padding: 22px 10px; }
.vai-api-progress > span, .vai-unified-progress > span { width: var(--progress-width, 0%); }


/* 10 — RESPONSIVE PROFILES */
@media (max-width:1080px) {
  .vai-api-endpoint {
    grid-template-columns: 1fr;
  }
  .vai-api-endpoint-actions {
    justify-content: flex-start;
  }
  .vai-api-endpoint-left {
    flex-wrap: wrap;
  }
  .vai-api-contract-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:980px) {
  .client-admin-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .client-modules-grid {
    grid-template-columns: 1fr;
  }
  .vai-api-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .vai-api-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .vai-api-security {
    justify-content: flex-start;
  }
}
@media (max-width:720px) {
  .vai-api-search {
    width: 100%;
    max-width: none;
  }
  .vai-api-toolbar-left {
    width: 100%;
    flex: 1;
  }
  .vai-api-endpoint-actions {
    flex-wrap: wrap;
  }
  .vai-api-auth-badge {
    display: none;
  }
  .vai-api-contract-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width:640px) {
  :root {
    --st-overlay-title-size: var(--st-font-2xl);
    --st-overlay-control-size: var(--st-font-lg);
  }
  .client-admin-stats {
    grid-template-columns: 1fr;
  }
  .client-admin-grid {
    grid-template-columns: 1fr;
  }
  .client-admin-field.full {
    grid-column: auto;
  }
  .client-admin-toolbar-left {
    min-width: 0;
    width: 100%;
  }
  .client-admin-search {
    max-width: none;
  }
  .client-admin-drawer {
    width: 100%;
  }
  .vai-api-stats {
    grid-template-columns: 1fr;
  }
  .vai-api-grid {
    grid-template-columns: 1fr;
  }
  .vai-api-field.full {
    grid-column: auto;
  }
  .vai-api-toolbar-left {
    min-width: 0;
    width: 100%;
  }
  .vai-api-search {
    max-width: none;
  }
  .vai-api-endpoint {
    grid-template-columns: 1fr;
  }
  .vai-api-dialog {
    max-height: calc(100vh - 20px);
  }
}
@media (max-width:620px) {
  .client-contact-category-sectors {
    padding-left: 12px;
  }
  .client-rag-mode-grid {
    grid-template-columns: 1fr;
  }
}

/* 11 — ACCESSIBILITY */
.client-admin-shell button:focus-visible,
.client-admin-shell input:focus-visible,
.client-admin-shell select:focus-visible,
.client-admin-shell textarea:focus-visible {
  outline: 2px solid rgba(108, 76, 245, .38);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .client-admin-shell *, .client-admin-shell *::before, .client-admin-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
