/* Phase 1.5 final polish: hybrid light/dark mode, compact filters, and role-efficient layout rhythm. */

body.theme-reference-old {
    --app-bg: #f4f7fc;
    --app-bg-soft: #fbfcff;
    --app-surface: rgba(255, 255, 255, 0.9);
    --app-surface-solid: #ffffff;
    --app-surface-muted: #f6f8fd;
    --app-border: #d9e3f3;
    --app-shadow: 0 18px 44px rgba(23, 42, 94, 0.08);
    --app-shadow-soft: 0 10px 24px rgba(23, 42, 94, 0.06);
    --app-text: #16285f;
    --app-muted: #6f7f9f;
    --app-primary: #17398f;
    --app-primary-strong: #102d74;
    --app-primary-soft: #edf2ff;
    --app-accent: #d80d2d;
    --app-gold: #f3b53c;
    --app-gold-soft: #fff4d9;
    --app-success: #21a86e;
    --app-success-soft: #e3f8ef;
    --app-danger: #d33444;
    --app-danger-soft: #fff1f3;
    --app-info: #2a67d3;
    --app-info-soft: #edf4ff;
    --app-auth-hero:
        linear-gradient(160deg, rgba(252, 253, 255, 0.95), rgba(236, 242, 252, 0.9)),
        url('../img/login-bg.jpg') center/cover no-repeat;
    --app-auth-panel:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.92));
}

body.theme-current {
    --app-bg: #08162f;
    --app-bg-soft: #0d1b3b;
    --app-surface: rgba(11, 26, 56, 0.86);
    --app-surface-solid: #102247;
    --app-surface-muted: #142a55;
    --app-border: rgba(167, 187, 233, 0.18);
    --app-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    --app-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.22);
    --app-text: #f8fbff;
    --app-muted: #b2c1e1;
    --app-primary: #7fa8ff;
    --app-primary-strong: #4f82ff;
    --app-primary-soft: rgba(127, 168, 255, 0.14);
    --app-accent: #ff5d72;
    --app-gold: #f8c96a;
    --app-gold-soft: rgba(248, 201, 106, 0.14);
    --app-success: #59d89e;
    --app-success-soft: rgba(89, 216, 158, 0.14);
    --app-danger: #ff7587;
    --app-danger-soft: rgba(255, 117, 135, 0.16);
    --app-info: #9ebcff;
    --app-info-soft: rgba(158, 188, 255, 0.15);
    --app-auth-hero:
        linear-gradient(160deg, rgba(5, 15, 34, 0.46), rgba(9, 24, 58, 0.78)),
        url('../img/login-bg.jpg') center/cover no-repeat;
    --app-auth-panel:
        linear-gradient(180deg, rgba(11, 25, 53, 0.96), rgba(9, 20, 42, 0.94));
}

body.theme-reference-old,
body.theme-current {
    background: var(--app-bg);
    color: var(--app-text);
}

body.theme-reference-old .app-shell,
body.theme-current .app-shell,
body.theme-reference-old .auth-theme-shell,
body.theme-current .auth-theme-shell {
    background:
        linear-gradient(180deg, transparent 0, transparent 160px, rgba(18, 40, 95, 0.02) 100%),
        var(--app-bg);
}

body.theme-reference-old .main-content,
body.theme-current .main-content {
    padding: 24px 26px 124px;
}

body.theme-reference-old .page-section,
body.theme-current .page-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.theme-reference-old .card,
body.theme-reference-old .projects-command-panel,
body.theme-reference-old .project-hero,
body.theme-reference-old .workspace-tabs,
body.theme-reference-old .dashboard-hero,
body.theme-reference-old .auth-card,
body.theme-reference-old .notification-item,
body.theme-reference-old .ops-shortcut,
body.theme-reference-old .role-flow-card,
body.theme-reference-old .signal-card,
body.theme-reference-old .rail-card,
body.theme-reference-old .portfolio-mini-card,
body.theme-reference-old .task-mini-card,
body.theme-current .card,
body.theme-current .projects-command-panel,
body.theme-current .project-hero,
body.theme-current .workspace-tabs,
body.theme-current .dashboard-hero,
body.theme-current .auth-card,
body.theme-current .notification-item,
body.theme-current .ops-shortcut,
body.theme-current .role-flow-card,
body.theme-current .signal-card,
body.theme-current .rail-card,
body.theme-current .portfolio-mini-card,
body.theme-current .task-mini-card {
    background: var(--app-surface-solid);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
}

body.theme-reference-old .section-title-row,
body.theme-current .section-title-row {
    gap: 16px;
    align-items: flex-start;
}

body.theme-reference-old .section-title-row h2,
body.theme-reference-old .dashboard-hero h2,
body.theme-reference-old .page-heading h1,
body.theme-current .section-title-row h2,
body.theme-current .dashboard-hero h2,
body.theme-current .page-heading h1 {
    color: var(--app-text);
    letter-spacing: 0;
}

body.theme-reference-old .section-title-row p,
body.theme-reference-old .page-heading .breadcrumb small,
body.theme-reference-old .page-heading .breadcrumb span,
body.theme-current .section-title-row p,
body.theme-current .page-heading .breadcrumb small,
body.theme-current .page-heading .breadcrumb span {
    color: var(--app-muted);
}

body.theme-reference-old .card-pad,
body.theme-current .card-pad {
    padding: 22px;
}

body.theme-reference-old .search-box,
body.theme-current .search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: var(--app-surface-solid);
    min-height: 50px;
}

body.theme-reference-old .search-box input,
body.theme-current .search-box input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--app-text);
}

body.theme-reference-old .command-shell,
body.theme-current .command-shell,
body.theme-reference-old .projects-command-panel,
body.theme-current .projects-command-panel {
    padding: 24px;
    gap: 18px;
}

body.theme-reference-old .kpi-grid,
body.theme-reference-old .kpi-grid.six,
body.theme-current .kpi-grid,
body.theme-current .kpi-grid.six {
    gap: 16px;
}

body.theme-reference-old .lane-segmented,
body.theme-reference-old .workspace-tabs,
body.theme-current .lane-segmented,
body.theme-current .workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: var(--app-surface-solid);
}

body.theme-reference-old .lane-segmented a,
body.theme-reference-old .workspace-tabs a,
body.theme-current .lane-segmented a,
body.theme-current .workspace-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: var(--app-muted);
    font-weight: 700;
}

