/*
 * StayLinked design system controls.
 *
 * Copied from the shared rules already in use. Those originals are still
 * loaded by existing screens. Header pages link this file before css/header.css.
 *
 * Sources:
 *   global.css: text field, disabled field, toggle
 *   style_settings.css: button, primary, secondary, warning, destructive
 *   sbp-buttons.css: tertiary button
 *   style_license_details.css: Grey-20, used by the disabled secondary button
 *
 * Use the ds- classes in markup. A page stylesheet loaded after this file
 * can add a second class to specialize one control.
 */

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Light.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
}

/* ----------- Text ---------- */

.ds-text {
  font-family: var(--sl-font-family);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--sl-text-primary);
}

.ds-text-h1,
.ds-text-h2,
.ds-text-h3,
.ds-text-h4,
.ds-text-h5,
.ds-text-h6,
.ds-text-label,
.ds-text-link {
  font-weight: 600;
}

.ds-text-callout {
  font-weight: 300;
}

.ds-text-h1 {
  font-size: 2rem;
  line-height: 44px;
}

.ds-text-h2 {
  font-size: 1.5rem;
  line-height: 32px;
}

.ds-text-h3 {
  font-size: var(--sl-font-size-lg);
  line-height: 24px;
}

.ds-text-h4,
.ds-text-callout,
.ds-text-link {
  font-size: var(--sl-font-size-md);
  line-height: 24px;
}

.ds-text-h5,
.ds-text-body,
.ds-text-label {
  font-size: var(--sl-font-size-sm);
  line-height: 20px;
}

.ds-text-h6 {
  font-size: var(--sl-font-size-xs);
  line-height: 16px;
}

.ds-text-caption {
  font-size: var(--sl-font-size-xs);
  line-height: 18px;
}

.ds-text-link {
  color: var(--sl-text-link);
  text-decoration-line: underline;
  text-decoration-thickness: 7%;
  text-decoration-skip-ink: auto;
  text-underline-offset: 15%;
}

/* Breadcrumb typography, list and separator: sl-responsive.css (one look on every page). */

/* ----------- Button ---------- */
/* Figma Button component. Height 40, padding 10px 15px, label 16/24 semibold. */
/* is-hover, is-focus, and is-active freeze a state for the design-system preview page. */
/* Primary active uses Blue-120, the next darker blue after the hover color. */

.ds-btn {
  --ds-btn-elevation: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 10px 15px;
  box-sizing: border-box;
  border: none;
  border-radius: 8px;
  background: transparent;
  box-shadow: var(--ds-btn-elevation);
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-md);
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.ds-btn label,
.ds-btn span:where(.sl-label-text) {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  cursor: inherit;
}

.ds-btn .fa-solid,
.ds-btn .fa-regular {
  color: inherit;
  font-size: var(--sl-font-size-lg);
  line-height: 1;
}

.ds-btn:focus {
  outline: none;
}

.ds-btn:focus-visible,
.ds-btn.is-focus {
  border-radius: 16px;
  box-shadow: var(--ds-btn-elevation), var(--ds-btn-focus-ring);
}

/* Primary */
.ds-btn-primary {
  background: var(--SLDS-Blue-100);
  color: var(--sl-text-on-accent);
}

.ds-btn-primary:hover,
.ds-btn-primary.is-hover,
.ds-btn-primary:focus-visible,
.ds-btn-primary.is-focus {
  background: var(--SLDS-Blue-110);
}

.ds-btn-primary:active,
.ds-btn-primary.is-active {
  background: var(--SLDS-Blue-120);
  border-radius: 8px;
  box-shadow: var(--ds-btn-elevation);
}

/* Secondary */
.ds-btn-secondary {
  background: var(--sl-action-secondary-bg);
  border: 1.5px solid var(--SLDS-Blue-100);
  color: var(--sl-text-link);
}

.ds-btn-secondary:hover,
.ds-btn-secondary.is-hover,
.ds-btn-secondary:focus-visible,
.ds-btn-secondary.is-focus {
  background: var(--sl-surface-accent);
  border-color: var(--SLDS-Blue-110);
  color: var(--SLDS-Blue-110);
}

.ds-btn-secondary:active,
.ds-btn-secondary.is-active {
  background: var(--sl-surface-accent-strong);
  border-color: var(--SLDS-Blue-110);
  border-radius: 8px;
  color: var(--SLDS-Blue-110);
  box-shadow: var(--ds-btn-elevation);
}

/* Tertiary */
.ds-btn-tertiary {
  background: var(--sl-action-secondary-bg);
  border: 1.5px solid var(--SLDS-Blue-50);
  color: var(--sl-text-link);
}

.ds-btn-tertiary:hover,
.ds-btn-tertiary.is-hover,
.ds-btn-tertiary:focus-visible,
.ds-btn-tertiary.is-focus {
  background: var(--sl-surface-accent);
  border-color: var(--SLDS-Blue-50);
  color: var(--SLDS-Blue-110);
}

.ds-btn-tertiary:active,
.ds-btn-tertiary.is-active {
  background: var(--sl-surface-accent-strong);
  border-color: var(--SLDS-Blue-50);
  border-radius: 8px;
  color: var(--SLDS-Blue-110);
  box-shadow: var(--ds-btn-elevation);
}

/* Quaternary */
.ds-btn-quaternary {
  background: var(--sl-surface-accent);
  color: var(--sl-text-link);
}

.ds-btn-quaternary:hover,
.ds-btn-quaternary.is-hover,
.ds-btn-quaternary:focus-visible,
.ds-btn-quaternary.is-focus {
  background: var(--sl-surface-accent-strong);
  color: var(--SLDS-Blue-110);
}

.ds-btn-quaternary:active,
.ds-btn-quaternary.is-active {
  background: var(--SLDS-Blue-40);
  border-radius: 8px;
  color: var(--SLDS-Blue-110);
  box-shadow: var(--ds-btn-elevation);
}

/* Destructive. Figma style name is "Descructive". */
.ds-btn-destructive {
  background: var(--sl-action-secondary-bg);
  border: 1.5px solid var(--SLDS-Grey-60);
  color: var(--sl-text-secondary);
}

.ds-btn-destructive:hover,
.ds-btn-destructive.is-hover,
.ds-btn-destructive:focus-visible,
.ds-btn-destructive.is-focus {
  background: var(--sl-surface-sunken);
  border-color: var(--SLDS-Grey-60);
  color: var(--sl-text-secondary);
}

.ds-btn-destructive:active,
.ds-btn-destructive.is-active {
  background: var(--sl-surface-pressed);
  border-color: var(--SLDS-Grey-60);
  border-radius: 8px;
  color: var(--sl-text-secondary);
  box-shadow: var(--ds-btn-elevation);
}

/* Warning. Figma style name is "Warning descructive". */
.ds-btn-warning {
  background: var(--sl-action-secondary-bg);
  border: 1.5px solid var(--SLDS-Red-80);
  color: var(--sl-text-danger);
}

.ds-btn-warning:hover,
.ds-btn-warning.is-hover {
  background: var(--sl-feedback-danger-bg);
  border-color: var(--SLDS-Red-80);
  color: var(--sl-text-danger);
}

.ds-btn-warning:focus-visible,
.ds-btn-warning.is-focus {
  background: var(--sl-feedback-danger-bg);
  border-color: var(--SLDS-Red-80);
  color: var(--SLDS-Red-120);
}

.ds-btn-warning:active,
.ds-btn-warning.is-active {
  background: var(--SLDS-Red-50);
  border-color: var(--SLDS-Red-80);
  border-radius: 8px;
  color: var(--SLDS-Red-120);
  box-shadow: var(--ds-btn-elevation);
}

/* Link. Default is text only. Hover, focus, and active gain a box.
   The border is always there, transparent at rest, so the button does not shift. */
.ds-btn-link {
  background: transparent;
  border: 1.5px solid transparent;
  box-shadow: none;
  color: var(--sl-text-link);
  text-decoration-line: underline;
  text-decoration-thickness: 7%;
  text-decoration-skip-ink: auto;
  text-underline-offset: 15%;
}

.ds-btn-link:hover,
.ds-btn-link.is-hover {
  background: var(--sl-surface-accent);
  border-color: var(--SLDS-Blue-Grey-90);
  border-radius: 8px;
  color: var(--sl-text-link);
  box-shadow: none;
}

.ds-btn-link:focus-visible,
.ds-btn-link.is-focus {
  background: var(--sl-surface-accent);
  border-color: var(--SLDS-Blue-Grey-90);
  border-radius: 16px;
  color: var(--SLDS-Blue-110);
  box-shadow: var(--ds-btn-focus-ring);
}

.ds-btn-link:active,
.ds-btn-link.is-active {
  background: var(--sl-surface-accent-strong);
  border-color: var(--SLDS-Blue-Grey-90);
  border-radius: 8px;
  color: var(--sl-text-link);
  box-shadow: none;
}

/* Link clear. Red text with an underline in every state. */
.ds-btn-link-clear {
  background: transparent;
  border: 1.5px solid transparent;
  box-shadow: none;
  color: var(--sl-text-danger);
  text-decoration-line: underline;
  text-decoration-thickness: 7%;
  text-decoration-skip-ink: auto;
  text-underline-offset: 15%;
}

.ds-btn-link-clear:hover,
.ds-btn-link-clear.is-hover {
  background: var(--sl-feedback-danger-bg);
  border-color: var(--SLDS-Red-80);
  border-radius: 8px;
  color: var(--sl-text-danger);
  box-shadow: none;
}

.ds-btn-link-clear:focus-visible,
.ds-btn-link-clear.is-focus {
  background: var(--sl-feedback-danger-bg);
  border-color: var(--SLDS-Red-80);
  border-radius: 16px;
  color: var(--SLDS-Red-120);
  box-shadow: var(--ds-btn-focus-ring);
}

.ds-btn-link-clear:active,
.ds-btn-link-clear.is-active {
  background: var(--SLDS-Red-50);
  border-color: var(--SLDS-Red-80);
  border-radius: 8px;
  color: var(--SLDS-Red-120);
  box-shadow: none;
}

.ds-btn-edit {
  --ds-icon-btn-pad: 10px;
  --ds-icon-btn-size: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: fit-content;
  margin: 0;
  padding: var(--ds-icon-btn-pad);
  border: none;
  border-radius: 4px;
  background: var(--SLDS-Grey-110);
  box-shadow: inset 0 0 0 2px transparent;
  color: var(--SLDS-Blue-30);
  line-height: 1;
  cursor: pointer;
}

.ds-btn-edit .fa-sharp-duotone {
  font-size: var(--ds-icon-btn-size);
  --fa-secondary-opacity: 1;
}

.ds-btn-edit:hover,
.ds-btn-edit.is-hover,
.ds-btn-edit:focus-visible,
.ds-btn-edit.is-focus {
  color: var(--SLDS-Blue-50);
}

.ds-btn-edit:focus {
  outline: none;
}

.ds-btn-edit:focus-visible,
.ds-btn-edit.is-focus {
  border-radius: 20px;
  box-shadow: var(--ds-btn-focus-ring);
}

.ds-btn-edit:active,
.ds-btn-edit.is-active {
  border-radius: 4px;
  background: var(--SLDS-Blue-150);
  box-shadow: inset 0 0 0 2px var(--SLDS-Neon-Blue-100);
  color: var(--SLDS-Neon-Blue-100);
}

