:root {
    --bimo-ink: #172b4d;
    --bimo-muted: #5f6f86;
    --bimo-paper: #fffaf4;
    --bimo-blue: #dcecff;
    --bimo-coral: #e9755f;
    --bimo-mint: #dcefe6;
    --bimo-line: #e6e9ef;
}

.bimo-brand-mark {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    color: #fff;
    background: var(--bimo-coral);
    font-size: 1.1rem;
}

.bimo-nav-avatar-fallback {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff0eb;
    color: #8d3829;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
}

.bimo-public-shell,
.bimo-user-shell,
.bimo-auth-shell {
    color: var(--bimo-ink);
    background: var(--bimo-paper);
}

.bimo-public-shell .layout-navbar .btn-primary,
.bimo-user-shell .layout-navbar .btn-primary {
    border-color: var(--bimo-coral) !important;
    background: var(--bimo-coral) !important;
}

.bimo-auth-shell .btn-primary {
    border-color: var(--bimo-ink);
    background: var(--bimo-ink);
    color: #fff;
}

.bimo-auth-shell .btn-primary:hover,
.bimo-auth-shell .btn-primary:focus-visible {
    border-color: #0d1b32;
    background: #0d1b32;
    color: #fff;
}

.bimo-public-shell .layout-navbar .btn-outline-primary,
.bimo-user-shell .layout-navbar .btn-outline-primary,
.bimo-auth-shell .btn-outline-primary {
    border-color: var(--bimo-ink) !important;
    color: var(--bimo-ink) !important;
}

.bimo-public-shell .card,
.bimo-user-shell .card,
.bimo-auth-shell .card {
    border-color: var(--bimo-line);
    border-radius: 1.25rem;
    box-shadow: 0 .75rem 2rem rgba(23, 43, 77, .05);
}

.bimo-public-shell .form-control,
.bimo-user-shell .form-control,
.bimo-auth-shell .form-control,
.bimo-admin-shell .form-control {
    border-color: #cbd4e0;
    border-radius: .75rem;
}

.bimo-public-shell .form-control:focus,
.bimo-user-shell .form-control:focus,
.bimo-auth-shell .form-control:focus,
.bimo-admin-shell .form-control:focus {
    border-color: var(--bimo-coral);
    box-shadow: 0 0 0 .2rem rgba(233, 117, 95, .16);
}

.bimo-auth-shell .form-control::placeholder { color: #5f6f86; opacity: 1; }
.bimo-auth-shell :focus-visible { outline: 3px solid #172b4d; outline-offset: 2px; }
.bimo-auth-shell .bimo-google-button { min-height: 3rem; border-color: #718199; background: #fff; color: #172b4d; font-weight: 600; }
.bimo-auth-shell .bimo-google-button:hover,
.bimo-auth-shell .bimo-google-button:focus-visible { border-color: #172b4d; background: #f2f6fb; color: #172b4d; }
.bimo-auth-shell .bimo-google-icon { color: #4285f4; font-size: 1.25rem; }

.bimo-kicker {
    color: #bd523f;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.bimo-choice-question {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 1.5rem;
    border: 0;
}

.bimo-choice-question legend {
    float: none;
    width: auto;
    margin-bottom: 1rem;
    color: #172b4d;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
}

.bimo-choice-list {
    display: grid;
    gap: .625rem;
}

.bimo-choice-option {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    gap: .875rem;
    margin: 0;
    padding: .875rem 1rem;
    border: 2px solid #9aa8ba;
    border-radius: .75rem;
    color: #172b4d;
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1.5;
    transition: border-color .16s ease, background-color .16s ease;
}

.bimo-choice-option:hover,
.bimo-choice-option:focus-within {
    border-color: #172b4d;
}

.bimo-choice-option:focus-within {
    outline: 3px solid #172b4d;
    outline-offset: 3px;
}

.bimo-choice-option:has(input:checked) {
    border-color: #bd523f;
    background: #fff0eb;
}

.bimo-choice-option input[type="radio"] {
    appearance: none;
    flex: 0 0 auto;
    width: 1.375rem;
    height: 1.375rem;
    margin: 0;
    border: 2px solid #596b83;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.bimo-choice-option input[type="radio"]:checked {
    border-color: #8d3829;
    background: radial-gradient(circle, #8d3829 0 4px, #fff 4.5px);
}

.bimo-choice-option input[type="radio"]:focus-visible {
    outline: 3px solid #172b4d;
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .bimo-choice-question { padding: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bimo-choice-option { transition: none; }
}

.bimo-result-modal .modal-content { overflow: hidden; border: 1px solid #cbd4e0; border-radius: 1.25rem; box-shadow: 0 1.5rem 4rem rgba(23, 43, 77, .2); }
.bimo-result-chip { padding: .45rem .8rem; border-radius: 999px; background: #fff0eb; color: #8d3829; font-size: .875rem; font-weight: 700; }
.bimo-result-copy { color: #40516a; font-size: 1.0625rem; line-height: 1.6; }
.bimo-result-panel { padding: 1.5rem; border: 1px solid #cbd4e0; border-radius: 1rem; background: #f2f6fb; }
.bimo-result-label { color: #40516a; font-size: .9375rem; font-weight: 700; }
.bimo-result-score { color: #172b4d; font-size: 2rem; font-weight: 700; line-height: 1.2; }
.bimo-result-score-total { color: #40516a; font-size: 1rem; font-weight: 500; }
.bimo-result-level { color: #8d3829; font-size: 3.5rem; font-weight: 800; line-height: 1.1; }
.bimo-result-action { min-height: 3.25rem; padding-inline: 1.5rem; border: 2px solid #172b4d; border-radius: .75rem; background: #172b4d; color: #fff; font-size: 1.0625rem; font-weight: 700; }
.bimo-result-action:hover, .bimo-result-action:focus-visible { border-color: #0d1b32; background: #0d1b32; color: #fff; }
.bimo-result-modal :focus-visible { outline: 3px solid #172b4d; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .bimo-result-modal.fade .modal-dialog { transition: none; }
}

.bimo-auth-shell {
    min-height: 100dvh;
    background: radial-gradient(circle at 12% 0%, var(--bimo-blue), transparent 34rem), var(--bimo-paper);
}

.bimo-auth-shell .authentication-inner .card {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(12px);
}

.bimo-auth-shell .authentication-cover .authentication-inner > .d-flex {
    background: transparent !important;
}

.bimo-auth-shell .bimo-auth-aside {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--bimo-blue);
}

.bimo-admin-shell {
    --bs-primary: var(--bimo-coral);
    --bs-primary-rgb: 233, 117, 95;
}

.bimo-admin-shell .card {
    border-color: var(--bimo-line);
    border-radius: 1rem;
    box-shadow: 0 .5rem 1.5rem rgba(23, 43, 77, .04);
}

.bimo-admin-shell .btn-primary {
    border-color: var(--bimo-coral);
    background: var(--bimo-coral);
}

.bimo-admin-shell .menu-item.active > .menu-link,
.bimo-admin-shell .menu-item.active > .menu-link:not(.menu-toggle) {
    background: rgba(233, 117, 95, .12);
    color: #bd523f;
}

@media (max-width: 575.98px) {
    .bimo-auth-shell .bimo-auth-aside { min-height: auto; padding: 2rem 1.25rem; }
}