body.theme-reference-old .lane-segmented a.active,
body.theme-reference-old .workspace-tabs a.active,
body.theme-current .lane-segmented a.active,
body.theme-current .workspace-tabs a.active {
    background: linear-gradient(135deg, #ffe8b2, #ffbf42);
    color: var(--app-primary-strong);
    border-color: rgba(243, 181, 60, 0.44);
}

body.theme-reference-old .project-toolbar,
body.theme-reference-old .filter-bar.compact-filter-bar,
body.theme-current .project-toolbar,
body.theme-current .filter-bar.compact-filter-bar {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    padding: 18px;
    border: 1px solid var(--app-border);
    border-radius: 22px;
    background: var(--app-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.theme-reference-old .project-toolbar .search-box,
body.theme-current .project-toolbar .search-box {
    grid-column: 1 / -1;
}

body.theme-reference-old .project-toolbar .toolbar-actions,
body.theme-current .project-toolbar .toolbar-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

body.theme-reference-old .filter-bar.compact-filter-bar label,
body.theme-reference-old .project-toolbar label,
body.theme-current .filter-bar.compact-filter-bar label,
body.theme-current .project-toolbar label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

body.theme-reference-old .filter-bar.compact-filter-bar label span,
body.theme-reference-old .project-toolbar label span,
body.theme-current .filter-bar.compact-filter-bar label span,
body.theme-current .project-toolbar label span {
    font-size: 12px;
    font-weight: 700;
    color: var(--app-muted);
}

body.theme-reference-old .filter-bar.compact-filter-bar input,
body.theme-reference-old .filter-bar.compact-filter-bar select,
body.theme-reference-old .project-toolbar input,
body.theme-reference-old .project-toolbar select,
body.theme-reference-old .auth-input-wrap,
body.theme-current .filter-bar.compact-filter-bar input,
body.theme-current .filter-bar.compact-filter-bar select,
body.theme-current .project-toolbar input,
body.theme-current .project-toolbar select,
body.theme-current .auth-input-wrap {
    border: 1px solid var(--app-border);
    background: var(--app-surface-solid);
    color: var(--app-text);
    border-radius: 14px;
    min-height: 46px;
    box-shadow: none;
}

body.theme-reference-old .project-toolbar input,
body.theme-reference-old .project-toolbar select,
body.theme-reference-old .filter-bar.compact-filter-bar input,
body.theme-reference-old .filter-bar.compact-filter-bar select,
body.theme-current .project-toolbar input,
body.theme-current .project-toolbar select,
body.theme-current .filter-bar.compact-filter-bar input,
body.theme-current .filter-bar.compact-filter-bar select {
    padding: 0 14px;
}

body.theme-reference-old .filter-search,
body.theme-current .filter-search {
    min-width: 0;
}

body.theme-reference-old .filter-actions,
body.theme-current .filter-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    min-width: 0;
}

body.theme-reference-old .filter-actions .btn,
body.theme-current .filter-actions .btn {
    min-height: 46px;
}

body.theme-reference-old .data-table-wrap,
body.theme-current .data-table-wrap {
    overflow: auto;
    border: 1px solid var(--app-border);
    border-radius: 20px;
    background: var(--app-surface-solid);
}

body.theme-reference-old .data-table,
body.theme-current .data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

body.theme-reference-old .data-table thead th,
body.theme-current .data-table thead th {
    background: linear-gradient(180deg, rgba(255, 248, 231, 0.86), rgba(255, 253, 248, 0.96));
    color: var(--app-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 14px 14px;
    border-bottom: 1px solid var(--app-border);
}

body.theme-current .data-table thead th {
    background: linear-gradient(180deg, rgba(255, 211, 122, 0.12), rgba(255, 255, 255, 0.02));
}

body.theme-reference-old .data-table td,
body.theme-current .data-table td {
    padding: 14px 14px;
    color: var(--app-text);
    border-bottom: 1px solid var(--app-border);
    vertical-align: top;
}

body.theme-reference-old .data-table td small,
body.theme-current .data-table td small {
    color: var(--app-muted);
}

body.theme-reference-old .data-table tbody tr:last-child td,
body.theme-current .data-table tbody tr:last-child td {
    border-bottom: 0;
}

body.theme-reference-old .pager,
body.theme-current .pager {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: var(--app-muted);
}

body.theme-reference-old .empty-inline,
body.theme-current .empty-inline {
    padding: 16px;
    border-radius: 16px;
    background: var(--app-surface-muted);
    color: var(--app-muted);
}

body.theme-reference-old .project-toolbar .toolbar-actions > *,
body.theme-current .project-toolbar .toolbar-actions > * {
    min-width: 0;
}

body.theme-reference-old .project-toolbar .toolbar-actions > button,
body.theme-reference-old .project-toolbar .toolbar-actions > .btn,
body.theme-current .project-toolbar .toolbar-actions > button,
body.theme-current .project-toolbar .toolbar-actions > .btn {
    align-self: end;
}

body.theme-reference-old .btn,
body.theme-reference-old .mini-btn,
body.theme-reference-old .icon-button,
body.theme-reference-old .profile-button,
body.theme-current .btn,
body.theme-current .mini-btn,
body.theme-current .icon-button,
body.theme-current .profile-button {
    border-radius: 14px;
}

body.theme-reference-old .btn-primary,
body.theme-current .btn-primary,
body.theme-reference-old .mini-btn.fill,
body.theme-reference-old .mini-btn.primary,
body.theme-current .mini-btn.fill,
body.theme-current .mini-btn.primary {
    background: linear-gradient(135deg, var(--app-accent), #bf0926);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(216, 13, 45, 0.18);
}

body.theme-reference-old .mini-btn.info,
body.theme-current .mini-btn.info {
    background: var(--app-primary-soft);
    color: var(--app-primary-strong);
    border-color: rgba(23, 57, 143, 0.14);
}

body.theme-reference-old .mini-btn.warning,
body.theme-current .mini-btn.warning {
    background: var(--app-gold-soft);
    color: #946100;
    border-color: rgba(243, 181, 60, 0.4);
}

body.theme-reference-old .mini-btn.success,
body.theme-current .mini-btn.success {
    background: var(--app-success-soft);
    color: #0d8756;
    border-color: rgba(33, 168, 110, 0.34);
}

body.theme-reference-old .mini-btn.neutral,
body.theme-reference-old .mini-btn:not(.fill):not(.primary):not(.info):not(.warning):not(.success):not(.danger):not(.danger-soft),
body.theme-current .mini-btn.neutral,
body.theme-current .mini-btn:not(.fill):not(.primary):not(.info):not(.warning):not(.success):not(.danger):not(.danger-soft) {
    background: var(--app-surface-solid);
    color: var(--app-primary-strong);
    border-color: var(--app-border);
}

body.theme-reference-old .mini-btn.danger-soft,
body.theme-current .mini-btn.danger-soft {
    background: var(--app-danger-soft);
    color: var(--app-danger);
    border-color: rgba(211, 52, 68, 0.25);
}

body.theme-reference-old .mini-btn.danger,
body.theme-current .mini-btn.danger {
    background: var(--app-danger);
    color: #fff;
    border-color: transparent;
}

body.theme-reference-old .btn-outline,
body.theme-current .btn-outline {
    background: var(--app-surface-solid);
    color: var(--app-primary-strong);
    border-color: rgba(23, 57, 143, 0.18);
}

body.theme-reference-old .btn-ghost,
body.theme-current .btn-ghost {
    background: transparent;
    color: var(--app-muted);
    border: 1px dashed var(--app-border);
}

body.theme-reference-old .mini-btn:hover,
body.theme-reference-old .btn:hover,
body.theme-reference-old .icon-button:hover,
body.theme-reference-old .profile-button:hover,
body.theme-current .mini-btn:hover,
body.theme-current .btn:hover,
body.theme-current .icon-button:hover,
body.theme-current .profile-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--app-shadow-soft);
}

body.theme-reference-old .topbar,
body.theme-current .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(18px);
    padding: 16px 24px;
}

body.theme-current .topbar {
    background: rgba(8, 22, 47, 0.84);
}

body.theme-reference-old .top-actions,
body.theme-current .top-actions {
    gap: 12px;
    align-items: center;
}

body.theme-reference-old .theme-switch,
body.theme-reference-old .synar-lang-switch,
body.theme-current .theme-switch,
body.theme-current .synar-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--app-surface-solid);
    border: 1px solid rgba(243, 181, 60, 0.54);
    box-shadow: var(--app-shadow-soft);
}

body.theme-reference-old .theme-switch button,
body.theme-reference-old .synar-lang-switch button,
body.theme-current .theme-switch button,
body.theme-current .synar-lang-switch button {
    border: 0;
    background: transparent;
    color: var(--app-muted);
    border-radius: 999px;
    min-height: 36px;
    min-width: 36px;
    padding: 0 14px;
    font-weight: 700;
}

body.theme-reference-old .theme-switch button.active,
body.theme-reference-old .synar-lang-switch button.active,
body.theme-current .theme-switch button.active,
body.theme-current .synar-lang-switch button.active {
    background: linear-gradient(135deg, #ffe8b2, #ffc85e);
    color: #17398f;
}

body.theme-reference-old .theme-switch svg,
body.theme-reference-old .synar-lang-switch svg,
body.theme-current .theme-switch svg,
body.theme-current .synar-lang-switch svg {
    width: 16px;
    height: 16px;
}

body.theme-reference-old .lang-icon,
body.theme-current .lang-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--app-gold-soft);
    color: #8a5a00;
}

body.theme-reference-old .profile-button,
body.theme-reference-old .icon-button,
body.theme-current .profile-button,
body.theme-current .icon-button {
    width: 46px;
    height: 46px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-solid);
    color: var(--app-primary-strong);
}

body.theme-reference-old .profile-button .avatar,
body.theme-current .profile-button .avatar {
    width: 100%;
    height: 100%;
}

body.theme-reference-old .dropdown.profile-menu,
body.theme-current .dropdown.profile-menu {
    right: 20px;
    top: calc(100% + 10px);
}

body.theme-reference-old .profile-menu .dropdown-list,
body.theme-current .profile-menu .dropdown-list {
    width: min(286px, calc(100vw - 28px));
    padding: 10px;
    border-radius: 18px;
    background: var(--app-surface-solid);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
}

body.theme-reference-old .profile-menu .dropdown-item,
body.theme-current .profile-menu .dropdown-item {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--app-text);
}

body.theme-reference-old .profile-menu .dropdown-item small,
body.theme-current .profile-menu .dropdown-item small {
    color: var(--app-muted);
}

body.theme-reference-old .dropdown-theme-panel,
body.theme-current .dropdown-theme-panel {
    margin: 8px 4px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-muted);
}

body.theme-reference-old .dropdown-theme-actions,
body.theme-current .dropdown-theme-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

body.theme-reference-old .sidebar,
body.theme-current .sidebar {
    position: sticky;
    top: 0;
    width: 270px;
    height: 100vh;
    background: var(--app-surface-solid);
    border-right: 1px solid var(--app-border);
    overflow: hidden;
}

body.theme-reference-old .sidebar::after,
body.theme-current .sidebar::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 110px;
    background:
        linear-gradient(155deg, transparent 18%, rgba(28, 64, 154, 0.12) 20%, rgba(28, 64, 154, 0.12) 28%, transparent 28%),
        linear-gradient(165deg, transparent 44%, rgba(216, 13, 45, 0.16) 46%, rgba(216, 13, 45, 0.16) 57%, transparent 58%),
        linear-gradient(176deg, transparent 66%, rgba(243, 181, 60, 0.2) 67%, rgba(243, 181, 60, 0.2) 71%, transparent 72%);
    pointer-events: none;
}

body.theme-reference-old .sidebar-inner,
body.theme-current .sidebar-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    padding: 18px 18px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

body.theme-reference-old .sidebar-inner::-webkit-scrollbar,
body.theme-current .sidebar-inner::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body.theme-reference-old .sidebar-top,
body.theme-current .sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.theme-reference-old .sidebar-logo .logo-full,
body.theme-current .sidebar-logo .logo-full {
    width: 170px;
    max-width: 100%;
}

body.theme-reference-old .sidebar-logo .logo-mark,
body.theme-current .sidebar-logo .logo-mark {
    display: none;
    width: 34px;
}

body.theme-reference-old .sidebar-collapse-toggle,
body.theme-current .sidebar-collapse-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-solid);
    color: var(--app-primary-strong);
    box-shadow: var(--app-shadow-soft);
}

body.theme-reference-old .sidebar-collapse-toggle:hover,
body.theme-current .sidebar-collapse-toggle:hover {
    background: var(--app-primary-strong);
    color: #fff;
}

body.theme-reference-old .sidebar-collapse-toggle:hover .icon,
body.theme-current .sidebar-collapse-toggle:hover .icon {
    stroke: currentColor;
}

body.theme-reference-old .sidebar-section-label,
body.theme-current .sidebar-section-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--app-muted);
    text-transform: none;
}

body.theme-reference-old .side-nav,
body.theme-current .side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.theme-reference-old .side-link,
body.theme-current .side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 16px;
    color: var(--app-text);
    background: transparent;
}

