/* EASI — StreamStats-style app chrome + STAF-style screening report.
   Mirrors the STAF design tokens (docs/assets/css/custom.css) so the EASI report
   popup reads like the STAF screening summary. Served automatically from www/. */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --easi-accent: #2f4b7c;
  --easi-accent-dark: #243a61;
  /* outcome borders / titles (STAF) */
  --phys-border: #4a7fb5; --phys-title: #3b6d9c;
  --chem-border: #b5873a; --chem-title: #9a7332;
  --bio-border:  #3a8a5c; --bio-title:  #327a50;
  --eci-title:   #1f3f6e;
  /* Good / Fair / Poor band colors (STAF) */
  --band-poor: #f5b5b5; --band-fair: #f5e7a6; --band-good: #c8d9f2;
  /* surfaces */
  --card-border: #d5deea; --rule: #e5e8ee; --surface-soft: #f6f8fb;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

body { font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6, .card-header { font-family: var(--font-head); }

/* --------------------------------------------------------------------------- */
/* StreamStats-style chrome                                                     */
/* --------------------------------------------------------------------------- */
.bslib-sidebar-layout > .sidebar { background: var(--surface-soft); }
.sidebar h4 { color: var(--eci-title); font-weight: 700; }
.btn-primary { background: var(--easi-accent); border-color: var(--easi-accent); }
.btn-primary:hover, .btn-primary:focus {
  background: var(--easi-accent-dark); border-color: var(--easi-accent-dark);
}
.card-header { color: var(--eci-title); font-weight: 600; }
.leaflet-container { border-radius: 6px; }
.easi-snap-note { font-size: 12px; margin: 4px 0 0; }
.easi-snap-note.warn { color: #9a6a00; }
.easi-snap-note.ok { color: #1a7f37; }

/* --------------------------------------------------------------------------- */
/* Report tables / chips / bars (migrated from app.py inline CSS)               */
/* --------------------------------------------------------------------------- */
.easi-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.easi-tbl th, .easi-tbl td {
  border-bottom: 1px solid var(--rule); padding: 4px 7px;
  text-align: left; vertical-align: top;
}
.easi-tbl th { background: #fafbfd; font-weight: 600; border-bottom: 2px solid #d7dce5; }
.easi-disc td { background: #f3f5f9; font-weight: 600; color: var(--easi-accent); }
.easi-chip { padding: 2px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; }
.easi-bar-row { display: flex; gap: 8px; align-items: center; margin: 3px 0; }
.easi-bar-row.indent { margin-left: 18px; }
.easi-bar-label { width: 184px; flex: none; font-size: 12px; line-height: 1.2; }
.easi-bar-track { flex: 1; background: #edeef2; border-radius: 3px; height: 15px; }
.easi-bar-fill { height: 15px; border-radius: 3px; }
.easi-bar-val { width: 34px; flex: none; text-align: right; font-size: 12px; font-weight: 600; }
/* rating override: neutral SFARI-style native <select> (no rating colors; .set = answered) */
.easi-rate-sel {
  border: 1px solid var(--card-border); border-radius: 7px; background: #fff;
  color: #7c869c; font-size: 13px; font-weight: 600; padding: 6px 10px; cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.easi-rate-sel.set { color: #2a3344; border-color: #c3cfe2; background: #fbfcfe; }
.easi-rate-chip.rate-Good { background-color: var(--band-good); color: #1f3f6e; }
.easi-rate-chip.rate-Fair { background-color: var(--band-fair); color: #6b5310; }
.easi-rate-chip.rate-Poor { background-color: var(--band-poor); color: #7a2e2e; }
.easi-rate-chip.rate-auto { background-color: #eef2f8; color: #55607a; }
/* read-only rating chip (report tables): colored band pill, no control */
.easi-rate-chip { display: inline-block; border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 10px; padding: 2px 9px; font-weight: 600; font-size: 11.5px;
  min-width: 46px; text-align: center; white-space: nowrap; }
/* read-only report (batch): the note column carries no controls — hide it whole
   (header, cells, and the rollup's alignment cell all share easi-note-cell) */
.easi-report-ro .easi-note-cell { display: none; }
.easi-rate-sel option { background-color: #fff; color: #2a3344; }
.easi-rate-cell { display: flex; align-items: center; gap: 5px; }
.easi-rate-sel:hover, .easi-rate-sel:focus {
  border-color: var(--easi-accent); box-shadow: 0 1px 5px rgba(20, 40, 80, .18); outline: none;
}
/* manually overridden row: accent stripe + faint tint. Cross-section-derived rows are
   intentionally NOT tinted (they aren't manual overrides — see _metric_table). */
.easi-row-ovr td { background: #f3f7fd; }
.easi-row-ovr td:first-child { box-shadow: inset 3px 0 0 var(--easi-accent); }
/* per-metric note: icon button + expandable textarea sub-row */
.easi-note-cell { width: 46px; text-align: center; }
.easi-note-btn {
  cursor: pointer; padding: 1px 6px; line-height: 1.2; font-size: 12px;
  color: #5b6b85; background: #fff; border: 1px solid var(--card-border); border-radius: 5px;
  transition: border-color .12s, color .12s, background .12s;
}
.easi-note-btn:hover { color: var(--easi-accent); border-color: var(--easi-accent); background: #eef2f8; }
.easi-note-btn.has-note { color: #fff; background: var(--easi-accent); border-color: var(--easi-accent); }
.easi-note-row { display: none; }
.easi-note-row.open { display: table-row; }
.easi-note-row td { background: #f8fafc; padding: 6px 10px; }
.easi-note-ta {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 38px;
  border: 1px solid var(--card-border); border-radius: 6px; padding: 6px 8px;
  font-size: 12px; color: #2a3344; background: #fff;
}
.easi-note-ta:focus {
  outline: none; border-color: var(--easi-accent); box-shadow: 0 0 0 2px rgba(47, 75, 124, .12);
}

/* --------------------------------------------------------------------------- */
/* Metric-table display toggles (STAF "screening" controls; www/report-controls.js) */
/* Detail columns/rows/badges are always rendered but hidden until the matching     */
/* checkbox flips a class on #easi-report — purely client-side, so a toggle never    */
/* re-renders a Shiny output (no flicker / no .recalculating spinner).               */
/* --------------------------------------------------------------------------- */
.easi-metric-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  margin: 2px 0 8px; padding: 7px 10px;
  background: #f6f8fc; border: 1px solid var(--card-border); border-radius: 8px;
}
.easi-toggle-item {
  display: inline-flex; align-items: center; gap: 5px; margin: 0; font-weight: 500;
  font-size: 12px; color: #33415c; cursor: pointer; user-select: none;
}
.easi-toggle-item input { cursor: pointer; margin: 0; }

/* default-hidden detail (revealed by the wrapper classes below) */
.easi-col-adv, .easi-col-map { display: none; }
.easi-fnf-badge, .easi-auto-cue { display: none; }
.easi-rollup-row { display: none; }

#easi-report.show-adv .easi-col-adv { display: table-cell; }
#easi-report.show-map .easi-col-map { display: table-cell; }
#easi-report.show-rollup .easi-rollup-row { display: table-row; }
#easi-report.show-fnf .easi-fnf-badge { display: inline-block; }
#easi-report.show-suggested .easi-auto-cue { display: inline; }

/* mapping cells (D / i / –) read as compact centered codes */
.easi-col-map { text-align: center; font-weight: 600; color: #46536e; }

/* function-score cell: score + band badge + auto cue on one line */
.easi-fs-cell { white-space: nowrap; }
.easi-fnf-badge {
  margin-left: 6px; padding: 0 6px; border-radius: 9px; vertical-align: middle;
  font-size: 10px; font-weight: 700; color: #2a3344;
}
.easi-auto-cue { margin-left: 6px; font-size: 11px; color: #8791a6; font-style: italic; }

/* Function Score: read-only STAF-style slider vs the plain number, chosen by the
   "show-slider" toggle (wrapper ships .show-slider, so the slider is the default). Both are
   emitted in the cell; CSS shows one — flipping is instant, no re-render. */
#easi-report.show-slider .easi-fscore-plain { display: none; }
.easi-fslider { display: none; align-items: center; gap: 8px; vertical-align: middle; }
#easi-report.show-slider .easi-fslider { display: inline-flex; }
.easi-fslider-bars { width: 108px; }
.easi-fslider-labels { display: none; }              /* NF/AR/F above the track (Show F/AR/NF) */
#easi-report.show-slider.show-fnf .easi-fslider-labels { display: flex; margin-bottom: 2px; }
.easi-fslider-labels span {
  flex: 1; text-align: center; font-size: 8px; font-weight: 700; color: #6b7280; line-height: 1;
}
.easi-fslider-track {
  position: relative; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, #f5b5b5 0 33.33%, #f5e7a6 33.33% 66.66%,
                              #c8d9f2 66.66% 100%);
}
.easi-fslider-knob {
  position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid #33415c; transform: translate(-50%, -50%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.easi-fslider-num { font-weight: 700; font-variant-numeric: tabular-nums; }

/* integrated outcome rollup: two renderings toggled purely by the mappings state (no
   re-render). Aligned <tfoot> — values sit under the P/C/B columns — shows when mappings
   are ON; the right-justified standalone table shows when mappings are OFF. */
.easi-metrics-block { margin: 0 0 6px; }
#easi-report:not(.show-map) .easi-rollup-foot { display: none; }
#easi-report.show-map .easi-rollup-standalone { display: none; }
/* center the mapping column (header, D/i/– codes, and the aligned rollup values) so they
   line up in-column — beats the base left-aligned .easi-tbl th/td */
.easi-tbl th.easi-col-map, .easi-tbl td.easi-col-map { text-align: center; }
.easi-tbl th.easi-rollup-lbl { text-align: right; font-weight: 700; color: var(--easi-accent); }
.easi-rollup-foot td, .easi-tbl.easi-rollup-standalone td { font-variant-numeric: tabular-nums; }
.easi-tbl.easi-rollup-standalone td { text-align: center; min-width: 3.4rem; }
.easi-tbl.easi-rollup-standalone thead th { text-align: center; }
/* full-width: the label column stretches so the values sit at the right; the label text is
   right-justified (like the mappings-on footer) so it hugs the values */
.easi-tbl.easi-rollup-standalone th.easi-rollup-lbl { text-align: right; width: 100%; }
.easi-rollup-foot td.easi-band, .easi-rollup-standalone td.easi-band {
  font-weight: 700; color: #26324a;
}
/* standalone (mappings hidden): full-width block — label far left, values on the right
   under its own P/C/B header (the aligned tfoot uses the table's headers instead) */
.easi-rollup-standalone { width: 100%; margin: 6px 0 0; }

/* --------------------------------------------------------------------------- */
/* STAF screening-summary layout (report modal)                                */
/* --------------------------------------------------------------------------- */
.easi-summary-head { margin-bottom: 0.7rem; }
.easi-summary-head h3 { margin: 0 0 0.45rem; color: var(--eci-title); font-weight: 700; }
.easi-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.easi-fact {
  background: #eef2f8; border: 1px solid var(--card-border); border-radius: 12px;
  padding: 2px 10px; font-size: 12px; color: #33415c;
}
.easi-fact b { color: var(--eci-title); font-weight: 600; }

/* two-panel summary plots: function scores (grouped by category) | condition indices */
.easi-summary-plots {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  align-items: start; margin: 6px 0 14px;
}
@media (max-width: 760px) { .easi-summary-plots { grid-template-columns: 1fr; } }
.easi-plot-panel { min-width: 0; }
.easi-plot-title {
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  color: var(--eci-title); margin: 0 0 4px;
}
.easi-plot-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; }
.easi-leg-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #556; }
.easi-leg-sw {
  width: 11px; height: 11px; border-radius: 2px; display: inline-block;
  border: 1px solid rgba(0, 0, 0, .18);
}
.easi-fn-block { margin-bottom: 7px; }
.easi-fn-group {
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #3a6ea5; margin: 4px 0 2px;
}

/* cross-section block: summary table + editable inputs (left) beside the plot (right) */
.easi-xsection-wrap {
  display: grid; grid-template-columns: 300px 1fr; gap: 10px;
  align-items: stretch; margin: 12px 0;   /* plot column matches the left card's height */
}
.easi-xsection {
  border: 1px solid var(--card-border); border-radius: 8px; padding: 8px;
  background: #fff; text-align: center; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
  flex: 1; min-height: 200px;              /* fill the column height (safety floor) */
}
.easi-xsection img { max-width: 100%; height: auto; }
/* report watershed map (reportmap.svg); the class name is shared with SFARI
   and DEEP, which emit the same markup from the same module. */
.sfari-minimap { border: 1px solid var(--card-border); border-radius: 6px; background: #fbfcfe; }
.easi-xsection-cap { font-size: 11px; color: #667; margin: 4px 0 0; }

.easi-xs-panel {
  border: 1px solid var(--card-border); border-radius: 8px; padding: 8px 10px 10px;
  background: #f7f9fc; display: flex; flex-direction: column; min-width: 0;
}
.easi-xs-panel-title {
  font-family: var(--font-head); font-weight: 600; color: var(--eci-title);
  font-size: 0.9rem; margin-bottom: 6px;
}
.easi-xs-tbl { margin-bottom: 8px; }
.easi-xs-tbl th { background: transparent; font-weight: 600; white-space: nowrap; }
.easi-xs-tbl td { text-align: right; }
.easi-xs-reach-wrap { margin: 8px 0 0; overflow-x: auto; }
.easi-xs-reach { font-size: 12px; }
.easi-xs-reach td { text-align: center; white-space: nowrap; }
.easi-xs-reach th { white-space: nowrap; }
.easi-xs-median { color: #1f6fc0; font-weight: 600; }
.easi-xs-reach-med { border-left: 2px solid #c6d4e3; }
.easi-xs-foot { font-size: 10.5px; color: #993366; margin: 0 0 8px; }
.easi-xs-fields { display: flex; gap: 10px; }
.easi-xs-fields .shiny-input-container { flex: 1; margin-bottom: 6px; }
.easi-xs-panel label { font-size: 11.5px; font-weight: 600; color: #33415c; }
.easi-xs-panel .form-control { padding: 3px 8px; height: auto; }
.easi-xs-panel .shiny-options-group { font-size: 12px; }
.easi-xs-panel .btn { margin-top: 2px; align-self: flex-start; }

/* plot column: a header row (title + candidate selector) sits above the Plotly plot,
   clear of the modebar (which stays top-right inside the plot). */
.easi-xs-right { display: flex; flex-direction: column; min-width: 0; }
.easi-xs-plot-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 2px;
}
.easi-xs-plot-title {
  font-family: var(--font-head); font-weight: 600; color: var(--eci-title);
  font-size: 0.95rem; margin-right: auto;   /* push switch + view buttons to the right */
}
/* Python-published window range for the modebar's injected Zoom Home button */
.easi-xs-winrange { display: none; }
.easi-xs-switch {
  display: flex; align-items: center; gap: 2px; flex: none;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--card-border);
  border-radius: 7px; padding: 1px 3px; box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}
.easi-xs-arrow {
  border: none; background: transparent; cursor: pointer;
  padding: 0 5px; font-size: 12px; line-height: 1.4; color: var(--easi-accent);
}
.easi-xs-arrow:hover { color: var(--eci-title); }
.easi-xs-switch-lbl { font-size: 11px; color: #33415c; min-width: 92px; text-align: center; }

@media (max-width: 640px) {
  .easi-xsection-wrap { grid-template-columns: 1fr; }
}

.easi-section-title {
  font-family: var(--font-head); font-weight: 600; color: var(--eci-title);
  margin: 16px 0 6px; font-size: 0.98rem;
}

/* collapsible "Outcome rollup" (native <details>/<summary>), collapsed by default */
.easi-rollup { margin: 16px 0 6px; }
summary.easi-rollup-sum {
  cursor: pointer; list-style: none; user-select: none;
  display: flex; align-items: center; gap: 6px; margin: 0;
}
summary.easi-rollup-sum::-webkit-details-marker { display: none; }
summary.easi-rollup-sum::before {
  content: ""; flex: none; width: 0; height: 0;
  border-left: 5px solid var(--easi-accent);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform .15s ease;
}
details.easi-rollup[open] > summary.easi-rollup-sum::before { transform: rotate(90deg); }
.easi-disclaimer { color: #667; font-size: 11.5px; margin-top: 12px; }

/* --------------------------------------------------------------------------- */
/* Report modal sizing (target Bootstrap classes — robust across Shiny vers.)   */
/* --------------------------------------------------------------------------- */
/* The size="xl" modals (the report, the Get Forms dialog) fill the viewport height and
   scroll ONLY in their body. The background page is already locked (html, body
   overflow:hidden), so this removes the outer modal scrollbar and the wasted space above
   the popup. */
.modal-dialog.modal-xl {
  max-width: min(1180px, 96vw);
  height: calc(100vh - 1.5rem);     /* fill the viewport, ~0.75rem gap top + bottom */
  margin: 0.75rem auto;
}
.modal-xl .modal-content { max-height: 100%; overflow: hidden; }   /* no outer scroll */
.modal-xl .modal-body   { overflow-y: auto; }                      /* the only scroll region */
/* Small modals (Help): the theme's 10% --bs-modal-margin is width-relative, so a
   wide window alone forces the outer modal scrollbar and pins the dialog to the
   top. Restore Bootstrap's fixed margin and center the dialog vertically. The
   XL report modal above sets its own margin and height and is excluded. */
@media (min-width: 576px) {
  .modal { --bs-modal-margin: 1.75rem; }
}
.modal-dialog:not(.modal-xl) {
  display: flex;
  align-items: center;
  min-height: calc(100% - var(--bs-modal-margin) * 2);
}
/* The report must sit ABOVE the absolutely-positioned header (1200) and left pane
   (1100) so it's fully visible; its backdrop covers them too, so the user has to
   close the report (✕ or click-outside) before interacting with the map/pane. */
.modal-backdrop { z-index: 1290 !important; }
.modal { z-index: 1300 !important; }

/* Get Forms dialog (2026-09-18, SFARI's Field Forms shell): a static tab strip with the
   downloads (styled in staf/staf.css, the same in every tool), and the 20-row table scrolling
   in its own box under a header that stays put. The modal body is a column so the scroll box
   takes the height the dialog has. */
.modal-dialog.modal-xl:has(.ff-modal-body) .modal-content { height: 100%; }
.modal-xl .modal-body.ff-modal-body { display: flex; flex-direction: column; gap: 8px;
  flex: 1; min-height: 0; overflow: hidden; }
.ff-modal-body .nav-pills { flex: none; align-items: center; gap: 4px; }
.ff-modal-body .nav-pills .nav-link { font-size: 12.5px; padding: 4px 12px; }
.ff-modal-body .nav-pills .bslib-nav-spacer { flex: 1; }
.ff-modal-body .tab-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ff-modal-body .tab-content > .tab-pane.active { flex: 1; min-height: 0; display: flex;
  flex-direction: column; gap: 8px; }
.ff-site { font-size: 12.5px; color: #45506a; }
.ff-status { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #2f3a52; }
.ff-table-wrap { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--card-border);
  border-radius: 6px; background: #fff; }
.ff-table-wrap .ff-table { border-collapse: separate; border-spacing: 0; }
.ff-table-wrap .ff-table thead th { position: sticky; top: 0; z-index: 3; background: #f4f6fa;
  border-bottom: none; box-shadow: inset 0 -1px 0 #d7dce5; }
.ff-src-sub { display: block; font-size: 10.5px; color: #66708a; }

@media (max-width: 920px) {
  .outcome-cards { grid-template-columns: 1fr; }
}

/* ========================================================================== */
/* StreamStats-style full-screen shell                                         */
/* ========================================================================== */
html, body { height: 100%; margin: 0; overflow: hidden; }
.bslib-page-fillable { height: 100vh !important; }
.bslib-page-fillable, .bslib-page-fillable > .container-fluid { padding: 0 !important; gap: 0 !important; margin: 0 !important; }
.easi-shell { position: absolute; inset: 0; overflow: hidden; }

/* top header bar */
.easi-header {
  position: absolute; top: 0; left: 0; right: 0; height: 50px; z-index: 1200;
  background: var(--easi-accent-dark); color: #fff;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px;
}
.easi-header-left { display: flex; align-items: center; min-width: 0; }
.easi-header .easi-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.easi-header .easi-brand small { font-weight: 400; opacity: .8; font-size: .8rem; margin-left: 8px; }
.easi-header .easi-nav { justify-self: end; display: flex; gap: 18px; align-items: center; }
/* the Nationwide screening switch, centered in the bar: Shiny wraps every
   input in a 300 px box with a bottom margin, which is what pushed the switch
   left and up; the box is collapsed so the grid centers the real content.
   Off is an outlined track with a white knob, on a near-white track with a
   navy knob: monochrome, so the state reads without adding a color */
.easi-mode-toggle { display: flex; align-items: center; gap: 7px; justify-self: center; }
.easi-mode-toggle .shiny-input-container { width: auto; margin: 0; }
.easi-mode-toggle > .shiny-html-output { display: inline-flex; align-items: center; }
.easi-mode-toggle .form-check { margin: 0; min-height: 0; padding-left: 0; display: flex; align-items: center; gap: 7px; }
.easi-mode-toggle .form-check-input { float: none; margin: 0; width: 30px; height: 16px; cursor: pointer;
  background-color: transparent; border: 1.5px solid rgba(255, 255, 255, .55);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e"); transition: background-color .15s ease, border-color .15s ease; }
.easi-mode-toggle .form-check-input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .8); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e"); }
.easi-mode-toggle .form-check-input:checked { background-color: #eef2fa; border-color: rgba(255, 255, 255, .9);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23243a61'/%3e%3c/svg%3e"); }
.easi-mode-toggle .form-check-input:checked:focus { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23243a61'/%3e%3c/svg%3e"); }
.easi-mode-toggle .form-check-label { color: rgba(255, 255, 255, .82); font-size: 12.5px; font-weight: 400;
  cursor: pointer; white-space: nowrap; transition: color .15s ease; }
.easi-mode-toggle .form-check-input:checked + .form-check-label { color: #fff; }
.easi-mode-toggle .easi-info { width: 14px; height: 14px; margin: 0; vertical-align: 0; background: transparent;
  border-color: rgba(255, 255, 255, .55); color: rgba(255, 255, 255, .85); font-size: 9.5px; }
.easi-mode-toggle .easi-info:hover { background: #fff; color: var(--easi-accent-dark); border-color: #fff; }
.easi-viewer-about { font-size: 12px; line-height: 1.4; }
.easi-viewer-about b { display: block; margin-bottom: 4px; }
.easi-viewer-about p { margin: 0 0 6px; }
.easi-viewer-about-data { color: #55607a; }
.easi-header .easi-nav a { color: #cdd8ec; text-decoration: none; font-size: 13px; cursor: pointer; }
.easi-header .easi-nav a:hover { color: #fff; }

/* STAF site link in the header (cross-app links removed to keep the banner minimal). */
.easi-header .staf-topnav {
  display: flex; align-items: center; gap: 14px;
  margin-left: 22px; padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.easi-header .staf-topnav-link {
  color: #cdd8ec; text-decoration: none; font-size: 12px;
  white-space: nowrap; cursor: pointer;
}
.easi-header .staf-topnav-link:hover { color: #fff; }

@media (max-width: 600px) {
  .easi-header { padding: 0 10px; }
  .easi-header .easi-brand small { display: none; }
  .easi-header .staf-topnav { margin-left: 10px; padding-left: 10px; }
  .easi-header .easi-nav { gap: 4px 8px; flex-wrap: wrap; align-items: center; }
  .easi-header .easi-nav a { font-size: 12px; white-space: nowrap; }
  .easi-mode-toggle .form-check-label { font-size: 12px; }
}

/* map fills everything below the header */
.easi-map-wrap { position: absolute; top: 50px; left: 0; right: 0; bottom: 0; z-index: 0; }
.easi-map-wrap > div, .easi-map-wrap .shiny-html-output,
.easi-map-wrap .jupyter-widgets { height: 100% !important; width: 100% !important; }
.easi-map-wrap .leaflet-container { height: 100% !important; width: 100% !important; border-radius: 0; }
.easi-map-wrap .leaflet-top { margin-top: 4px; }

/* left workflow pane, overlaying the map's left edge */
.easi-leftpane {
  position: absolute; top: 62px; left: 12px; width: 352px; max-height: calc(100vh - 86px);
  z-index: 1100; background: #fff; border: 1px solid var(--card-border); border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18); overflow-y: auto; overflow-x: hidden;
}
.easi-pane-head {
  background: var(--easi-accent); color: #fff; padding: 9px 14px;
  font-family: var(--font-head); font-weight: 600; border-radius: 8px 8px 0 0;
}
.easi-pane-body { padding: 12px 14px 16px; }
.easi-pane-body hr { margin: 8px 0; }   /* the search-to-coordinates divider */
.easi-instr {
  background: #f5f8fb; border-left: 3px solid var(--easi-accent); padding: 8px 10px;
  font-size: 12.5px; color: #33415c; margin-bottom: 10px; border-radius: 0 4px 4px 0;
}

/* stepper */
.easi-steps { display: flex; gap: 4px; margin-bottom: 12px; }
.easi-step {
  flex: 1; text-align: center; font-size: 10px; color: #8a93a3;
  padding: 5px 2px 6px; border-top: 3px solid #e2e7ef;
  text-decoration: none; cursor: pointer; border-radius: 0 0 3px 3px;
}
.easi-step:hover { background: #eef2f8; color: var(--easi-accent); text-decoration: none; }
.easi-step.active { color: var(--easi-accent); font-weight: 700; border-top-color: var(--easi-accent); }
.easi-step.done { color: var(--bio-title); border-top-color: var(--bio-border); }

/* basin summary card */
.easi-basin-card {
  background: #fbfdff; border: 1px solid var(--card-border); border-radius: 6px;
  padding: 10px 12px; font-size: 13px; margin-bottom: 10px;
}
.easi-basin-card h5 { font-family: var(--font-head); color: var(--eci-title); font-size: 0.95rem; margin: 0 0 6px; }
.easi-basin-card .b-row { display: flex; justify-content: space-between; padding: 2px 0; }
.easi-basin-card .b-row b { color: var(--eci-title); font-weight: 600; }

/* configure panel */
.easi-cfg-group {
  font-family: var(--font-head); font-weight: 700; color: var(--easi-accent);
  font-size: 12.5px; margin: 12px 0 2px; border-bottom: 1px solid var(--rule); padding-bottom: 2px;
}
.easi-cfg-row { padding: 3px 0; border-bottom: 1px solid #eef1f6; }
.easi-cfg-row .form-group, .easi-cfg-row .shiny-input-container { margin-bottom: 0; }
.easi-cfg-row .shiny-input-container { margin-top: 2px; }       /* dropdown sits just below the name */
/* metric name (replaces the old checkbox label) — its own line; keep it in the 12-13px
   scale so it doesn't dwarf the discipline (12.5) / function (12) headers above it */
.easi-metric-name { display: block; font-size: 13px; font-weight: 500; color: #2a3344; line-height: 1.35; }
.easi-cfg-row select, .easi-cfg-row .shiny-input-container select { font-size: 12.5px; }
/* small circled-"i" info button — sits inline right after each name (function name
   or metric name); custom tooltip on hover. */
.easi-info {
  margin-left: 5px; flex: none; cursor: help; vertical-align: middle;
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: #eef3fb; border: 1px solid #b9c8e0; color: var(--easi-accent);
  font: italic 700 10.5px/1 Georgia, "Times New Roman", serif; user-select: none;
}
.easi-info:hover { background: var(--easi-accent); border-color: var(--easi-accent); color: #fff; }
/* light floating tooltip box (positioned on <body> by www/tooltip.js) */
.easi-tip {
  position: absolute; z-index: 1400; max-width: 270px;
  background: #fff; color: #33415c;
  border: 1px solid var(--card-border); border-radius: 7px;
  box-shadow: 0 6px 22px rgba(20, 40, 80, .16);
  padding: 8px 11px; font-size: 11.5px; line-height: 1.5;
  white-space: pre-line; pointer-events: none;
}

/* rich metric tooltip card (data-tip-html): definition / calculation / scoring */
.easi-tip--html { max-width: 340px; white-space: normal; }
.easi-tip-title { font-weight: 700; font-size: 12px; color: #22304d; margin-bottom: 5px; }
.easi-tip-sec { margin-top: 7px; }
.easi-tip-sec:first-of-type { margin-top: 0; }
.easi-tip-lbl {
  display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #3a6ea5; margin-bottom: 1px;
}
.easi-tip-sub { color: #6b7689; font-size: 10.5px; margin-top: 2px; }
.easi-tip-default { color: #6b7689; font-size: 10.5px; font-style: italic; margin-left: 5px; }
.easi-tip-crit { display: flex; align-items: baseline; gap: 5px; margin-top: 3px; }
.easi-tip-dot {
  flex: none; width: 9px; height: 9px; border-radius: 2px; margin-top: 1px;
  border: 1px solid rgba(0, 0, 0, .18);
}
.easi-tip-dot.good { background: var(--band-good); }
.easi-tip-dot.fair { background: var(--band-fair); }
.easi-tip-dot.poor { background: var(--band-poor); }

/* collapsible disciplines (native <details>/<summary>) */
.easi-disc { margin: 0; }
summary.easi-cfg-group {
  cursor: pointer; list-style: none; user-select: none;
  display: flex; align-items: center; gap: 6px;
}
summary.easi-cfg-group::-webkit-details-marker { display: none; }
summary.easi-cfg-group::before {
  content: ""; flex: none; width: 0; height: 0;
  border-left: 5px solid var(--easi-accent);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform .15s ease;
}
details[open] > summary.easi-cfg-group::before { transform: rotate(90deg); }
.easi-disc-body { padding-left: 2px; }
/* function sub-header (name + ⓘ statement tooltip) with its metric(s) indented beneath */
.easi-fn-group { display: flex; align-items: center; gap: 6px; margin: 6px 0 1px; }
.easi-fn-name { font-size: 12px; font-weight: 600; color: #2a3344; }
.easi-fn-block { margin-bottom: 3px; }
.easi-fn-block .easi-cfg-row { padding-left: 10px; margin-left: 2px; border-left: 2px solid #e7ebf2; }

/* place/stream search type-ahead dropdown (Photon) */
.easi-ac-menu {
  position: absolute; z-index: 1300; background: #fff;
  border: 1px solid var(--card-border); border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
  max-height: 280px; overflow-y: auto; padding: 4px 0;
  font-family: var(--font-body, system-ui);
}
.easi-ac-item {
  display: flex; flex-direction: column; gap: 1px;
  padding: 6px 10px; cursor: pointer; border-bottom: 1px solid #f1f4f9;
}
.easi-ac-item:last-child { border-bottom: none; }
.easi-ac-item:hover { background: #eef3fb; }
.easi-ac-name { font-size: 12.5px; color: #2a3344; font-weight: 600; }
.easi-ac-meta { font-size: 10.5px; color: #8a93a3; }

/* lat/lon + zoom readout, bottom-left */
.easi-readout {
  position: absolute; left: 12px; bottom: 12px; z-index: 1100;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--card-border); border-radius: 5px;
  padding: 4px 9px; font-size: 11px; color: #33415c; font-variant-numeric: tabular-nums;
}

/* Stream legend (www/legend-dock.js docks #easi-legend-panel under the top-right
   layers button; the absolute position is the fallback when docking fails). The
   card look lives on the rendered .easi-legend, so an empty output shows nothing. */
.easi-legend-panel { position: absolute; top: 62px; right: 12px; z-index: 1100; }
.easi-legend-panel.leaflet-control {
  position: relative; top: auto; right: auto; z-index: auto; margin: 10px 10px 0 0;
}
/* The top-right corner as a column, so the legend keeps its place below the
   layers button even after ipyleaflet re-appends that control on a layer change
   (floats are ignored on flex items; the margins still space the controls). */
.easi-map-wrap .leaflet-top.leaflet-right {
  display: flex; flex-direction: column; align-items: flex-end;
}
.easi-map-wrap .leaflet-top.leaflet-right .leaflet-control { float: none; }
.easi-map-wrap .leaflet-top.leaflet-right .leaflet-control-layers { order: 1; }
.easi-map-wrap .leaflet-top.leaflet-right .easi-legend-panel { order: 2; }
.easi-legend-panel > .shiny-html-output.recalculating { min-height: 0 !important; opacity: 1 !important; }
.easi-legend-panel > .shiny-html-output.recalculating::after { display: none !important; }
.easi-legend {
  display: flex; flex-direction: column; gap: 4px; max-width: 250px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--card-border);
  border-radius: 6px; padding: 6px 9px 7px; font-size: 11px; color: #33415c;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .15);
}
.easi-legend-title { font-weight: 700; font-size: 11px; color: var(--easi-accent);
  text-transform: uppercase; letter-spacing: .03em; }
.easi-legend-row { display: flex; align-items: center; gap: 7px; line-height: 1.25; }
.easi-legend-sw { width: 18px; height: 3px; border-radius: 2px; flex: none;
  background: var(--swatch-color); }
.easi-legend-sw-dashed { height: 2px; border-radius: 0;
  background: repeating-linear-gradient(to right, var(--swatch-color) 0 6px, transparent 6px 10px); }
.staf-coverage-control { margin-top: 5px; padding-top: 5px; border-top: 1px solid #ddd; }
.staf-coverage-toggle { margin: 0 4px 0 0; vertical-align: middle; }
.staf-coverage-toggle:focus-visible { outline: 2px solid #1f6feb; outline-offset: 2px; }
.easi-legend-sw-glow { height: 9px; opacity: .3; }
.easi-legend-sw-fill { width: 12px; height: 12px; border-radius: 2px; opacity: .6;
  border: 1px solid #caa700; }
.easi-legend-label { font-weight: 600; }
.easi-legend-sub, .easi-legend-note { color: #6b7480; }
/* The stream service did not answer: a short notice and the Try again button. */
.easi-legend-alert { display: flex; align-items: flex-start; gap: 8px; max-width: 220px; }
.btn.easi-legend-retry { flex: none; display: inline-flex; align-items: center;
  justify-content: center; width: 24px; height: 24px; padding: 0; line-height: 1;
  border-radius: 5px; color: var(--easi-accent); background: #fff;
  border: 1px solid var(--card-border); }
.btn.easi-legend-retry:hover { color: #fff; background: var(--easi-accent);
  border-color: var(--easi-accent); }
.btn.easi-legend-retry:focus-visible { outline: 2px solid #1f6feb; outline-offset: 2px; }
.easi-legend-retry svg { display: block; }

/* "Loading streams…" cue while NHD vectors fetch (bottom-center, identify step) */
.easi-flow-loading {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1100;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--card-border); border-radius: 16px;
  box-shadow: 0 2px 11px rgba(20, 40, 80, .15);
  padding: 5px 14px 5px 11px; font-size: 12px; font-weight: 500; color: var(--easi-accent);
}

/* busy/stage indicator — a TEXT output (.easi-busy-text) updated in place; the spinner is
   a ::before on this persistent element so it spins smoothly. It collapses to nothing
   when idle (:empty). */
.easi-busy-text:not(:empty) {
  display: flex; align-items: center; gap: 8px;
  color: var(--easi-accent); font-size: 13px; margin-top: 10px;
}
.easi-busy-text:not(:empty)::before {
  content: ""; width: 15px; height: 15px; flex: none;
  border: 2px solid #cdd8ec; border-top-color: var(--easi-accent);
  border-radius: 50%; animation: easi-spin .8s linear infinite;
}
/* Suppress Shiny's automatic "recalculating" spinner overlay on this output. Shiny
   stamps every output with .recalculating while it recomputes, which adds min-height:
   32px + a 32px ::after spinner + opacity:0.3. The progress label recomputes ~3x/s, so
   that overlay flickered the row height (the jitter) and dimmed it. We have our own
   spinner, so neutralize Shiny's here only. */
.easi-busy-text.recalculating { min-height: 0 !important; opacity: 1 !important; }
.easi-busy-text.recalculating::after { display: none !important; }
/* Same overlay, same fix, inside the report modal. Every in-modal recompute (candidate
   switch, rating/note edit) is an instant, cached operation, so Shiny's .recalculating
   overlay (opacity:0.3 + min-height:32px + ::after spinner) only turns those swaps into a
   full-report flash. Neutralize it so the numbers just update in place. */
.modal-body .recalculating { min-height: 0 !important; opacity: 1 !important; }
.modal-body .recalculating::after { display: none !important; }
.easi-spinner {
  width: 15px; height: 15px; border: 2px solid #cdd8ec; border-top-color: var(--easi-accent);
  border-radius: 50%; animation: easi-spin .8s linear infinite; flex: none;
}
@keyframes easi-spin { to { transform: rotate(360deg); } }
.easi-spinner.easi-lookup-spinner {
  display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
}
@media (prefers-reduced-motion: reduce) {
  .easi-lookup-spinner { animation: none; }
}

/* row of pane action buttons */
.easi-pane-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* keep labels on one line so a narrow button (e.g. "Compute & report") does not
   wrap to two lines and stretch the whole row taller via align-items: stretch;
   trim the vertical padding so the single-line buttons stay compact */
.easi-pane-actions .btn { flex: 1; white-space: nowrap; padding-top: 7px; padding-bottom: 7px; }

/* bottom-right toasts (StreamStats placement) */
#shiny-notification-panel { top: auto !important; bottom: 14px !important; right: 14px !important; left: auto !important; width: 330px; }

/* modal close X (Shiny Core doesn't render one, so we inject our own) */
.modal-header { border-bottom: 1px solid var(--rule); }
.modal-content { position: relative; }
.easi-modal-x {
  position: absolute; top: 7px; right: 12px; z-index: 5;
  border: none; background: transparent; font-size: 21px; line-height: 1;
  color: #66708a; padding: 2px 9px; cursor: pointer;
}
.easi-modal-x:hover { color: var(--eci-title); }
/* muted cue beside the X: closing the report returns to the Assessment worksheet */
.easi-modal-hint {
  position: absolute; top: 14px; right: 46px; z-index: 5;
  font-size: 11.5px; color: #66708a; pointer-events: none; white-space: nowrap;
}
@media (max-width: 760px) { .easi-modal-hint { display: none; } }

/* ===== Batch workspace (full-width overlay below the 50px header) ===== */
.easi-batch { position: absolute; top: 50px; left: 0; right: 0; bottom: 0;
  /* above the single-site overlays (leftpane/readout/toast at 1100), below the header (1200) */
  z-index: 1150; background: #f7f9fc; display: flex; flex-direction: column; }
.easi-batch-head { display: flex; align-items: center; gap: 20px;
  padding: 10px 20px; background: #fff; border-bottom: 1px solid #e2e8f2; }
.easi-batch-brand { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.easi-batch-head a { color: var(--easi-accent); font-size: 13px; cursor: pointer;
  text-decoration: none; }
.easi-batch-head a:hover { text-decoration: underline; }
.easi-batch-scroll { flex: 1; overflow: auto; padding: 22px 26px; }
.easi-batch-scroll > div { max-width: 900px; margin: 0 auto; }
.easi-batch-import-row { display: flex; gap: 16px; align-items: center;
  margin: 10px 0; flex-wrap: wrap; }
/* The upload control is a plain button: uploads parse (into the textarea) on pick,
   so the filename box and its progress strip are noise. */
.easi-batch-import-row .input-group > .form-control { display: none; }
.easi-batch-import-row .shiny-file-input-progress { display: none; }
.easi-batch-import-row .shiny-input-container { margin-bottom: 0; width: auto; }
.easi-batch-import-row .btn-file { background: #fff; border: 1px solid var(--card-border);
  border-radius: 6px; padding: 4px 14px; font-size: 13px; color: #33415c;
  font-weight: 600; cursor: pointer; }
.easi-batch-import-row .btn-file:hover { border-color: var(--easi-accent);
  color: var(--easi-accent); }
.easi-batch-msg { margin: 6px 0; font-size: 13px; color: var(--easi-accent);
  font-weight: 600; }
.easi-batch-settings { margin-top: 14px; }
.easi-batch-settings .shiny-input-container { width: 180px; margin-bottom: 0; }
.easi-batch-settings label { font-size: 12.5px; color: #55607a; font-weight: 600; }
.easi-batch-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; }
.easi-batch-summary { margin: 12px 0 4px; font-size: 13px; color: #55607a;
  font-weight: 600; }
.easi-batch-preview-wrap, .easi-batch-results-wrap { margin: 14px 0; max-height: 360px;
  overflow: auto; border: 1px solid #e2e8f2; border-radius: 6px; }
.easi-batch-preview, .easi-batch-results { width: 100%; font-size: 12.5px; }
.easi-batch-ok { color: #2e7d4f; font-weight: 700; }
.easi-batch-badge { font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 10px; background: #eef2f8; color: #55607a; }
.easi-batch-badge.b-failed { background: #fbe4e4; color: #7a2e2e; }
.easi-batch-badge.b-partial { background: #fdf0d4; color: #6b5310; }
.easi-batch-report-link { color: var(--easi-accent); font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; }
.easi-batch-report-link:hover { text-decoration: underline; }
.easi-batch-bar { height: 12px; background: #e2e8f2; border-radius: 6px;
  overflow: hidden; margin: 10px 0; }
.easi-batch-bar-fill { height: 100%; background: var(--easi-accent);
  transition: width .3s; }

/* ===================================================================== */
/* Assessment worksheet (SFARI/DEEP-style: rail + one function + rollup)  */
/* ===================================================================== */
/* Sits above the (empty) left workflow pane and the map readout/toast (all z 1100) so no
   Identify-step chrome bleeds through; still under the header (1200), modals (1300), and
   tooltips (1400). Same level as the batch overlay — they are mutually exclusive. */
.sfari-worksheet { position: absolute; top: 50px; left: 0; right: 0; bottom: 0; z-index: 1150;
  background: var(--surface-soft); display: flex; overflow: hidden; }
/* The worksheet rail: the same width, scrollbar and type in EASI, SFARI and DEEP
   (2026-10-04). The width is the narrowest that keeps the bold "Low flow and baseflow
   dynamics" on one line with the scrollbar showing. */
.sfari-nav { width: 276px; flex: none; background: #fff; border-right: 1px solid var(--card-border);
  overflow: hidden auto; padding: 0 0 14px; }
.sfari-nav, .sfari-fnpanel, .sfari-rollup, .modal-body {
  scrollbar-width: thin; scrollbar-color: #e4e9f1 transparent; }
.sfari-nav:hover, .sfari-fnpanel:hover, .sfari-rollup:hover, .modal-body:hover {
  scrollbar-color: #c3cbda transparent; }
.sfari-nav .easi-pane-head { border-radius: 0; }
.sfari-nav-steps { padding: 8px 10px 0; }
.sfari-nav-steps .easi-steps { margin-bottom: 4px; gap: 2px; flex-wrap: wrap; row-gap: 4px; }
.sfari-nav-steps .easi-step { flex: 1 1 auto; white-space: nowrap; padding: 5px 3px 6px; }
/* Get Forms: the one assessment-wide action, labeled, under the stepper (SFARI's Field Forms).
   Two classes: .sfari-btn is defined further down and would win on color and border. */
.sfari-btn.sfari-nav-desktop { display: block; width: calc(100% - 28px); margin: 8px 14px 6px;
  padding: 8px 10px; font-size: 13.5px; font-weight: 600; text-align: center;
  color: var(--easi-accent); border-color: #b9c8e0; }
.sfari-btn.sfari-nav-desktop:hover { border-color: var(--easi-accent); background: #eef2f8; }
.sfari-nav-cat { font-family: var(--font-head); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: #98a1b1; padding: 11px 14px 2px; }
.sfari-nav-fn { display: flex; align-items: flex-start; gap: 7px; padding: 5px 14px;
  font-size: 14px; line-height: 1.3; color: #33415c; cursor: pointer;
  border-left: 3px solid transparent; }
.sfari-nav-fn:hover { background: #eef2f8; }
.sfari-nav-fn.active { background: #eaf0f9; border-left-color: var(--easi-accent);
  font-weight: 600; color: var(--easi-accent); }
.sfari-nav-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 5.5px;
  background: #e3e8f0; }
.sfari-fnpanel { flex: 1; overflow-y: auto; padding: 16px 26px 6px; }
.sfari-fnpanel-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column;
  min-height: 100%; }
/* function heading (SFARI pattern: eyebrow above the function name) */
.easi-fn-head { margin: 2px 0 10px; }
.easi-fn-eyebrow { font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: #8a93a3; margin-bottom: 3px;
  display: block; }
.easi-fn-head .easi-fn-name { font-family: var(--font-head); color: var(--eci-title);
  font-size: 1.5rem; font-weight: 700; line-height: 1.25; display: block; margin: 0 0 6px; }
/* numbered section badge (SFARI pattern) */
.sfari-step-num { flex: none; width: 21px; height: 21px; border-radius: 50%; background: #33415c;
  color: #fff; font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
/* the function's card: its section header and the metric row. The row is the shared
   staf/metric-rows.css, the same in EASI, SFARI and DEEP (owner, 2026-10-04). */
.sfari-ev-card { background: #fff; border: 1px solid var(--card-border); border-radius: 10px;
  margin-bottom: 14px; overflow: hidden; }
.sfari-sec-lbl { font-family: var(--font-head); font-size: 14.5px; font-weight: 700;
  color: var(--eci-title); margin: 0; padding: 12px 16px 11px;
  display: flex; align-items: center; gap: 9px; }
/* the observed entries and the cross-section editor span the row, under its panels */
.easi-card-wide { grid-column: 1 / -1; min-width: 0; margin-top: 12px; }
/* read-only derived-score gauge (mirrors DEEP's deep-fscore-*) */
.easi-scorecard { background: #fff; border: 1px solid var(--card-border);
  border-left: 3px solid var(--easi-accent); border-radius: 10px; padding: 12px 16px 13px;
  margin: 2px 0 12px; }
.easi-fscore-head { display: flex; align-items: center; gap: 9px; margin: -12px -16px 12px;
  padding: 12px 16px 11px; border-bottom: 1px solid var(--rule); }
.easi-fscore-lbl { font-family: var(--font-head); font-size: 14.5px; font-weight: 700;
  color: var(--eci-title); }
.sfari-fn-statement { font-size: 15.5px; color: #3d4a63; margin: 0 0 10px; line-height: 1.55; }
.easi-fscore-row { display: flex; align-items: center; gap: 12px; }
.easi-fscore-track { position: relative; flex: 1; min-width: 90px; height: 8px; border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .14);
  background: linear-gradient(to right, var(--band-poor) 0 33.33%,
              var(--band-fair) 33.33% 66.67%, var(--band-good) 66.67% 100%); }
.easi-fscore-knob { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid #33415c; transform: translate(-50%, -50%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.easi-scorecard.unset .easi-fscore-knob { display: none; }
.easi-scorecard.unset .easi-fscore-num { color: #b6becb; }
.easi-fscore-num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800;
  color: #33415c; min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.easi-fscore-band { padding: 3px 9px; border-radius: 11px; font-size: 12px; font-weight: 600;
  color: #33415c; white-space: nowrap; min-width: 140px; text-align: center; }
/* cross-section editor embedded in the 3 XS-metric cards */
.easi-xs-in-card { margin-top: 10px; border-top: 1px solid var(--rule); padding-top: 12px; }
/* Observed evidence block (2026-09-18): the optional documented observation of the Channel
   evolution and Bank condition cards, set apart from the automatic evidence above it. The
   hint is a full-width line of the live slot, which is a wrapping flex row. */
.easi-obs { margin-top: 10px; border: 1px solid var(--card-border); border-left: 3px solid #b9c8e0;
  border-radius: 7px; background: var(--surface-soft); padding: 9px 11px 10px; }
.easi-obs-title { font-size: 12.5px; font-weight: 700; color: #2f3a52; }
.easi-obs-opt { font-weight: 500; color: #7c869c; }
.easi-obs-help { font-size: 11.5px; color: #55607a; margin: 2px 0 8px; }
.easi-obs-field { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; font-weight: 600;
  color: #45506a; margin: 0 0 8px; }
.easi-obs-field:last-child { margin-bottom: 0; }
.easi-obs-in { border: 1px solid var(--card-border); border-radius: 6px; padding: 5px 8px; font-size: 12.5px;
  font-weight: 400; color: #2a3344; background: #fff; width: 100%; box-sizing: border-box; }
textarea.easi-obs-in { resize: vertical; min-height: 38px; }
.easi-obs-in:focus { outline: none; border-color: var(--easi-accent);
  box-shadow: 0 0 0 2px rgba(47, 75, 124, .12); }
.easi-obs-row { display: flex; gap: 10px; flex-wrap: wrap; }
.easi-obs-row .easi-obs-num { flex: 1 1 130px; max-width: 190px; }
.easi-obs-crit { font-size: 11.5px; color: #55607a; line-height: 1.45; }
.easi-obs-hint { flex: 1 1 100%; font-size: 11.5px; color: #8a5a12; }
.easi-obs-hint.applied { color: #1f5f3a; }
.easi-rate-sel[disabled] { cursor: default; opacity: .75; }
/* compute / empty state */
.easi-fn-compute { display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 60px 20px; color: #55607a; font-size: 14px; }
.easi-fn-compute-sub { font-size: 12px; color: #8a93a3; margin-top: -6px; }
/* sticky navigation footer */
.sfari-fn-footer { position: sticky; bottom: 0; z-index: 5; margin-top: auto;
  background: var(--surface-soft); padding: 9px 0 10px;
  box-shadow: 0 -10px 14px -10px rgba(20, 40, 80, .16); }
.sfari-nav-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.sfari-foot-left { display: flex; gap: 8px; }
.sfari-foot-status { flex: 1; }
.sfari-btn { border: 1px solid var(--card-border); background: #fff; border-radius: 7px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; color: #33415c; cursor: pointer; }
.sfari-btn:hover { border-color: var(--easi-accent); color: var(--easi-accent); }
.sfari-btn.primary { background: var(--easi-accent); color: #fff; border-color: var(--easi-accent); }
.sfari-btn.primary:hover { background: var(--easi-accent-dark); color: #fff; }
.sfari-btn[disabled] { opacity: .5; cursor: default; }
/* rollup rail */
.sfari-rollup { width: 300px; flex: none; background: #fff; border-left: 1px solid var(--card-border);
  overflow-y: auto; padding: 15px 17px; }
.sfari-rollup h4 { font-family: var(--font-head); color: var(--eci-title); font-size: 13px;
  margin: 0 0 6px; }
.sfari-rollup .easi-bar-label { font-size: 12.5px; }
.sfari-eci-box { text-align: center; background: var(--surface-soft); border: 1px solid var(--card-border);
  border-radius: 8px; padding: 10px; margin-bottom: 14px; }
.sfari-eci { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700;
  color: var(--eci-title); line-height: 1; }
.sfari-eci-track { position: relative; height: 7px; border-radius: 4px; margin: 9px 6px 2px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: linear-gradient(to right, var(--band-poor) 0 39%,
              var(--band-fair) 39% 69%, var(--band-good) 69% 100%); }
.sfari-eci-knob { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2px solid #33415c; transform: translate(-50%, -50%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.sfari-eci-lbl { font-size: 11px; color: #8a93a3; text-transform: uppercase; letter-spacing: .05em;
  margin-top: 2px; }
.sfari-progress-bar { height: 6px; background: #edeef2; border-radius: 3px; overflow: hidden;
  margin: 12px 0 3px; }
.sfari-progress-bar > span { display: block; height: 100%; background: var(--easi-accent);
  border-radius: 3px; transition: width .25s; }
.sfari-progress { font-size: 12.5px; color: #8a93a3; margin-top: 3px; text-align: center; }
.sfari-rollup-report { display: block; width: 100%; margin-top: 12px; text-align: center; }
/* read-only report: static note text in the Note column */
.easi-rep-note { font-size: 11.5px; color: #55607a; font-style: italic; }

/* ---- the metric row's Scoring panel: criteria, then how the value is computed ---- */
.easi-method-inputs { border: 1px solid var(--card-border); border-radius: 7px;
  overflow: hidden; margin-bottom: 10px; }
.easi-method-inputs-title { padding: 6px 9px; background: var(--surface-soft);
  color: var(--eci-title); font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; border-bottom: 1px solid var(--rule); }
.easi-method-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 12px; padding: 6px 9px; border-bottom: 1px solid #edf0f4; font-size: 11.5px; }
.easi-method-input-row:last-child { border-bottom: 0; }
.easi-method-input-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.easi-method-input-label { font-weight: 650; color: #3e4a61; }
.easi-method-input-context { flex: none; padding: 1px 5px; border-radius: 8px;
  background: #eef1f5; color: #6d7789; font-size: 8.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; }
.easi-method-input-value { font-variant-numeric: tabular-nums; white-space: nowrap;
  color: #2f3a52; font-weight: 600; }
.easi-method-input-source { grid-column: 1 / -1; color: #798497; font-size: 10px;
  overflow-wrap: anywhere; }
.easi-method-equation { display: grid; gap: 3px; margin-bottom: 10px; padding: 8px 10px;
  border: 1px solid var(--card-border); border-radius: 7px; background: var(--surface-soft); }
.easi-method-equation-label { color: #758198; font-size: 9.5px; font-weight: 700;
  letter-spacing: .055em; text-transform: uppercase; }
.easi-method-equation code { font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas,
  monospace; color: #263a5f; font-size: 11.5px; white-space: normal; overflow-wrap: anywhere;
  background: none; padding: 0; }
.easi-method-crit { display: grid; gap: 4px; }
.easi-method-crit-sub { font-weight: 700; color: #46536a; font-size: 12px; margin: 8px 0 3px; }
.easi-method-crit-row { display: grid;
  grid-template-columns: 10px auto auto minmax(0, 1fr); align-items: baseline; gap: 8px;
  font-size: 12.5px; line-height: 1.45; color: #3e4a61; }
.easi-method-crit-row .easi-tip-dot { align-self: start; margin-top: 4px; /* center drifts off the label when the criteria text wraps */ }
.easi-method-crit-row b { color: #2f3a52; font-weight: 700; }
.easi-method-crit-range { font-variant-numeric: tabular-nums; font-weight: 600; color: #55607a;
  background: #f2f5f9; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.easi-method-crit-text { color: #3e4a61; }
/* categorical decision table */
.easi-method-decide { display: grid; gap: 5px; margin: 2px 0 4px; }
.easi-method-decide-row { display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 9px;
  padding: 6px 9px; border: 1px solid var(--card-border); border-radius: 6px; font-size: 12px; }
.easi-method-decide-row.on { background: #eef4fb; border-color: #b9cdea; }
.easi-method-decide-cat { color: #3e4a61; }
.easi-method-decide-rate { font-weight: 700; color: #2f3a52; }
.easi-method-decide-here { font-size: 9.5px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--easi-accent); }

/* --- responsive --- */
@media (max-width: 1024px) {
  /* the same narrower rail in EASI, SFARI and DEEP */
  .sfari-nav { width: 240px; }
  .sfari-rollup { width: 264px; padding: 13px 14px; }
  .sfari-fnpanel { padding: 14px 16px 6px; }
}
@media (max-width: 820px) {
  /* Keep the map controls exposed above the scrollable Identify/Basin pane. */
  .easi-shell { --map-pane-height: min(40vh, 360px); }
  .easi-leftpane {
    top: auto; bottom: 8px; left: 8px; right: 8px; width: auto;
    max-width: calc(100vw - 16px); max-height: var(--map-pane-height);
  }
  .easi-map-wrap { bottom: calc(var(--map-pane-height) + 16px); }
  .easi-readout { bottom: calc(var(--map-pane-height) + 28px); }
  .easi-flow-loading { bottom: calc(var(--map-pane-height) + 30px); }
  .sfari-worksheet { flex-direction: column; }
  .sfari-nav { width: 100%; max-height: 210px; order: 1; overflow-y: auto;
    border-right: none; border-bottom: 1px solid var(--card-border); }
  .sfari-fnpanel { order: 2; padding: 12px 14px 6px; }
  .sfari-fnpanel-inner { max-width: 100%; }
  .sfari-rollup { width: 100%; order: 3; max-height: 240px; border-left: none;
    border-top: 1px solid var(--card-border); }
}

/* ---- Nationwide screening (precomputed national dataset) ---- */
.easi-viewer { position: absolute; top: 50px; left: 0; right: 0; bottom: 0;
  z-index: 1150; background: #f7f9fc; display: flex; flex-direction: column; }
.easi-viewer-summary { font-size: 11px; color: #667085; }
.easi-viewer-legend-foot { margin-top: 6px; padding-top: 6px; border-top: 1px solid #e2e8f2;
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.easi-viewer-legend-foot a { font-size: 11px; color: var(--easi-accent); cursor: pointer; text-decoration: none; }
.easi-viewer-legend-foot a:hover { text-decoration: underline; }
.easi-viewer-body { position: relative; flex: 1; min-height: 0; }
#easi-viewer-map { position: absolute; inset: 0; }
.easi-viewer-legend { position: absolute; left: 12px; bottom: 26px; z-index: 5;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--card-border);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; color: #33415c;
  max-width: 260px; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.easi-viewer-legend-title { font-weight: 600; margin-bottom: 4px; }
.easi-viewer-legend-row { display: flex; align-items: center; gap: 7px; margin: 2px 0; }
.easi-viewer-sw { display: inline-block; width: 18px; height: 4px; border-radius: 2px; }
.easi-viewer-legend-note { font-size: 11px; color: #667085; margin-top: 6px; }
.easi-viewer-status { position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 6; background: rgba(255, 255, 255, .96); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 5px 14px; font-size: 12.5px; color: #33415c;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
/* the tile-loading cue: viewer.js shows it while a screening source fetches
   and hides it on the map's idle event (bottom center, clear of the legend) */
.easi-viewer-loading { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 6; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--card-border); border-radius: 16px;
  box-shadow: 0 2px 11px rgba(20, 40, 80, .15);
  padding: 5px 14px 5px 11px; font-size: 12px; font-weight: 500; color: var(--easi-accent); }
.easi-viewer-loading[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .easi-viewer-loading .easi-spinner { animation: none; } }
.easi-viewer-popup { font-size: 12px; line-height: 1.35; color: #33415c; }
.easi-minimap-pending { width: 290px; height: 180px; flex: 0 0 auto; display: flex; align-items: center;
  justify-content: center; border: 1px dashed #c5ccd8; border-radius: 6px; background: #f6f8fa;
  color: #6b7690; font-size: 12px; }
.easi-viewer-note { color: #9a6a00; }
.maplibregl-popup-content { padding: 8px 10px; border-radius: 6px; }

/* the screening pane's header row: Map | Dashboard as a segmented control
   (a radio group with its buttons hidden and the labels drawn as pills) */
.easi-viewer-head { flex: none; display: flex; align-items: center; gap: 14px; min-height: 40px;
  padding: 5px 14px; background: #fff; border-bottom: 1px solid #e2e8f2; }
.easi-seg .shiny-input-container { width: auto; margin: 0; }
.easi-seg .shiny-label-null { display: none; }
.easi-seg .shiny-options-group { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px;
  border: 1px solid var(--card-border); background: #f3f5f9; }
.easi-seg label.radio-inline { position: relative; display: inline-flex; margin: 0; padding: 0; cursor: pointer; }
.easi-seg label.radio-inline input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; margin: 0;
  pointer-events: none; }
.easi-seg label.radio-inline span { padding: 3px 12px; border-radius: 999px; font-size: 12.5px; line-height: 1.3;
  color: #33415c; user-select: none; white-space: nowrap; transition: background .12s ease; }
.easi-seg label.radio-inline:hover span { background: #e7ecf4; }
.easi-seg label.radio-inline input:checked + span { background: var(--easi-accent); color: #fff; }
.easi-seg label.radio-inline input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47, 75, 124, .25); }

/* ---- Condition dashboard (an overlay over the screening map) ---- */
.easi-dash { position: absolute; inset: 0; z-index: 7; overflow: auto; background: #f7f9fc; }
.easi-dash-inner { max-width: 1180px; margin: 0 auto; padding: 16px 22px 30px; }
.easi-dash-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--eci-title);
  margin: 0 0 10px; }
.easi-dash-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; margin-bottom: 14px; }
.easi-dash-toolbar-group { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; }
.easi-dash-toolbar .shiny-input-container { width: auto; margin: 0; }
.easi-dash-toolbar .form-select { font-size: 12.5px; padding: 4px 30px 4px 8px; height: auto; }
.easi-dash-toolbar label.control-label, .easi-dash-toolbar .form-label { font-size: 11px; color: #667085;
  margin: 0 0 2px; display: block; }
.easi-dash-spacer { flex: 1; }
.easi-dash-toolbar .btn { font-size: 12px; padding: 4px 12px; }
.easi-dash-strip { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 14px; }
.easi-dash-stat { display: flex; flex-direction: column; }
.easi-dash-stat-value { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.15;
  color: var(--eci-title); }
.easi-dash-stat-label { font-size: 11px; color: #667085; }
.easi-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .easi-dash-grid { grid-template-columns: 1fr; } }
.easi-dash-card { background: #fff; border: 1px solid var(--card-border); border-radius: 8px; padding: 12px 16px;
  margin-bottom: 14px; min-width: 0; }
.easi-dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.easi-dash-card .easi-plot-title { margin: 0 0 4px; }
.easi-dash-note { font-size: 11.5px; color: #667085; line-height: 1.4; margin: 4px 0 8px; }
.easi-dash-row { display: grid; grid-template-columns: 184px minmax(0, 1fr) 44px; gap: 8px; align-items: center;
  margin: 2px 0; }
.easi-dash-box-row, .easi-dash-axis-row { grid-template-columns: 184px minmax(0, 1fr) 44px 64px; }
.easi-dash-compare .easi-dash-row { grid-template-columns: 220px minmax(0, 1fr) 44px; }
.easi-dash-compare .easi-dash-box-row, .easi-dash-compare .easi-dash-axis-row {
  grid-template-columns: 220px minmax(0, 1fr) 44px 64px; }
.easi-dash-row.muted { opacity: .5; }
.easi-dash-label { display: flex; flex-direction: column; min-width: 0; font-size: 12px; line-height: 1.2; }
.easi-dash-label-sub { font-size: 10.5px; color: #667085; }
.easi-dash-plot { min-width: 0; line-height: 0; }
.easi-dash-val { font-size: 12px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.easi-dash-n { font-size: 11px; color: #667085; text-align: right; font-variant-numeric: tabular-nums; }
.easi-dash-colhead { font-weight: 500; color: #98a2b3; font-size: 10px; text-transform: uppercase;
  letter-spacing: .04em; }
.easi-dash-box-svg, .easi-dash-axis-svg { display: block; }
.easi-dash-axis-svg text { font-family: var(--font-body); font-size: 10.5px; fill: #667085; }
.easi-dash-whisker { stroke: #2f4b7c; stroke-width: 1; }
.easi-dash-boxrect { fill: #fff; fill-opacity: .92; stroke: #2f4b7c; stroke-width: 1.2; }
.easi-dash-median { stroke: #2f4b7c; stroke-width: 2.2; }
.easi-dash-mean { fill: #fff; stroke: #2f4b7c; stroke-width: 1.2; }
.easi-dash-key-box { position: relative; display: inline-block; width: 16px; height: 10px; border-radius: 1px;
  border: 1.2px solid #2f4b7c; background: #fff; }
.easi-dash-key-box::after { content: ""; position: absolute; left: 7px; top: -1px; bottom: -1px; width: 2px;
  background: #2f4b7c; }
.easi-dash-key-whisker { display: inline-block; width: 16px; height: 1px; background: #2f4b7c; }
.easi-dash-key-mean { display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1.2px solid #2f4b7c;
  background: #fff; }
.easi-dash-stack { display: flex; height: 16px; border-radius: 3px; overflow: hidden; background: #edeef2; }
.easi-dash-seg { display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap;
  font-size: 10.5px; color: #33415c; }
.easi-dash-table-wrap { overflow-x: auto; }
.easi-dash-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.easi-dash-table th { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--card-border);
  font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #667085;
  white-space: nowrap; }
.easi-dash-table td { padding: 4px 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.easi-dash-table td:first-child { white-space: normal; }
.easi-dash-table th:nth-child(n+3), .easi-dash-table td:nth-child(n+3) { text-align: right;
  font-variant-numeric: tabular-nums; }
.easi-dash-dim { color: #667085; }
.easi-dash-mini-wrap { margin-top: 12px; }
.easi-dash-mini td:nth-child(n+2) { width: 16%; text-align: right; }
.easi-dash-mini td:first-child { color: #33415c; }
.easi-dash-chip { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px;
  background: #fdecec; color: #b42318; font-size: 10px; font-weight: 600; }
.easi-dash-foot { font-size: 11.5px; color: #667085; line-height: 1.45; margin-top: 4px; }
.easi-dash-foot p { margin: 0; }
.easi-dash-empty { padding: 40px 20px; text-align: center; color: #667085; font-size: 13px; }
@media (max-width: 600px) {
  .easi-dash-row, .easi-dash-box-row, .easi-dash-axis-row, .easi-dash-compare .easi-dash-row,
  .easi-dash-compare .easi-dash-box-row, .easi-dash-compare .easi-dash-axis-row {
    grid-template-columns: 120px minmax(0, 1fr) 40px; }
  .easi-dash-n { display: none; }
}
