
/* =========================================================
   Civic OS — style.css
   Dark civic-tech interface · green accent · mobile first
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #060908;
  --bg-2: #0c1210;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #eef3ef;
  --muted: #95a39c;
  --subtle: #64726b;

  --accent: #3ee08f;
  --accent-hover: #62eaa6;
  --accent-ink: #04140b;
  --accent-soft: rgba(62, 224, 143, 0.12);
  --accent-line: rgba(62, 224, 143, 0.3);

  --amber: #f5b544;
  --amber-soft: rgba(245, 181, 68, 0.12);
  --red: #f26b6b;
  --red-soft: rgba(242, 107, 107, 0.12);

  --st-reported: #6f7f78;
  --st-verified: #b7f3d3;
  --st-progress: var(--amber);
  --st-resolved: var(--accent);

  --radius: 20px;
  --radius-sm: 14px;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --topbar-h: 60px;
  --nav-h: 76px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(80% 50% at 50% -10%, rgba(62, 224, 143, 0.14), transparent 70%),
    radial-gradient(50% 40% at 100% 30%, rgba(62, 224, 143, 0.05), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body:has(dialog[open]) {
  overflow: hidden;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

svg.lucide {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  stroke-width: 2;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 80%);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 720px;
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.muted-text {
  color: var(--muted);
}

/* ---------- 3. Buttons, pills, chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(62, 224, 143, 0.45), 0 12px 32px -12px rgba(62, 224, 143, 0.7);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-ghost {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-lg {
  height: 54px;
  padding: 0 24px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.link-btn:hover {
  color: var(--accent-hover);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill-high { color: #ff9d9d; background: var(--red-soft); border-color: rgba(242, 107, 107, 0.28); }
.pill-medium { color: #ffd083; background: var(--amber-soft); border-color: rgba(245, 181, 68, 0.28); }
.pill-low { color: #c8d2cd; }

.status-reported { color: #c8d2cd; }
.status-verified { color: var(--st-verified); background: rgba(183, 243, 211, 0.08); border-color: rgba(183, 243, 211, 0.2); }
.status-in-progress { color: #ffd083; background: var(--amber-soft); border-color: rgba(245, 181, 68, 0.28); }
.status-resolved { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }

.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.chip[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.chip-count {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.75;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

.chip-btn:hover {
  color: var(--text);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

/* ---------- 4. Top bar & navigation ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: var(--safe-top);
  background: rgba(6, 9, 8, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
}

.top-links {
  display: none;
}

.top-link {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.top-link:hover {
  color: var(--text);
}

.top-link.active {
  color: var(--text);
  background: var(--surface-2);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 40;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: min(440px, calc(100% - 24px));
  padding: 6px;
  border-radius: 24px;
  background: rgba(14, 20, 18, 0.8);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.nav-item svg.lucide {
  width: 22px;
  height: 22px;
}

.nav-item.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-report svg.lucide {
  color: var(--accent);
}

/* ---------- 5. Screens ---------- */
main {
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 40px);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: screenIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen-head {
  padding: 32px 0 20px;
}

.screen-title {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
  text-wrap: balance;
}

.screen-sub {
  max-width: 56ch;
  color: var(--muted);
  text-wrap: pretty;
}

.kicker {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.block {
  margin-top: 48px;
}

.block-tight {
  margin-top: 32px;
}

.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.block-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* ---------- 6. Home ---------- */
.hero {
  display: grid;
  gap: 32px;
  padding: 36px 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(62, 224, 143, 0.25);
}

.hero-title {
  margin: 20px 0 16px;
  font-size: clamp(2.9rem, 13vw, 5.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.text-accent {
  background: linear-gradient(120deg, #9af7c7 0%, #3ee08f 45%, #1db46c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 36ch;
  margin-bottom: 20px;
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  color: var(--muted);
  text-wrap: pretty;
}

.motto {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 13px;
}

.motto span {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.motto span:last-child {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn {
  flex: 1 1 200px;
}

.signal-card {
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.signal-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 224, 143, 0.22), transparent 70%);
  pointer-events: none;
}

.signal-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.signal-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.signal-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
}

.signal-title {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.signal-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.signal-ai {
  position: relative;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--accent-line);
}

.signal-ai-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.signal-ai p {
  font-size: 14px;
  color: var(--text);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--subtle);
}

.pipeline-step::before {
  content: "";
  height: 4px;
  border-radius: 99px;
  background: var(--surface-2);
}

.pipeline-step.done {
  color: var(--muted);
}

.pipeline-step.done::before {
  background: var(--accent);
}

.pipeline-step.current {
  color: var(--text);
  font-weight: 500;
}

.signal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.signal-dept {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat {
  padding: 16px;
}

.stat-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.stat-accent .stat-value {
  color: var(--accent);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 160px;
  padding: 18px;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}

.action-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.action-icon,
.pillar-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(62, 224, 143, 0.18);
}

.action-icon svg.lucide,
.pillar-icon svg.lucide {
  width: 20px;
  height: 20px;
}

.action-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.action-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.action-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.action-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--subtle);
  transition: color 0.2s;
}

.action-card:hover .action-arrow {
  color: var(--accent);
}

.flow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 10px;
  margin: 0 -20px;
  padding: 0 20px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.flow::-webkit-scrollbar {
  display: none;
}

.flow-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  scroll-snap-align: start;
}

.flow-step svg.lucide {
  width: 22px;
  height: 22px;
  margin: 6px 0 4px;
  color: var(--accent);
}

.flow-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
}

.flow-title {
  font-weight: 600;
}

.flow-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.flow-step-accent {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(62, 224, 143, 0.12), rgba(62, 224, 143, 0.03));
}

.teaser {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
}

.teaser-title {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.teaser-sub {
  color: var(--muted);
  font-size: 15px;
}

.teaser-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.vision-card {
  padding: 28px 22px;
}

.vision-quote {
  max-width: 22ch;
  margin-bottom: 28px;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.pillars {
  display: grid;
  gap: 18px;
}

.pillar {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
}

.pillar-icon {
  grid-row: span 2;
}

.pillar-title {
  font-weight: 600;
}

.pillar-desc {
  font-size: 14px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 56px;
  padding: 24px 0 8px;
  font-size: 13px;
  color: var(--subtle);
  border-top: 1px solid var(--border);
}

.site-footer strong {
  color: var(--muted);
  font-weight: 600;
}

/* ---------- 7. Issue cards ---------- */
.issue-list {
  display: grid;
  gap: 10px;
}

.issue-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px;
  text-align: left;
  transition: border-color 0.2s, background-color 0.2s;
}

.issue-card:hover {
  border-color: var(--border-strong);
}

.issue-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.issue-icon.is-high {
  color: #ff9d9d;
  background: var(--red-soft);
  border-color: rgba(242, 107, 107, 0.25);
}

.issue-icon.is-resolved {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.issue-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.issue-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--subtle);
}

.issue-title {
  margin: 4px 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--muted);
}

.issue-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.issue-meta svg.lucide {
  width: 14px;
  height: 14px;
  color: var(--subtle);
}

.issue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.issue-chevron {
  align-self: center;
  color: var(--subtle);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state svg.lucide {
  width: 28px;
  height: 28px;
  color: var(--subtle);
}

.empty-state strong {
  color: var(--text);
}

/* ---------- 8. Issues toolbar ---------- */
.toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.search,
.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--subtle);
  pointer-events: none;
}

.chip-row {
  display: flex;
  gap: 8px;
  margin: 0 -14px;
  padding: 2px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.select-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.select select {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 14px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--text);
  background-color: rgba(0, 0, 0, 0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2395a39c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--border-strong);
  -webkit-appearance: none;
  appearance: none;
  text-overflow: ellipsis;
}

.select select:focus {
  outline: none;
  border-color: var(--accent);
}

.select option {
  background: var(--bg-2);
}

/* ---------- 9. Report form ---------- */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.stepper li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
}

.step-bar {
  height: 4px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}

.step-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stepper li.done .step-bar::after {
  transform: scaleX(1);
}

.stepper li.current .step-bar::after {
  transform: scaleX(0.35);
}

.stepper li.done,
.stepper li.current {
  color: var(--text);
}

.report-form {
  display: grid;
  gap: 12px;
}

.report-form[hidden] {
  display: none;
}

.field-card {
  min-width: 0;
  margin: 0;
  padding: 18px;
}

fieldset.field-card {
  border: 1px solid var(--border);
}

fieldset.field-card legend {
  float: left;
  width: 100%;
  padding: 0;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.field-num {
  padding: 3px 7px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
}

.optional {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--subtle);
}

.field-hint {
  clear: both;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cat-option {
  position: relative;
}

.cat-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.cat-card:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.cat-card svg.lucide {
  width: 18px;
  height: 18px;
}

.cat-option input:checked + .cat-card {
  color: var(--text);
  background: var(--accent-soft);
  border-color: rgba(62, 224, 143, 0.55);
  box-shadow: inset 0 0 0 1px rgba(62, 224, 143, 0.25);
}

.cat-option input:checked + .cat-card svg.lucide {
  color: var(--accent);
}

.cat-option input:focus-visible + .cat-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.control {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.control::placeholder {
  color: var(--subtle);
}

.control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 224, 143, 0.15);
}

.control[aria-invalid="true"] {
  border-color: rgba(242, 107, 107, 0.6);
}

textarea.control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.control-icon {
  padding-left: 42px;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.field-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.counter {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 16px;
  border-radius: 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
  border: 1.5px dashed var(--border-strong);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--accent);
  background: rgba(62, 224, 143, 0.05);
}

.dz-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
}

.dz-title {
  font-weight: 600;
  font-size: 15px;
}

.dz-hint {
  font-size: 13px;
  color: var(--muted);
}

.photo-preview {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.photo-preview[hidden] {
  display: none;
}

.photo-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-preview .icon-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: #ffb3b3;
  background: var(--red-soft);
  border: 1px solid rgba(242, 107, 107, 0.25);
}

.form-error[hidden] {
  display: none;
}

/* ---------- 10. AI analysis panel ---------- */
.ai-panel:empty {
  display: none;
}

.ai-panel {
  margin-top: 16px;
  scroll-margin-top: calc(var(--topbar-h) + var(--safe-top) + 16px);
}

.ai-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(62, 224, 143, 0.13), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  animation: screenIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ai-card.is-loading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  top: -80px;
  background: linear-gradient(180deg, transparent, rgba(62, 224, 143, 0.12), transparent);
  animation: scan 1.6s linear infinite;
  pointer-events: none;
}

.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.ai-title svg.lucide {
  color: var(--accent);
}

.demo-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-strong);
}

.ai-steps {
  display: grid;
  gap: 12px;
}

.ai-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--subtle);
  transition: color 0.3s;
}

.ai-step-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.ai-step-icon svg.lucide {
  width: 14px;
  height: 14px;
}

.ai-step.active {
  color: var(--text);
}

.ai-step.active .ai-step-icon svg.lucide {
  animation: spin 0.9s linear infinite;
  color: var(--accent);
}

.ai-step.done {
  color: var(--muted);
}

