/* Runetto Design System — primitive controls.
 * Presentation only. Product/business behavior remains outside this layer.
 */

.rds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}

.rds-button svg {
  width: 15px;
  height: 15px;
}

.rds-button--primary {
  background: var(--primary-600);
  color: var(--neutral-0);
}

.rds-button--primary:hover:not(:disabled) {
  background: var(--primary-700);
}

.rds-button--secondary {
  border: 1px solid var(--neutral-300);
  background: var(--neutral-0);
  color: var(--neutral-700);
}

.rds-button--secondary:hover:not(:disabled) {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.rds-button--ghost {
  background: none;
  color: var(--neutral-700);
}

.rds-button--ghost:hover:not(:disabled) {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.rds-button--danger {
  background: var(--danger-500);
  color: var(--neutral-0);
}

.rds-button--danger:hover:not(:disabled) {
  background: var(--danger-600);
}

.rds-button--danger-soft {
  border: 1px solid var(--danger-50);
  background: var(--neutral-0);
  color: var(--danger-600);
}

.rds-button--danger-soft:hover:not(:disabled) {
  background: var(--danger-50);
}

.rds-button--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.rds-button:focus-visible,
.rds-icon-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-button:disabled,
.rds-button.is-disabled {
  border-color: var(--neutral-200);
  background: var(--neutral-100);
  color: var(--neutral-400);
  cursor: not-allowed;
}

.rds-button--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.rds-button--primary.rds-button--loading:disabled {
  background: var(--primary-600);
}

.rds-button--secondary.rds-button--loading:disabled {
  border-color: var(--neutral-300);
  background: var(--neutral-0);
}

.rds-button--ghost.rds-button--loading:disabled {
  background: none;
}

.rds-button--danger.rds-button--loading:disabled {
  background: var(--danger-500);
}

.rds-button--danger-soft.rds-button--loading:disabled {
  border-color: var(--danger-50);
  background: var(--neutral-0);
}


.rds-button--loading::after {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--neutral-0);
  border-radius: 50%;
  content: "";
  animation: rds-button-spin 0.7s linear infinite;
}

.rds-button--secondary.rds-button--loading::after,
.rds-button--ghost.rds-button--loading::after,
.rds-button--danger-soft.rds-button--loading::after {
  border-color: var(--neutral-300);
  border-top-color: var(--neutral-700);
}

@keyframes rds-button-spin {
  to {
    transform: rotate(360deg);
  }
}

.rds-icon-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--neutral-600);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}

.rds-icon-button:hover:not(:disabled),
.rds-icon-button--active {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.rds-icon-button svg {
  width: 17px;
  height: 17px;
}

.rds-icon-button--sm {
  width: 30px;
  height: 30px;
}

.rds-icon-button--sm svg {
  width: 15px;
  height: 15px;
}

.rds-icon-button--boxed {
  border: 1px solid var(--neutral-300);
  background: var(--neutral-0);
}

.rds-icon-button:disabled {
  background: none;
  color: var(--neutral-400);
  cursor: not-allowed;
}

.rds-icon-button--boxed:disabled {
  border-color: var(--neutral-200);
  background: var(--neutral-100);
}

@media (prefers-reduced-motion: reduce) {
  .rds-button,
  .rds-icon-button {
    transition: none;
  }

  .rds-button--loading::after {
    animation-duration: 1.4s;
  }
}

/* ---------- Form fields ---------- */
.rds-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-family: var(--font-sans);
}

.rds-field__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--neutral-800);
}

.rds-field__label .rds-field__optional {
  font-weight: 400;
  color: var(--neutral-600);
}

.rds-field__label .rds-field__required {
  color: var(--danger-600);
}

.rds-field__box {
  position: relative;
  display: flex;
  align-items: center;
}

.rds-field__box > svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--neutral-500);
  pointer-events: none;
}

.rds-field__control {
  width: 100%;
  height: 40px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-full);
  background: var(--neutral-0);
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--neutral-900);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.rds-field__box > svg + .rds-field__control {
  padding-left: 38px;
}

.rds-field__control::placeholder {
  font-weight: 400;
  color: var(--neutral-500);
}

.rds-field__control:hover:not(:disabled) {
  border-color: var(--neutral-400);
}

.rds-field__control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100);
}

/* Optional trailing slot inside a field (e.g. show/hide password).
 * Only rendered when TextField receives `trailing`; fields without it are unchanged. */
.rds-field__trailing {
  position: absolute;
  right: 4px;
  display: flex;
  align-items: center;
}

.rds-field__box--trailing .rds-field__control {
  padding-right: 44px;
}

.rds-field__textarea {
  height: auto;
  min-height: 92px;
  padding: 11px 16px;
  border-radius: var(--radius-lg);
  line-height: 1.5;
  resize: vertical;
}

.rds-field__hint {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--neutral-600);
}

.rds-field--error .rds-field__control {
  border-color: var(--danger-500);
}

.rds-field--error .rds-field__control:focus {
  box-shadow: 0 0 0 4px var(--danger-50);
}

.rds-field--error .rds-field__hint {
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  color: var(--danger-700);
}

.rds-field--disabled .rds-field__label {
  color: var(--neutral-500);
}

.rds-field__control:disabled {
  border-color: var(--neutral-200);
  background: var(--neutral-100);
  color: var(--neutral-500);
  cursor: not-allowed;
}

/* ---------- Search ---------- */
.rds-search {
  position: relative;
  width: 280px;
  flex-shrink: 0;
  font-family: var(--font-sans);
}

.rds-search--full {
  width: 100%;
}

.rds-search > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--neutral-500);
  pointer-events: none;
}

.rds-search input {
  width: 100%;
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: var(--neutral-100);
  padding: 0 34px 0 38px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--neutral-900);
  outline: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.rds-search input::placeholder {
  font-weight: 400;
  color: var(--neutral-500);
}

.rds-search input::-webkit-search-cancel-button {
  appearance: none;
  -webkit-appearance: none;
}

.rds-search input:hover:not(:disabled) {
  background: var(--neutral-200);
}

