:root {
    --app-sidebar-width: 235px;
}

body {
    background: #f6f7fb;
    color: #2b2f36;
    font-family: "Roboto Condensed", Arial, sans-serif;
    min-height: 100vh;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

input,
select,
textarea,
button {
    min-width: 0;
}

body.app-sidebar-lock {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

a {
    color: #d84f2a;
}

a:hover,
a:focus {
    color: #a93618;
}

.top-bar {
    background: #20242c;
    border-bottom: 1px solid rgba(216, 79, 42, 0.4);
    box-shadow: 0 8px 20px rgba(19, 31, 46, 0.12);
    color: #f8f9fa;
    font-size: 0.875rem;
    position: relative;
    z-index: 1050;
}

.top-bar-inner {
    align-items: center;
    display: flex;
    gap: 1rem;
    min-height: 64px;
    padding: 0.55rem 1.25rem;
}

.top-bar a {
    color: #f8f9fa;
    text-decoration: none;
}

.top-brand {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.75rem;
    min-width: 215px;
}

.top-brand:hover,
.top-brand:focus {
    color: #fff;
}

.top-brand-logo {
    align-items: center;
    background: #fff;
    border-radius: 8px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    padding: 0.25rem 0.45rem;
    width: 56px;
}

.top-brand-logo img {
    display: block;
    max-height: 30px;
    max-width: 48px;
    object-fit: contain;
    width: auto;
}

.top-brand-text {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    white-space: nowrap;
}

.top-nav {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 0.2rem;
    justify-content: center;
    min-width: 0;
}

.top-nav-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 0.45rem;
    justify-content: center;
    line-height: 1;
    min-height: 40px;
    padding: 0.62rem 0.78rem;
    text-transform: uppercase;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.top-nav-toggle:hover,
.top-nav-toggle:focus,
.top-nav-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.top-nav-link {
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.76) !important;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.58rem 0.72rem;
    position: relative;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.top-nav-link:hover,
.top-nav-link:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    transform: translateY(-1px);
}

.top-nav-link.active {
    background: #fff5f1;
    color: #d84f2a !important;
}

.top-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.65rem;
    justify-content: flex-end;
}

.top-primary-action {
    align-items: center;
    background: #d84f2a;
    border: 1px solid #d84f2a;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(216, 79, 42, 0.18);
    color: #fff !important;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 0.45rem;
    line-height: 1;
    padding: 0.67rem 0.78rem;
    text-transform: uppercase;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.top-primary-action:hover,
.top-primary-action:focus {
    background: #bd3f1e;
    border-color: #bd3f1e;
    color: #fff !important;
    transform: translateY(-1px);
}

.top-account-dropdown {
    flex: 0 0 auto;
}

.top-account-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    gap: 0.5rem;
    max-width: 220px;
    min-height: 40px;
    padding: 0.22rem 0.6rem 0.22rem 0.24rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.top-account-button:hover,
.top-account-button:focus {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.26);
}

