:root {
  /* "Chrome" palette (sidebar, borders, buttons, focus rings, the
     choropleth map) -- shades of green to match the banner. Kept as its own
     set of variables, separate from the scheme/chart colors (blue+purple),
     which stay as-is since those were deliberately set for data-viz
     consistency and aren't what "dark blue" refers to here. */
  --navy-900: #0d2b1a;
  --navy-800: #14532d;
  --navy-700: #1e6b3a;
  --blue-600: #16a34a;
  --blue-500: #22c55e;
  --blue-100: #dcfce7;
  --border-blue: #bbf0c9;
  --text-dark: #0f2038;
  --text-mute: #5b6b85;
  --bg: #eef6f0;
  --card-bg: #ffffff;
  --good: #6d28d9;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(15, 32, 56, 0.08);
  --shadow-hover: 0 10px 24px rgba(15, 32, 56, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #bfe3c9; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #9bd4ac; }

/* Full-width masthead, uncropped -- width drives the size and height just
   follows the image's own aspect ratio, same pattern as MSSAT's banner. It
   already carries the "Farmer's 360" title/branding, so the topbar below it
   only needs a small per-view label, not a repeated title. */
.app-banner {
  display: block;
  width: 100%;
  height: auto;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 210px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.nav-list { display: flex; flex-direction: column; gap: 4px; flex: 1; margin-top: 4px; }

.nav-item {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #c9d9f2;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  position: relative;
}
.nav-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4d8a63;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item:hover::before { background: #86e0a6; }
.nav-item.active { background: linear-gradient(90deg, var(--blue-600), #34d399); color: #fff; box-shadow: 0 4px 14px rgba(22,163,74,0.45); }
.nav-item.active::before { background: #fff; transform: scale(1.3); }

.sidebar-footer {
  font-size: 10.5px;
  color: #7fae8f;
  padding: 10px 6px 2px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---------- Main area ---------- */
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: relative;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 55%, #1c8f4d 100%);
  color: #fff;
  padding: 14px 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-sub {
  position: relative;
  z-index: 1;
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.topbar-date {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  letter-spacing: 0.2px;
}
.topbar-banner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 15%, rgba(255,255,255,0.14), transparent 50%),
    radial-gradient(circle at 60% 130%, rgba(74,222,128,0.35), transparent 55%);
  pointer-events: none;
}
.topbar-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
}

.view-root { padding: 24px 26px 40px; flex: 1; }

.loading-placeholder, .error-placeholder {
  padding: 60px;
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
}
.error-placeholder { color: #c0392b; }

/* ---------- Geospatial drill-down breadcrumb ---------- */
.geo-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.geo-breadcrumb .crumb { color: var(--blue-600); font-weight: 600; cursor: pointer; padding: 3px 2px; border-radius: 4px; }
.geo-breadcrumb .crumb:hover { text-decoration: underline; }
.geo-breadcrumb .crumb.active { color: var(--navy-900); font-weight: 800; cursor: default; }
.geo-breadcrumb .crumb.active:hover { text-decoration: none; }
.geo-breadcrumb .crumb-sep { color: var(--text-mute); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }
.filter-field label { font-size: 11px; font-weight: 700; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.4px; }
.filter-field select, .filter-field input {
  padding: 8px 10px;
  border: 1px solid var(--border-blue);
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-dark);
  background: #fbfdff;
  font-family: inherit;
}
.filter-field select:focus, .filter-field input:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.filter-reset {
  align-self: flex-end;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid var(--border-blue);
  background: var(--blue-100);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}
.filter-reset:hover { background: #c8f5d4; }

/* ---------- KPI cards ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.kpi-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  padding: 15px 16px 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.kpi-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, var(--blue-600)), var(--accent-2, var(--blue-500)));
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.kpi-row .kpi-card:nth-child(6n+1) { --accent: #0a1e3f; --accent-2: #1e6fd9; }
.kpi-row .kpi-card:nth-child(6n+2) { --accent: #6d28d9; --accent-2: #a78bfa; }
.kpi-row .kpi-card:nth-child(6n+3) { --accent: #1e40af; --accent-2: #5aa2f7; }
.kpi-row .kpi-card:nth-child(6n+4) { --accent: #7c3aed; --accent-2: #c4b5fd; }
.kpi-row .kpi-card:nth-child(6n+5) { --accent: #2563eb; --accent-2: #93c5fd; }
.kpi-row .kpi-card:nth-child(6n+6) { --accent: #5b21b6; --accent-2: #c4b5fd; }
.kpi-card .kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 7px;
}
.kpi-card .kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.2px;
}
.kpi-card .kpi-sub { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; }


/* ---------- Scheme cards ---------- */
.scheme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.scheme-card {
  background: var(--card-bg);
  border: 1px solid var(--border-blue);
  border-left: 4px solid var(--scheme-color, var(--blue-500));
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.scheme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.scheme-card .scheme-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--scheme-color, var(--blue-600));
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scheme-card .scheme-count { font-size: 20px; font-weight: 800; color: var(--navy-900); letter-spacing: -0.2px; }
.scheme-card .scheme-amount { font-size: 12px; color: var(--good); font-weight: 700; margin-top: 2px; }
.scheme-card .scheme-pct { font-size: 10.5px; color: var(--text-mute); font-weight: 600; margin-top: 1px; }
.scheme-card .scheme-bar-track {
  margin-top: 9px;
  height: 6px;
  border-radius: 4px;
  background: var(--blue-100);
  overflow: hidden;
}
.scheme-card .scheme-bar-fill { height: 100%; border-radius: 4px; background: var(--scheme-color, var(--blue-500)); transition: width 0.6s ease; }

/* ---------- Panels ---------- */
/* minmax(0, Nfr), not a bare Nfr: a plain fr track still won't shrink a
   column below its item's min-content size, and .map-box's aspect-ratio +
   min-height give it a large one -- at a narrow enough window this widened
   the whole row (and the page got a horizontal scrollbar) instead of the
   map just shrinking. Ratio itself (1.3:1) is unchanged. */
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  align-items: start;
}
@media (max-width: 980px) { .panel-grid { grid-template-columns: 1fr; } }

/* Summary view's map+block-list row only -- shared .panel-grid above still
   drives the Village/Block/District geoView's map+list row, which should
   stay at its own ratio unaffected. Map narrowed a little (not the whole
   dashboard) and the block list widened a little, so the Beneficiaries/
   Benefit line in each block row has room to sit on one line.
   minmax(0, Nfr) (not a bare Nfr) is required here: the map-box's own
   aspect-ratio + min-height give it an intrinsic min-content width that a
   plain fr track refuses to shrink below, which silently ignored any ratio
   change until this was added. */
.panel-grid-summary { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr); }
@media (max-width: 980px) { .panel-grid-summary { grid-template-columns: 1fr; } }

.panel {
  background: var(--card-bg);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.panel h3 {
  margin: 0 0 14px;
  padding-left: 11px;
  border-left: 3px solid var(--blue-500);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.1px;
}
.panel h3 .h3-hint { font-weight: 500; color: var(--text-mute); font-size: 11px; margin-left: 6px; }

.panel-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.panel-header-row h3 { margin-bottom: 0; }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid var(--blue-500);
  background: var(--blue-100);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
  flex-shrink: 0;
}
.download-btn:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }

/* Leaflet's own .leaflet-container rule sets background:#ddd; it lands on
   this same element (Leaflet adds the class directly to the div passed to
   L.map(), not a child), so override it explicitly rather than relying on
   stylesheet order alone. */
/* Meghalaya's shape is much wider than tall (~2.6:1) -- a fixed height left
   Leaflet's fitBounds (which never distorts true geographic aspect ratio)
   letterboxing badly above/below. Matching the box's own aspect ratio to the
   shape's means it fills both dimensions instead. */
/* overflow:hidden is required here -- Leaflet relies on its container
   clipping its own tile/shape panes for correct rendering (removing it once
   made the map's shapes spill past the rounded box and inflated the page's
   scrollable height well past the dashboard's real content). Corner-tooltip
   clipping is instead fixed in map.js by clamping the tooltip DOM element
   back within the box on each move, not by removing this clip.
   width:100% is required too -- without an explicit width, a block box with
   both aspect-ratio and min-height set derives its width FROM min-height
   (676px, uncapped) instead of filling its parent, which let the box spill
   past a narrower .panel (parent has no clip of its own) straight into the
   Block panel next to it whenever that column was narrower than 676px. */
.map-box, .map-box.leaflet-container { width: 100%; aspect-ratio: 2.6 / 1; min-height: 260px; border-radius: 8px; border: 1px solid var(--border-blue); background: #fff !important; overflow: hidden; }
.map-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-mute); margin-top: 8px; }

/* ---------- Choropleth hover tooltip (district/village/block) ----------
   Leaflet's default .leaflet-tooltip forces white-space:nowrap, which would
   otherwise mash a multi-row breakdown onto one unreadable line -- .map-
   tooltip resets that (white-space is inherited, so a child can override
   it) and lays the content out as a real card instead of an inline string. */
.map-tooltip { white-space: normal; min-width: 220px; max-width: 260px; font-family: inherit; }
.map-tooltip .mt-title { font-size: 13.5px; font-weight: 800; color: var(--navy-900); margin-bottom: 6px; }
.map-tooltip .mt-stats { display: flex; gap: 16px; padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid #dde8e0; }
.map-tooltip .mt-stat { flex: 1; }
.map-tooltip .mt-stat-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-mute); margin-bottom: 2px; }
.map-tooltip .mt-stat-value { font-size: 14px; font-weight: 800; color: var(--navy-900); }
.map-tooltip .mt-schemes-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-mute); margin-bottom: 4px; }
.map-tooltip .mt-scheme-row { display: grid; grid-template-columns: 1fr auto auto; column-gap: 10px; align-items: center; padding: 2.5px 0; font-size: 11px; }
.map-tooltip .mt-scheme-name { display: flex; align-items: center; gap: 5px; color: var(--text-dark); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-tooltip .mt-scheme-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.map-tooltip .mt-scheme-count { font-weight: 700; color: var(--navy-900); text-align: right; }
.map-tooltip .mt-scheme-amount { font-weight: 600; color: var(--good); text-align: right; }
.map-tooltip .mt-more { margin-top: 4px; font-size: 10px; color: var(--text-mute); font-style: italic; }
.legend-gradient { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #dcfce7, #14532d); }

.scroll-list { max-height: 340px; overflow-y: auto; }
.block-row { padding: 5px 0; border-bottom: 1px solid var(--border-blue); }
.block-row:last-child { border-bottom: none; }
.block-row .bar-row { padding: 0 0 3px 0; }
.block-row-meta { padding-left: 148px; font-size: 11px; color: var(--text-mute); display: flex; gap: 14px; flex-wrap: wrap; }
.block-row-meta span { white-space: nowrap; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 0; }
.bar-row .bar-name { width: 140px; flex-shrink: 0; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bar-track { flex: 1; height: 14px; background: var(--blue-100); border-radius: 4px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; background: var(--blue-600); border-radius: 4px; }
.bar-row .bar-value { width: 60px; text-align: right; font-weight: 700; color: var(--navy-900); flex-shrink: 0; }

/* ---------- Scheme match: CR vs NIC (redesigned) ----------
   Numeric labels always sit ABOVE their bar, on the plain panel
   background, never overlaid on a colored fill — so contrast never
   depends on how wide/narrow that scheme's bar happens to be. */
.ms-table-head { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 20px; padding: 0 0 8px; font-size: 10.5px; font-weight: 800; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 1px solid #eef2f8; margin-bottom: 4px; }
.ms-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f5fa;
}
.ms-row:last-child { border-bottom: none; }
.ms-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; color: var(--text-dark); }
.ms-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--scheme-color, var(--blue-500)); }
.ms-metric-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; font-size: 11px; }
.ms-metric-head .ms-metric-name { color: var(--text-mute); font-weight: 600; }
.ms-metric-head .ms-metric-val { color: var(--navy-900); font-weight: 800; }
.ms-metric-head .ms-metric-pct { color: var(--text-mute); font-weight: 600; margin-left: 3px; }
.ms-bar-track { height: 8px; border-radius: 5px; background: var(--blue-100); overflow: hidden; }
.ms-bar-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.ms-bar-fill.cr { background: linear-gradient(90deg, #1e6fd9, #5aa2f7); }
.ms-bar-fill.nic { background: linear-gradient(90deg, #6d28d9, #c4b5fd); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
table.data-table th, table.data-table td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid #eef2f8;
  white-space: nowrap;
}
table.data-table th {
  background: var(--blue-100);
  color: var(--navy-900);
  font-weight: 700;
  position: sticky;
  top: 0;
}
table.data-table tbody tr:hover { background: #f4fbf6; }
.table-scroll { max-height: 420px; overflow: auto; border: 1px solid var(--border-blue); border-radius: 8px; }

.chart-box { position: relative; height: 260px; }
.chart-box-sm { position: relative; height: 190px; }

.viz-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  margin-bottom: 18px;
  align-items: stretch;
}
@media (max-width: 980px) { .viz-grid { grid-template-columns: 1fr; } }

.stat-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.stat-pill {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 8px 6px;
  border-radius: 9px;
  background: var(--blue-100);
}
.stat-pill .sp-value { font-size: 15px; font-weight: 800; color: var(--navy-900); }
.stat-pill .sp-label { font-size: 9.5px; font-weight: 700; color: var(--text-mute); text-transform: uppercase; margin-top: 2px; }

/* ---------- search / profile ---------- */
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.search-bar input {
  flex: 1 1 220px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-blue);
  font-size: 14px;
}
.search-bar button {
  padding: 11px 20px;
  border-radius: 8px;
  border: none;
  background: var(--blue-600);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.search-bar button:hover { background: #128a3e; }
.search-bar .browse-select {
  flex: 1 1 240px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-blue);
  background: #fbfdff;
  color: var(--text-dark);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
}
.search-bar .browse-select:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.search-results { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.search-result-item {
  background: var(--card-bg);
  border: 1px solid var(--border-blue);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.search-result-item:hover { background: var(--blue-100); border-color: var(--blue-500); transform: translateX(2px); box-shadow: var(--shadow); }
.search-result-item .sr-name { font-weight: 700; color: var(--navy-900); }
.search-result-item .sr-meta { color: var(--text-mute); font-size: 11.5px; }

.profile-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--navy-900), var(--blue-600), #8b5cf6);
}
.profile-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.profile-name { font-size: 20px; font-weight: 800; color: var(--navy-900); }
.profile-sub { font-size: 12.5px; color: var(--text-mute); margin-top: 3px; }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 10px; margin-top: 10px; }
.profile-fact-label { font-size: 10.5px; text-transform: uppercase; color: var(--text-mute); font-weight: 700; }
.profile-fact-value { font-size: 13px; color: var(--text-dark); font-weight: 600; }

.scheme-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.scheme-chip {
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 2px 6px rgba(15,32,56,0.18);
  transition: transform 0.12s;
}
.scheme-chip:not(.inactive):hover { transform: translateY(-1px) scale(1.03); }
.scheme-chip.inactive { background: #e2ede5; color: #7f8ea8; box-shadow: none; }

.scheme-detail-block { border-left: 3px solid var(--blue-500); padding: 10px 14px; margin-bottom: 8px; background: #f4faf6; border-radius: 0 8px 8px 0; transition: transform 0.12s; }
.scheme-detail-block:hover { transform: translateX(2px); }
.scheme-detail-block .sd-title { font-weight: 700; font-size: 12.5px; margin-bottom: 3px; }
.scheme-detail-block .sd-text { font-size: 12px; color: var(--text-mute); white-space: pre-wrap; }

.household-member-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid #eef2f8; font-size: 12.5px;
  transition: background 0.12s;
}
.household-member-row:hover { background: #f4faf6; }
.household-member-row:last-child { border-bottom: none; }

.section-title { font-size: 14px; font-weight: 700; color: var(--navy-900); margin: 22px 0 10px; }

@media (max-width: 760px) {
  .sidebar { width: 76px; }
  .sidebar-footer { display: none; }
  .nav-item { font-size: 0; padding: 12px 8px; text-align: center; }
  .nav-item::first-letter { font-size: 13px; }
}