.ds-btn-header {
  --ds-header-size: 40px;
  --ds-header-label: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--ds-header-size);
  height: var(--ds-header-size);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--ds-header-size);
  background: var(--sl-palette-green-20);
  box-shadow: inset 0 0 0 1px var(--sl-palette-green-110);
  color: var(--sl-palette-green-120);
  font-family: var(--sl-font-family);
  font-size: var(--ds-header-label);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}

.ds-btn-header:hover,
.ds-btn-header.is-hover {
  background: var(--sl-palette-green-60);
  box-shadow: none;
}

.ds-btn-header:focus {
  outline: none;
}

.ds-btn-header:focus-visible,
.ds-btn-header.is-focus {
  border-radius: 8px;
  background: var(--sl-palette-green-60);
  box-shadow: var(--ds-btn-focus-ring);
}

.ds-btn-header:active,
.ds-btn-header.is-active {
  border-radius: var(--ds-header-size);
  background: var(--SLDS-Blue-150);
  box-shadow: inset 0 0 0 2px var(--SLDS-Neon-Green-100);
  color: var(--SLDS-Neon-Green-100);
}

.ds-btn:disabled,
.ds-btn.ds-btn-disabled,
.ds-btn:disabled:hover,
.ds-btn.ds-btn-disabled:hover,
.ds-btn:disabled:focus-visible,
.ds-btn.ds-btn-disabled:focus-visible,
.ds-btn:disabled:active,
.ds-btn.ds-btn-disabled:active {
  background: var(--sl-surface-sunken);
  border: 1.5px dashed var(--SLDS-Grey-70);
  border-radius: 8px;
  color: var(--sl-text-muted);
  box-shadow: none;
  text-decoration: none;
  cursor: not-allowed;
}

.ds-btn.ds-btn-readonly,
.ds-btn.ds-btn-readonly:hover,
.ds-btn.ds-btn-readonly:focus-visible,
.ds-btn.ds-btn-readonly:active {
  background: var(--sl-surface-sunken);
  border: 1.5px solid var(--SLDS-Grey-60);
  border-radius: 8px;
  color: var(--sl-text-muted);
  box-shadow: none;
  text-decoration: none;
  cursor: default;
}

/* ----------- Text field ---------- */

.ds-field-block {
  --ds-field-max: 250px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ds-field-max);
}

.ds-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
}

.ds-field-req {
  color: var(--sl-text-danger);
}

.ds-field-optional {
  font-weight: 400;
}

.ds-field-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-field-info {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--sl-text-link);
  font-size: var(--sl-font-size-sm);
  line-height: 1;
  cursor: pointer;
}

.ds-field-info:focus {
  outline: none;
}

.ds-field-info:hover,
.ds-field-info.is-hover,
.ds-field-info:focus-visible,
.ds-field-info.is-focus {
  background: var(--sl-action-secondary-bg);
  color: var(--SLDS-Blue-110);
}

.ds-field-info:focus-visible,
.ds-field-info.is-focus {
  box-shadow: var(--ds-btn-focus-ring);
}

.ds-field-info:active,
.ds-field-info.is-active {
  background: var(--sl-surface-accent);
  color: var(--SLDS-Blue-110);
  box-shadow: none;
}

.ds-field-control,
input.ds-field,
textarea.ds-field,
select.ds-field {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 1px solid var(--SLDS-Grey-70);
  border-radius: 2px;
  background: var(--sl-surface-raised);
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-field-control {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
}

input.ds-field,
select.ds-field {
  display: block;
  height: 40px;
  padding: 0 12px;
  -webkit-text-fill-color: var(--sl-text-primary);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.ds-field-control .ds-field,
.ds-field-control .ds-field:focus,
.ds-field-control .ds-field:focus-visible,
.ds-field-control .ds-field.is-keyfocus:focus-visible,
.ds-field-control .ds-field:disabled,
.ds-field-control .ds-field:read-only {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  opacity: 1;
  cursor: inherit;
}

.ds-field-control:focus-within:not(:has(input:read-only, textarea:read-only)):not(:has(.ds-field-calendar:focus)):not(.ds-field-error),
.ds-field-control.is-active:not(.ds-field-error):not(.is-readonly):not(.is-disabled),
input.ds-field.is-active,
select.ds-field.is-active {
  outline: none;
  border-color: var(--SLDS-Blue-100);
  box-shadow: inset 0 0 0 1px var(--SLDS-Blue-100);
}

.ds-field-control.is-keyfocus:focus-within:not(:has(input:read-only, textarea:read-only)):not(:has(.ds-field-calendar:focus)):not(.ds-field-error),
input.ds-field.is-keyfocus:focus-visible,
select.ds-field.is-keyfocus:focus-visible,
textarea.ds-field.is-keyfocus:focus-visible,
.ds-field-control.is-focus:not(.ds-field-error):not(.is-readonly):not(.is-disabled) {
  outline: none;
  border-color: var(--SLDS-Blue-100);
  box-shadow: inset 0 0 0 1px var(--SLDS-Blue-100), 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-field-control:has(input:read-only, textarea:read-only),
.ds-field-control.is-readonly,
input.ds-field:read-only,
textarea.ds-field:read-only {
  background: var(--sl-surface-disabled);
}

.ds-field-control:focus-within:has(input:read-only, textarea:read-only):not(:has(:disabled)) {
  border-color: var(--SLDS-Grey-70);
  box-shadow: none;
}

.ds-field-control.is-keyfocus:focus-within:has(input:read-only, textarea:read-only):not(:has(:disabled)),
.ds-field-control.is-readonly.is-focus {
  border-color: var(--SLDS-Grey-70);
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-field-control:has(:disabled),
.ds-field-control.is-disabled,
input.ds-field:disabled,
textarea.ds-field:disabled,
select.ds-field:disabled {
  border-style: dashed;
  background: var(--sl-surface-disabled);
  color: var(--sl-text-primary);
  -webkit-text-fill-color: var(--sl-text-primary);
  opacity: 1;
  cursor: not-allowed;
}

.ds-field-block:has(.ds-field-control.is-disabled.is-active) .ds-field-label,
.ds-field-block:has(.ds-field-control.is-disabled.is-focus) .ds-field-label,
.ds-field-control.is-disabled.is-active,
.ds-field-control.is-disabled.is-focus,
.ds-field-control:has(:disabled):active,
.ds-field-control:has(:disabled):focus-within {
  border-color: var(--SLDS-Grey-80);
  color: var(--sl-text-secondary);
  box-shadow: none;
}

.ds-field-error {
  border-color: var(--SLDS-Red-110);
}

.ds-field-error.is-active,
.ds-field-error:focus-within {
  border-color: var(--SLDS-Red-110);
  box-shadow: inset 0 0 0 1px var(--SLDS-Red-110);
}

.ds-field-error.is-keyfocus:focus-within,
.ds-field-error.is-focus {
  border-color: var(--SLDS-Red-110);
  box-shadow: inset 0 0 0 1px var(--SLDS-Red-110), 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-field-icon {
  flex: 0 0 auto;
  color: var(--sl-text-primary);
  font-size: var(--sl-font-size-sm);
  line-height: 20px;
}

.ds-field-icon-blue {
  color: var(--sl-text-link);
}

.ds-field-calendar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--sl-text-link);
  font-size: var(--sl-font-size-sm);
  line-height: 1;
  cursor: pointer;
}

.ds-field-calendar:focus {
  outline: none;
}

.ds-field-calendar:hover,
.ds-field-calendar.is-hover,
.ds-field-calendar:focus-visible,
.ds-field-calendar.is-focus {
  background: var(--sl-surface-accent);
  color: var(--sl-text-link);
}

.ds-field-calendar:focus-visible,
.ds-field-calendar.is-focus {
  box-shadow: var(--ds-btn-focus-ring);
}

.ds-field-calendar:active,
.ds-field-calendar.is-active {
  background: var(--sl-surface-accent-strong);
  border-color: var(--SLDS-Blue-100);
  color: var(--SLDS-Blue-110);
  box-shadow: none;
}

.ds-field-icon-error {
  color: var(--sl-text-danger);
}

.ds-field-control:has(.ds-field-chevron) {
  position: relative;
}

.ds-field-chevron {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--sl-text-secondary);
  pointer-events: none;
  transform: translateY(-50%);
}

.ds-field-control:has(.ds-field-chevron) .ds-field {
  padding-right: 22px;
}

.ds-field-help {
  margin: 0;
  color: var(--sl-text-muted);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-xs);
  font-weight: 400;
  line-height: 18px;
}

.ds-field-block:has(.ds-field-area) {
  gap: 5px;
}

.ds-field-area {
  height: 85px;
  align-items: flex-start;
  padding: 10px;
  overflow: hidden;
}

.ds-field-area .ds-field,
.ds-field-area .ds-field:focus,
.ds-field-area .ds-field:focus-visible {
  height: 100%;
  min-height: 0;
  resize: none;
}

input.ds-field[type="number"] {
  -moz-appearance: number-input;
  appearance: auto;
  -webkit-appearance: auto;
}

input.ds-field[type="number"]:disabled {
  -moz-appearance: textfield;
  appearance: textfield;
  -webkit-appearance: none;
}

input.ds-field[type="number"]:disabled::-webkit-inner-spin-button,
input.ds-field[type="number"]:disabled::-webkit-outer-spin-button {
  display: none;
}

.ds-field:disabled:not(.ds-field-disabled) {
  background-color: var(--sl-surface-sunken);
  color: var(--sl-text-muted);
  -webkit-text-fill-color: var(--sl-text-muted);
  opacity: 1;
  cursor: not-allowed;
}

.ds-field-control .ds-field:disabled {
  background-color: transparent;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.ds-field.ds-field-disabled:disabled,
select.ds-field.ds-field-disabled:disabled,
textarea.ds-field.ds-field-disabled:disabled {
  border: 1px dashed var(--SLDS-Grey-70);
  background-color: var(--sl-surface-disabled);
  color: var(--sl-text-primary);
  -webkit-text-fill-color: var(--sl-text-primary);
  opacity: 1;
  cursor: not-allowed;
  box-sizing: border-box;
}

/* ----------- Checkbox ---------- */
.ds-check {
  --ds-check-size: 18px;
  --ds-check-gap: 10px;
  display: inline-flex;
  align-items: flex-start;
  gap: var(--ds-check-gap);
  max-width: 100%;
  margin: 0;
  cursor: pointer;
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-check-bold {
  font-weight: 600;
}

.ds-check-text {
  min-width: 0;
}

.ds-check-input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: var(--ds-check-size);
  height: var(--ds-check-size);
  flex: 0 0 var(--ds-check-size);
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid var(--SLDS-Grey-70);
  border-radius: 2px;
  background: var(--sl-surface-raised);
  color: var(--sl-text-link);
  font-family: "Font Awesome 6 Pro";
  font-size: var(--ds-check-size);
  font-weight: 900;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.ds-check-input:focus {
  outline: none;
}

.ds-check-input:focus-visible,
.ds-check-input.is-focus {
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-check-input:checked::after,
.ds-check-input:indeterminate::after,
.ds-check-input.is-partial::after {
  line-height: 1;
}

.ds-check-input:checked::after {
  content: "\f00c";
  font-size: 0.67em;
}

.ds-check-input:indeterminate::after,
.ds-check-input.is-partial::after {
  content: "\f068";
  font-size: 0.61em;
}

.ds-check:not(.ds-check-error):not(.ds-check-readonly):hover .ds-check-input:not(:disabled):not(:checked):not(:indeterminate):not(.is-partial),
.ds-check:not(.ds-check-error):not(.ds-check-readonly) .ds-check-input.is-hover:not(:checked):not(:indeterminate):not(.is-partial),
.ds-check:not(.ds-check-error):not(.ds-check-readonly) .ds-check-input:focus-visible:not(:checked):not(:indeterminate):not(.is-partial),
.ds-check:not(.ds-check-error):not(.ds-check-readonly) .ds-check-input.is-focus:not(:checked):not(:indeterminate):not(.is-partial) {
  background: var(--sl-action-secondary-bg);
}

.ds-check:not(.ds-check-error):not(.ds-check-readonly) .ds-check-input:checked:not(:disabled),
.ds-check:not(.ds-check-error):not(.ds-check-readonly) .ds-check-input:indeterminate:not(:disabled),
.ds-check:not(.ds-check-error):not(.ds-check-readonly) .ds-check-input.is-partial:not(:disabled) {
  background: var(--sl-surface-accent);
  border-color: var(--SLDS-Blue-100);
  color: var(--sl-text-link);
}

.ds-check:not(.ds-check-error):not(.ds-check-readonly):hover .ds-check-input:is(:checked, :indeterminate, .is-partial):not(:disabled),
.ds-check:not(.ds-check-error):not(.ds-check-readonly) .ds-check-input.is-hover:is(:checked, :indeterminate, .is-partial),
.ds-check:not(.ds-check-error):not(.ds-check-readonly) .ds-check-input:focus-visible:is(:checked, :indeterminate, .is-partial),
.ds-check:not(.ds-check-error):not(.ds-check-readonly) .ds-check-input.is-focus:is(:checked, :indeterminate, .is-partial) {
  background: var(--sl-surface-accent-strong);
  border-color: var(--SLDS-Blue-100);
  color: var(--sl-text-link);
}

.ds-check:not(.ds-check-error):not(.ds-check-readonly):active .ds-check-input:not(:disabled):not(:checked):not(:indeterminate):not(.is-partial),
.ds-check:not(.ds-check-error):not(.ds-check-readonly) .ds-check-input.is-active:not(:checked):not(:indeterminate):not(.is-partial) {
  background: var(--sl-surface-accent);
}

.ds-check:not(.ds-check-error):not(.ds-check-readonly):active .ds-check-input:is(:checked, :indeterminate, .is-partial):not(:disabled),
.ds-check:not(.ds-check-error):not(.ds-check-readonly) .ds-check-input.is-active:is(:checked, :indeterminate, .is-partial) {
  background: var(--SLDS-Blue-40);
  border-color: var(--SLDS-Blue-100);
  color: var(--sl-text-link);
}

.ds-check-error:not(.ds-check-readonly) .ds-check-input:not(:disabled) {
  border-color: var(--SLDS-Red-110);
}

.ds-check-error:not(.ds-check-readonly) .ds-check-input:not(:disabled):not(:checked):not(:indeterminate):not(.is-partial) {
  background: var(--sl-feedback-danger-bg);
}

.ds-check-error:not(.ds-check-readonly):hover .ds-check-input:not(:disabled):not(:checked):not(:indeterminate):not(.is-partial),
.ds-check-error:not(.ds-check-readonly) .ds-check-input.is-hover:not(:checked):not(:indeterminate):not(.is-partial),
.ds-check-error:not(.ds-check-readonly) .ds-check-input:focus-visible:not(:checked):not(:indeterminate):not(.is-partial),
.ds-check-error:not(.ds-check-readonly) .ds-check-input.is-focus:not(:checked):not(:indeterminate):not(.is-partial) {
  background: var(--sl-feedback-danger-bg);
  border-color: var(--SLDS-Red-110);
}

.ds-check-error:not(.ds-check-readonly):active .ds-check-input:not(:disabled):not(:checked):not(:indeterminate):not(.is-partial),
.ds-check-error:not(.ds-check-readonly) .ds-check-input.is-active:not(:checked):not(:indeterminate):not(.is-partial) {
  background: var(--SLDS-Red-30);
  border-color: var(--SLDS-Red-110);
}

.ds-check-error:not(.ds-check-readonly) .ds-check-input:is(:checked, :indeterminate, .is-partial):not(:disabled) {
  background: var(--sl-feedback-danger-bg);
  border-color: var(--SLDS-Red-110);
  color: var(--sl-text-danger);
}

.ds-check-error:not(.ds-check-readonly):hover .ds-check-input:is(:checked, :indeterminate, .is-partial):not(:disabled),
.ds-check-error:not(.ds-check-readonly) .ds-check-input.is-hover:is(:checked, :indeterminate, .is-partial),
.ds-check-error:not(.ds-check-readonly) .ds-check-input:focus-visible:is(:checked, :indeterminate, .is-partial),
.ds-check-error:not(.ds-check-readonly) .ds-check-input.is-focus:is(:checked, :indeterminate, .is-partial) {
  background: var(--SLDS-Red-30);
  border-color: var(--SLDS-Red-110);
  color: var(--sl-text-danger);
}

.ds-check-error:not(.ds-check-readonly):active .ds-check-input:is(:checked, :indeterminate, .is-partial):not(:disabled),
.ds-check-error:not(.ds-check-readonly) .ds-check-input.is-active:is(:checked, :indeterminate, .is-partial) {
  background: var(--SLDS-Red-50);
  border-color: var(--SLDS-Red-110);
  color: var(--sl-text-danger);
}

.ds-check-input:disabled {
  background: var(--sl-surface-sunken);
  border: 1px dashed var(--SLDS-Grey-80);
  border-radius: 2px;
  box-shadow: none;
  cursor: not-allowed;
}

.ds-check-input:disabled:is(:checked, :indeterminate, .is-partial) {
  background: var(--sl-surface-disabled);
  color: var(--sl-text-muted);
}

.ds-check:has(.ds-check-input:disabled) {
  cursor: not-allowed;
}

.ds-check-readonly,
.ds-check-readonly .ds-check-input {
  cursor: default;
}

.ds-check-readonly .ds-check-input,
.ds-check-input.is-readonly {
  background: var(--sl-surface-sunken);
  border: 1px solid var(--SLDS-Grey-80);
  border-radius: 2px;
  box-shadow: none;
  color: var(--sl-text-muted);
  cursor: default;
}

.ds-check-readonly .ds-check-input:is(:checked, :indeterminate, .is-partial),
.ds-check-input.is-readonly:is(:checked, :indeterminate, .is-partial) {
  background: var(--sl-surface-disabled);
  color: var(--sl-text-muted);
}

/* ----------- Radio ---------- */

.ds-radio {
  --ds-radio-size: 18px;
  --ds-radio-gap: 10px;
  display: inline-flex;
  align-items: flex-start;
  gap: var(--ds-radio-gap);
  max-width: 100%;
  margin: 0;
  cursor: pointer;
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-radio-bold {
  font-weight: 600;
}

.ds-radio-text {
  min-width: 0;
}

.ds-radio-input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: var(--ds-radio-size);
  height: var(--ds-radio-size);
  flex: 0 0 var(--ds-radio-size);
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid var(--SLDS-Grey-70);
  border-radius: 50%;
  background: var(--sl-surface-raised);
  color: var(--sl-text-link);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.ds-radio-input:focus {
  outline: none;
}

.ds-radio-input:focus-visible,
.ds-radio-input.is-focus {
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-radio-input:checked::after {
  content: "";
  width: calc(var(--ds-radio-size) * 10 / 18);
  height: calc(var(--ds-radio-size) * 10 / 18);
  border-radius: 50%;
  background: currentColor;
}

.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly):hover .ds-radio-input:not(:disabled):not(:checked),
.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly) .ds-radio-input.is-hover:not(:checked),
.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly) .ds-radio-input:focus-visible:not(:checked),
.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly) .ds-radio-input.is-focus:not(:checked) {
  background: var(--sl-action-secondary-bg);
}

.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly):active .ds-radio-input:not(:disabled):not(:checked),
.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly) .ds-radio-input.is-active:not(:checked) {
  background: var(--sl-surface-accent);
}

