/* ==========================================================
   HELM GLOBAL CSS v1
   Built from existing Smart Support / Helm component styling
   Typeface: Satoshi
   Spacing: LiftKit-inspired golden-ratio token system
   ========================================================== */

/* ----------------------------------------------------------
   1. FONT SETUP
   ----------------------------------------------------------
   Upload Satoshi to Webflow or your external assets host.
   Replace the src URLs below with your hosted font file URLs.
   Do not leave /fonts/... unless that path exists on your host.
---------------------------------------------------------- */

/*
@font-face {
  font-family: "Satoshi";
  src: url("https://assets.helmhq.co.uk/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("https://assets.helmhq.co.uk/fonts/Satoshi-VariableItalic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
*/

/* ----------------------------------------------------------
   2. DESIGN TOKENS
   ---------------------------------------------------------- */

:root {
  /* Typography */
  --helm-font: "Satoshi", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Core colours extracted from current Helm / Smart Support code */
  --helm-primary: #3d9be9;
  --helm-primary-hover: #257fc6;
  --helm-primary-soft: #eaf6ff;
  --helm-primary-border: #bfe5ff;
  --helm-primary-dark: #1c6fac;

  --helm-text: #1c224b;
  --helm-text-strong: rgba(28, 34, 75, 0.94);
  --helm-text-main: rgba(28, 34, 75, 0.9);
  --helm-text-soft: #64748b;
  --helm-text-muted: #94a3b8;

  --helm-bg: #f8fafc;
  --helm-surface: #ffffff;
  --helm-surface-soft: #fafbfc;
  --helm-border: #e5eaf0;
  --helm-border-soft: #f1f3f6;
  --helm-border-strong: #cbd5e1;

  --helm-success: #16a34a;
  --helm-success-soft: #ecfdf3;
  --helm-success-border: #bbf7d0;
  --helm-warning: #d97706;
  --helm-warning-soft: #fffbeb;
  --helm-warning-border: #fde68a;
  --helm-danger: #dc2626;
  --helm-danger-soft: #fef2f2;
  --helm-danger-border: #fecaca;
  --helm-neutral: #64748b;
  --helm-neutral-soft: #f8fafc;
  --helm-neutral-border: #e2e8f0;

  /* LiftKit-inspired golden ratio spacing scale */
  --lk-ratio: 1.618;
  --lk-space-000: 0;
  --lk-space-025: 0.236rem; /* ~3.8px */
  --lk-space-050: 0.382rem; /* ~6.1px */
  --lk-space-075: 0.5rem;   /* 8px */
  --lk-space-100: 0.618rem; /* ~10px */
  --lk-space-125: 0.75rem;  /* 12px */
  --lk-space-150: 1rem;     /* 16px */
  --lk-space-175: 1.236rem; /* ~20px */
  --lk-space-200: 1.618rem; /* ~26px */
  --lk-space-250: 2rem;     /* 32px */
  --lk-space-300: 2.618rem; /* ~42px */
  --lk-space-400: 4.236rem; /* ~68px */
  --lk-space-500: 6.854rem; /* ~110px */

  /* Component sizing */
  --helm-control-height-sm: 38px;
  --helm-control-height: 42px;
  --helm-input-height: 46px;

  /* Radius */
  --helm-radius-xs: 8px;
  --helm-radius-sm: 10px;
  --helm-radius-md: 12px;
  --helm-radius-lg: 18px;
  --helm-radius-xl: 20px;
  --helm-radius-pill: 999px;

  /* Shadows */
  --helm-shadow-xs: 0 1px 2px rgba(28, 34, 75, 0.04);
  --helm-shadow-card: 0 8px 24px rgba(28, 34, 75, 0.07), 0 1px 3px rgba(28, 34, 75, 0.05);
  --helm-shadow-card-strong: 0 10px 30px rgba(28, 34, 75, 0.1), 0 2px 6px rgba(28, 34, 75, 0.06);
  --helm-shadow-modal: 0 18px 45px rgba(28, 34, 75, 0.13), 0 6px 16px rgba(28, 34, 75, 0.07);
  --helm-shadow-button: 0 8px 18px rgba(61, 155, 233, 0.22);
  --helm-shadow-button-hover: 0 10px 22px rgba(61, 155, 233, 0.26);

  /* Motion */
  --helm-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --helm-transition-fast: 140ms var(--helm-ease);
  --helm-transition: 180ms var(--helm-ease);
  --helm-transition-modal: 220ms var(--helm-ease);

  /* Layout */
  --helm-sidebar-offset: 19.5rem;
  --helm-page-max: 1440px;
  --helm-z-dropdown: 40;
  --helm-z-dock: 998;
  --helm-z-modal: 999;
}