.rds-search input:focus {
  border-color: var(--primary-500);
  background: var(--neutral-0);
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-search input:disabled {
  background: var(--neutral-100);
  color: var(--neutral-500);
  cursor: not-allowed;
}

.rds-search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--neutral-500);
  cursor: pointer;
}

.rds-search__clear:hover:not(:disabled) {
  background: var(--neutral-200);
  color: var(--neutral-900);
}

.rds-search__clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-search__clear:disabled {
  color: var(--neutral-400);
  cursor: not-allowed;
}

.rds-search__clear svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 700px) {
  .rds-search {
    width: 100%;
  }
}

/* ---------- Select / Combobox / MultiSelect ---------- */
.rds-dropdown {
  position: relative;
  min-width: 0;
  font-family: var(--font-sans);
}

.rds-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 40px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-full);
  background: var(--neutral-0);
  padding: 0 12px 0 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-900);
  text-align: left;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.rds-dropdown__trigger:hover:not(:disabled) {
  border-color: var(--neutral-400);
}

.rds-dropdown__trigger:focus-visible,
.rds-dropdown--open .rds-dropdown__trigger {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-dropdown__trigger:disabled {
  border-color: var(--neutral-200);
  background: var(--neutral-100);
  color: var(--neutral-400);
  cursor: not-allowed;
}

.rds-dropdown__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rds-dropdown__placeholder {
  font-weight: 400;
  color: var(--neutral-500);
}

.rds-dropdown__chevron {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--neutral-500);
  transition: transform 0.2s;
}

.rds-dropdown--open .rds-dropdown__chevron {
  transform: rotate(180deg);
}

.rds-dropdown__trigger:disabled .rds-dropdown__chevron {
  color: var(--neutral-400);
}

.rds-popover {
  position: fixed;
  z-index: 140;
  min-width: 220px;
  overflow-y: auto;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--neutral-0);
  padding: 6px;
  box-shadow: var(--shadow-dropdown-lg);
  font-family: var(--font-sans);
  animation: rds-popover-in 0.14s ease-out;
}


.rds-popover--combobox {
  z-index: 150;
}

@keyframes rds-popover-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.rds-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-full);
  background: none;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-800);
  text-align: left;
  cursor: pointer;
}

.rds-option:hover:not(:disabled),
.rds-option--active {
  background: var(--neutral-100);
}

.rds-option--selected {
  background: var(--primary-50);
  color: var(--neutral-900);
  font-weight: 600;
}

.rds-option--selected:hover:not(:disabled),
.rds-option--selected.rds-option--active {
  background: var(--primary-50);
}

.rds-option:disabled {
  background: none;
  color: var(--neutral-300);
  cursor: not-allowed;
}

.rds-option__content {
  min-width: 0;
  flex: 1;
}

.rds-option__label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rds-option__description {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  color: var(--neutral-500);
}

.rds-option__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--primary-600);
  visibility: hidden;
}

.rds-option--selected .rds-option__tick {
  visibility: visible;
}

.rds-option__tick svg {
  width: 15px;
  height: 15px;
}

.rds-popover__empty {
  padding: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--neutral-600);
}

.rds-popover__separator {
  height: 1px;
  margin: 4px 8px;
  background: var(--neutral-100);
}

.rds-popover__action {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-full);
  background: none;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--neutral-600);
  text-align: left;
  cursor: pointer;
}

.rds-popover__action:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.rds-popover__action svg {
  width: 14px;
  height: 14px;
}

.rds-multiselect__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--neutral-400);
  border-radius: 6px;
  background: var(--neutral-0);
  color: transparent;
}

.rds-option--selected .rds-multiselect__check {
  border-color: var(--primary-600);
  background: var(--primary-600);
  color: var(--neutral-0);
}

.rds-multiselect__check svg {
  width: 12px;
  height: 12px;
}

.rds-combobox {
  position: relative;
  min-width: 0;
  font-family: var(--font-sans);
}

.rds-combobox__input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-full);
  background: var(--neutral-0);
  padding: 0 38px 0 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--neutral-900);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.rds-combobox__input::placeholder {
  font-weight: 400;
  color: var(--neutral-500);
}

.rds-combobox__input:hover:not(:disabled) {
  border-color: var(--neutral-400);
}

.rds-combobox__input:focus,
.rds-combobox--open .rds-combobox__input {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-combobox__input:disabled {
  border-color: var(--neutral-200);
  background: var(--neutral-100);
  color: var(--neutral-400);
  cursor: not-allowed;
}

.rds-combobox__toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  color: var(--neutral-500);
  cursor: pointer;
}

.rds-combobox__toggle:disabled {
  color: var(--neutral-400);
  cursor: not-allowed;
}

.rds-combobox__toggle:focus-visible {
  outline: none;
}

.rds-combobox__toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.rds-combobox--open .rds-combobox__toggle svg {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .rds-dropdown__chevron,
  .rds-combobox__toggle svg,
  .rds-picker__chevron {
    transition: none;
  }

  .rds-popover {
    animation: none;
  }
}

/* ---------- Date / Time pickers ---------- */
.rds-picker {
  position: relative;
  min-width: 0;
  font-family: var(--font-sans);
}

.rds-picker__trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 40px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-full);
  background: var(--neutral-0);
  padding: 0 12px 0 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-900);
  text-align: left;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.rds-picker__trigger:hover:not(:disabled) {
  border-color: var(--neutral-400);
}

.rds-picker__trigger:focus-visible,
.rds-picker--open .rds-picker__trigger {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-picker__trigger:disabled {
  border-color: var(--neutral-200);
  background: var(--neutral-100);
  color: var(--neutral-400);
  cursor: not-allowed;
}

.rds-picker__lead {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--neutral-500);
}

.rds-picker__trigger:disabled .rds-picker__lead {
  color: var(--neutral-400);
}

.rds-picker__chevron {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--neutral-500);
  transition: transform 0.2s;
}

.rds-picker--open .rds-picker__chevron {
  transform: rotate(180deg);
}

.rds-picker__trigger:disabled .rds-picker__chevron {
  color: var(--neutral-400);
}

