:root {
    --gaa-green: #00876e;
    --gaa-apple: #9fcc42;
    --gaa-gray: #54595f;
    --gaa-white: #ffffff;
    --bg: #f5f8f7;
    --border: #d8e3df;
    --text: #243236;
    --amber: #d99100;
    --red: #bf2c24;

    /* Semantic tokens for the soft status pill/badge/chip pattern (stance
       badges, bill chips, KPI deltas, table badges, diagnostic status).
       Each pair is the exact value already shared across 2+ components —
       naming it stops the next one being hand-retyped and drifting, which is
       how .stance-badge--watching ended up failing WCAG AA (2.37:1) with
       var(--amber) instead of this pair's 5.09:1 foreground. */
    --status-success-bg: #dff4ea;
    --status-success-fg: #176744;
    --status-warning-bg: #fff2dc;
    --status-warning-fg: #8f5d00;
    --status-neutral-bg: #eceff1;
    --status-neutral-fg: #5f6870;

    /* Foreground used wherever text signals a destructive or error state
       (delete/archive controls, error copy, flash/toast/alert banners). */
    --text-danger: #8f1d1d;

    /* The three most-repeated non-status tones: muted body text, a sunken
       panel surface, and the soft border that outlines it. */
    --text-muted: #60756e;
    --surface-sunken: #f7fbf9;
    --border-soft: #dce9e4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #f8fbfa 0%, #eef6f3 100%);
    color: var(--text);
}

body.modal-open {
    overflow: hidden;
}