/* ----------------------------------------------------------
   3. BASE RESET
   ---------------------------------------------------------- */

.helm-ui,
.helm-ui *,
[class^="helm-"],
[class^="helm-"] *,
[class*=" helm-"],
[class*=" helm-"] * {
  box-sizing: border-box;
}

.helm-ui,
.helm-page,
.helm-card,
.helm-modal,
.helm-toolbar,
.helm-form,
.helm-btn,
.helm-input,
.helm-select,
.helm-textarea {
  font-family: var(--helm-font);
}

.helm-ui {
  color: var(--helm-text-main);
}

.helm-ui svg {
  display: block;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   4. PAGE + LAYOUT
   ---------------------------------------------------------- */

.helm-page {
  width: 100%;
  max-width: var(--helm-page-max);
  margin: 0 auto;
  color: var(--helm-text-main);
}

.helm-stack {
  display: grid;
  gap: var(--lk-space-175);
}

.helm-stack-sm { gap: var(--lk-space-100); }
.helm-stack-md { gap: var(--lk-space-175); }
.helm-stack-lg { gap: var(--lk-space-250); }

.helm-grid {
  display: grid;
  gap: var(--lk-space-175);
}

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

.helm-section {
  display: grid;
  gap: var(--lk-space-175);
  width: 100%;
}

/* ----------------------------------------------------------
   5. PAGE HEADER
   ---------------------------------------------------------- */

.helm-page-header {
  width: 100%;
  margin-bottom: var(--lk-space-175);
  color: var(--helm-text-main);
}

.helm-page-header__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--lk-space-200);
  width: 100%;
}

.helm-page-header__content {
  max-width: 680px;
  min-width: 0;
}

.helm-page-header__title {
  margin: 0;
  color: var(--helm-text-main);
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 760;
  letter-spacing: -0.034em;
  line-height: 1.12;
}

.helm-page-header__text {
  max-width: 580px;
  margin: var(--lk-space-075) 0 0;
  color: var(--helm-text-soft);
  font-size: 15px;
  font-weight: 430;
  line-height: 1.62;
}

.helm-page-header__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--lk-space-100);
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   6. CARDS
   ---------------------------------------------------------- */

.helm-card {
  width: 100%;
  border: 1px solid rgba(229, 234, 240, 0.95);
  border-radius: var(--helm-radius-lg);
  background: var(--helm-surface);
  box-shadow: var(--helm-shadow-card);
  color: var(--helm-text-main);
}

.helm-card--flat {
  box-shadow: none;
}

.helm-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--lk-space-175);
  padding: var(--lk-space-175) var(--lk-space-200);
  border-bottom: 1px solid var(--helm-border-soft);
  background: var(--helm-surface);
}

.helm-card__body {
  padding: var(--lk-space-200);
}

.helm-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--lk-space-100);
  padding: var(--lk-space-175) var(--lk-space-200);
  border-top: 1px solid var(--helm-border-soft);
}

.helm-card__title {
  margin: 0;
  color: var(--helm-text-main);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.022em;
  line-height: 1.2;
}