.ai-step.done .ai-step-icon {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.ai-cell {
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
}

.ai-cell.wide {
  grid-column: 1 / -1;
}

.ai-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.ai-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ai-value.is-high { color: #ff9d9d; }
.ai-value.is-medium { color: #ffd083; }
.ai-value.is-low { color: #c8d2cd; }

.ai-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.ai-reco {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.ai-reco .ai-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.confidence {
  display: flex;
  align-items: center;
  gap: 10px;
}

.confidence-track {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #1db46c, var(--accent));
  transform-origin: left;
  animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-note,
.ai-warning {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.ai-note {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.ai-warning {
  color: #ffe2ad;
  background: var(--amber-soft);
  border: 1px solid rgba(245, 181, 68, 0.3);
}

.ai-warning svg.lucide,
.ai-note svg.lucide {
  margin-top: 2px;
}

.ai-warning-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-warning .link-btn {
  color: var(--amber);
}

.ai-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}

.success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 22px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 0 0 10px var(--accent-soft), 0 0 48px rgba(62, 224, 143, 0.5);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.success-icon svg.lucide {
  width: 30px;
  height: 30px;
}

.success-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.success-sub {
  max-width: 40ch;
  color: var(--muted);
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

/* ---------- 11. Issue detail sheet ---------- */
.sheet {
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  margin: auto 0 0;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg-2);
  border: 0;
  border-top: 1px solid var(--border-strong);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, 0.8);
}

.sheet[open] {
  animation: sheetUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet::backdrop {
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.sheet-inner {
  position: relative;
  max-height: 92dvh;
  padding: 10px 20px calc(28px + var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: var(--border-strong);
}

.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: var(--surface-2);
}

.sheet-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-right: 48px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
}

.sheet-title {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}

.sheet-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sheet-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.sheet-desc {
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--text);
}

.sheet-section {
  margin-top: 22px;
}

.sheet-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tl-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--subtle);
}

.tl-step::before {
  content: "";
  height: 4px;
  border-radius: 99px;
  background: var(--surface-2);
}

.tl-step.done {
  color: var(--muted);
}

.tl-step.done::before {
  background: var(--accent);
}

.tl-step.current {
  color: var(--text);
  font-weight: 600;
}

.updates {
  display: grid;
  gap: 0;
}

.update {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding-bottom: 16px;
}

.update:last-child {
  padding-bottom: 0;
}

.update::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 9px;
  width: 1px;
  background: var(--border-strong);
}

.update:last-child::before {
  display: none;
}

.update-dot {
  width: 10px;
  height: 10px;
  margin: 5px 0 0 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.update-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 14px;
  font-weight: 600;
}

.update-time {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--subtle);
}

.update-note {
  font-size: 14px;
  color: var(--muted);
}

.support-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.support-count {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.support-label {
  font-size: 13px;
  color: var(--muted);
}

.helpers {
  display: grid;
  gap: 8px;
}

.helper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.helper-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.helper-text small {
  font-size: 12px;
  color: var(--muted);
}

.official-box {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--border-strong);
}

.official-box p {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 12. Dashboard ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  text-align: left;
  transition: border-color 0.2s;
}

.kpi:hover {
  border-color: var(--border-strong);
}

.kpi:first-child {
  grid-column: 1 / -1;
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.kpi-value {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  font-size: 12px;
  color: var(--subtle);
}

.kpi-high .kpi-value { color: #ff9d9d; }
.kpi-resolved .kpi-value { color: var(--accent); }
.kpi-progress .kpi-value { color: #ffd083; }

.insight-card {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(62, 224, 143, 0.14), transparent 60%),
    var(--surface);
}

.insight-card .action-icon {
  flex-shrink: 0;
}

.insight-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 600;
}

.insight-text {
  font-size: 14px;
  color: var(--muted);
}

.insight-text strong {
  color: var(--text);
  font-weight: 600;
}

.dash-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.panel {
  min-width: 0;
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-sub {
  font-size: 13px;
  color: var(--muted);
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 50%;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--bg-2);
}

.donut-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.donut-label {
  font-size: 12px;
  color: var(--muted);
}

.legend {
  display: grid;
  gap: 10px;
  flex: 1;
  min-width: 160px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-value {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.hbars {
  display: grid;
  gap: 14px;
}

.hbar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  font-size: 14px;
}

.hbar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hbar-label svg.lucide {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.hbar-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.hbar-track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}

.hbar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #1db46c, var(--accent));
  transform-origin: left;
  animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hbar-fill.is-amber {
  background: linear-gradient(90deg, #d8952a, var(--amber));
}

.columns {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 170px;
}

.column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.column-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  flex: 1;
  width: 100%;
}

.column-bar {
  width: min(14px, 40%);
  border-radius: 5px 5px 2px 2px;
  transform-origin: bottom;
  animation: growUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.column-bar.reported {
  background: rgba(255, 255, 255, 0.2);
}

.column-bar.resolved {
  background: var(--accent);
}

.column-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--subtle);
}

.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hotspots {
  display: grid;
  gap: 8px;
}

.hotspot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.hotspot-rank {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
}

.hotspot-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
}

.hotspot-name small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.priority-list {
  display: grid;
  gap: 8px;
}

/* ---------- 13. Community ---------- */
.match-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.match-flow li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.match-flow li svg.lucide {
  color: var(--accent);
  width: 15px;
  height: 15px;
}

.match-flow li:last-child {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.skills-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mission-list {
  display: grid;
  gap: 12px;
}

.mission-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.mission-card.is-top {
  border-color: var(--accent-line);
}

.mission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mission-linked {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--subtle);
}

.mission-linked .link-btn {
  font-family: var(--mono);
  font-size: 11px;
}

.mission-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.mission-desc {
  font-size: 14px;
  color: var(--muted);
}

.match-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.match-badge.is-strong {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.match-badge.is-partial {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.skill-chip.have {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.skill-chip svg.lucide {
  width: 12px;
  height: 12px;
}

.mission-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.progress {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mission-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.mission-matches {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}

.avatar-stack {
  display: flex;
}

.avatar-stack .avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
  border: 2px solid var(--bg-2);
}

.avatar-stack .avatar + .avatar {
  margin-left: -8px;
}

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
}

.avatar.tone-1 { background: #b7f3d3; }
.avatar.tone-2 { background: #ffd083; }
.avatar.tone-3 { background: #d9e2dd; }
.avatar.is-org { border-radius: 12px; }

.people-grid {
  display: grid;
  gap: 10px;
}

.person-card {
  display: flex;
  gap: 14px;
  padding: 16px;
}

.person-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.person-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.person-role {
  font-size: 13px;
  color: var(--muted);
}

.person-card .skill-list {
  margin-top: 10px;
}

.org-badge {
  padding: 2px 6px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- 14. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 28px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: rgba(20, 28, 25, 0.95);
  border: 1px solid var(--accent-line);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast svg.lucide {
  color: var(--accent);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 15. Animations ---------- */
@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheetUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(62, 224, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0); }
}

@keyframes scan {
  from { top: -80px; }
  to { top: 100%; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes growUp {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 16. Responsive ---------- */
@media (min-width: 560px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ai-actions {
    grid-template-columns: 1fr 1fr;
  }

  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 720px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .teaser {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
  }

  .vision-card {
    padding: 40px;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillar {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .pillar-icon {
    grid-row: auto;
  }

  .sheet {
    max-width: 640px;
    max-height: 88dvh;
    margin: auto;
    border: 1px solid var(--border-strong);
    border-radius: 26px;
  }

  .sheet-inner {
    max-height: 88dvh;
    padding: 24px 28px 28px;
  }

  .sheet-handle {
    display: none;
  }

  .ai-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .kpi:first-child {
    grid-column: span 4;
  }
}

@media (min-width: 900px) {
  :root {
    --nav-h: 0px;
  }

  main {
    padding-bottom: 64px;
  }

  .top-links {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .live-pill,
  .bottom-nav {
    display: none;
  }

  .toast {
    bottom: 32px;
  }

  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
    padding: 80px 0 56px;
  }

  .hero-actions .btn {
    flex: 0 0 auto;
  }

  .screen-head {
    padding: 56px 0 28px;
  }

  .action-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .flow {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .issue-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toolbar {
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
  }

  .toolbar .chip-row {
    margin: 0;
    padding: 2px;
  }

  .toolbar .select-row {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .kpi-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .kpi:first-child {
    grid-column: auto;
  }

  .dash-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .people-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* =========================================================
CIVIC AI ASSISTANT
========================================================= */

.civic-ai-fab {
position: fixed;
right: 24px;
bottom: 24px;
z-index: 900;
display: inline-flex;
align-items: center;
gap: 10px;
min-height: 52px;
padding: 8px 16px 8px 8px;
border: 1px solid rgba(62, 224, 143, 0.28);
border-radius: 999px;
background: rgba(8, 16, 12, 0.92);
color: #f4fff8;
box-shadow:
0 14px 40px rgba(0, 0, 0, 0.35),
0 0 0 1px rgba(62, 224, 143, 0.05);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
cursor: pointer;
transition:
transform 180ms ease,
border-color 180ms ease,
box-shadow 180ms ease;
}

.civic-ai-fab:hover {
transform: translateY(-2px);
border-color: rgba(62, 224, 143, 0.55);
box-shadow:
0 18px 45px rgba(0, 0, 0, 0.4),
0 0 24px rgba(62, 224, 143, 0.08);
}

.civic-ai-fab:active {
transform: translateY(0);
}

.civic-ai-fab-icon {
display: grid;
place-items: center;
width: 36px;
height: 36px;
border-radius: 50%;
background: #3ee08f;
color: #04140b;
}

.civic-ai-fab-icon svg {
width: 18px;
height: 18px;
}

.civic-ai-fab-text {
font-size: 14px;
font-weight: 700;
letter-spacing: -0.01em;
}

/* ================= AI PANEL ================= */

.civic-ai-panel {
position: fixed;
right: 24px;
bottom: 88px;
z-index: 899;

display: flex;
flex-direction: column;

width: min(410px, calc(100vw - 32px));
height: min(650px, calc(100dvh - 120px));

overflow: hidden;

border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 24px;

background:
linear-gradient(
180deg,
rgba(13, 23, 18, 0.98),
rgba(6, 11, 9, 0.99)
);

box-shadow:
0 30px 80px rgba(0, 0, 0, 0.55),
0 0 0 1px rgba(62, 224, 143, 0.04);

backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);

opacity: 0;
visibility: hidden;
pointer-events: none;

transform: translateY(16px) scale(0.98);
transform-origin: bottom right;

transition:
opacity 180ms ease,
transform 180ms ease,
visibility 180ms ease;
}

.civic-ai-panel.is-open {
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateY(0) scale(1);
}

/* ================= AI HEADER ================= */

.civic-ai-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;

padding: 18px 18px 16px;

border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.civic-ai-heading {
display: flex;
align-items: center;
gap: 12px;
}

.civic-ai-avatar {
display: grid;
place-items: center;

width: 42px;
height: 42px;

flex: 0 0 auto;

border-radius: 13px;

background: rgba(62, 224, 143, 0.12);
border: 1px solid rgba(62, 224, 143, 0.18);

color: #3ee08f;
}

.civic-ai-avatar svg {
width: 20px;
height: 20px;
}

.civic-ai-heading strong {
display: block;

font-size: 15px;
font-weight: 700;

color: #f5fff9;
}

.civic-ai-heading span {
display: block;

margin-top: 3px;

font-size: 11px;
color: rgba(232, 245, 237, 0.52);
}

/* ================= CONTEXT ================= */

.civic-ai-context {
display: flex;
align-items: flex-start;
gap: 8px;

margin: 12px 14px 0;
padding: 10px 11px;

border: 1px solid rgba(62, 224, 143, 0.12);
border-radius: 12px;

background: rgba(62, 224, 143, 0.045);

color: rgba(230, 245, 236, 0.64);

font-size: 11px;
line-height: 1.5;
}

.civic-ai-context svg {
flex: 0 0 auto;
width: 14px;
height: 14px;
margin-top: 1px;
color: #3ee08f;
}

/* ================= MESSAGES ================= */

.civic-ai-messages {
flex: 1;

display: flex;
flex-direction: column;
gap: 14px;

overflow-y: auto;

padding: 18px 14px;

scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.civic-ai-message {
display: flex;
align-items: flex-start;
gap: 9px;
max-width: 94%;
}

.civic-ai-message.user {
align-self: flex-end;
flex-direction: row-reverse;
}

.civic-ai-message-avatar {
display: grid;
place-items: center;

width: 28px;
height: 28px;

flex: 0 0 auto;

margin-top: 2px;

border-radius: 9px;

background: rgba(62, 224, 143, 0.1);
color: #3ee08f;
}

.civic-ai-message-avatar svg {
width: 14px;
height: 14px;
}

.civic-ai-message.user .civic-ai-message-avatar {
background: rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.7);
}

.civic-ai-bubble {
padding: 11px 13px;

border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 15px;

background: rgba(255, 255, 255, 0.045);

color: rgba(241, 249, 244, 0.82);

font-size: 13px;
line-height: 1.55;
}

.civic-ai-message.user .civic-ai-bubble {
border-color: rgba(62, 224, 143, 0.18);
background: rgba(62, 224, 143, 0.1);
}

.civic-ai-bubble strong {
display: block;
margin-bottom: 4px;
color: #f5fff9;
}

.civic-ai-bubble p {
margin: 0;
}

.civic-ai-bubble p + p {
margin-top: 8px;
}

/* ================= SUGGESTIONS ================= */

.civic-ai-suggestions {
display: flex;
gap: 7px;

overflow-x: auto;

padding: 0 14px 11px;

scrollbar-width: none;
}

.civic-ai-suggestions::-webkit-scrollbar {
display: none;
}

.ai-suggestion {
flex: 0 0 auto;

min-height: 34px;
padding: 7px 11px;

border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 999px;

background: rgba(255, 255, 255, 0.035);
color: rgba(238, 248, 242, 0.72);

font: inherit;
font-size: 11px;
white-space: nowrap;

cursor: pointer;

transition:
background 160ms ease,
border-color 160ms ease,
color 160ms ease;
}

.ai-suggestion:hover {
border-color: rgba(62, 224, 143, 0.25);
background: rgba(62, 224, 143, 0.08);
color: #f4fff8;
}

/* ================= AI INPUT ================= */

.civic-ai-input {
display: flex;
align-items: center;
gap: 8px;

margin: 0 12px 12px;
padding: 6px 6px 6px 13px;

border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 15px;

background: rgba(255, 255, 255, 0.045);

transition:
border-color 160ms ease,
background 160ms ease;
}

.civic-ai-input:focus-within {
border-color: rgba(62, 224, 143, 0.35);
background: rgba(255, 255, 255, 0.055);
}

.civic-ai-input input {
min-width: 0;
flex: 1;

border: 0;
outline: 0;

background: transparent;
color: #f5fff9;

font: inherit;
font-size: 13px;
}

.civic-ai-input input::placeholder {
color: rgba(235, 246, 239, 0.4);
}

.civic-ai-send {
display: grid;
place-items: center;

width: 36px;
height: 36px;

flex: 0 0 auto;

border: 0;
border-radius: 11px;

background: #3ee08f;
color: #04140b;

cursor: pointer;

transition:
transform 150ms ease,
filter 150ms ease;
}

.civic-ai-send:hover {
filter: brightness(1.08);
transform: translateY(-1px);
}

.civic-ai-send:active {
transform: translateY(0);
}

.civic-ai-send svg {
width: 16px;
height: 16px;
}

/* ================= MOBILE ================= */

@media (max-width: 640px) {
.civic-ai-fab {
right: 16px;
bottom: calc(76px + env(safe-area-inset-bottom));
min-height: 48px;
padding-right: 13px;
}

.civic-ai-fab-text {
font-size: 13px;
}

.civic-ai-panel {
right: 10px;
bottom: calc(70px + env(safe-area-inset-bottom));
width: calc(100vw - 20px);
height: min(650px, calc(100dvh - 95px));
border-radius: 21px;
}

.civic-ai-header {
padding: 15px;
}

.civic-ai-messages {
padding: 15px 12px;
}

.civic-ai-context {
margin-left: 12px;
margin-right: 12px;
}

.civic-ai-input {
margin-bottom: calc(8px + env(safe-area-inset-bottom));
}
}

@media (prefers-reduced-motion: reduce) {
.civic-ai-fab,
.civic-ai-panel,
.civic-ai-send,
.ai-suggestion {
transition: none;
}
}
/* ================= CIVIC AI FILE UPLOAD ================= */

.civic-ai-attachments {
  padding: 8px 16px;
}

.civic-ai-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted, #9ca3af);
  background: rgba(255, 255, 255, 0.04);
}

.civic-ai-upload:hover {
  background: rgba(255, 255, 255, 0.08);
}

.civic-ai-file-preview {
  margin-top: 8px;
}

.civic-ai-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.civic-ai-file span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.civic-ai-file button {
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.civic-ai-file-image {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
/* =====================================================
   CIVIC OS — FINAL 5 BUTTON MOBILE NAV
   ===================================================== */

@media (max-width: 900px) {

  .bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    height: 72px !important;

    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;

    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: stretch !important;
    justify-content: stretch !important;

    z-index: 1000 !important;
  }

  .bottom-nav .nav-item {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    flex: 1 1 0 !important;

    margin: 0 !important;
    padding: 8px 2px !important;
  }

  .bottom-nav .nav-item span {
    display: block !important;
    white-space: nowrap !important;
  }

  .bottom-nav .nav-report {
    position: relative !important;
    z-index: 1001 !important;
  }

}
/* =====================================================
   CIVIC OS — PREMIUM CIVIC ACTION DETAILS
   ===================================================== */

.civic-action-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.civic-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 224, 143, 0.35);
}

.civic-action-card:active {
  transform: scale(0.99);
}

.action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted, #8f9994);
}

.action-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.action-meta svg {
  width: 13px;
  height: 13px;
}


/* =====================================================
   DETAIL PAGE
   ===================================================== */

#actionDetailScreen .container.narrow {
  max-width: 920px;
  padding-bottom: 175px;
}

#actionDetailScreen .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 18px !important;
  color: #aab8b3;
}


/* MAIN DETAIL CARD */

.action-detail-content {
  position: relative;
  overflow: hidden;
  padding: 0 22px 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  background:
    linear-gradient(
      180deg,
      rgba(8, 20, 16, 0.72),
      rgba(5, 12, 10, 0.96)
    );
  box-shadow:
    0 25px 70px rgba(0,0,0,0.35);
}

/* =====================================================
   HERO IMAGES — DIFFERENT IMAGE FOR EACH ACTIVITY
   ===================================================== */

.action-detail-content::before {
  content: "";
  display: block;

  height: 230px;

  margin: 0 -22px 24px;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.05) 15%,
      rgba(5,12,10,0.25) 55%,
      rgba(5,12,10,0.95) 100%
    ),
    var(--action-image)
    center / cover no-repeat;

  border-radius: 28px 28px 0 0;
}


/* FLOOD */

.action-detail-content.action-flood {
  --action-image:
    url("https://images.unsplash.com/photo-1547683905-f686c993aae5?auto=format&fit=crop&w=1200&q=85");
}


/* CLEAN-UP DRIVE */

.action-detail-content.action-cleanup {
  --action-image:
    url("https://images.unsplash.com/photo-1532996122724-e3c354a0b15b?auto=format&fit=crop&w=1200&q=85");
}


/* TREE PLANTATION */

.action-detail-content.action-planting {
  --action-image:
    url("https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?auto=format&fit=crop&w=1200&q=85");
}


/* ICON */

.action-detail-icon {
  position: relative;
  z-index: 2;

  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: -58px;
  margin-bottom: 18px;

  border-radius: 20px;

  background: rgba(6, 30, 22, 0.92);
  border: 1px solid rgba(62,224,143,0.35);

  color: #3ee08f;

  box-shadow:
    0 12px 30px rgba(0,0,0,0.35);
}

.action-detail-icon svg {
  width: 31px;
  height: 31px;
}


/* KICKER */

.action-detail-content > .kicker {
  display: inline-flex;
  align-items: center;

  padding: 7px 12px;

  margin-bottom: 12px;

  border-radius: 999px;

  background: rgba(0, 210, 190, 0.12);
  border: 1px solid rgba(0, 210, 190, 0.18);

  color: #53e7d4;

  font-size: 12px;
  font-weight: 700;
}


/* TITLE */

.action-detail-content .screen-title {
  margin: 0;
  max-width: 700px;

  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}


/* DESCRIPTION */

.action-detail-content .screen-sub {
  max-width: 720px;
  margin-top: 18px;

  color: #aebdb7;

  font-size: 16px;
  line-height: 1.65;
}


/* =====================================================
   INFORMATION GRID
   ===================================================== */

.action-detail-info {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;

  margin-top: 28px;
}

.action-info-card {
  min-height: 126px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;

  padding: 16px;

  border-radius: 18px;

  background: rgba(14, 28, 24, 0.72);
  border: 1px solid rgba(255,255,255,0.07);

  backdrop-filter: blur(14px);
}

.action-info-card > svg {
  width: 22px;
  height: 22px;

  margin-bottom: 12px;

  color: #3ee08f;
}

.action-info-card div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.action-info-card strong {
  font-size: 12px;
  font-weight: 500;

  color: #8fa49c;
}

.action-info-card span {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}


/* =====================================================
   ORGANIZER
   ===================================================== */

.action-organizer {
  margin: 18px 0 0;
  padding: 20px;

  border-radius: 20px;

  background: rgba(12, 28, 24, 0.72);
  border: 1px solid rgba(255,255,255,0.07);
}

.action-organizer span {
  display: flex;
  flex-direction: column;
  gap: 7px;

  color: #ffffff;
  font-size: 15px;
}

.action-organizer strong {
  color: #55c9ff;
  font-size: 13px;
}


/* =====================================================
   GOVERNMENT SUPPORT
   ===================================================== */

.action-support-card {
  margin-top: 14px;
  padding: 20px;

  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      rgba(22, 76, 105, 0.25),
      rgba(12, 31, 42, 0.72)
    );

  border: 1px solid rgba(54, 181, 255, 0.32);
}

.action-support-title {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 8px;

  color: #b9e7ff;

  font-size: 15px;
  font-weight: 700;
}

.action-support-title svg {
  width: 21px;
  height: 21px;
}

.action-support-card p {
  margin: 0;

  color: #9db9c7;

  font-size: 14px;
  line-height: 1.65;
}


/* =====================================================
   JOIN BUTTON
   ===================================================== */

#joinCivicActionBtn {
  width: 100%;
  min-height: 60px;

  margin-top: 32px;

  border-radius: 999px;

  font-size: 17px;
  font-weight: 800;

  background:
    linear-gradient(
      135deg,
      #20d99a,
      #1ba66f
    );

  color: #03130d;

  border: 1px solid rgba(75,255,180,0.55);

  box-shadow:
    0 12px 35px rgba(24,214,145,0.20);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#joinCivicActionBtn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 16px 42px rgba(24,214,145,0.30);
}

#joinCivicActionBtn:disabled {
  opacity: 1;
  cursor: default;

  background:
    linear-gradient(
      135deg,
      #2aa06d,
      #257e59
    );

  color: #04130c;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 700px) {

  #actionDetailScreen .container.narrow {
    padding-left: 12px;
    padding-right: 12px;
  }

  .action-detail-content {
    padding: 0 16px 24px;
    border-radius: 24px;
  }

  .action-detail-content::before {
    height: 205px;
    margin-left: -16px;
    margin-right: -16px;

    border-radius: 24px 24px 0 0;
  }

  .action-detail-icon {
    width: 58px;
    height: 58px;

    margin-top: -48px;
  }

  .action-detail-content .screen-title {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.05;
  }

  .action-detail-content .screen-sub {
    font-size: 15px;
    line-height: 1.6;
  }

  .action-detail-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .action-info-card {
    min-height: 115px;
    padding: 14px;
  }

  .action-info-card span {
    font-size: 14px;
  }

  .action-support-card,
  .action-organizer {
    padding: 17px;
  }

  #joinCivicActionBtn {
    min-height: 58px;
  }
}
/* =====================================================
   CIVIC ACTIONS — PREMIUM ACTIVITY CARDS
   ===================================================== */

#civicActionsList {
  display: grid;
  gap: 14px;
}

.civic-action-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;

  width: 100%;
  min-height: 105px;

  padding: 17px;

  text-align: left;

  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(19,35,30,0.88),
      rgba(9,20,17,0.96)
    );

  box-shadow:
    0 12px 35px rgba(0,0,0,0.18);

  overflow: hidden;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.civic-action-card::after {
  content: "";

  position: absolute;
  right: -45px;
  top: -45px;

  width: 120px;
  height: 120px;

  border-radius: 50%;

  background: rgba(62,224,143,0.06);
}