.rds-picker__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rds-picker__placeholder {
  font-weight: 400;
  color: var(--neutral-500);
}

/* Calendar */
.rds-calendar {
  position: fixed;
  z-index: 160;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--neutral-0);
  box-shadow: var(--shadow-dropdown-lg);
  font-family: var(--font-sans);
}

.rds-calendar__body {
  padding: 12px 16px 14px;
}

.rds-calendar__month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.rds-calendar__title {
  flex: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-900);
  text-align: center;
}

.rds-calendar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--neutral-500);
  cursor: pointer;
}

.rds-calendar__nav:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.rds-calendar__nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-calendar__nav svg {
  width: 15px;
  height: 15px;
}

.rds-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 6px 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-500);
  text-align: center;
}

.rds-calendar__weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.rds-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
}

.rds-calendar__day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: none;
  border-radius: 50%;
  background: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-700);
  cursor: pointer;
}

.rds-calendar__day:hover:not(:disabled) {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.rds-calendar__day--muted {
  color: var(--neutral-400);
}

.rds-calendar__day--today {
  box-shadow: inset 0 0 0 1px var(--primary-500);
}

.rds-calendar__day--selected,
.rds-calendar__day--selected:hover:not(:disabled) {
  background: var(--primary-600);
  color: var(--neutral-0);
  font-weight: 600;
}

.rds-calendar__day:disabled {
  background: none;
  color: var(--neutral-300);
  cursor: not-allowed;
}

.rds-calendar__day:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-calendar__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--neutral-100);
  background: var(--neutral-50);
}

.rds-calendar__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-full);
  background: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--neutral-600);
  cursor: pointer;
}

.rds-calendar__action:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.rds-calendar__action--brand {
  color: var(--primary-700);
}

/* Time picker */
.rds-time-picker {
  position: fixed;
  z-index: 160;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--neutral-0);
  box-shadow: var(--shadow-dropdown-lg);
  font-family: var(--font-sans);
}

.rds-time-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--neutral-100);
}

.rds-time-picker__heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rds-time-picker__heading svg {
  width: 16px;
  height: 16px;
  color: var(--primary-600);
}

.rds-time-picker__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-900);
}

.rds-time-picker__current {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--primary-800);
}

.rds-time-picker__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.rds-time-picker__label {
  margin: 0 0 6px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.rds-time-picker__list {
  height: 184px;
  overflow-y: auto;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-md);
  background: var(--neutral-50);
  padding: 4px;
  scrollbar-width: thin;
}

.rds-time-picker__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-full);
  background: none;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-700);
  cursor: pointer;
}

.rds-time-picker__option:hover {
  background: var(--neutral-0);
  color: var(--neutral-900);
}

.rds-time-picker__option--selected,
.rds-time-picker__option--selected:hover {
  background: var(--primary-50);
  color: var(--primary-800);
  font-weight: 600;
}

.rds-time-picker__option svg {
  width: 14px;
  height: 14px;
  color: var(--primary-600);
}

.rds-time-picker__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--neutral-100);
  background: var(--neutral-50);
}

.rds-time-picker__footer-spacer {
  min-width: 1px;
}

.rds-time-picker__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--primary-600);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-0);
  cursor: pointer;
}

.rds-time-picker__apply:hover {
  background: var(--primary-700);
}

.rds-time-picker__apply:focus-visible,
.rds-calendar__action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-100);
}

/* Date + time composition */
.rds-datetime {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
}

/* ---------- Checkbox / Radio / Switch / ChoiceCard ---------- */
.rds-choice-control {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-sans);
  cursor: pointer;
  user-select: none;
}

.rds-choice-control--disabled,
.rds-choice-card--disabled {
  cursor: not-allowed;
}

.rds-choice-control__input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  flex-shrink: 0;
  background: var(--neutral-0);
  border: 1.5px solid var(--neutral-400);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.18s ease;
}

.rds-choice-control__input:hover:not(:disabled) {
  border-color: var(--neutral-500);
}

.rds-choice-control__input:focus-visible {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-choice-control__input:disabled {
  border-color: var(--neutral-300);
  background: var(--neutral-100);
  cursor: not-allowed;
}

.rds-choice-control__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.rds-choice-control__label {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 18px;
  color: var(--neutral-900);
}

.rds-choice-control__description {
  font-size: 11px;
  line-height: 16px;
  color: var(--neutral-600);
}

.rds-choice-control--disabled .rds-choice-control__label,
.rds-choice-card--disabled .rds-choice-control__label {
  color: var(--neutral-500);
}

.rds-checkbox__input {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}

.rds-checkbox__input:checked,
.rds-checkbox__input:indeterminate {
  border-color: var(--primary-600);
  background-color: var(--primary-600);
}

.rds-checkbox__input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.rds-checkbox__input:indeterminate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}

.rds-checkbox__input:checked:disabled,
.rds-checkbox__input:indeterminate:disabled {
  border-color: var(--neutral-300);
  background-color: var(--neutral-300);
}

.rds-radio__input {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.rds-radio__input:checked {
  border: 5.5px solid var(--primary-600);
  background: var(--neutral-0);
}

.rds-radio__input:checked:disabled {
  border-color: var(--neutral-300);
}

.rds-switch__input {
  position: relative;
  width: 36px;
  height: 20px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--neutral-300);
}

.rds-switch__input::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--neutral-0);
  box-shadow: 0 1px 3px rgba(28, 31, 28, 0.25);
  content: "";
  transition: transform 0.18s ease;
}

.rds-switch__input:hover:not(:disabled) {
  border: none;
  background: var(--neutral-400);
}

.rds-switch__input:checked {
  background: var(--primary-600);
}

.rds-switch__input:checked::after {
  transform: translateX(16px);
}

.rds-switch__input:disabled {
  border: none;
  background: var(--neutral-200);
}

.rds-switch__input:checked:disabled {
  background: var(--primary-200);
}

.rds-choice-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  background: var(--neutral-0);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.rds-choice-card:hover:not(.rds-choice-card--disabled) {
  border-color: var(--neutral-400);
}

