.shell {
    --ink: #070707;
    --bone: #f1f0ec;
    --paper: #ffffff;
    --stone: #57544d;
    --line: #d8d6d0;
    --gold: #d0a73c;
    --crimson: #c8102e;
    --rail: 250px;

    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    background: var(--bone);
    color: #1a1917;
}

.shell__rail {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid #1f1f1f;
    background: var(--ink);
}

.shell__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bone);
}

.shell__top {
    background: var(--ink);
    border-bottom: 0;
    padding: 0.75rem 2.25rem;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.shell__brand {
    color: #25231f;
    text-decoration: none;
    display: block;
    height: 100%;
    flex: 1 1 auto;
    min-width: 0;
    background: var(--ink);
}

.shell__brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 640px;
    object-fit: contain;
    object-position: left center;
}

.shell__content {
    padding: 0 2.25rem 2rem;
    flex: 1;
}

.shell__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0 2.25rem;
    background: #000000 !important;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    overflow: hidden;
}

.shell__footer-simple {
    width: 100%;
    height: 56px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.shell__footer-simple-copy {
    color: #ffffff !important;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    text-align: left;
    white-space: nowrap;
}

.shell__footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-width: 0;
}

.shell__footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.shell__footer-contact-link:hover {
    color: #d0a73c !important;
}

.shell__footer-contact-icon {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: #ffffff !important;
    fill: currentColor;
}

.shell__footer-simple-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.rail__head {
    position: relative;
    min-height: 6.25rem;
    padding: 0.95rem 1.15rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rail__brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 3.2rem);
}

.rail__brand-logo {
    display: block;
    width: auto;
    height: 140px;
    max-width: 100%;
    object-fit: contain;
}

.navbar-toggler {
    position: absolute;
    right: 0.9rem;
    top: 1rem;
    width: 2.2rem;
    height: 2rem;
    opacity: 0;
    z-index: 3;
}

.burger {
    position: absolute;
    right: 0.9rem;
    top: 1.05rem;
    width: 2rem;
    height: 1.7rem;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger i {
    display: block;
    height: 2px;
    background: rgba(255, 255, 255, 0.82);
}

.nav-scrollable {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block;
}

.rail__nav {
    padding: 1rem 0.45rem 0;
    color: #fff;
}

.navgroup {
    margin-bottom: 1rem;
}

.navgroup .mud-typography {
    margin: 0 0.7rem 0.55rem;
    color: #d0a73c;
    font-size: 0.73rem;
    letter-spacing: 0.2em;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    text-transform: uppercase;
}

.navlink {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-left: 2px solid transparent;
    color: #e8e8e8 !important;
    text-decoration: none;
    font-size: 1.02rem;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    letter-spacing: 0.02em;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.15rem;
}

.navlink .navlink__icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #cbb070;
    fill: currentColor;
    flex: 0 0 auto;
}

.navlink.active .navlink__icon {
    color: #ffffff;
}

.rail__nav a,
.rail__nav a:visited,
.rail__nav .navlink,
.rail__nav .navlink:visited {
    color: #e8e8e8 !important;
}

.navlink:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.navlink.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #c8102e;
}

.rail__foot {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin: 1.2rem 0 0;
    padding: 0.95rem 1.15rem 1.15rem;
}

.rail__user {
    color: #9f9f9f;
    font-size: 0.83rem;
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

.rail__signout {
    border: 0;
    background: transparent;
    color: #d0a73c;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    font-size: 0.9rem;
}

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
}

#components-reconnect-modal[open] {
    animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

#components-reconnect-modal button:hover {
    background-color: #3b6ea2;
}

#components-reconnect-modal button:active {
    background-color: #6b9ed2;
}

.components-rejoining-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.components-rejoining-animation div {
    position: absolute;
    border: 3px solid #0087ff;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

@media (min-width: 961px) {
    .burger,
    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        display: block;
        height: calc(100vh - 5rem);
        overflow-y: auto;
    }
}

@media (max-width: 1100px) {
    .shell {
        grid-template-columns: 230px minmax(0, 1fr);
    }
}

@media (max-width: 960px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .shell__rail {
        position: relative;
        height: auto;
    }

    .shell__top {
        padding: 0.55rem 1rem 0;
        height: 52px;
    }

    .shell__brand {
        width: min(380px, 100%);
    }

    .shell__content,
    .shell__footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .shell__footer {
        padding: 0 1rem;
    }

    .shell__footer-simple {
        height: 56px;
        grid-template-columns: auto 1fr auto;
        gap: 0.45rem;
    }

    .shell__footer-simple-copy {
        font-size: 0.62rem;
    }

    .shell__footer-contact {
        gap: 0.5rem;
    }

    .shell__footer-contact-link {
        font-size: 0.62rem;
    }

    .shell__footer-simple-logo {
        width: 18px;
        height: 18px;
    }

    .nav-scrollable {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-bottom: 0.9rem;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
