.expansion-disease-card strong {
    letter-spacing: .01em;
}

.expansion-panel {
    --exp-accent: #5b3b86;
    --exp-soft: #f5f1fa;
}

.expansion-panel > .exp-panel-heading {
    border-left: 7px solid var(--exp-accent);
    padding: 2px 0 2px 16px;
    margin-bottom: 22px;
}

.expansion-panel > .exp-panel-heading h2 {
    margin: 0 0 5px;
}

.exp-module {
    border: 1px solid #dce3e8;
    border-top: 5px solid var(--exp-accent);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(23, 56, 79, .07);
    margin: 0 0 22px;
    padding: 20px;
}

.exp-module h3,
.exp-module h4 {
    color: #20394a;
    margin-top: 0;
}

.exp-module-intro {
    color: #5b6c77;
    margin-bottom: 16px;
}

.exp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin-bottom: 16px;
}

.exp-form-grid > label,
.exp-fieldset label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 600;
    min-width: 0;
}

.exp-form-grid input,
.exp-form-grid select,
.exp-fieldset input,
.exp-fieldset select,
.exp-fieldset textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #aebbc4;
    border-radius: 6px;
    background: #fff;
    color: #172c3a;
    padding: 8px 10px;
    font-weight: 400;
}

.exp-fieldset {
    border: 1px solid #d7dfe4;
    border-radius: 9px;
    margin: 0 0 16px;
    padding: 14px 16px 8px;
}

.exp-fieldset legend {
    border: 0;
    color: #27485d;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    padding: 0 7px;
    width: auto;
}

.exp-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}

.exp-check-grid label,
.exp-inline-check {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    font-weight: 500;
    gap: 8px;
}

.exp-check-grid input,
.exp-inline-check input {
    flex: 0 0 auto;
    min-height: auto;
    margin-top: 3px;
    width: auto;
}

.exp-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.expansion-panel .score-result {
    border-color: color-mix(in srgb, var(--exp-accent) 34%, #dce3e8);
}

.exp-result-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.exp-copy-status {
    color: #526772;
    font-size: 13px;
    min-height: 1.4em;
}

.exp-alert {
    background: #fff4f2;
    border-left: 5px solid #c43f3f;
    color: #772828;
    margin: 12px 0;
    padding: 11px 13px;
}

.exp-note {
    background: var(--exp-soft);
    border-radius: 8px;
    color: #455862;
    margin: 12px 0;
    padding: 11px 13px;
}

.exp-source-list {
    border-top: 1px solid #dce3e8;
    margin-top: 22px;
    padding-top: 15px;
}

.exp-source-list li {
    margin-bottom: 6px;
}

@media (max-width: 767px) {
    .exp-form-grid,
    .exp-check-grid,
    .exp-result-grid {
        grid-template-columns: 1fr;
    }

    .exp-module {
        border-radius: 9px;
        padding: 15px;
    }
}

@media print {
    .exp-result-actions,
    .favorite-toggle {
        display: none !important;
    }
}