body.theme-reference-old .side-link.active,
body.theme-current .side-link.active {
    background: linear-gradient(135deg, var(--app-primary-strong), #244eb7);
    color: #fff;
    box-shadow: 0 14px 28px rgba(23, 57, 143, 0.18);
}

body.theme-reference-old .nav-badge,
body.theme-current .nav-badge {
    margin-left: auto;
    background: var(--app-accent);
    color: #fff;
    box-shadow: 0 10px 18px rgba(216, 13, 45, 0.18);
}

body.theme-reference-old .sidebar-role-card,
body.theme-current .sidebar-role-card {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: var(--app-surface-solid);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow-soft);
}

body.theme-reference-old .role-icon-shell,
body.theme-current .role-icon-shell {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #eef2f8;
    border: 1px solid var(--app-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.theme-reference-old .role-icon-shell img,
body.theme-current .role-icon-shell img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

body.sidebar-collapsed .sidebar {
    width: 92px;
}

body.sidebar-collapsed .sidebar-logo .logo-full,
body.sidebar-collapsed .sidebar-section-label,
body.sidebar-collapsed .side-link span,
body.sidebar-collapsed .nav-badge,
body.sidebar-collapsed .sidebar-role-card div {
    display: none;
}

body.sidebar-collapsed .sidebar-logo .logo-mark {
    display: block;
}

body.sidebar-collapsed .sidebar-top {
    flex-direction: column;
    align-items: center;
}

body.sidebar-collapsed .sidebar-collapse-toggle {
    margin: 0 auto;
}

body.sidebar-collapsed .side-link,
body.sidebar-collapsed .sidebar-role-card {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-role-card {
    padding: 10px;
}

body.theme-reference-old .auth-view,
body.theme-current .auth-view {
    min-height: calc(100vh - 40px);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.theme-reference-old .auth-layout,
body.theme-current .auth-layout {
    width: min(1320px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, 430px);
    gap: 26px;
    align-items: stretch;
}

body.theme-reference-old .auth-hero,
body.theme-current .auth-hero {
    position: relative;
    border-radius: 32px;
    padding: 34px;
    background: var(--app-auth-hero);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
    overflow: hidden;
}

body.theme-reference-old .auth-panel,
body.theme-current .auth-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

body.theme-reference-old .auth-panel-head,
body.theme-current .auth-panel-head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-right: 4px;
}

body.theme-reference-old .auth-card,
body.theme-current .auth-card {
    padding: 28px;
    border-radius: 28px;
    background: var(--app-auth-panel);
}

body.theme-reference-old .auth-card h1,
body.theme-current .auth-card h1,
body.theme-reference-old .auth-title,
body.theme-current .auth-title {
    color: var(--app-text);
}

body.theme-reference-old .auth-copy,
body.theme-reference-old .auth-card p,
body.theme-current .auth-copy,
body.theme-current .auth-card p {
    color: var(--app-muted);
}

body.theme-reference-old .auth-input-wrap,
body.theme-current .auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

body.theme-reference-old .auth-input-wrap input,
body.theme-current .auth-input-wrap input {
    width: 100%;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--app-text);
}

body.theme-reference-old .demo-login-grid,
body.theme-current .demo-login-grid {
    gap: 12px;
}

body.theme-reference-old .demo-login-grid button,
body.theme-current .demo-login-grid button {
    border: 1px solid var(--app-border);
    background: var(--app-surface-solid);
    border-radius: 16px;
    min-height: 56px;
}

body.theme-reference-old .demo-role-icon,
body.theme-current .demo-role-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--app-gold-soft);
    border: 1px solid rgba(243, 181, 60, 0.35);
}

body.theme-reference-old .form-links,
body.theme-current .form-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

body.theme-reference-old .link-button,
body.theme-current .link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-solid);
    color: var(--app-primary-strong);
    font-weight: 700;
}

body.theme-reference-old .curve-card,
body.theme-current .curve-card {
    padding: 22px 22px 18px;
}

body.theme-reference-old .curve-card .card-head,
body.theme-current .curve-card .card-head {
    margin-bottom: 10px;
}

body.theme-reference-old .curve-line-chart,
body.theme-current .curve-line-chart {
    padding: 8px 8px 0;
    min-height: 280px;
}

body.theme-reference-old .curve-line-chart.compact,
body.theme-current .curve-line-chart.compact {
    min-height: 244px;
}

body.theme-reference-old .curve-line-chart svg,
body.theme-reference-old .curve-line-chart.compact svg,
body.theme-current .curve-line-chart svg,
body.theme-current .curve-line-chart.compact svg {
    width: 100%;
    height: 280px !important;
    display: block;
}

body.theme-reference-old .curve-line-chart.compact svg,
body.theme-current .curve-line-chart.compact svg {
    height: 244px !important;
}

body.theme-reference-old .curve-legend,
body.theme-current .curve-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 6px 6px 0;
    margin-top: 6px;
}

body.theme-reference-old .curve-source-note,
body.theme-current .curve-source-note {
    margin-top: 10px;
    color: var(--app-muted);
}

body.theme-reference-old .ops-shortcut-grid,
body.theme-current .ops-shortcut-grid,
body.theme-reference-old .role-flow-strip,
body.theme-current .role-flow-strip,
body.theme-reference-old .workspace-signal-grid,
body.theme-current .workspace-signal-grid {
    gap: 14px;
}

body.theme-reference-old .workspace-signal-grid,
body.theme-current .workspace-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.theme-reference-old .signal-card,
body.theme-current .signal-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.theme-reference-old .signal-card .mini-btn,
body.theme-current .signal-card .mini-btn,
body.theme-reference-old .rail-card .mini-btn,
body.theme-current .rail-card .mini-btn {
    width: 100%;
    justify-content: center;
}

body.theme-reference-old .signal-card-wide,
body.theme-current .signal-card-wide {
    grid-column: span 2;
}

body.theme-reference-old .table-actions,
body.theme-current .table-actions {
    min-width: 250px;
}

body.theme-reference-old .action-cell,
body.theme-current .action-cell {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

body.theme-reference-old .action-cell.compact-actions,
body.theme-current .action-cell.compact-actions {
    gap: 8px;
}

body.theme-reference-old .action-cell .mini-btn,
body.theme-current .action-cell .mini-btn {
    min-height: 40px;
    padding: 0 14px;
    justify-content: center;
    gap: 8px;
}

body.theme-reference-old .quick-progress-form,
body.theme-current .quick-progress-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

body.theme-reference-old .quick-progress-form input,
body.theme-current .quick-progress-form input {
    width: 62px;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-solid);
    color: var(--app-text);
    text-align: center;
}

body.theme-reference-old .return-popover form,
body.theme-current .return-popover form {
    margin-top: 8px;
    display: grid;
    gap: 8px;
    padding: 12px;
    width: 220px;
    border-radius: 16px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-solid);
    box-shadow: var(--app-shadow);
}

body.theme-reference-old .return-popover textarea,
body.theme-current .return-popover textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--app-border);
    padding: 10px 12px;
    background: var(--app-bg-soft);
    color: var(--app-text);
}

body.theme-reference-old .workspace-layout .workspace-rail,
body.theme-current .workspace-layout .workspace-rail {
    gap: 14px;
}

body.theme-reference-old .finance-grid,
body.theme-current .finance-grid,
body.theme-reference-old .director-exception-grid,
body.theme-current .director-exception-grid,
body.theme-reference-old .pm-curve-grid,
body.theme-current .pm-curve-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
    gap: 20px;
}

body.theme-reference-old .finance-side,
body.theme-current .finance-side {
    display: grid;
    gap: 16px;
}

body.theme-reference-old .mobile-menu-panel,
body.theme-current .mobile-menu-panel {
    background: var(--app-surface-solid);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
}

body.theme-reference-old .mobile-menu-grid a,
body.theme-current .mobile-menu-grid a {
    border-radius: 18px;
    background: var(--app-surface-muted);
    border: 1px solid var(--app-border);
    color: var(--app-text);
}

body.theme-reference-old .auth-footer,
body.theme-current .auth-footer {
    color: var(--app-muted);
}