.helm-card__text {
  margin: var(--lk-space-050) 0 0;
  color: var(--helm-text-soft);
  font-size: 14px;
  font-weight: 430;
  line-height: 1.58;
}

/* ----------------------------------------------------------
   7. TOOLBAR + SEARCH
   ---------------------------------------------------------- */

.helm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lk-space-125);
  width: 100%;
  margin: var(--lk-space-175) 0;
  padding: var(--lk-space-125);
  border: 1px solid rgba(229, 234, 240, 0.95);
  border-radius: var(--helm-radius-lg);
  background: var(--helm-surface);
  box-shadow: var(--helm-shadow-card);
}

.helm-toolbar__left,
.helm-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--lk-space-100);
  min-width: 0;
}

.helm-toolbar__left { flex: 1; }
.helm-toolbar__right { justify-content: flex-end; flex-shrink: 0; }

.helm-search {
  position: relative;
  width: min(340px, 34vw);
  min-width: 220px;
}

.helm-search__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--helm-text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.helm-search__input {
  width: 100%;
  min-height: var(--helm-control-height);
  padding: 10px 14px 10px 42px;
  border: 1px solid var(--helm-border);
  border-radius: var(--helm-radius-md);
  background: var(--helm-surface);
  color: var(--helm-text-main);
  box-shadow: var(--helm-shadow-xs);
  font-family: var(--helm-font);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.3;
  outline: 0;
  transition: border-color var(--helm-transition), box-shadow var(--helm-transition), background var(--helm-transition);
}

.helm-search__input::placeholder {
  color: var(--helm-text-muted);
  font-weight: 430;
}

.helm-search__input:focus {
  border-color: var(--helm-primary);
  box-shadow: 0 0 0 3px rgba(61, 155, 233, 0.18);
}

/* ----------------------------------------------------------
   8. BUTTONS
   ---------------------------------------------------------- */

.helm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lk-space-075);
  min-height: var(--helm-control-height);
  width: auto;
  padding: 11px 16px;
  border-radius: var(--helm-radius-md);
  cursor: pointer;
  font-family: var(--helm-font);
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--helm-transition), border-color var(--helm-transition), color var(--helm-transition), transform var(--helm-transition), box-shadow var(--helm-transition);
}

.helm-btn svg {
  width: 16px;
  height: 16px;
}

.helm-btn:hover {
  transform: translateY(-1px);
}

.helm-btn:active {
  transform: translateY(0);
}

.helm-btn-primary {
  background: var(--helm-primary);
  color: #fff;
  box-shadow: var(--helm-shadow-button);
}

.helm-btn-primary:hover {
  background: var(--helm-primary-hover);
  box-shadow: var(--helm-shadow-button-hover);
}

.helm-btn-secondary {
  border-color: var(--helm-border);
  background: var(--helm-surface);
  color: var(--helm-text-main);
  box-shadow: var(--helm-shadow-xs);
}

.helm-btn-secondary:hover {
  border-color: var(--helm-border-strong);
  background: var(--helm-bg);
}

.helm-btn-soft {
  border-color: var(--helm-primary-border);
  background: var(--helm-primary-soft);
  color: var(--helm-primary-dark);
}

.helm-btn-danger {
  border-color: var(--helm-danger-border);
  background: var(--helm-danger-soft);
  color: var(--helm-danger);
}

.helm-btn-compact {
  min-height: var(--helm-control-height);
  padding: 11px 16px;
}

.helm-btn-icon {
  width: var(--helm-control-height);
  min-width: var(--helm-control-height);
  height: var(--helm-control-height);
  padding: 0;
}

/* ----------------------------------------------------------
   9. FORMS
   ---------------------------------------------------------- */

.helm-form {
  display: grid;
  gap: var(--lk-space-175);
}

.helm-form-grid {
  display: grid;
  gap: var(--lk-space-175);
  width: 100%;
}

