:root {
    --app-background: #101218;
    --app-surface: #171a22;
    --app-surface-raised: #1d212b;
    --app-surface-soft: #222733;
    --app-sidebar: #0c0e13;
    --app-border: #2a303c;
    --app-border-strong: #394150;
    --app-text: #f4f5f7;
    --app-muted: #98a2b3;
    --app-muted-strong: #c2c8d0;
    --app-primary: #f5f7fa;
    --app-primary-text: #12151b;
    --app-blue: #6ea8fe;
    --app-success: #4ade80;
    --app-warning: #fbbf24;
    --app-danger: #fb7185;
    --sidebar-width: 240px;
    --topbar-height: 60px;
    --radius-sm: 7px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--app-background);
    color: var(--app-text);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--app-blue);
}

a:hover {
    color: #9ac2ff;
    text-decoration: none;
}

svg {
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-body {
    overflow: hidden;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    background: var(--app-sidebar);
    border-right: 1px solid var(--app-border);
    transition: transform 0.22s ease;
}

.sidebar-brand {
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    color: var(--app-text);
    border-bottom: 1px solid var(--app-border);
}

.sidebar-brand:hover {
    color: var(--app-text);
}

.sidebar-brand-logo {
    display: block;
    width: 204px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--app-primary-text);
    background: var(--app-primary);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
    width: 23px;
    height: 23px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 13px 10px;
}

.sidebar-group-label {
    padding: 16px 10px 6px;
    color: #697386;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sidebar-group-label:first-child {
    padding-top: 4px;
}

.sidebar-link {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 11px;
    margin-bottom: 3px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: #8f99a8;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.sidebar-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--app-text);
    background: #1a1e27;
}

.sidebar-link.active {
    box-shadow: inset 2px 0 0 var(--app-primary);
}

.sidebar-subnav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 5px 37px;
    padding-left: 10px;
    border-left: 1px solid var(--app-border);
}

.sidebar-subnav a {
    padding: 4px 0;
    color: #697386;
    font-size: 11px;
}

.sidebar-subnav a:hover {
    color: var(--app-muted-strong);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    padding: 13px 18px;
    border-top: 1px solid var(--app-border);
    color: var(--app-muted-strong);
    font-size: 11px;
}

.sidebar-footer small {
    color: #697386;
    font-size: 10px;
}

.sidebar-backdrop {
    display: none;
}

.app-workspace {
    display: flex;
    height: 100vh;
    min-width: 0;
    flex-direction: column;
    margin-left: var(--sidebar-width);
    background: var(--app-background);
    transition: margin-left 0.22s ease;
}

.app-body.sidebar-collapsed .app-sidebar {
    transform: translateX(-100%);
}

.app-body.sidebar-collapsed .app-workspace {
    margin-left: 0;
}

.app-topbar {
    position: relative;
    z-index: 1030;
    display: flex;
    min-height: var(--topbar-height);
    flex: 0 0 var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 22px;
    background: rgba(16, 18, 24, 0.94);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(16px);
}

.topbar-left {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.topbar-title {
    color: var(--app-text);
    font-size: 15px;
    font-weight: 600;
}

.sidebar-toggle {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--app-muted-strong);
    background: transparent;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-sm);
}

.sidebar-toggle svg {
    width: 18px;
    height: 18px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 7px;
    color: var(--app-text);
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
}

.user-menu:hover,
.user-menu:focus {
    color: var(--app-text);
    background: var(--app-surface);
    outline: 0;
}

