:root {
  --navy: #12344d;
  --navy-2: #0b2639;
  --teal: #087f8c;
  --teal-dark: #05606a;
  --gold: #f2b544;
  --paper: #f7f9fb;
  --white: #ffffff;
  --ink: #17232d;
  --muted: #5b6b78;
  --line: #d7e0e6;
  --danger: #b42318;
  --success: #16794b;
  --focus: #ffbf47;
  --shadow: 0 12px 30px rgba(18,52,77,.1);
  font-size: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; background:#005a82; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; }
body.high-contrast { --paper:#000; --white:#111; --ink:#fff; --muted:#eee; --line:#fff; --navy:#fff; --navy-2:#fff; --teal:#ffe600; --teal-dark:#ffe600; --gold:#ffe600; --danger:#ff7b7b; --success:#75ffb2; }
a { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, summary { outline-offset: 3px; }
:focus-visible { outline: 4px solid var(--focus); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; background: var(--gold); color:#000; padding:.75rem 1rem; font-weight:700; border-radius:.4rem; }
.skip-link:focus { top:1rem; }
.site-header { background: var(--navy); color: var(--white); padding: 1rem clamp(1rem, 4vw, 4rem); display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.site-header h1 { margin:0; font-size:clamp(1.35rem, 2.8vw, 2rem); }
.eyebrow { margin:0 0 .25rem; text-transform:uppercase; letter-spacing:.12em; font-size:.75rem; font-weight:800; color: var(--teal); }
.site-header .eyebrow { color: #9ce4ea; }
.admin-profile-control{position:relative}.admin-profile-button{display:flex;align-items:center;gap:.6rem;padding:.35rem .55rem;border:1px solid #0b5c86;border-radius:.65rem;background:#fff;color:var(--navy);font:inherit;text-align:left;cursor:pointer}.admin-profile-avatar{display:grid;place-items:center;width:2.35rem;height:2.35rem;overflow:hidden;border-radius:50%;background:#e3f2f6;color:#075985;font-size:1.3rem;font-weight:800}.admin-profile-avatar img{width:100%;height:100%;object-fit:cover}.admin-profile-standard-icon{line-height:1}.admin-profile-identity{display:grid;gap:.05rem;line-height:1.1}.admin-profile-identity strong{font-size:.9rem}.admin-profile-identity small{font-size:.76rem;color:#496171}.admin-profile-menu{position:absolute;z-index:30;right:0;top:calc(100% + .35rem);display:none;min-width:13.5rem;padding:.35rem;border:1px solid #0b5c86;border-radius:.45rem;background:#fff;box-shadow:0 .3rem .9rem rgba(0,0,0,.16)}.admin-profile-menu a{display:block;padding:.45rem .55rem;border-radius:.25rem;color:#075985;font-size:.85rem;font-weight:700;white-space:nowrap;text-decoration:none}.admin-profile-menu a:hover,.admin-profile-menu a:focus-visible{background:#e3f2f6}.admin-profile-control:hover .admin-profile-menu,.admin-profile-control.menu-open .admin-profile-menu{display:grid}.admin-avatar-options{display:grid;gap:.55rem;margin:1rem 0}.admin-avatar-options label{font-weight:600}.admin-avatar-options input[type="file"]{margin:.15rem 0}.admin-profile-preview{display:flex;align-items:center;gap:.65rem;min-height:2.5rem;margin:.75rem 0}.admin-profile-preview .admin-profile-avatar{flex:0 0 auto}
.header-actions, .hero-actions, .survey-actions, .dialog-actions, .section-heading-row { display:flex; gap:.75rem; flex-wrap:wrap; align-items:center; }
.question-jump-actions { display:flex; gap:.75rem; flex-wrap:wrap; align-items:center; }
.container { width:min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) 0; }
.hidden { display:none !important; }
[data-population-other][hidden] { display:none !important; }
/* Long capacity legends must wrap fully, including the forecast time unit. */
[data-forecast-question] { min-width:0; }
[data-forecast-question] fieldset { min-width:0; }
[data-forecast-question] legend { max-width:100%; white-space:normal; overflow:visible; overflow-wrap:anywhere; height:auto; }
body.high-contrast .mobile-progress-strip { background:#000; color:#fff; border-color:#fff; }
.hero-card, .card, .question-panel, .progress-panel, .submit-card, .confirmation-card { background:var(--white); border:1px solid var(--line); border-radius:1rem; box-shadow:var(--shadow); }
.hero-card { padding:clamp(1.5rem,5vw,4rem); display:grid; grid-template-columns: 1.5fr .7fr; align-items:center; gap:2rem; }
.hero-card h2 { font-size:clamp(2rem,5vw,3.8rem); line-height:1.05; margin:.25rem 0 1rem; color:var(--navy); }
.hero-actions { flex-direction:column; align-items:stretch; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:1rem; }
.feature-grid article { padding:1.25rem; border-left:5px solid var(--teal); background:var(--white); border-radius:.65rem; }
.feature-grid h3 { margin-top:0; color:var(--navy); }
.button { border-radius:.6rem; padding:.72rem 1rem; border:2px solid transparent; cursor:pointer; font-weight:750; min-height:44px; }
.button.primary { background:var(--teal); color:#fff; }
.button.primary:hover { background:var(--teal-dark); }
.button.secondary { background:var(--white); color:var(--navy); border-color:var(--navy); }
.button.ghost { background:transparent; color:inherit; border-color:currentColor; }
.button.full { width:100%; margin-top:.6rem; }
.survey-shell { display:grid; grid-template-columns:290px 1fr; gap:1.2rem; align-items:start; }
.progress-panel { padding:1.2rem; position:sticky; top:1rem; }
.progress-track { height:.7rem; background:var(--line); border-radius:10rem; overflow:hidden; }
.progress-track span { display:block; height:100%; width:0; background:var(--teal); transition:width .25s ease; }
.progress-text { font-weight:700; }
.progress-estimate-help{font-size:.85rem;font-weight:400;line-height:1.4;margin:.5rem 0}
.mobile-progress-summary{flex:1;min-width:0}
.mobile-progress-summary .progress-track{margin:.35rem 0}
.mobile-progress-summary .progress-estimate-help{font-size:.75rem;margin:.25rem 0 0}
.autosave-status { margin:.55rem 0 0; color:var(--muted); font-size:.9rem; }
.autosave-status.saving { color:var(--teal-dark); }
.autosave-status.saved { color:var(--success); }
.autosave-status.local-only { color:#8b4d00; }
.save-help { margin:.5rem 0 0; color:var(--muted); font-size:.84rem; line-height:1.35; }
#section-nav { display:grid; gap:.35rem; margin:1rem 0; }
#section-nav button { text-align:left; background:transparent; border:0; border-left:4px solid var(--line); padding:.5rem .7rem; color:var(--muted); cursor:pointer; }
#section-nav button.current { color:var(--ink); border-color:var(--teal); font-weight:800; }
#section-nav button.complete::after { content:" ✓"; color:var(--success); }
.question-panel { padding:clamp(1.25rem,4vw,2.5rem); min-height:540px; }
.question-card h2 { margin:.3rem 0 .6rem; font-size:clamp(1.55rem,3vw,2.2rem); color:var(--navy); line-height:1.2; }
.question-number { color:var(--muted); font-weight:700; }
.help-text { color:var(--muted); max-width:70ch; }
fieldset { border:0; padding:0; margin:1.25rem 0; }
legend { font-weight:800; margin-bottom:.65rem; }
.option-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.option-card, .check-row { display:flex; gap:.7rem; align-items:flex-start; border:1px solid var(--line); border-radius:.65rem; padding:.85rem; background:var(--white); }
.category-option-card { position:relative; display:flex; align-items:flex-start; gap:.5rem; border:1px solid var(--line); border-radius:.65rem; padding:.85rem; background:var(--white); }
.category-option-card:hover { border-color:var(--teal); }
.category-option-label,.additional-program-category-grid .category-option-card>label { display:flex; flex:1; gap:.7rem; align-items:flex-start; cursor:pointer; }
.category-definition-info { position:relative; flex:none; }
.category-definition-info-button { display:grid; place-items:center; width:1.35rem; height:1.35rem; padding:0; border:2px solid var(--brand-blue); border-radius:50%; background:var(--white); color:var(--brand-blue); font-weight:800; font-family:Georgia,serif; line-height:1; }
.category-definition-info-button:hover,.category-definition-info-button:focus { background:var(--brand-blue); color:#fff; }
.category-definition-tooltip { position:fixed; z-index:50; top:var(--tooltip-top,50%); left:var(--tooltip-left,calc(100% + .5rem)); width:min(21rem,calc(100vw - 1.5rem)); padding:.8rem .9rem; border:1px solid var(--brand-blue); border-radius:.5rem; background:var(--white); color:var(--ink); box-shadow:var(--shadow); font-size:.88rem; line-height:1.4; opacity:0; visibility:hidden; pointer-events:none; transform:translateY(-50%); transition:opacity .15s ease,visibility .15s ease; }
.category-definition-tooltip::before { content:""; position:absolute; top:50%; right:100%; border:.38rem solid transparent; border-right-color:var(--brand-blue); transform:translateY(-50%); }
.category-definition-tooltip strong { display:block; margin-bottom:.3rem; color:var(--navy); font-size:.95rem; line-height:1.2; }
.category-definition-tooltip p { display:block; margin:0; color:#304957; font-weight:400; }
.category-definition-info.is-open .category-definition-tooltip { opacity:1; visibility:visible; }
.category-option-card:has(.category-definition-info:hover),.category-option-card:has(.category-definition-info:focus-within),.category-option-card:has(.category-definition-info.is-open){z-index:30}
.category-option-card .category-choice-copy{display:grid;gap:.3rem;flex:1}.category-choice-header{display:flex;align-items:center;gap:.35rem}.category-choice-header label{display:flex;align-items:center;gap:.55rem;cursor:pointer}.program-add-dialog .additional-program-categories .category-choice-header .category-definition-info{display:inline-block;flex:none;align-self:center}.category-choice-header .category-definition-info-button{width:1.05rem;height:1.05rem;border-width:1px;font-size:.72rem}.category-option-card .category-choice-copy small{display:block;color:var(--muted);font-size:.86rem;font-weight:400;line-height:1.35}
.category-definition-info.tooltip-opens-left .category-definition-tooltip::before{right:auto;left:100%;border-right-color:transparent;border-left-color:var(--brand-blue)}.definition>summary,.additional-program-area>summary{display:flex;align-items:center;gap:.4rem}.program-area-definition-info{margin-left:auto}.program-area-definition-info .category-definition-tooltip{font-weight:400}
.option-card:hover { border-color:var(--teal); }
.option-card:has(input[type="checkbox"]:checked),.check-row:has(input[type="checkbox"]:checked),.category-option-card:has(input[type="checkbox"]:checked){border-color:var(--teal);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--teal) 24%,transparent);background:#eefafa}
input[type="checkbox"], input[type="radio"] { width:1.25rem; height:1.25rem; margin-top:.12rem; flex:none; accent-color:var(--teal); }
.admin-signin-field, input[type="text"], input[type="url"], input[type="email"], input[type="tel"], input[type="date"], select, textarea { width:100%; border:2px solid #9aabb7; border-radius:.55rem; padding:.75rem; background:var(--white); color:var(--ink); }
label { display:block; font-weight:750; margin-top:1rem; }
fieldset label { margin-top:0; font-weight:600; }
textarea { resize:vertical; }
.definition-list { display:grid; gap:.7rem; }
details.definition { border:1px solid var(--line); border-radius:.65rem; padding:.7rem .9rem; background:var(--paper); }
details.definition summary { cursor:pointer; font-weight:800; color:var(--navy); }
.repeat-group { border:1px solid var(--line); border-radius:.75rem; padding:1rem; margin:1rem 0; }
.repeat-group h3 { margin-top:0; }
.repeat-group-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.repeat-group-heading h3 { margin:0; }
.remove-program-instance { flex:none; }
.add-program-instance { margin:-.15rem 0 1.35rem; }
.program-dashboard-empty,.program-dashboard-card,.program-editor{border:1px solid var(--line);border-radius:.75rem;padding:1rem;background:#fbfdfe}.program-dashboard-empty{margin:1rem 0;max-width:44rem}.program-dashboard-list{display:grid;gap:.85rem;margin:1rem 0}.program-dashboard-card{display:flex;justify-content:space-between;gap:1rem;align-items:center;border-left:5px solid #95a6b0}.program-dashboard-card.in-progress{border-left-color:#d68b10}.program-dashboard-card.complete{border-left-color:#398b45}.program-dashboard-card h3,.program-editor h3{margin:.1rem 0 .35rem;color:var(--navy)}.program-card-position,.program-editor-breadcrumb,.program-editor-section{font-size:.9rem;font-weight:750;color:#496576;margin:.1rem 0}.program-status-badge{display:inline-block;margin:.15rem 0;padding:.15rem .5rem;border-radius:999px;font-size:.82rem;font-weight:800;background:#e7edf0;color:#405360}.program-status-badge.in-progress{background:#fff1d6;color:#815100}.program-status-badge.complete{background:#dff3df;color:#21652a}.program-progress{height:.45rem;width:min(18rem,100%);border-radius:999px;background:#dce6eb;overflow:hidden}.program-progress span{display:block;height:100%;background:#d68b10}.program-card-actions{display:flex;gap:.5rem;align-items:center;flex:none}.program-dashboard-tally{font-weight:800;margin:1rem 0 .25rem}.success-text{color:#21652a;font-weight:750}.program-editor{margin:1rem 0}.copy-program-details{border:1px solid var(--line);border-radius:.55rem;padding:.75rem;margin:.85rem 0;display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.copy-program-details p{width:100%;margin:0}.program-editor-actions{display:flex;justify-content:space-between;gap:.75rem;margin-top:1.25rem}.program-add-dialog{width:min(52rem,calc(100vw - 2rem));border:0;border-radius:.8rem;box-shadow:0 1.25rem 3rem rgba(10,40,55,.28)}.program-add-dialog::backdrop{background:rgba(20,28,36,.72)}.program-add-dialog form{padding:1.25rem}.program-add-dialog h3{margin:.1rem 0 .35rem}.program-add-dialog>form>label{display:block}.program-add-dialog input{width:100%}.program-add-question{margin:0;color:var(--teal);font-size:.82rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.additional-program-categories{display:grid;gap:.6rem;max-height:55vh;overflow:auto;margin:.85rem 0}.additional-program-area{padding:.65rem;border:1px solid var(--line);border-radius:.55rem;background:#f2f7f9}.additional-program-area summary{font-weight:850;color:var(--navy);cursor:pointer}.additional-program-area>p{margin:.5rem 0;color:#496576;font-size:.88rem}.additional-program-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.additional-program-category-grid label{display:flex;gap:.55rem;align-items:flex-start;padding:.6rem;border:1px solid #c9d8df;border-radius:.45rem;background:#fff;cursor:pointer}.additional-program-category-grid input{width:auto;margin-top:.2rem}.additional-program-category-grid span{display:grid;gap:.18rem}.additional-program-category-grid small{color:#496576;font-size:.78rem;line-height:1.3}
.program-incomplete-sections{margin:.35rem 0 .55rem;color:#5c4300;font-size:.9rem}
.program-copy-dialog{width:min(42rem,calc(100vw - 2rem));padding:0}.program-copy-dialog form{padding:1.35rem}.program-copy-dialog h3{margin-top:0}.program-copy-dialog [data-copy-warning]{font-weight:750;color:var(--navy)}
.copy-preview{margin:.85rem 0;padding:.65rem .8rem;border:1px solid #c9d8df;border-radius:.5rem;background:#f1f6f8}.copy-preview p{margin:0 0 .3rem;font-size:.88rem;font-weight:800;color:#274c60}.copy-preview ul{max-height:11rem;overflow:auto;margin:.2rem 0;padding-left:1.15rem;display:grid;gap:.2rem;font-size:.86rem;line-height:1.35}.copy-preview li{overflow-wrap:anywhere}.copy-preview-value{white-space:pre-line}.copy-preview small{display:block;margin-top:.45rem;color:#496576;font-size:.8rem}
.program-definition-cards{display:grid;gap:.65rem}.program-definition-card{border:1px solid #c9d8df;border-radius:.55rem;padding:.7rem;background:#eef3f5}.program-definition-card p{margin:0 0 .2rem;font-size:.78rem;font-weight:800;color:#496576;text-transform:uppercase;letter-spacing:.04em}.program-definition-card h4{margin:0 0 .35rem;color:var(--navy);font-size:.98rem}.program-definition-card div{font-size:.88rem;line-height:1.4;color:#365262}.program-definition-cards.compact{grid-template-columns:repeat(2,minmax(0,1fr));margin:.55rem 0 .75rem;max-width:52rem}.program-definition-cards.compact .program-definition-card{padding:.55rem .65rem;background:#f0f5f7}.program-definition-cards.compact .program-definition-card div{font-size:.8rem}.program-editor-body{display:block;position:relative}.program-definition-panel{position:absolute;left:calc(100% + 2rem);top:0;width:14rem;box-sizing:border-box;background:#e9eef1;border:1px solid #c9d8df;border-radius:.65rem;padding:.85rem}.program-definition-panel>h4{margin:.05rem 0 .7rem;color:var(--navy)}.selected-program-population{display:flex;align-items:end;gap:.75rem}.selected-program-population>section{flex:1;min-width:0}.selected-program-areas{margin:1rem 0}.selected-program-population .button{margin-bottom:.1rem;white-space:nowrap}.field-label{margin:0 0 .35rem;font-weight:750}.selected-population-list{margin:.2rem 0 .35rem;padding-left:1.35rem}.selected-population-list li+li{margin-top:.2rem}.program-name-field{display:block;max-width:none;width:100%}.program-name-field input{width:100%;box-sizing:border-box}
.location-row { display:grid; grid-template-columns:1fr 1fr auto; gap:.75rem; align-items:end; margin-top:.75rem; }
.status-banner { min-height:1.5rem; color:var(--success); font-weight:700; }
.error-summary { border-left:6px solid var(--danger); background:#fff1f0; color:#5f1611; padding:1rem; margin-bottom:1rem; }
.error-text { color:var(--danger); font-weight:750; }
.survey-actions { justify-content:space-between; border-top:1px solid var(--line); padding-top:1.2rem; margin-top:2rem; }
.survey-actions > #jump-end-button { margin-left:auto; }
.review-header, .admin-header { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; margin-bottom:1.2rem; }
.review-section { background:var(--white); border:1px solid var(--line); border-radius:.8rem; padding:1.25rem; margin-bottom:1rem; }
.review-section h3 { margin-top:0; color:var(--navy); }
.review-list { display:grid; grid-template-columns:minmax(180px,.55fr) 1fr; gap:.55rem 1rem; }
.review-list dt { font-weight:800; }
.review-list dd { margin:0; white-space:pre-wrap; }
.review-program-list{display:grid;gap:.7rem}.review-program-card{padding:.8rem .9rem;border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:.5rem;background:#f8fbfc}.review-program-card h4{margin:0 0 .65rem;color:var(--navy);font-size:1rem}.review-program-details{display:grid;grid-template-columns:minmax(9rem,.55fr) 1fr;gap:.35rem .75rem;margin:0}.review-program-details dt{font-weight:750}.review-program-details dd{margin:0;white-space:pre-wrap}
.submit-card { padding:1.2rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.confirmation-card { width:min(700px,100%); margin:4rem auto; padding:3rem; text-align:center; }
.success-icon { width:70px; height:70px; display:grid; place-items:center; border-radius:50%; background:#d9f5e7; color:var(--success); font-size:2rem; margin:0 auto 1rem; }
.admin-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:1rem; }
.card { padding:1.25rem; }
.stat-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.75rem; }
.stat { background:var(--paper); padding:1rem; border-radius:.7rem; }
.stat strong { display:block; font-size:2rem; color:var(--navy); }
.table-card { margin-top:1rem; }
.section-heading-row { justify-content:space-between; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th, td { padding:.8rem; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--navy); }
.generated-link { margin-top:1rem; padding:1rem; background:var(--paper); border-radius:.65rem; word-break:break-all; }.generated-link p{margin:.45rem 0;line-height:1.4}.generated-link.success{border-left:5px solid #278008}.generated-link.error{border-left:5px solid #b42318;background:#fff1f0;color:#8b1f16}
dialog { border:0; border-radius:1rem; padding:1.5rem; max-width:480px; box-shadow:var(--shadow); }
dialog::backdrop { background:rgba(0,0,0,.55); }
.app-message-dialog{width:min(32rem,calc(100vw - 2rem));padding:0;border:0;border-radius:.9rem;box-shadow:0 1.25rem 3rem rgba(8,28,39,.32)}
.app-message-dialog::backdrop{background:rgba(8,28,39,.68)}
.app-message-dialog-panel{display:grid;gap:1rem;padding:1.35rem}
.app-message-dialog-panel h2,.app-message-dialog-panel p{margin:0}
.app-message-dialog-panel [data-app-message-input-label]{display:grid;gap:.35rem;font-weight:700}
.app-message-dialog-panel input{width:100%;box-sizing:border-box}
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width: 850px) {
  .hero-card, .survey-shell, .admin-grid { grid-template-columns:1fr; }
  .progress-panel { position:static; }
  .feature-grid { grid-template-columns:1fr; }
  .option-grid { grid-template-columns:1fr; }
  .hero-actions { flex-direction:row; }
  .location-row { grid-template-columns:1fr; }
  .program-editor-body { grid-template-columns:1fr; }
  .program-definition-panel { position:static; }
}
@media (max-width: 560px) {
  .site-header, .review-header, .admin-header, .submit-card { align-items:stretch; flex-direction:column; }
  .header-actions, .hero-actions { flex-direction:column; align-items:stretch; }.admin-profile-button{justify-content:center}.admin-profile-menu{right:auto;left:0}
  .review-list { grid-template-columns:1fr; }
  .review-list dd { margin-bottom:.65rem; }
  .review-program-details{grid-template-columns:1fr}.review-program-details dd{margin-bottom:.25rem}
  .program-definition-cards.compact { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; } }

/* Public maintenance and the private Super Administrator control page use the same brand shell as the application. */
.maintenance-page{min-height:100vh;background:linear-gradient(180deg,#edf6f8 0,#f7f9fb 46rem)}
.maintenance-site-header{min-height:6.75rem}
.maintenance-container{display:grid;place-items:center;min-height:calc(100vh - 6.75rem);padding-block:clamp(2rem,9vh,7rem)}
.maintenance-card{width:min(46rem,100%);padding:clamp(1.75rem,5vw,3.75rem);border-top:7px solid var(--brand-green,var(--teal));text-align:center}
.maintenance-card h2{max-width:34rem;margin:.25rem auto 1rem;color:var(--brand-deep-blue,var(--navy));font-size:clamp(2rem,4vw,3.25rem);line-height:1.1}
.maintenance-copy{max-width:38rem;margin:0 auto;color:var(--muted);font-size:1.08rem}
.maintenance-end{display:inline-block;margin:1.5rem 0 0;padding:.65rem .9rem;border-radius:.55rem;background:#eaf5f4;color:var(--brand-deep-blue,var(--navy));font-weight:800}
.maintenance-control-card{text-align:left;width:min(36rem,100%)}
.maintenance-control-card h2,.maintenance-control-card .eyebrow,.maintenance-control-card .help-text{margin-left:0;margin-right:0}
.maintenance-control-card form{margin-top:1.25rem}
.maintenance-control-card #maintenance-control-actions{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--line)}
.maintenance-control-card #maintenance-control-actions .maintenance-copy{margin:0 0 1rem}
.maintenance-progress{display:flex;align-items:center;gap:.6rem;margin:.85rem 0 0;color:var(--brand-deep-blue,var(--navy));font-weight:750}
.maintenance-progress::before{content:"";width:1rem;height:1rem;border:.18rem solid var(--brand-pale-blue,var(--line));border-top-color:var(--brand-teal,var(--teal));border-radius:50%;animation:maintenance-spin .7s linear infinite}
@keyframes maintenance-spin{to{transform:rotate(360deg)}}

.address-fieldset { border:1px solid var(--line); border-radius:.65rem; padding:1rem; margin:1rem 0; }
.address-fieldset legend { font-weight:750; padding:0 .35rem; }
.address-modifier { display:inline-flex; align-items:center; gap:.55rem; margin:0; font-weight:700; }
.address-modifier input { margin:0; }
.program-add-dialog .address-modifier input { width:auto; flex:0 0 auto; }
.address-modifier-row { display:flex; flex-wrap:wrap; gap:1.1rem; }
.canonical-location-actions { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:.8rem; }
.address-fields { margin-top:1rem; }
.address-confidential-setting { border-top:1px solid var(--line); margin-top:1.25rem; padding-top:1rem; }
.address-confidential-setting .field-caption { margin:.3rem 0 0 1.8rem; }
.address-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.9rem; }
.address-grid label { margin:0; }
.address-wide { grid-column:1 / -1; }
.field-error { color:var(--danger); font-weight:750; margin-top:.75rem; }
[aria-invalid="true"] { border-color:var(--danger) !important; box-shadow:0 0 0 1px var(--danger); }
input:disabled, select:disabled { background:#eef2f4; color:#52616b; cursor:not-allowed; }
@media (max-width:650px) { .address-grid { grid-template-columns:1fr; } .address-wide { grid-column:auto; } }
.address-tools { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; margin-top:.8rem; }
.address-status { font-weight:650; }
.field-caption { display:block; margin-top:.3rem; color:var(--muted); font-size:.86rem; font-weight:500; line-height:1.35; }
.address-validation-caption { margin:.4rem 0 0; }
.address-suggestion { margin-top:.8rem; padding:1rem; border:1px solid var(--line); border-radius:.65rem; background:var(--paper); }
.address-suggestion p { margin:.25rem 0 .75rem; }
.admin-login-card{max-width:36rem;margin:2rem auto}.button-row{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}.button.danger{border-color:#a11;color:#8b0000;background:#fff}.button.danger:hover{background:#fff2f2}.help-text{font-size:.92rem;color:var(--muted, #555)}
.state-selector { border:1px solid var(--line); border-radius:.65rem; padding:1rem; max-height:24rem; overflow:auto; }
.state-checkbox-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
.county-picker { border:1px solid var(--line); border-radius:.65rem; padding:1rem; margin-top:1rem; }
.county-instruction { margin:.2rem 0 .55rem; font-weight:750; color:var(--ink); }
.county-methods { margin:.45rem 0 1rem; }
.county-search{display:grid;gap:.35rem;max-width:28rem;margin:.85rem 0}.county-search label{margin:0;font-weight:700}.county-search input{width:100%;margin:0}.county-search .help-text{min-height:1.4rem;margin:0}
.state-search{display:grid;gap:.35rem;max-width:28rem;margin:.85rem 0}.state-search label{margin:0;font-weight:700}.state-search input{width:100%;margin:0}.state-search .help-text{min-height:1.4rem;margin:0}.state-search-hidden{display:none !important}
.county-loading { padding:.75rem; background:var(--paper); border-radius:.5rem; }
.county-state { border:1px solid var(--line); border-radius:.55rem; margin:.6rem 0; background:var(--paper); }
.county-state summary { cursor:pointer; padding:.75rem; font-weight:800; }
.county-checkbox-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; padding:0 .75rem .75rem; }
.county-option { background:var(--white); }
.county-picker .county-search-hidden { display:none !important; }
.area-search-field{position:relative;min-width:0}
.county-picker{min-width:0}
.area-search-panel{position:absolute;top:100%;left:0;right:0;box-sizing:border-box;max-width:100%;max-height:22rem;overflow-y:auto;z-index:20;background:#fff;color:#173f50;border:2px solid #005a78;border-radius:.4rem;box-shadow:0 4px 14px #0003}
.area-search-panel[hidden],.area-search-panel [hidden]{display:none!important}
.area-search-option{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:44px;padding:.65rem .75rem;border-bottom:1px solid #b5cbd3;cursor:pointer;overflow-wrap:anywhere}
.area-search-option>span{flex:1;min-width:0}
.area-search-action{flex:0 0 auto;max-width:45%;font-size:.9rem;text-align:right;color:#00516c;white-space:normal;overflow-wrap:anywhere}
.area-search-option:hover,.area-search-option.is-active{background:#e1f0f5;outline:2px solid #005a78;outline-offset:-3px}
.area-search-panel button{display:block;min-height:44px;width:100%;padding:.65rem .75rem;background:#fff;color:#00516c;border:1px solid #b5cbd3;text-align:left;cursor:pointer;white-space:normal}
.area-search-panel button:focus-visible{outline:3px solid #005a78;outline-offset:-3px}
.area-search-panel p{padding:.65rem .75rem;margin:0;color:#173f50}
@media(max-width:650px){.area-search-option{flex-direction:column;align-items:stretch;gap:.4rem}.area-search-action{max-width:100%;text-align:left}}
@media(max-width:650px){.program-editor:has(.county-picker) .program-editor-actions,.program-editor:has(.county-picker) .program-population-heading,.program-editor:has(.county-picker) .category-option-card{flex-wrap:wrap}}
@media(forced-colors:active){.area-search-option.is-active{outline-color:Highlight}.area-search-panel button:focus-visible{outline-color:Highlight}}
.county-count { color:var(--muted); font-weight:600; }
@media(max-width:650px){.state-checkbox-grid,.county-checkbox-grid{grid-template-columns:1fr;}}
.service-picker { border:1px solid var(--line); border-radius:.65rem; padding:1rem; margin:1rem 0; }
.service-option-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; align-items:start; }
.service-item { min-width:0; border:1px solid var(--line); border-radius:.55rem; background:var(--paper); padding:.7rem; }
/* Nested service choices need room to remain attached to their parent.
   A full-width card prevents a tall list such as Foster Care from stretching
   an unrelated neighboring service card into a large blank panel. */
.service-item:has(.service-suboptions) { grid-column:1 / -1; }
.service-suboptions { margin:.5rem 0 0 1.7rem; padding-left:.75rem; border-left:3px solid var(--line); display:grid; gap:.35rem; }
.service-suboptions .check-row { min-width:0; }
.county-bulk-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; margin-bottom:.8rem; }
.county-action { background:#f6fbfc; }
.county-selection-count{margin:.35rem 0 .7rem;font-weight:800;color:#123f52}.county-list-details{border:1px solid var(--line);border-radius:.6rem;background:var(--paper);margin-top:.35rem}.county-list-details>summary{cursor:pointer;padding:.8rem 1rem;font-weight:800;color:#123f52}.county-list-tools{padding:.15rem 1rem .55rem;border-top:1px solid var(--line);background:#f6fbfc}.county-list-states{padding:0 .7rem .7rem}
.county-map-dialog{width:min(98vw,92rem);max-width:92rem;padding:0}.county-map-dialog-shell{padding:1.25rem}.county-map-header{display:flex;align-items:start;justify-content:space-between;gap:1rem}.county-map-header h2{margin:0}.county-map-status{margin:.5rem 0 1rem}.county-map-canvas{min-height:32rem;max-height:76vh;overflow:auto;border:1px solid var(--line);border-radius:.65rem;background:#eef6f8;padding:.5rem}.county-map-canvas svg{display:block;width:100%;min-width:48rem;height:auto}.county-map-county{fill:#fff;stroke:#7a8b96;stroke-width:.45;cursor:pointer}.county-map-county:hover,.county-map-county:focus{fill:#d3edf2;stroke:#124866;stroke-width:1.2;outline:none}.county-map-county.is-selected{fill:#157a8a;stroke:#093f4b}.county-map-label{font-size:10px;font-weight:700;fill:#173c4a;pointer-events:none;text-anchor:middle;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}.county-map-tooltip{position:fixed;z-index:20;width:min(22rem,calc(100vw - 2rem));padding:.75rem 1rem;border:1px solid #124866;border-radius:.6rem;background:#fff;box-shadow:var(--shadow);pointer-events:none}.county-map-tooltip strong{display:block;color:#123f52}.county-map-tooltip p{margin:.35rem 0 0;font-size:.9rem;line-height:1.35}.county-map-loading{padding:2rem;text-align:center}.county-map-actions{display:flex;justify-content:flex-end;gap:.75rem;flex-wrap:wrap;margin-top:1rem}@media(max-width:650px){.county-map-dialog-shell{padding:1rem}.county-map-canvas{min-height:26rem}.county-map-canvas svg{min-width:38rem}}
.county-map-dialog{width:min(98vw,92rem);max-width:92rem;padding:0}.county-map-dialog-shell{padding:1.25rem}.county-map-header{display:flex;align-items:start;justify-content:space-between;gap:1rem}.county-map-header h2{margin:0}.county-map-status{margin:.5rem 0 1rem}.county-map-controls{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:.75rem 0}.county-map-controls .button{min-width:2.45rem;padding:.45rem .65rem}.county-map-pan-label{font-weight:700;margin-left:.25rem}.county-map-canvas{height:min(48vh,30rem);overflow:hidden;border:1px solid var(--line);border-radius:.65rem;background:#eef6f8;padding:.5rem}.county-map-canvas svg{display:block;width:100%;min-width:48rem;height:100%;cursor:grab;touch-action:none}.county-map-canvas svg:active{cursor:grabbing}.county-map-county{fill:#fff;stroke:#7a8b96;stroke-width:.45;cursor:pointer}.county-map-county:hover,.county-map-county:focus{fill:#d3edf2;stroke:#124866;stroke-width:1.2;outline:none}.county-map-county.is-selected{fill:#157a8a;stroke:#093f4b}.county-map-label{font-size:10px;font-weight:700;fill:#173c4a;pointer-events:none;text-anchor:middle;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}.county-map-city-marker{fill:#b5462f;stroke:#fff;stroke-width:1.5;pointer-events:none}.county-map-city-label{font-size:12px;font-weight:700;fill:#6f2115;pointer-events:none;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}.county-map-tooltip{position:fixed;z-index:20;width:min(22rem,calc(100vw - 2rem));padding:.75rem 1rem;border:1px solid #124866;border-radius:.6rem;background:#fff;box-shadow:var(--shadow);pointer-events:none}.county-map-tooltip strong{display:block;color:#123f52}.county-map-tooltip p{margin:.35rem 0 0;font-size:.9rem;line-height:1.35}.county-map-selected{margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:.65rem;background:var(--paper);max-height:12rem;overflow:auto}.county-map-selected h3{margin:0 0 .5rem}.county-map-selected p,.county-map-selected ul{margin:.25rem 0}.county-map-selected ul{columns:3;column-gap:2rem;padding-left:1.25rem}.county-map-selected li{break-inside:avoid;margin:.15rem 0}.county-map-loading{padding:2rem;text-align:center}.county-map-actions{display:flex;justify-content:flex-end;gap:.75rem;flex-wrap:wrap;margin-top:1rem}@media(max-width:650px){.county-map-dialog-shell{padding:1rem}.county-map-canvas{height:40vh;min-height:20rem}.county-map-canvas svg{min-width:38rem}.county-map-selected ul{columns:1}}
.county-map-city-search{position:relative;max-width:34rem;margin:.6rem 0}.county-map-city-search label{display:block;margin-bottom:.3rem;font-weight:700}.county-map-city-search input{width:100%}.county-map-city-results{position:absolute;z-index:8;width:100%;max-height:13rem;overflow:auto;background:#fff;border-radius:.5rem;box-shadow:var(--shadow)}.county-city-result{display:block;width:100%;padding:.6rem .75rem;border:1px solid var(--line);background:#fff;color:var(--ink);text-align:left;cursor:pointer}.county-city-result:hover,.county-city-result:focus{background:#eaf5f7}.county-city-result span{color:var(--muted);font-size:.9em}.county-map-county.is-city-match{fill:#f5b942;stroke:#8a5400;stroke-width:2.2}
.county-map-dialog{max-height:96vh;overflow-y:auto}.county-map-city-search [data-select-highlighted-county]{margin-top:.65rem}.county-map-county.is-selected.is-city-match{fill:#157a8a;stroke:#093f4b;stroke-width:2.2}
.county-map-canvas{position:relative;height:min(34vh,24rem)}.county-map-selected{height:10rem;max-height:10rem;overflow-y:auto;scrollbar-gutter:stable}
.county-map-dialog{height:calc(100vh - 2rem);max-height:none;overflow:hidden}.county-map-dialog-shell{display:flex;flex-direction:column;height:100%;overflow:hidden}.county-map-canvas{height:auto;min-height:12rem;flex:1 1 auto}.county-map-selected{height:8rem;min-height:8rem;max-height:8rem;flex:0 0 8rem}.county-map-actions{flex:0 0 auto}
.county-map-dialog::backdrop{background:rgba(4,18,27,.88)}.county-map-legend{display:flex;gap:1rem;align-items:center;margin:-.25rem 0 .45rem;font-size:.88rem;font-weight:700;color:#264653}.county-map-legend span{display:inline-flex;align-items:center;gap:.35rem}.county-map-legend i{width:.9rem;height:.9rem;border-radius:.2rem;border:1px solid #093f4b}.legend-selected{background:#157a8a}.legend-highlighted{background:#f5b942;border-color:#8a5400!important}.county-map-county,.county-map-hit-target{cursor:crosshair}.county-map-selected{position:relative;padding:.8rem 1rem 1.1rem;line-height:1.55;color:var(--ink);box-shadow:inset 0 10px 10px -13px rgba(10,42,58,.7),inset 0 -12px 12px -15px rgba(10,42,58,.8)}.county-map-selected::after{display:none}.county-map-selected li{color:inherit;line-height:1.55;padding:.05rem 0}.county-map-tooltip{max-width:min(22rem,calc(100vw - 2rem));z-index:30}.county-map-county:focus{stroke-width:2.4}.county-map-county.is-small-region{stroke-width:7!important;stroke-linejoin:round}
.county-map-county.is-hovered{stroke:#124866;stroke-width:2.6;filter:drop-shadow(0 0 1px #fff)}.county-map-county:not(.is-selected).is-hovered{fill:#d3edf2}.county-map-hit-target{fill:transparent;stroke:transparent;stroke-width:32;pointer-events:all;cursor:crosshair}
.county-map-small-city-callout{font-size:12px;font-weight:800;fill:#123f52;text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.county-map-small-city-leader{stroke:#124866;stroke-width:1.4;pointer-events:none}
.county-map-county{stroke:#607888;stroke-width:1.15;vector-effect:non-scaling-stroke}.county-map-county.is-selected{stroke:#073e4a;stroke-width:1.75}.county-map-county:hover,.county-map-county:focus,.county-map-county.is-hovered{stroke-width:2.5}.county-map-label{font-size:11px}
.legend-hovered{background:#eadcff;border-color:#6f2dbd!important}.county-map-county.is-hovered{stroke:#6f2dbd;stroke-width:3.25;filter:drop-shadow(0 0 2px #fff)}.county-map-county:not(.is-selected).is-hovered{fill:#eadcff}.county-map-hover-leader{stroke:#6f2dbd;stroke-width:1.6;stroke-dasharray:4 3;pointer-events:none}.county-map-hover-marker{fill:#fff;stroke:#6f2dbd;stroke-width:2.5;pointer-events:none}.county-map-canvas svg,.county-map-canvas svg *{cursor:none!important}.county-map-pointer-crosshair{position:absolute;z-index:4;width:1.5rem;height:1.5rem;transform:translate(-50%,-50%);pointer-events:none}.county-map-pointer-crosshair::before,.county-map-pointer-crosshair::after{content:'';position:absolute;background:#6f2dbd;box-shadow:0 0 0 1px #fff}.county-map-pointer-crosshair::before{width:100%;height:2px;left:0;top:calc(50% - 1px)}.county-map-pointer-crosshair::after{width:2px;height:100%;left:calc(50% - 1px);top:0}
.county-map-county.is-city-match:not(.is-selected){fill:#f5b942!important;stroke:#8a5400!important;stroke-width:3.5!important;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 2px #f5b942)}
.county-map-county.is-selected.is-city-match{fill:url(#county-map-selected-search-pattern)!important;stroke:#073e4a!important;stroke-width:3.5!important;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 2px #f5b942)}.county-city-result.is-selected-result{background:#edf8fa}.county-result-selected{float:right!important;color:#0b5e6b!important;font-size:.8em!important;font-weight:800}
.legend-selected-search{background:repeating-linear-gradient(45deg,#157a8a 0 5px,#f5b942 5px 10px)!important}
@media(max-width:650px){.service-option-grid,.county-bulk-actions{grid-template-columns:1fr;}}

.token-resume-panel{margin-top:1.25rem;padding:1rem;border:1px solid var(--border);border-radius:.75rem}.inline-form{display:flex;gap:.5rem;align-items:end;flex-wrap:wrap}.inline-form input{flex:1;min-width:15rem}.action-stack{display:flex;gap:.4rem;flex-wrap:wrap}.action-stack .button{padding:.5rem .7rem;font-size:.875rem}dialog textarea{width:100%;font-family:ui-monospace,Consolas,monospace}.danger{border-color:#9b1c1c;color:#8b0000}
.save-link-status{margin:.7rem 0 0;padding:.7rem;border-radius:.55rem;background:#eef6f8;color:#124866;font-size:.92rem;line-height:1.4}.save-link-status.error{background:#fff1f0;color:#8b1f16;border-left:4px solid #b42318}.save-link-status.success{background:#f2faed;color:#2d6b18;border-left:4px solid #6fae41}
.audit-change-list{margin:0;padding-left:1.25rem;display:grid;gap:.45rem}.audit-change-list li{line-height:1.4}.audit-change-empty{color:var(--muted,#52606d)}
.group-data-controls{display:flex;gap:.6rem;align-items:end;flex-wrap:wrap}.group-data-controls label{margin:0}.group-data-controls select{min-width:16rem}.button-row.compact{margin:0}.spreadsheet-wrap{overflow:auto;max-height:38rem;border:1px solid var(--line);border-radius:.55rem;background:#fff}.spreadsheet-grid{border-collapse:separate;border-spacing:0;min-width:max-content;font-size:.88rem}.spreadsheet-grid th{position:sticky;top:0;z-index:2;background:#eef4f6;border-right:1px solid var(--line);white-space:nowrap}.spreadsheet-grid td{padding:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:10rem;max-width:24rem}.spreadsheet-grid td.grid-fixed{padding:.55rem;background:#f8fafb;position:sticky;left:0;z-index:1;min-width:9rem}.spreadsheet-grid td[contenteditable="true"]{padding:.55rem;outline:none;white-space:pre-wrap}.spreadsheet-grid td[contenteditable="true"]:focus{box-shadow:inset 0 0 0 3px #f4b942;background:#fffdf4}.spreadsheet-grid .row-actions{padding:.35rem;white-space:nowrap;background:#fff;position:sticky;right:0}.spreadsheet-grid .changed{background:#fff8dc}.state-selector#edit-group-states{max-height:18rem;overflow:auto;padding:.75rem;border:1px solid var(--line);border-radius:.55rem}

/* v7.2 full-width spreadsheet modal */
.full-width-dialog{width:calc(100vw - 2rem);max-width:none;height:calc(100vh - 2rem);max-height:none;margin:1rem;padding:0;border:0;border-radius:.8rem;overflow:hidden}
.full-width-dialog::backdrop{background:rgba(8,35,54,.55)}
.grid-dialog-shell{height:100%;display:flex;flex-direction:column;background:var(--surface,#fff)}
.grid-dialog-header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;padding:1rem 1.25rem;border-bottom:1px solid var(--line)}
.grid-dialog-header h2{margin:0}.grid-toolbar{display:flex;gap:.6rem;flex-wrap:wrap;padding:.75rem 1.25rem;border-bottom:1px solid var(--line);background:#f7fafb}
.modal-spreadsheet-wrap{flex:1;max-height:none;border-radius:0;border-width:1px 0 0;min-height:0}
.spreadsheet-horizontal-scroll-control{display:flex;align-items:center;gap:.75rem;padding:.55rem 1.25rem;border-top:1px solid var(--line);background:#f7fafb;font-weight:700}.spreadsheet-horizontal-scroll-control input{flex:1;min-width:12rem}.spreadsheet-horizontal-scroll-control[hidden]{display:none}
.spreadsheet-grid tbody tr:nth-child(even) td{background:#f3f7f9}.spreadsheet-grid tbody tr:nth-child(odd) td{background:#fff}
.spreadsheet-grid tbody tr:nth-child(even) td.grid-fixed{background:#eaf1f4}.spreadsheet-grid tbody tr:nth-child(odd) td.grid-fixed{background:#f8fafb}
.spreadsheet-grid tbody tr.selected-row td,.spreadsheet-grid tbody tr.selected-row td.grid-fixed{background:#dceff6!important}
.spreadsheet-grid .select-column{min-width:3rem;width:3rem;text-align:center;position:sticky;left:0;z-index:3}
.spreadsheet-grid td.grid-fixed{left:3rem}.spreadsheet-grid th.grid-fixed-header{position:sticky;left:3rem;z-index:4}
.spreadsheet-grid tbody tr{cursor:default}.spreadsheet-grid tbody tr:focus{outline:3px solid #f4b942;outline-offset:-3px}
@media(max-width:700px){.full-width-dialog{width:100vw;height:100vh;margin:0;border-radius:0}.grid-dialog-header{padding:.75rem}.grid-toolbar{padding:.6rem}}


/* v7.3 stability and accessibility */
body.modal-open{overflow:hidden}
.grid-shortcuts{margin:.25rem 0 0}
.spreadsheet-grid tbody tr.unsaved-row td.grid-fixed::after{content:'Unsaved';display:inline-block;margin-left:.4rem;padding:.1rem .35rem;border-radius:.3rem;background:#7a4b00;color:#fff;font-size:.72rem;font-weight:700}
.spreadsheet-grid td.changed{background:#fff2b8!important;box-shadow:inset 0 0 0 2px #8a5a00}
.status-banner:not(:empty){padding:.65rem 1.25rem;border-bottom:1px solid var(--line);background:#f5fafc;font-weight:650}
.recycle-action-status{margin:.75rem 0}.recycle-action-status.progress{border-left:4px solid #005f8d;background:#eef7fb;color:#124866}.recycle-action-status.warning{border-left:4px solid #a65d00;background:#fff7df;color:#704600}.recycle-action-status.error{border-left:4px solid #b42318;background:#fff1f0;color:#8b1f16}.recycle-action-status.success{border-left:4px solid #16794a;background:#f0f9f2;color:#1e6538}
@media (forced-colors:active){.spreadsheet-grid tbody tr.selected-row{outline:3px solid Highlight}.spreadsheet-grid td.changed{outline:3px solid Highlight}}

/* v7.4 grid usability */
.grid-filter-bar{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap;padding:.85rem 1.25rem;border-bottom:1px solid var(--line);background:#fff}
.grid-filter-field{display:flex;flex-direction:column;gap:.25rem;min-width:9rem}.grid-filter-field label{margin:0;font-size:.82rem;font-weight:700}.grid-search-field{flex:1;min-width:18rem}.grid-filter-field input,.grid-filter-field select{margin:0}
.grid-results-bar{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.5rem 1.25rem;background:#f7fafb;border-bottom:1px solid var(--line);font-weight:700}.grid-results-bar .help-text{margin:0;font-weight:400}
.grid-columns-menu{position:relative}.grid-columns-menu>summary{list-style:none;cursor:pointer}.grid-columns-menu>summary::-webkit-details-marker{display:none}.grid-columns-panel{position:absolute;right:0;top:calc(100% + .35rem);z-index:20;width:min(34rem,90vw);max-height:28rem;overflow:auto;padding:.8rem;background:#fff;border:1px solid var(--line);border-radius:.55rem;box-shadow:0 12px 32px rgba(0,0,0,.18)}
.columns-panel-header{display:flex;justify-content:space-between;gap:1rem;align-items:center;position:sticky;top:-.8rem;background:#fff;padding:.4rem 0 .7rem;z-index:1}.grid-column-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem .8rem}.text-button{border:0;background:none;color:var(--link,#075985);text-decoration:underline;cursor:pointer;font:inherit}
.grid-sort-button{display:block;width:100%;border:0;background:transparent;padding:.65rem .7rem;text-align:left;font:inherit;font-weight:700;white-space:nowrap;cursor:pointer;color:inherit}.grid-sort-button:hover,.grid-sort-button:focus-visible{background:#dcebf1;outline:2px solid #1d5f78;outline-offset:-2px}.grid-sort-button.active{background:#d9eaf0}
.submission-sort-button{border:0;background:transparent;color:inherit;font:inherit;font-weight:700;padding:.65rem .7rem;margin:-.65rem -.7rem;width:calc(100% + 1.4rem);text-align:left;cursor:pointer;white-space:nowrap}.submission-sort-button:hover,.submission-sort-button:focus-visible{background:#dcebf1;outline:2px solid #1d5f78;outline-offset:-2px}.submission-sort-button.active{background:#d9eaf0}
.spreadsheet-grid th{padding:0}.spreadsheet-grid .grid-col-status,.spreadsheet-grid td.grid-status-cell{position:sticky;left:12rem;z-index:2;min-width:7rem}.spreadsheet-grid .grid-col-updatedAt,.spreadsheet-grid td.grid-updated-cell{position:sticky;left:19rem;z-index:2;min-width:11rem}.spreadsheet-grid thead .grid-col-status,.spreadsheet-grid thead .grid-col-updatedAt{z-index:5}.spreadsheet-grid td.grid-status-cell,.spreadsheet-grid td.grid-updated-cell{box-shadow:1px 0 0 var(--line)}
.spreadsheet-grid tbody tr:nth-child(even) td.grid-status-cell,.spreadsheet-grid tbody tr:nth-child(even) td.grid-updated-cell{background:#f3f7f9}.spreadsheet-grid tbody tr:nth-child(odd) td.grid-status-cell,.spreadsheet-grid tbody tr:nth-child(odd) td.grid-updated-cell{background:#fff}.spreadsheet-grid tbody tr.selected-row td.grid-status-cell,.spreadsheet-grid tbody tr.selected-row td.grid-updated-cell{background:#dceff6!important}
.grid-empty-state{padding:2rem!important;text-align:center;min-width:40rem!important}.grid-primary-toolbar{position:relative;z-index:3}
@media(max-width:800px){.grid-column-options{grid-template-columns:1fr}.grid-results-bar{align-items:flex-start;flex-direction:column}.grid-search-field{min-width:100%}.spreadsheet-grid .grid-col-status,.spreadsheet-grid td.grid-status-cell,.spreadsheet-grid .grid-col-updatedAt,.spreadsheet-grid td.grid-updated-cell{position:static}}

/* v7.5.3 form spacing and phone/address usability */
label:not(.check-row) > input:not([type="checkbox"]):not([type="radio"]),
label:not(.check-row) > select,
label:not(.check-row) > textarea { display:block; margin-top:.45rem; }
.repeat-group > label:not(.check-row) { margin-bottom:.9rem; }
.repeat-group > label:not(.check-row) > input:focus,
.repeat-group > label:not(.check-row) > select:focus,
.repeat-group > label:not(.check-row) > textarea:focus { position:relative; z-index:1; }

/* v7.5.4 comprehensive form spacing audit */
:root {
  --field-gap: .5rem;
  --field-block-gap: 1.15rem;
  --section-gap: 1.5rem;
}

/* Give every conventional label/control pair predictable separation. */
label:not(.check-row):not(.option-card):not(.county-action) {
  margin-top: var(--field-block-gap);
  margin-bottom: 0;
}
label:not(.check-row):not(.option-card):not(.county-action) > input:not([type="checkbox"]):not([type="radio"]),
label:not(.check-row):not(.option-card):not(.county-action) > select,
label:not(.check-row):not(.option-card):not(.county-action) > textarea {
  display: block;
  margin-top: var(--field-gap);
}

/* Labels that use for= and have a separate sibling control. */
form > label[for],
.card form > label[for],
dialog form > label[for],
.token-resume-panel > label[for] {
  display: block;
  margin-bottom: var(--field-gap);
}
form > label[for] + input,
form > label[for] + select,
form > label[for] + textarea,
.card form > label[for] + input,
.card form > label[for] + select,
.card form > label[for] + textarea,
dialog form > label[for] + input,
dialog form > label[for] + select,
dialog form > label[for] + textarea,
.token-resume-panel > label[for] + input,
.token-resume-panel > label[for] + select,
.token-resume-panel > label[for] + textarea {
  margin-top: 0;
}

/* Maintain breathing room between fields, groups, and explanatory text. */
.question-card > .help-text,
.repeat-group > .help-text { margin:.4rem 0 1rem; }
.question-card > fieldset,
.question-card > .repeat-group,
.repeat-group > fieldset,
.repeat-group > .service-picker,
.repeat-group > .county-picker,
.repeat-group > .address-fieldset { margin-top: var(--section-gap); margin-bottom: var(--section-gap); }
.repeat-group > .check-row + .check-row { margin-top:.7rem; }
.repeat-group > label:not(.check-row):not(.option-card) { margin-top:1.15rem; margin-bottom:0; }
.repeat-group > label:not(.check-row):not(.option-card) + .option-grid { margin-top:.55rem; }
.program-population-fields { border:1px solid var(--line); border-radius:.65rem; padding:1rem; margin:1.35rem 0; }
.program-population-fields legend { padding:0 .35rem; font-size:1rem; font-weight:750; color:var(--ink); }
.program-capacity-fields { border:1px solid var(--line); border-radius:.65rem; padding:1rem; margin:1.35rem 0; }
.program-capacity-fields legend { padding:0 .35rem; font-size:1rem; font-weight:750; color:var(--ink); }
.program-capacity-question { margin:1.15rem 0 .55rem; font-weight:750; }
.program-capacity-question .field-caption { display:inline; }
.capacity-other-field { margin-top:.75rem; }
.other-detail-field { display:block; margin-top:.75rem; }
.other-detail-field strong { display:block; margin-bottom:.3rem; }
.other-option-group { display:flex; flex-direction:column; align-items:stretch; }
.other-option-group > label:first-child { display:flex; align-items:center; gap:.6rem; }
.service-item .other-detail-field { padding:.25rem .75rem .75rem; margin:.25rem 0 0; }
.service-item .other-detail-field textarea { min-height:5rem; resize:vertical; }
.program-population-section { margin-top:1.25rem; }
.program-population-label { margin:0; font-size:.95rem; font-weight:800; color:var(--ink); }
.program-population-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.program-population-heading .option-card { border:0; padding:0; white-space:nowrap; }
.program-population-heading .age-range-select-all { margin:0; white-space:nowrap; }
.program-population-section > .help-text { margin:.25rem 0 .6rem; font-size:.9rem; }
.citizenship-option-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr)); }
.address-source-choice { display:grid; gap:.55rem; margin:1rem 0; padding:.8rem 1rem; border:1px solid var(--line); border-radius:.6rem; }
.address-source-choice .address-modifier { display:flex; align-items:flex-start; gap:.55rem; margin:0; }

/* Standardize fieldset and legend spacing without crowding controls. */
fieldset:not(.address-fieldset):not(.state-selector):not(.county-picker):not(.service-picker) {
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
}
legend { padding:0 .25rem; }
legend + .help-text { margin-top:.25rem; }

/* Address fields already use a grid; use grid gaps rather than label margins. */
.address-grid label {
  margin:0;
  display:block;
}
.address-grid label > input,
.address-grid label > select,
.address-grid label > textarea { margin-top:var(--field-gap); }
.address-tools { margin-top:1rem; }

/* Checkbox/radio cards should not inherit conventional field margins. */
.check-row,
.option-card,
.county-action { margin-top:0; margin-bottom:0; }
.option-grid,
.service-option-grid,
.county-bulk-actions { margin-top:.65rem; }

/* Give standalone controls and action rows consistent separation. */
.button-row,
.dialog-actions,
.survey-actions { row-gap:.75rem; }
.field-error { margin-top:.55rem; }
.status-banner { margin-top:.5rem; }
.inline-form { row-gap:.65rem; }
.inline-form > label { margin:0 0 .25rem; }

/* Keep focus rings clear of adjacent labels and controls. */
input:not([type="checkbox"]):not([type="radio"]), select, textarea { outline-offset:3px; }
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
select:focus-visible,
textarea:focus-visible { position:relative; z-index:2; }

/* Responsive spacing: avoid oversized vertical gaps on narrow screens. */
@media(max-width:650px){
  :root { --field-block-gap:1rem; --section-gap:1.25rem; }
  .question-panel { padding:1.15rem; }
  .repeat-group { padding:.9rem; }
}

/* v7.5.6 strengthened bulk actions */
.grid-primary-toolbar{align-items:end;flex-wrap:wrap;gap:.75rem}.bulk-action-field{display:flex;flex-direction:column;gap:.25rem;min-width:13rem}.bulk-action-field label{font-size:.82rem;font-weight:700}.bulk-action-field select{min-height:2.8rem}.bulk-result-success{border-left:4px solid #16794a}.bulk-result-warning{border-left:4px solid #a65d00}#bulk-delete-dialog{width:min(38rem,calc(100vw - 2rem))}#bulk-delete-dialog textarea{width:100%;box-sizing:border-box;margin-top:.4rem}
.program-data-reset-warning-dialog{width:min(42rem,calc(100vw - 2rem));border:0;border-radius:1rem;padding:0;box-shadow:0 1.25rem 3.5rem rgba(58,29,0,.3)}.program-data-reset-warning-dialog::backdrop{background:rgba(20,28,36,.64)}.program-data-reset-warning-dialog form{padding:1.6rem 1.75rem}.program-data-reset-warning-dialog h2{margin:.2rem 0 .85rem}.program-data-reset-warning-dialog .danger-banner{margin:1rem 0}.warning-eyebrow{color:#9a3412}


/* v7.5.7 editing safeguards */
.grid-cell-editor{width:100%;min-width:10rem;box-sizing:border-box;border:1px solid transparent;background:transparent;padding:.55rem .6rem;font:inherit;color:inherit;border-radius:.35rem}
.grid-cell-editor:hover,.grid-cell-editor:focus{background:#fff;border-color:#71879a;outline:3px solid transparent}
.grid-cell-editor:focus{outline:3px solid #f4b942;outline-offset:1px}
.grid-json-editor{min-width:18rem;resize:vertical;white-space:pre-wrap}
.grid-cell-invalid{border-color:#b42318!important;background:#fff5f5!important;outline:3px solid rgba(180,35,24,.18)!important}
.spreadsheet-grid tr.unsaved-row>td:first-child{box-shadow:inset 4px 0 0 #c27803}
.spreadsheet-grid .row-actions{gap:.35rem;flex-wrap:wrap}
/* v7.5.8 submission administration */
.submission-detail-dialog{width:min(1100px,96vw);max-height:94vh;padding:0;border:0;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.submission-detail-shell{padding:1.5rem;overflow:auto;max-height:94vh}
.detail-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin:1rem 0}
.detail-summary-item{border:1px solid var(--border,#ccd8df);border-radius:12px;padding:1rem;background:#f7fafb}
.detail-summary-item strong{display:block;margin-bottom:.35rem}
.detail-section{border-top:1px solid var(--border,#ccd8df);padding-top:1.25rem;margin-top:1.25rem}
.detail-section label{display:block;margin-top:1rem;margin-bottom:.4rem;font-weight:700}
.admin-notes-list{display:grid;gap:.75rem;margin:.75rem 0 1rem}
.admin-note{border-left:4px solid #0b8998;background:#f4f9fa;padding:.85rem 1rem;border-radius:8px}
.admin-note small{display:block;margin-top:.35rem;color:#4d6573}
.review-badge{display:inline-block;padding:.25rem .55rem;border-radius:999px;background:#e8f1f4;font-weight:700;font-size:.85rem}


/* v8.2 dual audit log presentation */
.audit-log-section{margin-top:2rem;padding-top:1.25rem;border-top:1px solid var(--border,#d6dde5)}
.audit-table-wrap{max-height:32rem;overflow:auto}
.audit-details{white-space:pre-wrap;word-break:break-word;max-width:42rem;font-size:.82rem;margin:.5rem 0}
.wide-dialog{width:min(96vw,110rem);max-height:90vh;overflow:auto;padding:1.25rem}

/* v8.3 audit-log viewer */
.audit-launch-panel{display:grid;gap:1rem}.audit-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(10rem,1fr));gap:.75rem}.audit-summary-card{position:relative;text-align:left;border:1px solid var(--border,#d6dde5);background:#f7fafb;border-radius:12px;padding:1rem;cursor:pointer;font:inherit;color:inherit}.audit-summary-card:hover,.audit-summary-card:focus-visible{border-color:#007c91;background:#eef8fa;box-shadow:0 0 0 3px rgba(0,124,145,.16);outline:0}.audit-summary-card strong{display:block;font-size:1.7rem}.audit-summary-card span{color:#435b69}.audit-summary-tooltip{display:none;position:absolute;z-index:5;left:0;right:0;bottom:calc(100% + .5rem);padding:.65rem .75rem;border-radius:.5rem;background:#163746!important;color:#fff!important;font-size:.82rem;line-height:1.35;box-shadow:0 .4rem 1rem rgba(8,28,39,.24)}.audit-summary-tooltip::after{content:'';position:absolute;top:100%;left:1rem;border:.4rem solid transparent;border-top-color:#163746}.audit-summary-card:hover .audit-summary-tooltip,.audit-summary-card:focus-visible .audit-summary-tooltip{display:block}.audit-viewer-dialog{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;border:0;padding:0;background:#f4f7f8}.audit-viewer-dialog::backdrop{background:rgba(8,28,39,.65)}.audit-viewer-shell{height:100vh;display:flex;flex-direction:column;padding:1rem 1.25rem;box-sizing:border-box;overflow:hidden}.audit-viewer-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.audit-viewer-header h2{margin:.1rem 0}.audit-tabs{display:flex;gap:.35rem;border-bottom:1px solid #aebec8;margin:.75rem 0 1rem}.audit-tab{border:0;background:transparent;padding:.8rem 1rem;font-weight:700;cursor:pointer;border-bottom:4px solid transparent}.audit-tab.active{border-bottom-color:#0b8998;color:#075d68}.audit-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(10rem,1fr));gap:.75rem;align-items:end}.audit-filter-grid label{display:grid;gap:.3rem;font-weight:700;font-size:.86rem}.audit-filter-grid input,.audit-filter-grid select{width:100%;box-sizing:border-box}.audit-toolbar{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin:.85rem 0}.audit-toolbar label{display:flex;align-items:center;gap:.45rem;margin-left:auto}.audit-full-table{flex:1;max-height:calc(100vh - 20rem);overflow:auto;border:1px solid #cbd7de;border-radius:10px;background:#fff}.audit-full-table table{min-width:78rem;width:100%;border-collapse:separate;border-spacing:0}.audit-full-table th{position:sticky;top:0;z-index:2;background:#e8f1f4}.audit-full-table tbody tr:nth-child(even){background:#f6f9fa}.audit-full-table tbody tr:hover{background:#eaf5f7}.audit-result-success{font-weight:700;color:#0a6c40}.audit-result-failure{font-weight:700;color:#a32218}.audit-pagination{display:flex;justify-content:center;align-items:center;gap:1rem;padding:.85rem 0}.audit-detail-dialog{width:min(72rem,95vw);max-height:92vh;border:0;border-radius:14px;padding:0}.audit-detail-shell{padding:1.25rem;max-height:88vh;overflow:auto}.audit-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(12rem,1fr));gap:.8rem;margin:1rem 0}.audit-detail-item{border:1px solid #d4dee4;border-radius:9px;padding:.8rem;background:#f8fafb}.audit-detail-item strong{display:block;margin-bottom:.3rem}.audit-change-table{width:100%;border-collapse:collapse}.audit-change-table th,.audit-change-table td{vertical-align:top;text-align:left;padding:.65rem;border-bottom:1px solid #d5dfe5}.audit-value{white-space:pre-wrap;word-break:break-word;max-width:30rem}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* Keep the wide audit tables usable: the horizontal bar is always available inside the table viewport. */
.audit-full-table{min-height:0;overflow-x:scroll;overflow-y:auto;scrollbar-gutter:stable}
.audit-horizontal-scroll-control{display:flex;align-items:center;gap:.8rem;margin:.55rem 0 .35rem;padding:.45rem .65rem;border:1px solid #cbd7de;border-radius:8px;background:#f7fafb;color:#23485c;font-size:.88rem;font-weight:700}.audit-horizontal-scroll-control label{white-space:nowrap}.audit-horizontal-scroll-control input[type="range"]{width:100%;min-width:12rem;accent-color:#007c91;cursor:ew-resize}.audit-horizontal-scroll-control[hidden]{display:none}
/* Keep all audit filters on one short row on standard desktop screens. */
.audit-filter-grid{grid-template-columns:minmax(14rem,1.45fr) repeat(6,minmax(8rem,1fr));gap:.5rem}.audit-filter-grid label{gap:.2rem;font-size:.8rem}.audit-filter-grid input,.audit-filter-grid select{min-height:2.35rem}.audit-toolbar{gap:.5rem;margin:.55rem 0}
@media(max-width:1100px){.audit-filter-grid{grid-template-columns:repeat(3,minmax(10rem,1fr))}}@media(max-width:700px){.audit-summary-grid,.audit-filter-grid,.audit-detail-grid{grid-template-columns:1fr}.audit-viewer-shell{padding:.75rem}.audit-toolbar label{margin-left:0}}

/* v8.4 USPS credential controls */
.credential-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
}
.credential-status-grid > div {
  border: 1px solid var(--border, #c9d3df);
  border-radius: 0.65rem;
  padding: 0.85rem;
  background: var(--surface-subtle, #f7f9fc);
}
.credential-status-grid span,
.credential-status-grid strong { display: block; }
.credential-status-grid span { font-size: 0.85rem; color: #526173; margin-bottom: 0.35rem; }
.credential-status-grid strong { overflow-wrap: anywhere; }
.warning-text { color: #7a2e00; }
#usps-remove-dialog .dialog-panel { max-width: 38rem; }
#usps-remove-dialog input { width: 100%; }

/* v8.5 individual administrator management */
.account-status,.status-pill{display:inline-block;padding:.2rem .55rem;border-radius:999px;font-size:.8rem;font-weight:700;white-space:nowrap}.account-status.active{background:#e7f6ed;color:#145a32}.account-status.disabled{background:#f3f4f6;color:#4b5563}.status-pill{background:#e8eef8;color:#234}.status-pill.warning{background:#fff4ce;color:#6b4e00}.admin-user-dialog .dialog-panel{width:min(760px,94vw)}.admin-sessions-dialog .wide-dialog{width:min(1500px,96vw);max-height:90vh;overflow:auto}.session-device{max-width:28rem;overflow-wrap:anywhere}.checkbox-row{display:flex!important;align-items:center;gap:.6rem;margin:.75rem 0}.checkbox-row input{width:auto!important;margin:0!important}@media(max-width:800px){.admin-sessions-dialog .wide-dialog{width:96vw}}

/* Administrator inactivity warning */
.admin-session-warning-dialog .dialog-panel{max-width:34rem}.admin-session-countdown{margin:1rem 0;padding:.85rem 1rem;border:1px solid #d39719;border-radius:.6rem;background:#fff4ce;color:#5f4300;font-size:1.15rem;font-weight:800}


/* v8.6 password and MFA controls */
.secret-output,.recovery-codes,.wrap-code{display:block;padding:1rem;border:1px solid var(--border,#c7ced6);border-radius:.5rem;background:#f7f9fb;overflow-wrap:anywhere;white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.recovery-codes{columns:2;column-gap:2rem}.status-pill.warning{background:#fff3cd;color:#6b4f00}.mfa-required-note{font-weight:700}
@media(max-width:700px){.recovery-codes{columns:1}}

/* v8.7 configurable administrator security policy */
.security-policy-panel{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border-color,#cbd5e1)}
.policy-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.25rem;align-items:start}
.policy-form fieldset{grid-column:1/-1}
.policy-form .button-row,.policy-form #security-policy-message{grid-column:1/-1}
.policy-role-grid{max-width:900px}

/* v8.9 retention and recycle-bin operations */
.recycle-toolbar{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;margin:1rem 0}.retention-settings-grid{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(420px,1.3fr);gap:1.5rem;margin-top:1rem}.input-with-suffix{display:flex;align-items:center;gap:.6rem}.input-with-suffix input{max-width:8rem}.danger-banner{border-color:#a62323;background:#fff3f3;color:#711818}.selected-row>td{background:#e9f2ff!important}.recycle-row-select,#recycle-select-all{width:1.15rem;height:1.15rem}.button-row{display:flex;flex-wrap:wrap;gap:.65rem}#retention-policy-panel{margin-top:1rem;border-top:1px solid var(--border,#d8dee8);padding-top:.75rem}#retention-policy-panel summary{font-weight:700;cursor:pointer}#retention-runs-body td{white-space:nowrap}
@media(max-width:900px){.retention-settings-grid{grid-template-columns:1fr}.recycle-toolbar .button{flex:1 1 12rem}}

/* v9.0 audit integrity status */
.audit-summary-card .integrity-ok{color:#176b3a}
.audit-summary-card .integrity-failed{color:#a61b1b}
#audit-integrity-message{margin-top:.75rem}


/* v9.1 operational monitoring */
.monitoring-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem;margin:1.15rem 0}
.monitoring-summary-card{border:1px solid var(--border-color,#cbd5e1);border-left-width:5px;border-radius:.65rem;padding:1rem;background:var(--surface,#fff);display:flex;flex-direction:column;gap:.45rem;min-height:104px}
.monitoring-summary-card{position:relative;width:100%;font:inherit;text-align:left;color:inherit}.monitoring-summary-card[data-monitoring-target]{cursor:pointer}.monitoring-summary-card[data-monitoring-target]:hover{box-shadow:0 5px 14px rgba(18,52,77,.14);transform:translateY(-1px)}.monitoring-card-tooltip{position:absolute;z-index:30;left:0;right:0;bottom:calc(100% + .55rem);display:none;padding:.8rem .9rem;border-radius:.5rem;background:#17232d;color:#fff!important;font-size:.92rem!important;font-weight:600;line-height:1.45;box-shadow:0 5px 16px rgba(0,0,0,.2)}.monitoring-summary-card .monitoring-card-tooltip{color:#fff!important}.monitoring-card-tooltip::after{content:"";position:absolute;top:100%;left:1.1rem;border:.4rem solid transparent;border-top-color:#17232d}.monitoring-summary-card:hover .monitoring-card-tooltip,.monitoring-summary-card:focus-visible .monitoring-card-tooltip{display:block}
.monitoring-summary-card span{font-size:.92rem;color:var(--muted-text,#475569)}.monitoring-summary-card strong{font-size:1.12rem;line-height:1.4;overflow-wrap:anywhere}
.monitor-ok{border-left-color:#15803d}.monitor-warning{border-left-color:#b45309}.monitor-error{border-left-color:#b91c1c}
.monitoring-card-label{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.status-stoplight{display:inline-flex;flex-direction:column;gap:2px;padding:3px;border-radius:5px;background:#1f2937;line-height:0}.status-stoplight i{display:block;width:7px;height:7px;border-radius:50%;background:#64748b}.status-stoplight.error .stoplight-red{background:#ef4444;box-shadow:0 0 5px #ef4444}.status-stoplight.warning .stoplight-yellow{background:#facc15;box-shadow:0 0 5px #facc15}.status-stoplight.ok .stoplight-green{background:#22c55e;box-shadow:0 0 5px #22c55e}
.site-footer{margin-top:2rem;padding:1.25rem 1rem;background:#005a82;color:#fff;text-align:center;font-size:.95rem}.site-footer a{color:#fff}.wysiwyg-editor{min-height:120px;padding:.75rem;border:1px solid var(--border-color,#cbd5e1);border-radius:.5rem;background:#fff;overflow:auto}.wysiwyg-editor:focus{outline:3px solid rgba(0,140,200,.3);outline-offset:2px}.wysiwyg-toolbar{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.75rem}.wysiwyg-toolbar button{padding:.35rem .55rem;border:1px solid #1d70a2;border-radius:.35rem;background:#fff;color:#005a82;cursor:pointer}
.wysiwyg-link-dialog{width:min(32rem,calc(100vw - 2rem));max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem);border:0;border-radius:.8rem;padding:0;overflow:hidden;box-shadow:0 1.2rem 3rem rgba(8,28,39,.28)}.wysiwyg-link-dialog::backdrop{background:rgba(3,31,47,.5)}.wysiwyg-link-dialog>form.wysiwyg-link-dialog-shell{display:flex;flex-direction:column;align-items:stretch;gap:.7rem;width:100%;max-width:none;max-height:none;box-sizing:border-box;overflow:visible;padding:1.25rem}.wysiwyg-link-dialog-shell h2{margin:0}.wysiwyg-link-dialog-shell p{margin:0}.wysiwyg-link-dialog-shell input{width:100%;box-sizing:border-box;padding:.55rem}.wysiwyg-link-dialog-shell .check-row{display:inline-flex;align-self:flex-start;width:auto;min-height:0;box-sizing:border-box;align-items:center;padding:.6rem .75rem}.wysiwyg-link-dialog-shell .check-row input{width:1.25rem;padding:0}.wysiwyg-link-dialog-shell .button-row{margin-top:.25rem}
.site-content-published-dialog{width:min(26rem,calc(100vw - 2rem));border:0;border-radius:.8rem;padding:0;box-shadow:0 1.2rem 3rem rgba(8,28,39,.28)}.site-content-published-dialog::backdrop{background:rgba(3,31,47,.5)}.site-content-published-dialog-shell{padding:1.5rem;text-align:center}.site-content-published-dialog-shell h2{margin:0 0 .5rem;color:#075d68}.site-content-published-dialog-shell p{margin:0}
.wysiwyg-unbold,.wysiwyg-unbold *{font-weight:400!important}
.landing-editor-preview{margin:1rem 0;border:1px solid var(--border-color,#cbd5e1);border-radius:.85rem;overflow:hidden;background:#f8fafc}.landing-editor-preview .importance-card,.landing-editor-preview .hero-card{margin:0;border-radius:0;box-shadow:none}.landing-editor-preview .feature-grid{margin:0;padding:1.25rem}.editor-preview-label{margin:0;padding:.55rem .8rem;background:#e7f2f8;color:#124866;font-size:.8rem;font-weight:700;letter-spacing:.02em}.wysiwyg-editor-in-page{min-height:0;border:2px dashed transparent;border-radius:.4rem;background:transparent;overflow:visible;transition:border-color .15s,background .15s}.wysiwyg-editor-in-page:hover{border-color:#78aeca;background:rgba(255,255,255,.58)}.wysiwyg-editor-in-page:focus{border-color:#005a82;background:#fff;outline:none}.landing-editor-actions{align-self:stretch;display:flex;flex-direction:column;justify-content:center}.landing-editor-actions .button{cursor:not-allowed}.footer-editor-preview{margin:1rem 0;border:1px solid var(--border-color,#cbd5e1);border-radius:.75rem;overflow:hidden}.footer-editor-preview .site-footer{margin:0}.footer-wysiwyg-editor{min-height:2.25rem;padding:.25rem;border:2px dashed transparent;border-radius:.35rem;background:transparent;color:#fff}.footer-wysiwyg-editor:hover{border-color:#b8e0f0;background:rgba(255,255,255,.08)}.footer-wysiwyg-editor:focus{border-color:#fff;outline:none;background:rgba(255,255,255,.12)}.footer-wysiwyg-editor a{color:#fff}
.landing-editor-dialog{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#f4f8fa}.landing-editor-dialog::backdrop{background:rgba(3,31,47,.7)}.landing-editor-dialog-shell{height:100%;box-sizing:border-box;overflow:auto;padding:1.25rem max(1.25rem,calc((100vw - 1320px)/2));background:#f4f8fa}.landing-editor-dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.landing-editor-dialog-header h2{margin:.1rem 0 .35rem}.landing-editor-dialog-header p:not(.eyebrow){max-width:58rem;margin:.3rem 0;color:var(--muted-text,#475569)}.landing-editor-dialog .wysiwyg-toolbar{position:sticky;top:-1.25rem;z-index:2;padding:.75rem 0;background:#f4f8fa;border-bottom:1px solid var(--line,#d5e0e6)}.landing-editor-dialog .landing-editor-preview{max-width:1200px;margin:1rem auto}.landing-editor-dialog .button-row:last-of-type{max-width:1200px;margin:1rem auto 0}
.landing-editor-variable-help{max-width:1200px;margin:.35rem auto;color:var(--muted-text,#475569)}.site-content-respondent-preview-dialog{width:min(1200px,calc(100vw - 2rem));max-width:none;border:0;border-radius:.8rem;padding:0;box-shadow:0 1.2rem 3rem rgba(8,28,39,.28)}.site-content-respondent-preview-dialog::backdrop{background:rgba(3,31,47,.7)}.site-content-respondent-preview-shell{max-height:calc(100vh - 2rem);overflow:auto;padding:1.25rem;background:#f4f8fa}.site-content-respondent-preview-shell>label{display:block;max-width:22rem;margin:1rem 0 .25rem;font-weight:700}.site-content-respondent-preview-shell>select{width:min(100%,22rem)}.site-content-respondent-preview{margin-top:1rem;border:1px solid var(--border-color,#cbd5e1);border-radius:.85rem;overflow:hidden;background:#f8fafc}.site-content-respondent-preview .importance-card,.site-content-respondent-preview .hero-card{margin:0;border-radius:0;box-shadow:none}.site-content-respondent-preview .feature-grid{margin:0;padding:1.25rem}.site-content-respondent-preview .hero-actions{align-self:stretch;display:flex;flex-direction:column;justify-content:center}.site-content-respondent-preview .hero-actions .button{cursor:not-allowed}
@media(max-width:700px){.landing-editor-dialog-shell{padding:.85rem}.landing-editor-dialog-header{flex-direction:column}.landing-editor-dialog .wysiwyg-toolbar{top:-.85rem}}
.monitoring-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;padding:1rem 0}
.monitoring-detail-grid>div{border:1px solid var(--border-color,#cbd5e1);border-radius:.5rem;padding:.75rem;display:flex;flex-direction:column;gap:.25rem}.monitoring-detail-grid span{font-size:.85rem;color:var(--muted-text,#475569)}
.monitor-badge{display:inline-block;border-radius:999px;padding:.2rem .55rem;border:1px solid currentColor;font-weight:700;font-size:.8rem}.monitoring-alerts .status-banner{margin:.75rem 0}.status-banner.success{border-color:#15803d;background:#f0fdf4}
.backup-configuration-instructions{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--line,#d7e0e6)}.backup-configuration-instructions ol{padding-left:1.3rem}.backup-configuration-instructions li+li{margin-top:.55rem}
.live-activity-subpages{display:flex;gap:.5rem;flex-wrap:wrap;border-bottom:1px solid var(--border,#ccd7df);margin:1.25rem 0}.live-activity-subpages button{border:0;border-bottom:4px solid transparent;background:transparent;padding:.75rem 1rem;color:#234;font:inherit;font-weight:700;cursor:pointer}.live-activity-subpages button:hover,.live-activity-subpages button:focus-visible{background:#eef8fa;outline:0}.live-activity-subpages button.active{border-bottom-color:#008c95;color:#005a82}.live-activity-subpages+section h3{margin-top:.5rem}

/* v9.2 multi-page administration */
.admin-app-shell {
  display: grid;
  grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Administrative reports benefit from the available desktop workspace rather
   than the narrower public-site reading measure. */
#admin-view.container { width:min(1680px,calc(100% - 2rem)); }

.admin-sidebar {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border: 1px solid var(--border, #d6dbe3);
  border-radius: 0.9rem;
  background: var(--surface, #fff);
  box-shadow: 0 0.35rem 1rem rgba(20, 35, 55, 0.08);
  padding: 1rem;
}

.admin-sidebar-heading {
  display: grid;
  gap: 0.15rem;
  padding: 0.25rem 0.35rem 0.85rem;
  border-bottom: 1px solid var(--border, #d6dbe3);
}

.admin-sidebar-heading strong { font-size: 1.1rem; }

.admin-section-nav {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0;
}

.admin-nav-link {
  width: 100%;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
  text-align: left;
  padding: 0.75rem 0.8rem;
  cursor: pointer;
}

.admin-nav-link:hover { background: rgba(26, 78, 130, 0.08); }
.admin-nav-link.active {
  background: #173f6b;
  color: #fff;
  box-shadow: inset 0.25rem 0 0 #71c5e8;
}
.admin-nav-link:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
.admin-nav-group{display:grid;gap:.15rem}.admin-nav-group-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:.35rem;padding:.55rem .8rem;border:0;border-radius:.45rem;background:transparent;color:var(--muted,#52606d);font:inherit;font-size:.78rem;font-weight:800;letter-spacing:.04em;text-align:left;text-transform:uppercase;cursor:pointer}.admin-nav-group-toggle:hover{background:rgba(26,78,130,.08);color:inherit}.admin-nav-group-toggle span:last-child{font-size:1rem;transition:transform .15s ease}.admin-nav-group-toggle[aria-expanded="true"] span:last-child{transform:rotate(180deg)}.admin-nav-submenu{display:grid;gap:.15rem;margin-left:.55rem;padding-left:.55rem;border-left:2px solid var(--border,#d6dbe3)}.admin-nav-submenu[hidden]{display:none}.admin-nav-submenu .admin-nav-link{padding:.6rem .7rem;font-size:.94rem}.admin-nav-group-toggle:focus-visible{outline:3px solid #f2a900;outline-offset:2px}
.admin-nav-nested-group{margin:.1rem 0 .2rem}.admin-nav-nested-group>summary{padding:.55rem .7rem;cursor:pointer;color:var(--muted,#52606d);font-size:.9rem;font-weight:700}.admin-nav-nested-submenu{display:grid;gap:.1rem;margin:.2rem 0 .2rem .7rem;padding-left:.55rem;border-left:1px solid var(--border,#d6dbe3)}.admin-nav-nested-submenu .admin-nav-link{padding:.5rem .65rem;font-size:.88rem}

.admin-sidebar-footer {
  border-top: 1px solid var(--border, #d6dbe3);
  padding-top: 0.85rem;
}
.admin-nav-signout { width: 100%; }

.admin-page-area { min-width: 0; }
.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.2rem 0.25rem;
}
.admin-page-header h3 { margin: 0.15rem 0 0.25rem; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.admin-page-header .help-text { margin: 0; max-width: 55rem; }
.admin-breadcrumb { margin: 0; font-size: 0.86rem; color: var(--muted, #586574); }
.admin-breadcrumb span[aria-hidden] { padding: 0 0.35rem; }

.admin-page { display: grid; gap: 1.25rem; min-width: 0; }
.admin-page-hidden { display: none !important; }
.admin-page > .card { margin: 0; min-width: 0; }

/* Avoid a second large administration heading once inside the page shell. */
#admin-protected-content + * { min-width: 0; }

@media (max-width: 920px) {
  .admin-app-shell { grid-template-columns: 1fr; gap: 1rem; }
  .admin-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .admin-section-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.6rem;
  }
  .admin-nav-link {
    width: auto;
    min-width: max-content;
    scroll-snap-align: start;
    text-align: center;
  }
  .admin-sidebar-footer { display: flex; justify-content: flex-end; }
  .admin-nav-signout { width: auto; }
}

@media (max-width: 600px) {
  .admin-sidebar { padding: 0.75rem; }
  .admin-page-header { padding-inline: 0; }
  .admin-page > .card { border-radius: 0.65rem; }
}

/* v9.3 Engage Together brand alignment
   Brand palette from ET Branding Guidelines (09.2020):
   primary #29ADE4 and #93C953; accents #015177, #CDDBE3, #E3BD50,
   #19948A, #DB7C2A; neutrals #E0E1E2 and #000000. */
:root {
  --brand-blue: #29ade4;
  --brand-green: #93c953;
  --brand-deep-blue: #015177;
  --brand-pale-blue: #cddbe3;
  --brand-gold: #e3bd50;
  --brand-teal: #19948a;
  --brand-orange: #db7c2a;
  --brand-gray: #e0e1e2;

  /* Existing semantic tokens remapped to the approved palette. */
  --navy: var(--brand-deep-blue);
  --navy-2: #003b58;
  --teal: var(--brand-teal);
  --teal-dark: #116f68;
  --gold: var(--brand-gold);
  --paper: #f6f8f9;
  --white: #ffffff;
  --ink: #111111;
  --muted: #4f5f68;
  --line: var(--brand-pale-blue);
  --danger: #a33a16;
  --success: #397718;
  --focus: var(--brand-gold);
  --shadow: 0 12px 30px rgba(1, 81, 119, .10);
  --border: var(--brand-pale-blue);
  --border-color: var(--brand-pale-blue);
  --surface: #ffffff;
  --surface-subtle: #f6f8f9;
  --muted-text: #4f5f68;
  --link: var(--brand-deep-blue);
}

body {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(41,173,228,.055), transparent 14rem),
    var(--paper);
}

h1, h2, h3, h4, h5, h6,
.button,
legend,
th,
.eyebrow,
.admin-nav-link {
  font-family: Gotham, "Arial Black", "Open Sans", "Segoe UI", sans-serif;
}

.site-header {
  background: #fff;
  color: var(--brand-deep-blue);
  border-bottom: 5px solid var(--brand-blue);
  box-shadow: 0 4px 16px rgba(1,81,119,.10);
  padding-block: .8rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 2vw, 1.5rem);
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(145px, 18vw, 230px);
  height: auto;
  flex: none;
}

.brand-title {
  border-left: 1px solid var(--brand-pale-blue);
  padding-left: clamp(.85rem, 2vw, 1.5rem);
  min-width: 0;
}

.brand-title .eyebrow,
.site-header .eyebrow {
  color: var(--brand-teal);
}

.site-header h1 {
  color: var(--brand-deep-blue);
  letter-spacing: -.02em;
}

.eyebrow { color: var(--brand-teal); }
a { color: var(--brand-deep-blue); }
a:hover { color: #003b58; }

.button.primary {
  background: var(--brand-deep-blue);
  color: #fff;
}
.button.primary:hover { background: #003b58; }
.button.secondary {
  background: #fff;
  color: var(--brand-deep-blue);
  border-color: var(--brand-deep-blue);
}
.button.secondary:hover { background: #eef7fb; }
.button.ghost:hover { background: rgba(41,173,228,.10); }

.hero-card {
  border-top: 7px solid var(--brand-green);
  background: linear-gradient(135deg, #fff 0%, #fff 72%, rgba(41,173,228,.07) 100%);
}
.hero-card h2,
.question-card h2,
.review-section h3,
.feature-grid h3,
th,
details.definition summary { color: var(--brand-deep-blue); }
.feature-grid article { border-left-color: var(--brand-green); }
.feature-grid article:nth-child(2) { border-left-color: var(--brand-blue); }
.feature-grid article:nth-child(3) { border-left-color: var(--brand-teal); }

.progress-track span { background: linear-gradient(90deg, var(--brand-blue), var(--brand-green)); }
#section-nav button.current { border-color: var(--brand-green); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand-teal); }
.option-card:hover { border-color: var(--brand-blue); }

.card,
.question-panel,
.progress-panel,
.submit-card,
.confirmation-card,
.admin-sidebar {
  border-color: var(--brand-pale-blue);
}

.admin-nav-link:hover { background: rgba(41,173,228,.11); }
.admin-nav-link.active {
  background: var(--brand-deep-blue);
  color: #fff;
  box-shadow: inset .28rem 0 0 var(--brand-green);
}
.admin-nav-link:focus-visible { outline-color: var(--brand-gold); }

/* Keep the public footer after the complete page flow.  This is a three-row
   page grid rather than a flexible footer: no element that follows the footer
   can reserve document height below it. */
html, body { min-height:100%; }
body { min-height:100vh; min-height:100dvh; display:grid; grid-template-rows:auto minmax(0, 1fr) auto; }
main { grid-row:2; min-width:0; min-height:0; }
body > .site-footer { grid-row:3; position:relative; z-index:1; width:100%; margin-bottom:0; }
/* Dialogs follow the footer in the document.  Keep closed dialogs out of the
   layout and make open dialogs viewport-positioned so neither can create a
   trailing page tail below the footer. */
body > dialog { position:fixed; }
body > dialog:not([open]) { display:none !important; }
#admin-view, #admin-protected-content, .admin-app-shell, .admin-page-area, #admin-page-host, .admin-page { min-width:0; overflow:visible; }

.status-pill,
.monitor-badge { border-color: currentColor; }
.generated-link,
.stat,
.county-action,
.county-loading,
details.definition { background: #f3f8fa; }

.success-icon {
  background: rgba(147,201,83,.22);
  color: #397718;
}

.skip-link {
  background: var(--brand-gold);
  color: #000;
}

:focus-visible { outline-color: var(--brand-gold); }

body.high-contrast {
  --paper:#000;
  --white:#000;
  --surface:#000;
  --surface-subtle:#111;
  --surface-soft:#111;
  --muted-text:#fff;
  --border:#fff;
  --border-color:#fff;
  --ink:#fff;
  --muted:#fff;
  --line:#fff;
  --navy:#fff;
  --navy-2:#fff;
  --teal:#fff;
  --teal-dark:#fff;
  --gold:#ffff00;
  --danger:#ff9b80;
  --success:#baff85;
  background:#000;
}
body.high-contrast .site-header {
  background:#000;
  color:#fff;
  border-color:#fff;
}
body.high-contrast .brand-logo {
  background:#fff;
  padding:.35rem;
  border-radius:.25rem;
}
body.high-contrast .site-header h1,
body.high-contrast .site-header .eyebrow { color:#fff; }
/* The profile menu uses fixed light surfaces in the standard theme.  Override
   both surfaces and text here so the controls remain readable when the high
   contrast variables make the default nav color white. */
body.high-contrast .admin-profile-button,
body.high-contrast .admin-profile-menu {
  background:#000;
  color:#fff;
  border-color:#ffff00;
}
body.high-contrast .admin-profile-avatar {
  background:#000;
  color:#ffff00;
  border:1px solid #ffff00;
}
body.high-contrast .admin-profile-identity small,
body.high-contrast .admin-profile-menu a { color:#fff; }
body.high-contrast .admin-profile-menu a:hover,
body.high-contrast .admin-profile-menu a:focus-visible { background:#333; color:#ffff00; }
/* The shared high-contrast button hover rule changes the profile button to a
   white surface.  Its role label has an explicit white color, so set its
   hovered/focused color explicitly to retain contrast on that white surface. */
body.high-contrast .admin-profile-button:hover .admin-profile-identity small,
body.high-contrast .admin-profile-button:focus-visible .admin-profile-identity small {
  display:block !important;
  color:#000 !important;
  line-height:1.15;
}
/* The navigation shell has its own surface variable, so it needs an explicit
   override to keep the Administration and Control center labels visible. */
body.high-contrast .admin-sidebar { background:#000; color:#fff; border-color:#fff; }
body.high-contrast .admin-sidebar-heading,
body.high-contrast .admin-sidebar-footer,
body.high-contrast .admin-nav-submenu { border-color:#fff; }
body.high-contrast .admin-sidebar-heading .eyebrow,
body.high-contrast .admin-sidebar-heading strong,
body.high-contrast .admin-nav-group-toggle { color:#fff; }

@media (max-width: 700px) {
  .brand-lockup { align-items:flex-start; }
  .brand-logo { width: 135px; }
  .brand-title { padding-left:.75rem; }
  .brand-title .eyebrow { font-size:.68rem; }
}

@media (max-width: 480px) {
  .brand-lockup { width:100%; }
  .brand-logo { width: 118px; }
  .brand-title h1 { font-size: 1.15rem; }
}

.create-group-panel{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border,#cddbe3)}
.create-group-panel.hidden{display:none}

/* v9.5.1 — content-responsive administrator session modal */
#admin-sessions-dialog {
  width: fit-content;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
}
#admin-sessions-dialog .wide-dialog {
  width: max-content;
  min-width: min(58rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  box-sizing: border-box;
  overflow: auto;
}
#admin-sessions-dialog .table-wrap,
#admin-sessions-dialog table {
  width: max-content;
  min-width: 100%;
}
#admin-sessions-dialog th,
#admin-sessions-dialog td {
  white-space: nowrap;
}
#admin-sessions-dialog .session-device {
  white-space: normal;
  min-width: 18rem;
}
.location-filter-row{display:flex;justify-content:flex-end;margin:.75rem 0}.location-filter-row label{display:grid;gap:.3rem;font-weight:700;font-size:.9rem}.location-filter-row select{min-width:16rem}
@media (max-width: 800px) {
  #admin-sessions-dialog {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    margin: .5rem;
  }
  #admin-sessions-dialog .wide-dialog {
    width: max-content;
    min-width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }
}


/* v9.6 email integration administration */
.integration-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,28rem),1fr));gap:1.25rem;margin-top:1rem}.integration-panel{border:1px solid var(--border);border-radius:1rem;padding:1.25rem;background:var(--surface)}.integration-panel h4{margin-top:0}.integration-panel .status-banner{margin-bottom:1rem}.admin-page[data-admin-page="integrations"]{display:grid;gap:1.25rem}.confirmation-card #confirmation-email-link{margin-right:.75rem}@media(max-width:700px){.integration-grid{grid-template-columns:1fr}}
.email-integration-page-links{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.25rem}.admin-page[data-admin-page="graph-email"] .integration-panel,.admin-page[data-admin-page="activecampaign-setup"] .integration-panel,.admin-page[data-admin-page="invitation-manager"] .integration-panel,.admin-page[data-admin-page="email-reporting"] .integration-panel{max-width:78rem}
.admin-help-page{max-width:78rem}.admin-help-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(18rem,.9fr);gap:1.5rem;align-items:center;padding-bottom:1.25rem;border-bottom:1px solid var(--border,#cddbe3)}.admin-help-intro h4{margin:.15rem 0 .5rem;font-size:1.35rem}.admin-help-intro p{max-width:62ch;line-height:1.5}.admin-help-intro img,.admin-help-reference img{width:100%;border:1px solid #b9dce9;border-radius:.8rem;background:#f2f9fc}.admin-help-screenshot,.admin-help-reference{margin:0}.admin-help-screenshot figcaption,.admin-help-reference figcaption{margin-top:.45rem;color:var(--muted,#52606d);font-size:.85rem;font-weight:700;text-align:center}.admin-help-reference{max-width:52rem;margin:1.25rem auto;padding:1rem;border:1px solid var(--border,#cddbe3);border-radius:.8rem;background:#f7fbfd}.admin-help-prerequisite{margin:1.25rem 0;padding:1rem 1.1rem;border:1px solid #d39719;border-left:5px solid #b97800;border-radius:.7rem;background:#fff8df;color:#513b00;line-height:1.5}.admin-help-steps{display:grid;gap:1rem;margin:1.25rem 0;padding-left:1.5rem}.admin-help-steps li{padding-left:.3rem;line-height:1.55}.admin-help-steps strong{color:var(--navy,#12324a)}.admin-help-steps code{padding:.08rem .25rem;border-radius:.2rem;background:#e5f0f4;color:#003d5c}.admin-help-links{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.25rem 0 0}.admin-help-links a{padding:.5rem .7rem;border:1px solid #0b5c86;border-radius:.45rem;color:#075985;font-weight:700;text-decoration:none}.admin-help-links a:hover,.admin-help-links a:focus-visible{background:#e3f2f6}@media(max-width:760px){.admin-help-intro{grid-template-columns:1fr}.admin-help-intro img{max-width:34rem}.admin-help-steps{padding-left:1.25rem}}
.integration-setup-guide{margin:0 0 1.25rem;padding:1rem 1.1rem;border:1px solid #b9dce9;border-left:5px solid var(--brand-blue,#015177);border-radius:.7rem;background:#f2f9fc}.integration-setup-guide h5{margin:0 0 .65rem;font-size:1rem}.integration-setup-guide ol{margin:.25rem 0 .7rem;padding-left:1.35rem;display:grid;gap:.5rem}.integration-setup-guide li{line-height:1.45}.integration-setup-guide code{padding:.1rem .28rem;border-radius:.25rem;background:#e2eef3;color:#003d5c;font-size:.9em}.integration-setup-guide .help-text{margin:0;line-height:1.45}
.admin-help-topic{margin:1.5rem 0;padding:1.25rem;border:1px solid #b9dce9;border-radius:.8rem;background:#f7fbfd}.admin-help-topic h5,.admin-help-follow-on{margin:0 0 .7rem;color:var(--navy,#12324a);font-size:1.2rem}.admin-help-topic h6{margin:1.25rem 0 .5rem;font-size:1rem}.admin-help-topic p,.admin-help-topic li{line-height:1.55}.admin-help-topic ol{display:grid;gap:.65rem;margin:.65rem 0;padding-left:1.4rem}.admin-help-follow-on{margin-top:1.75rem}
.admin-help-walkthrough{counter-reset:help-step;list-style:none!important;margin:1rem 0!important;padding:0!important;gap:1.25rem!important}.admin-help-walkthrough>li{counter-increment:help-step;padding:1rem!important;border:1px solid #c4dce7;border-radius:.7rem;background:#fff}.admin-help-walkthrough>li::before{content:"Step " counter(help-step);display:inline-block;margin:0 .5rem .45rem 0;padding:.12rem .45rem;border-radius:999px;background:#dceff6;color:#075985;font-size:.78rem;font-weight:800}.admin-help-step-image{margin:.85rem 0 0;max-width:62rem;padding:.65rem;border:1px solid #b9dce9;border-radius:.65rem;background:#f2f9fc}.admin-help-step-image img{display:block;width:100%;border:1px solid #c4dce7;border-radius:.4rem;background:#fff}.admin-help-step-image figcaption{margin-top:.45rem;color:var(--muted,#52606d);font-size:.85rem;font-weight:700;text-align:center}


/* v9.6.1 Microsoft Graph live test progress modal */
.graph-test-dialog{width:min(44rem,calc(100vw - 2rem));max-width:44rem;border:0;border-radius:1rem;padding:0;box-shadow:0 1.5rem 4rem rgba(1,81,119,.28)}
.graph-test-dialog::backdrop{background:rgba(0,27,45,.58)}
.graph-test-panel{width:100%;max-width:none;box-sizing:border-box}
.graph-test-progress{margin-top:1rem}
.graph-progress-list{list-style:none;margin:0;padding:0;display:grid;gap:.65rem}
.graph-progress-list li{display:grid;grid-template-columns:2rem 1fr;gap:.75rem;align-items:start;padding:.8rem;border:1px solid #cddbe3;border-radius:.75rem;background:#fff}
.graph-progress-list small{display:block;margin-top:.2rem;color:#4b6170}
.graph-progress-marker{display:grid;place-items:center;width:1.8rem;height:1.8rem;border-radius:999px;background:#e0e1e2;color:#015177;font-weight:700}
.graph-progress-list li.active{border-color:#29ade4;background:#f1fbff}
.graph-progress-list li.active .graph-progress-marker{background:#29ade4;color:#000}
.graph-progress-list li.complete{border-color:#93c953;background:#f7fbf1}
.graph-progress-list li.complete .graph-progress-marker{background:#93c953;color:#000}
.graph-progress-list li.error{border-color:#b42318;background:#fff5f5}
.graph-progress-list li.error .graph-progress-marker{background:#b42318;color:#fff}
.graph-test-progress .status-banner{margin-top:1rem}

/* Keep the Graph test dialog readable when all four progress steps are visible. */
#graph-test-dialog{max-height:calc(100vh - 2rem)}
#graph-test-dialog .graph-test-panel{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;max-height:calc(100vh - 2rem);overflow-y:auto}
#graph-test-dialog .section-heading-row{align-items:flex-start;justify-content:space-between;gap:1rem}
#graph-test-dialog .section-heading-row h2{margin:0 0 .65rem;line-height:1.15}
#graph-test-dialog .section-heading-row .help-text{margin:0;max-width:42rem;line-height:1.45}
#graph-test-dialog .graph-test-progress{margin-top:0}
#graph-test-dialog .graph-test-progress .status-banner{margin:0;padding:.85rem 1rem;min-height:3rem;display:flex;align-items:center}
#graph-test-dialog .dialog-actions{margin-top:0;padding-top:1rem;border-top:1px solid var(--border,#cddbe3)}
@media(max-width:700px){#graph-test-dialog .graph-test-panel{padding:1rem;gap:.8rem}#graph-test-dialog .section-heading-row{align-items:flex-start}#graph-test-dialog .section-heading-row .button{flex:0 0 auto}}

/* v9.6.3 Graph read-only settings summary */
.settings-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin:1rem 0 1.25rem}.settings-summary-grid div{border:1px solid var(--border,#d9e2e8);border-radius:.65rem;padding:.8rem;background:var(--surface,#fff);min-width:0}.settings-summary-grid dt{font-size:.82rem;font-weight:700;color:var(--muted,#52606d);margin-bottom:.35rem}.settings-summary-grid dd{margin:0;font-weight:600;overflow-wrap:anywhere}.secret-mask{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.04em}

/* v9.6.4 secure save access */
.integration-email-panel{margin-top:1.25rem;padding:1rem;border:1px solid var(--border-color,#cddbe3);border-radius:.75rem;background:var(--surface-soft,#f5fafc)}
.integration-email-panel h3{margin-top:0}
.integration-email-panel input{width:100%;margin-bottom:.75rem}


/* v9.6.6 — readable audit details and content-responsive dialogs */
:root{--dialog-gutter:1rem}
dialog:not(.full-width-dialog):not(.audit-viewer-dialog){
  width:fit-content;
  max-width:calc(100vw - (2 * var(--dialog-gutter)));
  max-height:calc(100vh - (2 * var(--dialog-gutter)));
  box-sizing:border-box;
}
dialog:not(.full-width-dialog):not(.audit-viewer-dialog) > form,
dialog:not(.full-width-dialog):not(.audit-viewer-dialog) > .dialog-panel{
  width:min(44rem,calc(100vw - 5rem));
  max-width:100%;
  box-sizing:border-box;
}
dialog .wide-dialog,
dialog .submission-detail-shell{width:min(96vw,110rem);max-width:100%;box-sizing:border-box}
.audit-detail-dialog{width:min(96vw,100rem);max-width:96vw;max-height:94vh}
.audit-detail-shell{width:100%;max-height:92vh;box-sizing:border-box;padding:1.5rem;overflow:auto}
.audit-event-summary{border-left:5px solid var(--brand-green,#93c953);background:#f4f9ee;border-radius:.5rem;padding:1rem 1.1rem;margin:1rem 0}
.audit-event-summary h3{margin:0 0 .35rem}.audit-event-summary p{margin:0;font-size:1.05rem}
.audit-detail-table{width:100%;border-collapse:collapse}.audit-detail-table th,.audit-detail-table td{padding:.75rem;text-align:left;vertical-align:top;border-bottom:1px solid #d5dfe5}.audit-detail-table th{width:24rem;background:#f7fafb}
.audit-summary-cell{min-width:22rem;max-width:38rem;white-space:normal;line-height:1.4}
.audit-value{max-width:none;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
.audit-user-agent{overflow-wrap:anywhere;background:#f7fafb;border:1px solid #d4dee4;border-radius:.5rem;padding:.75rem}
.audit-full-table table{min-width:126rem}
/* The viewer scrolls horizontally, so its column headings must not split into partial words. */
.audit-full-table th{white-space:nowrap}
/* Keep administrator emails and short audit outcomes readable instead of breaking words. */
.audit-full-table th:nth-child(2),.audit-full-table td:nth-child(2){min-width:15rem;white-space:nowrap}
.audit-full-table th:nth-child(6),.audit-full-table td:nth-child(6){min-width:6.5rem;white-space:nowrap}
.audit-full-table th:nth-last-child(2),.audit-full-table td:nth-last-child(2){min-width:14rem;white-space:normal}
.audit-full-table th:last-child,.audit-full-table td:last-child{min-width:9.5rem;white-space:nowrap}.audit-full-table td:last-child .button{white-space:nowrap}
/* Program-description events include record, IP, and location details, so preserve readable columns and scroll rather than squeezing content. */
#audit-user-panel .audit-full-table table{min-width:140rem}#audit-user-panel .audit-full-table th:nth-child(1),#audit-user-panel .audit-full-table td:nth-child(1){min-width:10rem}#audit-user-panel .audit-full-table th:nth-child(2),#audit-user-panel .audit-full-table td:nth-child(2){min-width:16rem}#audit-user-panel .audit-full-table th:nth-child(3),#audit-user-panel .audit-full-table td:nth-child(3){min-width:12rem}#audit-user-panel .audit-full-table th:nth-child(4),#audit-user-panel .audit-full-table td:nth-child(4){min-width:16rem}#audit-user-panel .audit-full-table th:nth-child(5),#audit-user-panel .audit-full-table td:nth-child(5){min-width:12rem}#audit-user-panel .audit-full-table th:nth-child(6),#audit-user-panel .audit-full-table td:nth-child(6){min-width:35rem;white-space:normal}#audit-user-panel .audit-full-table th:nth-child(7),#audit-user-panel .audit-full-table td:nth-child(7){min-width:6rem}#audit-user-panel .audit-full-table th:nth-child(8),#audit-user-panel .audit-full-table td:nth-child(8){min-width:11rem;white-space:nowrap}#audit-user-panel .audit-full-table th:nth-child(9),#audit-user-panel .audit-full-table td:nth-child(9){min-width:15rem;white-space:normal}
/* High contrast must override the viewer's otherwise light table surfaces as well as its text. */
body.high-contrast .audit-full-table,body.high-contrast .audit-full-table table,body.high-contrast .audit-full-table tbody,body.high-contrast .audit-full-table tr,body.high-contrast .audit-full-table td{background:#000;color:#fff;border-color:#fff}body.high-contrast .audit-full-table th{background:#000;color:#ff0;border-color:#fff}body.high-contrast .audit-full-table tbody tr:nth-child(even) td{background:#111}body.high-contrast .audit-full-table tbody tr:hover td{background:#222}body.high-contrast .audit-horizontal-scroll-control{background:#000;color:#fff;border-color:#ff0}
/* Retention lifecycle help is available by mouse and keyboard without leaving the dashboard. */
.retention-lifecycle-help{position:relative;display:inline-flex;align-items:center}.retention-lifecycle-help-icon{display:inline-grid;place-items:center;width:1.55rem;height:1.55rem;padding:0;border:0;border-radius:50%;background:#e2eef3;color:#00577f;font:inherit;font-size:1.05rem;font-weight:800;cursor:help}.retention-lifecycle-help-icon:focus-visible{outline:3px solid rgba(0,87,127,.35);outline-offset:2px}.retention-lifecycle-help-content{position:absolute;z-index:25;right:0;bottom:calc(100% + .55rem);display:none;width:min(25rem,calc(100vw - 2rem));padding:.75rem .85rem;border:1px solid #6d9caf;border-radius:.55rem;background:#073f59;color:#fff;font-size:.88rem;font-weight:500;line-height:1.4;box-shadow:.45rem .45rem 1.25rem rgba(0,27,45,.22);text-align:left}.retention-lifecycle-help-content strong{display:block;margin-bottom:.3rem;color:#fff}.retention-lifecycle-help-icon:hover .retention-lifecycle-help-content,.retention-lifecycle-help-icon:focus .retention-lifecycle-help-content{display:block}.high-contrast .retention-lifecycle-help-icon{background:#000;color:#ff0;border:1px solid #ff0}.high-contrast .retention-lifecycle-help-content{background:#000;color:#fff;border-color:#ff0}
/* Modal-specific widths based on their content */
#resume-dialog>form,#secure-token-dialog>form{width:min(48rem,calc(100vw - 5rem))}
#group-edit-dialog>form,#retention-hold-dialog>form,#permanent-delete-dialog>form,#admin-password-dialog>form{width:min(52rem,calc(100vw - 5rem))}
#usps-remove-dialog>.dialog-panel,#admin-user-dialog>.dialog-panel{width:min(56rem,calc(100vw - 5rem))}
#user-history-dialog>.wide-dialog,#mfa-settings-dialog>.wide-dialog,#admin-sessions-dialog>.wide-dialog{width:min(96vw,100rem)}
#submission-detail-dialog{width:min(96vw,100rem);max-width:96vw}
#graph-test-dialog{width:min(52rem,calc(100vw - 2rem));max-width:calc(100vw - 2rem)}
#review-answers-dialog{width:min(60rem,calc(100vw - 2rem));max-width:60rem;max-height:calc(100vh - 2rem);padding:0;border:0;border-radius:1rem;box-shadow:0 1.25rem 3.5rem rgba(8,36,53,.3)}
#review-answers-dialog::backdrop{background:rgba(4,26,40,.66)}
.review-answers-dialog-panel{max-height:calc(100vh - 2rem);overflow:auto;padding:1.35rem;box-sizing:border-box}
.review-answers-dialog-panel h2{margin:.1rem 0 .35rem}.review-answers-dialog-status{margin:1rem 0;padding:.8rem 1rem;border-left:4px solid var(--brand-blue,#006a99);border-radius:.35rem;background:#eef7fa;color:#173f54;font-weight:700;line-height:1.45}
.review-answers-dialog-list{display:grid;gap:.7rem}.review-answer-item{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 1rem;border:1px solid #c9d8e1;border-radius:.65rem;background:#fff}.review-answer-item.is-unanswered{background:#fbfcfd}.review-answer-item-copy{min-width:0}.review-answer-item h3{margin:.15rem 0;font-size:1rem;line-height:1.35}.review-answer-item-meta{margin:0;color:#476170;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.025em}.review-answer-item-summary{margin:.3rem 0 0;color:#344f5e;line-height:1.4;overflow-wrap:anywhere}.review-answer-item-action{flex:0 0 auto}.review-answer-locked{display:inline-block;max-width:13rem;color:#647482;font-size:.84rem;font-weight:700;line-height:1.35}.review-answers-dialog-panel .dialog-actions{margin-top:1.15rem}
.review-program-answer-list{display:grid;gap:.7rem;margin-top:.65rem}.review-program-answer{border:1px solid #c9d8e1;border-left:4px solid var(--teal);border-radius:.5rem;background:#f8fbfc;padding:.75rem}.review-program-answer h4{margin:0 0 .65rem;color:var(--navy);font-size:.98rem}.review-program-answer-section{padding:.55rem 0;border-top:1px solid #d8e3e8}.review-program-answer-section:first-of-type{border-top:0;padding-top:0}.review-program-answer-section:last-child{padding-bottom:0}.review-program-answer-section h5{margin:0 0 .35rem;color:#36596a;font-size:.82rem;text-transform:uppercase;letter-spacing:.025em}.review-program-answer-section dl{display:grid;gap:.35rem;margin:0}.review-program-answer-field{display:grid;grid-template-columns:minmax(9rem,.55fr) 1fr;gap:.35rem .75rem}.review-program-answer-field dt{font-weight:750}.review-program-answer-field dd{margin:0;overflow-wrap:anywhere}
@media(max-width:700px){
  :root{--dialog-gutter:.35rem}
  dialog:not(.full-width-dialog):not(.audit-viewer-dialog){padding:1rem;border-radius:.7rem}
  dialog:not(.full-width-dialog):not(.audit-viewer-dialog)>form,
  dialog:not(.full-width-dialog):not(.audit-viewer-dialog)>.dialog-panel{width:calc(100vw - 2.7rem)}
  .audit-detail-dialog{width:100vw;max-width:100vw;max-height:100vh;margin:0;border-radius:0}
  .audit-detail-shell{max-height:100vh;padding:1rem}
  .audit-detail-grid{grid-template-columns:1fr}
  .audit-detail-table th{width:auto}
  .review-answers-dialog-panel{padding:1rem}.review-answer-item{align-items:flex-start;flex-direction:column}.review-answer-item-action{width:100%}.review-answer-item-action .button{width:100%}.review-answer-locked{max-width:none}.review-program-answer-field{grid-template-columns:1fr}.review-program-answer-field dd{margin-top:-.15rem}
}

/* v9.6.9 create administrator modal */
#create-admin-dialog .dialog-panel{width:min(42rem,calc(100vw - 2rem));}
#create-admin-dialog .dialog-actions{margin-top:1.5rem;}


/* v9.6.10 MFA QR enrollment */
.mfa-qr-code{display:flex;align-items:center;justify-content:center;width:max-content;max-width:100%;min-width:244px;min-height:244px;margin:1rem 0 1.25rem;padding:12px;background:#fff;border:1px solid #c9d7df;border-radius:12px;box-shadow:0 4px 14px rgba(1,81,119,.12)}
.mfa-qr-code img,.mfa-qr-code canvas{display:block;max-width:100%;height:auto}
@media (max-width:480px){.mfa-qr-code{min-width:0;width:100%}.mfa-qr-code img,.mfa-qr-code canvas{width:min(220px,100%)!important;height:auto!important}}

/* v9.7 email operations */
.email-operations-panel{grid-column:1/-1;margin-top:1.25rem}.email-metrics{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));margin:1rem 0}.email-metrics .metric-card{display:grid;align-content:start;gap:.35rem;min-width:0;padding:.9rem 1rem;border:1px solid var(--border,#cddbe3);border-radius:.65rem;background:#f7fbfd}.email-metrics .metric-card span{display:block;color:var(--muted,#52606d);font-size:.86rem;font-weight:700}.email-metrics .metric-card strong{display:block;color:var(--navy,#12324a);font-size:1.25rem;line-height:1.25;overflow-wrap:anywhere}.email-operations-panel h5{margin:1.5rem 0 .65rem}.email-operations-panel .table-scroll{max-height:24rem;overflow:auto;overscroll-behavior:contain}.delivery-status-sent{color:#2f741f;font-weight:700}.delivery-status-failed{color:#a40000;font-weight:700}.email-detail-error{max-width:28rem;white-space:normal}.filter-row{display:flex;gap:1rem;align-items:end;flex-wrap:wrap}.filter-row>div{min-width:14rem;flex:1}
.outreach-performance-report{margin:0 0 1.5rem;padding:1.25rem;border:1px solid var(--border,#cddbe3);border-radius:.8rem;background:#fff}.outreach-report-filters,.outreach-recipient-filters{display:flex;gap:1rem;align-items:end;flex-wrap:wrap;margin:1rem 0}.outreach-report-filters label{display:grid;gap:.35rem;min-width:13rem;font-weight:700}.outreach-overview-metrics{grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));margin:1rem 0}.outreach-overview-metrics .metric-card{display:grid;gap:.2rem}.outreach-overview-metrics .metric-card small{font-weight:400;color:var(--muted,#526b7d)}.outreach-report-chart{padding:1rem;margin:1rem 0;border-radius:.7rem;background:#f5f9fc}.outreach-report-chart h4{margin:0 0 .8rem}.outreach-chart-row{display:grid;grid-template-columns:6rem minmax(3rem,1fr) 8rem;gap:.7rem;align-items:center;margin:.45rem 0;font-size:.9rem}.outreach-chart-row i{display:block;min-height:.65rem;border-radius:1rem;background:#159dca}.outreach-chart-row strong{font-size:.85rem;color:#345}.outreach-campaign-table{max-width:100%;max-height:min(28rem,calc(100vh - 18rem));overflow:auto;overscroll-behavior:contain;border:1px solid var(--border,#cddbe3);border-radius:.65rem}.outreach-campaign-table .admin-table{margin:0}.outreach-campaign-table thead th{position:sticky;top:0;z-index:1;background:#fff;box-shadow:0 1px 0 var(--border,#cddbe3)}.campaign-performance-dialog{width:min(1100px,96vw)}.campaign-performance-dialog .activecampaign-setup-panel{max-height:min(88vh,1000px)}.campaign-performance-dialog section{margin-top:1.5rem}.campaign-performance-dialog h3{margin-bottom:.45rem}.campaign-performance-dialog .table-scroll{max-height:25rem}.outreach-recipient-filters select,.outreach-recipient-filters input{min-width:11rem}.outreach-recipient-filters input{flex:1}@media (max-width:700px){.outreach-performance-report{padding:.85rem}.outreach-chart-row{grid-template-columns:5rem minmax(2rem,1fr);gap:.45rem}.outreach-chart-row strong{grid-column:1/-1}.outreach-recipient-filters>*{width:100%}}
.performance-table .performance-sort{display:inline-flex;align-items:center;gap:.2rem;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;text-align:inherit;cursor:pointer}.performance-table .performance-sort:hover{text-decoration:underline}.performance-table .performance-sort:focus-visible{outline:2px solid var(--focus,#005a9c);outline-offset:2px}.performance-table .performance-sort span{color:var(--muted,#526b7d);font-size:.8em}
#performance-program-content,#performance-geoip-content{max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;overscroll-behavior-y:auto;scrollbar-gutter:stable;border:1px solid var(--border,#cddbe3);border-radius:.65rem}
.performance-horizontal-scroll-control{display:flex;align-items:center;gap:.8rem;margin:.65rem 0 .35rem;padding:.45rem .65rem;border:1px solid var(--border,#cbd7de);border-radius:.5rem;background:#f7fafb;color:#23485c;font-size:.88rem;font-weight:700}.performance-horizontal-scroll-control label{white-space:nowrap}.performance-horizontal-scroll-control input[type="range"]{width:100%;min-width:12rem;accent-color:#007c91;cursor:ew-resize}.performance-horizontal-scroll-control[hidden]{display:none}body.high-contrast .performance-horizontal-scroll-control{background:#000;color:#fff;border-color:#ff0}
#performance-program-content .performance-table,#performance-geoip-content .performance-table{margin:0}
#performance-program-content .performance-table thead th,#performance-geoip-content .performance-table thead th{position:sticky;top:0;z-index:1;background:#fff;box-shadow:0 1px 0 var(--border,#cddbe3)}
/* v9.7.1 ActiveCampaign invitation management */
.invitation-preview-table{max-height:28rem;border:1px solid var(--border,#cddbe3);border-radius:.6rem;margin-block:1rem}.invitation-preview-table table{min-width:58rem}.invitation-preview-table .is-ineligible{opacity:.72}.checkbox-line{display:flex;align-items:flex-start;gap:.65rem}.checkbox-line input{margin-top:.25rem}.checkbox-line label{margin:0}.invitation-preview-table tbody tr:nth-child(even){background:rgba(205,219,227,.28)}
.invitation-preview-heading{margin-top:1.1rem;padding:1rem 1rem 0;border:1px solid var(--border,#cddbe3);border-bottom:0;border-radius:.7rem .7rem 0 0;background:#f5f9fc}.invitation-preview-heading h5{margin:0}.invitation-preview-heading .help-text{margin:.35rem 0 0}.invitation-preview-heading~.filter-row,.invitation-preview-heading~.invitation-preview-table,.invitation-preview-heading~.admin-grid,.invitation-preview-heading~.button{margin-left:1rem;margin-right:1rem}.invitation-preview-heading~.button{margin-bottom:1rem}
body.high-contrast .invitation-preview-heading{background:#000!important;border-color:#fff!important;color:#fff!important}
.invitation-launch-progress-dialog .graph-progress-list{margin-top:1rem}.invitation-launch-progress-dialog .status-banner{margin-top:1rem}
body.high-contrast .invitation-launch-progress-dialog .graph-progress-list li{background:#000!important;color:#fff!important;border-color:#fff!important}
body.high-contrast .invitation-launch-progress-dialog .graph-progress-list small{color:#fff!important}
.has-table-header-help{position:relative}.table-header-help{display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;margin-left:.3rem;border-radius:50%;background:#e2eef3;color:#00577f;font-size:.8rem;line-height:1;vertical-align:text-bottom;cursor:help;outline:0}.table-header-help:focus-visible{box-shadow:0 0 0 3px rgba(0,87,127,.3)}.table-header-help-content{position:absolute;z-index:25;right:0;top:calc(100% + .45rem);display:none;width:min(22rem,calc(100vw - 2rem));padding:.7rem .8rem;border:1px solid #6d9caf;border-radius:.5rem;background:#073f59;color:#fff;font-size:.84rem;font-weight:500;line-height:1.35;text-align:left;box-shadow:0 .45rem 1.25rem rgba(0,27,45,.22)}.table-header-help:hover .table-header-help-content,.table-header-help:focus .table-header-help-content{display:block}.high-contrast .table-header-help{background:#000;color:#ff0;border:1px solid #ff0}.high-contrast .table-header-help-content{background:#000;color:#fff;border-color:#ff0}

/* v9.7.2 submission version history */
.version-history-panel{width:min(1180px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);overflow:auto}
.version-payload{max-height:52vh;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#f5f7f8;border:1px solid #cbd5db;border-radius:.5rem;padding:1rem}
.version-current{font-weight:700;color:#015177}

/* v9.7.3 data quality */
.data-quality-filters{display:grid;grid-template-columns:repeat(4,minmax(12rem,1fr));gap:1rem;margin:1rem 0;align-items:end}.data-quality-filters label{display:block;margin-bottom:.4rem;font-weight:700}.data-quality-table-wrap{max-height:36rem}.possible-duplicates{margin:1rem 0;padding:1rem;border:1px solid var(--border,#c9d9e4);border-radius:.65rem;background:#f7fbfd}.possible-duplicates h4,.possible-duplicates h5{margin:0}.possible-duplicates-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(20rem,1fr));gap:.75rem;margin-top:.75rem}.possible-duplicate-cluster{padding:.8rem;border:1px solid #c9d9e4;border-radius:.5rem;background:#fff}.possible-duplicate-cluster h5{display:flex;gap:.5rem;align-items:baseline;flex-wrap:wrap}.possible-duplicate-cluster ul{margin:.55rem 0 0;padding-left:1.1rem}.possible-duplicate-cluster li{margin:.45rem 0}.possible-duplicate-scope{font-size:.78rem;font-weight:700;color:#476273}.possible-duplicate-cluster code{font-size:.8em;overflow-wrap:anywhere}.quality-issue-list{margin:0;padding-left:1.15rem;min-width:24rem}.quality-issue-list li{margin:.3rem 0}.quality-badge{display:inline-block;border-radius:999px;padding:.12rem .45rem;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.quality-badge.error{background:#fde8e8;color:#8a1c1c}.quality-badge.warning{background:#fff4cf;color:#664d00}.quality-row-error{box-shadow:inset .25rem 0 #b42318}.quality-row-warning{box-shadow:inset .25rem 0 #b7791f}.quality-row-clean{box-shadow:inset .25rem 0 #2f855a}.quality-good strong{color:#2f855a}.quality-error strong{color:#b42318}.quality-warning strong{color:#9a6700}@media(max-width:900px){.data-quality-filters{grid-template-columns:1fr 1fr}}@media(max-width:560px){.data-quality-filters{grid-template-columns:1fr}.possible-duplicates-list{grid-template-columns:1fr}}

/* v9.7.7 — comprehensive high-contrast readability fixes */
body.high-contrast,
body.high-contrast main,
body.high-contrast .app-shell,
body.high-contrast .landing-view,
body.high-contrast .survey-view,
body.high-contrast .admin-view {
  background:#000 !important;
  color:#fff !important;
}

body.high-contrast .hero-card,
body.high-contrast .card,
body.high-contrast .question-panel,
body.high-contrast .progress-panel,
body.high-contrast .submit-card,
body.high-contrast .confirmation-card,
body.high-contrast .feature-grid article,
body.high-contrast .token-resume-panel,
body.high-contrast .county-action,
body.high-contrast .county-loading,
body.high-contrast .generated-link,
body.high-contrast .stat,
body.high-contrast details.definition,
body.high-contrast .option-card,
body.high-contrast .service-card,
body.high-contrast .nested-service-group,
body.high-contrast .admin-page,
body.high-contrast .integration-panel,
body.high-contrast .status-banner,
body.high-contrast dialog,
body.high-contrast dialog form,
body.high-contrast .modal-card,
body.high-contrast .dialog-card {
  background:#000 !important;
  background-image:none !important;
  color:#fff !important;
  border-color:#fff !important;
  box-shadow:none !important;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast p,
body.high-contrast label,
body.high-contrast legend,
body.high-contrast small,
body.high-contrast .help-text,
body.high-contrast .muted,
body.high-contrast .eyebrow,
body.high-contrast .section-kicker,
body.high-contrast .question-number,
body.high-contrast .feature-grid h3,
body.high-contrast .hero-card h2,
body.high-contrast .question-card h2,
body.high-contrast .review-section h3,
body.high-contrast th,
body.high-contrast td,
body.high-contrast details.definition summary,
body.high-contrast .token-resume-panel * {
  color:#fff !important;
}

body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
  background:#000 !important;
  color:#fff !important;
  border:2px solid #fff !important;
  caret-color:#fff !important;
}
body.high-contrast input::placeholder,
body.high-contrast textarea::placeholder { color:#ddd !important; opacity:1; }
body.high-contrast select option { background:#000; color:#fff; }
body.high-contrast .option-card:has(input[type="checkbox"]:checked),body.high-contrast .check-row:has(input[type="checkbox"]:checked),body.high-contrast .category-option-card:has(input[type="checkbox"]:checked){background:#151515!important;border-color:#ff0!important;box-shadow:inset 0 0 0 2px #ff0!important}

body.high-contrast .button,
body.high-contrast button {
  background:#000 !important;
  color:#fff !important;
  border:2px solid #fff !important;
}
body.high-contrast .button:hover,
body.high-contrast button:hover,
body.high-contrast .button:focus-visible,
body.high-contrast button:focus-visible {
  background:#fff !important;
  color:#000 !important;
  outline:3px solid #ffff00 !important;
  outline-offset:2px;
}
body.high-contrast .button.primary,
body.high-contrast .button.secondary,
body.high-contrast .button.ghost,
body.high-contrast .button.danger { background:#000 !important; color:#fff !important; border-color:#fff !important; }

body.high-contrast a { color:#ffff00 !important; text-decoration:underline; }
body.high-contrast a:visited { color:#ffb3ff !important; }

body.high-contrast .progress-track,
body.high-contrast .progress-bar { background:#333 !important; border:1px solid #fff; }
body.high-contrast .progress-track span,
body.high-contrast .progress-bar span { background:#ffff00 !important; }

body.high-contrast .status-banner,
body.high-contrast .success-banner,
body.high-contrast .info-banner,
body.high-contrast .field-error,
body.high-contrast .error-summary {
  background:#000 !important;
  color:#fff !important;
  border:2px solid #fff !important;
}
body.high-contrast .success-banner { border-color:#75ffb2 !important; }
body.high-contrast .field-error,
body.high-contrast .error-summary { border-color:#ff9b80 !important; color:#fff !important; }

body.high-contrast .hidden { display:none !important; }

/* Administration pages use several fixed light report and workflow surfaces.
   Keep those surfaces dark whenever high contrast is enabled so inherited white
   text never disappears against the standard theme's white panels. */
body.high-contrast .outreach-performance-report,
body.high-contrast .outreach-report-chart,
body.high-contrast .outreach-campaign-table,
body.high-contrast .metric-card,
body.high-contrast .email-metrics .metric-card,
body.high-contrast .activecampaign-list-steps li,
body.high-contrast .activecampaign-list-workflow-step,
body.high-contrast .activecampaign-csv-dropzone,
body.high-contrast .integration-setup-guide,
body.high-contrast .activecampaign-message-field-guide,
body.high-contrast .invitation-message-template-panel,
body.high-contrast .setup-step-details,
body.high-contrast .email-template-example,
body.high-contrast .activecampaign-template-warning,
body.high-contrast .activecampaign-field-result,
body.high-contrast .invitation-metric-grid .metric-card,
body.high-contrast .invitation-activity-explanation,
body.high-contrast .invitation-event,
body.high-contrast .invitation-deliverability-heading,
body.high-contrast .stacked-checklist label,
body.high-contrast .possible-duplicates,
body.high-contrast .possible-duplicate-cluster {
  background:#000 !important;
  background-image:none !important;
  color:#fff !important;
  border-color:#fff !important;
}
body.high-contrast .possible-duplicates h4,
body.high-contrast .possible-duplicates h5,
body.high-contrast .possible-duplicates p,
body.high-contrast .possible-duplicates li,
body.high-contrast .possible-duplicate-scope { color:#fff !important; }
body.high-contrast .spreadsheet-horizontal-scroll-control{background:#000!important;color:#fff!important;border-color:#fff!important}
body.high-contrast .spreadsheet-horizontal-scroll-control input{accent-color:#ffff00}
/* The spreadsheet dialog is rendered directly under body, outside #admin-view.
   Give every fixed light spreadsheet surface its own high-contrast treatment. */
body.high-contrast #submission-grid-dialog,
body.high-contrast #submission-grid-dialog .grid-dialog-shell,
body.high-contrast #submission-grid-dialog .grid-dialog-header,
body.high-contrast #submission-grid-dialog .grid-toolbar,
body.high-contrast #submission-grid-dialog .grid-filter-bar,
body.high-contrast #submission-grid-dialog .grid-results-bar,
body.high-contrast #submission-grid-dialog .modal-spreadsheet-wrap,
body.high-contrast #submission-grid-dialog .grid-columns-panel,
body.high-contrast #submission-grid-dialog .columns-panel-header { background:#000!important; color:#fff!important; border-color:#fff!important; }
body.high-contrast #submission-grid-dialog :is(h2,p,label,span,strong,summary,td,th) { color:#fff!important; }
body.high-contrast #submission-grid-dialog :is(input,select,textarea) { background:#000!important; color:#fff!important; border-color:#fff!important; }
body.high-contrast #submission-grid-dialog .spreadsheet-grid th,
body.high-contrast #submission-grid-dialog .spreadsheet-grid tbody tr:nth-child(odd) td,
body.high-contrast #submission-grid-dialog .spreadsheet-grid tbody tr:nth-child(odd) td.grid-fixed,
body.high-contrast #submission-grid-dialog .spreadsheet-grid .row-actions { background:#000!important; color:#fff!important; border-color:#fff!important; }
body.high-contrast #submission-grid-dialog .spreadsheet-grid tbody tr:nth-child(even) td,
body.high-contrast #submission-grid-dialog .spreadsheet-grid tbody tr:nth-child(even) td.grid-fixed { background:#111!important; color:#fff!important; }
body.high-contrast #submission-grid-dialog .spreadsheet-grid tbody tr.selected-row td,
body.high-contrast #submission-grid-dialog .spreadsheet-grid tbody tr.selected-row td.grid-fixed,
body.high-contrast #submission-grid-dialog .spreadsheet-grid td.changed { background:#222!important; color:#fff!important; box-shadow:inset 0 0 0 2px #ffff00; }
body.high-contrast #submission-grid-dialog .grid-sort-button:hover,
body.high-contrast #submission-grid-dialog .grid-sort-button:focus-visible,
body.high-contrast #submission-grid-dialog .grid-sort-button.active { background:#222!important; color:#ffff00!important; outline-color:#ffff00; }
body.high-contrast .admin-page :is(.table-scroll,.table-wrap,.admin-table),
body.high-contrast .admin-page .admin-table :is(tr,th,td) {
  background:#000 !important;
  color:#fff !important;
  border-color:#fff !important;
}
body.high-contrast .admin-page .admin-table tbody tr:nth-child(even) :is(th,td) { background:#111 !important; }
body.high-contrast .outreach-campaign-table thead th {
  background:#000 !important;
  color:#fff !important;
  box-shadow:0 1px 0 #fff !important;
}
body.high-contrast .outreach-performance-report :is(h3,h4,h5,h6,p,label,span,small,strong,td,th,summary,dt,dd),
body.high-contrast .metric-card :is(span,strong,small),
body.high-contrast .activecampaign-list-steps :is(strong,span),
body.high-contrast .activecampaign-list-workflow-step :is(h5,h6,p,label,small,strong,span),
body.high-contrast .activecampaign-csv-dropzone :is(strong,span),
body.high-contrast .activecampaign-field-result :is(h3,dt,dd),
body.high-contrast .invitation-event :is(span,time,p),
body.high-contrast .invitation-activity-explanation :is(p,dt,dd),
body.high-contrast .setup-step-details summary,
body.high-contrast .email-template-example strong { color:#fff !important; }
body.high-contrast .admin-page code { background:#111 !important; color:#ffff00 !important; border-color:#fff !important; }
body.high-contrast .outreach-chart-row i { background:#ffff00 !important; }

/* Some administration components set fixed text colors after the general
   heading rules above.  Scope a final text treatment to the entire admin
   workspace so no overview, navigation, or operational-card label is left
   gray on the black high-contrast surface. */
body.high-contrast #admin-view :is(h1,h2,h3,h4,h5,h6,p,label,legend,small,strong,span,summary,dt,dd,li,td,th),
body.high-contrast .site-header :is(h1,p,small,strong,span),
body.high-contrast .admin-profile-identity :is(strong,small) {
  color:#fff !important;
  opacity:1 !important;
}
/* Restore the intentional dark text after a high-contrast button changes to
   its white hover or keyboard-focus surface. */
body.high-contrast #admin-view :is(button,.button):is(:hover,:focus-visible) :is(small,strong,span),
body.high-contrast .admin-profile-button:is(:hover,:focus-visible) .admin-profile-identity small {
  color:#000 !important;
}
/* A monitoring card is a button, so the general high-contrast hover rule
   would otherwise turn its visible tooltip text black on a dark surface. */
body.high-contrast #admin-view .monitoring-summary-card:hover .monitoring-card-tooltip,
body.high-contrast #admin-view .monitoring-summary-card:focus-visible .monitoring-card-tooltip {
  background:#000 !important;
  color:#fff !important;
  border:1px solid #ffff00;
}
body.high-contrast #admin-view .monitoring-summary-card:hover .monitoring-card-tooltip::after,
body.high-contrast #admin-view .monitoring-summary-card:focus-visible .monitoring-card-tooltip::after { border-top-color:#ffff00; }

.importance-card {
  margin-top:1rem;
  padding:clamp(1.5rem,3vw,2.25rem);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:2rem;
  align-items:center;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:1rem;
  box-shadow:var(--shadow);
  border-top:6px solid var(--brand-green);
}
.importance-card h3 { margin:.25rem 0 .75rem; color:var(--navy); font-size:clamp(1.35rem,2.5vw,2rem); }
.importance-card p { max-width:76ch; }
.importance-list { margin:.9rem 0 0; padding-left:1.35rem; }
.importance-list li + li { margin-top:.45rem; }
.importance-action { min-width:15rem; text-align:center; }
.importance-action .button { width:100%; }
@media (max-width: 800px) {
  .importance-card { grid-template-columns:1fr; gap:1.25rem; }
  .importance-action { min-width:0; text-align:left; }
}
body.high-contrast .importance-card { background:#000; color:#fff; border-color:#fff; border-top-color:#ff0; }
body.high-contrast .importance-card h3,
body.high-contrast .importance-card p,
body.high-contrast .importance-card li,
body.high-contrast .importance-card .help-text { color:#fff; }

/* v9.7.11 entry-page UX refinement */
#landing-view.container {
  width:min(1100px, calc(100% - 2rem));
  padding-top:clamp(1.5rem,3vw,2.5rem);
  padding-bottom:clamp(2rem,4vw,4rem);
}
#landing-view {
  display:grid;
  gap:1rem;
}
#landing-view .importance-card,
#landing-view .hero-card,
#landing-view .feature-grid { margin:0; }

.importance-card {
  position:relative;
  overflow:hidden;
  grid-template-columns:minmax(0,1.65fr) minmax(16rem,.65fr);
  gap:clamp(1.5rem,3vw,3rem);
  padding:clamp(1.5rem,3vw,2.5rem);
  align-items:stretch;
  border-top:0;
  border-left:6px solid var(--brand-green);
  box-shadow:0 12px 34px rgba(1,81,119,.09);
}
.importance-card::after {
  content:"";
  position:absolute;
  width:18rem;
  height:18rem;
  right:-10rem;
  top:-11rem;
  border-radius:50%;
  background:rgba(147,201,83,.12);
  pointer-events:none;
}
.importance-card h2 {
  max-width:19ch;
  margin:.35rem 0 .8rem;
  color:var(--brand-deep-blue);
  font-size:clamp(1.75rem,3.5vw,2.65rem);
  line-height:1.08;
  letter-spacing:-.025em;
}
.importance-lead { max-width:72ch; margin:0; font-size:1.04rem; line-height:1.65; color:var(--muted); }
.importance-benefits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin-top:1.4rem; }
.benefit-item { display:grid; grid-template-columns:auto 1fr; gap:.65rem; align-items:start; padding:.9rem; background:#f7faf5; border:1px solid #dbe9cf; border-radius:.75rem; }
.benefit-item p { margin:0; font-size:.91rem; line-height:1.45; }
.benefit-item strong { color:var(--brand-deep-blue); }
.benefit-number { display:grid; place-items:center; width:2rem; height:2rem; border-radius:50%; background:var(--brand-green); color:#17320e; font-size:.72rem; font-weight:800; }
.importance-action {
  position:relative;
  z-index:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  text-align:left;
  padding:1.25rem;
  border-radius:.85rem;
  background:linear-gradient(145deg,#f2f8fb,#fff);
  border:1px solid #d5e5ec;
}
.importance-action-title { margin:0 0 .35rem; font-weight:800; color:var(--brand-deep-blue); }
.importance-action p:not(.importance-action-title) { margin:.1rem 0 1rem; color:var(--muted); line-height:1.5; }
.importance-action .button { width:auto; }

.hero-card {
  padding:clamp(1.5rem,3vw,2.5rem);
  grid-template-columns:minmax(0,1.45fr) minmax(19rem,.65fr);
  align-items:start;
  gap:clamp(1.5rem,4vw,3.5rem);
  border-top:5px solid var(--brand-blue);
  box-shadow:0 12px 34px rgba(1,81,119,.09);
}
.hero-card h2 {
  max-width:18ch;
  font-size:clamp(2.25rem,5vw,4rem);
  line-height:.98;
  letter-spacing:-.035em;
  margin:.35rem 0 1rem;
}
.hero-lead { max-width:60ch; font-size:1.05rem; line-height:1.6; color:var(--muted); }
.hero-meta,.hero-tags { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1.25rem; }
.hero-meta span,.hero-tags span { padding:.38rem .7rem; border-radius:999px; background:#eaf6fb; border:1px solid #c8e6f1; color:var(--brand-deep-blue); font-size:.82rem; font-weight:750; }
.hero-actions {
  display:grid;
  gap:.75rem;
  padding:1rem;
  border-radius:.9rem;
  background:#f5f9fb;
  border:1px solid #d4e3e9;
}
.hero-actions > .button { width:100%; min-height:3rem; }
.hero-actions .status-banner { margin:0; padding:.85rem; border:1px solid #d9e5c9; border-radius:.65rem; background:#f6faef; color:#356d1b; line-height:1.45; }
.token-resume-panel { margin:0; padding:1rem; background:#fff; border-color:#d4e3e9; }
.token-resume-panel .inline-form { align-items:stretch; }
.token-resume-panel .inline-form input { min-width:0; width:100%; }
.token-resume-panel .inline-form .button { white-space:nowrap; }

.feature-grid { gap:.75rem; }
.feature-grid article {
  display:flex;
  gap:.85rem;
  align-items:flex-start;
  padding:1rem 1.1rem;
  border-left:0;
  border-top:3px solid var(--brand-green);
  border:1px solid var(--line);
  box-shadow:0 6px 18px rgba(1,81,119,.05);
}
.feature-grid article:nth-child(2) { border-top-color:var(--brand-blue); }
.feature-grid article:nth-child(3) { border-top-color:var(--brand-teal); }
.feature-grid h3 { margin:0 0 .25rem; font-size:1rem; }
.feature-grid p { margin:0; color:var(--muted); font-size:.9rem; line-height:1.45; }
.feature-icon { flex:0 0 auto; display:grid; place-items:center; width:2rem; height:2rem; border-radius:.55rem; background:#eef7e8; color:#3d711e; font-weight:800; }
.feature-grid article:nth-child(2) .feature-icon { background:#e8f6fb; color:var(--brand-deep-blue); }
.feature-grid article:nth-child(3) .feature-icon { background:#e5f5f2; color:#126d66; }

@media (max-width:900px) {
  .importance-card,
  .hero-card { grid-template-columns:1fr; }
  .importance-benefits { grid-template-columns:1fr; }
  .importance-action { padding:1rem; }
  .hero-card h2 { max-width:22ch; }
}
@media (max-width:620px) {
  #landing-view.container { width:min(100% - 1rem,1100px); padding-top:.75rem; }
  .importance-card,
  .hero-card { padding:1.15rem; border-radius:.8rem; }
  .importance-card h2 { font-size:1.8rem; }
  .hero-card h2 { font-size:2.35rem; }
  .feature-grid { grid-template-columns:1fr; }
  .hero-meta,.hero-tags { gap:.4rem; }
  .hero-meta span,.hero-tags span { font-size:.76rem; }
}
body.high-contrast .importance-card,
body.high-contrast .importance-action,
body.high-contrast .benefit-item,
body.high-contrast .hero-actions,
body.high-contrast .hero-meta span,
body.high-contrast .hero-tags span,
body.high-contrast .feature-icon { background:#000 !important; color:#fff !important; border-color:#fff !important; }
body.high-contrast .importance-card { border-left-color:#ff0 !important; }
body.high-contrast .hero-card { border-top-color:#ff0 !important; }
body.high-contrast .importance-card h2,
body.high-contrast .importance-lead,
body.high-contrast .benefit-item strong,
body.high-contrast .benefit-item p,
body.high-contrast .importance-action-title,
body.high-contrast .importance-action p,
body.high-contrast .hero-lead,
body.high-contrast .hero-meta span,
body.high-contrast .hero-tags span,
body.high-contrast .feature-grid p { color:#fff !important; }

/* v9.7.12 — full-width secure resume token entry */
.resume-token-entry {
  display:block;
  width:100%;
  min-height:6.5rem;
  margin:.45rem 0 .5rem;
  padding:.75rem .85rem;
  resize:vertical;
  overflow-wrap:anywhere;
  word-break:break-all;
  white-space:pre-wrap;
  font-family:ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size:.95rem;
  line-height:1.45;
}
.token-resume-panel > .button { margin-top:.35rem; }
body.high-contrast .resume-token-entry {
  color:#fff !important;
  background:#000 !important;
  border-color:#fff !important;
}

/* v9.7.13: anti-automation honeypot. Kept outside the viewport without display:none
   so basic form-filling bots encounter it, while keyboard and assistive-technology
   users do not. */
.bot-trap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Respondent journey analytics */
.analytics-filters{display:flex;gap:1rem;flex-wrap:wrap;margin:1rem 0}.analytics-filters>div{min-width:14rem;flex:1}.analytics-grid{display:grid;grid-template-columns:minmax(18rem,.9fr) minmax(24rem,1.1fr);gap:1.5rem;margin:1.5rem 0}.journey-funnel{display:grid;gap:.85rem}.funnel-label{display:flex;justify-content:space-between;gap:1rem}.funnel-track{height:.75rem;background:#e0e1e2;border-radius:999px;overflow:hidden}.funnel-track span{display:block;height:100%;background:linear-gradient(90deg,#29ade4,#19948a);border-radius:inherit}.funnel-row small{display:block;margin-top:.25rem;color:#526573}.high-contrast .funnel-track{background:#333;border:1px solid #fff}.high-contrast .funnel-track span{background:#ff0}.high-contrast .funnel-row small{color:#fff}@media(max-width:850px){.analytics-grid{grid-template-columns:1fr}}

/* v9.7.19: Journey Analytics usability and responsive layout */
#journey-analytics-card {
  overflow: hidden;
}
#journey-analytics-card .section-heading-row {
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
#journey-analytics-card .analytics-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(16rem, 1fr));
  gap: 1rem 1.25rem;
  align-items: end;
  margin: 1.5rem 0;
}
#journey-analytics-card .analytics-filters > div {
  min-width: 0;
}
#journey-analytics-card .analytics-filters label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 700;
}
#journey-analytics-card .analytics-filters select,
#journey-analytics-card .analytics-filters input[type="date"] {
  width: 100%;
  min-height: 3rem;
}
#journey-analytics-card .analytics-custom-dates {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(13rem, 1fr)) auto;
  gap: 1rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--border, #cddbe3);
  border-radius: .75rem;
  background: #f7fafb;
}
#journey-analytics-card .analytics-custom-dates[hidden] {
  display: none !important;
}
#journey-analytics-summary.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(9rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.75rem;
}
#journey-analytics-summary .stat-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid #cddbe3;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(1, 81, 119, .06);
}
#journey-analytics-summary .stat-card strong {
  display: block;
  color: #015177;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
#journey-analytics-summary .stat-card span {
  display: block;
  color: #526573;
  font-size: .95rem;
  line-height: 1.35;
}
#journey-analytics-summary .stat-card small { color: #526573; line-height: 1.35; }
#journey-friction-callout { margin: 1rem 0; }
#journey-friction-callout a { margin-left: .35rem; font-weight: 700; }
#journey-small-sample-note { margin: -.6rem 0 1rem; }
#journey-analytics-card .journey-flow-panel { grid-column: 1 / -1; min-width: 0; }
#journey-analytics-card .journey-flow {
  overflow-x: auto;
  border: 1px solid #d7e2e8;
  border-radius: .65rem;
  background: #fbfdfe;
}
#journey-analytics-card .journey-flow svg { display: block; width: max-content !important; min-width: 61.25rem; max-width: none !important; }
#journey-analytics-card .journey-flow-link { fill: none; stroke: #29ade4; stroke-linecap: round; opacity: .52; }
#journey-analytics-card .journey-flow-terminal-mask { fill: #fbfdfe; }
#journey-analytics-card .journey-flow-link-count { fill: #015177; font-size: 14px; font-weight: 800; paint-order: stroke; stroke: #fbfdfe; stroke-width: 5px; }
#journey-analytics-card .journey-flow-node rect { fill: #fff; stroke: #015177; stroke-width: 1.5px; }
#journey-analytics-card .journey-flow-node-label { fill: #173f54; font-size: 15px; font-weight: 800; }
#journey-analytics-card .journey-flow-node-count { fill: #526573; font-size: 13px; }
.journey-flow-dialog { width: min(98vw, 112rem); max-width: 98vw; height: min(94vh, 70rem); max-height: 94vh; padding: 0; }
.journey-flow-dialog-panel { box-sizing: border-box; height: 100%; padding: 1.5rem; overflow: auto; }
.journey-flow-dialog .journey-flow-explainer { display: grid; grid-template-columns: repeat(3, minmax(14rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.journey-flow-dialog .journey-flow-explainer section,.journey-flow-dialog .journey-flow-insights { border: 1px solid #d7e2e8; border-radius: .65rem; padding: 1rem; background: #f7fafb; }
.journey-flow-dialog .journey-flow-explainer h3,.journey-flow-dialog .journey-flow-insights h3 { margin-top: 0; }
.journey-flow-dialog .journey-flow-expanded { min-height: 17rem; }
.journey-flow-dialog .journey-flow-expanded svg { min-width: 100rem; }
.journey-flow-dialog .journey-flow-link { fill: none; stroke: #29ade4; stroke-linecap: round; opacity: .52; }
.journey-flow-dialog .journey-flow-terminal-mask { fill: #fbfdfe; }
.journey-flow-dialog .journey-flow-link-count { fill: #015177; font-size: 14px; font-weight: 800; paint-order: stroke; stroke: #fbfdfe; stroke-width: 5px; }
.journey-flow-dialog .journey-flow-node rect { fill: #fff; stroke: #015177; stroke-width: 1.5px; }
.journey-flow-dialog .journey-flow-node-label { fill: #173f54; font-size: 15px; font-weight: 800; }
.journey-flow-dialog .journey-flow-node-count { fill: #526573; font-size: 13px; }
.journey-flow-dialog .journey-flow-phases { margin: 1.25rem 0; }
.journey-flow-dialog .journey-flow-phases > h3 { margin: 0 0 .75rem; }
#journey-flow-phases { display: grid; grid-template-columns: repeat(2, minmax(18rem, 1fr)); gap: 1rem; }
.journey-flow-phase { border: 1px solid #d7e2e8; border-radius: .65rem; padding: 1rem; background: #fff; }
.journey-flow-phase h4 { margin: 0 0 .5rem; color: #015177; }
.journey-flow-phase h4 span { color: #526573; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.journey-flow-phase p { margin: 0 0 .8rem; }
.journey-flow-phase dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.journey-flow-phase dl div { border-left: 3px solid #8aca4c; padding-left: .65rem; }
.journey-flow-phase dt { color: #526573; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.journey-flow-phase dd { margin: .2rem 0 0; }
.journey-flow-dialog .journey-flow-insights .metric-card { display: grid; align-content: start; gap: .3rem; min-width: 0; }
.journey-flow-dialog .journey-flow-insights .metric-card span { display: block; color: #294a5a; font-weight: 700; }
.journey-flow-dialog .journey-flow-insights .metric-card strong { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.journey-flow-dialog .metric-card small { display: block; margin-top: .15rem; color: #526573; line-height: 1.35; }
#journey-analytics-card .analytics-grid {
  display: grid;
  grid-template-columns: minmax(20rem, .9fr) minmax(28rem, 1.1fr);
  gap: 2rem;
  align-items: start;
  margin: 1.75rem 0 2rem;
}
#journey-analytics-card .analytics-grid > section,
#journey-analytics-card > section {
  min-width: 0;
}
#journey-analytics-card .journey-groups-panel { grid-column: 1 / -1; }
#journey-analytics-card .table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #d7e2e8;
  border-radius: .65rem;
}
#journey-analytics-card .journey-groups-wrap { overflow-x: auto; }
#journey-analytics-card .journey-groups-wrap table { min-width: 46rem; width: 100%; table-layout: fixed; }
#journey-analytics-card .journey-groups-wrap th:first-child,
#journey-analytics-card .journey-groups-wrap td:first-child { width: 32%; }
#journey-analytics-card .journey-groups-wrap th:nth-child(2),
#journey-analytics-card .journey-groups-wrap td:nth-child(2) { width: 17%; }
#journey-analytics-card .journey-groups-wrap th:nth-child(3),
#journey-analytics-card .journey-groups-wrap td:nth-child(3) { width: 17%; }
#journey-analytics-card .journey-groups-wrap th:nth-child(4),
#journey-analytics-card .journey-groups-wrap td:nth-child(4) { width: 17%; }
#journey-analytics-card .journey-groups-wrap th:nth-child(5),
#journey-analytics-card .journey-groups-wrap td:nth-child(5) { width: 17%; }
#journey-analytics-card .journey-groups-wrap td:not(:first-child) { white-space: nowrap; }
#journey-analytics-card .journey-groups-wrap th { overflow-wrap: anywhere; word-break: normal; hyphens: none; }
#journey-analytics-card table {
  min-width: 38rem;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
#journey-analytics-card th,
#journey-analytics-card td {
  padding: .8rem .9rem;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}
#journey-analytics-card th {
  background: #f2f7f9;
  position: sticky;
  top: 0;
  z-index: 1;
}
#journey-analytics-card tbody tr:nth-child(even) td {
  background: #fafcfd;
}
#journey-analytics-card .funnel-row {
  min-width: 0;
}
#journey-analytics-card .funnel-label span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.high-contrast #journey-analytics-card .analytics-custom-dates,
.high-contrast #journey-analytics-summary .stat-card,
.high-contrast #journey-analytics-card th,
.high-contrast #journey-analytics-card td {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
.high-contrast #journey-analytics-summary .stat-card strong,
.high-contrast #journey-analytics-summary .stat-card span,
.high-contrast #journey-analytics-summary .stat-card small,
.high-contrast #journey-analytics-card .journey-flow-node-label,
.high-contrast #journey-analytics-card .journey-flow-node-count,
.high-contrast #journey-analytics-card .journey-flow-link-count {
  fill: #fff !important;
  color: #fff !important;
}
/* The standard diagram styles add a dark SVG stroke.  At the smaller
   subtitle size it consumes the glyphs, so node labels and arrival counts
   need a clean white fill with no stroke in High Contrast mode. */
body.high-contrast :is(#journey-flow,#journey-flow-expanded) .journey-flow-node-label,
body.high-contrast :is(#journey-flow,#journey-flow-expanded) .journey-flow-node-count {
  fill:#fff !important;
  stroke:none !important;
}
body.high-contrast :is(#journey-flow,#journey-flow-expanded) .journey-flow-link-count {
  fill:#fff !important;
  stroke:#000 !important;
  stroke-width:3px !important;
}
.high-contrast #journey-analytics-card .journey-flow { background: #000; border-color: #fff; }
.high-contrast #journey-analytics-card .journey-flow-node rect { fill: #000; stroke: #fff; }
.high-contrast #journey-analytics-card .journey-flow-link { stroke: #ff0; }
.high-contrast #journey-analytics-card .journey-flow-terminal-mask { fill: #000; }
.high-contrast .journey-flow-node-label,
.high-contrast .journey-flow-node-count,
.high-contrast .journey-flow-link-count { fill: #fff !important; stroke: #000; }
.high-contrast .journey-flow-link-count { paint-order: stroke; stroke-width: 5px; }
.high-contrast .journey-flow-dialog .journey-flow { background: #000; border-color: #fff; }
.high-contrast .journey-flow-dialog .journey-flow-node rect { fill: #000; stroke: #fff; }
.high-contrast .journey-flow-dialog .journey-flow-link { stroke: #ff0; }
.high-contrast .journey-flow-dialog .journey-flow-terminal-mask { fill: #000; }
/* The expanded-flow dialog uses fixed light card surfaces.  Make each card
   and every label within it follow the high-contrast palette. */
.high-contrast .journey-flow-dialog .journey-flow-explainer section,
.high-contrast .journey-flow-dialog .journey-flow-insights,
.high-contrast .journey-flow-phase { background:#000; color:#fff; border-color:#fff; }
.high-contrast .journey-flow-dialog .journey-flow-explainer :is(h3,p),
.high-contrast .journey-flow-dialog .journey-flow-insights :is(h3,span,strong,small),
.high-contrast .journey-flow-phase :is(h4,h4 span,p,dt,dd) { color:#fff; }
.high-contrast .journey-flow-phase dl div { border-left-color:#ff0; }
@media (max-width: 1050px) {
  #journey-analytics-summary.stat-grid { grid-template-columns: repeat(2, minmax(10rem, 1fr)); }
  #journey-analytics-card .analytics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  #journey-analytics-card .analytics-filters { grid-template-columns: 1fr; }
  #journey-analytics-card .analytics-custom-dates { grid-template-columns: 1fr; }
  #journey-analytics-summary.stat-grid { grid-template-columns: 1fr; }
  #journey-analytics-card .section-heading-row .button-row { width: 100%; }
  #journey-analytics-card .section-heading-row .button-row .button { flex: 1 1 auto; }
  #journey-analytics-card .journey-groups-wrap { overflow: visible; border: 0; }
  #journey-analytics-card .journey-groups-wrap table,
  #journey-analytics-card .journey-groups-wrap tbody,
  #journey-analytics-card .journey-groups-wrap tr,
  #journey-analytics-card .journey-groups-wrap td { display: block; width: 100%; }
  #journey-analytics-card .journey-groups-wrap thead { display: none; }
  #journey-analytics-card .journey-groups-wrap tr { margin-bottom: .85rem; border: 1px solid #d7e2e8; border-radius: .65rem; overflow: hidden; }
  #journey-analytics-card .journey-groups-wrap td { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 1fr); gap: .75rem; padding: .65rem .8rem; border-bottom: 1px solid #e4edf1; white-space: normal !important; }
  #journey-analytics-card .journey-groups-wrap td:last-child { border-bottom: 0; }
  #journey-analytics-card .journey-groups-wrap td::before { content: attr(data-label); color: #526573; font-weight: 700; }
  .journey-flow-dialog .journey-flow-explainer { grid-template-columns: 1fr; }
  #journey-flow-phases { grid-template-columns: 1fr; }
  .journey-flow-phase dl { grid-template-columns: 1fr; }
  .journey-flow-dialog-panel { padding: 1rem; }
}

/* v9.7.22 — readable submission version details */
#submission-version-detail-dialog{width:min(96rem,calc(100vw - 1.5rem));max-width:calc(100vw - 1.5rem);max-height:calc(100vh - 1.5rem);padding:0}
#submission-version-detail-dialog .version-history-panel{width:100%;max-width:none;box-sizing:border-box;padding:1.5rem;overflow:auto}
.version-detail-meta>div{border:1px solid var(--border,#ccd8df);border-radius:.75rem;background:#f7fafb;padding:.85rem 1rem;min-width:0}
.version-detail-meta>div span{display:block;color:#536b78;font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;margin-bottom:.3rem}
.version-detail-meta>div strong{display:block;overflow-wrap:anywhere}
.version-view-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:1.25rem 0 .85rem;border-top:1px solid var(--border,#ccd8df);padding-top:1.25rem}
.version-view-heading h3,.version-view-heading p{margin:0}.version-view-heading p{margin-top:.25rem}
.segmented-control{display:flex;gap:.35rem;flex-wrap:wrap}.segmented-control .button{min-height:2.55rem;padding:.55rem .85rem}.segmented-control .is-active{background:#015177;color:#fff;border-color:#015177}
.version-readable{display:grid;gap:1rem;max-height:58vh;overflow:auto;padding-right:.25rem}
.version-section{border:1px solid var(--border,#ccd8df);border-radius:.8rem;background:#fff;overflow:hidden}
.version-section>h4{margin:0;padding:.8rem 1rem;background:#eef5f7;color:#015177;border-bottom:1px solid var(--border,#ccd8df);font-size:1rem}
.version-fields{margin:0;padding:.25rem 1rem .65rem}.version-field{display:grid;grid-template-columns:minmax(15rem,34%) 1fr;gap:1rem;padding:.72rem 0;border-bottom:1px solid #e6ecef}.version-field:last-child{border-bottom:0}.version-field dt{font-weight:750;color:#203b49}.version-field dd{margin:0;min-width:0;overflow-wrap:anywhere}
.version-empty{color:#607681;font-style:italic}
.version-list{margin:0;padding-left:1.2rem}.version-list li{margin:.25rem 0}
.version-object{display:grid;gap:.55rem}.version-object-row{display:grid;grid-template-columns:minmax(9rem,28%) 1fr;gap:.75rem;padding:.45rem .55rem;border-radius:.4rem;background:#f7fafb}.version-object-label{font-weight:700;color:#294a5a}.version-program-card{border:1px solid #d7e2e7;border-radius:.65rem;padding:.85rem;margin:.35rem 0;background:#fbfdfe}.version-program-card h5{margin:0 0 .65rem;color:#015177;font-size:1rem}
.version-payload{max-height:58vh;font-size:.88rem;line-height:1.45}
body.high-contrast .version-detail-meta>div,body.high-contrast .version-section,body.high-contrast .version-program-card,body.high-contrast .version-object-row{background:#000!important;color:#fff!important;border-color:#fff!important}body.high-contrast .version-section>h4{background:#000!important;color:#ff0!important;border-color:#fff!important}body.high-contrast .version-field dt,body.high-contrast .version-object-label{color:#ff0!important}
@media(max-width:760px){#submission-version-detail-dialog{width:100vw;max-width:100vw;max-height:100vh;margin:0;border-radius:0}.version-view-heading{align-items:flex-start;flex-direction:column}.version-field{grid-template-columns:1fr;gap:.35rem}.version-object-row{grid-template-columns:1fr;gap:.2rem}.version-readable{max-height:none}}

/* v9.7.23 — full-width submission version history */
#submission-version-dialog{
  width:min(96rem,calc(100vw - 1.5rem));
  max-width:calc(100vw - 1.5rem);
  max-height:calc(100vh - 1.5rem);
  padding:0;
}
#submission-version-dialog > .version-history-panel{
  width:100%;
  max-width:none;
  box-sizing:border-box;
  padding:1.5rem;
  overflow:auto;
}
#submission-version-dialog .table-scroll{
  width:100%;
  max-width:100%;
  overflow:auto;
}
#submission-version-dialog table{
  width:100%;
  min-width:72rem;
}
@media(max-width:760px){
  #submission-version-dialog{
    width:100vw;
    max-width:100vw;
    max-height:100vh;
    margin:0;
    border-radius:0;
  }
  #submission-version-dialog > .version-history-panel{padding:1rem;}
}


/* v9.7.24 program category definition policy */
.definition-mode-options{display:grid;gap:1rem;margin:1.25rem 0;border:0;padding:0}.definition-mode-options>legend{font-weight:800;margin-bottom:.25rem}.definition-mode-card{display:grid;grid-template-columns:auto 1fr;gap:.85rem;align-items:start;padding:1rem;border:1px solid var(--border,#cddbe3);border-radius:.75rem;background:#fff;cursor:pointer}.definition-mode-card:has(input:checked){border:3px solid #19948a;padding:calc(1rem - 2px);background:#f1fbf8}.definition-mode-card input{margin-top:.25rem}.definition-mode-card span{display:grid;gap:.35rem}.definition-mode-card strong{font-size:1.05rem}.definition-mode-card small{font-style:normal;color:#486273}.definition-mode-card em{display:block;font-style:normal;color:#334e5d;background:#f5f8fa;border-left:4px solid #29ade4;padding:.7rem .8rem;margin-top:.35rem;line-height:1.45}.definition-mode-card [data-edit-category-definitions]{justify-self:start;margin-top:.25rem}.category-definition-editor-dialog{width:min(52rem,calc(100vw - 2rem));max-height:min(90vh,60rem);overflow:auto;padding:0}.category-definition-editor-form{display:grid;gap:1rem;padding:1.5rem}.category-definition-editor-form h2,.category-definition-editor-form p{margin:0}.category-definition-editor-fields{display:grid;gap:.9rem}.category-definition-editor-fields label{display:grid;gap:.35rem}.category-definition-editor-fields textarea{width:100%;box-sizing:border-box;resize:vertical}.high-contrast .definition-mode-card,.high-contrast .definition-mode-card:has(input:checked){background:#000;color:#fff;border-color:#fff}.high-contrast .definition-mode-card small,.high-contrast .definition-mode-card em{color:#fff}.high-contrast .definition-mode-card em{background:#111;border-left-color:#ff0}

/* Consistent, visible field requirements across public and administrator forms. */
.field-requirement{display:inline-block;margin-left:.25rem;font-size:.76em;font-weight:700;letter-spacing:.01em;vertical-align:middle}.field-requirement.is-required{color:#a32418}.field-requirement.is-required::before{content:'• '}.field-requirement.is-optional{color:var(--muted,#52606d);font-weight:600}.question-requirement{display:inline-block;margin-left:.25rem;color:#a32418;font-size:clamp(.78rem,.5em,1rem);font-style:italic;font-weight:500;letter-spacing:.01em;vertical-align:middle;white-space:nowrap}.high-contrast .field-requirement.is-required,.high-contrast .field-requirement.is-optional,.high-contrast .question-requirement{color:#ff0}

/* Administrator field guidance is visible on label hover and available by keyboard focus. */
label.has-field-guidance{position:relative}.field-guidance-tooltip{display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;margin-left:.35rem;border-radius:50%;background:#e2eef3;color:#00577f;font-size:.8rem;font-weight:800;line-height:1;vertical-align:text-bottom;cursor:help;outline:0}.field-guidance-tooltip:focus-visible{box-shadow:0 0 0 3px rgba(0,87,127,.3)}.field-guidance-content{position:absolute;z-index:20;left:0;bottom:calc(100% + .45rem);display:none;width:min(22rem,calc(100vw - 2rem));padding:.7rem .8rem;border:1px solid #6d9caf;border-radius:.5rem;background:#073f59;color:#fff;font-size:.84rem;font-weight:500;line-height:1.35;box-shadow:0 .45rem 1.25rem rgba(0,27,45,.22)}.field-guidance-tooltip:hover .field-guidance-content,.field-guidance-tooltip:focus .field-guidance-content{display:block}.high-contrast .field-guidance-tooltip{background:#000;color:#ff0;border:1px solid #ff0}.high-contrast .field-guidance-content{background:#000;color:#fff;border-color:#ff0}

/* Connection-test dialogs need a reliable inset at narrow desktop widths. */
#graph-test-dialog,#activecampaign-test-dialog{width:min(46rem,calc(100vw - 3rem));max-width:calc(100vw - 3rem);padding:0}
#graph-test-dialog>.graph-test-panel,#activecampaign-test-dialog>.graph-test-panel{width:100%;max-width:100%;padding:1.5rem;box-sizing:border-box}
#activecampaign-test-dialog .graph-progress-list{margin-top:.25rem}
#activecampaign-test-dialog #activecampaign-test-progress-message{margin-top:.25rem;padding:.9rem 1rem;line-height:1.4}
@media(max-width:700px){#graph-test-dialog,#activecampaign-test-dialog{width:calc(100vw - 1rem);max-width:calc(100vw - 1rem)}#graph-test-dialog>.graph-test-panel,#activecampaign-test-dialog>.graph-test-panel{padding:1rem}}

.activecampaign-message-template{grid-column:1/-1}.activecampaign-message-template textarea{width:100%;resize:vertical;line-height:1.45}.activecampaign-message-template code{padding:.1rem .25rem;border-radius:.2rem;background:#e8f1f5;color:#003d5c}
.activecampaign-message-field-guide{margin:.25rem 0 1rem;padding:.9rem 1rem;border:1px solid #9fcfe4;border-left:5px solid #199bc4;border-radius:.6rem;background:#f3fafc}.activecampaign-message-field-guide h5{margin:0 0 .45rem;font-size:1rem}.activecampaign-message-field-guide p{margin:.35rem 0}.activecampaign-message-field-guide ol{margin:.55rem 0 0;padding-left:1.25rem;display:grid;gap:.35rem;line-height:1.4}
.invitation-message-template-panel{margin:1.25rem 0;padding:1rem 1.1rem;border:1px solid #9fcfe4;border-left:5px solid #199bc4;border-radius:.7rem;background:#f3fafc}.invitation-message-template-panel h5{margin:0 0 .35rem;font-size:1.05rem}.invitation-message-template-panel textarea{width:100%;box-sizing:border-box;resize:vertical;line-height:1.45}.invitation-message-template-panel code{padding:.1rem .25rem;border-radius:.2rem;background:#e2eef3;color:#003d5c}
.invitation-template-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(15rem,23rem);gap:1rem;align-items:start}.invitation-template-validation{margin-top:1.65rem;padding:.85rem 1rem;border:1px solid #b42318;border-left:5px solid #b42318;border-radius:.55rem;background:#fff1f0;color:#8b1f16}.invitation-template-validation strong{display:block}.invitation-template-validation ul{margin:.55rem 0 0;padding-left:1.1rem;display:grid;gap:.45rem}.invitation-template-validation code{background:#ffe0dd;color:#8b1f16}.invitation-template-validation .fix-invitation-template-issue{margin:.35rem 0 0;padding:.28rem .5rem;font-size:.82rem}.invitation-template-editor{position:relative;overflow:hidden}.invitation-template-editor pre,.invitation-template-editor textarea{box-sizing:border-box;width:100%;min-height:100%;margin:0;padding:.55rem .65rem;border:1px solid transparent;font:inherit;letter-spacing:normal;line-height:1.45;tab-size:8;white-space:pre-wrap;overflow-wrap:break-word;word-break:break-word}.invitation-template-editor pre{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;color:#172b38;font-family:inherit}.invitation-template-editor pre mark{padding:0;border-radius:.15rem;background:#ffd1cc;color:#8b1f16;box-shadow:0 0 0 1px #b42318}.invitation-template-editor textarea{position:relative;z-index:1;background:transparent!important;color:transparent;caret-color:#172b38}.invitation-template-editor textarea::selection{background:rgba(0,87,127,.28);color:transparent}.invitation-message-template-panel textarea.has-template-errors{border-color:#b42318;box-shadow:0 0 0 2px rgba(180,35,24,.12)}@media(min-width:1200px){.invitation-template-editor-layout{display:block;position:relative}.invitation-template-validation{position:absolute;z-index:3;left:calc(100% + 1rem);top:0;width:20rem;margin-top:1.65rem;box-sizing:border-box}.invitation-message-template-panel{overflow:visible}}@media(max-width:1199px){.invitation-template-editor-layout{grid-template-columns:1fr}.invitation-template-validation{margin-top:0}}
.invitation-template-editor{background:#fff}
.invitation-template-variable-reference{margin:.75rem 0 0;padding:.75rem;border:1px solid var(--border);border-radius:.45rem;background:var(--surface-alt)}.invitation-template-variable-reference h6{margin:0 0 .5rem;font-size:.95rem}.invitation-template-variable-reference dl{display:grid;gap:.45rem;margin:0}.invitation-template-variable-reference dl div{display:grid;grid-template-columns:minmax(10rem,auto) 1fr;gap:.5rem;align-items:baseline}.invitation-template-variable-reference dt,.invitation-template-variable-reference dd{margin:0}.invitation-template-variable-reference dd{color:var(--muted)}body.high-contrast .invitation-template-variable-reference{background:#000!important;border-color:#fff!important}body.high-contrast .invitation-template-variable-reference :is(h6,dt,dd){color:#fff!important}
.invitation-tag-new{margin-top:.65rem}.invitation-tag-new label{font-size:.9rem}.invitation-tag-new .button-row{display:flex;gap:.5rem;margin:.3rem 0 0}.invitation-tag-new input{min-width:0;flex:1}
.activecampaign-contact-lookup-tools{display:grid;gap:.65rem}.activecampaign-contact-lookup-tools h6{margin-top:.35rem}.activecampaign-contact-lookup-tools .button-row{align-items:center}.activecampaign-contact-lookup-tools input[type="search"]{min-width:min(100%,18rem);flex:1}
.invitation-draft-controls{margin:1.25rem 0;padding:1rem 1.1rem;border:1px solid #b9dce9;border-radius:.7rem;background:#fff}.invitation-draft-controls h5{margin:0 0 .75rem;font-size:1.05rem}.invitation-draft-controls .button-row{margin:.85rem 0 .5rem}.invitation-draft-controls .help-text{margin:0;line-height:1.45}
/* This selector is intentionally placed after the invitation panel's fixed
   light default so High Contrast cannot fall back to the white card. */
body.high-contrast .invitation-draft-controls{background:#000!important;border-color:#fff!important;color:#fff!important}

/* Shared USPS and database test dialog: same inset and result spacing as Graph. */
#standard-connection-test-dialog{width:min(46rem,calc(100vw - 3rem));max-width:calc(100vw - 3rem);max-height:calc(100vh - 2rem);padding:0}
#standard-connection-test-dialog>.graph-test-panel{display:flex;flex-direction:column;gap:1rem;width:100%;max-width:100%;max-height:calc(100vh - 2rem);padding:1.5rem;box-sizing:border-box;overflow-y:auto}
#standard-connection-test-dialog .section-heading-row{align-items:flex-start;gap:1rem}#standard-connection-test-dialog .section-heading-row h2{margin:0}#standard-connection-test-dialog .section-heading-row .help-text{margin:0;line-height:1.45}
#standard-connection-test-status{margin:0;padding:.85rem 1rem;min-height:3rem;display:flex;align-items:center;border-top:1px solid var(--border,#cddbe3)}
@media(max-width:700px){#standard-connection-test-dialog{width:calc(100vw - 1rem);max-width:calc(100vw - 1rem)}#standard-connection-test-dialog>.graph-test-panel{padding:1rem;gap:.8rem}}

/* ActiveCampaign uses the same three-step modal structure and needs the same protected result area. */
#activecampaign-test-dialog{max-height:calc(100vh - 2rem)}
#activecampaign-test-dialog>.graph-test-panel{display:flex;flex-direction:column;gap:1rem;max-height:calc(100vh - 2rem);overflow-y:auto}
#activecampaign-test-dialog .section-heading-row{align-items:flex-start;gap:1rem}#activecampaign-test-dialog .section-heading-row h2{margin:0}#activecampaign-test-dialog .section-heading-row .help-text{margin:0;line-height:1.45}
#activecampaign-test-progress-message{margin:0;padding:.85rem 1rem;min-height:3rem;display:flex;align-items:center;border-top:1px solid var(--border,#cddbe3)}

.activecampaign-setup-button{margin:0 0 1rem}.activecampaign-setup-dialog{width:min(52rem,calc(100vw - 3rem));max-width:calc(100vw - 3rem);max-height:calc(100vh - 3rem);padding:0;border:0;border-radius:1rem;box-shadow:0 1.5rem 4rem rgba(1,81,119,.28)}.activecampaign-setup-dialog::backdrop{background:rgba(0,27,45,.58)}.activecampaign-setup-panel{width:100%;box-sizing:border-box;padding:1.5rem;max-height:calc(100vh - 3rem);overflow:auto}.activecampaign-setup-panel h2{margin:0 0 .5rem}.activecampaign-setup-panel h3{margin:1.35rem 0 .45rem;font-size:1.05rem}.activecampaign-setup-panel section:first-of-type h3{margin-top:1rem}.activecampaign-setup-panel ol,.activecampaign-setup-panel ul{margin:.35rem 0;padding-left:1.35rem;display:grid;gap:.35rem;line-height:1.45}.activecampaign-setup-panel code{padding:.1rem .3rem;border-radius:.25rem;background:#e2eef3;color:#003d5c}.activecampaign-setup-panel .help-text{line-height:1.45}@media(max-width:700px){.activecampaign-setup-dialog{width:calc(100vw - 1rem);max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem)}.activecampaign-setup-panel{padding:1rem;max-height:calc(100vh - 1rem)}}
.setup-step-details{margin:.8rem 0;padding:.65rem .8rem;border:1px solid #b9dce9;border-radius:.55rem;background:#f5fafc}.setup-step-details summary{cursor:pointer;font-weight:750;color:#00577f}.setup-step-details[open] summary{margin-bottom:.55rem}.setup-step-details ol{margin:0!important}
.setup-step-details h4{margin:1rem 0 .4rem;font-size:.98rem}.setup-step-details h4:first-of-type{margin-top:.35rem}.email-template-example{margin:.65rem 0;padding:.85rem 1rem;border-left:4px solid var(--brand-green,#78a83b);border-radius:.35rem;background:#fff;color:#263c49}.email-template-example p{margin:.45rem 0;line-height:1.45}.email-template-example strong{color:#003d5c}
.activecampaign-template-warning{margin:.7rem 0;padding:.85rem 1rem;border:1px solid #dfae35;border-left:5px solid #b7791f;border-radius:.5rem;background:#fff8e6;color:#4a3412}.activecampaign-template-warning p{margin:.5rem 0;line-height:1.45}.activecampaign-template-warning code{padding:.1rem .28rem;border-radius:.22rem;background:#fff;color:#633e00}
.activecampaign-field-result-list{display:grid;gap:.7rem;max-height:45vh;overflow:auto;padding:.1rem}.activecampaign-field-result{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1rem;border:1px solid var(--border,#cddbe3);border-radius:.7rem;background:#fff}.activecampaign-field-result h3{margin:0 0 .55rem;font-size:1rem;overflow-wrap:anywhere}.activecampaign-field-result dl{display:flex;flex-wrap:wrap;gap:.45rem 1.1rem;margin:0}.activecampaign-field-result dl div{display:flex;gap:.3rem;align-items:baseline}.activecampaign-field-result dt{font-size:.8rem;font-weight:750;color:var(--muted,#52606d)}.activecampaign-field-result dd{margin:0;overflow-wrap:anywhere}.activecampaign-field-result code{padding:.1rem .28rem;border-radius:.22rem;background:#e8f1f5;color:#003d5c}@media(max-width:700px){.activecampaign-field-result{align-items:stretch;flex-direction:column}.activecampaign-field-result .button{align-self:flex-start}.activecampaign-field-result dl{display:grid;grid-template-columns:1fr;gap:.3rem}}

/* Invitation delivery drill-in: no horizontal data table or clipped dialog content. */
.invitation-deliverability-dialog{width:min(68rem,calc(100vw - 2rem));max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem)}
.invitation-deliverability-dialog>.activecampaign-setup-panel{max-height:calc(100vh - 2rem);padding:1.25rem 1.5rem 1.5rem}
.invitation-deliverability-heading{position:sticky;top:-1.25rem;z-index:2;margin:0 -1.5rem 1rem;padding:1.25rem 1.5rem .75rem;background:#fff;border-bottom:1px solid var(--border,#cddbe3)}
.invitation-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.75rem;margin:1rem 0}
.invitation-metric-grid .metric-card{min-width:0;padding:.8rem 1rem;border:1px solid var(--border,#cddbe3);border-radius:.65rem;background:#f7fbfd}
.invitation-contact-list{max-height:20rem;margin:1rem 0}
.invitation-activity-explanation{margin:1rem 0;padding:.85rem 1rem;border-left:4px solid var(--brand-green,#78a83b);border-radius:.45rem;background:#f5fafc}
.invitation-activity-explanation p{margin:0 0 .6rem}.invitation-activity-explanation dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem 1.25rem;margin:0}.invitation-activity-explanation dt{font-size:.8rem;font-weight:750;color:var(--muted,#52606d)}.invitation-activity-explanation dd{margin:.15rem 0 0;overflow-wrap:anywhere}
.invitation-activity-events h4{margin:1.25rem 0 .6rem}.invitation-event-list{display:grid;gap:.6rem}.invitation-event{display:grid;grid-template-columns:1fr auto;gap:.35rem .75rem;padding:.8rem 1rem;border:1px solid var(--border,#cddbe3);border-radius:.6rem;background:#fff}.invitation-event div{display:grid;gap:.15rem}.invitation-event span,.invitation-event time{font-size:.9rem;color:var(--muted,#52606d)}.invitation-event time{text-align:right}.invitation-event p{grid-column:1/-1;margin:.15rem 0 0;overflow-wrap:anywhere}
@media(max-width:700px){.invitation-deliverability-dialog{width:calc(100vw - 1rem);max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem)}.invitation-deliverability-dialog>.activecampaign-setup-panel{max-height:calc(100vh - 1rem);padding:1rem}.invitation-deliverability-heading{top:-1rem;margin:0 -1rem .8rem;padding:1rem}.invitation-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.invitation-contact-list{max-height:none}.invitation-activity-explanation dl{grid-template-columns:1fr}.invitation-event{grid-template-columns:1fr}.invitation-event time{text-align:left}}

/* Modal fit standard: every administrative dialog keeps its controls and
   content inside the viewport. Long forms scroll inside the dialog; wide
   tables scroll only within their own table wrapper. */
.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:.75rem}
dialog:not(.landing-editor-dialog):not(.full-width-dialog):not(.audit-viewer-dialog){max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem);overflow:hidden}
dialog:not(.landing-editor-dialog):not(.full-width-dialog):not(.audit-viewer-dialog)>form,
dialog:not(.landing-editor-dialog):not(.full-width-dialog):not(.audit-viewer-dialog)>.dialog-panel{width:100%;max-width:none;box-sizing:border-box;max-height:calc(100vh - 5rem);overflow:auto;overscroll-behavior:contain}
dialog .section-heading-row>*,dialog .button-row{min-width:0}dialog .section-heading-row .button-row{justify-content:flex-end}dialog .table-scroll{max-width:100%;overflow-x:auto}dialog td,dialog th{overflow-wrap:anywhere}
.campaign-performance-dialog{width:min(72rem,calc(100vw - 2rem));max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem)}
.campaign-performance-dialog>.activecampaign-setup-panel{width:100%;max-width:none;max-height:calc(100vh - 2rem);padding:1.5rem;overflow:auto}
.campaign-performance-dialog .outreach-overview-metrics{grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))}
@media(max-width:700px){dialog:not(.landing-editor-dialog):not(.full-width-dialog):not(.audit-viewer-dialog){max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem)}dialog:not(.landing-editor-dialog):not(.full-width-dialog):not(.audit-viewer-dialog)>form,dialog:not(.landing-editor-dialog):not(.full-width-dialog):not(.audit-viewer-dialog)>.dialog-panel{max-height:calc(100vh - 3rem)}.campaign-performance-dialog{width:calc(100vw - 1rem);max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem)}.campaign-performance-dialog>.activecampaign-setup-panel{max-height:calc(100vh - 1rem);padding:1rem}.campaign-performance-dialog .section-heading-row{align-items:flex-start}.campaign-performance-dialog .section-heading-row .button-row{justify-content:flex-start}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Text inputs fill the add-program dialog; radio controls must retain their
   intrinsic width so their population labels remain visible. */
.program-add-dialog .additional-program-categories .option-card{display:flex;align-items:center;gap:.7rem;min-height:3rem;box-sizing:border-box}
.program-add-dialog .additional-program-categories .option-card input[type="radio"],.program-add-dialog .additional-program-categories .option-card input[type="checkbox"]{width:auto;flex:0 0 auto;margin:0}
.program-add-dialog .additional-program-categories .option-card span{display:block;flex:1;color:var(--ink)}

/* The dialog normally expands text inputs to the full available width.  Service
   choices are checkbox rows, so restore their intrinsic checkbox width here;
   otherwise each checkbox consumes its whole card and pushes its label out. */
.program-add-dialog .service-picker .check-row{display:flex;align-items:flex-start;gap:.7rem}
.program-add-dialog .service-picker input[type="checkbox"]{width:1.25rem;flex:0 0 auto;margin-top:.12rem}
.program-add-dialog .service-picker .check-row span{min-width:0;overflow-wrap:anywhere}

.previous-county-selection-dialog{width:min(44rem,calc(100vw - 2rem));border:0;border-radius:.8rem;box-shadow:0 1.25rem 3rem rgba(10,40,55,.28)}
.previous-county-selection-dialog::backdrop{background:rgba(20,28,36,.72)}
.previous-county-selection-dialog form{padding:1.25rem}.previous-county-selection-dialog [data-previous-county-groups]{display:grid;gap:.55rem;max-height:min(48vh,28rem);overflow:auto;margin:1rem 0}.previous-county-group small{display:block;margin-top:.2rem;color:#496576;line-height:1.35}.previous-county-group .check-row{align-items:flex-start}

/* ActiveCampaign list manager — guided list and CSV import workflow. */
.activecampaign-list-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;list-style:none;margin:1.25rem 0;padding:0;counter-reset:list-manager-step}.activecampaign-list-steps li{display:grid;gap:.2rem;padding:.9rem 1rem;border:1px solid var(--border,#cddbe3);border-radius:.7rem;background:#f5f9fc}.activecampaign-list-steps strong{color:#004d73}.activecampaign-list-steps span{font-size:.9rem;line-height:1.35;color:var(--muted,#526b7d)}.activecampaign-list-workflow-step{margin-top:1rem;padding:1.15rem;border:1px solid var(--border,#cddbe3);border-radius:.8rem;background:#fff}.activecampaign-list-workflow-step>h5{display:flex;align-items:center;gap:.55rem;margin:0 0 .8rem;font-size:1.05rem}.activecampaign-list-workflow-step>h5>span{display:inline-grid;place-items:center;width:1.7rem;height:1.7rem;border-radius:50%;background:#005f8d;color:#fff;font-size:.9rem}.activecampaign-list-workflow-step h6{margin:0 0 .3rem;font-size:1rem}.activecampaign-csv-dropzone{display:grid;justify-items:center;gap:.3rem;min-height:8rem;margin:.65rem 0;padding:1.25rem;border:2px dashed #5d9bb8;border-radius:.7rem;background:#f5fbfe;color:#164b67;text-align:center;cursor:pointer;transition:border-color .15s ease,background .15s ease}.activecampaign-csv-dropzone:hover,.activecampaign-csv-dropzone:focus-visible,.activecampaign-csv-dropzone.is-dragging{border-color:#005f8d;background:#e6f5fb;outline:none}.activecampaign-csv-dropzone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.activecampaign-csv-dropzone strong{font-size:1rem}.activecampaign-csv-dropzone span{font-size:.9rem;color:var(--muted,#526b7d)}.activecampaign-list-workflow-step .status-banner{margin:0 0 1rem}@media(max-width:760px){.activecampaign-list-steps{grid-template-columns:1fr}.activecampaign-list-workflow-step{padding:1rem}}
.admin-password-visibility{display:flex;align-items:center;gap:.45rem;margin:.45rem 0 .7rem;font-size:.92rem;font-weight:600}.admin-password-visibility input{width:auto;margin:0}
.stacked-checklist{display:grid;gap:.5rem;margin:.75rem 0}.stacked-checklist label{display:flex;align-items:center;gap:.5rem;margin:0;padding:.55rem .7rem;border:1px solid var(--border,#cddbe3);border-radius:.45rem;background:#fff}.stacked-checklist input{width:auto!important;margin:0!important}.stacked-checklist .help-text{margin:0;font-size:.88rem}

/* The landing-page editor uses light workspace surfaces outside the normal
   admin cards. Keep those surfaces dark in High Contrast so inherited white
   editor text never lands on a white editing canvas. */
body.high-contrast .landing-editor-dialog,
body.high-contrast .landing-editor-dialog-shell,
body.high-contrast .landing-editor-dialog .wysiwyg-toolbar,
body.high-contrast .landing-editor-preview,
body.high-contrast .landing-editor-preview .editor-preview-label {
  background:#000!important;
  color:#fff!important;
  border-color:#fff!important;
}
body.high-contrast .landing-editor-dialog .wysiwyg-toolbar button,
body.high-contrast .landing-editor-preview .wysiwyg-editor-in-page:hover,
body.high-contrast .landing-editor-preview .wysiwyg-editor-in-page:focus {
  background:#111!important;
  color:#fff!important;
  border-color:#ffff00!important;
}
body.high-contrast .landing-editor-preview .wysiwyg-editor-in-page :is(h1,h2,h3,h4,h5,h6,p,span,strong,em,a),
body.high-contrast .landing-editor-preview .editor-preview-label { color:#fff!important; }
body.high-contrast .landing-editor-preview .wysiwyg-editor-in-page a { color:#ffff00!important; }
body.high-contrast .site-content-respondent-preview-dialog,
body.high-contrast .site-content-respondent-preview-shell,
body.high-contrast .site-content-respondent-preview { background:#000!important;color:#fff!important;border-color:#fff!important; }

/* Submission details uses compact status cards with fixed light surfaces. */
body.high-contrast .submission-detail-shell,
body.high-contrast .detail-summary-item,
body.high-contrast .detail-section,
body.high-contrast .review-badge {
  background:#000!important;
  color:#fff!important;
  border-color:#fff!important;
}
body.high-contrast .detail-summary-item strong,
body.high-contrast .detail-summary-item span,
body.high-contrast .detail-summary-item .review-badge { color:#fff!important; }

/* The respondent's program dashboard and editor use several light workspace
   panels that sit outside the general question-card styling.  In High
   Contrast those panels must be dark too; otherwise the inherited white
   labels, section titles, and help text disappear against the light canvas. */
body.high-contrast .program-dashboard-empty,
body.high-contrast .program-dashboard-card,
body.high-contrast .program-editor,
body.high-contrast .repeat-group,
body.high-contrast .program-editor-fields,
body.high-contrast .copy-program-details,
body.high-contrast .copy-preview,
body.high-contrast .program-definition-panel,
body.high-contrast .program-definition-card,
body.high-contrast .program-population-fields,
body.high-contrast .review-program-card,
body.high-contrast .county-picker,
body.high-contrast .service-picker,
body.high-contrast .address-fieldset {
  background:#000!important;
  color:#fff!important;
  border-color:#fff!important;
}
body.high-contrast .program-dashboard-card :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,div,label,legend),
body.high-contrast .program-editor :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,div,label,legend),
body.high-contrast .repeat-group :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,div,label,legend),
body.high-contrast .copy-program-details :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,div,label,legend),
body.high-contrast .copy-preview :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,div,label,legend),
body.high-contrast .program-definition-panel :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,div,label,legend),
body.high-contrast .program-population-fields :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,div,label,legend) {
  color:#fff!important;
}
body.high-contrast .program-status-badge {
  background:#000!important;
  color:#fff!important;
  border:1px solid #fff!important;
}
body.high-contrast .program-status-badge.in-progress { color:#ffff00!important;border-color:#ffff00!important; }
body.high-contrast .program-status-badge.complete { color:#75ffb2!important;border-color:#75ffb2!important; }
body.high-contrast .program-progress { background:#333!important;border:1px solid #fff!important; }
body.high-contrast .program-progress span { background:#ffff00!important; }

/* Shared connection-test progress dialogs must not retain their light cards
   after High Contrast mode makes their text white. */
body.high-contrast .graph-test-dialog .graph-progress-list li {
  background:#000!important;
  color:#fff!important;
  border-color:#fff!important;
}
body.high-contrast .graph-test-dialog .graph-progress-list li small { color:#fff!important; }
body.high-contrast .graph-test-dialog .graph-progress-list li.active,
body.high-contrast .graph-test-dialog .graph-progress-list li.complete {
  border-color:#9ad94c!important;
}
body.high-contrast .graph-test-dialog .graph-progress-marker {
  background:#9ad94c!important;
  color:#000!important;
}
body.high-contrast .graph-test-dialog .graph-progress-list li.error .graph-progress-marker {
  background:#d92d20!important;
  color:#fff!important;
}

/* Round 15: keep dialog checkbox targets compact and make the full label a
   predictable pointer target instead of stretching the checkbox input. */
.program-add-dialog fieldset > label {
  display:flex;
  align-items:center;
  gap:.55rem;
  cursor:pointer;
}
.program-add-dialog fieldset > label input[type="checkbox"],
.program-add-dialog fieldset > label input[type="radio"] {
  width:auto;
  flex:0 0 auto;
  margin:0;
}

/* Program cards expose both the immediate-details and deferred-details paths. */
.program-card-actions {
  flex-wrap:wrap;
  justify-content:flex-end;
}
@media(max-width:700px){
  .program-dashboard-card { align-items:flex-start; flex-direction:column; }
  .program-card-actions { justify-content:flex-start; }
}

/* Admin design foundation: brand-derived info plus approved semantic additions.
   Keep these variables local: respondent styles and shared status tokens stay intact.
   admin-status-scope also supports admin-only dialogs mounted outside admin-view. */
:is(#admin-view, .admin-status-scope) {
  --admin-info-text: #015177;
  --admin-info-surface: #edf6fc;
  --admin-success-text: #216e39;
  --admin-success-surface: #edf7ee;
  --admin-warning-text: #795000;
  --admin-warning-surface: #fff4d6;
  --admin-critical-text: #b42318;
  --admin-critical-surface: #fff1f0;
}
body.high-contrast :is(#admin-view, .admin-status-scope) {
  --admin-info-text: #8ed8ff;
  --admin-info-surface: #000000;
  --admin-success-text: #baff85;
  --admin-success-surface: #000000;
  --admin-warning-text: #ffe680;
  --admin-warning-surface: #000000;
  --admin-critical-text: #ff9b80;
  --admin-critical-surface: #000000;
}
:is(#admin-view, .admin-status-scope) .admin-status {
  --admin-status-text: var(--admin-info-text);
  --admin-status-surface: var(--admin-info-surface);
  padding: .75rem 1rem;
  border: 1px solid currentColor;
  border-inline-start-width: 4px;
  border-radius: .35rem;
}
:is(#admin-view, .admin-status-scope) .admin-status[data-severity="success"] {
  --admin-status-text: var(--admin-success-text);
  --admin-status-surface: var(--admin-success-surface);
}
:is(#admin-view, .admin-status-scope) .admin-status[data-severity="warning"] {
  --admin-status-text: var(--admin-warning-text);
  --admin-status-surface: var(--admin-warning-surface);
}
:is(#admin-view, .admin-status-scope) .admin-status[data-severity="critical"] {
  --admin-status-text: var(--admin-critical-text);
  --admin-status-surface: var(--admin-critical-surface);
}
/* Override legacy high-contrast banner rules only for this opt-in admin component. */
:is(#admin-view, .admin-status-scope) .admin-status {
  color: var(--admin-status-text) !important;
  background: var(--admin-status-surface) !important;
  border-color: var(--admin-status-text) !important;
}
:is(#admin-view, .admin-status-scope) .admin-status :is(strong, span, p, small, a, a:visited) {
  color: var(--admin-status-text) !important;
}
:is(#admin-view, .admin-status-scope) .admin-status a { text-decoration: underline; }
:is(#admin-view, .admin-status-scope) .admin-status a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* One admin dashboard and table presentation, separate from respondent UI. */
#admin-view :is(.stat-grid, #journey-analytics-summary.stat-grid) { display:flex; flex-wrap:wrap; gap: .75rem; }
#admin-view .admin-stat { flex:1 1 10rem; min-width:0; padding:1rem; border:1px solid var(--line); border-inline-start:4px solid var(--admin-info-text); border-radius:.5rem; background:var(--admin-info-surface); }
#admin-view .admin-stat strong { display:block; font-size:1.75rem; line-height:1.2; color:var(--admin-info-text); overflow-wrap:anywhere; }
#admin-view .admin-stat span { display:block; margin-top:.35rem; }
#admin-view .admin-stat small { display:block; margin-top:.35rem; }
#admin-view .admin-stat[data-severity="success"] { border-inline-start-color:var(--admin-success-text); background:var(--admin-success-surface); }
#admin-view .admin-stat[data-severity="warning"] { border-inline-start-color:var(--admin-warning-text); background:var(--admin-warning-surface); }
#admin-view .admin-stat[data-severity="critical"] { border-inline-start-color:var(--admin-critical-text); background:var(--admin-critical-surface); }
#admin-view .admin-stat[data-severity="success"] strong { color:var(--admin-success-text); }
#admin-view .admin-stat[data-severity="warning"] strong { color:var(--admin-warning-text); }
#admin-view .admin-stat[data-severity="critical"] strong { color:var(--admin-critical-text); }
#admin-view .admin-stat.admin-stat-compact strong { font-size:1.1rem; }
#admin-view .admin-header { margin-bottom:.75rem; padding-block:0; }
#admin-view .admin-sidebar-heading { display:none; }
#admin-view .admin-sidebar { position:static; max-height:none; overflow:visible; }
#admin-view .admin-sidebar, #admin-view .admin-section-nav { min-width:0; max-width:100%; }
@media(max-width:920px) {
  #admin-view .admin-app-shell { grid-template-columns:minmax(0,1fr); }
  #admin-view .admin-section-nav { display:grid; grid-template-columns:minmax(0,1fr); overflow:visible; }
  #admin-view .admin-nav-link { width:100%; min-width:0; text-align:left; white-space:normal; }
}
#admin-view .admin-nav-link:not(.active) { background:transparent; box-shadow:none; }
#admin-view .admin-nav-link:not(.active):hover { background:#e9f2f7; }
#admin-view .admin-nav-link:focus-visible { outline:3px solid var(--navy); outline-offset:2px; }
body.high-contrast #admin-view .admin-nav-link:focus-visible { outline-color:#ffe600; }
body.high-contrast #admin-view .admin-nav-link.active { background:#fff!important; color:#000!important; border-inline-start:5px solid #ffe600!important; }
#admin-view .admin-create-group-panel { padding:0; border:0; box-shadow:none; background:transparent; }
#admin-view .admin-create-group-panel:not(:has(form:not(.hidden))):not(:has(.generated-link:not(.hidden))) { display:none; }
#admin-view :is(.admin-page, .card, .analytics-grid, .section-heading-row, .inline-form, .journey-flow-panel, .journey-groups-panel) { min-width:0; max-width:100%; }
#admin-view .section-heading-row { flex-wrap:wrap; gap:.75rem; }
#admin-view .inline-form { flex-wrap:wrap; }
#admin-view :is(.table-wrap, .table-scroll, .journey-flow) { min-width:0; max-width:100%; overflow-x:auto; }
#admin-view .data-quality-filters { grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr)); }
#admin-view .possible-duplicates-list { grid-template-columns:repeat(auto-fit,minmax(min(20rem,100%),1fr)); }
#admin-view table:has(> tbody:is(#groups-table-body,#submissions-table-body)) { table-layout:fixed; width:100%; min-width:960px; }
#admin-view table:has(> tbody:is(#groups-table-body,#submissions-table-body)) :is(th,td) { padding:.3rem .5rem; height:56px; vertical-align:middle; overflow-wrap:anywhere; word-break:normal; }
#admin-view table:has(> tbody:is(#groups-table-body,#submissions-table-body)) :is(th,td):last-child { width:176px; position:sticky; right:0; z-index:1; background:var(--white); box-shadow:-2px 0 0 var(--line); }
#admin-view table:has(> tbody#submissions-table-body) td:not(:last-child) { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:.9rem; }
#admin-view .submission-sort-button { white-space:normal; font-size:.85rem; padding:.25rem; }
#admin-view #open-create-group.permission-hidden { display:none!important; }
#admin-view .admin-row-actions { display:flex; align-items:center; gap:.35rem; }
#admin-view .admin-row-actions > .button { padding:.4rem .45rem; font-size:.82rem; white-space:nowrap; }
#admin-view #groups-table-body .action-stack { flex-direction:row; flex-wrap:wrap; gap:.3rem; }
#admin-view .admin-row-menu { position:fixed; inset:auto; margin:0; width:224px; max-width:calc(100vw - 16px); padding:.4rem; background:var(--white); color:var(--ink); border:1px solid var(--navy); border-radius:.4rem; box-shadow:var(--shadow); }
#admin-view .admin-row-menu:popover-open { display:grid; gap:.25rem; }
#admin-view .admin-row-menu .button { text-align:left; white-space:normal; }
#admin-view .admin-status-pill { display:inline-block; padding:.1rem .45rem; border:1px solid currentColor; border-radius:1rem; font-size:.82rem; color:var(--admin-info-text); background:var(--admin-info-surface); }
#admin-view #operational-monitoring-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(22rem,100%),1fr)); gap:.5rem; }
#admin-view .monitoring-summary-card { display:flex; flex-direction:row; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.25rem .75rem; padding:.65rem .8rem; min-height:0; text-align:left; }
#admin-view .monitoring-summary-card strong { font-size:.95rem; overflow-wrap:anywhere; min-width:0; }
#admin-view .monitoring-summary-card .monitoring-card-label { font-size:.9rem; }
#admin-view .monitoring-summary-card.monitor-ok { border-left-color:var(--admin-success-text); }
#admin-view .monitoring-summary-card.monitor-warning { border-left-color:var(--admin-warning-text); }
#admin-view .monitoring-summary-card.monitor-error { border-left-color:var(--admin-critical-text); }
#admin-view .journey-groups-wrap table { min-width:620px; table-layout:auto; }
#admin-view .journey-groups-wrap th { word-break:normal; overflow-wrap:normal; }
body.high-contrast #admin-view .admin-row-menu { background:#000; color:#fff; border-color:#fff; }
#admin-view .quality-badge.error { color:var(--admin-critical-text)!important; background:var(--admin-critical-surface)!important; border:1px solid currentColor; }
#admin-view .quality-badge.warning { color:var(--admin-warning-text)!important; background:var(--admin-warning-surface)!important; border:1px solid currentColor; }
#admin-view .admin-stat strong { color:var(--admin-info-text)!important; }
#admin-view .admin-stat[data-severity="success"] strong { color:var(--admin-success-text)!important; }
#admin-view .admin-stat[data-severity="warning"] strong { color:var(--admin-warning-text)!important; }
#admin-view .admin-stat[data-severity="critical"] strong { color:var(--admin-critical-text)!important; }
#admin-view table:has(#data-quality-body) :is(th,td):last-child { min-width:176px; width:176px; position:sticky; right:0; background:var(--white); box-shadow:-2px 0 0 var(--line); }
#admin-view .admin-nav-nested-group > summary { display:flex; align-items:center; justify-content:space-between; list-style:none; }
#admin-view .admin-nav-nested-group > summary::-webkit-details-marker { display:none; }
#admin-view .admin-nav-nested-group > summary::after { content:'⌄'; }
#admin-view .admin-nav-nested-group[open] > summary::after { transform:rotate(180deg); }
#admin-view .journey-flow-canvas, .journey-flow-dialog .journey-flow-canvas { position:relative; }
#admin-view .journey-flow-pinned, .journey-flow-dialog .journey-flow-pinned { position:sticky; left:0; float:left; margin-right:-254px; z-index:1; background:#fbfdfe; box-shadow:2px 0 4px #0002; overflow:hidden; }
#admin-view .journey-flow-pinned svg, .journey-flow-dialog .journey-flow-pinned svg { min-width:0!important; width:254px!important; }
#admin-view .journey-flow, .journey-flow-dialog .journey-flow-expanded { min-height:0; }
body.high-contrast #admin-view .journey-flow-pinned, body.high-contrast .journey-flow-dialog .journey-flow-pinned { background:#000; }
#admin-view .analytics-grid { grid-template-columns:minmax(0,1fr)!important; }

/* Unclassified admin progress is informational, never implicitly successful. */
:is(#admin-view,.admin-status-scope) .status-banner:not(.admin-status) { color:var(--admin-info-text)!important; background:var(--admin-info-surface)!important; }
:is(#admin-view,.admin-status-scope) .status-banner:is(.warning,.bulk-result-warning) { color:var(--admin-warning-text)!important; background:var(--admin-warning-surface)!important; border-color:var(--admin-warning-text)!important; }
:is(#admin-view,.admin-status-scope) .status-banner:is(.error,.danger-banner) { color:var(--admin-critical-text)!important; background:var(--admin-critical-surface)!important; border-color:var(--admin-critical-text)!important; }
:is(#admin-view,.admin-status-scope) .status-banner:is(.success,.bulk-result-success) { color:var(--admin-success-text)!important; background:var(--admin-success-surface)!important; border-color:var(--admin-success-text)!important; }

/* The full simple choice card is its native label target, including padding.
   Keep Other's separate text input outside the checkbox label. */
.question-option-card:not(.other-option-group) { padding:0; align-items:stretch; }
#survey-view .question-option-card:not(.other-option-group) > label { display:flex; gap:.7rem; align-items:flex-start; flex:1; width:100%; min-width:0; margin:0; padding:.85rem; cursor:pointer; }

:is(#admin-view,.admin-status-scope) .status-banner[data-severity="warning"] { color:var(--admin-warning-text)!important; background:var(--admin-warning-surface)!important; border-color:var(--admin-warning-text)!important; }
:is(#admin-view,.admin-status-scope) .status-banner[data-severity="critical"] { color:var(--admin-critical-text)!important; background:var(--admin-critical-surface)!important; border-color:var(--admin-critical-text)!important; }

:is(#admin-view,.admin-status-scope) .status-banner[data-severity="success"] { color:var(--admin-success-text)!important; background:var(--admin-success-surface)!important; border-color:var(--admin-success-text)!important; }

#admin-view table:has(#recycle-table-body) :is(th,td):last-child { min-width:176px; width:176px; position:sticky; right:0; background:var(--white); box-shadow:-2px 0 0 var(--line); }
#admin-view .retention-settings-grid { grid-template-columns:repeat(auto-fit,minmax(min(20rem,100%),1fr)); }
/* Submissions workbench: scoped to staff list and record dialogs. */
#admin-view .submissions-workbench table{min-width:1120px;table-layout:fixed}
#admin-view .submissions-workbench th:first-child,#admin-view .submissions-workbench td:first-child{width:44px;text-align:center}
#admin-view .submissions-workbench th:last-child,#admin-view .submissions-workbench td:last-child{width:96px}
#admin-view .submissions-workbench th:nth-child(5){width:166px}
#admin-view .submission-open{display:block;border:0;background:transparent;color:var(--admin-info-text);font:inherit;font-weight:700;text-align:left;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 0;cursor:pointer}
#admin-view .submission-click-row{cursor:pointer}
#admin-view .submission-click-row:hover td{background:var(--admin-info-surface)}
#admin-view .submission-click-row:focus-within{outline:2px solid var(--admin-info-text);outline-offset:-2px}
.submission-filter-chips,.submission-selection-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
#admin-view .submission-filter-chip[aria-pressed="true"]{background:var(--admin-info-text);color:var(--admin-info-surface);border:2px solid currentColor}
.submission-clear-filter{font:inherit;border:1px solid currentColor;border-radius:6px;padding:3px 8px;background:transparent;color:inherit;cursor:pointer}
.submission-refresh-help{max-width:220px;font-size:.8rem}
#admin-view .submission-review-pill[data-review="reviewed"]{color:var(--admin-success-text);background:var(--admin-success-surface)}
#admin-view .submission-review-pill[data-review="follow-up"],#admin-view .submission-review-pill[data-review="needs-review"]{color:var(--admin-warning-text);background:var(--admin-warning-surface)}
#admin-view .submissions-workbench input[type="checkbox"]{width:20px;height:20px;min-height:20px;cursor:pointer}
#admin-view .submissions-workbench tbody td{height:56px}
body.high-contrast #admin-view .submission-filter-chip[aria-pressed="true"]{background:#fff;color:#000}
body.high-contrast #admin-view .submission-open{color:#8ed8ff}
#admin-view .submissions-workbench .inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%}
#admin-view .submissions-workbench #submission-list-group-filter{width:210px;min-height:44px;flex:1 1 210px}
#admin-view .submissions-workbench #record-search{flex:2 1 270px;min-width:150px;min-height:44px;border:1px solid #71899a;border-radius:6px;padding:8px;font:inherit}
#admin-view .submissions-workbench .inline-form .button,#admin-view .submission-filter-chip,#admin-view .submission-selection-bar .button{min-height:44px;padding:8px 12px;font-size:.85rem}
#admin-view .submission-selection-bar[hidden]{display:none}
#admin-view .submissions-workbench [hidden]{display:none!important}
#admin-view .submissions-workbench .section-heading-row{margin-bottom:8px}
#admin-view .submissions-workbench .submission-refresh-help{max-width:none;flex:1 1 220px}
#submission-detail-dialog{width:min(1180px,96vw);max-height:94vh;padding:0}
#submission-detail-dialog .submission-detail-shell{padding:20px;max-height:90vh;overflow:auto}
.submission-record-navigation{display:flex;align-items:center;gap:12px;justify-content:space-between;font-size:.9rem}
.submission-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:2px solid #cddbe3;margin-top:14px}
.submission-tabs [role="tab"]{border:0;border-bottom:4px solid transparent;background:transparent;color:inherit;font:inherit;min-height:44px;padding:8px 16px;cursor:pointer}
.submission-tabs [aria-selected="true"]{border-bottom-color:#015177;font-weight:700;background:#edf6fc;color:#015177}
#submission-detail-dialog [hidden]{display:none!important}
#submission-detail-dialog .submission-sticky-footer{position:sticky;bottom:-20px;background:#fff;border-top:2px solid #cddbe3;padding:12px 0;margin-bottom:-20px;z-index:2}
#submission-detail-dialog .submission-sticky-footer .button{min-height:44px;padding:6px 10px;font-size:.85rem}
#submission-detail-dialog .version-program-card{border:1px solid #71899a;padding:16px;margin:12px 0;border-radius:8px;overflow-wrap:anywhere}
#submission-detail-dialog .detail-summary-grid{margin:12px 0;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
#submission-detail-dialog .detail-summary-item{font-size:.95rem;padding:10px}
#submission-detail-dialog .version-actor-role{display:block;font-weight:normal;font-size:.8rem}
#submission-unsaved:empty{display:none}
#submission-unsaved{color:var(--admin-warning-text);background:var(--admin-warning-surface);padding:10px}
body.high-contrast #submission-detail-dialog .submission-sticky-footer{background:#000;color:#fff;border-color:#fff}
body.high-contrast .submission-tabs [aria-selected="true"]{background:#fff;color:#000;border-color:#8ed8ff}
#submission-detail-dialog :focus-visible,#submission-review-dialog :focus-visible{outline:3px solid #19948a;outline-offset:3px}
body.high-contrast #submission-detail-dialog :focus-visible,body.high-contrast #submission-review-dialog :focus-visible{outline-color:#ffe680}
#submission-detail-dialog .version-history-panel,#submission-detail-dialog #submission-version-detail-dialog .version-history-panel{width:100%;max-width:100%;max-height:none;overflow:visible;padding:12px 0;box-sizing:border-box}
#submission-detail-status:empty{display:none}
body.high-contrast #submission-detail-dialog{border:2px solid #fff}
body.high-contrast #submission-detail-dialog .version-detail-meta span{color:#fff}
#submission-detail-dialog #submission-version-dialog,#submission-detail-dialog #submission-version-detail-dialog{width:100%;min-width:0;max-width:100%;max-height:none;overflow:visible;padding:0;margin:0;box-sizing:border-box}
#submission-detail-dialog #submission-version-readable{max-height:none;overflow:visible}
#submission-detail-dialog .version-view-heading{flex-wrap:wrap}
#submission-detail-dialog .submission-detail-shell{overflow-x:hidden}

/* Keep both administrator credentials in the same field component, including when revealed. */
.admin-signin-field { box-sizing:border-box; }

/* Administration-only reading surface. No survey controls or styling changed. */
.submission-review-header{position:sticky;top:-20px;z-index:3;background:var(--surface,#fff);padding:12px 0;border-bottom:1px solid #9da9b3}
.submission-review-header .section-heading-row{margin:0}
.submission-review-header .submission-tabs{margin-bottom:0}
.submission-record-id{font-size:.8rem;overflow-wrap:anywhere;margin:.4rem 0}
.submission-record-id .button{font-size:.8rem;padding:3px 8px}
.admin-answer-review{color:inherit;min-width:0}
.admin-review-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;margin-top:20px}
.admin-review-section-nav{align-self:start;display:grid;gap:8px}
.admin-review-section-nav a{padding:6px;color:inherit;text-decoration:underline}
.admin-review-section{scroll-margin-top:260px;padding:12px 0 28px;outline-offset:3px}
.admin-review-section h3{border-bottom:2px solid currentColor;padding-bottom:8px}
.admin-review-section dl{margin:0}
.admin-review-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:20px;padding:16px 0;border-bottom:1px solid #aeb8bf;min-width:0}
.admin-review-pair dt{font-weight:400;font-size:.92rem;color:inherit;line-height:1.5;min-width:0}
.admin-review-pair dd{margin:0;min-width:0;max-width:75ch;line-height:1.6;font-weight:500;overflow-wrap:anywhere;color:inherit}
.admin-review-text{white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}
.admin-review-note,.admin-review-gap{font-size:.85rem;font-weight:400;color:inherit;opacity:.8}
.admin-review-note{display:block;line-height:1.5}
.admin-review-hide-gaps [data-unanswered]{display:none}
.admin-review-program{border:1px solid #87949f;border-radius:6px;padding:16px;margin:0 0 20px;break-inside:avoid-page}
.admin-review-program h4{font-size:1.2rem;margin:0 0 8px}
.admin-review-program .admin-review-pair{display:block;padding:10px 0}
.admin-review-program dt{margin-bottom:5px}
.admin-review-location{border-top:1px solid #87949f;padding-top:12px;margin-top:20px}
.admin-review-location h5{font-size:1.05rem}
.admin-review-list{padding-left:22px;margin:4px 0}
.admin-review-chips,.admin-review-badges{display:flex;flex-wrap:wrap;gap:6px;padding:0;list-style:none}
.admin-review-chips li,.admin-review-badges span{border:1px solid currentColor;border-radius:5px;padding:2px 8px}
.admin-review-count{font-size:.85rem;margin:0}
.admin-review-other{border-left:2px solid currentColor;padding-left:10px}
.admin-answer-review :focus-visible,.submission-review-header :focus-visible{outline:3px solid currentColor;outline-offset:3px}
body.high-contrast .submission-review-header{background:#000;color:#fff}
body.high-contrast .admin-review-note,body.high-contrast .admin-review-gap{opacity:1}
@media(max-width:900px){
  .admin-review-layout{grid-template-columns:minmax(0,1fr)}
  .admin-review-section-nav{display:flex;overflow-x:auto;gap:12px;max-width:100%;padding-bottom:8px}
  .admin-review-section-nav a{flex:0 0 auto}
}
@media(max-width:700px){
  .admin-review-pair{grid-template-columns:minmax(0,1fr);gap:8px}
  .submission-review-header{position:static}
  .submission-review-header .button-row{gap:6px}
  .admin-review-program{padding:10px}
  .admin-review-section{scroll-margin-top:12px}
}
@media print{
  body:has(#submission-detail-dialog[open])>*:not(#submission-detail-dialog){display:none!important}
  #submission-detail-dialog[open]{display:block!important;position:static!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;overflow:visible!important;background:white!important;color:black!important}
  #submission-detail-dialog::backdrop{display:none}
  #submission-detail-dialog .submission-detail-shell{width:100%!important;max-height:none!important;overflow:visible!important;padding:0!important}
  #submission-detail-dialog .submission-review-header{position:static;background:white!important;color:black!important}
  #submission-detail-dialog button,#submission-detail-dialog nav,#submission-detail-dialog .submission-tabs,#submission-detail-dialog .submission-record-navigation,#submission-detail-dialog .submission-sticky-footer,#submission-detail-dialog #submission-unsaved,#submission-panel-record,#submission-panel-history{display:none!important}
  #submission-panel-answers{display:block!important}
  .admin-review-layout{display:block}
  .admin-review-pair{grid-template-columns:1fr 2fr;break-inside:avoid-page}
  .admin-review-program{break-inside:avoid-page}
  .admin-review-program .admin-review-pair{display:block}
  .admin-review-section h3,.admin-review-program h4,.admin-review-location h5{break-after:avoid-page}
  .admin-review-note,.admin-review-gap{opacity:1}
  #submission-copy-status{display:none}
}
#submission-detail-dialog .submission-secondary-actions{position:static}
@media(max-width:700px){
  .submission-review-header{position:sticky;top:-20px;padding:6px 0}
  .submission-review-header h2{font-size:1.15rem;margin:0}
  .submission-review-header #submission-detail-subtitle{font-size:.75rem;margin:4px 0}
  .submission-review-header .button{font-size:.75rem;padding:6px 8px;min-height:34px}
  .submission-review-header .submission-record-navigation{margin:4px 0}
  .submission-review-header .submission-tabs{gap:4px;flex-wrap:nowrap}
  .submission-review-header .submission-tabs button{font-size:.72rem;padding:6px}
  .admin-review-section{scroll-margin-top:310px}
}
@media print{
  #submission-detail-dialog .submission-secondary-actions{display:none!important}
  .submission-review-header{position:static!important}
}
@page submission-review{size:auto;margin:14mm}
@media print{
  #submission-detail-dialog{page:submission-review;font-size:10pt}
  #submission-detail-dialog *{outline:none!important;box-shadow:none!important}
  #submission-detail-dialog .admin-review-pair:has(.admin-review-program){display:block;break-inside:auto}
  #submission-detail-dialog .admin-review-pair:has(.admin-review-program)>dt{margin-bottom:10px;break-after:avoid-page}
  #submission-detail-dialog .admin-review-pair:has(.admin-review-program)>dd{max-width:none}
  #submission-detail-dialog .admin-review-program .admin-review-pair{display:grid;grid-template-columns:1fr 2fr;gap:12px;padding:5px 0}
  #submission-detail-dialog .admin-review-program{padding:10px}
  #submission-detail-dialog .admin-review-pair dd{font-size:10pt;line-height:1.4}
  #submission-detail-dialog .admin-review-location{break-inside:avoid-page}
}
@media print{
  #submission-detail-dialog{background:white!important;color:black!important}
  #submission-detail-dialog .admin-review-section{background:white!important;color:black!important}
  #submission-detail-dialog .admin-review-location h5{margin:6px 0}
  #submission-detail-dialog .admin-review-location{padding-top:6px;margin-top:8px}
}
@media print{
  #submission-detail-dialog .admin-answer-review{font-size:10pt;line-height:1.3}
  #submission-detail-dialog .admin-review-pair dt{font-size:10pt;line-height:1.3}
  #submission-detail-dialog .admin-review-program p{margin:5px 0}
  #submission-detail-dialog .admin-review-program .admin-review-pair{padding:3px 0}
  #submission-detail-dialog .admin-review-program h4{font-size:12pt}
  #submission-detail-dialog .admin-review-location h5{font-size:10pt}
  #submission-detail-dialog .admin-review-program li{margin:0}
}
.admin-review-section{scroll-margin-top:calc(var(--submission-header-height,360px) + 16px)}
@media print{
  html:has(#submission-detail-dialog[open]),body:has(#submission-detail-dialog[open]){background:white!important;color:black!important}
  #submission-detail-dialog .submission-detail-shell,#submission-detail-dialog .admin-answer-review,#submission-detail-dialog .admin-review-sections,#submission-panel-answers{background:white!important;color:black!important}
}
/* Per-section administrative save feedback. */
#submission-detail-dialog .submission-section-feedback{margin-top:10px;padding:10px;border:1px solid currentColor;line-height:1.5}
#submission-detail-dialog .submission-section-feedback:empty{display:none}
#submission-detail-dialog .submission-section-feedback[data-severity="info"]{color:var(--admin-info-text)!important;background:var(--admin-info-surface)!important}
#submission-detail-dialog .submission-section-feedback[data-severity="warning"]{color:var(--admin-warning-text)!important;background:var(--admin-warning-surface)!important}
#submission-detail-dialog .submission-section-feedback[data-severity="critical"]{color:var(--admin-critical-text)!important;background:var(--admin-critical-surface)!important}
#submission-detail-dialog .submission-section-feedback[data-severity="success"]{color:var(--admin-success-text)!important;background:var(--admin-success-surface)!important}
/* Spreadsheet Phase 1: scoped administration page; respondent layout is unchanged. */
body.spreadsheet-open{overflow:hidden}
body.spreadsheet-open #admin-view{max-width:none;width:100%;margin:0;padding:0}
body.spreadsheet-open .admin-header,body.spreadsheet-open .admin-sidebar,body.spreadsheet-open .admin-page-header,body.spreadsheet-open #admin-page-submission-data>:not(.spreadsheet-page),body.spreadsheet-open footer{display:none!important}
body.spreadsheet-open .admin-app-shell{display:block;margin:0;padding:0;border:0}
body.spreadsheet-open .admin-page-area,body.spreadsheet-open #admin-page-host,body.spreadsheet-open #admin-page-submission-data{padding:0;margin:0}
.spreadsheet-page[hidden]{display:none!important}
.spreadsheet-page{height:calc(100dvh - var(--sheet-site-header,100px));background:var(--surface,#fff);color:inherit}
.spreadsheet-page .grid-dialog-shell{height:100%;min-height:0}
.spreadsheet-page .grid-dialog-header{padding:6px 12px;align-items:center;gap:12px;flex-wrap:nowrap}
.spreadsheet-page .grid-dialog-header h2{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spreadsheet-page .grid-dialog-header>div{min-width:0;flex:1}
.spreadsheet-back{font-size:.75rem;max-width:130px}
.spreadsheet-page .grid-filter-bar{padding:5px 12px;gap:8px;flex-wrap:nowrap;align-items:center}
.spreadsheet-page .grid-filter-field,.spreadsheet-page .bulk-action-field{min-width:0;display:flex;flex-direction:row;align-items:center;gap:5px}
.spreadsheet-page .grid-filter-field label,.spreadsheet-page .bulk-action-field label{font-size:.75rem;margin:0;white-space:nowrap}
.spreadsheet-page .grid-search-field{flex:1;min-width:170px}
.spreadsheet-page .grid-filter-bar input{min-width:80px;width:100%}
.spreadsheet-page .grid-filter-bar select{max-width:150px}
.spreadsheet-page .button,.spreadsheet-page select,.spreadsheet-page input{min-height:28px;font-size:.75rem;padding:4px 6px;margin:0}
.spreadsheet-page .grid-filter-bar .button{white-space:nowrap}
.spreadsheet-page .grid-primary-toolbar{padding:4px 12px;align-items:center;gap:8px}
.spreadsheet-page .grid-primary-toolbar[hidden],.spreadsheet-dirty-bar[hidden]{display:none}
.spreadsheet-page #grid-selection-status{margin:0;font-size:.85rem}
.spreadsheet-page .grid-results-bar{padding:3px 12px;font-size:.75rem;min-height:22px}
.spreadsheet-page #grid-status:empty{display:none}
.spreadsheet-page #grid-status:not(:empty){padding:4px 12px;font-size:.8rem}
.spreadsheet-dirty-bar{display:flex;align-items:center;gap:10px;padding:4px 12px;color:var(--admin-warning-text);background:var(--admin-warning-surface)}
.spreadsheet-page .modal-spreadsheet-wrap{overflow:auto;flex:1;min-height:0}
.spreadsheet-page .spreadsheet-grid{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.spreadsheet-page .spreadsheet-grid td{height:34px;min-height:0;padding:0 6px;white-space:nowrap;box-sizing:border-box}
.spreadsheet-page .spreadsheet-grid .grid-cell-editor{height:30px;min-height:0;max-height:30px;margin:0;padding:3px 5px;white-space:nowrap;resize:none;overflow:hidden;line-height:22px}
.spreadsheet-page .spreadsheet-grid .sheet-cell-text{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spreadsheet-page .spreadsheet-grid .select-column{width:40px;min-width:40px;max-width:40px;left:0}
.spreadsheet-page .spreadsheet-grid .grid-fixed,.spreadsheet-page .spreadsheet-grid .grid-fixed-header{position:sticky;left:40px;min-width:240px;max-width:240px;width:240px;box-sizing:border-box;box-shadow:3px 0 4px #0002}
.spreadsheet-page .spreadsheet-grid .grid-fixed{z-index:3}
.spreadsheet-page .spreadsheet-grid .grid-fixed-header{z-index:6}
.spreadsheet-page .spreadsheet-grid .grid-col-status,.spreadsheet-page .spreadsheet-grid .grid-status-cell,.spreadsheet-page .spreadsheet-grid .grid-col-updatedAt,.spreadsheet-page .spreadsheet-grid .grid-updated-cell{position:static}
.spreadsheet-page .spreadsheet-grid thead th{position:sticky!important;top:0;background:var(--surface,#fff);z-index:4}
.spreadsheet-page .spreadsheet-grid thead .select-column,.spreadsheet-page .spreadsheet-grid thead .grid-fixed-header{z-index:6}
.spreadsheet-page .grid-sort-button{padding:7px 6px;font-size:.8rem}
.sheet-organization{display:inline-block;max-width:194px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;font-size:.8rem;font-weight:500}
.sheet-row-menu-button{width:26px;border:0;background:transparent;color:inherit;cursor:pointer;font-size:1.1rem;vertical-align:middle}
.sheet-row-menu{padding:12px;border:1px solid currentColor;border-radius:6px;max-width:90vw}
.sheet-row-menu .row-actions{display:flex;flex-direction:column;align-items:stretch}
.sheet-row-menu small{display:block;overflow-wrap:anywhere;margin-bottom:8px}
.spreadsheet-page .unsaved-row td.grid-fixed::after{display:none}
.spreadsheet-page.comfortable .spreadsheet-grid td{height:44px}
.spreadsheet-page .spreadsheet-grid tbody tr:hover td{background:#e6f2f5}
body.high-contrast .spreadsheet-page .grid-dialog-shell,body.high-contrast .spreadsheet-page .grid-filter-bar,body.high-contrast .spreadsheet-page .grid-dialog-header,body.high-contrast .sheet-row-menu{background:#000;color:#fff}
body.high-contrast .spreadsheet-page .spreadsheet-grid thead th{background:#000;color:#fff}
body.high-contrast .spreadsheet-page .spreadsheet-grid tbody tr:hover td{background:#222}
@media(max-width:1000px){.spreadsheet-page .grid-filter-bar{flex-wrap:wrap}.spreadsheet-page .grid-dialog-header{flex-wrap:wrap}.spreadsheet-page .grid-search-field{min-width:200px}.spreadsheet-page .grid-dialog-header h2{white-space:normal}}
.spreadsheet-page,.spreadsheet-page .grid-dialog-shell,.spreadsheet-page .grid-filter-bar,.spreadsheet-page .grid-dialog-header,.spreadsheet-page .modal-spreadsheet-wrap{min-width:0;max-width:100%;box-sizing:border-box}
.spreadsheet-page .grid-search-field input{width:130px;flex:1}
.spreadsheet-page .grid-filter-bar>*,.spreadsheet-page .grid-dialog-header>*{flex-shrink:0}
.spreadsheet-page .grid-filter-bar .grid-search-field,.spreadsheet-page .grid-dialog-header>div{flex-shrink:1}
.spreadsheet-page .grid-cell-editor{font-size:12px!important;line-height:20px!important;padding:2px 4px!important;height:28px!important}

#admin-view .submissions-workbench .submission-unnamed { color: var(--muted); font-style: italic; font-weight: 400; white-space: normal; overflow: visible; }
body.high-contrast #admin-view .submissions-workbench .submission-unnamed { color: #fff; }

#admin-view .submission-paging-top, #admin-view .submission-pager { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:12px 0; }

/* Column picker: fixed checkbox track, wrapping label, no shared option-card styles. */
#submission-grid-dialog .grid-columns-panel{position:fixed;right:auto;box-sizing:border-box;max-width:calc(100vw - 16px);overflow-y:auto;overflow-x:hidden;z-index:40;padding:10px;color:var(--ink);background:var(--white)}
#submission-grid-dialog .columns-panel-header{position:static;gap:8px;flex-wrap:wrap;background:inherit;padding:0 0 8px}
#submission-grid-dialog .sheet-column-search{display:grid;gap:4px;min-width:0;margin-bottom:8px}
#submission-grid-dialog #grid-column-search{width:100%;min-width:0;box-sizing:border-box;min-height:32px}
#submission-grid-dialog #grid-column-options{display:block;min-width:0}
#submission-grid-dialog .sheet-column-group{min-width:0;margin:0 0 10px;padding:0;border:0}
#submission-grid-dialog .sheet-column-group-header{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--line);padding:4px 0}
#submission-grid-dialog .sheet-column-group-header h3{flex:1;min-width:0;font-size:.85rem;margin:0;overflow-wrap:anywhere}
#submission-grid-dialog .sheet-column-row{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:8px;min-width:0;margin:0;padding:5px 0;border:0;border-radius:0;box-shadow:none;background:transparent;font-size:.8rem;font-weight:400;line-height:1.35;cursor:pointer}
#submission-grid-dialog .sheet-column-row input[type="checkbox"]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;padding:0;margin:0;border-radius:0;box-sizing:border-box}
#submission-grid-dialog .sheet-column-row span{min-width:0;white-space:normal;word-break:normal;overflow-wrap:anywhere}
#submission-grid-dialog .sheet-column-row:focus-within{outline:2px solid var(--teal);outline-offset:-2px}
#submission-grid-dialog .grid-columns-panel [hidden]{display:none!important}
body.high-contrast #submission-grid-dialog .sheet-column-row{background:#000;color:#fff}
body.high-contrast #submission-grid-dialog .grid-columns-panel .text-button{color:#ff0}
/* Plain-value spreadsheet cells, active range and buffered changes. */
.spreadsheet-page td[data-column-key]{position:relative;max-width:260px;min-width:170px;overflow:hidden;text-overflow:ellipsis;font-size:12px;cursor:cell}
.spreadsheet-page td.sheet-active{outline:2px solid var(--teal);outline-offset:-2px}
.spreadsheet-page td.sheet-range{background:#e1f0f5!important}
.spreadsheet-page td.sheet-dirty{background:#fff1cb!important}
.spreadsheet-page td.sheet-dirty::after{content:'';position:absolute;right:0;top:0;border-top:7px solid #9b6500;border-left:7px solid transparent;pointer-events:none}
body.high-contrast .spreadsheet-page td.sheet-active{outline:3px solid #ff0;outline-offset:-3px}
body.high-contrast .spreadsheet-page td.sheet-range{background:#123b4b!important;color:#fff}
body.high-contrast .spreadsheet-page td.sheet-dirty{background:#493700!important;color:#fff}
body.high-contrast .spreadsheet-page td.sheet-dirty::after{border-top-color:#ff0}
.spreadsheet-page td.sheet-editing{overflow:visible;z-index:8}
.spreadsheet-page td.sheet-editing select.grid-cell-editor{position:absolute;top:0;left:0;width:100%;height:auto!important;max-height:220px!important;min-height:60px;z-index:9;background:var(--white);color:var(--ink)}
/* Sign-in presentation only; keep form and password-manager semantics intact. */
#admin-view #admin-login-card{width:100%;max-width:400px;box-sizing:border-box;margin:clamp(24px,5vh,56px) auto;padding:24px;overflow:visible}
#admin-login-form .admin-signin-field{display:block;width:100%;min-width:0;box-sizing:border-box;height:52px;padding:12px;border-width:2px;font-size:16px;line-height:24px}
#admin-login-form .admin-signin-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:20px}
#admin-login-form .admin-signin-recovery{align-self:center;border:0;border-radius:2px;background:transparent;color:var(--teal-dark);font:inherit;text-decoration:underline;padding:8px;cursor:pointer}
#admin-login-form .admin-signin-recovery:disabled{cursor:wait;opacity:.65}
#admin-login-form :is(input,button):focus-visible{outline:3px solid var(--teal-dark);outline-offset:3px}
#admin-login-form .admin-signin-field:is(:autofill,:-webkit-autofill){-webkit-text-fill-color:var(--ink);caret-color:var(--ink);box-shadow:inset 0 0 0 1000px var(--white)}
body.high-contrast #admin-login-form .admin-signin-recovery{color:#ff0;background:transparent;border:0}
body.high-contrast #admin-login-form :is(input,button):focus-visible{outline-color:#ff0}
body.high-contrast #admin-login-form .admin-signin-recovery{border:0!important;background:transparent!important;color:#ff0!important;box-shadow:none!important}

/* Administrator reporting values use CSSOM custom properties under strict CSP. */
.outreach-chart-row i{width:var(--chart-width,0%)}
.journey-flow-canvas{width:var(--journey-width)}
.journey-flow-pinned{width:var(--journey-pinned-width);height:var(--journey-height);margin-right:calc(-1 * var(--journey-pinned-width))}
.sheet-density{display:flex;gap:0;white-space:nowrap}
.sheet-density .button{border-radius:0;padding:6px 8px}
.sheet-density .button:first-child{border-radius:6px 0 0 6px}
.sheet-density .button:last-child{border-radius:0 6px 6px 0}
.sheet-density .button[aria-pressed="true"]{background:var(--teal);color:#fff;box-shadow:inset 0 -3px 0 var(--ink);font-weight:700}
body.high-contrast .sheet-density .button[aria-pressed="true"]{background:#ff0;color:#000}
/* Administration analytics */
#journey-analytics-card section{margin-block:24px}#journey-analytics-card .stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#journey-analytics-card table th{text-align:left}#journey-analytics-card tbody th{font-weight:500;max-width:360px}.journey-attention{background:#fff4d5}.journey-attention-label{display:block;font-weight:700;font-size:.8rem}.high-contrast .journey-attention{background:#493700;color:#fff}#journey-question-order{width:auto;max-width:100%;margin:8px}#journey-analytics-card details{margin-block:12px}@media(max-width:800px){#journey-analytics-card .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.journey-line-chart{display:block;width:100%;min-width:300px;max-height:280px}.journey-line-chart text{fill:var(--ink);font-size:11px}.journey-axis{stroke:#d7e1e7;stroke-width:1}.journey-series-drafts,.journey-series-submissions{fill:none;stroke-width:2}.journey-series-drafts{stroke:#008a96}.journey-series-submissions{stroke:#005777;stroke-dasharray:6 4}.journey-dot-drafts{fill:#008a96}.journey-dot-submissions{fill:#005777}.journey-line-chart g:focus circle:first-child{stroke:var(--ink);stroke-width:3;r:5}.journey-legend{display:flex;gap:24px;flex-wrap:wrap}.journey-legend span:before{content:'';display:inline-block;width:28px;margin-right:8px;border-top:3px solid #008a96}.journey-legend .journey-legend-submissions:before{border-top:3px dashed #005777}.journey-bars{display:grid;gap:6px}.journey-bar{display:grid;grid-template-columns:minmax(140px,1fr) 2fr minmax(140px,1fr);gap:12px;align-items:center;text-align:left;border:1px solid transparent;background:transparent;color:var(--ink);font:inherit;padding:8px}.journey-bar:focus,.journey-bar:hover{border-color:var(--teal)}.journey-bar-track{height:12px;background:#edf1f4}.journey-bar-track i{display:block;height:100%;width:var(--bar-width);background:#008a96}.journey-group-trend{min-width:210px}.journey-group-trend .journey-line-chart{min-width:200px;max-height:90px}.journey-chart-detail{min-height:1.5em;font-size:.85rem}.high-contrast .journey-line-chart text{fill:#fff}.high-contrast .journey-series-drafts{stroke:#ff0}.high-contrast .journey-series-submissions{stroke:#fff}.high-contrast .journey-dot-drafts{fill:#ff0}.high-contrast .journey-dot-submissions{fill:#fff}.high-contrast .journey-legend-drafts:before{border-color:#ff0}.high-contrast .journey-legend-submissions:before{border-color:#fff}.high-contrast .journey-bar{color:#fff}.high-contrast .journey-bar-track i{background:#ff0}@media(max-width:600px){.journey-bar{grid-template-columns:1fr}.journey-line-chart{min-width:0}}
.quality-partition{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.quality-partition button{padding:1rem;text-align:left;font:inherit;color:inherit;background:var(--white);border:2px solid currentColor;border-radius:.5rem}
.quality-partition strong,.quality-partition span{display:block}
.quality-partition strong{font-size:1.8rem}
#data-quality-summary .admin-stat-tile{white-space:normal;text-align:left;font:inherit;color:var(--ink);background:var(--white);border:1px solid currentColor;padding:1rem;min-width:0;overflow-wrap:anywhere}
#data-quality-summary .admin-stat-tile strong,#data-quality-summary .admin-stat-tile span{display:block}
#data-quality-summary .admin-stat-tile strong{font-size:1.8rem}
.quality-history-note{border-left:3px solid currentColor;padding:.5rem 1rem;margin:1rem 0;overflow-wrap:anywhere}
.quality-history-note li{margin:.5rem 0}
@media(max-width:600px){#data-quality-summary{grid-template-columns:1fr}.quality-history-note{padding:.5rem}.quality-history-note .button{display:block;margin-top:.5rem}}
@media(forced-colors:active){#data-quality-summary .admin-stat-tile{color:CanvasText;background:Canvas}}
.admin-export-feedback{position:sticky;top:0;z-index:100;background:var(--white);color:var(--ink);border:2px solid currentColor;padding:.75rem;overflow-wrap:anywhere}
body.spreadsheet-open .admin-export-feedback{position:fixed;top:auto;bottom:0;left:1rem;right:1rem;z-index:10000}
@media (forced-colors:active){.quality-partition button,.admin-export-feedback{background:Canvas;color:CanvasText}}
:root{--quality-issue-accent:#9b2c2c}
#quality-facts p{margin:.25rem 0;font-size:.9rem}
#quality-method{margin:.65rem 0;border:1px solid var(--border,#c9d9e4);padding:.65rem;border-radius:.4rem}
#quality-method summary,.quality-more summary{cursor:pointer;font-weight:700}
#quality-method p{overflow-wrap:anywhere}
.data-quality-table-wrap{max-height:none;overflow:visible}
.data-quality-table-wrap table{table-layout:fixed;width:100%;min-width:0}
.data-quality-table-wrap th,.data-quality-table-wrap td{white-space:normal;word-break:normal;overflow-wrap:break-word;min-width:0;padding:.6rem;vertical-align:top}
.data-quality-table-wrap th:nth-child(1){width:16%}
.data-quality-table-wrap th:nth-child(2){width:10%}
.data-quality-table-wrap th:nth-child(3){width:7%}
.data-quality-table-wrap th:nth-child(4),.data-quality-table-wrap th:nth-child(5){width:6%}
.data-quality-table-wrap th:nth-child(6){width:auto}
.data-quality-table-wrap th:nth-child(7){width:13%}
.data-quality-table-wrap th:nth-child(8){width:9%}
.data-quality-table-wrap .quality-issue-list{min-width:0;padding-left:1.1rem}
.quality-id{font-size:.8rem;margin-top:.3rem}.quality-id button{padding:.2rem .4rem}
.quality-more{margin-top:.6rem}.quality-badge{white-space:nowrap}
@media(max-width:1200px){
 .data-quality-table-wrap thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 .data-quality-table-wrap table,.data-quality-table-wrap tbody{display:block}
 .data-quality-table-wrap tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);margin-bottom:1rem;border:1px solid var(--border,#c9d9e4);padding:.5rem}
 .data-quality-table-wrap td{display:block;width:auto!important;border:0;grid-column:1}
 .data-quality-table-wrap td:before{content:attr(data-label);display:block;font-weight:700;font-size:.8rem}
 .data-quality-table-wrap td:nth-child(6){grid-column:2;grid-row:1 / span 8}
}
@media(max-width:600px){.data-quality-table-wrap tr{display:block}.data-quality-table-wrap td:nth-child(6){margin:.5rem 0}.data-quality-table-wrap .quality-issue-list{padding-left:1.1rem}}
body.high-contrast #quality-method,body.high-contrast .data-quality-table-wrap tr{border-color:currentColor}
body.high-contrast .quality-badge{color:#fff;background:#000;border:1px solid currentColor}
.quality-detail-banner{border:2px solid currentColor;border-radius:.4rem;padding:1rem;margin:1rem 0;scroll-margin-top:calc(var(--submission-header-height,8rem) + 1rem)}
.quality-detail-banner .quality-issue-list{min-width:0}
.quality-question-marker{display:block;font-size:.85rem;font-weight:bold;border:1px solid currentColor;padding:.25rem;margin:.5rem 0}
.admin-review-hide-gaps .admin-review-pair.quality-question-revealed{display:grid!important}
.quality-question-flagged{border-left:3px solid currentColor;padding-left:.5rem;scroll-margin-top:calc(var(--submission-header-height,8rem) + 1rem)}
.quality-issue-link{font-weight:600;text-decoration:underline}
#admin-view #quality-page-size,#admin-view #quality-page-number{width:85px;min-height:44px}
#admin-view #quality-sort-field{width:auto;max-width:100%;min-height:44px}
.quality-row-metadata{display:none}
@media(max-width:1200px){
 .data-quality-table-wrap td:nth-child(2),.data-quality-table-wrap td:nth-child(3),.data-quality-table-wrap td:nth-child(4),.data-quality-table-wrap td:nth-child(5),.data-quality-table-wrap td:nth-child(7){display:none}
 .data-quality-table-wrap td:nth-child(6){grid-row:1 / span 2}
 .quality-row-metadata{display:block;margin:.5rem 0;font-size:.85rem}
 .quality-row-metadata summary{cursor:pointer;font-weight:600}
}

/* Pair review remains one collapsed line per name group. */
#admin-view .possible-duplicates-list{display:block}
.possible-duplicate-cluster{margin-block:.6rem}
.possible-duplicate-cluster summary,#duplicate-dismissed summary{cursor:pointer;overflow-wrap:anywhere}
.duplicate-pair{border-top:1px solid var(--border,#c9d9e4);padding-block:1rem;overflow-wrap:anywhere}
.duplicate-pair input{display:block;max-width:100%;margin-bottom:.5rem}
.duplicate-pair .duplicate-record{white-space:normal;text-align:left}
#duplicate-dismissed{margin-top:1rem}

/* Data Quality analysis: visible denominators and one shared scale per chart. */
.quality-insight{margin-block:1rem;border:1px solid var(--border,#c9d9e4);border-radius:.5rem;padding:1rem}
.quality-insight>summary{font-weight:700;cursor:pointer}
.quality-chart-scope{font-weight:600}
.quality-chart-row{display:grid;grid-template-columns:minmax(10rem,2fr) minmax(5rem,3fr) auto;gap:.7rem;align-items:center;margin-block:.6rem}
.quality-chart-row meter{width:100%;height:1.2rem;accent-color:var(--primary,#005b7f)}
.quality-frequency-bar{display:block;width:100%;text-align:left;white-space:normal;border:1px solid currentColor;border-radius:.4rem;padding:.5rem;background:transparent;color:inherit;margin-block:.5rem}
.quality-section-chart,.quality-weekly-chart article{border-top:1px solid var(--border,#c9d9e4);padding-block:.8rem}
.quality-insight-table{width:100%}.quality-insight-table td,.quality-insight-table th{padding:.55rem;overflow-wrap:anywhere;text-align:left}
.quality-insight-table .button{white-space:normal;text-align:left}
.quality-insight-table-wrap{overflow:auto}.quality-contact-list,.quality-weekly-chart{max-height:32rem;overflow:auto}
body.high-contrast .quality-insight{background:#000;color:#fff;border-color:#fff}
body.high-contrast .quality-chart-row meter{forced-color-adjust:auto}
@media(max-width:650px){.quality-chart-row{grid-template-columns:minmax(0,1fr) auto}.quality-chart-row>span{grid-column:1/-1}.quality-chart-row meter{min-width:0}.quality-insight-table thead{display:none}.quality-insight-table tbody,.quality-insight-table tr,.quality-insight-table td{display:block}.quality-insight-table tr{border-bottom:1px solid currentColor;margin-bottom:1rem}.quality-insight-table td:before{content:attr(data-label) ": ";font-weight:700}.quality-insight-table-wrap{overflow:visible}.quality-contact-list{max-height:32rem;overflow:auto}}
#quality-insights .quality-insight-table{min-width:0;width:100%;table-layout:fixed} #quality-insights .quality-insight-table td,#quality-insights .quality-insight-table th{white-space:normal;min-width:0}

.journey-perspectives-note{box-sizing:border-box;width:100%;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;padding:1rem;border:1px solid currentColor;border-radius:.5rem;margin:1rem 0}.journey-question-reach{display:block;white-space:normal;font-weight:normal;margin-top:.4rem}.export-provenance-note{flex-basis:100%;max-width:100%;overflow-wrap:anywhere}
/* Survey Groups only: retain the shared administration palette and type scale. */
#admin-view table:has(> tbody#groups-table-body) { min-width:0; table-layout:fixed; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td) { height:auto; min-height:38px; padding:.4rem .5rem; vertical-align:middle; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):nth-child(2) { width:130px; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):nth-child(3) { width:70px; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):nth-child(4) { width:88px; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):nth-child(5) { width:76px; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):last-child { width:148px; position:static; box-shadow:none; }
#groups-table-body .survey-group-name { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; }
#groups-table-body .survey-group-states { color:var(--muted); font-size:.82rem; }
#groups-table-body .survey-group-status.is-closed { color:var(--admin-warning-text); background:var(--admin-warning-surface); border-style:dashed; }
#groups-table-body .copy-group-link { padding:.15rem; }
@container survey-groups (max-width:522px) {
 #admin-view table:has(> tbody#groups-table-body) thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 #admin-view table:has(> tbody#groups-table-body), #admin-view #groups-table-body { display:block; width:100%; }
 #admin-view #groups-table-body tr { display:grid; grid-template-columns:1fr 1fr; gap:.3rem .6rem; border-bottom:1px solid var(--line); padding:.65rem 0; }
 #admin-view #groups-table-body td { display:block; width:auto!important; border:0; min-width:0; }
 #admin-view #groups-table-body td:first-child, #admin-view #groups-table-body td:last-child { grid-column:1/-1; }
 #admin-view #groups-table-body td[data-label]::before { content:attr(data-label); display:block; color:var(--muted); font-size:.82rem; }
 #admin-view #groups-table-body td:first-child::before { display:none; }
}
#admin-view table:has(> tbody#groups-table-body) th { white-space:nowrap; overflow-wrap:normal; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):nth-child(2) { width:160px; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):nth-child(3) { width:80px; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):nth-child(4) { width:105px; }
#admin-view #groups-table-body .copy-group-link { border:0; box-shadow:none; background:transparent; color:var(--navy); min-height:0; padding:.15rem; text-decoration:underline; }
/* Survey Groups: fit the table to its own available space, not the window. */
[aria-labelledby="groups-list-heading"] { container-type:inline-size; container-name:survey-groups; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):nth-child(2) { width:110px; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):nth-child(3) { width:70px; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):nth-child(4) { width:106px; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):nth-child(5) { width:74px; }
#admin-view table:has(> tbody#groups-table-body) :is(th,td):last-child { width:124px; }
#admin-view #groups-table-body :is(a,.copy-group-link), #admin-view #survey-group-exports button { font-weight:400; }
#admin-view #survey-group-exports button { color:var(--navy); background:transparent; border:0; box-shadow:none; padding:.25rem 0; text-decoration:underline; min-height:0; }
#survey-group-exports { margin-top:1.25rem; }
body.high-contrast #admin-view #survey-group-exports button { color:#ff0; }
@container survey-groups (max-width:522px) {
 #admin-view #groups-table-body td:nth-child(2) { grid-column:1/-1; }
 #admin-view #groups-table-body td:nth-child(3) { grid-column:1; grid-row:3; }
 #admin-view #groups-table-body td:nth-child(4) { grid-column:2; grid-row:3; }
}

#admin-view table:has(> tbody#groups-table-body) { table-layout:auto; }
/* Quiet actions use the same body typeface as Open link, not the display button face. */
#admin-view #groups-table-body .copy-group-link, #admin-view #survey-group-exports button { font:inherit; font-weight:400; }
body.high-contrast #admin-view #groups-table-body .copy-group-link, body.high-contrast #admin-view #survey-group-exports button { border:0!important; }
#survey-group-status-filter{width:auto;margin:.4rem 0}
#groups-table-body .group-row-primary{display:flex;flex-wrap:wrap;gap:.3rem;align-items:flex-start}
#groups-table-body .group-actions-details{min-width:0;max-width:100%}
#groups-table-body .group-actions-details[open]{flex-basis:100%}
#groups-table-body .group-actions-panel{display:grid;gap:.5rem;overflow-wrap:anywhere;padding:.5rem 0}
#groups-table-body .group-actions-panel hr{width:100%;border:0;border-top:1px solid currentColor}
#groups-table-body .group-actions-panel .help-text{margin:0}
body.high-contrast #groups-table-body .group-actions-panel .danger{color:#ff0!important;text-decoration:underline;border-style:dashed!important}
#groups-table-body .group-actions-panel button:disabled{opacity:1;cursor:not-allowed}
#admin-view #groups-table-body .group-row-primary>.button,#admin-view #groups-table-body summary.button{padding:.3rem .45rem;font-size:.875rem;min-height:0}
#admin-view #groups-table-body .group-menu-row td{width:auto;padding:.75rem}
#groups-table-body .group-menu-row .group-actions-panel{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem}
#groups-table-body .group-menu-row .group-actions-panel>strong,#groups-table-body .group-menu-row .group-actions-panel>hr,#groups-table-body .group-menu-row .group-actions-panel>p{grid-column:1/-1}
@container survey-groups (max-width:522px){#admin-view #groups-table-body .group-menu-row td{grid-column:1/-1}}

/* Archived is separate from the amber dashed Closed badge, including forced colors. */
#groups-table-body .survey-group-status.is-archived { white-space:nowrap; color:var(--muted); background:var(--surface); border:3px double currentColor; }
@media (forced-colors: active) { #groups-table-body .survey-group-status.is-closed { border:2px dashed CanvasText; } #groups-table-body .survey-group-status.is-archived { border:3px double CanvasText; } }

#groups-table-body .survey-group-status.is-new-closed { border:2px dotted currentColor; color:var(--navy); background:var(--surface); }

/* Respondent service-change confirmation only; shared confirmations are unchanged. */
.respondent-service-change-dialog{width:min(36rem,calc(100vw - 2rem));box-sizing:border-box;padding:1.25rem;border:2px solid var(--border,#526570);border-radius:.75rem;background:var(--card,#fff);color:var(--text,#162f3b)}
.respondent-service-change-dialog::backdrop{background:rgba(8,28,39,.68)}
.respondent-service-change-dialog h2{margin-top:0}
.respondent-service-change-dialog p{margin:.65rem 0 .3rem}
.respondent-service-change-dialog ul{margin:.25rem 0;padding-left:1.3rem}
.respondent-service-change-dialog .service-change-program-name{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.respondent-service-change-dialog .service-change-warning{font-weight:700;margin-top:1rem}
.respondent-service-change-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1rem}
.respondent-service-change-dialog .button.secondary.danger{color:var(--danger);border-color:var(--danger);background:var(--white)}
body.high-contrast .respondent-service-change-dialog{background:#000;color:#fff;border-color:#fff}
body.high-contrast .respondent-service-change-dialog .button.primary{background:#fff!important;color:#000!important}
@media(forced-colors:active){.respondent-service-change-dialog{background:Canvas;color:CanvasText;border-color:CanvasText}.respondent-service-change-dialog .button{border:2px solid ButtonText}}

/* Overview-only layout: reserve the work areas before asynchronous counts arrive. */
#admin-page-overview [hidden] { display:none !important; }
#overview-work { display:grid; gap:1rem; }
#overview-work .overview-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1rem; }
#overview-work .overview-tile { display:flex; flex-direction:column; justify-content:space-between; gap:.5rem; padding:1rem; border:1px solid currentColor; border-radius:.4rem; color:inherit; }
#overview-work .overview-tile strong { font-size:1.8rem; }
#overview-review .overview-body { height:13rem; overflow:auto; }
#overview-collection .overview-body { height:34rem; overflow:auto; }
#overview-stalled .overview-body { height:16rem; overflow:auto; }
#overview-scope { min-height:4rem; margin:0; }
#overview-consequences { min-height:8rem; }
#overview-work .overview-deadlines article { border-top:1px solid currentColor; padding:.75rem 0; }
#admin-page-overview #operational-monitoring-summary { min-height:20rem; }
#admin-page-overview #operational-monitoring-card { margin-top:1rem; }
@media(max-width:600px) {
 #overview-review .overview-body { height:21rem; }
 #overview-collection .overview-body { height:45rem; }
 #overview-stalled .overview-body { height:27rem; }
 #overview-scope { min-height:8rem; }
 #overview-consequences { min-height:15rem; }
}
/* Area picker layouts share the same underlying selection controls. */
.county-picker .county-bulk-actions{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;align-items:center}
.county-picker .area-link-button{display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:.25rem 0;border:0;background:transparent;color:#005a78;font:inherit;font-weight:700;text-align:left;text-decoration:underline;white-space:normal;cursor:pointer;overflow-wrap:anywhere}
.county-picker .area-link-button[hidden],.county-picker .area-selected-chips[hidden]{display:none}
.area-selection-summary{min-width:0;margin:.5rem 0}
.area-selected-chips{display:flex;flex-wrap:wrap;gap:.5rem;min-width:0}
.area-chip{display:inline-flex;align-items:center;gap:.3rem;max-width:100%;box-sizing:border-box;border:1px solid #87a9ba;border-radius:1rem;background:#edf5f8;color:#173f50;padding:.15rem .2rem .15rem .65rem}
.area-chip>span{min-width:0;overflow-wrap:anywhere}
body.high-contrast .area-chip{background:#000;color:#fff!important;border-color:#fff}
body.high-contrast .area-chip>span,body.high-contrast .area-chip .area-chip-remove{background:#000;color:#fff!important}
body.high-contrast .area-chip-remove:focus-visible{outline-color:#ffff00}
.area-chip-remove{flex-shrink:0;min-width:32px;min-height:32px;border:0;border-radius:50%;background:transparent;color:#173f50;font-size:1.3rem;cursor:pointer}
.area-count-line{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.area-count-line .county-selection-count{margin:.5rem 0}
.county-picker .area-link-button:focus-visible,.area-chip-remove:focus-visible,.county-list-scroll:focus-visible{outline:3px solid #005a78;outline-offset:3px}
.county-list-scroll{max-height:320px;overflow-y:auto;min-width:0;overscroll-behavior:contain}
.county-option>span{min-width:0;overflow-wrap:anywhere}
.area-place-examples{display:block;margin-top:.25rem;font-weight:400;font-size:.875rem;line-height:1.4;color:#496576;white-space:normal}
.county-list-states>div.county-state{border:0;background:transparent;margin:0;padding:0}
@media(max-width:650px){.county-picker .county-checkbox-grid{grid-template-columns:minmax(0,1fr)}.county-picker .county-bulk-actions{align-items:flex-start;flex-direction:column}}
body.high-contrast .county-picker .area-link-button{color:#ffe600}
body.high-contrast .county-picker .area-place-examples{color:#eee}
body.high-contrast .county-picker .area-link-button:focus-visible,body.high-contrast .county-list-scroll:focus-visible{outline-color:#ffe600}
/* Map dialog: controls remain outside the map and its contained popovers. */
#county-map-dialog.area-map-v319{width:min(96vw,76rem);height:min(96dvh,70rem);max-width:none;max-height:none;padding:0;overflow:hidden;display:flex;flex-direction:column;background:var(--white);color:var(--ink)}
#county-map-dialog.area-map-v319:not([open]){display:none}
.area-map-header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1rem;border-bottom:1px solid var(--line)}
.area-map-header h2{font-size:1.35rem;margin:0;min-width:0}.area-map-header .button{flex:0 0 auto;min-height:44px}
.area-map-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:.6rem 1rem 1rem}
.area-map-v319 .county-map-status{margin:.25rem 0;font-size:.9rem;min-height:1.3em}
.area-map-v319 .area-map-search{max-width:45rem;margin:0}.area-map-search>label{display:block;font-weight:700;margin-bottom:.25rem}.area-map-search input{width:100%;box-sizing:border-box;min-height:38px}.area-map-search [data-county-search-status]{margin:.2rem 0;font-size:.85rem;min-height:0}
.area-map-search .area-search-panel{z-index:20}.area-map-v319 .county-map-controls{gap:.4rem;margin:.4rem 0}.area-map-v319 .county-map-controls button{min-height:36px;font-size:.85rem;padding:.25rem .5rem}
.area-map-v319 .county-map-legend{flex-wrap:wrap;margin:.5rem 0;color:var(--ink)}.area-map-v319 .legend-selected{background:#4c939f}.area-map-v319 .legend-not-selected{background:#f6f8fa}
.area-map-v319 .county-map-canvas{position:relative;height:clamp(320px,52vh,600px);min-height:0;max-height:none;flex:none;padding:0;overflow:hidden;background:#e6eef2;isolation:isolate}
.area-map-v319 .county-map-canvas svg{min-width:0;width:100%;height:100%;touch-action:none;cursor:grab!important;display:block}
.area-map-v319 .county-map-canvas svg *{cursor:crosshair!important}.area-map-v319 .county-map-canvas svg:active{cursor:grabbing!important}
.area-map-v319 .county-map-county{fill:#f6f8fa;stroke:#516875;stroke-width:1;vector-effect:non-scaling-stroke;outline:none;filter:none}
.area-map-v319 .county-map-county.is-selected{fill:#4c939f;stroke:#294b59;stroke-width:1}
.area-map-v319 .county-map-county:is(:hover,:focus,.is-hovered){stroke:#101c25;stroke-width:3.5;filter:none}
.area-map-v319 .county-map-county:not(.is-selected):is(:hover,:focus,.is-hovered){fill:#f6f8fa}
.area-map-v319 .county-map-county.is-selected:is(:hover,:focus,.is-hovered){fill:#4c939f}
.area-map-state-borders{pointer-events:none}.area-map-state-borders path{fill:none;stroke:#294b59;stroke-width:2.4;vector-effect:non-scaling-stroke;pointer-events:none}
.area-map-v319 .county-map-hit-target{fill:transparent;stroke:none;stroke-width:0;pointer-events:fill}
.area-map-v319 .county-map-label{font-weight:600;fill:#142e3d;stroke:#fff;text-anchor:middle;pointer-events:none}
.area-map-v319 .county-map-tooltip{position:absolute;display:flex;flex-direction:column;gap:4px;box-sizing:border-box;z-index:10;max-width:calc(100% - 16px);padding:8px;pointer-events:auto;background:#fff;color:#142e3d;border:2px solid #294b59;box-shadow:0 2px 9px #1234;overflow:hidden;min-height:0}
.area-map-v319 .county-map-tooltip[hidden],.area-map-v319 .area-map-chooser[hidden]{display:none}
.area-map-v319 .county-map-tooltip strong{color:#142e3d;font-size:.9rem;line-height:1.2;flex-shrink:0;overflow-wrap:anywhere}
.area-map-tooltip-state{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-shrink:0;font-size:.85rem;line-height:1.15}.area-map-tooltip-action{background:#005a78;color:#fff;min-width:54px;min-height:32px;padding:.15rem .4rem;border:0;border-radius:.25rem;flex-shrink:0;font:inherit;font-weight:700}.area-map-tooltip-action[hidden]{display:none}
.area-map-place-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto;font-size:.85rem;line-height:1.35;padding:3px;scrollbar-gutter:stable}.area-map-place-list>p{margin:0!important}.area-map-place-list ul{padding-left:1.1rem;margin:0}.area-map-place-list:focus-visible,.area-map-tooltip-action:focus-visible{outline:3px solid #101c25;outline-offset:-3px}
.area-map-v319 .area-map-chooser{position:absolute;left:8px;bottom:8px;z-index:11;box-sizing:border-box;width:min(320px,calc(100% - 16px));max-height:70%;overflow:auto;background:#fff;color:#142e3d;border:2px solid #294b59;border-radius:.5rem;padding:.5rem}.area-map-chooser strong{display:block}.area-map-chooser button{display:block;text-align:left;width:100%;min-height:44px;border:1px solid #839ba7;background:#fff;color:#142e3d;margin:.25rem 0;padding:.4rem;font:inherit;overflow-wrap:anywhere}.area-map-chooser button:focus-visible{outline:3px solid #101c25}
.area-map-v319 .county-map-selected{height:auto;min-height:0;max-height:8rem;flex:none;margin-top:.6rem;padding:.6rem;overflow:auto}.area-map-v319 .county-map-selected h3{font-size:1rem;margin:0}.area-map-v319 .county-map-selected ul{font-size:.9rem}.area-map-v319 .county-map-selected:focus-visible{outline:3px solid #101c25;outline-offset:-3px}
@media(max-width:650px){#county-map-dialog.area-map-v319{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border:0;border-radius:0}.area-map-header{padding:.5rem .65rem;gap:.4rem}.area-map-header h2{font-size:1.05rem}.area-map-header .button{padding:.45rem .65rem}.area-map-body{padding:.5rem .65rem}.area-map-v319 .county-map-canvas{height:clamp(280px,44dvh,440px)}.area-map-v319 .county-map-selected{max-height:6rem}.area-map-search>label{font-size:.95rem}}

.area-map-v319 .county-map-label{font-family:system-ui,sans-serif}

/* Tooltip scrolling must never chain into the map dialog. */
.area-map-v319 .county-map-tooltip{overflow-y:auto;overscroll-behavior:contain}
.area-map-v319 .area-map-place-list{touch-action:pan-y;overscroll-behavior:contain}

.area-map-city-toggle{display:inline-flex;align-items:center;gap:.4rem;min-height:32px;margin-left:.5rem;font-weight:400}.area-map-city-toggle input{width:18px;height:18px;margin:0}.area-map-city-labels,.area-map-city-labels *, .area-map-city-dots{pointer-events:none!important}.area-map-city-dots{fill:none;stroke:#273e49;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}.area-map-v319 .area-map-city-name{font-family:system-ui,sans-serif;font-weight:400;fill:#10212a;stroke:#fff;paint-order:stroke;stroke-linejoin:round}.area-map-v319 .county-map-label{font-weight:700;fill:#101c25;stroke:#fff}.area-map-search-dot{fill:#7c3510;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}.area-map-city-name.is-search-place{fill:#632800}

.area-map-v319 .county-map-label.is-city-fallback{font-weight:400;fill:#10212a}.area-map-labels,.area-map-labels *{pointer-events:none!important}

.admin-build-info{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-size:.8rem;padding:.75rem 0}.admin-build-info button{min-height:44px}
@media(max-width:600px){.area-chip button{min-width:44px;min-height:44px}}
@media(max-width:600px){
 #county-map-dialog.area-map-v319{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border:0;border-radius:0}
 .area-map-v319 .county-map-controls button,.area-map-tooltip-action,.area-map-city-toggle,.area-map-search input{min-height:44px}
 .area-map-v319 .county-map-controls button{min-width:44px}
}
@media(max-width:600px){.county-picker input[type="search"]{min-height:44px}.county-picker .county-selected-filter{min-height:44px}}
@media(max-width:600px){#county-map-dialog.area-map-v319 button{min-width:44px;min-height:44px}}
/* Shared respondent program layout. Stored values and desktop sidebar are unchanged. */
.mobile-progress-strip{display:none}
.draft-clear-link{border:0;background:none;color:var(--navy);text-decoration:underline;padding:.5rem 0;min-height:44px;cursor:pointer;font:inherit}
.category-option-card,.program-editor:has(.county-picker) .category-option-card{align-items:center;flex-wrap:nowrap;min-width:0;cursor:pointer}
.category-option-card>label,.additional-program-category-grid .category-option-card>label{min-width:0;border:0;padding:0;margin:0;align-items:center;align-self:stretch;flex:1}
.category-option-card label span{min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.category-option-card input[type=checkbox]{flex-shrink:0}
.category-definition-info{flex:none}
.category-definition-info-button,.category-choice-header .category-definition-info-button{min-width:44px;min-height:44px;width:44px;height:44px}
.additional-program-category-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.program-editor fieldset>legend,.county-picker>legend{float:left;display:block;width:100%;padding:0;margin:0 0 .75rem;font-weight:750;line-height:1.4}
.program-editor fieldset>legend+*,.county-picker>legend+*{clear:both}
.program-editor fieldset::after,.county-picker::after{content:'';display:block;clear:both}
.county-instruction{font-weight:400}
.county-picker input[type=search],.county-picker input[role=combobox]{min-height:44px}
.county-list-details>summary{min-height:44px;align-content:center}
@media(max-width:767px){
 #survey-view{width:calc(100% - 16px);padding-top:8px}
 #survey-view .survey-shell{display:block}
 #survey-view .progress-panel{display:none}
 #survey-view.mobile-progress-open .progress-panel{display:block;max-height:65vh;overflow:auto;margin-bottom:12px;padding:12px}
 .mobile-progress-strip{display:flex;position:sticky;top:0;z-index:35;gap:8px;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);padding:8px 0;font-size:.85rem;color:var(--ink)}
 .mobile-progress-strip span{min-width:0}
 .mobile-progress-strip button{min-height:44px;flex:none;border:1px solid var(--navy);background:white;color:var(--navy);border-radius:6px;padding:8px;font-weight:700}
 #survey-view .question-panel{padding:8px;min-width:0}
 #survey-view .question-card{min-width:0}
 #survey-view .program-editor{padding:4px;min-width:0}
 #survey-view .program-editor .repeat-group{border:0;padding:0;margin:12px 0;min-width:0}
 #survey-view .program-editor fieldset,#survey-view .program-editor .additional-program-area{border:0;border-radius:0;border-top:1px solid var(--line);padding:12px 0;margin:12px 0;min-width:0;background:transparent}
 #survey-view .program-editor .category-option-card,#survey-view .program-editor .option-card{border:0;border-radius:0;border-bottom:1px solid var(--line);padding:6px 0;box-shadow:none;min-width:0}
 #survey-view .program-editor .category-option-card:has(input:checked),#survey-view .program-editor .option-card:has(input:checked){background:#eefafa}
 #survey-view .program-editor .program-population-section,#survey-view .program-editor .service-category-group{padding-left:0;padding-right:0;border:0;min-width:0}
 #survey-view .program-editor :is(label,span,strong,p,legend,h3,h4,button){overflow-wrap:anywhere}
 #survey-view .program-editor :is(input:not([type=checkbox]):not([type=radio]),textarea,select){max-width:100%;min-width:0}
 #survey-view .program-editor-actions{flex-wrap:wrap}
 #survey-view .program-editor-actions button{max-width:100%}
}
@media(max-width:479px){
 .additional-program-category-grid,.program-category-grid{grid-template-columns:minmax(0,1fr)}
 .capacity-range-field>.option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .capacity-range-field>.option-grid>label:last-child{grid-column:1/-1}
}
@media(max-width:767px){
 #survey-view .program-editor :is(.county-list-details,.county-state,.county-list-tools,.county-list-states,.county-checkbox-grid){border:0;border-radius:0;padding-left:0;padding-right:0;background:transparent}
 #survey-view .program-editor .county-option{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:8px 0;box-shadow:none}
 #survey-view .program-editor .county-list-details>summary{padding-left:0;padding-right:0}
 #survey-view .program-editor .category-option-card>label{background:transparent;border-radius:0}
}
.category-definition-tooltip{max-height:calc(100vh - 24px);overflow-y:auto}
/* Loading feedback overlays the existing map viewport without changing its geometry. */
.area-map-loading{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.65rem;padding:1rem;overflow:auto;background:#eef6f8;color:#173c4a;text-align:center;box-sizing:border-box}
.area-map-loading[hidden]{display:none}.area-map-loading p{margin:0;max-width:32rem}.area-map-loading-shapes{width:100%;display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap;max-width:30rem}.area-map-loading-shapes>div{width:6rem;max-width:28%;font-size:.8rem;line-height:1.25}.county-map-canvas .area-map-loading-shapes svg{width:100%;height:5rem;min-width:0;cursor:default;touch-action:auto}.area-map-loading-shapes path{fill:#c8dde4;stroke:#315867;stroke-width:1.4}
.area-map-loading-progress{width:min(18rem,90%);height:.55rem;overflow:hidden;background:#cedee4;border:1px solid #527280;border-radius:.5rem}.area-map-loading-progress>span{display:block;height:100%;background:#005576}.area-map-loading-progress.is-indeterminate>span{width:35%;animation:map-load-progress 1.4s ease-in-out infinite alternate}.area-map-loading-percent{font-variant-numeric:tabular-nums;min-height:1.2em}.area-map-loading button{max-width:100%;min-height:44px}
.county-map-controls button:disabled,.area-map-city-toggle:has(input:disabled){opacity:1;color:#53636a;background:#e3e9ec;cursor:not-allowed}.county-map-controls button:disabled{border-color:#84939a}.county-map-canvas[aria-busy=true]>svg{visibility:hidden}
@keyframes map-load-progress{from{transform:translateX(0)}to{transform:translateX(185%)}}
@media(prefers-reduced-motion:reduce){.area-map-loading-progress{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.area-map-loading-progress>span{animation:none}}
@media(max-width:400px){.area-map-loading{padding:.7rem;gap:.5rem}.area-map-loading-shapes>div{font-size:.75rem}.county-map-canvas .area-map-loading-shapes svg{height:3.5rem}}
/* Submission/program spreadsheet: bounded columns and opaque frozen cells. */
body.spreadsheet-open .site-header{min-height:52px;padding-top:4px;padding-bottom:4px}
body.spreadsheet-open .site-header img{max-height:38px;width:auto}
.sheet-tabs{display:flex;gap:8px;padding:8px 16px;border-bottom:1px solid #b8cbd0}
.sheet-tabs button{background:transparent;color:inherit;border:0;border-bottom:3px solid transparent;padding:8px 16px;font-weight:700}
.sheet-tabs button[aria-selected="true"]{border-color:#007e87;background:#e6f4f4}
.sheet-program-filters{display:flex;gap:16px;padding:8px 16px;flex-wrap:wrap}
.sheet-program-filters[hidden]{display:none}
.sheet-program-filters label{display:flex;align-items:center;gap:6px}
.spreadsheet-page .modal-spreadsheet-wrap table{table-layout:fixed;width:max-content;min-width:100%}
#submission-grid-dialog .sheet-labels th{width:210px;min-width:210px;max-width:600px;position:sticky;top:30px;white-space:normal}
#submission-grid-dialog .sheet-labels th.select-column{width:44px;min-width:44px}
#submission-grid-dialog .sheet-labels th.grid-fixed-header{width:260px;min-width:260px;left:44px;z-index:8;background:#e9f2f3}
#submission-grid-dialog .grid-sort-button{white-space:normal;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding-right:16px;min-height:40px}
#submission-grid-dialog td[data-column-key]{max-width:210px;min-width:210px;width:210px;overflow:hidden}
#submission-grid-dialog .grid-fixed{position:sticky;left:44px;width:260px;min-width:260px;max-width:260px;padding-right:42px;background:#fff!important;z-index:5;box-shadow:3px 0 5px #0002}
#submission-grid-dialog .selected-row .grid-fixed{background:#e6f4f4!important}
.sheet-view-record{border:0;background:transparent;color:#006c79;text-decoration:underline;text-align:left;font:inherit;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#submission-grid-dialog .sheet-row-menu-button{position:absolute;right:6px;top:50%;transform:translateY(-50%)}
.sheet-section-band th{position:sticky;top:0;height:30px;background:#dcecee;z-index:7;text-align:left;font-size:12px;padding:4px 10px}
.sheet-resize{position:absolute;right:0;top:0;bottom:0;width:8px;cursor:col-resize;background:transparent;border:0;border-right:2px solid #b0c4c8;padding:0}
.sheet-not-applicable{color:#68777a;font-style:italic}
.sheet-picker{width:min(850px,90vw);max-height:85vh;overflow:auto;padding:24px}
.sheet-picker>label{display:block;margin:8px}
.sheet-picker>.button{margin:12px 8px 0 0}
#sheet-staff-banner{position:sticky;top:0;z-index:100;background:#fff2c8;color:#242424;padding:12px 24px;border-bottom:2px solid #8f6c00}
#sheet-staff-banner[hidden]{display:none}
body.sheet-staff-edit #clear-button,body.sheet-staff-edit #save-button{display:none!important}
.sheet-csv-choice{font-size:12px;max-width:140px}
body.high-contrast #submission-grid-dialog .grid-fixed,body.high-contrast #submission-grid-dialog .grid-fixed-header{background:#000!important;color:#fff}
body.high-contrast .sheet-view-record{color:#ff0}
@media(forced-colors:active){#submission-grid-dialog .grid-fixed,#submission-grid-dialog .grid-fixed-header,.sheet-section-band th{background:Canvas!important;color:CanvasText;border-right:2px solid CanvasText}.sheet-tabs button[aria-selected="true"]{border-color:Highlight}.sheet-resize{border-color:ButtonText}}
/* Keep toolbar controls available without scrolling the whole page sideways. */
body.spreadsheet-open .site-header h1{font-size:22px;margin:0}
body.spreadsheet-open .site-header .eyebrow{display:none}
#submission-grid-dialog .grid-filter-bar{display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px;overflow:visible}
#submission-grid-dialog .sheet-program-filters{gap:12px;padding:6px 12px}
#submission-grid-dialog .sheet-program-filters label{font-size:13px;white-space:nowrap}
#submission-grid-dialog .sheet-program-filters select{width:auto;min-width:140px;max-width:220px}
#submission-grid-dialog .sheet-program-filters [hidden]{display:none}
#submission-grid-dialog .grid-search-field{min-width:160px;flex:1}
#submission-grid-dialog .grid-search-field input{width:100%}
#submission-grid-dialog .sheet-labels th{position:sticky;top:30px}
#submission-grid-dialog.sheet-program-tab td:is([data-schema-key="name"],[data-schema-key="programName"]){position:sticky;left:304px;z-index:4;background:#fff;box-shadow:3px 0 5px #0002}
#submission-grid-dialog.sheet-program-tab .sheet-labels th:nth-child(3){position:sticky;left:304px;z-index:8;background:#e9f2f3}
#submission-grid-dialog .sheet-section-band th:first-child{position:sticky;left:0;z-index:9;background:#dcecee}
.sheet-dev-tools{margin-top:16px}
.sheet-group-table{width:100%;margin-top:18px;border-collapse:collapse}
.sheet-group-table td,.sheet-group-table th{padding:10px;text-align:left;border-bottom:1px solid #d1dfe1}
@media(forced-colors:active){#submission-grid-dialog.sheet-program-tab td:is([data-schema-key="name"],[data-schema-key="programName"]),#submission-grid-dialog.sheet-program-tab .sheet-labels th:nth-child(3){background:Canvas;color:CanvasText}}
#submission-grid-dialog .sheet-row-menu{position:fixed;margin:0;width:250px;max-width:calc(100vw - 16px);max-height:70vh;padding:6px;overflow:auto}
#submission-grid-dialog .sheet-row-menu button{display:block;width:100%;text-align:left;border:0;padding:9px 10px;border-radius:3px}
#submission-grid-dialog .sheet-row-menu button:hover,#submission-grid-dialog .sheet-row-menu button:focus-visible{background:#e6f4f4;color:#00556a;outline:2px solid #007b85}
#submission-grid-dialog .sheet-program-filters label{margin:0}
#main:has(>#sheet-staff-banner:not([hidden])){padding-top:0}
#sheet-staff-banner{width:100%;margin:0 0 20px}
#sheet-staff-banner button{border:1px solid currentColor;border-radius:5px;padding:6px 12px;background:transparent;color:inherit;font:inherit;font-weight:bold}
body.sheet-staff-edit #save-button+p{display:none}

.sheet-group-scroll{max-width:100%;overflow-x:auto}
.sheet-mobile-program{display:none}
#submission-grid-dialog td[data-column-key] :is(.sheet-view-record,.sheet-cell-text){max-width:100%}
.sheet-view-controls{flex-shrink:0}
.sheet-view-controls>summary{display:none;padding:12px;cursor:pointer;font-weight:700}
.report-order{display:inline-flex;align-items:center;gap:.5rem;margin:.75rem;flex-wrap:wrap}
.report-order select{width:auto;max-width:100%}
.report-sort-reset{margin:.5rem}
:is(#admin-view,dialog) .admin-list-pager .pager-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%}
@media(max-width:600px){
 :is(#admin-view,dialog) .admin-list-pager .pager-navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
 :is(#admin-view,dialog) .admin-list-pager .pager-navigation .button{font-size:.8rem;padding-inline:4px}
 :is(#admin-view,dialog) .admin-list-pager .pager-navigation [data-page="first"]{order:1}
 :is(#admin-view,dialog) .admin-list-pager .pager-navigation [data-page="previous"]{order:2}
 :is(#admin-view,dialog) .admin-list-pager .pager-navigation [data-page="next"]{order:3}
 :is(#admin-view,dialog) .admin-list-pager .pager-navigation [data-page="last"]{order:4}
 :is(#admin-view,dialog) .admin-list-pager .pager-navigation .pager-position{order:5;grid-column:span 2}
 :is(#admin-view,dialog) .admin-list-pager .pager-navigation [data-page="go"]{order:6;grid-column:span 2}
}
#submission-count-help{margin:.5rem 0 1rem;max-width:75ch}
#submission-count-help summary{cursor:pointer;font-weight:700}
#submission-count-help p{margin:.5rem 0}
#admin-view table:has(#groups-table-body) :is(th,td):is(:nth-child(3),:nth-child(4)),
#admin-view table:has(#journey-groups-body) :is(th,td):nth-child(n+2),
#admin-view table:has(#journey-questions-body) :is(th,td):nth-child(n+3),
.sheet-group-table :is(th,td):is(:nth-child(3),:nth-child(4)) {text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:700px){
 body.spreadsheet-open{overflow:auto}
 #submission-grid-dialog.spreadsheet-page{height:auto;min-height:60vh}
 #submission-grid-dialog .grid-dialog-shell{height:auto}
 #submission-grid-dialog .modal-spreadsheet-wrap{flex:none;overflow:visible}
 #submission-grid-dialog .sheet-view-controls>summary{display:list-item;margin-left:20px}
 #submission-grid-dialog .modal-spreadsheet-wrap table{width:100%;min-width:0;table-layout:fixed}
 #submission-grid-dialog .sheet-section-band{display:none}
 #submission-grid-dialog .sheet-labels th:not(.select-column):not(.grid-fixed-header),
 #submission-grid-dialog td[data-column-key]{display:none}
 #submission-grid-dialog .sheet-labels th{top:0}
 #submission-grid-dialog .sheet-labels th.select-column,#submission-grid-dialog td.select-column{width:44px;min-width:44px;max-width:44px;left:0}
 #submission-grid-dialog .sheet-labels th.grid-fixed-header,#submission-grid-dialog .grid-fixed{position:static;width:auto;min-width:0;max-width:none;box-shadow:none}
 #submission-grid-dialog .grid-fixed{position:relative;left:auto;padding:12px 48px 12px 8px}
 #submission-grid-dialog .sheet-labels th.grid-fixed-header{position:sticky;left:auto}
 #submission-grid-dialog .sheet-view-record{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px}
 #submission-grid-dialog .sheet-mobile-program{display:block;font-weight:700}
 #submission-grid-dialog .sheet-row-menu-button{min-width:44px;min-height:44px;right:2px}
 #submission-grid-dialog .sheet-program-filters label{white-space:normal;flex-wrap:wrap}
}
#admin-submission-data,#admin-submission-data .card{min-width:0;max-width:100%}
.sheet-group-table{min-width:0;table-layout:fixed}
.sheet-group-table td,.sheet-group-table th{overflow-wrap:anywhere}
.staff-editor-controls{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;margin-left:12px}
#sheet-staff-banner>button{margin-left:12px}

.staff-leave-actions [data-choice="discard"] { margin-right:auto; border:2px solid currentColor; }
.staff-program-navigation { padding:.75rem; border-left:3px solid currentColor; }
@media (forced-colors: active) { #staff-leave-dialog .button { border:2px solid ButtonText; } #staff-leave-dialog .button:focus-visible { outline:3px solid Highlight; outline-offset:3px; } }

.admin-export-feedback { pointer-events:none; }

.admin-list-pager { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; margin:.75rem 0; }
.admin-list-pager input { width:5rem; }

/* Respondent UX: keep dialog content inside the available viewport. */
@media(max-width:650px){
 #county-map-dialog.area-map-v319,.full-width-dialog,.audit-viewer-dialog,.landing-editor-dialog{width:100%;max-width:100%;box-sizing:border-box;left:0;right:0;}
}
@media(max-width:600px){
 .category-option-card{position:relative;flex-wrap:wrap;}
 .category-definition-info.is-open{position:static;}
 .category-definition-info.is-open .category-definition-tooltip{position:relative;left:auto;top:auto;transform:none;width:100%;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;overflow-x:hidden;}
 .category-definition-info.is-open{display:block;width:100%;}
}
[data-secure-save-warning]{grid-column:1 / -1;}
[data-secure-save-warning][hidden]{display:none;}
.status-banner.danger-banner{color:#8a1c13;background:#fff0ed;border-color:#b3261e;}

/* Full-test follow-up: field layout, theme parity and responsive certification. */
input:not([type]){display:block;width:100%;min-width:0;box-sizing:border-box;border:2px solid #9aabb7;border-radius:.55rem;padding:.75rem;background:var(--white);color:var(--ink)}
.question-other-detail,.other-option-detail{display:block;width:100%;min-width:0}
.question-option-card:has([data-other-detail-required]){display:block;min-width:0}
.question-option-card label:has(input[type="text"]){display:block;min-width:0;width:100%}
.address-grid>label{display:block;min-width:0}.address-grid input{display:block;min-width:0}
#save-status:empty{display:none!important}
:root{--brand-teal:#116f68}
body.high-contrast :is(.review-answer-item,.review-answer-item-copy,.review-answer-item-summary,.review-answer-item-action,.program-definition-card,.program-editor,.program-dashboard-card,.additional-program-area,.category-option-card,.option-card,.check-row,.copy-program-details,.program-status-badge,.program-add-dialog,.category-definition-tooltip){background:#000!important;color:#fff!important;border-color:#fff!important}
body.high-contrast :is(.review-answer-item,.program-definition-card,.program-editor,.program-dashboard-card,.program-add-dialog) :is(h2,h3,h4,p,span,small,strong,dt,dd,label,legend){color:#fff!important}
body.high-contrast :is(.review-answer-item,.program-editor,.program-add-dialog) button{background:#000!important;color:#fff!important;border-color:#fff!important}
.category-definition-info.is-open{display:block;width:100%;flex-basis:100%}
.category-definition-info.is-open .category-definition-tooltip{position:static;display:block;transform:none;width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;overflow-x:hidden;box-sizing:border-box}
@media(max-width:900px){.submit-card:not(.hidden):not([hidden]){display:flex!important;flex-direction:column;align-items:stretch}.submit-card>*{width:100%;min-width:0}.submit-card .certification-label{display:flex;gap:.6rem}}

.other-detail-field{display:block!important;width:100%;min-width:0}.other-detail-field.hidden{display:none!important}.other-detail-field strong,.other-detail-field input{display:block;width:100%;min-width:0}

body.high-contrast .review-answer-item *{color:#fff!important;background-color:transparent!important;border-color:#fff!important}

body.high-contrast summary{color:#fff!important;background-color:#000!important;}
.additional-program-area>.program-area-definition-info{display:block;margin:.25rem 0;width:100%}

/* October retest: nested category labels must inherit the contrast surface. */
body.high-contrast .category-option-card>label,
body.high-contrast .category-option-card>label :is(span,strong,small){background:transparent!important;color:#fff!important}
body.high-contrast .category-option-card:has(input:checked){background:#151515!important;border-color:#ff0!important;box-shadow:inset 0 0 0 2px #ff0!important}
.address-validation-caption[hidden]{display:none!important}
.review-population-services{margin:.6rem 0;padding:.6rem;border-left:3px solid var(--line);overflow-wrap:anywhere}
.review-population-services h6{font-size:1rem;margin:0 0 .4rem}

body.high-contrast .review-answers-dialog-status{background:#000!important;color:#fff!important;border-color:#ff0!important}

/* Definition popovers must not participate in the category tile layout. */
.category-definition-info.is-open{display:inline-block;width:auto;flex-basis:auto;flex-shrink:0}
.category-definition-info.is-open .category-definition-tooltip{position:fixed;display:block;left:var(--tooltip-left);top:var(--tooltip-top);transform:translateY(-50%);width:min(21rem,calc(100vw - 1.5rem));max-width:calc(100vw - 1.5rem);pointer-events:none}
.category-definition-info:not(.is-open) .category-definition-tooltip{opacity:0;visibility:hidden}
.category-choice-header label{min-width:0;flex:1}
#group-list .status-badge,.survey-group-status{white-space:normal;word-break:normal;overflow-wrap:normal;min-width:7rem}
#performance-program-content .performance-table{table-layout:fixed;width:100%;min-width:76rem}
#performance-program-content .performance-table :is(th,td){width:8rem;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}
#performance-program-content .performance-table :is(th,td):first-child{width:12rem;min-width:12rem;max-width:12rem}
.admin-import-notices details>summary{cursor:pointer;font-weight:700}
#journey-analytics-status,.import-field-error{color:var(--ink)}
.import-field-error{color:#a12020;font-weight:600}

/* Consistent compact pagination across admin lists, reports and dialogs. */
:is(#admin-view,dialog) :is(.submission-pager,.submission-paging-top,.audit-pagination){display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px 12px;margin:12px 0;padding:12px 0;border-top:1px solid var(--line);font-size:.875rem;line-height:1.35}
:is(#admin-view,dialog) :is(.submission-pager,.submission-paging-top) label{display:inline-flex;flex-direction:row;align-items:center;gap:8px;margin:0;font-size:inherit;line-height:inherit;font-weight:600;white-space:nowrap}
:is(#admin-view,dialog) :is(.submission-pager,.submission-paging-top) :is(input[type=number],select){box-sizing:border-box;width:76px;min-width:0;height:36px;min-height:36px;margin:0;padding:6px 9px;border:1px solid #9bb0bf;border-radius:6px;background:var(--white,#fff);color:var(--ink,#173747);font:inherit;line-height:1.2;box-shadow:none}
:is(#admin-view,dialog) :is(.submission-pager,.submission-paging-top,.audit-pagination) .button{box-sizing:border-box;min-height:36px;height:36px;margin:0;padding:6px 12px;border-radius:6px;font-size:inherit;line-height:1.2;white-space:nowrap}
:is(#admin-view,dialog) .pager-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
:is(#admin-view,dialog) .pager-summary{color:var(--muted);margin-right:auto;white-space:nowrap}
:is(#admin-view,dialog) .pager-reset{border-color:transparent;background:transparent;color:var(--brand,#005777)}
:is(#admin-view,dialog) :is(.submission-pager,.submission-paging-top,.audit-pagination) :is(button,input,select):focus-visible{outline:3px solid #d8a929;outline-offset:2px}
body.high-contrast :is(.submission-pager,.submission-paging-top,.audit-pagination) :is(input,select,.button,.pager-summary){color:CanvasText;background:Canvas;border-color:CanvasText}
@media(max-width:600px){
 :is(#admin-view,dialog) :is(.submission-pager,.submission-paging-top,.audit-pagination){gap:10px 8px}
 :is(#admin-view,dialog) :is(.submission-pager,.submission-paging-top,.audit-pagination) .button,:is(#admin-view,dialog) :is(.submission-pager,.submission-paging-top) :is(input[type=number],select){height:44px;min-height:44px}
 :is(#admin-view,dialog) .admin-list-pager .pager-summary{margin-right:0;margin-left:auto}
 :is(#admin-view,dialog) .pager-navigation{flex-basis:100%;justify-content:flex-start}
}

:is(#admin-view,dialog) .pager-position{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
@media(max-width:600px){
 :is(#admin-view,dialog) .admin-list-pager .pager-summary{flex-basis:100%;margin:0;text-align:left}
 :is(#admin-view,dialog) .pager-navigation{display:grid;grid-template-columns:auto 1fr auto;gap:6px}
 :is(#admin-view,dialog) .pager-navigation .button{padding-inline:8px}
 :is(#admin-view,dialog) .pager-navigation .pager-position{justify-content:center;gap:4px}
 :is(#admin-view,dialog) .pager-navigation label{gap:4px}
 :is(#admin-view,dialog) .pager-navigation input[type=number]{width:48px;padding-inline:5px}
 :is(#admin-view,dialog) .submission-pager:not(.admin-list-pager){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 :is(#admin-view,dialog) .submission-pager:not(.admin-list-pager) .pager-position{grid-column:span 2;justify-content:center}
 :is(#admin-view,dialog) .submission-pager:not(.admin-list-pager) [id$="-page-go"]{grid-column:span 2}
 :is(#admin-view,dialog) .submission-pager:not(.admin-list-pager) .button{padding-inline:6px}
}
@media(max-width:600px){
 :is(#admin-view,dialog) .submission-pager:not(.admin-list-pager){grid-template-columns:repeat(4,auto)}
 :is(#admin-view,dialog) .submission-pager:not(.admin-list-pager)>button:nth-of-type(1){order:1}
 :is(#admin-view,dialog) .submission-pager:not(.admin-list-pager)>button:nth-of-type(2){order:2}
 :is(#admin-view,dialog) .submission-pager:not(.admin-list-pager)>button:nth-of-type(4){order:3}
 :is(#admin-view,dialog) .submission-pager:not(.admin-list-pager)>button:nth-of-type(5){order:4}
 :is(#admin-view,dialog) .submission-pager:not(.admin-list-pager)>.pager-position{order:5}
 :is(#admin-view,dialog) .submission-pager:not(.admin-list-pager)>[id$="-page-go"]{order:6}
}

.audit-summary-item{min-width:0}.audit-summary-item .audit-summary-card{width:100%}.audit-summary-description{font-size:.85rem;line-height:1.4;margin:.45rem 0 0}

.device-draft-choice{display:flex;gap:.7rem;align-items:flex-start;padding:.8rem;border-bottom:1px solid var(--line)}

.device-draft-choice small{display:block;font-weight:400;margin-top:.2rem;line-height:1.45;color:var(--muted)}

/* Administrator-only Freedom Strategy controls */
.freedom-controls{display:flex;flex-wrap:wrap;gap:1rem;align-items:end}
.freedom-controls label{display:flex;flex-direction:column;gap:.35rem;min-width:0;max-width:100%}
.freedom-controls select,.freedom-controls input{max-width:100%;min-height:44px}
.freedom-card,.freedom-detail{padding:1rem;margin:1rem 0;border:1px solid currentColor;border-radius:.4rem;overflow-wrap:anywhere}
.freedom-dialog{width:min(42rem,calc(100vw - 2rem));max-width:calc(100vw - 2rem);max-height:90vh;overflow:auto;box-sizing:border-box;padding:1rem}
.freedom-dialog fieldset{margin:1rem 0;min-width:0}
.freedom-dialog label{display:flex;align-items:center;gap:.5rem;min-height:44px;cursor:pointer;overflow-wrap:anywhere}
.freedom-dialog input[type=checkbox]{flex:none;width:1.2rem;height:1.2rem}
.freedom-dialog button,.freedom-card button{min-height:44px;margin:.25rem}
@media(max-width:450px){.freedom-controls{display:block}.freedom-controls label{margin:.75rem 0}.freedom-dialog{padding:.65rem}.freedom-card button{display:block;width:100%;margin:.4rem 0}}
@media(forced-colors:active){.freedom-card,.freedom-detail,.freedom-dialog fieldset{border:1px solid CanvasText}.freedom-dialog input{forced-color-adjust:auto}}

dialog.freedom-dialog[open]{display:flex;flex-direction:column;max-height:90dvh!important;overflow:hidden}
.freedom-dialog form{display:flex;flex-direction:column;flex:1;min-height:0;gap:.5rem}
.freedom-fields{overflow-y:auto;min-height:0;overscroll-behavior:contain}
.freedom-actions{display:flex;flex-wrap:wrap;flex-shrink:0;gap:.3rem;background:Canvas;padding-top:.4rem;border-top:1px solid currentColor}
.freedom-dialog fieldset{border:1px solid #b9c6c7;padding:.6rem}
.freedom-dialog fieldset>label{font-weight:400}
.freedom-dialog legend label{font-weight:700}
@media(forced-colors:active){.freedom-dialog fieldset{border-color:CanvasText}}

@media(forced-colors:active){dialog.freedom-dialog[open]{border:2px solid CanvasText}}
/* Journey analytics: scope first, progressive detail, and clear pending states. */
#journey-analytics-card .journey-section-nav{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0;padding-bottom:1rem;border-bottom:1px solid var(--line)}
#journey-analytics-card .analytics-filters{padding:1rem;border:1px solid var(--line);border-radius:.65rem;background:var(--white);align-items:end}
#journey-analytics-card .analytics-filters>*{min-width:0;max-width:100%}
#journey-analytics-card .analytics-filters :is(input,select){max-width:100%;min-height:44px;box-sizing:border-box}
#journey-analytics-card #journey-analytics-status{padding:.8rem 1rem;border-left:4px solid var(--teal);background:#edf5f8;overflow-wrap:anywhere}
#journey-analytics-card #journey-analytics-status:empty{display:none}
#journey-analytics-card #journey-analytics-status[role=alert]{border-left-color:#a12020}
#journey-analytics-card .journey-scope{font-weight:700;padding:.75rem 0;margin:0;color:var(--ink)}
#journey-analytics-card #journey-analytics-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}
#journey-analytics-card #journey-analytics-summary>*{min-width:0;width:auto;max-width:none}
#journey-analytics-card .journey-guide,#journey-analytics-card #journey-technical-details{padding:1rem;border:1px solid var(--line);border-radius:.65rem}
#journey-analytics-card summary{cursor:pointer;font-weight:700;min-height:32px}
#journey-analytics-card #journey-report-content[data-stale=true]{border-left:3px dashed var(--line);padding-left:.75rem}
#journey-analytics-card .journey-notice{padding:1rem;border:1px solid var(--line);border-radius:.5rem;background:#edf5f8}
#journey-analytics-card .journey-question-controls{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin:1rem 0}
#journey-analytics-card .journey-question-controls>label:first-child{flex:1 1 18rem;min-width:0}
#journey-analytics-card #journey-question-search{display:block;width:100%;min-height:44px;box-sizing:border-box}
#journey-analytics-card .journey-attention-filter{display:flex;align-items:center;gap:.5rem;min-height:44px}
#journey-analytics-card .journey-question-controls p{flex-basis:100%;margin:0}
#journey-analytics-card #journey-friction-callout{padding:.75rem 1rem;border-left:4px solid var(--teal);background:#edf5f8;margin:1rem 0}
#journey-analytics-card [tabindex='-1']:focus{outline:2px solid var(--navy);outline-offset:3px}
#journey-analytics-card .table-wrap{max-width:100%;overflow-x:auto}
body.high-contrast #journey-analytics-card :is(.analytics-filters,#journey-analytics-status,.journey-notice,#journey-friction-callout){background:#000;color:#fff;border-color:#fff}
@media(max-width:900px){#journey-analytics-card #journey-analytics-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#journey-analytics-card #journey-analytics-summary{grid-template-columns:1fr}#journey-analytics-card .analytics-filters,#journey-analytics-card .analytics-custom-dates{display:grid;grid-template-columns:minmax(0,1fr);width:100%;box-sizing:border-box}#journey-analytics-card .analytics-filters select{width:100%}#journey-analytics-card .journey-section-nav .button{flex:1 1 40%;min-height:44px}#journey-analytics-card .journey-question-controls{display:block}#journey-analytics-card .table-wrap table{min-width:620px}}
@media(forced-colors:active){#journey-analytics-card :is(#journey-analytics-status,#journey-friction-callout,.journey-notice){border:1px solid CanvasText}}

/* Administration wayfinding: search is independent of accordion expansion. */
.admin-destination-search { margin-bottom:1rem; }
.admin-destination-search label { display:block; font-weight:700; font-size:.85rem; margin-bottom:.4rem; }
.admin-destination-search input { width:100%; min-width:0; box-sizing:border-box; }
#admin-page-search-status:empty { display:none; }
#admin-page-search-results { display:grid; gap:.4rem; margin-top:.6rem; }
#admin-page-search-results[hidden], #admin-section-nav[hidden], #admin-page-contents[hidden] { display:none!important; }
.admin-search-result { display:grid; gap:.25rem; text-align:left; width:100%; padding:.65rem; color:var(--navy); background:#fff; border:1px solid #cbd5e1; border-radius:.4rem; white-space:normal; }
.admin-search-result span { font-size:.8rem; font-weight:400; line-height:1.4; }
.admin-search-result:hover { background:#e9f2f7; }
#admin-page-contents { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .75rem; border-block:1px solid #cbd5e1; padding:.75rem 0; margin-bottom:1rem; }
#admin-page-contents strong { font-size:.85rem; }
#admin-page-contents button { background:transparent; border:0; color:var(--navy); text-decoration:underline; padding:.45rem .2rem; text-align:left; font-size:.85rem; }
#admin-page-contents button:focus-visible,.admin-search-result:focus-visible { outline:3px solid var(--navy); outline-offset:2px; }
.admin-page :is(h3,h4,h5)[tabindex="-1"] { scroll-margin-top:1rem; }
body.high-contrast .admin-search-result,body.high-contrast #admin-page-contents button { background:#000; color:#fff; border-color:#fff; }
body.high-contrast #admin-page-contents { border-color:#fff; }
body.high-contrast #admin-page-contents button:focus-visible,body.high-contrast .admin-search-result:focus-visible { outline-color:#ffe600; }

@media (max-width:700px) {
  #admin-view .admin-page-header { flex-direction:column; }
  #admin-view .admin-page-header > * { width:100%; min-width:0; box-sizing:border-box; }
  #admin-view .admin-import-notices { overflow-wrap:anywhere; }
}

/* Full-screen submission review retains the originating list and its filters. */
@media screen {
  #submission-detail-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border-radius:0; overflow:hidden; }
  #submission-detail-dialog .submission-detail-shell { width:100%; height:100%; max-height:100%; box-sizing:border-box; padding:20px clamp(16px,3vw,48px); overflow-y:auto; }
  #submission-detail-dialog .submission-review-header { top:-20px; padding:14px 0 0; }
  #submission-detail-dialog .submission-review-header .section-heading-row { align-items:flex-start; gap:16px; margin-bottom:8px; }
  #submission-detail-dialog .submission-review-header h2 { margin:0 0 5px; font-size:clamp(1.2rem,2vw,1.7rem); overflow-wrap:anywhere; }
  #submission-detail-dialog #close-submission-detail { flex-shrink:0; }
  #submission-detail-dialog .submission-primary-actions { margin:8px 0; }
  #submission-detail-dialog .submission-record-navigation { margin:8px 0; }
  #submission-detail-dialog .submission-tabs { margin-bottom:0; }
  #submission-detail-dialog .admin-review-section { scroll-margin-top:calc(var(--submission-header-height,240px) + 12px); }
  #submission-detail-dialog .admin-review-section-nav { top:calc(var(--submission-header-height,240px) + 12px); }
  #submission-detail-dialog .admin-review-method { margin:10px 0; }
  #submission-detail-dialog .admin-review-method summary { cursor:pointer; font-size:.9rem; text-decoration:underline; }
  #submission-record-context { border-bottom:1px solid #87949f; padding-bottom:12px; }
  #submission-record-context > p:empty { display:none; }
  #submission-detail-dialog .submission-record-id { overflow-wrap:anywhere; }
  #submission-detail-dialog .submission-secondary-actions { border-top:1px solid #87949f; margin-top:24px; }
}
@media screen and (max-width:700px) {
  #submission-detail-dialog .submission-review-header .section-heading-row { flex-direction:column-reverse; gap:8px; }
  #submission-detail-dialog .submission-review-header .button { min-height:44px; }
  #submission-detail-dialog .submission-review-header { position:static; }
  #submission-detail-dialog .admin-review-section { scroll-margin-top:12px; }
  #submission-detail-dialog .admin-review-section-nav { position:static; }
}
@media print { .admin-review-method { display:none; } }

@media screen { body:has(#submission-detail-dialog[open]) { overflow:hidden; } }

.submission-provenance-tools { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:12px 0; }
.submission-provenance-tools label { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
#submission-column-source { display:block; margin-top:6px; max-width:100%; }
.submission-confidence-badge { display:inline-block; border:1px solid currentColor; border-radius:999px; padding:2px 8px; margin-top:6px; font-size:.8rem; font-weight:700; background:#f1f5f9; color:#334155; }
.submission-confidence-badge[data-confidence="High"] { background:#dcfce7; color:#166534; }
.submission-confidence-badge[data-confidence="Medium"] { background:#fef3c7; color:#854d0e; }
.submission-confidence-badge[data-confidence="Low"] { background:#fee2e2; color:#991b1b; }
body.high-contrast .submission-confidence-badge { background:#000; color:#fff; border-color:#fff; }

#submission-filter-chips[hidden],#submission-provenance-tools[hidden],#record-search-button[hidden] { display:none!important; }
#submission-unified-filters { margin:16px 0; }
.submission-filter-bar,.submission-more-filters>div { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; }
.submission-filter-bar label,.submission-more-filters label { display:flex; flex-direction:column; gap:6px; font-weight:600; min-width:0; }
.submission-filter-bar :is(input,select),.submission-more-filters select { width:100%; box-sizing:border-box; min-width:0; }
.submission-more-filters,.submission-column-options { margin-top:12px; }
.submission-more-filters summary,.submission-column-options summary { cursor:pointer; padding:6px 0; }
#submission-active-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; }
#submission-page-top { display:none; }
#submission-unified-filters :is(input:not([type=checkbox]),select) { flex:0 1 auto; height:52px; }
#submission-unified-filters [hidden] { display:none!important; }
#admin-view .submissions-workbench #submission-unified-filters :is(#record-search,#submission-list-group-filter) { flex:0 1 auto; height:52px; width:100%; min-width:0; }
/* Compact secondary information and filter tokens; retain visible keyboard focus. */
#submission-active-filters { gap:6px; margin-top:8px; font-size:.875rem; }
#admin-view .submission-filter-chip,#admin-view .submission-filter-clear,#admin-view .import-notice-action {
  min-height:32px; height:auto; width:auto; min-width:0; flex:none; padding:4px 8px;
  font:inherit; font-size:.875rem; line-height:1.35; box-shadow:none; cursor:pointer;
}
#admin-view .submission-filter-chip { border:1px solid #b8cdd7; border-radius:16px; background:#edf5f8; color:#164b60; max-width:100%; overflow-wrap:anywhere; text-align:left; }
#admin-view .submission-filter-chip:hover { background:#dbeaf0; border-color:#537e90; }
#admin-view .submission-filter-clear,#admin-view .import-notice-action { border:0; border-radius:4px; background:transparent; color:#005574; text-decoration:underline; text-underline-offset:3px; }
#admin-view :is(.submission-filter-clear,.import-notice-action):hover { background:#edf5f8; }
.admin-import-notices { font-size:.875rem; }
.admin-import-notices details { margin:8px 0; }
.admin-import-notices details>summary { min-height:32px; line-height:32px; width:fit-content; }
.admin-import-notices .import-notice-list { list-style:none; margin:4px 0; padding:0; max-height:240px; overflow:auto; max-width:760px; }
.admin-import-notices .import-notice-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid #d9e3e8; }
.admin-import-notices .import-notice-copy { display:grid; gap:2px; min-width:0; overflow-wrap:anywhere; }
.admin-import-notices .import-notice-copy span { color:#526874; }
.admin-import-notices .import-notice-actions { display:flex; flex-shrink:0; gap:4px; }
.admin-import-notices .import-notice-running { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.admin-import-notices .import-notice-empty { padding:6px 0; }
@media(max-width:600px) { .admin-import-notices .import-notice-row { align-items:flex-start; flex-wrap:wrap; gap:2px; } }
@media(forced-colors:active) { #admin-view .submission-filter-chip { border-color:ButtonText; } }
body.high-contrast #admin-view :is(.submission-filter-chip,.submission-filter-clear,.import-notice-action) { background:#000; color:#fff; border-color:#fff; }
body.high-contrast .admin-import-notices .import-notice-copy span { color:#fff; }
.import-result-summary { margin:12px 0; padding:10px 12px; border:1px solid #cbd5e1; border-radius:6px; }
.import-result-summary>strong { font-size:.875rem; }
.import-result-summary dl { display:flex; flex-wrap:wrap; gap:8px 24px; margin:6px 0; }
.import-result-summary dl>div { display:flex; align-items:baseline; gap:6px; }
.import-result-summary dt { color:#526874; font-size:.875rem; }
.import-result-summary dd { margin:0; font-weight:700; }
.import-result-summary .import-help { margin:6px 0 0; }
body.high-contrast .import-result-summary dt { color:#fff; }
/* Keep all three spreadsheet tabs visible on narrow screens. */
@media(max-width:700px){
 #submission-grid-dialog .sheet-tabs{padding:8px 4px;gap:2px;max-width:100%}
 #submission-grid-dialog .sheet-tabs button{flex:1;min-width:0;padding:8px 4px;white-space:normal;font-size:14px}
 #submission-grid-dialog #grid-results-count{white-space:normal;max-width:100%;overflow-wrap:anywhere}
}
.sheet-search-matches{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;background:#f1f7f9;border-bottom:1px solid #b8cbd0}
.sheet-search-matches[hidden]{display:none}
.sheet-search-matches .button{padding:5px 10px;font-size:14px}
.sheet-search-matches small{color:#405665}
.sheet-search-hit{background:#ffed8a;color:#18212a;border-radius:2px;scroll-margin:100px 330px}
.sheet-search-current{background:#ffcb47;outline:3px solid #00556a;outline-offset:2px}
@media(forced-colors:active){.sheet-search-hit{background:Mark;color:MarkText}.sheet-search-current{outline:3px solid Highlight}}
/* Spreadsheet toolbar: filtering first; export details disclosed on demand. */
#submission-grid-dialog .sheet-export-menu{margin:0;min-width:0}
#submission-grid-dialog .sheet-export-menu>summary{cursor:pointer;list-style:revert}
#submission-grid-dialog .sheet-export-menu[open]{flex:1 0 100%}
#submission-grid-dialog .sheet-export-panel{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;padding:12px;margin-top:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface,#fff)}
#submission-grid-dialog .sheet-export-panel p{flex-basis:100%;margin:0}
#submission-grid-dialog .sheet-export-format{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
#submission-grid-dialog .sheet-csv-choice{display:flex;align-items:center;gap:8px;max-width:none;margin:0}
#submission-grid-dialog .sheet-export-question-row{display:flex;align-items:center;gap:6px;margin:0;font-size:13px}
#submission-grid-dialog .sheet-export-question-row input{min-width:0;width:auto}
#submission-grid-dialog .sheet-density-label{font-size:13px;font-weight:700;margin:0 0 6px}
#submission-grid-dialog .grid-columns-panel .sheet-density{margin-bottom:12px}
#submission-grid-dialog .grid-filter-bar{align-items:center;gap:10px;padding:10px 12px}
#submission-grid-dialog .sheet-program-filters{margin:0;padding:4px 12px 10px;gap:12px}
#submission-grid-dialog .grid-search-field{max-width:480px;min-width:180px}
#submission-grid-dialog #grid-columns-menu{margin-left:auto}
#submission-grid-dialog #grid-action-scope{max-width:230px}
#sheet-page-controls{flex-wrap:wrap}
#sheet-page-controls .grid-filter-field{display:flex;align-items:center;gap:6px;margin-right:auto}
#sheet-page-controls .grid-filter-field label{margin:0;font-size:12px}
@media(max-width:700px){#submission-grid-dialog .grid-search-field{flex-basis:100%;max-width:none}#submission-grid-dialog #grid-columns-menu{margin-left:0}#submission-grid-dialog .sheet-export-format{width:100%;justify-content:space-between}}
/* A focused location task: scroll fields, retain context and save controls. */
dialog.sheet-location-editor{width:min(760px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;overflow:hidden;box-sizing:border-box}
dialog.sheet-location-editor[open]{display:flex;flex-direction:column}
.location-editor-header{flex:none;padding:18px 24px 12px;border-bottom:1px solid var(--line)}
.location-editor-header h2{margin:0 0 5px;font-size:22px}
.location-editor-header p{margin:0;font-size:14px;line-height:1.4;color:var(--muted,#526574)}
.sheet-location-editor form{display:flex;flex-direction:column;min-height:0;margin:0;overflow:hidden}
.location-editor-body{overflow:auto;min-height:0;padding:16px 24px;overscroll-behavior:contain}
.location-editor-section{border:0;padding:0;margin:0 0 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;min-width:0}
.location-editor-section legend{padding:0;margin-bottom:8px;font-weight:700;font-size:14px;color:var(--ink)}
.sheet-location-editor .location-editor-field{display:flex;flex-direction:column;gap:4px;margin:0;min-width:0;font-size:13px;font-weight:600}
.sheet-location-editor .location-editor-field input{box-sizing:border-box;width:100%;min-height:38px;margin:0;padding:7px 10px;font-size:14px;font-weight:400}
.location-editor-field:is([data-field="label"],[data-field="line1"],[data-field="line2"]){grid-column:1/-1}
.location-editor-privacy{grid-template-columns:1fr;gap:8px}
.sheet-location-editor .location-editor-privacy label{flex-direction:row-reverse;justify-content:flex-end;align-items:center;font-weight:400;gap:8px}
.sheet-location-editor .location-editor-privacy input{width:18px;height:18px;min-height:0;flex:none}
.location-editor-privacy .help-text{margin:0;font-size:12px}
.location-editor-footer{flex:none;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 24px;border-top:1px solid var(--line);background:var(--surface,#fff)}
.location-editor-status:empty{display:none}
.location-editor-status:not(:empty){flex-basis:100%;margin:0;font-size:14px}
.location-editor-footer .button{margin:0;min-height:40px;padding:8px 16px}
@media(max-width:540px){dialog.sheet-location-editor{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.location-editor-header,.location-editor-body,.location-editor-footer{padding:12px 16px}.location-editor-section{grid-template-columns:1fr}.location-editor-footer .button{flex:1}}
@media(forced-colors:active){.location-editor-header,.location-editor-footer{background:Canvas;color:CanvasText;border-color:CanvasText}}
#sheet-location-editor{width:min(760px,calc(100vw - 32px))}
#sheet-location-editor .location-editor-section{margin:0 0 16px}
#sheet-location-editor .location-editor-field{margin:0}
#sheet-location-editor form{max-height:none;overflow:hidden}
@media(max-width:540px){#sheet-location-editor{width:calc(100vw - 16px)}}

/* Keep the whole-import removal decision readable, including on narrow screens. */
dialog.app-message-dialog.import-delete-confirm { width:min(38rem,calc(100vw - 2rem)); max-width:calc(100vw - 2rem); max-height:calc(100dvh - 2rem); overflow:auto; }
.import-delete-confirm [data-app-message-text] { white-space:pre-line; }

#sheet-row-editor{width:min(860px,calc(100vw - 32px))}
#sheet-row-editor form{max-height:none;overflow:hidden}
#sheet-row-editor .location-editor-section{margin:0 0 18px}
#sheet-row-editor .location-editor-field{margin:0}
#sheet-row-editor :is(input,select,textarea){box-sizing:border-box;max-width:100%;font:inherit}
#sheet-row-editor :is(select,textarea){width:100%;min-height:38px;padding:7px 10px}
#sheet-row-editor textarea{min-height:90px}
#sheet-row-editor .sheet-row-choices,#sheet-row-editor .sheet-row-structured{grid-column:1/-1;margin:0;padding:10px 0;border:0;border-top:1px solid var(--line)}
#sheet-row-editor .sheet-row-choices label{display:inline-flex;align-items:center;gap:6px;margin:4px 14px 4px 0;font-size:14px;font-weight:400}
#sheet-row-editor .sheet-row-choices input{width:auto;min-height:0}
#sheet-row-editor .sheet-row-structured p{font-size:14px;margin:5px 0;overflow-wrap:anywhere}
#sheet-row-editor [hidden]{display:none!important}
@media(max-width:540px){#sheet-row-editor{width:calc(100vw - 16px)}}

.import-report-card{margin:18px 0;padding:16px 20px;background:#fff;border:1px solid var(--line);border-left:4px solid #007c88;border-radius:8px}.import-report-card h4{margin:0 0 6px}.import-report-card p{margin:6px 0 12px}.import-report-card .button{display:inline-block;text-decoration:none}
/* The organization viewer owns its scroll area; header and actions stay visible. */
#import-organization-dialog{width:min(1200px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:0;box-sizing:border-box;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--card,#fff);color:var(--text,#183445)}
#import-organization-dialog[open]{display:flex;flex-direction:column}
#import-organization-dialog .import-organization-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 24px;border-bottom:1px solid var(--line);flex:none}
#import-organization-dialog .import-organization-header h2{margin:2px 0;font-size:clamp(1.1rem,2vw,1.5rem);overflow-wrap:anywhere}
#import-organization-dialog .import-organization-header p{margin:0;font-size:.85rem}
#import-organization-dialog .import-organization-header button{flex:none}
#import-organization-dialog .import-organization-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px 24px}
#import-organization-dialog .import-organization-body:focus-visible{outline:2px solid #007c88;outline-offset:-3px}
#import-organization-dialog .import-organization-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 24px;border-top:1px solid var(--line);flex:none}
#import-organization-dialog .import-organization-footer span{font-size:.85rem}
#import-organization-dialog .import-organization-context{margin:8px 0;padding:8px 0;border-bottom:1px solid var(--line)}
#import-organization-dialog .import-organization-context summary{cursor:pointer;font-weight:600}
#import-organization-dialog .admin-review-section-nav{position:sticky;top:0;max-height:calc(100dvh - 250px);overflow-y:auto;background:var(--card,#fff)}
#import-organization-dialog .admin-review-section{scroll-margin-top:12px}
body:has(#import-organization-dialog[open]){overflow:hidden}
@media(max-width:700px){#import-organization-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}#import-organization-dialog .import-organization-header,#import-organization-dialog .import-organization-body,#import-organization-dialog .import-organization-footer{padding:12px}#import-organization-dialog .admin-review-section-nav{position:static;max-height:none;display:flex;overflow-x:auto}#import-organization-dialog .import-organization-footer span{display:none}}
body.high-contrast #import-organization-dialog .admin-review-section-nav{background:#000;color:#fff}

/* Keep the submitted notice clear of the next action. */
#new-response-button { margin-top:1rem; }

/* Match category controls to the standard checkbox size. */
.additional-program-category-grid input[type="checkbox"] { width:1.25rem; height:1.25rem; flex:none; }

/* Review copies use the same answers as the on-screen review. */
.review-copy-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-start}
.review-print-only{display:none}
@page respondent-review{margin:15mm}
@media print{
  html:has(#review-view:not(.hidden)),body:has(#review-view:not(.hidden)){background:#fff!important;color:#000!important}
  body:has(#review-view:not(.hidden)){page:respondent-review;font-size:10.5pt;line-height:1.4}
  body:has(#review-view:not(.hidden))>:not(main),body:has(#review-view:not(.hidden)) main>:not(#review-view){display:none!important}
  body:has(#review-view:not(.hidden)) main,body:has(#review-view:not(.hidden)) #review-view{background:#fff!important;display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}
  body:has(#review-view:not(.hidden)) #review-view *{color:#000!important;background:transparent!important;box-shadow:none!important;text-shadow:none!important;border-color:#aaa!important;outline:none!important}
  #review-view:not(.hidden) .review-copy-actions,#review-view:not(.hidden) button,#review-view:not(.hidden) .submit-card,#review-view:not(.hidden) .review-answer-item-action,#review-view:not(.hidden) .review-header p{display:none!important}
  #review-view:not(.hidden) .review-print-only{display:block!important;margin:0 0 8pt}
  #review-view:not(.hidden) .review-print-brand{font-weight:700;font-size:10pt}
  #review-view:not(.hidden) .review-header{display:block;margin:0 0 8pt}
  #review-view:not(.hidden) h2{font-size:19pt;margin:0 0 8pt}
  #review-view:not(.hidden) .review-section{padding:0;margin:14pt 0;border:0;border-radius:0;break-inside:auto}
  #review-view:not(.hidden) .review-section>.section-heading-row h3{font-size:14pt;margin:0 0 7pt}
  #review-view:not(.hidden) .review-section-question-list,#review-view:not(.hidden) .review-program-answer-list{display:block}
  #review-view:not(.hidden) .review-answer-item{display:block;padding:7pt 0;margin:0 0 7pt;border:0;border-bottom:1px solid #aaa;border-radius:0;break-inside:auto}
  #review-view:not(.hidden) .review-print-keep{break-inside:avoid-page}
  #review-view:not(.hidden) .review-answer-item-summary{font-size:10.5pt;line-height:1.4;overflow-wrap:anywhere}
  #review-view:not(.hidden) .review-program-answer{padding:0;margin:10pt 0;border:0;border-radius:0;break-inside:auto}
  #review-view:not(.hidden) .review-program-answer-field{display:block;break-inside:auto}
  #review-view:not(.hidden) .review-program-answer-field dd{white-space:pre-wrap;margin:2pt 0 7pt;overflow-wrap:anywhere}
  #review-view:not(.hidden) .review-program-answer-field dt{font-weight:700;break-after:avoid-page}
  #review-view:not(.hidden) h2,#review-view:not(.hidden) h3,#review-view:not(.hidden) h4,#review-view:not(.hidden) h5,#review-view:not(.hidden) .review-answer-item-meta{break-after:avoid-page;break-inside:avoid-page}
}

/* Expanded program editor navigation; no field visibility or ordering changes. */
.program-section-links{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .75rem;margin:.75rem 0 1rem;padding:.75rem;border:1px solid var(--line);border-radius:.5rem}
.program-section-links a,.program-section-heading a,.program-back-to-top a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;overflow-wrap:anywhere}
.program-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem;border-top:1px solid var(--line);margin-top:1rem;padding-top:.5rem}
.program-section-heading h4{margin:0}.program-jump-target{scroll-margin-top:1rem}
.program-jump-target:focus{outline:3px solid var(--teal);outline-offset:4px}
@media print{.program-section-links,.program-section-heading>a,.program-back-to-top{display:none}}

.review-private-address-print{display:none}
@media print{.review-private-address-screen{display:none!important}.review-private-address-print{display:block!important}}

/* Respondent dialogs: hidden content and native controls must remain unambiguous. */
[hidden] { display: none !important; }
dialog input[type="radio"], dialog input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; margin: 0 .5rem 0 0; vertical-align: middle; accent-color: #116f68; }
dialog input:disabled:checked { opacity: 1; }
.high-contrast dialog input[type="radio"], .high-contrast dialog input[type="checkbox"] { accent-color: #ffeb3b; color-scheme: dark; }
dialog .address-modifier { display: flex; align-items: center; gap: .5rem; padding: .75rem 0; }
@media (max-width: 600px) {
 .category-definition-info.is-open { display: block; width: 100%; }
 .category-definition-info.is-open .category-definition-tooltip { position: static; display: block; width: auto; max-width: 100%; transform: none; margin-top: .5rem; }
}

.program-compact-section { margin: .75rem 0; border: 1px solid var(--border); padding: .75rem; }
.program-compact-section > summary { cursor: pointer; font-weight: 700; padding: .5rem; }
@media(max-width:600px){.category-option-card:has(.category-definition-info.is-open){flex-wrap:wrap}.category-option-card .category-definition-info.is-open{flex-basis:100%}.category-definition-tooltip::before{display:none}}

dialog .fixed-service-area input { display:none; }
dialog .fixed-service-area::before { content:"✓"; display:inline-block; font-size:1.4rem; font-weight:800; margin-right:.5rem; }

/* Required agreement is a managed control, independent of editable landing copy. */
.terms-consent{max-width:34rem;text-align:left}.terms-consent .check-row{align-items:flex-start}.terms-consent input[type="checkbox"]{flex:0 0 auto;min-width:1.2rem;min-height:1.2rem;margin-top:.2rem}.terms-consent a{text-decoration:underline}