.helm-form-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.helm-field {
  display: grid;
  gap: var(--lk-space-075);
  min-width: 0;
}

.helm-label {
  color: var(--helm-text-main);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
}

.helm-input-shell,
.helm-select-shell,
.helm-textarea-shell {
  position: relative;
  width: 100%;
}

.helm-input,
.helm-select,
.helm-textarea {
  width: 100%;
  min-height: var(--helm-input-height);
  padding: 11px 14px;
  border: 1px solid var(--helm-border);
  border-radius: var(--helm-radius-md);
  background: var(--helm-surface);
  color: var(--helm-text-main);
  box-shadow: var(--helm-shadow-xs);
  font-family: var(--helm-font);
  font-size: 14px;
  font-weight: 520;
  line-height: 1.35;
  outline: 0;
  transition: border-color var(--helm-transition), box-shadow var(--helm-transition), background var(--helm-transition);
}

.helm-textarea {
  min-height: 112px;
  resize: vertical;
}

.helm-input::placeholder,
.helm-textarea::placeholder {
  color: var(--helm-text-muted);
  font-weight: 430;
}

.helm-input:focus,
.helm-select:focus,
.helm-textarea:focus {
  border-color: var(--helm-primary);
  box-shadow: 0 0 0 3px rgba(61, 155, 233, 0.18);
}

.helm-select {
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.helm-select-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 2;
  width: 16px;
  height: 16px;
  color: var(--helm-text-main);
  pointer-events: none;
  transform: translateY(-50%);
}

.helm-input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: var(--helm-text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.helm-input-shell.with-icon .helm-input {
  padding-left: 44px;
}

.helm-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--lk-space-100);
}

.helm-form-actions [hidden] {
  display: none !important;
}

/* ----------------------------------------------------------
   10. MODALS
   ---------------------------------------------------------- */

.helm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--helm-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--lk-space-200);
  background: rgba(77, 166, 240, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--helm-transition-modal), visibility var(--helm-transition-modal);
}

.helm-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.helm-modal {
  width: min(880px, calc(100vw - 48px));
  max-height: calc(100svh - 36px);
  margin-left: var(--helm-sidebar-offset);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--helm-radius-xl);
  background: var(--helm-surface);
  box-shadow: var(--helm-shadow-modal);
  color: var(--helm-text-main);
  transform: translateY(8px) scale(0.97);
  transition: transform var(--helm-transition-modal);
}

.helm-modal-backdrop.is-open .helm-modal {
  transform: translateY(0) scale(1);
}

.helm-modal-sm { width: min(560px, calc(100vw - 48px)); }
.helm-modal-md { width: min(720px, calc(100vw - 48px)); }
.helm-modal-lg { width: min(1080px, calc(100vw - 48px)); }

.helm-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: var(--lk-space-125);
  padding: var(--lk-space-200);
  border-bottom: 1px solid var(--helm-border-soft);
  background: linear-gradient(180deg, #fff 0, var(--helm-surface-soft) 100%);
}

.helm-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--helm-primary-border);
  border-radius: 15px;
  background: var(--helm-primary-soft);
  color: var(--helm-primary-dark);
}

.helm-modal__title {
  margin: 0;
  color: var(--helm-text-main);
  font-size: 22px;
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.helm-modal__subtitle {
  max-width: 620px;
  margin: var(--lk-space-075) 0 0;
  color: var(--helm-text-soft);
  font-size: 14px;
  font-weight: 430;
  line-height: 1.6;
}

.helm-modal__body {
  display: grid;
  gap: var(--lk-space-175);
  padding: var(--lk-space-175);
}

.helm-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--lk-space-100);
  padding: 0 var(--lk-space-175) var(--lk-space-175);
}

