/* Custom styles to complement Tailwind CSS */
:root {
    --app-header-space: 6.5rem;
    --bottom-nav-reserved-space: env(safe-area-inset-bottom);
    --bottom-nav-shell-max-width: 31rem;
    --bottom-nav-text: rgba(15, 23, 42, 0.62);
    --bottom-nav-text-active: rgba(15, 23, 42, 0.95);
    --bottom-nav-accent: #007aff;
}

.app-header {
    position: fixed;
    overflow: hidden;
    transition: transform 220ms ease, opacity 220ms ease;
}

.app-header--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.app-main {
    position: absolute;
    top: 0;
    left: 0;
    overflow: scroll;
    height: min-content;
    max-height: calc(100dvh - var(--bottom-nav-reserved-space));
    padding-bottom: 4.75rem;
    width: 100dvw;
    max-width: 100dvw !important;
    overscroll-behavior: contain;
    transition: background 220ms ease;
}

.app-main--transitioning {
    overflow: hidden;
}

.app-main > section {
    width: 100%;
    min-height: 100%;
}

.list-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.list-menu__backdrop,
.list-menu__sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.34);
    opacity: 0;
    transition: opacity 220ms ease;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.list-menu__panel,
.list-menu__sheet {
    position: absolute;
    width: min(24rem, calc(100vw - 0.35rem));
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 32px 72px rgba(15, 23, 42, 0.18),
        0 8px 24px rgba(15, 23, 42, 0.08);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.list-menu__panel {
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0 1.25rem 1.25rem 0;
    transform: translateX(calc(-100% - 1rem));
    overflow: hidden;
}

.list-menu__sheet {
    left: 50%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: min(40rem, calc(100dvh - 0.5rem - env(safe-area-inset-top)));
    border-radius: 1.9rem 1.9rem 0 0;
    transform: translate(-50%, 100%);
    overflow: hidden;
}

.list-menu.is-open .list-menu__backdrop,
.list-menu.is-open .list-menu__sheet-backdrop {
    opacity: 1;
}

.list-menu.is-open .list-menu__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.list-menu.list-menu--show-settings .list-menu__sheet {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    width: min(27rem, calc(100vw - 1rem));
}

.list-menu__handle,
.list-menu__sheet-handle {
    width: 2.8rem;
    height: 0.32rem;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.6);
}

.list-menu__handle {
    display: none;
}

.list-menu__sheet-handle {
    margin-top: 0.5rem;
    margin-bottom: 0.1rem;
}

.list-menu__toolbar {
    display: grid;
    grid-template-columns: 2.75rem 1fr 2.75rem;
    align-items: center;
    gap: 0.4rem;
    padding: calc(env(safe-area-inset-top) + 0.55rem) 0.55rem 0.05rem;
}