.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly) .ds-radio-input:checked:not(:disabled) {
  background: var(--sl-surface-accent);
  border-color: var(--SLDS-Blue-100);
  color: var(--sl-text-link);
}

.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly):hover .ds-radio-input:checked:not(:disabled),
.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly) .ds-radio-input.is-hover:checked,
.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly) .ds-radio-input:focus-visible:checked,
.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly) .ds-radio-input.is-focus:checked {
  background: var(--sl-surface-accent-strong);
  border-color: var(--SLDS-Blue-100);
  color: var(--sl-text-link);
}

.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly):active .ds-radio-input:checked:not(:disabled),
.ds-radio:not(.ds-radio-error):not(.ds-radio-readonly) .ds-radio-input.is-active:checked {
  background: var(--SLDS-Blue-40);
  border-color: var(--SLDS-Blue-100);
  color: var(--sl-text-link);
}

.ds-radio-error:not(.ds-radio-readonly) .ds-radio-input:not(:disabled) {
  border-color: var(--SLDS-Red-110);
}

.ds-radio-error:not(.ds-radio-readonly) .ds-radio-input:not(:disabled):not(:checked) {
  background: var(--sl-feedback-danger-bg);
}

.ds-radio-error:not(.ds-radio-readonly):hover .ds-radio-input:not(:disabled):not(:checked),
.ds-radio-error:not(.ds-radio-readonly) .ds-radio-input.is-hover:not(:checked),
.ds-radio-error:not(.ds-radio-readonly) .ds-radio-input:focus-visible:not(:checked),
.ds-radio-error:not(.ds-radio-readonly) .ds-radio-input.is-focus:not(:checked) {
  background: var(--sl-feedback-danger-bg);
  border-color: var(--SLDS-Red-110);
}

.ds-radio-error:not(.ds-radio-readonly):active .ds-radio-input:not(:disabled):not(:checked),
.ds-radio-error:not(.ds-radio-readonly) .ds-radio-input.is-active:not(:checked) {
  background: var(--SLDS-Red-30);
  border-color: var(--SLDS-Red-110);
}

.ds-radio-error:not(.ds-radio-readonly) .ds-radio-input:checked:not(:disabled) {
  background: var(--sl-feedback-danger-bg);
  border-color: var(--SLDS-Red-110);
  color: var(--sl-text-danger);
}

.ds-radio-error:not(.ds-radio-readonly):hover .ds-radio-input:checked:not(:disabled),
.ds-radio-error:not(.ds-radio-readonly) .ds-radio-input.is-hover:checked,
.ds-radio-error:not(.ds-radio-readonly) .ds-radio-input:focus-visible:checked,
.ds-radio-error:not(.ds-radio-readonly) .ds-radio-input.is-focus:checked {
  background: var(--SLDS-Red-30);
  border-color: var(--SLDS-Red-110);
  color: var(--sl-text-danger);
}

.ds-radio-error:not(.ds-radio-readonly):active .ds-radio-input:checked:not(:disabled),
.ds-radio-error:not(.ds-radio-readonly) .ds-radio-input.is-active:checked {
  background: var(--SLDS-Red-50);
  border-color: var(--SLDS-Red-110);
  color: var(--sl-text-danger);
}

.ds-radio-readonly,
.ds-radio-readonly .ds-radio-input {
  cursor: default;
}

.ds-radio-readonly .ds-radio-input,
.ds-radio-input.is-readonly {
  background: var(--sl-surface-sunken);
  border: 1px solid var(--SLDS-Grey-80);
  box-shadow: none;
  color: var(--sl-text-muted);
  cursor: default;
}