.helm-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--helm-border);
  border-radius: var(--helm-radius-md);
  background: var(--helm-surface);
  color: var(--helm-text-soft);
  cursor: pointer;
  box-shadow: var(--helm-shadow-xs);
  transition: background var(--helm-transition), border-color var(--helm-transition), color var(--helm-transition), transform var(--helm-transition), box-shadow var(--helm-transition);
}

.helm-modal__close:hover {
  background: var(--helm-bg);
  border-color: var(--helm-border-strong);
  color: var(--helm-text-main);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   11. STEPPER / WIZARD
   ---------------------------------------------------------- */

.helm-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--lk-space-100);
  padding: var(--lk-space-075);
  border: 1px solid var(--helm-border);
  border-radius: 16px;
  background: var(--helm-surface-soft);
}

.helm-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lk-space-075);
  min-height: var(--helm-control-height-sm);
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--helm-text-soft);
  cursor: pointer;
  font-family: var(--helm-font);
  font-size: 12px;
  font-weight: 680;
  line-height: 1;
  transition: background var(--helm-transition), border-color var(--helm-transition), color var(--helm-transition), box-shadow var(--helm-transition);
}

.helm-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--helm-radius-pill);
  background: var(--helm-surface);
  color: var(--helm-text-muted);
  font-size: 11px;
  font-weight: 680;
  box-shadow: var(--helm-shadow-xs);
}

.helm-step.is-active {
  border-color: var(--helm-primary-border);
  background: var(--helm-primary-soft);
  color: var(--helm-primary-dark);
}

.helm-step.is-active span {
  background: var(--helm-primary);
  color: #fff;
}

.helm-step-panel { display: none; }
.helm-step-panel.is-active { display: block; }

/* ----------------------------------------------------------
   12. TABS
   ---------------------------------------------------------- */

.helm-tabs {
  display: flex;
  gap: var(--lk-space-075);
  overflow-x: auto;
  padding: var(--lk-space-075);
  border: 1px solid var(--helm-border);
  border-radius: var(--helm-radius-lg);
  background: var(--helm-surface);
  box-shadow: var(--helm-shadow-xs);
}

.helm-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--helm-control-height);
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--helm-radius-md);
  background: transparent;
  color: var(--helm-text-soft);
  cursor: pointer;
  font-family: var(--helm-font);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--helm-transition), border-color var(--helm-transition), color var(--helm-transition);
}

.helm-tab:hover,
.helm-tab.is-active {
  border-color: var(--helm-primary-border);
  background: var(--helm-primary-soft);
  color: var(--helm-primary-dark);
}

.helm-tab-panel { display: none; }
.helm-tab-panel.is-active { display: block; }

/* ----------------------------------------------------------
   13. DROPDOWNS
   ---------------------------------------------------------- */

.helm-menu-wrap {
  position: relative;
}

.helm-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: var(--helm-z-dropdown);
  min-width: 190px;
  padding: var(--lk-space-075);
  border: 1px solid rgba(229, 234, 240, 0.96);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(28, 34, 75, 0.14), 0 6px 16px rgba(28, 34, 75, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity var(--helm-transition-fast), transform var(--helm-transition-fast), visibility var(--helm-transition-fast);
}

.helm-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.helm-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--helm-text-main);
  cursor: pointer;
  font-family: var(--helm-font);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.2;
  text-align: left;
  transition: background var(--helm-transition-fast), color var(--helm-transition-fast);
}

.helm-menu-item:hover,
.helm-menu-item.is-active {
  background: var(--helm-primary-soft);
  color: var(--helm-primary-dark);
}

/* ----------------------------------------------------------
   14. ROW CARDS
   ---------------------------------------------------------- */

.helm-row-list {
  display: grid;
  gap: var(--lk-space-125);
}

.helm-row-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--lk-space-125);
  width: 100%;
  padding: var(--lk-space-150);
  border: 1px solid rgba(229, 234, 240, 0.95);
  border-radius: var(--helm-radius-lg);
  background: var(--helm-surface);
  box-shadow: var(--helm-shadow-card);
  color: var(--helm-text-main);
  transition: transform var(--helm-transition), box-shadow var(--helm-transition), border-color var(--helm-transition);
}

