html {
    direction: rtl;
}

body.app-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f4f6f8;
    color: #1f2933;
}

.app-header {
    background: #fff;
    border-bottom: 1px solid #e5e9ef;
}

.app-header .navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-weight: 700;
    color: #12344d;
}

.brand-mark {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #0d6efd;
    display: inline-block;
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #334155;
}

.user-role {
    font-size: 0.8rem;
    color: #64748b;
}

.app-main {
    flex: 1 0 auto;
}

.landing {
    display: flex;
    justify-content: center;
}

.landing-card,
.auth-card,
.dashboard-page {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.landing-card {
    max-width: 40rem;
    text-align: center;
}

.landing-kicker {
    color: #0d6efd;
    font-weight: 600;
}

.landing-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #12344d;
}

.landing-lead {
    color: #52606d;
}

.auth-page {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 26rem;
}

.auth-card-wide {
    max-width: 32rem;
}

.identity-list {
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.identity-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 0.75rem;
}

.identity-list dt {
    font-weight: 600;
    color: #52606d;
}

.identity-list dd {
    margin: 0;
    text-align: start;
}

.flash-stack .alert:last-child {
    margin-bottom: 0;
}

.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-page .table {
    margin-bottom: 0;
}

.activation-url {
    word-break: break-all;
}

@media (max-width: 767.98px) {
    .user-meta {
        padding: 0.5rem 0;
    }
}