.top-account-avatar {
    align-items: center;
    background: #fff5f1;
    border-radius: 999px;
    color: #d84f2a;
    display: inline-flex;
    flex: 0 0 32px;
    font-size: 0.78rem;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.top-account-name {
    display: inline-block;
    font-weight: 800;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-account-menu {
    border: 1px solid #e2e6ed;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(19, 31, 46, 0.16);
    margin-top: 0.45rem !important;
    min-width: 190px;
    padding: 0.45rem;
}

.top-account-menu .dropdown-item {
    border-radius: 6px;
    color: #17202b;
    font-weight: 700;
    padding: 0.55rem 0.65rem;
}

.top-account-menu .dropdown-item:hover,
.top-account-menu .dropdown-item:focus {
    background: #fff5f1;
    color: #d84f2a;
}

.top-auth-links {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    font-weight: 800;
}

.top-auth-links a {
    color: rgba(255, 255, 255, 0.82);
}

.top-auth-links a:hover,
.top-auth-links a:focus {
    color: #fff;
}

@media (max-width: 1199.98px) {
    .top-brand {
        min-width: 185px;
    }

    .top-account-name {
        max-width: 96px;
    }
}

@media (max-width: 991.98px) {
    .top-bar-inner {
        flex-wrap: wrap;
    }

    .top-nav {
        flex: 1 0 100%;
        gap: 0.45rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        order: 4;
        width: 100%;
    }

    .top-nav.show,
    .top-nav.collapsing {
        display: grid !important;
    }

    .top-nav-link {
        align-items: center;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        justify-content: center;
        min-height: 42px;
        padding: 0.7rem 0.55rem;
        text-align: center;
    }

    .top-actions {
        margin-left: auto;
    }

    .top-nav-toggle {
        margin-left: auto;
    }
}

.app-header {
    background: #fff;
    border-bottom: 1px solid #e4e7ee;
    padding: 1.25rem 0;
}

.app-header .container {
    flex-wrap: wrap;
}

.brand-mark img {
    max-height: 52px;
}

.navbar-theme {
    background: #d84f2a;
}

.navbar-theme .nav-link,
.navbar-theme .navbar-brand {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.navbar-theme .nav-link:hover,
.navbar-theme .nav-link:focus {
    color: #fff3ee;
}

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

.sidebar-theme {
    background: #d84f2a;
    border-right: 1px solid #bd3f1e;
    color: #fff;
    flex: 0 0 var(--app-sidebar-width);
    min-height: 100%;
    padding: 0;
}

.sidebar-logo {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #bd3f1e;
    display: flex;
    justify-content: center;
    min-height: 94px;
    padding: 1rem;
}

.sidebar-logo img {
    display: block;
    max-height: 58px;
    max-width: 160px;
    width: auto;
}

.sidebar-header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 3.5rem;
    padding: 0 1rem;
}

.sidebar-brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
}

.sidebar-brand:hover,
.sidebar-brand:focus {
    color: #fff3ee;
}

.sidebar-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.sidebar-nav {
    gap: 0;
    padding: 0.4rem 0;
}

.sidebar-theme .nav-link {
    border-left: 4px solid transparent;
    border-radius: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0.78rem 1rem;
    text-transform: uppercase;
}

.sidebar-theme .nav-link:hover,
.sidebar-theme .nav-link:focus {
    background: #bd3f1e;
    color: #fff;
}

.sidebar-theme .nav-link.active {
    background: #20242c;
    border-left-color: #fff;
    color: #fff;
}

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

.app-shell-content > main {
    flex: 1 0 auto;
}

.theme-card {
    background: #fff;
    border: 1px solid #e2e6ed;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(24, 32, 46, 0.08);
    max-width: 100%;
}

.theme-card-header {
    border-bottom: 1px solid #e8ebf1;
    color: #20242c;
    font-weight: 700;
    letter-spacing: 0;
    padding: 1rem 1.25rem;
    text-transform: uppercase;
}

.theme-card-body {
    padding: 1.25rem;
}

.btn-theme {
    --bs-btn-bg: #d84f2a;
    --bs-btn-border-color: #d84f2a;
    --bs-btn-hover-bg: #bd3f1e;
    --bs-btn-hover-border-color: #bd3f1e;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.workflow-step {
    align-items: center;
    border-bottom: 1px solid #eceff4;
    display: flex;
    gap: 1rem;
    padding: 0.9rem 0;
}

.workflow-step:last-child {
    border-bottom: 0;
}

.workflow-step-number {
    align-items: center;
    background: #20242c;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 2.4rem;
    font-weight: 700;
    height: 2.4rem;
    justify-content: center;
    width: 2.4rem;
}

.free-account-toast {
    align-items: center;
    background: #fff7ed;
    border: 2px solid #d84f2a;
    border-left-width: 8px;
    box-shadow: 0 16px 34px rgba(216, 79, 42, 0.18);
    color: #20242c;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
}

.free-account-toast-icon {
    align-items: center;
    background: #d84f2a;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 2.75rem;
    font-size: 1.1rem;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.free-account-toast-body {
    flex: 1 1 auto;
    min-width: 0;
}

.free-account-toast-body strong {
    color: #20242c;
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.free-account-toast-body span {
    color: #4d5866;
    display: block;
    font-size: 0.98rem;
    line-height: 1.45;
}

.table-theme th {
    color: #20242c;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table {
    min-width: 680px;
}

.generated-output,
.generated-output *,
pre {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.footer-theme {
    background: #20242c;
    color: #dfe3ea;
    margin-top: 4rem;
    padding: 2rem 0;
}

.app-shell-content .footer-theme {
    flex: 0 0 auto;
    margin-top: 0;
}

.footer-theme a {
    color: #fff;
}

.footer-association {
    color: #dfe3ea;
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-association p {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

body.login-page {
    background:
        radial-gradient(circle at 9% 4%, rgba(216, 79, 42, 0.22), transparent 26rem),
        linear-gradient(135deg, #eef2f6 0%, #f8fafc 46%, #e9eef5 100%);
    color: #20242c;
    min-height: 100vh;
}

.login-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1.25rem;
}

.login-panel {
    background: #fff;
    border: 8px solid rgba(220, 229, 238, 0.88);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(30, 39, 54, 0.18);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    min-height: 650px;
    max-width: 1080px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.login-visual {
    background:
        linear-gradient(135deg, rgba(32, 36, 44, 0.5), rgba(216, 79, 42, 0.4)),
        url("../images/header-bg.jpg") center / cover no-repeat;
    min-height: 100%;
    overflow: hidden;
    position: relative;
}

.login-visual::before {
    background: rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    content: "";
    height: 15rem;
    left: -4.5rem;
    position: absolute;
    top: -6rem;
    width: 15rem;
}

.login-visual::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.2));
    bottom: -9rem;
    content: "";
    filter: blur(1px);
    height: 22rem;
    position: absolute;
    right: -8rem;
    transform: rotate(-22deg);
    width: 17rem;
}

.login-visual-copy {
    bottom: 2.5rem;
    color: #fff;
    left: 2.5rem;
    max-width: 27rem;
    position: absolute;
    right: 2.5rem;
    z-index: 1;
}

.login-visual-label {
    background: rgba(32, 36, 44, 0.82);
    border-left: 4px solid #fff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 1rem;
    padding: 0.45rem 0.7rem;
    text-transform: uppercase;
}

.login-visual-copy h2 {
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 700;
    line-height: 1.06;
    margin: 0 0 1.5rem;
    max-width: 24rem;
}

.login-visual-stack {
    display: grid;
    gap: 0.75rem;
}

.login-preview-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid #d84f2a;
    box-shadow: 0 14px 30px rgba(18, 24, 33, 0.18);
    color: #20242c;
    padding: 0.8rem 0.95rem;
}

.login-preview-card span {
    color: #d84f2a;
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.login-preview-card strong {
    display: block;
    font-size: 1rem;
    line-height: 1.15;
}

.login-preview-card small {
    color: #667085;
    display: block;
    line-height: 1.35;
    margin-top: 0.25rem;
}

.login-form-panel {
    align-items: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem clamp(2rem, 5vw, 4.75rem);
    position: relative;
}

.login-close {
    align-items: center;
    color: #92a0af;
    display: inline-flex;
    font-size: 1rem;
    height: 2.25rem;
    justify-content: center;
    position: absolute;
    right: 1rem;
    text-decoration: none;
    top: 1rem;
    width: 2.25rem;
}

.login-close:hover,
.login-close:focus {
    color: #d84f2a;
}

.login-brand {
    align-items: center;
    color: #20242c;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.login-brand-mark {
    align-items: center;
    background: #d84f2a;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.login-heading {
    margin-bottom: 1.65rem;
    text-align: center;
    width: 100%;
}

.login-heading h1 {
    color: #263142;
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

.login-heading p,
.login-legal,
.login-help {
    color: #7a8492;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.login-heading a,
.login-help a,
.login-legal a {
    color: #d84f2a;
    font-weight: 700;
    text-decoration: none;
}

.login-heading a:hover,
.login-help a:hover,
.login-legal a:hover {
    color: #a93618;
    text-decoration: underline;
}

.login-alert {
    border-radius: 4px;
    max-width: 22rem;
    width: 100%;
}

.login-form {
    max-width: 22rem;
    width: 100%;
}

.login-field {
    margin-bottom: 0.85rem;
    position: relative;
}

.login-form .form-control {
    background: #fff;
    border: 1px solid #dde3eb;
    border-radius: 3px;
    box-shadow: none;
    color: #20242c;
    font-size: 0.95rem;
    height: 3.35rem;
    padding: 0.85rem 1rem;
}

.login-form .form-control:focus {
    border-color: #d84f2a;
    box-shadow: 0 0 0 0.18rem rgba(216, 79, 42, 0.14);
}

.login-form .form-control::placeholder {
    color: #9aa5b3;
}

.login-password-field .form-control {
    padding-right: 3rem;
}

.login-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #a7b0bd;
    display: inline-flex;
    height: 3.35rem;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 3rem;
}

.login-password-toggle:hover,
.login-password-toggle:focus {
    color: #d84f2a;
}

.login-submit {
    border-radius: 3px;
    font-size: 0.95rem;
    height: 3.35rem;
    margin-top: 0.25rem;
    width: 100%;
}

.login-help {
    margin-top: 0.85rem;
    max-width: 22rem;
    text-align: right;
    width: 100%;
}

.login-legal {
    border-top: 1px solid #edf0f4;
    line-height: 1.6;
    margin-top: 1.75rem;
    max-width: 22rem;
    padding-top: 1.25rem;
    width: 100%;
}

.auth-check {
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0.35rem 0 0.9rem;
    max-width: 22rem;
}

.auth-check .form-check-input {
    border-color: #cfd6df;
    border-radius: 3px;
    box-shadow: none;
    margin-top: 0.2rem;
}

.auth-check .form-check-input:checked {
    background-color: #d84f2a;
    border-color: #d84f2a;
}

.auth-check a {
    color: #d84f2a;
    font-weight: 700;
    text-decoration: none;
}

.auth-check a:hover,
.auth-check a:focus {
    color: #a93618;
    text-decoration: underline;
}

.auth-message-panel {
    align-items: center;
    background: #fff;
    border: 8px solid rgba(220, 229, 238, 0.88);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(30, 39, 54, 0.18);
    color: #20242c;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    padding: 3rem;
    position: relative;
    text-align: center;
    width: 100%;
}

.auth-message-panel h1 {
    color: #263142;
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.65rem;
}

.auth-message-panel p {
    color: #667085;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.auth-message-icon {
    align-items: center;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 1.4rem;
    height: 4rem;
    justify-content: center;
    margin-bottom: 1.2rem;
    width: 4rem;
}

.auth-message-icon.success {
    background: #198754;
}

.auth-message-icon.danger {
    background: #d84f2a;
}

@media (min-width: 992px) {
    .login-visual-copy {
        bottom: auto;
        top: 2.25rem;
    }

    .login-visual-copy h2 {
        font-size: clamp(1.75rem, 2.7vw, 2.35rem);
        margin-bottom: 1.25rem;
    }

    .login-visual-stack {
        gap: 0.65rem;
    }

    .login-preview-card {
        padding-bottom: 0.68rem;
        padding-top: 0.68rem;
    }

    .sidebar-theme {
        height: 100%;
        overflow-y: auto;
        position: static;
        top: 0;
    }
}

@media (max-width: 991.98px) {
    body.app-sidebar-lock {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .app-shell {
        display: block;
        min-height: auto;
        overflow: visible;
    }

    .app-shell-content {
        display: block;
        overflow: visible;
    }

    .login-shell {
        align-items: flex-start;
        min-height: 100vh;
        padding: 1rem;
    }

    .login-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-visual {
        min-height: 260px;
    }

    .login-visual-copy {
        bottom: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
    }

    .login-visual-copy h2 {
        max-width: 38rem;
    }

    .login-visual-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .login-form-panel {
        padding: 2.5rem 1.5rem;
    }

    .sidebar-theme {
        border-bottom: 1px solid #bd3f1e;
        border-right: 0;
        min-height: auto;
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 1030;
    }

    .sidebar-logo {
        justify-content: flex-start;
        min-height: 64px;
        padding: 0.7rem 1rem;
    }

    .sidebar-logo img {
        max-height: 42px;
        max-width: 136px;
    }

    .sidebar-header {
        min-height: 3rem;
    }

    .sidebar-header {
        margin-bottom: 0;
    }

    .sidebar-nav {
        max-height: calc(100vh - 112px);
        overflow-y: auto;
        padding-top: 0.4rem;
    }

    .app-shell-content > main.container,
    main.container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1.25rem !important;
        padding-bottom: 1.5rem !important;
    }

    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .theme-card-header,
    .theme-card-body {
        padding: 1rem;
    }

    main .d-flex.justify-content-between.align-items-center,
    main .d-flex.align-items-center.justify-content-between {
        align-items: stretch !important;
        flex-direction: column;
    }

    main .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    main .btn-group > .btn {
        border-radius: 6px !important;
    }

    .free-account-toast {
        align-items: stretch;
        flex-direction: column;
    }

    .free-account-toast .btn {
        align-self: flex-start;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 0.95rem;
    }

    .top-bar-inner {
        align-items: stretch;
        display: grid;
        gap: 0.65rem;
        min-height: 0;
        padding: 0.75rem 0.85rem;
    }

    .top-brand {
        justify-content: center;
        min-width: 0;
        width: 100%;
    }

    .top-nav {
        grid-template-columns: 1fr;
        margin: 0;
    }

    .top-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .top-primary-action,
    .top-nav-toggle,
    .top-account-button,
    .top-auth-links {
        justify-content: center;
        width: 100%;
    }

    .top-account-name {
        max-width: none;
    }

    .sidebar-logo {
        min-height: 56px;
        padding: 0.6rem 0.85rem;
    }

    .sidebar-logo img {
        max-height: 36px;
        max-width: 120px;
    }

    .sidebar-brand {
        font-size: 0.95rem;
    }

    .sidebar-theme .nav-link {
        font-size: 0.86rem;
        padding: 0.68rem 0.85rem;
    }

    .login-shell {
        padding: 0;
    }

    .login-panel {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .auth-message-panel {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        justify-content: center;
        max-width: none;
        min-height: 100vh;
        padding: 2rem 1rem;
    }

    .login-visual {
        min-height: 190px;
    }

    .login-visual::before {
        height: 11rem;
        width: 11rem;
    }

    .login-visual-copy {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .login-visual-label {
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
    }

    .login-visual-copy h2 {
        font-size: 1.45rem;
        margin-bottom: 0;
    }

    .login-visual-stack {
        display: none;
    }

    .login-form-panel {
        justify-content: flex-start;
        padding: 2.25rem 1rem;
    }

    .login-brand {
        margin-bottom: 1.4rem;
    }

    .login-heading {
        margin-bottom: 1.25rem;
    }

    .login-form,
    .login-alert,
    .login-help,
    .login-legal {
        max-width: none;
    }

    .app-shell-content > main.container,
    main.container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-top: 1rem !important;
    }

    .theme-card {
        border-radius: 6px;
    }

    .theme-card-header,
    .theme-card-body {
        padding: 0.85rem;
    }

    .btn {
        white-space: normal;
    }

    .btn-theme,
    .btn-outline-secondary,
    .btn-outline-danger,
    .btn-outline-warning {
        width: 100%;
    }

    main form.d-flex {
        align-items: stretch !important;
        flex-direction: column;
    }

    main form.d-flex .btn,
    main form.d-flex .form-select,
    main form.d-flex .form-control {
        width: 100%;
    }

    .footer-theme {
        padding: 1.25rem 0;
        text-align: center;
    }

    .footer-association {
        font-size: 0.86rem;
    }
}
