.classification-source,
.classification-result,
.classification-breakdown {
    margin-top: 16px;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    background: #fff;
}

.classification-source {
    padding: 13px;
    background: #f6f8fb;
}

.classification-source__heading,
.classification-result__heading,
.classification-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.classification-source__heading span,
.classification-result__heading span,
.classification-section-heading > div > span {
    color: #e8177f;
    font-size: 8px;
    font-weight: 700;
}

.classification-source h3,
.classification-result h3,
.classification-breakdown h3 {
    margin: 2px 0 0;
    color: #17243a;
    font-size: 13px;
}

.classification-source__badge,
.classification-section-heading > span {
    padding: 4px 7px;
    color: #496b94;
    border-radius: 4px;
    background: #eaf2fb;
    font-size: 7px;
    font-weight: 700;
}

.classification-source .demo-field-label {
    display: block;
    margin-top: 12px;
}

.classification-source .form-select {
    margin-top: 4px;
    color: #24354d;
    border-color: #cfd9e6;
    border-radius: 5px;
    font-size: 10px;
}

.classification-source > p {
    min-height: 30px;
    margin: 8px 0 0;
    color: #718096;
    font-size: 8px;
    line-height: 1.45;
}

.classification-source .btn-demo-action {
    margin-top: 10px;
}

.classification-source .btn-demo-action.is-busy {
    cursor: progress;
}

.classification-result {
    overflow: hidden;
    border-color: #f0acd0;
    background: #fff8fc;
}

.classification-result__heading {
    padding: 13px 13px 10px;
}

.classification-result__heading output {
    color: #c21875;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.classification-confidence {
    height: 5px;
    margin: 0 13px 12px;
    overflow: hidden;
    border-radius: 3px;
    background: #eadfe6;
}

.classification-confidence span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #d60f78;
    transition: width 240ms ease;
}

.classification-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #f0d6e4;
    background: #fff;
}

.classification-metrics span {
    display: grid;
    gap: 2px;
    padding: 10px 8px;
    text-align: center;
}

.classification-metrics span + span {
    border-left: 1px solid #e4e9f0;
}

.classification-metrics strong {
    color: #263850;
    font-size: 11px;
}

.classification-metrics small {
    color: #7b889c;
    font-size: 7px;
}

.classification-breakdown {
    padding: 13px;
}

.classification-scores,
.classification-evidence {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.classification-score > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.classification-score strong {
    color: #344761;
    font-size: 9px;
}

.classification-score.is-winner strong {
    color: #c21875;
}

.classification-score > div:first-child span {
    color: #7b889c;
    font-size: 7px;
}

.classification-score > div:last-child {
    height: 4px;
    margin-top: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: #e6ebf1;
}

.classification-score > div:last-child span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #7193b8;
}

.classification-score.is-winner > div:last-child span {
    background: #d60f78;
}

.classification-hit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7ebf1;
}

.classification-hit:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.classification-hit > div {
    display: grid;
    gap: 3px;
}

.classification-hit > div:last-child {
    justify-items: end;
}

.classification-hit strong {
    min-width: 0;
    overflow: hidden;
    color: #263850;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classification-hit > div:last-child > strong {
    color: #55769b;
}

.classification-hit > div:first-child > span {
    color: #8794a6;
    font-size: 7px;
}

.classification-region {
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.classification-region--title { color: #b30d66; background: #fde8f4; }
.classification-region--heading { color: #376b9f; background: #e7f1fb; }
.classification-region--body { color: #596779; background: #edf0f4; }
.classification-region--header { color: #167257; background: #e2f5ed; }
.classification-region--footer { color: #7a5b14; background: #f7f0d9; }

.classification-evidence__empty {
    margin: 0;
    color: #7b889c;
    font-size: 8px;
}

@media (max-width: 720px) {
    .classification-result__heading output { font-size: 18px; }
}