.civic-action-card:hover {
  transform: translateY(-2px);

  border-color: rgba(62,224,143,0.28);

  background:
    linear-gradient(
      135deg,
      rgba(22,43,36,0.95),
      rgba(9,23,18,0.98)
    );
}

.civic-action-card:active {
  transform: scale(0.985);
}


/* ICON */

.civic-action-card .action-icon {
  position: relative;
  z-index: 2;

  flex: 0 0 52px;

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 17px;

  background: rgba(62,224,143,0.11);

  border: 1px solid rgba(62,224,143,0.16);

  color: #3ee08f;
}

.civic-action-card .action-icon svg {
  width: 23px;
  height: 23px;
}


/* TEXT */

.civic-action-card .action-text {
  position: relative;
  z-index: 2;

  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 6px;

  flex: 1;
}

.civic-action-card .action-title {
  display: block;

  color: #f1f7f4;

  font-size: 15px;
  font-weight: 750;

  line-height: 1.25;
}

.civic-action-card .action-desc {
  display: block;

  color: #8fa29b;

  font-size: 12.5px;

  line-height: 1.45;
}


/* META */

.civic-action-card .action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 2px;

  color: #71847d;

  font-size: 11px;
}

.civic-action-card .action-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.civic-action-card .action-meta svg {
  width: 12px;
  height: 12px;

  color: #3ee08f;
}