.list-menu__icon-button,
.list-menu__toolbar-spacer {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.list-menu__icon-button {
    border: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 12px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.list-menu__icon-button.is-active {
    background: #0f172a;
    color: #fff;
}

.list-menu__icon-button svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.list-menu__logo {
    width: 5.25rem;
    max-width: 100%;
    height: auto;
    display: block;
    justify-self: center;
}

.list-menu__header-copy {
    padding: 0 0.6rem 0.22rem;
}

.list-menu__eyebrow,
.list-menu__sheet-eyebrow {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.92);
}

.list-menu__header-copy h1,
.list-menu__sheet-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.list-menu__subcopy {
    margin: 0.1rem 0 0;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #64748b;
}

.list-menu__list {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.15rem calc(env(safe-area-inset-bottom) + 0.7rem);
}

.list-menu__device-storage {
    margin: 0.35rem 0.6rem calc(env(safe-area-inset-bottom) + 0.7rem);
    padding: 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.list-menu__device-storage .list-menu__settings-label {
    text-transform: none;
    letter-spacing: 0;
}

.list-menu__privacy-link {
    display: inline-block;
    margin-top: 0.65rem;
    color: #475569;
    font-size: 0.78rem;
    text-decoration: underline;
}

.list-menu__empty {
    margin: 0.25rem 0.45rem 0;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.35rem;
    background: rgba(248, 250, 252, 0.92);
}

.list-menu__empty h2,
.list-menu__empty p {
    margin: 0;
}

.list-menu__empty h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.list-menu__empty p {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #64748b;
}

.list-menu__row-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    margin: 0 0.08rem 0.02rem;
    padding: 0;
    border-radius: 0.8rem;
    background: transparent;
}

.list-menu__row-shell.is-selected {
    background: #d3d3d38c;
}

.list-menu__row-shell.has-settings {
    grid-template-columns: minmax(0, 1fr) auto;
}

.list-menu__row-main {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.5rem 0.55rem 0.42rem;
    text-align: left;
    border: 0;
    border-radius: 0.8rem;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
}

.list-menu__row-selection {
    width: 0.22rem;
    height: 1.35rem;
    display: inline-flex;
    border-radius: 999px;
    background: transparent;
}

.list-menu__row-status svg,
.list-menu__share-icon svg,
.list-menu__status-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.list-menu__row-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.list-menu__row-name {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-menu__row-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
}

.list-menu__row-visibility {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.list-menu__row-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.list-menu__status-icon {
    width: 0.76rem;
    height: 0.76rem;
    color: rgba(100, 116, 139, 0.9);
}

.list-menu__row-counts {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.18rem 0.38rem;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.95);
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1;
}

.list-menu__row-counts-separator {
    color: #cbd5e1;
}

.list-menu__row-shell.is-selected .list-menu__row-selection {
    background: gray;
}

.list-menu__settings-trigger {
    margin-right: 0.12rem;
    width: 1.82rem;
    height: 1.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    color: #c084a2;
    cursor: pointer;
}

.list-menu__settings-trigger svg {
    width: 0.82rem;
    height: 0.82rem;
    display: block;
}

.list-menu__sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem 0.2rem;
    flex: 0 0 auto;
}

.list-menu__sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.15rem 1rem 1rem;
}

.list-menu__field,
.list-menu__settings-block {
    display: block;
    margin-bottom: 0.85rem;
}

.list-menu__field-label,
.list-menu__settings-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.list-menu__text-input {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.72rem 0.92rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 0.98rem;
    outline: none;
}

.list-menu__text-input:focus {
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.list-menu__segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.35rem;
    border-radius: 1.2rem;
    background: rgba(241, 245, 249, 0.95);
}

.list-menu__segmented-button {
    min-height: 2.45rem;
    padding: 0 0;
    border: 0;
    border-radius: 1rem;
    font-size: 0.89rem;
    font-weight: 600;
    color: #475569;
    background: transparent;
    cursor: pointer;
}

.list-menu__segmented-button.is-selected {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.list-menu__settings-copy,
.list-menu__toggle-copy {
    margin: 0.45rem 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #64748b;
}

.list-menu__share-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    border-radius: 1.2rem;
    background: rgba(248, 250, 252, 0.96);
}

.list-menu__share-icon {
    width: 1.2rem;
    height: 1.2rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.list-menu__share-copy p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #334155;
    word-break: break-word;
}

.list-menu__share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.55rem;
}

.list-menu__secondary-button {
    min-height: 2.35rem;
    padding: 0 0.95rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.list-menu__secondary-button:disabled,
.list-menu__footer-button:disabled {
    opacity: 0.55;
}

.list-menu__toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.list-menu__toggle-row > span:first-child {
    min-width: 0;
}

.list-menu__toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.list-menu__toggle input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.list-menu__toggle-track {
    width: 3.2rem;
    height: 1.95rem;
    display: inline-block;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.95);
    transition: background 180ms ease;
    position: relative;
}

.list-menu__toggle-track::after {
    content: "";
    position: absolute;
    top: 0.17rem;
    left: 0.17rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
    transition: transform 180ms ease;
}

.list-menu__toggle input:checked + .list-menu__toggle-track {
    background: #34c759;
}

.list-menu__toggle input:checked + .list-menu__toggle-track::after {
    transform: translateX(1.25rem);
}

.list-menu__message {
    margin: 0 0 0.8rem;
    padding: 0.7rem 0.85rem;
    border-radius: 1rem;
    font-size: 0.84rem;
    line-height: 1.4;
}

