/* CMAT workspace styles: GIS projects explorer, admin workspace, news articles.
   Loaded after styles.css so these rules win ties with the legacy global selectors. */

/* ========== GIS PROJECTS EXPLORER ========== */
.gisx-page {
  --gx-green: #0f6f3f;
  --gx-green-dark: #08462b;
  --gx-ink: #19372d;
  --gx-muted: #60736b;
  --gx-line: #d9e4de;
  --gx-soft: #f4f8f5;
  display: grid;
  min-width: 0;
  max-width: 100%;
  padding: 18px 0 42px;
  overflow-x: clip;
  color: var(--gx-ink);
}
/* Size only Lucide icons; Plotly and Google Maps render their own SVGs. */
:where(.gisx-page, .gisx-drawer) svg.lucide { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }
.gisx-page :is(a, button, select, input):focus-visible, .gisx-drawer :is(a, button):focus-visible { outline: 3px solid #ef8a22; outline-offset: 2px; }
.gisx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gisx-muted { color: var(--gx-muted); font-size: 13px; }

.gisx-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr);
  gap: 34px;
  align-items: center;
  min-height: 520px;
  padding: 56px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 30%, rgba(239,138,34,.18), transparent 42%),
    linear-gradient(100deg, rgba(4,26,15,.96) 0%, rgba(8,62,37,.86) 58%, rgba(8,54,33,.74) 100%),
    url("/static/images/national-assembly.jpg") center/cover;
  color: #fff;
  box-shadow: 0 24px 52px rgba(7,39,23,.20);
}
.gisx-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg,#111 0 25%,#bd3037 25% 50%,#ef8a22 50% 75%,#0f6f3f 75%); }
.gisx-hero-copy, .gisx-hero-data { position: relative; z-index: 1; min-width: 0; }
.gisx-kicker { display: inline-flex; padding: 7px 10px; border-radius: 4px; background: #fff; color: var(--gx-green-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.gisx-hero h1 { max-width: 760px; margin: 20px 0 16px; color: #fff; font-size: 56px; line-height: 1.04; letter-spacing: 0; text-wrap: balance; }
.gisx-hero-copy > p { max-width: 660px; margin: 0; color: rgba(255,255,255,.84); font-size: 17px; line-height: 1.65; }
.gisx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.gisx-actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.6); border-radius: 6px; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.gisx-actions a.is-primary { border-color: #fff; background: #fff; color: var(--gx-green-dark); }
.gisx-actions a:hover { border-color: #ef8a22; background: #ef8a22; color: #18231c; }
.gisx-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.gisx-meta span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.72); font-size: 12px; }
.gisx-meta svg { width: 15px; height: 15px; }
.gisx-hero-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.gisx-hero-data a { display: grid; align-content: start; gap: 6px; min-height: 128px; padding: 17px; border-radius: 6px; background: rgba(255,255,255,.96); color: var(--gx-ink); text-decoration: none; }
.gisx-hero-data a:hover { background: #fff5e9; color: var(--gx-ink); }
.gisx-hero-data span { color: var(--gx-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.gisx-hero-data strong { color: var(--gx-green); font-size: 30px; line-height: 1.05; }
.gisx-hero-data strong em { color: var(--gx-muted); font-size: 16px; font-style: normal; }
.gisx-hero-data small { color: var(--gx-muted); line-height: 1.35; }

.gisx-toolbar {
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--gx-line);
  border-radius: 8px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 12px 30px rgba(20,55,41,.08);
}
.gisx-search { position: relative; }
.gisx-search > svg { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: #71857b; pointer-events: none; }
.gisx-search input, .gisx-select select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #bccdc4;
  border-radius: 6px;
  background: #fff;
  color: var(--gx-ink);
  font: inherit;
  font-size: 14px;
}
.gisx-search input { padding-left: 38px; }
.gisx-select { display: grid; gap: 4px; min-width: 0; }
.gisx-select > span { color: var(--gx-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.gisx-reset { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 13px; border: 1px solid #bccdc4; border-radius: 6px; background: #fff; color: var(--gx-ink); font-weight: 700; cursor: pointer; }
.gisx-reset:hover { border-color: var(--gx-green); background: #fff; color: var(--gx-green); }
.gisx-toolbar-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.gisx-count { margin: 0; color: var(--gx-muted); font-size: 12px; font-weight: 700; }
.gisx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gisx-chips button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #b9d3c4; border-radius: 999px; background: #eef6f1; color: var(--gx-ink); font-size: 12px; font-weight: 400; cursor: pointer; }
.gisx-chips button:hover { border-color: #bd3037; background: #fff1f2; color: var(--gx-ink); }
.gisx-chips svg { width: 13px; height: 13px; }

.gisx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--gx-line); border-radius: 8px; background: #fff; overflow: hidden; }
.gisx-kpis > div { display: grid; gap: 4px; padding: 16px 18px; border-right: 1px solid var(--gx-line); }
.gisx-kpis > div:last-child { border-right: 0; }
.gisx-kpis span { color: var(--gx-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.gisx-kpis strong { color: var(--gx-green-dark); font-size: 24px; font-variant-numeric: tabular-nums; }

.gisx-band { padding: 64px 12px; border-bottom: 1px solid var(--gx-line); scroll-margin-top: calc(var(--nav-h) + 150px); }
.gisx-section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .75fr); gap: 30px; align-items: end; margin-bottom: 24px; }
.gisx-section-head > div > span { color: var(--gx-green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.gisx-section-head h2 { margin: 8px 0 0; color: var(--gx-green-dark); font-size: 34px; line-height: 1.12; }
.gisx-section-head > p { margin: 0; color: var(--gx-muted); line-height: 1.65; }

/* Map */
.gisx-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.gisx-map-stage { position: relative; min-width: 0; overflow: hidden; border-radius: 8px; background: #0b1f15; box-shadow: 0 18px 40px rgba(7,39,23,.18); }
.gisx-map { width: 100%; height: 640px; }
.gisx-layer-switch { position: absolute; top: 12px; left: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 8px; background: rgba(8,28,18,.82); backdrop-filter: blur(6px); }
.gisx-layer-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 11px; border: 0; border-radius: 6px; background: transparent; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; cursor: pointer; }
.gisx-layer-switch button:hover { background: rgba(255,255,255,.12); color: #fff; }
.gisx-layer-switch button.is-active { background: #fff; color: var(--gx-green-dark); }
.gisx-layer-switch svg { width: 15px; height: 15px; }
.gisx-map-tools { position: absolute; top: 60px; left: 12px; z-index: 5; display: grid; gap: 6px; }
.gisx-map-tools button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 10px; border: 0; border-radius: 6px; background: rgba(8,28,18,.82); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.gisx-map-tools button:hover { background: rgba(8,28,18,.95); }
.gisx-map-tools button[aria-pressed="false"] { opacity: .65; }
.gisx-map-tools svg { width: 14px; height: 14px; }
.gisx-legend { position: absolute; left: 12px; bottom: 26px; z-index: 5; display: grid; gap: 7px; min-width: 210px; max-width: calc(100% - 24px); padding: 11px 13px; border-radius: 8px; background: rgba(255,255,255,.95); box-shadow: 0 8px 20px rgba(0,0,0,.2); font-size: 12px; }
.gisx-legend strong { color: var(--gx-green-dark); }
.gisx-legend small { color: var(--gx-muted); font-size: 10.5px; }
.gisx-legend-status { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.gisx-legend-status span { display: inline-flex; align-items: center; gap: 6px; color: var(--gx-ink); }
.gisx-legend-status i { width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.gisx-legend-ramp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; height: 11px; }
.gisx-legend-ramp i { border-radius: 2px; }
.gisx-legend-scale { display: flex; justify-content: space-between; color: var(--gx-muted); font-variant-numeric: tabular-nums; }
.gisx-map-tip { position: absolute; z-index: 6; display: grid; gap: 2px; padding: 8px 10px; border-radius: 6px; background: rgba(8,28,18,.92); color: #fff; font-size: 12px; pointer-events: none; }
.gisx-map-tip[hidden] { display: none; }
.gisx-map-tip span { color: rgba(255,255,255,.78); }
.gisx-map-fallback { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 30px; background: #eef4f0; color: var(--gx-ink); text-align: center; }
.gisx-map-fallback[hidden] { display: none; }
.gisx-map-fallback svg { width: 34px; height: 34px; color: var(--gx-green); }
.gisx-map-fallback span { max-width: 420px; color: var(--gx-muted); }

.gisx-map-panel { display: grid; align-content: start; gap: 12px; max-height: 640px; padding: 18px; overflow: auto; border: 1px solid var(--gx-line); border-radius: 8px; background: #fff; }
.gisx-panel-top { display: grid; gap: 4px; }
.gisx-eyebrow { color: var(--gx-green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.gisx-map-panel h3 { margin: 0; color: var(--gx-green-dark); font-size: 21px; }
.gisx-map-panel h4 { margin: 6px 0 0; color: var(--gx-green-dark); font-size: 13px; }
.gisx-map-panel p { margin: 0; color: var(--gx-muted); font-size: 13px; line-height: 1.5; }
.gisx-link { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 0; border: 0; background: none; color: #bd3037; font-size: 12px; font-weight: 700; cursor: pointer; }
.gisx-link:hover { background: none; color: #bd3037; text-decoration: underline; }
.gisx-link svg { width: 14px; height: 14px; }
.gisx-panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gisx-panel-stats div { display: grid; gap: 3px; padding: 10px; border-radius: 6px; background: #edf5f0; }
.gisx-panel-stats span { color: var(--gx-muted); font-size: 10px; text-transform: uppercase; }
.gisx-panel-stats strong { color: var(--gx-green-dark); font-size: 16px; }
.gisx-bars { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.gisx-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 56px; gap: 8px; align-items: center; font-size: 12px; }
.gisx-bars span { overflow: hidden; color: var(--gx-ink); text-overflow: ellipsis; white-space: nowrap; }
.gisx-bars div, .gisx-rank div { height: 8px; overflow: hidden; border-radius: 4px; background: #e4ede8; }
.gisx-bars i, .gisx-rank i { display: block; height: 100%; border-radius: 4px; background: #e8903a; }
.gisx-bars strong { text-align: right; font-variant-numeric: tabular-nums; }
.gisx-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.gisx-tags span { padding: 4px 8px; border-radius: 4px; background: #e8f3ec; color: var(--gx-green); font-size: 11px; font-weight: 700; }
.gisx-panel-projects { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gisx-panel-projects button { display: grid; grid-template-columns: 10px 1fr; gap: 9px; align-items: start; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--gx-ink); font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.gisx-panel-projects button:hover { border-color: #cfe0d6; background: #f3f8f5; color: var(--gx-ink); }
.gisx-panel-projects i { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; }
.gisx-panel-projects small { display: block; margin-top: 2px; color: var(--gx-muted); font-weight: 400; }
.gisx-note { display: flex; gap: 7px; align-items: flex-start; padding: 9px 10px; border-radius: 6px; background: #fff8ef; }
.gisx-note svg { width: 15px; height: 15px; margin-top: 2px; color: #b66616; }
.gisx-rank { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gisx-rank button { display: grid; grid-template-columns: 22px minmax(80px, 1fr) minmax(60px, 1fr) 64px; gap: 8px; align-items: center; width: 100%; padding: 8px 6px; border: 0; border-radius: 6px; background: none; color: var(--gx-ink); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.gisx-rank button:hover { background: #f3f8f5; color: var(--gx-ink); }
.gisx-rank b { color: #91a29a; font-size: 11px; }
.gisx-rank strong { color: var(--gx-green-dark); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }

/* Info window on the map */
.gisx-info { display: grid; grid-template-columns: 84px 1fr; gap: 11px; max-width: 300px; color: #19372d; font-family: inherit; }
.gisx-info img { width: 84px; height: 84px; border-radius: 6px; object-fit: cover; }
.gisx-info > div { display: grid; gap: 5px; }
.gisx-info strong { font-size: 14px; line-height: 1.3; }
.gisx-info small { color: #60736b; }
.gisx-info-stats { display: flex; gap: 10px; color: #08462b; font-size: 12px; font-weight: 700; }
.gisx-info button { justify-self: start; padding: 6px 10px; border: 0; border-radius: 5px; background: #0f6f3f; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.gisx-info button:hover { background: #08462b; }

/* Status pill (shared) */
.gisx-status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 9px; border-radius: 999px; background: #fff; color: #19372d; font-size: 11px; font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.gisx-status i { width: 8px; height: 8px; border-radius: 50%; background: #8c969a; }
.gisx-status.is-ongoing i { background: #0f7a45; }
.gisx-status.is-closed i { background: #2d5fc4; }
.gisx-status.is-planned i { background: #d4801a; }

/* Insights */
.gisx-insights { padding-inline: 28px; border-radius: 8px; background: var(--gx-soft); }
.gisx-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gisx-chart-panel { min-width: 0; padding: 18px; border: 1px solid var(--gx-line); border-radius: 8px; background: #fff; }
.gisx-chart-panel--wide { grid-column: span 3; }
.gisx-panel-head { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; margin-bottom: 10px; }
.gisx-panel-head > svg { color: var(--gx-green); }
.gisx-panel-head h3 { margin: 0; color: var(--gx-green-dark); font-size: 16px; }
.gisx-panel-head p { margin: 4px 0 0; color: var(--gx-muted); font-size: 12px; line-height: 1.45; }
.gisx-chart { min-height: 260px; }
.gisx-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 6px 40px; padding: 0; list-style: none; color: var(--gx-ink); font-size: 12px; }
.gisx-chart-legend li { display: inline-flex; align-items: center; gap: 6px; }
.gisx-chart-legend i { width: 11px; height: 11px; border-radius: 3px; }
.gisx-chart--donut { height: 300px; }
.gisx-chart .slice, .gisx-chart .point { cursor: pointer; }
.gisx-chart-empty { display: grid; place-items: center; min-height: 240px; color: var(--gx-muted); font-size: 13px; }
.gisx-insight { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: center; margin-top: 14px; padding: 14px 18px; border-left: 4px solid #ef8a22; border-radius: 6px; background: #fff8ef; }
.gisx-insight > svg { color: #b66616; }
.gisx-insight span { display: grid; gap: 3px; }
.gisx-insight small { color: var(--gx-muted); line-height: 1.45; }

/* Portfolio */
.gisx-list-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.gisx-list-tools > p { margin: 0; color: var(--gx-muted); font-size: 13px; }
.gisx-list-tools > div { display: flex; align-items: end; gap: 10px; }
.gisx-select--inline select { min-width: 170px; }
.gisx-view-switch { display: flex; padding: 3px; border: 1px solid #bccdc4; border-radius: 6px; background: #fff; }
.gisx-view-switch button { display: grid; place-items: center; width: 36px; height: 34px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--gx-muted); cursor: pointer; }
.gisx-view-switch button:hover { background: #eef6f1; color: var(--gx-green); }
.gisx-view-switch button.is-active { background: var(--gx-green); color: #fff; }
.gisx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gisx-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--gx-line); border-radius: 8px; background: #fff; transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; scroll-margin-top: calc(var(--nav-h) + 150px); }
.gisx-card:hover { border-color: #b5cdbf; box-shadow: 0 16px 34px rgba(20,55,41,.10); transform: translateY(-2px); }
.gisx-card-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0f6f3f, #08462b); }
.gisx-card-media img { width: 100%; height: 100%; object-fit: cover; }
.gisx-card-media img.is-broken, .gisx-drawer-hero img.is-broken { visibility: hidden; }
.gisx-card-media:has(img.is-broken)::after, .gisx-drawer-hero:has(img.is-broken)::after {
  content: "Image unavailable";
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.gisx-card-media .gisx-status { position: absolute; top: 12px; left: 12px; }
.gisx-card-body { display: grid; align-content: start; gap: 9px; padding: 16px 18px 18px; }
.gisx-card-sector { color: var(--gx-green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.gisx-card h3 { margin: 0; color: var(--gx-green-dark); font-size: 18px; line-height: 1.28; }
.gisx-card-loc { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--gx-muted); font-size: 12.5px; }
.gisx-card-loc svg { width: 14px; height: 14px; margin-top: 2px; color: #bd3037; }
.gisx-card-summary { display: -webkit-box; margin: 0; overflow: hidden; color: #4c5f57; font-size: 13.5px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.gisx-card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 0; }
.gisx-card-facts div { padding: 9px 10px; border-radius: 6px; background: #f1f7f3; }
.gisx-card-facts dt { color: var(--gx-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.gisx-card-facts dd { margin: 3px 0 0; color: var(--gx-green-dark); font-size: 13px; font-weight: 800; }
.gisx-progress { display: grid; grid-template-columns: auto 1fr 38px; gap: 9px; align-items: center; font-size: 11.5px; }
.gisx-progress > span { color: var(--gx-muted); }
.gisx-progress > div { height: 8px; overflow: hidden; border-radius: 4px; background: #e4ede8; }
.gisx-progress > div i { display: block; height: 100%; border-radius: 4px; background: var(--gx-green); }
.gisx-progress > strong { color: var(--gx-green-dark); text-align: right; }
.gisx-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.gisx-card-actions button, .gisx-empty button, .gisx-drawer-actions :is(a, button) {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 8px 13px; border: 1px solid #bccdc4; border-radius: 6px;
  background: #fff; color: #19372d; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.gisx-card-actions button:hover, .gisx-drawer-actions :is(a, button):hover { border-color: #0f6f3f; background: #fff; color: #0f6f3f; }
.gisx-card-actions .is-primary, .gisx-empty button { flex: 1; border-color: #0f6f3f; background: #0f6f3f; color: #fff; }
.gisx-card-actions .is-primary:hover, .gisx-empty button:hover { background: #08462b; color: #fff; }
.gisx-card-actions svg { width: 15px; height: 15px; }
.gisx-cards.is-list { grid-template-columns: 1fr; }
.gisx-cards.is-list .gisx-card { grid-template-columns: 300px 1fr; grid-template-rows: none; }
.gisx-cards.is-list .gisx-card-media { aspect-ratio: auto; min-height: 100%; }
.gisx-cards.is-list .gisx-card-actions .is-primary { flex: 0 1 auto; }
.gisx-empty { display: grid; justify-items: center; gap: 8px; padding: 42px 20px; border: 1px dashed #bccdc4; border-radius: 8px; text-align: center; }
.gisx-empty[hidden] { display: none; }
.gisx-empty svg { width: 30px; height: 30px; color: var(--gx-green); }
.gisx-empty span { color: var(--gx-muted); }
.gisx-empty button { flex: none; margin-top: 6px; }
.gisx-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }
.gisx-pages button { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid #bccdc4; border-radius: 6px; background: #fff; color: var(--gx-ink); font-weight: 700; cursor: pointer; }
.gisx-pages button:hover { border-color: var(--gx-green); background: #fff; color: var(--gx-green); }
.gisx-pages button.is-active { border-color: var(--gx-green); background: var(--gx-green); color: #fff; }
.gisx-pages button:disabled { opacity: .4; cursor: default; }

/* Project drawer */
.gisx-drawer {
  --gx-green: #0f6f3f; --gx-green-dark: #08462b; --gx-ink: #19372d; --gx-muted: #60736b; --gx-line: #d9e4de;
  width: min(720px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--gx-ink);
  box-shadow: -24px 0 60px rgba(4,26,15,.28);
}
.gisx-drawer[open] { animation: gisx-slide .24s ease-out; }
.gisx-drawer::backdrop { background: rgba(4,20,12,.55); backdrop-filter: blur(2px); }
@keyframes gisx-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.gisx-drawer-inner { position: relative; display: grid; align-content: start; gap: 18px; height: 100%; padding: 0 0 28px; overflow-y: auto; }
.gisx-drawer-close { position: fixed; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--gx-ink); box-shadow: 0 4px 14px rgba(0,0,0,.2); cursor: pointer; }
.gisx-drawer-close:hover { background: #fff; color: #bd3037; }
#gisx-drawer-body { display: grid; gap: 18px; }
.gisx-drawer-hero { position: relative; aspect-ratio: 16 / 7; background: linear-gradient(135deg, #0f6f3f, #08462b); }
.gisx-drawer-hero img { width: 100%; height: 100%; object-fit: cover; }
.gisx-drawer-badges { position: absolute; left: 22px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.gisx-theme { padding: 4px 9px; border-radius: 999px; background: rgba(8,28,18,.8); color: #fff; font-size: 11px; font-weight: 700; }
.gisx-credit { position: absolute; right: 12px; bottom: 12px; padding: 3px 7px; border-radius: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; text-decoration: none; }
.gisx-credit:hover { color: #fff; text-decoration: underline; }
.gisx-drawer-head, .gisx-drawer .gisx-progress, .gisx-facts, .gisx-drawer-block, .gisx-drawer-lists, .gisx-drawer-mapwrap, .gisx-drawer-actions { margin-inline: 24px; }
.gisx-drawer-head { display: grid; gap: 7px; }
.gisx-drawer-head h2 { margin: 0; color: var(--gx-green-dark); font-size: 26px; line-height: 1.2; }
.gisx-drawer-head p { margin: 0; color: #4c5f57; line-height: 1.65; }
.gisx-progress--lg { font-size: 12.5px; }
.gisx-progress--lg > div { height: 10px; }
.gisx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 0; margin-bottom: 0; }
.gisx-facts div { padding: 11px 12px; border: 1px solid var(--gx-line); border-radius: 6px; }
.gisx-facts dt { color: var(--gx-muted); font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.gisx-facts dd { margin: 4px 0 0; color: var(--gx-ink); font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.gisx-drawer-block h3, .gisx-drawer-mapwrap h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 7px; color: var(--gx-green-dark); font-size: 14px; }
.gisx-drawer-block h3 svg { width: 16px; height: 16px; color: var(--gx-green); }
.gisx-drawer-block p { margin: 0; color: #4c5f57; line-height: 1.6; font-size: 14px; }
.gisx-drawer-block ul { margin: 0; padding-left: 18px; color: #4c5f57; font-size: 13.5px; list-style: disc; }
.gisx-drawer-block li { margin: 5px 0; line-height: 1.5; }
.gisx-drawer-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gisx-drawer-lists .gisx-drawer-block { margin: 0; padding: 14px; border-radius: 8px; background: #f4f8f5; }
.gisx-drawer-mapwrap[hidden] { display: none; }
.gisx-drawer-map { height: 280px; border-radius: 8px; overflow: hidden; background: #0b1f15; }
.gisx-drawer-mapwrap p { margin: 7px 0 0; color: var(--gx-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.gisx-drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--gx-line); }
.gisx-drawer-actions svg { width: 15px; height: 15px; }

@media (max-width: 1180px) {
  .gisx-hero { grid-template-columns: 1fr; min-height: auto; }
  .gisx-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gisx-search { grid-column: 1 / -1; }
  .gisx-map-layout { grid-template-columns: 1fr; }
  .gisx-map-panel { max-height: none; }
  .gisx-chart-grid { grid-template-columns: 1fr 1fr; }
  .gisx-chart-panel--wide { grid-column: span 2; }
  .gisx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .gisx-hero { padding: 34px 24px; }
  .gisx-hero h1 { font-size: 40px; }
  .gisx-toolbar { position: static; grid-template-columns: 1fr 1fr; }
  .gisx-section-head, .gisx-chart-grid { grid-template-columns: 1fr; }
  .gisx-chart-panel--wide { grid-column: auto; }
  .gisx-kpis { grid-template-columns: 1fr 1fr; }
  .gisx-kpis > div:nth-child(2) { border-right: 0; }
  .gisx-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--gx-line); }
  .gisx-map { height: 520px; }
  .gisx-cards.is-list .gisx-card { grid-template-columns: 1fr; }
  .gisx-cards.is-list .gisx-card-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .gisx-page { padding-top: 8px; }
  .gisx-hero h1 { font-size: 32px; }
  .gisx-hero-copy > p { font-size: 15px; }
  .gisx-actions a { width: 100%; justify-content: center; }
  .gisx-hero-data, .gisx-cards, .gisx-toolbar, .gisx-facts, .gisx-drawer-lists { grid-template-columns: 1fr; }
  .gisx-band { padding: 44px 0; }
  .gisx-insights { padding-inline: 14px; }
  .gisx-section-head h2 { font-size: 27px; }
  .gisx-map { height: 460px; }
  .gisx-map-tools { top: auto; bottom: 26px; left: auto; right: 58px; }
  .gisx-legend { bottom: 80px; min-width: 0; }
  .gisx-layer-switch { right: 60px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gisx-layer-switch button { flex: none; white-space: nowrap; padding: 6px 9px; }
  .gisx-drawer-head, .gisx-drawer .gisx-progress, .gisx-facts, .gisx-drawer-block, .gisx-drawer-lists, .gisx-drawer-mapwrap, .gisx-drawer-actions { margin-inline: 16px; }
  .gisx-drawer-head h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .gisx-card, .gisx-drawer[open] { transition: none; animation: none; }
}

/* ========== ADMIN WORKSPACE (projects, users, news) ========== */
.adm-page, .adm-dialog {
  --adm-green: #0f6f3f;
  --adm-green-dark: #08462b;
  --adm-ink: #19372d;
  --adm-muted: #60736b;
  --adm-line: #d9e4de;
  --adm-soft: #f4f8f5;
  --adm-red: #bd3037;
}
.adm-page { display: grid; gap: 16px; min-width: 0; padding: 18px 0 48px; color: var(--adm-ink); }
:where(.adm-page, .adm-dialog) svg.lucide { width: 17px; height: 17px; stroke-width: 1.8; flex: none; }
.adm-page :is(a, button, input, select, textarea):focus-visible, .adm-dialog :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #ef8a22; outline-offset: 2px; }
.adm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.adm-page [hidden], .adm-dialog [hidden] { display: none !important; }
:is(.gisx-page, .gisx-drawer, .adm-page, .adm-dialog, .news-page) button { font-family: inherit; transition: background .15s ease, color .15s ease, border-color .15s ease; }

.adm-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 34px 36px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(4,26,15,.96), rgba(8,67,39,.86)), url("/static/images/national-assembly.jpg") center/cover;
  color: #fff;
  box-shadow: 0 18px 40px rgba(7,39,23,.18);
}
.adm-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg,#111 0 25%,#bd3037 25% 50%,#ef8a22 50% 75%,#0f6f3f 75%); }
.adm-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 4px; background: #fff; color: var(--adm-green-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.adm-kicker svg { width: 14px; height: 14px; }
.adm-hero h1 { margin: 14px 0 8px; color: #fff; font-size: 38px; line-height: 1.1; }
.adm-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.82); line-height: 1.6; }
.adm-subnav { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 8px; background: rgba(255,255,255,.12); }
.adm-subnav a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px; border-radius: 6px; color: rgba(255,255,255,.86); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.adm-subnav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.adm-subnav a.is-active { background: #fff; color: var(--adm-green-dark); }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--adm-line); border-radius: 8px; background: #fff; overflow: hidden; }
.adm-stats > div { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 16px 18px; border-right: 1px solid var(--adm-line); }
.adm-stats > div:last-child { border-right: 0; }
.adm-stats svg { grid-row: span 2; width: 34px; height: 34px; padding: 8px; border-radius: 8px; background: #e8f3ec; color: var(--adm-green); }
.adm-stats span { color: var(--adm-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.adm-stats strong { color: var(--adm-green-dark); font-size: 22px; font-variant-numeric: tabular-nums; }
.adm-stats strong.is-small { font-size: 17px; }
.adm-stats > div.is-warning svg { background: #fff1e2; color: #b25e10; }
.adm-stats > div.is-warning strong { color: #b25e10; }

.adm-panel { min-width: 0; padding: 20px; border: 1px solid var(--adm-line); border-radius: 8px; background: #fff; }
.adm-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.adm-panel-head h2 { margin: 0; color: var(--adm-green-dark); font-size: 21px; }
.adm-panel-head p { margin: 4px 0 0; color: var(--adm-muted); font-size: 13px; }
.adm-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; padding: 12px; border-radius: 8px; background: var(--adm-soft); }
.adm-search { position: relative; flex: 1 1 320px; }
.adm-search > svg { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: #71857b; pointer-events: none; }
.adm-search input { width: 100%; min-height: 42px; padding: 9px 12px 9px 38px; border: 1px solid #bccdc4; border-radius: 6px; background: #fff; color: var(--adm-ink); font: inherit; font-size: 14px; }
.adm-segment { display: inline-flex; padding: 3px; border: 1px solid #bccdc4; border-radius: 6px; background: #fff; }
.adm-segment button { min-height: 34px; padding: 6px 12px; border: 0; border-radius: 4px; background: none; color: var(--adm-muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.adm-segment button:hover { background: #eef6f1; color: var(--adm-green); }
.adm-segment button.is-active { background: var(--adm-green); color: #fff; }

.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border: 1px solid #bccdc4; border-radius: 6px; background: #fff; color: var(--adm-ink); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.adm-btn:hover { border-color: var(--adm-green); background: #fff; color: var(--adm-green); }
.adm-btn.is-primary { border-color: var(--adm-green); background: var(--adm-green); color: #fff; }
.adm-btn.is-primary:hover { background: var(--adm-green-dark); color: #fff; }
.adm-btn.is-danger { border-color: var(--adm-red); background: var(--adm-red); color: #fff; }
.adm-btn.is-danger:hover { background: #99232a; color: #fff; }
.adm-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--adm-muted); text-decoration: none; cursor: pointer; }
.adm-icon-btn:hover { border-color: #cfe0d6; background: #eef6f1; color: var(--adm-green); }
.adm-icon-btn.is-danger:hover { border-color: #f1c4c7; background: #fff1f2; color: var(--adm-red); }
.adm-page button[type="submit"].adm-icon-btn { background: none !important; border-color: transparent !important; color: var(--adm-muted) !important; }
.adm-page button[type="submit"].adm-icon-btn.is-danger:hover { background: #fff1f2 !important; border-color: #f1c4c7 !important; color: var(--adm-red) !important; }
.adm-dialog button[type="submit"].adm-btn.is-primary:hover { background: var(--adm-green-dark) !important; }
.adm-row-actions { display: flex; justify-content: flex-end; gap: 2px; }
.adm-row-actions form { margin: 0; }

.adm-table-wrap { overflow-x: auto; border: 1px solid var(--adm-line); border-radius: 8px; }
.adm-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13.5px; }
.adm-table th { padding: 11px 14px; border-bottom: 1px solid var(--adm-line); background: var(--adm-soft) !important; color: var(--adm-muted) !important; font-size: 11px; font-weight: 800; text-align: left; text-transform: uppercase; white-space: nowrap; }
.adm-table td { padding: 12px 14px; border-bottom: 1px solid #edf2ef; vertical-align: middle; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: #fafcfb !important; }
.adm-table tbody tr.is-highlight { background: #fff8ef !important; box-shadow: inset 4px 0 0 #ef8a22; }
.adm-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-table tr { scroll-margin-top: calc(var(--nav-h) + 20px); }
.adm-project-cell { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; min-width: 260px; }
.adm-project-cell img { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; background: #e4ede8; }
.adm-project-cell strong, .adm-person strong { display: block; color: var(--adm-ink); line-height: 1.3; }
.adm-project-cell small, .adm-person small, .adm-cell-sub { display: block; margin-top: 2px; color: var(--adm-muted); font-size: 12px; }
.adm-cell-main { display: block; }
.adm-flag { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 2px 7px; border-radius: 4px; background: #fff1e2; color: #9a5210; font-size: 11px; font-weight: 700; }
.adm-flag svg { width: 12px; height: 12px; }
.adm-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: #f1f4f3; font-size: 12px; font-weight: 700; white-space: nowrap; }
.adm-status i { width: 8px; height: 8px; border-radius: 50%; background: #8c969a; }
.adm-status.is-ongoing i { background: #0f7a45; }
.adm-status.is-closed i { background: #2d5fc4; }
.adm-status.is-planned i { background: #d4801a; }
.adm-progress { display: grid; grid-template-columns: minmax(70px, 1fr) 38px; gap: 8px; align-items: center; min-width: 120px; }
.adm-progress > div { height: 7px; overflow: hidden; border-radius: 4px; background: #e4ede8; }
.adm-progress i { display: block; height: 100%; border-radius: 4px; background: var(--adm-green); }
.adm-progress span { color: var(--adm-muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }

.adm-person { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; min-width: 240px; }
.adm-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e8f3ec; color: var(--adm-green); font-size: 14px; font-weight: 800; }
.adm-avatar.is-admin { background: #e5ecf9; color: #2d5fc4; }
.adm-avatar.is-senator { background: #fff1e2; color: #9a5c1b; }
.adm-you { margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: #ef8a22; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; text-transform: uppercase; vertical-align: 2px; }
.adm-role { display: inline-block; padding: 4px 9px; border-radius: 4px; background: #e8f3ec; color: var(--adm-green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.adm-role.is-admin { background: #e5ecf9; color: #2d5fc4; }
.adm-role.is-senator { background: #fff1e2; color: #9a5c1b; }

.adm-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 18px; color: var(--adm-muted); text-align: center; }
.adm-empty svg { width: 28px; height: 28px; color: var(--adm-green); }
.adm-empty strong { color: var(--adm-ink); }

.adm-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border: 1px solid var(--adm-line); border-radius: 8px; background: #fff; }
.adm-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 6px; background: none; color: var(--adm-muted); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.adm-tabs button:hover { background: #eef6f1; color: var(--adm-green); }
.adm-tabs button b { padding: 1px 7px; border-radius: 999px; background: #e8f3ec; color: var(--adm-green); font-size: 11px; }
.adm-tabs button.is-active { background: var(--adm-green); color: #fff; }
.adm-tabs button.is-active b { background: rgba(255,255,255,.2); color: #fff; }

.adm-content-list { display: grid; gap: 10px; }
.adm-content-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px; border: 1px solid var(--adm-line); border-radius: 8px; background: #fff; }
.adm-content-card:hover { border-color: #b5cdbf; box-shadow: 0 10px 24px rgba(20,55,41,.06); }
.adm-content-thumb { display: grid; place-items: center; width: 120px; height: 84px; overflow: hidden; border-radius: 6px; background: #e8f3ec; color: var(--adm-green); }
.adm-content-thumb.is-doc { background: #eef2f8; color: #2d5fc4; }
.adm-content-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-content-thumb svg { width: 28px; height: 28px; }
.adm-content-main h3 { margin: 6px 0 4px; color: var(--adm-green-dark); font-size: 16px; line-height: 1.3; }
.adm-content-main p { display: -webkit-box; margin: 0; overflow: hidden; color: #4c5f57; font-size: 13.5px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.adm-content-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--adm-muted); font-size: 12px; }
.adm-pill { padding: 3px 8px; border-radius: 4px; background: #e8f3ec; color: var(--adm-green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.adm-tag { display: inline-flex; align-items: center; gap: 4px; }
.adm-tag svg { width: 13px; height: 13px; }

/* Dialogs & forms */
.adm-dialog { width: min(620px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 10px; background: #fff; color: var(--adm-ink); box-shadow: 0 30px 80px rgba(4,26,15,.35); }
.adm-dialog--wide { width: min(1040px, calc(100vw - 24px)); }
.adm-dialog--confirm { width: min(440px, calc(100vw - 24px)); }
.adm-dialog::backdrop { background: rgba(4,20,12,.55); backdrop-filter: blur(2px); }
.adm-dialog[open] { animation: adm-pop .18s ease-out; }
@keyframes adm-pop { from { transform: translateY(10px) scale(.99); opacity: 0; } to { transform: none; opacity: 1; } }
.adm-form { display: grid; grid-template-rows: auto auto 1fr auto; max-height: calc(100dvh - 32px); margin: 0; }
.adm-dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--adm-line); }
.adm-dialog-head h2 { margin: 4px 0 0; color: var(--adm-green-dark); font-size: 21px; line-height: 1.25; }
.adm-eyebrow { color: var(--adm-green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.adm-dialog-body { min-height: 0; padding: 18px 22px; overflow-y: auto; }
.adm-dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--adm-line); background: var(--adm-soft); }
.adm-foot-note { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: var(--adm-muted); font-size: 12px; }
.adm-foot-note svg { width: 14px; height: 14px; }
.adm-steps { display: flex; gap: 4px; padding: 10px 22px 0; overflow-x: auto; border-bottom: 1px solid var(--adm-line); }
.adm-steps button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: var(--adm-muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.adm-steps button:hover { background: none; color: var(--adm-green-dark); }
.adm-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e4ede8; font-size: 11px; }
.adm-steps button.is-active { border-bottom-color: var(--adm-green); color: var(--adm-green-dark); }
.adm-steps button.is-active b { background: var(--adm-green); color: #fff; }

.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.adm-grid--single { grid-template-columns: 1fr; align-content: start; }
.adm-span-2 { grid-column: 1 / -1; }
.adm-field { display: grid; gap: 5px; min-width: 0; margin: 0; }
.adm-field > span, .adm-field legend, .adm-field-label { display: flex; gap: 4px; color: var(--adm-ink); font-size: 12.5px; font-weight: 700; }
.adm-field em { color: var(--adm-red); font-style: normal; }
.adm-field small, .adm-hint { margin: 0; color: var(--adm-muted); font-size: 11.5px; line-height: 1.4; }
.adm-counter { margin-left: auto; font-weight: 400; }
.adm-field--inline { flex: 0 1 190px; }
.adm-field--inline > span { color: var(--adm-muted); font-size: 11px; text-transform: uppercase; }
.adm-field :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea),
.adm-toolbar select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #bccdc4;
  border-radius: 6px;
  background: #fff;
  color: var(--adm-ink);
  font: inherit;
  font-size: 14px;
}
.adm-field textarea { min-height: 80px; line-height: 1.5; resize: vertical; }
.adm-field :is(input, select, textarea):focus { border-color: var(--adm-green); }
.adm-field input:read-only { background: var(--adm-soft); color: var(--adm-muted); }
.adm-range { display: grid; grid-template-columns: 1fr 48px; gap: 10px; align-items: center; min-height: 42px; }
.adm-range input { width: 100%; accent-color: var(--adm-green); }
.adm-range output { color: var(--adm-green-dark); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.adm-password { position: relative; display: block; }
.adm-password input { padding-right: 44px !important; }
.adm-password .adm-icon-btn { position: absolute; top: 3px; right: 3px; }
.adm-callout { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 0; padding: 11px 13px; border-radius: 6px; background: #fff8ef; color: #6b4a1f; font-size: 13px; line-height: 1.5; }
.adm-callout svg { margin-top: 1px; color: #b66616; }
.adm-check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.adm-check input { width: auto; }

.adm-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.adm-roles legend { margin-bottom: 7px; font-size: 12.5px; font-weight: 700; }
.adm-roles label { position: relative; cursor: pointer; }
.adm-roles input { position: absolute; width: auto; opacity: 0; }
.adm-roles label > span { display: grid; gap: 3px; height: 100%; padding: 11px 12px; border: 1px solid #bccdc4; border-radius: 8px; }
.adm-roles small { color: var(--adm-muted); font-size: 11.5px; line-height: 1.35; }
.adm-roles input:checked + span { border-color: var(--adm-green); background: #eef6f1; box-shadow: inset 0 0 0 1px var(--adm-green); }
.adm-roles input:focus-visible + span { outline: 3px solid #ef8a22; outline-offset: 2px; }
.adm-roles input:disabled + span { opacity: .45; cursor: not-allowed; }

.adm-provinces { padding: 0; border: 0; }
.adm-provinces > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 6px 0; }
.adm-provinces label { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #d3e0d8; border-radius: 6px; font-size: 13px; cursor: pointer; }
.adm-provinces input { width: auto; accent-color: var(--adm-green); }
.adm-provinces label:has(input:checked) { border-color: var(--adm-green); background: #eef6f1; font-weight: 700; }

.adm-locate { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 18px; }
.adm-locate-map { position: relative; display: grid; gap: 8px; align-content: start; }
.adm-map { height: 460px; border-radius: 8px; overflow: hidden; background: #0b1f15; }
.adm-geocode { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.adm-geocode > svg { position: absolute; top: 12px; left: 11px; color: #71857b; pointer-events: none; }
.adm-geocode input { min-height: 42px; padding: 9px 11px 9px 36px; border: 1px solid #bccdc4; border-radius: 6px; font: inherit; font-size: 14px; }
.adm-map-status { margin: 0; padding: 8px 10px; border-radius: 6px; background: #eef6f1; color: var(--adm-green-dark); font-size: 12.5px; }
.adm-map-status.is-error { background: #fff1f2; color: #99232a; }

.adm-image-picker { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.adm-image-preview { display: grid; place-content: center; justify-items: center; gap: 6px; aspect-ratio: 16 / 10; overflow: hidden; border: 1px dashed #bccdc4; border-radius: 8px; background: var(--adm-soft); color: var(--adm-muted); font-size: 12px; }
.adm-image-preview.has-image { display: block; border-style: solid; }
.adm-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.adm-upload { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: fit-content; min-height: 40px; padding: 8px 14px; border: 1px solid var(--adm-green); border-radius: 6px; color: var(--adm-green); font-size: 13px; font-weight: 700; cursor: pointer; overflow: hidden; }
.adm-upload:hover { background: #eef6f1; }
.adm-upload:focus-within { outline: 3px solid #ef8a22; outline-offset: 2px; }
.adm-upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.adm-upload--block { width: 100%; }
.adm-editor { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
.adm-editor-side { display: grid; align-content: start; gap: 10px; }

.adm-confirm { display: grid; justify-items: center; gap: 8px; padding: 26px 24px 0; text-align: center; }
.adm-confirm-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff1f2; color: var(--adm-red); }
.adm-confirm-icon svg { width: 26px; height: 26px; }
.adm-confirm h2 { margin: 4px 0 0; color: var(--adm-ink); font-size: 19px; }
.adm-confirm p { margin: 0 0 16px; color: var(--adm-muted); line-height: 1.5; }
.adm-confirm .adm-dialog-foot { width: calc(100% + 48px); justify-content: center; }

@media (max-width: 900px) {
  .adm-hero { grid-template-columns: 1fr; padding: 26px 22px; }
  .adm-hero h1 { font-size: 30px; }
  .adm-locate, .adm-editor, .adm-image-picker { grid-template-columns: 1fr; }
  .adm-map { height: 360px; }
  .adm-stats > div { border-bottom: 1px solid var(--adm-line); }
}
@media (max-width: 600px) {
  .adm-page { padding-top: 8px; }
  .adm-panel { padding: 14px; }
  .adm-grid, .adm-roles { grid-template-columns: 1fr; }
  .adm-content-card { grid-template-columns: 72px minmax(0, 1fr); }
  .adm-content-thumb { width: 72px; height: 56px; }
  .adm-content-card .adm-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .adm-dialog-head, .adm-dialog-body, .adm-dialog-foot { padding-inline: 16px; }
  .adm-steps { padding-inline: 12px; }
  .adm-foot-note { display: none; }
  .adm-subnav { width: 100%; }
  .adm-subnav a { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .adm-dialog[open] { animation: none; } }

/* ========== NEWS ARTICLE ========== */
.news-page { display: grid; gap: 22px; max-width: 860px; margin: 0 auto; padding: 24px 0 56px; color: #19372d; }
:where(.news-page) svg.lucide { width: 16px; height: 16px; }
.news-back { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: #0f6f3f; font-size: 13px; font-weight: 700; text-decoration: none; }
.news-back:hover, .news-source:hover { color: #08462b; }
.news-article { padding: clamp(22px, 4vw, 44px); border: 1px solid #d9e4de; border-radius: 8px; background: #fff; }
.news-head { display: grid; gap: 12px; }
.news-category { width: fit-content; padding: 5px 9px; border-radius: 4px; background: #e8f3ec; color: #0f6f3f; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.news-head h1 { margin: 0; color: #08462b; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; text-wrap: balance; }
.news-lede { margin: 0; color: #4c5f57; font-size: 18px; line-height: 1.6; }
.news-meta { display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #d9e4de; color: #60736b; font-size: 13px; }
.news-meta span { display: inline-flex; align-items: center; gap: 6px; }
.news-figure { margin: 22px 0 0; }
.news-figure img { width: 100%; max-height: 460px; border-radius: 8px; object-fit: cover; }
.news-body { margin-top: 22px; }
.news-body p { margin: 0 0 16px; color: #2d433a; font-size: 16.5px; line-height: 1.75; }
.news-source { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: #0f6f3f; font-weight: 700; }
.news-more h2 { margin: 0 0 12px; color: #08462b; font-size: 20px; }
.news-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.news-more-grid a { display: grid; align-content: start; gap: 6px; padding: 16px; border: 1px solid #d9e4de; border-radius: 8px; background: #fff; color: #19372d; text-decoration: none; }
.news-more-grid a:hover { border-color: #0f6f3f; color: #19372d; }
.news-more-grid small { color: #0f6f3f; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.news-more-grid span { color: #60736b; font-size: 13px; line-height: 1.5; }
@media (max-width: 700px) { .news-more-grid { grid-template-columns: 1fr; } }

/* ========== SIGN IN, FORGOT & RESET PASSWORD ========== */
.cauth {
  --au-green: #0f6f3f;
  --au-green-dark: #08462b;
  --au-ink: #19372d;
  --au-muted: #60736b;
  --au-line: #d5e2db;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h) - 40px);
  padding: clamp(20px, 4vh, 48px) 0 56px;
  color: var(--au-ink);
}
:where(.cauth) svg.lucide { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }
.cauth [hidden] { display: none !important; }
.cauth :is(a, button, input):focus-visible { outline: 3px solid #ef8a22; outline-offset: 2px; }
.cauth-shell {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  width: min(1120px, 100%);
  overflow: hidden;
  border: 1px solid var(--au-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(7, 39, 23, .14);
}

/* Brand panel */
.cauth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 40px 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(239,138,34,.22), transparent 40%),
    linear-gradient(160deg, rgba(4,26,15,.95) 0%, rgba(8,70,43,.9) 55%, rgba(12,90,54,.86) 100%),
    url("/static/images/national-assembly.jpg") center/cover;
  color: #fff;
}
.cauth-brand::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: linear-gradient(90deg, #0f6f3f 0 55%, #bd3037 55% 70%, #111 70% 85%, #ef8a22 85%); }
.cauth-brand-top { display: flex; align-items: center; gap: 16px; }
.cauth-crest { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
.cauth-eyebrow { display: block; color: #f6c07a; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cauth-product { display: block; margin-top: 4px; font-size: 19px; line-height: 1.3; }
.cauth-brand-copy h2 { max-width: 420px; margin: 0 0 24px; color: #fff; font-size: 30px; line-height: 1.18; text-wrap: balance; }
.cauth-features { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.cauth-features li { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; }
.cauth-features li > span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.1); color: #f6c07a; }
.cauth-features strong { display: block; font-size: 14.5px; }
.cauth-features small { display: block; margin-top: 2px; color: rgba(255,255,255,.72); font-size: 12.5px; line-height: 1.4; }
.cauth-motto { display: flex; align-items: center; gap: 8px; margin: 0; color: rgba(255,255,255,.7); font-size: 12px; }
.cauth-motto svg.lucide { width: 15px; height: 15px; color: #7fd6a4; }

/* Form panel */
.cauth-panel { display: grid; align-content: start; gap: 22px; padding: 40px 48px 32px; }
.cauth-kicker { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 6px 10px; border-radius: 999px; background: #e8f3ec; color: var(--au-green); font-size: 12px; font-weight: 800; }
.cauth-kicker svg.lucide { width: 14px; height: 14px; }
.cauth-head h1 { margin: 14px 0 6px; color: var(--au-green-dark); font-size: 32px; line-height: 1.15; }
.cauth-head p { margin: 0; color: var(--au-muted); font-size: 15px; line-height: 1.55; }

.cauth-steps { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cauth-steps li { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 3px solid #e3ebe6; color: #7d8f87; font-size: 14px; font-weight: 700; transition: border-color .2s ease, color .2s ease; }
.cauth-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #edf3ef; color: #7d8f87; }
.cauth-steps b svg.lucide { width: 16px; height: 16px; }
.cauth-steps small { display: block; color: #95a59e; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cauth-steps li.is-current { border-color: var(--au-green); color: var(--au-green-dark); }
.cauth-steps li.is-current b { background: var(--au-green); color: #fff; box-shadow: 0 0 0 5px rgba(15,111,63,.14); }
.cauth-steps li.is-done { border-color: #9cc8ae; color: var(--au-green); }
.cauth-steps li.is-done b { background: #d7ecdf; color: var(--au-green); }

.cauth-stage { display: grid; gap: 14px; }
.cauth-stage-title { margin: 0; color: var(--au-ink); font-size: 17px; }
.cauth-stage-copy { margin: -10px 0 2px; color: var(--au-muted); font-size: 13.5px; }
.cauth-roles { display: grid; gap: 10px; }
.cauth .cauth-role {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 20px;
  gap: 15px;
  align-items: center;
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--au-line);
  border-radius: 12px;
  background: #fff;
  color: var(--au-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.cauth .cauth-role:hover { border-color: var(--au-green); background: #f7fbf8; box-shadow: 0 12px 26px rgba(15,111,63,.1); transform: translateY(-1px); }
.cauth .cauth-role:hover .cauth-role-arrow { color: var(--au-green); transform: translateX(3px); }
.cauth-role-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #e8f3ec; color: var(--au-green); }
.cauth-role-icon svg.lucide { width: 24px; height: 24px; }
.cauth-role-icon.is-mp { background: #e5ecf9; color: #2d5fc4; }
.cauth-role-icon.is-senator { background: #fff1e2; color: #b0621c; }
.cauth-role-copy strong { display: block; font-size: 15.5px; }
.cauth-role-copy small { display: block; margin-top: 3px; color: var(--au-muted); font-size: 13px; line-height: 1.4; }
.cauth-role-arrow { color: #9aaca3; transition: transform .18s ease, color .18s ease; }

.cauth-role-chip { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--au-line); border-radius: 12px; background: #f7fbf8; }
.cauth-role-chip .cauth-role-icon { width: 44px; height: 44px; border-radius: 10px; }
.cauth-role-chip .cauth-role-icon svg.lucide { width: 21px; height: 21px; }
.cauth-role-chip small { color: var(--au-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cauth-role-chip h2 { margin: 1px 0 0; color: var(--au-green-dark); font-size: 17px; }
.cauth .cauth-change { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--au-line); border-radius: 8px; background: #fff; color: var(--au-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cauth .cauth-change:hover { border-color: var(--au-green); background: #fff; color: var(--au-green); }
.cauth-change svg.lucide { width: 15px; height: 15px; }

.cauth-form { display: grid; gap: 16px; margin: 0; }
.cauth-field { display: grid; gap: 7px; margin: 0; }
.cauth-field > span:first-child, .cauth-field-row label { color: var(--au-ink); font-size: 13.5px; font-weight: 700; }
.cauth-field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cauth-field-row a { color: var(--au-green); font-size: 13px; font-weight: 700; text-decoration: none; }
.cauth-field-row a:hover { color: var(--au-green-dark); text-decoration: underline; }
.cauth-input { position: relative; display: block; }
.cauth-input > svg.lucide { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #7d8f87; pointer-events: none; }
.cauth .cauth-input input {
  width: 100%;
  min-height: 50px;
  padding: 12px 48px 12px 46px;
  border: 1.5px solid #c5d5cc;
  border-radius: 10px;
  background: #fff;
  color: var(--au-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cauth .cauth-input input::placeholder { color: #9aaca3; }
.cauth .cauth-input input::-ms-reveal, .cauth .cauth-input input::-ms-clear { display: none; }
.cauth .cauth-input input:focus { border-color: var(--au-green); outline: none; box-shadow: 0 0 0 4px rgba(15,111,63,.14); }
.cauth .cauth-input input:focus-visible { outline: none; }
.cauth-input:focus-within > svg.lucide { color: var(--au-green); }
.cauth .cauth-reveal { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: none; color: #7d8f87; transform: translateY(-50%); cursor: pointer; }
.cauth .cauth-reveal:hover { background: #eef6f1; color: var(--au-green); }
.cauth-reveal .cauth-eye-hide, .cauth-reveal[aria-pressed="true"] .cauth-eye-show { display: none; }
.cauth-reveal[aria-pressed="true"] .cauth-eye-hide { display: block; }
.cauth-caps { display: inline-flex; align-items: center; gap: 6px; color: #9a5210; font-size: 12.5px; font-weight: 700; }
.cauth-caps svg.lucide { width: 14px; height: 14px; }
.cauth-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; font-size: 20px !important; letter-spacing: .4em; }

.cauth .cauth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #0f6f3f, #0c5c35) !important;
  color: #fff !important;
  font: inherit;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15,111,63,.22);
  transition: box-shadow .18s ease, transform .18s ease;
}
.cauth .cauth-submit:hover { background: linear-gradient(90deg, #0c5c35, #08462b) !important; box-shadow: 0 14px 28px rgba(15,111,63,.3); transform: translateY(-1px); }
.cauth .cauth-submit.is-loading { opacity: .8; cursor: progress; transform: none; }

.cauth-channel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.cauth-channel legend { margin-bottom: 7px; color: var(--au-ink); font-size: 13.5px; font-weight: 700; }
.cauth-channel label { position: relative; cursor: pointer; }
.cauth-channel input { position: absolute; opacity: 0; }
.cauth-channel label > span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1.5px solid #c5d5cc; border-radius: 10px; color: var(--au-muted); font-weight: 700; }
.cauth-channel input:checked + span { border-color: var(--au-green); background: #eef6f1; color: var(--au-green-dark); }
.cauth-channel input:focus-visible + span { outline: 3px solid #ef8a22; outline-offset: 2px; }

.cauth-rules { display: grid; gap: 5px; margin: -8px 0 0; padding: 0; list-style: none; color: var(--au-muted); font-size: 12.5px; }
.cauth-rules li { display: flex; align-items: center; gap: 7px; }
.cauth-rules svg.lucide { width: 12px; height: 12px; }
.cauth-rules li.is-met { color: var(--au-green); font-weight: 700; }
.cauth-rules li.is-met svg.lucide { fill: currentColor; }

.cauth-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: -6px 0 0; color: var(--au-muted); font-size: 13.5px; }
.cauth .cauth-resend button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 700; }
.cauth-resend svg.lucide { width: 14px; height: 14px; }

.cauth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding-top: 18px; border-top: 1px solid #e6eee9; color: var(--au-muted); font-size: 12.5px; }
.cauth-foot > * { display: inline-flex; align-items: center; gap: 7px; }
.cauth-foot a { color: var(--au-green); font-weight: 700; text-decoration: none; }
.cauth-foot a:hover { color: var(--au-green-dark); }
.cauth-foot svg.lucide { width: 15px; height: 15px; }

@media (max-width: 920px) {
  .cauth-shell { grid-template-columns: 1fr; }
  .cauth-brand { gap: 20px; padding: 28px 28px 32px; }
  .cauth-brand-copy h2 { font-size: 24px; margin-bottom: 16px; }
  .cauth-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cauth-features li { grid-template-columns: 1fr; align-items: start; }
  .cauth-motto { display: none; }
}
@media (max-width: 600px) {
  .cauth { padding: 12px 0 40px; }
  .cauth-shell { border-radius: 12px; }
  .cauth-brand { padding: 22px 20px 26px; }
  .cauth-crest { width: 64px; height: 64px; }
  .cauth-product { font-size: 16px; }
  .cauth-brand-copy { display: none; }
  .cauth-panel { gap: 18px; padding: 26px 20px 22px; }
  .cauth-head h1 { font-size: 26px; }
  .cauth-steps li { font-size: 13px; }
  .cauth .cauth-role { grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 12px; padding: 13px; }
  .cauth-role-icon { width: 44px; height: 44px; }
  .cauth-role-chip { grid-template-columns: 40px 1fr; }
  .cauth .cauth-change { grid-column: 1 / -1; justify-content: center; }
  .cauth-foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .cauth .cauth-role, .cauth .cauth-submit, .cauth-role-arrow { transition: none; }
}