/* ARROW */

.civic-action-card .action-arrow {
  position: relative;
  z-index: 2;

  flex: 0 0 auto;

  width: 18px;
  height: 18px;

  color: #647770;

  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.civic-action-card:hover .action-arrow {
  transform: translate(2px, -2px);

  color: #3ee08f;
}


/* MOBILE */

@media (max-width: 600px) {

  #civicActionsList {
    gap: 12px;
  }

  .civic-action-card {
    min-height: 100px;

    padding: 15px;

    gap: 12px;

    border-radius: 20px;
  }

  .civic-action-card .action-icon {
    flex-basis: 48px;

    width: 48px;
    height: 48px;

    border-radius: 15px;
  }

  .civic-action-card .action-title {
    font-size: 14px;
  }

  .civic-action-card .action-desc {
    font-size: 12px;
  }

  .civic-action-card .action-meta {
    font-size: 10.5px;
  }
}
/* =====================================================
   CIVIC ACTION CARD IMAGES
   ===================================================== */

.civic-action-card {
  position: relative;
  overflow: hidden;
}

.action-card-image {
  display: block;
  width: 100%;
  height: 150px;
  margin-bottom: 16px;

  border-radius: 16px;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    inset 0 -60px 60px rgba(0,0,0,0.28);
}

/* FLOOD */

.action-flood-image {
  background-image:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.05),
      rgba(0,0,0,0.35)
    ),
    url("https://images.unsplash.com/photo-1547683905-f686c993aae5?auto=format&fit=crop&w=1200&q=85");
}

/* CLEAN-UP */

.action-cleanup-image {
  background-image:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.05),
      rgba(0,0,0,0.35)
    ),
    url("https://images.unsplash.com/photo-1532996122724-e3c354a0b15b?auto=format&fit=crop&w=1200&q=85");
}

/* TREE PLANTATION */

.action-planting-image {
  background-image:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.05),
      rgba(0,0,0,0.35)
    ),
    url("https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?auto=format&fit=crop&w=1200&q=85");
}


/* MOBILE */

@media (max-width: 600px) {

  .action-card-image {
    height: 135px;
  }

}



/* =========================================================
   CIVIC OS — HACKATHON POLISH
   Actions + Create Activity + Details + Dashboard
   ========================================================= */

.actions-hero,
.create-activity-hero {
  position: relative;
  overflow: hidden;
  margin: 18px 0 26px;
  padding: 28px;
  border: 1px solid var(--accent-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(62,224,143,.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
}

.actions-hero::after,
.create-activity-hero::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -65px;
  bottom: -80px;
  border: 1px solid rgba(62,224,143,.16);
  border-radius: 50%;
}

.actions-hero .screen-title,
.create-activity-hero .screen-title {
  max-width: 700px;
  margin-bottom: 10px;
}

.action-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0 14px;
}

.action-section-label h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.02em;
}

.action-count {
  padding: 5px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.action-list .action-card {
  min-height: 210px;
  padding: 20px;
  border-radius: 22px;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: 0 12px 35px rgba(0,0,0,.14);
}

.action-list .action-card:hover {
  transform: translateY(-5px);
  border-color: rgba(62,224,143,.38);
  box-shadow: 0 20px 45px rgba(0,0,0,.22);
}

.action-list .action-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.action-list .action-title {
  display: block;
  padding-right: 24px;
  font-size: 16px;
  line-height: 1.25;
}

.action-list .action-desc {
  display: block;
  margin-top: 5px;
}

.action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.action-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--subtle);
  background: rgba(255,255,255,.045);
}

.action-meta svg {
  width: 12px;
  height: 12px;
}

.user-civic-action-card {
  border-color: rgba(62,224,143,.24) !important;
}

.create-activity-form {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(0,0,0,.2);
}

.project-form .form-field label {
  margin-bottom: 7px;
}

.project-form input,
.project-form select,
.project-form textarea {
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px rgba(62,224,143,.07);
  outline: none;
}

.activity-form-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  font-size: 12px;
  line-height: 1.45;
}

.activity-form-note svg {
  flex: 0 0 auto;
  width: 17px;
  color: var(--accent);
}

.action-detail-content {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(62,224,143,.14), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: 0 22px 65px rgba(0,0,0,.22);
}

.action-detail-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 19px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.action-detail-icon svg {
  width: 28px;
  height: 28px;
}

.action-detail-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.action-detail-info > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
}

.action-detail-info strong,
.action-support strong {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.action-detail-info span {
  font-size: 14px;
}

.action-support {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(62,224,143,.055);
  border: 1px solid rgba(62,224,143,.13);
}

.action-support p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

#joinCivicActionBtn {
  min-height: 52px;
  border-radius: 15px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

#joinCivicActionBtn:disabled {
  opacity: .8;
}

#dashboardBody {
  padding-bottom: 30px;
}

#dashboardBody .kpi-grid {
  gap: 12px;
}

#dashboardBody .kpi {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 18px;
  border-radius: 20px;
  text-align: left;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

#dashboardBody .kpi:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 15px 35px rgba(0,0,0,.18);
}

#dashboardBody .kpi::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -38px;
  bottom: -42px;
  border-radius: 50%;
  border: 1px solid rgba(62,224,143,.10);
}

#dashboardBody .kpi-label {
  font-size: 11px;
  color: var(--muted);
}

#dashboardBody .kpi-value {
  display: block;
  margin: 12px 0 4px;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -.045em;
}

#dashboardBody .kpi-sub {
  font-size: 11px;
  color: var(--subtle);
}

#dashboardBody .insight-card {
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(62,224,143,.18);
  background:
    linear-gradient(135deg, rgba(62,224,143,.09), rgba(255,255,255,.025));
  box-shadow: 0 14px 40px rgba(0,0,0,.15);
}

#dashboardBody .dash-grid {
  gap: 14px;
  margin-top: 16px;
}

#dashboardBody .panel {
  border-radius: 21px;
  padding: 20px;
  background: rgba(255,255,255,.035);
}

#dashboardBody .panel-title {
  font-size: 17px;
}

#dashboardBody .donut-wrap {
  padding-top: 10px;
}

#dashboardBody .hbar-row {
  padding: 9px 0;
}

@media (max-width: 760px) {
  .actions-hero,
  .create-activity-hero {
    padding: 22px;
    border-radius: 21px;
  }

  .action-list {
    grid-template-columns: 1fr;
  }

  .action-list .action-card {
    min-height: 175px;
  }

  .action-detail-content {
    padding: 22px;
    border-radius: 22px;
  }

  .action-detail-info {
    grid-template-columns: 1fr;
  }

  #dashboardBody .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #dashboardBody .kpi {
    min-height: 125px;
  }

  #dashboardBody .kpi-value {
    font-size: 28px;
  }
}

@media (max-width: 430px) {
  .create-activity-form,
  .action-detail-content {
    padding: 18px;
  }

  #dashboardBody .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================================================
   CIVIC ACTION DETAIL — REFERENCE MATCH
   ========================================================= */

#actionDetailScreen {
  min-height: 100vh;
}

#actionDetailScreen .action-detail-page {
  max-width: 920px;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.action-detail-topbar {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  margin: 0 -2px 16px;
}

.action-detail-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #eef8f3;
  background: rgba(255,255,255,.055);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.action-detail-back svg {
  width: 23px;
  height: 23px;
}

