:root {
    color-scheme: light;
    --bd-ink: #202733;
    --bd-muted: #687385;
    --bd-blue: #315efb;
    --bd-orange: #f7931e;
    --bd-button: #343a40;
    --bd-button-hover: #23272b;
    --bd-line: #e8ebf0;
    --bd-canvas: #f7f8fa;
}

body {
    min-height: 100vh;
    color: var(--bd-ink);
    background: var(--bd-canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html,
body {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.app-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.app-body.app-authenticated {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.app-authenticated .app-topbar {
    z-index: 1030;
    flex: 0 0 auto;
}

.app-authenticated .app-shell {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.app-authenticated .app-sidebar {
    position: relative;
    z-index: 1020;
    height: 100%;
    overflow: visible;
}

.app-authenticated .app-content-column {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.app-main {
    flex: 1 0 auto;
    min-height: auto;
    overflow: visible;
}

.login-page {
    min-height: 100%;
    align-items: center;
}

.app-footer {
    flex: 0 0 auto;
    color: var(--bd-muted);
    background: transparent;
    border: 0;
}

.app-topbar {
    min-height: 46px;
    padding-top: .25rem;
    padding-bottom: .25rem;
    border-color: var(--bd-line) !important;
}

.navbar-brand {
    color: var(--bd-orange);
    padding-top: .15rem;
    padding-bottom: .15rem;
    font-size: 1rem;
    letter-spacing: -.02em;
}

.navbar-brand:hover {
    color: #e5820b;
}

.app-shell {
    display: flex;
    flex: 1 0 auto;
    min-width: 0;
}

.app-content-column {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
}

.app-sidebar {
    flex: 0 0 58px;
    width: 58px;
    background: #fff;
    border-right: 1px solid var(--bd-line);
}

.app-sidebar-nav {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: .4rem;
    padding: .75rem .45rem;
}

.app-sidebar-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--bd-muted);
    text-decoration: none;
    border-radius: .65rem;
}

.app-sidebar-link:hover {
    color: var(--bd-ink);
    background: #f1f3f6;
}

.app-sidebar-link.active {
    color: #fff;
    background: var(--bd-button);
}

.app-sidebar-link i {
    font-size: 1rem;
}

.login-brand-logo {
    display: block;
    width: 64px;
    height: 64px;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
}

.signup-page .card-body {
    padding: 1rem !important;
}

.signup-page .login-brand-logo {
    width: 48px;
    height: 48px;
}

.signup-page .mb-3 {
    margin-bottom: .5rem !important;
}

.form-message:empty {
    display: none;
}

.form-message {
    margin-bottom: .75rem;
}

.card {
    border-radius: 14px;
}

.btn-primary {
    --bs-btn-bg: var(--bd-button);
    --bs-btn-border-color: var(--bd-button);
    --bs-btn-hover-bg: var(--bd-button-hover);
    --bs-btn-hover-border-color: var(--bd-button-hover);
    --bs-btn-active-bg: var(--bd-button-hover);
    --bs-btn-active-border-color: var(--bd-button-hover);
    --bs-btn-focus-shadow-rgb: 52, 58, 64;
}

.btn-outline-primary {
    --bs-btn-color: var(--bd-button);
    --bs-btn-border-color: var(--bd-button);
    --bs-btn-hover-bg: var(--bd-button);
    --bs-btn-hover-border-color: var(--bd-button);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--bd-button-hover);
    --bs-btn-active-border-color: var(--bd-button-hover);
    --bs-btn-focus-shadow-rgb: 52, 58, 64;
}