.helm-row-card:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 229, 255, 0.95);
  box-shadow: var(--helm-shadow-card-strong);
}

.helm-row-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--helm-primary-border);
  border-radius: 14px;
  background: var(--helm-primary-soft);
  color: var(--helm-primary-dark);
}

.helm-row-card__icon.is-danger {
  border-color: var(--helm-danger-border);
  background: var(--helm-danger-soft);
  color: var(--helm-danger);
}

.helm-row-card__icon.is-warning {
  border-color: var(--helm-warning-border);
  background: var(--helm-warning-soft);
  color: var(--helm-warning);
}

.helm-row-card__main {
  min-width: 0;
}

.helm-kicker {
  margin: 0 0 var(--lk-space-050);
  color: var(--helm-text-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.helm-row-card__title {
  margin: 0;
  color: var(--helm-text-main);
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.helm-row-card__text {
  margin: var(--lk-space-050) 0 0;
  color: var(--helm-text-soft);
  font-size: 13px;
  font-weight: 430;
  line-height: 1.55;
}

.helm-row-card__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--lk-space-075);
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   15. BADGES / PILLS
   ---------------------------------------------------------- */

.helm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 6px 10px;
  border: 1px solid var(--helm-neutral-border);
  border-radius: var(--helm-radius-pill);
  background: var(--helm-neutral-soft);
  color: var(--helm-neutral);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.helm-badge-success {
  border-color: var(--helm-success-border);
  background: var(--helm-success-soft);
  color: var(--helm-success);
}

.helm-badge-warning {
  border-color: var(--helm-warning-border);
  background: var(--helm-warning-soft);
  color: var(--helm-warning);
}

.helm-badge-danger {
  border-color: var(--helm-danger-border);
  background: var(--helm-danger-soft);
  color: var(--helm-danger);
}

.helm-badge-primary {
  border-color: var(--helm-primary-border);
  background: var(--helm-primary-soft);
  color: var(--helm-primary-dark);
}

/* ----------------------------------------------------------
   16. EMPTY STATES
   ---------------------------------------------------------- */

.helm-empty {
  width: 100%;
  padding: var(--lk-space-300) var(--lk-space-175);
  background: transparent;
  color: var(--helm-text-main);
}

.helm-empty__inner {
  width: 100%;
  min-height: 260px;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--lk-space-175);
  text-align: center;
}

.helm-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(229, 234, 240, 0.95);
  border-radius: var(--helm-radius-lg);
  background: var(--helm-surface);
  color: var(--helm-primary);
  box-shadow: 0 8px 24px rgba(28, 34, 75, 0.08), 0 1px 3px rgba(28, 34, 75, 0.06);
}