.rds-choice-card:has(.rds-radio__input:checked) {
  border-color: var(--primary-600);
  background: var(--primary-50);
  box-shadow: inset 0 0 0 1px var(--primary-600);
}

.rds-choice-card--disabled {
  border-color: var(--neutral-200);
  background: var(--neutral-50);
}

.rds-choice-control--panel {
  display: flex;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  background: var(--neutral-50);
}

.rds-choice-card-panel {
  padding: 14px 16px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  background: var(--neutral-0);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.rds-choice-card-panel:has(.rds-radio__input:checked) {
  border-color: var(--primary-600);
  background: var(--primary-50);
  box-shadow: inset 0 0 0 1px var(--primary-600);
}

@media (prefers-reduced-motion: reduce) {
  .rds-choice-control__input,
  .rds-switch__input::after,
  .rds-choice-card {
    transition: none;
  }
}

/* ---------- Stepper ---------- */
.rds-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 0 4px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-full);
  background: var(--neutral-0);
  font-family: var(--font-sans);
  flex-shrink: 0;
}

.rds-stepper__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--neutral-700);
  cursor: pointer;
}

.rds-stepper__button:hover:not(:disabled) {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.rds-stepper__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-stepper__button:disabled {
  background: none;
  color: var(--neutral-300);
  cursor: not-allowed;
}

.rds-stepper__button svg {
  width: 15px;
  height: 15px;
}

.rds-stepper__value {
  min-width: 28px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-900);
  text-align: center;
}

.rds-stepper--disabled {
  border-color: var(--neutral-200);
  background: var(--neutral-50);
}

.rds-stepper--disabled .rds-stepper__value {
  color: var(--neutral-500);
}

/* ---------- Status badge ---------- */
.rds-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: none;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.rds-status-badge--success {
  background: var(--success-bg);
  color: var(--success-text);
}

.rds-status-badge--warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.rds-status-badge--error {
  background: var(--danger-50);
  color: var(--danger-700);
}

.rds-status-badge--info {
  background: var(--info-bg);
  color: var(--info-text);
}

.rds-status-badge--neutral {
  background: var(--neutral-badge-bg);
  color: var(--neutral-badge-text);
}

.rds-status-badge--brand {
  background: var(--primary-600);
  color: var(--neutral-0);
}

.rds-status-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Count / Tag / Avatar ---------- */
.rds-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  background: rgba(28, 31, 28, 0.07);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-700);
}

.rds-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: var(--neutral-100);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--neutral-700);
  white-space: nowrap;
}

.rds-tag__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rds-tag button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: -4px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--neutral-500);
  cursor: pointer;
}

.rds-tag button:hover {
  background: var(--neutral-200);
  color: var(--neutral-900);
}

.rds-tag button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-100);
}

.rds-tag button svg {
  width: 11px;
  height: 11px;
}

.rds-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--primary-100);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary-700);
  object-fit: cover;
}

.rds-avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

.rds-avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

.rds-avatar--brand {
  background: var(--primary-600);
  color: var(--neutral-0);
}

.rds-avatar--neutral {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.rds-avatar--image {
  display: block;
}

/* ---------- Filter chip ---------- */
.rds-filter-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px dashed var(--neutral-400);
  border-radius: var(--radius-full);
  background: var(--neutral-0);
  font-family: var(--font-sans);
  color: var(--neutral-700);
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.rds-filter-chip:hover:not(.rds-filter-chip--disabled) {
  border-color: var(--neutral-500);
  color: var(--neutral-900);
}

.rds-filter-chip--set {
  border-style: solid;
  border-color: var(--primary-200);
  background: var(--primary-50);
  color: var(--primary-800);
}

.rds-filter-chip__main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px 0 14px;
  border: none;
  border-radius: var(--radius-full);
  background: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
}

.rds-filter-chip--set .rds-filter-chip__main {
  padding-right: 12px;
}

.rds-filter-chip__main > svg {
  width: 14px;
  height: 14px;
  color: var(--neutral-500);
}

.rds-filter-chip--set .rds-filter-chip__main > svg {
  color: var(--primary-700);
}

.rds-filter-chip__value {
  font-weight: 600;
}

.rds-filter-chip__separator {
  width: 1px;
  height: 14px;
  background: var(--primary-200);
}

.rds-filter-chip__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 5px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--primary-700);
  cursor: pointer;
}

.rds-filter-chip__clear:hover:not(:disabled) {
  background: var(--primary-100);
}

.rds-filter-chip__clear svg {
  width: 14px;
  height: 14px;
}

.rds-filter-chip__main:focus-visible,
.rds-filter-chip__clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-filter-chip--disabled {
  border-color: var(--neutral-200);
  background: var(--neutral-50);
  color: var(--neutral-400);
}

.rds-filter-chip--disabled .rds-filter-chip__main,
.rds-filter-chip--disabled .rds-filter-chip__clear {
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .rds-filter-chip {
    transition: none;
  }
}

/* ---------- Pagination ---------- */
.rds-pagination {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-sans);
}

.rds-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: none;
  border-radius: var(--radius-full);
  background: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-700);
  cursor: pointer;
}

.rds-pagination button:hover:not(:disabled) {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.rds-pagination button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-pagination button.rds-pagination__page--active {
  background: var(--primary-600);
  color: var(--neutral-0);
  font-weight: 600;
}

.rds-pagination button:disabled {
  background: none;
  color: var(--neutral-300);
  cursor: not-allowed;
}

.rds-pagination button svg {
  width: 16px;
  height: 16px;
}

.rds-pagination__gap {
  width: 24px;
  font-size: 12px;
  color: var(--neutral-500);
  text-align: center;
}

/* ---------- Empty / Error / Loading ---------- */
.rds-empty-state {
  padding: 56px 24px;
  font-family: var(--font-sans);
  text-align: center;
}

.rds-empty-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--neutral-100);
  color: var(--neutral-500);
}

.rds-empty-state__icon svg {
  width: 24px;
  height: 24px;
}

.rds-empty-state--error .rds-empty-state__icon {
  background: var(--danger-50);
  color: var(--danger-700);
}