body.is-waiting,
body.is-waiting * {
    cursor: wait !important;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    background: linear-gradient(170deg, var(--gaa-green), #006652);
    color: var(--gaa-white);
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo-wrap {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0.75rem;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
}

.menu {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.menu-item {
    text-decoration: none;
    color: #eaf6f2;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.menu-item:focus {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.menu-group,
.submenu-group {
    position: relative;
}

.menu-item--parent {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: block;
    font: inherit;
    text-align: left;
    width: 100%;
}

.submenu {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 55, 48, 0.18);
    display: grid;
    gap: 0.2rem;
    left: calc(100% + 0.15rem);
    min-width: 15rem;
    opacity: 0;
    padding: 0.45rem;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(-0.2rem);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 30;
}

.submenu::before {
    bottom: 0;
    content: "";
    left: -0.7rem;
    position: absolute;
    top: 0;
    width: 0.7rem;
}

/* The disclosure state is the source of truth. Hover is layered on top of it for
   fine pointers only, so a touch device is never left without a way in. */
[data-disclosure-toggle][aria-expanded="true"] + .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

@media (hover: hover) and (pointer: fine) {
    .menu-group:hover > .submenu,
    .menu-group:focus-within > .submenu,
    .submenu-group:hover > .submenu,
    .submenu-group:focus-within > .submenu {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }
}

body.is-waiting .submenu {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-0.2rem) !important;
}

.submenu--nested {
    left: calc(100% + 0.15rem);
    top: 0;
}

.submenu-heading,
.submenu-item {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #174238;
    display: block;
    font: inherit;
    font-weight: 700;
    padding: 0.55rem 0.65rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.menu-item--parent,
.submenu-heading {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.menu-item--parent::after,
.submenu-heading::after {
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    content: "";
    flex: 0 0 auto;
    height: 0.42rem;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    width: 0.42rem;
}

.menu-item--parent[aria-expanded="true"]::after,
.submenu-heading[aria-expanded="true"]::after {
    transform: rotate(135deg);
}

.submenu-heading:hover,
.submenu-heading:focus,
.submenu-item:hover,
.submenu-item:focus {
    background: #eef6f3;
    color: var(--gaa-green);
    outline: none;
}

.auth-panel {
    margin-top: auto;
    padding-top: 1rem;
}

.auth-user {
    margin: 0 0 0.55rem;
    font-size: 0.85rem;
    color: #ddf3eb;
}

.auth-logout {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #f3fbf8;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.auth-logout:hover {
    background: rgba(255, 255, 255, 0.1);
}

.content {
    padding: 2rem;
}

.toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 200;
    display: grid;
    gap: 0.55rem;
    width: min(420px, calc(100vw - 2rem));
}

.toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #a8d7c7;
    background: #e8f6ef;
    color: #105a47;
    box-shadow: 0 10px 24px rgba(16, 48, 40, 0.14);
}

.toast--success {
    border-color: #a8d7c7;
    background: #e8f6ef;
    color: #105a47;
}

.toast--info {
    border-color: #b7d7ec;
    background: #eaf5fb;
    color: #0d4467;
}

.toast--warning {
    border-color: #f0d39a;
    background: #fff7e8;
    color: #7a4d00;
}

.toast--error {
    border-color: #f4b8b2;
    background: #fdecea;
    color: var(--text-danger);
}

.toast__body {
    line-height: 1.35;
}

.toast__close {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.toast__close:hover {
    opacity: 1;
}

.page-header h1 {
    margin: 0;
    color: var(--gaa-green);
}

.page-header p {
    margin: 0.5rem 0 0;
    color: var(--gaa-gray);
}

.page-header .primary-button {
    margin-top: 1rem;
}

.dashboard-hero {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #edf8f3 64%, #dff1e2 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1.5rem;
}

.dashboard-hero h1 {
    color: var(--gaa-green);
    font-size: 2.1rem;
    margin: 0.15rem 0 0;
}

.dashboard-hero p {
    color: #4f6962;
    margin: 0.45rem 0 0;
}

.dashboard-eyebrow {
    color: #3d6559 !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 !important;
    text-transform: uppercase;
}

.dashboard-logo {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d9e9e3;
    border-radius: 10px;
    height: auto;
    max-width: 220px;
    padding: 0.8rem;
    width: 28%;
}

.dashboard-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.2rem;
}

.dashboard-stat {
    background: #ffffff;
    border: 1px solid #cfe4dd;
    border-top: 4px solid var(--gaa-green);
    border-radius: 8px;
    padding: 1rem;
}

.dashboard-stat--apple {
    border-top-color: var(--gaa-apple);
}

.dashboard-stat--amber {
    border-top-color: var(--amber);
}

.dashboard-stat--red {
    border-top-color: var(--red);
}

.dashboard-stat__label,
.dashboard-stat__note {
    color: #5d746d;
    display: block;
    font-size: 0.9rem;
}

.dashboard-stat strong {
    color: #173f35;
    display: block;
    font-size: 2.1rem;
    line-height: 1;
    margin: 0.55rem 0 0.35rem;
}

.dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.4fr 1fr;
    margin-top: 1.2rem;
}

.dashboard-panel {
    background: var(--gaa-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 1.2rem;
    padding: 1.1rem;
}

.dashboard-grid .dashboard-panel {
    margin-top: 0;
}

.dashboard-panel--wide {
    grid-row: span 2;
}

.dashboard-panel__header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dashboard-panel__header h2 {
    color: #214b40;
    font-size: 1.2rem;
    margin: 0;
}

.dashboard-panel__header p {
    color: #62776f;
    margin: 0.25rem 0 0;
}

.dashboard-chip {
    background: #e4f4ea;
    border-radius: 999px;
    color: #19664b;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    white-space: nowrap;
}

.pipeline-bars {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.pipeline-row {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 110px 1fr 36px;
}

.pipeline-row span {
    color: #415b53;
    font-weight: 600;
}

.pipeline-track {
    background: #edf5f2;
    border-radius: 999px;
    height: 0.75rem;
    overflow: hidden;
}

.pipeline-track span {
    background: linear-gradient(90deg, var(--gaa-green), var(--gaa-apple));
    border-radius: inherit;
    display: block;
    height: 100%;
}

.pipeline-row strong {
    color: #24453d;
}

.stance-ring {
    align-items: center;
    background: conic-gradient(var(--gaa-green) 0 45%, var(--gaa-apple) 45% 83%, var(--red) 83% 100%);
    border-radius: 50%;
    display: flex;
    height: 180px;
    justify-content: center;
    margin: 0.5rem auto 1rem;
    width: 180px;
}

.stance-ring__center {
    align-items: center;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    height: 112px;
    justify-content: center;
    width: 112px;
}

.stance-ring__center strong {
    color: #193d34;
    font-size: 2rem;
    line-height: 1;
}

.stance-ring__center span {
    color: var(--text-muted);
}

.legend-list,
.activity-stack {
    display: grid;
    gap: 0.65rem;
}

.legend-list span {
    align-items: center;
    color: #425c54;
    display: flex;
    gap: 0.45rem;
    font-weight: 600;
}

.legend-dot {
    border-radius: 50%;
    display: inline-block;
    height: 0.7rem;
    width: 0.7rem;
}

.legend-dot--support {
    background: var(--gaa-green);
}

.legend-dot--watch {
    fill: var(--gaa-apple);
}

.legend-dot--oppose {
    background: var(--red);
}

.activity-item {
    align-items: flex-start;
    background: var(--surface-sunken);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    padding: 0.7rem;
}

.activity-date {
    background: #e2f2eb;
    border-radius: 8px;
    color: #17664d;
    flex: 0 0 auto;
    font-weight: 700;
    padding: 0.35rem 0.45rem;
}

.activity-item strong {
    color: #274d43;
}

.activity-item p {
    color: #657870;
    margin: 0.2rem 0 0;
}

.dashboard-table-wrap {
    overflow-x: auto;
}

.dashboard-table th:nth-child(1),
.dashboard-table td:nth-child(1),
.dashboard-table th:nth-child(2),
.dashboard-table td:nth-child(2) {
    min-width: 0;
    width: auto;
}

.filter-panel {
    margin-top: 1.1rem;
}

.filter-panel__toggle {
    border: 0;
    background: transparent;
    color: var(--gaa-green);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.22rem;
}

.filter-panel__options {
    margin-top: 0.75rem;
    background: var(--gaa-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
}

.filter-panel__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 0.85rem;
}

.filter-panel__count {
    color: #587169;
    font-size: 0.92rem;
    font-weight: 600;
}

.card {
    background: var(--gaa-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 1.2rem;
}

.card-tight {
    margin-top: 0.8rem;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th,
td {
    border-bottom: 1px solid var(--border);
    text-align: left;
    padding: 0.75rem;
    overflow-wrap: anywhere;
}

th:nth-child(1),
td:nth-child(1) {
    width: 150px;
    min-width: 150px;
}

th:nth-child(2),
td:nth-child(2) {
    width: 32%;
}

th {
    color: var(--gaa-gray);
    font-size: 0.92rem;
}

.sortable-header {
    cursor: pointer;
    user-select: none;
    vertical-align: top;
}

.sortable-header:hover {
    color: #2c4f46;
}

.sort-indicator {
    display: inline-block;
    margin-left: 0.25rem;
    color: #6f7f7a;
    font-size: 0.82rem;
}

.sortable-header[aria-sort="ascending"] .sort-indicator {
    color: #0f5d49;
    font-weight: 700;
}

.sortable-header[aria-sort="descending"] .sort-indicator {
    color: #0f5d49;
    font-weight: 700;
}

.th-main {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.th-filter-wrap {
    margin-top: 0.25rem;
    display: flex;
    justify-content: flex-end;
}

.filter-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    color: #5f7570;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    cursor: pointer;
}

.filter-trigger:hover {
    color: #214d40;
    text-decoration: underline;
}

.filter-input {
    width: 100%;
    min-width: 130px;
    margin-top: 0.1rem;
    font-size: 0.82rem;
    padding: 0.35rem 0.45rem;
}

.table-row-link {
    cursor: pointer;
}

.table-row-link:hover,
.table-row-link:focus-within {
    background: #f4faf8;
}

/* The row itself is not focusable. A button in its first cell carries the
   keyboard and screen-reader path, styled to read as ordinary cell text. */
.table-row-open,
.sortable-header__button {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 0.2rem;
    padding: 0;
    text-align: left;
}

.table-row-open:hover {
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.table-row-open:focus-visible,
.sortable-header__button:focus-visible {
    outline: 2px solid var(--gaa-green);
    outline-offset: 2px;
}

.stance-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.stance-badge--support {
    background: var(--status-success-bg);
    color: #137a4b;
}

.stance-badge--watching {
    background: var(--status-warning-bg);
    color: var(--status-warning-fg);
}

.stance-badge--oppose {
    background: #fde4e2;
    color: var(--red);
}

.stance-badge--neutral {
    background: var(--status-neutral-bg);
    color: var(--status-neutral-fg);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.field-block label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.field-block--wide {
    grid-column: 1 / -1;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #c8d8d2;
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    font: inherit;
    background: #fcfefd;
}

textarea[name$="summary"],
textarea[id*="summary"] {
    min-height: 170px;
    resize: vertical;
}

input[type="file"] {
    cursor: default;
    max-width: 100%;
    width: auto;
}

input[type="file"]::file-selector-button {
    cursor: pointer;
}

.primary-button {
    margin-top: 0.7rem;
    border: 0;
    background: var(--gaa-green);
    color: var(--gaa-white);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.secondary-button {
    border: 1px solid #b8cdc6;
    background: #f3f8f6;
    color: #234037;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.bill-create-switch {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.edit-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.bill-edit-panel h3 {
    margin-top: 0;
}

.bill-hero {
    background: linear-gradient(145deg, #f2fbf7, #edf7f3);
    border: 1px solid #d3e7df;
    border-radius: 12px;
    padding: 0.85rem 1rem 0.95rem;
}

.bill-hero__meta-label {
    margin: 0;
    color: #5f7b73;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.bill-chip-row {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bill-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.bill-chip--green {
    background: var(--status-success-bg);
    color: var(--status-success-fg);
}

.bill-chip--green-soft {
    background: #ecf8f2;
    color: #236f52;
}

.bill-chip--amber {
    background: var(--status-warning-bg);
    color: var(--status-warning-fg);
}

.bill-chip--gray {
    background: var(--status-neutral-bg);
    color: var(--status-neutral-fg);
}

.bill-meta-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.bill-meta-item {
    background: #f9fcfb;
    border: 1px solid #dce8e3;
    border-radius: 10px;
    padding: 0.7rem;
}

.bill-meta-item--wide {
    grid-column: 1 / -1;
}

.bill-meta-item__label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #587169;
    margin-bottom: 0.35rem;
}

.bill-meta-empty {
    color: #6a7a76;
}

.bill-committee-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.previous-bills-field {
    align-items: center;
    background: #f7fbf9;
    border: 1px solid #d7e5df;
    border-radius: 10px;
    display: grid;
    gap: 0.75rem 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.8rem;
}

.previous-bills-field label,
.previous-bills-field p {
    margin: 0;
}

.previous-bills-field small {
    color: #64766f;
    grid-column: 1 / -1;
}

.previous-bills-field .secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.previous-bills-dialog {
    background: #fbfdfc;
    border: 0;
    border-radius: 14px;
    color: var(--text);
    max-height: min(82vh, 760px);
    max-width: 880px;
    overflow: hidden;
    padding: 0;
    width: calc(100% - 2rem);
}

.previous-bills-dialog::backdrop {
    background: rgba(26, 39, 35, 0.68);
}

.previous-bills-dialog > .modal-close {
    left: auto;
    right: 1rem;
    top: 1rem;
    z-index: 2;
}

.previous-bills-dialog__header {
    border-bottom: 1px solid #d9e6e1;
    padding: 1.1rem 6rem 0.95rem 1.2rem;
}

.previous-bills-dialog__header h3,
.previous-bills-dialog__header p {
    margin: 0;
}

.previous-bills-dialog__header p {
    color: #587169;
    margin-top: 0.35rem;
}

.previous-bill-selector {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    min-height: 330px;
}

.previous-bill-sessions {
    background: #f0f6f3;
    border-right: 1px solid #d9e6e1;
    padding: 0.75rem;
}

.previous-bill-session {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #29463d;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 700;
    justify-content: space-between;
    padding: 0.7rem 0.75rem;
    text-align: left;
    width: 100%;
}

.previous-bill-session:hover,
.previous-bill-session:focus-visible,
.previous-bill-session.is-active {
    background: #dceee6;
    color: var(--gaa-green);
    outline: none;
}

.previous-bill-session:focus-visible {
    box-shadow: inset 0 0 0 2px var(--gaa-green);
}

.previous-bill-panels {
    max-height: 420px;
    overflow-y: auto;
    padding: 1rem 1.1rem;
}

.previous-bill-panels h4 {
    margin: 0 0 0.65rem;
}

.previous-bill-options {
    display: grid;
    gap: 0.35rem;
}

.previous-bill-option {
    align-items: flex-start;
    border-bottom: 1px solid #e1ebe7;
    cursor: pointer;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.65rem 0.25rem;
}

.previous-bill-option:hover {
    background: #f2f8f5;
}

.previous-bill-option input {
    margin-top: 0.2rem;
    width: auto;
}

.previous-bill-option small {
    color: #61746d;
    display: block;
    margin-top: 0.12rem;
}

.previous-bills-dialog__actions {
    align-items: center;
    border-top: 1px solid #d9e6e1;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0.85rem 1.1rem;
}

.previous-bills-dialog__actions .primary-button {
    margin-top: 0;
}

.previous-bills-empty {
    padding: 1.2rem;
}

@media (max-width: 640px) {
    .previous-bill-selector {
        grid-template-columns: 1fr;
    }

    .previous-bill-sessions {
        border-bottom: 1px solid #d9e6e1;
        border-right: 0;
        display: flex;
        gap: 0.4rem;
        overflow-x: auto;
    }

    .previous-bill-session {
        flex: 0 0 auto;
        gap: 0.7rem;
        width: auto;
    }

    .previous-bills-dialog__actions {
        grid-template-columns: 1fr 1fr;
    }

    .previous-bills-dialog__actions [data-previous-bills-count] {
        grid-column: 1 / -1;
    }
}

.bill-summary-panel {
    margin-top: 0.9rem;
    border: 1px solid #d9e7e2;
    background: var(--surface-sunken);
    border-radius: 10px;
    padding: 0.85rem;
}

.bill-summary-panel__label {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #557168;
}

.bill-summary-panel__text {
    margin: 0.45rem 0 0;
    max-width: 75ch;
    line-height: 1.5;
}

.bill-action-bar {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.bill-link-btn {
    text-decoration: none;
}

.collapse-card {
    position: relative;
}

.collapse-summary p {
    margin: 0.35rem 0;
}

.collapse-actions {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.collapse-toggle {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #29584a;
    cursor: pointer;
    user-select: none;
}

.collapse-toggle:hover {
    text-decoration: underline;
}

.inline-edit-form {
    border: 1px solid #d8e6e1;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #fbfefd;
}

.inline-delete-form {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.7rem;
}

.delete-text {
    border: 0;
    background: transparent;
    color: #9d2b2b;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.15s ease-in-out;
}

.row-editor {
    border: 1px solid #dbe8e3;
    border-radius: 10px;
    background: #fbfefd;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.65rem;
}

.row-editor--democratic {
    border-left: 4px solid #1e40af;
    background: #f4f8ff;
}

.row-editor--republican {
    border-left: 4px solid #b91c1c;
    background: #fff6f6;
}

.row-editor__view {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.row-editor__view p {
    margin: 0;
}

.row-editor__trigger {
    background: transparent;
    border: 0;
    color: #3f5f56;
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0;
    transition: opacity 0.15s ease-in-out;
}

.row-editor__trigger:hover,
.row-editor__trigger:focus {
    color: #17664d;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.contact-log-summary {
    align-items: center;
    background: #fbfefd;
    border: 1px solid #dbe8e3;
    border-radius: 10px;
    color: inherit;
    cursor: pointer;
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0.65rem 0.75rem;
    text-align: left;
    width: 100%;
}

.contact-log-summary:hover,
.contact-log-summary:focus-visible {
    border-color: #6ea895;
    background: #f3faf7;
}

.contact-log-summary__date,
.contact-log-summary .bill-chip {
    flex: 0 0 auto;
    white-space: nowrap;
}

.contact-log-summary__subject {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sponsor-party-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.sponsor-party-pill--democratic {
    background: #dbeafe;
    color: #1e40af;
}

.sponsor-party-pill--republican {
    background: #fee2e2;
    color: #b91c1c;
}

.sponsor-party-pill--bipartisan {
    background: #fef3c7;
    color: #92400e;
}

.sponsor-party-pill--neutral {
    background: var(--status-neutral-bg);
    color: var(--status-neutral-fg);
}

.error {
    color: #b42318;
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.help-text {
    color: #4b5d62;
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
}

.import-status {
    margin-top: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.92rem;
    display: none;
}

.import-status--working {
    display: block;
    background: #edf7f3;
    border: 1px solid #b8ddd0;
    color: #175f4b;
}

.import-status--success {
    display: block;
    background: #e8f7ee;
    border: 1px solid #a9d8bd;
    color: #165f42;
}

.import-status--error {
    display: block;
    background: #fdecea;
    border: 1px solid #f4b8b2;
    color: var(--text-danger);
}

.flash-group {
    display: grid;
    gap: 0.5rem;
}

.flash {
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    background: #e8f6ef;
    color: #105a47;
    border: 1px solid #a8d7c7;
}

.flash-error {
    background: #fdecea;
    color: var(--text-danger);
    border: 1px solid #f4b8b2;
}

.auth-card {
    max-width: 460px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    margin-top: 0;
    color: #557168;
}

.auth-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #5a6f69;
}

.auth-divider {
    margin: 1rem 0 0.8rem;
    text-align: center;
    color: #67837a;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 0.5rem;
}

.auth-ms-btn {
    display: inline-block;
    text-decoration: none;
    margin-top: 0;
}

.modal {
    display: none;
}

.is-hidden {
    display: none !important;
}

.modal--open {
    display: block;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 39, 35, 0.65);
    z-index: 120;
}

.modal-dialog {
    position: fixed;
    z-index: 121;
    inset: 4vh 5vw;
    background: #f8fcfa;
    border-radius: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    border: 0;
    background: #e2ece8;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.modal-header {
    padding-right: 5rem;
}

.modal-header h2 {
    margin-bottom: 0.25rem;
}

.inline-add-form {
    margin-top: 0.65rem;
}

.tag-multiselect select[multiple],
.tag-multiselect__native {
    display: none !important;
}

.tag-multiselect__control {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem;
    border: 1px solid #c8d8d2;
    border-radius: 8px;
    background: #fcfefd;
}

.tag-multiselect__selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-multiselect__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--status-success-bg);
    color: var(--status-success-fg);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.tag-multiselect__remove {
    border: 0;
    background: transparent;
    color: var(--status-success-fg);
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.tag-multiselect__chooser {
    border: 0;
    padding: 0.3rem 0.4rem;
    min-width: 170px;
    width: auto;
    background: transparent;
}

.analytics-page {
    display: grid;
    gap: 1.2rem;
}

.analytics-top-strip {
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--gaa-green);
    border-radius: 8px;
    display: grid;
    gap: 0.9rem;
    padding: 1.25rem;
}

.analytics-title-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.analytics-top-strip h1 {
    color: var(--gaa-green);
    font-size: 2rem;
    margin: 0;
}

.analytics-selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.analytics-selected-filters span {
    background: #eef6f3;
    border: 1px solid #d2e3dd;
    border-radius: 999px;
    color: #234037;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
}

.analytics-control-stack {
    display: flex;
    flex: 0 0 260px;
    flex-direction: column;
    gap: 0.5rem;
}

.analytics-control {
    background: #f3f8f6;
    border: 1px solid #d2e3dd;
    border-radius: 8px;
    color: #234037;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.5rem 0.65rem;
}

.analytics-filter-disclosure {
    border-top: 1px solid var(--border-soft);
    padding-top: 0.75rem;
}

.analytics-filter-disclosure summary {
    color: #0f5d49;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 800;
    width: fit-content;
}

.analytics-filter-panel {
    margin-top: 0.75rem;
}

.analytics-filter-grid {
    align-items: end;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 9.5rem 15rem 17rem 10.75rem 9.75rem minmax(1rem, 1fr) auto;
    width: 100%;
}

.analytics-filter-field,
.analytics-filter-toggle {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.analytics-filter-field {
    width: 9.5rem;
}

.analytics-filter-field[data-period-field="month"] {
    width: 15rem;
}

.analytics-filter-field[data-period-field="quarter"],
.analytics-filter-field[data-period-field="year"] {
    width: 15rem;
}

.analytics-filter-field[data-period-field="week"] {
    width: 15rem;
}

.analytics-filter-field[data-period-field="day"] {
    width: 15rem;
}

.analytics-filter-field--wide {
    width: 17rem;
}

.analytics-filter-field[hidden] {
    display: none;
}

.analytics-filter-field span,
.analytics-filter-toggle span {
    color: #425c54;
    font-size: 0.74rem;
    font-weight: 800;
}

.analytics-filter-field select,
.analytics-filter-field input {
    background: var(--surface-sunken);
    border: 1px solid #cfe0da;
    border-radius: 8px;
    color: #173f35;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    min-height: 2.25rem;
    white-space: nowrap;
    padding: 0.35rem 0.45rem;
    width: 100%;
}

.analytics-filter-toggle {
    align-items: center;
    background: var(--surface-sunken);
    border: 1px solid #cfe0da;
    border-radius: 8px;
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    min-height: 2.25rem;
    white-space: nowrap;
    padding: 0.35rem 0.55rem;
}

.analytics-filter-toggle input {
    accent-color: var(--gaa-green);
}

.analytics-filter-submit {
    align-self: end;
    background: var(--gaa-green);
    border: 1px solid var(--gaa-green);
    grid-column: 7;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    min-height: 2.25rem;
    padding: 0.35rem 0.9rem;
}

.analytics-filter-submit:hover,
.analytics-filter-submit:focus {
    background: #006f5b;
    outline: 2px solid rgba(0, 135, 110, 0.25);
    outline-offset: 2px;
}

.analytics-kpi-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.analytics-kpi-section {
    display: grid;
    gap: 0.75rem;
}

.analytics-row-heading {
    align-items: flex-end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.analytics-row-heading h2 {
    color: #214b40;
    font-size: 1.25rem;
    margin: 0.15rem 0 0;
}

.analytics-sample-pill {
    background: #fff7e8;
    border: 1px solid #f0d39a;
    border-radius: 999px;
    color: #7a4d00;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    white-space: nowrap;
}

.analytics-kpi-card {
    background: #ffffff;
    border: 1px solid #cfe4dd;
    border-top: 4px solid var(--gaa-green);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 170px;
    padding: 0.95rem;
}

.analytics-kpi-card--apple {
    border-top-color: var(--gaa-apple);
}

.analytics-kpi-card--amber {
    background: #fffdf8;
    border-color: #efd19b;
    border-top-color: var(--amber);
}

.analytics-kpi-card__topline {
    align-items: flex-start;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    min-height: 2.5rem;
}

.analytics-kpi-card__label {
    color: #4f6962;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.analytics-kpi-card__delta {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 0.22rem;
    line-height: 1.1;
    padding: 0.2rem 0.45rem;
    text-align: center;
    white-space: nowrap;
}

.analytics-kpi-card__delta-symbol {
    font-size: 0.86rem;
    line-height: 1;
}

.analytics-kpi-card__delta--positive {
    background: var(--status-success-bg);
    color: var(--status-success-fg);
}

.analytics-kpi-card__delta--steady {
    background: #eaf2ef;
    color: #43625a;
}

.analytics-kpi-card__delta--warning {
    background: var(--status-warning-bg);
    color: var(--status-warning-fg);
}

.analytics-kpi-card strong {
    color: #173f35;
    display: block;
    font-size: 2.35rem;
    line-height: 1;
    margin: 0.75rem 0 0.35rem;
}

.analytics-kpi-card__comparison {
    color: #6a7d77;
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}


.analytics-layout-grid,
.analytics-trend-row,
.analytics-breakdown-section {
    display: grid;
    gap: 1rem;
}

.analytics-breakdown-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 0.85fr) minmax(430px, 1.6fr) minmax(220px, 0.85fr);
}

.analytics-breakdown-panel {
    margin-top: 0;
    padding-bottom: 3.1rem;
    position: relative;
}

.analytics-bar-list {
    display: grid;
    gap: 0.85rem;
}

.analytics-bar-row {
    display: grid;
    gap: 0.45rem;
    grid-template-areas: "label value" "track track";
    grid-template-columns: minmax(0, 1fr) auto;
}

.analytics-bar-row__label {
    display: grid;
    gap: 0.15rem;
    grid-area: label;
    min-width: 0;
}

.analytics-bar-row__label span {
    color: #2d5047;
    font-weight: 700;
}

.analytics-bar-row__label small {
    color: #687c75;
    font-size: 0.78rem;
    line-height: 1.25;
}

.analytics-bar-row__track {
    display: block;
    grid-area: track;
    height: 0.72rem;
    overflow: visible;
    width: 100%;
}

.analytics-bar-row__track-bg {
    fill: #edf5f2;
}

.analytics-bar-row__bar {
    fill: var(--gaa-green);
}

.analytics-bar-row strong {
    align-self: start;
    color: #173f35;
    font-size: 0.92rem;
    grid-area: value;
    justify-self: end;
}


.analytics-bar-row--apple .analytics-bar-row__bar {
    fill: var(--gaa-apple);
}

.analytics-bar-row--amber .analytics-bar-row__bar {
    fill: var(--amber);
}

.analytics-bar-row--green-soft .analytics-bar-row__bar {
    fill: #55ad90;
}

.analytics-bar-row--gray .analytics-bar-row__bar {
    fill: #91a39d;
}

.analytics-content-table-wrap {
    overflow-x: auto;
}

.analytics-content-table-wrap--six-rows {
    max-height: 25rem;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.analytics-content-table-wrap--six-rows thead th {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.analytics-content-table {
    table-layout: fixed;
    width: 100%;
}

.analytics-content-table__page {
    width: 48%;
}

.analytics-content-table__priority {
    width: 21%;
}

.analytics-content-table__views {
    width: 14%;
}

.analytics-content-table__seconds {
    width: 17%;
}

.analytics-content-table th,
.analytics-content-table td {
    padding: 0.62rem 0.55rem;
    vertical-align: middle;
}

.analytics-content-table th:nth-child(1),
.analytics-content-table td:nth-child(1) {
    width: 48%;
}

.analytics-content-table th:nth-child(2),
.analytics-content-table td:nth-child(2) {
    width: 21%;
}

.analytics-content-table th:nth-child(3),
.analytics-content-table td:nth-child(3),
.analytics-content-table th:nth-child(4),
.analytics-content-table td:nth-child(4) {
    text-align: right;
}

.analytics-content-table th:nth-child(3),
.analytics-content-table td:nth-child(3) {
    width: 14%;
}

.analytics-content-table th:nth-child(4),
.analytics-content-table td:nth-child(4) {
    padding-right: 0.8rem;
    width: 17%;
}

.analytics-content-table td:first-child strong,
.analytics-content-table td:first-child span {
    display: block;
}

.analytics-content-table td:first-child strong {
    color: #214b40;
}

.analytics-content-table td:first-child span {
    color: #6a7d77;
    font-size: 0.82rem;
    margin-top: 0.12rem;
}

.analytics-table-badge,
.analytics-engagement {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: center;
    padding: 0.18rem 0.52rem;
    white-space: nowrap;
}

.analytics-table-badge--green,
.analytics-engagement--positive {
    background: var(--status-success-bg);
    color: var(--status-success-fg);
}

.analytics-table-badge--apple {
    background: #edf7d7;
    color: #58721f;
}

.analytics-table-badge--amber {
    background: var(--status-warning-bg);
    color: var(--status-warning-fg);
}

.analytics-table-badge--gray,
.analytics-engagement--steady {
    background: var(--status-neutral-bg);
    color: var(--status-neutral-fg);
}

.analytics-engagement--warning {
    background: var(--status-warning-bg);
    color: var(--status-warning-fg);
}

.analytics-diagnostic-section {
    display: grid;
    gap: 1rem;
}

.analytics-diagnostic-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analytics-tracking-panel {
    margin-top: 0.75rem;
}

.analytics-tracking-panel .analytics-diagnostic-card {
    margin-top: 1rem;
}

.analytics-diagnostic-card {
    display: grid;
    gap: 0.9rem;
    margin-top: 0;
    position: relative;
}

.analytics-diagnostic-card__header {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
}

.analytics-diagnostic-card__header h2 {
    font-size: 1.1rem;
    margin: 0;
}

.analytics-diagnostic-status {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.22rem 0.58rem;
    white-space: nowrap;
}

.analytics-diagnostic-status--warning {
    background: var(--status-warning-bg);
    color: var(--status-warning-fg);
}

.analytics-diagnostic-status--steady {
    background: var(--status-neutral-bg);
    color: var(--status-neutral-fg);
}

.analytics-diagnostic-table {
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    overflow: hidden;
}

.analytics-diagnostic-table__head,
.analytics-diagnostic-row {
    align-items: center;
    display: grid;
    gap: 0.35rem;
    grid-template-columns: minmax(5.6rem, 1.05fr) minmax(4.2rem, 0.78fr) minmax(3.1rem, 0.55fr) minmax(4.8rem, 1fr);
}

.analytics-diagnostic-table__head {
    background: #f3f8f6;
    color: #5d746d;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.45rem 0.5rem;
}

.analytics-diagnostic-row {
    background: #ffffff;
    border-top: 1px solid var(--border-soft);
    min-height: 3.05rem;
    padding: 0.35rem 0.5rem;
}

.analytics-diagnostic-row:first-of-type {
    border-top: 1px solid var(--border-soft);
}

.analytics-diagnostic-row__label {
    color: #2d5047;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.15;
}

.analytics-diagnostic-row__value {
    color: #073f36;
    font-size: 0.9rem;
    line-height: 1.1;
}

.analytics-diagnostic-row__change {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    gap: 0.12rem;
    justify-self: start;
    line-height: 1;
    padding: 0.16rem 0.34rem;
    white-space: nowrap;
}

.analytics-diagnostic-row--up .analytics-diagnostic-row__change {
    background: var(--status-success-bg);
    color: var(--status-success-fg);
}

.analytics-diagnostic-row--down .analytics-diagnostic-row__change {
    background: var(--status-warning-bg);
    color: var(--status-warning-fg);
}

.analytics-diagnostic-row--flat .analytics-diagnostic-row__change {
    background: var(--status-neutral-bg);
    color: var(--status-neutral-fg);
}

.analytics-diagnostic-row--placeholder .analytics-diagnostic-row__value,
.analytics-diagnostic-row__pending {
    color: #6a7d77;
    font-size: 0.76rem;
    font-weight: 600;
}

.analytics-diagnostic-row--placeholder .analytics-diagnostic-row__change {
    background: var(--status-neutral-bg);
    color: var(--status-neutral-fg);
}

.analytics-sparkline {
    min-width: 0;
    position: relative;
}

.analytics-sparkline-svg {
    display: block;
    height: 2rem;
    overflow: visible;
    width: 100%;
}

.analytics-sparkline-line {
    fill: none;
    stroke: var(--gaa-green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.analytics-sparkline-trendline {
    fill: none;
    opacity: 0.55;
    stroke: #5f8f82;
    stroke-dasharray: 5 5;
    stroke-linecap: round;
    stroke-width: 2;
}

.analytics-sparkline-point {
    cursor: pointer;
    fill: var(--gaa-green);
    stroke: #ffffff;
    stroke-width: 2;
}

.analytics-sparkline-point:hover,
.analytics-sparkline-point:focus {
    outline: none;
    r: 5;
}
.analytics-chart-placeholder {
    align-items: center;
    background: repeating-linear-gradient(90deg, var(--surface-sunken), var(--surface-sunken) 58px, #edf5f2 59px, #edf5f2 60px);
    border: 1px dashed #b9d1c8;
    border-radius: 8px;
    color: #557168;
    display: flex;
    justify-content: center;
    min-height: 280px;
    padding: 1rem;
    text-align: center;
}

.analytics-chart-card {
    position: relative;
}

.analytics-line-chart[hidden] {
    display: none !important;
}

.analytics-chart-header {
    align-items: center;
}

.analytics-trend-selector {
    align-items: end;
    display: flex;
    gap: 0.5rem;
}

.analytics-trend-selector label {
    display: grid;
    gap: 0.25rem;
}

.analytics-trend-selector label span {
    color: #425c54;
    font-size: 0.74rem;
    font-weight: 800;
}

.analytics-trend-selector select {
    border-radius: 8px;
    font: inherit;
    min-height: 2.25rem;
}

.analytics-trend-selector select {
    background: var(--surface-sunken);
    border: 1px solid #cfe0da;
    color: #173f35;
    min-width: 15rem;
    padding: 0.35rem 2rem 0.35rem 0.65rem;
}

.analytics-copy-chart {
    align-items: center;
    background: #ffffff;
    border: 1px solid #b8cdc6;
    border-radius: 8px;
    bottom: -0.25rem;
    box-shadow: 0 4px 12px rgba(22, 64, 51, 0.12);
    color: #234037;
    cursor: pointer;
    display: inline-flex;
    height: 2.1rem;
    justify-content: center;
    margin-top: 0;
    padding: 0;
    position: absolute;
    right: 0.65rem;
    width: 2.1rem;
    z-index: 4;
}

.analytics-copy-chart--panel {
    bottom: 0.7rem;
    right: 0.75rem;
}

.analytics-copy-status--panel {
    bottom: 0.9rem;
    right: 3.2rem;
}

.analytics-export-svg {
    height: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 0;
}
.analytics-copy-chart:hover,
.analytics-copy-chart:focus {
    background: #f3f8f6;
    outline: 2px solid rgba(0, 135, 110, 0.35);
    outline-offset: 2px;
}

.analytics-copy-chart span {
    display: block;
    height: 1rem;
    position: relative;
    width: 1rem;
}

.analytics-copy-chart span::before,
.analytics-copy-chart span::after {
    border: 1.8px solid currentColor;
    border-radius: 2px;
    content: "";
    height: 0.62rem;
    position: absolute;
    width: 0.62rem;
}

.analytics-copy-chart span::before {
    left: 0.1rem;
    top: 0.27rem;
}

.analytics-copy-chart span::after {
    background: #ffffff;
    left: 0.33rem;
    top: 0.05rem;
}
.analytics-copy-status {
    bottom: -0.05rem;
    color: #17664d;
    font-size: 0.86rem;
    font-weight: 700;
    opacity: 0;
    position: absolute;
    right: 3rem;
    transition: opacity 0.12s ease-in-out;
}

.analytics-copy-status--visible {
    opacity: 1;
}

.analytics-line-chart {
    padding-bottom: 2.3rem;
    position: relative;
}

.analytics-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.analytics-chart-legend__item {
    align-items: center;
    color: #425c54;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.35rem;
}

.analytics-chart-legend__item::before {
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 0.22rem;
    width: 1.3rem;
}

.analytics-chart-legend__item--green::before {
    background: var(--gaa-green);
}

.analytics-chart-legend__item--apple::before {
    fill: var(--gaa-apple);
}

.analytics-chart-scroll {
    overflow-x: auto;
}

.analytics-trend-svg {
    display: block;
    min-width: 760px;
    width: 100%;
}

.analytics-chart-axis,
.analytics-chart-gridline {
    fill: none;
    stroke: #dbe8e3;
    stroke-width: 1;
}

.analytics-chart-axis {
    stroke: #b8cdc6;
}

.analytics-chart-axis-label {
    fill: #667a73;
    font-size: 0.76rem;
    font-weight: 600;
}

.analytics-chart-y-label {
    text-anchor: end;
}

.analytics-chart-x-label {
    text-anchor: middle;
}

.analytics-chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.analytics-chart-trendline {
    fill: none;
    opacity: 0.62;
    stroke-dasharray: 9 8;
    stroke-linecap: round;
    stroke-width: 2;
}

.analytics-chart-trendline--green {
    stroke: #17664d;
}

.analytics-chart-trendline--apple {
    stroke: #7f9f2f;
}

.analytics-chart-line--green {
    stroke: var(--gaa-green);
}

.analytics-chart-line--apple {
    stroke: var(--gaa-apple);
}

.analytics-chart-point {
    cursor: pointer;
    stroke: #ffffff;
    stroke-width: 2;
}

.analytics-chart-point:focus {
    outline: none;
}

.analytics-chart-point:hover,
.analytics-chart-point:focus {
    r: 7;
    stroke: #173f35;
}

.analytics-chart-point--green {
    fill: var(--gaa-green);
}

.analytics-chart-point--apple {
    fill: var(--gaa-apple);
}

.analytics-chart-value-label {
    font-size: 0.74rem;
    font-weight: 700;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 4px;
    text-anchor: middle;
}

.analytics-chart-value-label--green {
    fill: #17664d;
}

.analytics-chart-value-label--apple {
    fill: #55711f;
}

.analytics-chart-tooltip {
    background: #173f35;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    left: 0;
    opacity: 0;
    padding: 0.45rem 0.6rem;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateY(-0.2rem);
    transition: opacity 0.12s ease-in-out, transform 0.12s ease-in-out;
    z-index: 5;
}

.analytics-chart-tooltip--visible {
    opacity: 1;
    transform: translateY(0);
}
.analytics-ranked-list {
    display: grid;
    gap: 0.65rem;
}

.analytics-ranked-list div {
    align-items: center;
    background: var(--surface-sunken);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 0.7rem;
}

.analytics-ranked-list span,
.analytics-decision-list span {
    color: #425c54;
    font-weight: 700;
}

.analytics-decision-list {
    background: var(--surface-sunken);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 0.8rem;
}

.analytics-decision-list p {
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.analytics-footer-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
}

.analytics-footer-summary::-webkit-details-marker {
    display: none;
}

.analytics-footer-summary::before {
    color: var(--gaa-green);
    content: "▸";
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform 0.15s ease;
}

.analytics-footer-panel[open] .analytics-footer-summary::before {
    transform: rotate(90deg);
}

.analytics-footer-summary > span:first-of-type {
    display: grid;
    gap: 0.25rem;
    margin-right: auto;
}

.analytics-footer-summary strong {
    color: #073f36;
    font-size: 1.25rem;
}

.analytics-footer-summary small {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.analytics-footer-panel .analytics-meta-grid {
    margin-top: 1rem;
}

.analytics-meta-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-meta-grid article {
    background: var(--surface-sunken);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 0.85rem;
}

.analytics-meta-grid h3 {
    color: #214b40;
    font-size: 1rem;
    margin: 0 0 0.3rem;
}

.analytics-meta-grid p {
    color: var(--text-muted);
    margin: 0;
}
.analytics-build-pill {
    background: #e6f4ee;
    border: 1px solid #b9d9ce;
    border-radius: 999px;
    color: #0f5d49;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.28rem 0.7rem;
    white-space: nowrap;
}

.analytics-meta-list {
    color: var(--text-muted);
    display: grid;
    gap: 0.45rem;
    line-height: 1.35;
    margin: 0;
    padding-left: 1rem;
}

.analytics-build-number {
    color: #073f36 !important;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.4rem !important;
}

.analytics-structure-table th:nth-child(1),
.analytics-structure-table td:nth-child(1) {
    width: 210px;
}
@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        height: auto;
        min-width: 0;
        overflow: visible;
        padding: 1rem;
        position: static;
        width: 100%;
    }

    /* A flyout has nowhere to fly once the sidebar spans the viewport, so the
       submenu becomes an inline stack that opens under its own toggle. */
    .submenu,
    .submenu--nested {
        box-shadow: none;
        display: none;
        left: auto;
        margin: 0.35rem 0 0 0.85rem;
        min-width: 0;
        opacity: 1;
        pointer-events: auto;
        position: static;
        top: auto;
        transform: none;
    }

    .submenu::before {
        display: none;
    }

    [data-disclosure-toggle][aria-expanded="true"] + .submenu {
        display: grid;
        transform: none;
    }

    .content {
        min-width: 0;
        padding: 1rem;
        width: 100%;
    }

    .modal-dialog {
        inset: 2vh 3vw;
    }

    .bill-meta-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-logo {
        max-width: 200px;
        width: 100%;
    }

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

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

    .analytics-top-strip {
        flex-direction: column;
    }

    .analytics-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .analytics-selected-filters {
        justify-content: flex-start;
    }

    .analytics-filter-grid {
        grid-template-columns: 9.5rem minmax(15rem, 1fr) minmax(14rem, 1fr) 10.75rem 9.75rem auto;
    }

    .analytics-filter-submit {
        grid-column: auto;
    }

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

    .analytics-layout-grid,
    .analytics-breakdown-grid,
    .analytics-diagnostic-grid,
    .analytics-meta-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-panel--wide {
        grid-row: auto;
    }
}

@media (max-width: 560px) {
    .dashboard-metrics,
    .analytics-kpi-grid {
        grid-template-columns: 1fr;
    }

    .analytics-filter-grid {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .analytics-filter-field,
    .analytics-filter-field[data-period-field="month"],
    .analytics-filter-field[data-period-field="quarter"],
    .analytics-filter-field[data-period-field="year"],
    .analytics-filter-field[data-period-field="week"],
    .analytics-filter-field[data-period-field="day"],
    .analytics-filter-field--wide,
    .analytics-filter-toggle,
    .analytics-filter-submit {
        width: 100%;
    }

    .analytics-filter-submit {
        grid-column: auto;
    }

    .dashboard-panel__header {
        flex-direction: column;
    }

    .analytics-trend-selector {
        align-items: stretch;
        width: 100%;
    }

    .analytics-trend-selector label {
        flex: 1;
    }

    .analytics-trend-selector select {
        min-width: 0;
        width: 100%;
    }

    .pipeline-row {
        grid-template-columns: 1fr 34px;
    }

    .pipeline-row > span:first-child {
        grid-column: 1 / -1;
    }
}



























.members-table {
    table-layout: auto;
    min-width: 1100px;
}

.members-filter-form {
    align-items: end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(220px, 30rem) minmax(160px, 15rem);
    justify-content: start;
    padding: 0.85rem 0 1rem;
}

.members-filter-form .field-block {
    margin: 0;
}

.coalition-event-filter-form {
    grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(145px, 0.85fr)) minmax(150px, 0.8fr);
    justify-content: stretch;
    width: 100%;
}

.coalition-event-filter-form .members-filter-form__actions {
    grid-column: 1 / -1;
    white-space: nowrap;
}

.members-filter-panel {
    border-bottom: 1px solid #dbe7e2;
    margin: 0.85rem 0 1rem;
}

.members-filter-panel summary {
    color: #174b3e;
    cursor: pointer;
    font-weight: 800;
    padding: 0.3rem 0 0.65rem;
    width: max-content;
}

.members-filter-panel summary:hover,
.members-filter-panel summary:focus {
    color: #00876e;
}

.members-filter-form__actions {
    display: flex;
    gap: 0.6rem;
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.members-filter-form__actions .primary-button,
.members-filter-form__actions .secondary-button {
    align-items: center;
    display: inline-flex;
    font: inherit;
    font-weight: 600;
    justify-content: center;
    line-height: 1;
    margin-top: 0;
    min-height: 2.75rem;
    min-width: 5rem;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
}

.members-list-toolbar {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.members-list-toolbar .secondary-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    margin: 0;
}

.member-signup-link-card__header {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}

.member-signup-link-card__header > span {
    flex: 0 0 auto;
}

.member-signup-link-card__header label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.member-signup-link-card__header select {
    min-height: 2.2rem;
    padding: 0.3rem 2rem 0.3rem 0.6rem;
    width: 10rem;
}

.member-signup-link-card__details {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.35rem;
}

.member-signup-qr-download {
    align-self: flex-start;
}

@media (max-width: 600px) {
    .member-signup-link-card__header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .member-signup-link-card__header > span {
        flex-basis: 100%;
    }
}

.members-pagination {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
}

@media (max-width: 700px) {
    .members-filter-form {
        grid-template-columns: 1fr;
    }

    .members-filter-form__actions {
        grid-column: 1;
    }
}

.members-table th:nth-child(1),
.members-table td:nth-child(1),
.members-table th:nth-child(2),
.members-table td:nth-child(2) {
    min-width: 125px;
    width: 13%;
}

.members-table th:nth-child(3),
.members-table td:nth-child(3) {
    min-width: 180px;
    width: 18%;
}

.members-table th:nth-child(4),
.members-table td:nth-child(4) {
    min-width: 110px;
    width: 11%;
}

.members-table th:nth-child(5),
.members-table td:nth-child(5) {
    min-width: 240px;
    width: 24%;
}

.members-table th:nth-child(6),
.members-table td:nth-child(6) {
    min-width: 150px;
    white-space: nowrap;
    width: 15%;
}

.field-help {
    color: var(--text-muted);
    display: block;
    font-size: 0.84rem;
    margin-top: 0.3rem;
}

.modal--member > .modal-backdrop {
    z-index: 120;
}

.modal--member > .modal-dialog {
    bottom: auto;
    left: 50%;
    max-height: 86vh;
    max-width: 680px;
    overflow-y: auto;
    right: auto;
    top: 7vh;
    transform: translateX(-50%);
    width: min(680px, calc(100vw - 2rem));
    z-index: 121;
}

.modal--member .card {
    border-radius: 8px;
}

.modal--contact-details > .modal-backdrop {
    z-index: 140;
}

.modal--contact-details > .modal-dialog {
    bottom: auto;
    left: 50%;
    max-height: 82vh;
    max-width: 760px;
    right: auto;
    top: 9vh;
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 2rem));
    z-index: 141;
}

.contact-detail-section {
    border-top: 1px solid #dbe8e3;
    margin-top: 1rem;
    padding-top: 1rem;
}

.contact-detail-list {
    display: grid;
    gap: 0.55rem 1rem;
    grid-template-columns: minmax(110px, 0.25fr) minmax(0, 1fr);
    margin: 0;
}

.contact-detail-list dt {
    font-weight: 700;
}

.contact-detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.contact-detail-content {
    background: #fff;
    border: 1px solid #dbe8e3;
    border-radius: 8px;
    max-height: 40vh;
    overflow: auto;
    padding: 0.85rem;
    white-space: normal;
}

.reports-empty-state {
    max-width: 720px;
    padding: 1.25rem;
}

@media (max-width: 900px) {
    .modal--member > .modal-dialog {
        inset: 2vh 3vw;
        max-height: 96vh;
        max-width: none;
        width: auto;
    }
}

@media (max-width: 560px) {
    .contact-log-summary__date {
        font-size: 0.82rem;
    }

    .contact-detail-list {
        grid-template-columns: 1fr;
    }
}

.coalition-events-table {
    table-layout: auto;
}

.coalition-events-table th:nth-child(1),
.coalition-events-table td:nth-child(1) {
    min-width: 220px;
    width: 28%;
}

.coalition-events-table th:nth-child(2),
.coalition-events-table td:nth-child(2),
.coalition-events-table th:nth-child(3),
.coalition-events-table td:nth-child(3) {
    min-width: 140px;
    width: 16%;
}

.coalition-events-table th:nth-child(4),
.coalition-events-table td:nth-child(4) {
    min-width: 190px;
    width: 22%;
}

.coalition-events-table th:nth-child(5),
.coalition-events-table td:nth-child(5),
.coalition-events-table th:nth-child(6),
.coalition-events-table td:nth-child(6) {
    min-width: 90px;
    width: 9%;
}

.modal--coalition .modal-backdrop {
    z-index: 120;
}

.modal--coalition .modal-dialog {
    bottom: auto;
    left: 50%;
    max-height: 88vh;
    max-width: 980px;
    overflow-y: auto;
    right: auto;
    top: 5vh;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 2rem));
    z-index: 121;
}

.modal--coalition .card {
    border-radius: 8px;
}

.coalition-invitee-list {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.coalition-invitee-row p {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.coalition-invitee-add {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.coalition-invitee-add h4 {
    color: #214b40;
    margin: 0 0 0.7rem;
}

.field-block--disabled label,
.field-block--disabled input {
    color: #7a8c86;
}

.field-block--disabled input {
    background: #eef4f1;
}

@media (max-width: 900px) {
    .modal--coalition .modal-dialog {
        inset: 2vh 3vw;
        max-height: 96vh;
        max-width: none;
        transform: none;
        width: auto;
    }
}

.status-dot {
    border-radius: 999px;
    display: inline-block;
    height: 0.75rem;
    vertical-align: middle;
    width: 0.75rem;
}

.status-dot--danger {
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(191, 44, 36, 0.14);
}

.status-dot--success {
    background: var(--gaa-green);
    box-shadow: 0 0 0 3px rgba(0, 135, 110, 0.12);
}

.status-dot--clear {
    background: #d7e4df;
}

.coalition-modal-header,
.coalition-card-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.coalition-card-heading h3,
.coalition-card-heading p {
    margin: 0;
}

.coalition-card-heading p {
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.coalition-alert-pill {
    background: #fde4e2;
    border: 1px solid #f4b8b2;
    border-radius: 999px;
    color: var(--text-danger);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.26rem 0.7rem;
    white-space: nowrap;
}

.coalition-details-card {
    padding: 0;
}

.coalition-card-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    padding: 1rem 1.2rem;
}

.coalition-card-summary::-webkit-details-marker {
    display: none;
}

.coalition-card-summary::before {
    color: var(--gaa-green);
    content: "▸";
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform 0.15s ease;
}

.coalition-details-card[open] .coalition-card-summary::before {
    transform: rotate(90deg);
}

.coalition-card-summary span {
    display: grid;
    gap: 0.2rem;
    margin-right: auto;
}

.coalition-card-summary small {
    color: var(--text-muted);
    font-weight: 600;
}

.coalition-card-body {
    border-top: 1px solid var(--border);
    padding: 1rem 1.2rem 1.2rem;
}

.evaluation-question-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.85rem;
}

.evaluation-question {
    border: 1px solid #dbe8e3;
    border-radius: 8px;
    background: #fbfefd;
    overflow: hidden;
}

.evaluation-question summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 0.7rem;
    list-style: none;
    padding: 0.75rem;
}

.evaluation-question summary::-webkit-details-marker {
    display: none;
}

.evaluation-question__number {
    align-items: center;
    background: #e6f4ee;
    border-radius: 999px;
    color: #0f5d49;
    display: inline-flex;
    font-weight: 800;
    height: 1.7rem;
    justify-content: center;
    width: 1.7rem;
}

.evaluation-question__title {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.evaluation-question__title small {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.25;
}

.evaluation-question__body {
    border-top: 1px solid #dbe8e3;
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
}

.evaluation-question__body p,
.evaluation-prompts ul {
    color: #526b63;
    margin: 0;
}

.evaluation-prompts summary {
    color: var(--gaa-green);
    display: inline-flex;
    font-weight: 800;
    padding: 0;
}

.evaluation-prompts ul {
    margin-top: 0.55rem;
    padding-left: 1rem;
}


.coalition-survey-tools {
    align-items: stretch;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 150px minmax(0, 1fr);
    margin-top: 0.85rem;
}

.coalition-survey-qr {
    align-items: center;
    background: var(--surface-sunken);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    display: grid;
    gap: 0.65rem;
    justify-items: center;
    padding: 0.7rem;
}

.coalition-survey-qr img {
    background: #ffffff;
    border: 1px solid #dbe8e3;
    border-radius: 4px;
    height: 112px;
    padding: 0.35rem;
    width: 112px;
}

.coalition-survey-qr .secondary-button {
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.45rem 0.6rem;
    width: 100%;
}

.coalition-survey-upload-form {
    background: #fbfdfc;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    margin-top: 0.85rem;
    padding: 0.85rem;
}

.coalition-survey-upload-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.coalition-survey-upload-list h4 {
    color: #214b40;
    font-size: 0.95rem;
    margin: 0;
}

.coalition-survey-upload-list p {
    color: var(--text-muted);
    margin: 0;
}

.coalition-survey-upload-row {
    align-items: center;
    background: var(--surface-sunken);
    border: 1px solid #e2eee9;
    border-radius: 8px;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0.55rem 0.7rem;
}

.coalition-survey-upload-row span:first-child {
    color: #173f35;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.coalition-survey-upload-row span:nth-child(2) {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.coalition-survey-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.coalition-survey-link {
    background: var(--surface-sunken);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    display: grid;
    gap: 0.25rem;
    margin-top: 0.85rem;
    padding: 0.7rem;
}

.coalition-survey-link span {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.coalition-survey-link code {
    color: #173f35;
    overflow-wrap: anywhere;
}

.coalition-survey-table-wrap {
    max-height: 18rem;
    margin-top: 0.85rem;
    overflow: auto;
}

.coalition-survey-table {
    table-layout: auto;
}

.coalition-events-table th:nth-child(1),
.coalition-events-table td:nth-child(1) {
    min-width: 64px;
    width: 64px;
}

.coalition-events-table th:nth-child(2),
.coalition-events-table td:nth-child(2) {
    min-width: 220px;
    width: 26%;
}

.coalition-events-table th:nth-child(3),
.coalition-events-table td:nth-child(3),
.coalition-events-table th:nth-child(4),
.coalition-events-table td:nth-child(4) {
    min-width: 130px;
    width: 14%;
}

.coalition-events-table th:nth-child(5),
.coalition-events-table td:nth-child(5) {
    min-width: 180px;
    width: 20%;
}

.coalition-events-table th:nth-child(6),
.coalition-events-table td:nth-child(6),
.coalition-events-table th:nth-child(7),
.coalition-events-table td:nth-child(7),
.coalition-events-table th:nth-child(8),
.coalition-events-table td:nth-child(8) {
    min-width: 88px;
    width: 8%;
}

.coalition-events-table .coalition-event-actions-cell {
    min-width: 88px;
    text-align: right;
    width: 88px;
}

.public-survey-page {
    background: #f5f8f7;
}

.public-survey-shell {
    margin: 0 auto;
    max-width: 920px;
    padding: 2rem;
}

.public-survey-card h1 {
    color: var(--gaa-green);
    margin: 0;
}

@media (max-width: 700px) {
    .coalition-survey-tools,
    .coalition-survey-upload-row {
        grid-template-columns: 1fr;
    }

    .coalition-modal-header,
    .coalition-card-heading {
        flex-direction: column;
    }

    .evaluation-question summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .public-survey-shell {
        padding: 1rem;
    }
}

.public-survey-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.public-survey-header {
    align-items: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.public-survey-header img {
    background: #ffffff;
    border: 1px solid #d9e9e3;
    border-radius: 8px;
    height: auto;
    max-width: 190px;
    padding: 0.55rem;
    width: 34%;
}

.public-survey-header h1 {
    color: var(--gaa-green);
    font-size: 1.65rem;
    line-height: 1.1;
    margin: 0;
}

.public-survey-header p {
    color: var(--text-muted);
    font-weight: 700;
    margin: 0.35rem 0 0;
}


.public-survey-validation-summary {
    background: #fdecea;
    border: 1px solid #f4b8b2;
    border-radius: 8px;
    color: var(--text-danger);
    font-weight: 800;
    padding: 0.8rem 0.95rem;
}

.public-survey-validation-summary.is-hidden {
    display: none;
}

.survey-section {
    border: 1px solid #dbe8e3;
    border-radius: 8px;
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 1rem;
}

.survey-section legend {
    color: #214b40;
    font-size: 1rem;
    font-weight: 800;
    padding: 0 0.4rem;
}

.survey-question {
    display: grid;
    gap: 0.55rem;
}

.survey-question + .survey-question {
    border-top: 1px solid #edf4f1;
    padding-top: 0.85rem;
}

.survey-question__text {
    color: #173f35;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.survey-question__text span {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.survey-choice-list {
    display: grid;
    gap: 0.55rem;
}

.survey-choice-list--inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.survey-choice,
.survey-scale-choice {
    align-items: center;
    background: var(--surface-sunken);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 0.65rem;
    min-height: 3rem;
    padding: 0.65rem 0.75rem;
}

.survey-choice:hover,
.survey-scale-choice:hover {
    border-color: #9fcfc0;
    background: #f1f8f5;
}

.survey-choice input[type="radio"],
.survey-scale-choice input[type="radio"] {
    accent-color: var(--gaa-green);
    flex: 0 0 auto;
    height: 1.25rem;
    width: 1.25rem;
}

.survey-choice input[type="checkbox"] {
    accent-color: var(--gaa-green);
    flex: 0 0 auto;
    height: 1.25rem;
    width: 1.25rem;
}

.survey-choice span {
    color: #234037;
    font-weight: 700;
    line-height: 1.25;
}

.survey-scale-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.survey-scale-choice {
    align-items: center;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    min-height: 5.8rem;
    text-align: center;
}

.survey-scale-choice strong {
    color: #234037;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.15;
}

.survey-scale-choice small {
    align-items: center;
    background: #e6f4ee;
    border-radius: 999px;
    color: #0f5d49;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 1.45rem;
    justify-content: center;
    line-height: 1;
    min-width: 1.45rem;
    padding: 0 0.35rem;
}

.public-survey-form textarea,
.public-survey-form input[type="text"] {
    background: #fcfefd;
    border: 1px solid #c8d8d2;
    border-radius: 8px;
    font: inherit;
    min-height: 2.8rem;
    padding: 0.7rem;
    width: 100%;
}


.public-survey-form input[disabled],
.public-survey-form textarea[disabled] {
    background: #eef4f1;
    color: #7b8f88;
    cursor: not-allowed;
}

.survey-question--error {
    border-left: 4px solid var(--red);
    padding-left: 0.75rem;
}

.public-survey-actions {
    align-items: center;
    display: flex;
    justify-content: flex-end;
}

.public-survey-actions .primary-button {
    font-size: 1rem;
    min-height: 2.9rem;
    padding: 0.7rem 1.2rem;
}

@media (max-width: 760px) {
    .public-survey-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-survey-header img {
        width: min(230px, 100%);
    }

    .survey-choice-list--inline,
    .survey-scale-grid {
        grid-template-columns: 1fr;
    }

    .survey-scale-choice {
        align-items: center;
        flex-direction: row;
        min-height: 3.1rem;
        text-align: left;
    }
}

.signup-sheet-page {
    background: #f5f8f7;
}

.signup-sheet-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 2rem;
}

.signup-sheet-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.signup-sheet-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.signup-sheet-counts span {
    background: #e8f4ef;
    border: 1px solid #c9ded6;
    border-radius: 999px;
    color: var(--gaa-green);
    font-weight: 800;
    padding: 0.35rem 0.7rem;
}

.signup-flashes,
.signup-sheet-card,
.signup-add-card {
    margin-top: 1rem;
}

.signup-sheet-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.signup-sheet-tools .field-block {
    flex: 1 1 150px;
    min-width: 0;
}

.signup-sheet-tools .signup-search-field {
    flex: 2 1 260px;
}

.signup-sheet-tools span {
    color: #214b40;
    font-weight: 800;
}

.signup-sheet-table {
    table-layout: fixed;
}

.signup-sheet-table th:nth-child(1),
.signup-sheet-table td:nth-child(1) {
    width: 28%;
}

.signup-sheet-table th:nth-child(2),
.signup-sheet-table td:nth-child(2) {
    width: 30%;
}

.signup-sheet-table th:nth-child(3),
.signup-sheet-table td:nth-child(3) {
    width: 22%;
}

.signup-sheet-table th:nth-child(4),
.signup-sheet-table td:nth-child(4) {
    width: 100px;
    text-align: center;
}

.signup-sheet-table th:nth-child(5),
.signup-sheet-table td:nth-child(5) {
    width: 96px;
    text-align: right;
}

.signup-sheet-table input[type="checkbox"] {
    accent-color: var(--gaa-green);
    cursor: pointer;
    height: 1.35rem;
    min-height: 0;
    width: 1.35rem;
}

.signup-add-card h2 {
    color: var(--gaa-green);
    margin: 0;
}

.signup-add-form .field-grid {
    align-items: end;
}

.signup-edit-form .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal--signup-edit .modal-dialog {
    bottom: auto;
    left: 50%;
    max-height: 86vh;
    max-width: 620px;
    overflow-y: auto;
    right: auto;
    top: 8vh;
    transform: translateX(-50%);
    width: min(620px, calc(100vw - 2rem));
    z-index: 121;
}

.modal--signup-edit .modal-backdrop {
    z-index: 120;
}

.coalition-summary-action {
    flex: 0 0 auto;
}

@media (max-width: 820px) {
    .signup-sheet-shell {
        padding: 1rem;
    }

    .signup-sheet-header {
        flex-direction: column;
    }

    .signup-sheet-table {
        min-width: 760px;
    }

    .signup-edit-form .field-grid {
        grid-template-columns: 1fr;
    }
}
/* Signup sheet refinements. */
.visually-hidden {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

.signup-sheet-shell {
    max-width: 1040px;
    padding: 2rem clamp(1.5rem, 4vw, 3rem);
}

.signup-sheet-card,
.signup-add-card {
    padding: 1rem 1.1rem;
}

.signup-sheet-table {
    table-layout: auto;
}

.signup-sheet-table th,
.signup-sheet-table td {
    padding: 0.6rem 0.65rem;
    vertical-align: middle;
}

.signup-sheet-table th:nth-child(1),
.signup-sheet-table td:nth-child(1) {
    min-width: 220px;
    width: auto;
}

.signup-sheet-table th:nth-child(2),
.signup-sheet-table td:nth-child(2) {
    min-width: 180px;
    width: 24%;
}

.signup-sheet-table th:nth-child(3),
.signup-sheet-table td:nth-child(3) {
    min-width: 145px;
    width: 18%;
}

.signup-sheet-table th:nth-child(4),
.signup-sheet-table td:nth-child(4) {
    min-width: 100px;
    text-align: left;
    width: 100px;
}

.signup-sheet-table th:nth-child(5),
.signup-sheet-table td:nth-child(5) {
    min-width: 92px;
    text-align: center;
    width: 92px;
}

.signup-sheet-table th:nth-child(6),
.signup-sheet-table td:nth-child(6) {
    min-width: 72px;
    text-align: right;
    width: 72px;
}

@media (max-width: 760px) {
    .coalition-event-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .coalition-event-filter-form {
        grid-template-columns: 1fr;
    }
}

.signup-sheet-table tbody tr:hover {
    background: #f4faf8;
}

.signup-row-edit {
    padding: 0.35rem 0.65rem;
    transition: opacity 0.12s ease-in-out;
}

.signup-type-field {
    max-width: 230px;
}

.signup-type-field select {
    width: max-content;
    min-width: 210px;
    max-width: 100%;
}

@media (max-width: 820px) {
    .signup-sheet-shell {
        padding: 1rem;
    }

    .signup-sheet-table {
        min-width: 680px;
    }
}

/* Modal close buttons belong at the top-right of every modal dialog. */
.modal-dialog > .modal-close {
    left: auto !important;
    position: absolute !important;
    right: 1rem !important;
    top: 1rem !important;
    z-index: 3;
}

.modal-header,
.coalition-modal-header {
    padding-right: 5.5rem;
}

/* Keep the walk-in attendee form reachable while the invitee list scrolls. */
.signup-sheet-page {
    min-height: 100vh;
    overflow: hidden;
}

.signup-sheet-shell {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100vh;
    min-height: 0;
}

.signup-flashes,
.signup-sheet-card,
.signup-add-card {
    margin-top: 0;
}

.signup-sheet-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.signup-sheet-card .table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.signup-sheet-table thead th {
    background: var(--gaa-white);
    position: sticky;
    top: 0;
    z-index: 1;
}

.signup-add-card {
    flex: 0 0 auto;
}

@media (max-width: 820px) {
    .signup-sheet-page {
        overflow: auto;
    }

    .signup-sheet-shell {
        height: auto;
        min-height: 100vh;
    }

    .signup-sheet-card .table-wrap {
        max-height: 48vh;
    }
}

.copy-link-card {
    position: relative;
}

.copy-link-row {
    align-items: center;
    display: inline-flex;
    gap: 0.6rem;
    max-width: 100%;
    min-width: 0;
}

.copy-link-row code,
.copy-link-row strong {
    flex: 0 1 auto;
    min-width: 0;
}

.copy-link-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #b8cdc6;
    border-radius: 8px;
    color: #234037;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2rem;
    justify-content: center;
    padding: 0;
    transition: opacity 0.12s ease-in-out, background 0.12s ease-in-out;
    width: 2rem;
}

.copy-link-button:hover,
.copy-link-button:focus {
    background: #f3f8f6;
    outline: 2px solid rgba(0, 135, 110, 0.35);
    outline-offset: 2px;
}

.copy-link-button span {
    display: block;
    height: 1rem;
    position: relative;
    width: 1rem;
}

.copy-link-button span::before,
.copy-link-button span::after {
    border: 1.8px solid currentColor;
    border-radius: 2px;
    content: "";
    height: 0.62rem;
    position: absolute;
    width: 0.62rem;
}

.copy-link-button span::before {
    left: 0.08rem;
    top: 0.28rem;
}

.copy-link-button span::after {
    background: #ffffff;
    left: 0.32rem;
    top: 0.06rem;
}

.registration-qr-download {
    position: relative;
}

.registration-qr-download svg {
    fill: currentColor;
    height: 1rem;
    width: 1rem;
}

.registration-qr-download::after {
    background: #173f35;
    border-radius: 5px;
    bottom: calc(100% + 0.45rem);
    color: #ffffff;
    content: attr(data-tooltip);
    font-size: 0.72rem;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 0.3rem 0.45rem;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%) translateY(0.2rem);
    transition: opacity 0.12s ease, transform 0.12s ease;
    white-space: nowrap;
    z-index: 5;
}

.registration-qr-download:hover::after,
.registration-qr-download:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.copy-link-status {
    color: #17664d;
    flex: 0 0 auto;
    font-size: 0.86rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.14s ease-in-out;
}

.copy-link-status--visible {
    opacity: 1;
}

.coalition-survey-link--unavailable strong {
    color: var(--text-muted);
}

.copy-link-card .copy-link-row {
    position: relative;
}

.copy-link-row code,
.copy-link-row input {
    order: 0;
}

.copy-link-row code {
    overflow-wrap: anywhere;
    white-space: normal;
}

.copy-link-row input {
    flex: 0 1 auto;
    max-width: min(100%, 36rem);
}

.copy-link-row .copy-link-button {
    order: 1;
}

.copy-link-row .copy-link-status {
    background: #ffffff;
    border: 1px solid #cfe4dd;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(16, 48, 40, 0.12);
    flex: 0 0 auto;
    right: 0;
    opacity: 0;
    padding: 0.2rem 0.45rem;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    z-index: 4;
}

.copy-link-row .copy-link-status--visible {
    opacity: 1;
}

/* Event invitation campaign workspace. */
.coalition-invitation-action {
    align-items: start;
    background: #edf6f2;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
}

.coalition-invitation-copy { display: grid; gap: 0.25rem; min-width: 0; }
.coalition-invitation-copy h3 { color: var(--gaa-green); font-size: 1rem; margin: 0; }
.coalition-invitation-copy p { color: #45635b; margin: 0; max-width: 68ch; }
.coalition-invitation-action .primary-button { justify-self: end; white-space: nowrap; }

.campaign-workspace { margin: 0 auto; max-width: 1180px; padding: 1.5rem 2rem 3rem; }
.campaign-page-header { align-items: flex-end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 1.35rem; }
.campaign-page-header h1 { color: var(--gaa-green); margin: 0.35rem 0 0.25rem; }
.campaign-page-header p { margin: 0; }
.campaign-back { color: #17664d; font-size: 0.86rem; font-weight: 800; }
.campaign-state { background: #e6f1ed; color: #174f40; font-size: 0.82rem; font-weight: 800; padding: 0.45rem 0.75rem; }
.campaign-state--partial, .campaign-state--cancelled { background: #fff1d7; color: #704b00; }
.campaign-read-only-note { background: #edf6f2; color: #244b40; margin: -0.3rem 0 1.2rem; padding: 0.8rem 1rem; }

.campaign-index { background: #fff; border: 1px solid #d9e5e0; }
.campaign-index-row { align-items: stretch; color: inherit; display: flex; }
.campaign-index-row + .campaign-index-row { border-top: 1px solid #d9e5e0; }
.campaign-index-link { align-items: center; color: inherit; display: flex; flex: 1; gap: 1rem; justify-content: space-between; min-width: 0; padding: 1rem 1.1rem; text-decoration: none; }
.campaign-index-link:hover, .campaign-index-link:focus { background: #f3f8f6; outline: 2px solid rgba(0,135,110,.32); outline-offset: -2px; }
.campaign-index-copy { display: grid; gap: 0.25rem; min-width: 0; }
.campaign-index-row span { color: #53675f; font-size: 0.86rem; }
.campaign-index-counts { align-items: center; display: flex; gap: 0.75rem; }
.campaign-delete-form { align-items: center; border-inline-start: 1px solid #e3ebe8; padding: 0.7rem 1rem; }
.campaign-status--danger { color: #9b2c2c !important; font-weight: 800; }
.campaign-empty { padding: 3rem 2rem; text-align: center; }
.campaign-empty h2 { color: var(--gaa-green); }

.campaign-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 1rem; }
.campaign-step { align-items: center; background: #e8efec; color: #36574e; display: flex; font-size: 0.82rem; font-weight: 800; gap: 0.45rem; min-height: 3.2rem; padding: 0.55rem 0.7rem; text-decoration: none; }
.campaign-step + .campaign-step { border-left: 1px solid #fff; }
.campaign-step span { align-items: center; background: #fff; border-radius: 50%; display: inline-flex; height: 1.55rem; justify-content: center; width: 1.55rem; }
.campaign-step.is-current { background: var(--gaa-green); color: #fff; }
.campaign-step.is-current span { color: var(--gaa-green); }
.campaign-step.is-complete:not(.is-current) { background: #cee3db; color: #174f40; }
.campaign-step.is-locked { color: #73837d; cursor: not-allowed; }

.campaign-panel { background: #fff; border: 1px solid #d9e5e0; min-height: 420px; padding: 1.35rem; }
.campaign-panel-heading { align-items: flex-start; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 1.4rem; }
.campaign-panel-heading h2 { color: var(--gaa-green); margin: 0 0 0.35rem; }
.campaign-panel-heading p { margin: 0; max-width: 70ch; }
.campaign-form { display: grid; gap: 1.2rem; }
.campaign-field-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.campaign-field-grid .field-block--wide { grid-column: span 3; }
.campaign-timeline { background: #f0f6f3; display: grid; gap: 0; padding: 0.9rem 1rem; }
.campaign-timeline > span { align-items: center; border-top: 1px solid #d2e3dc; display: flex; justify-content: space-between; padding: 0.65rem 0; }
.campaign-timeline em { color: #45635b; font-style: normal; }
.campaign-actions { align-items: center; display: flex; gap: 0.75rem; justify-content: space-between; margin-top: 1.25rem; }
.campaign-actions > div { display: flex; justify-content: flex-end; }
.campaign-summary { align-items: baseline; display: grid; gap: 0.15rem 0.45rem; grid-template-columns: auto auto; }
.campaign-summary strong { color: var(--gaa-green); font-size: 1.2rem; text-align: right; }
.campaign-summary span { color: #52675f; font-size: 0.78rem; }

.campaign-recipient-tools { align-items: end; display: flex; gap: 2rem; justify-content: space-between; }
.campaign-recipient-tools > label:first-child { font-weight: 800; padding-bottom: 0.65rem; }
.campaign-select-all { align-items: center; display: inline-flex; flex: 0 0 auto; gap: 0.45rem; line-height: 1.2; white-space: nowrap; }
.campaign-select-all input { margin: 0; }
.campaign-recipient-tool-actions { align-items: end; display: flex; gap: 0.75rem; max-width: 520px; width: 100%; }
.campaign-search { display: grid; gap: 0.25rem; max-width: 430px; width: 100%; }
.campaign-search > label { font-size: 0.8rem; font-weight: 800; }
.campaign-search-controls { align-items: stretch; display: flex; gap: 0.5rem; }
.campaign-search-controls input { min-width: 0; width: 100%; }
.campaign-search-status { color: #53675f; font-size: 0.78rem; min-height: 1.1rem; }
.campaign-recipient.is-search-hidden, .campaign-recipient-group.is-search-hidden { display: none; }
.campaign-recipient-empty { background: #f4f9f7; color: #36574e; margin: 1rem 0 0; padding: 0.85rem 1rem; }
.campaign-recipient-group { border: 1px solid #d5e2dd; }
.campaign-recipient-group summary { cursor: pointer; padding: 0.85rem 1rem; }
.campaign-recipient-group summary span { display: flex; justify-content: space-between; }
.campaign-recipient-group summary label { font-size: 0.78rem; font-weight: 800; }
.campaign-recipient-list { border-top: 1px solid #d5e2dd; max-height: 480px; overflow: auto; }
.campaign-recipient { align-items: center; display: grid; gap: 0.8rem; grid-template-columns: auto minmax(0, 1fr) auto; padding: 0.7rem 0.9rem; }
.campaign-recipient + .campaign-recipient { border-top: 1px solid #e3ebe8; }
.campaign-recipient:hover { background: #f4f9f7; }
.campaign-recipient.is-ineligible { background: #f7f7f6; color: #65716d; }
.campaign-recipient-person { display: grid; gap: 0.1rem; }
.campaign-recipient-person small { color: #53675f; }
.campaign-recipient-flags { align-items: center; display: flex; gap: 0.45rem; }
.campaign-recipient-status-marker { background: var(--gaa-green); border-radius: 50%; height: 0.55rem; width: 0.55rem; }
.bill-chip--red { background: #f8dddd; color: #852525; }
.campaign-resend { font-size: 0.78rem; font-weight: 800; white-space: nowrap; }

.campaign-message-layout { align-items: start; display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 310px; }
.campaign-message-layout--preview { grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); }
.campaign-message-fields { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.campaign-message-fields .field-block:has(textarea) { grid-column: span 2; }
.campaign-event-facts { background: #edf6f2; padding: 1rem; position: sticky; top: 1rem; }
.campaign-event-facts h3 { color: var(--gaa-green); margin-top: 0; }
.campaign-event-facts dl, .campaign-review-grid dl { display: grid; gap: 0.2rem 0.75rem; grid-template-columns: 110px 1fr; margin: 0; }
.campaign-event-facts dt, .campaign-review-grid dt { color: #45635b; font-size: 0.78rem; font-weight: 800; }
.campaign-event-facts dd, .campaign-review-grid dd { margin: 0 0 0.7rem; }
.campaign-rich-toolbar { align-items: center; background: #edf3f0; border: 1px solid #bfd2cb; border-bottom: 0; display: flex; gap: 0.2rem; padding: 0.35rem; }
.campaign-rich-toolbar button { background: #fff; border: 1px solid #b7ccc4; color: #244b40; cursor: pointer; font: inherit; min-height: 2rem; min-width: 2.2rem; padding: 0.25rem 0.55rem; }
.campaign-rich-toolbar button:hover, .campaign-rich-toolbar button:focus { background: #dcebe5; outline: 2px solid rgba(0,135,110,.25); outline-offset: 1px; }
.campaign-rich-toolbar + textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.campaign-message-preview { min-width: 0; position: sticky; top: 1rem; }
.campaign-preview-heading { align-items: start; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 0.55rem; }
.campaign-preview-heading div { display: grid; gap: 0.15rem; min-width: 0; }
.campaign-preview-heading h3 { color: var(--gaa-green); margin: 0; }
.campaign-preview-heading span { color: #52675f; font-size: 0.78rem; overflow-wrap: anywhere; }
.campaign-preview-heading > span { background: #e2efe9; color: #174f40; font-weight: 800; padding: 0.3rem 0.5rem; white-space: nowrap; }
.campaign-email-preview { background: #f1f6f4; border: 1px solid #cdded8; max-height: 650px; overflow: auto; padding: 1rem; }
.campaign-email-preview__brand { border-top: 5px solid var(--gaa-green); padding: 1.1rem 1.25rem 0.55rem; }
.campaign-email-preview__brand img { display: block; height: auto; max-width: 230px; width: 75%; }
.campaign-email-preview__body { background: #fff; color: #243236; font-family: Arial, Helvetica, sans-serif; font-size: 0.82rem; line-height: 1.55; overflow-wrap: anywhere; padding: 0.8rem 1.25rem 1.5rem; }
.campaign-email-preview__body h2 { color: #075b4b; font-size: 1.45rem; line-height: 1.2; margin: 0 0 0.3rem; }
.campaign-email-preview__body p, .campaign-email-preview__body ul { margin: 0.8rem 0; }
.campaign-email-preview__spotlight { color: #53635e; font-size: 0.95rem; font-weight: 800; }
.campaign-email-preview__facts { background: #edf6f2; margin: 1rem 0; padding: 0.9rem; }
.campaign-email-preview__button { background: var(--gaa-green); color: #fff; display: inline-block; font-weight: 800; margin: 0.7rem 0; padding: 0.6rem 0.9rem; }
.campaign-email-preview__fallback { color: #60716c; font-size: 0.72rem; }
.campaign-email-preview__legal { border-top: 1px solid #d9e5e0; color: #60716c; font-size: 0.68rem; line-height: 1.55; margin-top: 1.4rem; padding-top: 0.8rem; }
.campaign-preview-help { color: #52675f; font-size: 0.78rem; margin: 0.55rem 0 0; }
.campaign-test-form { align-items: end; display: grid; gap: 1rem; grid-template-columns: 220px minmax(260px, 1fr) auto; max-width: 850px; }
.campaign-review-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.campaign-review-grid dl { background: #f1f6f4; padding: 1rem; }
.campaign-delivery-progress { display: grid; gap: 1px; grid-template-columns: repeat(6, 1fr); margin-top: 1.2rem; }
.campaign-delivery-progress span { background: #e8f1ed; display: grid; font-size: 0.78rem; padding: 0.7rem; text-align: center; }
.campaign-delivery-progress strong { color: var(--gaa-green); font-size: 1.15rem; }
.campaign-confirm { display: block; font-size: 0.82rem; margin-bottom: 0.55rem; }
.campaign-inline-form { text-align: right; }
.campaign-delivery-table { margin-top: 2rem; }
.campaign-delivery-table td small { color: #8e2f2f; display: block; max-width: 36ch; }
.campaign-next-recipient { background: #f1f6f4; color: #36574e; margin: 1rem 0 0; padding: 0.85rem 1rem; }
.campaign-next-recipient span { color: #60716c; margin-inline-start: 0.35rem; }
.danger-button { background: #a33636; border: 1px solid #a33636; color: #fff; cursor: pointer; font: inherit; font-weight: 800; min-height: 2.55rem; padding: 0.55rem 0.9rem; }
.danger-button:hover, .danger-button:focus { background: #812525; outline: 2px solid rgba(163,54,54,.28); outline-offset: 2px; }

.campaign-invitee-dialog { border: 0; color: #243236; max-height: min(760px, calc(100vh - 3rem)); max-width: 880px; overflow: auto; padding: 1.5rem; width: calc(100% - 2rem); }
.campaign-invitee-dialog::backdrop { background: rgba(15, 35, 29, 0.55); }
.campaign-invitee-dialog-close { position: absolute; right: 1rem; top: 1rem; }
.campaign-invitee-dialog-heading { padding-right: 3rem; }
.campaign-invitee-dialog-heading h2 { color: var(--gaa-green); margin: 0 0 0.35rem; }
.campaign-invitee-dialog-heading p { margin: 0; }
.campaign-invitee-tabs { border-bottom: 1px solid #ccddd7; display: flex; gap: 1.5rem; margin: 1.35rem 0; }
.campaign-invitee-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; color: #3d5750; cursor: pointer; font: inherit; font-weight: 800; padding: 0.7rem 0.15rem; }
.campaign-invitee-tabs button[aria-selected="true"] { border-bottom-color: var(--gaa-green); color: var(--gaa-green); }
.campaign-invitee-field-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.campaign-import-instructions { align-items: center; background: #edf6f2; display: flex; gap: 1rem; justify-content: space-between; padding: 0.85rem 1rem; }
.campaign-import-instructions p { margin: 0; }
.campaign-import-summary { display: grid; gap: 0.25rem; margin-bottom: 0.8rem; }
.campaign-import-preview { max-height: 420px; overflow: auto; }
.campaign-import-preview td { vertical-align: top; }

@media (max-width: 860px) {
    .coalition-invitation-action { grid-template-columns: 1fr; }
    .coalition-invitation-action .primary-button { justify-self: start; }
    .campaign-workspace { padding: 1rem; }
    .campaign-page-header, .campaign-panel-heading, .campaign-recipient-tools { align-items: stretch; flex-direction: column; }
    .campaign-recipient-tool-actions, .campaign-import-instructions { align-items: stretch; flex-direction: column; max-width: none; }
    .campaign-invitee-field-grid { grid-template-columns: 1fr; }
    .campaign-steps { grid-template-columns: 1fr; }
    .campaign-step + .campaign-step { border-left: 0; border-top: 1px solid #fff; }
    .campaign-field-grid, .campaign-message-layout, .campaign-review-grid { grid-template-columns: 1fr; }
    .campaign-field-grid .field-block--wide, .campaign-message-fields .field-block:has(textarea) { grid-column: auto; }
    .campaign-message-fields { grid-template-columns: 1fr; }
    .campaign-event-facts, .campaign-message-preview { position: static; }
    .campaign-test-form { grid-template-columns: 1fr; }
    .campaign-delivery-progress { grid-template-columns: repeat(3, 1fr); }
    .campaign-recipient { grid-template-columns: auto 1fr; }
    .campaign-recipient-flags { grid-column: 2; flex-wrap: wrap; }
    .campaign-index-row { align-items: flex-start; flex-direction: column; }
    .campaign-index-link { align-items: flex-start; width: 100%; }
    .campaign-delete-form { border-inline-start: 0; border-top: 1px solid #e3ebe8; justify-content: flex-end; width: 100%; }
}


.members-row-actions-heading,
.members-row-actions-cell {
    min-width: 96px !important;
    text-align: right;
    width: 96px !important;
}

.members-row-actions-cell {
    overflow: visible;
}

.members-archive-form {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.members-archive-button {
    background: transparent;
    border: 0;
    color: var(--text-danger);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.25rem 0;
    text-transform: uppercase;
    transition: opacity 0.12s ease-in-out;
}

.members-archive-button:hover,
.members-archive-button:focus {
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.workspace-header {
    align-items: flex-end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.workspace-header h1 {
    margin: 0.15rem 0 0.35rem;
}

.workspace-header p {
    margin: 0;
}

.workspace-eyebrow {
    color: #00876e;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.workspace-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.workspace-metric {
    background: #ffffff;
    border: 1px solid #dbe7e2;
    border-radius: 10px;
    color: #263b35;
    display: flex;
    flex-direction: column;
    min-height: 130px;
    padding: 1rem 1.1rem;
    text-decoration: none;
}

a.workspace-metric:hover,
a.workspace-metric:focus {
    border-color: #00876e;
    box-shadow: 0 5px 16px rgba(16, 48, 40, 0.08);
}

.workspace-metric > span {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.workspace-metric strong {
    color: #174b3e;
    font-size: 2rem;
    line-height: 1.1;
    margin: 0.55rem 0 auto;
}

.workspace-metric small {
    color: var(--text-muted);
}

.workspace-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    margin-bottom: 1rem;
}

.workspace-panel {
    margin: 0;
    padding: 0;
}

.workspace-panel__header {
    align-items: center;
    border-bottom: 1px solid #e4ece9;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.1rem;
}

.workspace-panel__header h2,
.workspace-panel__header p {
    margin: 0;
}

.workspace-panel__header h2 {
    font-size: 1.05rem;
}

.workspace-panel__header p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.workspace-panel__header > a {
    color: #00705c;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 800;
}

.workspace-list__item {
    display: grid;
    gap: 0.2rem;
    grid-template-columns: 105px 1fr;
    padding: 0.8rem 1.1rem;
    text-decoration: none;
}

.workspace-list__item + .workspace-list__item,
.workspace-event + .workspace-event {
    border-top: 1px solid #edf2f0;
}

.workspace-list__item:hover,
.workspace-list__item:focus,
.workspace-event:hover,
.workspace-event:focus {
    background: #f5faf8;
}

.workspace-list__item strong {
    color: #263b35;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-list__item small {
    color: var(--text-danger);
    grid-column: 2;
}

.workspace-kind {
    color: #00705c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.workspace-event {
    align-items: center;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 48px 1fr;
    padding: 0.75rem 1.1rem;
    text-decoration: none;
}

.workspace-event time {
    align-items: center;
    background: #edf7f3;
    border-radius: 7px;
    color: #174b3e;
    display: flex;
    flex-direction: column;
    padding: 0.35rem;
}

.workspace-event time strong {
    font-size: 1.15rem;
    line-height: 1;
}

.workspace-event time span {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.workspace-event > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.workspace-event > span strong {
    color: #263b35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-event small,
.workspace-empty,
.workspace-recent-table td:last-child {
    color: var(--text-muted);
}

.workspace-empty {
    margin: 0;
    padding: 1.25rem 1.1rem;
}

.workspace-panel--recent {
    margin-bottom: 1rem;
}

.workspace-recent-table td:nth-child(1) {
    width: 150px;
}

.workspace-recent-table td:nth-child(2) a {
    color: #263b35;
    font-weight: 700;
    text-decoration: none;
}

.workspace-recent-table td:last-child {
    text-align: right;
    white-space: nowrap;
    width: 130px;
}

@media (max-width: 980px) {
    .workspace-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 700px) {
    .workspace-header {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .workspace-actions {
        justify-content: flex-start;
    }

    .workspace-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .workspace-list__item {
        grid-template-columns: 1fr;
    }

    .workspace-list__item small {
        grid-column: 1;
    }
}

/* ---------------------------------------------------------------------------
   Input-aware controls

   Reveal-on-hover is an affordance for fine pointers only. Everywhere else the
   control stays visible, so no action is ever reachable by hover alone. Keyed
   on input capability rather than viewport width, which also covers touch
   laptops and large tablets.
   --------------------------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
    .row-editor__trigger,
    .row-editor .delete-text,
    .members-archive-button,
    .copy-link-button,
    .signup-row-edit {
        opacity: 0;
        pointer-events: none;
    }

    .row-editor:hover .row-editor__trigger,
    .row-editor:focus-within .row-editor__trigger,
    .row-editor:hover .delete-text,
    .row-editor:focus-within .delete-text,
    .members-table tbody tr:hover .members-archive-button,
    .members-table tbody tr:focus-within .members-archive-button,
    .campaign-index-row:hover .members-archive-button,
    .campaign-index-row:focus-within .members-archive-button,
    .copy-link-card:hover .copy-link-button,
    .copy-link-card:focus-within .copy-link-button,
    .signup-sheet-table tbody tr:hover .signup-row-edit,
    .signup-sheet-table tbody tr:focus-within .signup-row-edit {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Coarse pointers need a 44px target. Text buttons grow to meet it; icon
   buttons in tight rows keep their box and extend the hit area instead. */
@media (pointer: coarse) {
    .row-editor__trigger,
    .row-editor .delete-text,
    .members-archive-button,
    .signup-row-edit,
    .filter-trigger {
        align-items: center;
        display: inline-flex;
        min-height: 44px;
    }

    .toast__close,
    .tag-multiselect__remove,
    .copy-link-button {
        position: relative;
    }

    .toast__close::after,
    .tag-multiselect__remove::after,
    .copy-link-button::after {
        content: "";
        height: 44px;
        left: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 44px;
    }
}

/* Domain dashboards share the Communications dashboard vocabulary. */
.domain-dashboard .analytics-top-strip { border-left-width: 1px; }
.domain-dashboard { grid-template-columns: minmax(0, 1fr); min-width: 0; width: 100%; }
.domain-dashboard .analytics-kpi-section,
.domain-dashboard .analytics-breakdown-section,
.domain-dashboard .analytics-diagnostic-section { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.domain-dashboard__subtitle { color: var(--text-muted); margin: 0.35rem 0 0; }
.domain-filter-grid { align-items: end; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.domain-filter-grid .analytics-filter-field { flex: 0 1 11rem; width: 11rem; }
.domain-filter-grid--legislation .analytics-filter-field { flex-basis: 10.75rem; }
.domain-filter-submit { align-self: end; grid-column: auto; min-width: 6rem; }
.domain-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.domain-analysis-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 1fr); }
.domain-chart-panel, .domain-diagnostic-panel, .domain-table-panel { margin-top: 0; position: relative; }
.domain-table-panel { overflow: hidden; }
.domain-chart-panel { min-width: 0; padding-bottom: 3.2rem; }
.domain-grouped-chart { display: block; min-width: 0; width: 100%; }
.domain-grouped-chart--wide { min-width: 980px; }
.domain-chart-bar { rx: 4px; transition: opacity 0.15s ease; }
.domain-chart-bar:hover, .domain-chart-bar:focus { opacity: 0.72; outline: none; }
.domain-chart-bar--green { fill: var(--gaa-green); }
.domain-chart-bar--apple { fill: var(--gaa-apple); }
.domain-chart-bar--amber { fill: var(--amber); }
.domain-chart-value { fill: #173f35; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; text-anchor: middle; }
.domain-legend--amber::before { background: var(--amber) !important; }
.domain-coalition-list { display: grid; gap: 1.1rem; }
.domain-coalition-row { display: grid; gap: 0.45rem; }
.domain-coalition-row__heading { align-items: baseline; display: flex; justify-content: space-between; }
.domain-coalition-row__heading strong { color: #214b40; }
.domain-coalition-row__heading span, .domain-panel-note, .domain-empty { color: var(--text-muted); font-size: 0.82rem; }
.domain-paired-bar { align-items: center; display: grid; gap: 0.55rem; grid-template-columns: 4.7rem minmax(5rem, 1fr) 2.25rem; }
.domain-paired-bar > span { color: #4f6962; font-size: 0.8rem; font-weight: 700; }
.domain-paired-bar > svg { display: block; height: 0.7rem; overflow: hidden; width: 100%; }
.domain-paired-bar__track { fill: #edf5f2; }
.domain-paired-bar__fill--green { background: var(--gaa-green); fill: var(--gaa-green); }
.domain-paired-bar__fill--apple { background: var(--gaa-apple); fill: var(--gaa-apple); }
.domain-diagnostic-table { display: grid; }
.domain-diagnostic-head, .domain-diagnostic-row { align-items: center; display: grid; gap: 0.8rem; grid-template-columns: minmax(15rem, 1.5fr) 6rem 7rem 7rem 7.5rem; }
.domain-diagnostic-head { color: var(--text-muted); font-size: 0.75rem; font-weight: 800; padding: 0 0.7rem 0.55rem; }
.domain-diagnostic-row { border-top: 1px solid var(--border-soft); min-height: 3.2rem; padding: 0.65rem 0.7rem; }
.domain-diagnostic-row > span:first-child { color: #2d5047; font-weight: 700; }
.domain-diagnostic-row > strong { color: #173f35; font-size: 1.1rem; }
.domain-outcome-trend { min-width: 0; }
.domain-outcome-trend svg { display: block; height: 2rem; width: 7.5rem; }
.domain-outcome-trend polyline { fill: none; stroke: var(--gaa-green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.domain-outcome-trend small { color: var(--text-muted); font-size: 0.72rem; }
.domain-panel-note { margin: 0.8rem 0 0; }
.domain-health-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; }
.domain-health-grid article { background: var(--surface-sunken); border-radius: 8px; display: grid; gap: 0.3rem; padding: 0.8rem; }
.domain-health-grid span { color: #4f6962; font-size: 0.82rem; font-weight: 700; }
.domain-health-grid strong { color: #173f35; font-size: 1.25rem; }
.domain-health-grid small { color: var(--text-muted); line-height: 1.35; }
.domain-table { table-layout: auto; }
.domain-table th, .domain-table td, .domain-table th:nth-child(1), .domain-table td:nth-child(1), .domain-table th:nth-child(2), .domain-table td:nth-child(2) { min-width: 0; width: auto; }
.domain-table th { white-space: nowrap; }
.domain-table a { color: #0b6f5d; font-weight: 800; }
.domain-table td:first-child small { color: var(--text-muted); display: block; font-size: 0.78rem; line-height: 1.3; margin-top: 0.2rem; max-width: 34rem; }
.domain-table--legislation th:nth-child(1), .domain-table--legislation td:nth-child(1) { min-width: 16rem; }
.domain-status { border-radius: 999px; display: inline-flex; font-size: 0.75rem; font-weight: 800; line-height: 1.2; padding: 0.24rem 0.5rem; white-space: nowrap; }
.domain-status--success { background: var(--status-success-bg); color: var(--status-success-fg); }
.domain-status--warning { background: var(--status-warning-bg); color: var(--status-warning-fg); }
.domain-status--danger { background: #fdecea; color: var(--text-danger); }
.domain-status--neutral { background: var(--status-neutral-bg); color: var(--status-neutral-fg); }
.domain-quality-list { background: #ffffff; border: 1px solid var(--border); border-radius: 8px; }
.domain-quality-list > div { align-items: center; border-top: 1px solid var(--border-soft); display: flex; gap: 1rem; justify-content: space-between; min-height: 3rem; padding: 0.65rem 0.85rem; }
.domain-quality-list > div:first-child { border-top: 0; }
.domain-quality-list span { color: #2d5047; font-weight: 700; }
.domain-state-legend { display: flex; flex-wrap: wrap; gap: 0.45rem 0.85rem; margin-bottom: 1rem; }
.domain-state-legend span { align-items: center; color: #4f6962; display: inline-flex; font-size: 0.75rem; font-weight: 700; gap: 0.3rem; }
.domain-state-legend i { border-radius: 2px; height: 0.65rem; width: 0.65rem; }
.domain-stacked-list { display: grid; gap: 0.8rem; }
.domain-stacked-row { align-items: center; display: grid; gap: 0.7rem; grid-template-columns: 5.5rem minmax(8rem, 1fr) 2rem; }
.domain-stacked-row > span { color: #2d5047; font-weight: 800; }
.domain-stacked-track { border-radius: 5px; display: block; height: 1.2rem; overflow: hidden; width: 100%; }
.domain-stacked-background { fill: #edf5f2; }
.domain-state--moving_forward, .domain-state-legend__moving_forward i { background: #00876e; fill: #00876e; }
.domain-state--potentially_stalled, .domain-state-legend__potentially_stalled i { background: #d99100; fill: #d99100; }
.domain-state--stopped, .domain-state-legend__stopped i { background: #7c8582; fill: #7c8582; }
.domain-state--passed, .domain-state-legend__passed i { background: #9fcc42; fill: #9fcc42; }
.domain-state--unclear, .domain-state-legend__unclear i { background: #c5cecb; fill: #c5cecb; }

@media (max-width: 1500px) {
    .domain-analysis-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
    .domain-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .domain-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .domain-diagnostic-head { display: none; }
    .domain-diagnostic-row { grid-template-columns: 1fr auto; }
    .domain-diagnostic-row > span:nth-child(3) { grid-column: 1; }
    .domain-outcome-trend { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .domain-kpi-grid, .domain-health-grid { grid-template-columns: 1fr; }
    .domain-filter-grid .analytics-filter-field, .domain-filter-grid--legislation .analytics-filter-field, .domain-filter-submit { flex-basis: 100%; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .domain-chart-bar { transition: none; }
}



.reports-header { margin-bottom: 1.25rem; }
.eyebrow { margin: 0 0 .25rem; color: #00876e; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.reports-layout { display: grid; grid-template-columns: minmax(245px, 290px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.report-controls { position: sticky; top: 1rem; padding: 1.25rem; }
.report-step { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.report-step__number { display: grid; place-items: center; flex: 0 0 1.7rem; height: 1.7rem; border-radius: 50%; background: #00876e; color: #fff; font-weight: 800; }
.report-step div { display: grid; gap: .2rem; }
.report-step span:not(.report-step__number), .report-ai-note { color: #647277; font-size: .82rem; line-height: 1.45; }
.stack-form { display: grid; gap: .8rem; }
.stack-form .field-block { display: grid; gap: .35rem; }
.stack-form input { width: 100%; box-sizing: border-box; }
.report-generate { width: 100%; justify-content: center; }
.report-ai-note { padding-top: .9rem; border-top: 1px solid #d8e2df; }
.report-recents { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid #d8e2df; }
.report-recents h2 { margin: 0 0 .55rem; font-size: .85rem; }
.report-recents__list { max-height: 19rem; overflow-y: auto; overscroll-behavior: contain; padding-right: .35rem; scrollbar-gutter: stable; }
.report-recents__list:focus-visible { border-radius: 4px; outline: 2px solid #00876e; outline-offset: 3px; }
.report-recent-link { display: grid; gap: .15rem; padding: .55rem 0; color: #243236; text-decoration: none; border-bottom: 1px solid #edf2f0; }
.report-recent-link:hover { color: #00876e; }
.report-recent-link span { color: #647277; font-size: .75rem; }
.report-preview { min-width: 0; }
.report-preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; color: #647277; font-size: .8rem; }
.report-preview-toolbar > div { display: flex; align-items: center; gap: .55rem; }
.status-pill { display: inline-flex; padding: .25rem .55rem; border-radius: 999px; background: #e9eeec; color: #465359; font-weight: 700; }
.status-pill--ready { background: #e2f3ed; color: #006f59; }
.status-pill--failed { background: #fff1dd; color: #895600; }
.report-sheet { padding: clamp(1.1rem, 3vw, 2rem); }
.report-sheet__header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-bottom: 1rem; border-bottom: 3px solid #00876e; }
.report-sheet__header h2 { margin: 0; font-size: 1.7rem; }
.report-sheet__header > p { margin: 0; color: #647277; }
.report-editor section { margin-top: 1.5rem; }
.report-editor section > label, .report-editor section > h3, .report-section-heading > label { display: block; margin: 0 0 .55rem; color: #00876e; font-size: 1.05rem; font-weight: 800; }
.report-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.report-section-heading > label { margin: 0; }
.report-section-heading .secondary-button { min-height: 2.4rem; padding: .45rem .8rem; line-height: 1.4; }
.report-rewrite-dialog { width: min(620px, calc(100vw - 2rem)); padding: 1.5rem; border: 0; border-radius: 12px; box-shadow: 0 24px 70px rgba(20, 45, 39, .28); color: #243236; }
.report-rewrite-dialog::backdrop { background: rgba(22, 44, 39, .58); }
.report-rewrite-dialog .modal-close { position: absolute; top: 1rem; right: 1rem; }
.report-rewrite-dialog form { display: grid; gap: .75rem; padding-top: 1.2rem; }
.report-rewrite-dialog h2, .report-rewrite-dialog p { margin: 0; }
.report-rewrite-dialog textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.report-rewrite-dialog__actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: .4rem; }
.report-rewrite-dialog__actions button { min-width: 150px; min-height: 44px; padding: 10px 16px; line-height: 22px; box-sizing: border-box; }
.report-source-back { align-items: center; display: inline-flex; margin: 0 0 1rem; text-decoration: none; }
.report-editor textarea { width: 100%; min-height: 8rem; box-sizing: border-box; resize: vertical; line-height: 1.55; }
.report-rich-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; background: #edf3f0; border: 1px solid #bfd2cb; border-bottom: 0; border-radius: 7px 7px 0 0; }
.report-rich-toolbar button { min-height: 2rem; padding: .25rem .55rem; border: 1px solid #b7ccc4; background: #fff; color: #244b40; cursor: pointer; font: inherit; font-size: .78rem; }
.report-rich-toolbar button:hover, .report-rich-toolbar button:focus { background: #dcebe5; outline: 2px solid rgba(0,135,110,.25); outline-offset: 1px; }
.report-rich-surface { min-height: 11rem; padding: .8rem .9rem; overflow-wrap: anywhere; background: #fff; border: 1px solid #bfd2cb; border-radius: 0 0 7px 7px; color: #243236; line-height: 1.55; }
.report-rich-surface:focus { border-color: #00876e; box-shadow: 0 0 0 3px rgba(0,135,110,.13); outline: 0; }
.report-rich-surface h3 { margin: .9rem 0 .35rem; color: #243236; font-size: 1.08rem; }
.report-rich-surface h4 { margin: .8rem 0 .3rem; color: #00876e; font-size: 1rem; }
.report-rich-surface h5 { margin: .7rem 0 .25rem; font-size: .92rem; }
.report-rich-surface p { margin: 0 0 .65rem; }
.report-rich-surface ul, .report-rich-surface ol { margin: .3rem 0 .75rem; padding-left: 1.45rem; }
.report-rich-surface a { color: #007661; }
.report-rich-source { display: block; }
.report-rich-editor--ready .report-rich-source { display: none; }
.report-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #b9d8cf; background: #eaf5f1; }
.report-metrics > div { display: grid; gap: .15rem; place-items: center; min-height: 5.4rem; padding: .6rem; text-align: center; border: 1px solid #fff; }
.report-metrics strong { color: #00876e; font-size: 1.65rem; }
.report-metrics span { font-size: .77rem; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.report-events-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.report-events-table th { background: #00876e; color: #fff; text-align: left; }
.report-events-table th, .report-events-table td { padding: .65rem; border: 1px solid #d8e2df; vertical-align: top; }
.report-events-table tbody tr:nth-child(even) { background: #f5f8f7; }
.report-events-table td:last-child a { display: block; }
.report-editor__actions { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.5rem -1rem -1rem; padding: .85rem 1rem; background: rgba(255,255,255,.96); border-top: 1px solid #d8e2df; box-shadow: 0 -8px 16px rgba(36,50,54,.05); }
.report-editor__actions span { color: #647277; font-size: .8rem; }
.report-empty-preview { display: grid; justify-items: center; min-height: 26rem; padding: 3rem; place-content: center; text-align: center; color: #647277; }
.report-empty-preview h2 { color: #243236; }
.report-empty-preview__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #eaf5f1; color: #00876e; font-size: 1.7rem; }
.report-readiness-list { display: grid; gap: .65rem; margin: 1rem 0; padding: 0; width: min(100%, 760px); list-style: none; text-align: left; }
.report-readiness-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem; border: 1px solid #e1c889; border-radius: 8px; background: #fffaf0; }
.report-readiness-list li > div { display: grid; gap: .2rem; }
.report-readiness-list li span { color: #6c5732; font-size: .85rem; }
.report-readiness-list .secondary-button { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.callout--warning { margin-bottom: .75rem; padding: .8rem 1rem; border-left: 4px solid #c58218; background: #fff8eb; }
@media (max-width: 900px) { .reports-layout { grid-template-columns: 1fr; } .report-controls { position: static; } .report-metrics { grid-template-columns: repeat(2, 1fr); } .report-sheet__header { align-items: flex-start; flex-direction: column; } .report-readiness-list li { align-items: stretch; flex-direction: column; } .report-readiness-list .secondary-button { justify-content: center; } }
.modal--minutes { position: fixed; inset: 0; z-index: 1500; }
.modal--minutes [hidden] { display: none !important; }
.modal--minutes .minutes-dialog {
    width: min(1480px, calc(100vw - 40px)); max-width: none;
    height: calc(100dvh - 40px); max-height: none; margin: 20px auto;
    inset: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border-radius: 14px;
}
.minutes-dialog > .modal-close { position: absolute; top: 18px; right: 22px; z-index: 2; }
.minutes-header { padding: 22px 105px 12px 28px; flex: 0 0 auto; }
.minutes-eyebrow { color: #00876e; font-size: .7rem; font-weight: 750; letter-spacing: .12em; }
.minutes-header h2 { margin: 5px 0; font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.25; }
.minutes-header p { margin: 0; color: #647277; font-size: .85rem; }
.minutes-status { padding: 11px 28px; color: #28564b; background: #edf6f2; font-size: .88rem; }
.minutes-error { padding: 10px 28px; color: #8b2d22; background: #fff0ed; }
.minutes-workspace { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }
.minutes-editor-scroll { flex: 1; min-height: 0; overflow-y: auto; background: #fff; }
.minutes-prose.minutes-rich-editor { min-height: 100%; max-width: 1050px; padding: 24px 40px 60px; font: 16px/1.75 Georgia, serif; cursor: text; }
.minutes-rich-editor:focus { outline: 2px solid #00876e; outline-offset: -3px; }
.minutes-rich-editor:empty::before { content: "Write the minutes here…"; color: #647277; }
.minutes-rich-editor[aria-readonly="true"] { opacity: .75; }
.minutes-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 22px; border-bottom: 1px solid #dce6e1; }
.minutes-format, .minutes-layout-switch { display: flex; flex-wrap: wrap; gap: 4px; }
.minutes-tools button { background: #fff; color: #243236; border: 1px solid #cddbd5; border-radius: 5px; min-height: 34px; padding: 5px 10px; font: inherit; font-size: .8rem; cursor: pointer; }
.minutes-tools button:hover { background: #edf6f2; }
.minutes-tools button[aria-pressed="true"] { color: #fff; background: #006b57; border-color: #006b57; }
.minutes-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); flex: 1; min-height: 0; }
.minutes-source-pane { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #dce6e1; background: #f8faf9; }
.minutes-source-pane label, .minutes-pane-label { padding: 12px 24px 8px; margin: 0; color: #647277; font-size: .7rem; font-weight: 700; letter-spacing: .05em; }
.minutes-source-pane textarea { flex: 1; min-height: 0; width: 100%; resize: none; border: 0; border-radius: 0; padding: 10px 24px 24px; background: transparent; font: 14px/1.8 Consolas, monospace; color: #243236; }
.minutes-source-pane textarea:focus { outline: 2px solid #00876e; outline-offset: -3px; box-shadow: none; }
.minutes-preview-pane { overflow-y: auto; min-height: 0; background: #fff; }
.minutes-prose { padding: 5px 32px 36px; max-width: 820px; margin: auto; color: #243236; font: 15px/1.7 Georgia, serif; overflow-wrap: anywhere; }
.minutes-prose h2, .minutes-prose h3, .minutes-prose h4 { font-family: inherit; line-height: 1.35; color: #006b57; margin: 1.5em 0 .5em; font-size: 1.2em; }
.minutes-prose h4 { font-size: 1.05em; }
.minutes-prose p { margin: 0 0 1em; }
.minutes-prose li { margin: .4em 0; }
.minutes-prose a { color: #006b57; text-decoration: underline; }
.minutes-panes[data-layout="source"], .minutes-panes[data-layout="preview"] { grid-template-columns: minmax(0, 1fr); }
.minutes-panes[data-layout="source"] .minutes-preview-pane, .minutes-panes[data-layout="preview"] .minutes-source-pane { display: none; }
.minutes-help { padding: 8px 24px; font-size: .74rem; color: #647277; border-top: 1px solid #dce6e1; }
.minutes-help span { float: right; }
.minutes-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 24px; border-top: 1px solid #dce6e1; margin-top: auto; }
.minutes-downloads, .minutes-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.minutes-actions { margin-left: auto; }
.minutes-downloads > span { font-size: .78rem; color: #647277; margin-right: 4px; }
.minutes-footer .primary-button, .minutes-footer .secondary-button, .minutes-event-card .secondary-button {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-width: 86px; height: 40px; padding: 9px 14px; line-height: 20px; margin: 0; font-size: .85rem; white-space: nowrap;
}
.minutes-loading { flex: 1; text-align: center; padding: clamp(35px, 9vh, 110px) 24px; overflow-y: auto; }
.minutes-loading p { max-width: 540px; margin: 14px auto; }
.minutes-spinner { display: inline-block; width: 38px; height: 38px; border: 3px solid #dce6e1; border-top-color: #00876e; border-radius: 50%; animation: minutes-spin 1s linear infinite; }
.minutes-event-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.minutes-event-card p { margin-bottom: 0; color: #647277; font-size: .88rem; }
@keyframes minutes-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .minutes-spinner { animation: none; } }
@media (max-width: 800px) {
    .modal--minutes .minutes-dialog { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; }
    .minutes-header { padding: 18px 95px 12px 18px; }
    .minutes-tools { padding: 8px 12px; }
    .minutes-panes[data-layout="both"] { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
    .minutes-panes[data-layout="both"] .minutes-source-pane { border-bottom: 1px solid #dce6e1; }
    .minutes-footer { padding: 10px 12px; }
    .minutes-help { font-size: .68rem; padding: 6px 12px; }
    .minutes-help span { float: none; display: block; }
    .minutes-prose { padding: 4px 20px 24px; }
}
.members-list-tabs { display: flex; flex-wrap: wrap; gap: 1.5rem; border-bottom: 1px solid var(--border); margin: 0 0 1.25rem; }
.members-list-tabs a { display: inline-flex; align-items: center; padding: .75rem .25rem; border-bottom: 3px solid transparent; color: var(--gaa-gray); text-decoration: none; font-weight: 700; }
.members-list-tabs a[aria-current="page"] { color: var(--gaa-green); border-bottom-color: var(--gaa-green); }
.members-list-tabs a:hover { color: var(--gaa-green); }
.members-list-tabs a:focus-visible { outline: 2px solid var(--gaa-green); outline-offset: 3px; }

.evaluation-review-controls { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: 0; }
.evaluation-review-filter { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; }
.evaluation-review-filter .field-block { display: grid; gap: .35rem; margin: 0; width: min(17rem, 100%); }
.evaluation-review-filter button { min-height: 2.75rem; margin: 0; }
.evaluation-review-controls > form:last-child button { min-height: 2.75rem; margin: 0; white-space: nowrap; }
.evaluation-ai-progress { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 360px) 3rem; align-items: center; gap: 1rem; margin: 1rem 0; padding: 1rem; border: 1px solid #b9d8cf; border-radius: 10px; background: #f1f8f5; }
.evaluation-ai-progress > div { display: grid; gap: .2rem; }
.evaluation-ai-progress > div span, .evaluation-ai-progress > span { color: var(--text-muted); font-size: .84rem; }
.evaluation-ai-progress progress { width: 100%; accent-color: var(--gaa-green); }
.evaluation-ai-progress--error { display: block; border-color: #e1c889; background: #fff8eb; }
.evaluation-ai-progress--error p { margin: .3rem 0; }
.evaluation-ai-progress--error ul { margin: .6rem 0 0; }
.evaluation-review-ai-available { color: #7b5b00; font-size: .78rem; font-weight: 800; }
.evaluation-review-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 .85rem; }
.evaluation-review-heading h2, .evaluation-review-heading p { margin: 0; }
.evaluation-review-heading > div p, .evaluation-review-heading > p { color: var(--text-muted); }
.evaluation-review-list { display: grid; gap: .75rem; }
.evaluation-review-question { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.evaluation-review-question > summary { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; cursor: pointer; list-style: none; }
.evaluation-review-question > summary::-webkit-details-marker { display: none; }
.evaluation-review-question[open] > summary { background: #f4f9f7; }
.evaluation-review-question__heading { display: grid; flex: 1; gap: .18rem; min-width: 0; }
.evaluation-review-question__heading > strong { color: #243236; line-height: 1.35; }
.evaluation-review-question__heading > small { color: var(--gaa-green); font-weight: 800; }
.evaluation-review-latest-summary { color: var(--text-muted); font-size: .84rem; line-height: 1.4; }
.evaluation-review-chevron { color: var(--gaa-green); font-size: 1.65rem; line-height: 1; transform: rotate(90deg); transition: transform .15s ease; }
.evaluation-review-question[open] .evaluation-review-chevron { transform: rotate(-90deg); }
.evaluation-review-question__body { display: grid; gap: 1rem; padding: 1rem; border-top: 1px solid var(--border); }
.evaluation-review-guidance { padding: .8rem; border-left: 4px solid var(--gaa-apple); background: #f7faee; }
.evaluation-review-guidance p { margin: .25rem 0 0; color: #526b63; }
.evaluation-review-suggestion { display: grid; gap: .6rem; padding: .9rem; border: 1px solid #e1c889; border-radius: 8px; background: #fffaf0; }
.evaluation-review-suggestion > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.evaluation-review-suggestion > div span { color: var(--text-muted); font-size: .82rem; }
.evaluation-review-suggestion p { margin: 0; }
.evaluation-review-suggestion button { justify-self: end; margin: 0; }
.evaluation-review-entry-form { display: grid; gap: .55rem; }
.evaluation-review-entry-form > label { color: #174b3e; font-weight: 800; }
.evaluation-review-entry-form textarea { box-sizing: border-box; width: 100%; resize: vertical; }
.evaluation-review-saved-state { margin: 0; color: var(--text-muted); font-size: .84rem; }
.evaluation-review-entry-actions { display: flex; justify-content: flex-end; gap: .65rem; }
.evaluation-review-entry-actions button { box-sizing: border-box; min-height: 44px; min-width: 175px; margin: 0; padding: 10px 16px; line-height: 22px; }
.evaluation-review-history { display: grid; gap: .65rem; padding-top: .25rem; border-top: 1px solid var(--border); }
.evaluation-review-history > h3 { margin: .6rem 0 0; }
.evaluation-review-history article { display: grid; grid-template-columns: minmax(11rem, .35fr) minmax(0, 1fr); gap: 1rem; padding: .8rem; border: 1px solid var(--border-soft); border-radius: 8px; }
.evaluation-review-history article > div { display: grid; align-content: start; gap: .15rem; }
.evaluation-review-history article small { color: var(--text-muted); }
.evaluation-review-history article p { margin: 0; }

@media (max-width: 700px) {
    .evaluation-review-controls { align-items: stretch; flex-direction: column; }
    .evaluation-review-heading { align-items: flex-start; flex-direction: column; }
    .evaluation-review-filter .field-block { width: 100%; }
    .evaluation-review-filter button { width: 100%; }
    .evaluation-review-controls > form:last-child button { width: 100%; }
    .evaluation-ai-progress { grid-template-columns: 1fr; }
    .evaluation-review-entry-actions { flex-direction: column-reverse; }
    .evaluation-review-entry-actions button { width: 100%; }
    .evaluation-review-history article { grid-template-columns: 1fr; }
}

.evaluation-contacts-table-wrap {
    max-width: 100%;
    scrollbar-gutter: stable;
}

.evaluation-contacts-table-wrap:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--gaa-green);
    outline-offset: 3px;
}

.evaluation-contacts-table {
    min-width: 1260px;
    table-layout: fixed;
}

.evaluation-contacts-table th,
.evaluation-contacts-table td {
    min-width: 0;
    overflow-wrap: break-word;
    vertical-align: top;
    word-break: normal;
}

.evaluation-contacts-table th:nth-child(1),
.evaluation-contacts-table td:nth-child(1) { width: 11%; }
.evaluation-contacts-table th:nth-child(2),
.evaluation-contacts-table td:nth-child(2) { width: 8%; }
.evaluation-contacts-table th:nth-child(3),
.evaluation-contacts-table td:nth-child(3) { width: 13%; }
.evaluation-contacts-table th:nth-child(4),
.evaluation-contacts-table td:nth-child(4) { width: 16%; }
.evaluation-contacts-table th:nth-child(5),
.evaluation-contacts-table td:nth-child(5) { width: 9%; }
.evaluation-contacts-table th:nth-child(6),
.evaluation-contacts-table td:nth-child(6) { width: 9%; }
.evaluation-contacts-table th:nth-child(7),
.evaluation-contacts-table td:nth-child(7) { width: 20%; }
.evaluation-contacts-table th:nth-child(8),
.evaluation-contacts-table td:nth-child(8) { width: 14%; }

.evaluation-contacts-table th:nth-child(1),
.evaluation-contacts-table td:nth-child(1),
.evaluation-contacts-table th:nth-child(2),
.evaluation-contacts-table td:nth-child(2),
.evaluation-contacts-table th:nth-child(5),
.evaluation-contacts-table td:nth-child(5),
.evaluation-contacts-table th:nth-child(6),
.evaluation-contacts-table td:nth-child(6) {
    white-space: nowrap;
}

.transcript-file-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.transcript-file-row a { overflow-wrap: anywhere; }


.minutes-rewrite { flex: 0 0 auto; padding: 16px 24px; background: #edf6f3; border-top: 1px solid #cbded8; max-height: 45vh; overflow-y: auto; }
.minutes-rewrite h3 { margin: 0 0 8px; }
.minutes-rewrite textarea { display: block; width: 100%; box-sizing: border-box; margin: 8px 0; resize: vertical; }
.minutes-rewrite .minutes-actions { justify-content: flex-end; }
.minutes-rewrite button { min-height: 44px; padding: 10px 16px; line-height: 22px; min-width: 120px; box-sizing: border-box; }

[data-report-parameters] .report-step { margin-bottom: 0; }
.report-step__label { font-weight: 700; margin: 0; }