@media (max-width: 1200px) {
    body.theme-reference-old .project-toolbar .toolbar-actions,
    body.theme-current .project-toolbar .toolbar-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.theme-reference-old .workspace-signal-grid,
    body.theme-current .workspace-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    body.theme-reference-old .app-shell,
    body.theme-current .app-shell {
        display: block;
    }

    body.theme-reference-old .main-content,
    body.theme-current .main-content {
        padding: 18px 16px 132px;
    }

    body.theme-reference-old .topbar,
    body.theme-current .topbar {
        padding: 14px 16px;
    }

    body.theme-reference-old .topbar-left,
    body.theme-current .topbar-left {
        min-width: 0;
    }

    body.theme-reference-old .page-heading h1,
    body.theme-current .page-heading h1 {
        font-size: clamp(1.7rem, 5vw, 2rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.theme-reference-old .sidebar,
    body.theme-current .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 80;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        width: min(280px, calc(100vw - 72px));
    }

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

    body.theme-reference-old .auth-layout,
    body.theme-current .auth-layout {
        grid-template-columns: 1fr;
    }

    body.theme-reference-old .auth-hero,
    body.theme-current .auth-hero {
        min-height: 320px;
    }

    body.theme-reference-old .project-toolbar,
    body.theme-reference-old .filter-bar.compact-filter-bar,
    body.theme-current .project-toolbar,
    body.theme-current .filter-bar.compact-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-reference-old .project-toolbar .search-box,
    body.theme-reference-old .project-toolbar .toolbar-actions,
    body.theme-current .project-toolbar .search-box,
    body.theme-current .project-toolbar .toolbar-actions {
        grid-column: 1 / -1;
    }

    body.theme-reference-old .project-toolbar .toolbar-actions,
    body.theme-current .project-toolbar .toolbar-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-reference-old .finance-grid,
    body.theme-current .finance-grid,
    body.theme-reference-old .director-exception-grid,
    body.theme-current .director-exception-grid,
    body.theme-reference-old .pm-curve-grid,
    body.theme-current .pm-curve-grid {
        grid-template-columns: 1fr;
    }

    body.theme-reference-old .bottom-nav,
    body.theme-current .bottom-nav {
        position: fixed;
        left: 50%;
        bottom: 14px;
        transform: translateX(-50%);
        width: min(440px, calc(100vw - 22px));
        display: grid;
        grid-template-columns: repeat(var(--nav-count), minmax(0, 1fr));
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--app-border);
        box-shadow: var(--app-shadow);
        z-index: 65;
    }

    body.theme-current .bottom-nav {
        background: rgba(8, 22, 47, 0.96);
    }

    body.theme-reference-old .bottom-nav a,
    body.theme-reference-old .bottom-nav button,
    body.theme-current .bottom-nav a,
    body.theme-current .bottom-nav button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        border-radius: 18px;
        min-height: 54px;
        color: var(--app-muted);
        background: transparent;
        border: 0;
        gap: 6px;
    }

    body.theme-reference-old .bottom-nav button.active,
    body.theme-current .bottom-nav button.active,
    body.theme-reference-old .bottom-nav a:has(button.active),
    body.theme-current .bottom-nav a:has(button.active) {
        color: var(--app-primary-strong);
    }

    body.theme-reference-old .bottom-nav .quick-plus,
    body.theme-current .bottom-nav .quick-plus {
        width: 62px;
        height: 62px;
        border-radius: 999px;
        margin: -30px auto 0;
        background: linear-gradient(135deg, var(--app-accent), #ba0b25);
        color: #fff;
        box-shadow: 0 14px 24px rgba(216, 13, 45, 0.22);
    }

    body.theme-reference-old .mobile-menu-fab,
    body.theme-current .mobile-menu-fab {
        position: fixed;
        right: 18px;
        bottom: 96px;
        z-index: 66;
        width: 58px;
        height: 58px;
        border-radius: 999px;
        border: 1px solid var(--app-border);
        background: var(--app-surface-solid);
        color: var(--app-primary-strong);
        box-shadow: var(--app-shadow);
    }

    body.theme-reference-old .mobile-menu-fab.open,
    body.theme-current .mobile-menu-fab.open {
        background: linear-gradient(135deg, var(--app-accent), #ba0b25);
        color: #fff;
    }
}

@media (max-width: 640px) {
    body.theme-reference-old .main-content,
    body.theme-current .main-content {
        padding-bottom: 140px;
    }

    body.theme-reference-old .page-heading .breadcrumb,
    body.theme-current .page-heading .breadcrumb {
        gap: 6px;
    }

    body.theme-reference-old .kpi-grid,
    body.theme-reference-old .kpi-grid.six,
    body.theme-current .kpi-grid,
    body.theme-current .kpi-grid.six,
    body.theme-reference-old .ops-shortcut-grid,
    body.theme-current .ops-shortcut-grid,
    body.theme-reference-old .role-flow-strip,
    body.theme-current .role-flow-strip,
    body.theme-reference-old .workspace-signal-grid,
    body.theme-current .workspace-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-reference-old .signal-card-wide,
    body.theme-current .signal-card-wide {
        grid-column: span 2;
    }

    body.theme-reference-old .project-toolbar,
    body.theme-reference-old .filter-bar.compact-filter-bar,
    body.theme-current .project-toolbar,
    body.theme-current .filter-bar.compact-filter-bar,
    body.theme-reference-old .project-toolbar .toolbar-actions,
    body.theme-current .project-toolbar .toolbar-actions {
        grid-template-columns: 1fr;
    }

    body.theme-reference-old .filter-actions,
    body.theme-current .filter-actions {
        width: 100%;
        justify-content: stretch;
    }

    body.theme-reference-old .filter-actions .btn,
    body.theme-current .filter-actions .btn {
        flex: 1 1 0;
        justify-content: center;
    }

    body.theme-reference-old .form-links,
    body.theme-current .form-links {
        grid-template-columns: 1fr;
    }

    body.theme-reference-old .auth-panel-head,
    body.theme-current .auth-panel-head {
        justify-content: space-between;
        padding-right: 0;
    }

    body.theme-reference-old .top-actions,
    body.theme-current .top-actions {
        gap: 8px;
    }

    body.theme-reference-old .theme-switch button span,
    body.theme-current .theme-switch button span {
        display: none;
    }

    body.theme-reference-old .bottom-nav span,
    body.theme-current .bottom-nav span {
        display: none;
    }

    body.theme-reference-old .table-actions,
    body.theme-current .table-actions {
        min-width: 0;
    }

    body.theme-reference-old .action-cell,
    body.theme-current .action-cell {
        justify-content: stretch;
    }

    body.theme-reference-old .action-cell .mini-btn,
    body.theme-current .action-cell .mini-btn {
        flex: 1 1 calc(50% - 6px);
    }
}

@media (max-width: 430px) {
    body.theme-reference-old .auth-view,
    body.theme-current .auth-view {
        padding: 14px;
    }

    body.theme-reference-old .auth-card,
    body.theme-current .auth-card,
    body.theme-reference-old .auth-hero,
    body.theme-current .auth-hero {
        padding: 22px;
        border-radius: 24px;
    }

    body.theme-reference-old .kpi-grid,
    body.theme-reference-old .kpi-grid.six,
    body.theme-reference-old .ops-shortcut-grid,
    body.theme-reference-old .role-flow-strip,
    body.theme-current .kpi-grid,
    body.theme-current .kpi-grid.six,
    body.theme-current .ops-shortcut-grid,
    body.theme-current .role-flow-strip {
        grid-template-columns: 1fr 1fr;
    }

    body.theme-reference-old .workspace-signal-grid,
    body.theme-current .workspace-signal-grid {
        grid-template-columns: 1fr;
    }

    body.theme-reference-old .signal-card-wide,
    body.theme-current .signal-card-wide {
        grid-column: auto;
    }

    body.theme-reference-old .curve-line-chart,
    body.theme-current .curve-line-chart {
        min-height: 224px;
        padding-inline: 0;
    }

    body.theme-reference-old .curve-line-chart svg,
    body.theme-reference-old .curve-line-chart.compact svg,
    body.theme-current .curve-line-chart svg,
    body.theme-current .curve-line-chart.compact svg {
        height: 224px !important;
    }
}

/* Auth refresh + compact mobile display controls */
body.theme-reference-old .top-actions-desktop,
body.theme-current .top-actions-desktop,
body.theme-reference-old .auth-head-desktop,
body.theme-current .auth-head-desktop {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

body.theme-reference-old .top-actions-mobile,
body.theme-current .top-actions-mobile,
body.theme-reference-old .auth-head-mobile,
body.theme-current .auth-head-mobile {
    display: none;
}

body.theme-reference-old .display-pref-trigger,
body.theme-current .display-pref-trigger {
    width: 42px;
    height: 42px;
}

body.theme-reference-old .top-control-dropdown.display-pref-dropdown,
body.theme-current .top-control-dropdown.display-pref-dropdown {
    right: 16px;
    top: calc(100% + 10px);
    width: min(272px, calc(100vw - 24px));
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: var(--app-surface-solid);
    box-shadow: var(--app-shadow);
    overflow: hidden;
    z-index: 80;
}

body.theme-reference-old .auth-panel-head,
body.theme-current .auth-panel-head {
    position: relative;
}

body.theme-reference-old .auth-control-dropdown.display-pref-dropdown,
body.theme-current .auth-control-dropdown.display-pref-dropdown {
    right: 0;
    top: calc(100% + 10px);
    width: min(272px, calc(100vw - 32px));
}

body.theme-reference-old .compact-choice-list,
body.theme-current .compact-choice-list {
    display: grid;
    gap: 12px;
    padding: 14px;
    max-height: none;
}

body.theme-reference-old .choice-group,
body.theme-current .choice-group {
    display: grid;
    gap: 8px;
}

body.theme-reference-old .choice-group-label,
body.theme-current .choice-group-label {
    padding: 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
}

body.theme-reference-old .choice-group-options,
body.theme-current .choice-group-options {
    display: grid;
    gap: 8px;
}

body.theme-reference-old .choice-item,
body.theme-current .choice-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: var(--app-surface-muted);
    color: var(--app-text);
}

body.theme-reference-old .choice-item svg,
body.theme-current .choice-item svg {
    width: 18px;
    height: 18px;
}

body.theme-reference-old .choice-item b,
body.theme-current .choice-item b {
    display: block;
    font-size: 13px;
    color: var(--app-text);
}

body.theme-reference-old .choice-item small,
body.theme-current .choice-item small {
    display: block;
    margin-top: 2px;
    color: var(--app-muted);
    font-size: 11px;
}

body.theme-reference-old .choice-item.is-active,
body.theme-current .choice-item.is-active {
    background: linear-gradient(135deg, rgba(255, 232, 178, 0.9), rgba(255, 247, 226, 0.96));
    border-color: rgba(243, 181, 60, 0.44);
}

body.theme-current .choice-item.is-active {
    background: linear-gradient(135deg, rgba(248, 201, 106, 0.18), rgba(255, 255, 255, 0.05));
}

body.theme-reference-old .auth-view,
body.theme-current .auth-view {
    min-height: calc(100vh - 56px);
    padding: 28px 20px;
    align-items: stretch;
    justify-content: flex-start;
}

body.theme-reference-old .auth-layout,
body.theme-current .auth-layout {
    width: min(1360px, 100%);
    grid-template-columns: minmax(0, 1.18fr) minmax(400px, 440px);
    gap: 30px;
    margin: 0 auto;
}

body.theme-reference-old .auth-hero,
body.theme-current .auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
    min-height: 760px;
    padding: 38px;
}

body.theme-reference-old .auth-hero {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(244, 248, 255, 0.72)),
        url('../img/synar-bg-desktop.jpg') center/cover no-repeat;
}

body.theme-current .auth-hero {
    background:
        linear-gradient(150deg, rgba(5, 16, 37, 0.32), rgba(7, 20, 45, 0.76)),
        url('../img/login-bg.jpg') center/cover no-repeat;
}