.list-menu__message--error {
    background: rgba(254, 226, 226, 0.9);
    color: #b91c1c;
}

.list-menu__message--status {
    background: rgba(220, 252, 231, 0.92);
    color: #166534;
}

.list-menu__sheet-footer {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem 1rem calc(env(safe-area-inset-bottom) + 0.8rem);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 22px rgba(15, 23, 42, 0.06);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.list-menu__footer-button {
    min-height: 2.8rem;
    border: 0;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.list-menu__footer-button--ghost {
    background: rgba(241, 245, 249, 0.98);
    color: #0f172a;
}

.list-menu__footer-button--primary {
    background: #0f172a;
    color: #fff;
}

@media (min-width: 768px) {
    .list-menu__panel {
        width: min(22rem, calc(100vw - 4rem));
    }

    .list-menu__sheet {
        width: min(29rem, calc(100vw - 2rem));
        bottom: max(1rem, env(safe-area-inset-bottom));
        border-radius: 1.9rem;
    }
}

@media (max-height: 760px) {
    .list-menu__sheet {
        max-height: calc(100dvh - 0.35rem - env(safe-area-inset-top));
    }

    .list-menu__sheet-header {
        padding-top: 0.55rem;
    }

    .list-menu__field,
    .list-menu__settings-block {
        margin-bottom: 0.7rem;
    }

    .list-menu__sheet-footer {
        padding-top: 0.65rem;
        padding-bottom: calc(env(safe-area-inset-bottom) + 0.7rem);
    }
}

.app-main--discovery {
    padding-bottom: calc(var(--bottom-nav-reserved-space) + 1rem);
    background: #fff;
}

.app-header__back-button {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 1rem);
    left: 0.85rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.app-header__back-button svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

.app-header--discovery-detail #editToggle {
    display: none !important;
}

.app-header--discovery-detail #topbarmenu {
    justify-content: center !important;
    padding-top: 1rem !important;
    padding-bottom: 0 !important;
}

.app-header--discovery-detail #title_text {
    width: calc(100vw - 6em) !important;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.app-header--discovery-detail #headerControlsRow {
    position: static;
    top: auto;
    right: auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 0;
    padding: 0;
    min-width: 0;
}

.app-header--discovery-detail #headerControlsRow .relative {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
}

.app-header--discovery-detail #headerControlsRow #searchInput {
    display: block;
    width: 100%;
    min-width: 0;
}

.app-header--discovery-detail #wishlist-container {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.app-header--discovery-detail #menuButton {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    padding: 0.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.app-header--discovery-detail #wishlist_div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#wishlist_div.wishlist-profile-button {
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 999px;
}

.wishlist-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, #dbeafe, #fce7f3 68%, #fef3c7);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.wishlist-profile-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.wishlist-profile-avatar__fallback {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0f172a;
}

.profile-image-preview {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
}

.profile-image-preview.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.profile-image-preview__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(19rem, 74vw);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.42);
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.profile-image-preview__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-image-preview__fallback {
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0f172a;
}

#list-section {
    padding-top: var(--app-header-space);
}

.discovery-page {
    position: relative;
    min-height: calc(100dvh - var(--bottom-nav-reserved-space));
    color: #0f172a;
    background: #fff;
}

.discovery-page__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none;
}

.discovery-page__inner {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    padding: calc(1rem + env(safe-area-inset-top)) 0 0;
}

.discovery-page__header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.discovery-page__logo-wrap {
    display: flex;
    justify-content: center;
    padding: 0.35rem 1rem 0.9rem;
}

.discovery-page__logo {
    width: 7.4rem;
    max-width: 100%;
    height: auto;
    display: block;
}

.discovery-page__search-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 1rem;
}

.discovery-search {
    position: relative;
    flex: 1;
    min-height: 3rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
}

.discovery-search__icon {
    width: 1rem;
    height: 1rem;
    color: rgba(71, 85, 105, 0.7);
    flex: 0 0 auto;
}

