.sm-reports-hero {
    background: linear-gradient(135deg, #142956, #214797);
    color: #fff;
    padding-block: clamp(2.5rem, 6vw, 5rem);
}
.sm-reports-hero h1 {
    color: inherit;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: .4rem 0 .8rem;
}
.sm-reports-hero p {
    color: #e2edff;
    margin: 0;
    max-width: 68ch;
}
.sm-reports-back {
    display: inline-block;
    color: #fff;
    margin-bottom: 1.25rem;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.sm-reports-back:hover { color: #d1e2ff; }
.sm-reports-body { padding-block: 2rem 4rem; }
.sm-reports-filter {
    align-items: end;
    background: #f4f7fc;
    border: 1px solid #d9e2f2;
    border-radius: .9rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(15rem, 2fr) minmax(11rem, 1fr) auto;
    padding: 1rem;
}
.sm-reports-filter label { display: grid; gap: .35rem; font-weight: 600; }
.sm-reports-filter input,
.sm-reports-filter select {
    background: #fff;
    border: 1px solid #aab9d1;
    border-radius: .45rem;
    color: #142956;
    font: inherit;
    font-weight: 400;
    min-height: 2.65rem;
    padding: .5rem .75rem;
    width: 100%;
}
.sm-reports-count { color: #405372; margin: 1.25rem 0 .75rem; }
.sm-reports-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.sm-report-card {
    background: #fff;
    border: 1px solid #d9e2f2;
    border-radius: .9rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    overflow-wrap: anywhere;
    padding: 1.25rem;
}
.sm-report-card h2 { font-size: 1.25rem; margin: 0; }
.sm-report-card h2 a { color: #153c88; text-underline-offset: .2em; }
.sm-report-card p { color: #405372; margin: 0; }
.sm-report-category { color: #405372; font-size: .86rem; font-weight: 650; }
.sm-report-card-footer {
    border-top: 1px solid #e7edf7;
    color: #405372;
    display: flex;
    flex-wrap: wrap;
    font-size: .82rem;
    gap: .4rem 1rem;
    margin-top: auto;
    padding-top: .75rem;
}
.sm-report-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
}
.sm-report-sample {
    background: #f4f7fc;
    border: 1px solid #d9e2f2;
    border-radius: .9rem;
    margin-block: 1.5rem 2rem;
    padding: clamp(1rem, 3vw, 1.5rem);
}
.sm-report-sample h2 { margin-top: 0; }
.sm-report-csv { background: #fff; color: #142956; padding: .75rem; max-inline-size: 100%; overflow-x: auto; }
.sm-report-table { overflow-x: auto; }
.sm-report-table table { background: #fff; border-collapse: collapse; width: 100%; }
.sm-report-table th,
.sm-report-table td { border-bottom: 1px solid #d9e2f2; padding: .75rem; text-align: start; }
.sm-report-table th { background: #e9f0fc; font-weight: 650; }
@media (max-width: 42rem) {
    .sm-reports-filter { grid-template-columns: 1fr; }
    .sm-reports-filter button { justify-self: start; }
}

.sm-reports-create { margin-top: 1.2rem; }
.sm-reports-screenshot {
    background: #f4f7fc;
    border: 1px solid #d9e2f2;
    border-radius: .9rem;
    margin: 1.25rem 0;
    overflow: hidden;
    padding: 1rem;
}
.sm-reports-screenshot img { display: block; height: auto; max-width: 100%; border-radius: .45rem; }
.sm-reports-screenshot figcaption { color: #405372; margin-top: .75rem; }
.sm-report-builder { display: grid; gap: 1.2rem; grid-template-columns: minmax(19rem, 2fr) minmax(0, 3fr); align-items: start; }
.sm-builder-panel {
    background: #f4f7fc;
    border: 1px solid #d9e2f2;
    border-radius: .9rem;
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
}
.sm-builder-panel h2 { margin: 0 0 .8rem; }
.sm-builder-label { font-weight: 650; }
.sm-builder-panel textarea {
    background: #fff;
    border: 1px solid #aab9d1;
    border-radius: .45rem;
    color: #142956;
    display: block;
    font: inherit;
    min-height: 2.65rem;
    margin-top: .35rem;
    padding: .5rem .75rem;
    width: 100%;
}
.sm-report-chat { margin-bottom: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.sm-report-chat p { margin: 0 0 .75rem; border: 1px solid #d9e2f2; border-radius: .55rem; padding: .75rem; }
.sm-report-chat p:first-child { margin-left: 1.25rem; background: #e8effb; }
.sm-builder-panel textarea { resize: vertical; min-height: 7rem; }
.sm-builder-actions button:disabled { cursor: not-allowed; opacity: .55; }
.sm-builder-actions { margin-top: 1rem; }
.sm-builder-note { color: #405372; }
.sm-builder-error { color: #a41624; }
.sm-report-metrics { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; margin: 1rem 0; }
.sm-report-metrics > div { background: #fff; border: 1px solid #d9e2f2; border-radius: .55rem; padding: .75rem; }
.sm-report-metrics dt { color: #405372; }
.sm-report-metrics dd { color: #142956; font-size: 1.3rem; font-weight: 650; margin: .15rem 0 0; }
.sm-report-table caption { font-weight: 650; text-align: start; padding: .75rem 0; background: #f4f7fc; }
@media (max-width: 58rem) { .sm-report-builder { grid-template-columns: 1fr; } }
.sm-report-sample-note { color: #405372; font-size: .875rem; margin-top: -.25rem; }
