:root {
    color-scheme: light;
    --canvas: #f2f6f3;
    --surface: #ffffff;
    --surface-soft: #eaf1ed;
    --ink: #152b24;
    --muted: #52675e;
    --quiet: #72847b;
    --line: #d5e1da;
    --green: #176247;
    --green-soft: #e0efe7;
    --lime: #d7e765;
    --amber: #865a00;
    --amber-soft: #fff2d8;
    --red: #a43d31;
    --red-soft: #fbe9e5;
    --blue: #315f8e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Segoe UI", Aptos, sans-serif;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    accent-color: var(--green);
}

:focus-visible {
    outline: 3px solid #b2c934;
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.workbench {
    width: min(100%, 1440px);
    min-height: 100vh;
    margin-inline: auto;
    padding: 0 36px 56px;
}

.auth-gate {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.auth-gate-panel {
    width: min(100%, 520px);
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}

.auth-gate-actions,
.topbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.auth-gate button,
.sign-out-button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--green);
    border-radius: 4px;
    background: var(--green);
    color: white;
    cursor: pointer;
}

.sign-out-button {
    background: transparent;
    color: var(--green);
}

.topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand,
.environment-label,
.page-state,
.section-heading,
.finding-heading,
.evidence-heading {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 72px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 7px;
    background: var(--green);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
}

.brand-name {
    display: block;
    font-weight: 750;
    max-width: 42ch;
    line-height: 1.2;
}

.brand-subtitle,
.environment-label,
.eyebrow,
.field-hint,
.proposal-state,
.page-reference,
.finding-confidence,
.empty-copy {
    color: var(--muted);
    font-size: 0.84rem;
}

.brand-subtitle {
    display: block;
}

.environment-label {
    gap: 8px;
    white-space: nowrap;
}

.environment-label::before {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--lime);
    content: "";
}

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 0 28px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--green);
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p,
dl,
ul {
    margin-top: 0;
    letter-spacing: 0;
}

h1,
h2 {
    font-family: Cambria, Georgia, serif;
    font-weight: 600;
}

h1 {
    margin-bottom: 8px;
    font-size: 2.25rem;
    line-height: 1.15;
}

.page-description {
    max-width: 58ch;
    margin: 0;
    color: var(--muted);
}

.page-state {
    flex: 0 0 auto;
    min-height: 40px;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    font-size: 0.88rem;
    font-weight: 650;
}

.page-state::before {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--quiet);
    content: "";
}

.page-state[data-state="success"] {
    color: var(--green);
}

.page-state[data-state="success"]::before {
    background: var(--green);
}

.page-state[data-state="warning"] {
    color: var(--amber);
}

.page-state[data-state="warning"]::before {
    background: #d39a27;
}

.page-state[data-state="error"] {
    color: var(--red);
}

.page-state[data-state="error"]::before {
    background: var(--red);
}

.view-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
}

.view-tab {
    min-width: 112px;
    padding: 11px 16px 9px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
    text-align: left;
}

.view-tab[aria-selected="true"] {
    border-bottom-color: var(--green);
    color: var(--green);
}

.view-panel[hidden] {
    display: none;
}

.workbench-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.7fr);
    align-items: start;
    border-top: 1px solid var(--line);
}

.reports-workspace {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.7fr);
    align-items: start;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.report-intake-section {
    min-width: 0;
    padding-right: 28px;
    border-right: 1px solid var(--line);
}

.report-library-section {
    min-width: 0;
}

.report-library-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.report-library-heading .eyebrow {
    margin-bottom: 4px;
}

.report-sort-control {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.8rem;
}

.report-sort-control select {
    min-height: 38px;
    max-width: 230px;
    padding: 6px 30px 6px 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
    color: var(--ink);
}