.discovery-search__icon svg,
.discovery-search__clear svg,
.discovery-search-list__icon svg,
.discovery-search-list__remove-button svg,
.discovery-result-row__subtitle--host svg,
.discovery-result-row__chevron svg,
.discovery-creator-row__chevron svg,
.discovery-feed-card__host svg,
.discovery-empty-state__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.discovery-search__input {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 0;
    border: 0;
    outline: none;
    font-size: 0.97rem;
    background: transparent;
    color: #0f172a;
}

.discovery-search__input::placeholder {
    color: rgba(71, 85, 105, 0.72);
}

.discovery-search__clear,
.discovery-search__cancel,
.discovery-chip,
.discovery-feed-card,
.discovery-result-row,
.discovery-creator-item,
.discovery-creator-row__header,
.discovery-private-notice,
.discovery-search-list__item,
.discovery-search-list__remove-button {
    -webkit-tap-highlight-color: transparent;
}

.discovery-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    color: rgba(71, 85, 105, 0.85);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.discovery-search__cancel {
    border: 0;
    background: transparent;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.discovery-search-view,
.discovery-home-view {
    padding-bottom: 2rem;
}

.discovery-search-panel,
.discovery-section {
    padding: 0 0 0.25rem;
}

.discovery-section__header,
.discovery-search-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0.75rem;
}

.discovery-section__header h2,
.discovery-search-block__header h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.discovery-placeholder {
    margin: 0 1rem 1rem;
    padding: 1.2rem 1rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    text-align: left;
}

.discovery-placeholder__icon,
.discovery-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.64);
}

.discovery-placeholder h3,
.discovery-empty-state h2,
.discovery-empty-state p {
    margin: 0;
}

.discovery-placeholder h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}

.discovery-placeholder p {
    margin: 0.45rem 0 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
}

.discovery-placeholder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.discovery-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0 0.95rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.discovery-chip--primary {
    border-color: rgba(59, 130, 246, 0.16);
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
}

.discovery-creator-rows,
.discovery-creator-skeletons {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding-bottom: 0.6rem;
}

.discovery-creator-row,
.discovery-creator-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.discovery-creator-row__header,
.discovery-creator-skeleton__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0 1rem;
    border: 0;
    background: transparent;
    text-align: left;
}

.discovery-creator-row__copy,
.discovery-creator-skeleton__copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.discovery-creator-row__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}

.discovery-creator-row__handle {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.2;
}

.discovery-creator-row__chevron,
.discovery-result-row__chevron {
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    color: rgba(100, 116, 139, 0.9);
    flex: 0 0 auto;
    margin-top: auto;
    margin-bottom: auto;
}

.discovery-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, #dbeafe, #fce7f3 68%, #fef3c7);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.discovery-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discovery-avatar--row {
    width: 2.75rem;
    height: 2.75rem;
}

.discovery-avatar--result {
    width: 2.6rem;
    height: 2.6rem;
}

.discovery-avatar__fallback {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.discovery-creator-row__items,
.discovery-creator-skeleton__items {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0 1rem 0.15rem;
    scroll-snap-type: x proximity;
}

.discovery-creator-item {
    flex: 0 0 auto;
    width: 7rem;
    border: 0;
    background: transparent;
    padding: 0;
    scroll-snap-align: start;
    cursor: pointer;
}

.discovery-creator-item__artwork,
.discovery-feed-card__artwork,
.discovery-result-row__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: #f8fafc;
}

.discovery-creator-item__artwork {
    aspect-ratio: 1 / 1;
}

.discovery-creator-item__frame,
.discovery-feed-card__frame,
.discovery-result-row__media .discovery-artwork__frame {
    aspect-ratio: 1 / 1;
}

.discovery-artwork__backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(16px);
    transform: scale(1.08);
}

.discovery-artwork__frame {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.discovery-creator-item__image,
.discovery-feed-card__image,
.discovery-result-row__image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
}

.discovery-private-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 1rem;
    padding: 0.85rem 0.9rem;
    border: 0;
    border-radius: 1rem;
    background: rgba(241, 245, 249, 0.95);
    text-align: left;
    cursor: pointer;
}

.discovery-private-notice__icon {
    flex: 0 0 auto;
    width: 1.3rem;
    height: 1.3rem;
    color: #475569;
}