.user-avatar {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: var(--app-primary-text);
    background: var(--app-primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.user-copy {
    display: flex;
    min-width: 100px;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.user-copy strong {
    max-width: 150px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-copy small {
    color: var(--app-muted);
    font-size: 10px;
}

.user-menu > svg {
    width: 15px;
    height: 15px;
    color: var(--app-muted);
}

.dropdown-menu {
    padding: 6px;
    color: var(--app-text);
    background: var(--app-surface-raised);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    padding: 8px 10px;
    color: var(--app-muted-strong);
    border-radius: 6px;
    font-size: 12px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--app-text);
    background: var(--app-surface-soft);
}

.dropdown-divider {
    border-top-color: var(--app-border);
}

.user-dropdown {
    width: 220px;
}

.dropdown-user-summary {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
}

.dropdown-user-summary strong {
    font-size: 12px;
}

.dropdown-user-summary small {
    overflow: hidden;
    color: var(--app-muted);
    font-size: 10px;
    text-overflow: ellipsis;
}

.app-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 22px;
}

.app-content-dashboard {
    overflow: hidden;
    padding: 18px;
}

.app-footer {
    flex: 0 0 auto;
    padding: 8px 22px 12px;
    color: #697386;
    font-size: 10px;
    text-align: center;
}

.flash-stack {
    position: fixed;
    z-index: 1060;
    top: 72px;
    right: 22px;
    width: min(420px, calc(100vw - 32px));
}

.flash-stack-auth {
    top: 20px;
}

.alert {
    color: var(--app-text);
    background: var(--app-surface-raised);
    border: 1px solid var(--app-border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 12px;
}

.alert-success {
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.35);
}

.alert-danger {
    color: #fecdd3;
    border-color: rgba(251, 113, 133, 0.35);
}

.alert-warning {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.35);
}

.alert-info {
    color: #bfdbfe;
    border-color: rgba(110, 168, 254, 0.35);
}

.alert .close {
    color: currentColor;
    text-shadow: none;
}

/* Authentication */
.auth-body {
    overflow-y: auto;
    background:
        radial-gradient(circle at 12% 18%, rgba(110, 168, 254, 0.08), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(74, 222, 128, 0.05), transparent 25%),
        var(--app-background);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
    padding: 34px 20px 18px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-brand-logo {
    display: block;
    width: 320px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-brand-name {
    color: var(--app-text);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-brand-caption {
    color: var(--app-muted);
    font-size: 10px;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.auth-footer {
    color: #697386;
    font-size: 10px;
    text-align: center;
}

.auth-card {
    width: min(100%, 430px);
    padding: 30px;
    background: rgba(23, 26, 34, 0.96);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-card-wide {
    width: min(100%, 480px);
}

.auth-card-header {
    margin-bottom: 24px;
    text-align: center;
}

.auth-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--app-primary);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: 13px;
}

.auth-icon svg {
    width: 25px;
    height: 25px;
}

.auth-card h1 {
    margin: 0;
    color: var(--app-text);
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.auth-card-header p {
    margin: 7px 0 0;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.55;
}

.auth-card .form-group {
    margin-bottom: 17px;
}

.auth-card .form-label,
.auth-card label {
    margin-bottom: 6px;
    color: var(--app-muted-strong);
    font-size: 11px;
    font-weight: 600;
}

.auth-card .form-control {
    height: 43px;
}

.auth-card textarea.form-control {
    height: auto;
}

.auth-submit {
    width: 100%;
    height: 43px;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 650;
}

.auth-link-row {
    margin: 17px 0 0;
    color: var(--app-muted);
    font-size: 11px;
    text-align: center;
}

.auth-link-row a {
    font-weight: 600;
}

.auth-helper-panel {
    margin: 14px 0 18px;
    padding: 13px 15px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    font-size: 11px;
}

.auth-helper-panel ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

.password-page {
    display: flex;
    min-height: 100%;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12px;
}

.settings-card {
    width: min(100%, 560px);
    padding: 26px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.settings-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: var(--app-blue);
    background: rgba(110, 168, 254, 0.11);
    border-radius: 10px;
}

.settings-icon svg {
    width: 20px;
    height: 20px;
}

.settings-card-header h1 {
    margin: 0;
    color: var(--app-text);
    font-size: 18px;
    font-weight: 650;
}

.settings-card-header p {
    margin: 5px 0 0;
    color: var(--app-muted);
    font-size: 11px;
}

.password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 14px;
    margin: -3px 0 18px;
    padding: 13px 15px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    font-size: 10px;
}

.password-rules strong {
    grid-column: 1 / -1;
    color: var(--app-muted-strong);
    font-size: 10px;
}

.password-rules span::before {
    content: "•";
    margin-right: 6px;
    color: var(--app-blue);
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 22px;
}

.error-card {
    text-align: center;
}

.error-card h1 {
    margin-bottom: 8px;
}

.error-card p {
    margin-bottom: 22px;
    color: var(--app-muted);
    font-size: 12px;
}

.error-code {
    margin-bottom: 8px;
    color: #697386;
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1;
}

.qr-frame {
    display: inline-flex;
    margin: 4px auto 20px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
}

.qr-frame img {
    width: 190px;
    height: 190px;
}

.otp-input {
    height: 52px !important;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.35em;
}

.recaptcha-container {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px 0;
}

.recaptcha-container > div {
    transform: scale(0.88);
    transform-origin: center;
}

/* Dashboard */
.dashboard-page {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    gap: 14px;
}

.report-toolbar {
    display: flex;
    min-height: 78px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 15px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
}

.report-toolbar.report-tools-hidden {
    display: none;
}

.report-selector-block {
    display: flex;
    min-width: 300px;
    align-items: center;
    gap: 11px;
}

.toolbar-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: var(--app-blue);
    background: rgba(110, 168, 254, 0.11);
    border-radius: 9px;
}

.toolbar-icon svg {
    width: 19px;
    height: 19px;
}

.report-selector-copy {
    width: min(360px, 40vw);
}

.report-selector-copy label {
    display: block;
    margin: 0 0 4px;
    color: var(--app-muted);
    font-size: 10px;
    font-weight: 600;
}

.report-status-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.report-status-copy,
.status-metric {
    display: flex;
    flex-direction: column;
}

.report-status-copy {
    min-width: 160px;
}

.status-label,
.status-metric span:first-child {
    color: var(--app-muted);
    font-size: 9px;
}

.report-status-copy strong,
.status-metric strong {
    max-width: 220px;
    overflow: hidden;
    color: var(--app-text);
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-error {
    margin: 0;
    color: var(--app-danger);
    font-size: 10px;
}

.report-view-card {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
}

.report-view-header {
    display: flex;
    min-height: 55px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-bottom: 1px solid var(--app-border);
}

.report-view-kicker {
    color: var(--app-muted);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.report-view-header h1 {
    margin: 1px 0 0;
    color: var(--app-text);
    font-size: 13px;
    font-weight: 600;
}

.report-view-actions {
    display: flex;
    gap: 7px;
}

.icon-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--app-muted-strong);
    background: transparent;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-sm);
    transition: color 0.16s ease, background-color 0.16s ease;
}

.icon-button:hover,
.icon-button:focus {
    color: var(--app-text);
    background: var(--app-surface-soft);
    outline: 0;
}

.icon-button.active,
.icon-button.fullscreen-active {
    color: var(--app-text);
    background: var(--app-surface-soft);
    border-color: var(--app-border-strong);
}

.icon-button svg {
    width: 17px;
    height: 17px;
}

#reportContainer {
    position: relative;
    min-height: 0;
    flex: 1;
    overflow: hidden;
    background: #f5f6f8;
}

#reportContainer iframe {
    position: absolute;
    z-index: 2;
    top: -42px;
    left: 0;
    width: 100%;
    height: calc(100% + 42px);
    border: 0;
}