.library-status {
    min-height: 1.5em;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.report-library-list {
    border-top: 1px solid var(--line);
}

.report-library-item {
    display: grid;
    width: 100%;
    gap: 6px;
    padding: 14px 8px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.report-library-item[aria-pressed="true"] {
    border-left: 3px solid var(--green);
    background: var(--surface-soft);
}

.report-library-name {
    font-size: 0.98rem;
}

.report-library-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 0.82rem;
}

.intake-panel {
    padding: 28px 28px 28px 0;
    border-right: 1px solid var(--line);
}

.analysis-panel {
    min-width: 0;
    padding: 28px 0 28px 32px;
}

.section-heading {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

h2 {
    margin-bottom: 0;
    font-size: 1.45rem;
}

h3 {
    margin-bottom: 12px;
    font-size: 1rem;
}

h4 {
    margin-bottom: 0;
    font-size: 1rem;
}

.report-upload-form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.report-upload-form label {
    font-size: 0.9rem;
    font-weight: 700;
}

.report-upload-form input[type="file"],
.report-upload-form input[type="date"] {
    width: 100%;
    min-height: 46px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
}

.field-hint {
    margin: 0;
    line-height: 1.45;
}

.report-upload-form button {
    justify-self: start;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--green);
    border-radius: 6px;
    background: var(--green);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.report-upload-form button:disabled {
    border-color: #899b91;
    background: #899b91;
    cursor: not-allowed;
}

.upload-status,
.upload-unavailable {
    min-height: 1.5em;
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.upload-unavailable {
    margin-top: 18px;
    padding: 12px;
    border-left: 3px solid var(--amber);
    background: var(--amber-soft);
    color: #684700;
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 20px 0 30px;
    padding: 14px 0;
    border-block: 1px solid var(--line);
}

.report-metric {
    min-width: 0;
    padding: 4px 16px;
    border-left: 1px solid var(--line);
}

.report-metric:first-child {
    padding-left: 0;
    border-left: 0;
}

.report-metric span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.report-metric strong {
    display: block;
    margin-top: 5px;
    font-family: Cambria, Georgia, serif;
    font-size: 1.8rem;
    line-height: 1.15;
}

.report-metric small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.review-notice {
    margin: 0;
    padding: 11px 14px;
    border-left: 3px solid var(--amber);
    background: var(--amber-soft);
    color: #684700;
    font-size: 0.9rem;
}

.report-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 22px 0 30px;
    padding: 18px 0;
    border-block: 1px solid var(--line);
}

.report-context div {
    min-width: 0;
}

.report-context dt {
    color: var(--muted);
    font-size: 0.8rem;
}

.report-context dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-weight: 650;
}

.analysis-empty-state {
    margin: 0;
    padding: 26px 0;
    color: var(--muted);
}

.analysis-summary {
    max-width: 72ch;
    margin: 20px 0 28px;
    padding-left: 18px;
    border-left: 3px solid var(--green);
    font-family: Cambria, Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.4;
}

.analysis-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.analysis-visual-grid .result-section {
    min-width: 0;
    margin-top: 28px;
}

.severity-distribution,
.issue-mappings {
    display: grid;
    gap: 10px;
}

.distribution-row {
    display: grid;
    grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.distribution-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.distribution-label strong {
    color: var(--ink);
}

.distribution-track {
    height: 8px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--surface-soft);
}

.distribution-track span {
    display: block;
    height: 100%;
    background: var(--blue);
}

.distribution-row[data-severity="critical"] .distribution-track span { background: var(--red); }
.distribution-row[data-severity="high"] .distribution-track span { background: var(--amber); }
.distribution-row[data-severity="medium"] .distribution-track span { background: var(--blue); }
.distribution-row[data-severity="low"] .distribution-track span { background: var(--green); }

.issue-mapping-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.issue-mapping-row strong {
    flex: 0 0 auto;
    color: var(--green);
    font-size: 0.86rem;
}

.proposal-details {
    margin-top: 14px;
}

.proposal-details h5 {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.proposal-details p + p {
    margin-top: 5px;
}

.result-section {
    margin-top: 32px;
}

.finding-list,
.evidence-list {
    display: grid;
    gap: 12px;
}

.finding-item,
.evidence-item {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}

.finding-heading,
.evidence-heading {
    justify-content: space-between;
    gap: 16px;
}

.finding-heading h4,
.evidence-heading h4 {
    overflow-wrap: anywhere;
}

.proposal-state,
.page-reference {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 650;
}

.finding-item p,
.evidence-item p {
    margin: 10px 0 0;
}

.finding-meta {
    color: var(--green);
    font-weight: 650;
}

.finding-rationale,
.finding-confidence {
    color: var(--muted);
}

.evidence-references {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.evidence-references ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.evidence-references a {
    color: var(--green);
    font-weight: 650;
}

.evidence-item blockquote {
    margin: 12px 0 0;
    padding-left: 14px;
    border-left: 2px solid var(--lime);
    color: var(--ink);
}

.validation-warnings {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 4px solid #d39a27;
    background: var(--amber-soft);
    color: #684700;
}

.validation-warnings h3 {
    margin-bottom: 6px;
}

.validation-warnings ul {
    margin: 0;
    padding-left: 20px;
}

.proposal-list,
.evidence-list,
.text-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.text-list {
    display: grid;
    gap: 8px;
    padding-left: 18px;
    list-style: disc;
}

.text-list li::marker {
    color: var(--green);
}

.empty-copy {
    margin: 0;
}

.trends-unavailable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding: 22px 0;
    border-block: 1px solid var(--line);
}

.trends-unavailable h2 {
    margin-bottom: 7px;
}

.trends-unavailable p:not(.eyebrow) {
    max-width: 72ch;
    margin: 0;
    color: var(--muted);
}

.unavailable-label {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
}
.trends-panel {
    margin-top: 0;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.trends-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.assessment-period-switch {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.assessment-period-switch button {
    min-width: 62px;
    min-height: 34px;
    padding: 5px 10px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 650;
}

.assessment-period-switch button[aria-pressed="true"] {
    background: var(--green);
    color: white;
}
.trend-explanation,
.published-trend-status,
.trend-unknown-count {
    color: var(--muted);
    font-size: 0.88rem;
}
.trend-explanation {
    max-width: 78ch;
    margin: 12px 0 20px;
}

.trend-filter-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 280px));
    gap: 12px;
    margin: 20px 0;
}

.trend-filter-strip label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.trend-filter-strip select {
    width: 100%;
    min-height: 42px;
    padding: 7px 32px 7px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

.filter-status {
    min-height: 1.4em;
    margin: -10px 0 16px;
    color: var(--muted);
    font-size: 0.8rem;
}

.executive-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 28px;
}

.executive-kpi {
    display: grid;
    align-content: start;
    min-width: 0;
    min-height: 128px;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: 6px;
    background: var(--surface);
}

.executive-kpi[data-tone="blue"] { border-top-color: var(--blue); }
.executive-kpi[data-tone="amber"] { border-top-color: var(--amber); }
.executive-kpi[data-tone="red"] { border-top-color: var(--red); }

.executive-kpi > span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
}

