.report-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.report-heading h1 {
    margin-bottom: 6px;
    font-size: 20px;
}

.status {
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf4f0;
    color: #365b4d;
    font-size: 12px;
    font-weight: 650;
}

.analysis-inputs {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 18px;
    margin: 26px 0 0;
    font-size: 14px;
}

.analysis-inputs dt {
    color: #718079;
}

.analysis-inputs dd {
    min-width: 0;
    margin: 0;
}

.analysis-inputs ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 18px;
}

.relevance-report {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    margin-top: 34px;
}

.relevance-report h2,
.relevance-report p {
    margin: 0;
}

.relevance-report h2 {
    font-size: 18px;
}

.score-chart {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 0;
}

.score-chart figcaption {
    color: #718079;
    font-size: 13px;
}

.score-sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.score-section summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    cursor: pointer;
    list-style-position: outside;
}

.score-section summary::-webkit-details-marker {
    display: none;
}

.score-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.score-chevron {
    flex: 0 0 auto;
    color: #718079;
    transition: transform 0.15s ease;
}

.score-section[open] .score-chevron {
    transform: rotate(90deg);
}

.score-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 650;
}

.paragraph-count {
    flex: 0 0 auto;
    color: #718079;
    font-size: 12px;
    font-weight: 400;
}

.score-measure {
    display: contents;
}

.score-measure strong {
    text-align: right;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.score-track {
    position: relative;
    display: block;
    height: 11px;
    border-radius: 999px;
    background: #eef1ef;
    overflow: hidden;
}

.score-track > span {
    position: absolute;
    inset: 0;
    width: 0;
    background: #416c5c;
    border-radius: inherit;
}

.score-paragraphs {
    display: grid;
    gap: 14px;
    margin: 16px 0 0 18px;
    padding-left: 18px;
    border-left: 1px solid #dce3df;
}

.score-paragraphs li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
}

.score-paragraphs .score-track {
    height: 6px;
    background: rgba(65, 108, 92, 0.12);
}

.score-paragraphs .score-track > span {
    background: rgba(65, 108, 92, 0.6);
}

.paragraph-score {
    text-align: right;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.score-paragraphs li p {
    grid-column: 1 / -1;
    margin: 0;
    color: #5f6d67;
    font-size: 13px;
    line-height: 1.55;
}

.paragraph-chart {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.paragraph-chart figcaption {
    color: #718079;
    font-size: 13px;
}

.paragraph-chart-row {
    display: flex;
    min-width: 0;
    gap: 8px;
}

.chart-axis {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 224px;
    font-size: 12px;
    color: #718079;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.paragraph-chart-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
}

.chart-bars {
    display: flex;
    gap: 8px;
    height: 224px;
    padding: 0 4px;
    border-left: 1px solid #dce3df;
    border-bottom: 1px solid #dce3df;
}

.chart-block {
    display: flex;
    gap: 1px;
}

.chart-bar-cell {
    flex: 1 1 0;
    min-width: 1px;
    display: flex;
    align-items: flex-end;
    cursor: default;
}

.chart-bar {
    width: 100%;
    background: rgba(65, 108, 92, 0.7);
}

.chart-bar-cell:hover .chart-bar,
.chart-bar-cell:focus .chart-bar {
    background: #416c5c;
}

.chart-block-labels {
    display: flex;
    gap: 8px;
    padding: 4px 4px 0;
}

.chart-label-cell {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.chart-block-label {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 4px;
    background: #eef1ef;
    font-size: 12px;
    font-weight: 650;
    cursor: default;
}

.site-map-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 34px;
}

.site-map-section h2 {
    margin: 0;
    font-size: 18px;
}

.site-map-figure {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.site-map-plot {
    width: 100%;
    min-height: 380px;
}

.site-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 12px;
    border: 1px solid #dce3df;
    border-radius: 999px;
    background: #f3f6f4;
    font-size: 12px;
    cursor: default;
}

.site-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7c93a6;
}

.site-dot.own {
    background: #416c5c;
}

.site-domain {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #718079;
}

.map-caption {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #718079;
    font-size: 13px;
}

.map-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #dce3df;
    border-radius: 50%;
    background: #fff;
    color: #718079;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.map-help:hover {
    background: #fff;
    color: #24312c;
    border-color: #24312c;
}

.text-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 34px;
}

.text-list h2 {
    margin: 0;
    font-size: 18px;
}

.text-list ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.report-progress {
    margin-top: 34px;
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.analysis-report h1 a {
    color: inherit;
    text-decoration: none;
}

.analysis-report h1 a:hover {
    text-decoration: underline;
}

.tooltip-bubble {
    position: absolute;
    z-index: 80;
    max-width: 260px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #24312c;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-line;
    opacity: 0;
    visibility: hidden;
    transform: translateY(2px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    pointer-events: none;
}

.tooltip-bubble.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-arrow {
    position: absolute;
    left: 0;
    width: 8px;
    height: 8px;
    background: inherit;
    transform: rotate(45deg);
}

.tooltip-bubble[data-side="top"] .tooltip-arrow {
    bottom: -4px;
}

.tooltip-bubble[data-side="bottom"] .tooltip-arrow {
    top: -4px;
}

@media (max-width: 640px) {
    .report-heading {
        display: grid;
    }

    .analysis-inputs {
        grid-template-columns: 1fr;
    }

    .analysis-inputs dd + dt {
        margin-top: 6px;
    }

    .score-section summary {
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .paragraph-count {
        display: none;
    }
}
