/* Scoped PNFOA theme integration; fallbacks also work in the isolated test site. */
.pnfoa-pf-app, .pnfoa-admin, .pnfoa-vote {
  --pf-navy: var(--pn-grey-dark, #222);
  --pf-blue: var(--pn-gold, #c9a23f);
  --pf-blue-dark: #e0b84a;
  --pf-ink: var(--pn-grey-dark, #222);
  --pf-muted: var(--pn-grey-mid, #555);
  --pf-border: var(--pn-grey-border, #ddd);
  --pf-bg: var(--pn-grey-light, #f4f4f5);
  --pf-radius: var(--pn-radius-lg, 12px);
  --pf-shadow: 0 8px 20px rgba(0,0,0,.08);
  font-family: var(--pn-font-body, "Roboto", system-ui, sans-serif);
  color: var(--pf-ink);
}
.pnfoa-pf-app h2, .pnfoa-pf-app h3, .pnfoa-pf-app h4,
.pnfoa-admin h1, .pnfoa-admin h2, .pnfoa-admin h3,
.pnfoa-vote h2, .pnfoa-vote h3, .pnfoa-vote h4 {
  font-family: var(--pn-font-heading, "Montserrat", system-ui, sans-serif);
}
.pnfoa-pf-app-header, .pnfoa-admin .pnfoa-hero, .pnfoa-vote__header {
  background: linear-gradient(135deg, #000, #222);
  color: #fff;
  border-bottom: 4px solid var(--pn-gold, #c9a23f);
}
.pnfoa-pf-app-header h2, .pnfoa-admin .pnfoa-hero h1,
.pnfoa-admin .pnfoa-hero p, .pnfoa-vote__header h2, .pnfoa-vote__header > p { color: #fff; }
.pnfoa-vote__header { padding: 1.5rem; border-radius: 12px; }
.pnfoa-vote-instructions { background: #fff; color: #222; }
.pnfoa-vote-instructions p { color: #555; }
.pnfoa-pf-app .pnfoa-pf-primary,
.pnfoa-admin .button-primary,
.pnfoa-admin input[type=submit].button-primary,
.pnfoa-vote .pnfoa-actions .primary {
  background: var(--pn-gold, #c9a23f) !important;
  border-color: var(--pn-gold, #c9a23f) !important;
  color: #000 !important;
  border-radius: 999px;
  font-weight: 700;
}
.pnfoa-pf-app .pnfoa-pf-primary:hover,
.pnfoa-admin .button-primary:hover,
.pnfoa-vote .pnfoa-actions .primary:hover { background: #e0b84a !important; border-color: #e0b84a !important; }
.pnfoa-pf-app .pnfoa-pf-tabs button.active,
.pnfoa-pf-app .pnfoa-pf-tabs button.is-active,
.pnfoa-admin .pnfoa-process-card:has(input:checked) { background: #faf5e7; color: #222; border-color: #c9a23f; }
.pnfoa-pf-app .pnfoa-pf-continue-card { background: #faf5e7; border-color: #c9a23f; }
.pnfoa-pf-app .pnfoa-pf-role-section { border-left-color: #c62828; }
.pnfoa-pf-app .pnfoa-pf-action-card { border-top: 3px solid #c9a23f; }
.pnfoa-vote .pnfoa-slot-label { color: #222; }
.pnfoa-vote .pnfoa-slot.is-over { outline-color: #c9a23f; }
.pnfoa-pf-app button:focus-visible, .pnfoa-admin .button:focus-visible,
.pnfoa-vote button:focus-visible { outline: 3px solid #c62828; outline-offset: 3px; }

/* Dark cards mirror the PNFOA theme, with light tables and editable fields. */
.pnfoa-pf-app, .pnfoa-admin, .pnfoa-vote, .pnfoa-pf-modal {
  --pf-ink: #fff;
  --pf-muted: #d0d0d0;
  --pf-border: #484848;
  --pf-bg: #111;
  --pf-surface: #222;
  color: #fff;
}
.pnfoa-pf-app .pnfoa-pf-shell, .pnfoa-admin {
  background: #111;
  border-color: #484848;
}
.pnfoa-pf-app :is(.pnfoa-pf-section, .pnfoa-pf-settings-card,
 .pnfoa-pf-action-card, .pnfoa-pf-stat-card, .pnfoa-pf-chair-card,
 .pnfoa-pf-info-card, .pnfoa-pf-review-card, .pnfoa-pf-received-comment,
 .pnfoa-pf-message, .pnfoa-pf-evaluation-ballot),
.pnfoa-pf-modal .pnfoa-pf-modal-card,
.pnfoa-admin :is(.pnfoa-panel, .pnfoa-template, .pnfoa-stats div, .pnfoa-year-filter),
.pnfoa-vote .pnfoa-position {
  background: linear-gradient(135deg, #222, #151515);
  color: #fff;
  border-color: #484848;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.pnfoa-pf-app :is(h2,h3,h4), .pnfoa-pf-modal :is(h2,h3,h4),
.pnfoa-admin :is(h1,h2,h3,h4), .pnfoa-vote .pnfoa-position :is(h3,h4) { color: #fff; }
.pnfoa-pf-app :is(.pnfoa-pf-action-card p, .pnfoa-pf-eyebrow, .pnfoa-pf-help),
.pnfoa-admin :is(.pnfoa-stats span, .pnfoa-data-heading p, .pnfoa-year-filter span) { color: #d0d0d0; }
.pnfoa-pf-app .pnfoa-pf-continue { background: #282319; border-color: #c9a23f; }
.pnfoa-pf-app .pnfoa-pf-tabs { background: #181818; border-color: #484848; }
.pnfoa-pf-app .pnfoa-pf-group-trigger { color: #c9a23f !important; }
.pnfoa-pf-app :is(.pnfoa-pf-tabs button, .pnfoa-pf-group-menu a) { color: #fff; }
.pnfoa-pf-app :is(.pnfoa-pf-tabs button.active, .pnfoa-pf-group-menu button:hover,
 .pnfoa-pf-group-menu a:hover) { background: #c9a23f; color: #000; }
.pnfoa-pf-app :is(.pnfoa-pf-toolbar button, .pnfoa-pf-content button),
.pnfoa-pf-modal button, .pnfoa-admin .button:not(.button-primary) {
  background: #333;
  color: #fff;
  border-color: #666;
  border-radius: 999px;
}
.pnfoa-pf-app .pnfoa-pf-content button.pnfoa-pf-danger { background: #b42318; color: #fff; }
.pnfoa-pf-app :is(.pnfoa-pf-review-details, .pnfoa-pf-review-card blockquote) {
  background: #303030; color: #fff;
}
.pnfoa-admin :is(.pnfoa-process-card span, .form-table th) { color: #ddd; }
.pnfoa-admin .pnfoa-process-card:has(input:checked) { background: #282319; color: #fff; }
.pnfoa-pf-app :is(input:not([type=checkbox]):not([type=radio]), select, textarea),
.pnfoa-pf-modal :is(input, select, textarea),
.pnfoa-admin :is(input:not([type=submit]):not([type=checkbox]):not([type=radio]), select, textarea) {
  background: #fff; color: #222; border-color: #bbb; color-scheme: light;
}
.pnfoa-pf-app .pnfoa-pf-table, .pnfoa-admin .widefat,
.pnfoa-admin .pnfoa-data-window, .pnfoa-vote .pnfoa-ranking,
.pnfoa-vote .pnfoa-candidate, .pnfoa-vote .pnfoa-slot {
  --pf-ink: #222; --pf-muted: #555; --pf-border: #ddd;
  background: #fff; color: #222;
}
.pnfoa-pf-app .pnfoa-pf-table th, .pnfoa-admin .widefat th { background: #f4f4f5; color: #222; }
.pnfoa-pf-app .pnfoa-pf-table td, .pnfoa-admin .widefat td { color: #222; }
.pnfoa-pf-app .pnfoa-pf-table .pnfoa-pf-details-button { color: #765900 !important; }
.pnfoa-pf-app .pnfoa-pf-review-note, .pnfoa-vote .pnfoa-vote-instructions,
.pnfoa-admin :is(.pnfoa-etl-result, .pnfoa-backup form) { color: #222; }
.pnfoa-pf-app .pnfoa-pf-health-green { color: #8cdbb8; }
.pnfoa-pf-app .pnfoa-pf-health-yellow { color: #f4cf75; }
.pnfoa-pf-app .pnfoa-pf-health-red { color: #ffaaa4; }
.pnfoa-pf-app .pnfoa-pf-role-section { border-left-color: #c62828; }
.pnfoa-pf-modal .pnfoa-pf-feedback-field { background: #303030; border-color: #484848; color: #fff; }
.pnfoa-pf-modal .pnfoa-pf-feedback-field :is(h3, h4, label) { color: #fff; }
.pnfoa-pf-app .pnfoa-pf-nav-group:has([data-tab].active) > .pnfoa-pf-group-trigger {
  background: transparent;
  color: #c9a23f !important;
}
.pnfoa-pf-app .pnfoa-pf-nav-link {
  display: inline-block; padding: .6rem .7rem; border-radius: 8px;
  color: #fff; text-decoration: none; font-size: .875rem; font-weight: 700;
}
.pnfoa-pf-app .pnfoa-pf-group-menu a.active {
  background: #c9a23f; color: #000; border-radius: 999px;
}
.pnfoa-center-admin-header { margin: 1rem 20px 0 0; max-width: 1200px; }
.pnfoa-center-admin-header .pnfoa-pf-shell { min-height: 0; }
.pnfoa-center-admin-header .pnfoa-pf-main-tabs { border-radius: 0 0 12px 12px; }
.pnfoa-vote .pnfoa-position > a { display: inline-block; background: #c9a23f; color: #000; border-radius: 999px; padding: .6rem 1rem; font-weight: 700; text-decoration: none; }

.pnfoa-pf-app .pnfoa-committee-list { margin: 18px 0; }
.pnfoa-pf-app .pnfoa-committee-list h4 { margin: 0 0 8px; }
.pnfoa-pf-app .pnfoa-committee-list ul { list-style: none; margin: 0; padding: 0; }
.pnfoa-pf-app .pnfoa-committee-list li { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.pnfoa-pf-app .pnfoa-committee-list li form { margin: 0; }
.pnfoa-pf-app .pnfoa-committee-list .pnfoa-membership-remove { min-height: 28px; padding: 3px 8px; font-size: 12px; line-height: 1.4; border-radius: 4px; }

.pnfoa-evaluation-config, .pnfoa-evaluation-config > .pnfoa-pf-section { border: 0 !important; box-shadow: none !important; }
.pnfoa-evaluation-config .pnfoa-committee-list .pnfoa-membership-remove { background: transparent !important; color: #aaa !important; border: 0 !important; min-height: 24px; padding: 0 5px; font-size: 17px; font-weight: 400; }
.pnfoa-evaluation-config .pnfoa-committee-list .pnfoa-membership-remove:hover { color: #fff !important; }
.pnfoa-evaluation-config .pnfoa-membership-remove:focus-visible { outline: 2px solid #c9a23f; outline-offset: 2px; }
.pnfoa-evaluation-config .pnfoa-committee-edit { margin: 6px 0; }
.pnfoa-evaluation-config .pnfoa-committee-edit summary { cursor: pointer; color: #aaa; font-size: 13px; }
.pnfoa-evaluation-config .pnfoa-committee-edit form { margin: 8px 0; }
.pnfoa-evaluation-config .pnfoa-committee-edit small { display: block; color: #aaa; }

/* Keep the site article wrapper and give its dark content room to breathe. */
body.pnfoa-evaluation-configuration-page .entry-content-wrap { padding: 32px !important; }


.pnfoa-evaluation-config { font-family: inherit; font-size: 17px; line-height: 1.6; }
.pnfoa-evaluation-config > .pnfoa-pf-section { padding: 32px; }
.pnfoa-evaluation-config :is(h2,h3,h4) { font-family: inherit; font-weight: 700; line-height: 1.5; }
.pnfoa-evaluation-config h2 { font-size: 28px; margin: 0 0 16px; }
.pnfoa-evaluation-config h3 { font-size: 24px; margin: 32px 0 12px; }
.pnfoa-evaluation-config h4 { font-size: 20px; }
.pnfoa-evaluation-config p { font-size: 14.4px; line-height: 1.5; margin: 14.4px 0; color: rgba(255,255,255,.85); }
.pnfoa-evaluation-config label { font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 12.8px; color: #c9a23f; }
.pnfoa-evaluation-config .pnfoa-committee-list { margin: 24px 0; }
@media (max-width: 600px) {
 body.pnfoa-evaluation-configuration-page .entry-content-wrap { padding: 16px !important; }
 .pnfoa-evaluation-config > .pnfoa-pf-section { padding: 20px; }
}
/* Actions share the heading row; expanded editors float beside the name. */
.pnfoa-evaluation-config > .pnfoa-pf-section { border-radius: 12px; }
.pnfoa-evaluation-config .pnfoa-committee-heading { display: flex; align-items: center; gap: 18px; position: relative; }
.pnfoa-evaluation-config .pnfoa-committee-heading-main { margin-top: 32px; }
.pnfoa-evaluation-config .pnfoa-committee-heading :is(h3,h4) { margin: 0; flex-shrink: 0; }
.pnfoa-evaluation-config .pnfoa-committee-heading h4:focus-visible { outline: 2px solid #c9a23f; outline-offset: 3px; }
.pnfoa-evaluation-config .pnfoa-committee-actions { display: flex; gap: 14px; visibility: hidden; }
.pnfoa-evaluation-config .pnfoa-committee-heading:has(h4:hover) .pnfoa-committee-actions,
.pnfoa-evaluation-config .pnfoa-committee-heading:focus-within .pnfoa-committee-actions,
.pnfoa-evaluation-config .pnfoa-committee-actions:hover,
.pnfoa-evaluation-config .pnfoa-committee-actions:has(details[open]) { visibility: visible; }
.pnfoa-evaluation-config .pnfoa-committee-heading .pnfoa-committee-edit { margin: 0; position: relative; }
.pnfoa-evaluation-config .pnfoa-committee-heading summary { white-space: nowrap; }
.pnfoa-evaluation-config .pnfoa-committee-heading details[open] { z-index: 5; }
 .pnfoa-evaluation-config .pnfoa-committee-heading .pnfoa-committee-editor { position: absolute; top: 26px; left: 0; width: 300px; padding: 16px; background: #222; border: 1px solid #555; border-radius: 12px; box-shadow: 0 6px 20px #0008; }
.pnfoa-evaluation-config .pnfoa-committee-editor form { margin: 0 0 12px; }
.pnfoa-evaluation-config .pnfoa-committee-editor form:last-child { margin-bottom: 0; }
.pnfoa-evaluation-config .pnfoa-committee-editor label { display: block; margin-bottom: 8px; }
.pnfoa-evaluation-config .pnfoa-committee-editor :is(input,select) { max-width: 100%; width: 100%; }
.pnfoa-evaluation-config .pnfoa-committee-list { margin: 16px 0; }
.pnfoa-evaluation-config .pnfoa-committee-list ul { margin-top: 4px; }
.pnfoa-evaluation-config .pnfoa-committee-list li { padding: 1px 0; }
.pnfoa-evaluation-config .pnfoa-committee-list > p { margin: 4px 0; }
@media (hover: none) { .pnfoa-evaluation-config .pnfoa-committee-actions { visibility: visible; } }
@media (max-width: 600px) {
 .pnfoa-evaluation-config .pnfoa-committee-heading { gap: 10px; flex-wrap: wrap; }
 .pnfoa-evaluation-config .pnfoa-committee-heading .pnfoa-committee-editor { width: min(300px, 65vw); left: auto; right: 0; }
}
.pnfoa-evaluation-config > .pnfoa-pf-section > form[method="get"] button { background: #c9a23f !important; color: #000 !important; border-color: #c9a23f !important; }

.pnfoa-evaluation-config .pnfoa-committee-list > ul,
.pnfoa-evaluation-config .pnfoa-committee-list > p { margin-left: 20px; }
.pnfoa-evaluation-config .pnfoa-committee-editor button {
 background: #c9a23f !important; color: #000 !important; border-color: #c9a23f !important; font-weight: 700;
}

/* Keep actions visible across the name, the gap, and the action links. */
.pnfoa-evaluation-config .pnfoa-committee-list > .pnfoa-committee-heading { width: fit-content; max-width: 100%; }
.pnfoa-evaluation-config .pnfoa-committee-list > .pnfoa-committee-heading:hover .pnfoa-committee-actions { visibility: visible; }

/* Compact dashboard dropdowns match the website navigation. */
.pnfoa-pf-app .pnfoa-pf-main-tabs { overflow: visible; align-items: center; gap: 24px; border-radius: 12px 12px 0 0; }
.pnfoa-pf-app .pnfoa-pf-nav-group { width: auto; border: 0; padding: 0; position: relative; }
.pnfoa-pf-app .pnfoa-pf-group-trigger { font-family: var(--pn-font-heading, Montserrat, system-ui, sans-serif); font-size: 17px; font-weight: 700; letter-spacing: .04em; padding: 8px 0 !important; color: #fff !important; }
.pnfoa-pf-app .pnfoa-pf-group-trigger::after { content: '▾'; font-size: 12px; margin-left: 6px; }
.pnfoa-pf-app .pnfoa-pf-group-menu { display: none !important; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 0; background: #000; border: 0; border-radius: 0; box-shadow: var(--pn-shadow-soft, 0 8px 24px #0006); z-index: 30; }
.pnfoa-pf-app .pnfoa-pf-nav-group:hover > .pnfoa-pf-group-menu,
.pnfoa-pf-app .pnfoa-pf-nav-group:focus-within > .pnfoa-pf-group-menu { display: grid !important; }
.pnfoa-pf-app .pnfoa-pf-group-menu :is(button,a) { font-family: var(--pn-font-heading, Montserrat, system-ui, sans-serif); width: 100%; text-align: left; font-size: 14px; padding: 10px 16px; border-radius: 0; white-space: nowrap; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.pnfoa-pf-app .pnfoa-pf-group-menu :is(button,a):hover { background: #000; color: #c9a23f; }
.pn-header { position: relative; z-index: 2000; }
.pn-header-nav .sub-menu { z-index: 2001; }
.pnfoa-pf-app { position: relative; z-index: 0; }

.pnfoa-pf-app:has(+ .pnfoa-admin) .pnfoa-pf-shell { min-height: 0; }
.pnfoa-pf-app:has(+ .pnfoa-admin) { z-index: 50; }
.entry-content .pnfoa-admin { margin: 0; max-width: 100%; }
.entry-content .pnfoa-admin .pnfoa-hero { margin-top: 20px; }
.pnfoa-pf-app .pnfoa-pf-group-menu { background: #000 !important; opacity: 1; }

/* Management menus and their content form one continuous dark panel. */
.pnfoa-pf-app:has(+ .pnfoa-admin) { margin-bottom: 0; }
.pnfoa-pf-app:has(+ .pnfoa-admin) .pnfoa-pf-shell { border-radius: 12px 12px 0 0; border-bottom: 0; }
.entry-content .pnfoa-pf-app + .pnfoa-admin .pnfoa-hero { margin-top: 0; border-radius: 0; }
.pnfoa-evaluation-config > .pnfoa-pf-section { border-radius: 0 0 12px 12px; }
.pnfoa-pf-app .pnfoa-pf-group-menu :is(a,button):hover,
.pnfoa-pf-app .pnfoa-pf-group-menu :is(a,button):focus-visible { color: #c9a23f; text-decoration: underline; text-decoration-color: #c9a23f; text-underline-offset: 4px; }

/* Continue the menu panel with square upper corners and rounded lower corners. */
.entry-content .pnfoa-pf-app + .pnfoa-admin { border-radius: 0 0 12px 12px; border-top: 0; }
.entry-content .pnfoa-admin { font-family: inherit; font-size: 17px; line-height: 1.6; }
.entry-content .pnfoa-admin :is(h1,h2,h3,h4) { font-family: inherit; font-weight: 700; line-height: 1.5; }
.entry-content .pnfoa-admin .pnfoa-hero h1 { font-size: 28px; }
.entry-content .pnfoa-admin .pnfoa-hero p { font-size: 14.4px; line-height: 1.5; }
.entry-content .pnfoa-admin .pnfoa-panel h2 { font-size: 24px; }
.pnfoa-admin .pnfoa-run-error { margin-top: 4px; }
.pnfoa-admin .pnfoa-run-error summary { cursor: pointer; color: #765900; font-size: 13px; white-space: nowrap; }
.pnfoa-admin .pnfoa-run-error summary:hover { text-decoration: underline; }
.pnfoa-admin .pnfoa-run-error p { color: #222; font-size: 14px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; max-width: 32rem; margin: 8px 0 0; }

.pnfoa-admin .pnfoa-results-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.pnfoa-admin .pnfoa-results-heading h1 { margin:0; }
.pnfoa-admin .pnfoa-results-heading form { margin:0 0 0 auto; }
.pnfoa-admin .pnfoa-results-heading .button-primary { background:var(--pn-gold,#c9a23f); color:#000; border-color:var(--pn-gold,#c9a23f); }
.pnfoa-admin .pnfoa-campaign-filter { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:20px 0; }
.pnfoa-admin .pnfoa-campaign-filter select { max-width:100%; }

.pnfoa-evaluation-config .pnfoa-voting-amounts { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-bottom:24px; }
.pnfoa-evaluation-config .pnfoa-voting-amounts > label { display:grid; gap:6px; margin:0; min-width:0; }
.pnfoa-evaluation-config .pnfoa-voting-amounts > button { margin:0; }
.pnfoa-evaluation-config .pnfoa-voting-amounts > .pnfoa-amount-total { flex-basis:100%; margin:0; }
.pnfoa-admin .pnfoa-results-table-scroll { overflow-x:auto; width:100%; }
.pnfoa-admin .pnfoa-results-table-scroll table { min-width:1050px; }
.pnfoa-admin .pnfoa-results-table-scroll th, .pnfoa-admin .pnfoa-results-table-scroll td { white-space:nowrap; }
.pnfoa-admin .pnfoa-results-table-scroll td:not(:first-child) { text-align:right; font-variant-numeric:tabular-nums; }

.pnfoa-results-heading .pnfoa-vote-export { position:relative; margin-left:auto; }
.pnfoa-results-heading .pnfoa-vote-export summary { cursor:pointer; list-style:none; }
.pnfoa-results-heading .pnfoa-vote-export summary::-webkit-details-marker { display:none; }
.pnfoa-results-heading .pnfoa-vote-export form { position:absolute; right:0; top:100%; z-index:50; min-width:180px; padding:12px; background:#222; border:1px solid #c9a23f; border-radius:8px; display:grid; gap:8px; box-shadow:0 4px 12px #0006; }

.pnfoa-admin .pnfoa-view-details { white-space:nowrap; }
.pnfoa-admin .pnfoa-ranking-detail-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:16px 0; }
.pnfoa-admin .pnfoa-ranking-detail-actions .button { white-space:nowrap; }

.pnfoa-processes .pnfoa-section-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.pnfoa-processes .pnfoa-section-heading h2 {margin-top:0}
.pnfoa-processes .pnfoa-section-heading form {margin:0 0 0 auto}
.pnfoa-processes .pnfoa-section-heading > .button {margin-left:auto}
.pnfoa-processes .pnfoa-section-heading .button {white-space:nowrap}

.pnfoa-results-controls {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.pnfoa-results-controls form,.pnfoa-results-controls p {margin:12px 0}
.pnfoa-results-toggle {display:flex;gap:8px}

.pnfoa-results-heading .pnfoa-vote-export form[hidden]{display:none!important}
.pnfoa-results-heading .pnfoa-vote-export form{margin:0;min-width:210px}
.pnfoa-results-heading .pnfoa-vote-export form button{white-space:nowrap}
.pnfoa-results .pnfoa-results-table-scroll table{min-width:1600px}

.pnfoa-evaluation-config .pnfoa-additional-entry{flex-wrap:wrap;align-items:center;gap:8px}
.pnfoa-evaluation-config .pnfoa-additional-edit summary{cursor:pointer;color:var(--pn-gold,#c9a23f);font-size:.85rem}
.pnfoa-evaluation-config .pnfoa-additional-edit[open]{flex-basis:100%;order:2}
.pnfoa-evaluation-config .pnfoa-additional-edit form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:12px 0}

/* Keep results selectors together, with participation aligned to the right. */
.pnfoa-results-filters {display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.pnfoa-admin .pnfoa-results-filters .pnfoa-campaign-filter {margin:20px 0;flex-wrap:nowrap;min-width:0}
.pnfoa-results-filters .pnfoa-campaign-filter:last-child {margin-left:auto}
@media(max-width:760px){.pnfoa-results-filters{gap:0}.pnfoa-admin .pnfoa-results-filters .pnfoa-campaign-filter{width:100%;margin:10px 0;flex-wrap:wrap}.pnfoa-results-filters select{flex:1;min-width:0}}

/* Retrieval choices retain accessible radio behavior with a gold selected card. */
.pnfoa-run-panel #pnfoa-background-status:empty {display:none}
.pnfoa-admin .pnfoa-run-panel>h2 {margin-top:0}
.pnfoa-admin .pnfoa-process-card {position:relative;grid-template-columns:minmax(0,1fr);gap:6px}
.pnfoa-admin .pnfoa-process-card input[type=radio] {position:absolute;width:1px;height:1px;opacity:0;margin:0}
.pnfoa-admin .pnfoa-process-card strong {font-size:20px;line-height:1.3;font-weight:700}
.pnfoa-admin .pnfoa-process-card span {font-size:14px;line-height:1.5;font-weight:400;margin:0}
.pnfoa-admin .pnfoa-process-card:has(input:checked) {border-color:#d4af37;background:linear-gradient(145deg,#30291b,#201e19);box-shadow:inset 0 1px 0 #78612b,inset 0 -1px 0 #111}
.pnfoa-admin .pnfoa-process-card:has(input:focus-visible) {outline:2px solid #d4af37;outline-offset:3px}
/* Generated data keeps compact horizontal tabs above one scrollable table. */
.pnfoa-generated-output {display:flex;flex-wrap:wrap;align-items:start;gap:12px;min-width:0}
.pnfoa-generated-output>.pnfoa-source-summary {order:0;flex-basis:100%;display:flex;flex-wrap:wrap;gap:12px;font-size:14px}
.pnfoa-generated-output>.pnfoa-data-tabs {order:1;display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;flex:1;min-width:0;gap:8px;margin:0;padding:2px 2px 8px}
.pnfoa-admin .pnfoa-data-tabs .button {flex:0 0 auto;width:auto;min-height:36px;padding:6px 12px;line-height:1.3;white-space:nowrap;border-radius:999px;font-size:14px}
.pnfoa-generated-output>.pnfoa-generated-export {order:2;flex:0 0 auto;margin:0}
.pnfoa-generated-output>.pnfoa-data-pane {order:3;flex-basis:100%;min-width:0;box-sizing:border-box}
#pnfoa-generated-data .pnfoa-data-window {padding:0;max-height:70vh;scroll-padding-top:100px}
#pnfoa-generated-data .pnfoa-table-tools {position:sticky;top:0;left:0;z-index:5;margin:0;padding:10px 12px;background:#171717;box-sizing:border-box;min-height:54px}
#pnfoa-generated-data .pnfoa-data-window thead th {top:var(--pnfoa-tools-height,54px)}
.pnfoa-admin .pnfoa-data-window th .pnfoa-table-sort {min-height:28px;width:auto;padding:0;background:transparent!important;color:#111!important;font-size:inherit}
.pnfoa-admin .pnfoa-diagnostics-pane h3 {margin-top:0}
.pnfoa-admin .pnfoa-diagnostic-group {padding:14px 0;border-bottom:1px solid #555}
.pnfoa-admin .pnfoa-diagnostic-group summary {cursor:pointer;font-weight:700;line-height:1.5}
.pnfoa-admin .pnfoa-diagnostic-group>p {max-width:85ch;line-height:1.6}
.pnfoa-admin .pnfoa-run-error {margin:12px 0}
.pnfoa-admin .pnfoa-run-error summary {font-weight:700;cursor:pointer}
.pnfoa-admin .pnfoa-error-message {max-width:90ch;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;padding:12px;border-left:3px solid #c9a23f;background:#171717}
.pnfoa-admin .pnfoa-diagnostics-pane a,.pnfoa-source-summary a {color:#e0b84a;text-underline-offset:3px}
.pnfoa-rule-unsaved {color:#e0b84a;font-size:14px}
@media(max-width:600px){.pnfoa-admin .pnfoa-data-tabs .button{min-height:44px}.pnfoa-generated-output{gap:8px}.pnfoa-generated-export .button{white-space:nowrap}}


.pnfoa-date-range {display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:12px}
.pnfoa-admin .pnfoa-date-range p,.pnfoa-admin .pnfoa-date-range label {margin:0;font-size:18px;font-weight:600;color:#fff}
.pnfoa-admin .pnfoa-date-range input[type=date] {font:inherit;font-size:18px;min-height:42px;padding:7px 10px;margin-left:8px;border:1px solid #b9c1cc;border-radius:8px;color:#111;background:#fff;color-scheme:light}

.pnfoa-end-dialog {max-width:620px;width:calc(100% - 40px);box-sizing:border-box;padding:24px;border:1px solid #d4af37;border-radius:12px;background:#1c1c1c;color:#fff}
.pnfoa-end-dialog::backdrop {background:rgba(0,0,0,.75)}
.pnfoa-end-dialog h2 {margin-top:0}.pnfoa-end-dialog label {display:block;margin:20px 0}.pnfoa-end-dialog input[type=checkbox] {accent-color:#d4af37}
.pnfoa-end-actions {display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.pnfoa-admin .pnfoa-campaign-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.pnfoa-campaign-heading>.button {margin-left:auto}
.pnfoa-admin .pnfoa-end-campaign {display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-width:30px;padding:5px;background:transparent;color:#555;border:0;border-radius:4px;box-shadow:none;cursor:pointer}
.pnfoa-admin .pnfoa-end-campaign:hover {color:#000;background:#eee}
.pnfoa-table-tools {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0;color:#fff}
.pnfoa-table-tools label {display:flex;align-items:center;gap:6px;margin:0}
.pnfoa-table-tools input {width:200px;max-width:100%}
.pnfoa-admin .pnfoa-table-tools button {background:var(--pn-gold,#c9a23f);color:#000;border:0;min-height:40px}
.pnfoa-admin .pnfoa-table-sort {font:inherit;font-weight:700;color:#111;background:transparent;border:0;padding:0;text-align:left;cursor:pointer}
.pnfoa-admin th[aria-sort=ascending] .pnfoa-table-sort::after {content:' \2191'}
.pnfoa-admin th[aria-sort=descending] .pnfoa-table-sort::after {content:' \2193'}
.pnfoa-admin tr[hidden] {display:none!important}
.pnfoa-results-table-scroll {max-height:650px;overflow:auto}
.pnfoa-admin :is(.pnfoa-results-table-scroll,.pnfoa-data-window) thead th {position:sticky;top:0;z-index:2;background:#f4f4f5}
.pnfoa-results-table-scroll :is(td,th):first-child {position:sticky;left:0;min-width:150px;max-width:180px;z-index:1;background:#fff}
.pnfoa-results-table-scroll thead th:first-child {z-index:3;background:#f4f4f5}
.pnfoa-shared-game-detail {white-space:pre-wrap;overflow-wrap:anywhere;max-width:500px;max-height:300px;overflow:auto;color:#222;background:#fff}
@media(max-width:600px){
 .pnfoa-admin .pnfoa-hero {padding:16px}
 .pnfoa-table-tools {gap:8px;font-size:14px}
 .pnfoa-table-tools label:first-child {flex-basis:100%}
 .pnfoa-table-tools input {flex:1;min-width:0}
 .pnfoa-table-tools button,.pnfoa-admin select,.pnfoa-evaluation-config button {min-height:44px}
 .pnfoa-results-heading {flex-wrap:wrap;gap:12px}
 .pnfoa-admin .pnfoa-results-table-scroll {max-height:70vh}
 .pnfoa-pf-app .pnfoa-pf-main-tabs {gap:12px;flex-wrap:wrap}
}
.pnfoa-admin .pnfoa-end-campaign:focus-visible {outline:2px solid #b08720;outline-offset:2px}

.pnfoa-no-show-list {padding-left:20px}
.pnfoa-run-actions:has(.pnfoa-run-alternatives) {flex-wrap:wrap}
.pnfoa-run-alternatives {display:flex;flex-direction:column;gap:12px;flex:1 0 100%;min-width:0}
.pnfoa-run-alternatives + button {margin-left:auto}
.pnfoa-run-alternatives > details {width:100%;min-width:0;box-sizing:border-box}
.pnfoa-run-alternatives > details > summary {text-align:left}
.pnfoa-special-exclusions {margin-top:16px;min-width:0}
.pnfoa-special-form {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0;align-items:end}
.pnfoa-special-form label,.pnfoa-special-exclusions > label {display:grid;gap:6px;min-width:0}
.pnfoa-special-exclusions :is(input:not([type="hidden"]),select) {width:100%;max-width:100%;box-sizing:border-box}
.pnfoa-special-form > button {grid-column:1/-1;justify-self:end}
.pnfoa-special-list {padding:0;list-style:none}
.pnfoa-special-list li {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;overflow-wrap:anywhere}
.pnfoa-special-list li[hidden] {display:none}
.pnfoa-special-list form {margin:0;flex:0 0 auto}
.pnfoa-admin .pnfoa-special-list button.pnfoa-exclusion-edit {background:transparent;color:inherit;border:0;box-shadow:none;padding:0;min-height:36px;font:inherit;font-weight:bold;text-decoration:underline}
.pnfoa-pf-app .pnfoa-special-list button.pnfoa-exclusion-remove,.pnfoa-admin .pnfoa-special-list button.pnfoa-exclusion-remove {min-width:44px;min-height:44px;padding:8px;background:transparent;border:0;box-shadow:none;color:inherit;display:inline-flex;align-items:center;justify-content:center}
.pnfoa-special-form > .button {min-height:44px;padding:10px 18px}
.pnfoa-special-list button:focus-visible {outline:2px solid #a9822a;outline-offset:2px}
@media(max-width:700px){.pnfoa-special-form{grid-template-columns:minmax(0,1fr)}}
.pnfoa-no-show-list li {display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0}
.pnfoa-no-show-list li form {margin:0}

.pnfoa-evaluation-config .pnfoa-no-show-form {display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end;margin:16px 0}
.pnfoa-evaluation-config .pnfoa-no-show-form label {display:grid;gap:6px;margin:0;min-width:0}
.pnfoa-evaluation-config .pnfoa-no-show-form :is(input:not([type="hidden"]),select) {width:100%;min-width:0;box-sizing:border-box}
.pnfoa-evaluation-config .pnfoa-no-show-form button {justify-self:start}
@media(max-width:700px){.pnfoa-evaluation-config .pnfoa-no-show-form {grid-template-columns:minmax(0,1fr)}}

.pnfoa-admin .pnfoa-error-link {width:auto;padding:4px 0;min-height:32px;border:0;background:transparent!important;color:#765900!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit}

.pnfoa-configuration-year {display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.pnfoa-evaluation-config .pnfoa-configuration-year > form {margin:0}
.pnfoa-roll-forward {max-width:640px;width:calc(100% - 40px);box-sizing:border-box;background:#202020;color:#fff;border:1px solid #c9a23f;border-radius:12px;padding:24px}
.pnfoa-roll-forward::backdrop {background:#000a}
.pnfoa-roll-actions {display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

.pnfoa-autosave-notice {display:inline-block;margin:8px 12px;font-size:14px;color:#e8d492}
.pnfoa-autosave-notice[data-state="error"] {color:#ffb9b9}

/* Keep the two accordion labels together while either body spans the full row. */
.pnfoa-run-alternatives {position:relative;gap:0}
.pnfoa-admin .pnfoa-run-alternatives > details > summary,
.pnfoa-admin .pnfoa-run-alternatives > details > summary > strong {font-size:15px;line-height:1.5}
.pnfoa-run-alternatives > .pnfoa-special-editor > summary {width:max-content}
.pnfoa-run-alternatives > .pnfoa-backup > summary {position:absolute;left:200px;top:0;width:max-content}
@media(max-width:520px){.pnfoa-run-alternatives {gap:12px}.pnfoa-run-alternatives > .pnfoa-backup > summary {position:static}}

.pnfoa-admin p.pnfoa-results-explanation {margin-bottom:4px}
.pnfoa-admin p.pnfoa-results-note {margin-top:0;font-size:12px;line-height:1.4}
