.report-flow {
    margin-top: 18px;
}

/* Original internal-audit layout: one readable column on every screen size. */
.report-flow--audit {
    --audit-line: #176a98;
    --audit-return: #8cbcd1;
    max-width: 570px;
    margin: 24px auto 0;
}
.report-flow--audit .report-flow__desktop { display: block; }
.report-flow--audit .report-flow__viewport { border: 0; overflow: visible; }
.report-flow--audit .report-flow__stage { min-width: 0; min-height: 0; }
.report-flow--audit .report-flow__nodes {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin: 0;
    padding: 4px 44px;
    list-style: none;
}
.report-flow--audit .report-flow__node {
    position: relative;
    width: 100%;
    min-height: 72px;
    display: grid;
    grid-template-columns: 24px 32px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border: 2px solid var(--audit-line);
    border-radius: 16px;
    box-shadow: none;
    background: #fff;
}
.report-flow--audit .report-flow__step-number {
    font-size: 13px;
    color: var(--audit-line);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.report-flow--audit .report-flow__icon {
    width: 32px;
    height: 32px;
    background: none;
    border: 0;
    color: var(--audit-line);
}
.report-flow--audit .report-flow__icon-svg { width: 28px; height: 28px; }
.report-flow--audit .report-flow__copy > strong { font-size: 18px; line-height: 1.5; }
.report-flow--audit .report-flow__copy { overflow-wrap: anywhere; }
.report-flow--audit .report-flow__node:not(:has(.report-flow__icon)) .report-flow__copy { grid-column: 2 / -1; }
.report-flow--audit .audit-flow-edge { stroke-linejoin: round; stroke-linecap: round; }
.report-flow--audit .audit-flow-edge--main { stroke: var(--audit-line); stroke-width: 2; }
.report-flow--audit .audit-flow-edge--return { stroke: var(--audit-return); stroke-width: 2; }
.report-flow--audit .audit-arrow-head--main { fill: var(--audit-line); }
.report-flow--audit .audit-arrow-head--return { fill: var(--audit-return); }
@media (max-width: 599px) {
    .report-flow--audit .report-flow__nodes { padding-inline: 26px; }
    .report-flow--audit .report-flow__node { grid-template-columns: 20px 24px minmax(0, 1fr); gap: 8px; padding: 12px; }
    .report-flow--audit .report-flow__icon, .report-flow--audit .report-flow__icon-svg { width: 24px; height: 24px; }
    .report-flow--audit .report-flow__copy > strong { font-size: 16px; }
}

.report-flow__viewport {
    border: 1px solid var(--report-border);
    border-radius: var(--report-radius);
    overflow: auto;
    scrollbar-color: var(--report-accent) #e8eff1;
}

.report-flow__stage {
    min-height: 340px;
    min-width: 920px;
    position: relative;
}

.report-flow__links,
.report-flow__nodes {
    inset: 0;
    position: absolute;
}

.report-flow__links {
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.report-flow__links marker path {
    fill: var(--report-accent);
}

.report-flow__nodes {
    z-index: 2;
}

.report-flow__node {
    --tone: var(--report-accent);
    --tone-strong: var(--report-accent-strong);
    --tone-soft: var(--report-accent-soft);
    --tone-border: var(--report-border);
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--tone-border);
    border-top: 4px solid var(--tone);
    border-radius: var(--report-radius);
    box-shadow: var(--report-shadow);
    color: var(--report-text);
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 96px;
    padding: 14px;
    position: absolute;
    width: 210px;
}

.report-flow__node--annotation {
    background: var(--tone-soft);
    border-style: dashed;
    border-top-style: solid;
}

.report-flow__node--group {
    background: color-mix(in srgb, var(--tone-soft) 72%, transparent);
    border: 2px dashed var(--tone);
    box-shadow: none;
    display: block;
    min-height: 220px;
    padding: 14px 18px;
    width: 520px;
    z-index: 0;
}

.report-flow__node--group .report-flow__icon,
.report-flow__node--group .report-flow__body {
    display: none;
}

.report-flow__node--decision {
    background: transparent;
    border: 0;
    box-shadow: none;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 22px 25px;
}

.report-flow__node--decision::before {
    background: var(--tone-soft);
    border: 2px solid var(--tone);
    content: "";
    inset: 8px 18px;
    position: absolute;
    transform: rotate(45deg) scale(.72);
    z-index: -1;
}

.report-flow__icon {
    align-items: center;
    background: var(--tone-soft);
    border: 1px solid var(--tone-border);
    border-radius: 50%;
    color: var(--tone-strong);
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.report-flow__icon-svg {
    height: 24px;
    object-fit: contain;
    width: 24px;
}

.report-flow__copy,
.report-flow__copy > * {
    min-width: 0;
}

.report-flow__node:not(:has(.report-flow__icon)) .report-flow__copy,
.report-flow__mobile-card:not(:has(.report-flow__icon)) .report-flow__copy {
    grid-column: 1 / -1;
}

.report-flow__copy > strong,
.report-flow__copy > span {
    display: block;
}

.report-flow__copy > strong {
    color: var(--tone-strong);
    font-size: 16px;
    line-height: 1.35;
}

.report-flow__label {
    color: var(--tone);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.report-flow__body {
    color: var(--report-text);
    font-size: 13px;
    line-height: 1.55;
    margin-top: 7px;
}

@media (min-width: 768px) {
    .report-template--chevron-process .report-flow__node,
    .report-flow.is-compact-linear .report-flow__node {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 8px;
        padding: 11px 9px;
    }

    .report-template--chevron-process .report-flow__icon,
    .report-flow.is-compact-linear .report-flow__icon {
        width: 30px;
        height: 30px;
    }

    .report-template--chevron-process .report-flow__icon-svg,
    .report-flow.is-compact-linear .report-flow__icon-svg {
        width: 20px;
        height: 20px;
    }

    .report-template--chevron-process .report-flow__copy > strong,
    .report-flow.is-compact-linear .report-flow__copy > strong {
        font-size: 15px;
    }

    .report-template--chevron-process .report-flow__body,
    .report-flow.is-compact-linear .report-flow__body {
        font-size: 12px;
        line-height: 1.5;
    }
}

.report-flow.is-fit-scaled .report-flow__viewport {
    overflow: hidden;
}

.report-flow__edge {
    fill: none;
    stroke: var(--report-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.report-flow__edge--dashed {
    stroke-dasharray: 8 6;
}

.report-flow__edge-label {
    dominant-baseline: central;
    fill: var(--report-accent-strong);
    font-size: 12px;
    font-weight: 700;
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 5px;
    stroke-linejoin: round;
    text-anchor: middle;
}

.report-flow__mobile {
    display: none;
}

.report-roadmap__scroll {
    border: 1px solid var(--report-border);
    border-radius: var(--report-radius);
    overflow-x: auto;
}

.report-roadmap__table {
    border-collapse: collapse;
    min-width: 820px;
    table-layout: fixed;
    width: 100%;
}

.report-roadmap__table th,
.report-roadmap__table td {
    border-bottom: 1px solid var(--report-border);
    border-right: 1px solid var(--report-border);
    height: 48px;
    padding: 10px;
    position: relative;
}

.report-roadmap__table thead th {
    background: var(--report-accent-soft);
    color: var(--report-accent-strong);
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

.report-roadmap__table thead th:first-child,
.report-roadmap__task > th {
    width: 230px;
}

.report-roadmap__group th {
    background: var(--report-accent);
    color: #fff;
    font-size: 14px;
    text-align: left;
}

.report-roadmap__task > th {
    color: var(--tone-strong);
    text-align: left;
}

.report-roadmap__task-title,
.report-roadmap__task small,
.report-roadmap__status {
    display: block;
}

.report-roadmap__task small {
    color: var(--report-text);
    font-weight: 400;
    line-height: 1.35;
    margin-top: 3px;
}

.report-roadmap__status {
    color: var(--tone);
    font-size: 12px;
    margin-top: 4px;
}

.report-roadmap__task td.is-active::before {
    background: var(--tone);
    content: "";
    inset: 13px 0;
    position: absolute;
}

.report-roadmap__task td.is-start::before {
    border-radius: 5px 0 0 5px;
    left: 8px;
}

.report-roadmap__task td.is-end::before {
    border-radius: 0 5px 5px 0;
    right: 8px;
}

.report-roadmap__task td.is-start.is-end::before {
    border-radius: 5px;
}

.report-roadmap__task td.is-milestone::after {
    background: var(--report-support);
    border: 3px solid #fff;
    border-radius: 50%;
    content: "";
    height: 18px;
    position: absolute;
    right: 6px;
    top: 15px;
    width: 18px;
}

.report-roadmap__mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .report-flow__desktop,
    .report-roadmap__desktop {
        display: none;
    }

    .report-flow__mobile,
    .report-roadmap__mobile {
        display: block;
    }
}

/* Shared by the phone breakpoint and container-width fallback on tablets. */
.report-flow__mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.report-flow__mobile-item {
    --tone: var(--report-accent);
    --tone-strong: var(--report-accent-strong);
    --tone-soft: var(--report-accent-soft);
    --tone-border: var(--report-border);
    padding-bottom: 22px;
    position: relative;
}

.report-flow__mobile-item:not(:last-child)::after {
    background: var(--tone);
    bottom: 3px;
    content: "";
    height: 18px;
    left: 22px;
    position: absolute;
    width: 2px;
}

.report-flow__mobile-item:not(:last-child)::before {
    bottom: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--tone);
    content: "";
    left: 18px;
    position: absolute;
}

.report-flow__mobile-card {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--tone-border);
    border-left: 4px solid var(--tone);
    border-radius: var(--report-radius);
    display: grid;
    gap: 11px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
}

.report-flow__mobile-item--group .report-flow__mobile-card {
    background: var(--tone-soft);
    border-left-width: 1px;
    padding: 10px 14px;
}

.report-flow__mobile-item--annotation .report-flow__mobile-card {
    background: var(--tone-soft);
    border-style: dashed;
    border-left-style: solid;
}

.report-flow__mobile-item--decision .report-flow__mobile-card {
    background: color-mix(in srgb, var(--tone-soft) 78%, #fff);
    border-width: 2px;
}

.report-flow__mobile-item--group .report-flow__icon,
.report-flow__mobile-item--group .report-flow__body {
    display: none;
}

.report-flow__mobile-links {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 8px 0 0 54px;
    padding: 0;
}

.report-flow__mobile-links li {
    align-items: baseline;
    border-left: 2px solid var(--tone-border);
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-left: 9px;
}

.report-flow__mobile-links span {
    color: var(--tone);
    font-size: 12px;
    font-weight: 700;
}

.report-flow__mobile-links strong {
    color: var(--report-heading);
    font-size: 13px;
}

@media (max-width: 479.98px) {
    .report-flow__mobile-card {
        gap: 9px;
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 12px;
    }

    .report-flow__mobile-card .report-flow__icon,
    .report-flow__mobile-card .report-flow__icon-svg {
        height: 32px;
        width: 32px;
    }

    .report-flow__mobile-links {
        margin-left: 43px;
    }
}

.report-roadmap__period {
    border-left: 3px solid var(--report-accent);
    margin-bottom: 22px;
    padding-left: 14px;
}

.report-roadmap__period h4 {
    color: var(--report-accent-strong);
    font-size: 18px;
    margin: 0 0 10px;
}

.report-roadmap__period ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.report-roadmap__period li {
    background: var(--report-accent-soft);
    border: 1px solid var(--report-border);
    border-radius: var(--report-radius);
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 11px 12px;
}

.report-roadmap__period li span {
    color: var(--report-accent);
    font-size: 12px;
    font-weight: 700;
}

.report-roadmap__period li small {
    color: var(--report-text);
    grid-column: 1 / -1;
}

@media (prefers-reduced-motion: reduce) {
    .report-flow__viewport,
    .report-roadmap__scroll {
        scroll-behavior: auto;
    }
}
