/* ============================================================
   Screen layouts — professional light theme.
   ============================================================ */

/* ---------------- overview ---------------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(620px 300px at 85% -20%, rgba(86, 118, 230, 0.35), transparent 62%),
    radial-gradient(520px 280px at 5% 115%, rgba(13, 148, 136, 0.22), transparent 58%),
    linear-gradient(155deg, var(--navy-2), var(--navy) 70%);
  box-shadow: 0 18px 48px rgba(27, 42, 85, 0.28);
  color: #e8ecf8;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
}
.hero > * { position: relative; z-index: 1; }
.hero-kicker { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: #9db4f0; font-weight: 700; margin-bottom: 14px; }
.hero-title { font-size: clamp(26px, 4.2vw, 42px); font-weight: 750; color: #ffffff; max-width: 22ch; line-height: 1.3; }
html[lang="ar"] .hero-title { line-height: 1.55; }
.hero-sub { color: #c3cdea; margin-top: 14px; max-width: 64ch; font-size: 15px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: #fff; box-shadow: none; }
.hero .btn:hover { background: rgba(255,255,255,0.16); }
.hero .btn.primary { background: #ffffff; color: var(--navy); border-color: #ffffff; }
.hero .btn.primary:hover { background: #e9edf9; }
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px; margin-top: 34px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-stat .hs-num { font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: #ffffff; font-family: var(--f-mono); }
.hero-stat .hs-num em { font-style: normal; color: #8fd9c8; }
.hero-stat .hs-label { font-size: 12px; color: #aab8dd; margin-top: 2px; }

.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap); }
.flow-step { position: relative; padding: 20px; }
.flow-num {
  width: 34px; height: 34px; display: grid; place-content: center;
  font-family: var(--f-mono); font-weight: 600; font-size: 14px;
  border-radius: 10px; color: var(--accent);
  background: var(--accent-soft);
  margin-bottom: 12px;
}
.flow-title { font-size: 15px; font-weight: 700; color: var(--ink-hi); margin-bottom: 6px; }
.flow-desc { font-size: 12.8px; color: var(--ink-dim); line-height: 1.7; }

.city-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--gap); }

/* ---------------- catalog (directory list) ---------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: sticky; top: 10px; z-index: 20;
}
.filter-bar .select { width: auto; min-width: 140px; flex: none; }

.result-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 2px 12px; flex-wrap: wrap; }
.result-count { font-size: 13px; color: var(--ink-dim); font-weight: 600; }
.result-count b { color: var(--accent); font-family: var(--f-mono); }

.ind-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }

.ind-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px; align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  transition: background var(--fast);
  position: relative;
}
.ind-row:last-child { border-bottom: none; }
.ind-row:hover { background: var(--accent-soft); }
.ind-row::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
  background: var(--row-c, transparent);
}
.ind-row-name { min-width: 0; }
.ind-row-name .rn {
  font-size: 14.5px; font-weight: 700; color: var(--ink-hi); line-height: 1.55;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ind-row-name .ra {
  font-size: 11.8px; color: var(--ink-faint); line-height: 1.5; margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ind-row-side { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.ind-row-side .rv { font-size: 11.5px; color: var(--ink-dim); font-weight: 600; white-space: nowrap; }

.domain-rail { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px; margin-top: 14px; }
.domain-pill {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--ink-dim); background: var(--surface); border: 1px solid var(--line-strong);
  transition: all var(--fast); white-space: nowrap;
}
.domain-pill:hover { border-color: var(--accent); color: var(--accent); }
.domain-pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.domain-pill .dc { font-family: var(--f-mono); font-size: 10.5px; opacity: .75; }
.domain-pill .px {
  display: inline-grid; place-content: center; width: 16px; height: 16px;
  border-radius: 50%; background: rgba(255,255,255,.22); font-size: 9px;
}
.domain-pill.more { border-style: dashed; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, white); background: var(--accent-soft); }

.show-more-wrap { display: flex; justify-content: center; margin-top: 22px; }

/* ---------------- indicator detail ---------------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; }
.detail-layout > * { min-width: 0; }
@media (max-width: 1100px) { .detail-layout { grid-template-columns: minmax(0, 1fr); } }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-dim); font-size: 13px; font-weight: 700; margin-bottom: 18px;
  transition: color var(--fast);
}
.back-link:hover { color: var(--accent); }

.detail-title { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.6; font-weight: 700; }
.detail-alt-name { color: var(--ink-dim); margin-top: 8px; font-size: 14px; line-height: 1.6; }

.formula-box {
  background: linear-gradient(160deg, #f7f9ff, #eef2fc);
  border: 1px solid #dee6f8;
  border-radius: var(--radius);
  padding: 22px;
  overflow-x: auto;
}
.formula-eq {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; direction: ltr; min-height: 56px;
}
/* Arabic mathematical reading order: the fraction first (right), then ×100 */
html[lang="ar"] .formula-eq { direction: rtl; }
.fr-frac { display: inline-flex; flex-direction: column; align-items: center; gap: 0; }
.fr-frac .fr-top, .fr-frac .fr-bot { padding: 6px 14px; text-align: center; }
.fr-frac .fr-top { border-bottom: 2px solid var(--accent); }
.fr-var {
  display: inline-block; padding: 4px 11px; border-radius: 8px;
  background: #ffffff; color: var(--accent-strong);
  border: 1px solid #d4ddf6;
  font-size: 12.5px; font-weight: 700; margin: 2px;
  box-shadow: 0 1px 2px rgba(26,36,64,.05);
}
.fr-op { color: var(--ink-dim); font-family: var(--f-mono); font-weight: 600; font-size: 17px; }
.fr-num { color: var(--ink-hi); font-family: var(--f-mono); font-size: 15px; }