.discovery-private-notice__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.discovery-private-notice__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.82rem;
    color: #475569;
}

.discovery-private-notice__copy span:first-child {
    font-weight: 600;
    color: #0f172a;
}

.discovery-search-block {
    padding-bottom: 0.75rem;
}

.discovery-search-results,
.discovery-search-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 1rem;
}

.discovery-search-list__entry {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.discovery-search-list__item,
.discovery-result-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    text-align: left;
    cursor: pointer;
}

.discovery-search-list__item {
    flex: 1;
}

.discovery-search-list__icon {
    width: 1rem;
    height: 1rem;
    color: rgba(100, 116, 139, 0.82);
    flex: 0 0 auto;
}

.discovery-search-list__text {
    font-size: 0.93rem;
    font-weight: 500;
    color: #0f172a;
}

.discovery-search-list__remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.1);
    color: #dc2626;
    cursor: pointer;
}

.discovery-search-list__remove-button svg {
    width: 0.95rem;
    height: 0.95rem;
}

.discovery-result-row--product {
    align-items: stretch;
}

.discovery-result-row__media {
    width: 5.5rem;
    min-width: 5.5rem;
    aspect-ratio: 1 / 1;
    border-radius: 0.95rem;
}

.discovery-result-row__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.24rem;
    min-width: 0;
    flex: 1;
}

.discovery-result-row__title {
    font-size: 0.93rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discovery-result-row__meta {
    font-size: 0.79rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
}

.discovery-result-row__subtitle {
    font-size: 0.79rem;
    color: #64748b;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discovery-result-row__subtitle--host {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.discovery-result-row__subtitle--host svg,
.discovery-feed-card__host svg {
    width: 0.82rem;
    height: 0.82rem;
    color: rgba(100, 116, 139, 0.9);
}

.discovery-section--feed {
    padding-top: 0.15rem;
}

.discovery-feed {
    padding: 0 1rem;
}

.discovery-feed__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.75rem;
}

.discovery-feed__column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.discovery-feed-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.discovery-feed-card__artwork {
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.discovery-feed-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0 0.2rem;
}

.discovery-feed-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discovery-feed-card__host {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.76rem;
    color: #64748b;
}

.discovery-feed__loading-more,
.discovery-feed__complete,
.discovery-search-panel__loading,
.discovery-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 8rem;
    color: #64748b;
    text-align: center;
}

.discovery-feed__complete {
    min-height: auto;
    padding: 1rem 0 0.2rem;
    font-size: 0.82rem;
}

.discovery-empty-state {
    padding: 0 1rem 1rem;
}

.discovery-empty-state--feed {
    min-height: 12rem;
}

.discovery-empty-state--recent,
.discovery-empty-state--search {
    min-height: 10rem;
}

.discovery-spinner {
    width: 1.4rem;
    height: 1.4rem;
    border: 2px solid rgba(148, 163, 184, 0.24);
    border-top-color: #0f172a;
    border-radius: 999px;
    animation: discovery-spin 0.9s linear infinite;
}

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

.discovery-feed__sentinel {
    height: 1px;
}

.discovery-skeleton {
    display: block;
    border-radius: 0.95rem;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.8), rgba(248, 250, 252, 0.94), rgba(226, 232, 240, 0.8));
    background-size: 220% 100%;
    animation: discovery-skeleton-shimmer 1.4s ease-in-out infinite;
}

.discovery-skeleton--avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    flex: 0 0 auto;
}

.discovery-skeleton--line {
    height: 0.72rem;
}

.discovery-skeleton--line-lg {
    width: 8rem;
}

.discovery-skeleton--line-sm {
    width: 4.6rem;
}

.discovery-skeleton--tile {
    width: 7rem;
    height: 7rem;
    flex: 0 0 auto;
}

.discovery-feed-skeletons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0 1rem;
}

.discovery-feed-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.discovery-skeleton--square {
    width: 100%;
    aspect-ratio: 1 / 1;
}

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

.product-card {
    transition: transform 0.3s ease-in-out;

}

.product-card:hover {
    //transform: scale(1.05);
}

