.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) + 5.75rem);
    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;
}

.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;
    }
}
.page-search {
    position: fixed;
    inset: 0;
    z-index: 1200;
    visibility: hidden;
    pointer-events: none;
}

.page-search--visible {
    visibility: visible;
    pointer-events: auto;
}

.page-search__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-search--visible .page-search__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.page-search__dialog {
    position: absolute;
    inset-inline: 0;
    bottom: calc(env(safe-area-inset-bottom) + 5.75rem);
    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;
}

.page-search--visible .page-search__dialog {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

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

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

.page-search__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;
}

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

.page-search__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-search__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-search__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
}

.page-search__control {
    position: relative;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.search-input {
    flex: 1 1 auto;
    font-size: 1rem;
    padding-block: 0.65rem;
    padding-inline: 1rem;
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-input:focus {
    box-shadow: none;
}

.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1.25rem;
}

.suggest-box {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background-color: var(--color-surface);
    border-radius: 0.75rem;
    padding: 0.5rem;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    z-index: 1100;
    display: none;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.suggest-box.visible {
    display: block;
}

.suggest-box div {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.suggest-box div:hover {
    background-color: #f1f3f5;
}

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

@media (max-width: 600px) {
    .search-input {
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    .page-search {
        display: none;
    }
}
.page-header-search {
  display: none;
  width: min(32rem, 100%);
}

.page-header-search__form {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0;
}

.page-header-search__control {
  flex: 1 1 auto;
  position: relative;
}

.page-header-search__wrapper {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-header-search__wrapper:focus-within {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.page-header-search__input {
  background-color: transparent;
  color: #ffffff;
  font-size: 0.95rem;
  padding-block: 0.5rem;
  padding-inline: 1rem;
}

.page-header-search__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-header-search__input:focus {
  box-shadow: none;
}

.page-header-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.page-header-search__button:hover,
.page-header-search__button:focus-visible {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  outline: none;
}

.page-header-search .suggest-box {
  top: calc(100% + 0.5rem);
  background-color: #ffffff;
  color: #212529;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

@media (min-width: 768px) {
  .page-header-search {
    display: block;
    justify-self: center;
  }
}
.search-history {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    padding: 0.75rem;
    display: none;
    max-height: 14rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

.search-history::-webkit-scrollbar {
    width: 0.4rem;
}

.search-history::-webkit-scrollbar-thumb {
    background-color: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
}

.search-history::-webkit-scrollbar-track {
    background: transparent;
}

.search-history--visible {
    display: block;
}

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

.search-history__empty {
    font-size: 0.8125rem;
    color: #6c757d;
    margin: 0;
}

.search-history__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-history__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background-color: rgba(15, 23, 42, 0.02);
    transition: background-color 0.2s ease;
}

.search-history__item:hover,
.search-history__item:focus-within {
    background-color: rgba(15, 23, 42, 0.06);
}

.search-history__keyword-button {
    flex: 1 1 auto;
    text-align: left;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #1f2937;
    padding: 0;
    cursor: pointer;
}

.search-history__keyword-button:focus-visible {
    outline: 2px solid #5a378c;
    outline-offset: 2px;
}

.search-history__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.search-history__action-button {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background-color: #ffffff;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.search-history__action-button:hover,
.search-history__action-button:focus-visible {
    background-color: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.2);
    outline: none;
}

.search-history__action-button--pin[aria-pressed="true"] {
    background-color: #5a378c;
    border-color: #5a378c;
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .page-search__body .search-history {
        position: static;
        margin-top: 0.5rem;
        box-shadow: none;
        border-radius: 0.75rem;
    }

    .page-search__body .search-history--visible {
        display: block;
    }
}
.selection-summary {
    display: none;
}

@media (max-width: 991.98px) {
    .selection-summary {
        display: block;
        background-color: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
    }

    .selection-summary__inner {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .selection-summary__button {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0.5rem 0;
        background: none;
        border: none;
        color: inherit;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

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

    .selection-summary__button:hover {
        color: #495057;
    }

    .selection-summary__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 50%;
        background-color: #e9ecef;
        color: #5a378c;
        font-size: 0.875rem;
    }

    .selection-summary__text {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        font-size: 0.75rem;
        color: #6c757d;
        letter-spacing: 0.02em;
    }

    .selection-summary__label {
        font-weight: 600;
    }

    .selection-summary__value {
        font-weight: 400;
    }

    .selection-summary__divider {
        color: #adb5bd;
    }
}