.report-loading-state {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #667085;
    font-size: 12px;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d5dd;
    border-top-color: #344054;
    border-radius: 50%;
    animation: app-spin 0.8s linear infinite;
}

@keyframes app-spin {
    to { transform: rotate(360deg); }
}

/* Bootstrap and existing screens */
.container {
    max-width: 1180px;
}

.card {
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.card-title {
    color: var(--app-text);
    font-weight: 650;
}

.text-muted {
    color: var(--app-muted) !important;
}

.form-control,
.custom-select {
    color: var(--app-text);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border-strong);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.form-control:focus,
.custom-select:focus {
    color: var(--app-text);
    background: var(--app-surface-soft);
    border-color: var(--app-blue);
    box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.14);
}

.form-control::placeholder {
    color: #697386;
}

select.form-control option {
    color: var(--app-text);
    background: var(--app-surface-raised);
}

label {
    color: var(--app-muted-strong);
    font-size: 11px;
    font-weight: 600;
}

.btn {
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
}

.btn:hover {
    transform: none;
}

.btn-primary,
.btn-success {
    color: var(--app-primary-text);
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    color: #000;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.btn-secondary,
.btn-outline-secondary,
.btn-outline-light {
    color: var(--app-muted-strong);
    background: transparent;
    border-color: var(--app-border-strong);
}

.btn-secondary:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover {
    color: var(--app-text);
    background: var(--app-surface-soft);
    border-color: var(--app-border-strong);
}

.btn-warning {
    color: #1f1600;
    background: var(--app-warning);
    border-color: var(--app-warning);
}

.btn-danger {
    color: #fff;
    background: #be4057;
    border-color: #be4057;
}

.btn-info {
    color: #07141f;
    background: #7dd3fc;
    border-color: #7dd3fc;
}

.table-responsive {
    overflow: auto;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
}

.table {
    margin-bottom: 0;
    color: var(--app-muted-strong);
    background: transparent;
    font-size: 11px;
}

.table th,
.table td {
    padding: 11px 13px;
    vertical-align: middle;
    border-color: var(--app-border);
}

.table thead th,
.table .thead-light th {
    color: var(--app-muted);
    background: var(--app-surface-soft);
    border-color: var(--app-border);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.table-hover tbody tr:hover {
    color: var(--app-text);
    background: rgba(255, 255, 255, 0.025);
}

.badge {
    padding: 0.35em 0.65em;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 650;
}

.badge-success {
    color: #bbf7d0;
    background: rgba(74, 222, 128, 0.14);
}

.badge-danger {
    color: #fecdd3;
    background: rgba(251, 113, 133, 0.14);
}

.badge-warning {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.14);
}

.badge-info,
.badge-primary {
    color: #bfdbfe;
    background: rgba(110, 168, 254, 0.14);
}

.badge-secondary,
.badge-light,
.badge-dark {
    color: var(--app-muted-strong);
    background: var(--app-surface-soft);
}

.bg-success {
    color: #bbf7d0 !important;
    background: rgba(74, 222, 128, 0.14) !important;
}

.bg-danger {
    color: #fecdd3 !important;
    background: rgba(251, 113, 133, 0.14) !important;
}

.bg-warning {
    color: #fde68a !important;
    background: rgba(251, 191, 36, 0.14) !important;
}

.bg-secondary {
    color: var(--app-muted-strong) !important;
    background: var(--app-surface-soft) !important;
}

.full-height-container {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    color: var(--app-text);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border-strong);
    border-radius: var(--radius-sm);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--app-text);
    font-size: 12px;
    line-height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-dropdown {
    color: var(--app-text);
    background: var(--app-surface-raised);
    border-color: var(--app-border-strong);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: var(--app-text);
    background: var(--app-surface-soft);
}