.action-detail-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  padding: 0;
  border: 0;
  color: #f4faf7;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
}

.action-detail-brand-mark {
  width: 42px;
  height: 42px;
}

.action-detail-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(62,224,143,.22);
  border-radius: 999px;
  color: #dcece5;
  background: rgba(255,255,255,.035);
  font-size: 12px;
  white-space: nowrap;
}

.action-detail-live .pulse-dot {
  width: 9px;
  height: 9px;
}

#actionDetailContent {
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.action-detail-content {
  position: relative;
  overflow: hidden;
  padding: 0 0 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.action-detail-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 300px;
  margin-bottom: 20px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 27px;
  background:
    radial-gradient(circle at 85% 15%, rgba(62,224,143,.20), transparent 30%),
    radial-gradient(circle at 8% 95%, rgba(53,122,255,.11), transparent 35%),
    linear-gradient(125deg, #0b1714 0%, #10221b 50%, #0a1411 100%);
  box-shadow: 0 22px 65px rgba(0,0,0,.25);
}

.action-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,10,7,.78) 0%, rgba(3,10,7,.35) 58%, rgba(3,10,7,.10) 100%),
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(255,255,255,.018) 29px 30px);
  pointer-events: none;
}

.action-detail-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.action-detail-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #70f3bc;
  background: rgba(20,191,129,.14);
  border: 1px solid rgba(62,224,143,.18);
  font-size: 12px;
  font-weight: 700;
}

.action-detail-category svg {
  width: 15px;
  height: 15px;
}

.action-detail-title {
  margin: 0;
  max-width: 680px;
  color: #f4faf7;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.action-detail-description {
  max-width: 660px;
  margin: 17px 0 0;
  color: #b8c9c1;
  font-size: 16px;
  line-height: 1.55;
}

.action-detail-hero-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(62,224,143,.27);
  border-radius: 24px;
  color: #58efad;
  background: rgba(22,132,95,.18);
  box-shadow: inset 0 0 35px rgba(62,224,143,.06);
}

.action-detail-hero-icon svg {
  width: 40px;
  height: 40px;
}

.action-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.action-detail-stat {
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: 0 10px 32px rgba(0,0,0,.15);
}

.action-stat-icon,
.action-organizer-icon,
.action-support-icon,
.action-about-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(62,224,143,.11);
  color: #50e8a7;
}

.action-stat-icon svg,
.action-organizer-icon svg,
.action-support-icon svg,
.action-about-icon svg {
  width: 20px;
  height: 20px;
}

.action-stat-icon.date { color: #84aaff; background: rgba(74,116,255,.13); }
.action-stat-icon.time { color: #c681ff; background: rgba(156,77,255,.13); }
.action-stat-icon.people { color: #55e9ad; background: rgba(62,224,143,.12); }

.action-stat-label {
  display: block;
  margin-bottom: 4px;
  color: #9caea6;
  font-size: 11px;
}

.action-detail-stat strong {
  display: block;
  color: #edf7f2;
  font-size: 15px;
  line-height: 1.3;
}

.action-detail-organizer,
.action-detail-support,
.action-detail-about {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
}

.action-detail-organizer .action-organizer-icon,
.action-detail-support .action-support-icon,
.action-detail-about .action-about-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 18px;
}

.action-detail-organizer small {
  display: block;
  margin-bottom: 4px;
  color: #9db1a8;
  font-size: 12px;
}

.action-detail-organizer strong {
  display: block;
  color: #eef8f3;
  font-size: 17px;
}

.action-detail-organizer em {
  display: inline-block;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #65edb2;
  background: rgba(62,224,143,.10);
  font-size: 10px;
  font-style: normal;
}

.action-detail-support {
  border-color: rgba(55,157,255,.42);
  background: linear-gradient(135deg, rgba(27,105,168,.18), rgba(255,255,255,.025));
}

.action-detail-support .action-support-icon {
  color: #81baff;
  background: rgba(60,143,255,.14);
}

.action-detail-support strong,
.action-detail-about strong {
  display: block;
  color: #edf7f2;
  font-size: 17px;
}

.action-detail-support p,
.action-detail-about p {
  margin: 7px 0 0;
  color: #aebfb8;
  font-size: 14px;
  line-height: 1.5;
}

.action-detail-about {
  align-items: flex-start;
}

.action-detail-about .action-about-icon {
  color: #58eaa9;
}

.action-detail-join {
  position: sticky;
  bottom: 86px;
  z-index: 20;
  width: 100%;
  min-height: 58px;
  margin-top: 20px;
  border-radius: 18px;
  font-size: 17px;
  box-shadow: 0 16px 38px rgba(0,0,0,.28), 0 0 24px rgba(62,224,143,.10);
}

@media (max-width: 760px) {
  #actionDetailScreen .action-detail-page {
    padding-top: 0;
  }

  .action-detail-topbar {
    min-height: 68px;
    margin-bottom: 12px;
  }

  .action-detail-hero {
    min-height: 318px;
    align-items: flex-end;
    padding: 23px;
    border-radius: 23px;
  }

  .action-detail-hero-icon {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .action-detail-hero-icon svg {
    width: 30px;
    height: 30px;
  }

  .action-detail-title {
    max-width: calc(100% - 12px);
    font-size: 2rem;
  }

  .action-detail-description {
    font-size: 14px;
  }

  .action-detail-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }

  .action-detail-stat {
    min-width: 0;
    min-height: 126px;
    padding: 14px 10px;
    border-radius: 17px;
  }

  .action-detail-stat .action-stat-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 13px;
  }

  .action-detail-stat .action-stat-label {
    font-size: 9px;
  }

  .action-detail-stat strong {
    font-size: 12px;
    line-height: 1.25;
  }

  .action-detail-live {
    padding: 8px 10px;
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .action-detail-brand strong {
    font-size: 17px;
  }

  .action-detail-brand-mark {
    width: 40px;
    height: 40px;
  }

  .action-detail-live {
    display: none;
  }

  .action-detail-topbar {
    grid-template-columns: 42px 1fr;
  }

  .action-detail-hero {
    min-height: 320px;
  }

  .action-detail-stats {
    gap: 9px;
  }

  .action-detail-stat {
    min-height: 119px;
    padding: 14px;
    border-radius: 17px;
  }

  .action-detail-organizer,
  .action-detail-support,
  .action-detail-about {
    padding: 16px;
    border-radius: 18px;
  }

  .action-detail-join {
    bottom: 82px;
    min-height: 55px;
  }
}


/* =========================================================
   CREATE ACTIVITY — MOBILE HACKATHON POLISH
   ========================================================= */

#createActivityScreen .container.narrow {
  max-width: 760px;
}

#createActivityScreen .screen-head {
  padding-bottom: 18px;
}

#createActivityScreen .screen-title {
  letter-spacing: -.045em;
}

#createActivityForm.project-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(62,224,143,.10), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

#createActivityForm .form-field {
  min-width: 0;
}

#createActivityForm .form-field label {
  display: block;
  margin-bottom: 8px;
  color: #cbd9d3;
  font-size: 12px;
  font-weight: 600;
}

#createActivityForm .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#createActivityForm input,
#createActivityForm select,
#createActivityForm textarea {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: #f3faf6;
  background: rgba(3,8,6,.62);
  font: inherit;
}

#createActivityForm input,
#createActivityForm select {
  min-height: 50px;
  padding: 0 14px;
}

#createActivityForm textarea {
  min-height: 125px;
  padding: 13px 14px;
  resize: vertical;
}

#createActivityForm input::placeholder,
#createActivityForm textarea::placeholder {
  color: #788982;
}

#createActivityForm input:focus,
#createActivityForm select:focus,
#createActivityForm textarea:focus {
  border-color: rgba(62,224,143,.55);
  box-shadow: 0 0 0 4px rgba(62,224,143,.08);
  outline: none;
}

#createActivityForm .form-actions {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 12px;
  padding-top: 4px;
}

#createActivityForm .form-actions button {
  min-height: 54px;
  border-radius: 16px;
  touch-action: manipulation;
}

#createActivityForm #cancelCreateActivity {
  position: relative;
  z-index: 5;
  cursor: pointer;
  pointer-events: auto;
}

#createActivityForm .btn-primary {
  box-shadow: 0 14px 32px rgba(62,224,143,.13);
}

/* Detail hero image */
.action-detail-hero {
  isolation: isolate;
}

.action-detail-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--action-image);
  background-size: cover;
  background-position: center;
  opacity: .78;
  pointer-events: none;
}

.action-detail-hero::before {
  z-index: 1;
}

.action-detail-hero-copy,
.action-detail-hero-icon {
  z-index: 2;
}

.action-detail-hero-image + .action-detail-hero-copy {
  position: relative;
}

/* =========================================================
   ACTION CARDS — VISUAL THUMBNAILS
   ========================================================= */

#civicActionsList .action-card {
  overflow: hidden;
}

#civicActionsList .action-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 118px;
  margin: -20px -20px 4px;
  width: calc(100% + 40px);
  background:
    radial-gradient(circle at 75% 20%, rgba(62,224,143,.28), transparent 28%),
    linear-gradient(135deg, rgba(62,224,143,.13), rgba(44,76,64,.08));
  border-bottom: 1px solid rgba(255,255,255,.07);
}

@media (max-width: 760px) {
  #createActivityForm.project-form {
    padding: 18px;
    gap: 15px;
    border-radius: 22px;
  }

  #createActivityForm .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #createActivityForm .form-actions {
    grid-template-columns: 1fr 1.45fr;
    position: relative;
    z-index: 5;
  }

  #createActivityForm .form-actions button {
    min-height: 52px;
  }

  .action-detail-hero-image {
    opacity: .42;
  }

  .action-detail-hero::before {
    background:
      linear-gradient(90deg, rgba(3,10,7,.94) 0%, rgba(3,10,7,.67) 65%, rgba(3,10,7,.30) 100%),
      linear-gradient(0deg, rgba(3,10,7,.88) 0%, transparent 65%);
  }
}


/* =========================================================
   ACTIONS CARDS — IMAGE + COMPACT MOBILE LAYOUT
   ========================================================= */

#actionsScreen .action-card {
  overflow: hidden;
  padding: 0;
  min-height: 0;
  border-radius: 26px;
}

#actionsScreen .action-card-image {
  display: block;
  width: 100%;
  height: 165px;
  flex: 0 0 165px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 -55px 55px rgba(0,0,0,.18);
}

#actionsScreen .action-card > .action-icon {
  margin: 18px 18px 0;
}

#actionsScreen .action-card > .action-text {
  padding: 0 18px 20px;
}

#actionsScreen .action-card > .action-arrow {
  right: 18px;
  top: 183px;
}

@media (max-width: 600px) {
  #actionsScreen .action-card-image {
    height: 150px;
    flex-basis: 150px;
  }

  #actionsScreen .action-card > .action-icon {
    margin-top: 16px;
  }
}


/* =========================================================
   DETAIL HERO — SHOW MORE IMAGE, SMALLER LEFT TEXT
   ========================================================= */

.action-detail-hero {
  min-height: 330px;
  align-items: flex-end;
}

.action-detail-hero-image {
  opacity: .92;
}