.product-card h2{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.product-image {
    height: 150px;
    object-fit: cover;
}

.image-appearance-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
    isolation: isolate;
}

.image-appearance-frame--transparent {
    background-color: #fff;
    background-image:
        linear-gradient(45deg, rgba(0, 0, 0, 0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.08) 75%);
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
    background-size: 12px 12px;
}

.image-appearance-image {
    position: absolute;
    display: block;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.item-modal-image-swipe {
    margin-inline: auto;
    touch-action: pan-y;
}

.item-modal-image-frame {
    touch-action: none;
    transform-origin: center center;
}

.item-modal-image-frame::after {
    content: "Drag image while edit is active";
    position: absolute;
    left: 50%;
    bottom: 54px;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 11px;
    padding: 5px 10px;
    transition: opacity 160ms ease;
    z-index: 4;
}

.item-modal-image-frame:has([data-image-control="edit"].is-active)::after {
    opacity: 1;
}

.item-modal-image-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.item-modal-image-control,
.item-modal-image-color {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #111827;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    pointer-events: auto;
}

.item-modal-image-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.item-modal-image-control svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.item-modal-image-control.is-active {
    background: rgba(17, 24, 39, 0.9);
    color: #fff;
}

.item-modal-image-color {
    margin-left: auto;
    padding: 4px;
}

.item-modal-image-zoom {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    z-index: 5;
    accent-color: #111827;
}

.blurred-background {
    position: relative;
    width: 100%;
    height: auto;
  /*  background: url(''); */
    background-size: cover;
    overflow: hidden; /* Prevents pseudo-element overflow */
}

/* Create a blurred layer using ::before */
.blurred-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* Uses the same background image */
    background-size: cover;
    filter: blur(40px); /* Blurs the background */
    z-index: -1; /* Puts it behind content */
}

.wishlist-heart {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .wishlist-heart.active {
        fill: rgb(0 0 0);
	stroke: rgb(0 0 0 );
        animation: heart-beat 0.3s ease;
    }
    @keyframes heart-beat {
        0% { transform: scale(1); }
        30% { transform: scale(1.2); }
        60% { transform: scale(1); }
    }
#wishlist-counter {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    #wishlist-counter.show {
        opacity: 1;
    }

.product-wishlisticon { 
    width: 3em;
    right: 0; 
    padding: 1em;
    height: 3em;
    bottom: 0em;
}




.discountinfo{
display: grid;
grid-template-areas: 
            "price discount"
            "discountText code";
}
.discountText{
grid-area: discountText;
}
.discountCode{
grid-area: code;
text-align: right;
}

.title{
display: flex;
    align-items: baseline;
    justify-content: center;
}
#addItemButton {
    transition: transform 0.3s ease-in-out;
}

#addItemButton:hover {
    transform: scale(1.1);
}

#newItemModal input[type="url"],
#newItemModal input[type="text"],
#newItemModal input[type="number"],
#newItemModal select {
    transition: border-color 0.3s ease-in-out;
}

#newItemModal input[type="url"]:focus,
#newItemModal input[type="text"]:focus,
#newItemModal input[type="number"]:focus,
#newItemModal select:focus {
    border-color: #3b82f6;
    outline: none;
}

#newItemModal button {
    transition: background-color 0.3s ease-in-out;
}

#newItemModal button:hover {
    opacity: 0.9;
}

@media (min-width: 48em){

    #topbarmenu {
        justify-content: space-between !important;;
    }

    .app-header--discovery-detail #topbarmenu {
        justify-content: space-between !important;
    }

    .app-header--discovery-detail #headerControlsRow {
        width: min(100%, 29rem);
        margin-left: auto;
        margin-right: auto;
    }

    .app-header--discovery-detail #headerControlsRow .relative {
        flex: 0 1 22.5rem;
        width: min(100%, 22.5rem);
    }

}