body.theme-reference-old .login-cyber-lines,
body.theme-current .login-cyber-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
}

body.theme-current .login-cyber-lines {
    opacity: 0.26;
}

body.theme-reference-old .auth-hero::before,
body.theme-current .auth-hero::before {
    content: '';
    position: absolute;
    inset: auto -10% -18% auto;
    width: 56%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(243, 181, 60, 0.18), transparent 68%);
    pointer-events: none;
}

body.theme-current .auth-hero::before {
    background: radial-gradient(circle at center, rgba(255, 93, 114, 0.18), transparent 68%);
}

body.theme-reference-old .auth-hero-top,
body.theme-current .auth-hero-top,
body.theme-reference-old .login-copy-card,
body.theme-current .login-copy-card,
body.theme-reference-old .login-footnote,
body.theme-current .login-footnote {
    position: relative;
    z-index: 1;
}

body.theme-reference-old .auth-hero-top,
body.theme-current .auth-hero-top {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.theme-reference-old .auth-logo,
body.theme-current .auth-logo {
    width: min(338px, 62%);
    max-width: 100%;
    height: auto;
}

body.theme-reference-old .auth-hero-chip,
body.theme-current .auth-hero-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(243, 181, 60, 0.42);
    color: var(--app-primary-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.theme-current .auth-hero-chip {
    background: rgba(10, 28, 61, 0.76);
    color: #fff;
}

body.theme-reference-old .login-copy-card,
body.theme-current .login-copy-card {
    max-width: 640px;
    padding: 28px 28px 30px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 18px 48px rgba(23, 42, 94, 0.12);
    backdrop-filter: blur(14px);
}

body.theme-reference-old .login-copy-card {
    background: rgba(255, 255, 255, 0.84);
}

body.theme-current .login-copy-card {
    background: rgba(10, 24, 52, 0.62);
}

body.theme-reference-old .auth-kicker,
body.theme-current .auth-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    color: var(--app-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.theme-reference-old .auth-title,
body.theme-current .auth-title {
    margin: 0;
    font-size: clamp(2.65rem, 4.2vw, 4.2rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
}

body.theme-reference-old .auth-title span,
body.theme-current .auth-title span {
    color: var(--app-accent);
}

body.theme-reference-old .auth-copy,
body.theme-current .auth-copy {
    max-width: 560px;
    margin: 14px 0 0;
    font-size: 1.05rem;
    line-height: 1.62;
}

body.theme-reference-old .auth-feature-grid,
body.theme-current .auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

body.theme-reference-old .auth-feature,
body.theme-current .auth-feature {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 124px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(243, 181, 60, 0.34);
    box-shadow: var(--app-shadow-soft);
}

body.theme-reference-old .auth-feature {
    background: rgba(255, 255, 255, 0.6);
}

body.theme-current .auth-feature {
    background: rgba(11, 29, 65, 0.72);
}

body.theme-reference-old .auth-feature svg,
body.theme-current .auth-feature svg {
    width: 17px;
    height: 17px;
    color: var(--app-gold);
}

body.theme-reference-old .auth-feature b,
body.theme-current .auth-feature b {
    color: var(--app-text);
    font-size: 1rem;
}

body.theme-reference-old .auth-feature span,
body.theme-current .auth-feature span {
    color: var(--app-muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

body.theme-reference-old .login-footnote,
body.theme-current .login-footnote {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffcf63, #de8f00);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(222, 143, 0, 0.16);
}

body.theme-reference-old .auth-panel,
body.theme-current .auth-panel {
    justify-self: end;
    width: 100%;
    max-width: 440px;
    gap: 16px;
}

body.theme-reference-old .auth-panel-head,
body.theme-current .auth-panel-head {
    justify-content: flex-end;
    padding-right: 6px;
}

body.theme-reference-old .auth-card,
body.theme-current .auth-card {
    padding: 28px;
    border-radius: 30px;
    border: 1px solid var(--app-border);
    box-shadow: 0 22px 46px rgba(23, 42, 94, 0.12);
    backdrop-filter: blur(16px);
}

body.theme-reference-old .auth-card-brand,
body.theme-current .auth-card-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--app-border);
}

body.theme-reference-old .auth-card-brand {
    background: rgba(255, 255, 255, 0.72);
}

body.theme-current .auth-card-brand {
    background: rgba(255, 255, 255, 0.05);
}

body.theme-reference-old .auth-card-brand img,
body.theme-current .auth-card-brand img {
    width: 132px;
    height: auto;
}

body.theme-reference-old .auth-card-brand span,
body.theme-current .auth-card-brand span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
    text-align: right;
}

body.theme-reference-old .auth-card-brand-simple img,
body.theme-current .auth-card-brand-simple img {
    width: 112px;
}

body.theme-reference-old .auth-card h1,
body.theme-current .auth-card h1 {
    margin: 0;
    font-size: clamp(2rem, 2.7vw, 2.45rem);
    line-height: 1.06;
}

body.theme-reference-old .auth-card p,
body.theme-current .auth-card p {
    margin: 8px 0 0;
    font-size: 1rem;
    line-height: 1.58;
}

body.theme-reference-old .form-stack,
body.theme-current .form-stack {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

body.theme-reference-old .form-stack label,
body.theme-current .form-stack label {
    display: grid;
    gap: 8px;
}

body.theme-reference-old .form-stack label > span:first-child,
body.theme-current .form-stack label > span:first-child {
    font-size: 13px;
    font-weight: 800;
    color: var(--app-text);
}

body.theme-reference-old .auth-input-wrap,
body.theme-current .auth-input-wrap {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.theme-current .auth-input-wrap {
    background: rgba(16, 34, 71, 0.84);
}

body.theme-reference-old .auth-input-wrap:focus-within,
body.theme-current .auth-input-wrap:focus-within {
    border-color: rgba(23, 57, 143, 0.4);
    box-shadow: 0 0 0 4px rgba(23, 57, 143, 0.08);
    transform: translateY(-1px);
}

body.theme-reference-old .auth-input-wrap svg,
body.theme-current .auth-input-wrap svg {
    width: 17px;
    height: 17px;
    color: var(--app-muted);
}

body.theme-reference-old .check-row,
body.theme-current .check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--app-muted);
}

body.theme-reference-old .check-row input,
body.theme-current .check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--app-accent);
}

body.theme-reference-old .btn-wide,
body.theme-current .btn-wide {
    min-height: 52px;
    border-radius: 16px;
}

body.theme-reference-old .demo-role,
body.theme-current .demo-role {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--app-border);
}

body.theme-reference-old .demo-role small,
body.theme-current .demo-role small {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
}

body.theme-reference-old .demo-login-grid,
body.theme-current .demo-login-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.theme-reference-old .demo-login-grid button,
body.theme-current .demo-login-grid button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    min-height: 62px;
    border-radius: 18px;
    box-shadow: none;
}

