/*
 * Oversight area. The shell, colours, typography, cards and sign-in screens come from the shared
 * staff design system (app-blue.css, government-shell.css, government-dashboard.css and
 * government-auth.css), so councillors and civic representatives get the familiar ActiveCouncil
 * workspace. This file only adds the few pieces the Government workspace has no pattern for,
 * using the same palette: primary #2563eb, text #25324a, muted #718198, borders #e1e7ef.
 */

/* Skip link (Bootstrap's sr-only-focusable, made visible and on top when focused). */
.oversight-skip.sr-only-focusable:focus,
.oversight-skip.sr-only-focusable:active {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 14px;
    color: #fff;
    background: #2563eb;
    border-radius: 6px;
    font-weight: 600;
}

body.web :focus-visible { outline: 3px solid #93b4f5; outline-offset: 2px; }

/* Sign-in pages: app-blue's global #content rule (50% wide, floated right, grey background)
   is for the staff split layout; undo it so the auth card centres on the page. */
body.oversight-auth-page #content.government-auth-modal {
    position: relative;
    width: auto;
    float: none;
    overflow: visible;
    background: transparent;
    border-top: 0;
}
body.oversight-auth-page #content.government-auth-modal:focus { outline: none; }

/* Header: brand on the left (the Government header shows its page links here). */
body.web .oversight-header .oversight-header__brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    color: #25324a;
    text-decoration: none;
}
body.web .oversight-header .oversight-header__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #fff;
    background: #2563eb;
    border-radius: 8px;
    font-weight: 700;
}
body.web .oversight-header .oversight-header__brand strong,
body.web .oversight-header .oversight-header__brand small { display: block; line-height: 1.2; }
body.web .oversight-header .oversight-header__brand strong { font-size: 13px; }
body.web .oversight-header .oversight-header__brand small { color: #8190a5; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
body.web .oversight-header .oversight-header__scope span { color: #60738f; font-size: 12px; font-weight: 600; }

/* Pages without a signed-in workspace (status pages) have no sidebar. */
body.web #wrapper.full.oversight-wrapper--no-sidebar { margin-left: 0; }

/* Sidebar: the acting role sits where the Government sidebar has its search box. */
body.web .oversight-sidebar .oversight-sidebar-role {
    display: grid;
    gap: 2px;
    margin: 12px 10px 8px;
    padding: 10px 12px;
    color: #60738f;
    background: #f8fafc;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
body.web .oversight-sidebar .oversight-sidebar-role strong { color: #25324a; font-size: 12px; }
body.web .oversight-sidebar .oversight-sidebar-role__label { color: #8190a5; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body.web .oversight-sidebar .oversight-sidebar-role a { margin-top: 4px; color: #2563eb; font-weight: 600; }

/* Empty, unavailable and error states inside a card (same look as the notifications empty state). */
.oversight-empty {
    display: flex;
    min-height: 240px;
    padding: 40px 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #718198;
    text-align: center;
}
.oversight-empty__icon {
    display: flex;
    width: 58px;
    height: 58px;
    margin-bottom: 17px;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #eef4ff;
    border: 1px solid #dae7fb;
    border-radius: 15px;
    font-size: 23px;
}
.oversight-empty h2,
.oversight-empty h3 { margin: 0 0 7px; color: #25324a; font-size: 18px; font-weight: 700; }
.oversight-empty p { max-width: 560px; margin: 0 0 6px; font-size: 13px; }

/* Home: tool tiles. */
.oversight-tools { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.oversight-tool {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 44px;
    padding: 14px;
    color: #25324a;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    text-decoration: none;
}
.oversight-tool:hover,
.oversight-tool:focus { color: #25324a; background: #f5f8ff; border-color: #c9dafb; text-decoration: none; }
.oversight-tool__icon {
    display: inline-flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #eef4ff;
    border-radius: 9px;
    font-size: 16px;
}
.oversight-tool strong { display: block; margin-bottom: 2px; font-size: 14px; }
.oversight-tool strong + span { display: block; color: #718198; font-size: 12px; line-height: 1.5; }

.oversight-table { margin: 0; }
.oversight-table th[scope="row"] { font-weight: 600; }

/* Home: spacing and quieter cards. */
.oversight-home .government-dashboard-card + .government-dashboard-card { margin-top: 20px; }
.oversight-home .government-dashboard-card__header { min-height: 0; padding: 14px 20px; }
.oversight-home .government-dashboard-card__header h2 { font-size: 15px; }
.oversight-home .government-dashboard-card__icon { flex-basis: 32px; width: 32px; height: 32px; font-size: 14px; }
.oversight-home .government-dashboard-card__body { padding: 20px; }
.oversight-home .government-dashboard-card__body--table { padding: 4px 20px 8px; }
.oversight-home .oversight-tools li { display: flex; }
.oversight-home .oversight-tool { flex: 1; }
.oversight-home .oversight-table > thead > tr > th {
    padding: 12px 10px;
    color: #8190a5;
    background: transparent;
    border-bottom: 1px solid #e7ebf1;
    font-size: 10px;
}
.oversight-home .oversight-table > tbody > tr > th,
.oversight-home .oversight-table > tbody > tr > td {
    padding: 14px 10px;
    color: #35465e;
    background: transparent;
    border-top: 1px solid #edf0f4;
    font-size: 13px;
    vertical-align: middle;
}
.oversight-home .oversight-table > tbody > tr > th { color: #25324a; font-weight: 600; }
.oversight-home .oversight-table > tbody > tr:first-child > th,
.oversight-home .oversight-table > tbody > tr:first-child > td { border-top: 0; }
.oversight-home .oversight-table .government-routing__badge { margin-left: 6px; vertical-align: middle; }

/* Ward list. */
.oversight-ward-list { margin: 0; padding: 6px 0; list-style: none; }
.oversight-ward-list li + li { border-top: 1px solid #edf0f4; }
.oversight-ward-list a {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    color: #25324a;
    font-weight: 600;
    text-decoration: none;
}
.oversight-ward-list a:hover,
.oversight-ward-list a:focus { color: #2563eb; background: #f5f8ff; }
.oversight-ward-list a .icon-map { color: #2563eb; }
.oversight-ward-list a .fa-angle-right { margin-left: auto; color: #8190a5; }

/* Role choice. */
.oversight-role-card { max-width: 640px; }
.oversight-choices { display: grid; gap: 10px; min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.oversight-choices legend { margin-bottom: 8px; padding: 0; color: #25324a; border: 0; font-size: 13px; font-weight: 700; }
.oversight-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #e1e7ef; border-radius: 8px; }
.oversight-choice:has(input:checked) { background: #f5f8ff; border-color: #2563eb; }
.oversight-choice input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #2563eb; }
.oversight-choice label { display: grid; gap: 2px; min-width: 0; margin: 0; font-weight: 400; cursor: pointer; overflow-wrap: anywhere; }
.oversight-choice label strong { color: #25324a; }
.oversight-choice label span { color: #718198; font-size: 12px; }

.oversight-footer { padding-top: 8px; padding-bottom: 24px; color: #8190a5; font-size: 11px; }

@media (max-width: 767px) {
    body.web .oversight-header .oversight-header__scope { display: none; }
    .oversight-tools { grid-template-columns: 1fr; }
}

/* OVS-007 request list and detail. */
.oversight-requests .government-dashboard-card + .government-dashboard-card { margin-top: 20px; }
.oversight-requests .government-dashboard-card__body--table { overflow-x: auto; padding: 4px 20px 8px; }
.oversight-requests .oversight-table > tbody > tr > th,
.oversight-requests .oversight-table > tbody > tr > td { padding: 12px 10px; color: #35465e; font-size: 13px; vertical-align: top; }
.oversight-requests .oversight-table > tbody > tr > th a { color: #2563eb; font-weight: 600; }
.oversight-filter ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.oversight-filter a { display: inline-block; padding: 6px 14px; color: #25324a; background: #fff; border: 1px solid #e1e7ef; border-radius: 16px; font-size: 13px; font-weight: 600; }
.oversight-filter a[aria-current="page"] { color: #fff; background: #2563eb; border-color: #2563eb; }
.oversight-note { margin: 4px 0 0; color: #718198; font-size: 12px; }
.oversight-meta { display: block; color: #718198; font-size: 12px; font-weight: 400; }
.oversight-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; color: #25324a; background: #eef2f7; border-radius: 10px; font-size: 11px; font-weight: 700; }
.oversight-badge--overdue { color: #8a1c1c; background: #fdecec; }
.oversight-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid #edf0f4; font-size: 13px; }
.oversight-pager__limit { padding: 0 20px 12px; }
.oversight-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px; margin: 0; }
.oversight-facts dt { color: #8190a5; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.oversight-facts dd { margin: 2px 0 0; color: #25324a; font-size: 14px; overflow-wrap: anywhere; }
.oversight-subheading { margin: 20px 0 6px; color: #25324a; font-size: 14px; font-weight: 700; }
.oversight-description { margin: 0; color: #35465e; white-space: pre-line; overflow-wrap: anywhere; }
.oversight-photo { margin: 20px 0 0; }
.oversight-photo img { display: block; max-width: 100%; height: auto; border: 1px solid #e1e7ef; border-radius: 6px; }
.oversight-photo figcaption { margin-top: 6px; color: #718198; font-size: 12px; }
.oversight-timeline { margin: 0; padding: 0; list-style: none; }
.oversight-timeline li { position: relative; padding: 0 0 16px 18px; border-left: 2px solid #e1e7ef; }
.oversight-timeline li::before { content: ""; position: absolute; top: 4px; left: -6px; width: 10px; height: 10px; background: #2563eb; border-radius: 50%; }
.oversight-timeline li:last-child { padding-bottom: 0; }
.oversight-timeline time { display: block; color: #718198; font-size: 12px; }
.oversight-timeline strong { color: #25324a; font-size: 14px; }
.oversight-timeline p { margin: 4px 0; color: #35465e; font-size: 13px; overflow-wrap: anywhere; }

/* Request detail: a readable case-file layout rather than full-width strips. */
.oversight-request-detail { max-width: 1380px; }
.oversight-request-detail > * + * { margin-top: 20px; }
.oversight-request-detail .government-dashboard-card { margin-top: 0; overflow: hidden; }
.oversight-request-detail .government-dashboard-card__header {
    min-height: 0;
    padding: 16px 24px;
}
.oversight-request-detail .government-dashboard-card__header h2 { font-size: 16px; }
.oversight-request-detail .government-dashboard-card__icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 15px;
}
.oversight-request-detail__overview {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(290px, .8fr);
    grid-template-areas: "issue progress";
    gap: 20px;
    align-items: start;
}
.oversight-requests .oversight-request-detail__overview > .government-dashboard-card + .government-dashboard-card {
    margin-top: 0;
}
.oversight-requests .oversight-request-detail__overview + .government-dashboard-card {
    margin-top: 20px;
}
.oversight-request-detail__issue { grid-area: issue; }
.oversight-request-detail__progress { grid-area: progress; }
.oversight-request-detail__card-body { padding: 24px; }
.oversight-facts--issue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 0;
    border-bottom: 0;
}
.oversight-issue-fact {
    min-width: 0;
    padding: 14px 16px;
    background: #f7f9fc;
    border: 1px solid #e5eaf1;
    border-radius: 9px;
}
.oversight-issue-fact--address { grid-column: span 2; }
.oversight-facts--issue .oversight-issue-fact dt { margin-bottom: 5px; }
.oversight-facts--issue .oversight-issue-fact dd { margin: 0; font-size: 14px; line-height: 1.45; }
.oversight-issue-fact--type dd { font-weight: 700; }
.oversight-issue-scope {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    color: #1f5ca9;
    background: #eaf2ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.oversight-coordinate { color: #526681; font-variant-numeric: tabular-nums; }
.oversight-facts--progress { grid-template-columns: minmax(0, 1fr); gap: 0; }
.oversight-facts--progress > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f4;
}
.oversight-facts--progress > div:first-child { padding-top: 0; }
.oversight-facts--progress > div:last-child { border-bottom: 0; }
.oversight-facts--progress dt { flex: 1 1 auto; }
.oversight-facts--progress dd { flex: 0 1 58%; margin: 0; text-align: right; font-weight: 600; }
.oversight-request-detail__footnote {
    margin: 18px -24px -24px;
    padding: 14px 24px;
    color: #60738f;
    background: #f7f9fc;
    border-top: 1px solid #edf0f4;
    font-size: 12px;
    line-height: 1.55;
}
.oversight-request-detail__footnote strong { color: #40536e; font-weight: 600; }
.oversight-request-detail__issue-content {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.18fr);
    gap: 32px;
    align-items: start;
    padding-top: 0;
}
.oversight-request-detail__issue-summary { min-width: 0; }
.oversight-request-detail__description {
    min-height: 150px;
    margin-top: 16px;
    padding: 22px;
    background: linear-gradient(145deg, #f3f7fd 0%, #f8fafd 100%);
    border: 1px solid #dfe8f4;
    border-radius: 10px;
}
.oversight-request-detail__description-label {
    display: block;
    margin-bottom: 12px;
    color: #60738f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.oversight-request-detail__description .oversight-description {
    margin: 0;
    color: #25324a;
    font-size: 17px;
    line-height: 1.65;
}
.oversight-request-detail .oversight-photo { margin: 0; }
.oversight-photo__frame {
    overflow: hidden;
    background: #eef2f7;
    border: 1px solid #dce3ec;
    border-radius: 10px;
}
.oversight-request-detail .oversight-photo img {
    width: 100%;
    max-height: 430px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
}
.oversight-request-detail .oversight-photo figcaption {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    padding: 11px 2px 0;
    line-height: 1.45;
}
.oversight-request-detail .oversight-photo figcaption strong { display: block; color: #40536e; font-size: 12px; }
.oversight-photo__privacy { display: inline-flex; flex: 0 0 auto; gap: 5px; align-items: center; white-space: nowrap; }
.oversight-request-detail .oversight-photo figcaption .icon-lock { color: #60738f; }
.oversight-request-detail .oversight-timeline li { padding: 2px 0 22px 24px; }
.oversight-request-detail .oversight-timeline time { margin-bottom: 3px; }
.oversight-request-detail .oversight-timeline strong { font-size: 15px; }

@media (max-width: 991px) {
    .oversight-request-detail__overview {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "progress" "issue";
    }
}
@media (max-width: 767px) {
    .oversight-request-detail .government-dashboard-card__header,
    .oversight-request-detail__card-body { padding: 16px; }
    .oversight-request-detail__footnote { margin: 16px -16px -16px; padding: 13px 16px; }
    .oversight-facts--issue,
    .oversight-request-detail__issue-content { grid-template-columns: minmax(0, 1fr); }
    .oversight-issue-fact--address { grid-column: auto; }
    .oversight-request-detail__issue-content { gap: 20px; }
    .oversight-request-detail__description { min-height: 0; padding: 18px; }
    .oversight-request-detail .oversight-photo figcaption { align-items: flex-start; flex-direction: column; }
    .oversight-request-detail .oversight-photo img { max-height: none; }
}

/* OVS-008 accountability dashboards: stat tiles, a meter list and ranked bars in the staff blue.
 * A hidden or withheld figure never gets a bar, so it cannot be read as zero. */
.oversight-dashboard > * + * { margin-top: 20px; }
.oversight-dashboard .government-dashboard-card { margin: 0; }
.oversight-dashboard .government-dashboard-card__header { min-height: 0; padding: 14px 20px; }
.oversight-dashboard .government-dashboard-card__header h2 { font-size: 15px; }
.oversight-dashboard .government-dashboard-card__header .oversight-note { margin: 2px 0 0; }
.oversight-dashboard .government-dashboard-card__icon { flex-basis: 32px; width: 32px; height: 32px; font-size: 14px; }
.oversight-dashboard .government-dashboard-card__body { padding: 16px 20px 20px; }
.oversight-dashboard__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.oversight-dashboard__toolbar .oversight-filter ul { margin: 0; }
.oversight-dashboard__toolbar .oversight-note { flex: 1 1 320px; margin: 0; }

.oversight-dashboard__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.oversight-privacy-note { display: flex; align-items: center; gap: 9px; padding: 11px 14px; color: #40536e; background: #f2f6fd; border: 1px solid #dbe7fd; border-radius: 7px; font-size: 12px; }
.oversight-privacy-note .icon-lock { color: #2563eb; }
.oversight-scorecard-list { margin: 0; }
.oversight-scorecard-list__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding: 8px 0; border-bottom: 1px solid #edf0f4; font-size: 13px; }
.oversight-scorecard-list__row:first-child { padding-top: 0; }
.oversight-scorecard-list__row:last-child { padding-bottom: 0; border-bottom: 0; }
.oversight-scorecard-list__row dt { color: #35465e; font-weight: 500; }
.oversight-scorecard-list__row dd { margin: 0; color: #25324a; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oversight-scorecard-list__row--suppressed dd,
.oversight-scorecard-list__row--notavailableyet dd { padding: 3px 8px; color: #526681; background: #f1f4f8; border-radius: 999px; font-size: 11px; font-weight: 600; }

.oversight-rates { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.oversight-rate { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; font-size: 13px; }
.oversight-rate__label { color: #35465e; }
.oversight-rate__value { color: #25324a; font-weight: 700; text-align: right; }
.oversight-rate__track { grid-column: 1 / -1; height: 8px; overflow: hidden; background: #dbe7fd; border-radius: 999px; }
.oversight-rate__fill { display: block; height: 100%; min-width: 3px; background: #2563eb; border-radius: 999px; }
.oversight-rate--notenoughdata .oversight-rate__value { padding: 3px 8px; color: #526681; background: #f1f4f8; border-radius: 999px; font-size: 11px; font-weight: 600; }
.oversight-category-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 13px 16px; color: #60738f; background: #fff; border: 1px solid #e1e7ef; border-radius: 8px; font-size: 12px; }
.oversight-category-prompt strong { color: #25324a; font-size: 13px; }
.oversight-category-prompt a { margin-left: auto; color: #2563eb; font-weight: 600; }

.oversight-bars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.oversight-bar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr minmax(96px, auto); align-items: center; gap: 12px; font-size: 13px; }
.oversight-bar__label { color: #25324a; overflow-wrap: anywhere; }
.oversight-bar__label a { color: #2563eb; font-weight: 600; }
.oversight-bar__track { height: 12px; }
.oversight-bar__fill { display: block; height: 100%; min-width: 3px; background: #2563eb; border-radius: 0 4px 4px 0; }
.oversight-bar__value { color: #25324a; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.oversight-bar__value .oversight-meta { display: inline; margin-left: 4px; font-weight: 400; }
.oversight-bar--suppressed .oversight-bar__value,
.oversight-bar--notenoughdata .oversight-bar__value { color: #60738f; font-weight: 600; font-style: italic; }
.oversight-bar--total { padding-top: 10px; border-top: 1px solid #e1e7ef; }
.oversight-bar--total .oversight-bar__label { font-weight: 700; }

.oversight-table-view { margin-top: 16px; }
.oversight-table-view summary { color: #2563eb; font-size: 13px; font-weight: 600; cursor: pointer; }
.oversight-table-scroll { margin-top: 8px; overflow-x: auto; }
.oversight-dashboard .oversight-table > tbody > tr > th,
.oversight-dashboard .oversight-table > tbody > tr > td { padding: 8px 10px; font-size: 13px; }
.oversight-dashboard .oversight-table td.oversight-cell--suppressed { color: #60738f; font-style: italic; }
.oversight-notes { margin: 0; padding-left: 18px; color: #35465e; font-size: 13px; }
.oversight-table-view .oversight-notes { margin-top: 12px; }
.oversight-notes li + li { margin-top: 4px; }
.oversight-definitions dt { margin-top: 10px; color: #25324a; font-size: 13px; }
.oversight-definitions dd { margin: 2px 0 0; color: #60738f; font-size: 12px; }

@media (max-width: 600px) {
    .oversight-bar { grid-template-columns: 1fr auto; }
    .oversight-bar__track { grid-column: 1 / -1; grid-row: 2; }
}

/* OVS-009: following. */
.oversight-follow { flex: 0 0 auto; margin: 0; }
.government-dashboard__header .oversight-follow__state { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #25324a; font-size: 12px; font-weight: 700; }
.oversight-follow__state .icon-star { color: #2563eb; }
.oversight-unavailable { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; border-top: 1px solid #edf0f4; }
.oversight-unavailable p { flex: 1 1 280px; margin: 0; color: #40536e; font-size: 13px; }

/* OVS-009: the Following page. Followed requests take the width; email choices sit beside them. */
.oversight-following { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 20px; align-items: start; }
.oversight-following > .government-dashboard-card,
.oversight-requests .oversight-following > .government-dashboard-card { margin: 0; }
@media (max-width: 991px) { .oversight-following { grid-template-columns: minmax(0, 1fr); } }
.oversight-unavailable { padding: 14px 20px; }
.oversight-email-card__body { padding: 16px 20px 20px; }
.oversight-email-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.oversight-email-choices legend { width: auto; margin: 0 0 6px; padding: 0; border: 0; color: #25324a; font-size: 13px; font-weight: 700; }
.oversight-email-choice { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; padding: 10px 0; border-bottom: 1px solid #edf0f4; }
.oversight-email-choice:last-child { border-bottom: 0; }
.oversight-email-choice input { grid-row: 1; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #2563eb; cursor: pointer; }
.oversight-email-choice label { grid-row: 1; margin: 0; color: #25324a; font-size: 13px; font-weight: 700; cursor: pointer; }
.oversight-email-choice__hint { grid-column: 2; color: #718198; font-size: 12px; line-height: 1.45; }
.oversight-email-card__actions { margin-top: 14px; }
.oversight-email-card__footnote { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #edf0f4; color: #718198; font-size: 12px; line-height: 1.45; }

/* OVS-010: enquiries. */
.oversight-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.oversight-header-actions .oversight-meta { display: inline; }
.oversight-form { padding: 20px; }
.oversight-form .form-group { margin: 18px 0 0; }
.oversight-form label { color: #25324a; font-size: 13px; font-weight: 700; }
.oversight-form .oversight-meta { margin-top: 4px; }
.oversight-form [aria-invalid="true"] { border-color: #b42318; }
.oversight-field-error { display: block; margin-top: 4px; color: #b42318; font-size: 12px; font-weight: 700; }
.oversight-duplicates { margin-top: 18px; padding: 12px 14px; background: #fff8e6; border: 1px solid #f5d68a; border-radius: 8px; }
.oversight-duplicates .oversight-subheading { margin-top: 0; }
.oversight-duplicates ul { margin: 0 0 6px; padding-left: 18px; font-size: 13px; }
.oversight-duplicates .oversight-meta { display: inline; }
.oversight-card-divider { border-top: 1px solid #edf0f4; }
.oversight-card-action { flex: 0 0 auto; margin-left: auto; color: #25324a; background: #fff; border: 1px solid #d5dde8; }
.oversight-card-action:hover, .oversight-card-action:focus { color: #1e293b; background: #f5f8fc; }
@media (max-width: 767px) { .government-dashboard__heading-row > .btn, .government-dashboard__heading-row > .oversight-follow { width: 100%; } .government-dashboard__heading-row > .oversight-follow .btn { width: 100%; } }
.oversight-facts--stacked { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.oversight-report { border-top: 1px solid #edf0f4; }
.oversight-conversation__earlier { opacity: .75; }
.oversight-conversation__withdrawn strong { color: #8a1c1c; }
.oversight-clarification { margin-top: 16px; padding: 16px 0 0; border-top: 1px solid #edf0f4; }
.oversight-report summary { color: #60738f; font-size: 12px; cursor: pointer; }
.oversight-report form { margin-top: 10px; }
.oversight-enquiry-list { margin: 0; padding: 0; list-style: none; }
.oversight-enquiry-list li { padding: 8px 0; border-bottom: 1px solid #edf0f4; font-size: 13px; }
.oversight-enquiry-list li:last-child { border-bottom: 0; }

/* OVS-012: civic evidence. */
.oversight-evidence-list { margin: 0; padding: 0; list-style: none; }
.oversight-requests .government-dashboard-card > .oversight-evidence-list { padding: 4px 20px 12px; }
.oversight-evidence { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf0f4; }
.oversight-evidence:last-child { border-bottom: 0; }
.oversight-evidence__photo { width: 120px; height: 90px; object-fit: cover; background: #eef2f7; border-radius: 6px; }
.oversight-evidence__title { margin: 0 0 4px; color: #25324a; font-size: 13px; font-weight: 700; }
.oversight-evidence__reason { margin: 8px 0 0; padding: 8px 10px; color: #40536e; background: #f5f8fc; border-radius: 6px; font-size: 12px; }
.oversight-evidence__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 10px; }
.oversight-evidence__actions form { margin: 0; }
.oversight-evidence__appeal { padding: 10px 0 0; }
.oversight-badge--muted { color: #52647b; background: #f1f4f8; }
.oversight-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
@media (max-width: 575px) { .oversight-evidence { grid-template-columns: minmax(0, 1fr); } .oversight-evidence__photo { width: 100%; height: auto; max-height: 220px; } }

/* OVS-013 community outcome assessment: kept visibly apart from the official status and from evidence. */
.oversight-assessment-list { margin: 12px 0 0; padding: 0; list-style: none; }
.oversight-assessment { padding: 14px 0; border-top: 1px solid #edf0f4; }
.oversight-assessment__title { margin: 0 0 4px; color: #25324a; font-size: 13px; font-weight: 700; }
.oversight-assessment__earlier { margin-top: 8px; font-size: 12px; color: #40536e; }
.oversight-assessment__earlier ol { margin: 6px 0 0; padding-left: 18px; }
.oversight-assessment__response { margin: 8px 0 0; padding: 8px 10px; color: #25324a; background: #eef5ff; border-left: 3px solid #2f6fb3; border-radius: 4px; font-size: 12px; }
.oversight-assessment__withdrawn { margin: 8px 0 0; padding: 0; list-style: none; color: #52647b; font-size: 12px; }
.oversight-badge--verified { color: #14532d; background: #e7f6ec; }
.oversight-badge--disputed { color: #8a1c1c; background: #fdecec; }
.oversight-badge--review { color: #6b4b00; background: #fff4d6; }
