.site-feed-shell {
    --sentioo-primary: #0069b2;
    --sentioo-primary-dark: #003f91;
    --sentioo-primary-contrast: #fff;
    --sentioo-primary-soft: #e8f5ff;
    --sentioo-accent: #00e8e8;
    --sentioo-accent-readable: #005d5d;
    --sentioo-accent-soft: #e6fffc;
    --sentioo-ink: #1c1c1c;
    --sentioo-muted: #606b7b;
    --sentioo-line: #e8edf2;
    --sentioo-soft: #f5f9ff;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: #fff;
    color: var(--sentioo-ink);
}

.site-feed-shell[data-site-custom-palette="1"] {
    --sentioo-primary: var(--brand, #0069b2);
    --sentioo-primary-dark: color-mix(in srgb, var(--brand, #0069b2) 82%, #000);
    --sentioo-primary-contrast: var(--brand-contrast, #fff);
    --sentioo-primary-soft: color-mix(in srgb, var(--brand, #0069b2) 10%, var(--page-bg, #fff));
    --sentioo-accent: var(--accent, #00e8e8);
    --sentioo-accent-readable: var(--accent-readable, #005d5d);
    --sentioo-accent-soft: color-mix(in srgb, var(--accent, #00e8e8) 12%, var(--page-bg, #fff));
}

.site-feed-shell #site-content {
    flex: 1 0 auto;
}

.feed-shell-header {
    position: relative;
    z-index: 40;
    border-bottom: 1px solid var(--sentioo-line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}

.feed-shell-header-inner,
.feed-shell-footer-inner {
    width: min(1400px, calc(100% - 2rem));
    margin: 0 auto;
}

.feed-shell-header-inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.feed-shell-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    color: var(--sentioo-ink);
    font-family: var(--site-heading-font-family);
    font-weight: 600;
    text-decoration: none;
}

.feed-shell-brand img {
    width: auto;
    max-width: min(160px, 30vw);
    height: 40px;
    flex: 0 1 auto;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.feed-shell-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-shell-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feed-shell-action,
.feed-shell-switcher > summary {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--sentioo-line);
    border-radius: 999px;
    background: #fff;
    padding: 0.55rem 0.75rem;
    color: var(--sentioo-ink);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.feed-shell-action:hover,
.feed-shell-action:focus-visible,
.feed-shell-switcher > summary:hover,
.feed-shell-switcher > summary:focus-visible {
    border-color: var(--sentioo-primary);
    color: var(--sentioo-primary);
}

.feed-shell-cart {
    position: relative;
}

.feed-shell-cart .site-cart-badge {
    display: grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 999px;
    background: var(--sentioo-primary);
    padding: 0 0.3rem;
    color: var(--sentioo-primary-contrast);
    font-size: 0.67rem;
}

.feed-shell-switcher {
    position: relative;
}

.feed-shell-switcher > summary {
    cursor: pointer;
    list-style: none;
}

.feed-shell-switcher > summary::-webkit-details-marker {
    display: none;
}

.feed-shell-switcher-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 50;
    display: grid;
    min-width: 150px;
    overflow: hidden;
    border: 1px solid var(--sentioo-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .14);
    padding: 0.35rem;
}

.feed-shell-switcher-options button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0.65rem 0.75rem;
    color: var(--sentioo-ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.feed-shell-switcher-options button:hover,
.feed-shell-switcher-options button.is-active {
    background: var(--sentioo-primary-soft);
    color: var(--sentioo-primary);
}

.feed-shell-switcher .site-language-flag {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff;
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .14);
}

.feed-shell-footer {
    border-top: 1px solid var(--sentioo-line);
    background: #fff;
    color: var(--sentioo-muted);
    font-size: 0.82rem;
}

.feed-shell-footer-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.feed-shell-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
}

.feed-shell-footer-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    color: var(--sentioo-ink);
    text-decoration: none;
}

.feed-shell-footer-brand img {
    display: block;
    width: auto;
    max-width: 132px;
    height: 38px;
    object-fit: contain;
}

.feed-shell-footer-brand strong {
    overflow: hidden;
    max-width: 24ch;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-shell-footer a {
    color: var(--sentioo-primary);
    font-weight: 600;
    text-decoration: none;
}

.feed-shell-footer a:hover,
.feed-shell-footer a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-feed-shell .site-not-found {
    display: grid;
    width: min(760px, calc(100% - 2rem));
    min-height: calc(100vh - 151px);
    margin: 0 auto;
    place-content: center;
    justify-items: center;
    padding: 3rem 0;
    color: var(--sentioo-ink);
    text-align: center;
}

.site-feed-shell .site-not-found-code {
    margin: 0 0 0.25rem;
    color: var(--sentioo-primary);
    font-size: clamp(4rem, 14vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1;
}

.site-feed-shell .site-not-found h1 {
    margin: 0;
    font-family: var(--site-heading-font-family);
    font-size: clamp(1.8rem, 5vw, 2.75rem);
    line-height: 1.15;
}

.site-feed-shell .site-not-found > p:not(.site-not-found-code) {
    max-width: 52ch;
    margin: 1rem 0 0;
    color: var(--sentioo-muted);
}

.site-feed-shell .site-not-found .pill.primary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border: 1px solid var(--sentioo-primary);
    border-radius: 999px;
    background: var(--sentioo-primary);
    padding: 0.7rem 1rem;
    color: var(--sentioo-primary-contrast);
    font-weight: 600;
    text-decoration: none;
}

.site-feed-shell .site-not-found .pill.primary:hover,
.site-feed-shell .site-not-found .pill.primary:focus-visible {
    border-color: var(--sentioo-primary-dark);
    background: var(--sentioo-primary-dark);
    color: var(--sentioo-primary-contrast);
}

@media (max-width: 760px) {
    .feed-shell-header-inner,
    .feed-shell-footer-inner {
        width: min(calc(100% - 1.25rem), 1400px);
    }

    .feed-shell-action-label {
        display: none;
    }

    .feed-shell-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.25rem 0;
    }

    .feed-shell-footer nav {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .feed-shell-actions {
        gap: 0.3rem;
    }

    .feed-shell-action,
    .feed-shell-switcher > summary {
        min-width: 38px;
        min-height: 38px;
        padding: 0.45rem;
    }

    .feed-shell-brand span {
        max-width: 120px;
    }
}