body.theme-reference-old .demo-login-grid button span:last-child,
body.theme-current .demo-login-grid button span:last-child {
    text-align: left;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

body.theme-reference-old .demo-role-icon,
body.theme-current .demo-role-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.theme-reference-old .demo-role-icon img,
body.theme-current .demo-role-icon img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

body.theme-reference-old .form-links,
body.theme-current .form-links {
    margin-top: 16px;
}

body.theme-reference-old .link-button,
body.theme-current .link-button {
    min-height: 46px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 900px) {
    body.theme-reference-old .top-actions-desktop,
    body.theme-current .top-actions-desktop,
    body.theme-reference-old .auth-head-desktop,
    body.theme-current .auth-head-desktop {
        display: none;
    }

    body.theme-reference-old .top-actions-mobile,
    body.theme-current .top-actions-mobile,
    body.theme-reference-old .auth-head-mobile,
    body.theme-current .auth-head-mobile {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    body.theme-reference-old .topbar,
    body.theme-current .topbar {
        padding: 12px 14px;
    }

    body.theme-reference-old .top-actions,
    body.theme-current .top-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    body.theme-reference-old .compact-top-action,
    body.theme-current .compact-top-action,
    body.theme-reference-old .topbar .icon-button,
    body.theme-current .topbar .icon-button,
    body.theme-reference-old .topbar .profile-button,
    body.theme-current .topbar .profile-button {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    body.theme-reference-old .page-heading h1,
    body.theme-current .page-heading h1 {
        max-width: calc(100vw - 172px);
        font-size: clamp(1.26rem, 5vw, 1.6rem);
    }

    body.theme-reference-old .page-heading .breadcrumb,
    body.theme-current .page-heading .breadcrumb {
        max-width: calc(100vw - 178px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    body.theme-reference-old .auth-view,
    body.theme-current .auth-view {
        padding: 20px 14px;
    }

    body.theme-reference-old .auth-layout,
    body.theme-current .auth-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.theme-reference-old .auth-hero,
    body.theme-current .auth-hero {
        min-height: auto;
        padding: 24px;
        order: 2;
    }

    body.theme-reference-old .auth-logo,
    body.theme-current .auth-logo {
        width: min(250px, 72vw);
    }

    body.theme-reference-old .login-copy-card,
    body.theme-current .login-copy-card {
        padding: 20px;
        border-radius: 22px;
    }

    body.theme-reference-old .auth-title,
    body.theme-current .auth-title {
        font-size: clamp(2rem, 8vw, 2.7rem);
    }

    body.theme-reference-old .auth-copy,
    body.theme-current .auth-copy {
        font-size: 0.96rem;
        line-height: 1.48;
    }

    body.theme-reference-old .auth-feature-grid,
    body.theme-current .auth-feature-grid {
        gap: 10px;
    }

    body.theme-reference-old .auth-feature,
    body.theme-current .auth-feature {
        min-height: 92px;
        padding: 14px;
        border-radius: 18px;
    }

    body.theme-reference-old .auth-panel,
    body.theme-current .auth-panel {
        order: 1;
        max-width: none;
        gap: 12px;
        position: relative;
    }

    body.theme-reference-old .auth-panel-head,
    body.theme-current .auth-panel-head {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 4;
        padding-right: 0;
    }

    body.theme-reference-old .auth-card,
    body.theme-current .auth-card {
        padding-top: 60px;
    }

    body.theme-reference-old .auth-card-brand,
    body.theme-current .auth-card-brand {
        display: none;
    }

    body.theme-reference-old .auth-card-brand span,
    body.theme-current .auth-card-brand span {
        max-width: 120px;
    }
}

@media (max-width: 560px) {
    body.theme-reference-old .auth-hero,
    body.theme-current .auth-hero {
        min-height: 214px;
        gap: 16px;
    }

    body.theme-reference-old .auth-hero-chip,
    body.theme-current .auth-hero-chip {
        min-height: 30px;
        padding: 0 12px;
        font-size: 10px;
    }

    body.theme-reference-old .auth-kicker,
    body.theme-current .auth-kicker {
        margin-bottom: 10px;
        font-size: 10px;
    }

    body.theme-reference-old .auth-copy,
    body.theme-current .auth-copy {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    body.theme-reference-old .auth-feature span,
    body.theme-current .auth-feature span {
        display: none;
    }

    body.theme-reference-old .auth-card h1,
    body.theme-current .auth-card h1 {
        font-size: 1.95rem;
    }

    body.theme-reference-old .login-footnote,
    body.theme-current .login-footnote {
        display: none;
    }

    body.theme-reference-old .demo-login-grid button,
    body.theme-current .demo-login-grid button {
        min-height: 58px;
        padding: 10px;
    }

    body.theme-reference-old .demo-login-grid button span:last-child,
    body.theme-current .demo-login-grid button span:last-child {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    body.theme-reference-old .auth-card,
    body.theme-current .auth-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    body.theme-reference-old .demo-login-grid,
    body.theme-current .demo-login-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-reference-old .form-links,
    body.theme-current .form-links {
        grid-template-columns: 1fr;
    }

    body.theme-reference-old .link-button,
    body.theme-current .link-button {
        min-height: 44px;
    }
}

/* Auth redesign v2 */
body.theme-reference-old .auth-layout,
body.theme-current .auth-layout {
    grid-template-areas: "hero panel";
    align-items: stretch;
}

body.theme-reference-old .auth-hero,
body.theme-current .auth-hero {
    grid-area: hero;
}

body.theme-reference-old .auth-panel,
body.theme-current .auth-panel {
    grid-area: panel;
    justify-self: end;
    align-self: center;
    width: 100%;
    min-width: 0;
}

body.theme-reference-old .auth-card,
body.theme-current .auth-card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

body.theme-reference-old .auth-card-toolbar,
body.theme-current .auth-card-toolbar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 18px;
}

body.theme-reference-old .auth-card-toolbar .auth-panel-head,
body.theme-current .auth-card-toolbar .auth-panel-head {
    position: static;
    width: auto;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
}

body.theme-reference-old .auth-card-toolbar .theme-switch,
body.theme-current .auth-card-toolbar .theme-switch,
body.theme-reference-old .auth-card-toolbar .synar-lang-switch,
body.theme-current .auth-card-toolbar .synar-lang-switch {
    padding: 3px;
    border-radius: 999px;
}

body.theme-reference-old .auth-card-toolbar .theme-switch button,
body.theme-current .auth-card-toolbar .theme-switch button,
body.theme-reference-old .auth-card-toolbar .synar-lang-switch button,
body.theme-current .auth-card-toolbar .synar-lang-switch button {
    min-height: 32px;
    min-width: 32px;
    padding: 0 12px;
    font-size: 12px;
}

body.theme-reference-old .auth-card-toolbar .lang-icon,
body.theme-current .auth-card-toolbar .lang-icon {
    width: 28px;
    height: 28px;
}

body.theme-reference-old .auth-card-toolbar .top-control-dropdown.auth-control-dropdown,
body.theme-current .auth-card-toolbar .top-control-dropdown.auth-control-dropdown {
    right: 0;
    top: calc(100% + 10px);
}

body.theme-reference-old .auth-card-header,
body.theme-current .auth-card-header {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

body.theme-reference-old .auth-heading-chip,
body.theme-current .auth-heading-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--app-gold-soft);
    color: #936000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.theme-current .auth-heading-chip {
    background: rgba(248, 201, 106, 0.14);
    color: var(--app-gold);
}

body.theme-reference-old .auth-card-header p,
body.theme-current .auth-card-header p {
    margin-top: 0;
}

body.theme-reference-old .auth-login-card .demo-role,
body.theme-current .auth-login-card .demo-role {
    margin-top: 18px;
}

body.theme-reference-old .auth-login-card .demo-login-grid,
body.theme-current .auth-login-card .demo-login-grid {
    margin-top: 2px;
}

body.theme-reference-old .auth-login-card .form-links,
body.theme-current .auth-login-card .form-links {
    margin-top: 18px;
}

body.theme-reference-old .auth-view,
body.theme-current .auth-view {
    padding-top: 26px;
}

body.theme-reference-old .auth-hero-top,
body.theme-current .auth-hero-top {
    gap: 14px;
}

body.theme-reference-old .login-copy-card,
body.theme-current .login-copy-card {
    width: min(640px, 78%);
}

@media (max-width: 900px) {
    body.theme-reference-old .auth-layout,
    body.theme-current .auth-layout {
        grid-template-areas:
            "panel"
            "hero";
        grid-template-columns: 1fr;
    }

    body.theme-reference-old .auth-panel,
    body.theme-current .auth-panel {
        justify-self: stretch;
        align-self: start;
    }

    body.theme-reference-old .auth-card,
    body.theme-current .auth-card {
        padding-top: 22px;
    }

    body.theme-reference-old .auth-card-toolbar,
    body.theme-current .auth-card-toolbar {
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 4;
        margin-bottom: 0;
    }

    body.theme-reference-old .auth-card-toolbar .auth-panel-head,
    body.theme-current .auth-card-toolbar .auth-panel-head {
        position: static;
        justify-content: flex-end;
        width: auto;
    }

    body.theme-reference-old .auth-card-toolbar .auth-head-desktop,
    body.theme-current .auth-card-toolbar .auth-head-desktop {
        display: none;
    }

    body.theme-reference-old .auth-card-toolbar .auth-head-mobile,
    body.theme-current .auth-card-toolbar .auth-head-mobile {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    body.theme-reference-old .auth-card-toolbar .compact-top-action,
    body.theme-current .auth-card-toolbar .compact-top-action {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    body.theme-reference-old .login-copy-card,
    body.theme-current .login-copy-card {
        width: 100%;
    }

    body.theme-reference-old .auth-card-header,
    body.theme-current .auth-card-header {
        padding-top: 18px;
    }
}

@media (max-width: 560px) {
    body.theme-reference-old .auth-card-header,
    body.theme-current .auth-card-header {
        gap: 8px;
        margin-bottom: 8px;
    }

    body.theme-reference-old .auth-hero,
    body.theme-current .auth-hero {
        padding: 18px;
    }

    body.theme-reference-old .auth-feature-grid,
    body.theme-current .auth-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-reference-old .auth-feature,
    body.theme-current .auth-feature {
        min-height: 78px;
    }
}

/* Auth redesign v3 - single column shell */
body.theme-reference-old .auth-view,
body.theme-current .auth-view {
    min-height: calc(100vh - 72px);
    padding: 28px 20px 14px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

body.theme-reference-old .auth-layout.auth-layout-single,
body.theme-current .auth-layout.auth-layout-single {
    width: min(1320px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 0 auto;
}

body.theme-reference-old .auth-layout.auth-layout-compact,
body.theme-current .auth-layout.auth-layout-compact {
    width: min(1320px, 100%);
}

body.theme-reference-old .auth-utility-bar,
body.theme-current .auth-utility-bar {
    width: 100%;
    margin-bottom: 2px;
    padding-inline: 4px;
}

body.theme-reference-old .auth-layout.auth-layout-single .auth-panel-head,
body.theme-current .auth-layout.auth-layout-single .auth-panel-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 0;
}

body.theme-reference-old .auth-head-desktop,
body.theme-current .auth-head-desktop {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

body.theme-reference-old .auth-head-group-left,
body.theme-current .auth-head-group-left {
    justify-self: start;
}

body.theme-reference-old .auth-head-group-right,
body.theme-current .auth-head-group-right {
    justify-self: end;
}

body.theme-reference-old .auth-layout.auth-layout-single .auth-brand-block,
body.theme-current .auth-layout.auth-layout-single .auth-brand-block {
    min-height: 0;
    max-width: 760px;
    justify-self: center;
    padding: 20px 8px 4px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.theme-current .auth-layout.auth-layout-single .auth-brand-block {
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.theme-reference-old .auth-brand-stack,
body.theme-current .auth-brand-stack {
    gap: 14px;
    align-items: center;
    text-align: center;
}

body.theme-reference-old .auth-brand-copy,
body.theme-current .auth-brand-copy {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.65;
}

body.theme-reference-old .auth-layout.auth-layout-single .auth-logo,
body.theme-current .auth-layout.auth-layout-single .auth-logo {
    width: min(360px, 72vw);
}

body.theme-reference-old .auth-card.auth-card-main,
body.theme-current .auth-card.auth-card-main {
    position: relative;
    width: min(560px, 100%);
    justify-self: center;
    padding: 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(219, 227, 241, 0.96);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}

body.theme-current .auth-card.auth-card-main {
    background: rgba(13, 20, 44, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 54px rgba(3, 7, 18, 0.36);
}

body.theme-reference-old .auth-card.auth-card-main .auth-card-header,
body.theme-current .auth-card.auth-card-main .auth-card-header {
    text-align: left;
    margin-bottom: 18px;
}

body.theme-reference-old .auth-header-badges,
body.theme-current .auth-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

body.theme-reference-old .auth-card.auth-card-main .auth-card-header h1,
body.theme-current .auth-card.auth-card-main .auth-card-header h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.04;
    margin: 0;
}

body.theme-reference-old .auth-card.auth-card-main .auth-card-header p,
body.theme-current .auth-card.auth-card-main .auth-card-header p {
    max-width: 460px;
    font-size: 1rem;
    line-height: 1.62;
}

body.theme-reference-old .auth-heading-chip-alt,
body.theme-current .auth-heading-chip-alt {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(243, 181, 60, 0.28);
    color: var(--app-primary-strong);
}

body.theme-current .auth-heading-chip-alt {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(248, 201, 106, 0.24);
    color: #f8d16c;
}

body.theme-reference-old .auth-card.auth-card-main .form-stack,
body.theme-current .auth-card.auth-card-main .form-stack {
    gap: 16px;
}

body.theme-reference-old .auth-card.auth-card-main .auth-input-wrap,
body.theme-current .auth-card.auth-card-main .auth-input-wrap {
    min-height: 60px;
    border-radius: 18px;
    border: 1px solid rgba(199, 210, 227, 0.95);
    background: rgba(255, 255, 255, 0.82);
}

body.theme-current .auth-card.auth-card-main .auth-input-wrap {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
}

body.theme-reference-old .auth-card.auth-card-main .auth-input-wrap svg,
body.theme-current .auth-card.auth-card-main .auth-input-wrap svg {
    width: 18px;
    height: 18px;
}

body.theme-reference-old .auth-card.auth-card-main .check-row,
body.theme-current .auth-card.auth-card-main .check-row {
    margin-top: -2px;
}

body.theme-reference-old .auth-card.auth-card-main .btn-wide,
body.theme-current .auth-card.auth-card-main .btn-wide {
    min-height: 56px;
    border-radius: 18px;
}

body.theme-reference-old .auth-demo-desktop,
body.theme-current .auth-demo-desktop {
    display: block;
}

body.theme-reference-old .auth-demo-mobile,
body.theme-current .auth-demo-mobile {
    display: none;
}

body.theme-reference-old .auth-demo-mobile summary,
body.theme-current .auth-demo-mobile summary {
    list-style: none;
}

body.theme-reference-old .auth-demo-mobile summary::-webkit-details-marker,
body.theme-current .auth-demo-mobile summary::-webkit-details-marker {
    display: none;
}

body.theme-reference-old .auth-demo-mobile summary,
body.theme-current .auth-demo-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-solid);
    color: var(--app-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

body.theme-reference-old .auth-demo-mobile[open] summary,
body.theme-current .auth-demo-mobile[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

body.theme-reference-old .auth-demo-mobile[open] .demo-role,
body.theme-current .auth-demo-mobile[open] .demo-role {
    margin-top: 0;
    border-top: 0;
    padding: 14px 0 0;
}

body.theme-reference-old .auth-demo-mobile[open] summary svg,
body.theme-current .auth-demo-mobile[open] summary svg {
    transform: rotate(180deg);
}

body.theme-reference-old .auth-demo-mobile summary svg,
body.theme-current .auth-demo-mobile summary svg {
    transition: transform 0.22s ease;
}

body.theme-reference-old .auth-card.auth-card-main .form-links,
body.theme-current .auth-card.auth-card-main .form-links {
    margin-top: 16px;
}

body.theme-reference-old .form-links-single,
body.theme-current .form-links-single {
    grid-template-columns: 1fr;
}

body.theme-reference-old .auth-footer,
body.theme-current .auth-footer {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 2px 0 22px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

body.theme-reference-old .auth-footer::before,
body.theme-current .auth-footer::before {
    content: "Synar Setara Resources Sdn Bhd";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd36e, #f2aa0b);
    color: #7a4700;
    box-shadow: 0 16px 28px rgba(242, 170, 11, 0.22);
}

body.theme-reference-old .auth-footer,
body.theme-current .auth-footer {
    color: transparent;
}

body.theme-reference-old .auth-card.auth-card-main .demo-login-grid,
body.theme-current .auth-card.auth-card-main .demo-login-grid {
    gap: 12px;
}

body.theme-reference-old .auth-card.auth-card-main .demo-login-grid button,
body.theme-current .auth-card.auth-card-main .demo-login-grid button {
    min-height: 64px;
    border-radius: 18px;
    padding: 12px 14px;
}

body.theme-reference-old .auth-card.auth-card-main .link-button,
body.theme-current .auth-card.auth-card-main .link-button {
    min-height: 48px;
    border-radius: 16px;
    gap: 8px;
}

body.theme-reference-old .auth-head-mobile,
body.theme-current .auth-head-mobile {
    display: none;
}

body.theme-reference-old .auth-head-mobile .compact-top-action,
body.theme-current .auth-head-mobile .compact-top-action {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

body.theme-reference-old .auth-head-mobile .compact-top-action svg,
body.theme-current .auth-head-mobile .compact-top-action svg {
    width: 16px;
    height: 16px;
}

body.theme-reference-old .auth-control-dropdown.display-pref-dropdown,
body.theme-current .auth-control-dropdown.display-pref-dropdown {
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    min-width: 238px;
}

body.theme-reference-old .auth-lang-dropdown,
body.theme-current .auth-lang-dropdown {
    left: auto;
    right: 0;
    min-width: 224px;
}

body.theme-reference-old .auth-bg-media,
body.theme-current .auth-bg-media {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 223, 161, 0.24), transparent 34%),
        linear-gradient(180deg, rgba(247, 249, 255, 0.96), rgba(240, 244, 252, 0.94));
}

body.theme-current .auth-bg-media {
    background:
        radial-gradient(circle at top left, rgba(245, 180, 61, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(8, 14, 34, 0.9), rgba(10, 15, 38, 0.94));
}

body.theme-reference-old .auth-bg-video,
body.theme-current .auth-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: saturate(0.9);
}

body.theme-current .auth-bg-video {
    opacity: 0.28;
    filter: saturate(0.9) brightness(0.72);
}

body.theme-reference-old .auth-bg-overlay,
body.theme-current .auth-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 247, 253, 0.84));
}

body.theme-current .auth-bg-overlay {
    background: linear-gradient(180deg, rgba(8, 14, 34, 0.58), rgba(10, 15, 38, 0.78));
}

@media (max-width: 900px) {
    body.theme-reference-old .auth-view,
    body.theme-current .auth-view {
        padding: 16px 14px 10px;
    }

    body.theme-reference-old .auth-layout.auth-layout-single,
    body.theme-current .auth-layout.auth-layout-single {
        width: min(560px, 100%);
        gap: 14px;
    }

    body.theme-reference-old .auth-layout.auth-layout-single .auth-panel-head,
    body.theme-current .auth-layout.auth-layout-single .auth-panel-head {
        display: flex;
        justify-content: space-between;
        position: relative;
        top: auto;
        right: auto;
        z-index: auto;
        width: 100%;
        gap: 10px;
    }

    body.theme-reference-old .auth-head-desktop,
    body.theme-current .auth-head-desktop {
        display: none;
    }

    body.theme-reference-old .auth-head-mobile,
    body.theme-current .auth-head-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }

    body.theme-reference-old .auth-brand-block,
    body.theme-current .auth-brand-block {
        padding: 12px 0 4px;
    }

    body.theme-reference-old .auth-brand-copy,
    body.theme-current .auth-brand-copy {
        font-size: 0.95rem;
        line-height: 1.56;
    }

    body.theme-reference-old .auth-card.auth-card-main,
    body.theme-current .auth-card.auth-card-main {
        padding: 22px 18px;
        border-radius: 24px;
        width: 100%;
    }

    body.theme-reference-old .auth-card.auth-card-main .auth-card-header h1,
    body.theme-current .auth-card.auth-card-main .auth-card-header h1 {
        font-size: clamp(1.9rem, 8vw, 2.35rem);
    }

    body.theme-reference-old .auth-card.auth-card-main .auth-card-header p,
    body.theme-current .auth-card.auth-card-main .auth-card-header p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    body.theme-reference-old .auth-card.auth-card-main .auth-input-wrap,
    body.theme-current .auth-card.auth-card-main .auth-input-wrap {
        min-height: 56px;
    }

    body.theme-reference-old .auth-demo-desktop,
    body.theme-current .auth-demo-desktop {
        display: none;
    }

    body.theme-reference-old .auth-demo-mobile,
    body.theme-current .auth-demo-mobile {
        display: block;
        margin-top: 16px;
    }

    body.theme-reference-old .auth-footer,
    body.theme-current .auth-footer {
        margin-bottom: 14px;
    }
}

@media (max-width: 520px) {
    body.theme-reference-old .auth-brand-block,
    body.theme-current .auth-brand-block {
        padding: 10px 0 2px;
    }

    body.theme-reference-old .auth-layout.auth-layout-single .auth-logo,
    body.theme-current .auth-layout.auth-layout-single .auth-logo {
        width: min(270px, 74vw);
    }

    body.theme-reference-old .auth-card.auth-card-main .demo-login-grid,
    body.theme-current .auth-card.auth-card-main .demo-login-grid {
        grid-template-columns: 1fr;
    }

    body.theme-reference-old .auth-card.auth-card-main .form-links,
    body.theme-current .auth-card.auth-card-main .form-links {
        grid-template-columns: 1fr;
    }

    body.theme-reference-old .auth-head-mobile .compact-top-action,
    body.theme-current .auth-head-mobile .compact-top-action {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    body.theme-reference-old .auth-card.auth-card-main .auth-card-header h1,
    body.theme-current .auth-card.auth-card-main .auth-card-header h1 {
        font-size: clamp(1.8rem, 9vw, 2.1rem);
    }
}

/* Auth final override */
body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single {
    width: min(1320px, 100%) !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
    gap: 18px !important;
}

body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single.auth-layout-compact,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single.auth-layout-compact {
    width: min(1320px, 100%) !important;
}

body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-utility-bar,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-utility-bar,
body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-brand-block,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-brand-block,
body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-card-main,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-card-main {
    grid-column: 1 / -1 !important;
}

body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-utility-bar,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-utility-bar {
    width: 100% !important;
    margin-bottom: 0 !important;
}

body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-panel-head,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-panel-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important;
}

body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-head-desktop,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-head-desktop {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 16px !important;
}

body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-head-group-right,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-head-group-right {
    margin-left: auto !important;
}

body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-brand-block,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-brand-block {
    max-width: 760px !important;
    justify-self: center !important;
    padding: 20px 8px 6px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: auto !important;
}

body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-brand-stack,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-brand-stack {
    text-align: center !important;
    align-items: center !important;
}

body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-card.auth-card-main,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-card.auth-card-main {
    width: min(560px, 100%) !important;
    justify-self: center !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
}

body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-card.auth-card-main {
    background: #0d142c !important;
}

body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .link-button,
body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .link-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

@media (max-width: 900px) {
    body.auth-theme-shell.theme-reference-old .auth-bg-video,
    body.auth-theme-shell.theme-current .auth-bg-video {
        display: none !important;
    }

    body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single,
    body.auth-theme-shell.theme-current .auth-layout.auth-layout-single {
        width: min(560px, 100%) !important;
        gap: 14px !important;
    }

    body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-head-desktop,
    body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-head-desktop {
        display: none !important;
    }

    body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-head-mobile,
    body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-head-mobile {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-brand-block,
    body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-brand-block {
        padding: 12px 0 4px !important;
    }

    body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-brand-block .auth-logo,
    body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-brand-block .auth-logo {
        display: none !important;
    }

    body.auth-theme-shell.theme-reference-old .auth-layout.auth-layout-single .auth-card.auth-card-main,
    body.auth-theme-shell.theme-current .auth-layout.auth-layout-single .auth-card.auth-card-main {
        width: 100% !important;
    }
}

/* Auth shell v2 */
body.auth-theme-shell .auth-bg-media {
    background:
        radial-gradient(circle at top left, rgba(255, 227, 176, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(247, 249, 255, 0.9), rgba(240, 244, 252, 0.94));
}

body.auth-theme-shell.theme-current .auth-bg-media {
    background:
        radial-gradient(circle at top left, rgba(255, 208, 125, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(11, 17, 38, 0.84), rgba(12, 18, 40, 0.92));
}

body.auth-theme-shell .auth-bg-video {
    display: block !important;
    opacity: 0.18 !important;
    filter: saturate(0.92) brightness(1.02) !important;
}

body.auth-theme-shell.theme-current .auth-bg-video {
    opacity: 0.26 !important;
    filter: saturate(0.95) brightness(0.72) !important;
}

body.auth-theme-shell .auth-bg-overlay {
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.84), rgba(244, 247, 252, 0.9)) !important;
}

body.auth-theme-shell.theme-current .auth-bg-overlay {
    background: linear-gradient(180deg, rgba(10, 16, 36, 0.42), rgba(11, 17, 38, 0.72)) !important;
}

body.auth-theme-shell .auth-view {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 82px);
    padding: 28px 24px 8px;
    display: flex;
    justify-content: center;
}

body.auth-theme-shell .auth-shell.auth-shell-login {
    width: min(1280px, 100%);
    display: grid;
    justify-items: center;
    gap: 22px;
}

body.auth-theme-shell .auth-shell-tools {
    width: 100%;
}

body.auth-theme-shell .auth-shell-tools .auth-panel-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body.auth-theme-shell .auth-shell-tools .auth-head-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
}

body.auth-theme-shell .auth-shell-tools .auth-head-group-right {
    margin-left: auto;
}

body.auth-theme-shell .auth-shell-brand {
    width: min(760px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 8px 12px 2px;
    text-align: center;
}

body.auth-theme-shell .auth-shell-brand .auth-shell-logo {
    width: min(430px, 74vw);
    max-width: 100%;
    filter: drop-shadow(0 10px 24px rgba(17, 34, 76, 0.08));
}

body.auth-theme-shell .auth-shell-chip {
    padding: 0 18px;
}

body.auth-theme-shell .auth-shell-tagline {
    max-width: 560px;
    margin: 0;
    color: var(--app-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    font-weight: 600;
}

body.auth-theme-shell.theme-current .auth-shell-tagline {
    color: rgba(224, 230, 246, 0.84);
}

body.auth-theme-shell .auth-shell-card {
    width: min(560px, 100%);
    padding: 30px 30px 26px;
    border-radius: 28px;
    border: 1px solid rgba(201, 212, 230, 0.92);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(32, 55, 104, 0.12);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.auth-theme-shell.theme-current .auth-shell-card {
    border-color: rgba(248, 200, 93, 0.18);
    background: rgba(11, 17, 38, 0.94);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

body.auth-theme-shell .auth-shell-card .auth-card-header {
    text-align: left;
    gap: 12px;
}

body.auth-theme-shell .auth-shell-card .auth-card-header h1 {
    margin: 0;
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    line-height: 1.04;
    letter-spacing: 0;
}

body.auth-theme-shell .auth-shell-card .auth-card-header p {
    margin: 0;
    color: var(--app-muted);
    font-size: 1rem;
    line-height: 1.7;
}

body.auth-theme-shell.theme-current .auth-shell-card .auth-card-header p {
    color: rgba(223, 230, 245, 0.8);
}

body.auth-theme-shell .auth-shell-card .auth-header-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

body.auth-theme-shell .auth-shell-card .auth-heading-chip {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
}

body.auth-theme-shell .auth-shell-card .form-stack {
    gap: 16px;
    margin-top: 24px;
}

body.auth-theme-shell .auth-shell-card .auth-input-wrap {
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(200, 212, 230, 0.95);
    background: rgba(255, 255, 255, 0.9);
}

body.auth-theme-shell.theme-current .auth-shell-card .auth-input-wrap {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

body.auth-theme-shell .auth-shell-card .check-row {
    margin-top: -4px;
}

body.auth-theme-shell .auth-shell-card .btn-wide {
    min-height: 56px;
    border-radius: 18px;
}

body.auth-theme-shell .auth-shell-card .demo-role {
    margin-top: 22px;
}

body.auth-theme-shell .auth-shell-card .demo-role > small,
body.auth-theme-shell .auth-shell-card .auth-demo-mobile summary span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

body.auth-theme-shell .auth-shell-card .demo-login-grid {
    gap: 12px;
}

body.auth-theme-shell .auth-shell-card .demo-login-grid button {
    min-height: 64px;
    border-radius: 18px;
    padding: 12px 14px;
}

body.auth-theme-shell .auth-shell-card .form-links {
    margin-top: 18px;
}

body.auth-theme-shell .auth-shell-card .link-button {
    min-height: 48px;
    border-radius: 16px;
    gap: 8px;
}

body.auth-theme-shell .auth-footer {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 8px 0 20px;
    color: transparent;
}

body.auth-theme-shell .auth-footer::before {
    content: "Internal MVP for Synar Setara Resources Sdn Bhd";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd46b, #f0a906);
    color: #7a4700;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 30px rgba(240, 169, 6, 0.22);
}

body.auth-theme-shell .auth-head-mobile {
    display: none;
}

body.auth-theme-shell .auth-control-dropdown.display-pref-dropdown {
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    min-width: 238px;
}

body.auth-theme-shell .auth-lang-dropdown {
    left: auto;
    right: 0;
    min-width: 210px;
}

@media (max-width: 900px) {
    body.auth-theme-shell .auth-view {
        padding: 14px 14px 6px;
        min-height: calc(100vh - 70px);
    }

    body.auth-theme-shell .auth-shell.auth-shell-login {
        width: min(560px, 100%);
        gap: 14px;
    }

    body.auth-theme-shell .auth-shell-tools .auth-head-desktop {
        display: none;
    }

    body.auth-theme-shell .auth-head-mobile {
        display: flex !important;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    body.auth-theme-shell .auth-head-mobile .compact-top-action {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    body.auth-theme-shell .auth-head-mobile .compact-top-action svg {
        width: 16px;
        height: 16px;
    }

    body.auth-theme-shell .auth-shell-brand {
        gap: 10px;
        padding: 2px 6px 0;
    }

    body.auth-theme-shell .auth-shell-brand .auth-shell-logo {
        width: min(268px, 68vw);
    }

    body.auth-theme-shell .auth-shell-chip {
        padding: 0 14px;
        min-height: 34px;
        font-size: 11px;
    }

    body.auth-theme-shell .auth-shell-tagline {
        max-width: 320px;
        font-size: 0.92rem;
        line-height: 1.58;
    }

    body.auth-theme-shell .auth-shell-card {
        width: 100%;
        padding: 22px 18px 18px;
        border-radius: 24px;
    }

    body.auth-theme-shell .auth-shell-card .auth-card-header h1 {
        font-size: clamp(1.95rem, 9vw, 2.3rem);
    }

    body.auth-theme-shell .auth-shell-card .auth-card-header p {
        font-size: 0.94rem;
        line-height: 1.58;
    }

    body.auth-theme-shell .auth-shell-card .auth-input-wrap {
        min-height: 54px;
    }

    body.auth-theme-shell .auth-shell-card .demo-login-grid {
        grid-template-columns: 1fr;
    }

    body.auth-theme-shell .auth-shell-card .form-links {
        grid-template-columns: 1fr;
    }

    body.auth-theme-shell .auth-demo-desktop {
        display: none;
    }

    body.auth-theme-shell .auth-demo-mobile {
        display: block;
        margin-top: 18px;
    }

    body.auth-theme-shell .auth-bg-video {
        opacity: 0.12 !important;
    }

    body.auth-theme-shell.theme-current .auth-bg-video {
        opacity: 0.18 !important;
    }

    body.auth-theme-shell .auth-footer {
        margin-top: 2px;
        margin-bottom: 14px;
    }

    body.auth-theme-shell .auth-footer::before {
        padding: 0 16px;
        font-size: 11px;
        text-align: center;
    }
}
