body {
    background: radial-gradient(60% 80% at 50% 20%, rgba(20, 28, 38, .35) 0%, rgba(11, 15, 20, 0) 70%),
    linear-gradient(180deg, #070a0f 0%, #0b0f14 100%) !important;
}

.cr-main-wrap > section {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2.5rem /* 40/16 */ 1.5rem /* 24/16 */;
}

.page {
    position: relative
}

.pageBgGrid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .14;
    background: linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .04) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .04) 75%, rgba(255, 255, 255, .04) 76%, transparent 77%),
    linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .04) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .04) 75%, rgba(255, 255, 255, .04) 76%, transparent 77%);
    background-size: 50px 50px;
}

.pageCard {
    color: #e9eef7;
    background: linear-gradient(135deg, #00000094 0%, #000000 100%);
    border: 1px solid #2b364c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(164, 208, 255, .05);
    padding: 2rem;
    border-radius: 1rem;
    width: auto;
    min-width: 50%;
    max-width: 80%;
}

.pageBadge {
    display: inline-block;
    font-size: 0.75rem /* 12/16 */;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 0.375rem /* 6/16 */ 0.625rem /* 10/16 */;
    border-radius: 62.4375rem /* 999/16 */;
    border: 1px solid #2f3a52;
    background: #101722;
    color: #a4d0ff;
}

.pageBadge.danger {
    border-color: #4b2c34;
    background: #171016;
    color: #ff9cab
}

.pageTitle {
    font-size: 2.125rem /* 34/16 */;
    margin: 0.875rem /* 14/16 */ 0 0.375rem /* 6/16 */;
}

.pageSubtitle {
    margin: 0;
}

.page h1,
.page h2,
.page h3 {
    color: #e9eef7;
}

.pageSubtitle {
    color: #c2c9d6;
}

.btn {
    color: #e6eef9;
    border-color: #2b3e5c;
    height: 2.375rem /* 38/16 */;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border-radius: 0.25rem;
    text-decoration: none !important;
    transition: 0.5s ease-in-out;
    font-size: 1rem;
    line-height: normal;
    font-weight: 400;
    cursor: pointer;
}

.btnPrimary {
    background: linear-gradient(90deg, #1a2942, #274169);
    border-color: #345a8f;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btnGhost {
    background: transparent
}

/* ===== List (dev/tech) ===== */
.pageHeader {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 12px
}

.pageHeaderMain .badge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #2f3a52;
    background: #101722;
    color: #a4d0ff;
}

.pageHeaderStats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.statBadge {
    border: 1px solid #2b364c;
    border-radius: 999px;
    padding: 6px 10px;
    background: #0f141b;
    color: #e6e6e6;
    font-size: 12px
}

.toolbar {
    margin: 12px 0 8px
}

.toolbarRow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

/* ===== Select2 dark tuning ===== */
.select2-container--default .select2-selection--single {
    background: #0f141b;
    border: 1px solid #273146;
    border-radius: 0.625rem /* 10/16 */;
    height: 2.5rem /* 40/16 */;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 2.375rem /* 38/16 */;
    color: #e6e6e6;
    padding: 0 2.25rem /* 36/16 */ 0 0.75rem /* 12/16 */;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 2.375rem /* 38/16 */;
    right: 0.5rem /* 8/16 */;
}

.select2-dropdown {
    background: #0f141b;
    border: 1px solid #273146
}

.select2-search--dropdown .select2-search__field {
    background: #0b0f14;
    border: 1px solid #273146;
    color: #e6e6e6;
    border-radius: 0.5rem /* 8/16 */;
}

.select2-results__option {
    color: #e6e6e6
}

.select2-results__option--highlighted {
    background: #1a2740
}

.select2-results__option[aria-selected=true] {
    background: #152133
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9fb0c8;
}

.ctlInput {
    height: 2.375rem /* 38/16 */;
    color: #e6e6e6;
    padding: 0 0.625rem /* 10/16 */;
    border-radius: 0.25rem;
    background: #0f141b;
    border: 1px solid #273146;
    transition: 0.5s ease-in-out;
}

.ctlInput:hover,
.ctlInput:focus,
.ctlInput:active {
    border-color: #e6e6e6;
}

.ctlSearch {
    flex: 1;
    min-width: 16.25rem /* 260/16 */;
}

.cardsGrid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 10px
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: #e6e6e6;
    background: linear-gradient(180deg, #0f141b 0%, #0b0f14 100%);
    border: 1px solid #1d2430;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(164, 208, 255, .04);
    transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #2b364c;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(164, 208, 255, .07)
}

.cardMedia {
    position: relative;
    aspect-ratio: 16/9;
    background: #0f141b
}

.cardMedia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.cardMediaShade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .45) 100%)
}