.ds-radio-readonly .ds-radio-input:checked,
.ds-radio-input.is-readonly:checked {
  background: var(--sl-surface-disabled);
  color: var(--sl-text-muted);
}

.ds-radio-input:disabled {
  background: var(--sl-surface-sunken);
  border: 1px dashed var(--SLDS-Grey-80);
  box-shadow: none;
  cursor: not-allowed;
}

.ds-radio-input:disabled:checked {
  background: var(--sl-surface-disabled);
  color: var(--sl-text-muted);
}

.ds-radio:has(.ds-radio-input:disabled) {
  cursor: not-allowed;
}

/* ----------- Vertical tabs ---------- */

.ds-vtab-area {
  --ds-vtab-max: 315px;
  --ds-vtab-pad-y: 20px;
  --ds-vtab-pad-x: 10px;
  --ds-vtab-gap: 5px;
  display: flex;
  flex-direction: column;
  gap: var(--ds-vtab-gap);
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ds-vtab-max);
  padding: var(--ds-vtab-pad-y) var(--ds-vtab-pad-x);
  background: var(--sl-surface-pressed);
}

.ds-vtab-list {
  display: flex;
  flex-direction: column;
  gap: var(--ds-vtab-gap);
}

.ds-vtab {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 5px 10px;
  border: none;
  border-radius: 0 4px 4px 0;
  background: var(--sl-action-secondary-bg);
  color: var(--sl-text-link);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-md);
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  cursor: pointer;
}

.ds-vtab:focus {
  outline: none;
}

.ds-vtab:hover:not([aria-selected="true"]),
.ds-vtab.is-hover:not([aria-selected="true"]) {
  background: var(--sl-surface-accent);
}

.ds-vtab:active:not([aria-selected="true"]),
.ds-vtab.is-active:not([aria-selected="true"]) {
  background: var(--sl-surface-accent-strong);
}

.ds-vtab:focus-visible:not([aria-selected="true"]),
.ds-vtab.is-focus:not([aria-selected="true"]) {
  background: var(--sl-surface-accent);
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-vtab[aria-selected="true"] {
  background: var(--sl-surface-raised);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--SLDS-Blue-100), 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.ds-vtab[aria-selected="true"]:hover,
.ds-vtab[aria-selected="true"].is-hover,
.ds-vtab[aria-selected="true"]:focus-visible,
.ds-vtab[aria-selected="true"].is-focus {
  background: var(--sl-surface-accent);
}

.ds-vtab[aria-selected="true"]:active,
.ds-vtab[aria-selected="true"].is-active {
  background: var(--sl-surface-accent-strong);
}

.ds-vtab[aria-selected="true"]:focus-visible,
.ds-vtab[aria-selected="true"].is-focus {
  box-shadow: inset 3px 0 0 var(--SLDS-Blue-100), 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100), 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.ds-vtab-panel {
  margin: 8px 0 0;
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

/* ----------- Horizontal tabs ---------- */

.ds-htab-area {
  --ds-htab-gap: 8px;
  width: 100%;
}

.ds-htab-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  width: max-content;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.ds-htab-list-l2 {
  gap: var(--ds-htab-gap);
  align-items: center;
}

.ds-htab {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: none;
  border-right: 1px solid var(--SLDS-Blue-50);
  border-radius: 0;
  background: var(--sl-action-secondary-bg);
  color: var(--sl-text-secondary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.ds-htab:focus {
  outline: none;
}

.ds-htab:hover:not([aria-selected="true"]),
.ds-htab.is-hover:not([aria-selected="true"]) {
  background: var(--sl-surface-accent);
}

.ds-htab:active:not([aria-selected="true"]),
.ds-htab.is-active:not([aria-selected="true"]) {
  background: var(--sl-surface-accent-strong);
}

.ds-htab:focus-visible:not([aria-selected="true"]),
.ds-htab.is-focus:not([aria-selected="true"]) {
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-htab[aria-selected="true"] {
  border-right: none;
  border-radius: 4px 4px 0 0;
  margin-bottom: -1px;
  background: var(--sl-action-secondary-bg);
  color: var(--sl-text-link);
  font-weight: 600;
  box-shadow: inset 0 1px 0 var(--SLDS-Grey-60), inset 1px 0 0 var(--SLDS-Grey-60), inset -1px 0 0 var(--SLDS-Grey-60), inset 0 -2px 0 var(--SLDS-Blue-100);
}

.ds-htab.is-on-white[aria-selected="true"] {
  background: var(--sl-surface-raised);
  color: var(--sl-text-secondary);
  font-weight: 400;
}

.ds-htab[aria-selected="true"]:focus-visible,
.ds-htab[aria-selected="true"].is-focus {
  box-shadow: inset 0 1px 0 var(--SLDS-Grey-60), inset 1px 0 0 var(--SLDS-Grey-60), inset -1px 0 0 var(--SLDS-Grey-60), inset 0 -2px 0 var(--SLDS-Blue-100), 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-htab-l2 {
  border: 1px solid var(--SLDS-Blue-50);
  border-radius: 4px;
  background: var(--sl-surface-accent-strong);
}

.ds-htab-l2:hover:not([aria-selected="true"]),
.ds-htab-l2.is-hover:not([aria-selected="true"]) {
  background: var(--SLDS-Blue-40);
}

.ds-htab-l2:active:not([aria-selected="true"]),
.ds-htab-l2.is-active:not([aria-selected="true"]) {
  background: var(--SLDS-Blue-45);
}

.ds-htab-l2[aria-selected="true"] {
  margin-bottom: 0;
  border: 1px solid var(--SLDS-Blue-50);
  border-radius: 4px;
  background: var(--sl-surface-raised);
  color: var(--sl-text-link);
  font-weight: 600;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.ds-htab-l2[aria-selected="true"]:focus-visible,
.ds-htab-l2[aria-selected="true"].is-focus {
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100), 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.ds-htab-panel {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--SLDS-Grey-60);
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-htab-area-l2 .ds-htab-panel {
  border-top: none;
  padding-top: 8px;
}

/* ----------- Tags ---------- */

.ds-tag {
  --ds-tag-gap: 10px;
  --ds-tag-pad-y: 5px;
  --ds-tag-pad-x: 10px;
  display: inline-flex;
  align-items: center;
  gap: var(--ds-tag-gap);
  box-sizing: border-box;
  max-width: 100%;
  min-height: 30px;
  margin: 0;
  padding: var(--ds-tag-pad-y) var(--ds-tag-pad-x);
  border-radius: 8px;
  background: var(--SLDS-Blue-Grey-90);
  color: var(--sl-text-on-accent);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-tag-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ds-tag-remove {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 12px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font-size: var(--sl-font-size-md);
  line-height: 20px;
  cursor: pointer;
}

.ds-tag-remove:focus {
  outline: none;
}

.ds-tag-remove:hover {
  opacity: 0.7;
}

.ds-tag-remove:focus-visible {
  border-radius: 2px;
  opacity: 1;
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-tag.ds-tag-dark { background: var(--SLDS-Blue-170); color: var(--SLDS-Blue-50); }
.ds-tag.ds-tag-light { background: var(--SLDS-Blue-50); color: var(--SLDS-Blue-170); }

.ds-tag-green { background: var(--SLDS-Green-100); color: var(--sl-text-on-accent); }
.ds-tag-green.ds-tag-dark { background: var(--SLDS-Green-150); color: var(--SLDS-Neon-Green-100); }
.ds-tag-green.ds-tag-light { background: var(--SLDS-Green-60); color: var(--SLDS-Green-150); }

.ds-tag-purple { background: var(--SLDS-Purple-100); color: var(--sl-text-on-accent); }
.ds-tag-purple.ds-tag-dark { background: var(--SLDS-Purple-120); color: var(--SLDS-Purple-50); }
.ds-tag-purple.ds-tag-light { background: var(--SLDS-Purple-50); color: var(--SLDS-Purple-120); }

.ds-tag-blue { background: var(--SLDS-Blue-Grey-90); color: var(--sl-text-on-accent); }
.ds-tag-blue.ds-tag-dark { background: var(--SLDS-Blue-170); color: var(--SLDS-Blue-50); }
.ds-tag-blue.ds-tag-light { background: var(--SLDS-Blue-50); color: var(--SLDS-Blue-170); }

.ds-tag-red { background: var(--SLDS-Red-100); color: var(--sl-text-on-accent); }
.ds-tag-red.ds-tag-dark { background: var(--SLDS-Red-120); color: var(--SLDS-Red-60); }
.ds-tag-red.ds-tag-light { background: var(--SLDS-Red-60); color: var(--sl-text-primary); }

.ds-tag-yellow { background: var(--SLDS-Yellow-110); color: var(--sl-text-on-accent); }
.ds-tag-yellow.ds-tag-dark { background: var(--SLDS-Yellow-120); color: var(--SLDS-Yellow-100); }
.ds-tag-yellow.ds-tag-light { background: var(--SLDS-Orange-50); color: var(--sl-text-secondary); }

.ds-tag-orange { background: var(--SLDS-Orange-110); color: var(--sl-text-on-accent); }
.ds-tag-orange.ds-tag-dark { background: var(--SLDS-Orange-120); color: var(--SLDS-Orange-100); }
.ds-tag-orange.ds-tag-light { background: var(--SLDS-Orange-50); color: var(--sl-text-secondary); }

.ds-tag-grey { background: var(--SLDS-Blue-140); color: var(--SLDS-Blue-Grey-40); }

.ds-tag-field {
  --ds-tag-field-gap: 10px;
  --ds-tag-field-pad-y: 10px;
  --ds-tag-field-pad-x: 8px;
  --ds-tag-field-max: 439px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--ds-tag-field-gap);
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ds-tag-field-max);
  margin: 0;
  padding: var(--ds-tag-field-pad-y) var(--ds-tag-field-pad-x);
  border: 1px solid var(--SLDS-Grey-70);
  border-radius: 2px;
  background: var(--sl-surface-raised);
}

.ds-tag-field:focus-within {
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-tag-input {
  flex: 1 1 120px;
  min-width: 80px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-tag-input:focus {
  outline: none;
}

/* ----------- Tooltip ---------- */

.ds-tip {
  --ds-tip-max: 200px;
  box-sizing: border-box;
  width: max-content;
  max-width: var(--ds-tip-max);
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--SLDS-Grey-110);
  color: var(--SLDS-Grey-10);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-xs);
  font-weight: 400;
  line-height: 16px;
  text-align: left;
}

.ds-tip-rich {
  --ds-tip-rich-max: 312px;
  --ds-tip-rich-pad: 12px;
  --ds-tip-title-gap: 10px;
  --ds-tip-action-gap: 15px;
  --ds-tip-btn-gap: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--ds-tip-action-gap);
  width: max-content;
  max-width: var(--ds-tip-rich-max);
  padding: var(--ds-tip-rich-pad);
  border-radius: 4px;
  background: var(--SLDS-Grey-100);
  color: var(--SLDS-Blue-Grey-10);
  font-size: var(--sl-font-size-sm);
  line-height: 20px;
  text-align: left;
}

.ds-tip-body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-tip-title-gap);
  min-width: 0;
  padding: 0;
}

.ds-tip-title {
  font-weight: 600;
}

.ds-tip-text {
  display: block;
  min-width: 0;
  margin: 0;
  font-weight: 400;
}

.ds-tip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-tip-btn-gap);
  padding: 0;
}

.ds-tip-action {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  height: 40px;
  margin: 0;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--SLDS-Neon-Blue-90);
  font-family: inherit;
  font-size: var(--sl-font-size-md);
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
}

.ds-tip-action:focus {
  outline: none;
}

.ds-tip-action:hover,
.ds-tip-action.is-hover,
.ds-tip-action:focus-visible,
.ds-tip-action.is-focus,
.ds-tip-action:active,
.ds-tip-action.is-active {
  background: var(--SLDS-Grey-80);
}

.ds-tip-action:focus-visible,
.ds-tip-action.is-focus {
  box-shadow: 0 0 0 3px var(--SLDS-Grey-100), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-tooltip {
  position: relative;
  display: inline-flex;
  max-width: 100%;
}

.ds-tooltip .ds-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  visibility: hidden;
  transform: translateX(-50%);
}

.ds-tooltip .ds-tip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.ds-tooltip-below .ds-tip {
  top: calc(100% + 8px);
  bottom: auto;
}

.ds-tooltip-below .ds-tip::before {
  top: auto;
  bottom: 100%;
}

.ds-tooltip:hover .ds-tip,
.ds-tooltip:focus-within .ds-tip,
.ds-tooltip .ds-tip.is-open {
  visibility: visible;
}

/* ----------- Error frame ---------- */

.ds-error-frame {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 15px 10px;
  border: 1px solid var(--SLDS-Red-80);
  border-radius: 8px;
  background: var(--sl-feedback-danger-bg);
  color: var(--sl-text-danger);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 600;
  line-height: 20px;
}

.ds-error-frame-icon {
  flex: 0 0 auto;
  width: 14px;
  margin: 0;
  color: inherit;
  font-size: var(--sl-font-size-sm);
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.ds-error-frame-copy {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.ds-error-frame-title,
.ds-error-frame-detail {
  margin: 0;
}

.ds-error-frame-detail {
  margin-top: 18px;
  font-weight: 400;
}

.ds-error-frame-action {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--SLDS-Red-80);
  border-radius: 8px;
  background: var(--sl-action-secondary-bg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  color: var(--sl-text-danger);
  cursor: pointer;
}

.ds-error-frame-action .fa-regular {
  color: inherit;
  font-size: var(--sl-font-size-md);
  font-weight: 400;
  line-height: 1;
}

.ds-error-frame-action:hover,
.ds-error-frame-action.is-hover {
  background: var(--sl-feedback-danger-bg);
}

.ds-error-frame-action:focus {
  outline: none;
}

.ds-error-frame-action:focus-visible,
.ds-error-frame-action.is-focus {
  border-radius: 16px;
  background: var(--sl-feedback-danger-bg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-error-frame-action:active,
.ds-error-frame-action.is-active {
  border-radius: 8px;
  background: var(--SLDS-Red-50);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

/* ----------- Toast ---------- */

.ds-toast {
  --ds-toast-max: 389px;
  --ds-toast-line: var(--SLDS-Blue-80);
  --ds-toast-fill: var(--SLDS-Blue-20);
  --ds-toast-mark: var(--SLDS-Blue-100);
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ds-toast-max);
  border: 1px solid var(--ds-toast-line);
  border-radius: 8px;
  background: var(--sl-surface-raised);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: var(--sl-font-family);
}

.ds-toast-error {
  --ds-toast-line: var(--SLDS-Red-80);
  --ds-toast-fill: var(--SLDS-Red-30);
  --ds-toast-mark: var(--SLDS-Red-110);
}

.ds-toast-success {
  --ds-toast-line: var(--SLDS-Green-90);
  --ds-toast-fill: var(--SLDS-Green-20);
  --ds-toast-mark: var(--SLDS-Green-110);
}

.ds-toast-warning {
  --ds-toast-line: var(--SLDS-Yellow-110);
  --ds-toast-fill: var(--SLDS-Yellow-20);
  --ds-toast-mark: var(--SLDS-Yellow-120);
}

.ds-toast-info {
  --ds-toast-line: var(--SLDS-Blue-80);
  --ds-toast-fill: var(--SLDS-Blue-20);
  --ds-toast-mark: var(--SLDS-Blue-100);
}

.ds-toast-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 52px;
  padding: 14px 15px;
  background: var(--ds-toast-fill);
}

.ds-toast-bar:not(:last-child) {
  border-bottom: 1px solid var(--ds-toast-line);
}

.ds-toast-icon {
  flex: 0 0 auto;
  width: 22px;
  color: var(--ds-toast-mark);
  font-size: var(--sl-font-size-lg);
  line-height: 24px;
  text-align: center;
}

.ds-toast-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--sl-text-primary);
  font-size: var(--sl-font-size-md);
  font-weight: 600;
  line-height: 24px;
}

/* The close button is a 44px target (DESIGN-LANGUAGE §1.5). Negative margins
   let it overhang the bar's padding, so the bar keeps its 52px height and the
   mark stays where it was. style_licenses.css gives every button a shadow and
   an 8px radius, which the larger box would show, so both are reset here. */
.ds-toast-close {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--sl-icon-button-size);
  height: var(--sl-icon-button-size);
  margin: calc((24px - var(--sl-icon-button-size)) / 2);
  padding: 0;
  border: none;
  border-radius: var(--sl-radius-sm);
  background: transparent;
  box-shadow: none;
  color: var(--sl-text-link);
  font-size: var(--sl-font-size-md);
  line-height: 20px;
  cursor: pointer;
}

.ds-toast-close:hover {
  opacity: 0.7;
}

.ds-toast-close:focus {
  outline: none;
}

/* The kit's focus ring, drawn inside the 44px button: the toast clips what
   overhangs its edge, and only 4px is left between the button and that edge. */
.ds-toast-close:focus-visible {
  border-radius: var(--sl-radius-sm);
  opacity: 1;
  outline: var(--sl-focus-ring-width) solid var(--sl-focus-ring-color);
  outline-offset: calc(-1 * var(--sl-focus-ring-width));
}

.ds-toast-detail {
  margin: 0;
  padding: 15px;
  background: var(--sl-surface-raised);
  color: var(--sl-text-primary);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 1.5;
}

/* ----------- Toggle ---------- */

.ds-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 600;
  line-height: 20px;
}