.rds-empty-state h3 {
  margin: 16px 0 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--neutral-900);
}

.rds-empty-state p {
  max-width: 380px;
  margin: 6px auto 0;
  font-size: 12.5px;
  line-height: 19px;
  color: var(--neutral-600);
}

.rds-empty-state__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.rds-skeleton {
  display: inline-block;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--neutral-100) 0%,
    var(--neutral-50) 50%,
    var(--neutral-100) 100%
  );
  background-size: 200% 100%;
  animation: rds-skeleton-shimmer 1.2s ease-in-out infinite;
}

.rds-skeleton--circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.rds-skeleton--square {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

@keyframes rds-skeleton-shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rds-skeleton {
    animation: none;
  }
}

/* ---------- Alert ---------- */
.rds-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 18px;
}

.rds-alert__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}

.rds-alert__content {
  min-width: 0;
  flex: 1;
}

.rds-alert__content strong {
  display: block;
  font-weight: 600;
}

.rds-alert__action {
  margin-left: auto;
  align-self: center;
  flex-shrink: 0;
}

.rds-alert--warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.rds-alert--danger {
  background: var(--danger-50);
  color: var(--danger-700);
}

.rds-alert--info {
  background: var(--info-bg);
  color: var(--info-text);
}

.rds-alert--success {
  background: var(--success-bg);
  color: var(--success-text);
}

/* ---------- Card / KPI ---------- */
.rds-card {
  padding: 18px 20px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  background: var(--neutral-0);
  font-family: var(--font-sans);
}

.rds-card--hover {
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rds-card--hover:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
}

.rds-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rds-card__header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-900);
}

.rds-kpi-tile {
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  background: var(--neutral-0);
  font-family: var(--font-sans);
}

.rds-kpi-tile__label {
  display: block;
  font-size: 12px;
  color: var(--neutral-600);
}

.rds-kpi-tile__value {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  color: var(--neutral-900);
  white-space: nowrap;
}

.rds-kpi-tile__detail {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--neutral-600);
}

.rds-kpi-tile--danger .rds-kpi-tile__value {
  color: var(--danger-700);
}

.rds-kpi-tile--brand {
  border-color: var(--primary-600);
  background: var(--primary-600);
}

.rds-kpi-tile--brand .rds-kpi-tile__label,
.rds-kpi-tile--brand .rds-kpi-tile__detail {
  color: rgba(255, 255, 255, 0.78);
}

.rds-kpi-tile--brand .rds-kpi-tile__value {
  color: var(--neutral-0);
}

.rds-kpi-delta {
  font-weight: 600;
}

.rds-kpi-delta--up {
  color: var(--success-text);
}

.rds-kpi-delta--down {
  color: var(--danger-700);
}

@media (prefers-reduced-motion: reduce) {
  .rds-card--hover {
    transition: none;
  }
}

/* ---------- Dialog ---------- */
.rds-dialog-scrim {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 31, 28, 0.28);
  animation: rds-dialog-fade 0.15s ease-out;
}

.rds-dialog {
  display: flex;
  width: 560px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  flex-direction: column;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--neutral-0);
  box-shadow: var(--shadow-modal);
  font-family: var(--font-sans);
  animation: rds-dialog-in 0.18s ease-out;
}

.rds-dialog--wide {
  width: 620px;
}

.rds-dialog--confirm {
  width: 420px;
}

.rds-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 6px;
}

.rds-dialog__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--neutral-900);
}

.rds-dialog__header p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--neutral-600);
}

.rds-dialog__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 12px 22px 20px;
}

.rds-dialog__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--neutral-100);
  background: var(--neutral-50);
}

.rds-dialog__footer-note {
  margin-right: auto;
  font-size: 12px;
  color: var(--neutral-600);
}

.rds-confirm {
  display: flex;
  gap: 14px;
  padding: 22px 22px 18px;
}

.rds-confirm__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--danger-50);
  color: var(--danger-700);
}

.rds-confirm__icon--info {
  background: var(--primary-50);
  color: var(--primary-700);
}

.rds-confirm__icon svg {
  width: 19px;
  height: 19px;
}

.rds-confirm__content {
  min-width: 0;
  flex: 1;
}

.rds-confirm h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: var(--neutral-900);
}

.rds-confirm p {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 19px;
  color: var(--neutral-600);
}

.rds-dialog--confirm .rds-dialog__footer {
  justify-content: flex-end;
}

@keyframes rds-dialog-fade {
  from {
    opacity: 0;
  }
}

@keyframes rds-dialog-in {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rds-dialog-scrim,
  .rds-dialog {
    animation: none;
  }
}

/* ---------- Drawer ---------- */
.rds-drawer-layer {
  position: fixed;
  inset: 0;
}

.rds-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 31, 28, 0.18);
  animation: rds-drawer-fade 0.15s ease-out;
}

.rds-drawer {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  width: 440px;
  max-width: calc(100vw - 24px);
  flex-direction: column;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--neutral-0);
  box-shadow: var(--shadow-modal);
  font-family: var(--font-sans);
  animation: rds-drawer-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rds-drawer__header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--neutral-100);
}

.rds-drawer__header h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--neutral-900);
}

.rds-drawer__header p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--neutral-600);
}

.rds-drawer__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 16px 20px;
}

.rds-drawer__footer {
  display: flex;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--neutral-100);
}

@keyframes rds-drawer-fade {
  from {
    opacity: 0;
  }
}

@keyframes rds-drawer-in {
  from {
    transform: translateX(calc(100% + 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rds-drawer-scrim,
  .rds-drawer {
    animation: none;
  }
}

/* ---------- Menu ---------- */
.rds-popover--anchored {
  overflow-y: auto;
}

.rds-menu {
  min-width: 220px;
}

.rds-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-full);
  background: none;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-800);
  text-align: left;
  cursor: pointer;
  outline: none;
}