.meta-list { display: flex; flex-direction: column; }
.meta-item { display: flex; justify-content: space-between; gap: 14px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.meta-item:last-child { border-bottom: none; }
.meta-item .mk { color: var(--ink-dim); flex: none; font-weight: 600; }
.meta-item .mv { color: var(--ink-hi); font-weight: 650; text-align: end; }
.meta-item .mv a { color: var(--sky); }
.meta-item .mv a:hover { text-decoration: underline; }

/* ---------------- cities ---------------- */
.city-card { display: flex; flex-direction: column; gap: 14px; }
.city-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.city-name { font-size: 17.5px; font-weight: 700; color: var(--ink-hi); }
.city-country { color: var(--ink-dim); font-size: 12.5px; margin-top: 3px; }
.city-mini-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.cms { display: flex; flex-direction: column; }
.cms b { font-family: var(--f-mono); font-size: 17px; color: var(--ink-hi); font-weight: 600; }
.cms span { font-size: 11px; color: var(--ink-dim); }

.create-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 210px; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--ink-dim); transition: all var(--fast);
  background: transparent;
}
.create-card:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.create-plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; font-size: 24px; border: 1.5px solid currentColor; }

/* ---------------- city workspace ---------------- */
.city-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 18px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.city-head-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.ws-tabs-wrap { margin-bottom: 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }

/* result indicator cards */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gap); }
.res-card { display: flex; flex-direction: column; gap: 10px; }
.res-value { font-size: 28px; font-weight: 600; color: var(--ink-hi); font-family: var(--f-mono); line-height: 1.1; }
.res-value .ru { font-size: 13px; color: var(--ink-dim); font-weight: 500; margin-inline-start: 6px; font-family: inherit; }
.res-name { font-size: 13px; color: var(--ink); font-weight: 600; line-height: 1.65; min-height: 3.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-blocked .res-value { color: var(--coral); font-size: 16px; font-family: inherit; font-weight: 700; }
.res-target { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--ink-dim); }
.res-target .rt-row { display: flex; justify-content: space-between; }

