:root {
    --system-footer-height: 3.25rem;
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    padding-bottom: 0;
}

.system-footer {
    position: relative;
    z-index: 10;
    flex: 0 0 auto;
    width: 100%;
    min-height: calc(var(--system-footer-height) + env(safe-area-inset-bottom, 0px));
    margin-top: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    color: #dbe8f3;
    background: #102a43;
    border-top: 0;
    box-shadow:
        inset 0 1px rgba(219, 232, 243, 0.16),
        0 -8px 24px rgba(5, 24, 39, 0.12);
}

body > .login-shell,
body > .admin-shell {
    min-height: 0;
    flex: 1 0 auto;
}

body > .login-shell > .login-context,
body > .login-shell > .login-entry {
    min-height: 0;
}

body > .admin-shell {
    display: flex;
    flex-direction: column;
}

body > .admin-shell > .admin-workspace {
    min-height: 0;
    flex: 1 0 auto;
}

body > .admin-shell .admin-rail {
    min-height: 100%;
}

.system-footer__inner {
    display: grid;
    width: min(100%, 1200px);
    min-height: var(--system-footer-height);
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem 1.25rem;
    padding-inline: clamp(1rem, 4vw, 2rem);
    margin-inline: auto;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.72rem;
}

.system-footer__message {
    overflow: hidden;
    color: #a9bdd0;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-footer__actions,
.system-footer__credit {
    display: flex;
    align-items: center;
}

.system-footer__actions {
    justify-content: flex-end;
    gap: 0.75rem;
    white-space: nowrap;
}

.system-footer__credit {
    gap: 0.28rem;
    color: #a9bdd0;
}

.system-footer__credit svg {
    flex: 0 0 auto;
    color: #ff7864;
}

.system-footer__separator {
    width: 1px;
    height: 18px;
    background: rgba(219, 232, 243, 0.28);
}

.system-footer a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: #dbe8f3;
    font-weight: 750;
    text-underline-offset: 0.2rem;
}

.system-footer a:hover {
    color: #ffffff;
}

.system-footer__credit a {
    min-height: 44px;
    color: #dbe8f3;
}

.system-footer a:focus-visible {
    outline: 3px solid #f0a202;
    outline-offset: 1px;
}

@media (max-width: 820px) {
    .system-footer__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .system-footer__message {
        display: none;
    }
}

@media (max-width: 620px) {
    .system-footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.1rem;
        padding-block: 0.45rem;
    }

    .system-footer__actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 0.65rem;
    }
}

@media (max-width: 390px) {
    .system-footer__separator {
        display: none;
    }

    .system-footer__actions {
        flex-direction: column;
    }
}

@media print {
    body {
        display: block;
        padding-bottom: 0;
    }

    .system-footer {
        display: none;
    }
}