.select2-search--dropdown .select2-search__field {
    color: var(--app-text);
    background: var(--app-surface-soft);
    border-color: var(--app-border-strong);
}

pre {
    color: var(--app-muted-strong);
}

@media (max-width: 1100px) {
    .report-status-panel {
        gap: 10px;
    }

    .status-metric {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-body.sidebar-collapsed .app-sidebar {
        transform: translateX(-100%);
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 1035;
        inset: 0;
        display: block;
        visibility: hidden;
        background: rgba(0, 0, 0, 0.58);
        opacity: 0;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .app-body.sidebar-open .sidebar-backdrop {
        visibility: visible;
        opacity: 1;
    }

    .app-workspace {
        margin-left: 0;
    }

    .report-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .report-selector-copy {
        width: 100%;
    }

    .report-status-panel {
        justify-content: space-between;
        border-top: 1px solid var(--app-border);
        padding-top: 10px;
    }
}

@media (max-width: 575.98px) {
    .app-topbar {
        padding: 0 12px;
    }

    .user-copy {
        display: none;
    }

    .app-content,
    .app-content-dashboard {
        padding: 10px;
    }

    .dashboard-page {
        gap: 10px;
    }

    .report-selector-block {
        min-width: 0;
    }

    .report-toolbar {
        padding: 10px;
    }

    .report-status-copy {
        min-width: 0;
    }

    .report-view-header {
        min-height: 50px;
    }

    .auth-shell {
        padding: 24px 14px 14px;
    }

    .auth-main {
        padding: 24px 0;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-brand-caption {
        display: none;
    }

    .flash-stack {
        right: 16px;
    }
}