/* program rows */
.prog-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; }
.prog-row + .prog-row { border-top: 1px solid var(--line); }
.prog-row-name { flex: 1; min-width: 0; }
.prog-row-name .pn { font-size: 14px; font-weight: 700; color: var(--ink-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-row-name .ps { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.list-card { padding: 0; overflow: hidden; }

/* agencies */
.agency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.agency-card { display: flex; flex-direction: column; gap: 10px; }
.agency-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.agency-name { font-weight: 700; color: var(--ink-hi); font-size: 14.5px; }
.agency-type { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }
.agency-load { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-dim); }
.agency-load .prog { flex: 1; }

/* status select pill */
.status-select {
  appearance: none; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--sc, var(--peri)) 38%, white);
  color: var(--sc, var(--peri));
  background: color-mix(in srgb, var(--sc, var(--peri)) 9%, white);
  font-size: 11.5px; font-weight: 700; border-radius: 999px;
  padding: 4px 12px; text-align: center;
}
.status-select option { background: var(--surface); color: var(--ink-hi); }

/* data entry */
.de-group { margin-bottom: 26px; }
.de-agency-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.de-agency-head .an { font-weight: 700; color: var(--ink-hi); font-size: 15px; }
.value-input { max-width: 150px; font-family: var(--f-mono); direction: ltr; text-align: end; }
.quality-select { width: auto; min-width: 120px; font-size: 12.5px; padding: 6px 30px 6px 12px; }
html[dir="rtl"] .quality-select { padding: 6px 12px 6px 30px; }

/* readiness banner */
.readiness-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--rb-c, var(--gold)) 30%, white);
  background: color-mix(in srgb, var(--rb-c, var(--gold)) 7%, white);
}
.readiness-banner .rb-title { font-weight: 700; color: var(--rb-c, var(--gold)); font-size: 14.5px; }
.readiness-banner .rb-sub { font-size: 12.5px; color: var(--ink-dim); }

/* ---------------- sub-tabs (pill switcher inside a page) ---------------- */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subtab {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--ink-dim); border: 1px solid var(--line-strong); background: var(--surface);
  transition: all var(--fast); display: inline-flex; align-items: center; gap: 7px;
}
.subtab:hover { border-color: var(--accent); color: var(--accent); }
.subtab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.subtab .count { font-family: var(--f-mono); font-size: 10.5px; opacity: .8; }

/* ---------------- heat tiles ---------------- */
.heat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 9px; }
.heat-tile {
  border-radius: 10px; padding: 10px 12px; min-height: 74px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line); cursor: default;
  transition: transform var(--fast);
}
.heat-tile:hover { transform: translateY(-2px); }
.heat-tile .ht-label { font-size: 11px; font-weight: 700; line-height: 1.5; }
.heat-tile .ht-val { font-family: var(--f-mono); font-size: 14px; font-weight: 600; }

/* ---------------- stacked bar ---------------- */
.stacked-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.stacked-bar > span { height: 100%; transition: width var(--slow); }
.stacked-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.stacked-legend .sl-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-dim); }
.stacked-legend .sw { width: 9px; height: 9px; border-radius: 3px; }
.stacked-legend b { font-family: var(--f-mono); color: var(--ink-hi); font-weight: 600; }

/* ---------------- SDG strip ---------------- */
.sdg-strip { display: flex; flex-wrap: wrap; gap: 7px; }
.sdg-cell {
  width: 46px; height: 46px; border-radius: 9px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: transform var(--fast), box-shadow var(--fast);
  border: none;
}
.sdg-cell:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(26,36,64,.22); }
.sdg-cell .sg { font-family: var(--f-mono); font-weight: 700; font-size: 14px; line-height: 1; }
.sdg-cell .sc { font-size: 9px; opacity: .85; margin-top: 3px; font-family: var(--f-mono); }
.sdg-cell.dim { opacity: .28; }