.executive-kpi > strong {
    overflow-wrap: anywhere;
    font-family: Cambria, Georgia, serif;
    font-size: 1.65rem;
    line-height: 1.1;
}

.executive-kpi > small {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.executive-prompt-list,
.impact-trend-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.executive-prompt-list {
    margin-top: 14px;
}

.executive-question-button {
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
    color: var(--green);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 650;
    text-align: left;
}

.executive-question-button:hover {
    background: var(--green-soft);
}

.executive-copilot-section {
    margin-top: 30px;
    padding: 18px 0;
    border-block: 1px solid var(--line);
}

.executive-copilot-section h3 {
    margin-bottom: 4px;
}

.coverage-funnel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.coverage-funnel-row {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-left: 2px solid var(--blue);
    background: var(--surface-soft);
}

.coverage-funnel-row span {
    color: var(--muted);
    font-size: 0.8rem;
}

.coverage-funnel-row strong {
    font-size: 1.1rem;
}

.trend-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px 0 12px;
    border-block: 1px solid var(--line);
}

.trend-summary div {
    min-width: 0;
    padding: 12px 16px;
    border-left: 1px solid var(--line);
}

.trend-summary div:first-child {
    padding-left: 0;
    border-left: 0;
}

.trend-summary dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.trend-summary dd {
    margin: 4px 0 0;
    font-family: Cambria, Georgia, serif;
    font-size: 1.65rem;
    line-height: 1.15;
}

