/* R11 entry and R11/R13 shared progress composition. Core ui-* primitives
   remain owned by style.css; every rule here is public route scoped. */

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"].analysis-flow-page,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"].analysis-flow-page {
    width: 100%;
    max-width: 60rem;
    margin-inline: auto;
    gap: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"].analysis-flow-page {
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-steps,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-steps,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-block: 1px solid var(--theme-color-border);
    list-style: none;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-step,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-step,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
    align-items: center;
    gap: var(--theme-spacing-xs) var(--theme-spacing-md);
    padding: var(--theme-spacing-md);
    border-inline-end: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-step > :last-child,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-step > :last-child,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-step > :last-child {
    grid-column: 1 / -1;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-step:last-child,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-step:last-child,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-step:last-child {
    border-inline-end: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-steps,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-steps {
    border-block-start: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-step,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-step {
    padding-block: var(--theme-spacing-xl);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-entry-content,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-entry-content,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-entry-content {
    min-width: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-state,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-state,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-state {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-xl);
    padding-block: var(--theme-spacing-xl);
    border-block: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-state-heading,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-state-heading,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-state-heading {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-sm);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-counts,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-counts,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-counts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border-block: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-count,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-count,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-count {
    display: grid;
    justify-items: center;
    gap: var(--theme-spacing-xs);
    padding: var(--theme-spacing-lg) var(--theme-spacing-sm);
    border-inline-end: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-count:last-child,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-count:last-child,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-count:last-child {
    border-inline-end: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-count dd,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-count dd,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-count dd {
    margin: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-change-summary,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-change-summary,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-change-summary {
    display: grid;
    gap: var(--theme-spacing-md);
    padding-block: var(--theme-spacing-lg);
    border-block: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-change-list,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-change-list,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-change-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--theme-spacing-sm) var(--theme-spacing-xl);
    margin: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-change-row,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-change-row,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-change-row {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--theme-spacing-md);
    padding-block: var(--theme-spacing-xs);
    border-bottom: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-change-row dd,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-change-row dd,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-change-row dd {
    margin: 0;
    text-align: end;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-actions,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-actions,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--theme-spacing-sm);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-inline-guide {
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    justify-self: start;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-inline-actions,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-inline-actions,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--theme-spacing-sm);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-request-status,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-request-status,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-request-status {
    scroll-margin-block-start: var(--theme-spacing-5xl);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-request-status:not([hidden]),
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-request-status:not([hidden]) {
    margin-block: var(--theme-spacing-xl);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-progress-heading][tabindex="-1"]:focus:not(:focus-visible),
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] [data-analysis-progress-heading][tabindex="-1"]:focus:not(:focus-visible),
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-progress-heading][tabindex="-1"]:focus:not(:focus-visible) {
    outline: none;
}

:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) [data-ui-route="analysis-entry"] [data-analysis-progress-heading][tabindex="-1"]:focus-visible,
:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) [data-ui-route="analysis-progress"] [data-analysis-progress-heading][tabindex="-1"]:focus-visible,
:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) [data-ui-route="distribution-entry"] [data-analysis-progress-heading][tabindex="-1"]:focus-visible {
    outline: var(--theme-focus-ring-width) solid var(--theme-color-focus);
    outline-offset: var(--theme-focus-ring-gap);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-result-ready] [data-analysis-focus-on-load][tabindex="-1"]:focus:not(:focus-visible),
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] [data-analysis-result-ready] [data-analysis-focus-on-load][tabindex="-1"]:focus:not(:focus-visible),
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-result-ready] [data-analysis-focus-on-load][tabindex="-1"]:focus:not(:focus-visible) {
    outline: none;
}

:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) [data-ui-route="analysis-entry"] [data-analysis-result-ready] [data-analysis-focus-on-load][tabindex="-1"]:focus-visible,
:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) [data-ui-route="analysis-progress"] [data-analysis-result-ready] [data-analysis-focus-on-load][tabindex="-1"]:focus-visible,
:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) [data-ui-route="distribution-entry"] [data-analysis-result-ready] [data-analysis-focus-on-load][tabindex="-1"]:focus-visible,
:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) [data-ui-route="analysis-entry"] .analysis-flow-preset-summary:focus-visible,
:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) [data-ui-route="analysis-progress"] .analysis-flow-preset-summary:focus-visible,
:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) [data-ui-route="distribution-entry"] .analysis-flow-preset-summary:focus-visible {
    outline: var(--theme-focus-ring-width) solid var(--theme-color-focus);
    outline-offset: var(--theme-focus-ring-gap);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset-panel,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset-panel,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset-panel {
    display: grid;
    min-width: 0;
    padding-block-start: var(--theme-spacing-lg);
    border-top: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset {
    min-width: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset-summary,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset-summary,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset-summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: var(--theme-spacing-lg);
    list-style: none;
    cursor: pointer;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset-summary::-webkit-details-marker,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset-summary::-webkit-details-marker,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset-summary::-webkit-details-marker {
    display: none;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset-summary [data-ui-chevron],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset-summary [data-ui-chevron],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset-summary [data-ui-chevron] {
    flex: 0 0 auto;
    color: var(--theme-color-muted);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset[open] .analysis-flow-preset-summary [data-ui-chevron],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset[open] .analysis-flow-preset-summary [data-ui-chevron],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset[open] .analysis-flow-preset-summary [data-ui-chevron] {
    transform: rotate(180deg);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset-summary > span:first-child,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset-summary > span:first-child,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset-summary > span:first-child {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-xs);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset-content,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset-content,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    align-items: start;
    gap: var(--theme-spacing-lg);
    padding-block-start: var(--theme-spacing-lg);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-listbox,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-listbox,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-listbox {
    min-width: 0;
}

/* Overlay ownership stays with the shared .ui-popover primitive; the route only
   caps how wide a single-column option list may grow. */
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-listbox-panel,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-listbox-panel,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-listbox-panel {
    max-width: min(22rem, calc(100vw - var(--theme-spacing-2xl)));
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-option-list,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-option-list,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-option-list {
    max-height: 18rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Keep the footer to one focus-safe row. The negative end margin consumes the
   popover's generic 12px inset until only the 3px outer focus extent remains. */
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-listbox-actions,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-listbox-actions,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-listbox-actions {
    --analysis-flow-listbox-action-focus-inset: calc(
        var(--theme-focus-ring-width) + var(--theme-focus-ring-gap)
    );
    display: flex;
    min-height: 44px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--theme-spacing-xs);
    margin-block:
        var(--analysis-flow-listbox-action-focus-inset)
        calc(var(--analysis-flow-listbox-action-focus-inset) - var(--theme-spacing-md));
    padding-block: 0;
    border-block-start: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-noscript-fieldset,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-noscript-fieldset,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-noscript-fieldset {
    display: grid;
    gap: var(--theme-spacing-sm);
    margin: 0;
    padding: 0;
    border: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-noscript-options,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-noscript-options,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-noscript-options {
    display: grid;
    gap: var(--theme-spacing-xs);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-noscript-option,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-noscript-option,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-noscript-option {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: var(--theme-spacing-sm);
    padding: var(--theme-spacing-sm);
    border: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-progress-state,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-progress-state,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-progress-state {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-xl);
    padding-block: var(--theme-spacing-xl);
    border-block: 1px solid var(--theme-color-border);
}

/* The starting owner is both the route-controller enhancement and HTMX's
   declarative fallback. It stays out of layout until either owner marks the
   claim request as active. */
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-starting],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-starting] {
    display: none;
    opacity: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] #analysis-content[data-analysis-provisional-starting="true"] > [data-analysis-starting],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] #analysis-content[data-analysis-provisional-starting="true"] > [data-analysis-starting],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-starting].htmx-request,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-starting].htmx-request {
    display: grid;
    opacity: 1;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-auto-dispatch],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] [data-analysis-auto-dispatch],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-auto-dispatch] {
    display: none;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-progress-heading,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-progress-heading,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-progress-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--theme-spacing-md);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-progress-copy,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-progress-copy,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-progress-copy {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-sm);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-progress-times,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-progress-times,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-progress-times {
    display: flex;
    flex-wrap: wrap;
    gap: var(--theme-spacing-xs) var(--theme-spacing-lg);
    font-variant-numeric: tabular-nums;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-meter-group,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-meter-group,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-meter-group {
    display: grid;
    gap: var(--theme-spacing-sm);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-meter,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-meter,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-meter {
    width: 100%;
    height: var(--theme-spacing-md);
    overflow: hidden;
    border: 1px solid var(--theme-color-border);
    border-radius: var(--theme-radius-control);
    appearance: none;
    background: var(--theme-color-surface-muted);
    color: var(--theme-color-primary);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-meter::-webkit-progress-bar,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-meter::-webkit-progress-bar,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-meter::-webkit-progress-bar {
    background: var(--theme-color-surface-muted);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-meter::-webkit-progress-value,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-meter::-webkit-progress-value,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-meter::-webkit-progress-value {
    background: var(--theme-color-primary);
    transition: inline-size var(--theme-motion-duration-interaction);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-meter::-moz-progress-bar,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-meter::-moz-progress-bar,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-meter::-moz-progress-bar {
    background: var(--theme-color-primary);
    transition: inline-size var(--theme-motion-duration-interaction);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-step[data-step-state="current"],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-step[data-step-state="current"],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-step[data-step-state="current"] {
    background: var(--theme-color-surface-selected);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-step[data-step-state="complete"],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-step[data-step-state="complete"],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-step[data-step-state="complete"] {
    background: var(--theme-color-surface-muted);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-workspace-content,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-workspace-content,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-workspace-content {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-lg);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-workspace-content > form,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-workspace-content > form,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-workspace-content > form {
    min-width: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-workspace-fieldset,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-workspace-fieldset,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-workspace-fieldset {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-xl);
    margin: 0;
    padding: 0;
    border: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-editor,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-score-editor,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-editor {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-xl);
    padding-block: var(--theme-spacing-xl);
    border-block: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-group,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-score-group,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-group {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-md);
    margin: 0;
    padding: 0 0 var(--theme-spacing-xl);
    border: 0;
    border-bottom: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-group:last-child,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-score-group:last-child,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-group:last-child {
    padding-block-end: 0;
    border-bottom: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-grid,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-field-grid,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--theme-spacing-lg);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-grid--apcs,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-field-grid--apcs,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-grid--apcs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 40rem;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-grid--distribution-ast,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-field-grid--distribution-ast,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-grid--distribution-ast {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-grid > *,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-field-grid > *,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-grid > * {
    min-width: 0;
}

/* The active workspaces share the last-good score-sheet composition while
   retaining the current workflow, state, and control primitives. */
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-workspace-content,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-workspace-content,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-workspace-fieldset,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-workspace-fieldset {
    gap: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-editor,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-editor {
    gap: var(--theme-spacing-xl);
    padding: var(--theme-spacing-xl);
    border: 0;
    border-block-end: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-editor .analysis-flow-score-group,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-editor .analysis-flow-score-group {
    gap: 0;
    padding: 0;
    border: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-group-title,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-group-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--theme-spacing-sm);
    margin: 0;
    padding: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-group > .analysis-flow-field-grid,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-group > [data-analysis-field],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-group > .analysis-flow-field-grid,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-group > [data-analysis-field] {
    margin-block-start: var(--theme-spacing-lg);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-icon,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    color: var(--theme-color-primary);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-editor .analysis-flow-field-grid,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-editor .analysis-flow-field-grid {
    gap: var(--theme-spacing-xl);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-secondary-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--theme-spacing-xl);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-secondary-grid > * {
    min-width: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-secondary-grid > .analysis-flow-score-group {
    align-content: start;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-secondary-grid > [data-analysis-score-group="apcs"] {
    grid-column: span 2;
}

/* 「分析範圍」（BR-44）不是成績：成績表與動作列之間的一列展開設定。摘要列共用
   .analysis-flow-preset-summary，收合時顯示目前選擇。 */
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope-panel,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-scope-panel {
    min-width: 0;
    padding-block: var(--theme-spacing-lg);
    border-block-end: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope-panel {
    padding-inline: var(--theme-spacing-xl);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope[open] .analysis-flow-preset-summary [data-ui-chevron],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-scope[open] .analysis-flow-preset-summary [data-ui-chevron] {
    transform: rotate(180deg);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope:has(input:checked) [data-analysis-scope-state="off"],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-scope:has(input:checked) [data-analysis-scope-state="off"],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope:not(:has(input:checked)) [data-analysis-scope-state="on"],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-scope:not(:has(input:checked)) [data-analysis-scope-state="on"] {
    display: none;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope-content,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-scope-content {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-xs);
    margin-block-start: var(--theme-spacing-md);
    padding-block-start: var(--theme-spacing-md);
}

/* 「納入希望組」：DESIGN 選取語法——方框、勾選時淡選取面＋Navy 墨＋實心方點。 */
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope-option,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-scope-option {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-self: start;
    gap: var(--theme-spacing-sm);
    padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
    cursor: pointer;
}

/* 選取面向外讓出內距，方框才會和標題、說明文字的左緣對齊。 */
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope-option {
    margin-inline-start: calc(-1 * var(--theme-spacing-sm));
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope-option:has(input:checked),
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-scope-option:has(input:checked) {
    background: var(--theme-color-surface-selected);
    color: var(--theme-color-primary);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope-option input[type="checkbox"],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-scope-option input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    appearance: none;
    padding: 3px;
    border: 1px solid var(--theme-color-border-strong);
    border-radius: 0;
    background: var(--theme-color-surface);
    cursor: pointer;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope-option input[type="checkbox"]:checked,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-scope-option input[type="checkbox"]:checked {
    border-color: var(--theme-color-primary);
    background: var(--theme-color-primary) content-box;
}

:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) [data-ui-route="analysis-entry"] .analysis-flow-scope-option input[type="checkbox"]:focus-visible,
:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) [data-ui-route="analysis-progress"] .analysis-flow-scope-option input[type="checkbox"]:focus-visible {
    outline: var(--theme-focus-ring-width) solid var(--theme-color-focus);
    outline-offset: var(--theme-focus-ring-gap);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-label,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-label {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: var(--theme-spacing-xs);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-range,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-range {
    color: var(--theme-color-muted);
    font-size: var(--theme-text-supporting);
    font-weight: var(--theme-text-supporting--font-weight);
    line-height: var(--theme-text-supporting--line-height);
    white-space: nowrap;
    /* 全形括號改用半寬字形，起首不多出半個字的空白。 */
    font-feature-settings: "halt";
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-control,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-control {
    min-width: 0;
    font-size: var(--theme-text-body);
    text-align: center;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-control::placeholder,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-control::placeholder {
    color: var(--theme-color-muted);
    opacity: 1;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-native-select-wrap,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-native-select-wrap {
    position: relative;
    width: 100%;
}

/* 水平 padding 必須為 0：Chromium 的原生下拉面板只會把 select 的
   padding-left（不含 padding-right）套進選項列，任何水平 padding 都會讓
   面板選項與關閉狀態的置中基準不一致而向右偏移 padding-left/2。 */
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-native-select,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-native-select {
    width: 100%;
    padding-inline: 0;
    appearance: none;
    text-align-last: center;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-native-select-chevron,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-native-select-chevron {
    position: absolute;
    top: calc(50% - 8px);
    inset-inline-end: var(--theme-spacing-lg);
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--theme-color-muted);
    pointer-events: none;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-grid--listening {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-note {
    margin: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-grid--apcs {
    max-width: none;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-editor,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-editor {
    width: 100%;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-error-list,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-error-list,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-error-list {
    display: grid;
    gap: var(--theme-spacing-xs);
    margin: var(--theme-spacing-sm) 0 0;
    padding-inline-start: var(--theme-spacing-xl);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-error-list a,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-error-list a,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-error-list a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: var(--theme-spacing-xs);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-state-summary,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-state-summary,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-state-summary {
    --analysis-flow-state-signal: var(--theme-color-muted);
    --analysis-flow-state-label: var(--theme-color-foreground);
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    min-width: 0;
    align-items: start;
    gap: var(--theme-spacing-md);
    padding-block: var(--theme-spacing-lg);
    border-block: 1px solid var(--theme-color-border);
    background: transparent;
    color: var(--theme-color-foreground);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-actions] > .analysis-flow-state-summary,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-actions] > .analysis-flow-state-summary {
    padding-block: 0;
    border-block: 0;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-state-summary::before,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-state-summary::before,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-state-summary::before {
    width: 8px;
    height: 8px;
    margin-block-start: 0.375rem;
    background: var(--analysis-flow-state-signal);
    content: "";
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-state-summary__copy,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-state-summary__copy,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-state-summary__copy {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    min-width: 0;
    align-items: baseline;
    gap: var(--theme-spacing-xs) var(--theme-spacing-lg);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-state-summary__label,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-state-summary__label,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-state-summary__label {
    min-width: 0;
    margin: 0;
    color: var(--analysis-flow-state-label);
    font-family: var(--theme-font-sans);
    font-size: var(--theme-text-control);
    font-weight: var(--theme-text-control--font-weight);
    line-height: var(--theme-text-control--line-height);
    letter-spacing: var(--theme-text-control--letter-spacing);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-state-summary__message,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-state-summary__message,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-state-summary__message {
    min-width: 0;
    margin: 0;
    color: var(--theme-color-muted);
    font-family: var(--theme-font-sans);
    font-size: var(--theme-text-supporting);
    font-weight: var(--theme-text-supporting--font-weight);
    line-height: var(--theme-text-supporting--line-height);
    letter-spacing: var(--theme-text-supporting--letter-spacing);
    overflow-wrap: anywhere;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-state-summary__action,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-state-summary__action,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-state-summary__action {
    grid-column: 2;
    width: fit-content;
    max-width: 100%;
    justify-self: start;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-state-tone="success"],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] [data-analysis-state-tone="success"],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-state-tone="success"] {
    --analysis-flow-state-signal: var(--theme-color-status-success-border);
    --analysis-flow-state-label: var(--theme-color-status-success-text);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-state-tone="warning"],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] [data-analysis-state-tone="warning"],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-state-tone="warning"] {
    --analysis-flow-state-signal: var(--theme-color-status-warning-border);
    --analysis-flow-state-label: var(--theme-color-status-warning-text);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-state-tone="error"],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] [data-analysis-state-tone="error"],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-state-tone="error"] {
    --analysis-flow-state-signal: var(--theme-color-danger-border);
    --analysis-flow-state-label: var(--theme-color-danger);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-actions],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-actions] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: var(--theme-spacing-sm) var(--theme-spacing-xl);
    padding-block: var(--theme-spacing-xl);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset-save,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset-save,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset-save {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--theme-spacing-sm) var(--theme-spacing-lg);
    margin-block-start: var(--theme-spacing-lg);
    padding-block-start: var(--theme-spacing-lg);
    border-top: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset-status,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset-status,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset-status {
    scroll-margin-block-start: var(--theme-spacing-5xl);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-inline-feedback,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-inline-feedback,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-inline-feedback {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: var(--theme-spacing-sm);
    padding-block: var(--theme-spacing-sm);
    background: transparent;
    color: var(--theme-color-foreground);
    font-family: var(--theme-font-sans);
    font-size: var(--theme-text-supporting);
    font-weight: var(--theme-text-supporting--font-weight);
    line-height: var(--theme-text-supporting--line-height);
    letter-spacing: var(--theme-text-supporting--letter-spacing);
    overflow-wrap: anywhere;
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-inline-feedback::before,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-inline-feedback::before,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-inline-feedback::before {
    width: 8px;
    height: 8px;
    margin-block-start: 0.3125rem;
    flex: 0 0 auto;
    background: var(
        --analysis-flow-state-signal,
        var(--theme-color-border-strong)
    );
    content: "";
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-ready,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-ready,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-ready {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-xl);
    padding-block: var(--theme-spacing-xl);
    border-block-end: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-ready-header,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-ready-header,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-ready-header {
    display: grid;
    min-width: 0;
    align-items: center;
    gap: var(--theme-spacing-sm);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-ready-state,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-ready-state,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-ready-state {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: var(--theme-spacing-sm);
    margin: 0;
    color: var(--analysis-flow-state-label, var(--theme-color-foreground));
    font-family: var(--theme-font-sans);
    font-size: var(--theme-text-supporting);
    font-weight: 600;
    line-height: var(--theme-text-supporting--line-height);
    letter-spacing: var(--theme-text-supporting--letter-spacing);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-ready-state::before,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-ready-state::before,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-ready-state::before {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    background: var(
        --analysis-flow-state-signal,
        var(--theme-color-border-strong)
    );
    content: "";
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-ready-form,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-ready-form,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-ready-form {
    display: grid;
    min-width: 0;
    gap: var(--theme-spacing-lg);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-ready-actions,
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-ready-actions,
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-ready-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--theme-spacing-md);
    min-width: 0;
    padding-block-start: var(--theme-spacing-lg);
    border-top: 1px solid var(--theme-color-border);
}

:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-result-link],
:where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] [data-analysis-result-link],
:where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-result-link] {
    margin-inline-start: auto;
}

@media (min-width: 48rem) {
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-actions],
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-actions] {
        grid-template-columns: minmax(0, 1fr) auto;
        reading-flow: grid-rows;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-actions] > *,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-actions] > * {
        grid-column: 1;
        justify-self: start;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-actions] > [data-analysis-submit],
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-actions] > [data-analysis-submit] {
        grid-area: 1 / 2;
        justify-self: end;
    }

}

@media (48rem <= width < 64rem) {
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-actions] > [data-analysis-context-status],
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-actions] > [data-analysis-context-status] {
        grid-column: 1 / -1;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-context-status] ~ [data-analysis-submit],
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-context-status] ~ [data-analysis-submit] {
        grid-row: 2;
    }
}

@media (max-width: 48rem) {
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-editor,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-editor {
        padding: var(--theme-spacing-card);
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-scope-panel {
        padding-inline: var(--theme-spacing-card);
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-steps,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-steps,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-step,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-step,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-step {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: var(--theme-spacing-xs);
        padding: var(--theme-spacing-sm);
        border-bottom: 0;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-step,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-step {
        padding-block: var(--theme-spacing-lg);
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-step:last-child,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-step:last-child,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-step:last-child {
        border-inline-end: 0;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-step > :last-child,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-step > :last-child,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-step > :last-child {
        display: none;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset-content,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset-content,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset-content,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-change-list,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-change-list,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-change-list,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-state-summary__copy,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-state-summary__copy,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-state-summary__copy {
        grid-template-columns: 1fr;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-state-summary__action,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-state-summary__action,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-state-summary__action {
        grid-column: 1;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-secondary-grid {
        grid-template-columns: 1fr;
        gap: var(--theme-spacing-lg);
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-secondary-grid > [data-analysis-score-group="apcs"] {
        grid-column: auto;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-grid,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-field-grid,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-grid,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-grid--distribution-ast,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-field-grid--distribution-ast,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-grid--distribution-ast {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-grid--listening {
        grid-template-columns: 1fr;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-counts,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-counts,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-result-count:nth-child(even),
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-result-count:nth-child(even),
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-result-count:nth-child(even) {
        border-inline-end: 0;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-actions > *,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-actions > *,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-actions > * {
        width: 100%;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] [data-analysis-preset-submit],
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] [data-analysis-preset-submit],
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] [data-analysis-preset-submit] {
        width: 100%;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-actions > form > [data-analysis-submit],
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-actions > form > [data-analysis-submit],
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-actions > form > [data-analysis-submit] {
        width: 100%;
    }

    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-preset-summary,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-preset-summary,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-preset-summary {
        gap: var(--theme-spacing-md);
    }
}

@media (max-width: 31.999rem) {
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-grid,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-field-grid,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-grid,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-grid--distribution-ast,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-field-grid--distribution-ast,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-grid--distribution-ast,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-field-grid--apcs,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-field-grid--apcs,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-field-grid--apcs {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 22.501rem) and (max-width: 31.999rem) {
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-editor .analysis-flow-field-grid--gsat,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-editor .analysis-flow-field-grid--apcs,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-editor .analysis-flow-field-grid--distribution-gsat,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-editor .analysis-flow-field-grid--distribution-ast {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 32rem) and (max-width: 48rem) and (min-resolution: 2dppx) {
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-editor .analysis-flow-field-grid--gsat,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-score-editor .analysis-flow-field-grid--apcs,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-editor .analysis-flow-field-grid--distribution-gsat,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-score-editor .analysis-flow-field-grid--distribution-ast {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-meter::-webkit-progress-value,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-meter::-webkit-progress-value,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-meter::-webkit-progress-value,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-meter::-moz-progress-bar,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-meter::-moz-progress-bar,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-meter::-moz-progress-bar {
        transition: none;
    }
}

@media (forced-colors: active) {
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-entry"] .analysis-flow-meter,
    :where([data-runtime-theme="target-u"]) [data-ui-route="analysis-progress"] .analysis-flow-meter,
    :where([data-runtime-theme="target-u"]) [data-ui-route="distribution-entry"] .analysis-flow-meter {
        border-color: CanvasText;
        forced-color-adjust: auto;
    }
}