.ds-toggle input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 52px;
  height: 32px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: inherit;
  outline: none;
}

.ds-toggle-slider {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 52px;
  height: 32px;
  border: 1px solid var(--SLDS-Grey-70);
  border-radius: 16px;
  background: var(--sl-surface-raised);
}

.ds-toggle-slider::before,
.ds-toggle-slider::after {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
}

.ds-toggle-slider::before {
  content: "";
  border-radius: 50%;
  background: var(--SLDS-Grey-70);
}

.ds-toggle-slider::after {
  content: "\f00c";
  color: var(--SLDS-Green-100);
  font-family: "Font Awesome 6 Pro";
  font-size: var(--sl-font-size-md);
  font-weight: 900;
  line-height: 24px;
  text-align: center;
  opacity: 0;
}

.ds-toggle input[type="checkbox"]:checked ~ .ds-toggle-slider {
  border-color: var(--SLDS-Blue-100);
  background: var(--SLDS-Blue-100);
}

.ds-toggle input[type="checkbox"]:checked ~ .ds-toggle-slider::before {
  background: var(--sl-surface-raised);
  transform: translateX(19px);
}

.ds-toggle input[type="checkbox"]:checked ~ .ds-toggle-slider::after {
  opacity: 1;
  transform: translateX(19px);
}

.ds-toggle input[type="checkbox"]:focus-visible ~ .ds-toggle-slider,
.ds-toggle input[type="checkbox"].is-focus ~ .ds-toggle-slider {
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-toggle input[type="checkbox"]:disabled ~ .ds-toggle-slider {
  border-style: dashed;
  border-color: var(--SLDS-Grey-70);
  background: var(--sl-surface-disabled);
  cursor: not-allowed;
}

.ds-toggle input[type="checkbox"]:disabled:checked ~ .ds-toggle-slider::before {
  background: var(--SLDS-Grey-70);
}

.ds-toggle input[type="checkbox"]:disabled:checked ~ .ds-toggle-slider::after {
  color: var(--SLDS-Grey-10);
}

.ds-toggle-readonly input[type="checkbox"]:disabled ~ .ds-toggle-slider {
  border-style: solid;
}

.ds-toggle:has(input[type="checkbox"]:disabled) {
  color: var(--sl-text-secondary);
  cursor: not-allowed;
}

/* ----------- Search bar ---------- */

.ds-search {
  --ds-search-max: 338px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ds-search-max);
}

.ds-search-label {
  margin: 0;
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 600;
  line-height: 20px;
}

.ds-search-control {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--SLDS-Grey-70);
  border-radius: 2px;
  background: var(--sl-surface-raised);
}

.ds-search-control:hover,
.ds-search-control.is-hover {
  border-color: var(--SLDS-Blue-100);
  box-shadow: inset 0 0 0 1px var(--SLDS-Blue-100);
}

.ds-search-control:focus-within,
.ds-search:focus-within .ds-search-control,
.ds-search-control.is-focus {
  border-color: var(--SLDS-Blue-100);
  box-shadow: inset 0 0 0 1px var(--SLDS-Blue-100), 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-search-control.is-active,
.ds-search:focus-within .ds-search-control.is-active,
.ds-search:has(.ds-search-menu:not([hidden])) .ds-search-control {
  border-color: var(--SLDS-Blue-100);
  box-shadow: inset 0 0 0 1px var(--SLDS-Blue-100);
}

.ds-search-icon {
  flex: 0 0 auto;
  width: 20px;
  color: var(--sl-text-primary);
  font-size: var(--sl-font-size-sm);
  line-height: 20px;
  text-align: center;
}

.ds-search-input,
.ds-search-input:focus,
.ds-search-input:focus-visible {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 20px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-search-clear {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--sl-text-primary);
  font-size: var(--sl-font-size-sm);
  line-height: 20px;
  cursor: pointer;
}

.ds-search-clear[hidden] {
  display: none;
}

.ds-search-clear:hover {
  opacity: 0.7;
}

.ds-search-clear:focus {
  outline: none;
}

.ds-search-clear:focus-visible {
  border-radius: 2px;
  opacity: 1;
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-search-menu {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
  padding: 10px;
  border: 1px solid var(--SLDS-Grey-50);
  border-radius: 4px;
  background: var(--sl-surface-raised);
}

.ds-search-menu[hidden] {
  display: none;
}

.ds-search-menu.is-static {
  position: static;
  margin-top: 0;
}

.ds-search-option {
  display: block;
  height: 32px;
}

.ds-search-option[hidden] {
  display: none;
}

/* ----------- Card ---------- */

.ds-card {
  --ds-card-pad: 20px;
  --ds-card-gap: 20px;
  --ds-card-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
  --ds-card-focus: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--ds-card-gap);
  width: 100%;
  max-width: 407px;
  min-width: 0;
  padding: var(--ds-card-pad);
  border: 1px solid var(--SLDS-Blue-Grey-70);
  border-radius: 6px;
  background: var(--sl-surface-page);
  box-shadow: var(--ds-card-shadow);
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
}

.ds-card:hover,
.ds-card.is-hover,
.ds-card:focus-visible,
.ds-card.is-focus,
.ds-card:active,
.ds-card.is-active {
  box-shadow: inset 0 0 0 1px var(--SLDS-Blue-Grey-70), var(--ds-card-shadow);
}

.ds-card:hover,
.ds-card.is-hover,
.ds-card:focus-visible,
.ds-card.is-focus {
  background: var(--sl-surface-sunken);
}

.ds-card:focus {
  outline: none;
}

.ds-card:focus-visible,
.ds-card.is-focus {
  box-shadow: inset 0 0 0 1px var(--SLDS-Blue-Grey-70), var(--ds-card-focus);
}

.ds-card:active,
.ds-card.is-active {
  background: var(--sl-surface-pressed);
}

.ds-card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 32px;
}