.action-detail-hero::before {
  background:
    linear-gradient(
      90deg,
      rgba(3,10,7,.76) 0%,
      rgba(3,10,7,.48) 42%,
      rgba(3,10,7,.14) 78%,
      rgba(3,10,7,.04) 100%
    ),
    linear-gradient(
      0deg,
      rgba(3,10,7,.70) 0%,
      rgba(3,10,7,.08) 58%,
      rgba(3,10,7,.02) 100%
    );
}

.action-detail-hero-copy {
  width: min(58%, 650px);
  max-width: 58%;
}

.action-detail-title {
  max-width: 100%;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.action-detail-description {
  max-width: 100%;
  margin-top: 13px;
  font-size: 14px;
  line-height: 1.48;
}

.action-detail-category {
  margin-bottom: 11px;
}

.action-detail-hero-icon {
  align-self: flex-start;
  margin-top: 0;
  width: 68px;
  height: 68px;
}

@media (max-width: 760px) {
  .action-detail-hero {
    min-height: 350px;
  }

  .action-detail-hero-image {
    opacity: 1;
  }

  .action-detail-hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(3,10,7,.73) 0%,
        rgba(3,10,7,.43) 43%,
        rgba(3,10,7,.10) 100%
      ),
      linear-gradient(
        0deg,
        rgba(3,10,7,.72) 0%,
        rgba(3,10,7,.12) 58%,
        rgba(3,10,7,.02) 100%
      );
  }

  .action-detail-hero-copy {
    width: 62%;
    max-width: 62%;
  }

  .action-detail-title {
    font-size: clamp(1.55rem, 6.3vw, 2.15rem);
    line-height: 1.08;
  }

  .action-detail-description {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .action-detail-hero-icon {
    width: 58px;
    height: 58px;
  }
}

/* Remove the large legacy blank image block that was pushing the Flood detail card down. */
.action-detail-content::before {
  display: none !important;
}


/* =========================================================
   FINAL CIVIC ACTIONS POLISH
   ========================================================= */

/* The old decorative pseudo-image created an empty block above
   the real activity image. Hide it so the actual image fits
   directly inside the card. */
#actionsScreen .civic-action-card::before {
  display: none !important;
}

#actionsScreen .civic-action-card {
  padding: 0 !important;
  overflow: hidden;
}

#actionsScreen .civic-action-card .action-card-image {
  display: block;
  width: 100%;
  height: 170px;
  margin: 0 !important;
  flex: 0 0 170px;
  border: 0;
  border-radius: 0;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 0 -70px 70px rgba(0,0,0,.28);
}

#actionsScreen .civic-action-card .action-icon {
  margin: 17px 18px 0 !important;
}

#actionsScreen .civic-action-card .action-text {
  padding: 0 18px 20px !important;
}

#actionsScreen .civic-action-card .action-arrow {
  top: 185px;
  right: 18px;
}

@media (max-width: 600px) {
  #actionsScreen .civic-action-card .action-card-image {
    height: 155px;
    flex-basis: 155px;
  }

  #actionsScreen .civic-action-card .action-arrow {
    top: 170px;
  }
}

/* Give About → Join the same deliberate breathing room as
   Government Support → About. */
.action-detail-about {
  margin-bottom: 0 !important;
}

.action-detail-join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px !important;
  margin-bottom: 28px !important;

  /* Keep the button in normal document flow so it never covers About text. */
  position: relative !important;
  bottom: auto !important;
  z-index: 2;
}

@media (max-width: 760px) {
  .action-detail-join {
    margin-top: 32px !important;
    margin-bottom: 34px !important;
    position: relative !important;
    bottom: auto !important;
  }
}


/* =========================================================
   INTERACTION SAFETY NET — MOBILE + TOUCH
   ========================================================= */