.helm-empty__title {
  margin: 0;
  color: var(--helm-text-main);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.helm-empty__text {
  max-width: 420px;
  margin: var(--lk-space-100) auto 0;
  color: var(--helm-text-soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   17. TOASTS
   ---------------------------------------------------------- */

.helm-toast-region {
  position: fixed;
  right: var(--lk-space-200);
  bottom: var(--lk-space-200);
  z-index: 1000;
  display: grid;
  gap: var(--lk-space-100);
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.helm-toast {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: var(--lk-space-100);
  padding: var(--lk-space-125);
  border: 1px solid var(--helm-border);
  border-radius: var(--helm-radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--helm-shadow-modal);
  color: var(--helm-text-main);
  pointer-events: auto;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: opacity var(--helm-transition), transform var(--helm-transition);
}

.helm-toast.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.helm-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--helm-radius-md);
  background: var(--helm-primary-soft);
  color: var(--helm-primary-dark);
}

.helm-toast__title {
  margin: 0;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
}

.helm-toast__text {
  margin: var(--lk-space-025) 0 0;
  color: var(--helm-text-soft);
  font-size: 13px;
  font-weight: 430;
  line-height: 1.45;
}

.helm-toast-success .helm-toast__icon { background: var(--helm-success-soft); color: var(--helm-success); }
.helm-toast-warning .helm-toast__icon { background: var(--helm-warning-soft); color: var(--helm-warning); }
.helm-toast-danger .helm-toast__icon { background: var(--helm-danger-soft); color: var(--helm-danger); }

/* ----------------------------------------------------------
   18. FOCUS STATES
   ---------------------------------------------------------- */

.helm-btn:focus-visible,
.helm-modal__close:focus-visible,
.helm-step:focus-visible,
.helm-tab:focus-visible,
.helm-menu-item:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(61, 155, 233, 0.18);
}

/* ----------------------------------------------------------
   19. LEGACY SMART SUPPORT ALIASES
   ----------------------------------------------------------
   These allow old ss-* and driver workspace classes to start sharing
   the same design tokens without changing every Wized name at once.
---------------------------------------------------------- */

.ss-btn,
.dbtn {
  font-family: var(--helm-font) !important;
}

.ss-btn-primary,
.dbtn-primary {
  background: var(--helm-primary) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: var(--helm-shadow-button) !important;
}

.ss-btn-primary:hover,
.dbtn-primary:hover {
  background: var(--helm-primary-hover) !important;
}

.ss-btn-secondary,
.dbtn-secondary {
  background: var(--helm-surface) !important;
  color: var(--helm-text-main) !important;
  border-color: var(--helm-border) !important;
}

.ss-input,
.ss-select,
.ss-textarea,
.ss-field-label,
.ss-section-title,
.ss-section-note,
.ss-driver-modal,
.ss-driver-filter-modal,
.ss-drivers-toolbar,
.ss-drivers-heading-card,
.dp,
.dr-card,
.dempty {
  font-family: var(--helm-font) !important;
}

/* ----------------------------------------------------------
   20. RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 1180px) {
  .helm-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .helm-toolbar__left,
  .helm-toolbar__right {
    width: 100%;
  }

  .helm-toolbar__right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .helm-search {
    width: 100%;
    flex: 1;
    min-width: 0;
  }

  .helm-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .helm-modal {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .helm-card__header {
    display: grid;
  }

  .helm-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 767px) {
  .helm-page-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--lk-space-125);
  }

  .helm-page-header__title {
    font-size: 30px;
    line-height: 1.1;
  }

  .helm-page-header__text {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 0;
  }

  .helm-modal-backdrop {
    align-items: flex-start;
    padding: calc(84px + env(safe-area-inset-top)) 12px 14px;
  }

  .helm-modal {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 98px - env(safe-area-inset-top));
  }

  .helm-row-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .helm-row-card__meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .helm-grid,
  .helm-grid-2,
  .helm-grid-3,
  .helm-grid-4,
  .helm-form-grid,
  .helm-form-grid.two-cols {
    grid-template-columns: 1fr;
  }

  .helm-card__header,
  .helm-card__body,
  .helm-card__footer {
    padding: var(--lk-space-175);
  }

  .helm-modal__header {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: var(--lk-space-125);
    padding: var(--lk-space-175);
  }

  .helm-modal__icon {
    width: 44px;
    height: 44px;
  }

  .helm-stepper {
    grid-template-columns: 1fr;
  }

  .helm-step {
    justify-content: flex-start;
    width: 100%;
  }

  .helm-form-actions,
  .helm-modal__footer,
  .helm-card__footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .helm-btn,
  .helm-btn-compact {
    width: 100%;
    min-width: 0;
  }

  .helm-toast-region {
    right: var(--lk-space-150);
    bottom: var(--lk-space-150);
    width: calc(100vw - 32px);
  }
}