.rds-menu-item:hover:not(:disabled),
.rds-menu-item:focus-visible {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.rds-menu-item--selected {
  background: var(--primary-50);
  color: var(--neutral-900);
  font-weight: 600;
}

.rds-menu-item--danger {
  color: var(--danger-600);
}

.rds-menu-item--danger:hover:not(:disabled),
.rds-menu-item--danger:focus-visible {
  background: var(--danger-50);
  color: var(--danger-600);
}

.rds-menu-item:disabled {
  background: none;
  color: var(--neutral-300);
  cursor: not-allowed;
}

.rds-menu-item__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--neutral-600);
}

.rds-menu-item__icon svg {
  width: 16px;
  height: 16px;
}

.rds-menu-item--danger .rds-menu-item__icon {
  color: var(--danger-600);
}

.rds-menu-item__label {
  min-width: 0;
  flex: 1;
}

.rds-menu__separator {
  height: 1px;
  margin: 4px 8px;
  background: var(--neutral-100);
}

/* ---------- Tooltip ---------- */
.rds-tooltip-anchor {
  display: inline-flex;
}

.rds-tooltip {
  position: fixed;
  z-index: 180;
  max-width: min(280px, calc(100vw - 16px));
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--neutral-900);
  color: var(--neutral-0);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
  animation: rds-tooltip-in 0.12s ease-out;
}

@keyframes rds-tooltip-in {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rds-tooltip {
    animation: none;
  }
}

/* ---------- Toast ---------- */
.rds-toast-viewport {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 195;
  display: flex;
  width: max-content;
  max-width: calc(100vw - 24px);
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.rds-toast {
  display: inline-flex;
  max-width: min(560px, calc(100vw - 24px));
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  background: var(--neutral-900);
  box-shadow: var(--shadow-dropdown);
  color: var(--neutral-0);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 18px;
  pointer-events: auto;
  animation: rds-toast-in 0.2s ease-out;
}

.rds-toast__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary-300);
}

.rds-toast__message {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rds-toast__action,
.rds-toast__dismiss {
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--primary-200);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.rds-toast__action {
  padding: 0 0 0 6px;
}

.rds-toast__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: -4px -8px -4px 0;
  padding: 0;
  border-radius: 50%;
}

.rds-toast__action:hover,
.rds-toast__dismiss:hover {
  color: var(--neutral-0);
}

.rds-toast__action:focus-visible,
.rds-toast__dismiss:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 241, 234, 0.35);
}

.rds-toast__dismiss svg {
  width: 15px;
  height: 15px;
}

@keyframes rds-toast-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rds-toast {
    animation: none;
  }
}

/* ---------- Page shell / header ---------- */
.rds-page-shell {
  width: calc(100% - 24px);
  max-width: var(--content-max);
  min-width: 0;
  margin: 12px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--neutral-0);
  box-shadow: 0 1px 2px rgba(28, 31, 28, 0.06), 0 0 0 1px rgba(28, 31, 28, 0.04);
  font-family: var(--font-sans);
}

.rds-page-shell__body {
  min-width: 0;
  padding: 0 24px 24px;
}

.rds-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.rds-page-shell > .rds-page-header {
  padding: 20px 24px 0;
}

.rds-page-header--divider {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--neutral-100);
}

.rds-page-header__copy {
  min-width: 0;
}

.rds-page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 29px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--neutral-900);
}

.rds-page-header__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--neutral-600);
}

.rds-page-header__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 639px) {
  .rds-page-shell {
    width: calc(100% - 16px);
    margin: 8px;
  }

  .rds-page-shell__body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .rds-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rds-page-shell > .rds-page-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .rds-page-header__actions {
    width: 100%;
  }
}

/* ---------- Section tabs / Views ---------- */
.rds-section-tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
  padding: 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--font-sans);
}

.rds-section-tabs::-webkit-scrollbar,
.rds-views::-webkit-scrollbar {
  display: none;
}

.rds-section-tabs--divider {
  border-bottom: 1px solid var(--neutral-100);
}

.rds-section-tab {
  position: relative;
  display: inline-flex;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-600);
  white-space: nowrap;
  cursor: pointer;
}

.rds-section-tab:hover:not(:disabled) {
  color: var(--neutral-900);
}

.rds-section-tab--active {
  font-weight: 600;
  color: var(--neutral-900);
}

.rds-section-tab--active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-600);
  content: "";
}

.rds-section-tabs:not(.rds-section-tabs--divider) .rds-section-tab--active::after {
  bottom: 0;
}

.rds-section-tab:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-section-tab--disabled {
  color: var(--neutral-400);
  cursor: not-allowed;
}

.rds-section-tab__count.rds-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.rds-views {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 2px;
  padding: 4px;
  overflow-x: auto;
  border-radius: var(--radius-full);
  background: var(--neutral-100);
  font-family: var(--font-sans);
  scrollbar-width: none;
}

.rds-view {
  display: inline-flex;
  height: 34px;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  padding: 0 8px 0 14px;
  border: none;
  border-radius: var(--radius-full);
  background: none;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--neutral-700);
  white-space: nowrap;
  cursor: pointer;
}

.rds-view:not(:has(.rds-view__count)) {
  padding-right: 14px;
}

.rds-view:hover:not(:disabled) {
  background: var(--neutral-200);
  color: var(--neutral-900);
}

.rds-view--active,
.rds-view--active:hover:not(:disabled) {
  background: var(--primary-600);
  font-weight: 600;
  color: var(--neutral-0);
}

.rds-view:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-view--disabled {
  color: var(--neutral-400);
  cursor: not-allowed;
}

.rds-view__count {
  display: inline-flex;
  min-width: 22px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--neutral-0);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-600);
}

.rds-view__count--hot {
  background: var(--danger-50);
  color: var(--danger-700);
}

.rds-view--active .rds-view__count,
.rds-view--active .rds-view__count--hot {
  background: rgba(255, 255, 255, 0.18);
  color: var(--neutral-0);
}

/* ---------- List panel / native data table ---------- */
.rds-list-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  background: var(--neutral-0);
  font-family: var(--font-sans);
}

.rds-list-toolbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--neutral-100);
  flex-wrap: wrap;
}

