/* A compact footer in document flow, with space reserved in chat workspaces. */
:root { --site-footer-height: 42px; }
.site-footer { box-sizing: border-box; width: 100%; min-height: var(--site-footer-height); margin: 0; border-top: 1px solid #eadfe7; background: #fcf9fc; color: #776779; font-family: var(--font-ui, ui-sans-serif, system-ui, -apple-system, sans-serif); }
.site-footer-inner { box-sizing: border-box; min-height: calc(var(--site-footer-height) - 1px); max-width: 1160px; margin: 0 auto; padding: 5px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-footer small { margin: 0; font-size: 11px; line-height: 1.4; }
.site-footer-brand { color: #68445e; font-weight: 650; }
.site-footer a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; color: #93476d; font-size: 11px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; border-radius: 5px; }
.site-footer a:hover { color: #702e50; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline: 2px solid #a63865; outline-offset: 3px; }
.site-footer svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; flex: none; }
.app-shell > .site-footer { width: calc(100% - 238px); margin-left: 238px; }
.app-shell:has(.room-app) > .site-footer { width: 100%; margin-left: 0; }
.app-shell .main-content:has(.dm-workspace) { height: calc(100dvh - var(--dm-top, 74px) - var(--site-footer-height)); }
.app-shell .main-content:has(.room-app) { height: calc(100dvh - 74px - var(--site-footer-height)); }
#admin-main > .site-footer { margin-top: 28px; }
@media (max-width: 767px) {
    .app-shell > .site-footer { width: 100%; margin-left: 0; }
    .site-footer-inner { padding-inline: 16px; gap: 8px; }
    .app-shell .main-content:has(.dm-workspace) { height: calc(100dvh - var(--dm-top, 124px) - var(--site-footer-height)); }
}
@media (max-width: 767px) {
    .app-shell .main-content:has(.room-app) { height: calc(100dvh - 64px - var(--site-footer-height)); }
}
@media (max-width: 380px) { .site-footer-rights { display: none; } }

/* Fill short pages without fixing the footer over scrollable content. */
body:has(> .site-footer), body:has(> .admin-layout) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
}
body:has(> .site-footer) > *, body:has(> .admin-layout) > * { flex-shrink: 0; }
body > .site-footer { margin-top: auto; }
body > .privacy-shell { width: 100%; }
.admin-layout:has(.site-footer) { display: flex; flex-direction: column; flex: 1 0 auto; }
.admin-layout:has(.site-footer) > .admin-topbar { flex-shrink: 0; }
.admin-layout:has(.site-footer) > #admin-main {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}
#admin-main:has(> .site-footer) > * { flex-shrink: 0; }
#admin-main > .site-footer { margin-top: auto; }