.btn,
.link-btn,
.chip-btn,
.icon-btn,
.action-card,
.top-link,
.nav-item,
.brand,
.civic-ai-fab,
.ai-suggestion,
[data-goto],
[data-civic-action],
[data-action] {
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:disabled,
.icon-btn:disabled,
button:disabled {
  cursor: not-allowed;
}

.action-card,
.nav-item,
.btn,
.link-btn,
.chip-btn,
.icon-btn {
  position: relative;
  z-index: 1;
}

input,
select,
textarea,
label {
  pointer-events: auto;
}


/* =========================================================
   CIVIC OS — LIGHT CIVIC UI
   Accessible, calm public-service palette (isolated redesign)
   ========================================================= */
:root {
  color-scheme: light;
  --bg: #f5f8fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef5f4;
  --border: #e0e8ed;
  --border-strong: #cbd8df;
  --text: #172b3a;
  --muted: #536878;
  --subtle: #6b7f8d;
  --accent: #0f9f78;
  --accent-hover: #0b8766;
  --accent-ink: #ffffff;
  --accent-soft: #e0f5ed;
  --accent-line: #a9e3d0;
  --amber: #b86c08;
  --amber-soft: #fff2d8;
  --red: #c83f4d;
  --red-soft: #ffeaec;
  --st-reported: #526a79;
  --st-verified: #167453;
  --st-progress: #9a5b06;
  --st-resolved: #0f8766;
}
html, body {
  color: var(--text);
  background: var(--bg);
}
body {
  background:
    radial-gradient(70% 38% at 0% 0%, rgba(15,159,120,.09), transparent 72%),
    radial-gradient(55% 34% at 100% 0%, rgba(45,112,199,.06), transparent 72%),
    var(--bg);
  background-attachment: scroll;
}
.bg-grid {
  opacity: .25;
  background-image:
    linear-gradient(rgba(26,67,83,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,67,83,.045) 1px, transparent 1px);
}
.topbar {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--border);
  box-shadow: 0 3px 18px rgba(23,43,58,.045);
}
.glass,
.signal-card,
.action-card,
.flow-step,
.issue-card,
.portal-card,
.portal-tool-card,
.panel,
.ai-card,
.community-card,
.activity-card,
.stats-strip,
.stat,
.metric-card {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 7px 24px rgba(24,55,72,.055);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.glass {
  background: #fff;
}
.text-accent {
  background: linear-gradient(115deg, #0f9f78 0%, #1976c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow,
.pill,
.chip,
.top-link,
.portal-label {
  color: var(--muted);
}
.eyebrow {
  background: #e7f6f0;
  border-color: #b8e7d5;
  color: #087354;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15,159,120,.18);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.btn-ghost {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-ghost:hover:not(:disabled) {
  background: #f0f7f6;
}
.link-btn { color: #087d60; }
.link-btn:hover { color: #075d49; }
.icon-btn {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(23,43,58,.08);
}
.pill {
  background: #f1f5f8;
  border-color: #dce6eb;
}
.pill-high {
  color: #a62d3b;
  background: #ffeaec;
  border-color: #f2c1c7;
}
.pill-medium {
  color: #875000;
  background: #fff2d8;
  border-color: #f1d39c;
}
.pill-low { color: #176b52; background: #e7f6f0; }
.status-reported { color: #526a79; }
.status-verified {
  color: #176b52;
  background: #e7f6f0;
  border-color: #bfe7d6;
}
.status-in-progress {
  color: #875000;
  background: #fff2d8;
  border-color: #f1d39c;
}
.status-resolved {
  color: #087354;
  background: #e0f5ed;
  border-color: #b8e7d5;
}
.chip {
  background: #fff;
  border-color: var(--border);
  color: var(--muted);
}
.chip:hover {
  background: #f2f8f7;
  color: var(--text);
}
.chip[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
input, select, textarea,
.search input,
.input-wrap input,
.select select {
  color: var(--text);
  background: #fff;
  border-color: var(--border-strong);
}
input::placeholder, textarea::placeholder {
  color: #718593;
  opacity: 1;
}
select option { color: #172b3a; background: #fff; }
.top-link.active {
  color: #087354;
  background: #e7f6f0;
}
.nav-item { color: #536878; }
.nav-item.active {
  color: #087354;
  background: #e0f5ed;
}
.nav-report svg.lucide { color: var(--accent); }
.bottom-nav {
  background: rgba(255,255,255,.97) !important;
  border: 1px solid #dbe5eb !important;
  box-shadow: 0 -3px 22px rgba(23,43,58,.08) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.bottom-nav .nav-item { color: #536878 !important; }
.bottom-nav .nav-item.active {
  color: #087354 !important;
  background: #e0f5ed !important;
}
.bottom-nav .nav-report {
  color: #fff !important;
}
.bottom-nav .nav-report svg,
.bottom-nav .nav-report i { color: #fff !important; }
.issue-icon {
  background: #eef5f7;
  border-color: #dce7eb;
  color: #31566b;
}
.issue-icon.is-high {
  color: #b83243;
  background: #ffeaec;
  border-color: #f2c1c7;
}
.issue-icon.is-resolved {
  color: #087354;
  background: #e0f5ed;
  border-color: #b8e7d5;
}
.kicker { color: #087d60; }
.action-icon,
.portal-icon {
  color: #087d60;
  background: #e7f6f0;
  border-color: #bfe7d6;
}
.portal-card-government {
  border-color: #a9dfce;
  background: linear-gradient(150deg,#fff 0%,#f0fbf6 100%);
}
.ai-disclaimer {
  background: #f1f7f8;
  border-color: var(--border);
  color: var(--muted);
}
.ai-note {
  background: #eaf7f1;
  border-color: #c8eadc;
  color: #225b49;
}
.ai-warning {
  background: #fff6e6;
  border-color: #f1d7a8;
  color: #764900;
}
.location-status[data-kind="success"] { color: #087354; }
.location-status[data-kind="error"] { color: #b83243; }
.report-map-panel { background: #fff; }
.map-disclaimer, .map-legend, .unmapped-report-location {
  color: var(--muted);
}
.unmapped-report-row { color: var(--text); border-color: var(--border); }
.unmapped-report-row:hover { background: #f2f8f7; }
.confidence-track { background: #e6edf1; }
.confidence-fill { background: var(--accent); }
.chart-grid, .grid-line { stroke: #dbe5eb; }
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero { gap: 22px; padding-top: 26px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { min-height: 48px; }
  .action-grid { gap: 12px; }
  .action-card { box-shadow: 0 4px 16px rgba(24,55,72,.05); }
  .block { margin-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   UX FIXES — readable text and a clearly visible Report CTA
   ========================================================= */
:root {
  --muted: #526878;
  --subtle: #526878;
  --text: #172b3a;
}

.btn-primary {
  color: #062d22;
  background: #3ee08f;
  border-color: #20bf75;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(8, 125, 96, 0.24);
}

.btn-primary:hover:not(:disabled) {
  color: #062d22;
  background: #62eaa6;
  box-shadow: 0 8px 24px rgba(8, 125, 96, 0.3);
  transform: translateY(-1px);
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.nav-item:focus-visible,
.top-link:focus-visible {
  outline: 3px solid #087d60;
  outline-offset: 3px;
}

.bottom-nav .nav-report {
  color: #ffffff !important;
  background: #087d60 !important;
  border: 1px solid #06694f !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 18px rgba(8, 125, 96, 0.28) !important;
}

.bottom-nav .nav-report svg,
.bottom-nav .nav-report i,
.bottom-nav .nav-report span {
  color: #ffffff !important;
}

.bottom-nav .nav-report:hover,
.bottom-nav .nav-report:focus-visible {
  background: #06694f !important;
}

.field-hint,
.field-foot .counter,
.ai-label,
.stat-label,
.issue-meta,
.action-desc,
.portal-label,
.screen-sub {
  color: #526878;
}

input::placeholder,
textarea::placeholder,
.civic-ai-input input::placeholder {
  color: #617786;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary,
  .bottom-nav .nav-report {
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }
}


/* =========================================================
   ACCESSIBILITY FIX — make every button label easy to read
   ========================================================= */
button,
.btn,
.link-btn,
.chip-btn,
.icon-btn,
.ai-suggestion,
.skill-chip,
.chip,
.top-link,
.nav-item,
.civic-ai-upload {
  font-weight: 700;
  text-shadow: none;
}

.btn-ghost,
.link-btn,
.chip-btn,
.chip,
.top-link,
.nav-item,
.skill-chip {
  color: #173447;
}

.btn-ghost,
.chip-btn,
.chip {
  background-color: #ffffff;
  border-color: #a9bac5;
}

.btn-ghost:hover:not(:disabled),
.chip-btn:hover:not(:disabled),
.chip:hover {
  color: #102c3c;
  background-color: #eaf4f6;
  border-color: #607f91;
}

.chip[aria-pressed="true"] {
  color: #ffffff;
  background-color: #075f49;
  border-color: #075f49;
}

.ai-suggestion {
  color: #f4fff8;
  background-color: #243c48;
  border-color: #617987;
  font-size: 12px;
}

.ai-suggestion:hover,
.ai-suggestion:focus-visible {
  color: #ffffff;
  background-color: #145d49;
  border-color: #3ee08f;
}

button:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.chip-btn:focus-visible,
.ai-suggestion:focus-visible,
.link-btn:focus-visible {
  outline: 3px solid #087d60;
  outline-offset: 3px;
}

button:disabled,
.btn:disabled {
  color: #526878;
  opacity: 0.8;
}


/* =========================================================
   ACCESSIBILITY PASS — HIGH-CONTRAST CIVIC ACTIONS
   Keep this block last so it overrides legacy light-theme
   declarations and makes all action controls readable.
   ========================================================= */

/* Civic Actions headings use the same shared .screen-title, .block-title,
   and .screen-sub styles as the rest of the site. Avoid page-specific overrides. */

#actionsScreen .hero-actions {
  margin: 8px 0 26px;
}

#actionsScreen .hero-actions .btn-primary,
#actionsScreen #createActionBtn {
  color: #04140b !important;
  background: #55eda0 !important;
  border: 1px solid #8af6bd !important;
  box-shadow: 0 8px 24px rgba(28, 190, 111, .28) !important;
  font-weight: 750;
}

#actionsScreen .hero-actions .btn-primary:hover,
#actionsScreen #createActionBtn:hover {
  background: #8af6bd !important;
}

/* White activity cards match the rest of Civic OS while retaining clear text contrast. */
#actionsScreen .civic-action-card {
  color: #172b3a !important;
  background: #ffffff !important;
  border: 1px solid #dce7e5 !important;
  box-shadow: 0 7px 22px rgba(24, 55, 72, .07) !important;
}

#actionsScreen .civic-action-card:hover,
#actionsScreen .civic-action-card:focus-visible {
  color: #172b3a !important;
  background: #f5fbf8 !important;
  border-color: #9dd9bd !important;
  box-shadow: 0 11px 28px rgba(24, 55, 72, .11), 0 0 0 1px rgba(8, 125, 96, .08) !important;
}

#actionsScreen .civic-action-card .action-title {
  color: #172b3a !important;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}

#actionsScreen .civic-action-card .action-desc {
  color: #526878 !important;
  font-size: 13.5px;
  line-height: 1.55;
}

#actionsScreen .civic-action-card .action-meta {
  color: #607785 !important;
  font-size: 12px;
}

#actionsScreen .civic-action-card .action-meta svg {
  color: #087d60 !important;
}

#actionsScreen .civic-action-card .action-icon {
  color: #087d60 !important;
  background: #e7f6f0 !important;
  border: 1px solid #bfe7d6 !important;
}

#actionsScreen .civic-action-card .action-arrow {
  color: #087d60 !important;
}

#actionsScreen .civic-action-card .action-card-image {
  /* Brighter photos sit more naturally against the white activity cards. */
  filter: saturate(1.04) brightness(1.22);
  box-shadow: none !important;
  position: relative;
}

#actionsScreen .civic-action-card .action-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Use only a barely-there lower fade; the old shadow made photos look muddy. */
  background: linear-gradient(180deg, rgba(4,15,10,0) 40%, rgba(4,15,10,.045) 100%);
  pointer-events: none;
}

#actionsScreen .btn-ghost,
#actionsScreen .btn:not(.btn-primary) {
  color: #f0faf4 !important;
  background: #17382b !important;
  border: 1px solid #4f9c73 !important;
}

#actionsScreen .btn-ghost:hover,
#actionsScreen .btn:not(.btn-primary):hover {
  color: #ffffff !important;
  background: #20533b !important;
  border-color: #73e5a4 !important;
}

#actionsScreen .civic-action-card:focus-visible,
#actionsScreen button:focus-visible {
  outline: 3px solid #087d60 !important;
  outline-offset: 4px !important;
}

/* Activity detail screen: consistent dark surfaces and readable metadata. */
#actionDetailScreen .action-detail-content {
  color: #f4fbf7 !important;
  background: linear-gradient(180deg, #10271e 0%, #08140f 100%) !important;
  border-color: rgba(106,239,169,.28) !important;
}

#actionDetailScreen .action-detail-content .screen-title,
#actionDetailScreen .action-detail-content h2,
#actionDetailScreen .action-detail-content h3,
#actionDetailScreen .action-detail-content strong {
  color: #ffffff !important;
}

#actionDetailScreen .action-detail-content .screen-sub,
#actionDetailScreen .action-detail-content p,
#actionDetailScreen .action-detail-content li {
  color: #d0ded7 !important;
}

#actionDetailScreen .action-info-card,
#actionDetailScreen .action-detail-content .glass {
  color: #f4fbf7 !important;
  background: #11291f !important;
  border-color: rgba(106,239,169,.22) !important;
}

#actionDetailScreen .link-btn,
#actionDetailScreen .action-detail-content a {
  color: #79f2b1 !important;
}

#actionDetailScreen .action-detail-back,
#actionDetailScreen .action-detail-brand {
  color: #f4fbf7 !important;
}

/* General secondary buttons: avoid white-on-white and pale text. */
.btn-ghost {
  color: #f3faf6;
  background: #17382b;
  border-color: #4f9c73;
}

.btn-ghost:hover:not(:disabled) {
  color: #ffffff;
  background: #20533b;
  border-color: #73e5a4;
}

@media (max-width: 600px) {
  #actionsScreen .civic-action-card .action-title {
    font-size: 15.5px;
  }

  #actionsScreen .civic-action-card .action-desc {
    font-size: 13px;
  }

  #actionsScreen .hero-actions .btn {
    width: 100%;
  }
}


/* =========================================================
   DASHBOARD REPORT MAP — pins + selected report side panel
   ========================================================= */
#dashboardScreen .dashboard-map-panel {
  margin: 24px 0 30px;
  padding: 22px;
  color: #172b3a;
  background: #ffffff;
  border: 1px solid #d8e5e8;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(24,55,72,.07);
}
#dashboardScreen .dashboard-map-panel-head {
  align-items: center;
  margin-bottom: 18px;
}
#dashboardScreen .dashboard-map-panel .panel-title {
  color: #172b3a;
  font-size: 21px;
}
#dashboardScreen .dashboard-map-panel .panel-sub {
  color: #526878;
  line-height: 1.5;
}
.dashboard-map-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 10px;
  color: #075f49;
  background: #e4f8ed;
  border: 1px solid #aee5c8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}
.dashboard-map-count svg {
  width: 14px;
  height: 14px;
}
.dashboard-map-count.is-small {
  padding: 4px 8px;
  font-size: 11px;
}
.dashboard-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr);
  gap: 18px;
  align-items: stretch;
}
.dashboard-map-column,
.dashboard-map-side {
  min-width: 0;
}
.dashboard-map-canvas {
  width: 100%;
  min-height: 470px;
  height: clamp(390px, 42vw, 540px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,159,120,.06), transparent 45%),
    #e9f0ed;
  border: 1px solid #d7e2e0;
  border-radius: 16px;
  z-index: 0;
}
.dashboard-map-canvas .leaflet-control-attribution {
  font-size: 10px;
}
.dashboard-map-status {
  margin: 10px 2px 0;
  color: #526878;
  font-size: 12px;
  line-height: 1.5;
}
.dashboard-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 13px;
  margin-top: 12px;
  color: #526878;
  font-size: 11px;
}
.dashboard-map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-legend-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  border: 2px solid transparent;
}
.map-legend-dot.is-reported { background: #64748b; }
.map-legend-dot.is-verified { background: #2563eb; }
.map-legend-dot.is-progress { background: #b86c08; }
.map-legend-dot.is-resolved { background: #0f9f78; }
.map-legend-dot.is-high { background: #fff; border-color: #b83243; }

.dashboard-map-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dashboard-map-selection,
.dashboard-unpinned-section {
  min-width: 0;
  padding: 16px;
  background: #f7faf9;
  border: 1px solid #dce7e4;
  border-radius: 16px;
}
.dashboard-map-empty-selection {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}
.dashboard-map-empty-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #087d60;
  background: #e2f6ec;
  border: 1px solid #bce7d0;
  border-radius: 12px;
}
.dashboard-map-empty-icon svg {
  width: 19px;
  height: 19px;
}
.dashboard-map-empty-selection strong {
  color: #173447;
  font-size: 15px;
}
.dashboard-map-empty-selection p {
  margin: 0;
  color: #526878;
  font-size: 13px;
  line-height: 1.55;
}
.dashboard-map-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.dashboard-map-issue-id {
  color: #087d60;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}
.dashboard-map-reported-time {
  color: #687d88;
  font-size: 11px;
}
.dashboard-map-detail-title {
  margin: 0 0 10px;
  color: #172b3a;
  font-size: 17px;
  line-height: 1.35;
}
.dashboard-map-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.dashboard-map-description {
  margin: 0 0 14px;
  color: #3e5665;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.dashboard-map-location {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  background: #fff;
  border: 1px solid #dce7e4;
  border-radius: 12px;
}
.dashboard-map-location > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 2px;
  color: #087d60;
}
.dashboard-map-location strong {
  display: block;
  color: #173447;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.dashboard-map-location small {
  display: block;
  margin-top: 4px;
  color: #637b86;
  font-size: 11px;
  line-height: 1.4;
}
.dashboard-map-facts {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #526878;
  font-size: 12px;
}
.dashboard-map-facts span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dashboard-map-facts svg {
  width: 14px;
  height: 14px;
  color: #087d60;
}
.dashboard-map-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.dashboard-map-detail-actions .btn {
  min-height: 38px;
  font-size: 12px;
}
#dashboardScreen .dashboard-map-detail-actions .btn-ghost {
  color: #173447 !important;
  background: #ffffff !important;
  border: 1px solid #a9bac5 !important;
}
#dashboardScreen .dashboard-map-detail-actions .btn-primary {
  color: #ffffff !important;
  background: #087d60 !important;
}
.dashboard-unpinned-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.dashboard-unpinned-head h4 {
  margin: 0;
  color: #173447;
  font-size: 13px;
  line-height: 1.35;
}
.dashboard-unpinned-help {
  margin: 0 0 11px;
  color: #637783;
  font-size: 11px;
  line-height: 1.5;
}
.dashboard-unpinned-list {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
  padding-right: 3px;
}
.dashboard-unpinned-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px;
  color: #173447 !important;
  text-align: left;
  background: #ffffff !important;
  border: 1px solid #e0e9e6 !important;
  border-radius: 10px;
  cursor: pointer;
}
.dashboard-unpinned-row:hover,
.dashboard-unpinned-row:focus-visible {
  background: #eaf7f0 !important;
  border-color: #9adab8 !important;
}
.dashboard-unpinned-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.dashboard-unpinned-copy strong {
  color: #173447;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.dashboard-unpinned-copy small {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #617786;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.dashboard-unpinned-copy small svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}
.dashboard-unpinned-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #087d60;
}
.dashboard-map-all-pinned {
  margin: 0;
  color: #176b52;
  font-size: 12px;
}
.dashboard-map-fallback {
  min-height: 100%;
  height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #526878;
  text-align: center;
}
.dashboard-map-fallback svg {
  width: 30px;
  height: 30px;
  color: #087d60;
}
.dashboard-map-fallback strong {
  color: #173447;
}
.dashboard-map-fallback span {
  max-width: 260px;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .dashboard-map-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-map-canvas {
    min-height: 380px;
    height: 420px;
  }
  .dashboard-map-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}
@media (max-width: 640px) {
  #dashboardScreen .dashboard-map-panel {
    padding: 14px;
    border-radius: 17px;
  }
  #dashboardScreen .dashboard-map-panel-head {
    align-items: flex-start;
  }
  .dashboard-map-panel-head .panel-head {
    align-items: flex-start;
  }
  .dashboard-map-count {
    font-size: 10px;
    padding: 6px 8px;
  }
  .dashboard-map-canvas {
    min-height: 330px;
    height: 350px;
  }
  .dashboard-map-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-map-selection,
  .dashboard-unpinned-section {
    padding: 13px;
  }
  .dashboard-map-detail-actions .btn {
    flex: 1 1 auto;
  }
}