.latest-trend-intelligence {
    margin: 28px 0;
}

.trend-impact-score {
    display: block;
    margin: 12px 0 0;
    font-family: Cambria, Georgia, serif;
    font-size: 2rem;
    line-height: 1.15;
}

.trend-impact-meter {
    display: block;
    width: 100%;
    height: 12px;
    margin: 10px 0;
    accent-color: var(--green);
}

.coverage-availability {
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.coverage-availability h3 {
    margin-bottom: 6px;
}

.coverage-availability p {
    max-width: 78ch;
    margin-bottom: 0;
    color: var(--muted);
}

.undated-proposal-summary {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
    gap: 20px;
    align-items: center;
    margin-top: 22px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.undated-proposal-summary h3 {
    margin: 0;
    font-size: 1rem;
}

.undated-proposal-summary p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.undated-proposal-summary dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border-block: 1px solid var(--line);
}

.undated-proposal-summary dl div {
    min-width: 0;
    padding: 9px 12px;
    border-left: 1px solid var(--line);
}

.undated-proposal-summary dl div:first-child {
    border-left: 0;
}

.undated-proposal-summary dt {
    color: var(--muted);
    font-size: 0.76rem;
}

.undated-proposal-summary dd {
    margin: 3px 0 0;
    font-weight: 700;
}

.issue-trend-section {
    margin-top: 28px;
}

.impact-trend-section {
    margin-top: 24px;
    padding: 16px 0;
    border-block: 1px solid var(--line);
}

.impact-trend-section h3 {
    margin-bottom: 4px;
}

.impact-trend-chart {
    width: 100%;
    overflow-x: auto;
    padding: 12px 0 4px;
}

.impact-trend-chart[hidden] {
    display: none;
}

.impact-trend-chart svg {
    display: block;
    width: 100%;
    min-width: 560px;
    height: auto;
}

.impact-grid-line {
    stroke: var(--line);
    stroke-width: 1;
}

.impact-axis-label {
    fill: var(--muted);
    font-family: "Segoe UI", Aptos, sans-serif;
    font-size: 12px;
}

.impact-series-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.impact-series-point {
    stroke: var(--surface);
    stroke-width: 2;
}

.impact-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    max-width: 100%;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.82rem;
}

.impact-legend-item input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--series-colour);
}

.impact-legend-item span {
    overflow-wrap: anywhere;
}

.impact-legend-item:focus-within {
    outline: 2px solid var(--series-colour);
    outline-offset: 3px;
}

.impact-legend-item::before {
    width: 18px;
    height: 3px;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--series-colour);
    content: "";
}

.issue-trend-section h3 {
    margin-bottom: 6px;
}

.issue-trend-table-wrap {
    overflow-x: auto;
}