.rds-list-toolbar__filters {
  display: flex;
  min-width: 0;
  flex: 1 1 280px;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rds-list-toolbar__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.rds-list-table-scroll {
  min-width: 0;
  overflow-x: auto;
}

.rds-list-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
}

.rds-list-table th {
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--neutral-100);
  color: var(--neutral-600);
  font-size: 11.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  user-select: none;
}

.rds-list-table td {
  height: 60px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--neutral-100);
  color: var(--neutral-800);
  font-size: 12.5px;
  font-weight: 500;
  vertical-align: middle;
  white-space: nowrap;
}

.rds-list-table tbody tr:last-child td {
  border-bottom: none;
}

.rds-list-table__row--interactive {
  cursor: pointer;
  transition: background 0.12s;
}

.rds-list-table__row--interactive:hover td,
.rds-list-table__row--interactive:focus-within td {
  background: var(--neutral-50);
}

.rds-list-table__row--selected td {
  background: var(--primary-50);
}

.rds-list-table__cell--right {
  text-align: right !important;
}

.rds-list-table__cell--muted {
  color: var(--neutral-600);
  font-weight: 400;
}

.rds-list-table__cell--selection {
  width: 52px;
  padding-left: 20px !important;
  padding-right: 0 !important;
}

.rds-list-table__cell--actions {
  width: 60px;
  padding-right: 12px !important;
  padding-left: 0 !important;
  text-align: right !important;
}

.rds-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 12px 20px;
  border-top: 1px solid var(--neutral-100);
  flex-wrap: wrap;
}

.rds-list-footer > :last-child {
  margin-left: auto;
}

.rds-list-footer__info {
  margin: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-600);
}

.rds-list-footer__info b {
  font-weight: 600;
  color: var(--neutral-900);
}

@media (prefers-reduced-motion: reduce) {
  .rds-list-table__row--interactive {
    transition: none;
  }
}

/* ---------- App shell / Sidebar ---------- */
.rds-app-shell {
  --rds-sidebar-width: 236px;
  position: relative;
  display: grid;
  grid-template-columns: var(--rds-sidebar-width) minmax(0, 1fr);
  column-gap: 14px;
  height: 100vh;
  min-height: 640px;
  padding: 12px 12px 12px 14px;
  overflow: hidden;
  background: var(--canvas);
  color: var(--neutral-900);
  font-family: var(--font-sans);
  transition: grid-template-columns 0.22s ease;
}

.rds-app-shell--collapsed {
  --rds-sidebar-width: 68px;
}

.rds-app-shell__sidebar-surface {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
}

.rds-app-shell__sidebar-scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  border: 0;
  background: rgba(28, 31, 28, 0.3);
  cursor: default;
}

.rds-app-shell--overlay-open .rds-app-shell__sidebar-surface {
  z-index: 11;
  width: 236px;
  background: var(--canvas);
  border-radius: var(--radius-lg);
  box-shadow: 16px 0 32px rgba(28, 31, 28, 0.1);
}

.rds-app-shell--narrow {
  --rds-sidebar-width: 68px;
  transition: none;
}

@media (max-width: 1199px) {
  .rds-app-shell {
    --rds-sidebar-width: 68px;
  }
}

.rds-app-shell__content {
  position: relative;
  /* Isolate calendar sticky/header z-indices below the temporary Sidebar. */
  z-index: 0;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  grid-column: 2;
  grid-row: 1;
}

.rds-app-shell__content .rds-page-shell {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

.rds-sidebar {
  flex: 1;
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  font-family: var(--font-sans);
}

.rds-sidebar__top {
  display: flex;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
}

.rds-sidebar__logo {
  display: flex;
  min-width: 0;
  align-items: center;
  text-decoration: none;
}

.rds-sidebar__logo img {
  display: block;
  width: 124px;
  max-width: 100%;
  height: auto;
}

.rds-sidebar__logo--button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.rds-sidebar__logo--button img {
  width: 32px;
  height: 32px;
}

.rds-sidebar__brand-mark,
.rds-sidebar__expand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rds-sidebar__expand-icon {
  display: none;
  color: var(--neutral-700);
}

.rds-sidebar__expand-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.rds-sidebar__toggle {
  display: inline-flex;
  width: 34px;
  height: 34px;
  margin-left: auto;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--neutral-500);
  cursor: pointer;
}

.rds-sidebar__toggle:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--neutral-900);
}

.rds-sidebar__toggle:focus-visible,
.rds-sidebar__logo--button:focus-visible,
.rds-sidebar__user:focus-visible,
.rds-sidebar__menu-item:focus-visible,
.rds-sidebar__item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-sidebar__toggle svg {
  width: 18px;
  height: 18px;
}


.rds-sidebar__search {
  flex-shrink: 0;
  padding: 0 2px;
}

.rds-sidebar__search .rds-search {
  width: 100%;
}

.rds-sidebar__search .rds-search input {
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
}

.rds-sidebar__search .rds-search input:hover:not(:disabled) {
  background: var(--neutral-0);
}

.rds-sidebar__search-button {
  display: inline-flex;
  width: 46px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  color: var(--neutral-600);
  cursor: pointer;
}

.rds-sidebar__search-button:hover {
  background: var(--neutral-0);
  color: var(--neutral-900);
}

.rds-sidebar__search-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-100);
}

.rds-sidebar__search-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.rds-global-search-popover {
  width: min(380px, calc(100vw - 24px));
  padding: 8px;
}

.rds-global-search__group + .rds-global-search__group {
  margin-top: 6px;
}

.rds-global-search__group-label {
  margin: 0;
  padding: 7px 10px 5px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 600;
}

.rds-global-search__result {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--neutral-800);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.rds-global-search__result:hover,
.rds-global-search__result--active {
  background: var(--neutral-100);
}

.rds-global-search__result:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--primary-300);
}

.rds-global-search__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  color: var(--primary-700);
}

.rds-global-search__icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

.rds-global-search__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.rds-global-search__copy b,
.rds-global-search__copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rds-global-search__copy b {
  font-size: 12.5px;
  font-weight: 600;
}

.rds-global-search__copy span {
  color: var(--neutral-600);
  font-size: 11.5px;
}