/* ---------------- priority / follow-up list ---------------- */
.prio-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.prio-row:last-child { border-bottom: none; }
.prio-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.prio-main { flex: 1; min-width: 0; }
.prio-main .pm-t { font-weight: 700; color: var(--ink-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prio-main .pm-s { font-size: 11.5px; color: var(--ink-dim); }

/* ---------------- assignment summary ---------------- */
.assign-summary {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  padding: 14px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.assign-summary .asm { display: flex; flex-direction: column; }
.assign-summary .asm b { font-family: var(--f-mono); font-size: 19px; font-weight: 600; color: var(--ink-hi); }
.assign-summary .asm span { font-size: 11.5px; color: var(--ink-dim); font-weight: 600; }
.assign-summary .asm.warn b { color: var(--coral); }
.assign-summary .spacer { flex: 1; }

.matrix-group-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong); font-size: 13.5px;
}
.matrix-group-head .mg-name { font-weight: 700; color: var(--ink-hi); }
.matrix-group-head .mg-count { font-family: var(--f-mono); font-size: 11px; color: var(--ink-dim); }
.matrix-group-head .prog { width: 110px; }
.matrix-group-head.unassigned { background: var(--coral-soft); }
.matrix-group-head.unassigned .mg-name { color: var(--coral); }

/* ---------------- hero illustration ---------------- */
.hero-art {
  position: absolute; inset-inline-end: -30px; bottom: -16px;
  width: min(46%, 520px); opacity: .9; pointer-events: none;
}
@media (max-width: 900px) { .hero-art { display: none; } }
.hero-body { position: relative; z-index: 1; max-width: 60%; }
@media (max-width: 900px) { .hero-body { max-width: 100%; } }

/* gauge */
.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gauge-caption { font-size: 12px; color: var(--ink-dim); font-weight: 600; }

/* ---------------- hero live-preview card ---------------- */
.hero-preview {
  position: absolute; inset-inline-end: clamp(20px, 4vw, 56px); top: 50%;
  transform: translateY(-58%) rotate(-1.5deg);
  width: 300px; z-index: 2;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(5, 10, 30, 0.45);
  padding: 16px 18px 18px;
  pointer-events: none;
}
html[dir="ltr"] .hero-preview { transform: translateY(-58%) rotate(1.5deg); }
@media (max-width: 1150px) { .hero-preview { display: none; } }
.hero-preview .hp-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.hero-preview .hp-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.hero-preview .hp-dots span:first-child { background: #8fd9c8; }
.hero-preview .hp-title { font-size: 12px; font-weight: 700; color: #dde5f8; margin-bottom: 10px; }
.hero-preview .hp-flex { display: flex; align-items: center; gap: 14px; }
.hero-preview .hp-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hero-preview .hp-bar { height: 7px; border-radius: 5px; background: rgba(255,255,255,.14); overflow: hidden; }
.hero-preview .hp-bar > i { display: block; height: 100%; border-radius: 5px; }
.hero-preview .hp-chips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.hero-preview .hp-chip {
  font-size: 9.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #cdd8f3; border: 1px solid rgba(255,255,255,.18);
}

/* ---------------- indicator ticker ---------------- */
.ticker-band {
  margin-top: 18px;
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.ticker-track {
  display: flex; align-items: center; gap: 44px;
  width: max-content; padding: 13px 0;
  animation: tickerMove 260s linear infinite;
}
.ticker-band:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker-track { animation-name: tickerMoveRtl; }
@keyframes tickerMoveRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-dim); white-space: nowrap; }
.ticker-item .td { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ---------------- frameworks trust band ---------------- */
.fw-band {
  display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 38px);
  flex-wrap: wrap; padding: 18px 20px; margin-top: 18px;
}
.fw-band .fb-label { font-size: 12px; color: var(--ink-faint); font-weight: 700; letter-spacing: .04em; }
.fw-band .fb-item {
  font-size: 13px; font-weight: 700; color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.fw-band .fb-item::before { content: "✦"; color: var(--accent); font-size: 10px; }

/* ---------------- feature showcase ---------------- */
.feature-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 54px);
  align-items: center; padding: clamp(18px, 3vw, 30px) 0;
}
.feature-row > * { min-width: 0; }
.feature-row.flip .feature-copy { order: 2; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-copy { order: 0; }
}
.feature-copy .fc-num {
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 8px; padding: 4px 10px; display: inline-block; margin-bottom: 12px;
}
.feature-copy h3 { font-size: clamp(18px, 2.2vw, 23px); margin-bottom: 10px; }
.feature-copy p { color: var(--ink-dim); font-size: 14px; line-height: 1.9; margin-bottom: 14px; }
.feature-points { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.feature-points li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.feature-points li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: inline-grid; place-content: center;
  background: var(--sage-soft); color: var(--sage); font-size: 11px; font-weight: 800;
}
.feature-visual {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--surface-2), #eef1f9);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.5vw, 30px);
  display: flex; align-items: center; justify-content: center; min-height: 240px;
}
.feature-visual .fv-card {
  width: 100%; max-width: 360px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 36px rgba(26, 36, 64, 0.12);
  padding: 16px; display: flex; flex-direction: column; gap: 11px;
}
.fv-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.fv-row .code-tag { font-size: 9.5px; padding: 2px 6px; }
.fv-row .fv-name { flex: 1; min-width: 0; font-weight: 700; color: var(--ink-hi); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-row + .fv-row { border-top: 1px solid var(--line); padding-top: 11px; }

/* ---------------- mission band ---------------- */
.mission-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 56px);
  text-align: center;
  background:
    radial-gradient(540px 260px at 18% 0%, rgba(86, 118, 230, 0.3), transparent 60%),
    radial-gradient(460px 240px at 85% 100%, rgba(13, 148, 136, 0.22), transparent 58%),
    linear-gradient(150deg, var(--navy-2), var(--navy));
  color: #dbe3f7;
  box-shadow: 0 18px 48px rgba(27, 42, 85, 0.25);
}
.mission-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 38px 38px;
}
.mission-band h2 { color: #ffffff; font-size: clamp(21px, 3vw, 30px); margin-bottom: 12px; position: relative; z-index: 1; }
.mission-band p { color: #b9c5e6; max-width: 60ch; margin-inline: auto; font-size: 14.5px; position: relative; z-index: 1; }
.mission-stats {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap; margin-top: 28px;
}
.mission-stats .ms b { display: block; font-family: var(--f-mono); font-size: clamp(24px, 3vw, 34px); color: #8fd9c8; font-weight: 600; }
.mission-stats .ms span { font-size: 12px; color: #aab8dd; }

/* ---------------- footer ---------------- */
.site-footer {
  margin-top: 50px; border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  max-width: var(--content-w); margin-inline: auto;
  padding: 36px clamp(18px, 4vw, 44px) 26px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-col h4 { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; font-size: 13px; color: var(--ink-dim); font-weight: 600; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-base {
  border-top: 1px solid var(--line);
  padding: 14px clamp(18px, 4vw, 44px);
  max-width: var(--content-w); margin-inline: auto;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--ink-faint);
}

/* ---------------- data entry toolbar ---------------- */
.de-toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  position: sticky; top: 10px; z-index: 20;
}
.de-toolbar .select { width: auto; min-width: 150px; flex: none; }
.seg {
  display: flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface);
}
.seg button {
  padding: 8px 16px; font-size: 12.5px; font-weight: 700; color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 7px; transition: all var(--fast);
  border-inline-end: 1px solid var(--line);
}
.seg button:last-child { border-inline-end: none; }
.seg button:hover { color: var(--ink-hi); background: var(--bg-soft); }
.seg button.on { background: var(--navy); color: #fff; }
.seg button .count { font-family: var(--f-mono); font-size: 10px; opacity: .75; }

@media (max-width: 700px) {
  .hbar-row { grid-template-columns: minmax(80px, 110px) 1fr 40px; gap: 8px; }
  .res-grid { grid-template-columns: 1fr; }
  .filter-bar { position: static; }
  .filter-bar .select { flex: 1; }
  .ind-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px; }
  .ind-row .code-tag { justify-self: start; }
  .ind-row-side { flex-wrap: wrap; }
}
