html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f4f7fb;
    color: #1d2a3a;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    display: none;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .reload {
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #3c4b5d;
}

.top-branding,
.nav-branding {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 0.4rem;
}

.nav-brand-icon {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
    border-radius: 0.4rem;
}

.nav-branding {
    color: inherit;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
}

.nav-branding:hover {
    text-decoration: none;
}

.page-intro {
    max-width: 60rem;
    color: #5f6f82;
    margin-bottom: 1.5rem;
}

.explorer-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.panel {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.panel-header {
    padding: 1.25rem 1.25rem 0;
}

.panel-header p,
.result-caption {
    color: #66758a;
    margin-bottom: 0;
}

.control-stack {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.results-panel {
    min-height: 28rem;
}

.result-section {
    margin: 1.25rem;
    padding: 1.25rem;
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.nested-section {
    margin-top: 1.25rem;
}

.chip-list,
.score-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.chip,
.score-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-size: 0.92rem;
    line-height: 1;
}

.chip {
    background: #eef4ff;
    color: #22426b;
    border: 1px solid #d7e6ff;
}

.chip-project {
    background: #effaf2;
    color: #1f5d35;
    border: 1px solid #d5efdd;
}

.score-chip {
    color: #16324f;
    border: 1px solid transparent;
}

.score-high {
    background: #e8f8ec;
    color: #166534;
    border-color: #cbeed4;
}

.score-medium {
    background: #fff3e6;
    color: #b45309;
    border-color: #ffd8a8;
}

.empty-state {
    margin: 1.25rem;
    padding: 2rem;
    border: 2px dashed #d7dee7;
    border-radius: 0.9rem;
    color: #627185;
    background: #fbfdff;
}

.password-gate-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(180deg, #eef4fb 0%, #f7faff 100%);
}

.password-gate-card {
    width: min(100%, 28rem);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #d9e2ec;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
    text-align: center;
}

.password-gate-logo {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    margin-bottom: 1rem;
}

.password-gate-text {
    color: #5f6f82;
    margin-bottom: 1rem;
}

.password-gate-input {
    margin-bottom: 0.75rem;
}

.password-gate-button {
    width: 100%;
}

.password-gate-error {
    color: #b42318;
    margin-bottom: 0.75rem;
}

.password-gate-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.14159 * 2 * 40%);
    stroke-dashoffset: calc(3.14159 * 2 * 40% * (1 - var(--blazor-load-percentage, 0)));
    transition: stroke-dashoffset 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading...");
}

@media (max-width: 991.98px) {
    .explorer-grid {
        grid-template-columns: 1fr;
    }
}