.ds-card-panel {
  --ds-card-panel-bg: var(--SLDS-White);
  box-sizing: border-box;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--SLDS-Blue-Grey-70);
  border-radius: 4px;
  background: var(--ds-card-panel-bg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.ds-card-panel-partial,
.ds-card-panel-in-use {
  --ds-card-panel-bg: var(--SLDS-White);
  border-color: var(--SLDS-Blue-Grey-70);
}

.ds-card-panel-title {
  margin: 0 0 8px;
  font-size: var(--sl-font-size-lg);
  font-weight: 600;
  line-height: 24px;
}

.ds-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--SLDS-Grey-60);
  font-size: var(--sl-font-size-sm);
  line-height: 20px;
}

.ds-card-row:last-child {
  border-bottom: none;
}

.ds-card-row strong {
  font-weight: 600;
}

/* ----------- Pagination ---------- */

.ds-pagination {
  --ds-page-gap: 29px;
  --ds-page-btn-size: 30px;
  --ds-page-btn-gap: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px var(--ds-page-gap);
  width: 100%;
  min-width: 0;
  color: var(--sl-text-secondary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-pagination-summary {
  min-width: 0;
}

.ds-pagination-pages,
.ds-pagination-sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-page-btn-gap);
}

.ds-pagination-sizes {
  margin-left: auto;
}

.ds-page-btn {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ds-page-btn-size, 30px);
  height: var(--ds-page-btn-size, 30px);
  min-width: var(--ds-page-btn-size, 30px);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--sl-text-muted);
  font-family: inherit;
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

.ds-page-nav {
  color: var(--sl-text-link);
}

.ds-page-btn .fa-regular,
.ds-page-btn .fa-solid {
  font-size: var(--sl-font-size-sm);
  line-height: 1;
  color: inherit;
}

.ds-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ds-page-btn-size, 30px);
  height: var(--ds-page-btn-size, 30px);
  color: var(--sl-text-muted);
  text-align: center;
}

.ds-page-btn:hover:not(:disabled),
.ds-page-btn.is-hover:not(:disabled) {
  background: var(--sl-surface-accent);
}

.ds-page-btn:focus {
  outline: none;
}

.ds-page-btn:focus-visible,
.ds-page-btn.is-focus {
  background: var(--sl-surface-accent);
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-page-btn:active:not(:disabled),
.ds-page-btn.is-active:not(:disabled) {
  background: var(--sl-surface-accent-strong);
}

.ds-page-btn.is-selected,
.ds-page-btn[aria-current="page"],
.ds-page-btn.is-selected:hover,
.ds-page-btn[aria-current="page"]:hover,
.ds-page-btn.is-selected:focus-visible,
.ds-page-btn[aria-current="page"]:focus-visible,
.ds-page-btn.is-selected:active,
.ds-page-btn[aria-current="page"]:active {
  color: var(--sl-text-primary);
  font-weight: 600;
}

.ds-pagination-sizes .ds-page-btn,
.ds-pagination-sizes .ds-page-btn:hover,
.ds-pagination-sizes .ds-page-btn:focus-visible,
.ds-pagination-sizes .ds-page-btn:active {
  color: var(--sl-text-primary);
}
.ds-page-btn.is-selected::after,
.ds-page-btn[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--SLDS-Blue-100);
}

.ds-page-btn:disabled {
  background: transparent;
  box-shadow: none;
  color: var(--SLDS-Grey-60);
  cursor: not-allowed;
}

.ds-page-btn:disabled::after {
  content: none;
}

.ds-page-size {
  --ds-page-size-gap: 10px;
  --ds-page-size-width: 75px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--ds-page-size-gap);
  margin-left: auto;
  color: var(--sl-text-secondary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-page-size:has(.ds-page-menu:not([hidden])) {
  z-index: 3;
}

.ds-page-size-label {
  white-space: nowrap;
}

.ds-page-size-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: var(--ds-page-size-width);
  height: 30px;
  margin: 0;
  padding: 0 10px;
  gap: 10px;
  border: 1px solid var(--SLDS-Blue-100);
  border-radius: 4px;
  background: transparent;
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}

.ds-page-size-btn .fa-solid {
  color: var(--sl-text-link);
  font-size: var(--sl-font-size-xs);
  font-weight: 900;
  line-height: 1;
}

.ds-page-size-btn:focus {
  outline: none;
}

.ds-page-size-btn:hover,
.ds-page-size-btn.is-hover {
  background: var(--sl-surface-accent);
}

.ds-page-size-btn:active,
.ds-page-size-btn.is-active,
.ds-page-size-btn[aria-expanded="true"] {
  background: var(--sl-surface-accent-strong);
}

.ds-page-size-btn[aria-expanded="true"] .fa-solid {
  transform: rotate(180deg);
}

.ds-page-size-btn:focus-visible,
.ds-page-size-btn.is-focus {
  border-radius: 8px;
  background: var(--sl-surface-accent);
  box-shadow: 0 0 0 3px var(--SLDS-White), 0 0 0 5px var(--SLDS-Green-100);
}

.ds-page-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 4px);
  right: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 132px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--SLDS-Grey-50);
  border-radius: 4px;
  background: var(--sl-surface-raised);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-page-menu[hidden] {
  display: none;
}

.ds-page-menu.is-static {
  position: static;
}

.ds-page-option {
  display: block;
  height: 32px;
}

/* ----------- Menus ---------- */
/* One row for a context menu, search results, and results per page. */
/* --ds-row-hover and --ds-row-press are the two fills. A red row only replaces those. */
/* is-hover, is-focus, and is-active freeze a state for the preview page. */

.ds-menu {
  --ds-menu-max: 320px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--ds-menu-max);
  margin: 0;
  padding: 0;
  border: 1px solid var(--SLDS-Grey-50);
  border-radius: 4px;
  background: var(--sl-surface-raised);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ds-menu[hidden] {
  display: none;
}

.ds-search-option,
.ds-page-option,
.ds-menu-item {
  --ds-row-hover: var(--SLDS-Blue-10);
  --ds-row-press: var(--SLDS-Blue-20);
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 5px 16px;
  border: none;
  border-radius: 0;
  background: var(--sl-surface-raised);
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.ds-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  text-decoration: none;
}

.ds-menu-label {
  flex: 1 1 auto;
  min-width: 0;
}

.ds-menu-icon {
  flex: 0 0 auto;
  width: 14px;
  font-size: var(--sl-font-size-sm);
  line-height: 14px;
  text-align: center;
}

.ds-menu-blue {
  color: var(--sl-text-link);
}

.ds-menu-delete {
  color: var(--sl-text-danger);
  font-weight: 600;
}

.ds-menu-danger {
  --ds-row-hover: var(--SLDS-Red-10);
  --ds-row-press: var(--SLDS-Red-20);
  color: var(--sl-text-danger);
}

.ds-menu-danger .ds-menu-icon {
  color: var(--SLDS-Red-120);
}

.ds-menu-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  color: var(--sl-text-link);
  font-size: var(--sl-font-size-sm);
  line-height: 14px;
}

.ds-menu-sub .fa-chevron-up {
  display: none;
}

.ds-menu-sub[aria-expanded="true"] .fa-chevron-down {
  display: none;
}

.ds-menu-sub[aria-expanded="true"] .fa-chevron-up {
  display: inline;
}

.ds-menu-item.ds-menu-sub {
  position: relative;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: var(--sl-font-size-md);
  font-weight: 600;
  line-height: 24px;
}

.ds-menu-item.ds-menu-sub::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 10px;
  bottom: 0;
  height: 1px;
  background: var(--SLDS-Grey-50);
}

.ds-menu-item.ds-menu-sub:focus-visible .ds-menu-chevron,
.ds-menu-item.ds-menu-sub.is-focus .ds-menu-chevron {
  box-shadow: var(--ds-btn-focus-ring);
}

.ds-menu-item.ds-menu-check .ds-check-input {
  margin: 0;
}

.ds-menu-item.ds-menu-check.ds-check:hover .ds-check-input:not(:disabled):not(:checked):not(:indeterminate):not(.is-partial),
.ds-menu-item.ds-menu-check.ds-check.is-hover .ds-check-input:not(:disabled):not(:checked):not(:indeterminate):not(.is-partial) {
  background: var(--sl-surface-raised);
  border-color: var(--SLDS-Grey-70);
}

.ds-menu-item.ds-menu-check:focus-within,
.ds-menu-item.ds-menu-check.is-focus,
.ds-menu-item.ds-menu-toggle:focus-within,
.ds-menu-item.ds-menu-toggle.is-focus {
  border-radius: 6px;
  background: var(--ds-row-hover);
  box-shadow: none;
  font-weight: 600;
}

.ds-toggle.ds-menu-toggle {
  gap: 8px;
  padding: 6px 16px;
  font-weight: 400;
}

.ds-toggle.ds-menu-toggle input[type="checkbox"] {
  left: 16px;
  top: 6px;
}

.ds-menu-item.ds-menu-action {
  justify-content: center;
  padding-top: 6px;
  padding-bottom: 6px;
  cursor: default;
}

.ds-menu-action .ds-btn {
  width: 100%;
  max-width: 200px;
}

/* Open select: the active text field, with the menu under it. */
/* The chevron points down while closed and up while the list is open. */

.ds-select {
  position: relative;
}

.ds-select:has(.ds-field-control[aria-expanded="true"]) {
  z-index: 5;
}

button.ds-field-control {
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  cursor: pointer;
}

.ds-select .ds-field-control[aria-expanded="true"] {
  border-color: var(--SLDS-Blue-100);
  box-shadow: inset 0 0 0 1px var(--SLDS-Blue-100);
}

.ds-field-control[aria-expanded="true"] .ds-field-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.ds-select .ds-menu {
  position: absolute;
  z-index: 4;
  top: calc(100% + 2px);
  left: 0;
  width: 100%;
  max-width: none;
}

.ds-select.is-static .ds-menu {
  position: static;
  margin-top: 2px;
}

.ds-menu-item[aria-selected="true"] {
  background: var(--ds-row-hover);
  font-weight: 600;
}

.ds-search-option:is(:hover, .is-hover, :focus-visible, .is-focus, :active, .is-active),
.ds-page-option:is(:hover, .is-hover, :focus-visible, .is-focus, :active, .is-active),
.ds-menu-item:is(:hover, .is-hover, :focus-visible, .is-focus, :active, .is-active) {
  font-weight: 600;
}

.ds-search-option:is(:hover, .is-hover, :focus-visible, .is-focus),
.ds-page-option:is(:hover, .is-hover, :focus-visible, .is-focus),
.ds-menu-item:is(:hover, .is-hover, :focus-visible, .is-focus) {
  background: var(--ds-row-hover);
}

.ds-search-option:is(:hover, .is-hover, :active, .is-active),
.ds-page-option:is(:hover, .is-hover, :active, .is-active),
.ds-menu-item:is(:hover, .is-hover, :active, .is-active) {
  border-radius: 4px;
}

.ds-search-option:focus,
.ds-page-option:focus,
.ds-menu-item:focus {
  outline: none;
}

