/* ESTILOS DA PÁGINA */
/* minhas-denuncias.html — lista de denúncias do cidadão
   Complementa css/base.css (não repete o que já está lá). */

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 600;
}

.btn-ghost:hover {
  color: var(--orange);
}

.btn-sm {
  padding: 7px 12px;
  font-size: clamp(12px, 1vw, 13px);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}

.user-name {
  font-size: clamp(12.5px, 1vw, 13.5px);
  font-weight: 700;
}

main {
  width: min(1180px, 92%);
  margin: 0 auto;
  flex: 1;
  padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 5vw, 60px);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 2.6vw, 28px);
}

.page-label {
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 6px;
}

.page-title {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0 0 6px;
  line-height: 1.15;
}

.page-subtitle {
  color: var(--muted);
  font-size: clamp(13.5px, 1.15vw, 15px);
  margin: 0;
  line-height: 1.5;
}

/* STATS */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 16px);
  margin-bottom: clamp(20px, 2.6vw, 28px);
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(16px, 2vw, 22px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  flex: none;
}

.stat-icon i {
  width: 17px;
  height: 17px;
}

.stat-icon.blue {
  background: var(--info-soft);
  color: var(--info);
}

.stat-icon.green {
  background: var(--success-soft);
  color: var(--success);
}

.stat-icon.yellow {
  background: var(--warning-soft);
  color: var(--warning);
}

.stat-label {
  font-size: clamp(12px, 1vw, 13px);
  color: var(--muted);
  font-weight: 600;
}

.stat-value {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.1;
}

/* FILTER TABS */

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-bottom: clamp(16px, 2vw, 22px);
  width: fit-content;
  max-width: 100%;
}

.filter-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 9px;
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-tab:hover:not(.active) {
  color: var(--orange);
}

.filter-tab.active {
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(50, 38, 20, 0.08);
}

html[data-theme="dark"] .filter-tab.active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.filter-tab .count {
  color: var(--muted);
  font-weight: 600;
  margin-left: 4px;
  font-size: 0.9em;
}

/* REPORT LIST */

.report-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(16px, 2vw, 22px);
  box-shadow: var(--shadow);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(14px, 2vw, 20px);
  align-items: start;
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--input-border);
}

.report-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  flex: none;
}

.report-icon i {
  width: 22px;
  height: 22px;
}

.report-body {
  min-width: 0;
}

.report-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.report-protocol {
  font-family: monospace;
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
}

.report-date {
  font-size: clamp(11.5px, 0.95vw, 12.5px);
  color: var(--muted);
  font-weight: 600;
}

.report-title {
  font-size: clamp(14.5px, 1.25vw, 16px);
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}

.report-desc {
  color: var(--muted);
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: clamp(11.5px, 0.95vw, 12.5px);
  color: var(--muted);
}

.report-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.report-meta i {
  width: 13px;
  height: 13px;
  color: var(--orange);
}

.report-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* STATUS BADGE */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: clamp(11px, 0.9vw, 12px);
  font-weight: 700;
  white-space: nowrap;
}

.badge i {
  width: 12px;
  height: 12px;
}

.severity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(11px, 0.9vw, 12px);
  color: var(--muted);
  font-weight: 600;
}

.severity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.sev-pequeno {
  background: #84cc16;
}

.sev-medio {
  background: #f59e0b;
}

.sev-grande {
  background: #f97316;
}

.sev-muito-grande {
  background: #dc2626;
}

/* EMPTY STATE */

.empty {
  background: var(--card-bg);
  border: 1px dashed var(--input-border);
  border-radius: 16px;
  padding: clamp(36px, 5vw, 60px) 24px;
  text-align: center;
}

.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.empty-icon i {
  width: 30px;
  height: 30px;
}

.empty h3 {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 800;
  margin: 0 0 8px;
}

.empty p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: clamp(13px, 1.05vw, 14px);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* MODAL */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

.modal-head {
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.2px;
}

.modal-sub {
  color: var(--muted);
  font-size: clamp(12.5px, 1vw, 13.5px);
  margin: 4px 0 0;
}

.modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px;
  border-radius: 8px;
}