/* =========================================================
   CIVIC ACTION DETAIL — HEADER CONTRAST + BRIGHTER PHOTOS
   Final overrides for desktop and mobile layouts.
   ========================================================= */

/* The detail header sits on a light page, so keep its controls dark and clear. */
#actionDetailScreen .action-detail-back {
  color: #000000 !important;
  background: #e7f6ee !important;
  border: 1px solid #93cdb0 !important;
  box-shadow: 0 3px 12px rgba(7, 95, 73, .12) !important;
}

#actionDetailScreen .action-detail-back svg {
  color: #000000 !important;
  stroke: currentColor !important;
}

#actionDetailScreen .action-detail-back:hover,
#actionDetailScreen .action-detail-back:focus-visible {
  color: #000000 !important;
  background: #cceedd !important;
  border-color: #55b987 !important;
}

#actionDetailScreen .action-detail-brand,
#actionDetailScreen .action-detail-brand strong {
  color: #000000 !important;
  text-shadow: none !important;
}

#actionDetailScreen .action-detail-brand:focus-visible {
  outline: 3px solid #087d60 !important;
  outline-offset: 4px !important;
  border-radius: 8px;
}

/* Lift the activity card photos noticeably and remove any leftover dark fade. */
#actionsScreen .civic-action-card .action-card-image {
  filter: saturate(1.1) brightness(1.4) contrast(.97) !important;
  box-shadow: none !important;
}

#actionsScreen .civic-action-card .action-card-image::after {
  background: none !important;
}

/* The selected activity uses its own hero image and several legacy dark overlays.
   Keep the photograph bright while retaining just enough shading for white hero text. */
#actionDetailScreen .action-detail-hero-image {
  opacity: 1 !important;
  filter: brightness(1.38) saturate(1.1) contrast(.97) !important;
}

#actionDetailScreen .action-detail-hero::before {
  background:
    linear-gradient(90deg, rgba(3,10,7,.24) 0%, rgba(3,10,7,.08) 58%, rgba(3,10,7,0) 100%),
    linear-gradient(0deg, rgba(3,10,7,.18) 0%, rgba(3,10,7,.025) 58%, rgba(3,10,7,0) 100%) !important;
}

#actionDetailScreen .action-detail-title,
#actionDetailScreen .action-detail-description {
  text-shadow: 0 1px 4px rgba(0,0,0,.24);
}


/* =========================================================
   HOME PAGE — LIGHT CIVIC AI RECOMMENDATION
   ========================================================= */
.signal-ai {
  color: #23483a !important;
  background: linear-gradient(135deg, #eaf8f0 0%, #f6fcf8 100%) !important;
  border: 1px solid #b9e4ce !important;
  box-shadow: 0 4px 14px rgba(8, 125, 96, .07) !important;
}

.signal-ai .signal-ai-label {
  color: #087354 !important;
  font-weight: 800;
}

.signal-ai .signal-ai-label svg {
  color: #0f9f78 !important;
}

.signal-ai p {
  color: #294b3e !important;
  line-height: 1.6;
}


/* =========================================================
   CREATE ACTIVITY FORM — BLACK LABELS AND LIGHT FIELDS
   ========================================================= */
#createActivityScreen #createActivityForm .form-field > label {
  color: #000000 !important;
  font-weight: 750 !important;
}

#createActivityScreen #createActivityForm input,
#createActivityScreen #createActivityForm select,
#createActivityScreen #createActivityForm textarea {
  color: #000000 !important;
  background: #ffffff !important;
  border: 1px solid #cbd8df !important;
}

#createActivityScreen #createActivityForm select option {
  color: #000000 !important;
  background: #ffffff !important;
}

#createActivityScreen #createActivityForm input::placeholder,
#createActivityScreen #createActivityForm textarea::placeholder {
  color: #526878 !important;
  opacity: 1 !important;
}

#createActivityScreen #createActivityForm input:focus,
#createActivityScreen #createActivityForm select:focus,
#createActivityScreen #createActivityForm textarea:focus {
  border-color: #0f9f78 !important;
  box-shadow: 0 0 0 3px rgba(15, 159, 120, .15) !important;
  outline: none;
}


/* =========================================================
   CREATE ACTIVITY FORM — WHITE SURFACE HIGH CONTRAST
   The form card must be light as well as the labels; black
   text on the old dark green surface had insufficient contrast.
   ========================================================= */
#createActivityScreen #createActivityForm {
  color: #000000 !important;
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #d4e1e6 !important;
  box-shadow: 0 10px 30px rgba(23, 43, 58, .08) !important;
}

#createActivityScreen #createActivityForm .form-field > label {
  color: #000000 !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-shadow: none !important;
}

#createActivityScreen #createActivityForm input,
#createActivityScreen #createActivityForm select,
#createActivityScreen #createActivityForm textarea {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  background-color: #ffffff !important;
  border: 1px solid #bacbd3 !important;
  box-shadow: none;
}

#createActivityScreen #createActivityForm select option,
#createActivityScreen #createActivityForm optgroup {
  color: #000000 !important;
  background-color: #ffffff !important;
}

#createActivityScreen #createActivityForm input::placeholder,
#createActivityScreen #createActivityForm textarea::placeholder {
  color: #536878 !important;
  -webkit-text-fill-color: #536878 !important;
  opacity: 1 !important;
}

#createActivityScreen #createActivityForm input:focus,
#createActivityScreen #createActivityForm select:focus,
#createActivityScreen #createActivityForm textarea:focus {
  border-color: #0f9f78 !important;
  box-shadow: 0 0 0 3px rgba(15, 159, 120, .15) !important;
  outline: none !important;
}

#createActivityScreen #createActivityForm .form-field,
#createActivityScreen #createActivityForm .form-field p,
#createActivityScreen #createActivityForm .form-field small {
  color: #000000;
}


/* =========================================================
   CIVIC AI CHAT — SENT ATTACHMENT PREVIEWS
   ========================================================= */
.civic-ai-message-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(62, 224, 143, .2);
  border-radius: 12px;
  background: rgba(5, 20, 13, .26);
}

.civic-ai-image-attachment {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.civic-ai-message-attachment img {
  display: block;
  width: 100%;
  max-width: 260px;
  max-height: 220px;
  object-fit: contain;
  object-position: left center;
  border-radius: 9px;
  background: rgba(0, 0, 0, .16);
}

.civic-ai-attachment-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.civic-ai-attachment-copy strong {
  margin: 0 !important;
  color: #f5fff9;
  font-size: 12px;
}

.civic-ai-attachment-copy small {
  display: block;
  max-width: 250px;
  color: rgba(235, 246, 239, .72);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.civic-ai-file-attachment > svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  color: #72e7aa;
}

.civic-ai-attachment-note {
  margin-bottom: 8px !important;
  padding: 9px 10px;
  border-radius: 10px;
  color: rgba(235, 246, 239, .82);
  background: rgba(62, 224, 143, .07);
  border: 1px solid rgba(62, 224, 143, .13);
  font-size: 12px;
}

.civic-ai-attachment-note strong {
  display: inline !important;
  margin: 0 !important;
  color: #8bf0b8;
}

.civic-ai-send:disabled {
  opacity: .55;
  cursor: progress;
  transform: none;
}


/* Civic OS account dialog — matches the existing component styling */
.civic-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 9, 6, .76);
  backdrop-filter: blur(10px);
}
.civic-auth-backdrop[hidden] { display: none !important; }
.civic-auth-card {
  position: relative;
  width: min(100%, 460px);
  max-height: min(88dvh, 760px);
  overflow-y: auto;
  padding: clamp(22px, 5vw, 32px);
  border: 1px solid rgba(62, 224, 143, .24);
  border-radius: 22px;
  background: #0c1912;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .48);
}
.civic-auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: #effff5;
  font-size: 25px;
  cursor: pointer;
}
.civic-auth-copy, .civic-auth-footnote {
  color: rgba(235, 246, 239, .76);
  font-size: 13px;
  line-height: 1.6;
}
.civic-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.civic-auth-label { display: block; margin: 13px 0 6px; color: #e8f6ed; font-size: 12px; font-weight: 600; }
.civic-auth-card input {
  display: block;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: #f3fff7;
  font: inherit;
}
.civic-auth-card input::placeholder { color: rgba(235,246,239,.48); }
.civic-auth-card input:focus { outline: 2px solid rgba(62,224,143,.65); outline-offset: 1px; }
.civic-auth-message { min-height: 18px; margin: 12px 0; color: #8bf0b8; font-size: 12px; line-height: 1.5; }
.civic-auth-message.is-error { color: #ff9d9d; }
.civic-auth-footnote { margin: 15px 0 0; font-size: 11px; }
body.civic-auth-open { overflow: hidden; }