.rds-global-search__state {
  margin: 0;
  padding: 14px 12px;
  color: var(--neutral-600);
  font-size: 12px;
}

.rds-global-search__state--warning {
  color: var(--warning-text);
}

.rds-sidebar__nav {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: none;
}

.rds-sidebar__nav::-webkit-scrollbar {
  display: none;
}

.rds-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rds-sidebar__group-label {
  display: flex;
  height: 22px;
  margin: 0;
  align-items: center;
  padding-left: 12px;
  color: var(--neutral-500);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.rds-sidebar__item {
  position: relative;
  display: flex;
  height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 2px;
  border-radius: var(--radius-md);
  color: var(--neutral-700);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.rds-sidebar__item:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--neutral-900);
}

.rds-sidebar__item--active,
.rds-sidebar__item--active:hover {
  background: var(--neutral-0);
  color: var(--neutral-900);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(28, 31, 28, 0.06);
}

.rds-sidebar__item-icon {
  display: flex;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--neutral-600);
}

.rds-sidebar__item-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.rds-sidebar__item--active .rds-sidebar__item-icon {
  color: var(--primary-600);
}

.rds-sidebar__item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rds-sidebar__badge {
  display: inline-flex;
  min-width: 22px;
  height: 20px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 10px;
  background: rgba(28, 31, 28, 0.07);
  color: var(--neutral-700);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rds-sidebar__footer {
  flex-shrink: 0;
}

.rds-sidebar__user-group {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  transition: background 0.2s;
}

.rds-sidebar__user-group--open {
  background: rgba(28, 31, 28, 0.05);
}

.rds-sidebar__user-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

.rds-sidebar__user-menu-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 4px;
}

.rds-sidebar__user-group--open .rds-sidebar__user-menu {
  grid-template-rows: 1fr;
}

.rds-sidebar__user-group--open .rds-sidebar__user-menu-inner {
  padding-top: 6px;
}

.rds-sidebar__workspace {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 4px 8px 6px 6px;
}

.rds-sidebar__workspace-avatar {
  display: flex;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary-600);
  color: var(--neutral-0);
  font-size: 9.5px;
  font-weight: 700;
}

.rds-sidebar__workspace-avatar--image {
  object-fit: contain;
}

.rds-sidebar__workspace-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.rds-sidebar__workspace-copy b {
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rds-sidebar__workspace-copy span {
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rds-sidebar__menu-item {
  display: flex;
  width: 100%;
  height: 34px;
  align-items: center;
  padding: 0 10px 0 0;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--neutral-700);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.rds-sidebar__menu-item:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--neutral-900);
}

.rds-sidebar__menu-item--danger {
  color: var(--danger-600);
}

.rds-sidebar__menu-icon {
  display: flex;
  width: 34px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.rds-sidebar__menu-icon svg {
  width: 16px;
  height: 16px;
}

.rds-sidebar__menu-separator {
  height: 1px;
  margin: 4px 10px;
  background: rgba(28, 31, 28, 0.08);
}

.rds-sidebar__user {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border: none;
  border-radius: 16px;
  background: none;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.rds-sidebar__user:hover {
  background: rgba(255, 255, 255, 0.6);
}

.rds-sidebar__user-group--open .rds-sidebar__user,
.rds-sidebar__user-group--open .rds-sidebar__user:hover {
  background: none;
}

.rds-sidebar__user-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.rds-sidebar__user-copy b {
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rds-sidebar__user-copy span {
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rds-sidebar__user-chevron {
  display: inline-flex;
  margin-left: auto;
  color: var(--neutral-500);
}

.rds-sidebar__user-chevron svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.rds-sidebar__user-group--open .rds-sidebar__user-chevron svg {
  transform: rotate(180deg);
}

.rds-sidebar--collapsed .rds-sidebar__top {
  height: auto;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 0;
}

.rds-sidebar--collapsed .rds-sidebar__search {
  padding: 0;
  text-align: center;
}

.rds-sidebar--collapsed .rds-sidebar__logo {
  width: 46px;
  height: 42px;
  justify-content: center;
  border-radius: var(--radius-md);
}

.rds-sidebar--collapsed .rds-sidebar__logo:hover {
  background: rgba(255, 255, 255, 0.7);
}

.rds-sidebar--collapsed .rds-sidebar__logo--button:hover .rds-sidebar__brand-mark,
.rds-sidebar--collapsed .rds-sidebar__logo--button:focus-visible .rds-sidebar__brand-mark {
  display: none;
}

.rds-sidebar--collapsed .rds-sidebar__logo--button:hover .rds-sidebar__expand-icon,
.rds-sidebar--collapsed .rds-sidebar__logo--button:focus-visible .rds-sidebar__expand-icon {
  display: inline-flex;
}

.rds-sidebar--collapsed .rds-sidebar__group-label {
  height: 1px;
  margin: 0 14px 6px;
  padding: 0;
  overflow: hidden;
  background: rgba(28, 31, 28, 0.1);
  color: transparent;
  font-size: 0;
}

.rds-sidebar--collapsed .rds-sidebar__item {
  width: 46px;
  margin: 0 auto;
  justify-content: center;
  padding: 0 6px;
}

.rds-sidebar--collapsed .rds-sidebar__item-label,
.rds-sidebar--collapsed .rds-sidebar__user-copy,
.rds-sidebar--collapsed .rds-sidebar__user-chevron {
  display: none;
}

.rds-sidebar--collapsed .rds-sidebar__badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  overflow: hidden;
  background: var(--neutral-700);
  color: transparent;
  font-size: 0;
  box-shadow: 0 0 0 2px var(--canvas);
}

.rds-sidebar--collapsed .rds-sidebar__user {
  width: 46px;
  margin: 0 auto;
  justify-content: center;
  padding: 6px;
}

.rds-sidebar--collapsed .rds-sidebar__user-menu {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .rds-app-shell,
  .rds-sidebar__user-group,
  .rds-sidebar__user-menu,
  .rds-sidebar__user-chevron svg {
    transition: none;
  }
}

