.page-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-dropdown {
  position: relative;
}

.header-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-dropdown.is-open .header-dropdown__toggle {
  background: rgba(255, 255, 255, 0.18);
}

.header-dropdown__toggle:hover,
.header-dropdown__toggle:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  outline: none;
}

.header-dropdown__icon {
  font-size: 1rem;
}

.header-dropdown__text {
  font-weight: 600;
}

.header-dropdown__panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(20rem, 90vw);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 0.75rem;
  box-shadow: 0 20px 45px rgba(16, 18, 27, 0.18);
  padding: 0.75rem 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1100;
}

.header-dropdown__panel[aria-hidden='true'] {
  display: none;
}

.header-dropdown__list,
.header-dropdown__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-dropdown__item + .header-dropdown__item {
  margin-top: 0.25rem;
}

.header-dropdown__link {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-dropdown__link:hover,
.header-dropdown__link:focus-visible {
  background-color: rgba(31, 27, 46, 0.08);
  color: inherit;
  outline: none;
}

.header-dropdown__link--button {
  font: inherit;
}

.header-dropdown__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1rem;
  color: currentColor;
}

.header-dropdown__item-text {
  flex: 1;
}

.header-dropdown__item--group {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.header-dropdown__group-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  padding: 0 1rem 0.25rem;
}

.header-dropdown__subitem + .header-dropdown__subitem {
  margin-top: 0.25rem;
}

.header-dropdown__subitem .header-dropdown__link {
  padding-left: 1.5rem;
}

.header-dropdown__checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.header-dropdown__checkbox:hover,
.header-dropdown__checkbox:focus-within {
  background-color: rgba(31, 27, 46, 0.08);
}

.header-dropdown__checkbox-input {
  width: 1rem;
  height: 1rem;
  accent-color: #5a378c;
  order: 2;
  margin-left: auto;
}

.header-dropdown__checkbox-label {
  font-size: 0.95rem;
  cursor: pointer;
  flex: 1;
  order: 1;
}

.header-dropdown__checkbox .header-dropdown__item-icon {
  order: 0;
}

@media (max-width: 767.98px) {
  .page-header__actions {
    display: none;
  }

}
.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1060;
  padding: 2rem;
}

.loading-overlay--active {
  display: flex;
}

.loading-overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.loading-overlay__spinner {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0.35rem solid rgba(90, 55, 140, 0.2);
  border-top-color: #5a378c;
  animation: loading-overlay-spin 0.8s linear infinite;
}

.loading-overlay__text {
  font-weight: 600;
  color: #2f1b4b;
  letter-spacing: 0.04em;
}

@media (max-width: 575.98px) {
  .loading-overlay {
    padding: 1.5rem;
  }

  .loading-overlay__spinner {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@keyframes loading-overlay-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
.mobile-footer {
    position: fixed;
    inset: auto 0 0;
    z-index: 1000;
    display: none;
    background-color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mobile-footer--scrolled {
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 -12px 24px rgba(15, 23, 42, 0.12);
}

.mobile-footer__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.5rem;
    padding: 0.75rem 1.25rem calc(env(safe-area-inset-bottom) + 0.75rem);
}

.mobile-footer__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.75rem;
    background-color: transparent;
    color: #4a5568;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
}

.mobile-footer__action:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(90, 55, 140, 0.2);
}

.mobile-footer__action:focus-visible {
    outline: 2px solid #5a378c;
    outline-offset: 2px;
}

.mobile-footer__action-icon {
    font-size: 1.25rem;
}

.mobile-footer__action-label {
    color: inherit;
}

.mobile-footer__action[aria-expanded="true"] {
    background-color: rgba(90, 55, 140, 0.08);
    color: #3c366b;
}

@media (max-width: 767.98px) {
    .mobile-footer {
        display: block;
    }

    .mobile-footer__nav {
        gap: 0.25rem;
        min-height: 3rem;
        padding: 0.25rem 0.75rem calc(env(safe-area-inset-bottom) + 0.25rem);
    }

    .mobile-footer__action {
        min-height: 2.75rem;
        gap: 0.125rem;
        padding: 0.25rem 0.125rem;
        border-radius: 0.625rem;
        font-size: 0.6875rem;
    }

    .mobile-footer__action-icon {
        font-size: 1.125rem;
    }

    .main-content {
        padding-bottom: calc(3.75rem + env(safe-area-inset-bottom)) !important;
    }
}
.mobile-sheet {
    position: fixed;
    inset: 0;
    z-index: 1250;
    visibility: hidden;
    pointer-events: none;
}

.mobile-sheet--visible {
    visibility: visible;
    pointer-events: auto;
}

.mobile-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sheet--visible .mobile-sheet__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.mobile-sheet__dialog {
    position: absolute;
    inset-inline: 0;
    bottom: calc(env(safe-area-inset-bottom) + 4.25rem);
    padding-inline: 1rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.mobile-sheet--visible .mobile-sheet__dialog {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-sheet__panel {
    width: min(640px, 100%);
    max-height: calc(100vh - 7rem);
    background-color: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
}

.mobile-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mobile-sheet__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.mobile-sheet__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background-color: #edf2f7;
    color: #1f2937;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

@media (max-width: 767.98px) {
    .mobile-sheet__close {
        width: 2.75rem;
        height: 2.75rem;
    }
}

.mobile-sheet__close:hover,
.mobile-sheet__close:focus-visible {
    background-color: #e2e8f0;
    outline: none;
}

.mobile-sheet__body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-sheet__group {
    display: flex;
    flex-direction: column;
}

.mobile-sheet__section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
    margin: 0 0 0.75rem;
}

.mobile-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-sheet__item {
    display: flex;
}

.mobile-sheet__link,
.mobile-sheet__button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background-color: #f8fafc;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.mobile-sheet__button {
    cursor: pointer;
}

.mobile-sheet__link:hover,
.mobile-sheet__link:focus-visible,
.mobile-sheet__button:hover,
.mobile-sheet__button:focus-visible {
    border-color: rgba(90, 55, 140, 0.35);
    background-color: rgba(90, 55, 140, 0.08);
    color: #3c366b;
    outline: none;
}

.mobile-sheet__link {
    justify-content: space-between;
}

.mobile-sheet__link:visited {
    color: #1f2937;
}

.mobile-sheet__button {
    justify-content: flex-start;
}

.mobile-sheet__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background-color: #ffffff;
    color: #5a378c;
    font-size: 1rem;
}

.mobile-sheet__text {
    flex: 1;
    text-align: left;
}

.mobile-sheet__chevron {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: 0.75rem;
}

.mobile-sheet__toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background-color: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mobile-sheet__toggle:hover,
.mobile-sheet__toggle:focus-within {
    border-color: rgba(90, 55, 140, 0.35);
    background-color: rgba(90, 55, 140, 0.08);
}

.mobile-sheet__toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mobile-sheet__toggle-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    color: #1f2937;
    font-weight: 600;
}

.mobile-sheet__switch {
    position: relative;
    flex-shrink: 0;
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 999px;
    background-color: #cbd5f5;
    transition: background-color 0.2s ease;
}

.mobile-sheet__switch::after {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease;
}

.mobile-sheet__toggle-input:checked + .mobile-sheet__switch {
    background-color: #5a378c;
}

.mobile-sheet__toggle-input:checked + .mobile-sheet__switch::after {
    transform: translateX(1.25rem);
}

body.mobile-sheet-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .mobile-sheet {
        display: none;
    }
}