/* Add any additional custom styles here */
.prevent-select {
-webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera, and Firefox */
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

.visibleV {
  visibility: true; /* or flex */
}

.hiddenV {
  visibility: hidden;
}


@-moz-keyframes fadeOut {
    from {opacity:1;}
    to {opacity:0;}
}

@-webkit-keyframes fadeOut {
    from {opacity:1;}
    to {opacity:0;}
}
@keyframes fadeOut {
    from {opacity:1;}
    to {opacity:0;}
}

.fadeout{
    -webkit-animation: fadeOut 1000ms;
    -moz-animation: fadeOut 1000ms;
    animation: fadeOut 1000ms;
}


.iimg {
    pointer-events: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.editable {
    touch-action: pan-y pinch-zoom;
}


.active-edit{
    opacity: 0.5;
}

@keyframes skew-x-shake {
  0% { transform: skewX(-15deg); }
  5% { transform: skewX(15deg); }
  10% { transform: skewX(-15deg); }
  15% { transform: skewX(15deg); }
  20% { transform: skewX(0deg); }
  100% { transform: skewX(0deg); }  
}
@keyframes jump-shaking {
  0% { transform: translateX(0) }
  25% { transform: translateY(-9px) }
  35% { transform: translateY(-9px) rotate(17deg) }
  55% { transform: translateY(-9px) rotate(-17deg) }
  65% { transform: translateY(-9px) rotate(17deg) }
  75% { transform: translateY(-9px) rotate(-17deg) }
  100% { transform: translateY(0) rotate(0) }
}
.skew-shake-x {
  /*animation: skew-x-shake 1.3s;*/
  animation: jump-shaking 0.43s
}
/*
:root {
  touch-action: pan-x pan-y;
  height: 100% 
}

html, body {margin: 0; height: 100%; overflow: hidden}
*/

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0 0.75rem calc(0.85rem + env(safe-area-inset-bottom));
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.bottom-bar__shell {
  position: relative;
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 0.2rem;
  width: min(calc(100vw - 1.5rem), var(--bottom-nav-shell-max-width));
  margin: 0 auto;
  padding: 0;
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
  isolation: isolate;
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
}

.bottom-bar__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.55), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.bottom-bar__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  min-width: 0;
  padding: 0.15rem 0;
  border: 0;
  border-radius: 1.5rem;
  background: transparent;
  color: var(--bottom-nav-text);
  cursor: pointer;
  transition: transform 140ms ease, color 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-bar__item:hover {
  color: var(--bottom-nav-text-active);
}

.bottom-bar__item:active {
  transform: translateY(1px) scale(0.985);
}

.bottom-bar__item:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.45);
  outline-offset: 2px;
}

.bottom-bar__item.is-active {
  color: var(--bottom-nav-text-active);
}

.bottom-bar__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 1.2rem;
  border: 1px solid transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.bottom-bar__item.is-active .bottom-bar__icon-wrap,
.bottom-bar__item--accent .bottom-bar__icon-wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.52));
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.bottom-bar__item--accent {
  color: var(--bottom-nav-accent);
}

.bottom-bar__item--accent .bottom-bar__icon-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(0, 122, 255, 0.18)),
    rgba(255, 255, 255, 0.7);
}

.bottom-bar__item svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.bottom-bar__icon-wrap--avatar {
  overflow: hidden;
}

.bottom-bar__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.bottom-bar__item--avatar .bottom-bar__icon-wrap svg {
  width: 1.55rem;
  height: 1.55rem;
}

.bottom-bar__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bottom-bar__toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-reserved-space) - 0.35rem);
  transform: translate(-50%, 0.75rem);
  z-index: 45;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.bottom-bar__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.list-menu.is-open ~ .bottom-bar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + env(safe-area-inset-bottom) + 1rem));
}

.list-menu.is-open ~ .bottom-bar__toast {
  opacity: 0 !important;
  pointer-events: none;
  transform: translate(-50%, 1rem);
}

#newItemModal {
  z-index: 60 !important;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .bottom-bar__shell {
    background: rgba(255, 255, 255, 0.96);
  }
}

@media (min-width: 48em) {
  .bottom-bar {
    padding-bottom: 1rem;
  }

  .bottom-bar__shell {
    width: min(calc(100vw - 2rem), 26rem);
  }
}

// Hide the scrollbars for app-feeling
*::-webkit-scrollbar {
  display: none;
}