.modal-close:hover {
  color: var(--orange);
  background: var(--card-soft);
}

.modal-body {
  padding: 20px 24px;
}

.modal-foot {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.info-item {
  padding: 12px 14px;
  background: var(--card-soft);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.info-item .label {
  font-size: clamp(11px, 0.9vw, 11.5px);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.info-item .value {
  font-size: clamp(13px, 1.05vw, 14px);
  font-weight: 600;
  word-break: break-word;
}

.timeline {
  margin-top: 8px;
  padding-left: 6px;
}

.tl-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}

.tl-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 0;
  width: 1.5px;
  background: var(--border);
}

.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 0 1px var(--orange);
  margin-top: 3px;
  flex: none;
  z-index: 1;
}

.tl-dot.done {
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.tl-dot.pending {
  background: var(--border);
  box-shadow: 0 0 0 1px var(--border);
}

.tl-content .tl-status {
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  font-weight: 700;
  margin: 0 0 2px;
}

.tl-content .tl-date {
  font-size: clamp(11.5px, 0.95vw, 12px);
  color: var(--muted);
}

.tl-content .tl-note {
  font-size: clamp(12px, 1vw, 13px);
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
  padding: 8px 10px;
  background: var(--card-soft);
  border-radius: 8px;
  border-left: 2px solid var(--orange);
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  header {
    padding: 12px 4%;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 5%;
    gap: 10px;
    z-index: 15;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  nav.open {
    display: flex;
  }
  nav a,
  nav button,
  nav .btn,
  nav .user-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
  }
  .theme-toggle {
    width: 42px;
    height: 42px;
    margin: 6px auto 0;
  }
  .menu-btn {
    display: grid;
    place-items: center;
    margin-left: auto;
  }
  .report-card {
    grid-template-columns: 1fr;
  }
  .report-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
  .report-icon {
    display: none;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .modal-foot .btn {
    flex: 1;
    justify-content: center;
  }
}

/* ESTILOS DA PÁGINA */
[v-cloak] {
  display: none;
}
.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;
}
.citizen-workspace main {
  width: min(1400px, 94%);
  padding: 40px 0 70px;
}
.citizen-loading {
  padding: 40px;
  color: var(--muted);
}
.citizen-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.workspace-eyebrow {
  font:
    10px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.citizen-greeting {
  font-size: 15px;
  color: var(--muted);
  margin: 20px 0 8px;
}
.citizen-heading h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 650;
  letter-spacing: -1.8px;
  line-height: 1.06;
  margin: 0 0 16px;
}
.heading-period {
  color: var(--orange);
}
.citizen-subtitle {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 650px;
}
.citizen-new-report {
  gap: 8px;
  white-space: nowrap;
  border-radius: 5px !important;
  min-height: 44px;
}
.citizen-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  margin-top: 34px;
}
.participation-summary {
  align-self: start;
  position: sticky;
  top: 95px;
}
.participation-count {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 18px 0 24px;
}
.participation-count strong {
  font:
    500 70px/0.95 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: -5px;
}
.participation-count > span {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.participation-details {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.participation-details p {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.participation-details p > span {
  color: var(--muted);
}
.participation-details b {
  font:
    14px ui-monospace,
    monospace;
}
.latest-event {
  margin: 30px 0;
  border-left: 2px solid var(--orange);
  padding: 2px 0 2px 14px;
}
.latest-event strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 8px;
}
.latest-event time {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.latest-event button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.latest-event button svg {
  width: 13px;
  height: 13px;
}
.account-footnote {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 220px;
}
.stream-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
}
.citizen-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  background: var(--input-bg);
  padding: 0 14px;
  color: var(--muted);
}
.citizen-search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  padding: 13px 0 !important;
  font: inherit;
  font-size: 13px;
  color: var(--text);
}
.citizen-search:focus-within {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.citizen-refresh {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
}
.citizen-filter-tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  margin-top: 22px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.citizen-filter-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  white-space: nowrap;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.citizen-filter-tabs button.active {
  border-color: var(--orange);
  color: var(--text);
  font-weight: 700;
}
.citizen-filter-tabs button span {
  font:
    10px ui-monospace,
    monospace;
  opacity: 0.75;
}
.stream-settings {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.stream-settings select {
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--card-bg);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  min-height: 36px;
}
.stream-result {
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
  margin-left: auto;
}
.stream-view {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.stream-view button {
  display: grid;
  place-items: center;
  min-width: 35px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.stream-view button[aria-pressed="true"] {
  color: var(--orange-dark);
  background: var(--orange-soft);
}
.citizen-notice {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0;
  min-height: 16px;
}
.citizen-report-list {
  border-top: 1px solid var(--border);
}
.citizen-report-line {
  border-bottom: 1px solid var(--border);
  position: relative;
}
.report-open {
  display: block;
  width: 100%;
  padding: 24px 5px 25px;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.report-open:hover {
  background: var(--card-soft);
}
.report-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
  margin-bottom: 13px;
}
.report-topline > span:not(.audio-indicator) {
  overflow-wrap: anywhere;
}
.audio-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--orange-dark);
  margin-left: auto;
}
.audio-indicator svg {
  width: 18px;
  height: 16px;
}
.report-headline {
  display: flex;
  align-items: center;
  gap: 14px;
}
.report-headline h2 {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin: 0;
  flex: 1;
}
.report-headline h2 > span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 4px;
}
.report-headline > svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}
.report-status-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.report-status-text > i {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.is-concluida .report-status-text > i {
  background: #44805a;
}
.is-invalida .report-status-text > i {
  background: var(--muted);
}
.report-excerpt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 13px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.report-location {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.report-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.report-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0 0;
  padding-right: 4px;
  gap: 0;
}
.report-journey > span {
  position: relative;
  color: var(--muted);
  font-size: 9px;
}
.report-journey > span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 0;
  top: 3px;
  height: 1px;
  background: var(--border);
}
.report-journey > span:last-child::after {
  display: none;
}
.report-journey i {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card-bg);
  z-index: 1;
  margin-bottom: 8px;
}
.report-journey small {
  font-size: 10px;
}
.report-journey .done i {
  border-color: var(--orange);
  background: var(--orange);
}
.report-journey .done::after {
  background: var(--orange);
}
.report-journey .current i {
  border: 2px solid var(--orange);
  width: 9px;
  height: 9px;
  top: -1px;
  margin-bottom: 6px;
}
.report-journey .current small {
  color: var(--text);
  font-weight: 700;
}
.closed-journey {
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.citizen-report-list.is-chronology {
  border-top: 0;
  margin-left: 8px;
}
.is-chronology .citizen-report-line {
  border-left: 1px solid var(--border);
  padding-left: 22px;
  border-bottom: 0;
}
.is-chronology .citizen-report-line::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 27px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.is-chronology .report-open {
  border-bottom: 1px solid var(--border);
  padding-top: 23px;
}
.citizen-empty {
  padding: 50px 12px;
  text-align: left;
}
.empty-line-symbol {
  font:
    45px ui-monospace,
    monospace;
  color: var(--orange);
}
.citizen-empty h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 12px 0;
}
.citizen-empty p {
  max-width: 500px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
}
.citizen-detail {
  width: min(740px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card-bg);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.citizen-detail::backdrop {
  background: #15100baf;
}
.citizen-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--border);
}
.citizen-detail-header h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 10px 0 8px;
}
.citizen-detail-header p {
  font:
    11px ui-monospace,
    monospace;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detail-close {
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
}
.citizen-detail-body {
  padding: 20px 28px 0;
}
.detail-status {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.detail-status time {
  font-size: 11px;
  color: var(--muted);
}
.detail-section {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  margin-top: 24px;
}
.detail-section h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
}
.detail-section > p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detail-properties {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}
.detail-properties dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.detail-properties dd {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}
.detail-map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--orange-dark);
  text-decoration: none;
}
.citizen-audio-host .saved-audio {
  margin: 16px 0 0;
  border-radius: 5px;
}
.citizen-history {
  list-style: none;
  padding: 0 0 0 12px;
}
.citizen-history li {
  border-left: 1px solid var(--border);
  position: relative;
  padding: 0 0 24px 20px;
}
.citizen-history li::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  left: -3.5px;
  top: 3px;
}
.citizen-history time {
  display: block;
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
  margin-bottom: 8px;
}
.citizen-history strong {
  font-size: 12px;
}
.citizen-history p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.citizen-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 28px;
  background: var(--card-soft);
  border-top: 1px solid var(--border);
}
.citizen-detail-footer span {
  font-size: 11px;
  color: var(--muted);
}
.citizen-detail-footer span a {
  font-weight: 700;
  color: var(--text);
}
@media (max-width: 1000px) {
  .citizen-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
  }
  .participation-count strong {
    font-size: 54px;
  }
  .participation-count > span {
    font-size: 10px;
  }
  .citizen-filter-tabs {
    gap: 17px;
  }
  .report-status-text {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .citizen-workspace main {
    padding-top: 25px;
  }
  .citizen-heading {
    align-items: flex-start;
    padding-bottom: 24px;
  }
  .citizen-heading h1 {
    font-size: 36px;
    letter-spacing: -1.4px;
  }
  .citizen-greeting {
    margin-top: 16px;
  }
  .citizen-subtitle {
    font-size: 12px;
  }
  .citizen-new-report {
    font-size: 11px !important;
    padding: 9px !important;
  }
  .citizen-new-report svg {
    width: 14px;
  }
  .citizen-shell {
    display: block;
    margin-top: 22px;
  }
  .participation-summary {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8px 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 22px;
    margin-bottom: 24px;
  }
  .participation-summary > .workspace-eyebrow {
    grid-column: 1/-1;
  }
  .participation-count {
    margin: 12px 0;
  }
  .participation-details {
    border: 0;
    padding: 0;
  }
  .participation-details p {
    font-size: 10px;
    padding: 9px 0;
  }
  .participation-count strong {
    font-size: 56px;
  }
  .latest-event {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
  }
  .account-footnote {
    grid-column: 1/-1;
    max-width: none;
    margin: 6px 0 0;
    font-size: 10px;
  }
  .citizen-filter-tabs {
    flex-wrap: wrap;
    gap: 0 14px;
    margin-top: 16px;
    overflow: visible;
  }
  .citizen-filter-tabs button {
    min-height: 44px;
    font-size: .82rem;
    white-space: normal;
  }
  .stream-settings {
    gap: 8px;
  }
  .stream-result {
    font-size: 9px;
  }
  .stream-settings select {
    font-size: 10px;
    max-width: 160px;
  }
  .report-open {
    padding: 20px 0;
  }
  .report-headline {
    flex-wrap: wrap;
    gap: 10px;
  }
  .report-headline h2 {
    font-size: 18px;
    flex-basis: calc(100% - 32px);
    order: 0;
  }
  .report-headline > svg {
    order: 1;
  }
  .report-status-text {
    order: 2;
    flex-basis: 100%;
    font-size: 10px;
  }
  .report-topline {
    gap: 7px;
    font-size: 9px;
  }
  .audio-indicator {
    font-size: 9px;
  }
  .report-excerpt {
    font-size: 12px;
  }
  .report-journey small {
    font-size: 9.5px;
  }
  .report-journey {
    margin-top: 20px;
  }
  .citizen-detail {
    max-height: 94dvh;
  }
  .citizen-detail-header {
    padding: 22px 18px 16px;
  }
  .citizen-detail-body {
    padding: 18px 18px 0;
  }
  .citizen-detail-footer {
    padding: 14px 18px;
  }
  .detail-properties {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .detail-status time {
    font-size: 10px;
  }
  .workspace-eyebrow {
    font-size: 9px;
  }
}


@media (max-width: 480px) {
  .citizen-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .citizen-heading .citizen-new-report {
    justify-content: center;
    width: 100%;
    min-height: 44px;
  }

  .participation-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .stream-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stream-settings select {
    width: 100%;
    max-width: none;
    min-height: 44px;
  }

  .stream-result {
    margin-left: 0;
  }

  .stream-view {
    justify-self: end;
  }

  .report-headline h2,
  .detail-properties > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .detail-properties {
    grid-template-columns: minmax(0, 1fr);
  }
}