.ds-search-option:is(:focus-visible, .is-focus),
.ds-page-option:is(:focus-visible, .is-focus),
.ds-menu-item:is(:focus-visible, .is-focus) {
  border-radius: 6px;
  box-shadow: var(--ds-btn-focus-ring);
}

.ds-search-option:is(:active, .is-active),
.ds-page-option:is(:active, .is-active),
.ds-menu-item:is(:active, .is-active) {
  border-radius: 4px;
  background: var(--ds-row-press);
}

.ds-menu-item.ds-menu-sub:is(:hover, .is-hover, :focus-visible, .is-focus, :active, .is-active) {
  border-radius: 0;
  box-shadow: none;
}

.ds-menu-item.ds-menu-action:is(:hover, .is-hover, :focus-visible, .is-focus, :active, .is-active) {
  border-radius: 0;
  background: var(--sl-surface-raised);
  box-shadow: none;
  font-weight: 400;
}

/* ----------- Application menu ---------- */

.ds-app-menu {
  --ds-app-menu-pad: 15px;
  --ds-app-menu-bg: var(--SLDS-Blue-150);
  --ds-app-menu-border: 1px solid var(--SLDS-Neon-Blue-100);
  --ds-app-menu-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: calc(100vw - 20px);
  margin: 0;
  padding: var(--ds-app-menu-pad);
  border: var(--ds-app-menu-border);
  border-radius: 4px;
  background: var(--ds-app-menu-bg);
  box-shadow: var(--ds-app-menu-shadow);
  color: var(--SLDS-Blue-20);
}

.ds-app-menu-grid {
  --ds-app-tile-size: 100px;
  --ds-app-gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--ds-app-gap);
  width: max-content;
  max-width: calc(3 * var(--ds-app-tile-size) + 2 * var(--ds-app-gap));
}

.ds-app-menu-grid:has(> .ds-app-tile:nth-child(4):last-child) {
  max-width: calc(2 * var(--ds-app-tile-size) + var(--ds-app-gap));
}

.ds-app-tile {
  --ds-app-tile-bg: var(--SLDS-Blue-80);
  --ds-app-tile-hover: var(--SLDS-Neon-Blue-90);
  --ds-app-tile-press: var(--SLDS-Neon-Blue-80);
  --ds-app-tile-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.30), 0 2px 3px 0 rgba(0, 0, 0, 0.15);
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 var(--ds-app-tile-size, 100px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: var(--ds-app-tile-size, 100px);
  min-width: var(--ds-app-tile-size, 100px);
  max-width: var(--ds-app-tile-size, 100px);
  height: var(--ds-app-tile-size, 100px);
  margin: 0;
  padding: 10px;
  border: 2px solid var(--SLDS-Neon-Blue-100);
  border-radius: 4px;
  background: var(--ds-app-tile-bg);
  box-shadow: var(--ds-app-tile-shadow);
  color: var(--SLDS-Blue-20);
  font-family: var(--sl-font-family);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ds-app-tile:focus {
  outline: none;
}

.ds-app-tile:is(:hover, .is-hover),
#context-wrapper.ds-app-menu-grid > .ds-app-tile:is(:hover, .is-hover) {
  background: var(--ds-app-tile-hover);
  color: var(--sl-text-link);
  text-decoration: none;
}

.ds-app-tile:is(:focus-visible, .is-focus),
#context-wrapper.ds-app-menu-grid > .ds-app-tile:is(:focus-visible, .is-focus) {
  background: var(--ds-app-tile-hover);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15), var(--ds-btn-focus-ring);
  color: var(--sl-text-link);
}

.ds-app-tile:is(:active, .is-active),
#context-wrapper.ds-app-menu-grid > .ds-app-tile:is(:active, .is-active) {
  background: var(--ds-app-tile-press);
  box-shadow: var(--ds-app-tile-shadow);
  color: var(--sl-text-link);
}

.ds-app-tile-icon {
  font-size: 2.1875rem;
  line-height: 1;
  color: inherit;
}

.ds-app-tile-icon.fa-solid,
.ds-app-tile-icon.fa-regular {
  font-family: "Font Awesome 6 Pro";
}

.ds-app-tile-label {
  color: inherit;
  font-size: var(--sl-font-size-sm);
  font-weight: 600;
  font-style: normal;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.ds-app-tile-stack {
  font-size: 0.8125rem;
  line-height: 16px;
}

.ds-app-tile-quiet {
  font-weight: 400;
}

.ds-app-tile-strong {
  font-weight: 600;
}

.ds-app-tile-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 4px;
  border: 1px solid var(--SLDS-Orange-120);
  border-radius: 8px;
  background: var(--SLDS-Orange-110);
  color: var(--sl-text-on-accent);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-xs);
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
}

/* ----------- Account menu ---------- */

.ds-account-menu {
  --ds-account-menu-bg: var(--sl-palette-blue-150);
  --ds-account-menu-border: 1px solid var(--sl-palette-neon-green-100);
  --ds-account-menu-list-bg: var(--sl-palette-blue-140);
  --ds-account-menu-ink: var(--sl-palette-blue-20);
  --ds-account-menu-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 298px;
  margin: 0;
  padding: 10px;
  border: var(--ds-account-menu-border);
  border-radius: 4px;
  background: var(--ds-account-menu-bg);
  box-shadow: var(--ds-account-menu-shadow);
  color: var(--ds-account-menu-ink);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-account-menu-serial {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  margin: 0;
}

.ds-account-menu-serial-label {
  margin: 0;
  padding: 0;
  color: var(--ds-account-menu-ink, var(--sl-palette-ink));
  font-size: var(--sl-font-size-sm);
  font-weight: 600;
  line-height: 20px;
}

.ds-account-menu-copy,
#copy-serial-btn.ds-account-menu-copy {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--sl-palette-ink);
  border-radius: 8px;
  background: var(--sl-palette-white);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  color: var(--sl-palette-ink);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

.ds-account-menu-copy .fa-solid,
#copy-serial-btn.ds-account-menu-copy .fa-solid,
#copy-serial-btn.ds-account-menu-copy i {
  color: var(--SLDS-Neon-Green-100);
  font-family: "Font Awesome 6 Pro";
  font-size: var(--sl-font-size-sm);
  line-height: 1;
}

.ds-account-menu-value {
  margin: 0;
  padding: 0;
  color: var(--ds-account-menu-ink, var(--sl-palette-ink));
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-account-menu-copy:is(:hover, .is-hover),
#copy-serial-btn.ds-account-menu-copy:is(:hover, .is-hover) {
  border-color: var(--ds-account-menu-ink, var(--sl-palette-ink));
  background: var(--sl-palette-grey-20);
}

.ds-account-menu-copy:is(:active, .is-active),
#copy-serial-btn.ds-account-menu-copy:is(:active, .is-active) {
  border-color: var(--ds-account-menu-ink, var(--sl-palette-ink));
  background: var(--sl-palette-grey-30);
}

.ds-account-menu-copy:focus,
#copy-serial-btn.ds-account-menu-copy:focus {
  outline: none;
}

.ds-account-menu-copy:is(:focus-visible, .is-focus),
#copy-serial-btn.ds-account-menu-copy:is(:focus-visible, .is-focus) {
  border-radius: 8px;
  border-color: var(--ds-account-menu-ink, var(--sl-palette-ink));
  background: var(--sl-palette-grey-20);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 0 0 3px var(--sl-palette-white), 0 0 0 5px var(--sl-palette-ink);
}

.ds-account-menu-copied {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin: 0;
  font-size: var(--sl-font-size-xs);
  line-height: 16px;
  color: var(--SLDS-Blue-20);
}

.ds-account-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 4px;
  background: var(--ds-account-menu-list-bg);
}

.ds-account-menu-list li {
  width: 100%;
  margin: 0;
  padding: 0;
}

.ds-account-menu-list a,
.ds-account-menu-item {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 5px 16px;
  border-radius: 2px;
  background: transparent;
  color: var(--ds-account-menu-ink, var(--sl-palette-ink));
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  font-style: normal;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
}

.ds-account-menu-list a:visited,
.ds-account-menu-item:visited {
  color: var(--SLDS-Blue-20);
  text-decoration: none;
}

.ds-account-menu-list a:is(:hover, .is-hover, :active, .is-active),
.ds-account-menu-item:is(:hover, .is-hover, :active, .is-active) {
  background: var(--SLDS-Blue-120);
  color: var(--SLDS-Blue-20);
  text-decoration: none;
}

.ds-account-menu-list a:focus,
.ds-account-menu-item:focus {
  outline: none;
}

.ds-account-menu-list a:is(:focus-visible, .is-focus),
.ds-account-menu-item:is(:focus-visible, .is-focus) {
  background: var(--SLDS-Blue-120);
  box-shadow: var(--ds-btn-focus-ring);
  color: var(--SLDS-Blue-20);
}

.ds-account-menu-list hr {
  width: 100%;
  height: 1px;
  margin: 0;
  border: none;
  background: var(--SLDS-Neon-Green-100);
}

.ds-account-menu-note {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--SLDS-Grey-50);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-account-menu-note p {
  margin: 0;
  padding: 0;
}

.ds-account-menu-version {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

/* ----------- Application card ---------- */

.ds-app-card-grid {
  --ds-app-card-width: 223px;
  --ds-app-card-height: 212px;
  --ds-app-card-gap: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--ds-app-card-gap);
  width: max-content;
  max-width: calc(3 * var(--ds-app-card-width) + 2 * var(--ds-app-card-gap));
  margin-right: auto;
  margin-left: auto;
}

.ds-app-card-grid:has(> .ds-app-card:nth-child(4):last-child) {
  max-width: calc(2 * var(--ds-app-card-width) + var(--ds-app-card-gap));
}

.ds-app-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 var(--ds-app-card-width, 223px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: var(--ds-app-card-width, 223px);
  height: var(--ds-app-card-height, 212px);
  margin: 0;
  padding: 0 38px;
  border: 2px solid var(--SLDS-Blue-100);
  border-radius: 8px;
  background: var(--sl-action-secondary-bg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
  color: var(--sl-text-link);
  font-family: var(--sl-font-family);
  text-align: center;
  text-decoration: none;
  word-break: break-word;
  cursor: pointer;
}

.ds-app-card:hover,
.ds-app-card.is-hover,
.ds-app-card:visited {
  color: var(--sl-text-link);
  text-decoration: none;
}

.ds-app-card:hover,
.ds-app-card.is-hover {
  background: var(--sl-surface-accent);
}

.ds-app-card:focus {
  outline: none;
}

.ds-app-card:focus-visible,
.ds-app-card.is-focus {
  border-radius: 18px;
  background: var(--sl-surface-accent);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15), var(--ds-btn-focus-ring);
  color: var(--sl-text-link);
}

.ds-app-card:active,
.ds-app-card.is-active {
  border-color: var(--SLDS-Blue-110);
  border-radius: 8px;
  background: var(--sl-surface-accent-strong);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
  color: var(--SLDS-Blue-110);
}

.ds-app-card > i.ds-app-card-icon {
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: 0.1px;
  color: inherit;
}

.ds-app-card > .ds-app-card-icon.fa-solid,
.ds-app-card > .ds-app-card-icon.fa-regular {
  font-family: "Font Awesome 6 Pro";
}

