html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
}

.branding-container {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
}

.company-logo {
    height: 40px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.company-name {
    font-weight: 600;
}

.company-logo-preview {
    max-height: 72px;
    max-width: 220px;
    object-fit: contain;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.5rem;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Keep shared combobox result menus within the AdminLTE content layout. */
[data-combobox-host] {
    min-width: 0;
}

[data-combobox-host].mdx-combobox-open {
    z-index: 1060;
}

[data-combobox-host] > .input-group {
    flex-wrap: nowrap;
}

[data-combobox-host] > .input-group > .form-control {
    min-width: 0;
}

[data-combobox-host] > .input-group > .btn {
    flex: 0 0 auto;
    width: 2.35rem;
    padding-right: 0;
    padding-left: 0;
    font-weight: 700;
}

.mdx-combobox-dropdown {
    display: flex;
    flex-direction: column;
    max-height: 20rem;
    max-width: calc(100vw - 1rem);
    overflow: hidden;
    z-index: 1061;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.mdx-combobox-dropdown > .mdx-combobox-results-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-radius: 0;
}

.mdx-combobox-dropdown > .mdx-combobox-results-scroll > .list-group-item {
    display: block;
    overflow: hidden;
    min-height: 36px;
    padding: 0.5rem 0.75rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mdx-combobox-dropdown.mdx-combobox-wrap-options > .mdx-combobox-results-scroll > .list-group-item {
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.mdx-combobox-dropdown > .mdx-combobox-results-scroll > .list-group-item-action {
    width: 100%;
    cursor: pointer;
}

.mdx-combobox-dropdown > .mdx-combobox-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 0.5rem 0.75rem;
    cursor: default;
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
    white-space: normal;
}

[data-combobox-host] > .invalid-feedback {
    width: 100%;
}

/* Shared MotorDex filter interaction styling. Keep native selects and the
   shared combobox menu visually consistent across every module. */
.form-select option:checked,
.form-select option:hover,
select option:checked,
select option:hover {
    background-color: var(--motordex-navy, #061B49) !important;
    color: var(--motordex-white, #FFFFFF) !important;
}

.mdx-combobox-dropdown > .mdx-combobox-results-scroll,
[role="listbox"],
.form-select {
    scrollbar-color: var(--motordex-navy, #061B49) var(--motordex-silver, #D9DEE7);
    scrollbar-width: thin;
}

.mdx-combobox-dropdown > .mdx-combobox-results-scroll::-webkit-scrollbar,
[role="listbox"]::-webkit-scrollbar,
.form-select::-webkit-scrollbar {
    width: 0.65rem;
    height: 0.65rem;
}

.mdx-combobox-dropdown > .mdx-combobox-results-scroll::-webkit-scrollbar-track,
[role="listbox"]::-webkit-scrollbar-track,
.form-select::-webkit-scrollbar-track {
    background: var(--motordex-silver, #D9DEE7);
}

.mdx-combobox-dropdown > .mdx-combobox-results-scroll::-webkit-scrollbar-thumb,
[role="listbox"]::-webkit-scrollbar-thumb,
.form-select::-webkit-scrollbar-thumb {
    background: var(--motordex-navy, #061B49);
    border: 2px solid var(--motordex-silver, #D9DEE7);
    border-radius: 999px;
}

.mdx-combobox-dropdown > .mdx-combobox-results-scroll::-webkit-scrollbar-thumb:hover,
[role="listbox"]::-webkit-scrollbar-thumb:hover,
.form-select::-webkit-scrollbar-thumb:hover {
    background: var(--motordex-navy-light, #0B2D63);
}

.mdx-combobox-dropdown > .mdx-combobox-results-scroll > .list-group-item-action:hover,
.mdx-combobox-dropdown > .mdx-combobox-results-scroll > .list-group-item-action:focus,
.mdx-combobox-dropdown > .mdx-combobox-results-scroll > .list-group-item-action.active,
.mdx-combobox-dropdown > .mdx-combobox-results-scroll > .list-group-item-action[aria-selected="true"],
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: var(--motordex-navy, #061B49) !important;
    border-color: var(--motordex-navy, #061B49) !important;
    color: var(--motordex-white, #FFFFFF) !important;
}

/* =========================================================
   MotorDex: shared sidebar visual system
   The menu content remains database-driven; these styles apply to
   every field and module rendered by the shared root layout.
   ========================================================= */

.motordex-sidebar {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--mdx-environment-banner-height, 0px));
    height: calc(100dvh - var(--mdx-environment-banner-height, 0px));
    --mdx-sidebar-bg: #051c46;
    --mdx-sidebar-bg-deep: #051c46;
    --mdx-sidebar-line: rgba(104, 163, 231, 0.14);
    --mdx-sidebar-menu-bg: #d9dee7;
    --mdx-sidebar-menu-border: #c9d0da;
    --mdx-sidebar-menu-text: #061b49;
    --mdx-sidebar-menu-hover-bg: #eef1f5;
    --mdx-sidebar-white-text: #fff;
    width: 16rem;
    background: var(--mdx-sidebar-bg) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 1.75rem rgba(3, 22, 50, 0.2) !important;
}

.motordex-sidebar .sidebar-brand {
    flex-shrink: 0;
    height: 7.5rem;
    border-bottom: 1px solid var(--mdx-sidebar-line);
    background: var(--mdx-sidebar-bg);
}

.motordex-sidebar .brand-link-full {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 7.5rem;
    padding: 0;
    background: var(--mdx-sidebar-bg);
}

.motordex-sidebar .brand-image-full {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100%;
    object-fit: contain;
    margin: 0 auto;
    mix-blend-mode: normal;
    filter: none;
    transform: none;
}

.motordex-sidebar .sidebar-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.65rem 0.6rem 1rem;
    background: var(--mdx-sidebar-bg-deep);
}

.motordex-sidebar .nav-sidebar {
    gap: 0.2rem;
}

.motordex-sidebar .nav-sidebar .nav-item > .nav-link {
    min-height: 2.45rem;
    margin: 0;
    padding: 0.58rem 0.68rem;
    color: var(--mdx-sidebar-menu-text);
    background: var(--mdx-sidebar-menu-bg);
    border: 1px solid var(--mdx-sidebar-menu-border);
    border-radius: 0.42rem;
    font-size: 0.84rem;
    font-weight: 600;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.motordex-sidebar .nav-sidebar .nav-item > .nav-link:hover,
.motordex-sidebar .nav-sidebar .nav-item > .nav-link:focus-visible {
    color: var(--mdx-sidebar-menu-text);
    background: var(--mdx-sidebar-menu-hover-bg);
    border-color: var(--mdx-sidebar-menu-border);
}

.motordex-sidebar .nav-sidebar .nav-item > .nav-link.active,
.motordex-sidebar .nav-sidebar .nav-item > .nav-link[aria-current="page"] {
    color: var(--mdx-sidebar-menu-text) !important;
    background: var(--mdx-sidebar-menu-bg) !important;
    border-color: var(--mdx-sidebar-menu-border) !important;
    box-shadow: none;
}


.motordex-sidebar .nav-sidebar .nav-link > .nav-icon {
    width: 1.45rem;
    margin-right: 0.45rem;
    color: inherit;
    font-size: 0.95rem;
    text-align: center;
}

.motordex-sidebar .nav-sidebar .nav-link > p {
    color: inherit;
    line-height: 1.25;
}





.motordex-sidebar .nav-sidebar .nav-link.disabled {
    color: rgba(6, 27, 73, 0.58);
}

@media (max-width: 575.98px) {
    .motordex-sidebar {
        width: 15.5rem;
    }
}

/* Only sidebar nav links */
.app-sidebar .nav-sidebar .nav-link {
    /* Do NOT change display type; AdminLTE may manage it.
     We only normalize line-height and spacing so text centers properly. */
    line-height: 1.25;
}

    /* The <p> inside nav-link in AdminLTE controls the text baseline */
    .app-sidebar .nav-sidebar .nav-link > p {
        margin: 0;
        /* Helps stop the “text rides high” effect */
        line-height: 1.25;
    }

    /* Normalize icon box so all icons align */
    .app-sidebar .nav-sidebar .nav-link > .nav-icon {
        width: 1.6rem;
        text-align: center;
        /* Avoid weird baseline shifts */
        line-height: 1;
    }

    /* Leaf items also have nav-icon direct child */
    .app-sidebar .nav-sidebar .nav-link > .nav-icon,
    .app-sidebar .nav-sidebar .nav-link > i.nav-icon {
        vertical-align: middle;
    }

    /* Ensure arrow sits nicely */

    /* Disabled link: keep visuals consistent */
    .app-sidebar .nav-sidebar .nav-link.disabled {
        cursor: default;
    }



.brand-image {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cli-execution-card-success {
    border-left: 4px solid #198754;
}

.cli-execution-card-danger {
    border-left: 4px solid #dc3545;
}

.cli-execution-card-warning {
    border-left: 4px solid #fd7e14;
}

.cli-execution-sticky-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.cli-execution-pre {
    margin-bottom: 0;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow: auto;
}

.json-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 12px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 12px;
    overflow-x: auto;
}

.template-preview-content {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 160px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #495057;
}

.mdx-blue-section-header,
.card-header.mdx-blue-section-header {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

.mdx-blue-section-header .card-title,
.mdx-blue-section-header h1,
.mdx-blue-section-header h2,
.mdx-blue-section-header h3,
.mdx-blue-section-header h4,
.mdx-blue-section-header h5,
.mdx-blue-section-header h6,
.mdx-blue-section-header .small,
.mdx-blue-section-header .text-muted {
    color: #fff !important;
}

.mdx-blue-section-header .btn-outline-primary,
.mdx-blue-section-header .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.82);
    color: #fff;
}

.mdx-blue-section-header .btn-outline-primary:hover,
.mdx-blue-section-header .btn-outline-secondary:hover {
    background: #fff;
    border-color: #fff;
    color: #2563eb;
}

.stock-search-silver-surface {
    background-color: #f1f3f5;
}

.stock-search-silver-surface .form-control,
.stock-search-silver-surface .form-select {
    background-color: #fff;
}

.mdx-blue-label-header {
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 0.25rem;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

.mdx-blue-table-header th,
table.mdx-blue-table thead th {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

.stock-row[data-stock-edit-url]:not([data-stock-edit-url=""]),
.workspace-section[data-workspace-double-click-target] {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.stock-row[data-stock-edit-url]:not([data-stock-edit-url=""]):hover {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.22);
    cursor: pointer;
}

.stock-row[data-stock-edit-url]:not([data-stock-edit-url=""]):hover > td:not(.actions-column) {
    background-color: rgba(37, 99, 235, 0.05);
}

.stock-row[data-stock-edit-url]:not([data-stock-edit-url=""]) .stock-code-cell:hover {
    background-color: rgba(37, 99, 235, 0.1);
    cursor: pointer;
}

.workspace-section[data-workspace-double-click-target]:hover {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
    cursor: pointer;
}

.workspace-section[data-workspace-double-click-target]:hover .workspace-card-body {
    background-color: rgba(37, 99, 235, 0.035);
}

.workspace-section[data-workspace-double-click-target]:hover .workspace-card-header {
    filter: brightness(0.96);
}

.mdx-login-page {
    --mdx-login-black: #05080c;
    --mdx-login-panel: #0b1724;
    --mdx-login-panel-strong: #10243a;
    --mdx-login-blue: #147dff;
    --mdx-login-blue-soft: #45a2ff;
    --mdx-login-muted: #96a6ba;
    min-height: 100vh;
    margin: 0;
    color: #f7fafc;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 34% 54%, rgba(20, 125, 255, 0.27), transparent 34rem),
        linear-gradient(135deg, #05080c 0%, #08111b 48%, #05080c 100%);
    background-color: var(--mdx-login-black);
}

.mdx-login-page *,
.mdx-login-page *::before,
.mdx-login-page *::after {
    box-sizing: border-box;
}

.mdx-login-arrow {
    margin-left: 0.25rem;
    font-weight: 800;
}

html:has(.mdx-login-page) {
    min-width: 100%;
    min-height: 100%;
    background: #05080c;
}

.mdx-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: clamp(2rem, 6vw, 6rem);
    min-height: 100vh;
    padding: clamp(1.5rem, 5vw, 4rem);
}

.mdx-login-story,
.mdx-login-panel {
    position: relative;
    z-index: 1;
}

.mdx-login-story {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.mdx-login-signal {
    position: relative;
    width: min(32rem, 100%);
    min-height: 6.7rem;
    margin-bottom: clamp(1.65rem, 4vw, 3rem);
    padding: 1.05rem 1.55rem;
    background:
        linear-gradient(90deg, rgba(11, 28, 43, 0.96), rgba(13, 40, 65, 0.88) 62%, rgba(10, 23, 36, 0.74)),
        linear-gradient(rgba(69, 162, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 162, 255, 0.11) 1px, transparent 1px);
    background-size: auto, 1.75rem 1.75rem, 1.75rem 1.75rem;
    border: 1px solid rgba(46, 98, 142, 0.95);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.07),
        inset 0 0 3.25rem rgba(20, 125, 255, 0.2),
        0 0 2rem rgba(20, 125, 255, 0.1);
}

.mdx-login-signal::before {
    content: "";
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 0;
    width: 2px;
    background: var(--mdx-login-blue-soft);
    box-shadow: 0 0 0.85rem rgba(69, 162, 255, 0.95);
}

.mdx-login-signal-copy {
    display: grid;
    gap: 0.45rem;
}

.mdx-login-signal-copy span,
.mdx-login-eyebrow,
.mdx-login-return small,
.mdx-login-live-badge span {
    color: var(--mdx-login-blue-soft);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mdx-login-signal-copy span,
.mdx-login-live-badge span {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
}

.mdx-login-signal-copy strong {
    max-width: 29rem;
    font-size: clamp(1.3rem, 2.05vw, 1.75rem);
    line-height: 1.05;
    text-transform: uppercase;
    white-space: nowrap;
}

.mdx-login-signal-copy b,
.mdx-login-story h1 span {
    color: var(--mdx-login-blue-soft);
}

.mdx-login-signal-copy small {
    color: #7f91a7;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.mdx-login-live-badge {
    position: absolute;
    right: -0.8rem;
    top: -1.6rem;
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border: 1px solid rgba(69, 162, 255, 0.72);
    border-radius: 50%;
    background: #0b1d31;
    box-shadow: 0 0 0 0.35rem rgba(20, 125, 255, 0.12), 0 0 0 0.6rem rgba(20, 125, 255, 0.08);
}

.mdx-login-live-badge i {
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: #42e49c;
    box-shadow: 0 0 1rem rgba(66, 228, 156, 0.78);
}

.mdx-login-live-badge strong {
    color: var(--mdx-login-blue-soft);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mdx-login-story-copy {
    max-width: 47rem;
}

.mdx-login-story h1 {
    margin: 1.5rem 0 2rem;
    color: #ffffff;
    font-size: clamp(3rem, 6vw, 5.9rem);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.02;
}

.mdx-login-story h1 span {
    display: block;
}

.mdx-login-lead {
    max-width: 44rem;
    color: #aab8c9;
    font-size: 1.15rem;
    line-height: 1.7;
}

.mdx-login-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 2.6rem 0 0;
    padding: 0;
    list-style: none;
}

.mdx-login-assurance li {
    padding: 0.8rem 1.25rem;
    color: #b8c5d3;
    font-weight: 700;
    border: 1px solid rgba(123, 153, 186, 0.45);
    border-radius: 999px;
    background: rgba(8, 17, 27, 0.58);
}

.mdx-login-copyright {
    margin: auto 0 0;
    color: #607186;
}

.mdx-login-panel {
    align-self: center;
    width: min(100%, 54rem);
    margin-left: auto;
    color: #f7fafc;
    border: 1px solid rgba(83, 124, 165, 0.55);
    border-radius: 0.9rem;
    background:
        linear-gradient(145deg, rgba(16, 36, 58, 0.86), rgba(6, 13, 21, 0.96)),
        var(--mdx-login-panel);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.34);
}

.mdx-login-panel-body {
    padding: clamp(2rem, 5vw, 4.25rem);
}

.mdx-login-wordmark {
    display: flex;
    justify-content: center;
    margin-bottom: 2.6rem;
}

.mdx-login-wordmark img {
    display: block;
    width: min(100%, 31rem);
    height: auto;
    filter: drop-shadow(0 0 1.3rem rgba(20, 125, 255, 0.18));
}

.mdx-login-panel h2 {
    margin: 1.9rem 0 0.9rem;
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 0;
}

.mdx-login-muted,
.mdx-login-support {
    color: var(--mdx-login-muted);
    font-size: 1.05rem;
}

.mdx-login-form {
    margin-top: 2.9rem;
}

.mdx-login-field {
    margin-bottom: 1.5rem;
}

.mdx-login-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b2bfd0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mdx-login-form .form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    min-height: 4rem;
    color: #eef6ff;
    font: inherit;
    border-color: rgba(92, 127, 163, 0.74);
    border-style: solid;
    border-width: 1px;
    border-radius: 0.55rem;
    background: #06101b;
}

.mdx-login-form .form-control::placeholder {
    color: #7d8c9f;
    font-weight: 600;
}

.mdx-login-form .form-control:focus,
.mdx-login-form .form-check-input:focus {
    outline: 0;
    border-color: var(--mdx-login-blue-soft);
    box-shadow: 0 0 0 0.25rem rgba(20, 125, 255, 0.25);
}

.mdx-login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mdx-login-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 1.5rem;
}

.mdx-login-form .form-check-input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--mdx-login-blue);
}

.mdx-login-form .form-check-label {
    color: #aebacc;
    font-weight: 700;
}

.mdx-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 4.35rem;
    color: #ffffff;
    cursor: pointer;
    border: 0;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #0a6eff, #218bff);
    font: inherit;
    font-size: 1.12rem;
    font-weight: 800;
    box-shadow: 0 1.2rem 2rem rgba(20, 125, 255, 0.22);
}

.mdx-login-submit:hover,
.mdx-login-submit:focus {
    background: linear-gradient(135deg, #167bff, #3597ff);
}

.mdx-login-link,
.mdx-login-support a {
    color: var(--mdx-login-blue-soft);
    font-weight: 700;
    text-decoration: none;
}

.mdx-login-link:hover,
.mdx-login-support a:hover,
.mdx-login-return:hover {
    color: #ffffff;
}

.mdx-login-support {
    margin: 1.45rem 0 0;
    text-align: center;
}

.mdx-login-validation {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(220, 53, 69, 0.45);
    border-radius: 0.55rem;
    color: #ffd9df;
    background: rgba(83, 17, 29, 0.72);
}

.mdx-login-validation.validation-summary-valid {
    display: none;
}

.mdx-login-panel .invalid-feedback {
    display: block;
    min-height: 1.2rem;
    margin-top: 0.35rem;
    color: #ff9daf;
}

.mdx-login-form .input-validation-error {
    border-color: #ff7f96;
}

.mdx-login-return {
    position: absolute;
    right: -1.25rem;
    bottom: -8.2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    width: min(21rem, calc(100vw - 3rem));
    min-height: 6.4rem;
    padding: 1rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(69, 162, 255, 0.76);
    border-radius: 0.75rem;
    background: linear-gradient(145deg, #082033, #0b1928);
    box-shadow: inset 0.22rem 0 0 var(--mdx-login-blue-soft), 0 1.4rem 3rem rgba(0, 0, 0, 0.28);
}

.mdx-login-return-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    color: var(--mdx-login-blue-soft);
    border: 1px solid var(--mdx-login-blue-soft);
    border-radius: 0.55rem;
}

.mdx-login-return strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.1rem;
}

@media (max-width: 1399.98px) {
    .mdx-login-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mdx-login-story {
        justify-content: flex-start;
    }

    .mdx-login-panel {
        margin: 0 auto;
    }

    .mdx-login-live-badge {
        right: 1rem;
    }

    .mdx-login-return {
        position: static;
        margin: 1rem auto -0.6rem;
    }
}

@media (max-width: 767.98px) {
    .mdx-login-shell {
        padding: 1rem;
    }

    .mdx-login-story::before,
    .mdx-login-signal,
    .mdx-login-copyright {
        display: none;
    }

    .mdx-login-story h1 {
        margin-top: 0.8rem;
        font-size: 3rem;
    }

    .mdx-login-assurance {
        gap: 0.7rem;
        margin-top: 1.5rem;
    }

    .mdx-login-assurance li {
        padding: 0.6rem 0.8rem;
        font-size: 0.88rem;
    }

    .mdx-login-panel-body {
        padding: 1.25rem;
    }

    .mdx-login-wordmark {
        margin-bottom: 1.8rem;
    }
}
