:root {
    --shell-bg: linear-gradient(135deg, #f5f7fb 0%, #edf3f7 48%, #e4edf5 100%);
    --shell-panel: rgba(255, 255, 255, 0.88);
    --shell-line: rgba(15, 23, 42, 0.08);
    --shell-text: #102033;
    --shell-muted: #526274;
    --shell-primary: #0b7285;
    --shell-primary-strong: #095c6b;
    --shell-accent: #f59e0b;
    --shell-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
    background: var(--shell-bg);
    color: var(--shell-text);
}

.site-shell {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0 0;
}

.site-shell__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--shell-line);
    border-radius: 24px;
    background: var(--shell-panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shell-shadow);
}

.site-shell__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.site-shell__logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(11, 114, 133, 0.22);
}

.site-shell__title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.site-shell__eyebrow {
    margin: 0;
    font-size: 0.8rem;
    color: var(--shell-muted);
}

.site-shell__eyebrow-short {
    display: none;
}

.site-shell__name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--shell-text);
}

.site-shell__links,
.site-shell__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.site-shell__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    color: var(--shell-text);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid transparent;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.site-shell__link:hover,
.site-shell__link:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(11, 114, 133, 0.16);
    background: rgba(255, 255, 255, 0.95);
}

.site-shell__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.site-shell__action:hover,
.site-shell__action:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
}

.site-shell__action--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--shell-primary) 0%, #1191a8 100%);
    box-shadow: 0 12px 28px rgba(11, 114, 133, 0.26);
}

.site-shell__action--secondary {
    color: var(--shell-text);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.08);
}

.site-shell__action--accent {
    color: #3a2a03;
    background: linear-gradient(135deg, #ffd166 0%, var(--shell-accent) 100%);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
}

.site-shell__action--danger {
    color: #fff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.site-shell__meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--shell-muted);
}

main,
.page-shell {
    padding-top: 1.5rem;
}

@media (max-width: 1080px) {
    .site-shell__nav {
        flex-direction: column;
        align-items: stretch;
    }

    .site-shell__links,
    .site-shell__actions {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .site-shell {
        padding-top: 0.5rem;
    }

    .site-shell__nav {
        gap: 0.85rem;
        padding: 0.85rem;
        border-radius: 18px;
    }

    .site-shell__brand {
        flex-direction: row;
        align-items: center;
        text-align: right;
        gap: 0.75rem;
    }

    .site-shell__logo {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        flex: 0 0 auto;
    }

    .site-shell__title {
        min-width: 0;
    }

    .site-shell__eyebrow {
        font-size: 0.72rem;
    }

    .site-shell__eyebrow-full {
        display: none;
    }

    .site-shell__eyebrow-short {
        display: inline;
    }

    .site-shell__name {
        font-size: 1rem;
        line-height: 1.2;
    }

    .site-shell__meta {
        display: none;
    }

    .site-shell__links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .site-shell__links::-webkit-scrollbar {
        display: none;
    }

    .site-shell__actions {
        width: 100%;
    }

    .site-shell__link {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.62rem 0.9rem;
        font-size: 0.92rem;
    }

    .site-shell__action {
        flex: 1 1 calc(50% - 0.5rem);
        min-height: 40px;
        padding: 0.68rem 0.85rem;
        font-size: 0.92rem;
    }
}

@media (max-width: 420px) {
    .site-shell__nav {
        padding: 0.75rem;
    }

    .site-shell__name {
        font-size: 0.94rem;
    }

    .site-shell__eyebrow {
        font-size: 0.68rem;
    }

    .site-shell__actions {
        gap: 0.5rem;
    }

    .site-shell__action {
        flex-basis: 100%;
    }
}