.issue-trend-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.issue-trend-table th,
.issue-trend-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.issue-trend-table th {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.issue-trend-table td:nth-child(n + 3),
.issue-trend-table th:nth-child(n + 3) {
    text-align: right;
}
.dify-trend-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(108px, 1fr);
    align-items: end;
    gap: 10px;
    min-height: 190px;
    overflow-x: auto;
    padding: 12px 0 8px;
    border-bottom: 1px solid var(--line);
}
.dify-trend-chart[hidden] {
    display: none;
}
.trend-period {
    display: grid;
    grid-template-rows: 118px auto auto auto;
    justify-items: center;
    gap: 5px;
    min-width: 0;
}
.trend-bar-track {
    display: flex;
    align-items: end;
    justify-content: center;
    width: 100%;
    height: 118px;
    border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(to top, transparent 0 28px, rgba(21, 43, 36, 0.06) 28px 29px);
}
.trend-bar {
    display: block;
    width: min(42px, 48%);
    min-height: 0;
    background: repeating-linear-gradient(135deg, var(--amber) 0 5px, #b47d1c 5px 8px);
}
.trend-value {
    font-family: Cambria, Georgia, serif;
    font-size: 1.1rem;
}
.trend-period-label {
    color: var(--ink);
    font-size: 0.83rem;
    font-weight: 700;
}
.trend-run-count {
    color: var(--muted);
    font-size: 0.74rem;
}

.trend-severity-count,
.trend-impact-proposal {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
}
.trend-unknown-count {
    margin: 12px 0 0;
}
.published-trend-status {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-left: 3px solid var(--line);
}

.analyst-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(240px, 1fr);
    gap: 10px 24px;
    align-items: center;
    margin-top: 36px;
    padding: 20px;
    border-left: 4px solid var(--blue);
    background: var(--surface-soft);
}

.analyst-panel .eyebrow,
.analyst-panel h3,
.analyst-panel p {
    margin-bottom: 4px;
}

.analyst-panel > div:first-child > p:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.analyst-controls {
    display: flex;
    gap: 8px;
}

.analyst-controls input {
    min-width: 0;
    flex: 1;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
}

.analyst-controls button {
    min-width: 66px;
    border: 0;
    border-radius: 5px;
    background: #899b91;
    color: white;
    font-weight: 700;
}

.analyst-controls input:disabled,
.analyst-controls button:disabled {
    cursor: not-allowed;
}

.analyst-panel > .field-hint {
    grid-column: 2;
    margin: 0;
}
[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 820px) {
    .workbench {
        padding-inline: 22px;
    }

    .workbench-grid {
        grid-template-columns: 1fr;
    }

    .reports-workspace {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .report-intake-section {
        padding: 0 0 24px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .report-library-heading {
        align-items: start;
        flex-wrap: wrap;
    }

    .executive-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coverage-funnel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intake-panel {
        padding: 24px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .analysis-panel {
        padding: 24px 0;
    }

    .report-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .trend-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trend-summary div:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .trend-summary div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .undated-proposal-summary {
        grid-template-columns: 1fr;
    }

    .trends-heading {
        flex-wrap: wrap;
    }

    .assessment-period-switch {
        order: 1;
    }

    .analyst-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .analyst-panel > .field-hint {
        grid-column: 1;
    }
}

@media (max-width: 540px) {
    .workbench {
        padding-inline: 16px;
    }

    .topbar {
        min-height: 64px;
    }

    .brand-subtitle {
        max-width: 22ch;
    }

    .brand-name {
        max-width: 22ch;
    }

    .environment-label {
        font-size: 0.78rem;
    }

    .view-tab {
        flex: 1;
        min-width: 0;
    }

    .trend-summary dd {
        font-size: 1.4rem;
    }

    .trend-filter-strip,
    .executive-kpi-grid,
    .coverage-funnel {
        grid-template-columns: 1fr;
    }

    .undated-proposal-summary dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .undated-proposal-summary dl div:nth-child(odd) {
        border-left: 0;
    }

    .undated-proposal-summary dl div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .page-heading {
        align-items: start;
        flex-direction: column;
        gap: 14px;
        padding: 26px 0 22px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .report-context {
        grid-template-columns: 1fr;
    }

    .analysis-visual-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .report-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-metric:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .report-metric:nth-child(n + 3) {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .analysis-visual-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .trends-unavailable {
        align-items: start;
        flex-direction: column;
        gap: 12px;
    }
    .trends-heading {
        align-items: start;
        flex-direction: column;
    }

    .finding-heading,
    .evidence-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }
}