.cardYear {
    position: absolute;
    left: 10px;
    bottom: 10px;
    font-size: 12px;
    border: 1px solid #2b364c;
    border-radius: 999px;
    padding: 4px 8px;
    background: #0f141b;
    color: #cfe0ff
}

.cardBody {
    padding: 14px 14px 16px
}

.cardTitle {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.3
}

.cardSubtitle {
    margin: 0 0 10px;
    color: #a2a7b3;
    min-height: 38px
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.chip {
    border: 1px solid #273146;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    background: #0f141b;
    color: #cfe0ff
}

.emptyCard {
    grid-column: 1/-1;
    border: 1px dashed #2b364c;
    border-radius: 12px;
    padding: 28px;
    background: #0f141b;
    text-align: center;
    color: #c2c9d6
}

.emptyTitle {
    font-weight: 700;
    margin-bottom: 6px
}

.pageFooter {
    margin: 16px 0 4px;
    color: #93a1b5;
    font-size: 12px
}

.pageFooter kbd {
    background: #0f141b;
    border: 1px solid #273146;
    border-radius: 6px;
    padding: 2px 6px
}


/* ===== Error Screens (dev/tech vibe) ===== */

.errorBgGrid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background: linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .04) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .04) 75%, rgba(255, 255, 255, .04) 76%, transparent 77%),
    linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .04) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .04) 75%, rgba(255, 255, 255, .04) 76%, transparent 77%);
    background-size: 3.125rem /* 50/16 */ 3.125rem /* 50/16 */;
}

.errorHint {
    margin: 0.75rem /* 12/16 */ 0 0;
    border: 1px solid #273146;
    background: #0f141b;
    border-radius: 0.75rem /* 12/16 */;
    padding: 0.75rem /* 12/16 */;
    color: #cfe7ff;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem /* 13/16 */;
}

.errorDetails {
    margin: 0.625rem /* 10/16 */ 0
}

.errorDetails > summary {
    cursor: pointer;
    opacity: .9
}

.errorActions {
    display: flex;
    gap: 0.625rem /* 10/16 */;
    margin-top: 1rem /* 16/16 */;
}

.errorMeta {
    display: flex;
    gap: 1rem /* 16/16 */;
    margin-top: 0.875rem /* 14/16 */;
    color: #93a1b5;
    font-size: 0.75rem /* 12/16 */;
    flex-wrap: wrap
}

.errorMeta code {
    background: #0f141b;
    border: 1px solid #273146;
    border-radius: 0.375rem /* 6/16 */;
    padding: 0.125rem /* 2/16 */ 0.375rem /* 6/16 */
}

.errorBgGrid {
    opacity: .22;
}

.errorDiag {
    margin-top: 0.875rem /* 14/16 */;
}

.errorDiagTitle {
    opacity: .9;
    margin-bottom: 6px
}

#diagBox {
    margin-top: 1rem;
}

/* Skeleton */
.isHidden {
    visibility: hidden
}

.isSkeleton {
    pointer-events: none
}

.sk {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #0f141b;
    border: 1px solid #1d2430
}

.sk::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .06), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    animation: skShimmer 1.1s infinite
}

@keyframes skShimmer {
    100% {
        transform: translateX(100%)
    }
}

.sk-media {
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    border-radius: 12px
}

.sk-title {
    height: 18px;
    width: 70%;
    margin: 12px 0 8px
}

.sk-sub {
    height: 14px;
    width: 90%;
    margin: 0 0 10px
}

.sk-chip {
    height: 22px;
    width: 120px;
    border-radius: 999px
}

.cardsGrid .isSkeleton .cardBody {
    padding: 14px 14px 16px
}

.cardsGrid .isSkeleton .cardMedia {
    background: #0f141b
}