.ds-app-card-label {
  color: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.ds-app-card-stack {
  font-size: var(--sl-font-size-xl);
  font-weight: 600;
  line-height: 28px;
}

.ds-app-card-quiet {
  font-weight: 400;
}

.ds-app-card-strong {
  font-weight: 600;
}

.ds-app-card-tag {
  position: absolute;
  top: 9px;
  left: 10px;
  padding: 5px 10px;
  border: 1px solid var(--SLDS-Orange-120);
  border-radius: 8px;
  background: var(--SLDS-Orange-50);
  color: var(--SLDS-Orange-120);
  font-size: var(--sl-font-size-sm);
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
}

/* ----------- Stepper ---------- */

.ds-stepper {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--sl-font-family);
}

.ds-stepper-numbers {
  gap: 20px;
}

.ds-stepper-connector {
  flex: 1 1 auto;
  min-width: 24px;
  height: 0;
  margin: 0;
  border: none;
  border-top: 1px solid var(--SLDS-Grey-60);
}

.ds-step {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 2px;
  border: none;
  background: transparent;
  color: var(--sl-text-secondary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-md);
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
}

.ds-step-marker {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--SLDS-Grey-70);
  border-radius: 6px;
  background: var(--sl-surface-sunken);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  color: inherit;
  font-size: var(--sl-font-size-md);
  font-weight: 600;
  line-height: 24px;
}

.ds-step-label {
  margin: 0;
  color: inherit;
  font-size: var(--sl-font-size-md);
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

.ds-step-labels-only {
  gap: 0;
  height: 34px;
  padding: 5px 8px;
}

.ds-step-labels-only .ds-step-marker {
  display: none;
}

.ds-step-numbers-only .ds-step-label {
  display: none;
}

.ds-step-current {
  color: var(--sl-text-link);
}

.ds-step-current .ds-step-marker {
  border-color: var(--SLDS-Blue-100);
  background: var(--sl-action-secondary-bg);
  color: var(--sl-text-link);
}

.ds-step-current .ds-step-label {
  text-decoration: underline;
}

.ds-step-complete,
.ds-step-completed {
  color: var(--sl-text-link);
}

.ds-step-complete .ds-step-marker,
.ds-step-completed .ds-step-marker {
  border-color: var(--SLDS-Blue-50);
  background: var(--sl-surface-accent);
  color: var(--sl-text-link);
}

.ds-step-todo {
  color: var(--sl-text-secondary);
}

.ds-step-todo .ds-step-marker {
  border-color: var(--SLDS-Grey-70);
  background: var(--sl-surface-sunken);
  color: var(--sl-text-secondary);
}

.ds-step-ordered {
  color: var(--sl-text-muted);
}

.ds-step-ordered .ds-step-marker {
  border-style: dashed;
  border-color: var(--SLDS-Grey-80);
  background: var(--sl-surface-disabled);
  box-shadow: none;
  color: var(--sl-text-muted);
}

.ds-step-labels-only.ds-step-ordered {
  border: 1px dashed var(--SLDS-Grey-80);
  border-radius: 6px;
  background: var(--sl-surface-disabled);
}

.ds-step-error {
  color: var(--sl-text-danger);
}

.ds-step-error .ds-step-marker {
  border: 2px solid var(--SLDS-Red-110);
  background: var(--sl-surface-raised);
  color: var(--sl-text-danger);
}

.ds-step:hover,
.ds-step.is-hover {
  color: var(--SLDS-Blue-110);
}

.ds-step-current:hover .ds-step-marker,
.ds-step-current.is-hover .ds-step-marker {
  border-color: var(--SLDS-Blue-110);
  background: var(--sl-surface-accent);
  color: var(--SLDS-Blue-110);
}

.ds-step-complete:hover .ds-step-marker,
.ds-step-complete.is-hover .ds-step-marker,
.ds-step-completed:hover .ds-step-marker,
.ds-step-completed.is-hover .ds-step-marker {
  background: var(--sl-surface-accent-strong);
  color: var(--SLDS-Blue-110);
}

.ds-step-todo:hover .ds-step-marker,
.ds-step-todo.is-hover .ds-step-marker {
  background: var(--sl-surface-sunken);
}

.ds-step-error:hover,
.ds-step-error.is-hover {
  color: var(--sl-text-danger);
}

.ds-step-error:hover .ds-step-marker,
.ds-step-error.is-hover .ds-step-marker {
  background: var(--sl-feedback-danger-bg);
}

.ds-step:focus {
  outline: none;
}

.ds-step:focus-visible .ds-step-marker,
.ds-step.is-focus .ds-step-marker {
  border-radius: 12px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15), var(--ds-btn-focus-ring);
}

.ds-step-labels-only:focus-visible,
.ds-step-labels-only.is-focus {
  border-radius: 12px;
  box-shadow: var(--ds-btn-focus-ring);
}

.ds-step:active .ds-step-marker,
.ds-step.is-active .ds-step-marker {
  background: var(--sl-surface-accent-strong);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
}

.ds-step-error:active .ds-step-marker,
.ds-step-error.is-active .ds-step-marker {
  border-color: var(--SLDS-Red-120);
  background: var(--SLDS-Red-30);
  color: var(--SLDS-Red-120);
}

/* ----------- Calendar ---------- */

.ds-calendar {
  --ds-calendar-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 376px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--SLDS-Blue-Grey-70);
  border-radius: 6px;
  background: var(--sl-surface-raised);
  box-shadow: var(--ds-calendar-shadow);
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
}

.ds-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
}

.ds-calendar-month {
  margin: 0;
  color: var(--SLDS-Blue-120);
  font-size: var(--sl-font-size-lg);
  font-weight: 600;
  line-height: 24px;
}

.ds-calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ds-calendar-nav-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--SLDS-Blue-50);
  border-radius: 6px;
  background: var(--sl-action-secondary-bg);
  color: var(--sl-text-link);
  font-size: var(--sl-font-size-sm);
  line-height: 1;
  cursor: pointer;
}

.ds-calendar-today {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 30px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid var(--SLDS-Blue-100);
  border-radius: 8px;
  background: transparent;
  color: var(--sl-text-link);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
}

.ds-calendar-nav-btn:focus,
.ds-calendar-today:focus {
  outline: none;
}

.ds-calendar-nav-btn:focus-visible,
.ds-calendar-nav-btn.is-focus,
.ds-calendar-today:focus-visible,
.ds-calendar-today.is-focus {
  box-shadow: var(--ds-btn-focus-ring);
}

.ds-calendar-weekdays,
.ds-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  width: 100%;
}

.ds-calendar-weekday {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin: 0;
  color: var(--sl-text-primary);
  font-size: var(--sl-font-size-sm);
  font-weight: 600;
  line-height: 14px;
  text-align: center;
}

.ds-calendar-rule {
  width: 100%;
  height: 1px;
  margin: 4px 0;
  border: none;
  background: var(--SLDS-Grey-60);
}

.ds-calendar-day {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

.ds-calendar-day-flank,
.ds-calendar-day-disabled {
  color: var(--SLDS-Grey-60);
}

.ds-calendar-day-disabled {
  background: var(--sl-surface-sunken);
  cursor: default;
}

.ds-calendar-day-start {
  border-color: var(--SLDS-Blue-100);
  font-weight: 600;
}

.ds-calendar-day-mid {
  background: var(--sl-surface-accent);
  font-weight: 600;
}

.ds-calendar-day-selected,
.ds-calendar-day-end {
  background: var(--SLDS-Blue-100);
  color: var(--sl-text-on-accent);
  font-weight: 600;
}

.ds-calendar-day:hover,
.ds-calendar-day.is-hover {
  background: var(--sl-action-secondary-bg);
}

.ds-calendar-day-selected:hover,
.ds-calendar-day-selected.is-hover,
.ds-calendar-day-end:hover,
.ds-calendar-day-end.is-hover {
  background: var(--SLDS-Blue-110);
  color: var(--sl-text-on-accent);
}

.ds-calendar-day:focus {
  outline: none;
}

.ds-calendar-day:focus-visible,
.ds-calendar-day.is-focus {
  box-shadow: var(--ds-btn-focus-ring);
}

.ds-calendar-day:active,
.ds-calendar-day.is-active {
  background: var(--sl-surface-accent);
}

.ds-calendar-day-selected:active,
.ds-calendar-day-selected.is-active,
.ds-calendar-day-end:active,
.ds-calendar-day-end.is-active {
  background: var(--SLDS-Blue-120);
  color: var(--sl-text-on-accent);
}

/* ----------- Table ---------- */

.ds-table-wrap {
  box-sizing: border-box;
  width: 100%;
  overflow-x: auto;
}

.ds-table {
  box-sizing: border-box;
  width: 100%;
  border-collapse: collapse;
  background: var(--sl-surface-raised);
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-table th,
.ds-table td,
.ds-table-cell {
  box-sizing: border-box;
  height: 40px;
  padding: 10px;
  border-bottom: 1px solid var(--SLDS-Grey-50);
  background: var(--sl-surface-raised);
  text-align: left;
  vertical-align: middle;
}

.ds-table th {
  font-weight: 600;
}

.ds-table-cell-check,
.ds-table-cell-radio,
.ds-table-cell-num,
.ds-table-cell-action {
  width: 40px;
  padding: 11px 10px;
  text-align: center;
}

.ds-table-cell-num {
  width: 36px;
  padding: 10px;
}

.ds-table-link {
  color: var(--sl-text-link);
  text-decoration: underline;
}

.ds-table-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ds-table-status-dot {
  width: 20px;
  height: 20px;
  border: 2px solid var(--SLDS-Grey-60);
  border-radius: 50%;
}

.ds-table-row-selected th,
.ds-table-row-selected td,
.ds-table-cell.is-selected {
  background: var(--sl-surface-sunken);
}

.ds-table-row:hover th,
.ds-table-row:hover td,
.ds-table-cell.is-hover {
  background: var(--sl-surface-sunken);
}

/* ----------- Table filters ---------- */

.ds-table-filter {
  --ds-filter-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 210px;
  margin: 0;
  padding: 10px;
  border-radius: 4px;
  background: var(--sl-surface-raised);
  box-shadow: var(--ds-filter-shadow);
  color: var(--sl-text-primary);
  font-family: var(--sl-font-family);
}

.ds-table-filter-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 5px 10px 10px;
  border-bottom: 1px solid var(--SLDS-Grey-60);
  font-size: var(--sl-font-size-sm);
  font-weight: 600;
  line-height: 20px;
}

.ds-table-filter-row {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 5px 5px 10px;
  font-size: var(--sl-font-size-sm);
  font-weight: 400;
  line-height: 20px;
}

.ds-table-filter-divider {
  width: 100%;
  height: 0;
  margin: 0;
  border: none;
  border-top: 1px solid var(--SLDS-Grey-60);
}

.ds-table-filter-apply {
  width: 100%;
}

/* ----------- Scrim ---------- */

.ds-scrim {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: color-mix(in srgb, var(--SLDS-Grey-80) 25%, transparent);
}

.ds-scrim-sample {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  border: 1px solid var(--SLDS-Grey-50);
  border-radius: 8px;
  background: var(--sl-action-secondary-bg);
}

.ds-scrim-sample .ds-scrim {
  position: absolute;
}

/* ----------- Scroll bar ---------- */

.ds-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--SLDS-Grey-60) transparent;
}

.ds-scroll::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.ds-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.ds-scroll::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: var(--SLDS-Grey-60);
}

.ds-scroll-bar {
  box-sizing: border-box;
  width: 4px;
  height: 109px;
  margin: 0;
  border-radius: 6px;
  background: var(--SLDS-Grey-60);
}
